Frame 1
var version = "v2.1.5";
var testFlag = false;
var talesKongregateFlag = true;
if (testFlag) {
_root.startFrame = "Home";
} else {
_root.startFrame = "intro";
}
stop();
Instance of Symbol 185 MovieClip "loader" in Frame 1
onClipEvent (load) {
maxFrameJump = 4;
_parent.stop();
}
onClipEvent (enterFrame) {
gotoAndStop(loadedIndicatorFrame());
if (_currentframe >= _totalframes) {
_parent.gotoAndStop(2);
}
}
Frame 2
function TransitionOut() {
mcTransition._alpha = mcTransition._alpha + transitionSpeed;
if (mcTransition._alpha >= 100) {
mcTransition._alpha = 100;
clearInterval(transFadePtr);
gotoAndStop(transitionFrame);
}
}
function TransitionIn() {
mcTransition._alpha = mcTransition._alpha - transitionSpeed;
if (mcTransition._alpha <= 0) {
if ((battleCoverupMC != undefined) || (mcTransition == undefined)) {
removeMovieClip(battleCoverupMC);
}
clearInterval(transFadePtr);
var _local2;
if (_currentframe == 15) {
if (!p1.HasCompletedEvent(1)) {
_local2 = Event.GetEvent(1);
} else if ((!p1.HasCompletedEvent(2)) && (p1.skillIDs.length >= 1)) {
_local2 = Event.GetEvent(2);
} else if ((!p1.HasCompletedEvent(49)) && (btnBoss.enabled == true)) {
_local2 = Event.GetEvent(49);
} else if (_root.fromTavern == true) {
_local2 = currentEvent;
_root.fromTavern = false;
} else if ((((!p1.HasCompletedEvent(41)) && (!p1.HasCompletedEvent(42))) && (!p1.HasCompletedEvent(43))) && ((p1.HasParentSkill(4) || (p1.HasParentSkill(9))) || (p1.HasParentSkill(18)))) {
_local2 = Event.GetEvent(40 + p1.classID);
}
} else if (_currentframe == 25) {
if (!p1.HasCompletedEvent(44)) {
_local2 = Event.GetEvent(44);
}
} else if (_currentframe == 30) {
if (!p1.HasCompletedEvent(45)) {
_local2 = Event.GetEvent(45);
}
} else if (_currentframe == 51) {
if (!p1.HasCompletedEvent(46)) {
_local2 = Event.GetEvent(46);
}
} else if (_currentframe == 55) {
if (!p1.HasCompletedEvent(47)) {
_local2 = Event.GetEvent(47);
}
} else if (_currentframe == 20) {
if (boss) {
if (_root.p1.level == 1) {
_local2 = Event.GetEvent(8);
} else if (_root.p1.level == 2) {
_local2 = Event.GetEvent(27);
} else if (_root.p1.level == 3) {
_local2 = Event.GetEvent(28);
} else if (_root.p1.level == 4) {
_local2 = Event.GetEvent(29);
} else if (_root.p1.level == 5) {
_local2 = Event.GetEvent(30);
} else if (_root.p1.level == 6) {
_local2 = Event.GetEvent(31);
} else if (_root.p1.level == 7) {
_local2 = Event.GetEvent(32);
} else if (_root.p1.level == 8) {
_local2 = Event.GetEvent(33);
} else if (_root.p1.level == 9) {
_local2 = Event.GetEvent(34);
} else if (_root.p1.level == 10) {
_local2 = Event.GetEvent(35);
}
} else if (currentEvent == undefined) {
if (!p1.HasCompletedEvent(3)) {
_local2 = Event.GetEvent(3);
} else if (!p1.HasCompletedEvent(4)) {
_local2 = Event.GetEvent(4);
} else if (((!p1.HasCompletedEvent(5)) && (!p1.HasCompletedEvent(6))) && (!p1.HasCompletedEvent(7))) {
_local2 = Event.GetEvent(4 + p1.classID);
}
}
}
if (_local2 != undefined) {
currentEvent = _local2;
if ((p1.showTutorial == false) && (currentEvent.tutorial == true)) {
currentEvent.EndEvent();
} else {
currentEvent.StartEvent();
}
} else {
removeMovieClip(mcTransition);
}
}
}
function MusicTransitionIn() {
if (!muteMusic) {
sndMusic.setVolume(sndMusic.getVolume() + musicTransitionSpeed);
if (sndMusic.getVolume() >= maxMusicVolume) {
sndMusic.setVolume(maxMusicVolume);
clearInterval(fadeMusicPtr);
}
} else {
clearInterval(fadeMusicPtr);
}
}
function MusicTransitionOut() {
if (!muteMusic) {
sndMusic.setVolume(sndMusic.getVolume() - musicTransitionSpeed);
if (sndMusic.getVolume() <= 0) {
sndMusic.setVolume(0);
clearInterval(fadeMusicPtr);
}
} else {
clearInterval(fadeMusicPtr);
}
}
function StartTransition(inFrame, fadeOut) {
this.attachMovie("mcTransition", "mcTransition", 40000, {_x:0, _y:0});
mcTransition.enabled = false;
mcTransition._alpha = 0;
clearInterval(transFadePtr);
clearInterval(fadeMusicPtr);
transFadePtr = setInterval(this, "TransitionOut", 83);
if (fadeOut) {
fadeMusicPtr = setInterval(this, "MusicTransitionOut", 83);
}
transitionFrame = inFrame;
}
function EndTransition(musicName) {
if (musicName != currentMusic) {
currentMusic = musicName;
if (musicName == "Battle") {
if (musicArray[0] == undefined) {
musicArray[0] = new Sound();
musicArray[0].loadSound("133886_war_drumbed_140.mp3", true);
musicArray[0].onSoundComplete = function () {
musicArray[0].start();
};
}
sndMusic = musicArray[0];
} else if (musicName == "Staging") {
if (musicArray[1] == undefined) {
musicArray[1] = new Sound();
musicArray[1].loadSound("107998_tle_town.mp3", true);
musicArray[1].onSoundComplete = function () {
musicArray[1].start();
};
}
sndMusic = musicArray[1];
}
}
if (muteMusic) {
sndMusic.setVolume(0);
}
clearInterval(transFadePtr);
clearInterval(fadeMusicPtr);
transFadePtr = setInterval(this, "TransitionIn", 83);
fadeMusicPtr = setInterval(this, "MusicTransitionIn", 83);
}
function RandomizeSort() {
return((Math.round(Math.random()) * 3) - 1);
}
function searchAndReplace(holder, searchfor, replacement) {
temparray = holder.split(searchfor);
if (temparray.length > 1) {
holder = temparray.join(replacement);
}
return(holder);
}
function searchAndReplaceSingle(holder, searchfor, replacement) {
temparray = holder.split(searchfor);
if (temparray.length > 1) {
temparray[0] = (temparray[0] + replacement) + temparray[1];
temparray.splice(1, 1);
holder = temparray.join(searchfor);
}
return(holder);
}
function roundToDigit(num, nrOfDigits) {
var _local1 = Math.pow(10, nrOfDigits);
return(Math.round(num * _local1) / _local1);
}
function DifficultyName(nbr) {
if (nbr == 0) {
return("Normal");
}
return("Easy");
}
function ExistsInArray(arr, val) {
var _local3 = false;
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1] == val) {
_local3 = true;
break;
}
_local1++;
}
return(_local3);
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
this.menu = newMenu;
var currentEvent = undefined;
if (talesKongregateFlag) {
_root.kongregateServices.connect();
}
var muteSound = false;
var muteMusic = false;
var transFadePtr = -1;
var transitionFrame = "";
var transitionSpeed = 20;
var currentSaveSlot = 1;
var loadSaveAction = "";
var sndMusic = new Sound();
var maxMusicVolume = 40;
sndMusic.setVolume(maxMusicVolume);
var musicTransitionSpeed = (maxMusicVolume / 5);
var fadeMusicPtr = -1;
var currentMusic = "";
var musicArray = new Array();
musicArray.push(undefined);
musicArray.push(undefined);
var cheatCode = "";
var cheatListener = new Object();
cheatListener.onKeyDown = function () {
var _local3 = Key.getCode();
if (_local3 == 67) {
cheatCode = "";
} else if (_local3 == 32) {
if (_root._currentframe == 20) {
_root.gamePaused = !_root.gamePaused;
}
} else {
cheatCode = cheatCode + (Key.getCode() + "-");
}
if (cheatCode == "56-54-77-69-") {
if ((this._currentframe >= 20) && (this._currentframe <= 24)) {
cheatCode = "";
ClearFight();
ClearFightFinal();
}
} else if (cheatCode == "66-76-69-86-69-76-49-") {
if ((this._currentframe >= 15) && (this._currentframe <= 19)) {
SetMonster(1);
}
} else if (cheatCode == "66-76-69-86-69-76-50-") {
if ((this._currentframe >= 15) && (this._currentframe <= 19)) {
SetMonster(5);
}
} else if (cheatCode == "66-76-69-86-69-76-51-") {
if ((this._currentframe >= 15) && (this._currentframe <= 19)) {
SetMonster(9);
}
} else if (cheatCode == "66-76-69-86-69-76-52-") {
if ((this._currentframe >= 15) && (this._currentframe <= 19)) {
SetMonster(12);
}
} else if (cheatCode == "66-76-69-86-69-76-53-") {
if ((this._currentframe >= 15) && (this._currentframe <= 19)) {
SetMonster(15);
}
} else if (cheatCode == "66-76-69-86-69-76-54-") {
if ((this._currentframe >= 15) && (this._currentframe <= 19)) {
SetMonster(18);
}
} else if (cheatCode == "69-82-82-79-82-83-") {
StartTransition("errors");
cheatCode = "";
} else if (cheatCode == "77-65-88-88-80-77-69-") {
if ((this._currentframe >= 15) && (this._currentframe <= 19)) {
p1.experience = Level.GetLevel(p1.level + 1, p1.classID).expForLevel;
CheckForBoss();
UpdateStats();
}
} else if (cheatCode == "77-65-88-71-79-76-68-77-69-") {
if ((this._currentframe >= 15) && (this._currentframe <= 19)) {
p1.gold = 5000;
UpdateStats();
}
} else if (cheatCode == "56-55-77-69-") {
if ((this._currentframe >= 15) && (this._currentframe <= 19)) {
cheatCode = "";
testFlag = true;
ShowTestButtons();
}
}
};
Key.addListener(cheatListener);
gotoAndStop(_root.startFrame);
stop();
Instance of Symbol 432 MovieClip [TextInput] in Frame 3
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 156 MovieClip [Button] in Frame 3
//component parameters
onClipEvent (construct) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 5
function PlaySound(inSoundNbr) {
if (!muteSound) {
var _local1 = soundsArray[inSoundNbr];
_local1.start();
}
}
function AddSound(inFile) {
var _local1 = new Sound();
_local1.attachSound(inFile);
soundsArray.push(_local1);
return(soundsArray.length);
}
function PowerTypeName(powerTypeID) {
if (powerTypeID == 1) {
return("Gas");
}
if (powerTypeID == 2) {
return("Mana");
}
return("Power");
}
function SlotName(slotID) {
if (slotID == 0) {
return("Head");
}
if (slotID == 1) {
return("Back");
}
if (slotID == 2) {
return("Hands");
}
if (slotID == 3) {
return("Finger");
}
return("Magic");
}
function QualityName(qualityID) {
if (qualityID == 0) {
return("Common");
}
if (qualityID == 1) {
return("Rare");
}
return("Ancient");
}
function GetQualityColor(inQualityID) {
var _local1;
if (inQualityID == 0) {
_local1 = 485134 /* 0x07670E */;
} else if (inQualityID == 1) {
_local1 = 255;
} else {
_local1 = 12806400 /* 0xC36900 */;
}
return(_local1);
}
function GetDepthSlot(startingDepth, movieArr) {
var _local5 = startingDepth;
var _local6 = _local5;
var _local3 = false;
var _local2 = _local5;
while (_local2 < (_local5 + 50)) {
var _local1 = 0;
while (_local1 < movieArr.length) {
if (movieArr[_local1].getDepth() == _local2) {
_local3 = true;
}
_local1++;
}
if (_local3 == false) {
_local6 = _local2;
break;
}
_local3 = false;
_local2++;
}
return(_local6);
}
function SetDescriptionParent(theText, timer, text_color, bg_color, border_color) {
if (timer == undefined) {
timer = 200;
}
var addMsg = function (theMsg, col, bg_color, border_color, level) {
if (tooltip == undefined) {
var xModifier = 0;
var yModifier = 0;
if (_root._xmouse > 515) {
xModifier = -150;
}
if (_root._ymouse < 180) {
yModifier = 145;
}
var x = ((_root._xmouse + 10) + xModifier);
var y = ((_root._ymouse - 10) + yModifier);
var f = new TextFormat();
f.font = "Verdana";
f.size = 12;
f.color = ((col != undefined) ? (col) : 0);
level.createTextField("tooltip", 25000, x, y, 133, 100);
with (level.tooltip) {
setNewTextFormat(f);
html = true;
htmlText = theMsg;
autoSize = "left";
background = false;
border = false;
wordWrap = true;
_y = _y - _height;
}
myBitmapData = flash.display.BitmapData.loadBitmap("popupBGBottom");
bgBottom = _root.createEmptyMovieClip("popupBGBottom", 24995);
bgBottom._x = x - 35;
bgBottom._y = y - 149;
bgBottom.attachBitmap(myBitmapData, 24996);
if (_root.tooltip.height > 205) {
myBitmapData = flash.display.BitmapData.loadBitmap("popupBGTopLongest");
} else if (_root.tooltip.height > 150) {
myBitmapData = flash.display.BitmapData.loadBitmap("popupBGTopLong");
} else {
myBitmapData = flash.display.BitmapData.loadBitmap("popupBGTop");
}
bgTop = _root.createEmptyMovieClip("popupBGTop", 24997);
bgTop._x = x - 35;
bgTop._y = (y - 30) - _root.tooltip.height;
bgTop.attachBitmap(myBitmapData, 24998);
if (_root.tooltip.height < 100) {
_root.tooltip._y = _root.tooltip._y - (100 - _root.tooltip.height);
bgTop._y = bgTop._y - (100 - _root.tooltip.height);
}
}
clearInterval(level.q_t);
};
this.q_t = setInterval(addMsg, timer, theText, text_color, bg_color, border_color, _root);
}
function UnsetDescriptionParent() {
_root.tooltip.removeTextField();
_root.popupBGBottom.removeMovieClip();
_root.popupBGTop.removeMovieClip();
clearInterval(this.q_t);
}
function RandRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function PrepSkill(inSkillID, inPlayer, skillCount, isTavern) {
var myLoc;
var baseDepth = 15000;
try {
myLoc = GetSkillPosition(inPlayer.playerNbr, skillCount, isTavern);
var newSkill = Skill.LoadSkill(inSkillID);
newSkill._x = myLoc.x;
newSkill._y = myLoc.y;
newSkill.homeX = myLoc.x;
newSkill.homeY = myLoc.y;
var skillUpgradeID = inPlayer.HasUpgrade(newSkill.parentSkillID);
if (skillUpgradeID != -1) {
var upgradeSkill = Skill.LoadSkill(skillUpgradeID);
if (newSkill.parentSkillID == 0) {
newSkill.dmgMin = Math.round(newSkill.dmgMin * (1 + upgradeSkill.dmgMax));
newSkill.dmgMax = Math.round(newSkill.dmgMax * (1 + upgradeSkill.dmgMax));
} else if (p1.classID == 1) {
if (newSkill.parentSkillID == 4) {
newSkill.buffTime = newSkill.buffTime + upgradeSkill.buffTime;
} else if (newSkill.parentSkillID == 2) {
newSkill.castTime = newSkill.castTime * (1 - upgradeSkill.castTime);
} else if (newSkill.parentSkillID == 1) {
newSkill.dotAmount = Math.round(newSkill.dotAmount * (1 + upgradeSkill.dmgMax));
} else if (newSkill.parentSkillID == 3) {
newSkill.cooldown = Math.round(newSkill.cooldown * (1 - upgradeSkill.cooldown));
} else if (newSkill.parentSkillID == 6) {
newSkill.slowPercent = newSkill.slowPercent + upgradeSkill.slowPercent;
} else if (newSkill.parentSkillID == 5) {
newSkill.cooldown = Math.round(newSkill.cooldown * (1 - upgradeSkill.cooldown));
} else if (newSkill.parentSkillID == 7) {
newSkill.damageDoneModifier = Math.round(newSkill.damageDoneModifier * (1 + upgradeSkill.dmgMax));
} else if (newSkill.parentSkillID == 8) {
newSkill.dotAmount = Math.round(newSkill.dotAmount * (1 + upgradeSkill.dmgMax));
}
} else if (p1.classID == 2) {
if (newSkill.parentSkillID == 12) {
newSkill.dotAmount = Math.round(newSkill.dotAmount * (1 + upgradeSkill.dmgMax));
} else if (newSkill.parentSkillID == 9) {
newSkill.buffTime = newSkill.buffTime + upgradeSkill.buffTime;
} else if (newSkill.parentSkillID == 14) {
newSkill.powerRegen = Math.round(newSkill.powerRegen * (1 + upgradeSkill.powerRegen));
} else if (newSkill.parentSkillID == 10) {
newSkill.cooldown = Math.round(newSkill.cooldown * (1 - upgradeSkill.cooldown));
} else if (newSkill.parentSkillID == 11) {
newSkill.buffTime = Math.round(newSkill.buffTime * (1 + upgradeSkill.buffTime));
} else if (newSkill.parentSkillID == 16) {
newSkill.castTime = 0;
} else if (newSkill.parentSkillID == 13) {
newSkill.slowPercent = newSkill.slowPercent + upgradeSkill.slowPercent;
} else if (newSkill.parentSkillID == 15) {
newSkill.buffTime = Math.round(newSkill.buffTime * (1 + upgradeSkill.buffTime));
}
} else if (p1.classID == 3) {
if (newSkill.parentSkillID == 17) {
newSkill.dotAmount = Math.round(newSkill.dotAmount * (1 + upgradeSkill.dmgMax));
} else if (newSkill.parentSkillID == 18) {
newSkill.buffTime = newSkill.buffTime + upgradeSkill.buffTime;
} else if (newSkill.parentSkillID == 19) {
newSkill.adrenalineRush = newSkill.adrenalineRush + upgradeSkill.adrenalineRush;
} else if (newSkill.parentSkillID == 20) {
newSkill.dmgMin = Math.round(newSkill.dmgMin * (1 + upgradeSkill.dmgMax));
newSkill.dmgMax = Math.round(newSkill.dmgMax * (1 + upgradeSkill.dmgMax));
} else if (newSkill.parentSkillID == 21) {
newSkill.powerBonus = Math.round(newSkill.powerBonus * (1 + upgradeSkill.powerBonus));
} else if (newSkill.parentSkillID == 22) {
newSkill.damageDoneModifier = Math.round(newSkill.damageDoneModifier * (1 + upgradeSkill.damageDoneModifier));
} else if (newSkill.parentSkillID == 23) {
newSkill.slowPercent = newSkill.slowPercent + upgradeSkill.slowPercent;
} else if (newSkill.parentSkillID == 24) {
newSkill.cooldown = Math.round(newSkill.cooldown * (1 - upgradeSkill.cooldown));
}
}
}
if ((newSkill.skillID == 99) && (!p1.FindArtifact(201, true))) {
newSkill.dotAmount = newSkill.dotAmount * 6;
}
if (inPlayer.playerNbr == 2) {
baseDepth = baseDepth - 100;
}
newSkill.player = inPlayer;
if ((_root.p1.difficulty == 1) && (inPlayer.playerNbr == 2)) {
newSkill.castTime = _root.roundToDigit(newSkill.castTime * 1.25, 1);
}
inPlayer.skills.push(_root.attachMovie("skillButton", (("p" + inPlayer.playerNbr) + "_skill") + newSkill.skillID, baseDepth + skillCount, newSkill));
var newSkillPtr = eval ((("p" + inPlayer.playerNbr) + "_skill") + newSkill.skillID);
newSkillPtr.skillButton1.skillText.text = newSkillPtr.skillName;
newSkillPtr.currentLoc = myLoc;
newSkillPtr.playerNbr = inPlayer.playerNbr;
var powerName = _root.PowerTypeName(newSkillPtr.powerTypeCost);
if (isTavern) {
newSkillPtr.onPress = function () {
this.origX = this._x;
this.origY = this._y;
this.swapDepths(39000);
this.startDrag();
};
newSkillPtr.onRelease = function () {
stopDrag();
TavernStopDrag(this);
};
}
newSkillPtr.onRollOver = function () {
if (_root.forgetInstructions == undefined) {
var _local2 = "";
_local2 = _local2 + (("<b><font color='#bb6900'>" + newSkillPtr.skillName) + "</font></b>");
if (inPlayer.HasUpgrade(newSkill.parentSkillID) != -1) {
_local2 = _local2 + " <font color='#bb6900'>[UPGRADED]</font>";
}
var _local4 = "";
var _local5 = newSkillPtr.castTime * (1 - newSkill.player.GetCastTimeBonus());
if (_local5 == 0) {
_local4 = "Instant";
} else {
_local4 = _root.roundToDigit(_local5, 1) + " sec";
}
var _local3 = Skill.ReplaceDescTokens(newSkillPtr);
if ((newSkillPtr.rank != 1) && (inPlayer.playerNbr == 1)) {
_local3 = (((("[" + parentSkillArr[newSkillPtr.parentSkillID]) + " Rank ") + newSkillPtr.rank) + "] ") + _local3;
}
_local2 = _local2 + "\n\n<i><font color='#4f4f4f'>";
if (newSkillPtr.powerCost != 0) {
_local2 = _local2 + (((newSkillPtr.powerCost + " ") + powerName) + newline);
}
_local2 = _local2 + (("Cast Time: " + _local4) + newline);
var _local6 = _root.roundToDigit(newSkillPtr.cooldown * (1 - newSkill.player.GetCooldownReductionBonus()), 1);
_local2 = _local2 + (("Cooldown: " + _local6) + " sec</font></i>");
_local2 = _local2 + (("\n\n<font color='#020ea2'>" + _local3) + "</font>");
newSkillPtr.setDescription(_local2);
}
};
newSkillPtr.onRollOut = function () {
newSkillPtr.unsetDescription();
};
if (inPlayer.playerNbr == 2) {
newSkillPtr.skillButton1.enabled = false;
}
} catch(myError:Error) {
trace("error caught: " + myError);
var so = SharedObject.getLocal("talesworthData");
if (so.data.errors == undefined) {
so.data.errors = "";
}
so.data.errors = so.data.errors + (myError + newline);
so.flush();
}
}
function GetSkillPosition(pNbr, skillCount, isTavern) {
var _local4;
var _local3;
var _local6;
var _local5;
var _local1 = new flash.geom.Point();
var _local2 = 116;
if (isTavern) {
_local4 = 57;
_local3 = _local4 + _local2;
_local6 = _local3 + _local2;
} else if (pNbr == 1) {
_local4 = 57;
_local3 = _local4 + _local2;
_local6 = _local3 + _local2;
} else {
_local4 = 412;
_local3 = _local4 + _local2;
_local6 = _local3 + _local2;
}
if (isTavern) {
_local5 = 117;
} else {
_local5 = 287;
}
if ((skillCount % 3) == 1) {
_local1.x = _local4;
_local1.y = _local5 + (Math.floor(skillCount / 3) * 73);
} else if ((skillCount % 3) == 2) {
_local1.x = _local3;
_local1.y = _local5 + (Math.floor(skillCount / 3) * 73);
} else {
_local1.x = _local6;
_local1.y = _local5 + (Math.floor((skillCount / 3) - 0.5) * 73);
}
return(_local1);
}
function FadeErrorText() {
fadeCounter++;
if (fadeCounter >= 20) {
mcErrorText._alpha = mcErrorText._alpha - 8;
if (mcErrorText._alpha <= 0) {
clearInterval(fadePtr);
}
}
}
var p1;
var saveGame = SharedObject.getLocal("saveGame");
if (saveGame != null) {
mcSecurity._visible = false;
if (saveGame.data.slots == undefined) {
btnContinue.enabled = false;
mcContinueDisabled._visible = true;
} else {
btnContinue.enabled = true;
mcContinueDisabled._visible = false;
}
}
var categoryArr = new Array();
var parentSkillArr = new Array();
var totalVictories;
var eventFightCounter;
var gamePaused = false;
var resetBizaarFlag;
var bizaarArtifactArr;
fromTavern = false;
categoryArr.push("Weapon");
categoryArr.push("Device");
categoryArr.push("Physical");
categoryArr.push("Spell");
parentSkillArr.push("Weapon");
parentSkillArr.push("Flamethrower");
parentSkillArr.push("Refill Tank");
parentSkillArr.push("Fist on a spring");
parentSkillArr.push("Groin Kick");
parentSkillArr.push("Anti-Magic Grenade");
parentSkillArr.push("Mechanical Insect");
parentSkillArr.push("Bionic Limbs");
parentSkillArr.push("Medical Robot");
parentSkillArr.push("Psychic Blast");
parentSkillArr.push("Wall of Atoms");
parentSkillArr.push("Mana Shield");
parentSkillArr.push("Torment");
parentSkillArr.push("Brain Freeze");
parentSkillArr.push("Concentration");
parentSkillArr.push("Forget");
parentSkillArr.push("Telepathy");
parentSkillArr.push("Poison Syringe");
parentSkillArr.push("Uppercut");
parentSkillArr.push("Adrenaline Rush");
parentSkillArr.push("Jab");
parentSkillArr.push("Stagger");
parentSkillArr.push("Taunt");
parentSkillArr.push("Ground Jacks");
parentSkillArr.push("Reflective Shield");
var soundsArray = new Array();
AddSound("coins.mp3");
AddSound("click");
AddSound("stun.mp3");
AddSound("thwap.mp3");
AddSound("ambientClick.mp3");
AddSound("water.mp3");
AddSound("fly.mp3");
AddSound("Mechanical.mp3");
AddSound("fanfare_x.wav");
AddSound("gong.wav");
AddSound("boo.wav");
AddSound("cheering.wav");
AddSound("wallofatoms2");
AddSound("brainfreeze");
AddSound("punch.wav");
AddSound("jacks2.wav");
AddSound("tiles.wav");
var monstersBeatForLevel = 0;
versionText.text = version;
MovieClip.prototype.setDescription = function (theText, timer, text_color, bg_color, border_color) {
SetDescriptionParent(theText, timer, text_color, bg_color, border_color);
};
MovieClip.prototype.unsetDescription = function () {
UnsetDescriptionParent();
};
Skill.prototype.setDescription = function (theText, timer, text_color, bg_color, border_color) {
SetDescriptionParent(theText, timer, text_color, bg_color, border_color);
};
Skill.prototype.unsetDescription = function () {
UnsetDescriptionParent();
};
MovieClip.prototype.setToolTip = function (theText, timer, text_color, bg_color, border_color) {
if (timer == undefined) {
timer = 200;
}
var addMsg = function (theMsg, col, bg_color, border_color, level) {
var x = (_root._xmouse + 10);
var y = (_root._ymouse - 10);
var f = new TextFormat();
f.font = "Verdana";
f.size = 12;
f.color = ((col != undefined) ? (col) : 0);
level.createTextField("tooltip", 25000, x, y, 80, 50);
with (level.tooltip) {
setNewTextFormat(f);
text = theMsg;
background = true;
border = true;
borderColor = ((border_color != undefined) ? (border_color) : 0);
backgroundColor = ((bg_color != undefined) ? (bg_color) : 16777215);
wordWrap = true;
_y = _y - _height;
}
clearInterval(level.q_t);
};
this.q_t = setInterval(addMsg, timer, theText, text_color, bg_color, border_color, _root);
};
MovieClip.prototype.unsetToolTip = function () {
_root.tooltip.removeTextField();
clearInterval(this.q_t);
};
var mcErrorText;
mcErrorText = mcErrorText1;
var fadeCounter = 0;
var fadePtr = -1;
var artifactArr;
var skillArr;
var artifactArr;
var monsterArr;
var qualityTypeArr;
var madeArrays;
if (madeArrays == undefined) {
madeArrays = true;
artifactArr = new Array();
Artifact.LoadArtifactArray(artifactArr);
skillArr = new Array();
Skill.LoadSkillArray(skillArr);
skillArr.sortOn(["classID", "reqLevel"], [Array.NUMERIC, Array.NUMERIC]);
artifactArr = new Array();
Artifact.LoadArtifactArray(artifactArr);
monsterArr = new Array();
Monster.LoadMonsterArray(monsterArr);
qualityTypeArr = new Array();
qualityTypeArr.push("Unusual");
qualityTypeArr.push("Rare");
qualityTypeArr.push("Exotic");
}
EndTransition("Staging");
stop();
Frame 10
var selectedClassID = -1;
if (testFlag) {
inputName.text = "Testy";
}
var charName = "";
mcClassDesc.desc.text = "Please select Engineer, Psionic or Juggernaut";
Selection.setFocus("inputName");
Selection.setSelection(0, inputName.text.length);
EndTransition();
var filter = (new flash.filters.GlowFilter(0, 0.8, 10, 10, 5, 3, false, false));
var filterArray = new Array();
filterArray.push(filter);
mcClassDesc.filters = filterArray;
var filter2 = (new flash.filters.GlowFilter(0, 0.8, 10, 10, 5, 3, false, false));
var filterArray2 = new Array();
filterArray2.push(filter2);
txtEnterName.filters = filterArray2;
completeEngEasy._visible = false;
completePsiEasy._visible = false;
completeJugEasy._visible = false;
completeEngNorm._visible = false;
completePsiNorm._visible = false;
completeJugNorm._visible = false;
var sox = _root.saveGame.data;
if (_root.p1.difficulty == 1) {
if (sox.completeEngEasy == true) {
completeEngEasy._visible = true;
}
if (sox.completePsiEasy == true) {
completePsiEasy._visible = true;
}
if (sox.completeJugEasy == true) {
completeJugEasy._visible = true;
}
} else {
if (sox.completeEngNorm == true) {
completeEngNorm._visible = true;
}
if (sox.completePsiNorm == true) {
completePsiNorm._visible = true;
}
if (sox.completeJugNorm == true) {
completeJugNorm._visible = true;
}
}
stop();
Instance of Symbol 471 MovieClip "btnEngineer" in Frame 10
on (rollOver) {
if (_currentframe != 4) {
gotoAndStop ("over");
}
}
on (rollOut) {
if (_currentframe != 4) {
gotoAndStop ("up");
}
}
on (release) {
if (_currentframe == 4) {
gotoAndStop ("up");
_root.selectedClassID = -1;
} else {
_root.sndAmbientClick.start();
gotoAndStop (4);
_root.btnPsionic.gotoAndStop("up");
_root.btnJuggernaut.gotoAndStop("up");
_root.selectedClassID = 1;
_root.mcClassDesc.desc.text = "The Engineer... Your early years were spent slaving away on bizarre devices. Although others often laughed at your fetish for mechanical wonders, your passion has never wavered.";
}
}
Instance of Symbol 477 MovieClip "btnJuggernaut" in Frame 10
on (rollOver) {
if (_currentframe != 4) {
gotoAndStop ("over");
}
}
on (rollOut) {
if (_currentframe != 4) {
gotoAndStop ("up");
}
}
on (release) {
if (_currentframe == 4) {
gotoAndStop ("up");
_root.selectedClassID = -1;
} else {
gotoAndStop (4);
_root.sndAmbientClick.start();
_root.btnPsionic.gotoAndStop("up");
_root.btnEngineer.gotoAndStop("up");
_root.selectedClassID = 3;
_root.mcClassDesc.desc.text = "The Juggernaut... You've made your way in life exploiting your physical strength and creative use of poison. It's no secret that you like to fight dirty. Hell... it's okay if they hate, as long as they fear.";
}
}
Instance of Symbol 482 MovieClip "btnPsionic" in Frame 10
on (rollOver) {
if (_currentframe != 4) {
gotoAndStop ("over");
}
}
on (rollOut) {
if (_currentframe != 4) {
gotoAndStop ("up");
}
}
on (release) {
if (_currentframe == 4) {
gotoAndStop ("up");
_root.selectedClassID = -1;
} else {
gotoAndStop (4);
_root.sndAmbientClick.start();
_root.btnEngineer.gotoAndStop("up");
_root.btnJuggernaut.gotoAndStop("up");
_root.selectedClassID = 2;
_root.mcClassDesc.desc.text = "The Psionic... Your ability to control the thoughts and minds of those around you, although often unintended, has led to a dejected life of isolation. Here in Talesworth, that is about to change...";
}
}
Frame 15
function ToggleMuteSound() {
muteSound = !muteSound;
}
function ToggleMuteMusic() {
muteMusic = !muteMusic;
if (muteMusic) {
sndMusic.setVolume(0);
} else {
sndMusic.setVolume(maxMusicVolume);
}
}
function ResetBizaar() {
resetBizaarFlag = false;
var _local1 = 0;
while (_local1 < artifactArr.length) {
if ((((artifactArr[_local1].reqLevel <= p1.level) && (artifactArr[_local1].reqLevel >= (p1.level - 1))) && (artifactArr[_local1].forSale)) && (!p1.HasArtifact(artifactArr[_local1]))) {
bizaarArtifactArr.push(artifactArr[_local1]);
}
_local1++;
}
var _local3 = 2 + p1.level;
while (bizaarArtifactArr.length > _local3) {
var _local2 = RandRange(0, bizaarArtifactArr.length - 1);
bizaarArtifactArr.splice(_local2, 1);
}
}
function TestForBlackMarket() {
if (p1.MilestoneLookupByID(10)) {
btnBlackMarket._visible = true;
} else {
btnBlackMarket._visible = false;
}
}
function SetMyLevel() {
p1.level = txtSetLevel.text;
p1.gold = 5000;
UpdateStats();
}
function HideTestButtons() {
btnTestLevel._visible = false;
btn100Exp._visible = false;
btn100Gold._visible = false;
btnSetMonster._visible = false;
btnAddArtifact._visible = false;
txtAddArtifact._visible = false;
chkFullGear._visible = false;
txtTestLevel._visible = false;
txtTestMonster._visible = false;
nextFightText._visible = false;
monsterName._visible = false;
txtFireEvent._visible = false;
btnFireEvent._visible = false;
txtSetLevel._visible = false;
btnSetLevel._visible = false;
}
function ShowTestButtons() {
btnTestLevel._visible = true;
btn100Exp._visible = true;
btn100Gold._visible = true;
btnSetMonster._visible = true;
btnAddArtifact._visible = true;
txtAddArtifact._visible = true;
chkFullGear._visible = true;
txtTestLevel._visible = true;
txtTestMonster._visible = true;
nextFightText._visible = true;
monsterName._visible = true;
txtFireEvent._visible = true;
btnFireEvent._visible = true;
txtSetLevel._visible = true;
btnSetLevel._visible = true;
}
function OldSetMonster() {
nextMonster = Monster.GetRandomMonster(txtTestMonster.text);
}
function UpdateStats() {
txtLevel.text = (("Level " + p1.level) + " ") + p1.ClassName();
txtExp.text = p1.experience;
txtGold.text = "Gold " + p1.gold;
txtRunes.text = "Runes " + p1.runes;
txtName.text = p1.playerName;
expNeeded = Level.GetLevel(p1.level + 1, p1.classID).expForLevel;
expBar._width = (p1.experience * 125.8) / expNeeded;
}
function CheckForBoss() {
if (p1.experience >= Level.GetLevel(p1.level + 1, p1.classID).expForLevel) {
btnBoss.enabled = true;
btnBoss._visible = true;
} else {
btnBoss.enabled = false;
btnBoss._visible = false;
}
}
function SetMonster(mID) {
var _local2 = _root.p1;
_local2.skillIDs = new Array();
_local2.deprecatedSkillIDs = new Array();
var _local5;
if (mID == undefined) {
_local5 = _root.txtTestMonster.text;
} else {
_local5 = mID;
}
var _local7 = Monster.LoadMonster(_local5);
var _local6 = false;
if (_local7.level == 99) {
if (_local5 == 4) {
_local2.level = 1;
} else if (_local5 == 8) {
_local2.level = 2;
} else if (_local5 == 11) {
_local2.level = 3;
} else if (_local5 == 14) {
_local2.level = 4;
} else if (_local5 == 17) {
_local2.level = 5;
} else if (_local5 == 20) {
_local2.level = 6;
} else if (_local5 == 23) {
_local2.level = 7;
} else if (_local5 == 26) {
_local2.level = 8;
} else if (_local5 == 29) {
_local2.level = 9;
} else if (_local5 == 32) {
_local2.level = 10;
}
_local2.experience = Level.GetLevel(_local2.level + 1, _local2.classID).expForLevel;
_local6 = true;
} else if (_local7.level == -1) {
} else {
_local2.level = _local7.level;
_local2.experience = 0;
}
_local2.gold = 0;
_local2.artifacts = new Array();
switch (_local2.level) {
case 1 :
_local2.AddArtifact(Artifact.LoadArtifact(3));
_local2.AddArtifact(Artifact.LoadArtifact(5));
break;
case 2 :
_local2.AddArtifact(Artifact.LoadArtifact(5));
_local2.AddArtifact(Artifact.LoadArtifact(23));
_local2.AddArtifact(Artifact.LoadArtifact(10));
break;
case 3 :
_local2.AddArtifact(Artifact.LoadArtifact(41));
_local2.AddArtifact(Artifact.LoadArtifact(39));
_local2.AddArtifact(Artifact.LoadArtifact(10));
_local2.AddArtifact(Artifact.LoadArtifact(5));
_local2.AddArtifact(Artifact.LoadArtifact(55));
break;
case 4 :
_local2.AddArtifact(Artifact.LoadArtifact(41));
_local2.AddArtifact(Artifact.LoadArtifact(39));
_local2.AddArtifact(Artifact.LoadArtifact(10));
_local2.AddArtifact(Artifact.LoadArtifact(5));
_local2.AddArtifact(Artifact.LoadArtifact(55));
break;
case 5 :
_local2.AddArtifact(Artifact.LoadArtifact(83));
_local2.AddArtifact(Artifact.LoadArtifact(87));
_local2.AddArtifact(Artifact.LoadArtifact(70));
_local2.AddArtifact(Artifact.LoadArtifact(74));
_local2.AddArtifact(Artifact.LoadArtifact(78));
break;
case 6 :
_local2.AddArtifact(Artifact.LoadArtifact(83));
_local2.AddArtifact(Artifact.LoadArtifact(87));
_local2.AddArtifact(Artifact.LoadArtifact(91));
_local2.AddArtifact(Artifact.LoadArtifact(74));
_local2.AddArtifact(Artifact.LoadArtifact(78));
if (_local2.classID == 1) {
_local2.skillUpgradeIDs.push(277);
} else if (_local2.classID == 2) {
_local2.skillUpgradeIDs.push(286);
} else if (_local2.classID == 3) {
_local2.skillUpgradeIDs.push(295);
}
break;
case 7 :
_local2.AddArtifact(Artifact.LoadArtifact(83));
_local2.AddArtifact(Artifact.LoadArtifact(87));
_local2.AddArtifact(Artifact.LoadArtifact(91));
_local2.AddArtifact(Artifact.LoadArtifact(95));
_local2.AddArtifact(Artifact.LoadArtifact(117));
if (_local2.classID == 1) {
_local2.skillUpgradeIDs.push(277);
_local2.skillUpgradeIDs.push(278);
} else if (_local2.classID == 2) {
_local2.skillUpgradeIDs.push(286);
_local2.skillUpgradeIDs.push(288);
} else if (_local2.classID == 3) {
_local2.skillUpgradeIDs.push(295);
_local2.skillUpgradeIDs.push(297);
}
break;
case 8 :
_local2.AddArtifact(Artifact.LoadArtifact(83));
_local2.AddArtifact(Artifact.LoadArtifact(87));
_local2.AddArtifact(Artifact.LoadArtifact(91));
_local2.AddArtifact(Artifact.LoadArtifact(95));
_local2.AddArtifact(Artifact.LoadArtifact(117));
if (_local2.classID == 1) {
_local2.skillUpgradeIDs.push(277);
_local2.skillUpgradeIDs.push(278);
_local2.skillUpgradeIDs.push(281);
} else if (_local2.classID == 2) {
_local2.skillUpgradeIDs.push(286);
_local2.skillUpgradeIDs.push(288);
_local2.skillUpgradeIDs.push(290);
} else if (_local2.classID == 3) {
_local2.skillUpgradeIDs.push(295);
_local2.skillUpgradeIDs.push(297);
_local2.skillUpgradeIDs.push(300);
}
break;
case 9 :
_local2.AddArtifact(Artifact.LoadArtifact(142));
_local2.AddArtifact(Artifact.LoadArtifact(146));
_local2.AddArtifact(Artifact.LoadArtifact(91));
_local2.AddArtifact(Artifact.LoadArtifact(95));
_local2.AddArtifact(Artifact.LoadArtifact(117));
if (_local2.classID == 1) {
_local2.skillUpgradeIDs.push(277);
_local2.skillUpgradeIDs.push(278);
_local2.skillUpgradeIDs.push(281);
_local2.skillUpgradeIDs.push(280);
} else if (_local2.classID == 2) {
_local2.skillUpgradeIDs.push(286);
_local2.skillUpgradeIDs.push(288);
_local2.skillUpgradeIDs.push(290);
_local2.skillUpgradeIDs.push(289);
} else if (_local2.classID == 3) {
_local2.skillUpgradeIDs.push(295);
_local2.skillUpgradeIDs.push(297);
_local2.skillUpgradeIDs.push(300);
_local2.skillUpgradeIDs.push(296);
}
break;
case 10 :
_local2.AddArtifact(Artifact.LoadArtifact(142));
_local2.AddArtifact(Artifact.LoadArtifact(146));
_local2.AddArtifact(Artifact.LoadArtifact(191));
_local2.AddArtifact(Artifact.LoadArtifact(194));
_local2.AddArtifact(Artifact.LoadArtifact(117));
if (_local2.classID == 1) {
_local2.skillUpgradeIDs.push(277);
_local2.skillUpgradeIDs.push(278);
_local2.skillUpgradeIDs.push(281);
_local2.skillUpgradeIDs.push(280);
_local2.skillUpgradeIDs.push(285);
} else if (_local2.classID == 2) {
_local2.skillUpgradeIDs.push(286);
_local2.skillUpgradeIDs.push(288);
_local2.skillUpgradeIDs.push(290);
_local2.skillUpgradeIDs.push(289);
_local2.skillUpgradeIDs.push(294);
} else {
if (_local2.classID != 3) {
break;
}
_local2.skillUpgradeIDs.push(295);
_local2.skillUpgradeIDs.push(297);
_local2.skillUpgradeIDs.push(300);
_local2.skillUpgradeIDs.push(296);
_local2.skillUpgradeIDs.push(303);
}
}
var _local3 = 0;
while (_local3 < _root.skillArr.length) {
if (_root.skillArr[_local3].forSale && (_root.skillArr[_local3].reqClass == _root.p1.classID)) {
if (((_local6 && (_root.skillArr[_local3].reqLevel <= _root.p1.level)) || ((!_local6) && (_root.skillArr[_local3].reqLevel < _root.p1.level))) || (((_root.skillArr[_local3].reqLevel == 1) && (_root.p1.level == 1)) && (_root.skillArr[_local3].cost <= 5))) {
_local2.AddSkill(_root.skillArr[_local3]);
}
}
_local3++;
}
eventFightCounter = 0;
monstersBeatForLevel = 0;
totalVictories = 0;
CheckForBoss();
var _local4;
_local2.health = 0;
_local2.power = 0;
_local2.gold = 5000;
_local3 = 1;
while (_local3 < (_local2.level + 1)) {
_local4 = Level.GetLevel(_local3, _local2.classID);
_local2.health = _local2.health + _local4.hpBonus;
_local2.power = _local2.power + _local4.powerBonus;
_local3++;
}
_local2.maxHealth = _local2.health;
_root.UpdateStats();
_root.nextMonster = Monster.GetRandomMonster(_local5);
ResetBizaar();
}
function SaveMyGame() {
var _local5 = _root.saveGame.data;
if (_local5.slots == undefined) {
_local5.slots = new Array(4);
}
var _local2 = 0;
while (_local2 < 4) {
if (_local5.slots[_local2] == undefined) {
_local5.slots[_local2] = new Player();
}
_local2++;
}
var _local3 = _local5.slots[currentSaveSlot];
var _local4 = _root.p1;
_local3.muteSound = _root.muteSound;
_local3.muteMusic = _root.muteMusic;
_local3.completedEvents = _local4.completedEvents;
_local3.uncompletedEvents = _local4.uncompletedEvents;
_local3.level = _local4.level;
_local3.classID = _local4.classID;
_local3.playerName = _local4.playerName;
_local3.maxHealth = _local4.maxHealth;
_local3.power = _local4.power;
_local3.powerType = _local4.powerType;
_local3.gold = _local4.gold;
_local3.runes = _local4.runes;
_local3.experience = _local4.experience;
_local3.portraitID = _local4.portraitID;
_local3.totalVictories = _root.totalVictories;
_local3.eventFightCounter = _root.eventFightCounter;
_local3.skillIDs = _local4.skillIDs;
_local3.deprecatedSkillIDs = _local4.deprecatedSkillIDs;
_local3.skillUpgradeIDs = _local4.skillUpgradeIDs;
_local3.artifacts = _local4.artifacts;
_local3.milestones = _local4.milestones;
_local3.showTutorial = _local4.showTutorial;
_local3.difficulty = _local4.difficulty;
_local3.bizaarArtifactArr = _root.bizaarArtifactArr;
_local3.monstersBeatForLevel = _root.monstersBeatForLevel;
_root.saveGame.flush();
}
function MenuIn() {
menuInPtr = setInterval(MenuInLoop, 83);
}
function MenuOut() {
menuOutPtr = setInterval(MenuOutLoop, 83);
}
function MenuInLoop() {
if (mcMenuOptions._x >= (-43 - menuSpeed)) {
clearInterval(menuInPtr);
mcMenuOptions._x = -43;
} else {
mcMenuOptions._x = mcMenuOptions._x + menuSpeed;
}
}
function MenuOutLoop() {
if (mcMenuOptions._x <= (-182 + menuSpeed)) {
clearInterval(menuOutPtr);
mcMenuOptions._x = -182;
} else {
mcMenuOptions._x = mcMenuOptions._x - menuSpeed;
}
}
var nextMonster = Monster.GetRandomMonster();
monsterName.text = nextMonster.monsterName;
var boss = false;
btnBoss.enabled = false;
btnBoss._visible = false;
mcErrorText = mcErrorText2;
var PopupCallback;
var testSettings;
var tso;
if (testFlag) {
testSettings = SharedObject.getLocal("testSettings");
tso = testSettings.data;
txtAddArtifact.text = tso.txtAddArtifact;
txtTestMonster.text = tso.txtTestMonster;
txtFireEvent.text = tso.txtFireEvent;
}
if (muteSound) {
btnMute.selected = true;
} else {
btnMute.selected = false;
}
p1.UnloadSkills();
p2.UnloadSkills();
p1.UnloadArtifacts();
p2.UnloadArtifacts();
p1.RemoveAllDots();
p2.RemoveAllDots();
if (totalVictories >= 3) {
resetBizaarFlag = true;
totalVictories = 0;
}
if (resetBizaarFlag == true) {
ResetBizaar();
}
TestForBlackMarket();
if (!testFlag) {
HideTestButtons();
}
if (SharedObject.getLocal("talesworthData").data.errors != undefined) {
gotoAndStop ("errors");
}
mcMenuOptions.eventCatcher.useHandCursor = false;
mcMenuOptions.eventCatcher.onRollOver = function () {
clearInterval(menuInPtr);
clearInterval(menuOutPtr);
_root.MenuIn();
};
mcMenuOptions.eventCatcher.onRollOut = function () {
if (((!mcMenuOptions.btnExit.hitTest(_xmouse, _ymouse)) && (!mcMenuOptions.btnMusic.hitTest(_xmouse, _ymouse))) && (!mcMenuOptions.btnSound.hitTest(_xmouse, _ymouse))) {
clearInterval(menuInPtr);
clearInterval(menuOutPtr);
_root.MenuOut();
}
};
var menuInPtr;
var menuOutPtr;
var menuSpeed = 35;
if ((p1.level > 1) && (p1.maxHealth == 200)) {
var myLevel;
p1.health = 0;
p1.power = 0;
var i = 1;
while (i < (p1.level + 1)) {
myLevel = Level.GetLevel(i, p1.classID);
p1.health = p1.health + myLevel.hpBonus;
p1.power = p1.power + myLevel.powerBonus;
i++;
}
p1.maxHealth = p1.health;
}
SaveMyGame();
_root.kongregateStats.submit("MaxGold", p1.gold);
UpdateStats();
CheckForBoss();
EndTransition("Staging");
stop();
Instance of Symbol 156 MovieClip [Button] "btnSetMonster" in Frame 15
//component parameters
onClipEvent (construct) {
icon = "";
label = "Set Monster";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_click(eventObj) {
_root.SetMonster();
_root.tso.txtTestLevel = _root.txtTestLevel.text;
_root.tso.txtTestMonster = _root.txtTestMonster.text;
_root.tso.flush();
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 156 MovieClip [Button] "btnAddArtifact" in Frame 15
//component parameters
onClipEvent (construct) {
icon = "";
label = "Add Artifact";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_click(eventObj) {
_root.p1.AddArtifact(Artifact.LoadArtifact(_root.txtAddArtifact.text), true);
_root.tso.txtAddArtifact = _root.txtAddArtifact.text;
_root.tso.txtTestMonster = _root.txtTestMonster.text;
_root.tso.flush();
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 156 MovieClip [Button] "btnFireEvent" in Frame 15
//component parameters
onClipEvent (construct) {
icon = "";
label = "Fire Event";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_click(eventObj) {
_root.currentEvent = Event.GetEvent(_root.txtFireEvent.text);
if (_root.currentEvent != undefined) {
_root.attachMovie("mcTransition", "mcTransition", 40000, {_x:0, _y:0});
_root.mcTransition.enabled = false;
_root.mcTransition._alpha = 0;
_root.currentEvent.StartEvent();
}
_root.tso.txtFireEvent = _root.txtFireEvent.text;
_root.tso.flush();
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 432 MovieClip [TextInput] "txtTestMonster" in Frame 15
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 432 MovieClip [TextInput] "txtFireEvent" in Frame 15
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 432 MovieClip [TextInput] "txtAddArtifact" in Frame 15
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 156 MovieClip [Button] "btnSetLevel" in Frame 15
//component parameters
onClipEvent (construct) {
icon = "";
label = "Set Level";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_click(eventObj) {
_root.SetMyLevel();
}
this.addEventListener("click", __f_click);
}
Instance of Symbol 432 MovieClip [TextInput] "txtSetLevel" in Frame 15
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 20
function UpdatePowerAndHealth(playerNbr) {
if (playerNbr == 1) {
p1HealthLabelMC.p1HealthLabel.text = ((("Health " + p1.curHealth) + "/") + p1.health) + "";
var _local1 = "";
if (p1.powerType == 2) {
_local1 = (" (+" + (p1.powerRegenRate + p1.regenerating)) + ")";
}
p1PowerLabelMC.p1PowerLabel.text = ((((PowerTypeName(p1.powerType) + " ") + p1.curPower) + "/") + p1.power) + _local1;
} else if (playerNbr == 2) {
p2HealthLabelMC.p2HealthLabel.text = "Health ";
if (p1.CanSeeStats()) {
p2HealthLabelMC.p2HealthLabel.text = p2HealthLabelMC.p2HealthLabel.text + (((p2.curHealth + "/") + p2.health) + "");
}
p2PowerLabelMC.p2PowerLabel.text = PowerTypeName(p2.powerType);
if (p1.CanSeeStats()) {
p2PowerLabelMC.p2PowerLabel.text = p2PowerLabelMC.p2PowerLabel.text + (((" " + p2.curPower) + "/") + p2.power);
}
}
}
function ClearQueued() {
if (nextSkill != undefined) {
nextSkill.skillButton1.gotoAndPlay("up");
trace("Cleared " + nextSkill.skillName);
nextSkill = undefined;
}
}
function ProcessInterval() {
var _local1;
var _local12 = 0;
while (_local12 < 2) {
if (_local12 == 0) {
_local1 = p1;
} else {
_local1 = p2;
}
var _local13 = false;
var _local11 = 0;
var _local14 = false;
var _local9 = new Array();
var _local7 = _local1.buffs.length - 1;
while (_local7 >= 0) {
if (_local1.buffs[_local7].buffTime <= 0) {
_local9.push(_local7);
} else {
if (_local1.buffs[_local7].skill.dotAmount != 0) {
if (_local1.IsImmuneDmg(_local1.buffs[_local7].skill.dmgType) || (_local1.IsImmuneDmg(10))) {
trace("immmune to dot");
} else {
var _local3 = _local1.buffs[_local7].skill.dotAmount;
if (_local1.buffs[_local7].skill.dotAmount < 0) {
var _local5 = 0;
var _local8 = 0;
var _local4 = 0;
var _local15 = 0;
var _local2 = _local1.buffs[_local7];
_local8 = Math.round(_local2.bonusDamageTotal / _local2.buffTimeTotal);
if ((_local2.buffTime == 1) && (_local2.bonusDamage < _local2.bonusDamageTotal)) {
_local5 = _local2.bonusDamageTotal - _local2.bonusDamage;
} else if ((_local2.bonusDamage < _local2.bonusDamageTotal) && (_local8 <= (_local2.bonusDamageTotal - _local2.bonusDamage))) {
_local5 = Math.round(_local2.bonusDamageTotal / _local2.buffTimeTotal);
_local2.bonusDamage = _local2.bonusDamage + _local5;
}
tmpReduction = Math.round(_local2.damageAbsorbedTotal / _local2.buffTimeTotal);
if ((_local2.buffTime == 1) && (_local2.damageAbsorbed < _local2.damageAbsorbedTotal)) {
_local4 = _local2.damageAbsorbedTotal - _local2.damageAbsorbed;
} else if ((_local2.damageAbsorbed < _local2.damageAbsorbedTotal) && (tmpReduction <= (_local2.damageAbsorbedTotal - _local2.damageAbsorbed))) {
_local4 = Math.round(_local2.damageAbsorbedTotal / _local2.buffTimeTotal);
_local2.damageAbsorbed = _local2.damageAbsorbed + _local4;
}
_local3 = (_local3 - _local5) + _local4;
if (_local3 > 0) {
_local3 = 0;
}
}
var _local6 = _local3;
if (_local1.classID == 2) {
_local6 = _local1.ReduceManaShield(_local3);
} else if (_local1.classID == 3) {
_local6 = _local1.ReduceAdrenalineRush(_local3);
}
_local1.ModHealth(_local6);
}
}
if (_local1.buffs[_local7].stun == true) {
_local13 = true;
}
if (_local1.buffs[_local7].skill.driftSpeed > 0) {
_local14 = true;
}
if (_local1.buffs[_local7].skill.slowPercent != 0) {
_local11 = _local11 + _local1.buffs[_local7].skill.slowPercent;
}
}
_local1.buffs[_local7].buffTime = _local1.buffs[_local7].buffTime - 1;
_local1.buffs[_local7].mcRef.SetText(_local1.buffs[_local7].buffTime);
_local7--;
}
_local7 = 0;
while (_local7 < _local9.length) {
_local1.RemoveDot(_local9[_local7]);
_local7++;
}
if (!_local13) {
_local1.stunned = false;
}
if ((!_local14) && (_local1.drifting > 0)) {
_local1.drifting = 0;
_local1.HomeSkills();
}
_local1.EnableSkills();
_local1.slowed = _local11;
if (_local1.powerRegenRate > 0) {
var _local10 = Math.floor((_local1.powerRegenRate + _local1.regenerating) + _local1.powerRegenRateRemainder);
if (_local10 != 0) {
_local1.ModPower(_local10);
}
_local1.powerRegenRateRemainder = ((_local1.powerRegenRate + _local1.regenerating) + _local1.powerRegenRateRemainder) - _local10;
}
_local12++;
}
}
function ForgetSpell_Start() {
Mouse.hide();
crippleCursor = _root.attachMovie("mcDropletCripple", "crippleCursor", 70000);
SetSlowCursor();
var i = 0;
while (i < (p1.skills.length + 1)) {
if ((p1.skills[i].skillID == 121) || (p1.skills[i].skillID == 331)) {
p1ForgetSkill = p1.skills[i];
break;
}
i++;
}
p1.FadeOutSkillButtons();
mcForgetInstructions = _root.attachMovie("forgetInstructions", "forgetInstructions", 69999, {_x:6, _y:255});
mouseListener = new Object();
mouseListener.onMouseMove = function () {
crippleCursor._x = _xmouse;
crippleCursor._y = _ymouse;
};
mouseListener.onMouseUp = function () {
var i = 0;
while (i < (p2.skills.length + 1)) {
var testSkill = eval ("p2_skill" + p2.skills[i].skillID);
if (crippleCursor.hitTest(testSkill.greenHitBox)) {
_root.p1ForgetSkill.disabledSkillCategory = 10000 + p2.skills[i].skillID;
p2.ApplyDot(_root.p1ForgetSkill, p1);
ClearForgetSkill();
return;
}
i++;
}
};
Mouse.addListener(mouseListener);
crippleCursor._x = _xmouse;
crippleCursor._y = _ymouse;
}
function ClearForgetSkill() {
crippleCursor.removeMovieClip();
crippleCursor = undefined;
mcForgetInstructions.removeMovieClip();
p1.FadeInSkillButtons();
Mouse.show();
Mouse.removeListener(mouseListener);
SetSlowCursor();
}
function ForgetActive() {
if (crippleCursor != undefined) {
return(true);
}
return(false);
}
function FPSInterval() {
CheckForWinner();
if (p1.drifting > 0) {
ProcessDrift();
}
if (!battleOver) {
Heartbeat();
}
}
function ProcessDrift() {
var boundryMinX = 40;
var boundryMaxX = 400;
var boundryMinY = 10;
var boundryMaxY = 500;
var i = 0;
while (i < p1.skills.length) {
var moveSkill = eval ("p1_skill" + p1.skills[i].skillID);
if ((((moveSkill._x + moveSkill._width) + moveSkill.driftX) > boundryMaxX) || ((moveSkill._x + moveSkill.driftX) < boundryMinX)) {
moveSkill.driftX = moveSkill.driftX * -1;
}
if ((((moveSkill._y + moveSkill._height) + moveSkill.driftY) > boundryMaxY) || ((moveSkill._y + moveSkill.driftY) < boundryMinY)) {
moveSkill.driftY = moveSkill.driftY * -1;
}
moveSkill._x = moveSkill._x + moveSkill.driftX;
if (ShouldIReverseX(moveSkill)) {
moveSkill.driftX = moveSkill.driftX * -1;
moveSkill._x = moveSkill._x + moveSkill.driftX;
}
moveSkill._y = moveSkill._y + moveSkill.driftY;
if (ShouldIReverseY(moveSkill)) {
moveSkill.driftY = moveSkill.driftY * -1;
}
if (p1.DriftTimeLeft() == 0) {
moveSkill._alpha = moveSkill._alpha - 8;
if (moveSkill._alpha < 0) {
moveSkill._alpha = 0;
}
}
i++;
}
}
function ShouldIReverseX(object1) {
var j = 0;
while (j < p1.skills.length) {
var moveSkillHit = eval ("p1_skill" + p1.skills[j].skillID);
if (object1 != moveSkillHit) {
if (object1.greenHitBox.hitTest(moveSkillHit.greenHitBox)) {
var bounds1 = object1.getBounds(this);
var bounds2 = moveSkillHit.getBounds(this);
if ((bounds1.xMin < bounds2.xMax) || (bounds1.xMax > bounds2.xMin)) {
return(true);
}
}
}
j++;
}
return(false);
}
function ShouldIReverseY(object1) {
var j = 0;
while (j < p1.skills.length) {
var moveSkillHit = eval ("p1_skill" + p1.skills[j].skillID);
if (object1 != moveSkillHit) {
if (object1.greenHitBox.hitTest(moveSkillHit.greenHitBox)) {
var bounds1 = object1.getBounds(this);
var bounds2 = moveSkillHit.getBounds(this);
if ((bounds1.yMin < bounds2.yMax) || (bounds1.yMax > bounds2.yMin)) {
return(true);
}
}
}
j++;
}
return(false);
}
function CheckForWinner() {
if (p1.curHealth <= 0) {
_root.PlaySound(10);
ClearFight();
if ((currentEvent != undefined) && (currentEvent.currentEncounter.loseDialogueID != -1)) {
PopupCallback = ShowEncounterLossDialogue;
} else {
PopupCallback = ClearFightFinal;
}
this.attachMovie("battleCoverup", "battleCoverupMC", 20000, {_x:0, _y:0});
battleCoverupMC.enabled = false;
battleCoverupMC._alpha = 20;
this.attachMovie("Battle_popup", "battlePopup", 20001, {_x:164, _y:40});
battlePopup.popText.html = true;
var _local6 = "";
if (!boss) {
_local6 = "<font size='20' color='#bb6900'>DEFEAT!</font><br><br><font size='15' color='#020ea2'>You remain the same level, but your experience has been reduced by 20%!</font>";
p1.experience = Math.round(p1.experience * 0.8);
} else {
_local6 = "<font size='20' color='#bb6900'>DEFEAT!</font><br><br><font size='15' color='#020ea2'>You are defeated! You lose 10% of your gold, but keep your experience.</font>";
p1.gold = Math.round(p1.gold * 0.9);
}
battlePopup.popTextShadow.htmlText = "<font size='20' color='#000000'>DEFEAT!</font>";
battlePopup.popText.htmlText = _local6;
} else if (p2.curHealth <= 0) {
_root.PlaySound(8);
_root.PlaySound(11);
if (_root.talesKongregateFlag) {
_root.kongregateStats.submit("MonstersKilled", 1);
}
var _local4 = RandRange(p2.goldMin, p2.goldMax);
var _local5 = 0;
if (!boss) {
var _local9 = 9;
var _local11 = 0.05;
if (monstersBeatForLevel > _local9) {
_local5 = 1 - ((monstersBeatForLevel - _local9) * _local11);
if (_local5 < 0.1) {
_local5 = 0.1;
}
_local4 = _local4 * _local5;
_local4 = Math.round(_local4);
}
}
totalVictories++;
if (currentEvent == undefined) {
eventFightCounter++;
monstersBeatForLevel++;
} else {
trace("currentEvent = " + currentEvent.eventTitle);
}
p1.ModGold(_local4);
p1.ModExp(p2.experience);
var _local7 = Level.GetLevel(p1.level + 1, p1.classID);
var _local10 = false;
if ((p1.experience == _local7.expForLevel) && (boss)) {
p1.level++;
_local10 = true;
_local7 = Level.GetLevel(p1.level, p1.classID);
p1.health = p1.health + _local7.hpBonus;
p1.maxHealth = p1.health;
p1.power = p1.power + _local7.powerBonus;
p1.experience = 0;
monstersBeatForLevel = 0;
if (_root.talesKongregateFlag) {
_root.kongregateStats.submit("MaxLevelReachedAnyDifficulty", p1.level);
if (p1.difficulty == 0) {
_root.kongregateStats.submit("MaxLevelReachedNormal", p1.level);
} else if (p1.difficulty == 1) {
_root.kongregateStats.submit("MaxLevelReachedEasy", p1.level);
}
}
}
ClearFight();
this.attachMovie("battleCoverup", "battleCoverupMC", 20000, {_x:0, _y:0});
battleCoverupMC.enabled = false;
battleCoverupMC._alpha = 20;
if (p2.artifacts.length > 0) {
trace("option1");
p1.AddArtifact(p2.artifacts[0], false);
PopupCallback = ShowLoot;
} else if ((currentEvent != undefined) && (currentEvent.currentEncounter.winDialogueID != -1)) {
PopupCallback = ShowEncounterDialogue;
trace("option 2");
} else if ((currentEvent != undefined) && (currentEvent.currentEncounter.winEncounterID != -1)) {
PopupCallback = StartNextEncounter;
trace("option 3");
} else {
PopupCallback = ClearFightFinal;
}
this.attachMovie("Battle_popup", "battlePopup", 20001, {_x:164, _y:40});
if (p2.artifacts.length > 0) {
battlePopup.btnOK._visible = false;
battlePopup.btnContinue._visible = true;
} else {
battlePopup.btnOK._visible = true;
battlePopup.btnContinue._visible = false;
}
var _local8 = ("Gold: " + _local4) + "";
if (_local5 != 0) {
_local8 = ((("Gold: " + _local4) + " (Gold Reduced ") + ((1 - _local5) * 100)) + "%)";
}
if (p1.level == 11) {
_local8 = "";
}
battlePopup.popText.html = true;
var _local6 = "<font size='22' color='#bb6900'>VICTORY!</font><br><br><font size='15' color='#020ea2'>" + _local8;
battlePopup.popTextShadow.htmlText = "<font size='22' color='#000000'>VICTORY!</font>";
if (_local10) {
if (p1.level == 11) {
var _local3 = _root.saveGame.data;
if (p1.difficulty == 0) {
if (p1.classID == 1) {
_local3.completeEngNorm = true;
} else if (p1.classID == 2) {
_local3.completePsiNorm = true;
} else if (p1.classID == 3) {
_local3.completeJugNorm = true;
}
} else if (p1.difficulty == 1) {
if (p1.classID == 1) {
_local3.completeEngEasy = true;
} else if (p1.classID == 2) {
_local3.completePsiEasy = true;
} else if (p1.classID == 3) {
_local3.completeJugEasy = true;
}
}
_root.saveGame.flush();
if (_root.talesKongregateFlag) {
_root.kongregateStats.submit("GameWonAnyClassAnyDifficulty", 1);
if (p1.difficulty == 0) {
_root.kongregateStats.submit("GameWonAnyClassNormal", 1);
if (p1.classID == 1) {
_root.kongregateStats.submit("GameWonEngineerNormal", 1);
} else if (p1.classID == 2) {
_root.kongregateStats.submit("GameWonPsionicNormal", 1);
} else if (p1.classID == 3) {
_root.kongregateStats.submit("GameWonJuggernautNormal", 1);
}
} else if (p1.difficulty == 1) {
_root.kongregateStats.submit("GameWonAnyClassEasy", 1);
if (p1.classID == 1) {
_root.kongregateStats.submit("GameWonEngineerEasy", 1);
} else if (p1.classID == 2) {
_root.kongregateStats.submit("GameWonPsionicEasy", 1);
} else if (p1.classID == 3) {
_root.kongregateStats.submit("GameWonJuggernautEasy", 1);
}
}
}
_local6 = _local6 + "You have conquered the Talesworth Arena!";
} else {
_local6 = _local6 + (("<br>You are now level " + p1.level) + "!");
}
} else if (p1.experience == _local7.expForLevel) {
_local6 = _local6 + "<br>Experience: At Max, Boss Unlocked";
} else {
_local6 = _local6 + ("<br>Experience: " + p2.experience);
}
battlePopup.popText.htmlText = _local6;
}
}
function ShowEncounterLossDialogue() {
ShowEncounterDialogue(true);
}
function ShowEncounterDialogue(lost) {
removeMovieClip(lootedArtifact);
removeMovieClip(battlePopup);
if (lost) {
currentEvent.currentDialogue = Dialogue.GetDialogue(currentEvent.currentEncounter.loseDialogueID);
} else {
currentEvent.currentDialogue = Dialogue.GetDialogue(currentEvent.currentEncounter.winDialogueID);
}
currentEvent.StartEvent();
}
function StartNextEncounter() {
removeMovieClip(battleCoverupMC);
currentEvent.currentEncounter = Encounter.GetEncounter(currentEvent.currentEncounter.winEncounterID);
ClearFightFinal();
_root.StartTransition("BattleBounce", true);
}
function ShowLoot() {
var _local6 = "<font size='22' color='#bb6900'>ARTIFACT LOOTED!</font>";
battlePopup.popTextShadow.htmlText = "<font size='22' color='#000000'>ARTIFACT LOOTED!</font>";
battlePopup.popText.htmlText = _local6;
if ((currentEvent != undefined) && (currentEvent.currentEncounter.winDialogueID != -1)) {
PopupCallback = ShowEncounterDialogue;
} else if ((currentEvent != undefined) && (currentEvent.currentEncounter.winEncounterID != -1)) {
PopupCallback = StartNextEncounter;
} else {
PopupCallback = ClearFightFinal;
}
battlePopup.btnOK._visible = true;
battlePopup.btnContinue._visible = false;
var _local5 = 20005;
var _local8;
var _local7;
_local8 = battlePopup._x + 62;
_local7 = battlePopup._y + 55;
var _local3 = this.attachMovie("itemTavern", "lootedArtifact", _local5);
_local3._x = _local8;
_local3._y = _local7;
var _local4 = new TextFormat();
_local4.font = "Verdana";
_local4.size = 12;
_local4.bold = true;
_local4.color = _root.GetQualityColor(p2.artifacts[0].qualityID);
_local3.itemName.setNewTextFormat(_local4);
_local3.slotName.text = _root.SlotName(p2.artifacts[0].slotID);
_local3.itemName.text = p2.artifacts[0].artifactName;
_local3.itemDesc.text = p2.artifacts[0].GetDescription();
_local3.gotoAndStop(3);
}
function Cheat() {
if (p2.monsterID == 32) {
var filter = (new flash.filters.GlowFilter(0, 0.8, 10, 10, 5, 3, false, false));
var filterArray = new Array();
filterArray.push(filter);
mcKraxCheats.filters = filterArray;
mcKraxCheats._visible = true;
mcKraxCheats.play();
var i = 0;
while (i < p2.skills.length) {
if (p2.skills[i].skillID == 99) {
var s = eval ("p2_skill" + p2.skills[i].skillID);
s.SkillPress();
return;
}
i++;
}
}
}
function ClearFight() {
battleOver = true;
Mouse.removeListener(mouseListener);
clearInterval(mainInterval);
clearInterval(aiInterval);
crippleCursor.removeMovieClip();
crippleCursor = undefined;
mcForgetInstructions.removeMovieClip();
p1.slowCursor = 0;
Mouse.show();
removeMovieClip(dotCursor);
removeMovieClip(slowedCursor);
RemoveTracers();
removeMovieClip(skillButtonCoverup);
clearInterval(soundFadeInPtr);
soundFadeInPtr = setInterval(FadeOutSound, 83, 5);
p1.DisableSkills();
p2.DisableSkills();
p1.StopCast();
p2.StopCast();
p1.StopSkills();
p2.StopSkills();
p1.RemoveAllDots();
p2.RemoveAllDots();
p1.damageWindow.DeleteAll();
p2.damageWindow.DeleteAll();
ShowEnemyCastbar();
aiCursor.removeMovieClip();
mcOpening.removeMovieClip();
mcTaunt.removeMovieClip();
mcKraxCheats.removeMovieClip();
}
function ClearFightFinal() {
removeMovieClip(lootedArtifact);
removeMovieClip(battlePopup);
removeMovieClip(p1_health);
removeMovieClip(p1_power);
removeMovieClip(p2_health);
removeMovieClip(p2_power);
removeMovieClip(p1HealthLabelMC);
removeMovieClip(p1PowerLabelMC);
removeMovieClip(p2HealthLabelMC);
removeMovieClip(p2PowerLabelMC);
removeMovieClip(p1SpecialText);
removeMovieClip(p2SpecialText);
p1.UnloadSkills();
p2.UnloadSkills();
p1.UnloadArtifacts();
p2.UnloadArtifacts();
p1.ReleasePortrait();
p2.ReleasePortrait();
p1.skillIDs = p1.tmpSkillIDs;
if (p1.curHealth <= 0) {
StartTransition("Staging", true);
} else if (p1.level == 11) {
currentEvent = undefined;
StartTransition("win", true);
} else {
StartTransition("Staging", true);
}
}
function GetRandomTaunt() {
var _local3 = _root.RandRange(1, 5);
var _local2 = "";
switch (_local3) {
case 1 :
_local2 = "Bring it on, chode! You are weak!";
break;
case 2 :
_local2 = "I fart in your general direction!";
break;
case 3 :
_local2 = "Striking me down will only make me stronger.";
break;
case 4 :
_local2 = "Cry more, noob. kthxbye. QQ. gtfo.";
break;
case 5 :
_local2 = "That all you got? Just not hurting me. At all.";
}
return(_local2);
}
function ShowTaunt() {
}
function HideTaunt() {
}
function Heartbeat() {
var i = 0;
while (i < p1.skillIDs.length) {
var testSkill = eval ("p1_skill" + p1.skillIDs[i]);
if (Math.abs((100 - Math.round(p1.shrink * 100)) - testSkill._xscale) <= 3) {
} else if (testSkill._xscale < (100 - Math.round(p1.shrink * 100))) {
testSkill._xscale = testSkill._xscale + 3;
testSkill._yscale = testSkill._yscale + 3;
if (testSkill._xscale >= 100) {
testSkill._xscale = 100;
}
if (testSkill._yscale >= 100) {
testSkill._yscale = 100;
}
} else {
testSkill._xscale = testSkill._xscale - 3;
testSkill._yscale = testSkill._yscale - 3;
}
if (testSkill.newLoc == undefined) {
} else if (Math.abs(flash.geom.Point.distance(testSkill.currentLoc, testSkill.newLoc)) < 3) {
testSkill.currentLoc = testSkill.newLoc;
testSkill._x = testSkill.newLoc.x;
testSkill._y = testSkill.newLoc.y;
testSkill.newLoc = undefined;
} else {
var newSkillLoc = flash.geom.Point.interpolate(testSkill.currentLoc, testSkill.newLoc, 0.5);
testSkill.currentLoc = newSkillLoc;
testSkill._x = newSkillLoc.x;
testSkill._y = newSkillLoc.y;
}
i++;
}
if ((p1.slowCursor > 0) && (!ForgetActive())) {
var curSlowCursor = p1.slowCursor;
if (p1.SlowCursorTimeLeft() == 0) {
cursorSpeedUp = cursorSpeedUp + 2.5;
curSlowCursor = curSlowCursor + cursorSpeedUp;
}
var mouseLoc = (new flash.geom.Point(_xmouse, _ymouse));
var slowedLoc = (new flash.geom.Point(slowedCursor._x, slowedCursor._y));
if (flash.geom.Point.distance(slowedLoc, mouseLoc) > curSlowCursor) {
var newPoint = flash.geom.Point.interpolate(mouseLoc, slowedLoc, curSlowCursor / flash.geom.Point.distance(slowedLoc, mouseLoc));
slowedCursor._x = newPoint.x;
slowedCursor._y = newPoint.y;
AddTracer();
} else {
slowedCursor._x = _xmouse;
slowedCursor._y = _ymouse;
}
_xmouse = slowedCursor._x;
_ymouse = slowedCursor._y;
ProcessTracers();
}
if (p1.taunting > 0) {
if (mcTaunt._visible == false) {
mcTaunt._alpha = 10;
mcTaunt.tauntText.text = GetRandomTaunt();
mcTaunt._visible = true;
} else if ((mcTaunt._alpha <= 90) && (p1.taunting > 30)) {
mcTaunt._alpha = mcTaunt._alpha + 45;
} else if (p1.taunting <= 8) {
mcTaunt._alpha = mcTaunt._alpha - 50;
}
if (p1.taunting == 1) {
mcTaunt._visible = false;
}
p1.taunting--;
}
if ((p1.classID == 3) && (p1.HasParentSkill(20))) {
if (p2.hasOpening) {
if ((p2.hasOpeningCounter++) > 20) {
p2.hasOpeningCounter = 0;
p2.hasOpening = false;
mcOpening._visible = false;
p2.chanceOfOpening = _root.RandRange(0, 120);
}
} else {
p2.hasOpeningCounter++;
if (p2.hasOpeningCounter >= p2.chanceOfOpening) {
p2.hasOpeningCounter = 0;
p2.hasOpening = true;
mcOpening._visible = true;
}
}
}
if (p1.HasTelepathy()) {
if (aiCursor._alpha != 100) {
aiCursor._alpha = aiCursor._alpha + 10;
if (aiCursor._alpha > 100) {
aiCursor._alpha = 100;
}
}
} else if (aiCursor._alpha != 0) {
aiCursor._alpha = aiCursor._alpha - 10;
if (aiCursor._alpha < 0) {
aiCursor._alpha = 0;
}
}
if ((aiCursorDest != undefined) && (aiCursorLoc != aiCursorDest)) {
aiCursorLoc = flash.geom.Point.interpolate(aiCursorLoc, aiCursorDest, 0.5);
aiCursor._x = aiCursorLoc.x;
aiCursor._y = aiCursorLoc.y;
}
if (((!p2_castbar.casting) && (!p2.stunned)) || (p1.HasTelepathy())) {
var currentTimer = getTimer();
if (p2.pauseTimeStart == 0) {
p2.pauseTimeStart = currentTimer;
} else if (((currentTimer - p2.pauseTimeStart) > p2.pauseTime) || (p1.HasTelepathy())) {
if ((currentTimer - p2.pauseTimeStart) > p2.pauseTime) {
p2.pauseTimeStart = 0;
}
var upSkills = new Array();
var downSkills = new Array();
var s = 0;
while (s < p2.skillPriority.length) {
if (((!eval ("p2_skill" + p2.skillPriority[s]).onCooldown) && (eval ("p2_skill" + p2.skillPriority[s]).powerCost <= p2.curPower)) && (eval ("p2_skill" + p2.skillPriority[s]).disabledSkillCtr == 0)) {
upSkills.push(p2.skillPriority[s]);
} else if ((eval ("p2_skill" + p2.skillPriority[s]).onCooldown && (eval ("p2_skill" + p2.skillPriority[s]).powerCost <= p2.curPower)) && (eval ("p2_skill" + p2.skillPriority[s]).disabledSkillCtr == 0)) {
downSkills.push(p2.skillPriority[s]);
}
s++;
}
var findingGoodSpell = true;
var theRandSkill = undefined;
if (upSkills.length > 0) {
theRandSkill = eval ("p2_skill" + upSkills[0]);
while (findingGoodSpell) {
if (theRandSkill.removeDmgType != -1) {
if (p2.HasDmgTypeDebuff(theRandSkill.removeDmgType)) {
findingGoodSpell = false;
}
} else if (eval ("p2_skill" + upSkills[0]).dmgType == 2) {
if (p2.curHealth <= (p2.health * 0.5)) {
findingGoodSpell = false;
}
} else if (theRandSkill.syphonPowerAmt > 0) {
if (p1.curPower > 0) {
findingGoodSpell = false;
}
} else if (theRandSkill.refillPower) {
if (p2.curPower <= (p2.power * 0.5)) {
findingGoodSpell = false;
}
} else if (theRandSkill.removeBuff && theRandSkill.isDebuff) {
if (p1.HasGoodBuffs()) {
findingGoodSpell = false;
}
} else {
findingGoodSpell = false;
}
if (findingGoodSpell) {
upSkills.shift();
if (upSkills.length > 0) {
theRandSkill = eval ("p2_skill" + upSkills[0]);
} else {
theRandSkill = undefined;
findingGoodSpell = false;
}
}
}
}
if (!battleOver) {
if (((((currentTimer - p2.pauseTimeStart) > p2.pauseTime) && (!p2_castbar.casting)) && (!p2.stunned)) && (theRandSkill != undefined)) {
theRandSkill.SkillPress();
} else if (theRandSkill != undefined) {
aiCursorDest = new flash.geom.Point(theRandSkill._x, theRandSkill._y);
} else {
downSkills.sort(orderCooldowns);
if (downSkills.length > 0) {
aiCursorDest = new flash.geom.Point(eval ("p2_skill" + downSkills[0])._x, eval ("p2_skill" + downSkills[0])._y);
}
}
}
}
}
}
function orderCooldowns(a, b) {
var cd1 = eval ("p2_skill" + a).GetCooldownRemaining();
var cd2 = eval ("p2_skill" + b).GetCooldownRemaining();
if (cd1 < cd2) {
return(-1);
}
if (cd1 > cd2) {
return(1);
}
return(0);
}
function ShowCountdown() {
removeMovieClip(battlePopup);
countdown._visible = true;
p1.AddBlankTooltips();
_root.UnsetDescriptionParent();
countdown.play();
}
function StartBattle() {
p1.RemoveSkillTooltips();
mainInterval = setInterval(ProcessInterval, 1000);
aiInterval = setInterval(FPSInterval, 83);
}
function ShowPreparePopup() {
PopupCallback = ShowCountdown;
this.attachMovie("Battle_popup", "battlePopup", 14501, {_x:164, _y:40});
battlePopup.btnOK._visible = true;
battlePopup.btnContinue._visible = false;
battlePopup.popText.html = true;
battlePopup.popText.htmlText = "<font size='20' color='#bb6900'>PREPARE FOR BATTLE!</font><br><br><font size='15' color='#020ea2'>Hover over your opponents skills and know thy enemy...</font>";
battlePopup.popTextShadow.htmlText = "<font size='20' color='#000000'>PREPARE FOR BATTLE!</font>";
}
function SetShrinkSkills() {
}
function SetSlowCursor() {
if ((p1.slowCursor > 0) && (!ForgetActive())) {
Mouse.hide();
slowedCursor = _root.attachMovie("slowCursor", "slowedCursor", 70100);
dotCursor = _root.attachMovie("mcDotCursor", "dotCursor", 70250);
slowedCursor._x = _xmouse;
slowedCursor._y = _ymouse;
dotCursor._x = _xmouse;
dotCursor._y = _ymouse;
curSlowCursorLevel = 70105 /* 0x0111D9 */;
_root.attachMovie("skillButtonCoverup", "skillButtonCoverup", 71000, {_x:-22, _y:240});
skillButtonCoverup._alpha = 0;
skillButtonCoverup._x = -22;
skillButtonCoverup._y = 246;
cursorSpeedUp = 0;
} else {
if (!ForgetActive()) {
Mouse.show();
}
removeMovieClip(dotCursor);
removeMovieClip(slowedCursor);
RemoveTracers();
removeMovieClip(skillButtonCoverup);
}
}
function ShowEnemyCastbar() {
mcHideP2Castbar._visible = false;
}
function HideEnemyCastbar() {
mcHideP2Castbar._visible = true;
}
function AddTracer() {
var myID = ("tmpMC" + getTimer());
duplicateMovieClip (slowedCursor, myID, curSlowCursorLevel++);
var traceMC = eval (myID);
traceMC._alpha = 75;
tracerArr.push(traceMC);
}
function ProcessTracers() {
var _local1 = tracerArr.length - 1;
while (_local1 > -1) {
tracerArr[_local1]._alpha = tracerArr[_local1]._alpha - 5;
if (tracerArr[_local1]._alpha < 20) {
removeMovieClip(tracerArr[_local1]);
tracerArr.splice(_local1, 1);
}
_local1--;
}
}
function RemoveTracers() {
var _local1 = tracerArr.length - 1;
while (_local1 > -1) {
removeMovieClip(tracerArr[_local1]);
tracerArr.splice(_local1, 1);
_local1--;
}
}
var battleOver = false;
var battleCoverupPtr;
var popupPtr;
var nextSkill = undefined;
var FRAME_QUEUED = 23;
var FRAME_DISABLED = 21;
countdown._visible = false;
mcKraxCheats._visible = false;
if (mcKraxCheats.getDepth() != 54985) {
mcKraxCheats.swapDepths(54985);
}
mcKraxCheats.gotoAndStop(1);
p1.ResetPlayer();
var p2 = new Player();
if (boss) {
p2.LoadMonsterStats(nextMonster);
} else if (currentEvent != undefined) {
p2.LoadMonsterStats(Monster.LoadMonster(currentEvent.currentEncounter.monsterID));
} else {
p2.LoadMonsterStats(nextMonster);
}
var randArt = RandRange(0, 100);
if (randArt < 20) {
var newArt = Artifact.GetRandomArtifact(p1.level);
p2.AddArtifact(newArt, true);
}
if (testFlag) {
}
p1.DrawArtifacts();
p2.DrawArtifacts();
p1.PrepAllSkills();
p1.curHealth = p1.health;
if (p1.classID == 3) {
p1.curPower = 0;
} else {
p1.curPower = p1.power;
}
p1.healthBar = p1_health;
p1.SetMaxHealthReduction(0);
p2.healthBar = p2_health;
p2.healthBarWidth = p2_health.myMeterBar._width;
p1.portrait = p1_portrait;
p2.portrait = p2_portrait;
p1.castBar = p1_castbar;
p2.castBar = p2_castbar;
p1.powerBar = p1_power;
p1.powerBarWidth = p1_power.myMeterBar._width;
if (p1.power > 0) {
var my_color = new Color(p1.powerBar.myMeterBar);
if (p1.powerType == 1) {
my_color.setRGB(12961571);
} else if (p1.powerType == 2) {
my_color.setRGB(2504837);
} else if (p1.powerType == 3) {
my_color.setRGB(12618560);
}
}
p2.powerBar = p2_power;
p2.powerBarWidth = p2_power.myMeterBar._width;
if (p2.power > 0) {
var my_color = new Color(p2.powerBar.myMeterBar);
if (p2.powerType == 1) {
my_color.setRGB(12961571);
} else if (p2.powerType == 2) {
my_color.setRGB(2504837);
} else if (p2.powerType == 3) {
my_color.setRGB(12618560);
}
}
p2HealthLabelMC._visible = true;
p2PowerLabelMC._visible = true;
if (p1.power == 0) {
p1_power._visible = false;
p1PowerLabelMC._visible = false;
}
if (p2.power == 0) {
p2_power._visible = false;
p2PowerLabelMC._visible = false;
}
UpdatePowerAndHealth(1);
UpdatePowerAndHealth(2);
mcHideP2Castbar._visible = false;
p1Name.text = (((p1.playerName + " - Level ") + p1.level) + " ") + p1.ClassName();
p2Name.text = p2.playerName;
var myBitmapData;
var myBitMapData2;
myBitmapData = flash.display.BitmapData.loadBitmap("portrait" + p1.portraitID);
p1.portrait = this.createEmptyMovieClip("mc", 5500);
p1.portrait._x = 1;
p1.portrait._y = 30;
p1.portrait.attachBitmap(myBitmapData, 5501);
myBitmapData2 = flash.display.BitmapData.loadBitmap("portrait" + p2.portraitID);
p2.portrait = this.createEmptyMovieClip("mc2", 5505);
p2.portrait._x = 556;
p2.portrait._y = 29;
p2.portrait.attachBitmap(myBitmapData2, 5506);
p1_power.swapDepths(5510);
p1_health.swapDepths(5511);
if (p2_power._visible == true) {
p2_power.swapDepths(5512);
}
p2_health.swapDepths(5513);
p1HealthLabelMC.swapDepths(5522);
p1PowerLabelMC.swapDepths(5523);
p2HealthLabelMC.swapDepths(5524);
if (p2_power._visible == true) {
p2PowerLabelMC.swapDepths(5525);
}
p1SpecialText.swapDepths(5526);
p2SpecialText.swapDepths(5527);
p1.damageWindow = this.attachMovie("portrait", "p1damageWindow", 5601, {_x:17, _y:49});
p2.damageWindow = this.attachMovie("portrait", "p2damageWindow", 5600, {_x:582, _y:49});
p1.specialDamageWindow = p1SpecialText;
p2.specialDamageWindow = p2SpecialText;
p2.healthBar.maxHealthReducedTxt._visible = false;
p2.healthBar.mcMaxHealthBar._x = 202;
p1.powerBar.maxHealthReducedTxt._visible = false;
p1.powerBar.mcMaxHealthBar._x = 202;
p2.powerBar.maxHealthReducedTxt._visible = false;
p2.powerBar.mcMaxHealthBar._x = 202;
if (p1.totalHealthReduction == 0) {
p1.healthBar.maxHealthReducedTxt._visible = false;
p1.healthBar.mcMaxHealthBar._x = 202;
} else {
p1.DrawMaxHealthReduction(p1.healthBar);
}
p1.ModHealth(0);
var crippleCursor = undefined;
var mouseListener;
var mcForgetInstructions;
var p1ForgetSkill;
var cursorSpeedUp;
_root.attachMovie("mcaiCursor", "aiCursor", 70001, {_x:534, _y:342});
aiCursor._alpha = 0;
var filter = (new flash.filters.DropShadowFilter(5, 45, 0, 0.7, 5, 5, 3, 1, false, false, false));
var myFilters = aiCursor.filters;
myFilters.push(filter);
aiCursor.filters = myFilters;
var aiCursorLoc = (new flash.geom.Point(aiCursor._x, aiCursor._y));
var aiCursorDest = undefined;
_root.attachMovie("opening", "mcOpening", 70002, {_x:555, _y:67});
mcOpening._visible = false;
p2.chanceOfOpening = _root.RandRange(0, 120);
_root.attachMovie("taunt", "mcTaunt", 70003, {_x:87, _y:26});
mcTaunt._visible = false;
var slowedCursor;
var dotCursor;
mouseListener = new Object();
mouseListener.onMouseMove = function () {
if (p1.slowCursor != 0) {
dotCursor._x = _xmouse;
dotCursor._y = _ymouse;
var foundSkill = false;
var i = 0;
while (i < (p1.skills.length + 1)) {
var testSkill = eval ("p1_skill" + p1.skills[i].skillID);
if (slowedCursor.hitTest(testSkill.greenHitBox) && (testSkill.skillButton1.enabled)) {
savedX = slowedCursor._x;
savedY = slowedCursor._y;
removeMovieClip(slowedCursor);
slowedCursor = _root.attachMovie("mcHandCursor", "slowedCursor", 70101);
slowedCursor._x = savedX;
slowedCursor._y = savedY;
foundSkill = true;
break;
}
i++;
}
if ((!foundSkill) && (slowedCursor.getDepth() == 70101)) {
savedX = slowedCursor._x;
savedY = slowedCursor._y;
removeMovieClip(slowedCursor);
slowedCursor = _root.attachMovie("slowCursor", "slowedCursor", 70100);
slowedCursor._x = savedX;
slowedCursor._y = savedY;
}
}
};
mouseListener.onMouseUp = function () {
var i = 0;
while (i < (p1.skills.length + 1)) {
var testSkill = eval ("p1_skill" + p1.skills[i].skillID);
if (slowedCursor.hitTest(testSkill.greenHitBox) && (testSkill.skillButton1.enabled)) {
_root.PlaySound(1);
testSkill.SkillPress();
return;
}
i++;
}
};
Mouse.addListener(mouseListener);
var curSlowCursorLevel = 70105;
var tracerArr = new Array();
ShowPreparePopup();
EndTransition("Battle");
stop();
Frame 25
UpdateStats();
EndTransition();
stop();
Frame 30
UpdateStats();
bizaarRefreshTime.text = ("Welcome!\nAll Artifacts will refresh in\n" + (3 - totalVictories)) + "\nvictories!";
var filter = (new flash.filters.GlowFilter(0, 0.8, 6, 6, 5, 3, false, false));
var filterArray = new Array();
filterArray.push(filter);
bizaarRefreshTime.filters = filterArray;
p1.DrawArtifactsBazaar();
EndTransition();
stop();
Frame 35
EndTransition();
stop();
Instance of Symbol 608 MovieClip in Frame 35
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("down");
}
}
on (release) {
gotoAndStop ("up");
_root.StartTransition("howto2");
}
Frame 36
EndTransition();
stop();
Instance of Symbol 608 MovieClip in Frame 36
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("down");
}
}
on (release) {
gotoAndStop ("up");
_root.StartTransition("howto3");
}
Frame 37
EndTransition();
stop();
Instance of Symbol 608 MovieClip in Frame 37
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("down");
}
}
on (release) {
gotoAndStop ("up");
_root.StartTransition("howto4");
}
Frame 38
EndTransition();
stop();
Instance of Symbol 55 MovieClip [btnOK] in Frame 38
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("down");
}
}
on (release) {
gotoAndStop ("up");
_root.StartTransition("Home");
}
Frame 40
EndTransition();
stop();
Frame 45
_root.PlaySound(8);
_root.PlaySound(11);
p1.UnloadSkills();
p2.UnloadSkills();
p1.UnloadArtifacts();
p2.UnloadArtifacts();
p1.RemoveAllDots();
p2.RemoveAllDots();
victBG.gotoAndStop(p1.classID);
txtVictoryNameMC.txtVictoryName.text = ("All Hail " + p1.playerName) + "!";
var filter = (new flash.filters.GlowFilter(0, 0.8, 10, 10, 5, 3, false, false));
var filterArray = new Array();
filterArray.push(filter);
txtVictoryText1.filters = filterArray;
txtVictoryText2.filters = filterArray;
txtVictoryNameMC.filters = filterArray;
EndTransition("Staging");
stop();
Instance of Symbol 55 MovieClip [btnOK] in Frame 45
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("down");
}
}
on (release) {
gotoAndStop ("up");
_root.StartTransition("credits");
}
Frame 50
var so = SharedObject.getLocal("talesworthData");
theErrors.text = so.data.errors;
EndTransition();
stop();
Frame 51
function GetPoint(myMC) {
return(new flash.geom.Point(myMC._x, myMC._y));
}
function UnequipArtifact() {
var _local1 = 0;
while (_local1 < p1.artifacts.length) {
if (p1.artifacts[_local1].mcPtr.isSelected) {
p1.artifacts[_local1].mcPtr.isSelected = false;
p1.artifacts[_local1].equipped = false;
removeMovieClip(p1.artifacts[_local1].mcPtr);
break;
}
_local1++;
}
artifactChooser.LoadUnequipped();
}
function ClearSelectedArtifact() {
var _local1 = 0;
while (_local1 < p1.artifacts.length) {
if (p1.artifacts[_local1].mcPtr.isSelected) {
p1.artifacts[_local1].mcPtr.UnselectMe();
}
_local1++;
}
}
var xxxx = false;
if ((xxxx == undefined) && (testFlag)) {
xxxx = true;
p1.artifacts.push(Artifact.LoadArtifact(3));
p1.artifacts[0].equipped = false;
p1.artifacts.push(Artifact.LoadArtifact(7));
p1.artifacts[1].equipped = false;
p1.artifacts.push(Artifact.LoadArtifact(11));
p1.artifacts[2].equipped = false;
p1.artifacts.push(Artifact.LoadArtifact(15));
p1.artifacts[3].equipped = false;
p1.artifacts.push(Artifact.LoadArtifact(19));
p1.artifacts[4].equipped = false;
p1.artifacts.push(Artifact.LoadArtifact(14));
p1.artifacts[4].equipped = false;
}
p1.DrawArtifactsTavern();
EndTransition();
stop();
Instance of Symbol 706 MovieClip "btnRemove" in Frame 51
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
gotoAndStop ("down");
}
}
on (release) {
_root.UnequipArtifact();
gotoAndStop ("up");
}
Frame 52
function ResumeFromIntro() {
StartTransition("Home");
}
stop();
Frame 53
gotoAndStop ("Battle");
Frame 54
var my_lv = new LoadVars();
my_lv.onLoad = function (success) {
if (success) {
trace(this.dayNames);
} else {
trace("Error");
}
};
my_lv.load("http://www.helpexamples.com/flash/params.txt");
Frame 55
UpdateStats();
EndTransition();
stop();
Frame 56
function LoadData(slotNbr) {
var _local2 = saveGame.data.slots[slotNbr];
currentSaveSlot = slotNbr;
muteSound = _local2.muteSound;
muteMusic = _local2.muteMusic;
if (muteMusic) {
sndMusic.setVolume(0);
}
p1 = new Player();
p1.level = _local2.level;
p1.classID = _local2.classID;
p1.playerName = _local2.playerName;
p1.maxHealth = _local2.maxHealth;
p1.health = p1.maxHealth;
p1.power = _local2.power;
p1.powerType = _local2.powerType;
p1.gold = _local2.gold;
p1.runes = _local2.runes;
p1.experience = _local2.experience;
p1.portraitID = _local2.portraitID;
p1.curHealth = p1.health;
p1.curPower = p1.power;
p1.playerNbr = 1;
p1.skillIDs = _local2.skillIDs;
p1.skillUpgradeIDs = _local2.skillUpgradeIDs;
p1.deprecatedSkillIDs = _local2.deprecatedSkillIDs;
p1.completedEvents = _local2.completedEvents;
p1.uncompletedEvents = _local2.uncompletedEvents;
p1.artifacts = _local2.artifacts;
p1.milestones = _local2.milestones;
p1.showTutorial = _local2.showTutorial;
p1.difficulty = _local2.difficulty;
_root.totalVictories = _local2.totalVictories;
_root.eventFightCounter = _local2.eventFightCounter;
_root.monstersBeatForLevel = _local2.monstersBeatForLevel;
_root.bizaarArtifactArr = _local2.bizaarArtifactArr;
p1.ResetMaxHealthReduction();
StartTransition("Staging");
}
function ShowConfirmPopup(myName, myLevel) {
this.attachMovie("battleCoverup", "battleCoverupMC", 20000, {_x:0, _y:0});
battleCoverupMC.enabled = false;
battleCoverupMC._alpha = 20;
PopupCallback = GetConfirmation;
this.attachMovie("confirmPopup", "confirmPopup", 20001, {_x:164, _y:40});
confirmPopup.btnOK._visible = true;
confirmPopup.btnContinue._visible = false;
confirmPopup.popText.html = true;
confirmPopup.popText.htmlText = "<font size='20' color='#bb6900'>PLEASE NOTE</font><br><br><font size='13' color='#020ea2'>Starting a new game in this slot will overwrite the existing saved game. Are you sure?</font>";
confirmPopup.popTextShadow.htmlText = "<font size='20' color='#000000'>PLEASE NOTE</font>";
}
function GetConfirmation(inVar) {
removeMovieClip(confirmPopup);
removeMovieClip(battleCoverupMC);
if (inVar == 1) {
_root.StartTransition("ChooseDifficulty");
} else {
_root.currentSaveSlot = -1;
}
}
var i = 0;
while (i < 4) {
var so = saveGame.data;
this["btnSaveSlot" + i].txtNum.text = i + 1;
if ((so.slots[i].playerName == undefined) || (so.slots[i].playerName == "")) {
this["btnSaveSlot" + i].txtName.text = "";
this["btnSaveSlot" + i].txtLevel.text = "";
this["btnSaveSlot" + i].txtGold.text = "";
this["btnSaveSlot" + i].txtRunes.text = "";
this["btnSaveSlot" + i].txtDifficulty.text = "";
if (_root.loadSaveAction == "load") {
this["btnSaveSlot" + i].txtAvail.text = "Empty";
this["btnSaveSlot" + i].enabled = false;
} else {
this["btnSaveSlot" + i].txtAvail.text = "Empty Slot";
}
} else {
this["btnSaveSlot" + i].txtAvail.text = "";
this["btnSaveSlot" + i].txtName.text = so.slots[i].playerName;
var tmpPlayer = new Player();
tmpPlayer.classID = so.slots[i].classID;
this["btnSaveSlot" + i].txtLevel.text = (("Level " + so.slots[i].level) + " ") + tmpPlayer.ClassName();
this["btnSaveSlot" + i].txtGold.text = so.slots[i].gold + " Gold";
this["btnSaveSlot" + i].txtRunes.text = so.slots[i].runes + " Runes";
this["btnSaveSlot" + i].txtDifficulty.text = DifficultyName(so.slots[i].difficulty);
}
i++;
}
if (_root.loadSaveAction == "load") {
txtLoadSaveTitle.text = "Load Game";
} else {
txtLoadSaveTitle.text = "Choose a Game Slot";
}
EndTransition();
stop();
Instance of Symbol 831 MovieClip "btnSaveSlot0" in Frame 56
on (rollOver) {
if (this.enabled) {
gotoAndStop ("on");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("off");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("on");
}
}
on (release) {
var myNbr = 0;
gotoAndStop ("on");
if (_root.loadSaveAction == "load") {
_root.LoadData(myNbr);
} else {
_root.currentSaveSlot = myNbr;
var so = _root.saveGame.data;
if ((so.slots[myNbr].playerName == undefined) || (so.slots[myNbr].playerName == "")) {
_root.StartTransition("ChooseDifficulty");
} else {
_root.ShowConfirmPopup();
}
}
}
Instance of Symbol 831 MovieClip "btnSaveSlot1" in Frame 56
on (rollOver) {
if (this.enabled) {
gotoAndStop ("on");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("off");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("on");
}
}
on (release) {
var myNbr = 1;
gotoAndStop ("on");
if (_root.loadSaveAction == "load") {
_root.LoadData(myNbr);
} else {
_root.currentSaveSlot = myNbr;
var so = _root.saveGame.data;
if ((so.slots[myNbr].playerName == undefined) || (so.slots[myNbr].playerName == "")) {
_root.StartTransition("ChooseDifficulty");
} else {
_root.ShowConfirmPopup();
}
}
}
Instance of Symbol 831 MovieClip "btnSaveSlot2" in Frame 56
on (rollOver) {
if (this.enabled) {
gotoAndStop ("on");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("off");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("on");
}
}
on (release) {
var myNbr = 2;
gotoAndStop ("on");
if (_root.loadSaveAction == "load") {
_root.LoadData(myNbr);
} else {
_root.currentSaveSlot = myNbr;
var so = _root.saveGame.data;
if ((so.slots[myNbr].playerName == undefined) || (so.slots[myNbr].playerName == "")) {
_root.StartTransition("ChooseDifficulty");
} else {
_root.ShowConfirmPopup();
}
}
}
Instance of Symbol 831 MovieClip "btnSaveSlot3" in Frame 56
on (rollOver) {
if (this.enabled) {
gotoAndStop ("on");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("off");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("on");
}
}
on (release) {
var myNbr = 3;
gotoAndStop ("on");
if (_root.loadSaveAction == "load") {
_root.LoadData(myNbr);
} else {
_root.currentSaveSlot = myNbr;
var so = _root.saveGame.data;
if ((so.slots[myNbr].playerName == undefined) || (so.slots[myNbr].playerName == "")) {
_root.StartTransition("ChooseDifficulty");
} else {
_root.ShowConfirmPopup();
}
}
}
Frame 57
var p1 = new Player();
btnEasy.diffEasy._visible = true;
btnEasy.diffHard._visible = false;
btnNormal.diffEasy._visible = false;
btnNormal.diffHard._visible = true;
EndTransition();
stop();
Instance of Symbol 844 MovieClip "btnNormal" in Frame 57
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("over");
}
}
on (release) {
_root.p1.difficulty = 0;
_root.StartTransition("Create");
}
Instance of Symbol 844 MovieClip "btnEasy" in Frame 57
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("over");
}
}
on (release) {
_root.p1.difficulty = 1;
_root.StartTransition("Create");
}
Frame 58
gotoAndStop (2);
Symbol 12 MovieClip Frame 1
function SetCooldown(inCooldown) {
cooldown = inCooldown * (1 - _parent._parent.player.GetCooldownReductionBonus());
}
function SetParentButton(inParentButton) {
parentButton = inParentButton;
}
function ClearSkipper() {
clearInterval(intPtr);
}
function Stop() {
clearInterval(intPtr);
gotoAndStop (1);
}
function GetCooldownRemaining() {
if (_parent._parent.onCooldown) {
return(cooldown - ((getTimer() - timePassed) / 1000));
}
return(0);
}
var cooldown;
var parentButton;
var intPtr = 0;
_parent._parent.onCooldown = false;
stop();
Symbol 12 MovieClip Frame 2
function FrameSkipper() {
var _local2 = (totalFrames * (getTimer() - timePassed)) / (cooldown * 1000);
if (_local2 >= this._totalframes) {
clearInterval(intPtr);
_local2 = this._totalframes;
}
if (_local2 < 3) {
_local2 = 3;
}
this.gotoAndStop(Math.round(_local2));
}
var totalFrames = 720;
_parent._parent.onCooldown = true;
var timeCtr;
var timePassed;
timeCtr = getTimer();
var timePassed = getTimer();
intPtr = setInterval(this, "FrameSkipper", 83);
Symbol 12 MovieClip Frame 721
timeToFinish.text = (getTimer() - timeCtr) / 1000;
ClearSkipper();
if (((_parent._parent.player.curPower >= _parent._parent.powerCost) && (_parent._parent.player.stunned == false)) && (_parent._parent.disabledSkillCtr == 0)) {
parentButton.enabled = true;
parentButton.gotoAndPlay(1);
_parent.skillButton1.gasMissing._visible = true;
}
gotoAndStop (1);
stop();
Symbol 36 MovieClip Frame 1
var highlighted;
highlighted = false;
var disabledSkill;
disabledSkill = false;
this.hitArea = hit;
skillText.text = _parent.skillName;
Symbol 36 MovieClip Frame 9
stop();
Symbol 36 MovieClip Frame 10
stop();
skillText.text = _parent.skillName;
stop();
Symbol 36 MovieClip Frame 11
stop();
skillText.text = _parent.skillName;
_root.PlaySound(1);
stop();
Symbol 36 MovieClip Frame 12
highlighted = true;
play();
skillText.text = _parent.skillName;
Symbol 36 MovieClip Frame 20
gotoAndPlay ("highlight");
Symbol 36 MovieClip Frame 21
highlighted = false;
skillText.text = _parent.skillName;
stop();
Symbol 36 MovieClip Frame 33
stop();
skillText.text = _parent.skillName;
stop();
Symbol 37 MovieClip [skillButton] Frame 1
#initclip 53
Object.registerClass("skillButton", Skill);
#endinitclip
function ShowCrippleIcon() {
skillButton1.dropletCrippleIcon._visible = true;
}
function HideCrippleIcon() {
skillButton1.dropletCrippleIcon._visible = false;
}
function ShowNoPowerIcon() {
if (powerTypeCost == 1) {
skillButton1.dropletGasIcon._visible = true;
} else if (powerTypeCost == 2) {
skillButton1.dropletManaIcon._visible = true;
}
}
function HideNoPowerIcon() {
if (powerTypeCost == 1) {
skillButton1.dropletGasIcon._visible = false;
} else if (powerTypeCost == 2) {
skillButton1.dropletManaIcon._visible = false;
}
}
function StopMe() {
skillButton1.cooldownBar.Stop();
}
function GetCooldownRemaining() {
return(skillButton1.cooldownBar.GetCooldownRemaining());
}
function SkillPress() {
var _local3;
var _local5;
var _local6;
var _local4 = skillButton1.cooldownBar;
if (player.playerNbr == 1) {
_local3 = _root.p1_castbar;
_local5 = _root.p1;
_local6 = _root.p2;
} else {
_local3 = _root.p2_castbar;
_local5 = _root.p2;
_local6 = _root.p1;
}
if (_local3.casting == false) {
if (_local5.curPower >= powerCost) {
_local5.ModPower(powerCost * -1);
skillButton1.gotoAndStop("disabled");
skillButton1.enabled = false;
_local4.ClearSkipper();
_local4.SetCooldown(cooldown);
_local4.SetParentButton(skillButton1);
_local4.gotoAndPlay(2);
_local3.castText.text = skillName;
_local3.ClearSkipper();
_local3.SetAttacker(_local5);
_local3.SetDefender(_local6);
_local3.SetSkill(this);
_local3.gotoAndPlay(2);
}
} else if (player.playerNbr == 1) {
_root.ClearQueued();
_root.nextSkill = this;
skillButton1.gotoAndPlay("queued");
}
}
var skillInit;
var newLoc;
var currentLoc;
var playerNbr = 1;
if (skillInit == undefined) {
this.hitArea = greenHitBox;
skillButton1.dropletManaIcon._visible = false;
skillButton1.dropletGasIcon._visible = false;
skillButton1.dropletCrippleIcon._visible = false;
skillButton1.mcBlind._visible = false;
skillInit = true;
}
stop();
Instance of Symbol 36 MovieClip "skillButton1" in Symbol 37 MovieClip [skillButton] Frame 1
on (rollOver) {
if (this._currentframe < 21) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this._currentframe < 21) {
gotoAndPlay ("up");
}
}
on (press) {
gotoAndStop ("down");
}
on (release) {
_parent.SkillPress();
}
Symbol 41 MovieClip [effectScroller] Frame 20
_parent.DeleteMe(this._name);
Symbol 55 MovieClip [btnOK] Frame 1
stop();
Symbol 55 MovieClip [btnOK] Frame 2
stop();
Symbol 55 MovieClip [btnOK] Frame 3
stop();
Symbol 55 MovieClip [btnOK] Frame 4
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 3
stop();
Symbol 64 MovieClip Frame 4
stop();
Instance of Symbol 55 MovieClip [btnOK] "btnOK" in Symbol 65 MovieClip [Battle_popup] Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("down");
}
}
on (release) {
gotoAndStop ("up");
_root.PopupCallback();
}
Instance of Symbol 64 MovieClip "btnContinue" in Symbol 65 MovieClip [Battle_popup] Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("down");
}
}
on (release) {
gotoAndStop ("up");
_root.PopupCallback();
}
Symbol 73 MovieClip [specialTextText] Frame 2
var myText = theTextTop.text;
var my_fmt = theTextTop.getTextFormat();
Symbol 73 MovieClip [specialTextText] Frame 5
theTextTop.text = myText;
theTextBottom.text = myText;
theTextTop.setTextFormat(my_fmt);
Symbol 74 MovieClip [specialTextFader] Frame 16
_parent.DeleteMe(this._name);
Symbol 82 MovieClip [portraitText] Frame 2
var myText = theTextTop.text;
var my_fmt = theTextTop.getTextFormat();
Symbol 82 MovieClip [portraitText] Frame 5
theTextTop.text = myText;
theTextBottom.text = myText;
theTextTop.setTextFormat(my_fmt);
Symbol 82 MovieClip [portraitText] Frame 16
theTextTop.text = myText;
theTextBottom.text = myText;
theTextTop.setTextFormat(my_fmt);
stop();
Symbol 83 MovieClip [portraitTextFader] Frame 17
_parent.DeleteMe(this._name);
stop();
Symbol 85 MovieClip [buffText] Frame 1
function SetText(newTime) {
timeLeft = newTime;
theText.text = (timeLeft + " - ") + buffText;
var _local1 = new TextFormat();
if (isDebuff) {
_local1.color = 16734810 /* 0xFF5A5A */;
} else {
_local1.color = 3669788 /* 0x37FF1C */;
}
theText.setTextFormat(_local1);
}
var buffText;
var timeLeft;
var theTextFormat;
var isDebuff;
var init = false;
if (!init) {
SetText(timeLeft);
init = true;
}
Symbol 88 MovieClip [artifactEmptyMC] Frame 1
#initclip 52
Object.registerClass("artifactEmptyMC", Artifact);
#endinitclip
Symbol 92 Button
on (release) {
if (_currentframe == 1) {
_parent.TurnOffButtons();
gotoAndStop (2);
_parent.GetSelected();
_parent.EnableEquip();
_root.ClearSelectedArtifact();
} else {
gotoAndStop (1);
_parent.DisableEquip();
}
}
Symbol 93 MovieClip [artifactEquipChooserItem] Frame 1
stop();
Symbol 93 MovieClip [artifactEquipChooserItem] Frame 2
stop();
Symbol 99 Button
on (release) {
if (_currentframe == 1) {
_parent.TurnOffButtons();
gotoAndStop (2);
_parent.GetSelected();
_parent.EnableEquip();
_root.ClearSelectedArtifact();
} else {
gotoAndStop (1);
_parent.DisableEquip();
}
}
Symbol 102 MovieClip [itemTavern] Frame 1
stop();
Symbol 102 MovieClip [itemTavern] Frame 2
stop();
Symbol 102 MovieClip [itemTavern] Frame 3
stop();
Symbol 106 MovieClip [specialText] Frame 1
function AddEffectsText(msg) {
var _local5 = _root.GetDepthSlot(25500, specialEffectsArr);
var _local8;
var _local7;
_local8 = 5;
_local7 = 5;
var _local3 = this.attachMovie("specialTextFader", "specialTextFader" + _local5, _local5, {_x:_local8, _y:_local7});
var _local6 = new TextFormat();
var _local4 = "";
_local6.color = 15330326 /* 0xE9EC16 */;
_local4 = msg;
_local3.specialText.theTextTop.text = _local4;
_local3.specialText.theTextBottom.text = _local4;
_local3.specialText.theTextTop.setTextFormat(_local6);
specialEffectsArr.push(_local3);
}
function DeleteMe(instanceName) {
var _local1 = 0;
while (_local1 < specialEffectsArr.length) {
if ((specialEffectsArr[_local1]._name = instanceName)) {
specialEffectsArr[_local1].removeMovieClip();
specialEffectsArr.splice(_local1, 1);
}
_local1++;
}
}
function DeleteAll() {
var _local1 = 0;
while (_local1 < specialEffectsArr.length) {
specialEffectsArr[_local1].removeMovieClip();
specialEffectsArr.splice(_local1, 1);
_local1++;
}
}
var specialEffectsArr = new Array();
stop();
Symbol 107 MovieClip [portrait] Frame 1
function AddEffectsText(msg) {
var d = _root.GetDepthSlot(25000, textEffectsArr);
var myX;
var myY;
myX = _root.RandRange(14, 77);
myY = _root.RandRange(10, 99);
var mcName = ((("ptf" + _root.RandRange(1, 10000)) + d) + "");
this.attachMovie("portraitTextFader", mcName, d, {_x:myX, _y:myY});
var my_fmt = new TextFormat();
var newStr = "";
if (msg <= 0) {
my_fmt.color = 16711680 /* 0xFF0000 */;
newStr = msg + "";
} else {
my_fmt.color = 3997440 /* 0x3CFF00 */;
newStr = ("+" + msg) + "";
}
eval (mcName).portraitText.theTextTop.text = newStr;
eval (mcName).portraitText.theTextBottom.text = newStr;
eval (mcName).portraitText.theTextTop.setTextFormat(my_fmt);
textEffectsArr.push(eval (mcName));
}
function DeleteMe(instanceName) {
var _local2 = false;
var _local1 = 0;
while (_local1 < textEffectsArr.length) {
if (textEffectsArr[_local1]._name == instanceName) {
textEffectsArr[_local1]._visible = false;
textEffectsArr[_local1].removeMovieClip();
textEffectsArr.splice(_local1, 1);
_local2 = true;
break;
}
_local1++;
}
}
function DeleteAll() {
var _local1 = 0;
while (_local1 < textEffectsArr.length) {
textEffectsArr[_local1].removeMovieClip();
textEffectsArr.splice(_local1, 1);
_local1++;
}
}
var textEffectsArr = new Array();
stop();
Symbol 118 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 129 MovieClip [CheckBoxAssets] Frame 1
#initclip 37
mx.controls.CheckBox.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local8 = _local2._width + 4;
var _local5 = _local2._height + 4;
_local4.setSize(_local8, _local5, 0, 100, _local3);
var _local7 = _local2._x;
var _local6 = _local2._y;
_local4.move((this.x - 2) + _local7, (this.y + _local6) - 2);
};
#endinitclip
Symbol 131 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 133 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 136 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 138 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 141 MovieClip [Defaults] Frame 1
#initclip 38
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 142 MovieClip [UIObjectExtensions] Frame 1
#initclip 39
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 143 MovieClip [UIObject] Frame 1
#initclip 40
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 146 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 147 MovieClip Frame 1
#initclip 41
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 148 MovieClip [FocusRect] Frame 1
#initclip 42
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 149 MovieClip [FocusManager] Frame 1
#initclip 43
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 150 MovieClip [UIComponentExtensions] Frame 1
#initclip 44
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 151 MovieClip [UIComponent] Frame 1
#initclip 45
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 152 MovieClip [SimpleButton] Frame 1
#initclip 46
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 153 MovieClip [Border] Frame 1
#initclip 47
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 154 MovieClip [RectBorder] Frame 1
#initclip 48
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 155 MovieClip [ButtonSkin] Frame 1
#initclip 49
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 156 MovieClip [Button] Frame 1
#initclip 50
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 152 MovieClip [SimpleButton] in Symbol 156 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 157 MovieClip [CheckBox] Frame 1
#initclip 51
Object.registerClass("CheckBox", mx.controls.CheckBox);
#endinitclip
stop();
Instance of Symbol 156 MovieClip [Button] in Symbol 157 MovieClip [CheckBox] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 185 MovieClip Frame 1
function loadedIndicatorFrame() {
if (maxFrameJump == undefined) {
maxFrameJump = 4;
}
var _local2 = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * maxframe) + 2;
if ((_local2 - lastFrame) > maxFrameJump) {
lastFrame = lastFrame + maxFrameJump;
loadedText = ((int(((_parent.getBytesTotal() / 1024) * (lastFrame - 2)) / maxframe) + "kb of ") + int(_parent.getBytesTotal() / 1024)) + "kb";
} else if ((_local2 - lastFrame) > 0) {
lastFrame++;
loadedText = ((int(_parent.getBytesLoaded() / 1024) + "kb of ") + int(_parent.getBytesTotal() / 1024)) + "kb";
}
return(lastFrame);
}
lastFrame = 1;
var maxframe = 72;
var maxFrameJump;
Symbol 846 MovieClip [__Packages.Player] Frame 0
class Player
{
var buffs, skills, skillIDs, skillUpgrades, skillUpgradeIDs, deprecatedSkillIDs, artifacts, completedEvents, uncompletedEvents, milestones, tmpSkillIDs, skillPriority, damageWindow;
function Player () {
buffs = new Array();
skills = new Array();
skillIDs = new Array();
skillUpgrades = new Array();
skillUpgradeIDs = new Array();
deprecatedSkillIDs = new Array();
artifacts = new Array();
completedEvents = new Array();
uncompletedEvents = new Array();
milestones = new Array();
}
function ClassName() {
if (classID == 1) {
return("Engineer");
}
if (classID == 2) {
return("Psionic");
}
return("Juggernaut");
}
function MilestoneLookupByID(inID) {
var _local2 = new Array();
_local2.push(inID);
return(MilestoneLookup(_local2));
}
function MilestoneLookup(inLookup) {
var _local6 = true;
if (inLookup.length == 0) {
trace("no milestones exist");
return(true);
}
var _local3 = 0;
while (_local3 < inLookup.length) {
var _local4 = false;
var _local2 = 0;
while (_local2 < milestones.length) {
if (milestones[_local2] == inLookup[_local3]) {
_local4 = true;
break;
}
_local2++;
}
if (!_local4) {
_local6 = false;
break;
}
_local3++;
}
return(_local6);
}
function MilestoneAdd(inAdd) {
milestones.push(inAdd);
}
function HasTelepathy() {
var _local3 = false;
var _local2 = 0;
while (_local2 < buffs.length) {
if (buffs[_local2].skill.telepathy == true) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function HasAdrenalineRush() {
var _local3 = false;
var _local2 = 0;
while (_local2 < buffs.length) {
if (buffs[_local2].skill.skillID == 139) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function HasCompletedEvent(inEventID) {
var _local3 = false;
var _local2 = 0;
while (_local2 < completedEvents.length) {
if (completedEvents[_local2] == inEventID) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function HasUNCompletedEvent(inEventID) {
var _local3 = false;
var _local2 = 0;
while (_local2 < uncompletedEvents.length) {
if (uncompletedEvents[_local2] == inEventID) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function HasUpgrade(parentCheckID) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < skillUpgradeIDs.length) {
if (Skill.LoadSkill(skillUpgradeIDs[_local2]).parentSkillID == parentCheckID) {
_local3 = skillUpgradeIDs[_local2];
break;
}
_local2++;
}
return(_local3);
}
function HasSkill(skillCheckID) {
var _local3 = false;
var _local2 = 0;
while (_local2 < skillIDs.length) {
if (skillIDs[_local2] == skillCheckID) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function HasParentSkill(skillCheckID) {
var _local4 = false;
var _local2 = 0;
while (_local2 < skillIDs.length) {
var _local3 = Skill.LoadSkill(skillIDs[_local2]);
if (_local3.parentSkillID == skillCheckID) {
_local4 = true;
break;
}
_local2++;
}
return(_local4);
}
function ResetPlayer() {
drifting = 0;
damageTakenModifier = 0;
damageDoneModifier = 0;
slowed = 0;
stunned = false;
blindCtr = 0;
powerRegenRateRemainder = 0;
regenerating = 0;
manaShield = 0;
adrenalineRush = 0;
shrink = 0;
slowCursor = 0;
hideCastbarCtr = 0;
hasOpening = false;
hasOpeningCounter = 0;
chanceOfOpening = 0;
tmpSkillIDs = new Array();
var _local2 = 0;
while (_local2 < skillIDs.length) {
tmpSkillIDs.push(skillIDs[_local2]);
_local2++;
}
if (classID == 2) {
powerRegenRate = 3;
}
}
function GetTotalDamageBonus(bonusType) {
return(damageDoneModifier + GetDamageBonus(bonusType));
}
function GetDamageBonus(bonusType) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if ((artifacts[_local2].equipped && (artifacts[_local2].dmgBonus > 0)) && (artifacts[_local2].dmgBonusType == bonusType)) {
_local3 = _local3 + artifacts[_local2].dmgBonus;
}
_local2++;
}
return(_local3);
}
function GetTotalDamageReduction(bonusType) {
return(damageTakenModifier + GetDamageReduction(bonusType));
}
function GetDamageReduction(bonusType) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if ((artifacts[_local2].equipped && (artifacts[_local2].dmgReduction < 0)) && (artifacts[_local2].dmgReductionType == bonusType)) {
_local3 = _local3 + artifacts[_local2].dmgReduction;
}
_local2++;
}
return(_local3);
}
function GetStunResistBonus() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].equipped && (artifacts[_local2].stunResistPercent < 0)) {
_local3 = _local3 + artifacts[_local2].stunResistPercent;
}
_local2++;
}
return(_local3);
}
function GetCooldownReductionBonus() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].equipped && (artifacts[_local2].cooldownReductionPercent > 0)) {
_local3 = _local3 + artifacts[_local2].cooldownReductionPercent;
}
_local2++;
}
return(_local3);
}
function GetCastTimeBonus() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].equipped && (artifacts[_local2].castTimeSpeedBonus != 0)) {
_local3 = _local3 + artifacts[_local2].castTimeSpeedBonus;
}
_local2++;
}
return(_local3);
}
function GetDriftModSpeed() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].equipped && (artifacts[_local2].driftModSpeed != 0)) {
_local3 = _local3 + artifacts[_local2].driftModSpeed;
}
_local2++;
}
return(_local3);
}
function GetBlindResistPercent() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].equipped && (artifacts[_local2].blindResistPercent != 0)) {
_local3 = _local3 + artifacts[_local2].blindResistPercent;
}
_local2++;
}
return(_local3);
}
function JumbleSkills() {
var skillCount = 1;
var newPts = new Array();
var i = 0;
while (i < skillIDs.length) {
var myLoc = (new flash.geom.Point(eval ((("p" + playerNbr) + "_skill") + skillIDs[i])._x, eval ((("p" + playerNbr) + "_skill") + skillIDs[i])._y));
newPts.push(myLoc);
i++;
}
skillIDs.sort(_root.RandomizeSort);
var i = 0;
while (i < skillIDs.length) {
eval ((("p" + playerNbr) + "_skill") + skillIDs[i]).newLoc = newPts[i];
eval ((("p" + playerNbr) + "_skill") + skillIDs[i]).homeX = newPts[i].x;
eval ((("p" + playerNbr) + "_skill") + skillIDs[i]).homeY = newPts[i].y;
i++;
}
}
function GetBlindTimeReductionPercent() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].equipped && (artifacts[_local2].blindTimeReductionPercent != 0)) {
_local3 = _local3 + artifacts[_local2].blindTimeReductionPercent;
}
_local2++;
}
return(_local3);
}
function GetArtifactBuff(buffName) {
var _local4 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].equipped && (artifacts[_local2][buffName] != 0)) {
_local4 = _local4 + artifacts[_local2][buffName];
}
_local2++;
}
return(_local4);
}
function GetStunTimeReductionPercent() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].equipped && (artifacts[_local2].stunTimeReductionPercent < 0)) {
_local3 = _local3 + artifacts[_local2].stunTimeReductionPercent;
}
_local2++;
}
return(_local3);
}
function GetStunTimeBonus() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].equipped && (artifacts[_local2].stunTimeBonus > 0)) {
_local3 = _local3 + artifacts[_local2].stunTimeBonus;
}
_local2++;
}
return(_local3);
}
function CanSeeStats() {
var _local3 = false;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].equipped && (artifacts[_local2].showStats == 1)) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function HasDmgTypeDebuff(dmgType) {
var _local3 = false;
var _local2 = 0;
while (_local2 < buffs.length) {
if (buffs[_local2].skill.dmgType == dmgType) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function FindArtifact(inID, equipFlag) {
var _local3;
var _local2 = 0;
while (_local2 < artifacts.length) {
if ((artifacts[_local2].ID == inID) && (artifacts[_local2].equipped == equipFlag)) {
_local3 = artifacts[_local2];
break;
}
_local2++;
}
return(_local3);
}
function RemoveArtifact(inID) {
var _local2 = 0;
while (_local2 < artifacts.length) {
if ((artifacts[_local2].ID == inID) && (!artifacts[_local2].equipped)) {
artifacts.splice(_local2, 1);
break;
}
_local2++;
}
}
function HasArtifact(a) {
var _local3 = false;
var _local2 = 0;
while (_local2 < artifacts.length) {
if (artifacts[_local2].ID == a.ID) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function AddArtifact(a, overrideEquipped) {
var _local3 = false;
if (overrideEquipped == undefined) {
overrideEquipped = true;
}
var _local2;
_local2 = 0;
while (_local2 < artifacts.length) {
if ((artifacts[_local2].slotID == a.slotID) && (artifacts[_local2].equipped)) {
_local3 = true;
break;
}
_local2++;
}
if ((_local3 == true) && (overrideEquipped)) {
artifacts[_local2].equipped = false;
a.equipped = true;
} else if (_local3 == false) {
a.equipped = true;
} else if ((_local3 == true) && (!overrideEquipped)) {
a.equipped = false;
}
artifacts.push(a);
return(_local3);
}
function AddSkill(s) {
var _local5 = false;
var _local2 = skillIDs.length - 1;
while (_local2 > -1) {
var _local3 = Skill.LoadSkill(skillIDs[_local2]);
if ((_local3.parentSkillID == s.parentSkillID) && (_local3.rank < s.rank)) {
skillIDs.splice(_local2, 1, s.skillID);
deprecatedSkillIDs.push(_local3.skillID);
_local5 = true;
break;
}
_local2--;
}
if (!_local5) {
skillIDs.push(s.skillID);
}
}
function FadeOutSkillButtons() {
var i = 0;
while (i < (skills.length + 1)) {
eval ((("p" + playerNbr) + "_skill") + skills[i].skillID)._alpha = 70;
i++;
}
}
function FadeInSkillButtons() {
var i = 0;
while (i < (skills.length + 1)) {
eval ((("p" + playerNbr) + "_skill") + skills[i].skillID)._alpha = 100;
i++;
}
}
function UnloadSkills() {
var _local2 = 0;
while (_local2 < skills.length) {
removeMovieClip(skills[_local2]);
_local2++;
}
skills = new Array();
}
function UnloadArtifacts() {
var _local2 = 0;
while (_local2 < artifacts.length) {
removeMovieClip(artifacts[_local2].mcPtr);
_local2++;
}
}
function DrawArtifacts() {
var _local6;
var _local9;
var _local7 = 19000;
var _local3 = 0;
while (_local3 < artifacts.length) {
if (artifacts[_local3].equipped) {
if (playerNbr == 1) {
_local6 = 28;
} else {
_local6 = 394;
_local7 = _local7 + 100;
}
_local9 = 475;
var _local4 = artifacts[_local3].slotID;
if (_local4 == 1) {
_local4 = 3;
} else if (_local4 == 2) {
_local4 = 1;
} else if (_local4 == 3) {
_local4 = 2;
}
_local6 = _local6 + (_local4 * 58);
var _local8 = flash.display.BitmapData.loadBitmap(artifacts[_local3].GetIconName());
artifacts[_local3].mcPtr = _root.attachMovie("artifactEmptyMC", (("p" + playerNbr) + "_artifact") + artifacts[_local3].ID, _local7 + _local3, artifacts[_local3]);
artifacts[_local3].mcPtr._x = _local6;
artifacts[_local3].mcPtr._y = _local9;
artifacts[_local3].mcPtr.attachBitmap(_local8, (_local7 + _local3) + 50);
artifacts[_local3].mcPtr.onRollOver = function () {
var _local3 = "";
_local3 = _local3 + (((("<b><font color='#" + _root.GetQualityColor(this.qualityID).toString(16)) + "'>") + this.artifactName) + "</font></b>");
_local3 = _local3 + (("\n\n<font color='#020ea2'>" + this.GetDescription()) + "</font>");
this.setDescription(_local3);
};
artifacts[_local3].mcPtr.onRollOut = function () {
this.unsetDescription();
};
}
_local3++;
}
}
function DrawArtifactsTavern() {
var _local6;
var _local9;
var _local8 = 19000;
var _local3 = 0;
while (_local3 < artifacts.length) {
if (artifacts[_local3].equipped) {
_local6 = 378;
_local9 = 72;
var _local4 = artifacts[_local3].slotID;
if (_local4 == 1) {
_local4 = 3;
} else if (_local4 == 2) {
_local4 = 1;
} else if (_local4 == 3) {
_local4 = 2;
}
_local6 = _local6 + (_local4 * 58);
var _local7 = flash.display.BitmapData.loadBitmap(artifacts[_local3].GetIconName());
artifacts[_local3].mcPtr = _root.attachMovie("artifactEmptyMC", (("p" + playerNbr) + "_artifact") + artifacts[_local3].ID, _local8 + _local3, artifacts[_local3]);
artifacts[_local3].mcPtr._x = _local6;
artifacts[_local3].mcPtr._y = _local9;
artifacts[_local3].mcPtr.attachBitmap(_local7, (_local8 + _local3) + 50);
artifacts[_local3].mcPtr.onRollOver = function () {
var _local3 = "";
_local3 = _local3 + (((("<b><font color='#" + _root.GetQualityColor(this.qualityID).toString(16)) + "'>") + this.artifactName) + "</font></b>");
_local3 = _local3 + (("\n\n<font color='#020ea2'>" + this.GetDescription()) + "</font>");
this.setDescription(_local3);
};
artifacts[_local3].mcPtr.onRollOut = function () {
this.unsetDescription();
};
artifacts[_local3].mcPtr.onPress = function () {
};
artifacts[_local3].mcPtr.onRelease = function () {
if (this.isSelected == false) {
_root.ClearSelectedArtifact();
this.SelectMe();
_root.artifactChooser.TurnOffButtons();
} else {
this.UnselectMe();
}
};
}
_local3++;
}
}
function DrawArtifactsBazaar() {
var _local6;
var _local9;
var _local8 = 19000;
var _local3 = 0;
while (_local3 < artifacts.length) {
if (artifacts[_local3].equipped) {
_local6 = 369.9;
_local9 = 41;
var _local4 = artifacts[_local3].slotID;
if (_local4 == 1) {
_local4 = 3;
} else if (_local4 == 2) {
_local4 = 1;
} else if (_local4 == 3) {
_local4 = 2;
}
_local6 = _local6 + (_local4 * 58);
var _local7 = flash.display.BitmapData.loadBitmap(artifacts[_local3].GetIconName());
artifacts[_local3].mcPtr = _root.attachMovie("artifactEmptyMC", (("p" + playerNbr) + "_artifact") + artifacts[_local3].ID, _local8 + _local3, artifacts[_local3]);
artifacts[_local3].mcPtr._x = _local6;
artifacts[_local3].mcPtr._y = _local9;
artifacts[_local3].mcPtr.attachBitmap(_local7, (_local8 + _local3) + 50);
artifacts[_local3].mcPtr.onRollOver = function () {
var _local3 = "";
_local3 = _local3 + (((("<b><font color='#" + _root.GetQualityColor(this.qualityID).toString(16)) + "'>") + this.artifactName) + "</font></b>");
_local3 = _local3 + (("\n\n<font color='#020ea2'>" + this.GetDescription()) + "</font>");
this.setDescription(_local3);
};
artifacts[_local3].mcPtr.onRollOut = function () {
this.unsetDescription();
};
}
_local3++;
}
}
function SortSkillIDs(a, b) {
if (Skill.LoadSkill(a).categoryID < Skill.LoadSkill(b).categoryID) {
return(-1);
}
if (Skill.LoadSkill(a).categoryID > Skill.LoadSkill(b).categoryID) {
return(1);
}
return(0);
}
function PrepAllSkills() {
var _local4 = 1;
var _local3 = 0;
while (_local3 < skillIDs.length) {
_root.PrepSkill(skillIDs[_local3], this, _local4++);
_local3++;
}
}
function LoadMonsterStats(m) {
monsterID = m.ID;
playerName = m.monsterName;
health = m.health;
if (_root.p1.difficulty == 1) {
health = Math.round(health * 0.8);
}
curHealth = health;
maxHealth = health;
power = m.power;
curPower = power;
powerType = m.powerType;
playerNbr = 2;
pauseTime = m.pauseTime;
goldMin = m.goldMin;
goldMax = m.goldMax;
experience = m.experience;
level = m.level;
skillPriority = m.skillIDs;
portraitID = m.portraitID;
powerRegenRate = m.regenRate;
var _local10 = 1;
skillIDs = m.skillIDs;
var _local3 = new Array();
var _local4 = 0;
while (_local4 < skillIDs.length) {
_local3[_local4] = skillIDs[_local4];
_local4++;
}
var _local8 = -1;
_local4 = 1;
while (_local4 <= 5) {
var _local7 = _root.RandRange(0, skillIDs.length - 1);
var _local6 = _root.RandRange(0, skillIDs.length - 1);
_local8 = _local3[_local7];
_local3[_local7] = _local3[_local6];
_local3[_local6] = _local8;
_local4++;
}
_local4 = 0;
while (_local4 < _local3.length) {
var _local5 = Skill.LoadSkill(_local3[_local4]);
if ((_local5.reqClass == _root.p1.classID) || (_local5.reqClass == 0)) {
_root.PrepSkill(_local3[_local4], this, _local10++);
}
_local4++;
}
}
function ReduceManaShield(dmgAmt) {
var _local2 = 0;
if (manaShield != 0) {
_local2 = Math.floor(dmgAmt * manaShield);
if (_local2 > curPower) {
_local2 = curPower;
}
ModPower(_local2);
}
return(dmgAmt - _local2);
}
function ReduceAdrenalineRush(dmgAmt) {
var _local2 = 0;
var _local3 = dmgAmt;
if (adrenalineRush != 0) {
_local2 = Math.floor(dmgAmt * adrenalineRush);
_local3 = dmgAmt - _local2;
if ((_local2 + curPower) > power) {
_local2 = power - curPower;
}
ModPower(_local2 * -1);
}
return(_local3);
}
function ModGold(goldDelta) {
if (goldDelta != 0) {
gold = gold + goldDelta;
_root.PlaySound(0);
if (_currentframe != 20) {
_root.UpdateStats();
}
if (_root.talesKongregateFlag) {
_root.kongregateStats.submit("MaxGold", gold);
if (goldDelta > 0) {
_root.kongregateStats.submit("TotalGold", goldDelta);
}
}
}
}
function ModRunes(runeDelta) {
if (runeDelta != 0) {
runes = runes + runeDelta;
_root.PlaySound(16);
if (_currentframe != 20) {
_root.UpdateStats();
}
if (_root.talesKongregateFlag) {
_root.kongregateStats.submit("MaxRunes", runes);
if (runeDelta > 0) {
_root.kongregateStats.submit("TotalRunes", runeDelta);
}
}
}
}
function ModExp(expDelta) {
experience = experience + expDelta;
var _local3 = Level.GetLevel(level + 1, classID);
if (experience > _local3.expForLevel) {
experience = _local3.expForLevel;
}
if (_currentframe != 20) {
_root.UpdateStats();
}
}
function ModHealth(healthDelta) {
curHealth = curHealth + healthDelta;
if (curHealth > health) {
curHealth = health;
} else if (curHealth <= 0) {
curHealth = 0;
}
healthBar.myMeterBar._width = healthBarWidth * (curHealth / health);
damageWindow.AddEffectsText(healthDelta);
_root.UpdatePowerAndHealth(playerNbr);
}
function ResetMaxHealthReduction() {
maxHealth = health;
maxHealthBarWidth = 146;
totalHealthReduction = 0;
}
function EndMaxHealthReduction() {
health = maxHealth;
healthBarWidth = maxHealthBarWidth;
totalHealthReduction = 0;
}
function SetMaxHealthReduction(reduction) {
if (reduction != 0) {
_root.PlaySound(2);
}
totalHealthReduction = totalHealthReduction + reduction;
health = Math.round(maxHealth * (1 - totalHealthReduction));
healthBarWidth = Math.round(maxHealthBarWidth * (1 - totalHealthReduction));
}
function DrawMaxHealthReduction(healthbarInstance) {
var _local2 = 145.5 * (1 - totalHealthReduction);
healthbarInstance.mcMaxHealthBar._x = 56.5 + _local2;
healthbarInstance.maxHealthReducedTxt._visible = true;
}
function ModPower(powerDelta) {
curPower = curPower + powerDelta;
if (curPower > power) {
curPower = power;
} else if (curPower <= 0) {
curPower = 0;
}
powerBar.myMeterBar._width = powerBarWidth * (curPower / power);
EnableSkills();
ManagePowerIcons();
_root.UpdatePowerAndHealth(playerNbr);
}
function ApplyDot(inSkill, otherGuy) {
var myBuff = new Buff();
myBuff.skill = inSkill;
myBuff.buffTime = myBuff.skill.buffTime;
myBuff.buffTimeTotal = myBuff.skill.buffTime;
var dotApplied = false;
if (myBuff.skill.parentSkillID == 6) {
_root.PlaySound(6);
} else if (myBuff.skill.parentSkillID == 7) {
_root.PlaySound(7);
} else if (myBuff.skill.parentSkillID == 10) {
_root.PlaySound(12);
} else if (myBuff.skill.parentSkillID == 13) {
_root.PlaySound(13);
} else if (myBuff.skill.parentSkillID == 23) {
_root.PlaySound(15);
}
if (myBuff.skill.slowPercent != 0) {
slowed = slowed + myBuff.skill.slowPercent;
dotApplied = true;
}
if (myBuff.skill.powerRegen != 0) {
regenerating = regenerating + myBuff.skill.powerRegen;
_root.UpdatePowerAndHealth(playerNbr);
dotApplied = true;
}
if (myBuff.skill.manaShield != 0) {
manaShield = manaShield + myBuff.skill.manaShield;
dotApplied = true;
}
if (myBuff.skill.adrenalineRush != 0) {
adrenalineRush = adrenalineRush + myBuff.skill.adrenalineRush;
dotApplied = true;
}
if (myBuff.skill.damageDoneModifier != 0) {
damageDoneModifier = damageDoneModifier + myBuff.skill.damageDoneModifier;
dotApplied = true;
}
if (myBuff.skill.damageTakenModifier != 0) {
damageTakenModifier = damageTakenModifier + myBuff.skill.damageTakenModifier;
dotApplied = true;
}
if (myBuff.skill.immuneToStun == true) {
dotApplied = true;
}
if (myBuff.skill.chanceOfStun > 0) {
var x = _root.RandRange(1, 100);
var stunChance = (myBuff.skill.chanceOfStun + GetStunResistBonus());
trace((((((myBuff.skill.skillName + " ... chance of stun:") + myBuff.skill.chanceOfStun) + " + bonus ") + GetStunResistBonus()) + " ... Rolled: ") + x);
if (stunChance > 1) {
stunChance = 1;
} else if (stunChance < 0) {
stunChance = 0;
}
if (x <= (stunChance * 100)) {
if (IsImmuneToStun()) {
specialDamageWindow.AddEffectsText("Immune!");
} else {
_root.PlaySound(2);
stunned = true;
myBuff.buffTime = Math.round((myBuff.buffTime + otherGuy.GetStunTimeBonus()) * (1 + GetStunTimeReductionPercent()));
trace((((("Bufftime=" + myBuff.buffTime) + " Reduction %:") + GetStunTimeReductionPercent()) + " Stun Time Bonus:") + otherGuy.GetStunTimeBonus());
if (myBuff.buffTime < 1) {
myBuff.buffTime = 1;
}
myBuff.stun = true;
DisableSkills();
dotApplied = true;
specialDamageWindow.AddEffectsText("Stunned!");
}
} else if (myBuff.skill.interupt) {
if (castBar.casting) {
_root.PlaySound(3);
specialDamageWindow.AddEffectsText("Interrupted!");
}
}
}
if (myBuff.skill.chanceOfBlind > 0) {
var x = _root.RandRange(1, 100);
var blindChance = (myBuff.skill.chanceOfBlind + GetBlindResistPercent());
trace((((((myBuff.skill.skillName + " ... chance of blind:") + myBuff.skill.chanceOfBlind) + " + bonus ") + GetBlindResistPercent()) + " ... Rolled: ") + x);
if (blindChance > 1) {
blindChance = 1;
} else if (blindChance < 0) {
blindChance = 0;
}
if (x <= (blindChance * 100)) {
myBuff.buffTime = Math.round(myBuff.buffTime * (1 + GetBlindTimeReductionPercent()));
trace((((myBuff.skill.skillName + " ... blind time:") + myBuff.buffTime) + " + reduction ") + GetBlindTimeReductionPercent());
blindCtr++;
myBuff.blind = true;
HideSkillText();
dotApplied = true;
specialDamageWindow.AddEffectsText("Blinded!");
}
}
if (myBuff.skill.dotAmount != 0) {
dotApplied = true;
myBuff.bonusDamageTotal = 0;
myBuff.bonusDamage = 0;
if (otherGuy.GetTotalDamageBonus(1) > 0) {
myBuff.bonusDamageTotal = myBuff.bonusDamageTotal + otherGuy.GetTotalDamageBonus(1);
}
if (GetTotalDamageReduction(1) > 0) {
myBuff.bonusDamageTotal = myBuff.bonusDamageTotal + GetTotalDamageReduction(1);
}
myBuff.damageAbsorbedTotal = 0;
myBuff.damageAbsorbed = 0;
if (GetTotalDamageReduction(1) < 0) {
myBuff.damageAbsorbedTotal = myBuff.damageAbsorbedTotal + (GetTotalDamageReduction(1) * -1);
}
if (otherGuy.GetTotalDamageBonus(1) < 0) {
myBuff.damageAbsorbedTotal = myBuff.damageAbsorbedTotal + (otherGuy.GetTotalDamageBonus(1) * -1);
}
}
if (myBuff.skill.reflectDmgType != -1) {
dotApplied = true;
}
if (myBuff.skill.telepathy == true) {
dotApplied = true;
}
if (myBuff.skill.hideCastbar == true) {
hideCastbarCtr++;
_root.HideEnemyCastbar();
dotApplied = true;
}
if (myBuff.skill.shrinkPercent != 0) {
shrink = shrink + myBuff.skill.shrinkPercent;
_root.SetShrinkSkills();
dotApplied = true;
}
if (myBuff.skill.slowCursor != 0) {
slowCursor = slowCursor + myBuff.skill.slowCursor;
_root.SetSlowCursor();
dotApplied = true;
}
if (myBuff.skill.immuneDmgType != -1) {
dotApplied = true;
trace("immune dot applied");
}
if ((myBuff.skill.skillID == 74) || (myBuff.skill.skillID == 104)) {
dotApplied = true;
}
if (myBuff.skill.driftSpeed > 0) {
drifting = myBuff.skill.driftSpeed * (1 - GetDriftModSpeed());
dotApplied = true;
var i = 0;
while (i < skills.length) {
var d = _root.RandRange(0, 90);
var moveSkill = eval ((("p" + playerNbr) + "_skill") + skills[i].skillID);
if (d == 45) {
moveSkill.driftY = (moveSkill.driftX = drifting);
} else if (d > 45) {
moveSkill.driftY = drifting;
moveSkill.driftX = Math.round((d / 45) * moveSkill.driftY);
} else {
moveSkill.driftX = drifting;
moveSkill.driftY = Math.round((d / 45) * moveSkill.driftX);
}
var quadrant = _root.RandRange(1, 4);
if (quadrant == 2) {
moveSkill.driftX = moveSkill.driftX * -1;
} else if (quadrant == 3) {
moveSkill.driftX = moveSkill.driftX * -1;
moveSkill.driftY = moveSkill.driftY * -1;
} else if (quadrant == 3) {
moveSkill.driftY = moveSkill.driftY * -1;
}
i++;
}
}
if (myBuff.skill.disabledSkillCategory != -1) {
if (myBuff.skill.disabledSkillCategory == 50) {
var i = _root.RandRange(0, skills.length - 1);
var s = eval ((("p" + playerNbr) + "_skill") + skills[i].skillID);
s.skillButton1.enabled = false;
s.disabledSkillCtr++;
s.skillButton1.gotoAndStop("disabled");
s.ShowCrippleIcon();
myBuff.disabledSkillArr.push((("p" + playerNbr) + "_skill") + skills[i].skillID);
dotApplied = true;
if (s == _root.nextSkill) {
_root.nextSkill = undefined;
}
} else if (myBuff.skill.disabledSkillCategory >= 10000) {
var s = eval ((("p" + playerNbr) + "_skill") + (myBuff.skill.disabledSkillCategory - 10000));
trace((("Disabling: " + s) + " :: ") + myBuff.skill.disabledSkillCategory);
s.skillButton1.enabled = false;
s.disabledSkillCtr++;
s.skillButton1.gotoAndStop("disabled");
s.ShowCrippleIcon();
myBuff.disabledSkillArr.push((("p" + playerNbr) + "_skill") + (myBuff.skill.disabledSkillCategory - 10000));
dotApplied = true;
if (s == _root.nextSkill) {
_root.nextSkill = undefined;
}
} else {
var i = 0;
while (i < skills.length) {
if (skills[i].categoryID == myBuff.skill.disabledSkillCategory) {
var s = eval ((("p" + playerNbr) + "_skill") + skills[i].skillID);
s.skillButton1.enabled = false;
s.disabledSkillCtr++;
s.ShowCrippleIcon();
s.skillButton1.gotoAndStop("disabled");
myBuff.disabledSkillArr.push((("p" + playerNbr) + "_skill") + skills[i].skillID);
dotApplied = true;
if (s == _root.nextSkill) {
_root.nextSkill = undefined;
}
}
i++;
}
}
}
if (dotApplied) {
var myDepth = GetBuffSlot();
var myY = GetBuffIconY(BuffCountByType(myBuff));
var myX = GetBuffIconX(BuffCountByType(myBuff), myBuff.skill.isDebuff);
myBuff.mcRef = _root.attachMovie("buffText", (("p" + playerNbr) + "_buff") + myDepth, myDepth, {_x:myX, _y:myY});
myBuff.mcRef.useHandCursor = false;
myBuff.attacker = otherGuy;
myBuff.mcRef.buffText = myBuff.skill.buffToolTip;
myBuff.mcRef.timeLeft = myBuff.buffTime;
myBuff.mcRef.isDebuff = myBuff.skill.isDebuff;
buffs.push(myBuff);
if (buffs.length > 10) {
trace("MAX BUFFS REACHED - must code");
}
}
}
function HasGoodBuffs() {
var _local3 = false;
var _local2 = 0;
while (_local2 < buffs.length) {
if (!buffs[_local2].skill.isDebuff) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function BuffCountByType(myBuff) {
var _local3 = 0;
if (myBuff.skill.isDebuff) {
var _local2 = 0;
while (_local2 < buffs.length) {
if (buffs[_local2].skill.isDebuff) {
_local3++;
}
_local2++;
}
} else {
var _local2 = 0;
while (_local2 < buffs.length) {
if (!buffs[_local2].skill.isDebuff) {
_local3++;
}
_local2++;
}
}
return(_local3);
}
function ShowSkillText() {
var i = 0;
while (i < skills.length) {
eval ((("p" + playerNbr) + "_skill") + skills[i].skillID).skillButton1.mcBlind._visible = false;
i++;
}
}
function HideSkillText() {
var i = 0;
while (i < skills.length) {
eval ((("p" + playerNbr) + "_skill") + skills[i].skillID).skillButton1.mcBlind._visible = true;
i++;
}
}
function HomeSkills() {
drifting = 0;
var i = 0;
while (i < skills.length) {
var moveSkill = eval ((("p" + playerNbr) + "_skill") + skills[i].skillID);
moveSkill._x = moveSkill.homeX;
moveSkill._y = moveSkill.homeY;
moveSkill._alpha = 100;
moveSkill.gotoAndPlay(1);
i++;
}
}
function ArrangeBuffIcons() {
var _local4 = -1;
var _local5 = -1;
var _local3 = 0;
var _local2 = 0;
while (_local2 < buffs.length) {
if (buffs[_local2].skill.isDebuff) {
_local4++;
_local3 = _local4;
} else {
_local5++;
_local3 = _local5;
}
buffs[_local2].mcRef._y = GetBuffIconY(_local3);
buffs[_local2].mcRef._x = GetBuffIconX(_local3, buffs[_local2].skill.isDebuff);
_local2++;
}
}
function IsImmuneToStun() {
var _local3 = false;
var _local2 = 0;
while (_local2 < buffs.length) {
if (buffs[_local2].skill.immuneToStun == true) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function IsReflectingDmg(dmgType) {
var _local3 = false;
var _local2 = 0;
while (_local2 < buffs.length) {
if (buffs[_local2].skill.reflectDmgType == dmgType) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function SlowCursorTimeLeft() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < buffs.length) {
if ((buffs[_local2].skill.slowCursor > 0) && (buffs[_local2].buffTime > _local3)) {
_local3 = buffs[_local2].buffTime;
}
_local2++;
}
return(_local3);
}
function DriftTimeLeft() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < buffs.length) {
if ((buffs[_local2].skill.driftSpeed > 0) && (buffs[_local2].buffTime > _local3)) {
_local3 = buffs[_local2].buffTime;
}
_local2++;
}
return(_local3);
}
function IsImmuneDmg(dmgType) {
var _local3 = false;
var _local2 = 0;
while (_local2 < buffs.length) {
if ((buffs[_local2].skill.immuneDmgType == dmgType) || (buffs[_local2].skill.immuneDmgType == 10)) {
_local3 = true;
break;
}
_local2++;
}
return(_local3);
}
function GetBuffIconY(nbrBuffs) {
var _local1;
_local1 = 131 + (nbrBuffs * 14);
return(_local1);
}
function GetBuffIconX(nbrBuffs, debuff) {
var _local2;
if (playerNbr == 1) {
if (debuff) {
_local2 = 245;
} else {
_local2 = 138;
}
} else if (debuff) {
_local2 = 478;
} else {
_local2 = 370;
}
return(_local2);
}
function GetBuffSlot() {
var _local5 = 300 + ((playerNbr - 1) * 100);
var _local6 = _local5;
var _local4 = false;
var _local3 = _local5;
while (_local3 < (_local5 + 10)) {
var _local2 = 0;
while (_local2 < buffs.length) {
if (buffs[_local2].mcRef.getDepth() == _local3) {
_local4 = true;
}
_local2++;
}
if (_local4 == false) {
_local6 = _local3;
break;
}
_local4 = false;
_local3++;
}
return(_local6);
}
function DisableSkills(onlyDisable) {
if ((playerNbr == 1) && (onlyDisable != true)) {
_root.nextSkill = undefined;
}
var i = 0;
while (i < (skills.length + 1)) {
eval ((("p" + playerNbr) + "_skill") + skills[i].skillID).skillButton1.enabled = false;
if (onlyDisable != true) {
eval ((("p" + playerNbr) + "_skill") + skills[i].skillID).skillButton1.gotoAndStop("disabled");
}
i++;
}
}
function ResetCooldowns() {
var i = 0;
while (i < (skills.length + 1)) {
var s = eval ((("p" + playerNbr) + "_skill") + skills[i].skillID);
if ((s.skillID != 99) && (s.skillID != 105)) {
s.StopMe();
}
i++;
}
}
function ManagePowerIcons() {
var i = 0;
while (i < (skills.length + 1)) {
var s = eval ((("p" + playerNbr) + "_skill") + skills[i].skillID);
if (s.powerCost > 0) {
if (s.player.curPower < s.powerCost) {
s.ShowNoPowerIcon();
} else {
s.HideNoPowerIcon();
}
}
i++;
}
}
function EnableSkills() {
var i = 0;
while (i < (skills.length + 1)) {
var s = eval ((("p" + playerNbr) + "_skill") + skills[i].skillID);
if (((((!s.onCooldown) && (s.disabledSkillCtr == 0)) && ((s.skillButton1._currentframe >= 21) && (s.skillButton1._currentframe <= 22))) && (!stunned)) && (s.player.curPower >= s.powerCost)) {
if (playerNbr == 1) {
s.skillButton1.enabled = true;
}
s.skillButton1.gotoAndPlay("up");
} else if (s.player.curPower < s.powerCost) {
s.skillButton1.enabled = false;
s.skillButton1.gotoAndStop("disabled");
}
if (s.disabledSkillCtr == 0) {
s.HideCrippleIcon();
}
i++;
}
}
function AddBlankTooltips() {
for (var i in skills) {
var s = eval ((("p" + playerNbr) + "_skill") + skills[i].skillID);
s.onRollOver = function () {
};
}
}
function RemoveSkillTooltips() {
for (var i in skills) {
var s = eval ((("p" + playerNbr) + "_skill") + skills[i].skillID);
delete s.onRollOver;
delete s.onRollOut;
}
}
function RemoveDotsByType(dmgType) {
var _local2 = buffs.length - 1;
while (_local2 >= 0) {
if (buffs[_local2].skill.dmgType == dmgType) {
RemoveDot(_local2);
}
_local2--;
}
}
function RemoveRandomBuffDot() {
var _local4 = new Array();
var _local3 = buffs.length - 1;
while (_local3 >= 0) {
if (!buffs[_local3].skill.isDebuff) {
_local4.push(_local3);
}
_local3--;
}
if (_local4.length > 0) {
var _local5 = _root.RandRange(0, _local4.length - 1);
RemoveDot(_local4[_local5]);
}
}
function RemoveAllDots(dmgType) {
var _local2 = buffs.length - 1;
while (_local2 >= 0) {
RemoveDot(_local2);
_local2--;
}
}
function RemoveDot(dotNbr) {
if (buffs[dotNbr].skill.disabledSkillCategory != -1) {
var q = 0;
while (q < buffs[dotNbr].disabledSkillArr.length) {
var myArray = buffs[dotNbr].disabledSkillArr;
eval (myArray[q]).disabledSkillCtr--;
q++;
}
}
if (buffs[dotNbr].skill.damageTakenModifier != 0) {
damageTakenModifier = damageTakenModifier - buffs[dotNbr].skill.damageTakenModifier;
}
if (buffs[dotNbr].skill.damageDoneModifier != 0) {
damageDoneModifier = damageDoneModifier - buffs[dotNbr].skill.damageDoneModifier;
}
if (buffs[dotNbr].blind) {
if ((--blindCtr) == 0) {
ShowSkillText();
}
}
if (buffs[dotNbr].skill.hideCastbar) {
if ((--hideCastbarCtr) == 0) {
_root.ShowEnemyCastbar();
}
}
if (buffs[dotNbr].skill.shrinkPercent != 0) {
shrink = shrink - buffs[dotNbr].skill.shrinkPercent;
}
if ((buffs[dotNbr].skill.slowCursor != 0) && (!_root.battleOver)) {
slowCursor = slowCursor - buffs[dotNbr].skill.slowCursor;
_root.SetSlowCursor();
}
if (buffs[dotNbr].skill.powerRegen != 0) {
regenerating = regenerating - buffs[dotNbr].skill.powerRegen;
}
if (buffs[dotNbr].skill.manaShield != 0) {
manaShield = manaShield - buffs[dotNbr].skill.manaShield;
}
if (buffs[dotNbr].skill.adrenalineRush != 0) {
adrenalineRush = adrenalineRush - buffs[dotNbr].skill.adrenalineRush;
}
buffs[dotNbr].mcRef.unsetToolTip();
buffs[dotNbr].mcRef.removeMovieClip();
buffs.splice(dotNbr, 1);
ArrangeBuffIcons();
}
function StopCast() {
if (castBar.casting) {
castBar.EndCast();
}
}
function StopSkills() {
var _local2 = 0;
while (_local2 < skills.length) {
skills[_local2].StopMe();
_local2++;
}
}
function ReleasePortrait() {
portrait.removeMovieClip();
}
var playerNbr = 0;
var playerName = "";
var experience = 0;
var classID = 0;
var level = 0;
var gold = 0;
var runes = 0;
var health = 0;
var maxHealth = 0;
var totalHealthReduction = 0;
var curHealth = 0;
var power = 0;
var powerType = 0;
var powerRegenRate = 0;
var powerRegenRateRemainder = 0;
var curPower = 0;
var healthBar = null;
var healthBarWidth = 0;
var maxHealthBarWidth = 0;
var powerBar = null;
var powerBarWidth = 0;
var portrait = null;
var specialDamageWindow = null;
var portraitID = 999;
var pauseTime = 0;
var pauseTimeStart = 0;
var castBar = null;
var stunned = false;
var slowed = 0;
var regenerating = 0;
var manaShield = 0;
var adrenalineRush = 0;
var drifting = 0;
var shrink = 0;
var slowCursor = 0;
var hideCastbarCtr = 0;
var damageTakenModifier = 0;
var damageDoneModifier = 0;
var blindCtr = 0;
var hasOpening = false;
var hasOpeningCounter = 0;
var chanceOfOpening = 0;
var showTutorial = true;
var taunting = 0;
var goldMin = 0;
var goldMax = 0;
var monsterID = 0;
}
Symbol 847 MovieClip [__Packages.Skill] Frame 0
#initclip
if (!_global.Skill) {
var _local1 = function () {
super();
};
_global.Skill = _local1;
//_global.Skill extends MovieClip
var _local2 = _local1.prototype;
_local1.LoadSkillArray = function (a) {
var _local1 = 1;
while (_local1 < (Skill.MAX_SKILLS + 1)) {
var _local2 = Skill.LoadSkill(_local1);
if (_local2.skillName != "") {
a.push(_local2);
}
_local1++;
}
};
_local1.ReplaceDescTokens = function (s) {
var _local2 = s.desc;
_local2 = _root.searchAndReplace(_local2, "#DMGMIN#", s.dmgMin);
_local2 = _root.searchAndReplace(_local2, "#DMGMAX#", s.dmgMax);
_local2 = _root.searchAndReplace(_local2, "#DMGMINNEG#", s.dmgMin * -1);
_local2 = _root.searchAndReplace(_local2, "#DMGMAXNEG#", s.dmgMax * -1);
_local2 = _root.searchAndReplace(_local2, "#BUFFTIME#", s.buffTime);
_local2 = _root.searchAndReplace(_local2, "#TOTALDOTNEG#", (s.buffTime * s.dotAmount) * -1);
_local2 = _root.searchAndReplace(_local2, "#TOTALDOT#", s.buffTime * s.dotAmount);
_local2 = _root.searchAndReplace(_local2, "#SLOWPERCENT#", s.slowPercent * 100);
_local2 = _root.searchAndReplace(_local2, "#CHANCEOFSTUN#", s.chanceOfStun * 100);
_local2 = _root.searchAndReplace(_local2, "#DMGDONEMOD#", s.damageDoneModifier);
_local2 = _root.searchAndReplace(_local2, "#POWERREGEN#", s.powerRegen);
_local2 = _root.searchAndReplace(_local2, "#POWERBONUS#", s.powerBonus);
_local2 = _root.searchAndReplace(_local2, "#ADRENALINERUSH#", s.adrenalineRush * 100);
return(_local2);
};
_local1.DirectDamage = function (s) {
if (s.dmgMin == s.dmgMax) {
return("#DMGMAX# damage");
}
return("#DMGMIN# to #DMGMAX# damage");
};
_local1.DirectHealing = function (s) {
if (s.dmgMin == s.dmgMax) {
return("#DMGMAXNEG# health");
}
return("#DMGMAXNEG# to #DMGMINNEG# health");
};
_local1.DotDamage = function (buffTime, dotAmount) {
return("#TOTALDOTNEG# damage over #BUFFTIME# seconds");
};
_local1.DotHealing = function (buffTime, dotAmount) {
return("#TOTALDOT# health over #BUFFTIME# seconds");
};
} else {
// unexpected jump
}
_local1.LoadSkill = function (skillID) {
var _local1 = new Skill();
_local1.skillID = skillID;
if (skillID == 1) {
_local1.skillName = "Slingshot";
_local1.dmgMin = 9;
_local1.dmgMax = 14;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 5;
_local1.reqLevel = 1;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 1;
toggleHighQuality();
duplicateMovieClip (1, Skill, -16384);
_local1.LoadSkill = (_local1 + "A small slingshot that does "[_local1]()) + ".";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 2) {
_local1.skillName = "Flamethrower";
_local1.castTime = 3;
_local1.cooldown = 10;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 5;
_local1.reqLevel = 1;
_local1.categoryID = 1;
_local1.parentSkillID = 1;
_local1.dotAmount = -8;
_local1.powerCost = 40;
_local1.powerTypeCost = 1;
_local1.rank = 1;
_local1.dmgType = 1;
_local1.desc = ("Engulf your enemies in flames for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "On Fire!";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 3) {
_local1.skillName = "Refill Gas Tank";
_local1.castTime = 5;
_local1.cooldown = 25;
_local1.forSale = true;
_local1.goldCost = 40;
_local1.reqLevel = 2;
_local1.categoryID = 1;
_local1.parentSkillID = 2;
_local1.isDebuff = false;
_local1.rank = 1;
_local1.desc = "This skill enables you to completely refills your gas tank.";
_local1.reqClass = 1;
_local1.refillPower = true;
return(_local1);
}
if (skillID == 4) {
_local1.skillName = "Anti-Magic Grenade";
_local1.cooldown = 35;
_local1.forSale = true;
_local1.goldCost = 80;
_local1.reqLevel = 3;
_local1.categoryID = 1;
_local1.parentSkillID = 5;
_local1.isDebuff = false;
_local1.powerCost = 44;
_local1.powerTypeCost = 1;
_local1.rank = 1;
_local1.desc = "Toss at your enemy to remove one buff from them at random. A buff is anything they cast that counts down in green text next to their portrait.";
_local1.reqClass = 1;
_local1.removeBuff = true;
return(_local1);
}
if (skillID == 5) {
_local1.skillName = "Fist on Spring";
_local1.cooldown = 15;
_local1.forSale = true;
_local1.goldCost = 40;
_local1.reqLevel = 2;
_local1.categoryID = 1;
_local1.parentSkillID = 3;
_local1.powerCost = 48;
_local1.powerTypeCost = 1;
_local1.rank = 1;
_local1.interupt = true;
_local1.desc = "Instantly fire out a giant fist on a spring, interupting your opponents cast.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 6) {
_local1.skillName = "Groin Kick";
_local1.dmgMin = 12;
_local1.dmgMax = 12;
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 15;
_local1.reqLevel = 1;
_local1.categoryID = 2;
_local1.parentSkillID = 4;
_local1.chanceOfStun = 1;
_local1.rank = 1;
_local1.interupt = true;
_local1.desc = ("A well placed kick to the loins, stunning opponent for #BUFFTIME# seconds, and causing " + Skill.DirectDamage(_local1)) + ".";
_local1.buffToolTip = "Puking";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 7) {
_local1.skillName = "Mechanical Gnat";
_local1.castTime = 2.5;
_local1.cooldown = 30;
_local1.buffTime = 8;
_local1.forSale = true;
_local1.goldCost = 150;
_local1.reqLevel = 4;
_local1.categoryID = 1;
_local1.parentSkillID = 6;
_local1.dotAmount = -4;
_local1.slowPercent = 1;
_local1.powerCost = 40;
_local1.powerTypeCost = 1;
_local1.rank = 1;
_local1.desc = ("Fires up a mechanical gnat to annoy your adversary. Does " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slows their casting by #SLOWPERCENT#%.";
_local1.buffToolTip = "Annoyed";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 8) {
_local1.skillName = "Short Sword";
_local1.dmgMin = 7;
_local1.dmgMax = 11;
_local1.castTime = 1;
_local1.cooldown = 2;
_local1.desc = ("A puny, rusty sword that stabs rustily for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 9) {
_local1.skillName = "Shield Bash";
_local1.dmgMin = 12;
_local1.dmgMax = 32;
_local1.castTime = 2;
_local1.cooldown = 15;
_local1.buffTime = 3;
_local1.chanceOfStun = 0.3;
_local1.interupt = true;
_local1.desc = ("Bashes opponent for " + Skill.DirectDamage(_local1)) + ", interrupts their current action, and has a #CHANCEOFSTUN#% to stun opponent for #BUFFTIME# seconds.";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 10) {
_local1.skillName = "Lesser Healing";
_local1.dmgMin = -60;
_local1.dmgMax = -40;
_local1.castTime = 3;
_local1.cooldown = 30;
_local1.isDebuff = false;
_local1.powerCost = 20;
_local1.powerTypeCost = 2;
_local1.dmgType = 2;
_local1.desc = ("A low strength healing spell that heals caster for " + Skill.DirectHealing(_local1)) + ". Only use when health is below 50%.";
return(_local1);
}
if (skillID == 11) {
_local1.skillName = "Robotic Medic";
_local1.cooldown = 30;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 220;
_local1.reqLevel = 5;
_local1.categoryID = 1;
_local1.parentSkillID = 8;
_local1.dotAmount = 8;
_local1.isDebuff = false;
_local1.powerCost = 50;
_local1.powerTypeCost = 1;
_local1.rank = 1;
_local1.dmgType = 2;
_local1.desc = ("Launches a small medbot that heals you for " + Skill.DotHealing(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Robohealing";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 12) {
_local1.skillName = "Spiked Bolas";
_local1.dmgMin = 12;
_local1.dmgMax = 20;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 20;
_local1.reqLevel = 2;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 2;
_local1.desc = ("Three spiked balls connected by a cord that cause " + Skill.DirectDamage(_local1)) + " when hurled.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 13) {
_local1.skillName = "Flamethrower v2";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 35;
_local1.reqLevel = 2;
_local1.categoryID = 1;
_local1.parentSkillID = 1;
_local1.dotAmount = -12;
_local1.powerCost = 44;
_local1.powerTypeCost = 1;
_local1.rank = 2;
_local1.dmgType = 1;
_local1.desc = ("Enhanced blower to engulf your enemies in flames for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "On Fire!";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 14) {
_local1.skillName = "Light Crossbow";
_local1.dmgMin = 20;
_local1.dmgMax = 28;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 75;
_local1.reqLevel = 3;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 3;
_local1.desc = ("A small crossbow that fires tiny bolts that hit for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 15) {
_local1.skillName = "Heavy Crossbow";
_local1.dmgMin = 36;
_local1.dmgMax = 44;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 220;
_local1.reqLevel = 5;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 5;
_local1.desc = ("A mammoth crossbow that fires thick, meaty bolts for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 16) {
_local1.skillName = "Dart Pistol";
_local1.dmgMin = 28;
_local1.dmgMax = 36;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 150;
_local1.reqLevel = 4;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 4;
_local1.desc = ("A small mechanical pistol that fires out darts that cause " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 17) {
_local1.skillName = "Refill Gas Tank";
_local1.castTime = 3;
_local1.cooldown = 25;
_local1.forSale = true;
_local1.goldCost = 150;
_local1.reqLevel = 4;
_local1.categoryID = 1;
_local1.parentSkillID = 2;
_local1.isDebuff = false;
_local1.rank = 2;
_local1.desc = "This enhanced skill enables you to completely refill your gas tank quicker than earlier models.";
_local1.reqClass = 1;
_local1.refillPower = true;
return(_local1);
}
if (skillID == 18) {
_local1.skillName = "Fire Staff";
_local1.dmgMin = 4;
_local1.dmgMax = 12;
_local1.castTime = 1;
_local1.cooldown = 2;
_local1.desc = ("Fire staff that singes your victim for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 19) {
_local1.skillName = "Magic Missile";
_local1.dmgMin = 16;
_local1.dmgMax = 16;
_local1.castTime = 2;
_local1.cooldown = 6;
_local1.powerCost = 20;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("Launches everyone's favorite mage spell, blasting your victim for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 20) {
_local1.skillName = "Old Wrench";
_local1.dmgMin = 8;
_local1.dmgMax = 16;
_local1.castTime = 1;
_local1.cooldown = 3;
_local1.desc = ("Old wrench that smacks your victim for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 21) {
_local1.skillName = "Acidic Trash";
_local1.castTime = 2;
_local1.cooldown = 15;
_local1.buffTime = 4;
_local1.dotAmount = -8;
_local1.dmgType = 4;
_local1.desc = ("Acidic, nasty trash hurled doing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Acid Burn";
return(_local1);
}
if (skillID == 22) {
_local1.skillName = "Stop, Drop and Roll";
_local1.castTime = 1;
_local1.cooldown = 15;
_local1.isDebuff = false;
_local1.desc = "Stop, drop and roll to extinguish any flame debuffs.";
_local1.removeDmgType = 1;
return(_local1);
}
if (skillID == 23) {
_local1.skillName = "Charge";
_local1.dmgMin = 12;
_local1.dmgMax = 12;
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.chanceOfStun = 0.8;
_local1.interupt = true;
_local1.desc = ((("Charges your opponent. " + (_local1.chanceOfStun * 100)) + "% chance to stun for #BUFFTIME# seconds. Also delivers ") + Skill.DirectDamage(_local1)) + ".";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 24) {
_local1.skillName = "Headbutt";
_local1.dmgMin = 12;
_local1.dmgMax = 12;
_local1.cooldown = 25;
_local1.interupt = true;
_local1.desc = ("Instant headbutt that interrupts opponent's action, and does " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 25) {
_local1.skillName = "Brass Knuckles";
_local1.dmgMin = 8;
_local1.dmgMax = 14;
_local1.castTime = 2;
_local1.cooldown = 6;
_local1.desc = ("A metal band worn on the fist that delivers " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 26) {
_local1.skillName = "Disarm";
_local1.castTime = 2;
_local1.cooldown = 40;
_local1.buffTime = 4;
_local1.disabledSkillCategory = 0;
_local1.desc = "Reach out and grab your opponents weapon out of his hands for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disarmed";
return(_local1);
}
if (skillID == 27) {
_local1.skillName = "Left Hook";
_local1.dmgMin = 8;
_local1.dmgMax = 14;
_local1.castTime = 2;
_local1.cooldown = 4;
_local1.desc = ("A wide arcing hook punch, hitting for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 28) {
_local1.skillName = "Small Dagger";
_local1.dmgMin = 12;
_local1.dmgMax = 24;
_local1.castTime = 1;
_local1.cooldown = 5;
_local1.desc = ("A rusty little dagger that stabs for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 29) {
_local1.skillName = "Main Gauche";
_local1.dmgMin = 16;
_local1.dmgMax = 25;
_local1.castTime = 0.5;
_local1.cooldown = 8;
_local1.desc = ("A quick, left-handed weapon that strikes instantly for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 30) {
_local1.skillName = "Trip";
_local1.castTime = 3;
_local1.cooldown = 27;
_local1.buffTime = 1;
_local1.chanceOfStun = 1;
_local1.interupt = true;
_local1.desc = "Woops, your victim fell down. A quick kick to the legs sends them sprawling for #BUFFTIME# seconds.";
_local1.buffToolTip = "Fallen";
return(_local1);
}
if (skillID == 31) {
_local1.skillName = "Melt Face";
_local1.dmgMin = 12;
_local1.dmgMax = 24;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.powerCost = 32;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("A psionic spell that blasts the victim in the face for " + Skill.DirectDamage(_local1)) + ".";
_local1.buffToolTip = "Magic Damage";
return(_local1);
}
if (skillID == 32) {
_local1.skillName = "Slow Mind";
_local1.dmgMin = 28;
_local1.dmgMax = 28;
_local1.castTime = 4;
_local1.cooldown = 20;
_local1.buffTime = 20;
_local1.slowPercent = 0.6;
_local1.powerCost = 36;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("Make your opponent stupid, slowing their movements by " + (_local1.slowPercent * 100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Slowed";
return(_local1);
}
if (skillID == 33) {
_local1.skillName = "Psionic Blast";
_local1.castTime = 4;
_local1.cooldown = 15;
_local1.buffTime = 9;
_local1.dotAmount = -4;
_local1.powerCost = 36;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("Blast victim's mind for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Psionic Blast";
return(_local1);
}
if (skillID == 34) {
_local1.skillName = "Ion Goggle Blast";
_local1.dmgMin = 6;
_local1.dmgMax = 10;
_local1.castTime = 1;
_local1.cooldown = 2;
_local1.dmgType = 3;
_local1.desc = ("Tech goggles that deliver an Ion surge for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 35) {
_local1.skillName = "Syphon Gas";
_local1.castTime = 6;
_local1.cooldown = 35;
_local1.syphonPowerAmt = 100;
_local1.syphonPowerType = 1;
_local1.desc = ("Syphons " + _local1.syphonPowerAmt) + " gas from the opponent's gas tank.";
return(_local1);
}
if (skillID == 36) {
_local1.skillName = "Mechanical Arm Smash";
_local1.dmgMin = 60;
_local1.dmgMax = 60;
_local1.castTime = 1;
_local1.cooldown = 11;
_local1.powerCost = 28;
_local1.powerTypeCost = 1;
_local1.desc = ("A powerful smash with a giant mechanical arm, hitting for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 37) {
_local1.skillName = "Brain Shocker";
_local1.dmgMin = 20;
_local1.dmgMax = 20;
_local1.cooldown = 40;
_local1.buffTime = 10;
_local1.driftSpeed = 5;
_local1.powerCost = 20;
_local1.powerTypeCost = 2;
_local1.desc = "Disorients the oppoent, causing their skill buttons to drift randomly around the screen for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disoriented";
return(_local1);
}
if (skillID == 38) {
_local1.skillName = "Great Staff";
_local1.dmgMin = 10;
_local1.dmgMax = 16;
_local1.castTime = 1;
_local1.cooldown = 3;
_local1.desc = ("A wide arcing staff that hits for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 39) {
_local1.skillName = "Debris Telekinesis";
_local1.dmgMin = 30;
_local1.dmgMax = 30;
_local1.castTime = 4;
_local1.cooldown = 30;
_local1.desc = ("Telepathically hurtles small objects scattered around the arena that hits for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 40) {
_local1.skillName = "Burning Particles";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 8;
_local1.dotAmount = -3;
_local1.slowPercent = 0.3;
_local1.dmgType = 1;
_local1.desc = ((("Conjures burning particles that burn for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slows victim by ") + (_local1.slowPercent * 100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Burning";
return(_local1);
}
if (skillID == 41) {
_local1.skillName = "Mental Healing";
_local1.castTime = 4;
_local1.cooldown = 25;
_local1.buffTime = 6;
_local1.dotAmount = 40;
_local1.isDebuff = false;
_local1.dmgType = 2;
_local1.desc = ("Heals caster for " + Skill.DotHealing(_local1.buffTime, _local1.dotAmount)) + ". Use this when health is below 50%! If your opponent doesn't stop this, he's in trouble.";
_local1.buffToolTip = "Healing";
return(_local1);
}
if (skillID == 42) {
_local1.skillName = "Exploding Vial";
_local1.dmgMin = 40;
_local1.dmgMax = 40;
_local1.castTime = 2;
_local1.cooldown = 18;
_local1.buffTime = 5;
_local1.dotAmount = -4;
_local1.dmgType = 1;
_local1.desc = ((("Hurl a vial at your opponent, hitting with fire for " + Skill.DirectDamage(_local1)) + ", and ") + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Sizzling";
return(_local1);
}
if (skillID == 43) {
_local1.skillName = "Weakness Mist";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.damageDoneModifier = -8;
_local1.desc = ("A fine mist that, when applied, weakens the opponent's damage by " + _local1.damageDoneModifier) + " damage for #BUFFTIME# seconds.";
_local1.buffToolTip = "Weakened";
return(_local1);
}
if (skillID == 44) {
_local1.skillName = "Throwing Daggers";
_local1.dmgMin = 24;
_local1.dmgMax = 40;
_local1.castTime = 1;
_local1.cooldown = 5;
_local1.desc = ("Small daggers that are thrown, doing " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 45) {
_local1.skillName = "Speed Potion";
_local1.castTime = 2;
_local1.cooldown = 40;
_local1.buffTime = 16;
_local1.slowPercent = -0.5;
_local1.isDebuff = false;
_local1.dmgType = 3;
_local1.desc = ("A potion that speeds the embiber by " + (_local1.slowPercent * -100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Quickened";
return(_local1);
}
if (skillID == 46) {
_local1.skillName = "Healing Potion";
_local1.dmgMin = -120;
_local1.dmgMax = -80;
_local1.castTime = 2;
_local1.cooldown = 26;
_local1.isDebuff = false;
_local1.dmgType = 2;
_local1.desc = ("A potion that heals embiber for " + Skill.DirectHealing(_local1)) + ". Only use when health is below 50%.";
return(_local1);
}
if (skillID == 47) {
_local1.skillName = "Two Handed Axe";
_local1.dmgMin = 24;
_local1.dmgMax = 32;
_local1.castTime = 3;
_local1.cooldown = 2.5;
_local1.desc = ((("A massive axe that does " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage.";
return(_local1);
}
if (skillID == 48) {
_local1.skillName = "Bull Charge";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 6;
_local1.driftSpeed = 3;
_local1.desc = "A charge that dazes opponent, causing their skill buttons to drift randomly around the screen for #BUFFTIME# seconds.";
_local1.buffToolTip = "Dazed";
return(_local1);
}
if (skillID == 49) {
_local1.skillName = "Horn Gouge";
_local1.castTime = 3;
_local1.cooldown = 10;
_local1.buffTime = 6;
_local1.dotAmount = -12;
_local1.desc = ("Spear your enemy with your horns for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Bleeding";
return(_local1);
}
if (skillID == 50) {
_local1.skillName = "Enrage";
_local1.castTime = 2.5;
_local1.cooldown = 15;
_local1.buffTime = 10;
_local1.slowPercent = -0.8;
_local1.isDebuff = false;
_local1.desc = ("Get mad! Speeds you up by " + (_local1.slowPercent * -100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Enraged!";
return(_local1);
}
if (skillID == 51) {
_local1.skillName = "Overhead Smash";
_local1.dmgMin = 40;
_local1.dmgMax = 56;
_local1.castTime = 5;
_local1.cooldown = 15;
_local1.desc = ((("A huge overhead, arcing swing that hits hard for " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage.";
return(_local1);
}
if (skillID == 52) {
_local1.skillName = "Handful of Dust";
_local1.castTime = 2;
_local1.cooldown = 40;
_local1.buffTime = 8;
_local1.chanceOfBlind = 1;
_local1.desc = "Blinds target for #BUFFTIME# seconds, hiding their skill names.";
_local1.buffToolTip = "Blinded";
return(_local1);
}
if (skillID == 53) {
_local1.skillName = "Silver Longsword";
_local1.dmgMin = 32;
_local1.dmgMax = 48;
_local1.castTime = 2;
_local1.cooldown = 4;
_local1.desc = ((("A sharp blade that hits for " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage";
return(_local1);
}
if (skillID == 54) {
_local1.skillName = "Gut Rip";
_local1.castTime = 2;
_local1.cooldown = 20;
_local1.buffTime = 6;
_local1.dotAmount = -24;
_local1.desc = ("A brutal tear to the midsection that bleeds for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Bleeding";
return(_local1);
}
if (skillID == 55) {
_local1.skillName = "Fireproof Cape";
_local1.castTime = 1.5;
_local1.cooldown = 20;
_local1.isDebuff = false;
_local1.desc = "A cape that can extinguish any flames.";
_local1.removeDmgType = 1;
return(_local1);
}
if (skillID == 56) {
_local1.skillName = "Pommel";
_local1.dmgMin = 24;
_local1.dmgMax = 24;
_local1.castTime = 1;
_local1.cooldown = 15;
_local1.buffTime = 3;
_local1.chanceOfStun = 0.8;
_local1.interupt = true;
_local1.desc = ((("Strike your opponent's forehead with the butt of your sword for " + Skill.DirectDamage(_local1)) + ", with an ") + (_local1.chanceOfStun * 100)) + "% chance to stun for #BUFFTIME# seconds.";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 57) {
_local1.skillName = "Disorienting Acrobatics";
_local1.castTime = 0.5;
_local1.cooldown = 25;
_local1.buffTime = 6;
_local1.driftSpeed = 2;
_local1.desc = "Flip, roll, and tumble around your opponent, disorienting them for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disoriented";
return(_local1);
}
if (skillID == 58) {
_local1.skillName = "Bionic Arms";
_local1.castTime = 2.5;
_local1.cooldown = 45;
_local1.buffTime = 30;
_local1.forSale = true;
_local1.goldCost = 65;
_local1.reqLevel = 3;
_local1.categoryID = 1;
_local1.parentSkillID = 7;
_local1.isDebuff = false;
_local1.damageDoneModifier = 4;
_local1.powerCost = 32;
_local1.powerTypeCost = 1;
_local1.rank = 1;
_local1.desc = "Activate bionic limbs, increasing your weapon damage by #DMGDONEMOD# points per hit for #BUFFTIME# seconds.";
_local1.buffToolTip = "Bionic";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 59) {
_local1.skillName = "Steel Bionic Arms";
_local1.castTime = 2;
_local1.cooldown = 45;
_local1.buffTime = 30;
_local1.forSale = true;
_local1.goldCost = 200;
_local1.reqLevel = 5;
_local1.categoryID = 1;
_local1.parentSkillID = 7;
_local1.isDebuff = false;
_local1.damageDoneModifier = 12;
_local1.powerCost = 48;
_local1.powerTypeCost = 1;
_local1.rank = 2;
_local1.desc = "Activate upgraded bionic limbs, increasing your weapon damage by #DMGDONEMOD# points per hit for #BUFFTIME# seconds.";
_local1.buffToolTip = "Bionic";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 60) {
_local1.skillName = "Two Handed Sword";
_local1.dmgMin = 36;
_local1.dmgMax = 48;
_local1.castTime = 1.5;
_local1.cooldown = 3;
_local1.desc = ((("An ornamental two-handed sword that hits for " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage.";
return(_local1);
}
if (skillID == 61) {
_local1.skillName = "Furious Blades";
_local1.castTime = 3;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.isDebuff = false;
_local1.damageDoneModifier = 16;
_local1.desc = ("Evokes the power of the gods, unleashing an extra " + _local1.damageDoneModifier) + " damage per physical attack.";
_local1.buffToolTip = "Furious";
return(_local1);
}
if (skillID == 62) {
_local1.skillName = "Healing Light";
_local1.dmgMin = -100;
_local1.dmgMax = -80;
_local1.castTime = 3;
_local1.cooldown = 30;
_local1.isDebuff = false;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.dmgType = 2;
_local1.desc = ("Fills the caster with healing light, curing " + Skill.DirectHealing(_local1)) + ".";
return(_local1);
}
if (skillID == 63) {
_local1.skillName = "Shield of Protection";
_local1.castTime = 1;
_local1.cooldown = 16;
_local1.buffTime = 8;
_local1.isDebuff = false;
_local1.damageTakenModifier = -12;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.desc = ("A protective shield of magic on the caster, shielding him for " + (_local1.damageTakenModifier * -1)) + " damage per hit.";
_local1.buffToolTip = "Shielded";
return(_local1);
}
if (skillID == 64) {
_local1.skillName = "Life Fountain";
_local1.castTime = 5;
_local1.cooldown = 20;
_local1.buffTime = 6;
_local1.dotAmount = 20;
_local1.isDebuff = false;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.dmgType = 2;
_local1.desc = "A glowing fountain of life funnels you " + Skill.DotHealing(_local1.buffTime, _local1.dotAmount);
_local1.buffToolTip = "Healing";
return(_local1);
}
if (skillID == 65) {
_local1.skillName = "Annoying Stun";
_local1.dmgMin = 12;
_local1.dmgMax = 12;
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 4;
_local1.goldCost = 15;
_local1.reqLevel = 1;
_local1.chanceOfStun = 1;
_local1.powerCost = 20;
_local1.powerTypeCost = 2;
_local1.rank = 1;
_local1.interupt = true;
_local1.desc = "A holy-powered stun on your opponent that lasts #BUFFTIME# seconds.";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 66) {
_local1.skillName = "Clogging Slime";
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 11;
_local1.disabledSkillCategory = 1;
_local1.desc = "A spray of sludge that disables Devices for #BUFFTIME# seconds.";
_local1.buffToolTip = "Clogged";
return(_local1);
}
if (skillID == 67) {
_local1.skillName = "Absord Damage";
_local1.castTime = 0.5;
_local1.cooldown = 16;
_local1.buffTime = 8;
_local1.isDebuff = false;
_local1.damageTakenModifier = -12;
_local1.desc = ("Secrete an extraneous coat of slime that absorbs " + (_local1.damageTakenModifier * -1)) + " damage per hit.";
_local1.buffToolTip = "Absorbing Dmg";
return(_local1);
}
if (skillID == 68) {
_local1.skillName = "Acid Spray";
_local1.castTime = 2;
_local1.cooldown = 20;
_local1.buffTime = 4;
_local1.dotAmount = -24;
_local1.dmgType = 4;
_local1.desc = ("A spray of toxic acid that sizzles victim for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Acid Burn";
return(_local1);
}
if (skillID == 69) {
_local1.skillName = "Melt Armor";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 6;
_local1.damageTakenModifier = 24;
_local1.dmgType = 4;
_local1.desc = ("Corrodes the armor of your oppoent, causing them to take " + _local1.damageTakenModifier) + " more damage per hit.";
_local1.buffToolTip = "Armor Melted";
return(_local1);
}
if (skillID == 70) {
_local1.skillName = "Swallow Whole";
_local1.dmgMin = 32;
_local1.dmgMax = 32;
_local1.castTime = 2.5;
_local1.cooldown = 35;
_local1.buffTime = 5;
_local1.slowPercent = 1;
_local1.desc = ((("Eat the victim, slowing their movements by " + (_local1.slowPercent * 100)) + "% for #BUFFTIME# seconds. Also causes ") + _local1.dmgMax) + " damage.";
_local1.buffToolTip = "Swallowed";
return(_local1);
}
if (skillID == 71) {
_local1.skillName = "Gooey Fist";
_local1.dmgMin = 64;
_local1.dmgMax = 76;
_local1.castTime = 2.5;
_local1.cooldown = 18;
_local1.desc = ((("A slow, hard-hitting fist of goo that does " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage.";
return(_local1);
}
if (skillID == 72) {
_local1.skillName = "Melt Gas Tank";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.syphonPowerAmt = 108;
_local1.syphonPowerType = 1;
_local1.desc = ("Melt your opponent's gas tank, leaking out " + _local1.syphonPowerAmt) + " gas.";
return(_local1);
}
if (skillID == 73) {
_local1.skillName = "Ye Old Fireball";
_local1.dmgMin = 60;
_local1.dmgMax = 80;
_local1.castTime = 4;
_local1.cooldown = 18;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.dmgType = 1;
_local1.desc = ((("Everyone's favorite ball of fire that does " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage.";
return(_local1);
}
if (skillID == 74) {
_local1.skillName = "Stinterrupt Shield";
_local1.castTime = 1;
_local1.cooldown = 30;
_local1.buffTime = 4;
_local1.isDebuff = false;
_local1.powerCost = 20;
_local1.powerTypeCost = 2;
_local1.desc = "A powerful spell that prevents all stuns and interuptions for #BUFFTIME# seconds.";
_local1.buffToolTip = "AntiStun";
_local1.immuneToStun = true;
return(_local1);
}
if (skillID == 75) {
_local1.skillName = "Magic Missile";
_local1.dmgMin = 36;
_local1.dmgMax = 36;
_local1.castTime = 2;
_local1.cooldown = 20;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("Launches everyone's favorite mage spell, blasting your victim for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 76) {
_local1.skillName = "Darkness";
_local1.castTime = 2;
_local1.cooldown = 40;
_local1.buffTime = 8;
_local1.chanceOfBlind = 1;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = "Blinds target for #BUFFTIME# seconds, hiding their skill names.";
_local1.buffToolTip = "Blinded";
return(_local1);
}
if (skillID == 77) {
_local1.skillName = "Reflection";
_local1.castTime = 1;
_local1.cooldown = 20;
_local1.buffTime = 5;
_local1.isDebuff = false;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.desc = "An aura that reflects all spells, skills, and weapon damage back on the attacker for #BUFFTIME# seconds.";
_local1.buffToolTip = "Reflecting";
_local1.reflectDmgType = 10;
return(_local1);
}
if (skillID == 78) {
_local1.skillName = "Cripple";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.disabledSkillCategory = 50;
_local1.powerCost = 20;
_local1.powerTypeCost = 2;
_local1.desc = "Cripples the use of a random skill or spell for #BUFFTIME# seconds.";
_local1.buffToolTip = "Crippled";
return(_local1);
}
if (skillID == 79) {
_local1.skillName = "Spectral Touch";
_local1.dmgMin = 28;
_local1.dmgMax = 28;
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 4;
_local1.goldCost = 15;
_local1.reqLevel = 1;
_local1.chanceOfStun = 1;
_local1.rank = 1;
_local1.interupt = true;
_local1.desc = "Touch the victim with an icy chill that stuns them for #BUFFTIME# seconds, interupting their skill/spell.";
_local1.buffToolTip = "Frozen";
return(_local1);
}
if (skillID == 80) {
_local1.skillName = "Magic Sword";
_local1.dmgMin = 32;
_local1.dmgMax = 40;
_local1.castTime = 1;
_local1.cooldown = 3;
_local1.desc = ((("A runed, glowing sword that slices for " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage.";
return(_local1);
}
if (skillID == 81) {
_local1.skillName = "Ethereal Form";
_local1.castTime = 1;
_local1.cooldown = 20;
_local1.buffTime = 7;
_local1.isDebuff = false;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.desc = "Caster becomes immune to physical damage for #BUFFTIME# seconds. This shield does not protect from fire or other elements.";
_local1.buffToolTip = "Ethereal";
_local1.immuneDmgType = 0;
return(_local1);
}
if (skillID == 82) {
_local1.skillName = "Icy Gaze";
_local1.dmgMin = 32;
_local1.dmgMax = 32;
_local1.castTime = 4;
_local1.cooldown = 35;
_local1.buffTime = 8;
_local1.slowPercent = 2;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ((("A gaze that slows your target by " + (_local1.slowPercent * 100)) + "% for #BUFFTIME# seconds. Also causes ") + _local1.dmgMax) + " damage.";
_local1.buffToolTip = "Slowed";
return(_local1);
}
if (skillID == 83) {
_local1.skillName = "Spectral Shield";
_local1.castTime = 1;
_local1.cooldown = 16;
_local1.buffTime = 8;
_local1.isDebuff = false;
_local1.damageTakenModifier = -24;
_local1.desc = ("A spectral suit of armor that absorbs " + (_local1.damageTakenModifier * -1)) + " damage per hit.";
_local1.buffToolTip = "Shielded";
return(_local1);
}
if (skillID == 84) {
_local1.skillName = "Harpoon Gun";
_local1.dmgMin = 36;
_local1.dmgMax = 48;
_local1.castTime = 2;
_local1.cooldown = 4;
_local1.desc = ((("A massive harpoon gun that does " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage.";
return(_local1);
}
if (skillID == 85) {
_local1.skillName = "Dizzying Gas Spray";
_local1.dmgMin = 16;
_local1.dmgMax = 16;
_local1.castTime = 1;
_local1.cooldown = 30;
_local1.buffTime = 10;
_local1.driftSpeed = 4;
_local1.powerCost = 60;
_local1.powerTypeCost = 1;
_local1.desc = "Disorients the opponent, causing their skill buttons to drift randomly.";
_local1.buffToolTip = "Dizzy";
return(_local1);
}
if (skillID == 86) {
_local1.skillName = "Mechanical Parrot";
_local1.castTime = 2.5;
_local1.cooldown = 30;
_local1.buffTime = 8;
_local1.goldCost = 150;
_local1.reqLevel = 4;
_local1.dotAmount = -8;
_local1.slowPercent = 1;
_local1.powerCost = 40;
_local1.powerTypeCost = 1;
_local1.rank = 1;
_local1.desc = ((("Arrrr, it be a parrot, and he will annoy you. Does " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slows their casting by ") + (_local1.slowPercent * 100)) + "%.";
_local1.buffToolTip = "Annoyed";
return(_local1);
}
if (skillID == 87) {
_local1.skillName = "Gouging Hook Hand";
_local1.castTime = 2;
_local1.cooldown = 10;
_local1.buffTime = 6;
_local1.dotAmount = -28;
_local1.desc = ("The old hook hand. Seriously, be original. Causes a deep wound for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Bleeding";
return(_local1);
}
if (skillID == 88) {
_local1.skillName = "Hydrolic Peg Legs";
_local1.castTime = 3;
_local1.cooldown = 40;
_local1.buffTime = 16;
_local1.slowPercent = -0.4;
_local1.isDebuff = false;
_local1.powerCost = 60;
_local1.powerTypeCost = 1;
_local1.desc = ("Superboost your peg legs with gas-infused nitris, reducing cast time to " + (_local1.slowPercent * -100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Quickened";
return(_local1);
}
if (skillID == 89) {
_local1.skillName = "Syphon Gas";
_local1.castTime = 3;
_local1.cooldown = 20;
_local1.syphonPowerAmt = 100;
_local1.syphonPowerType = 1;
_local1.desc = ("Syphons " + _local1.syphonPowerAmt) + " gas from the opponent's gas tank.";
return(_local1);
}
if (skillID == 90) {
_local1.skillName = "Discombobulate Ray";
_local1.dmgMin = 36;
_local1.dmgMax = 36;
_local1.castTime = 1;
_local1.cooldown = 30;
_local1.buffTime = 5;
_local1.driftSpeed = 7;
_local1.powerCost = 60;
_local1.powerTypeCost = 1;
_local1.desc = "A strange raygun that disorients the opponent, causing their skill buttons to drift randomly.";
_local1.buffToolTip = "Dizzy";
return(_local1);
}
if (skillID == 91) {
_local1.skillName = "Ion Cannon";
_local1.dmgMin = 32;
_local1.dmgMax = 48;
_local1.castTime = 1;
_local1.cooldown = 2;
_local1.buffTime = 3;
_local1.chanceOfStun = 0.2;
_local1.powerCost = 20;
_local1.powerTypeCost = 1;
_local1.desc = ((("A hefty Ion Gun that deliver an Ion surge for " + Skill.DirectDamage(_local1)) + ", and has a ") + (_local1.chanceOfStun * 100)) + "% chance to stun for #BUFFTIME# seconds.";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 92) {
_local1.skillName = "Vicegrip Stun";
_local1.dmgMin = 24;
_local1.dmgMax = 24;
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 4;
_local1.goldCost = 15;
_local1.reqLevel = 1;
_local1.chanceOfStun = 1;
_local1.powerCost = 40;
_local1.powerTypeCost = 1;
_local1.rank = 1;
_local1.interupt = true;
_local1.desc = ((("Clamp this puppy on your prey, doing " + Skill.DirectDamage(_local1)) + " and have a ") + (_local1.chanceOfStun * 100)) + "% chance to stun for #BUFFTIME# seconds.";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 93) {
_local1.skillName = "Sonic Boom";
_local1.dmgMin = 68;
_local1.dmgMax = 88;
_local1.castTime = 4;
_local1.cooldown = 18;
_local1.desc = ("Unleash a massive sonic boom hits for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 94) {
_local1.skillName = "Armor Boost";
_local1.castTime = 1;
_local1.cooldown = 20;
_local1.buffTime = 15;
_local1.isDebuff = false;
_local1.damageTakenModifier = -20;
_local1.desc = ("Activate shield generators, reducing damage taken by " + (_local1.damageTakenModifier * -1)) + " for #BUFFTIME# seconds.";
_local1.buffToolTip = "Shielded";
return(_local1);
}
if (skillID == 95) {
_local1.skillName = "Repair Bot";
_local1.castTime = 3;
_local1.cooldown = 30;
_local1.buffTime = 8;
_local1.goldCost = 250;
_local1.dotAmount = 24;
_local1.isDebuff = false;
_local1.powerCost = 40;
_local1.powerTypeCost = 1;
_local1.rank = 1;
_local1.dmgType = 2;
_local1.desc = "Launches a small repair bot that heals you for " + Skill.DotHealing(_local1.buffTime, _local1.dotAmount);
_local1.buffToolTip = "Robot Healing";
return(_local1);
}
if (skillID == 96) {
_local1.skillName = "Flamethrower v3";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 250;
_local1.reqLevel = 5;
_local1.categoryID = 1;
_local1.parentSkillID = 1;
_local1.dotAmount = -12;
_local1.powerCost = 60;
_local1.powerTypeCost = 1;
_local1.rank = 3;
_local1.dmgType = 1;
_local1.desc = "Enhanced blower to engulf your enemies in flames for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount);
_local1.buffToolTip = "On Fire!";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 97) {
_local1.skillName = "Small Sling";
_local1.dmgMin = 12;
_local1.dmgMax = 24;
_local1.castTime = 2;
_local1.cooldown = 2;
_local1.desc = ("A small sling that hurls rocks for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 98) {
_local1.skillName = "Tainted Dagger";
_local1.dmgMin = 28;
_local1.dmgMax = 48;
_local1.castTime = 2;
_local1.cooldown = 4;
_local1.desc = ("A dagger that glows a sickly green. This tainted blade deals " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 99) {
_local1.skillName = "Death Watch";
_local1.castTime = 1;
_local1.cooldown = 500;
_local1.buffTime = 500;
_local1.dotAmount = -8;
_local1.dmgType = 3;
_local1.desc = ("This brutal, life-ending curse will eventually kill any opponent, doing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Slowly Dying";
return(_local1);
}
if (skillID == 100) {
_local1.skillName = "Barbed Whip";
_local1.dmgMin = 64;
_local1.dmgMax = 96;
_local1.castTime = 2;
_local1.cooldown = 4;
_local1.desc = ("A long, barbed whip with a cruel snap that causes " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 101) {
_local1.skillName = "Blinding Powder";
_local1.castTime = 2;
_local1.cooldown = 80;
_local1.buffTime = 3;
_local1.chanceOfBlind = 1;
_local1.desc = "Blinds target for #BUFFTIME# seconds, hiding their skill names.";
_local1.buffToolTip = "Blinded";
return(_local1);
}
if (skillID == 102) {
_local1.skillName = "Fire Shield";
_local1.castTime = 1.7;
_local1.cooldown = 26;
_local1.buffTime = 6;
_local1.isDebuff = false;
_local1.desc = "A shield surrounds you, shielding you from all fire damage for #BUFFTIME# seconds.";
_local1.buffToolTip = "Fire Immunity";
_local1.immuneDmgType = 1;
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 103) {
_local1.skillName = "Ethereal Shield";
_local1.castTime = 1;
_local1.cooldown = 18;
_local1.buffTime = 5;
_local1.isDebuff = false;
_local1.desc = "You fade slightly, altering your form to become immune to all manners of Physical damage for #BUFFTIME# seconds.";
_local1.buffToolTip = "Phys. Immunity";
_local1.immuneDmgType = 0;
return(_local1);
}
if (skillID == 104) {
_local1.skillName = "Adrenaline Overdose";
_local1.castTime = 1;
_local1.cooldown = 14;
_local1.buffTime = 4;
_local1.isDebuff = false;
_local1.desc = "Inject an overdose of adrenaline in your veins, putting you in a rage, making you immune to stuns and interupts for #BUFFTIME# seconds.";
_local1.buffToolTip = "Stun/Int Immun.";
_local1.immuneToStun = true;
return(_local1);
}
if (skillID == 105) {
_local1.skillName = "Smelling Salts";
_local1.castTime = 4.5;
_local1.cooldown = 45;
_local1.isDebuff = false;
_local1.desc = "A pungent bag of herbs that jolt your brain, resetting all your cooldowns.";
return(_local1);
}
if (skillID == 106) {
_local1.skillName = "Painkillers";
_local1.castTime = 3;
_local1.cooldown = 50;
_local1.buffTime = 6;
_local1.dotAmount = 65;
_local1.isDebuff = false;
_local1.dmgType = 2;
_local1.desc = ("Swallow a fist-full of painkillers, healing you for " + Skill.DotHealing(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Painkilling";
return(_local1);
}
if (skillID == 107) {
_local1.skillName = "Disarm";
_local1.castTime = 4;
_local1.cooldown = 37;
_local1.buffTime = 10;
_local1.disabledSkillCategory = 0;
_local1.desc = "Reach out and grab your opponents weapon out of his hands for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disarmed";
return(_local1);
}
if (skillID == 108) {
_local1.skillName = "Small Gavel";
_local1.dmgMin = 9;
_local1.dmgMax = 14;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 5;
_local1.reqLevel = 1;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 1;
_local1.desc = ("A small, wooden gavel that does " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 109) {
_local1.skillName = "Light Club";
_local1.dmgMin = 12;
_local1.dmgMax = 20;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 20;
_local1.reqLevel = 2;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 2;
_local1.desc = ("A crude club that whacks for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 110) {
_local1.skillName = "Studded Mace";
_local1.dmgMin = 20;
_local1.dmgMax = 28;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 75;
_local1.reqLevel = 3;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 3;
_local1.desc = ("A steel, glistening mace that strikes for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 111) {
_local1.skillName = "Silver Dagger";
_local1.dmgMin = 28;
_local1.dmgMax = 36;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 150;
_local1.reqLevel = 4;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 4;
_local1.desc = "A wicked dagger made of pure silver that does " + Skill.DirectDamage(_local1);
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 112) {
_local1.skillName = "Mystic Flail";
_local1.dmgMin = 36;
_local1.dmgMax = 44;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 220;
_local1.reqLevel = 5;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 5;
_local1.desc = ("A glowing flail, sparking with energy, that strikes for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 113) {
_local1.skillName = "Psychic Blast v1";
_local1.dmgMin = 12;
_local1.dmgMax = 12;
_local1.castTime = 1.75;
_local1.cooldown = 30;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 15;
_local1.reqLevel = 1;
_local1.categoryID = 3;
_local1.parentSkillID = 9;
_local1.chanceOfStun = 1;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.rank = 1;
_local1.dmgType = 3;
_local1.interupt = true;
_local1.desc = ("Blast your opponent with a shock of psychic power, stunning them for #BUFFTIME# seconds and causing " + Skill.DirectDamage(_local1)) + ".";
_local1.buffToolTip = "Stunned";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 114) {
_local1.skillName = "Lesser Torment";
_local1.castTime = 3;
_local1.cooldown = 10;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 5;
_local1.reqLevel = 1;
_local1.categoryID = 3;
_local1.parentSkillID = 12;
_local1.dotAmount = -8;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.rank = 1;
_local1.dmgType = 3;
_local1.desc = ("Fill your enemy with a mild wave of morbid thoughts, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Tormented";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 115) {
_local1.skillName = "Torment";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 35;
_local1.reqLevel = 2;
_local1.categoryID = 3;
_local1.parentSkillID = 12;
_local1.dotAmount = -12;
_local1.powerCost = 44;
_local1.powerTypeCost = 2;
_local1.rank = 2;
_local1.dmgType = 3;
_local1.desc = ("Fill your enemy with an intense wave of morbid thoughts, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Tormented";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 116) {
_local1.skillName = "Greater Torment";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 250;
_local1.reqLevel = 5;
_local1.categoryID = 3;
_local1.parentSkillID = 12;
_local1.dotAmount = -12;
_local1.powerCost = 52;
_local1.powerTypeCost = 2;
_local1.rank = 3;
_local1.dmgType = 3;
_local1.desc = ("Fill your enemy with an overwhelming wave of morbid thoughts, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Tormented";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 117) {
_local1.skillName = "Wall of Atoms";
_local1.cooldown = 12;
_local1.buffTime = 1;
_local1.forSale = true;
_local1.goldCost = 40;
_local1.reqLevel = 2;
_local1.categoryID = 3;
_local1.parentSkillID = 10;
_local1.isDebuff = false;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.rank = 1;
_local1.dmgType = 3;
_local1.desc = "Vibrate the very air around you, causing a wall of atoms to form an invulnerable shield from all attacks for #BUFFTIME# second.";
_local1.buffToolTip = "Invulnerable";
_local1.immuneDmgType = 10;
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 118) {
_local1.skillName = "Brain Chill";
_local1.castTime = 2.5;
_local1.cooldown = 30;
_local1.buffTime = 8;
_local1.forSale = true;
_local1.goldCost = 150;
_local1.reqLevel = 4;
_local1.categoryID = 3;
_local1.parentSkillID = 13;
_local1.dotAmount = -4;
_local1.slowPercent = 1;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.rank = 1;
_local1.dmgType = 3;
_local1.desc = ("Cool off your opponent's brain, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slows their casting by #SLOWPERCENT#%.";
_local1.buffToolTip = "Slowed";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 119) {
_local1.skillName = "Concentration";
_local1.castTime = 2;
_local1.cooldown = 35;
_local1.buffTime = 15;
_local1.forSale = true;
_local1.goldCost = 40;
_local1.reqLevel = 2;
_local1.categoryID = 2;
_local1.parentSkillID = 14;
_local1.isDebuff = false;
_local1.powerRegen = 8;
_local1.rank = 1;
_local1.desc = ("Increase your Mana regeneration per second by " + _local1.powerRegen) + ". This meditative state lasts #BUFFTIME# seconds.";
_local1.buffToolTip = "Concentrating";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 120) {
_local1.skillName = "Mana Shield";
_local1.castTime = 1;
_local1.cooldown = 15;
_local1.buffTime = 8;
_local1.forSale = true;
_local1.goldCost = 75;
_local1.reqLevel = 3;
_local1.categoryID = 3;
_local1.parentSkillID = 11;
_local1.isDebuff = false;
_local1.manaShield = 0.5;
_local1.powerCost = 20;
_local1.powerTypeCost = 2;
_local1.rank = 1;
_local1.dmgType = 3;
_local1.desc = ("Create a translucent shield around yourself that redirects up to " + (_local1.manaShield * 100)) + "% of damage taken to available Mana. Lasts #BUFFTIME# seconds.";
_local1.buffToolTip = "Shielded";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 121) {
_local1.skillName = "Forget";
_local1.castTime = 2;
_local1.cooldown = 35;
_local1.buffTime = 10;
_local1.forSale = true;
_local1.goldCost = 255;
_local1.reqLevel = 5;
_local1.categoryID = 3;
_local1.parentSkillID = 15;
_local1.powerCost = 55;
_local1.powerTypeCost = 2;
_local1.rank = 1;
_local1.dmgType = 3;
_local1.desc = "Brainwash your opponent, causing them to forget a skill or spell of your choosing for #BUFFTIME# seconds.";
_local1.buffToolTip = "Forgetful";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 122) {
_local1.skillName = "Telepathy";
_local1.castTime = 1;
_local1.cooldown = 20;
_local1.buffTime = 10;
_local1.forSale = true;
_local1.goldCost = 80;
_local1.reqLevel = 3;
_local1.categoryID = 3;
_local1.parentSkillID = 16;
_local1.isDebuff = false;
_local1.powerCost = 35;
_local1.powerTypeCost = 2;
_local1.rank = 1;
_local1.dmgType = 3;
_local1.desc = "Get inside your opponent's head for #BUFFTIME# seconds! You will PROBABLY be able to predict what he will do next.";
_local1.buffToolTip = "Telepathy";
_local1.reqClass = 2;
_local1.telepathy = true;
return(_local1);
}
if (skillID == 123) {
_local1.skillName = "Mana Syphon";
_local1.castTime = 6;
_local1.cooldown = 35;
_local1.syphonPowerAmt = 100;
_local1.syphonPowerType = 2;
_local1.desc = ("Syphon " + _local1.syphonPowerAmt) + " mana from the opponent and distill it into gas for your gas tank.";
return(_local1);
}
if (skillID == 124) {
_local1.skillName = "Mana Pilfer";
_local1.castTime = 3;
_local1.cooldown = 20;
_local1.syphonPowerAmt = 100;
_local1.syphonPowerType = 2;
_local1.desc = ("Syphon " + _local1.syphonPowerAmt) + " mana from the opponent and distill it into gas for your gas tank.";
return(_local1);
}
if (skillID == 125) {
_local1.skillName = "Improved Concentration";
_local1.castTime = 2;
_local1.cooldown = 35;
_local1.buffTime = 20;
_local1.forSale = true;
_local1.goldCost = 150;
_local1.reqLevel = 4;
_local1.categoryID = 2;
_local1.parentSkillID = 14;
_local1.isDebuff = false;
_local1.powerRegen = 14;
_local1.rank = 2;
_local1.desc = "Increase your Mana regeneration per second by #POWERREGEN#. This meditative state lasts #BUFFTIME# seconds.";
_local1.buffToolTip = "Concentrating";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 126) {
_local1.skillName = "Mana Drain";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.syphonPowerAmt = 108;
_local1.syphonPowerType = 2;
_local1.desc = ("Lob some anti-magic sludge at your opponent, draining " + _local1.syphonPowerAmt) + " mana.";
return(_local1);
}
if (skillID == 127) {
_local1.skillName = "Clogging Slime";
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 5;
_local1.disabledSkillCategory = 3;
_local1.desc = "A spray of sludge that prevents Spells from being cast for #BUFFTIME# seconds.";
_local1.buffToolTip = "Clogged";
return(_local1);
}
if (skillID == 128) {
_local1.skillName = "Ethereal Form";
_local1.castTime = 1;
_local1.cooldown = 20;
_local1.buffTime = 4;
_local1.isDebuff = false;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.desc = "Caster becomes immune to magic damage for #BUFFTIME# seconds. This shield does not protect from physical damage.";
_local1.buffToolTip = "Ethereal";
_local1.immuneDmgType = 3;
return(_local1);
}
if (skillID == 129) {
_local1.skillName = "Magic Shield";
_local1.castTime = 1.7;
_local1.cooldown = 26;
_local1.buffTime = 6;
_local1.isDebuff = false;
_local1.damageTakenModifier = -12;
_local1.desc = ("An anti-magic shield surrounds you, absorbing " + (_local1.damageTakenModifier * -1)) + " damage per attack.";
_local1.buffToolTip = "Reduce Magic";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 130) {
_local1.skillName = "Training Sword";
_local1.dmgMin = 9;
_local1.dmgMax = 14;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 5;
_local1.reqLevel = 1;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.powerBonus = 2;
_local1.rank = 1;
_local1.desc = ((("A worn, wooden sword that does " + Skill.DirectDamage(_local1)) + ". It also gives you ") + _local1.powerBonus) + " Power when you connect with your foe.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 131) {
_local1.skillName = "Rusty Short Sword";
_local1.dmgMin = 9;
_local1.dmgMax = 17;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 20;
_local1.reqLevel = 2;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.powerBonus = 2;
_local1.rank = 2;
_local1.desc = ((("A rusty shord sword that whacks for " + Skill.DirectDamage(_local1)) + ". It also gives you ") + _local1.powerBonus) + " Power when you connect with your foe.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 132) {
_local1.skillName = "Longsword";
_local1.dmgMin = 17;
_local1.dmgMax = 25;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 75;
_local1.reqLevel = 3;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.powerBonus = 3;
_local1.rank = 3;
_local1.desc = ((("A steel, glistening longsword that strikes for " + Skill.DirectDamage(_local1)) + ". It also gives you ") + _local1.powerBonus) + " Power when you connect with your foe.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 133) {
_local1.skillName = "Two Handed Sword";
_local1.dmgMin = 25;
_local1.dmgMax = 33;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 150;
_local1.reqLevel = 4;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.powerBonus = 3;
_local1.rank = 4;
_local1.desc = ((("An oversized two-handed sword that does " + Skill.DirectDamage(_local1)) + ". It also gives you ") + _local1.powerBonus) + " Power when you connect with your foe.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 134) {
_local1.skillName = "Silver Longsword";
_local1.dmgMin = 33;
_local1.dmgMax = 41;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 220;
_local1.reqLevel = 5;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.powerBonus = 3;
_local1.rank = 5;
_local1.desc = ((("A longsword made of pure silver that strikes for " + Skill.DirectDamage(_local1)) + ". It also gives you ") + _local1.powerBonus) + " Power when you connect with your foe.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 135) {
_local1.skillName = "Mild Poison Syringe";
_local1.castTime = 3;
_local1.cooldown = 10;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 5;
_local1.reqLevel = 1;
_local1.categoryID = 1;
_local1.parentSkillID = 17;
_local1.dotAmount = -6;
_local1.rank = 1;
_local1.dmgType = 5;
_local1.desc = ("Jab your enemy with a syringe of mild poison, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Poisoned";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 136) {
_local1.skillName = "Dirty Poison Syringe";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 35;
_local1.reqLevel = 2;
_local1.categoryID = 1;
_local1.parentSkillID = 17;
_local1.dotAmount = -10;
_local1.rank = 2;
_local1.dmgType = 5;
_local1.desc = ("Jab your enemy with a syringe of dirty poison, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Poisoned";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 137) {
_local1.skillName = "Strong Poison Syringe";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 250;
_local1.reqLevel = 5;
_local1.categoryID = 1;
_local1.parentSkillID = 17;
_local1.dotAmount = -10;
_local1.rank = 3;
_local1.dmgType = 5;
_local1.desc = ("Jab your enemy with a syringe of strong poison, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Poisoned";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 138) {
_local1.skillName = "Gentle Uppercut";
_local1.dmgMin = 4;
_local1.dmgMax = 4;
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 15;
_local1.reqLevel = 1;
_local1.categoryID = 2;
_local1.parentSkillID = 18;
_local1.chanceOfStun = 1;
_local1.rank = 1;
_local1.interupt = true;
_local1.desc = ("An light uppercut that delivers " + Skill.DirectDamage(_local1)) + ", PLUS all your current power! Your opponent will be knocked out for #BUFFTIME# seconds.";
_local1.buffToolTip = "KO'ed";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 139) {
_local1.skillName = "Adrenaline Rush";
_local1.cooldown = 20;
_local1.buffTime = 3;
_local1.forSale = true;
_local1.goldCost = 35;
_local1.reqLevel = 2;
_local1.categoryID = 2;
_local1.parentSkillID = 19;
_local1.isDebuff = false;
_local1.adrenalineRush = 0.65;
_local1.rank = 1;
_local1.desc = "Stick your chin out and let your enemy take their best shot! For #BUFFTIME# seconds, #ADRENALINERUSH#% of damage taken is instantly converted into Power.";
_local1.buffToolTip = "Bring it!";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 140) {
_local1.skillName = "Quick Jab";
_local1.dmgMin = 4;
_local1.dmgMax = 4;
_local1.cooldown = 10;
_local1.forSale = true;
_local1.goldCost = 30;
_local1.reqLevel = 2;
_local1.categoryID = 2;
_local1.parentSkillID = 20;
_local1.rank = 1;
_local1.desc = ("A quick jab for " + Skill.DirectDamage(_local1)) + ", spending half your Power. Strike with a jab when an OPENING appears on your opponent and that spent Power converts to damage!";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 141) {
_local1.skillName = "Stagger";
_local1.cooldown = 35;
_local1.forSale = true;
_local1.goldCost = 150;
_local1.reqLevel = 4;
_local1.categoryID = 2;
_local1.parentSkillID = 21;
_local1.powerBonus = 20;
_local1.rank = 1;
_local1.desc = "Crack your foe with a devastating blow that staggers them, removing one random beneficial buff from them and giving you #POWERBONUS# Power.";
_local1.reqClass = 3;
_local1.removeBuff = true;
return(_local1);
}
if (skillID == 142) {
_local1.skillName = "Taunt";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 85;
_local1.reqLevel = 3;
_local1.categoryID = 2;
_local1.parentSkillID = 22;
_local1.damageDoneModifier = 24;
_local1.damageTakenModifier = 24;
_local1.rank = 1;
_local1.desc = ("Taunt the opponent, working him/her into a rage. Opponent takes " + _local1.damageTakenModifier) + " more damage per hit, and inflicts #DMGDONEMOD# more damage per hit (which: compliments Adrenaline Rush).";
_local1.buffToolTip = "Taunted";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 143) {
_local1.skillName = "Lightning Jab";
_local1.dmgMin = 8;
_local1.dmgMax = 8;
_local1.cooldown = 10;
_local1.forSale = true;
_local1.goldCost = 150;
_local1.reqLevel = 4;
_local1.categoryID = 2;
_local1.parentSkillID = 20;
_local1.rank = 2;
_local1.desc = ("A quick jab for " + Skill.DirectDamage(_local1)) + ", spending half your Power. Strike with a jab when an OPENING appears on your opponent and that spent Power converts to damage!";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 144) {
_local1.skillName = "Ground Jacks";
_local1.castTime = 2.5;
_local1.cooldown = 30;
_local1.buffTime = 8;
_local1.forSale = true;
_local1.goldCost = 80;
_local1.reqLevel = 3;
_local1.categoryID = 1;
_local1.parentSkillID = 23;
_local1.dotAmount = -4;
_local1.slowPercent = 1;
_local1.rank = 1;
_local1.dmgType = 5;
_local1.desc = ("Toss some poisoned jacks under your opponent's feet, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slowing their casting by #SLOWPERCENT#%.";
_local1.buffToolTip = "Slowed";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 145) {
_local1.skillName = "Reflective Shield";
_local1.castTime = 1;
_local1.cooldown = 40;
_local1.buffTime = 1;
_local1.forSale = true;
_local1.goldCost = 250;
_local1.reqLevel = 5;
_local1.categoryID = 1;
_local1.parentSkillID = 24;
_local1.isDebuff = false;
_local1.rank = 1;
_local1.desc = "Hide behind your shield, reflecting back anything for #BUFFTIME# second.";
_local1.buffToolTip = "Reflecting";
_local1.reflectDmgType = 10;
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 146) {
_local1.skillName = "Power Syphon";
_local1.castTime = 6;
_local1.cooldown = 35;
_local1.syphonPowerAmt = 15;
_local1.syphonPowerType = 3;
_local1.desc = ("Syphon " + _local1.syphonPowerAmt) + " Power from the opponent and distill it into gas for your gas tank.";
return(_local1);
}
if (skillID == 147) {
_local1.skillName = "Power Drain";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.syphonPowerAmt = 25;
_local1.syphonPowerType = 3;
_local1.desc = ("Lob some weakening sludge at your opponent, draining " + _local1.syphonPowerAmt) + " Power.";
return(_local1);
}
if (skillID == 148) {
_local1.skillName = "Power Pilfer";
_local1.castTime = 3;
_local1.cooldown = 20;
_local1.syphonPowerAmt = 30;
_local1.syphonPowerType = 3;
_local1.desc = ("Syphon " + _local1.syphonPowerAmt) + " Power from the opponent and distill it into gas for your gas tank.";
return(_local1);
}
if (skillID == 149) {
_local1.skillName = "Poison Shield";
_local1.castTime = 1.7;
_local1.cooldown = 26;
_local1.buffTime = 6;
_local1.isDebuff = false;
_local1.desc = "A shield surrounds you, providing immunity to all Poison damage for #BUFFTIME# seconds.";
_local1.buffToolTip = "Poison Immunity";
_local1.immuneDmgType = 5;
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 150) {
_local1.skillName = "Anti-Poison Cape";
_local1.castTime = 1.5;
_local1.cooldown = 20;
_local1.isDebuff = false;
_local1.desc = "A cape that can remove any poisons from the body.";
_local1.removeDmgType = 5;
return(_local1);
}
if (skillID == 151) {
_local1.skillName = "Enfeeble Ray";
_local1.castTime = 3;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.damageDoneModifier = -30;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("A beam of yellow light fires from your mind's eye, penetrating your opponent, weakening their damage by " + (_local1.damageDoneModifier * -1)) + " damage for #BUFFTIME# seconds.";
_local1.buffToolTip = "Weakened";
return(_local1);
}
if (skillID == 152) {
_local1.skillName = "Bolt of Frost";
_local1.dmgMin = 85;
_local1.dmgMax = 95;
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.slowPercent = 2;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ((("Snap your wand, launching a frost bolt that slows your target by " + (_local1.slowPercent * 100)) + "% for #BUFFTIME# seconds. Also causes ") + _local1.dmgMax) + " damage.";
_local1.buffToolTip = "Slowed";
return(_local1);
}
if (skillID == 153) {
_local1.skillName = "Cripple";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 6;
_local1.disabledSkillCategory = 50;
_local1.powerCost = 20;
_local1.powerTypeCost = 2;
_local1.interupt = true;
_local1.desc = "Interupts your opponent's current spell and cripples the use of a random skill or spell for #BUFFTIME# seconds.";
_local1.buffToolTip = "Crippled";
return(_local1);
}
if (skillID == 154) {
_local1.skillName = "Arcane Armor";
_local1.castTime = 1;
_local1.cooldown = 20;
_local1.buffTime = 15;
_local1.isDebuff = false;
_local1.damageTakenModifier = -16;
_local1.powerTypeCost = 2;
_local1.desc = ("Encase yourself in a magical shield, reducing damage taken by " + (_local1.damageTakenModifier * -1)) + " for #BUFFTIME# seconds.";
_local1.buffToolTip = "Shielded";
return(_local1);
}
if (skillID == 155) {
_local1.skillName = "Flameburst";
_local1.dmgMin = 110;
_local1.dmgMax = 125;
_local1.castTime = 4;
_local1.cooldown = 18;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.dmgType = 1;
_local1.desc = ((("Like the phoenix reborn, explode in a ball of fury causing " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage to your foe.";
return(_local1);
}
if (skillID == 156) {
_local1.skillName = "Magic Mirror";
_local1.castTime = 1;
_local1.cooldown = 20;
_local1.buffTime = 4;
_local1.isDebuff = false;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.desc = "An aura that reflects all spells, skills, and weapon damage back on the attacker for #BUFFTIME# seconds.";
_local1.buffToolTip = "Reflecting";
_local1.reflectDmgType = 10;
return(_local1);
}
if (skillID == 157) {
_local1.skillName = "Test Shrink";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.shrinkPercent = 0.3;
_local1.buffToolTip = "Shrunk";
return(_local1);
}
if (skillID == 158) {
_local1.skillName = "Test Hide";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.hideCastbar = true;
_local1.buffToolTip = "Hidden";
return(_local1);
}
if (skillID == 159) {
_local1.skillName = "Test Jumble";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.jumbleSkills = true;
return(_local1);
}
if (skillID == 160) {
_local1.skillName = "Test Slow Cursor";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.slowCursor = 8;
_local1.buffToolTip = "Slow Cursor";
return(_local1);
}
if (skillID == 161) {
_local1.skillName = "Giant Club";
_local1.dmgMin = 45;
_local1.dmgMax = 60;
_local1.castTime = 2;
_local1.cooldown = 4;
_local1.desc = ("A massive wooden club that does " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 162) {
_local1.skillName = "Gassy Emission";
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 6;
_local1.chanceOfBlind = 1;
_local1.desc = "Emit a thick cloud of noxious gas from your Ogrebutt. Blinds target for #BUFFTIME# seconds, hiding their skill names.";
_local1.buffToolTip = "Blinded";
return(_local1);
}
if (skillID == 163) {
_local1.skillName = "Enrage";
_local1.castTime = 2.5;
_local1.cooldown = 15;
_local1.buffTime = 10;
_local1.slowPercent = -0.65;
_local1.isDebuff = false;
_local1.desc = ("YOU SMASH BAD GUY! Speeds you up by " + (_local1.slowPercent * -100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Enraged!";
return(_local1);
}
if (skillID == 164) {
_local1.skillName = "Startling Bite";
_local1.dmgMin = 36;
_local1.dmgMax = 52;
_local1.castTime = 2;
_local1.cooldown = 4;
_local1.interupt = true;
_local1.desc = ("An unexpected bite that startles your opponent, interrupting what they are doing and causing " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 165) {
_local1.skillName = "KO Punch";
_local1.dmgMin = 86;
_local1.dmgMax = 100;
_local1.castTime = 3;
_local1.cooldown = 45;
_local1.buffTime = 4;
_local1.chanceOfStun = 1;
_local1.interupt = true;
_local1.desc = ("Punch your opponent in the nose (if they have one) with an earth-shattering crack doing " + Skill.DirectDamage(_local1)) + " and stunning them for #BUFFTIME# seconds.";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 166) {
_local1.skillName = "Brutal Disarm";
_local1.dmgMin = 12;
_local1.dmgMax = 12;
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.disabledSkillCategory = 0;
_local1.desc = "Reach out and crush your opponents hand, causing them to drop their weapon for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disarmed";
return(_local1);
}
if (skillID == 167) {
_local1.skillName = "Jinglestick";
_local1.dmgMin = 45;
_local1.dmgMax = 60;
_local1.castTime = 1.5;
_local1.cooldown = 8;
_local1.desc = ("A stick decorated with purple bells and ribbons that swats for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 168) {
_local1.skillName = "Bounce N Tumble";
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.shrinkPercent = 0.3;
_local1.desc = "Bounce and tumble around your opponent, making yourself extremely elusive. Causes your opponent's skill buttons to shrink in size.";
_local1.buffToolTip = "Shrunk";
return(_local1);
}
if (skillID == 169) {
_local1.skillName = "Headbutt";
_local1.dmgMin = 36;
_local1.dmgMax = 52;
_local1.castTime = 0.5;
_local1.cooldown = 35;
_local1.buffTime = 9;
_local1.driftSpeed = 7;
_local1.desc = ("A quick snap of the neck, crashing your head into the victim's. This will daze them for " + _local1.buffTime) + " seconds.";
_local1.buffToolTip = "Dazed";
return(_local1);
}
if (skillID == 170) {
_local1.skillName = "Bag of Tricks";
_local1.dmgMin = 45;
_local1.dmgMax = 60;
_local1.castTime = 1.4;
_local1.cooldown = 45;
_local1.buffTime = 5;
_local1.chanceOfStun = 1;
_local1.interupt = true;
_local1.desc = "Throw your Bag of Tricks at your opponent, causing a brilliant flash to stun them for #BUFFTIME# seconds!";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 171) {
_local1.skillName = "Healing Potion";
_local1.dmgMin = -150;
_local1.dmgMax = -140;
_local1.castTime = 1.5;
_local1.cooldown = 35;
_local1.isDebuff = false;
_local1.dmgType = 2;
_local1.desc = ("Quaff a glowing white potion, healing " + Skill.DirectHealing(_local1)) + ".";
return(_local1);
}
if (skillID == 172) {
_local1.skillName = "Eat Goofballs";
_local1.castTime = 1;
_local1.cooldown = 50;
_local1.buffTime = 15;
_local1.isDebuff = false;
_local1.damageDoneModifier = 25;
_local1.desc = ("Scarf down some goofballs, giving you Pummel Power! This increases your damage by " + _local1.damageDoneModifier) + " for #BUFFTIME# seconds.";
_local1.buffToolTip = "Hopped Up";
return(_local1);
}
if (skillID == 173) {
_local1.skillName = "Tell Bad Jokes";
_local1.castTime = 2.5;
_local1.cooldown = 50;
_local1.buffTime = 15;
_local1.dotAmount = -3;
_local1.slowPercent = 1.5;
_local1.desc = ((("Make your opponent sleepy with bad jokes, slowing them by " + (_local1.slowPercent * 100)) + "% for #BUFFTIME# seconds and causing ") + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Slowed";
return(_local1);
}
if (skillID == 174) {
_local1.skillName = "Diseased Claw";
_local1.dmgMin = 45;
_local1.dmgMax = 60;
_local1.castTime = 3;
_local1.cooldown = 12;
_local1.buffTime = 4;
_local1.dotAmount = -8;
_local1.desc = (("Rake your opponent with a dirty, dirty claw for " + Skill.DirectDamage(_local1)) + " and ") + Skill.DotDamage(_local1.buffTime, _local1.dotAmount);
_local1.buffToolTip = "Diseased";
return(_local1);
}
if (skillID == 175) {
_local1.skillName = "Bite";
_local1.dmgMin = 60;
_local1.dmgMax = 76;
_local1.castTime = 2;
_local1.cooldown = 4;
_local1.desc = ("Snap on your jaws and sink in your dirty, dirty teeth for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 176) {
_local1.skillName = "Cripple Mind";
_local1.castTime = 3;
_local1.cooldown = 40;
_local1.buffTime = 7;
_local1.disabledSkillCategory = 3;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.desc = "A clever arcane spell that causes your opponent to forget all spells for #BUFFTIME# seconds.";
_local1.buffToolTip = "Dumb";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 177) {
_local1.skillName = "Break Devices";
_local1.castTime = 3;
_local1.cooldown = 40;
_local1.buffTime = 7;
_local1.disabledSkillCategory = 1;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.desc = "A clever arcane spell that breaks your victim's devices, causing them to be non-operational for #BUFFTIME# seconds.";
_local1.buffToolTip = "Broken";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 178) {
_local1.skillName = "Spell of Reflection";
_local1.castTime = 0.5;
_local1.cooldown = 15;
_local1.buffTime = 1;
_local1.disabledSkillCategory = 0;
_local1.isDebuff = false;
_local1.powerTypeCost = 2;
_local1.desc = "For 1 second, all attacks against you will be reflected upon the attacker!";
_local1.buffToolTip = "Reflecting";
_local1.reflectDmgType = 10;
return(_local1);
}
if (skillID == 179) {
_local1.skillName = "Shakeoff Flames";
_local1.castTime = 1;
_local1.cooldown = 4;
_local1.isDebuff = false;
_local1.desc = "Shrug off any fire-based DoTs. Ain't no thang.";
_local1.removeDmgType = 1;
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 180) {
_local1.skillName = "Shakeoff Poison";
_local1.castTime = 1;
_local1.cooldown = 4;
_local1.isDebuff = false;
_local1.desc = "Shrug off any poison-based DoTs. Ain't no thang.";
_local1.removeDmgType = 5;
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 181) {
_local1.skillName = "Dispel Magic";
_local1.castTime = 1;
_local1.cooldown = 4;
_local1.powerCost = 75;
_local1.powerTypeCost = 2;
_local1.desc = "This spell scrubs a magical buff off your opponent and evens the playing field. If you can't have buffs, neither can they.";
_local1.removeBuff = true;
return(_local1);
}
if (skillID == 182) {
_local1.skillName = "Farsight";
_local1.castTime = 3;
_local1.cooldown = 25;
_local1.buffTime = 9;
_local1.shrinkPercent = 0.5;
_local1.powerCost = 35;
_local1.powerTypeCost = 2;
_local1.desc = "Cast this spell to make you appear very far away to your opponent, causing your opponent's skill buttons to shrink in size for #BUFFTIME# seconds.";
_local1.buffToolTip = "Farsight";
return(_local1);
}
if (skillID == 183) {
_local1.skillName = "Piercing Scream";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.chanceOfStun = 1;
_local1.interupt = true;
_local1.desc = "A crazed battle howl that sends terror through your foe, causing a #BUFFTIME# second stun.";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 184) {
_local1.skillName = "Crude Raygun";
_local1.dmgMin = 55;
_local1.dmgMax = 65;
_local1.castTime = 1.5;
_local1.cooldown = 4;
_local1.desc = ("A rusty laser crafted from spare parts that hits for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 185) {
_local1.skillName = "Slapping Device";
_local1.dmgMin = 36;
_local1.dmgMax = 36;
_local1.castTime = 1;
_local1.cooldown = 15;
_local1.interupt = true;
_local1.desc = "This bizarre device extends a tiny hand at an incredible speed to smack your opponent in the jaw, interrupting their cast.";
return(_local1);
}
if (skillID == 186) {
_local1.skillName = "Spanking Device";
_local1.dmgMin = 36;
_local1.dmgMax = 36;
_local1.castTime = 1;
_local1.cooldown = 15;
_local1.interupt = true;
_local1.desc = "Urm... you're not sure why this device was built, but it spanks your opponent, interrupting their cast.";
return(_local1);
}
if (skillID == 187) {
_local1.skillName = "Steal Fuel";
_local1.castTime = 1.5;
_local1.cooldown = 15;
_local1.syphonPowerAmt = 100;
_local1.syphonPowerType = 1;
_local1.desc = ("Steal " + _local1.syphonPowerAmt) + " fuel from your opponent and add to your own reserves.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 188) {
_local1.skillName = "Steal Mana";
_local1.castTime = 1.5;
_local1.cooldown = 15;
_local1.syphonPowerAmt = 200;
_local1.syphonPowerType = 2;
_local1.desc = ("Steal " + _local1.syphonPowerAmt) + " mana from your opponent and convert it to gas for your own reserves.";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 189) {
_local1.skillName = "Steal Power";
_local1.castTime = 1.5;
_local1.cooldown = 15;
_local1.syphonPowerAmt = 20;
_local1.syphonPowerType = 3;
_local1.desc = ("Steal " + _local1.syphonPowerAmt) + " power from your opponent and convert it to gas for your own reserves.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 190) {
_local1.skillName = "Repair Armor";
_local1.castTime = 2;
_local1.cooldown = 20;
_local1.buffTime = 10;
_local1.dotAmount = 13;
_local1.isDebuff = false;
_local1.dmgType = 2;
_local1.desc = ("Enable wonderous future technology (that you don't fully understand) to repair your armor, giving you " + Skill.DotHealing(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Repairing";
return(_local1);
}
if (skillID == 191) {
_local1.skillName = "Punch Groin";
_local1.castTime = 0.3;
_local1.cooldown = 15;
_local1.jumbleSkills = true;
_local1.desc = "A quick jab in the yarbles that shocks your opponent, causing his skill buttons to scramble.";
return(_local1);
}
if (skillID == 192) {
_local1.skillName = "Punch Kidney";
_local1.castTime = 0.3;
_local1.cooldown = 15;
_local1.jumbleSkills = true;
_local1.desc = "A cheap kidney shot that shocks your opponent, causing his skill buttons to scramble.";
return(_local1);
}
if (skillID == 193) {
_local1.skillName = "Punch Ear";
_local1.castTime = 0.3;
_local1.cooldown = 15;
_local1.jumbleSkills = true;
_local1.desc = "A knuckle punch in the ear that shocks your opponent, causing his skill buttons to scramble.";
return(_local1);
}
if (skillID == 194) {
_local1.skillName = "Take a Hit";
_local1.castTime = 1.5;
_local1.cooldown = 20;
_local1.buffTime = 3;
_local1.isDebuff = false;
_local1.damageTakenModifier = -75;
_local1.desc = ("Stand tall and take the next hit or two like a man, reducing damage taken by " + (_local1.damageTakenModifier * -1)) + " for #BUFFTIME# seconds.";
_local1.buffToolTip = "Dmg Resist";
return(_local1);
}
if (skillID == 195) {
_local1.skillName = "One Handed Hatchet";
_local1.dmgMin = 60;
_local1.dmgMax = 70;
_local1.castTime = 1.5;
_local1.cooldown = 8;
_local1.desc = ("A razor sharp hatchet made from an infant dragon's fang that hits for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 196) {
_local1.skillName = "Poisonous Vomit";
_local1.castTime = 1.5;
_local1.cooldown = 15;
_local1.buffTime = 6;
_local1.dotAmount = -10;
_local1.desc = "Vomit up a gutful of poisonous bile and spit it at your enemy for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount);
_local1.buffToolTip = "Poisoned";
return(_local1);
}
if (skillID == 197) {
_local1.skillName = "Brutal Flurry";
_local1.dmgMin = 85;
_local1.dmgMax = 100;
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.slowPercent = 2;
_local1.desc = ((("Assault your enemy with a barrage of wild kicks and punches for " + Skill.DirectDamage(_local1)) + ", and exhausting and slowing them by ") + (_local1.slowPercent * 100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Slowed";
return(_local1);
}
if (skillID == 198) {
_local1.skillName = "Glowing Staff";
_local1.dmgMin = 60;
_local1.dmgMax = 70;
_local1.castTime = 2;
_local1.cooldown = 8;
_local1.desc = ("A gnarled, glowing tree root that hits for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 199) {
_local1.skillName = "Incinerate";
_local1.castTime = 2;
_local1.cooldown = 15;
_local1.buffTime = 5;
_local1.dotAmount = -10;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.dmgType = 1;
_local1.desc = ("Ignite your enemy, causing them to burn in a fiery pyre for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Burning";
return(_local1);
}
if (skillID == 200) {
_local1.skillName = "Break Limb";
_local1.dmgMin = 90;
_local1.dmgMax = 90;
_local1.castTime = 2;
_local1.cooldown = 12;
_local1.buffTime = 3;
_local1.disabledSkillCategory = 50;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.desc = "Snap a random limb, disabling a random skill/spell for #BUFFTIME# seconds.";
_local1.buffToolTip = "Crippled";
return(_local1);
}
if (skillID == 201) {
_local1.skillName = "Enlarge";
_local1.castTime = 3;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.isDebuff = false;
_local1.damageDoneModifier = 40;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.desc = ("Call upon the Big World plane to enlarge your body, increasing your damage by " + _local1.damageDoneModifier) + " for #BUFFTIME# seconds.";
_local1.buffToolTip = "Enlarged";
return(_local1);
}
if (skillID == 202) {
_local1.skillName = "Poison Decay";
_local1.castTime = 2;
_local1.cooldown = 15;
_local1.buffTime = 5;
_local1.dotAmount = -20;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.dmgType = 5;
_local1.desc = ("Cause a poisonous decay to wrack your opponent, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Poisoned";
return(_local1);
}
if (skillID == 203) {
_local1.skillName = "Confusion";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.jumbleSkills = true;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.desc = "This spell thoroughly confuses your enemy, scrambling his skill buttons.";
return(_local1);
}
if (skillID == 204) {
_local1.skillName = "Phase Shift";
_local1.castTime = 1;
_local1.cooldown = 22;
_local1.buffTime = 8;
_local1.driftSpeed = 5;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.desc = "Place your enemy between this dimension and another, causing their skill buttons to drift randomly around their vision for #BUFFTIME# seconds.";
_local1.buffToolTip = "Phased";
return(_local1);
}
if (skillID == 205) {
_local1.skillName = "Sawteeth Bite";
_local1.dmgMin = 60;
_local1.dmgMax = 70;
_local1.castTime = 1;
_local1.cooldown = 3;
_local1.desc = ("Snap into your foe with giant, razor teeth for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 206) {
_local1.skillName = "Corkscrew Drill";
_local1.castTime = 3;
_local1.cooldown = 16;
_local1.buffTime = 10;
_local1.dotAmount = -10;
_local1.powerCost = 60;
_local1.powerTypeCost = 1;
_local1.desc = "Burrow a hole in your opponet with a massive drill, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount);
_local1.buffToolTip = "Bleeding";
return(_local1);
}
if (skillID == 207) {
_local1.skillName = "Healing Oil";
_local1.dmgMin = -150;
_local1.dmgMax = -130;
_local1.castTime = 3;
_local1.cooldown = 30;
_local1.isDebuff = false;
_local1.dmgType = 2;
_local1.desc = ("Chug a bottle of EZ Fix motor oil to grease up the gears, healing " + Skill.DirectHealing(_local1)) + ".";
return(_local1);
}
if (skillID == 208) {
_local1.skillName = "Immunity Shield";
_local1.castTime = 1;
_local1.cooldown = 40;
_local1.buffTime = 4;
_local1.isDebuff = false;
_local1.powerCost = 60;
_local1.powerTypeCost = 1;
_local1.desc = "A protective mechanical shield protecting you from all damage for #BUFFTIME# seconds.";
_local1.buffToolTip = "Immune";
_local1.immuneDmgType = 10;
return(_local1);
}
if (skillID == 209) {
_local1.skillName = "Nano Repairbots";
_local1.castTime = 5;
_local1.cooldown = 20;
_local1.buffTime = 6;
_local1.dotAmount = 20;
_local1.isDebuff = false;
_local1.powerCost = 60;
_local1.powerTypeCost = 1;
_local1.dmgType = 2;
_local1.desc = ("Watch as millions of tiny nanobots clambor all over your iron skin, returning " + Skill.DotHealing(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Repairing";
return(_local1);
}
if (skillID == 210) {
_local1.skillName = "Stunning Bolt";
_local1.dmgMin = 70;
_local1.dmgMax = 70;
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 4;
_local1.chanceOfStun = 1;
_local1.powerCost = 60;
_local1.powerTypeCost = 1;
_local1.interupt = true;
_local1.desc = ("Fire a high-powered bolt into your enemy, stunning them for #BUFFTIME# seconds and causing " + Skill.DirectDamage(_local1)) + ".";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 211) {
_local1.skillName = "Refill Gas Tank";
_local1.castTime = 3;
_local1.cooldown = 15;
_local1.isDebuff = false;
_local1.desc = "Refill your gas tank and get back into the action!";
_local1.refillPower = true;
return(_local1);
}
if (skillID == 212) {
_local1.skillName = "Stony Gaze";
_local1.cooldown = 30;
_local1.buffTime = 12;
_local1.slowCursor = 7;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.desc = "Gaze at your opponent, partially hardening their limbs. This skill makes your opponent's mouse become much slower and harder to control.";
_local1.buffToolTip = "Groggy";
return(_local1);
}
if (skillID == 213) {
_local1.skillName = "Ugly Confusion";
_local1.castTime = 1.5;
_local1.cooldown = 40;
_local1.jumbleSkills = true;
_local1.desc = "Confuse your opponent with your extreme ugliness, instantly scrambling their skills.";
return(_local1);
}
if (skillID == 214) {
_local1.skillName = "Dual Scimitars";
_local1.dmgMin = 85;
_local1.dmgMax = 95;
_local1.castTime = 1;
_local1.cooldown = 6;
_local1.desc = ("With dual scimitars, swath into your foe with deadly precision, doing " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 215) {
_local1.skillName = "Mana Shield";
_local1.castTime = 1;
_local1.cooldown = 20;
_local1.buffTime = 6;
_local1.isDebuff = false;
_local1.manaShield = 0.8;
_local1.desc = ("Create a translucent shield around yourself that redirects up to " + (_local1.manaShield * 100)) + "% of damage taken to available Mana.";
_local1.buffToolTip = "Mana Shield";
return(_local1);
}
if (skillID == 216) {
_local1.skillName = "Force Mirror Use";
_local1.castTime = 1;
_local1.cooldown = 35;
_local1.buffTime = 9;
_local1.chanceOfBlind = 1;
_local1.desc = "Since your Medusa, and everyone knows you use mirrors with Medusa, force your opponent to use one, blinding them for #BUFFTIME# seconds.";
_local1.buffToolTip = "Blinded";
return(_local1);
}
if (skillID == 217) {
_local1.skillName = "Reflect Fire";
_local1.castTime = 1;
_local1.cooldown = 35;
_local1.buffTime = 5;
_local1.isDebuff = false;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.dmgType = 1;
_local1.desc = "Reflect all fire effects back upon your opponent for #BUFFTIME# seconds.";
_local1.buffToolTip = "Reflect Fire";
_local1.reflectDmgType = 1;
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 218) {
_local1.skillName = "Reflect Poison";
_local1.castTime = 1;
_local1.cooldown = 35;
_local1.buffTime = 5;
_local1.isDebuff = false;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.dmgType = 5;
_local1.desc = "Reflect all poison effects back upon your opponent for #BUFFTIME# seconds.";
_local1.buffToolTip = "Reflect Poison";
_local1.reflectDmgType = 5;
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 219) {
_local1.skillName = "Reflect Arcane";
_local1.castTime = 1;
_local1.cooldown = 45;
_local1.buffTime = 4;
_local1.isDebuff = false;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = "Reflect all arcane spells back upon your opponent for #BUFFTIME# seconds.";
_local1.buffToolTip = "Reflect Arcane";
_local1.reflectDmgType = 3;
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 220) {
_local1.skillName = "Heavy Legs";
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 4;
_local1.slowPercent = 2;
_local1.powerTypeCost = 2;
_local1.desc = ("Penetrate your opponent's legs with your gaze, slowing movement and their casting by " + (_local1.slowPercent * 100)) + "%.";
_local1.buffToolTip = "Slowed";
return(_local1);
}
if (skillID == 221) {
_local1.skillName = "Snake Attack";
_local1.castTime = 1.5;
_local1.cooldown = 12;
_local1.buffTime = 4;
_local1.dotAmount = -30;
_local1.dmgType = 5;
_local1.desc = ("Perform a headbutt, allowing your head-snakes to strike out with viscious poison, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Poisoned";
return(_local1);
}
if (skillID == 222) {
_local1.skillName = "Lion Roar";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.shrinkPercent = 0.4;
_local1.desc = "Let out a cavernous roar, causing your opponent to cower in fear and shrinking his skill buttons for #BUFFTIME# seconds.";
_local1.buffToolTip = "Shrunk";
return(_local1);
}
if (skillID == 223) {
_local1.skillName = "Goat Bite";
_local1.dmgMin = 65;
_local1.dmgMax = 75;
_local1.castTime = 2;
_local1.cooldown = 7;
_local1.desc = ("Take a chomp with your goat head, doing " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 224) {
_local1.skillName = "Slowing Aura";
_local1.cooldown = 46;
_local1.buffTime = 45;
_local1.slowPercent = 0.5;
_local1.desc = ("The Chimera exudes a slowing aura that is virtually impossible to avoid, slowing your opponent's movement by " + (_local1.slowPercent * 100)) + "%.";
_local1.buffToolTip = "Slowed";
return(_local1);
}
if (skillID == 225) {
_local1.skillName = "Venomous Strike";
_local1.castTime = 2;
_local1.cooldown = 12;
_local1.buffTime = 6;
_local1.dotAmount = -10;
_local1.slowCursor = 8;
_local1.interupt = true;
_local1.desc = ("Strike with your snake head, sinking in deep fangs slick with poison to make your opponent GROGGY for #BUFFTIME# seconds. Also causes " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ". ";
_local1.buffToolTip = "Groggy";
return(_local1);
}
if (skillID == 226) {
_local1.skillName = "Eat Weapon";
_local1.castTime = 2;
_local1.cooldown = 40;
_local1.buffTime = 5;
_local1.disabledSkillCategory = 0;
_local1.desc = "Swallow your enemy's weapon whole, disarming him for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disarmed";
return(_local1);
}
if (skillID == 227) {
_local1.skillName = "Purge";
_local1.castTime = 1;
_local1.cooldown = 20;
_local1.desc = "Use your innate ability to purge one beneficial buff from you enemy.";
_local1.removeBuff = true;
return(_local1);
}
if (skillID == 228) {
_local1.skillName = "Fire Breath";
_local1.dmgMin = 130;
_local1.dmgMax = 135;
_local1.castTime = 3;
_local1.cooldown = 25;
_local1.desc = ("Take a deep breath and let loose a charring wave of mouth fire for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 229) {
_local1.skillName = "Giant Fangs";
_local1.dmgMin = 75;
_local1.dmgMax = 85;
_local1.castTime = 2;
_local1.cooldown = 7;
_local1.desc = ("Bite with your big, nasty fangs for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 230) {
_local1.skillName = "Terrify";
_local1.castTime = 1;
_local1.cooldown = 40;
_local1.buffTime = 7;
_local1.driftSpeed = 7;
_local1.desc = "Your ferocity is absolutely terrifying to your opponent, disorienting them for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disoriented";
return(_local1);
}
if (skillID == 231) {
_local1.skillName = "Grenade Resistance";
_local1.castTime = 1;
_local1.cooldown = 35;
_local1.buffTime = 5;
_local1.isDebuff = false;
_local1.damageTakenModifier = -30;
_local1.desc = ("Through experience with grenades in the Talesworth Arena, you have built up strong fur, reducing damage taken by " + (_local1.damageTakenModifier * -1)) + " for #BUFFTIME# seconds.";
_local1.buffToolTip = "Dmg Resist";
return(_local1);
}
if (skillID == 232) {
_local1.skillName = "Disable Devices";
_local1.castTime = 2;
_local1.cooldown = 50;
_local1.buffTime = 10;
_local1.disabledSkillCategory = 1;
_local1.desc = "A quick, precision attack that disables all opponents devices for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disabled";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 233) {
_local1.skillName = "Disable Spells";
_local1.castTime = 2;
_local1.cooldown = 50;
_local1.buffTime = 10;
_local1.disabledSkillCategory = 3;
_local1.desc = "A quick, precision attack that disables all opponents spells for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disabled";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 234) {
_local1.skillName = "Rabies!";
_local1.castTime = 2;
_local1.cooldown = 7;
_local1.buffTime = 6;
_local1.dotAmount = -12;
_local1.desc = ("Ewww, rabies! Infect your opponent, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Rabies!";
return(_local1);
}
if (skillID == 235) {
_local1.skillName = "Pounce of Doom";
_local1.dmgMin = 160;
_local1.dmgMax = 160;
_local1.castTime = 2.5;
_local1.cooldown = 25;
_local1.desc = ("This is the big one! Launch yourself at your opponent's neck, chomping down for " + Skill.DirectDamage(_local1)) + "!";
return(_local1);
}
if (skillID == 236) {
_local1.skillName = "Puncture Gas Tank";
_local1.castTime = 0.5;
_local1.cooldown = 10;
_local1.syphonPowerAmt = 150;
_local1.syphonPowerType = 1;
_local1.desc = ("Using your teeth, drain " + _local1.syphonPowerAmt) + " gas from your opponent's tank.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 237) {
_local1.skillName = "Drain Arcane";
_local1.castTime = 2;
_local1.cooldown = 20;
_local1.syphonPowerAmt = 50;
_local1.syphonPowerType = 2;
_local1.desc = ("Using your devil teeth, drain " + _local1.syphonPowerAmt) + " mana from your opponent's soul.";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 238) {
_local1.skillName = "Sap Power";
_local1.castTime = 2;
_local1.cooldown = 20;
_local1.syphonPowerAmt = 25;
_local1.syphonPowerType = 3;
_local1.desc = ("Using your devil teeth, drain " + _local1.syphonPowerAmt) + " power from your opponent's constitution.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 239) {
_local1.skillName = "Dark Shroud";
_local1.cooldown = 20;
_local1.buffTime = 18;
_local1.hideCastbar = true;
_local1.powerCost = 25;
_local1.powerTypeCost = 2;
_local1.desc = "Shroud your casting in mystery, hiding your casting bar from your opponent for #BUFFTIME# seconds.";
_local1.buffToolTip = "Hidden";
return(_local1);
}
if (skillID == 240) {
_local1.skillName = "Touch of Death";
_local1.dmgMin = 220;
_local1.dmgMax = 250;
_local1.castTime = 3;
_local1.cooldown = 37;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("A HIGH damage spell that causes the essence of death to overtake your enemy's soul, doing " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 241) {
_local1.skillName = "Ray of Frost";
_local1.dmgMin = 24;
_local1.dmgMax = 35;
_local1.castTime = 1;
_local1.cooldown = 17;
_local1.buffTime = 5;
_local1.disabledSkillCategory = 0;
_local1.powerCost = 30;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("A low damage ray of frost that does " + Skill.DirectDamage(_local1)) + ". Your opponent's hands will become frozen, causing them to drop their weapon for #BUFFTIME# seconds.";
return(_local1);
}
if (skillID == 242) {
_local1.skillName = "Crypt Breath";
_local1.castTime = 2;
_local1.cooldown = 15;
_local1.buffTime = 6;
_local1.dotAmount = -5;
_local1.powerCost = 30;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("Years in the crypt and constant dry mouth have give you a bad case of LOW damage crypt breath that causes " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Acid Burn";
return(_local1);
}
if (skillID == 243) {
_local1.skillName = "Touch of Wrath";
_local1.dmgMin = 25;
_local1.dmgMax = 35;
_local1.castTime = 2;
_local1.cooldown = 17;
_local1.powerCost = 30;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("A LOW damage ray of frost, doing " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 244) {
_local1.skillName = "Ray of Fire";
_local1.castTime = 1;
_local1.cooldown = 30;
_local1.buffTime = 6;
_local1.dotAmount = -15;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.dmgType = 1;
_local1.desc = ("A ray of fire that causes a HIGH amount of damage. Singe your foe for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Burning";
return(_local1);
}
if (skillID == 245) {
_local1.skillName = "Shocking Grasp";
_local1.castTime = 2;
_local1.cooldown = 35;
_local1.buffTime = 5;
_local1.dotAmount = -13;
_local1.chanceOfStun = 1;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.interupt = true;
_local1.desc = ("Shock your opponent for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and stun them for #BUFFTIME# seconds.";
_local1.buffToolTip = "Shocking";
return(_local1);
}
if (skillID == 246) {
_local1.skillName = "Expand Shadows";
_local1.castTime = 1;
_local1.cooldown = 45;
_local1.buffTime = 8;
_local1.chanceOfBlind = 1;
_local1.powerCost = 30;
_local1.powerTypeCost = 2;
_local1.desc = "Expand the shadows around you to envelope your opponent, blinding them for #BUFFTIME# seconds.";
_local1.buffToolTip = "Blinded";
return(_local1);
}
if (skillID == 247) {
_local1.skillName = "Mindwarp";
_local1.castTime = 1;
_local1.cooldown = 35;
_local1.jumbleSkills = true;
_local1.powerCost = 30;
_local1.powerTypeCost = 2;
_local1.desc = "Scramble your enemy's mind, jumbling their skills in disarray.";
return(_local1);
}
if (skillID == 248) {
_local1.skillName = "Fear Paralysis";
_local1.castTime = 3;
_local1.cooldown = 30;
_local1.buffTime = 3;
_local1.chanceOfStun = 1;
_local1.dmgType = 3;
_local1.interupt = true;
_local1.desc = "Your dragon heritage inspires fear in your enemies. Use it to paralyze your opponent for #BUFFTIME# seconds.";
_local1.buffToolTip = "Paralyzed";
return(_local1);
}
if (skillID == 249) {
_local1.skillName = "Razor Talons";
_local1.dmgMin = 95;
_local1.dmgMax = 105;
_local1.castTime = 2;
_local1.cooldown = 7;
_local1.desc = ("Rake your foe with razoe sharp claws for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 250) {
_local1.skillName = "Dragonskin";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 5;
_local1.isDebuff = false;
_local1.desc = "Use your dragonskin to your advantage, making you immune to physical attacks for #BUFFTIME# seconds.";
_local1.buffToolTip = "Immune Physical";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 251) {
_local1.skillName = "Dragonskin";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 5;
_local1.isDebuff = false;
_local1.desc = "Use your dragonskin to your advantage, making you immune to arcane attacks for #BUFFTIME# seconds.";
_local1.buffToolTip = "Immune Magic";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 252) {
_local1.skillName = "Icy Breath";
_local1.dmgMin = 85;
_local1.dmgMax = 95;
_local1.castTime = 3;
_local1.cooldown = 35;
_local1.buffTime = 9;
_local1.slowPercent = 1.5;
_local1.dmgType = 3;
_local1.desc = ((("Let loose a gust of icy mist from your lungs, causing " + Skill.DirectDamage(_local1)) + "and slowing your opponent by ") + (_local1.slowPercent * 100)) + "%.";
_local1.buffToolTip = "Freezing";
return(_local1);
}
if (skillID == 253) {
_local1.skillName = "Plate Armor";
_local1.castTime = 1;
_local1.cooldown = 35;
_local1.buffTime = 15;
_local1.isDebuff = false;
_local1.damageTakenModifier = -45;
_local1.desc = ("Shield yourself with your plate armor, reducing damage taken by " + (_local1.damageTakenModifier * -1)) + " for #BUFFTIME# seconds.";
_local1.buffToolTip = "Dmg Resist";
return(_local1);
}
if (skillID == 254) {
_local1.skillName = "Wing Buffet";
_local1.castTime = 0.5;
_local1.cooldown = 15;
_local1.buffTime = 5;
_local1.slowCursor = 3;
_local1.desc = "Bat your wings violently, causing your enemy to feel groggy for #BUFFTIME# seconds.";
_local1.buffToolTip = "Slowed";
return(_local1);
}
if (skillID == 255) {
_local1.skillName = "Bloodmend";
_local1.castTime = 3;
_local1.cooldown = 35;
_local1.buffTime = 6;
_local1.dotAmount = 20;
_local1.isDebuff = false;
_local1.dmgType = 2;
_local1.desc = "Feel as your dragonblood surges through your body, healing you for " + Skill.DotHealing(_local1.buffTime, _local1.dotAmount);
_local1.buffToolTip = "Healing";
return(_local1);
}
if (skillID == 256) {
_local1.skillName = "Sharp Teeth";
_local1.dmgMin = 90;
_local1.dmgMax = 105;
_local1.castTime = 2;
_local1.cooldown = 20;
_local1.desc = ("Sink your sharp teeth into your opponent for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 257) {
_local1.skillName = "Funeral Pyre";
_local1.dmgMin = 150;
_local1.dmgMax = 175;
_local1.castTime = 3;
_local1.cooldown = 40;
_local1.powerCost = 75;
_local1.powerTypeCost = 2;
_local1.dmgType = 1;
_local1.desc = ("Summon a pillar of fire down upon your foe, encasing them in a funeral pyre of destruction for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 258) {
_local1.skillName = "Evil Trance";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.buffTime = 3;
_local1.isDebuff = false;
_local1.powerCost = 65;
_local1.powerTypeCost = 2;
_local1.desc = "Enter a state of extreme concentration for #BUFFTIME# seconds, making you immune to all stuns and interrupts.";
_local1.buffToolTip = "No Stun/Int.";
_local1.immuneToStun = true;
return(_local1);
}
if (skillID == 259) {
_local1.skillName = "Horn Gouge";
_local1.castTime = 2;
_local1.cooldown = 15;
_local1.buffTime = 5;
_local1.dotAmount = -18;
_local1.desc = ("Gouge your enemy with giant demon horns, causing him to bleed for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Bleeding";
return(_local1);
}
if (skillID == 260) {
_local1.skillName = "Darkness";
_local1.castTime = 1;
_local1.cooldown = 40;
_local1.buffTime = 12;
_local1.chanceOfBlind = 1;
_local1.powerCost = 30;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = "Darkness surrounds your enemy, blinding them for #BUFFTIME# seconds.";
_local1.buffToolTip = "Blinded";
return(_local1);
}
if (skillID == 261) {
_local1.skillName = "Reflection";
_local1.castTime = 2;
_local1.cooldown = 35;
_local1.buffTime = 4;
_local1.isDebuff = false;
_local1.powerCost = 80;
_local1.powerTypeCost = 2;
_local1.desc = "Call upon the spirits of demons past to protect you, reflecting all damage back upon your opponent for #BUFFTIME# seconds.";
_local1.buffToolTip = "Reflecting";
_local1.reflectDmgType = 10;
return(_local1);
}
if (skillID == 262) {
_local1.skillName = "Forget";
_local1.castTime = 1;
_local1.cooldown = 30;
_local1.buffTime = 8;
_local1.disabledSkillCategory = 50;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = "With a flick of your wrist, brainwash your foe into forgetting one of his skills for #BUFFTIME# seconds.";
_local1.buffToolTip = "Forgetful";
return(_local1);
}
if (skillID == 263) {
_local1.skillName = "Demonblade";
_local1.dmgMin = 85;
_local1.dmgMax = 95;
_local1.castTime = 1.5;
_local1.cooldown = 7;
_local1.slowPercent = 1.2;
_local1.desc = ("This fierce weapon was forged in the fires of the abyss, and strikes for " + Skill.DirectDamage(_local1)) + ".";
_local1.buffToolTip = "Slowed";
return(_local1);
}
if (skillID == 264) {
_local1.skillName = "Enrage";
_local1.castTime = 2;
_local1.cooldown = 40;
_local1.buffTime = 15;
_local1.isDebuff = false;
_local1.damageDoneModifier = 25;
_local1.desc = ("Embrace the rage within, increasing your damage by " + _local1.damageDoneModifier) + " for #BUFFTIME# seconds.";
_local1.buffToolTip = "Enraged!";
return(_local1);
}
if (skillID == 265) {
_local1.skillName = "Imp Form";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.slowPercent = -0.6;
_local1.isDebuff = false;
_local1.powerCost = 65;
_local1.powerTypeCost = 2;
_local1.desc = ("Transform yourself into a small imp, speeding your movement by " + (_local1.slowPercent * -100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Imp Form";
return(_local1);
}
if (skillID == 266) {
_local1.skillName = "Disable Devices";
_local1.castTime = 3;
_local1.cooldown = 50;
_local1.buffTime = 10;
_local1.disabledSkillCategory = 1;
_local1.desc = "A quick, precision attack that disables all opponents devices for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disabled";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 267) {
_local1.skillName = "Dragonskin";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 5;
_local1.isDebuff = false;
_local1.desc = "Use your dragonskin to your advantage, making you immune to physical attacks for #BUFFTIME# seconds.";
_local1.buffToolTip = "Immune Physical";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 268) {
_local1.skillName = "Howitzer Javelin Gun";
_local1.dmgMin = 44;
_local1.dmgMax = 52;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 310;
_local1.reqLevel = 6;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 6;
_local1.desc = ("A massive gun loaded with heavy javelins that do " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 269) {
_local1.skillName = "Refill Gas Tank";
_local1.castTime = 4;
_local1.cooldown = 21;
_local1.forSale = true;
_local1.goldCost = 300;
_local1.reqLevel = 6;
_local1.categoryID = 1;
_local1.parentSkillID = 2;
_local1.isDebuff = false;
_local1.rank = 3;
_local1.desc = "This enhanced skill enables you to completely refill your gas tank quicker than earlier models and more often.";
_local1.reqClass = 1;
_local1.refillPower = true;
return(_local1);
}
if (skillID == 270) {
_local1.skillName = "Brutal Groin Kick";
_local1.dmgMin = 60;
_local1.dmgMax = 60;
_local1.castTime = 1.75;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 320;
_local1.reqLevel = 6;
_local1.categoryID = 2;
_local1.parentSkillID = 4;
_local1.chanceOfStun = 1;
_local1.rank = 2;
_local1.interupt = true;
_local1.desc = ("A brutal kick to the loins, stunning opponent for #BUFFTIME# seconds, and causing " + Skill.DirectDamage(_local1)) + ".";
_local1.buffToolTip = "Puking";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 271) {
_local1.skillName = "Arcane Mace";
_local1.dmgMin = 48;
_local1.dmgMax = 56;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 310;
_local1.reqLevel = 6;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 6;
_local1.desc = ("This mace glows with a yellow arcane aura, doing " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 272) {
_local1.skillName = "Psychic Blast v2";
_local1.dmgMin = 80;
_local1.dmgMax = 80;
_local1.castTime = 1.75;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 300;
_local1.reqLevel = 6;
_local1.categoryID = 3;
_local1.parentSkillID = 9;
_local1.chanceOfStun = 1;
_local1.powerCost = 50;
_local1.powerTypeCost = 2;
_local1.rank = 2;
_local1.dmgType = 3;
_local1.interupt = true;
_local1.desc = ("Blast your opponent with a shock of psychic power, stunning them for #BUFFTIME# seconds and causing " + Skill.DirectDamage(_local1)) + ".";
_local1.buffToolTip = "Stunned";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 273) {
_local1.skillName = "Imp. Mana Shield";
_local1.castTime = 1;
_local1.cooldown = 15;
_local1.buffTime = 10;
_local1.forSale = true;
_local1.goldCost = 320;
_local1.reqLevel = 6;
_local1.categoryID = 3;
_local1.parentSkillID = 11;
_local1.isDebuff = false;
_local1.manaShield = 0.65;
_local1.powerCost = 35;
_local1.powerTypeCost = 2;
_local1.rank = 2;
_local1.dmgType = 3;
_local1.desc = ("Create an improved translucent shield around yourself that redirects up to " + (_local1.manaShield * 100)) + "% of damage taken to available Mana. Lasts #BUFFTIME# seconds.";
_local1.buffToolTip = "Shielded";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 274) {
_local1.skillName = "Heavy Broadsword";
_local1.dmgMin = 44;
_local1.dmgMax = 52;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 310;
_local1.reqLevel = 6;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.powerBonus = 5;
_local1.rank = 6;
_local1.desc = ((("Wield a massive steel broadsword, striking your opponent for " + Skill.DirectDamage(_local1)) + " and gives you ") + _local1.powerBonus) + " power.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 275) {
_local1.skillName = "Painful Uppercut";
_local1.dmgMin = 60;
_local1.dmgMax = 60;
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 320;
_local1.reqLevel = 6;
_local1.categoryID = 2;
_local1.parentSkillID = 18;
_local1.chanceOfStun = 1;
_local1.rank = 2;
_local1.interupt = true;
_local1.desc = ("An hard-handed uppercut that delivers " + Skill.DirectDamage(_local1)) + ", PLUS all your current power! Your opponent will be knocked out for #BUFFTIME# seconds.";
_local1.buffToolTip = "KO'ed";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 276) {
_local1.skillName = "Stinging Taunt";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 300;
_local1.reqLevel = 6;
_local1.categoryID = 2;
_local1.parentSkillID = 22;
_local1.damageDoneModifier = 29;
_local1.damageTakenModifier = 35;
_local1.rank = 2;
_local1.desc = ((("Taunt the opponent, working him/her into a rage. Opponent takes " + _local1.damageTakenModifier) + " more damage per hit, and inflicts ") + _local1.damageDoneModifier) + " more damage per hit (which: compliments Adrenaline Rush).";
_local1.buffToolTip = "Taunted";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 277) {
_local1.skillName = "Weapon Spike";
_local1.dmgMax = 0.1;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.desc = ("Fix a sharp spike to your weapon, delivering " + (_local1.dmgMax * 100)) + "% more damage.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 278) {
_local1.skillName = "Steel Toed Boots";
_local1.buffTime = 1;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 4;
_local1.desc = "Make that kick hit a little harder with these boots. Causes stun to last #BUFFTIME# more second.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 279) {
_local1.skillName = "Gas Tank Pump";
_local1.castTime = 0.2;
_local1.forSale = true;
_local1.goldCost = 1;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 2;
_local1.desc = ("Install a small hydrolic pump on your gas tank, reducing the cast time by " + (_local1.castTime * 100)) + "%.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 280) {
_local1.skillName = "Fire Beetles";
_local1.dmgMax = 0.1;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 1;
_local1.desc = ("Load your flamethrower with a handful of deadly Fire Beetles, increasing it's stopping power " + (_local1.dmgMax * 100)) + "%.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 281) {
_local1.skillName = "Spring Tightener";
_local1.cooldown = 0.15;
_local1.forSale = true;
_local1.goldCost = 2;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 3;
_local1.desc = ("A better spring-loading mechanism means quicker reloading for your interrupting device, reducing the cooldown by " + (_local1.cooldown * 100)) + "%.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 282) {
_local1.skillName = "Tiny Megaphone";
_local1.forSale = true;
_local1.goldCost = 1;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 6;
_local1.slowPercent = 0.1;
_local1.desc = ("Hook up your fly with a tiny megaphone, making him that much more annoying. This increases his slowing percentage by " + (_local1.slowPercent * 100)) + "%.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 283) {
_local1.skillName = "WD-50 Grease";
_local1.dmgMax = 0.5;
_local1.forSale = true;
_local1.goldCost = 2;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 7;
_local1.desc = ("Grease up those limbs with SuperOil, increasing the effects of Bionic Limbs by " + (_local1.dmgMax * 100)) + "%.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 284) {
_local1.skillName = "Grenade Belt";
_local1.cooldown = 0.15;
_local1.forSale = true;
_local1.goldCost = 2;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 5;
_local1.desc = ("Strap on a belt, enabling you to carry more grenades, thereby reducing your Anti-Grenade cooldown by " + (_local1.cooldown * 100)) + "%.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 285) {
_local1.skillName = "Silver Toolset";
_local1.dmgMax = 0.25;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 8;
_local1.desc = ("Mod your Robotic Medic with a nifty set of tools, increasing the healing potential by " + (_local1.dmgMax * 100)) + "%.";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 286) {
_local1.skillName = "Weapon Enchantment";
_local1.dmgMax = 0.1;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.desc = ("Imbue your weapon with psychic force, striking for " + (_local1.dmgMax * 100)) + "% more damage.";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 287) {
_local1.skillName = "Inner Demons";
_local1.dmgMax = 0.1;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 12;
_local1.desc = ("Your Torment spells will now tap into your enemy's torturous inner demons, causing " + (_local1.dmgMax * 100)) + "% more damage.";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 288) {
_local1.skillName = "Forehead Focuser";
_local1.buffTime = 1;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 9;
_local1.desc = "Affix this small prism to your forehead, focusing your Psychic Blast. Causes stun to last #BUFFTIME# more second.";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 289) {
_local1.skillName = "Secret Mantra";
_local1.forSale = true;
_local1.goldCost = 1;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 14;
_local1.powerRegen = 0.2;
_local1.desc = ("Learn this secret mantra, and gain an additional " + (_local1.powerRegen * 100)) + "% to your Mana regeneration while concentrating.";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 290) {
_local1.skillName = "Hyper-Dissipater XL";
_local1.cooldown = 0.1;
_local1.forSale = true;
_local1.goldCost = 2;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 10;
_local1.desc = ("This bizarre device enables you to conjure a Wall of Atoms much quicker, lower it's cooldown by " + (_local1.cooldown * 100)) + "%.";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 291) {
_local1.skillName = "Mana Gnome";
_local1.buffTime = 0.2;
_local1.forSale = true;
_local1.goldCost = 1;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 11;
_local1.desc = ("Own your own Gnome! This little scamp will assist you with Mana Shield, allowing it to last " + (_local1.buffTime * 100)) + "% longer! Yay, Gnomes!";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 292) {
_local1.skillName = "Multitasking Manual";
_local1.castTime = 1;
_local1.forSale = true;
_local1.goldCost = 2;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 16;
_local1.desc = "This manual allows you to do two things at once, in effect eliminating the cast time on your Telepathy spell, making it Instant.";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 293) {
_local1.skillName = "Orb of Head Freezing";
_local1.forSale = true;
_local1.goldCost = 2;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 13;
_local1.slowPercent = 0.1;
_local1.desc = ("This Orb will boost your Brain Freeze spell, causing your enemy to be slowed by an additional " + (_local1.slowPercent * 100)) + "%.";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 294) {
_local1.skillName = "Braincell Nanobots";
_local1.buffTime = 0.2;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 15;
_local1.desc = ("Your Forget spell will now also deliver a small helping of nanobots, programmed to eat brain cells. The spell will now last " + (_local1.buffTime * 100)) + "% longer.";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 295) {
_local1.skillName = "Dirty Weapon";
_local1.dmgMax = 0.1;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.desc = ("Coat your weapon with a sickly, disease-ridden sludge, increasing it's damage by " + (_local1.dmgMax * 100)) + "%.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 296) {
_local1.skillName = "Needle Extender";
_local1.dmgMax = 0.1;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 17;
_local1.desc = ("Extend the needle on your syringe, reaching deep into your enemy, causing " + (_local1.dmgMax * 100)) + "% more damage.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 297) {
_local1.skillName = "Dumbbells";
_local1.buffTime = 1;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 18;
_local1.desc = "Work those biceps with some dumbbell weights, increasing the stun time on your Uppercut by #BUFFTIME# second.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 298) {
_local1.skillName = "Inspiring Stories";
_local1.forSale = true;
_local1.goldCost = 2;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 19;
_local1.adrenalineRush = 0.1;
_local1.desc = ("Learn some inspiring stories of courage, giving you an extra " + (_local1.adrenalineRush * 100)) + "% boost during your Adrenaline Rush in the amount of damage converted to Power.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 299) {
_local1.skillName = "Fist Expander";
_local1.dmgMax = 0.15;
_local1.forSale = true;
_local1.goldCost = 1;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 20;
_local1.desc = ("This bizarre device enlarges your left fist slightly, delivering " + (_local1.dmgMax * 100)) + "% more base damage.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 300) {
_local1.skillName = "80 Proof Whiskey";
_local1.forSale = true;
_local1.goldCost = 2;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 21;
_local1.powerBonus = 0.3;
_local1.desc = ("Take a few swigs of this hard-hitting brew, increasing the power bonus gained for Stagger by " + (_local1.powerBonus * 100)) + "%.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 301) {
_local1.skillName = "Book of Insults";
_local1.forSale = true;
_local1.goldCost = 1;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 22;
_local1.damageDoneModifier = 0.2;
_local1.desc = ("This book was written by Forktongue, a notorious pirate. The slanderous insults you learn will increase the damage bonus during a Taunt by " + (_local1.damageDoneModifier * 100)) + "%.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 302) {
_local1.skillName = "Massive Jack Pouch";
_local1.forSale = true;
_local1.goldCost = 2;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 23;
_local1.slowPercent = 0.1;
_local1.desc = ("This large pouch for Ground Jacks is capable of moderately increasing your Jack capacity. The increased numbers will slow your enemy by an additional " + (_local1.slowPercent * 100)) + "%.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 303) {
_local1.skillName = "Shield Polish";
_local1.cooldown = 0.15;
_local1.forSale = true;
_local1.goldCost = 3;
_local1.reqLevel = 9999;
_local1.categoryID = 0;
_local1.parentSkillID = 24;
_local1.desc = ("Shine up that shield, giving it a brilliant glow. This polish decreases the cooldown on Reflective Shield by " + (_local1.cooldown * 100)) + "%.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 304) {
_local1.skillName = "Cannonball Gun";
_local1.dmgMin = 52;
_local1.dmgMax = 60;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 420;
_local1.reqLevel = 7;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 7;
_local1.desc = ("A moderately sized, brass pistol with a fat barrel that shoots mini-cannonballs that hit for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 305) {
_local1.skillName = "Flamethrower v4";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 440;
_local1.reqLevel = 7;
_local1.categoryID = 1;
_local1.parentSkillID = 1;
_local1.dotAmount = -15;
_local1.powerCost = 65;
_local1.powerTypeCost = 1;
_local1.rank = 4;
_local1.dmgType = 1;
_local1.desc = "A hallmark in technology, this blower engulfs your enemies in flames for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount);
_local1.buffToolTip = "On Fire!";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 306) {
_local1.skillName = "Gold Bionic Arms";
_local1.castTime = 2;
_local1.cooldown = 45;
_local1.buffTime = 30;
_local1.forSale = true;
_local1.goldCost = 380;
_local1.reqLevel = 7;
_local1.categoryID = 1;
_local1.parentSkillID = 7;
_local1.isDebuff = false;
_local1.damageDoneModifier = 18;
_local1.powerCost = 55;
_local1.powerTypeCost = 1;
_local1.rank = 3;
_local1.desc = "Activate gold plated bionic limbs, increasing your weapon damage by #DMGDONEMOD# points per hit for #BUFFTIME# seconds.";
_local1.buffToolTip = "Bionic";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 307) {
_local1.skillName = "Mechanical Fly";
_local1.castTime = 2.5;
_local1.cooldown = 30;
_local1.buffTime = 8;
_local1.forSale = true;
_local1.goldCost = 410;
_local1.reqLevel = 7;
_local1.categoryID = 1;
_local1.parentSkillID = 6;
_local1.dotAmount = -8;
_local1.slowPercent = 1;
_local1.powerCost = 75;
_local1.powerTypeCost = 1;
_local1.rank = 2;
_local1.desc = ("Fires up a mechanical fly to annoy your adversary. Does " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slows their casting by #SLOWPERCENT#%.";
_local1.buffToolTip = "Annoyed";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 308) {
_local1.skillName = "Silver Warhammer";
_local1.dmgMin = 56;
_local1.dmgMax = 64;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 430;
_local1.reqLevel = 7;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 7;
_local1.desc = ("A pristine, silver warhammer that strikes true on your enemies for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 309) {
_local1.skillName = "Brutal Torment";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 440;
_local1.reqLevel = 7;
_local1.categoryID = 3;
_local1.parentSkillID = 12;
_local1.dotAmount = -18;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.rank = 4;
_local1.dmgType = 3;
_local1.desc = ("Fill your enemy with a brutal wave of ghastly thoughts, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Tormented";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 310) {
_local1.skillName = "Brain Frost";
_local1.castTime = 2.5;
_local1.cooldown = 30;
_local1.buffTime = 8;
_local1.forSale = true;
_local1.goldCost = 420;
_local1.reqLevel = 7;
_local1.categoryID = 3;
_local1.parentSkillID = 13;
_local1.dotAmount = -8;
_local1.slowPercent = 1;
_local1.powerCost = 45;
_local1.powerTypeCost = 2;
_local1.rank = 2;
_local1.dmgType = 3;
_local1.desc = ("Cast a thin layer of frost over your foe's brain, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slows their casting by #SLOWPERCENT#%.";
_local1.buffToolTip = "Slowed";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 311) {
_local1.skillName = "Glowing Rapier";
_local1.dmgMin = 49;
_local1.dmgMax = 57;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 430;
_local1.reqLevel = 7;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.powerBonus = 5;
_local1.rank = 7;
_local1.desc = ((("This slender blade glows with a wicked aura and stabs for " + Skill.DirectDamage(_local1)) + " and gives you ") + _local1.powerBonus) + " power.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 312) {
_local1.skillName = "Brutal Poison Syringe";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 440;
_local1.reqLevel = 7;
_local1.categoryID = 1;
_local1.parentSkillID = 17;
_local1.dotAmount = -14;
_local1.rank = 4;
_local1.dmgType = 5;
_local1.desc = ("Jab your enemy with a syringe of brutal poison, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Poisoned";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 313) {
_local1.skillName = "Ground Jacks v2";
_local1.castTime = 2.5;
_local1.cooldown = 30;
_local1.buffTime = 8;
_local1.forSale = true;
_local1.goldCost = 420;
_local1.reqLevel = 7;
_local1.categoryID = 1;
_local1.parentSkillID = 23;
_local1.dotAmount = -8;
_local1.slowPercent = 1;
_local1.rank = 2;
_local1.dmgType = 5;
_local1.desc = ("Toss some upgraded poisoned jacks under your opponent's feet, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slowing their casting by #SLOWPERCENT#%.";
_local1.buffToolTip = "Slowed";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 314) {
_local1.skillName = "Break Devices";
_local1.castTime = 3;
_local1.cooldown = 40;
_local1.buffTime = 7;
_local1.disabledSkillCategory = 1;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.desc = "A clever arcane spell that breaks your victim's devices, causing them to be non-operational for #BUFFTIME# seconds.";
_local1.buffToolTip = "Broken";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 315) {
_local1.skillName = "Bazooka";
_local1.dmgMin = 60;
_local1.dmgMax = 68;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 590;
_local1.reqLevel = 8;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 8;
_local1.desc = ("A massive steam-powered bazooka mounted on your shoulder that hits for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 316) {
_local1.skillName = "Anvil on Spring";
_local1.dmgMin = 40;
_local1.dmgMax = 40;
_local1.cooldown = 15;
_local1.forSale = true;
_local1.goldCost = 570;
_local1.reqLevel = 8;
_local1.categoryID = 1;
_local1.parentSkillID = 3;
_local1.powerCost = 70;
_local1.powerTypeCost = 1;
_local1.rank = 2;
_local1.interupt = true;
_local1.desc = ("Instantly fire out a steel anvil on a spring, interupting your opponents cast and causing " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 317) {
_local1.skillName = "Robotic Doctor";
_local1.cooldown = 30;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 610;
_local1.reqLevel = 8;
_local1.categoryID = 1;
_local1.parentSkillID = 8;
_local1.dotAmount = 16;
_local1.isDebuff = false;
_local1.powerCost = 75;
_local1.powerTypeCost = 1;
_local1.rank = 2;
_local1.dmgType = 2;
_local1.desc = ("Launches a medium size robotic doctor that heals you for " + Skill.DotHealing(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Robohealing";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 318) {
_local1.skillName = "Boom Stick";
_local1.dmgMin = 68;
_local1.dmgMax = 76;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 800;
_local1.reqLevel = 9;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 9;
_local1.desc = ("THIS is your BOOM stick! Shoot your opponent for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 319) {
_local1.skillName = "Flamethrower v5";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 820;
_local1.reqLevel = 9;
_local1.categoryID = 1;
_local1.parentSkillID = 1;
_local1.dotAmount = -18;
_local1.powerCost = 80;
_local1.powerTypeCost = 1;
_local1.rank = 5;
_local1.dmgType = 1;
_local1.desc = ("This impeccably designed blower engulfs your enemy and probably some nearby fans, in flames for " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "On Fire!";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 320) {
_local1.skillName = "Jade Bionic Arms";
_local1.castTime = 2;
_local1.cooldown = 45;
_local1.buffTime = 30;
_local1.forSale = true;
_local1.goldCost = 780;
_local1.reqLevel = 9;
_local1.categoryID = 1;
_local1.parentSkillID = 7;
_local1.isDebuff = false;
_local1.damageDoneModifier = 26;
_local1.powerCost = 75;
_local1.powerTypeCost = 1;
_local1.rank = 4;
_local1.desc = "Activate jade bionic limbs, increasing your weapon damage by #DMGDONEMOD# points per hit for #BUFFTIME# seconds.";
_local1.buffToolTip = "Bionic";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 321) {
_local1.skillName = "Refill Gas Tank";
_local1.castTime = 3.5;
_local1.cooldown = 18;
_local1.forSale = true;
_local1.goldCost = 790;
_local1.reqLevel = 9;
_local1.categoryID = 1;
_local1.parentSkillID = 2;
_local1.isDebuff = false;
_local1.rank = 4;
_local1.desc = "This enhanced skill enables you to completely refill your gas tank quicker than earlier models and more often.";
_local1.reqClass = 1;
_local1.refillPower = true;
return(_local1);
}
if (skillID == 322) {
_local1.skillName = "Plasma Cannon";
_local1.dmgMin = 76;
_local1.dmgMax = 84;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 1070;
_local1.reqLevel = 10;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 10;
_local1.desc = ("The mother of all guns, this double barrel plasma cannon delivers a whopping " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 323) {
_local1.skillName = "Deadly Groin Kick";
_local1.dmgMin = 90;
_local1.dmgMax = 90;
_local1.castTime = 1.75;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 1100;
_local1.reqLevel = 10;
_local1.categoryID = 2;
_local1.parentSkillID = 4;
_local1.chanceOfStun = 1;
_local1.rank = 3;
_local1.interupt = true;
_local1.desc = ("A deadly kick to the loins, stunning opponent for #BUFFTIME# seconds, and causing " + Skill.DirectDamage(_local1)) + ".";
_local1.buffToolTip = "Puking";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 324) {
_local1.skillName = "Mechanical Horsefly";
_local1.castTime = 2.5;
_local1.cooldown = 30;
_local1.buffTime = 9;
_local1.forSale = true;
_local1.goldCost = 1050;
_local1.reqLevel = 10;
_local1.categoryID = 1;
_local1.parentSkillID = 6;
_local1.dotAmount = -12;
_local1.slowPercent = 1;
_local1.powerCost = 85;
_local1.powerTypeCost = 1;
_local1.rank = 3;
_local1.desc = ("Fires up a giant, mechanical horsefly to annoy your adversary. Does " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slows their casting by #SLOWPERCENT#%.";
_local1.buffToolTip = "Annoyed";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 325) {
_local1.skillName = "Robotic Surgeon";
_local1.cooldown = 25;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 1060;
_local1.reqLevel = 10;
_local1.categoryID = 1;
_local1.parentSkillID = 8;
_local1.dotAmount = 24;
_local1.isDebuff = false;
_local1.powerCost = 90;
_local1.powerTypeCost = 1;
_local1.rank = 3;
_local1.dmgType = 2;
_local1.desc = ("Launches a large robotic surgeon that heals you for " + Skill.DotHealing(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Robohealing";
_local1.reqClass = 1;
return(_local1);
}
if (skillID == 326) {
_local1.skillName = "Mind Dagger";
_local1.dmgMin = 64;
_local1.dmgMax = 72;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 590;
_local1.reqLevel = 8;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 8;
_local1.desc = ("This curious blade creates a psychic link to the enemy's mind, enhancing the pain and causing " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 327) {
_local1.skillName = "Wall of Atoms";
_local1.cooldown = 9;
_local1.buffTime = 1;
_local1.forSale = true;
_local1.goldCost = 610;
_local1.reqLevel = 8;
_local1.categoryID = 3;
_local1.parentSkillID = 10;
_local1.isDebuff = false;
_local1.powerCost = 55;
_local1.powerTypeCost = 2;
_local1.rank = 2;
_local1.dmgType = 3;
_local1.desc = "Vibrate the very air around you, causing a wall of atoms to form an invulnerable shield from all attacks for #BUFFTIME# second. This version has a shorter cooldown.";
_local1.buffToolTip = "Invulnerable";
_local1.immuneDmgType = 10;
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 328) {
_local1.skillName = "Zen Master";
_local1.castTime = 2;
_local1.cooldown = 31;
_local1.buffTime = 20;
_local1.forSale = true;
_local1.goldCost = 570;
_local1.reqLevel = 8;
_local1.categoryID = 2;
_local1.parentSkillID = 14;
_local1.isDebuff = false;
_local1.powerRegen = 22;
_local1.rank = 3;
_local1.desc = "Focus like a true master. Increase your Mana regeneration per second by #POWERREGEN#. This meditative state lasts #BUFFTIME# seconds.";
_local1.buffToolTip = "Concentrating";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 329) {
_local1.skillName = "Divine Hammer";
_local1.dmgMin = 72;
_local1.dmgMax = 80;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 800;
_local1.reqLevel = 9;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 9;
_local1.desc = ("Your magic is not even divine, but damn this hammer hits hard, so why not. Whack your foe for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 330) {
_local1.skillName = "Eternal Torment";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 830;
_local1.reqLevel = 9;
_local1.categoryID = 3;
_local1.parentSkillID = 12;
_local1.dotAmount = -24;
_local1.powerCost = 75;
_local1.powerTypeCost = 2;
_local1.rank = 5;
_local1.dmgType = 3;
_local1.desc = ("Flood your opponent's brain with their most horrific memories and fears, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Tormented";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 331) {
_local1.skillName = "Greater Forget";
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 14;
_local1.forSale = true;
_local1.goldCost = 770;
_local1.reqLevel = 9;
_local1.categoryID = 3;
_local1.parentSkillID = 15;
_local1.powerCost = 75;
_local1.powerTypeCost = 2;
_local1.rank = 2;
_local1.dmgType = 3;
_local1.desc = "Brainwash your opponent for even longer than the previous version of this spell, causing them to forget a skill or spell of your choosing for #BUFFTIME# seconds.";
_local1.buffToolTip = "Forgetful";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 332) {
_local1.skillName = "Mental Nailgun";
_local1.dmgMin = 80;
_local1.dmgMax = 88;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 1070;
_local1.reqLevel = 10;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.rank = 10;
_local1.desc = ("Fire peircing, spear-like, psychic missiles from this bizarre device, striking your opponent for " + Skill.DirectDamage(_local1)) + ".";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 333) {
_local1.skillName = "Psychic Blast v3";
_local1.dmgMin = 110;
_local1.dmgMax = 125;
_local1.castTime = 1.75;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 1100;
_local1.reqLevel = 10;
_local1.categoryID = 3;
_local1.parentSkillID = 9;
_local1.chanceOfStun = 1;
_local1.powerCost = 65;
_local1.powerTypeCost = 2;
_local1.rank = 3;
_local1.dmgType = 3;
_local1.interupt = true;
_local1.desc = ("Blast your opponent with a shock of psychic power, stunning them for #BUFFTIME# seconds and causing " + Skill.DirectDamage(_local1)) + ".";
_local1.buffToolTip = "Stunned";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 334) {
_local1.skillName = "Brain Freeze";
_local1.castTime = 2.5;
_local1.cooldown = 30;
_local1.buffTime = 10;
_local1.forSale = true;
_local1.goldCost = 1040;
_local1.reqLevel = 10;
_local1.categoryID = 3;
_local1.parentSkillID = 13;
_local1.dotAmount = -12;
_local1.slowPercent = 1;
_local1.powerCost = 75;
_local1.powerTypeCost = 2;
_local1.rank = 3;
_local1.dmgType = 3;
_local1.desc = ("Cover your opponent's brain with a solid coat of thick ice, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slows their casting by #SLOWPERCENT#%.";
_local1.buffToolTip = "Slowed";
_local1.reqClass = 2;
return(_local1);
}
if (skillID == 335) {
_local1.skillName = "Master Telepathy";
_local1.castTime = 0.75;
_local1.cooldown = 20;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 1020;
_local1.reqLevel = 10;
_local1.categoryID = 3;
_local1.parentSkillID = 16;
_local1.isDebuff = false;
_local1.powerCost = 55;
_local1.powerTypeCost = 2;
_local1.rank = 2;
_local1.dmgType = 3;
_local1.desc = "Get inside your opponent's head for #BUFFTIME# seconds, even longer than the lesser Telepathy spell! You will PROBABLY be able to predict what he will do next.";
_local1.buffToolTip = "Telepathy";
_local1.reqClass = 2;
_local1.telepathy = true;
return(_local1);
}
if (skillID == 336) {
_local1.skillName = "Mystic Longsword";
_local1.dmgMin = 54;
_local1.dmgMax = 62;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 590;
_local1.reqLevel = 8;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.powerBonus = 5;
_local1.rank = 8;
_local1.desc = ((("This exotic longsword was born in an ancient dwarven forge. Strike down your opponent for " + Skill.DirectDamage(_local1)) + "and gain ") + _local1.powerBonus) + " power.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 337) {
_local1.skillName = "Blinding Jab";
_local1.dmgMin = 24;
_local1.dmgMax = 24;
_local1.cooldown = 9;
_local1.forSale = true;
_local1.goldCost = 570;
_local1.reqLevel = 8;
_local1.categoryID = 2;
_local1.parentSkillID = 20;
_local1.rank = 3;
_local1.desc = ("A blinding jab for " + Skill.DirectDamage(_local1)) + ", spending half your Power. Strike with a jab when an OPENING appears on your opponent and that spent Power converts to damage!";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 338) {
_local1.skillName = "Imp. Reflect Shield";
_local1.castTime = 1;
_local1.cooldown = 33;
_local1.buffTime = 1;
_local1.forSale = true;
_local1.goldCost = 610;
_local1.reqLevel = 8;
_local1.categoryID = 1;
_local1.parentSkillID = 24;
_local1.isDebuff = false;
_local1.rank = 2;
_local1.desc = "Hide behind your shield, reflecting back anything for #BUFFTIME# second. This shield allows you to reflect more often than previous versions.";
_local1.buffToolTip = "Reflecting";
_local1.reflectDmgType = 10;
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 339) {
_local1.skillName = "Runed Falchion";
_local1.dmgMin = 59;
_local1.dmgMax = 67;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 800;
_local1.reqLevel = 9;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.powerBonus = 5;
_local1.rank = 9;
_local1.desc = ((("This short blade is lined with mystic runes that have long since lost their meaning. Strike your opponent for " + Skill.DirectDamage(_local1)) + "and gain ") + _local1.powerBonus) + " power.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 340) {
_local1.skillName = "Deadly Syringe";
_local1.castTime = 3;
_local1.cooldown = 7;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 830;
_local1.reqLevel = 9;
_local1.categoryID = 1;
_local1.parentSkillID = 17;
_local1.dotAmount = -18;
_local1.rank = 5;
_local1.dmgType = 5;
_local1.desc = ("Jab your enemy with a syringe of deadly poison, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Poisoned";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 341) {
_local1.skillName = "Super-mean Taunt";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.buffTime = 6;
_local1.forSale = true;
_local1.goldCost = 770;
_local1.reqLevel = 9;
_local1.categoryID = 2;
_local1.parentSkillID = 22;
_local1.damageDoneModifier = 35;
_local1.damageTakenModifier = 50;
_local1.rank = 3;
_local1.desc = ((("Taunt the opponent, and REALLY get under their skin. Opponent takes " + _local1.damageTakenModifier) + " more damage per hit, and inflicts ") + _local1.damageDoneModifier) + " more damage per hit.";
_local1.buffToolTip = "Taunted";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 342) {
_local1.skillName = "Diamond Blade";
_local1.dmgMin = 64;
_local1.dmgMax = 72;
_local1.castTime = 2;
_local1.cooldown = 3;
_local1.forSale = true;
_local1.goldCost = 1100;
_local1.reqLevel = 10;
_local1.categoryID = 0;
_local1.parentSkillID = 0;
_local1.powerBonus = 5;
_local1.rank = 10;
_local1.desc = ((("This incredible blade is crafted with a wicked, serrated diamond edge. Bloody your opponent for " + Skill.DirectDamage(_local1)) + "and gain ") + _local1.powerBonus) + " power.";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 343) {
_local1.skillName = "Jawbreaker Uppercut";
_local1.dmgMin = 80;
_local1.dmgMax = 80;
_local1.castTime = 2;
_local1.cooldown = 22;
_local1.buffTime = 4;
_local1.forSale = true;
_local1.goldCost = 1150;
_local1.reqLevel = 10;
_local1.categoryID = 2;
_local1.parentSkillID = 18;
_local1.chanceOfStun = 1;
_local1.rank = 3;
_local1.interupt = true;
_local1.desc = ("A jaw-breaking uppercut that delivers " + Skill.DirectDamage(_local1)) + ", PLUS all your current power! Your opponent will be knocked out for #BUFFTIME# seconds.";
_local1.buffToolTip = "KO'ed";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 344) {
_local1.skillName = "Ground Jacks v3";
_local1.castTime = 2.5;
_local1.cooldown = 28;
_local1.buffTime = 11;
_local1.forSale = true;
_local1.goldCost = 1050;
_local1.reqLevel = 10;
_local1.categoryID = 1;
_local1.parentSkillID = 23;
_local1.dotAmount = -12;
_local1.slowPercent = 1;
_local1.rank = 3;
_local1.dmgType = 5;
_local1.desc = ("Toss a giant bag of upgraded poisoned jacks under your opponent's feet, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + " and slowing their casting by #SLOWPERCENT#%.";
_local1.buffToolTip = "Slowed";
_local1.reqClass = 3;
return(_local1);
}
if (skillID == 345) {
_local1.skillName = "Steel Pipe";
_local1.dmgMin = 7;
_local1.dmgMax = 11;
_local1.castTime = 1;
_local1.cooldown = 2;
_local1.desc = ("A small metal pipe that whacks for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 346) {
_local1.skillName = "Right Hook";
_local1.dmgMin = 12;
_local1.dmgMax = 32;
_local1.castTime = 2;
_local1.cooldown = 15;
_local1.buffTime = 3;
_local1.chanceOfStun = 0.3;
_local1.interupt = true;
_local1.desc = ("Crack your opponent with a right hook for " + Skill.DirectDamage(_local1)) + ", interrupting their current action, and having a #CHANCEOFSTUN#% to stun opponent for #BUFFTIME# seconds.";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 347) {
_local1.skillName = "Broken Bottle";
_local1.dmgMin = 12;
_local1.dmgMax = 24;
_local1.castTime = 1;
_local1.cooldown = 5;
_local1.desc = ("A broken bottle of mead that slices for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 348) {
_local1.skillName = "Left Hook";
_local1.dmgMin = 16;
_local1.dmgMax = 25;
_local1.cooldown = 20;
_local1.interupt = true;
_local1.desc = ("A quick left hook that punches instantly for " + Skill.DirectDamage(_local1)) + " and interrupts your opponent's skill.";
return(_local1);
}
if (skillID == 349) {
_local1.skillName = "Cheap Shot";
_local1.castTime = 3;
_local1.cooldown = 27;
_local1.buffTime = 1;
_local1.chanceOfStun = 1;
_local1.interupt = true;
_local1.desc = "Kick your opponent square in the groin, stunning them for #BUFFTIME# seconds.";
_local1.buffToolTip = "Fallen";
return(_local1);
}
if (skillID == 350) {
_local1.skillName = "Dazing Punch";
_local1.castTime = 4;
_local1.cooldown = 37;
_local1.buffTime = 10;
_local1.slowPercent = 0.75;
_local1.desc = "Jab your opponent in the skull, dazing them and slowing their casting by #SLOWPERCENT#% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Slowed";
return(_local1);
}
if (skillID == 351) {
_local1.skillName = "Vomit";
_local1.castTime = 1;
_local1.cooldown = 45;
_local1.buffTime = 3;
_local1.chanceOfStun = 1;
_local1.isDebuff = false;
_local1.desc = "Yuk, too much mead! You wretch uncontrollably for #BUFFTIME# seconds.";
_local1.buffToolTip = "Vomiting";
return(_local1);
}
if (skillID == 352) {
_local1.skillName = "Training Dagger";
_local1.dmgMin = 32;
_local1.dmgMax = 40;
_local1.castTime = 1;
_local1.cooldown = 5;
_local1.desc = ("A small dagger given to Crimson Brothers upon initiation. It does " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 353) {
_local1.skillName = "Telegraphed Trip";
_local1.dmgMin = 50;
_local1.dmgMax = 50;
_local1.castTime = 4;
_local1.cooldown = 30;
_local1.buffTime = 5;
_local1.chanceOfStun = 1;
_local1.interupt = true;
_local1.desc = "Take a wide, slow, loping attempt at tripping your opponent. It's really obvious. If you land your trip, it lasts #BUFFTIME# seconds.";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 354) {
_local1.skillName = "Healing Potion";
_local1.dmgMin = -120;
_local1.dmgMax = -100;
_local1.castTime = 3;
_local1.cooldown = 45;
_local1.isDebuff = false;
_local1.dmgType = 2;
_local1.desc = ("A potion that heals embiber for " + Skill.DirectHealing(_local1)) + ".";
return(_local1);
}
if (skillID == 355) {
_local1.skillName = "Blinding Powder";
_local1.castTime = 1;
_local1.cooldown = 25;
_local1.buffTime = 8;
_local1.chanceOfBlind = 1;
_local1.desc = "Blinds target for #BUFFTIME# seconds, hiding their skill names.";
_local1.buffToolTip = "Blinded";
return(_local1);
}
if (skillID == 356) {
_local1.skillName = "Healing Potion";
_local1.dmgMin = -130;
_local1.dmgMax = -120;
_local1.castTime = 2;
_local1.cooldown = 35;
_local1.isDebuff = false;
_local1.dmgType = 2;
_local1.desc = ("A potion that heals embiber for " + Skill.DirectHealing(_local1)) + ".";
return(_local1);
}
if (skillID == 357) {
_local1.skillName = "Stiletto";
_local1.dmgMin = 32;
_local1.dmgMax = 40;
_local1.castTime = 2;
_local1.cooldown = 2.5;
_local1.desc = ((("A viscious-looking stiletto that does " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage.";
return(_local1);
}
if (skillID == 358) {
_local1.skillName = "Confusing Tumbling";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 6;
_local1.driftSpeed = 3;
_local1.desc = "A series of tumbles that confuses your opponent, dazing them for #BUFFTIME# seconds.";
_local1.buffToolTip = "Dazed";
return(_local1);
}
if (skillID == 359) {
_local1.skillName = "Artful Skewer";
_local1.castTime = 3;
_local1.cooldown = 10;
_local1.buffTime = 6;
_local1.dotAmount = -12;
_local1.desc = ("Eloquently skewer your opponent with precision, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Bleeding";
return(_local1);
}
if (skillID == 360) {
_local1.skillName = "Tirade";
_local1.castTime = 2.5;
_local1.cooldown = 15;
_local1.buffTime = 10;
_local1.slowPercent = -0.8;
_local1.isDebuff = false;
_local1.desc = ("Lose your temper, speeding you up by " + (_local1.slowPercent * -100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Enraged!";
return(_local1);
}
if (skillID == 361) {
_local1.skillName = "Killing Blow";
_local1.dmgMin = 90;
_local1.dmgMax = 90;
_local1.castTime = 4;
_local1.cooldown = 25;
_local1.desc = ("Step in for that killing blow, doing a massive " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 362) {
_local1.skillName = "Massive Axe";
_local1.dmgMin = 55;
_local1.dmgMax = 60;
_local1.castTime = 2;
_local1.cooldown = 4;
_local1.desc = ("A massive axe that does " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 363) {
_local1.skillName = "Blinding Dirt";
_local1.castTime = 2;
_local1.cooldown = 30;
_local1.buffTime = 6;
_local1.chanceOfBlind = 1;
_local1.desc = "Grab a handful of dirt from the ground and fling it in your opponent's eyes, blinding them for #BUFFTIME# seconds, hiding their skill names.";
_local1.buffToolTip = "Blinded";
return(_local1);
}
if (skillID == 364) {
_local1.skillName = "Enrage";
_local1.castTime = 2.5;
_local1.cooldown = 15;
_local1.buffTime = 10;
_local1.slowPercent = -0.65;
_local1.isDebuff = false;
_local1.desc = ("No one takes the Emerald Crown! Get mad and speed up your casting by " + (_local1.slowPercent * -100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Enraged!";
return(_local1);
}
if (skillID == 365) {
_local1.skillName = "Hornbutt";
_local1.dmgMin = 65;
_local1.dmgMax = 65;
_local1.castTime = 2;
_local1.cooldown = 4;
_local1.interupt = true;
_local1.desc = ("Like a headbutt, but with horns, interrupting your opponent's cast and causing " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 366) {
_local1.skillName = "Sweep the leg";
_local1.dmgMin = 86;
_local1.dmgMax = 100;
_local1.castTime = 3;
_local1.cooldown = 45;
_local1.buffTime = 4;
_local1.chanceOfStun = 1;
_local1.interupt = true;
_local1.desc = ("Kick hard at the victim's leg, causing " + Skill.DirectDamage(_local1)) + " and knocking them down for #BUFFTIME# seconds.";
_local1.buffToolTip = "Stunned";
return(_local1);
}
if (skillID == 367) {
_local1.skillName = "Disarm";
_local1.dmgMin = 56;
_local1.dmgMax = 56;
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.disabledSkillCategory = 0;
_local1.desc = "Using your axe, crack your opponent's weapon hard, disarming them for #BUFFTIME# seconds.";
_local1.buffToolTip = "Disarmed";
return(_local1);
}
if (skillID == 368) {
_local1.skillName = "Pillar of Fire";
_local1.dmgMin = 135;
_local1.dmgMax = 145;
_local1.castTime = 4;
_local1.cooldown = 18;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.dmgType = 1;
_local1.desc = ((("Call down a massive pillar of fire that does " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage.";
return(_local1);
}
if (skillID == 369) {
_local1.skillName = "Magic Shield";
_local1.castTime = 1;
_local1.cooldown = 30;
_local1.buffTime = 4;
_local1.isDebuff = false;
_local1.powerCost = 20;
_local1.powerTypeCost = 2;
_local1.desc = "A powerful shield that prevents all stuns and interuptions for #BUFFTIME# seconds.";
_local1.buffToolTip = "No Stun/Int";
_local1.immuneToStun = true;
return(_local1);
}
if (skillID == 370) {
_local1.skillName = "Ray of Force";
_local1.dmgMin = 65;
_local1.dmgMax = 75;
_local1.castTime = 2;
_local1.cooldown = 20;
_local1.powerCost = 40;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = ("Send forth a precise ray of force, hitting for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 371) {
_local1.skillName = "Blinding Light";
_local1.castTime = 2;
_local1.cooldown = 40;
_local1.buffTime = 8;
_local1.chanceOfBlind = 1;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.dmgType = 3;
_local1.desc = "Blinds target for #BUFFTIME# seconds, hiding their skill names.";
_local1.buffToolTip = "Blinded";
return(_local1);
}
if (skillID == 372) {
_local1.skillName = "Magic Mirror";
_local1.castTime = 1;
_local1.cooldown = 20;
_local1.buffTime = 5;
_local1.isDebuff = false;
_local1.powerCost = 60;
_local1.powerTypeCost = 2;
_local1.desc = "Conjure a magic mirror that reflects all spells, skills, and weapon damage back on the attacker for #BUFFTIME# seconds.";
_local1.buffToolTip = "Reflecting";
_local1.reflectDmgType = 10;
return(_local1);
}
if (skillID == 373) {
_local1.skillName = "Forget";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 4;
_local1.disabledSkillCategory = 50;
_local1.powerCost = 20;
_local1.powerTypeCost = 2;
_local1.desc = "Cause your opponent to forget a random skill or spell for #BUFFTIME# seconds.";
_local1.buffToolTip = "Forgetful";
return(_local1);
}
if (skillID == 374) {
_local1.skillName = "Angry Fist";
_local1.dmgMin = 65;
_local1.dmgMax = 75;
_local1.castTime = 1;
_local1.cooldown = 3;
_local1.desc = ((("You hate this guy. What better way to show that than with a big fist that hits for " + _local1.dmgMin) + " to ") + _local1.dmgMax) + " damage.";
return(_local1);
}
if (skillID == 375) {
_local1.skillName = "Deadly Poison";
_local1.dmgMin = 50;
_local1.dmgMax = 50;
_local1.castTime = 2;
_local1.cooldown = 18;
_local1.buffTime = 5;
_local1.dotAmount = -5;
_local1.dmgType = 1;
_local1.desc = ((("Throw a vial of toxic poison at your opponent, hitting for " + Skill.DirectDamage(_local1)) + ", and ") + Skill.DotDamage(_local1.buffTime, _local1.dotAmount)) + ".";
_local1.buffToolTip = "Sizzling";
return(_local1);
}
if (skillID == 376) {
_local1.skillName = "Demoralize";
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.damageDoneModifier = -8;
_local1.desc = ("A verbal assault that demoralizes the victim, weakening their damage by " + (_local1.damageDoneModifier * -1)) + " damage for #BUFFTIME# seconds.";
_local1.buffToolTip = "Weakened";
return(_local1);
}
if (skillID == 377) {
_local1.skillName = "Glowing Axe";
_local1.dmgMin = 32;
_local1.dmgMax = 48;
_local1.castTime = 1;
_local1.cooldown = 5;
_local1.desc = ("A big, magic axe that hits for " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 378) {
_local1.skillName = "Motivate";
_local1.castTime = 2;
_local1.cooldown = 40;
_local1.buffTime = 16;
_local1.slowPercent = -0.5;
_local1.isDebuff = false;
_local1.dmgType = 3;
_local1.desc = ("Get yourself psyched up to collect your bounty! Speed up by " + (_local1.slowPercent * -100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Quickened";
return(_local1);
}
if (skillID == 379) {
_local1.skillName = "Healing Ointment";
_local1.dmgMin = -140;
_local1.dmgMax = -90;
_local1.castTime = 2;
_local1.cooldown = 26;
_local1.isDebuff = false;
_local1.dmgType = 2;
_local1.desc = ("Apply a soothing salve that heals you for " + Skill.DirectHealing(_local1)) + ".";
return(_local1);
}
if (skillID == 380) {
_local1.skillName = "Flip Opponent";
_local1.castTime = 0.3;
_local1.cooldown = 15;
_local1.jumbleSkills = true;
_local1.desc = "Lift your opponent by his neck and flip him mercilessly, causing his skill buttons to scramble.";
return(_local1);
}
if (skillID == 381) {
_local1.skillName = "Throw Opponent";
_local1.castTime = 0.3;
_local1.cooldown = 15;
_local1.jumbleSkills = true;
_local1.desc = "Launch your opponent into the air, causing his skill buttons to scramble.";
return(_local1);
}
if (skillID == 382) {
_local1.skillName = "Knock for a loop";
_local1.castTime = 2;
_local1.cooldown = 12;
_local1.buffTime = 6;
_local1.slowCursor = 8;
_local1.interupt = true;
_local1.desc = "Crack your victim in the skull , making them feel groggy (slow cursor) for #BUFFTIME# seconds. ";
_local1.buffToolTip = "Groggy";
return(_local1);
}
if (skillID == 383) {
_local1.skillName = "Break Limb";
_local1.dmgMin = 90;
_local1.dmgMax = 90;
_local1.castTime = 2;
_local1.cooldown = 12;
_local1.buffTime = 3;
_local1.disabledSkillCategory = 50;
_local1.desc = "Hammer on a random limb, disabling a random skill/spell for #BUFFTIME# seconds.";
_local1.buffToolTip = "Crippled";
return(_local1);
}
if (skillID == 384) {
_local1.skillName = "Double Headbutt";
_local1.dmgMin = 85;
_local1.dmgMax = 90;
_local1.castTime = 1.5;
_local1.cooldown = 8;
_local1.desc = ("Execute your favorite attack, a headbutt with each head, causing " + Skill.DirectDamage(_local1)) + ".";
return(_local1);
}
if (skillID == 385) {
_local1.skillName = "Crush Face";
_local1.castTime = 1.5;
_local1.cooldown = 15;
_local1.buffTime = 6;
_local1.dotAmount = -17;
_local1.desc = "Pick your opponent up by the face with a meaty fist and squeeze, causing " + Skill.DotDamage(_local1.buffTime, _local1.dotAmount);
_local1.buffToolTip = "Crushing";
return(_local1);
}
if (skillID == 386) {
_local1.skillName = "Brutal Flurry";
_local1.dmgMin = 85;
_local1.dmgMax = 100;
_local1.castTime = 2;
_local1.cooldown = 25;
_local1.buffTime = 10;
_local1.slowPercent = 2;
_local1.desc = ((("Assault your enemy with a barrage of wild kicks and punches for " + Skill.DirectDamage(_local1)) + ", and exhausting and slowing them by ") + (_local1.slowPercent * 100)) + "% for #BUFFTIME# seconds.";
_local1.buffToolTip = "Slowed";
return(_local1);
}
};
_local2.skillID = -1;
_local2.skillName = "";
_local2.dmgMin = 0;
_local2.dmgMax = 0;
_local2.castTime = 0;
_local2.cooldown = 0;
_local2.buffTime = 0;
_local2.forSale = false;
_local2.goldCost = 0;
_local2.reqLevel = 0;
_local2.categoryID = -1;
_local2.parentSkillID = -1;
_local2.dotAmount = 0;
_local2.chanceOfStun = 0;
_local2.chanceOfBlind = 0;
_local2.slowPercent = 0;
_local2.disabledSkillCategory = -1;
_local2.isDebuff = true;
_local2.damageDoneModifier = 0;
_local2.manaShield = 0;
_local2.adrenalineRush = 0;
_local2.damageTakenModifier = 0;
_local2.powerBonus = 0;
_local2.syphonPowerAmt = 0;
_local2.syphonPowerType = 0;
_local2.powerRegen = 0;
_local2.jumbleSkills = false;
_local2.hideCastbar = false;
_local2.slowCursor = 0;
_local2.shrinkPercent = 0;
_local2.driftSpeed = 0;
_local2.powerCost = 0;
_local2.powerTypeCost = 0;
_local2.rank = 0;
_local2.dmgType = 0;
_local2.interupt = false;
_local2.desc = "";
_local2.buffToolTip = "";
_local2.iconSymbol = "";
_local2.reflectDmgType = -1;
_local2.removeDmgType = -1;
_local2.immuneDmgType = -1;
_local2.reqClass = 0;
_local2.telepathy = false;
_local2.removeBuff = false;
_local2.immuneToStun = false;
_local2.refillPower = false;
_local2.slow = false;
_local2.driftX = 0;
_local2.driftY = 0;
_local2.homeX = 0;
_local2.homeY = 0;
_local2.onCooldown = false;
_local2.disabledSkillCtr = 0;
_local1.MAX_SKILLS = 600;
ASSetPropFlags(_global.Skill.prototype, null, 1);
#endinitclip
Symbol 848 MovieClip [__Packages.Artifact] Frame 0
class Artifact extends MovieClip
{
var filters;
function Artifact () {
super();
}
function GetIconName() {
var _local2 = ((("artifact" + slotID) + "_") + qualityID) + ".gif";
return(_local2);
}
function GetCost() {
var _local2 = 0;
if (ID == 201) {
_local2 = 0;
} else if (reqLevel == 1) {
_local2 = 30;
} else if (reqLevel == 2) {
_local2 = 55;
} else if (reqLevel == 3) {
_local2 = 90;
} else if (reqLevel == 4) {
_local2 = 170;
} else if (reqLevel == 5) {
_local2 = 270;
} else if (reqLevel == 6) {
_local2 = 360;
} else if (reqLevel == 7) {
_local2 = 500;
} else if (reqLevel == 8) {
_local2 = 650;
} else if (reqLevel == 9) {
_local2 = 860;
} else if (reqLevel == 10) {
_local2 = 1200;
}
if (qualityID == 0) {
_local2 = _local2 * 1;
} else if (qualityID == 1) {
_local2 = _local2 * 1.2;
} else if (qualityID == 2) {
_local2 = _local2 * 1.4;
}
return(Math.round(_local2));
}
static function GetRandomArtifact(maxLevel) {
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _root.artifactArr.length) {
if (((_root.artifactArr[_local2].reqLevel <= maxLevel) && (_root.artifactArr[_local2].reqLevel >= (maxLevel - 1))) && (!_root.p1.HasArtifact(_root.artifactArr[_local2]))) {
_local4.push(_root.artifactArr[_local2]);
}
_local2++;
}
var _local5 = _root.RandRange(0, _local4.length - 1);
return(_local4[_local5]);
}
function SelectMe() {
var _local3 = new flash.filters.GlowFilter(16777215, 0.5, 5, 5, 6, 3, false, false);
var _local2 = new Array();
_local2.push(_local3);
filters = _local2;
isSelected = true;
}
function UnselectMe() {
isSelected = false;
filters = [];
}
static function LoadArtifactArray(a) {
var _local2 = 1;
while (_local2 < (MAX_ARTIFACTS + 1)) {
var _local1 = LoadArtifact(_local2);
if ((_local1.artifactName != "") && (_local1.artifactName != undefined)) {
a.push(_local1);
}
_local2++;
}
}
function GetBonusType(inType) {
if (inType == 0) {
return("direct damage");
}
if (inType == 1) {
return("damage over time (DoT)");
}
return("");
}
function GetDescription() {
var _local2 = "";
var _local3 = "";
if (dmgReduction != 0) {
_local2 = _local2 + ((("Reduces " + GetBonusType(dmgReductionType)) + " by a total of ") + (dmgReduction * -1));
_local2 = _local2 + ". ";
}
if (dmgBonus != 0) {
_local2 = _local2 + ((("Increases " + GetBonusType(dmgBonusType)) + " by a total of ") + dmgBonus);
_local2 = _local2 + ". ";
}
if (stunTimeBonus != 0) {
_local2 = _local2 + (("Increases your offensive stun times by " + stunTimeBonus) + " seconds. ");
}
if (stunTimeReductionPercent != 0) {
_local2 = _local2 + (("Reduces the time you are stunned by " + (stunTimeReductionPercent * -100)) + "%. ");
}
if (stunResistPercent != 0) {
_local2 = _local2 + (("Increases your chance to resist opponent stuns by " + (stunResistPercent * -100)) + "%. ");
}
if (cooldownReductionPercent != 0) {
_local2 = _local2 + (("Decreases all skill/spell cooldown times by " + (cooldownReductionPercent * 100)) + "%. ");
}
if (castTimeSpeedBonus != 0) {
_local2 = _local2 + (("Decreases all skill/spell cast times by " + (castTimeSpeedBonus * 100)) + "%. ");
}
if (driftModSpeed != 0) {
_local2 = _local2 + (("Decreases the drift speed of your skills when dazed by " + (driftModSpeed * -100)) + "%. ");
}
if (blindResistPercent != 0) {
_local2 = _local2 + (("Increases your chance to resist blinding skills/spells by " + (blindResistPercent * -100)) + "%. ");
}
if (blindTimeReductionPercent != 0) {
_local2 = _local2 + (("Reduces the time you are blinded by " + (blindTimeReductionPercent * -100)) + "%. ");
}
if (showStats == 1) {
_local2 = _local2 + "Allows wearer to see the opponent's exact health and power values.";
}
if (ID == 201) {
_local2 = _local2 + "Protects the wearer from most (but not all) of the effects of Death Watch poison.";
}
return(_local2);
}
static function LoadArtifact(aID) {
var _local1 = new Artifact();
_local1.ID = aID;
if (aID == 1) {
_local1.artifactName = "Helm of Power";
_local1.qualityID = 1;
_local1.dmgBonus = 1;
_local1.stunResistPercent = -0.02;
return(_local1);
}
if (aID == 2) {
_local1.artifactName = "Mithril Helm";
_local1.stunResistPercent = -0.02;
return(_local1);
}
if (aID == 3) {
_local1.artifactName = "Silly Chain Coif";
_local1.dmgBonus = 1;
return(_local1);
}
if (aID == 4) {
_local1.artifactName = "Pink, Feathered Hat";
_local1.dmgBonus = 1;
return(_local1);
}
if (aID == 5) {
_local1.artifactName = "Pulsing Chain Cloak";
_local1.slotID = 1;
_local1.dmgReduction = -1;
return(_local1);
}
if (aID == 6) {
_local1.artifactName = "Moth-eaten Cloak of Trash";
_local1.slotID = 1;
_local1.dmgReduction = -1;
return(_local1);
}
if (aID == 7) {
_local1.artifactName = "Silver-lined Cape";
_local1.qualityID = 1;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -2;
return(_local1);
}
if (aID == 8) {
_local1.artifactName = "Happlo's Hope";
_local1.qualityID = 2;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -2;
_local1.stunResistPercent = -0.02;
return(_local1);
}
if (aID == 9) {
_local1.artifactName = "Gloves of Minor Speed";
_local1.slotID = 2;
_local1.castTimeSpeedBonus = 0.02;
return(_local1);
}
if (aID == 10) {
_local1.artifactName = "Ronan's Gauntlets";
_local1.slotID = 2;
_local1.dmgBonus = 1;
return(_local1);
}
if (aID == 11) {
_local1.artifactName = "Worn Leather Grips";
_local1.slotID = 2;
_local1.dmgBonus = 1;
return(_local1);
}
if (aID == 12) {
_local1.artifactName = "Jewel-studded Gloves";
_local1.slotID = 2;
_local1.dmgBonus = 1;
return(_local1);
}
if (aID == 13) {
_local1.artifactName = "Fat Ruby Ring";
_local1.qualityID = 1;
_local1.slotID = 3;
_local1.dmgReduction = -1;
_local1.stunResistPercent = -0.02;
return(_local1);
}
if (aID == 14) {
_local1.artifactName = "Ring of Minor Endurance";
_local1.slotID = 3;
_local1.stunResistPercent = -0.02;
return(_local1);
}
if (aID == 15) {
_local1.artifactName = "Ring of Zeus";
_local1.slotID = 3;
_local1.dmgReduction = -1;
return(_local1);
}
if (aID == 16) {
_local1.artifactName = "Ring of Zero Wishes";
_local1.slotID = 3;
_local1.dmgReduction = -1;
return(_local1);
}
if (aID == 17) {
_local1.artifactName = "Curious Parrot";
_local1.slotID = 4;
_local1.stunResistPercent = -0.01;
_local1.castTimeSpeedBonus = 0.01;
return(_local1);
}
if (aID == 18) {
_local1.artifactName = "Magic Sparkling Dust";
_local1.slotID = 4;
_local1.stunResistPercent = -0.01;
_local1.castTimeSpeedBonus = 0.01;
return(_local1);
}
if (aID == 19) {
_local1.artifactName = "Inscribed Silver Lamp";
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.02;
return(_local1);
}
if (aID == 20) {
_local1.artifactName = "Cateye Crystal";
_local1.qualityID = 1;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.03;
return(_local1);
}
if (aID == 500) {
_local1.artifactName = "Touch of Death";
_local1.reqLevel = 50;
_local1.slotID = 4;
_local1.dmgBonus = 3000;
return(_local1);
}
if (aID == 21) {
_local1.artifactName = "Hat of Dreams";
_local1.reqLevel = 2;
_local1.qualityID = 1;
_local1.dmgBonus = 2;
_local1.stunResistPercent = -0.03;
return(_local1);
}
if (aID == 22) {
_local1.artifactName = "Weathered Wanderer's Cap";
_local1.reqLevel = 2;
_local1.dmgBonus = 2;
return(_local1);
}
if (aID == 23) {
_local1.artifactName = "Jeweled Tiara";
_local1.reqLevel = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 2;
return(_local1);
}
if (aID == 24) {
_local1.artifactName = "Antlers of Myron";
_local1.reqLevel = 2;
_local1.qualityID = 2;
_local1.dmgBonus = 3;
return(_local1);
}
if (aID == 25) {
_local1.artifactName = "Rook's Drape";
_local1.reqLevel = 2;
_local1.qualityID = 1;
_local1.slotID = 1;
_local1.dmgReduction = -2;
_local1.stunTimeReductionPercent = -0.05;
return(_local1);
}
if (aID == 26) {
_local1.artifactName = "Cloak of Defense";
_local1.reqLevel = 2;
_local1.slotID = 1;
_local1.dmgReduction = -2;
return(_local1);
}
if (aID == 27) {
_local1.artifactName = "Fury Mantle";
_local1.reqLevel = 2;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -2;
return(_local1);
}
if (aID == 28) {
_local1.artifactName = "Perfect Silver Cape";
_local1.reqLevel = 2;
_local1.slotID = 1;
_local1.dmgReduction = -2;
return(_local1);
}
if (aID == 29) {
_local1.artifactName = "Mithril Knuckles";
_local1.reqLevel = 2;
_local1.slotID = 2;
_local1.dmgBonus = 2;
return(_local1);
}
if (aID == 30) {
_local1.artifactName = "Jet Black Gauntlets";
_local1.reqLevel = 2;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 2;
return(_local1);
}
if (aID == 31) {
_local1.artifactName = "Heavy Gauntlets of Power";
_local1.reqLevel = 2;
_local1.slotID = 2;
_local1.dmgBonus = 2;
return(_local1);
}
if (aID == 32) {
_local1.artifactName = "Myron's Fists";
_local1.reqLevel = 2;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 2;
return(_local1);
}
if (aID == 33) {
_local1.artifactName = "Ebon Ring of Shadows";
_local1.reqLevel = 2;
_local1.qualityID = 1;
_local1.slotID = 3;
_local1.dmgReduction = -2;
_local1.stunResistPercent = -0.03;
return(_local1);
}
if (aID == 34) {
_local1.artifactName = "Circle of Light";
_local1.reqLevel = 2;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -2;
return(_local1);
}
if (aID == 35) {
_local1.artifactName = "Alchemist's Opal Ring";
_local1.reqLevel = 2;
_local1.slotID = 3;
_local1.dmgReduction = -2;
return(_local1);
}
if (aID == 36) {
_local1.artifactName = "Simple Platinum Ring";
_local1.reqLevel = 2;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -2;
return(_local1);
}
if (aID == 37) {
_local1.artifactName = "Bizarre Pulsing Necklace";
_local1.reqLevel = 2;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.02;
return(_local1);
}
if (aID == 38) {
_local1.artifactName = "Liquid Electricity Injector";
_local1.reqLevel = 2;
_local1.qualityID = 1;
_local1.slotID = 4;
_local1.stunTimeReductionPercent = -0.03;
_local1.castTimeSpeedBonus = 0.03;
return(_local1);
}
if (aID == 39) {
_local1.artifactName = "Hero's Miracle Tonic";
_local1.reqLevel = 2;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.02;
return(_local1);
}
if (aID == 40) {
_local1.artifactName = "Pixie in a Bottle";
_local1.reqLevel = 2;
_local1.qualityID = 2;
_local1.slotID = 4;
_local1.stunTimeReductionPercent = -0.02;
_local1.stunResistPercent = -0.03;
_local1.castTimeSpeedBonus = 0.04;
return(_local1);
}
if (aID == 41) {
_local1.artifactName = "Crown of Rama";
_local1.reqLevel = 3;
_local1.dmgBonus = 3;
return(_local1);
}
if (aID == 42) {
_local1.artifactName = "Goggles of Speed";
_local1.reqLevel = 3;
_local1.qualityID = 1;
_local1.dmgBonus = 3;
_local1.cooldownReductionPercent = 0.02;
return(_local1);
}
if (aID == 43) {
_local1.artifactName = "Circlet of Vision";
_local1.reqLevel = 3;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 3;
_local1.showStats = 1;
return(_local1);
}
if (aID == 44) {
_local1.artifactName = "Helm of the Martyred Prince";
_local1.reqLevel = 3;
_local1.qualityID = 2;
_local1.dmgBonus = 2;
_local1.stunTimeBonus = 1;
return(_local1);
}
if (aID == 45) {
_local1.artifactName = "Titan's Cloak";
_local1.reqLevel = 3;
_local1.slotID = 1;
_local1.dmgReduction = -3;
return(_local1);
}
if (aID == 46) {
_local1.artifactName = "Brilliant Silk Drape";
_local1.reqLevel = 3;
_local1.qualityID = 1;
_local1.slotID = 1;
_local1.dmgReduction = -3;
_local1.cooldownReductionPercent = 0.02;
return(_local1);
}
if (aID == 47) {
_local1.artifactName = "Unicorn-Skin Cape";
_local1.reqLevel = 3;
_local1.slotID = 1;
_local1.dmgReduction = -3;
return(_local1);
}
if (aID == 48) {
_local1.artifactName = "Cloak of the Gods";
_local1.reqLevel = 3;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -3;
return(_local1);
}
if (aID == 49) {
_local1.artifactName = "Gloves of Moloch";
_local1.reqLevel = 3;
_local1.slotID = 2;
_local1.dmgBonus = 3;
return(_local1);
}
if (aID == 50) {
_local1.artifactName = "Mystic Green Handwraps";
_local1.reqLevel = 3;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 3;
return(_local1);
}
if (aID == 51) {
_local1.artifactName = "Gloves of the Great Pilot";
_local1.reqLevel = 3;
_local1.qualityID = 1;
_local1.slotID = 2;
_local1.dmgBonus = 3;
_local1.stunResistPercent = -0.04;
return(_local1);
}
if (aID == 52) {
_local1.artifactName = "Ethereal Gauntlets";
_local1.reqLevel = 3;
_local1.slotID = 2;
_local1.dmgBonus = 3;
return(_local1);
}
if (aID == 53) {
_local1.artifactName = "Ring of Blind Resistance";
_local1.reqLevel = 3;
_local1.qualityID = 1;
_local1.slotID = 3;
_local1.dmgReduction = -3;
_local1.blindResistPercent = -0.15;
return(_local1);
}
if (aID == 54) {
_local1.artifactName = "Wedding Band of Medusa";
_local1.reqLevel = 3;
_local1.slotID = 3;
_local1.dmgReduction = -2;
_local1.driftModSpeed = -0.1;
return(_local1);
}
if (aID == 55) {
_local1.artifactName = "Ring of Emerald Smoke";
_local1.reqLevel = 3;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -3;
return(_local1);
}
if (aID == 56) {
_local1.artifactName = "Ring of Instant Sight";
_local1.reqLevel = 3;
_local1.slotID = 3;
_local1.dmgReduction = -2;
_local1.blindTimeReductionPercent = -0.15;
return(_local1);
}
if (aID == 57) {
_local1.artifactName = "Pendant of the Third Eye";
_local1.reqLevel = 3;
_local1.qualityID = 2;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.05;
_local1.driftModSpeed = -0.2;
return(_local1);
}
if (aID == 58) {
_local1.artifactName = "Stun Booster XL200";
_local1.reqLevel = 3;
_local1.qualityID = 1;
_local1.slotID = 4;
_local1.stunTimeBonus = 1;
return(_local1);
}
if (aID == 59) {
_local1.artifactName = "Vial of Unicorn Blood";
_local1.reqLevel = 3;
_local1.slotID = 4;
_local1.stunTimeReductionPercent = -0.1;
return(_local1);
}
if (aID == 60) {
_local1.artifactName = "Lock of Witch Hair";
_local1.reqLevel = 3;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.04;
return(_local1);
}
if (aID == 61) {
_local1.artifactName = "Crown of Strong Will";
_local1.reqLevel = 4;
_local1.dmgBonus = 4;
return(_local1);
}
if (aID == 62) {
_local1.artifactName = "The Lightning Rod";
_local1.reqLevel = 4;
_local1.qualityID = 1;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 4;
_local1.stunResistPercent = -0.03;
return(_local1);
}
if (aID == 63) {
_local1.artifactName = "Goggles of True Sight";
_local1.reqLevel = 4;
_local1.dmgBonus = 3;
_local1.blindResistPercent = -0.15;
_local1.showStats = 1;
return(_local1);
}
if (aID == 64) {
_local1.artifactName = "Helm of the Black Hand";
_local1.reqLevel = 4;
_local1.dmgBonus = 4;
return(_local1);
}
if (aID == 65) {
_local1.artifactName = "Kutari Spirit Robe";
_local1.reqLevel = 4;
_local1.qualityID = 2;
_local1.slotID = 1;
_local1.dmgReduction = -4;
_local1.driftModSpeed = -0.2;
_local1.blindTimeReductionPercent = -0.2;
return(_local1);
}
if (aID == 66) {
_local1.artifactName = "Shimmering Drape";
_local1.reqLevel = 4;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -4;
return(_local1);
}
if (aID == 67) {
_local1.artifactName = "Mystic Steel-cloth Cape";
_local1.reqLevel = 4;
_local1.slotID = 1;
_local1.dmgReduction = -4;
return(_local1);
}
if (aID == 68) {
_local1.artifactName = "Drape of the Druids";
_local1.reqLevel = 4;
_local1.qualityID = 1;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -4;
_local1.stunTimeReductionPercent = -0.05;
return(_local1);
}
if (aID == 69) {
_local1.artifactName = "Gloves of Might";
_local1.reqLevel = 4;
_local1.slotID = 2;
_local1.dmgBonus = 4;
return(_local1);
}
if (aID == 70) {
_local1.artifactName = "Engineer's Gloves of Strength";
_local1.reqLevel = 4;
_local1.slotID = 2;
_local1.dmgBonus = 4;
return(_local1);
}
if (aID == 71) {
_local1.artifactName = "The Iron Fist";
_local1.reqLevel = 4;
_local1.slotID = 2;
_local1.dmgBonus = 4;
return(_local1);
}
if (aID == 72) {
_local1.artifactName = "Gloves of Many Fingers";
_local1.reqLevel = 4;
_local1.qualityID = 1;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 4;
_local1.cooldownReductionPercent = 0.02;
return(_local1);
}
if (aID == 73) {
_local1.artifactName = "Pulsing Ruby Ring";
_local1.reqLevel = 4;
_local1.slotID = 3;
_local1.dmgReduction = -4;
return(_local1);
}
if (aID == 74) {
_local1.artifactName = "Ring of Clarity";
_local1.reqLevel = 4;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -4;
return(_local1);
}
if (aID == 75) {
_local1.artifactName = "Garok's Bane";
_local1.reqLevel = 4;
_local1.slotID = 3;
_local1.dmgReduction = -3;
_local1.blindResistPercent = -0.05;
return(_local1);
}
if (aID == 76) {
_local1.artifactName = "Skydog's Silver Band";
_local1.reqLevel = 4;
_local1.qualityID = 2;
_local1.slotID = 3;
_local1.dmgReduction = -4;
_local1.stunTimeReductionPercent = -0.08;
_local1.cooldownReductionPercent = 0.01;
return(_local1);
}
if (aID == 77) {
_local1.artifactName = "Zebon's Compass";
_local1.reqLevel = 4;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.05;
return(_local1);
}
if (aID == 78) {
_local1.artifactName = "Shadow Monkey's Tooth";
_local1.reqLevel = 4;
_local1.qualityID = 1;
_local1.slotID = 4;
_local1.cooldownReductionPercent = 0.02;
_local1.castTimeSpeedBonus = 0.05;
return(_local1);
}
if (aID == 79) {
_local1.artifactName = "Steam-powered Eyeballs";
_local1.reqLevel = 4;
_local1.slotID = 4;
_local1.blindTimeReductionPercent = -0.2;
return(_local1);
}
if (aID == 80) {
_local1.artifactName = "The Balancing Stone";
_local1.reqLevel = 4;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.05;
return(_local1);
}
if (aID == 81) {
_local1.artifactName = "Unicorn Helmet";
_local1.reqLevel = 5;
_local1.dmgBonus = 4;
_local1.cooldownReductionPercent = 0.02;
return(_local1);
}
if (aID == 82) {
_local1.artifactName = "Bloodstained Bullhorns";
_local1.reqLevel = 5;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 5;
return(_local1);
}
if (aID == 83) {
_local1.artifactName = "Helm of Insight";
_local1.reqLevel = 5;
_local1.qualityID = 1;
_local1.dmgBonus = 5;
_local1.showStats = 1;
return(_local1);
}
if (aID == 84) {
_local1.artifactName = "Huge, Hollow Sapphire";
_local1.reqLevel = 5;
_local1.dmgBonus = 5;
return(_local1);
}
if (aID == 85) {
_local1.artifactName = "Ivory Dust Cape";
_local1.reqLevel = 5;
_local1.slotID = 1;
_local1.dmgReduction = -4;
_local1.blindResistPercent = -0.05;
return(_local1);
}
if (aID == 86) {
_local1.artifactName = "Cloak of the Fallen";
_local1.reqLevel = 5;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -5;
return(_local1);
}
if (aID == 87) {
_local1.artifactName = "Drape of Mist";
_local1.reqLevel = 5;
_local1.qualityID = 2;
_local1.slotID = 1;
_local1.dmgReduction = -5;
_local1.stunTimeReductionPercent = -0.1;
_local1.stunResistPercent = -0.03;
return(_local1);
}
if (aID == 88) {
_local1.artifactName = "The High Rogue's Cloak";
_local1.reqLevel = 5;
_local1.slotID = 1;
_local1.dmgReduction = -5;
return(_local1);
}
if (aID == 89) {
_local1.artifactName = "Gloves of Fortune";
_local1.reqLevel = 5;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 5;
return(_local1);
}
if (aID == 90) {
_local1.artifactName = "Brolo's Deathgrips";
_local1.reqLevel = 5;
_local1.qualityID = 2;
_local1.slotID = 2;
_local1.dmgBonus = 5;
_local1.stunTimeBonus = 1;
return(_local1);
}
if (aID == 91) {
_local1.artifactName = "Witch's Handwraps";
_local1.reqLevel = 5;
_local1.slotID = 2;
_local1.dmgBonus = 5;
return(_local1);
}
if (aID == 92) {
_local1.artifactName = "Rutherford's Gauntlets";
_local1.reqLevel = 5;
_local1.qualityID = 1;
_local1.slotID = 2;
_local1.dmgReduction = -2;
_local1.dmgBonus = 5;
_local1.driftModSpeed = -0.3;
return(_local1);
}
if (aID == 93) {
_local1.artifactName = "Hoop of the Woods";
_local1.reqLevel = 5;
_local1.qualityID = 1;
_local1.slotID = 3;
_local1.dmgReduction = -5;
_local1.blindTimeReductionPercent = -0.2;
return(_local1);
}
if (aID == 94) {
_local1.artifactName = "Moonstone Band";
_local1.reqLevel = 5;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -5;
return(_local1);
}
if (aID == 95) {
_local1.artifactName = "Ring of Grace";
_local1.reqLevel = 5;
_local1.slotID = 3;
_local1.dmgReduction = -5;
return(_local1);
}
if (aID == 96) {
_local1.artifactName = "Band of Lore";
_local1.reqLevel = 5;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -5;
return(_local1);
}
if (aID == 97) {
_local1.artifactName = "Imp in a Jar";
_local1.reqLevel = 5;
_local1.slotID = 4;
_local1.cooldownReductionPercent = 0.02;
_local1.castTimeSpeedBonus = 0.05;
return(_local1);
}
if (aID == 98) {
_local1.artifactName = "Aged Bat Guano";
_local1.reqLevel = 5;
_local1.qualityID = 1;
_local1.slotID = 4;
_local1.stunTimeReductionPercent = -0.1;
_local1.castTimeSpeedBonus = 0.06;
return(_local1);
}
if (aID == 99) {
_local1.artifactName = "Magic, Silver Mirror";
_local1.reqLevel = 5;
_local1.slotID = 4;
_local1.dmgBonus = 1;
_local1.castTimeSpeedBonus = 0.05;
return(_local1);
}
if (aID == 100) {
_local1.artifactName = "Orb of Essence";
_local1.reqLevel = 5;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.06;
return(_local1);
}
if (aID == 101) {
_local1.artifactName = "Helm of Electra";
_local1.reqLevel = 6;
_local1.qualityID = 1;
_local1.dmgBonus = 6;
_local1.stunResistPercent = -0.05;
return(_local1);
}
if (aID == 102) {
_local1.artifactName = "Adamantite Helm";
_local1.reqLevel = 6;
_local1.stunResistPercent = -0.05;
return(_local1);
}
if (aID == 103) {
_local1.artifactName = "Glowing Chain Coif";
_local1.reqLevel = 6;
_local1.dmgBonus = 6;
return(_local1);
}
if (aID == 104) {
_local1.artifactName = "Jolly Cap";
_local1.reqLevel = 6;
_local1.dmgBonus = 6;
return(_local1);
}
if (aID == 105) {
_local1.artifactName = "Flickering Cloak";
_local1.reqLevel = 6;
_local1.slotID = 1;
_local1.dmgReduction = -6;
return(_local1);
}
if (aID == 106) {
_local1.artifactName = "Amazing Cloak of Wonder";
_local1.reqLevel = 6;
_local1.slotID = 1;
_local1.dmgReduction = -6;
return(_local1);
}
if (aID == 107) {
_local1.artifactName = "Gold-lined Cape";
_local1.reqLevel = 6;
_local1.qualityID = 1;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -6;
return(_local1);
}
if (aID == 108) {
_local1.artifactName = "Cape of the Swampy";
_local1.reqLevel = 6;
_local1.qualityID = 2;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -6;
_local1.stunResistPercent = -0.05;
return(_local1);
}
if (aID == 109) {
_local1.artifactName = "Gloves of Extreme Speed";
_local1.reqLevel = 6;
_local1.slotID = 2;
_local1.castTimeSpeedBonus = 0.05;
return(_local1);
}
if (aID == 110) {
_local1.artifactName = "Johan's Gauntlets";
_local1.reqLevel = 6;
_local1.slotID = 2;
_local1.dmgBonus = 6;
return(_local1);
}
if (aID == 111) {
_local1.artifactName = "Banded Leather Grips";
_local1.reqLevel = 6;
_local1.slotID = 2;
_local1.dmgBonus = 6;
return(_local1);
}
if (aID == 112) {
_local1.artifactName = "Ruby-studded Gloves";
_local1.reqLevel = 6;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 4;
return(_local1);
}
if (aID == 113) {
_local1.artifactName = "Fat Emerald Ring";
_local1.reqLevel = 6;
_local1.qualityID = 1;
_local1.slotID = 3;
_local1.dmgReduction = -6;
_local1.stunResistPercent = -0.05;
return(_local1);
}
if (aID == 114) {
_local1.artifactName = "Ring of Major Endurance";
_local1.reqLevel = 6;
_local1.slotID = 3;
_local1.stunResistPercent = -0.05;
return(_local1);
}
if (aID == 115) {
_local1.artifactName = "Ring of Extreme Awesome";
_local1.reqLevel = 6;
_local1.slotID = 3;
_local1.dmgReduction = -6;
return(_local1);
}
if (aID == 116) {
_local1.artifactName = "Ring of Hope";
_local1.reqLevel = 6;
_local1.slotID = 3;
_local1.dmgReduction = -6;
return(_local1);
}
if (aID == 117) {
_local1.artifactName = "Wist of Angel Hair";
_local1.reqLevel = 6;
_local1.slotID = 4;
_local1.stunResistPercent = -0.05;
_local1.castTimeSpeedBonus = 0.02;
return(_local1);
}
if (aID == 118) {
_local1.artifactName = "Sparkling Guano";
_local1.reqLevel = 6;
_local1.slotID = 4;
_local1.stunResistPercent = -0.05;
_local1.castTimeSpeedBonus = 0.04;
return(_local1);
}
if (aID == 119) {
_local1.artifactName = "Inscribed Monocle";
_local1.reqLevel = 6;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.06;
return(_local1);
}
if (aID == 120) {
_local1.artifactName = "Jumbo Hunk of Jade";
_local1.reqLevel = 6;
_local1.qualityID = 1;
_local1.slotID = 4;
_local1.cooldownReductionPercent = 0.04;
_local1.castTimeSpeedBonus = 0.06;
return(_local1);
}
if (aID == 121) {
_local1.artifactName = "Hat of Smackage";
_local1.reqLevel = 7;
_local1.qualityID = 1;
_local1.dmgBonus = 7;
_local1.stunResistPercent = -0.03;
return(_local1);
}
if (aID == 122) {
_local1.artifactName = "Weathered Boyer's Cap";
_local1.reqLevel = 7;
_local1.dmgBonus = 7;
return(_local1);
}
if (aID == 123) {
_local1.artifactName = "Magnificant Tiara";
_local1.reqLevel = 7;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 7;
return(_local1);
}
if (aID == 124) {
_local1.artifactName = "Horn of the Demon";
_local1.reqLevel = 7;
_local1.qualityID = 2;
_local1.dmgBonus = 8;
_local1.stunTimeBonus = 1;
_local1.showStats = 1;
return(_local1);
}
if (aID == 125) {
_local1.artifactName = "Polyana's Drape";
_local1.reqLevel = 7;
_local1.qualityID = 1;
_local1.slotID = 1;
_local1.dmgReduction = -7;
_local1.stunTimeReductionPercent = -0.08;
return(_local1);
}
if (aID == 126) {
_local1.artifactName = "Cloak of Major Defense";
_local1.reqLevel = 7;
_local1.slotID = 1;
_local1.dmgReduction = -7;
return(_local1);
}
if (aID == 127) {
_local1.artifactName = "Tempered Mantle";
_local1.reqLevel = 7;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -7;
return(_local1);
}
if (aID == 128) {
_local1.artifactName = "Perfect Gold Cape";
_local1.reqLevel = 7;
_local1.slotID = 1;
_local1.dmgReduction = -7;
return(_local1);
}
if (aID == 129) {
_local1.artifactName = "Adamanatite Knuckles";
_local1.reqLevel = 7;
_local1.slotID = 2;
_local1.dmgBonus = 7;
return(_local1);
}
if (aID == 130) {
_local1.artifactName = "Fire Red Gauntlets";
_local1.reqLevel = 7;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 7;
_local1.driftModSpeed = -0.3;
return(_local1);
}
if (aID == 131) {
_local1.artifactName = "Solid Gauntlets of Power";
_local1.reqLevel = 7;
_local1.slotID = 2;
_local1.dmgBonus = 7;
return(_local1);
}
if (aID == 132) {
_local1.artifactName = "Mixie's Fists";
_local1.reqLevel = 7;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 7;
return(_local1);
}
if (aID == 133) {
_local1.artifactName = "Jade Ring of Defense";
_local1.reqLevel = 7;
_local1.qualityID = 1;
_local1.slotID = 3;
_local1.dmgReduction = -7;
_local1.stunResistPercent = -0.08;
return(_local1);
}
if (aID == 134) {
_local1.artifactName = "Circle of Necron";
_local1.reqLevel = 7;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -7;
_local1.driftModSpeed = -0.35;
return(_local1);
}
if (aID == 135) {
_local1.artifactName = "Blacksmith's Jade Ring";
_local1.reqLevel = 7;
_local1.slotID = 3;
_local1.dmgReduction = -7;
return(_local1);
}
if (aID == 136) {
_local1.artifactName = "Ornate Gold Ring";
_local1.reqLevel = 7;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -7;
return(_local1);
}
if (aID == 137) {
_local1.artifactName = "Wonderous Necklace";
_local1.reqLevel = 7;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.06;
return(_local1);
}
if (aID == 138) {
_local1.artifactName = "Pixie Dust Injector";
_local1.reqLevel = 7;
_local1.qualityID = 1;
_local1.slotID = 4;
_local1.stunTimeReductionPercent = -0.06;
_local1.castTimeSpeedBonus = 0.07;
return(_local1);
}
if (aID == 139) {
_local1.artifactName = "Arm of a Newt";
_local1.reqLevel = 7;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.06;
return(_local1);
}
if (aID == 140) {
_local1.artifactName = "The Gypsy Monkey";
_local1.reqLevel = 7;
_local1.qualityID = 2;
_local1.slotID = 4;
_local1.stunTimeReductionPercent = -0.05;
_local1.stunResistPercent = -0.05;
_local1.castTimeSpeedBonus = 0.07;
return(_local1);
}
if (aID == 141) {
_local1.artifactName = "Jade Helmet";
_local1.reqLevel = 8;
_local1.dmgBonus = 8;
return(_local1);
}
if (aID == 142) {
_local1.artifactName = "Goggles of a Gnome";
_local1.reqLevel = 8;
_local1.qualityID = 1;
_local1.dmgBonus = 8;
_local1.blindResistPercent = -0.1;
return(_local1);
}
if (aID == 143) {
_local1.artifactName = "Circlet of Clarity";
_local1.reqLevel = 8;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 8;
return(_local1);
}
if (aID == 144) {
_local1.artifactName = "Crown of Dead Kings";
_local1.reqLevel = 8;
_local1.qualityID = 2;
_local1.dmgBonus = 8;
_local1.stunTimeBonus = 1;
_local1.cooldownReductionPercent = 0.07;
_local1.blindResistPercent = -0.1;
return(_local1);
}
if (aID == 145) {
_local1.artifactName = "Alchemist's Cloak";
_local1.reqLevel = 8;
_local1.slotID = 1;
_local1.dmgReduction = -8;
return(_local1);
}
if (aID == 146) {
_local1.artifactName = "Wonderous Silk Drape";
_local1.reqLevel = 8;
_local1.qualityID = 1;
_local1.slotID = 1;
_local1.dmgReduction = -8;
_local1.cooldownReductionPercent = 0.07;
return(_local1);
}
if (aID == 147) {
_local1.artifactName = "Imp-Skin Cape";
_local1.reqLevel = 8;
_local1.slotID = 1;
_local1.dmgReduction = -8;
return(_local1);
}
if (aID == 148) {
_local1.artifactName = "Cloak of the Mountains";
_local1.reqLevel = 8;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -8;
return(_local1);
}
if (aID == 149) {
_local1.artifactName = "Gloves of Mason";
_local1.reqLevel = 8;
_local1.slotID = 2;
_local1.dmgBonus = 8;
return(_local1);
}
if (aID == 150) {
_local1.artifactName = "Mystic Opal Handwraps";
_local1.reqLevel = 8;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 8;
return(_local1);
}
if (aID == 151) {
_local1.artifactName = "Gloves of the One";
_local1.reqLevel = 8;
_local1.qualityID = 1;
_local1.slotID = 2;
_local1.dmgBonus = 8;
_local1.stunResistPercent = -0.08;
_local1.blindTimeReductionPercent = -0.3;
return(_local1);
}
if (aID == 152) {
_local1.artifactName = "Crystal Gauntlets";
_local1.reqLevel = 8;
_local1.slotID = 2;
_local1.dmgBonus = 8;
return(_local1);
}
if (aID == 153) {
_local1.artifactName = "Ring of Major Blind Resist";
_local1.reqLevel = 8;
_local1.qualityID = 1;
_local1.slotID = 3;
_local1.dmgReduction = -9;
_local1.blindResistPercent = -0.2;
return(_local1);
}
if (aID == 154) {
_local1.artifactName = "Wedding Band of Hera";
_local1.reqLevel = 8;
_local1.slotID = 3;
_local1.dmgReduction = -8;
_local1.driftModSpeed = -0.1;
return(_local1);
}
if (aID == 155) {
_local1.artifactName = "Ring of Gorgans";
_local1.reqLevel = 8;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -9;
return(_local1);
}
if (aID == 156) {
_local1.artifactName = "Ring of Yam";
_local1.reqLevel = 8;
_local1.slotID = 3;
_local1.dmgReduction = -8;
_local1.stunResistPercent = -0.05;
_local1.blindTimeReductionPercent = -0.15;
return(_local1);
}
if (aID == 157) {
_local1.artifactName = "Pendant of the Prince";
_local1.reqLevel = 8;
_local1.qualityID = 2;
_local1.slotID = 4;
_local1.cooldownReductionPercent = 0.07;
_local1.castTimeSpeedBonus = 0.08;
_local1.driftModSpeed = -0.3;
return(_local1);
}
if (aID == 158) {
_local1.artifactName = "Stun Booster XL8000";
_local1.reqLevel = 8;
_local1.qualityID = 1;
_local1.slotID = 4;
_local1.stunTimeBonus = 1;
return(_local1);
}
if (aID == 159) {
_local1.artifactName = "Vial of Goblin Blood";
_local1.reqLevel = 8;
_local1.slotID = 4;
_local1.stunTimeReductionPercent = -0.2;
return(_local1);
}
if (aID == 160) {
_local1.artifactName = "Lock of Lox";
_local1.reqLevel = 8;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.08;
return(_local1);
}
if (aID == 161) {
_local1.artifactName = "Crown of Strong Will";
_local1.reqLevel = 9;
_local1.dmgBonus = 9;
return(_local1);
}
if (aID == 162) {
_local1.artifactName = "The Lightning Rod";
_local1.reqLevel = 9;
_local1.qualityID = 1;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 9;
_local1.stunResistPercent = -0.09;
return(_local1);
}
if (aID == 163) {
_local1.artifactName = "Goggles of True Sight";
_local1.reqLevel = 9;
_local1.dmgBonus = 8;
_local1.blindResistPercent = -0.2;
return(_local1);
}
if (aID == 164) {
_local1.artifactName = "Helm of the Black Hand";
_local1.reqLevel = 9;
_local1.dmgBonus = 9;
return(_local1);
}
if (aID == 165) {
_local1.artifactName = "Gygaxian Cloak";
_local1.reqLevel = 9;
_local1.qualityID = 2;
_local1.slotID = 1;
_local1.dmgReduction = -9;
_local1.driftModSpeed = -0.2;
_local1.blindTimeReductionPercent = -0.2;
return(_local1);
}
if (aID == 166) {
_local1.artifactName = "Translucent Drape";
_local1.reqLevel = 9;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -9;
return(_local1);
}
if (aID == 167) {
_local1.artifactName = "Mystic Bronze-cloth Cape";
_local1.reqLevel = 9;
_local1.slotID = 1;
_local1.dmgReduction = -9;
return(_local1);
}
if (aID == 168) {
_local1.artifactName = "Drape of the High Ones";
_local1.reqLevel = 9;
_local1.qualityID = 1;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -9;
_local1.stunTimeReductionPercent = -0.2;
return(_local1);
}
if (aID == 169) {
_local1.artifactName = "Gloves of Smiting";
_local1.reqLevel = 9;
_local1.slotID = 2;
_local1.dmgBonus = 9;
return(_local1);
}
if (aID == 170) {
_local1.artifactName = "Master's Gloves of Strength";
_local1.reqLevel = 9;
_local1.slotID = 2;
_local1.dmgBonus = 9;
return(_local1);
}
if (aID == 171) {
_local1.artifactName = "Hammer-time Hands";
_local1.reqLevel = 9;
_local1.slotID = 2;
_local1.dmgBonus = 9;
return(_local1);
}
if (aID == 172) {
_local1.artifactName = "Pounders";
_local1.reqLevel = 9;
_local1.qualityID = 1;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 9;
_local1.cooldownReductionPercent = 0.08;
return(_local1);
}
if (aID == 173) {
_local1.artifactName = "Pulsing Sapphire Ring";
_local1.reqLevel = 9;
_local1.slotID = 3;
_local1.dmgReduction = -9;
return(_local1);
}
if (aID == 174) {
_local1.artifactName = "Ring of Glory";
_local1.reqLevel = 9;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -9;
return(_local1);
}
if (aID == 175) {
_local1.artifactName = "Gomar's Bane";
_local1.reqLevel = 9;
_local1.slotID = 3;
_local1.dmgReduction = -8;
_local1.blindResistPercent = -0.08;
return(_local1);
}
if (aID == 176) {
_local1.artifactName = "Killroy's Circle of Doom";
_local1.reqLevel = 9;
_local1.qualityID = 2;
_local1.slotID = 3;
_local1.dmgReduction = -9;
_local1.stunTimeReductionPercent = -0.2;
_local1.cooldownReductionPercent = 0.04;
return(_local1);
}
if (aID == 177) {
_local1.artifactName = "Dragonskin Pendant";
_local1.reqLevel = 9;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.08;
return(_local1);
}
if (aID == 178) {
_local1.artifactName = "Crone's Eye of Newt";
_local1.reqLevel = 9;
_local1.qualityID = 1;
_local1.slotID = 4;
_local1.cooldownReductionPercent = 0.07;
_local1.castTimeSpeedBonus = 0.08;
return(_local1);
}
if (aID == 179) {
_local1.artifactName = "Dead Frog";
_local1.reqLevel = 9;
_local1.slotID = 4;
_local1.blindTimeReductionPercent = -0.3;
return(_local1);
}
if (aID == 180) {
_local1.artifactName = "Corruptor's Bauble";
_local1.reqLevel = 9;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.08;
return(_local1);
}
if (aID == 181) {
_local1.artifactName = "Balrog Helmet";
_local1.reqLevel = 10;
_local1.dmgBonus = 9;
_local1.cooldownReductionPercent = 0.07;
return(_local1);
}
if (aID == 182) {
_local1.artifactName = "Bloodstained Antlers";
_local1.reqLevel = 10;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 10;
return(_local1);
}
if (aID == 183) {
_local1.artifactName = "Helm of the Bold";
_local1.reqLevel = 10;
_local1.qualityID = 1;
_local1.dmgBonus = 10;
_local1.showStats = 1;
return(_local1);
}
if (aID == 184) {
_local1.artifactName = "Huge, Hollow Diamond";
_local1.reqLevel = 10;
_local1.dmgBonus = 10;
return(_local1);
}
if (aID == 185) {
_local1.artifactName = "Diamond Dust Cape";
_local1.reqLevel = 10;
_local1.slotID = 1;
_local1.dmgReduction = -9;
_local1.blindResistPercent = -0.2;
return(_local1);
}
if (aID == 186) {
_local1.artifactName = "Cloak of the Annointed";
_local1.reqLevel = 10;
_local1.slotID = 1;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -10;
return(_local1);
}
if (aID == 187) {
_local1.artifactName = "Heavy's Cloak of Win";
_local1.reqLevel = 10;
_local1.qualityID = 2;
_local1.slotID = 1;
_local1.dmgReduction = -10;
_local1.stunTimeReductionPercent = -0.3;
_local1.stunResistPercent = -0.1;
return(_local1);
}
if (aID == 188) {
_local1.artifactName = "Drape of Fog";
_local1.reqLevel = 10;
_local1.slotID = 1;
_local1.dmgReduction = -10;
return(_local1);
}
if (aID == 189) {
_local1.artifactName = "Gloves of the Brave";
_local1.reqLevel = 10;
_local1.slotID = 2;
_local1.dmgBonusType = 1;
_local1.dmgBonus = 10;
return(_local1);
}
if (aID == 190) {
_local1.artifactName = "Gauntlets of Jinx";
_local1.reqLevel = 10;
_local1.qualityID = 2;
_local1.slotID = 2;
_local1.dmgBonus = 15;
_local1.stunTimeBonus = 1;
_local1.castTimeSpeedBonus = 0.02;
return(_local1);
}
if (aID == 191) {
_local1.artifactName = "Warlock's Handwraps";
_local1.reqLevel = 10;
_local1.slotID = 2;
_local1.dmgBonus = 10;
return(_local1);
}
if (aID == 192) {
_local1.artifactName = "Fierce Bunny Paws";
_local1.reqLevel = 10;
_local1.qualityID = 1;
_local1.slotID = 2;
_local1.dmgReduction = -5;
_local1.dmgBonus = 10;
return(_local1);
}
if (aID == 193) {
_local1.artifactName = "The Precious";
_local1.reqLevel = 10;
_local1.qualityID = 1;
_local1.slotID = 3;
_local1.dmgReduction = -10;
_local1.showStats = 1;
return(_local1);
}
if (aID == 194) {
_local1.artifactName = "Amethyst Band";
_local1.reqLevel = 10;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -10;
return(_local1);
}
if (aID == 195) {
_local1.artifactName = "Ring of Rings";
_local1.reqLevel = 10;
_local1.slotID = 3;
_local1.dmgReduction = -10;
return(_local1);
}
if (aID == 196) {
_local1.artifactName = "Band of Dark Mornings";
_local1.reqLevel = 10;
_local1.slotID = 3;
_local1.dmgReductionType = 1;
_local1.dmgReduction = -10;
return(_local1);
}
if (aID == 197) {
_local1.artifactName = "Sprite in a Jar";
_local1.reqLevel = 10;
_local1.slotID = 4;
_local1.cooldownReductionPercent = 0.05;
_local1.castTimeSpeedBonus = 0.1;
return(_local1);
}
if (aID == 198) {
_local1.artifactName = "Aged Fairy on a Leash";
_local1.reqLevel = 10;
_local1.qualityID = 1;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.15;
return(_local1);
}
if (aID == 199) {
_local1.artifactName = "Eyeball of the Gods";
_local1.reqLevel = 10;
_local1.slotID = 4;
_local1.dmgBonus = 1;
_local1.castTimeSpeedBonus = 0.1;
return(_local1);
}
if (aID == 200) {
_local1.artifactName = "A Rock";
_local1.reqLevel = 10;
_local1.slotID = 4;
_local1.castTimeSpeedBonus = 0.1;
return(_local1);
}
if (aID == 201) {
_local1.artifactName = "Emerald Crown";
_local1.reqLevel = 10;
_local1.qualityID = 2;
return(_local1);
}
}
var ID = -1;
var artifactName = "";
var desc = "";
var reqLevel = 1;
var forSale = true;
var goldCost = 0;
var qualityID = 0;
var slotID = 0;
var dmgReductionType = 0;
var dmgReduction = 0;
var dmgBonusType = 0;
var dmgBonus = 0;
var stunTimeBonus = 0;
var stunTimeReductionPercent = 0;
var stunResistPercent = 0;
var cooldownReductionPercent = 0;
var castTimeSpeedBonus = 0;
var driftModSpeed = 0;
var blindResistPercent = 0;
var blindTimeReductionPercent = 0;
var procRate = 0;
var specialDesc = "";
var showStats = 0;
var isSelected = false;
var equipped = false;
static var MAX_ARTIFACTS = 200;
}
Symbol 849 MovieClip [__Packages.Monster] Frame 0
class Monster
{
function Monster () {
}
static function LoadMonsterArray(a) {
var _local1 = 1;
while (_local1 < (MAX_MONSTERS + 1)) {
a.push(LoadMonster(_local1));
_local1++;
}
}
static function GetRandomMonster(inID) {
var _local4 = -1;
if (inID == undefined) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < _root.monsterArr.length) {
if (_root.monsterArr[_local2].level == _root.p1.level) {
_local3.push(_root.monsterArr[_local2].ID);
}
_local2++;
}
var _local5 = _root.RandRange(0, _local3.length - 1);
_local4 = _local3[_local5];
} else {
_local4 = inID;
}
return(LoadMonster(_local4));
}
static function SetGoldAndExperience(m, bossLevel) {
var _local2 = m.level;
if (bossLevel != undefined) {
_local2 = bossLevel;
}
if (_local2 == 1) {
m.experience = 65;
m.goldMin = 7;
m.goldMax = 13;
} else if (_local2 == 2) {
m.experience = 85;
m.goldMin = 20;
m.goldMax = 25;
} else if (_local2 == 3) {
m.experience = 120;
m.goldMin = 40;
m.goldMax = 45;
} else if (_local2 == 4) {
m.experience = 150;
m.goldMin = 65;
m.goldMax = 70;
} else if (_local2 == 5) {
m.experience = 200;
m.goldMin = 95;
m.goldMax = 110;
} else if (_local2 == 6) {
m.experience = 265;
m.goldMin = 140;
m.goldMax = 155;
} else if (_local2 == 7) {
m.experience = 342;
m.goldMin = 220;
m.goldMax = 226;
} else if (_local2 == 8) {
m.experience = 445;
m.goldMin = 300;
m.goldMax = 315;
} else if (_local2 == 9) {
m.experience = 580;
m.goldMin = 430;
m.goldMax = 445;
} else if (_local2 == 10) {
m.experience = 755;
m.goldMin = 645;
m.goldMax = 660;
}
if (bossLevel != undefined) {
m.experience = 0;
}
}
static function LoadMonster(mID) {
var _local2 = new Monster();
var _local3 = _root.p1.classID;
_local2.portraitID = mID;
_local2.ID = mID;
if (_local2.ID == 1) {
_local2.monsterName = "Goblin Grunt";
_local2.level = 1;
SetGoldAndExperience(_local2);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 140;
_local2.pauseTime = 2000;
_local2.skillIDs = new Array(9, 8);
return(_local2);
}
if (_local2.ID == 2) {
_local2.monsterName = "Goblin Shaman";
_local2.level = 1;
SetGoldAndExperience(_local2);
_local2.power = 120;
_local2.powerType = 2;
_local2.health = 140;
_local2.pauseTime = 2000;
_local2.skillIDs = new Array(10, 19, 18);
return(_local2);
}
if (_local2.ID == 3) {
_local2.monsterName = "Desperate Wretch";
_local2.level = 1;
SetGoldAndExperience(_local2);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 140;
_local2.pauseTime = 2000;
_local2.skillIDs = new Array(22, 21, 20);
return(_local2);
}
if (_local2.ID == 4) {
_local2.monsterName = "Pepe LeTank";
_local2.level = 99;
SetGoldAndExperience(_local2, 1);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 245;
_local2.pauseTime = 2000;
_local2.skillIDs = new Array(23, 26, 24, 25, 27);
return(_local2);
}
if (_local2.ID == 5) {
_local2.monsterName = "Seedy Bandit";
_local2.level = 2;
SetGoldAndExperience(_local2);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 210;
_local2.pauseTime = 500;
_local2.skillIDs = new Array(29, 30, 107, 28);
return(_local2);
}
if (_local2.ID == 6) {
_local2.monsterName = "Apprentice Psionic";
_local2.level = 2;
SetGoldAndExperience(_local2);
_local2.power = 400;
_local2.powerType = 2;
_local2.health = 270;
_local2.pauseTime = 1500;
_local2.skillIDs = new Array(32, 33, 31, 97);
return(_local2);
}
if (_local2.ID == 7) {
_local2.monsterName = "Human Biotech";
_local2.level = 2;
SetGoldAndExperience(_local2);
_local2.power = 80;
_local2.powerType = 1;
_local2.health = 260;
_local2.pauseTime = 1500;
if (_local3 == 1) {
_local2.skillIDs = new Array(36, 35, 34);
} else if (_local3 == 2) {
_local2.skillIDs = new Array(36, 123, 34);
} else {
_local2.skillIDs = new Array(36, 146, 34);
}
return(_local2);
}
if (_local2.ID == 8) {
_local2.monsterName = "Master Psionic Belzar";
_local2.level = 99;
SetGoldAndExperience(_local2, 2);
_local2.power = 400;
_local2.powerType = 2;
_local2.health = 360;
_local2.pauseTime = 1500;
_local2.skillIDs = new Array(41, 37, 40, 39, 38);
return(_local2);
}
if (_local2.ID == 9) {
_local2.monsterName = "Minotaur";
_local2.level = 3;
SetGoldAndExperience(_local2);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 330;
_local2.pauseTime = 1250;
_local2.skillIDs = new Array(49, 48, 50, 51, 47);
return(_local2);
}
if (_local2.ID == 10) {
_local2.monsterName = "Evil Alchemist";
_local2.level = 3;
SetGoldAndExperience(_local2);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 350;
_local2.pauseTime = 1250;
_local2.skillIDs = new Array(46, 45, 43, 42, 44);
return(_local2);
}
if (_local2.ID == 11) {
_local2.monsterName = "Rufuss, Master Swordsman";
_local2.level = 99;
SetGoldAndExperience(_local2, 3);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 400;
_local2.pauseTime = 1250;
if (_local3 != 3) {
_local2.skillIDs = new Array(55, 57, 52, 54, 56, 53);
} else {
_local2.skillIDs = new Array(150, 57, 52, 54, 56, 53);
}
return(_local2);
}
if (_local2.ID == 12) {
_local2.monsterName = "Human Paladin";
_local2.level = 4;
SetGoldAndExperience(_local2);
_local2.power = 400;
_local2.powerType = 2;
_local2.health = 370;
_local2.pauseTime = 1000;
_local2.skillIDs = new Array(62, 64, 61, 63, 65, 60);
return(_local2);
}
if (_local2.ID == 13) {
_local2.monsterName = "Black Pudding";
_local2.level = 4;
SetGoldAndExperience(_local2);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 440;
_local2.pauseTime = 1000;
if (_local3 == 1) {
_local2.skillIDs = new Array(66, 70, 72, 67, 68, 69, 71);
} else if (_local3 == 2) {
_local2.skillIDs = new Array(127, 70, 126, 67, 68, 69, 71);
} else {
_local2.skillIDs = new Array(66, 70, 147, 67, 68, 69, 71);
}
return(_local2);
}
if (_local2.ID == 14) {
_local2.monsterName = "Nik'nak the Wisened";
_local2.level = 99;
SetGoldAndExperience(_local2, 4);
_local2.power = 720;
_local2.powerType = 2;
_local2.health = 630;
_local2.pauseTime = 1000;
_local2.skillIDs = new Array(75, 76, 77, 78, 74, 73, 80);
return(_local2);
}
if (_local2.ID == 15) {
_local2.monsterName = "Wraith";
_local2.level = 5;
SetGoldAndExperience(_local2);
_local2.power = 480;
_local2.powerType = 2;
_local2.health = 390;
_local2.pauseTime = 1000;
if (_local3 == 1) {
_local2.skillIDs = new Array(82, 83, 81, 79, 98);
} else if (_local3 == 2) {
_local2.skillIDs = new Array(82, 83, 128, 79, 98);
} else {
_local2.skillIDs = new Array(82, 83, 81, 79, 98);
}
return(_local2);
}
if (_local2.ID == 16) {
_local2.monsterName = "Ancient Mariner";
_local2.level = 5;
SetGoldAndExperience(_local2);
_local2.power = 280;
_local2.powerType = 1;
_local2.health = 480;
_local2.pauseTime = 1000;
if (_local3 == 1) {
_local2.skillIDs = new Array(85, 86, 89, 88, 87, 84);
} else if (_local3 == 2) {
_local2.skillIDs = new Array(85, 86, 124, 88, 87, 84);
} else {
_local2.skillIDs = new Array(85, 86, 148, 88, 87, 84);
}
return(_local2);
}
if (_local2.ID == 17) {
_local2.monsterName = "Arena-Grinder XT9000";
_local2.level = 99;
SetGoldAndExperience(_local2, 5);
_local2.power = 1200;
_local2.powerType = 1;
_local2.health = 560;
_local2.pauseTime = 900;
_local2.skillIDs = new Array(95, 94, 90, 92, 93, 91);
return(_local2);
}
if (_local2.ID == 18) {
_local2.monsterName = "Skeletal Psionic";
_local2.level = 6;
SetGoldAndExperience(_local2);
_local2.power = 480;
_local2.powerType = 2;
_local2.health = 650;
_local2.pauseTime = 800;
_local2.regenRate = 3;
_local2.skillIDs = new Array(151, 155, 152, 153, 154, 156);
return(_local2);
}
if (_local2.ID == 19) {
_local2.monsterName = "Ogre";
_local2.level = 6;
SetGoldAndExperience(_local2);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 850;
_local2.pauseTime = 800;
_local2.skillIDs = new Array(161, 162, 163, 166, 165, 164);
return(_local2);
}
if (_local2.ID == 20) {
_local2.monsterName = "Jingles, Jester Prince";
_local2.level = 99;
SetGoldAndExperience(_local2, 6);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 1050;
_local2.pauseTime = 700;
_local2.skillIDs = new Array(171, 167, 168, 172, 173, 170, 169);
return(_local2);
}
if (_local2.ID == 21) {
_local2.monsterName = "Zombie Cleric Anomoly";
_local2.level = 7;
SetGoldAndExperience(_local2);
_local2.power = 800;
_local2.powerType = 2;
_local2.health = 850;
_local2.pauseTime = 600;
_local2.regenRate = 3;
_local2.skillIDs = new Array(178, 174, 177, 176, 175, 179, 180, 181, 182);
return(_local2);
}
if (_local2.ID == 22) {
_local2.monsterName = "TechnoTroll";
_local2.level = 7;
SetGoldAndExperience(_local2);
_local2.power = 600;
_local2.powerType = 1;
_local2.health = 850;
_local2.pauseTime = 600;
_local2.skillIDs = new Array(190, 187, 188, 189, 185, 183, 184, 186);
return(_local2);
}
if (_local2.ID == 23) {
_local2.monsterName = "Slog, Grog's Big Brother";
_local2.level = 99;
SetGoldAndExperience(_local2, 7);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 900;
_local2.pauseTime = 500;
_local2.skillIDs = new Array(197, 191, 196, 192, 194, 195, 193);
return(_local2);
}
if (_local2.ID == 24) {
_local2.monsterName = "Crafty Mage";
_local2.level = 8;
SetGoldAndExperience(_local2);
_local2.power = 550;
_local2.powerType = 2;
_local2.health = 950;
_local2.pauseTime = 400;
_local2.regenRate = 3;
_local2.skillIDs = new Array(203, 200, 204, 199, 201, 202, 198);
return(_local2);
}
if (_local2.ID == 25) {
_local2.monsterName = "Automaton 6000";
_local2.level = 8;
SetGoldAndExperience(_local2);
_local2.power = 600;
_local2.powerType = 1;
_local2.health = 900;
_local2.pauseTime = 400;
_local2.skillIDs = new Array(211, 207, 208, 209, 210, 206, 205);
return(_local2);
}
if (_local2.ID == 26) {
_local2.monsterName = "Medusa";
_local2.level = 99;
SetGoldAndExperience(_local2, 8);
_local2.power = 600;
_local2.powerType = 2;
_local2.health = 1000;
_local2.pauseTime = 300;
_local2.regenRate = 5;
_local2.skillIDs = new Array(214, 217, 218, 219, 215, 212, 213, 221, 220);
return(_local2);
}
if (_local2.ID == 27) {
_local2.monsterName = "Chimera";
_local2.level = 9;
SetGoldAndExperience(_local2);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 600;
_local2.pauseTime = 200;
_local2.skillIDs = new Array(222, 227, 226, 224, 225, 228, 223);
return(_local2);
}
if (_local2.ID == 28) {
_local2.monsterName = "Killer Bunny";
_local2.level = 9;
SetGoldAndExperience(_local2);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 1200;
_local2.pauseTime = 200;
_local2.skillIDs = new Array(234, 236, 237, 238, 232, 233, 231, 230, 229, 235);
return(_local2);
}
if (_local2.ID == 29) {
_local2.monsterName = "Jasper, Lich Baron";
_local2.level = 99;
SetGoldAndExperience(_local2, 9);
_local2.power = 800;
_local2.powerType = 2;
_local2.health = 1670;
_local2.pauseTime = 200;
_local2.regenRate = 4;
_local2.skillIDs = new Array(247, 243, 239, 246, 240, 245, 241);
return(_local2);
}
if (_local2.ID == 30) {
_local2.monsterName = "Dragonbreed";
_local2.level = 10;
SetGoldAndExperience(_local2);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 1400;
_local2.pauseTime = 200;
_local2.skillIDs = new Array(254, 251, 253, 248, 250, 249, 252, 256, 255);
return(_local2);
}
if (_local2.ID == 31) {
_local2.monsterName = "Greater Demon";
_local2.level = 10;
SetGoldAndExperience(_local2);
_local2.power = 500;
_local2.powerType = 2;
_local2.health = 1200;
_local2.pauseTime = 200;
_local2.regenRate = 7;
_local2.skillIDs = new Array(258, 265, 262, 264, 257, 259, 261, 263, 260);
return(_local2);
}
if (_local2.ID == 32) {
_local2.monsterName = "Arena Master Krax";
_local2.level = 99;
SetGoldAndExperience(_local2, 10);
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 1700;
_local2.pauseTime = 150;
if (_local3 == 1) {
_local2.skillIDs = new Array(99, 106, 102, 101, 103, 104, 105, 100);
} else if (_local3 == 2) {
_local2.skillIDs = new Array(99, 106, 129, 101, 103, 104, 105, 100);
} else {
_local2.skillIDs = new Array(99, 106, 149, 101, 103, 104, 105, 100);
}
return(_local2);
}
if (_local2.ID == 33) {
_local2.monsterName = "Dirty Thug";
_local2.level = -1;
_local2.goldMin = 5;
_local2.goldMax = 5;
_local2.experience = 20;
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 140;
_local2.pauseTime = 2000;
_local2.portraitID = 3;
_local2.skillIDs = new Array(346, 345);
return(_local2);
}
if (_local2.ID == 34) {
_local2.monsterName = "Harney, Town Drunk";
_local2.level = -1;
_local2.goldMin = 15;
_local2.goldMax = 20;
_local2.experience = 85;
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 190;
_local2.pauseTime = 2000;
_local2.portraitID = 3;
_local2.skillIDs = new Array(350, 348, 347, 351, 349);
return(_local2);
}
if (_local2.ID == 35) {
_local2.monsterName = "Trent, Crimson Brother";
_local2.level = -1;
_local2.goldMin = 15;
_local2.goldMax = 15;
_local2.experience = 25;
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 350;
_local2.pauseTime = 900;
_local2.portraitID = 5;
_local2.skillIDs = new Array(354, 355, 353, 352);
return(_local2);
}
if (_local2.ID == 36) {
_local2.monsterName = "Anya, Guild Mandrake";
_local2.level = -1;
_local2.goldMin = 190;
_local2.goldMax = 190;
_local2.experience = 200;
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 600;
_local2.pauseTime = 900;
_local2.portraitID = 9004;
_local2.skillIDs = new Array(356, 361, 358, 359, 360, 357);
return(_local2);
}
if (_local2.ID == 37) {
_local2.monsterName = "Shimshank";
_local2.level = -1;
_local2.experience = 445;
_local2.goldMin = 335;
_local2.goldMax = 350;
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 900;
_local2.pauseTime = 400;
_local2.portraitID = 9;
_local2.skillIDs = new Array(362, 363, 364, 367, 366, 365);
return(_local2);
}
if (_local2.ID == 38) {
_local2.monsterName = "Grog, Arena Overseer";
_local2.level = -1;
_local2.experience = 350;
_local2.goldMin = 462;
_local2.goldMax = 462;
_local2.power = 720;
_local2.powerType = 2;
_local2.health = 1100;
_local2.pauseTime = 200;
_local2.portraitID = 9002;
_local2.regenRate = 5;
_local2.skillIDs = new Array(370, 371, 372, 373, 369, 368, 374);
return(_local2);
}
if (_local2.ID == 39) {
_local2.monsterName = "Gok, Disgruntled Ogre";
_local2.level = -1;
_local2.experience = 350;
_local2.goldMin = 335;
_local2.goldMax = 350;
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 900;
_local2.pauseTime = 400;
_local2.portraitID = 9003;
_local2.skillIDs = new Array(386, 380, 385, 381, 383, 384, 382);
return(_local2);
}
if (_local2.ID == 40) {
_local2.monsterName = "Fizzle, Hired Mercenary";
_local2.level = -1;
_local2.experience = 150;
_local2.goldMin = 100;
_local2.goldMax = 102;
_local2.power = 0;
_local2.powerType = 0;
_local2.health = 350;
_local2.pauseTime = 1250;
_local2.portraitID = 9011;
_local2.skillIDs = new Array(379, 378, 376, 375, 377);
return(_local2);
}
}
var monsterName = "";
var ID = 0;
var level = 0;
var experience = 0;
var goldMin = 0;
var goldMax = 0;
var power = 0;
var powerType = 0;
var health = 0;
var pauseTime = 0;
var portraitID = -1;
static var MAX_MONSTERS = 100;
var regenRate = 0;
}
Symbol 850 MovieClip [__Packages.Level] Frame 0
class Level
{
function Level () {
}
static function GetLevel(levelID, classID) {
var _local1 = new Level();
if (levelID == 1) {
if (classID == 1) {
_local1.hpBonus = 200;
_local1.powerBonus = 120;
_local1.expForLevel = 0;
} else if (classID == 2) {
_local1.hpBonus = 200;
_local1.powerBonus = 120;
_local1.expForLevel = 0;
} else if (classID == 3) {
_local1.hpBonus = 200;
_local1.powerBonus = 35;
_local1.expForLevel = 0;
}
} else if (levelID == 2) {
if (classID == 1) {
_local1.hpBonus = 40;
_local1.powerBonus = 40;
_local1.expForLevel = 300;
} else if (classID == 2) {
_local1.hpBonus = 40;
_local1.powerBonus = 40;
_local1.expForLevel = 300;
} else if (classID == 3) {
_local1.hpBonus = 40;
_local1.powerBonus = 5;
_local1.expForLevel = 300;
}
} else if (levelID == 3) {
if (classID == 1) {
_local1.hpBonus = 60;
_local1.powerBonus = 40;
_local1.expForLevel = 400;
} else if (classID == 2) {
_local1.hpBonus = 40;
_local1.powerBonus = 60;
_local1.expForLevel = 400;
} else if (classID == 3) {
_local1.hpBonus = 60;
_local1.powerBonus = 5;
_local1.expForLevel = 400;
}
} else if (levelID == 4) {
if (classID == 1) {
_local1.hpBonus = 60;
_local1.powerBonus = 40;
_local1.expForLevel = 600;
} else if (classID == 2) {
_local1.hpBonus = 40;
_local1.powerBonus = 60;
_local1.expForLevel = 600;
} else if (classID == 3) {
_local1.hpBonus = 60;
_local1.powerBonus = 5;
_local1.expForLevel = 600;
}
} else if (levelID == 5) {
if (classID == 1) {
_local1.hpBonus = 60;
_local1.powerBonus = 40;
_local1.expForLevel = 800;
} else if (classID == 2) {
_local1.hpBonus = 40;
_local1.powerBonus = 60;
_local1.expForLevel = 800;
} else if (classID == 3) {
_local1.hpBonus = 60;
_local1.powerBonus = 8;
_local1.expForLevel = 800;
}
} else if (levelID == 6) {
if (classID == 1) {
_local1.hpBonus = 60;
_local1.powerBonus = 40;
_local1.expForLevel = 1000;
} else if (classID == 2) {
_local1.hpBonus = 40;
_local1.powerBonus = 60;
_local1.expForLevel = 1000;
} else if (classID == 3) {
_local1.hpBonus = 60;
_local1.powerBonus = 8;
_local1.expForLevel = 1000;
}
} else if (levelID == 7) {
if (classID == 1) {
_local1.hpBonus = 60;
_local1.powerBonus = 40;
} else if (classID == 2) {
_local1.hpBonus = 40;
_local1.powerBonus = 60;
} else if (classID == 3) {
_local1.hpBonus = 60;
_local1.powerBonus = 8;
}
_local1.expForLevel = 1300;
} else if (levelID == 8) {
if (classID == 1) {
_local1.hpBonus = 60;
_local1.powerBonus = 40;
} else if (classID == 2) {
_local1.hpBonus = 40;
_local1.powerBonus = 60;
} else if (classID == 3) {
_local1.hpBonus = 60;
_local1.powerBonus = 12;
}
_local1.expForLevel = 1600;
} else if (levelID == 9) {
if (classID == 1) {
_local1.hpBonus = 60;
_local1.powerBonus = 40;
} else if (classID == 2) {
_local1.hpBonus = 40;
_local1.powerBonus = 60;
} else if (classID == 3) {
_local1.hpBonus = 60;
_local1.powerBonus = 12;
}
_local1.expForLevel = 1900;
} else if (levelID == 10) {
if (classID == 1) {
_local1.hpBonus = 60;
_local1.powerBonus = 40;
} else if (classID == 2) {
_local1.hpBonus = 40;
_local1.powerBonus = 60;
} else if (classID == 3) {
_local1.hpBonus = 60;
_local1.powerBonus = 12;
}
_local1.expForLevel = 2300;
} else if (levelID == 11) {
if (classID == 1) {
_local1.hpBonus = 60;
_local1.powerBonus = 40;
} else if (classID == 2) {
_local1.hpBonus = 40;
_local1.powerBonus = 60;
} else if (classID == 3) {
_local1.hpBonus = 60;
_local1.powerBonus = 12;
}
_local1.expForLevel = 2700;
}
return(_local1);
}
var hpBonus = 0;
var powerBonus = 0;
var expForLevel = 0;
}
Symbol 851 MovieClip [__Packages.Buff] Frame 0
class Buff
{
var disabledSkillArr;
function Buff () {
disabledSkillArr = new Array();
}
var buffName = "";
var buffTime = 0;
var buffTimeTotal = 0;
var stun = false;
var blind = false;
var dotAmountType = 0;
var skill = null;
var mcRef = null;
var damageAbsorbed = 0;
var damageAbsorbedTotal = 0;
var bonusDamage = 0;
var bonusDamageTotal = 0;
}
Symbol 852 MovieClip [__Packages.Event] Frame 0
class Event
{
var mcOptions, mc;
function Event () {
mcOptions = new Array();
reqMilestones = new Array();
}
function StartEvent() {
ShowEventCoverup();
DialoguePrimer();
DrawDialogue();
if (!usesHealthbar) {
mc.questHealth._visible = false;
}
}
static function ShowEventCoverup() {
if (_root.battleCoverupMC != undefined) {
_root.battleCoverupMC._alpha = 50;
} else if (_root.mcTransition != undefined) {
_root.mcTransition._alpha = 50;
} else {
_root.attachMovie("mcTransition", "mcTransition", 40000, {_x:0, _y:0});
_root.mcTransition.enabled = false;
_root.mcTransition._alpha = 50;
}
}
function DialoguePrimer() {
mc = _root.attachMovie("dialogue", "mcDialogue", 40100, {_x:83, _y:71});
var _local4 = new flash.filters.DropShadowFilter(5, 45, 0, 0.7, 5, 5, 3, 1, false, false, false);
var _local3 = mc.filters;
_local3.push(_local4);
mc.filters = _local3;
}
function DrawDialogue() {
var _local6 = currentDialogue.dialogueText;
_local6 = _root.searchAndReplace(_local6, "%n", _root.p1.playerName);
_local6 = _root.searchAndReplace(_local6, "%c", _root.p1.ClassName());
if (tutorial == true) {
mc.btnDisableTutorial._visible = true;
} else {
mc.btnDisableTutorial._visible = false;
}
var _local18 = true;
var _local11 = true;
while (_local18) {
if (_local6.indexOf("@") != -1) {
if (_local11) {
_local6 = _root.searchAndReplaceSingle(_local6, "@", "<font size='12' color='#0000FF'>*");
} else {
_local6 = _root.searchAndReplaceSingle(_local6, "@", "*</font>");
}
_local11 = !_local11;
} else {
_local18 = false;
}
}
_local18 = true;
_local11 = true;
while (_local18) {
if (_local6.indexOf("~") != -1) {
if (_local11) {
_local6 = _root.searchAndReplaceSingle(_local6, "~", "<font size='12' color='#0000ff'>");
} else {
_local6 = _root.searchAndReplaceSingle(_local6, "~", "</font>");
}
_local11 = !_local11;
} else {
_local18 = false;
}
}
mc.dialogueText.html = true;
mc.dialogueText.htmlText = _local6;
mc.speakerName.text = currentDialogue.speakerName;
mc.speakerTitle.text = currentDialogue.speakerTitle;
var _local25;
var _local26;
_local26 = flash.display.BitmapData.loadBitmap("portrait" + currentDialogue.portraitID);
_local25 = mc.createEmptyMovieClip("mc", 40101);
_local25._x = -3;
_local25._y = 12;
_local25.attachBitmap(_local26, 40102);
var _local4 = 0;
while (_local4 < mcOptions.length) {
mcOptions[_local4].removeMovieClip();
_local4++;
}
mcOptions = new Array();
var _local20 = new Array();
_local4 = 0;
while (_local4 < currentDialogue.dialogueOptions.length) {
_local20.push(currentDialogue.dialogueOptions[_local4].optionText);
_local4++;
}
if (currentDialogue.randomizeOptions) {
currentDialogue.dialogueOptions.sort(_root.RandomizeSort);
}
var ownerEvent = this;
_local4 = 0;
while (_local4 < currentDialogue.dialogueOptions.length) {
var _local3 = currentDialogue.dialogueOptions[_local4];
if (_local3.optionType == 0) {
var _local8 = mc.attachMovie("btnDialogue", "dOption" + _local4, 40110 + _local4, {whichOption:_local4, _x:170, _y:210 + (_local4 * 35)});
_local8.onRollOver = function () {
this.gotoAndStop("over");
};
_local8.onRollOut = function () {
this.gotoAndStop("up");
};
_local8.onReleaseOutside = function () {
this.gotoAndStop("up");
};
_local8.onPress = function () {
_root.PlaySound(4);
this.gotoAndStop("down");
};
mcOptions.push(_local8);
_local8.optionText.text = _local20[_local4];
var _local7 = " [";
if (_local3.costGold != 0) {
if (_local3.costGold > _root.p1.gold) {
_local8.enabled = false;
_local8.gotoAndStop(4);
_local7 = _local7 + "Not enough Gold!, ";
var _local19 = new TextFormat();
_local19.color = 6710886 /* 0x666666 */;
_local8.optionText.setTextFormat(_local19);
} else {
var _local13 = "";
if ((_local3.costGold * -1) > 0) {
_local13 = "+" + (_local3.costGold * -1);
} else {
_local13 = "" + (_local3.costGold * -1);
}
_local7 = _local7 + (("" + _local13) + " Gold, ");
}
}
if (_local3.costRunes != 0) {
var _local17 = "";
if (Math.abs(_local3.costRunes) > 1) {
_local17 = "s";
}
if (_local3.costRunes > _root.p1.runes) {
_local8.enabled = false;
_local8.gotoAndStop(4);
_local7 = _local7 + (("Not enough Rune" + _local17) + ", ");
var _local19 = new TextFormat();
_local19.color = 6710886 /* 0x666666 */;
_local8.optionText.setTextFormat(_local19);
} else {
var _local13 = "";
if ((_local3.costRunes * -1) > 0) {
_local13 = "+" + (_local3.costRunes * -1);
} else {
_local13 = "" + (_local3.costRunes * -1);
}
_local7 = _local7 + (((("" + _local13) + " Rune") + _local17) + ", ");
}
}
if (_local3.costExp != 0) {
if (_local3.costExp > _root.p1.experience) {
_local8.enabled = false;
_local8.gotoAndStop(4);
_local7 = _local7 + "Not enough Exp!, ";
var _local19 = new TextFormat();
_local19.color = 6710886 /* 0x666666 */;
_local8.optionText.setTextFormat(_local19);
} else {
var _local13 = "";
if ((_local3.costExp * -1) > 0) {
_local13 = "+" + (_local3.costExp * -1);
} else {
_local13 = "" + (_local3.costExp * -1);
}
_local7 = _local7 + (("" + _local13) + " Exp, ");
}
}
if (_local7 != " [") {
_local8.optionText.text = _local8.optionText.text + _local7;
_local8.optionText.text = _local8.optionText.text.substr(0, _local8.optionText.text.length - 2) + "]";
}
if (_local3.dialogueID != -1) {
_local8.onRelease = function () {
var _local3 = ownerEvent.currentDialogue.dialogueOptions[this.whichOption];
_root.p1.ModGold(_local3.costGold * -1);
_root.p1.ModRunes(_local3.costRunes * -1);
_root.p1.ModExp(_local3.costExp * -1);
if (_local3.healthReduction != -1) {
_root.p1.SetMaxHealthReduction(_local3.healthReduction);
ownerEvent.mc.questHealth.AdjustHealth();
}
if (_local3.milestoneID != -1) {
_root.p1.MilestoneAdd(_local3.milestoneID);
}
ownerEvent.currentDialogue = Dialogue.GetDialogue(_local3.dialogueID);
ownerEvent.DrawDialogue();
};
} else if (_local3.encounterID != -1) {
_local8.onRelease = function () {
var _local3 = ownerEvent.currentDialogue.dialogueOptions[this.whichOption];
_root.p1.ModGold(_local3.costGold * -1);
_root.p1.ModRunes(_local3.costRunes * -1);
_root.p1.ModExp(_local3.costExp * -1);
if (_local3.healthReduction != -1) {
_root.p1.SetMaxHealthReduction(_local3.healthReduction);
ownerEvent.mc.questHealth.AdjustHealth();
}
if (_local3.milestoneID != -1) {
_root.p1.MilestoneAdd(_local3.milestoneID);
}
ownerEvent.currentEncounter = Encounter.GetEncounter(_local3.encounterID);
ownerEvent.EraseDialogue();
ownerEvent.currentDialogue = undefined;
ownerEvent.StartEncounter();
};
} else {
_local8.onRelease = function () {
var _local3 = ownerEvent.currentDialogue.dialogueOptions[this.whichOption];
_root.p1.ModGold(_local3.costGold * -1);
_root.p1.ModRunes(_local3.costRunes * -1);
_root.p1.ModExp(_local3.costExp * -1);
if (_local3.milestoneID != -1) {
_root.p1.MilestoneAdd(_local3.milestoneID);
}
if (_local3.rewardArtifact != -1) {
var _local4 = Artifact.LoadArtifact(_local3.rewardArtifact);
_root.p1.AddArtifact(_local4, false);
}
var _local5 = ownerEvent.currentDialogue.dialogueOptions[this.whichOption];
ownerEvent.EndEvent(_local5.completesEvent);
};
}
} else if (_local3.optionType == 1) {
var _local8 = mc.attachMovie("dialogueOptionTextbox", "dOptionTextbox" + _local4, 40110 + _local4, {whichOption:_local4, _x:160, _y:210});
mcOptions.push(_local8);
Selection.setFocus(_local8.dialogueInput);
_local8.optionText.text = _local20[_local4];
_local8.btnOkButton.onRollOver = function () {
this.gotoAndStop("over");
};
_local8.btnOkButton.onRollOut = function () {
this.gotoAndStop("up");
};
_local8.btnOkButton.onReleaseOutside = function () {
this.gotoAndStop("up");
};
_local8.btnOkButton.onPress = function () {
_root.PlaySound(4);
this.gotoAndStop("down");
};
_local8.btnOkButton.onRelease = function () {
this.gotoAndStop("up");
var _local4 = ownerEvent.currentDialogue.dialogueOptions[this._parent.whichOption];
_root.p1.ModGold(_local4.costGold * -1);
_root.p1.ModExp(_local4.costExp * -1);
var _local6 = false;
var _local5 = new String(this._parent.dialogueInput.text);
_local5 = _local5.toUpperCase();
var _local3 = 0;
while (_local3 < _local4.correctAnswers.length) {
if (_local5.indexOf(_local4.correctAnswers[_local3].toUpperCase()) != -1) {
_local6 = true;
break;
}
_local3++;
}
var _local7;
var _local8;
if (_local6) {
_local7 = _local4.dialogueID;
_local8 = _local4.encounterID;
if (_local4.milestoneID != -1) {
_root.p1.MilestoneAdd(_local4.milestoneID);
}
} else {
_local7 = _local4.incorrectDialogueID;
_local8 = _local4.incorrectEncounterID;
if (_local4.healthReduction != -1) {
_root.p1.SetMaxHealthReduction(_local4.healthReduction);
ownerEvent.mc.questHealth.AdjustHealth();
}
}
if (_local7 != -1) {
ownerEvent.currentDialogue = Dialogue.GetDialogue(_local7);
ownerEvent.DrawDialogue();
} else if (_local8 != -1) {
ownerEvent.currentEncounter = Encounter.GetEncounter(_local8);
ownerEvent.EraseDialogue();
ownerEvent.currentDialogue = undefined;
ownerEvent.StartEncounter();
}
};
}
_local4++;
}
}
static function SortEvents(a, b) {
if (a.storyline == b.storyline) {
return((Math.round(Math.random()) * 3) - 1);
}
if ((a.storyline == true) && (b.storyline == false)) {
return(-1);
}
if ((a.storyline == false) && (b.storyline == true)) {
return(1);
}
}
static function Search(ignoreCompleted) {
if (ignoreCompleted == undefined) {
ignoreCompleted = true;
}
var _local3 = true;
var _local4 = new Array();
var _local6 = 1;
while (_local3) {
var _local2 = GetEvent(_local6++);
if (_local2 == undefined) {
_local3 = false;
} else if (((_root.p1.level >= _local2.levelMin) && (_root.p1.level <= _local2.levelMax)) && (_root.monstersBeatForLevel >= _local2.nbrOfFights)) {
if (((!_root.p1.HasCompletedEvent(_local2.eventID)) && (!_root.p1.HasUNCompletedEvent(_local2.eventID))) || ((ignoreCompleted == false) && (_root.p1.HasCompletedEvent(_local2.eventID)))) {
if (_root.p1.MilestoneLookup(_local2.reqMilestones)) {
_local4.push(_local2);
}
}
}
}
if (_local4.length > 0) {
_local4.sort(SortEvents);
return(_local4[0]);
}
return(undefined);
}
function StartEncounter() {
if ((_currentframe == 20) && (_root.battleOver)) {
_root.ClearFightFinal();
}
if (((_currentframe == 20) && (_root.battleOver)) || (_currentframe != 20)) {
_root.StartTransition("BattleBounce", true);
}
}
function EraseDialogue() {
if (_root.mcTransition != undefined) {
removeMovieClip(_root.mcTransition);
}
mc.removeMovieClip();
if ((_currentframe == 20) && (_root.battleOver)) {
_root.ClearFightFinal();
if (_root.battleCoverupMC != undefined) {
removeMovieClip(_root.battleCoverupMC);
}
} else {
_root.SaveMyGame();
}
}
function EndEvent(completeStatus) {
EraseDialogue();
if (completeStatus > 0) {
_root.p1.completedEvents.push(eventID);
var _local3 = 0;
while (_local3 < _root.p1.uncompletedEvents.length) {
if (_root.p1.uncompletedEvents[_local3] == eventID) {
_root.p1.uncompletedEvents.splice(_local3, 1);
break;
}
_local3++;
}
} else if (retry) {
if (!_root.ExistsInArray(_root.p1.uncompletedEvents, eventID)) {
_root.p1.uncompletedEvents.push(eventID);
}
}
if (_root.currentEvent.eventID == 16) {
_root.TestForBlackMarket();
}
_root.currentEvent = undefined;
_root.p1.EndMaxHealthReduction();
}
static function GetEvent(inEventID) {
var _local1 = new Event();
_local1.eventID = inEventID;
if (inEventID == 1) {
_local1.eventTitle = "Welcome to Talesworth";
_local1.currentDialogue = Dialogue.GetDialogue(1);
return(_local1);
}
if (inEventID == 2) {
_local1.eventTitle = "Gearing Up";
_local1.currentDialogue = Dialogue.GetDialogue(4);
return(_local1);
}
if (inEventID == 3) {
_local1.eventTitle = "Combat Begins!";
_local1.currentDialogue = Dialogue.GetDialogue(5);
return(_local1);
}
if (inEventID == 4) {
_local1.eventTitle = "General Combat Tips";
_local1.currentDialogue = Dialogue.GetDialogue(6);
_local1.tutorial = true;
return(_local1);
}
if (inEventID == 5) {
_local1.eventTitle = "Engineer Tips";
_local1.currentDialogue = Dialogue.GetDialogue(8);
_local1.tutorial = true;
_local1.reqClass = 1;
return(_local1);
}
if (inEventID == 6) {
_local1.eventTitle = "Psionic Tips";
_local1.currentDialogue = Dialogue.GetDialogue(9);
_local1.tutorial = true;
_local1.reqClass = 2;
return(_local1);
}
if (inEventID == 7) {
_local1.eventTitle = "Juggernaut Tips";
_local1.currentDialogue = Dialogue.GetDialogue(10);
_local1.tutorial = true;
_local1.reqClass = 3;
return(_local1);
}
if (inEventID == 8) {
_local1.eventTitle = "Boss 1 - Pepe";
_local1.currentDialogue = Dialogue.GetDialogue(11);
return(_local1);
}
if (inEventID == 9) {
_local1.eventTitle = "Keep the Peace";
_local1.levelMin = 1;
_local1.levelMax = 1;
_local1.nbrOfFights = 2;
_local1.currentDialogue = Dialogue.GetDialogue(14);
return(_local1);
}
if (inEventID == 10) {
_local1.eventTitle = "A Shell Game";
_local1.levelMin = 1;
_local1.levelMax = 1;
_local1.nbrOfFights = 3;
_local1.currentDialogue = Dialogue.GetDialogue(21);
return(_local1);
}
if (inEventID == 11) {
_local1.eventTitle = "Lost Traveler";
_local1.levelMin = 2;
_local1.levelMax = 2;
_local1.currentDialogue = Dialogue.GetDialogue(27);
return(_local1);
}
if (inEventID == 12) {
_local1.eventTitle = "The Thieves Guild";
_local1.levelMin = 5;
_local1.levelMax = 11;
_local1.nbrOfFights = 1;
_local1.currentDialogue = Dialogue.GetDialogue(31);
_local1.storyline = true;
_local1.usesHealthbar = true;
_local1.description = "Trailing a figure wearing a red scarf, you find yourself inside the perilous Thieves Guild.";
_local1.retry = true;
return(_local1);
}
if (inEventID == 13) {
_local1.eventTitle = "ShimShank's Crown";
_local1.levelMin = 8;
_local1.levelMax = 11;
_local1.nbrOfFights = 1;
_local1.currentDialogue = Dialogue.GetDialogue(53);
_local1.storyline = true;
_local1.reqMilestones.push(5);
_local1.description = "Your quest for the Emerald Crown led you to Shimshank, a fierce minotaur in Hallsguard Forest.";
_local1.retry = true;
return(_local1);
}
if (inEventID == 14) {
_local1.eventTitle = "Grog Attacks!";
_local1.currentDialogue = Dialogue.GetDialogue(65);
return(_local1);
}
if (inEventID == 15) {
_local1.eventTitle = "Alton's Advice";
_local1.levelMin = 10;
_local1.levelMax = 11;
_local1.nbrOfFights = 1;
_local1.currentDialogue = Dialogue.GetDialogue(70);
_local1.storyline = true;
_local1.reqMilestones.push(2);
_local1.reqMilestones.push(5);
return(_local1);
}
if (inEventID == 16) {
_local1.eventTitle = "Rook' Secret";
_local1.levelMin = 6;
_local1.levelMax = 11;
_local1.nbrOfFights = 1;
_local1.currentDialogue = Dialogue.GetDialogue(73);
_local1.storyline = true;
_local1.description = "Rook leads you into The Dark to show you a secret...";
_local1.retry = true;
return(_local1);
}
if (inEventID == 17) {
_local1.eventTitle = "Felton's Analysis";
_local1.levelMin = 7;
_local1.levelMax = 11;
_local1.nbrOfFights = 1;
_local1.currentDialogue = Dialogue.GetDialogue(80);
_local1.storyline = true;
_local1.reqMilestones.push(5);
return(_local1);
}
if (inEventID == 18) {
_local1.eventTitle = "A King's Introduction";
_local1.levelMin = 3;
_local1.levelMax = 11;
_local1.nbrOfFights = 1;
_local1.currentDialogue = Dialogue.GetDialogue(87);
_local1.storyline = true;
return(_local1);
}
if (inEventID == 19) {
_local1.eventTitle = "Rook Shows Up";
_local1.levelMin = 4;
_local1.levelMax = 11;
_local1.nbrOfFights = 1;
_local1.currentDialogue = Dialogue.GetDialogue(91);
_local1.storyline = true;
return(_local1);
}
if (inEventID == 20) {
_local1.eventTitle = "Amelie Needs Help";
_local1.levelMin = 5;
_local1.levelMax = 5;
_local1.nbrOfFights = 2;
_local1.currentDialogue = Dialogue.GetDialogue(96);
_local1.description = "Amelie, the temple priestess, lost her beloved dog Gwendolyn to the winding trails of Hallsguard Forest.";
_local1.retry = true;
return(_local1);
}
if (inEventID == 21) {
_local1.eventTitle = "Gwendolyn's Discovery";
_local1.levelMin = 6;
_local1.levelMax = 10;
_local1.nbrOfFights = 3;
_local1.currentDialogue = Dialogue.GetDialogue(111);
_local1.reqMilestones.push(1);
return(_local1);
}
if (inEventID == 22) {
_local1.eventTitle = "The Rune Salesman";
_local1.levelMin = 7;
_local1.levelMax = 7;
_local1.nbrOfFights = 3;
_local1.currentDialogue = Dialogue.GetDialogue(116);
_local1.description = "A Rune salesman is trying to get your business. Seek him out in the Market Square.";
_local1.retry = true;
return(_local1);
}
if (inEventID == 23) {
_local1.eventTitle = "The Rune Salesman's Back";
_local1.levelMin = 8;
_local1.levelMax = 10;
_local1.nbrOfFights = 3;
_local1.currentDialogue = Dialogue.GetDialogue(159);
_local1.reqMilestones.push(4);
_local1.description = "The Rune salesman has returned for the last time. Seek him out in the Market Square.";
_local1.retry = true;
return(_local1);
}
if (inEventID == 24) {
_local1.eventTitle = "Jinxy's Riddle";
_local1.levelMin = 10;
_local1.levelMax = 10;
_local1.nbrOfFights = 1;
_local1.currentDialogue = Dialogue.GetDialogue(163);
_local1.description = "A man in a tattered jester outfit has a tricky riddle. Pay 250 gold for a chance to solve it!";
_local1.retry = true;
return(_local1);
}
if (inEventID == 25) {
_local1.eventTitle = "Harney and River";
_local1.levelMin = 2;
_local1.levelMax = 2;
_local1.nbrOfFights = 3;
_local1.currentDialogue = Dialogue.GetDialogue(120);
return(_local1);
}
if (inEventID == 26) {
_local1.eventTitle = "Your First Rune";
_local1.levelMin = 3;
_local1.levelMax = 3;
_local1.nbrOfFights = 3;
_local1.currentDialogue = Dialogue.GetDialogue(128);
return(_local1);
}
if (inEventID == 27) {
_local1.eventTitle = "Boss 2 - Master Psionic Belzar";
_local1.currentDialogue = Dialogue.GetDialogue(130);
return(_local1);
}
if (inEventID == 28) {
_local1.eventTitle = "Boss 3 - Rufuss Master Swordsman";
_local1.currentDialogue = Dialogue.GetDialogue(133);
return(_local1);
}
if (inEventID == 29) {
_local1.eventTitle = "Boss 4 - Nik'Nak the Wizened";
_local1.currentDialogue = Dialogue.GetDialogue(136);
return(_local1);
}
if (inEventID == 30) {
_local1.eventTitle = "Boss 5 - Arena Grinder xt9000";
_local1.currentDialogue = Dialogue.GetDialogue(139);
return(_local1);
}
if (inEventID == 31) {
_local1.eventTitle = "Boss 6 - Jingles Jester Prince";
_local1.currentDialogue = Dialogue.GetDialogue(142);
return(_local1);
}
if (inEventID == 32) {
_local1.eventTitle = "Boss 7 - Slog Grog's big brother";
_local1.currentDialogue = Dialogue.GetDialogue(145);
return(_local1);
}
if (inEventID == 33) {
_local1.eventTitle = "Boss 8 - Medusa";
_local1.currentDialogue = Dialogue.GetDialogue(148);
return(_local1);
}
if (inEventID == 34) {
_local1.eventTitle = "Boss 9 - Jasper Lich Baron";
_local1.currentDialogue = Dialogue.GetDialogue(151);
return(_local1);
}
if (inEventID == 35) {
_local1.eventTitle = "Boss 10 - Krax Arena Master 1";
_local1.currentDialogue = Dialogue.GetDialogue(154);
return(_local1);
}
if (inEventID == 36) {
_local1.eventTitle = "Felton Needs Herbs";
_local1.levelMin = 9;
_local1.levelMax = 9;
_local1.nbrOfFights = 3;
_local1.currentDialogue = Dialogue.GetDialogue(170);
_local1.storyline = true;
_local1.usesHealthbar = true;
_local1.description = "Felton's trivial quest for herbs turns into something a little more exciting. Explore the ancient ruins!";
_local1.retry = true;
return(_local1);
}
if (inEventID == 37) {
_local1.eventTitle = "Gambler's Revenge";
_local1.levelMin = 4;
_local1.levelMax = 4;
_local1.nbrOfFights = 3;
_local1.currentDialogue = Dialogue.GetDialogue(184);
_local1.reqMilestones.push(3);
return(_local1);
}
if (inEventID == 38) {
_local1.eventTitle = "Be the Mandrake";
_local1.levelMin = 9;
_local1.levelMax = 9;
_local1.nbrOfFights = 1;
_local1.currentDialogue = Dialogue.GetDialogue(189);
_local1.reqMilestones.push(6);
return(_local1);
}
if (inEventID == 39) {
_local1.eventTitle = "Harney's Ploy";
_local1.levelMin = 10;
_local1.levelMax = 10;
_local1.nbrOfFights = 3;
_local1.currentDialogue = Dialogue.GetDialogue(194);
_local1.reqMilestones.push(9);
return(_local1);
}
if (inEventID == 40) {
_local1.eventTitle = "River's Gives Thanx";
_local1.levelMin = 10;
_local1.levelMax = 10;
_local1.nbrOfFights = 3;
_local1.currentDialogue = Dialogue.GetDialogue(197);
_local1.reqMilestones.push(8);
return(_local1);
}
if (inEventID == 41) {
_local1.eventTitle = "First interrupt eng";
_local1.currentDialogue = Dialogue.GetDialogue(201);
_local1.tutorial = true;
_local1.reqClass = 1;
return(_local1);
}
if (inEventID == 42) {
_local1.eventTitle = "First interrupt psi";
_local1.currentDialogue = Dialogue.GetDialogue(202);
_local1.tutorial = true;
_local1.reqClass = 2;
return(_local1);
}
if (inEventID == 43) {
_local1.eventTitle = "First interrupt jug";
_local1.currentDialogue = Dialogue.GetDialogue(203);
_local1.tutorial = true;
_local1.reqClass = 3;
return(_local1);
}
if (inEventID == 44) {
_local1.eventTitle = "Training Grounds Tutorial";
_local1.currentDialogue = Dialogue.GetDialogue(204);
_local1.tutorial = true;
return(_local1);
}
if (inEventID == 45) {
_local1.eventTitle = "Bazaar Tutorial";
_local1.currentDialogue = Dialogue.GetDialogue(205);
_local1.tutorial = true;
return(_local1);
}
if (inEventID == 46) {
_local1.eventTitle = "Tavern Tutorial";
_local1.currentDialogue = Dialogue.GetDialogue(206);
_local1.tutorial = true;
return(_local1);
}
if (inEventID == 47) {
_local1.eventTitle = "Black Market Tutorial";
_local1.currentDialogue = Dialogue.GetDialogue(207);
_local1.tutorial = true;
return(_local1);
}
if (inEventID == 48) {
_local1.eventTitle = "Gold Farmer";
_local1.levelMin = 1;
_local1.levelMax = 10;
_local1.nbrOfFights = 10;
_local1.currentDialogue = Dialogue.GetDialogue(209);
_local1.tutorial = true;
return(_local1);
}
if (inEventID == 49) {
_local1.eventTitle = "Enough XP For Boss";
_local1.currentDialogue = Dialogue.GetDialogue(211);
_local1.tutorial = true;
return(_local1);
}
}
var eventID = -1;
var eventTitle = "";
var levelMin = -1;
var levelMax = -1;
var nbrOfFights = -1;
var chanceOfOccurring = 1;
var currentDialogue = undefined;
var currentEncounter = undefined;
var tutorial = false;
var reqClass = -1;
var storyline = false;
var reqMilestones = undefined;
var usesHealthbar = false;
var description = "";
var retry = false;
}
Symbol 853 MovieClip [__Packages.Dialogue] Frame 0
class Dialogue
{
function Dialogue () {
dialogueOptions = new Array();
}
static function GetDialogue(inDialogueID) {
var _local1 = new Dialogue();
_local1.dialogueID = inDialogueID;
if (inDialogueID == 1) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"Welcome to Talesworth, %c! Here for the Arena, I presume? I always hate seeing such potential enter that meat grinder. Remember, the City Guard is always recruiting! Anyway, head to registration.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(1));
return(_local1);
}
if (inDialogueID == 2) {
_local1.speakerName = "Grog";
_local1.speakerTitle = "Arena Overseer";
_local1.portraitID = 9002;
_local1.dialogueText = "@Snort!@ \"Well, well, looks like another pile of scum that wants to be rich and famous. First things first, rookie.\" @Snort!@ \"I'm gonna need you to sign your life away here on the Arena Roster.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(2));
return(_local1);
}
if (inDialogueID == 3) {
_local1.speakerName = "Grog";
_local1.speakerTitle = "Arena Overseer";
_local1.portraitID = 9002;
_local1.dialogueText = "\"Normally, we give 50 Gold to rookies to get started, but I don't like your face. Here's 10 Gold. I'm gonna keep the rest.\" @Snort!@ \"Get to the Training Grounds, scum.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(7));
return(_local1);
}
if (inDialogueID == 4) {
_local1.speakerName = "Grog";
_local1.speakerTitle = "Arena Overseer";
_local1.portraitID = 9002;
_local1.dialogueText = "\"So, you've managed to learn a skill or two. That's not going to help you, scum. No one can defeat the Arena Master, Krax. Bah!\" @Snort!@ \"You're not worth my breath. Get your worthless hide into the Arena and let's see what you got!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 5) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "~Lar watches from a low platform near the Arena...~\n\n\"Careful, %n. Once your health hits zero, you'll go down hard. Grog is going to pit you against some pretty weak opponents to start. Just use the Skills you learned in the Training Grounds and you should be ok.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 6) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"Each time you execute a Skill or Spell, it takes a bit before you can do it again. That's called the Skill Cooldown. The little blue bar at the bottom of each Skill illustrates the time left. Or, just wait for the light in the top left of the Skill to turn Green!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(4));
return(_local1);
}
if (inDialogueID == 7) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"Here's some advice: Try to watch your opponent's Cooldown Bar on his Skills. That may help you predict what he/she will do! That may not matter much now, but as things get harder, it will, my friend.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 8) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"%c, do you see your yellow Gas Gauge below your Health Bar? That's how much gas you have left in your tank. For the time being, that's all you've got for the whole fight. Soon, I'll teach you how to refill that thing. Stay sharp!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 9) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"%c! You may have noticed the blue Mana Bar below your Health Bar. Each of your spells will require Mana to use. Don't worry though, you will regenerate some Mana every second, as indicated by the number in parenthesis on the Mana Bar (currently +3). Stay sharp!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 10) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"%c! You may have noticed the dark orange Power Bar below your Health Bar. Certain skills can raise your Power, such as striking your foe with your main weapon. Other skills you will learn can release the Power you have built up for a devastating attack. Don't worry, you'll catch on. Now, stay sharp!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 11) {
_local1.speakerName = "Pepe Le Tank";
_local1.speakerTitle = "Arena Bully";
_local1.portraitID = 4;
_local1.dialogueText = "~You enter the Arena cautiously. Suddenly, the far gate slams open and an enormous humanoid shape barrels towards you in a blind rage!~\n\n\"Pepe gonna smash you, little worm! You look soft! Rawr!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(5));
return(_local1);
}
if (inDialogueID == 12) {
_local1.speakerName = "Pepe Le Tank";
_local1.speakerTitle = "Arena Bully";
_local1.portraitID = 4;
_local1.dialogueText = "\"I can no lose! You cheat, little twig-man!\"\n\n~Pepe struggles to his feet and staggers out of the Arena in shame.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 13) {
_local1.speakerName = "Pepe Le Tank";
_local1.speakerTitle = "Arena Bully";
_local1.portraitID = 4;
_local1.dialogueText = "\"Har Har! You weak little worm, you no challenge tough Pepe. You be Pepe's follower, maybe you not take beating, har har.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(6));
return(_local1);
}
if (inDialogueID == 14) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "~Lar approaches you from a nearby watchtower...~\n\n\"Greetings, %c. There is an area of Talesworth known simply as The Dark. It is infested with cutpurses and thugs, and is a regular source of crime for all of Talesworth.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(13));
return(_local1);
}
if (inDialogueID == 15) {
_local1.speakerName = "The Dark";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~Lar leads you through a series of winding streets, each progressively darker than the last. Soon, the sun is squeezed out by overhanging, ransacked buildings that loom menacingly over your head. The smell of death and decay clouds your senses.~\n\n\"Just ahead you'll find two thugs that need to learn some manners. Ready?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(10));
return(_local1);
}
if (inDialogueID == 16) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"I'm sorry to hear that, %n. Perhaps your sense of duty is not as strong as I suspected. Good luck in the Arena.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 17) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "~Lar cheers you on from a neighboring alley!~\n\n\"There is one thug left, %n! Now, go teach him a lesson!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(11));
return(_local1);
}
if (inDialogueID == 18) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "~Lar approaches bearing a broad grin...~\n\n\"Well done, lad! I thank ye much. Now, back to the city proper you go. Oh, almost forgot, here is your reward, 10 gold!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(12));
return(_local1);
}
if (inDialogueID == 19) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"Alas, young one. I do appreciate your attempt, but perhaps you are still too inexperienced to help out the City Guard. I will contact you again, soon.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 20) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"The City Guard could use a hand in clearing out some riff-raff. It pays 10 gold, and you can keep whatever those thugs have in their filthy pockets. Interested?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(8));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(9));
return(_local1);
}
if (inDialogueID == 21) {
_local1.speakerName = "Shady Gambler";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~A small man dressed in mismatched, brightly colored clothing beckons at you from a nearby alley...~\n\n\"Pssst! Over here, lad! Care to make a wager?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(14));
return(_local1);
}
if (inDialogueID == 22) {
_local1.speakerName = "Shady Gambler";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Great! I've got three shells in front of me. You give me 10 gold to guess which one is covering a fairy. If you guess right, I'll give you 35 gold. What say you?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(15));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(16));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(25));
return(_local1);
}
if (inDialogueID == 23) {
_local1.speakerName = "Shady Gambler";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Suit yourself!\"\n\n~The man fades back into the shadows of the alleyway...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(20));
return(_local1);
}
if (inDialogueID == 24) {
_local1.speakerName = "Shady Gambler";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~The man jumbles the shells with blinding speed!~\n\n\"Ok, which shell hides the fairy?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(17));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(18));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(19));
_local1.randomizeOptions = true;
return(_local1);
}
if (inDialogueID == 25) {
_local1.speakerName = "Shady Gambler";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~A fairy comes whisking out from beneath the shell! The small man quickly scoops her back up and stuffs her into his grubby pocket...~\n\n\"Ah, beginner's luck... \"\n\n~The man tosses you 35 gold and fades back into the alleyway...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(21));
return(_local1);
}
if (inDialogueID == 26) {
_local1.speakerName = "Shady Gambler";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~You turn over the shell, only to find a small bit of lint that blows into the gutter...~\n\n\"Better luck next time, pal...\"\n\n~The man fades back into the shadows of the alleyway...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(20));
return(_local1);
}
if (inDialogueID == 27) {
_local1.speakerName = "Lost Traveler";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~A traveler approaches with an inquisitive (and somewhat lost) look on his face...~\n\n\"Urm... excuse me, kind sir. I am lost and was told to find the Captain of the City Guard. Do you happen to know his name? I will pay you 15 gold for the information.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(22));
return(_local1);
}
if (inDialogueID == 28) {
_local1.speakerName = "Lost Traveler";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Hmm, that doesn't sound right, but thanks for trying. We would all do well to pay more attention in this chaotic city.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(23));
return(_local1);
}
if (inDialogueID == 29) {
_local1.speakerName = "Lost Traveler";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Lar! That's it! Please, take this 15 gold, and thank ye, good sir!\"\n\n~The man scampers off to the nearest guard tower...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(24));
return(_local1);
}
if (inDialogueID == 30) {
_local1.speakerName = "Shady Gambler";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~You shout out to a nearby guard and with a scowl, the little man packs up his shells and disappears like a ghost into the shadows! You hear a voice fade into the distance...~\n\n\"That was a mistake, my friend...\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(20));
return(_local1);
}
if (inDialogueID == 31) {
_local1.speakerName = "Main Street";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~As you make your way across the city, a lithe figure moves swiftly through your peripheral vision. You couldn't help but notice a red sash dancing around his ankle...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(26));
return(_local1);
}
if (inDialogueID == 32) {
_local1.speakerName = "Main Street";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~You quicken your pace and follow the path of the strange figure, eventually trailing within a mere ten paces. After a few hundred yards, the figure makes a subtle glance to both sides and ducks into a small store selling exotic statues of lost gods.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(27));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(41));
return(_local1);
}
if (inDialogueID == 33) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~The crisp odor of incense assaults your senses as you enter this dimly lit, single room store. Strangely, there is no shopkeeper at the counter, and a wooden, reinforced door in the back hangs slightly ajar.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(28));
return(_local1);
}
if (inDialogueID == 34) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~You enter into a long hallway, sloping steadily downward. The air has changed both in quality and appearance, as dust regularly crumbles from the roughly hewn walls as a fine mist. A series of twisting tunnels eventually leads you to a dead end. A corroding, bronze plaque hangs in the center of your field of vision, adorned with an ornate button.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(29));
return(_local1);
}
if (inDialogueID == 35) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~A section of the wall, previously undetectable, slides up revealing a dim passage beyond. A soft voice from an unknown source whispers to you...~\n\n\"True thieves possess Knowledge. Who leads the Thieves Guild?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(30));
return(_local1);
}
if (inDialogueID == 36) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~You speak 'Anya' aloud and walk safely through the opening, following the dim passage...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(31));
return(_local1);
}
if (inDialogueID == 37) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~You whisper your answer and walk into the opening. As you cross the threshold, a whistling sound fills the air. You grasp your thigh in pain as three darts plunge into your flesh, lowering maximum health by 15%! Limping, you continue following the dim passage...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(31));
return(_local1);
}
if (inDialogueID == 38) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~The sound of metal on stone echoes from the passage ahead. You round the corner to find a 20 foot corridor lined with swinging blades. As you watch their complex pattern, you begin to count the intervals in seconds that would allow safe passage as follows: 2 seconds, 6 seconds, 4 seconds, 8 seconds. A voice begins speaking...~\n\n\"True thieves possess Dexterity.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(32));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(33));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(34));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(35));
return(_local1);
}
if (inDialogueID == 39) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~You softly count to 6 and charge through the complex trap, blades whistling past you with every step. Somehow, you make it through completely unharmed and continue down the passage, leaving the meat grinder behind you...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(36));
return(_local1);
}
if (inDialogueID == 40) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~After softly counting down, you spring into action, racing into the barrage. Almost immediately, you realize your error and take a blade in the shoulder and another lightly across your ear, losing 15% of your life! Through the sheer will of the gods, you crash to the floor at the far side, thankful to be alive. Grunting, you pick yourself up and carry on...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(36));
return(_local1);
}
if (inDialogueID == 41) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~The long passage finally ends at a bronze panel containing three identical buttons similar to the first you encountered. A voice whispers...~\n\n\"True thieves possess Luck.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(37));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(38));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(39));
_local1.randomizeOptions = true;
return(_local1);
}
if (inDialogueID == 42) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~The button depresses and you hear a sharp click. You visibly relax as a door opens safely in front of you, leading into a small chamber where two people await your arrival...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(40));
return(_local1);
}
if (inDialogueID == 43) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~The button depresses and you hear a sharp click, putting you on edge. As a door opens in front of you, a metal bar swings hard across the floor at about 8 inches high, cracking you in the shin and nearly breaking your leg. You feel 10% of your health slip away from you. Dazed, you clamber to your feet and head through the door into a small room where two people await your arrival...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(40));
return(_local1);
}
if (inDialogueID == 44) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~Most of them are ancient, nondescript gods that have been long forgotten. You do notice that one of the larger statues placed near the entrance has a thin, silk scarf wrapped about his ankle.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(27));
return(_local1);
}
if (inDialogueID == 45) {
_local1.speakerName = "Anya";
_local1.speakerTitle = "Guild Mandrake";
_local1.portraitID = 9004;
_local1.dialogueText = "~As you enter the room, a striking and confident woman stands before you, accompanied by a small man, both clearly rogues.~\n\n\"Welcome to the Thieves Guild, %c. My name is Anya, Mandrake of the Crimson Brotherhood, the Talesworth Thieves Guild. You're a nosy sort, we don't like that here. Brother Trent, dispatch of this nuisance.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(42));
return(_local1);
}
if (inDialogueID == 46) {
_local1.speakerName = "Trent";
_local1.speakerTitle = "Crimson Brother";
_local1.portraitID = 5;
_local1.dialogueText = "\"No problem, boss. This frog is no match for a Crimson Brother...\"\n\n~The man has barely finished his insult when he lunges at your throat!~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(43));
return(_local1);
}
if (inDialogueID == 47) {
_local1.speakerName = "Strange Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~Your world goes black...\n\nWhen you come to your senses, you are badly beaten and laying in the gutter, back on Main Street. That did not go well...~\n\n+ This quest can be retried in the Tavern +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(57));
return(_local1);
}
if (inDialogueID == 48) {
_local1.speakerName = "Anya";
_local1.speakerTitle = "Guild Mandrake";
_local1.portraitID = 9004;
_local1.dialogueText = "~As the small man crumples at your feet, you casually wipe your blade clean on his pants before looking up at Anya...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(44));
return(_local1);
}
if (inDialogueID == 49) {
_local1.speakerName = "Anya";
_local1.speakerTitle = "Guild Mandrake";
_local1.portraitID = 9004;
_local1.dialogueText = "\"That was just a low ranking Brother. Time to find out what Mandrakes fight like, young one!\"~\n\nAnya crouches low and eyes you menacingly...";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(45));
return(_local1);
}
if (inDialogueID == 50) {
_local1.speakerName = "Anya";
_local1.speakerTitle = "Guild Mandrake";
_local1.portraitID = 9004;
_local1.dialogueText = "~Anya collapses to the floor, propping herself up on one elbow to beg for mercy.~\n\n\"Wait! I know why you are here. Yes, I am supplying Krax with a poison. It is the name that you seek, 'Death Watch'. That is all I can tell you. Kill me if you wish, %c, but if I die, someone else will supply him.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(46));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(47));
return(_local1);
}
if (inDialogueID == 51) {
_local1.speakerName = "Anya";
_local1.speakerTitle = "Guild Mandrake";
_local1.portraitID = 9004;
_local1.dialogueText = "As you turn to leave, Anya whispers, \"You'll see me again, %c.\"\n\n~You exit through a door on the far side of the room, entering into another labyrinth of tunnels similar to your passage in. Eventually, you find a secret door that leads out into the bustle of Main Street.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(48));
return(_local1);
}
if (inDialogueID == 52) {
_local1.speakerName = "Anya";
_local1.speakerTitle = "Guild Mandrake";
_local1.portraitID = 9004;
_local1.dialogueText = "~With one swift movement, you pull a knife from your boot and bury it into the leader of the Crimson Brotherhood. Anya gasps as life slips away. You can't help but wonder if killing a Mandrake was a good idea...\n\n~You exit through a door on the far side of the room, entering into another labyrinth of tunnels. Eventually, you find a secret door that leads out into the midday sun, directly into the bustle of Main Street.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(48));
return(_local1);
}
if (inDialogueID == 53) {
_local1.speakerName = "Main Street";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~A young boy in a leather apron approaches you, covered in soot from his head to his boots.~\n\n\"Excuse me, sir. Master Trey the blacksmith bids you visit him. Will you follow?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(49));
return(_local1);
}
if (inDialogueID == 54) {
_local1.speakerName = "Trey Bromwell";
_local1.speakerTitle = "Master Blacksmith";
_local1.portraitID = 9014;
_local1.dialogueText = "~The boy leads you across Talesworth to a squat building made of grey stone. A tendril of smoke wafts up lazily from a glowing forge. As you approach, a wiry man turns to face you, removing a pair of weathered leather gloves to shake your hand.~\n\n\"Greetings lad, me name's Trey.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(50));
return(_local1);
}
if (inDialogueID == 55) {
_local1.speakerName = "Trey Bromwell";
_local1.speakerTitle = "Master Blacksmith";
_local1.portraitID = 9014;
_local1.dialogueText = "~Trey lowers his voice before continuing...~\n\n\"Time to time, some people with a few extra coins ask me to smithy up a special item, the magic kind. So, ya see, I know a few things about armor of protection. Felton told me about the poison, about Death Watch. Ain't nothin' I can make that's gonna protect ya from that ichor.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(51));
return(_local1);
}
if (inDialogueID == 56) {
_local1.speakerName = "Trey Bromwell";
_local1.speakerTitle = "Master Blacksmith";
_local1.portraitID = 9014;
_local1.dialogueText = "\"Aye, I can TELL you what will help you, I just can't make it. It won't be easy though. A particularly nasty minotaur by the name of Shimshank came across a rare artifact known as the Emerald Crown. It protects the wearer from some rare forms of poison. It wouldn't completely deny Death Watch, but it would reduce its effects significantly.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(52));
return(_local1);
}
if (inDialogueID == 57) {
_local1.speakerName = "Trey Bromwell";
_local1.speakerTitle = "Master Blacksmith";
_local1.portraitID = 9014;
_local1.dialogueText = "~Trey turns and enters the roofed portion of his home, returning with what appears to be a tattered map.~\n\n\"Exit Talesworth through the East Gate. A short day's walk will take you into the southwestern portion of Hallsguard Forest. I've marked the map where Shimshank's hovel is, you can't miss it.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(59));
return(_local1);
}
if (inDialogueID == 58) {
_local1.speakerName = "Clearing";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "~Following Trey's map proves simple and as night falls, you find yourself creeping through Hallsguard Forest, with weapon drawn and nerves taut. As you plunge deeper into the thick trees, well-trodden paths are replaced by thorny underbrush and tangling vines thicker than your arm. Eventually, the trees thin out into a remote clearing punctuated by an oversized hut.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(54));
return(_local1);
}
if (inDialogueID == 59) {
_local1.speakerName = "Shimshank";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "~As you enter into the clearing, the scene quickly turns gruesome. Rounding the hut's far side, bones of various people and animals lie heaped haphazardly against the wall, stringy flesh still managing to feebly cling on. Before you have a chance to wretch and empty your stomach, the sharp snap of twigs from the forest grabs your attention.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(60));
return(_local1);
}
if (inDialogueID == 60) {
_local1.speakerName = "Shimshank";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9;
_local1.dialogueText = "~Shimshank sighs and a bored expression seems to come over his bullhead face, if that were possible.~\n\n\"You cannot have it. I am weary from the hunt, but you shall still die this day.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(56));
return(_local1);
}
if (inDialogueID == 61) {
_local1.speakerName = "Shimshank";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9;
_local1.dialogueText = "~Shimshank falls before you, the Emerald Crown tumbling off his grizzled head and rolling to your feet. With a sarcastic salute to the slain beast before you, you place the crown in your pack and head back to Talesworth victorious!~\n\n+ Emerald Crown added to Inventory +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(58));
return(_local1);
}
if (inDialogueID == 62) {
_local1.speakerName = "Shimshank";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9;
_local1.dialogueText = "~With a devastating blow, Shimshank knocks you unconscious onto the stack of bones. Satisfied with his victory and confident that you must surely be dead, he retires wearily into his hut for much needed sleep. When you come to, realizing what has happened, you clamber off the bones and stumble back through the forest to Talesworth to lick your wounds.~\n\n+ This quest can be retried in the Tavern +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(57));
return(_local1);
}
if (inDialogueID == 63) {
_local1.speakerName = "Trey Bromwell";
_local1.speakerTitle = "Master Blacksmith";
_local1.portraitID = 9014;
_local1.dialogueText = "~Trey hands you the map and shakes your hand.~\n\n\"Good luck, %c.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(53));
return(_local1);
}
if (inDialogueID == 64) {
_local1.speakerName = "Shimshank";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9;
_local1.dialogueText = "~An aged minotaur wearing a tarnished green crown steps into the clearing. His entire chest is covered in gore and he carries the slain carcass of a stag over his shoulder. He approaches you at a calm steady pace, drops the stag on the bone pile, and turns to face you brandishing a massive two-handed axe.~\n\n\"You here for the crown, too?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(55));
return(_local1);
}
if (inDialogueID == 65) {
_local1.speakerName = "Grog";
_local1.speakerTitle = "Arena Overseer";
_local1.portraitID = 9002;
_local1.dialogueText = "~As you approach the Talesworth Arena, Grog wanders out to greet you. His scowl seems unusually wicked today.~\n\n\"%c, follow me at once, I have an urgent matter to discuss before you may continue in the competition...\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(61));
return(_local1);
}
if (inDialogueID == 66) {
_local1.speakerName = "Grog";
_local1.speakerTitle = "Arena Overseer";
_local1.portraitID = 9002;
_local1.dialogueText = "~Grog leads you into a small room with steel walls, devoid of anything but a couple chairs. Once you both enter, you hear the door shut and click behind you. The goblin turns to face you, sneering and drooling with palpable anger.~\n\n\"You're a nosy one, aren't you, scum.\" ~*Snort!*~ \"Always snooping around. Krax and I have a good thing going here, and I won't have you screwing it up.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(62));
return(_local1);
}
if (inDialogueID == 67) {
_local1.speakerName = "Grog";
_local1.speakerTitle = "Arena Overseer";
_local1.portraitID = 9002;
_local1.dialogueText = "\"I know about the Emerald Crown, scum!\" ~*Snort!*~ \"If you kill Krax, I don't get 10% of his winnings anymore. We can't have that, now can we!? Tonight, this ends! Oh, and by the way, I know magic. Lots of it.\"\n\n~Grog lets out a high-pitches squeal, lunging at you with malice in his eyes!~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(63));
return(_local1);
}
if (inDialogueID == 68) {
_local1.speakerName = "Grog";
_local1.speakerTitle = "Arena Overseer";
_local1.portraitID = 9002;
_local1.dialogueText = "~Your final blow sends Grog reeling. As his balance wavers, he topples backwards onto his own blade, ending his pathetic existence. This goblin won't be aiding Krax anymore with his illegitimate Arena practices. You step over his corpse and head back out to the streets.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(64));
return(_local1);
}
if (inDialogueID == 69) {
_local1.speakerName = "Grog";
_local1.speakerTitle = "Arena Overseer";
_local1.portraitID = 9002;
_local1.dialogueText = "\"Fool! You will never compete in the Arena while I am still alive. Leave Talesworth if you know what is good for you.\"\n\n~Grog spits on you as he storms out of the room, leaving you on the floor in a pool of your own blood...~\n\n+ Grog bars the Arena until you defeat him +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(65));
return(_local1);
}
if (inDialogueID == 70) {
_local1.speakerName = "King Alton";
_local1.speakerTitle = "King of Talesworth";
_local1.portraitID = 9008;
_local1.dialogueText = "~King Alton approaches as you near the Arena entrance with a broad smile, clapping you proudly on the back.~\n\n\"You've become quite famous in this town, %n. You have achieved tenth level, dispatching and exposing Grog in the process.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(66));
return(_local1);
}
if (inDialogueID == 71) {
_local1.speakerName = "King Alton";
_local1.speakerTitle = "King of Talesworth";
_local1.portraitID = 9008;
_local1.dialogueText = "~Alton nods with approval.~ \"I believe in you, young one. Please, take this Rune to aid you. You will make a splendid Arena Champion, making %cs around Andomeda proud of their profession. Good luck, the royalty of Talesworth is behind your efforts!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(67));
return(_local1);
}
if (inDialogueID == 72) {
_local1.speakerName = "King Alton";
_local1.speakerTitle = "King of Talesworth";
_local1.portraitID = 9008;
_local1.dialogueText = "\"Your final challenge, Arena Master Krax, lies ahead of you. Just remember, you must be wearing the Emerald Crown to receive the ~PARTIAL~ protection from Death Watch that it grants. However, you will still feel the reduced effects of the poison's venom.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(68));
return(_local1);
}
if (inDialogueID == 73) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "~As you make your way across Talesworth, Rook suddenly appears a mere two steps away from you...~\n\n\"Do you always just appear like that?\" you ask.\n\n~Rook shrugs. ~\"It's good practice. So, have you found a use for the Runes you've found?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(69));
return(_local1);
}
if (inDialogueID == 74) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "\"Take a trip to The Dark with me, I'll show you a secret...\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(70));
return(_local1);
}
if (inDialogueID == 75) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "~Rook leads you into an unfamiliar area. Your hand instinctively goes to your weapon. The stale air becomes increasingly silent for three short blocks until the broken cobblestones dump you into a high-walled cul-de-sac. Rook spins on you, an unseen light source glinting off his hooded eyes...~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(72));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(71));
return(_local1);
}
if (inDialogueID == 76) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "~As you flee from the dead-end in a blind panic, you hear a deep chuckle from Rook fade into the distance behind you.~\n\n+ This quest can be retried in the Tavern +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(73));
return(_local1);
}
if (inDialogueID == 77) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "~Rook reaches into his cloak and produces a small wooden token about the size of your palm. The surface appears to be engraved with the image of Braman, god of Trade.~\n\n\"Behind us lies passage to the Black Market. There, you can spend your Runes to upgrade the skills you have learned. However, you need this pass to get in. It's yours for only 300 gold...\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(74));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(75));
return(_local1);
}
if (inDialogueID == 78) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "\"If you change your mind, we can discuss this again, just look in the Tavern.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(73));
return(_local1);
}
if (inDialogueID == 79) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "~You trade Rook 300 gold for the wooden pass. Rook steps towards the back wall of the cul-de-sac and pushes open a door previously unseen. The sounds of commerce immediately fill the air.~\n\nThe Black Market is now available on the main map!!";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(76));
return(_local1);
}
if (inDialogueID == 80) {
_local1.speakerName = "King Alton";
_local1.speakerTitle = "King of Talesworth";
_local1.portraitID = 9008;
_local1.dialogueText = "~Alton approaches.~ \"%n! My sources tell me you infiltrated the Thieves Guild. Amazing! Did you... urm... discuss the situation with Anya?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(77));
return(_local1);
}
if (inDialogueID == 81) {
_local1.speakerName = "King Alton";
_local1.speakerTitle = "King of Talesworth";
_local1.portraitID = 9008;
_local1.dialogueText = "\"Hmm, I've heard nothing of that poison, but that surprises me little. You must immediately take this information to Felton Burrfoot, master of the Royal Apothecary and plant expert.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(78));
return(_local1);
}
if (inDialogueID == 82) {
_local1.speakerName = "Felton Burrfoot";
_local1.speakerTitle = "Master Herbalist";
_local1.portraitID = 9009;
_local1.dialogueText = "~You make your way to the castle grounds. As you near the Apothecary, a loud explosion rocks the cobblestones beneath your feet. Smoke begins to billow out from the Apothecary's doors and windows. A rotund man comes stumbling out, dizzy in a fit of coughing and covered in soot.\n\n~\"Helloo! You must be that %c that King Alton told me about.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(79));
return(_local1);
}
if (inDialogueID == 83) {
_local1.speakerName = "Felton Burrfoot";
_local1.speakerTitle = "Master Herbalist";
_local1.portraitID = 9009;
_local1.dialogueText = "\"Sorry about the mess. I've been experimenting with some new potions.\" ~Felton's voice lowers noticeably.~ \"What did you learn about the poison, lad?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(80));
return(_local1);
}
if (inDialogueID == 84) {
_local1.speakerName = "Felton Burrfoot";
_local1.speakerTitle = "Master Herbalist";
_local1.portraitID = 9009;
_local1.dialogueText = "~Felton nods fervently.~ \"Yes, yes, of course! The signs were all there. I must consult my books. Please be patient a moment.\"\n\n~Felton rushes back into the Apothecary, choking on lingering smoke as he makes futile attempts to wave it away.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(81));
return(_local1);
}
if (inDialogueID == 85) {
_local1.speakerName = "Felton Burrfoot";
_local1.speakerTitle = "Master Herbalist";
_local1.portraitID = 9009;
_local1.dialogueText = "~Felton reemerges wringing his hands and wearing a disturbed expression.~\n\n\"%c, as I'm sure you've guessed, Death Watch is a vile substance. There is no known anti-toxin. If you intend to face Krax, your only hope of survival is an ancient artifact known as the Emerald Crown...\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(82));
return(_local1);
}
if (inDialogueID == 86) {
_local1.speakerName = "Felton Burrfoot";
_local1.speakerTitle = "Master Herbalist";
_local1.portraitID = 9009;
_local1.dialogueText = "\"Trey Bromwell, the town Blacksmith, will know, but he is currently away on a delivery of weapons to Dunham. He will contact you upon his return.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(83));
return(_local1);
}
if (inDialogueID == 87) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "~From across the busy streets of Talesworth, Lar strolls towards you, accompanied by a man of obvious noble stature.~\n\n\"%n, I'd like you to meet His Royal Highness, King Alton.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(84));
return(_local1);
}
if (inDialogueID == 88) {
_local1.speakerName = "King Alton";
_local1.speakerTitle = "King of Talesworth";
_local1.portraitID = 9008;
_local1.dialogueText = "\"Well met, %n. I have heard of your exploits, you are doing quite well in the Arena. However, this is not why we speak today.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(85));
return(_local1);
}
if (inDialogueID == 89) {
_local1.speakerName = "King Alton";
_local1.speakerTitle = "King of Talesworth";
_local1.portraitID = 9008;
_local1.dialogueText = "\"We suspect Krax, the reigning Arena champion, of cheating most foul. We don't know exactly how he's doing it, but some of Talesworth's finest competitors have fallen before him far too fast. Will you aid us in our investigation?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(86));
return(_local1);
}
if (inDialogueID == 90) {
_local1.speakerName = "King Alton";
_local1.speakerTitle = "King of Talesworth";
_local1.portraitID = 9008;
_local1.dialogueText = "\"Excellent... Find Rook. Some may find his shady demeanor unsettling, but no one keeps a finger on the pulse of Talesworth like that man.\"\n\n~Lar and King Alton nod at you solemnly and quickly continue on their way, deep in conversation.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(87));
return(_local1);
}
if (inDialogueID == 91) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "~Where once there was empty air, a shadowy figure suddenly stands before you.~\n\n\"Hello, young one.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(88));
return(_local1);
}
if (inDialogueID == 92) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "\"I was told you were looking for me. No one finds me. I find you.\"\n\n~Rook circles you slowly, sizing you up...~\n\n\"To be frank, I'm surprised Lar and Alton chose you to help in their investigation. No matter, here we are.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(89));
return(_local1);
}
if (inDialogueID == 93) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "\"My sources tell me that Krax is employing a rare and powerful poison, but we must find out WHICH poison it is. He is being supplied by Anya, the leader, or 'Mandrake', of the Crimson Brotherhood. This dangerous group is the Talesworth branch of the Thieves Guild and does not take snooping lightly...\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(90));
return(_local1);
}
if (inDialogueID == 94) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "~Rook's eyes scan his peripheral as he talks, constantly wary of onlookers and potential eavesdroppers...~\n\n\"To find Anya, you must first find the entrance to the Crimson Brotherhood's hideout. \"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(91));
return(_local1);
}
if (inDialogueID == 95) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "\"Watch the pubs and alleys for men wearing a thin, red scarf on their ankle. Trail one of these rogues and they are sure to lead you to Anya. Good luck.\"\n\n~With that, Rook slips away among the throngs of street traffic.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(92));
return(_local1);
}
if (inDialogueID == 96) {
_local1.speakerName = "Amelie";
_local1.speakerTitle = "Temple Priestess";
_local1.portraitID = 9010;
_local1.dialogueText = "~As you pass the Temple of Sarlimar, a beautiful woman beckons to you. She wears a peaceful demeanor but you sense unrest.~\n\n\"Greetings, %c. My name is Amelie. Our temple needs help, can you lend us your courage?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(93));
return(_local1);
}
if (inDialogueID == 97) {
_local1.speakerName = "Amelie";
_local1.speakerTitle = "Temple Priestess";
_local1.portraitID = 9010;
_local1.dialogueText = "\"Gwendolyn, our loyal dog, has gone missing. We last saw her in Hallsguard Forest. Will you find her? It is very easy to get lost among the trees. I can offer you a meager reward of 235 gold.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(94));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(95));
return(_local1);
}
if (inDialogueID == 98) {
_local1.speakerName = "Amelie";
_local1.speakerTitle = "Temple Priestess";
_local1.portraitID = 9010;
_local1.dialogueText = "\"This makes me sad. We loved her dearly. May Sarlimar watch over her and lead her safely back to us.\"\n\n+ This quest can be retried in the Tavern +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(96));
return(_local1);
}
if (inDialogueID == 99) {
_local1.speakerName = "Entrance";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "You head out the East Gate and make your way to the edge of Hallsguard Forest. A single path North leads in.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(97));
return(_local1);
}
if (inDialogueID == 100) {
_local1.speakerName = "Exploring...";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "The trees grow together in tight clusters. Birds sing from the branches high above you.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(99));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(100));
return(_local1);
}
if (inDialogueID == 101) {
_local1.speakerName = "Exploring...";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "A small clearing opens up from the chaos around you. A few rays of sunlight manage to pierce the leafy ceiling and find your face, boosting your spirit.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(101));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(103));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(125));
return(_local1);
}
if (inDialogueID == 102) {
_local1.speakerName = "Exploring...";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "Several thin light trails, possibly from wildlife, wind through the trees in every direction.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(104));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(105));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(106));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(107));
return(_local1);
}
if (inDialogueID == 103) {
_local1.speakerName = "Exploring...";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "You come upon a grand oak tree, seemingly hundreds of years old. You wonder how long this forest has been here...";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(108));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(109));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(110));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(111));
return(_local1);
}
if (inDialogueID == 104) {
_local1.speakerName = "Exploring...";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "Water glistens off the low lying brush as a small brook splashes down a miniature waterfall. The mist and smell of moss around you makes you feel one with nature.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(112));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(113));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(114));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(125));
return(_local1);
}
if (inDialogueID == 105) {
_local1.speakerName = "Exploring...";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "The path narrows and a ridge drops down steeply to your left. You choose your steps carefully as you make your way lower and lower.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(116));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(117));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(125));
return(_local1);
}
if (inDialogueID == 106) {
_local1.speakerName = "Exploring...";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "You enter a grove of regal pine trees. The air becomes still as their arrogant stature silences the wind. Nearby, sounds of a wounded animal softly reach your ears.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(118));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(120));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(121));
return(_local1);
}
if (inDialogueID == 107) {
_local1.speakerName = "Exploring...";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "You come upon a small yellow dog lying on a bed of pine needles. Her leg appears caught in a fox trap. She looks up at you expectantly. This must be Gwendolyn!";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(122));
return(_local1);
}
if (inDialogueID == 108) {
_local1.speakerName = "Exploring...";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "Limping, but happy, Gwendolyn showers you with licks before moving to stand beside you, ready to follow.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(123));
return(_local1);
}
if (inDialogueID == 109) {
_local1.speakerName = "Amelie";
_local1.speakerTitle = "Temple Priestess";
_local1.portraitID = 9010;
_local1.dialogueText = "~Amelie does nothing to hide her exuberance at the return of Gwendolyn.~\n\n\"Thank you, %c! Your kindness will not be forgotten.\"\n\n~The happy dog gives you a final lick before Amelie carries her off to tend to her leg.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(124));
return(_local1);
}
if (inDialogueID == 110) {
_local1.speakerName = "Amelie";
_local1.speakerTitle = "Temple Priestess";
_local1.portraitID = 9010;
_local1.dialogueText = "~You head back to Talesworth and tell Amelie that you have given up.~\n\n\"This makes me sad. We loved her dearly. May Sarlimar watch over her and lead her safely back to us.\"\n\n+ This quest can be retried in the Tavern +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(96));
return(_local1);
}
if (inDialogueID == 111) {
_local1.speakerName = "Main Street";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "The sound of vigorous sniffing catches your attention. It seems to be coming from a deserted building nearby...";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(126));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(127));
return(_local1);
}
if (inDialogueID == 112) {
_local1.speakerName = "Deserted Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "Your curiosity takes you into the dark building. A layer of dust covers everything and boxes around the room seem to rot and fall apart before your eyes. It's obviously been awhile since anything in this place has moved. Gwendolyn, the dog you rescued, is sniffing fervently at something in the corner.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(128));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(129));
return(_local1);
}
if (inDialogueID == 113) {
_local1.speakerName = "Deserted Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "You cheer her on in her search. She begins digging in what appears to be a heap of broken pottery. With a bark of victory, she digs a couple things that look like Runes! She picks them up gently in her mouth, saunters over to you, and lays them at your feet with pride.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(130));
return(_local1);
}
if (inDialogueID == 114) {
_local1.speakerName = "Deserted Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "She wags her tail with delight before bounding off into the city.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(131));
return(_local1);
}
if (inDialogueID == 115) {
_local1.speakerName = "Deserted Building";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "You scold Gwendolyn with sharp tones. \"No!\" Somberly, she abandons her search and heads back into the city. You see nothing of interest with your dull human senses, so you give up as well.";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(132));
return(_local1);
}
if (inDialogueID == 116) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~A tall man wearing a showy cloak weaves through the crowd in your direction. His manner is that of a merchant and he seems to be whispering offers to everyone he passes by.~\n\n\"Psst! Runes...? Runes for the Black Market?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(133));
return(_local1);
}
if (inDialogueID == 117) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~The man saunters over to you.~\n\n\"How about you, friend? Need some Runes? I'll sell you one for 250 gold, two for 475 gold, or three for 700 gold.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(134));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(135));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(136));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(137));
return(_local1);
}
if (inDialogueID == 118) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~The man inconspicuously trades you the gold for the Runes.~\n\n\"Thanks! I'll check back in a bit, but the deal won't be as good...\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(138));
return(_local1);
}
if (inDialogueID == 119) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"I'll be around, look for me when you're ready to do business...\"\n\n+ This quest can be retried in the Tavern +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(229));
return(_local1);
}
if (inDialogueID == 120) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~Shrill sounds of fear reach your ear from across the courtyard. You notice a gaunt woman cowering in fear from a swaggering ogre of a man. As you approach, she calls out to you...~\n\n\"You there! Please help!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(139));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(140));
return(_local1);
}
if (inDialogueID == 121) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Take a walk, shtranger. Dis girl ish nothin' but trouble,\" slurs the brute, who is clearly stinking drunk.\n\n~The fear-stricken woman pleads at you with sad eyes.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(141));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(142));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(143));
return(_local1);
}
if (inDialogueID == 122) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~The man walks over to you, stopping only inches away from your face. His foul breath reeks of stale mead. He jabs you in the chest with a grubby sausage of a finger...~\n\n\"Ok, then. You firsht, THEN the girl.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(144));
return(_local1);
}
if (inDialogueID == 123) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~The man drops face first into the dirt and lies still. The woman clambers to her feet and approaches.~\n\n\"Thank you, kind sir! You are quite the warrior. Harney is the town drunk and is always causing trouble. I'll see you around...\" ~\n\nThe woman winks at you before she gracefully saunters off.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(146));
return(_local1);
}
if (inDialogueID == 124) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Shtay out of other people'sh business, shtranger.\"\n\n~The man drags the woman off, berating her the whole way about calling for help.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(148));
return(_local1);
}
if (inDialogueID == 125) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~You run and grab the nearest patrolling guard. He notices the conflict and charges over...~\n\n\"Ok, Harney, let's go. You know the drill,\" says the guard.\n\n~The guard escorts the town drunkard towards the Talesworth Jail.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(145));
return(_local1);
}
if (inDialogueID == 126) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~As the guard passes you he tosses you 10 gold...~\n\n\"Thanks for the tip, lad. You should consider joining the City Guard!\"\n\n~They disappears into a nearby building with barred windows~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(147));
return(_local1);
}
if (inDialogueID == 127) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~You laugh callously at the woman, cheering on the drunk fool. Harney notices you and nods with approval.~\n\n\"Yer ok, mishter. I'll remember thish.\"\n\n~Eventually, you get bored of the heckling and continue on your way.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(149));
return(_local1);
}
if (inDialogueID == 128) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~As you make your way towards the Arena, you feel your toe kick something hard. Peering down, you notice a small Rune lying wedged among the cobblestones. It feels slightly warm to the touch.~\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(150));
return(_local1);
}
if (inDialogueID == 129) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~You place the Rune in your pouch for safekeeping. What could it be? Perhaps someone will provide some more information about it in the future...?~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(151));
return(_local1);
}
if (inDialogueID == 130) {
_local1.speakerName = "Belzar";
_local1.speakerTitle = "Master Psionic";
_local1.portraitID = 8;
_local1.dialogueText = "~A tall figure enters the Arena and a hush comes over the crowd. Crackling energy surrounds him like a protective shroud. His voice echoes with authority.~\n\n\"Puny %c. You dare challenge me? I am an extremely big deal in my homeland...\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(152));
return(_local1);
}
if (inDialogueID == 131) {
_local1.speakerName = "Belzar";
_local1.speakerTitle = "Master Psionic";
_local1.portraitID = 8;
_local1.dialogueText = "\"Impossible! I am ruined! When word gets back to my homeland that I have been defeated so soon, they will strip me of my power. Tis a sad day.\"~\n\nBelzar wanders from the Arena in shame.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(153));
return(_local1);
}
if (inDialogueID == 132) {
_local1.speakerName = "Belzar";
_local1.speakerTitle = "Master Psionic";
_local1.portraitID = 8;
_local1.dialogueText = "\"Feel no shame, friend. You never had a chance against me, for I am Master Psionic Belzar, and I am very important.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(154));
return(_local1);
}
if (inDialogueID == 133) {
_local1.speakerName = "Rufuss";
_local1.speakerTitle = "Master Swordsman";
_local1.portraitID = 11;
_local1.dialogueText = "~A well-armored man in a brilliant red cape strides out to meet you on the battlefield. He carries himself with confidence and pride.~\n\n\"Well met, brave warrior. I wish you luck as we engage in melee combat. Now, have at thee!\"\n\n~With that, he lunges at your throat with a mighty roar!~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(155));
return(_local1);
}
if (inDialogueID == 134) {
_local1.speakerName = "Rufuss";
_local1.speakerTitle = "Master Swordsman";
_local1.portraitID = 11;
_local1.dialogueText = "\"You are a mighty warrior indeed, and you are my better. May your skill and courage take you to victory against Krax.\"\n\n~With that, he kneels before you in defeat.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(156));
return(_local1);
}
if (inDialogueID == 135) {
_local1.speakerName = "Rufuss";
_local1.speakerTitle = "Master Swordsman";
_local1.portraitID = 11;
_local1.dialogueText = "~Rufuss helps you up from your comfortable position on the ground bleeding.~\n\n\"Ah, my friend, you fought well, but the day is mine. Perhaps we shall meet again.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(157));
return(_local1);
}
if (inDialogueID == 136) {
_local1.speakerName = "Nik'Nak";
_local1.speakerTitle = "Wizened Mage";
_local1.portraitID = 14;
_local1.dialogueText = "~A shadowy mage drifts effortlessly across the Arena floor to meet you. As he glides, a wispy trail of shadow drags behind him.~\n\n\"Greetings, foolish man... I have prepared some especially interesting spells for today's fight. I wonder, have you ever accidentally attacked yourself?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(158));
return(_local1);
}
if (inDialogueID == 137) {
_local1.speakerName = "Nik'Nak";
_local1.speakerTitle = "Wizened Mage";
_local1.portraitID = 14;
_local1.dialogueText = "\"No! How can this be!?\"\n\n~Nik'Nak howls in anger before his robe drops to the Arena floor and he vanishes. A thin tendril of darkness trails from the robe and dissipates into the air around you.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(159));
return(_local1);
}
if (inDialogueID == 138) {
_local1.speakerName = "Nik'Nak";
_local1.speakerTitle = "Wizened Mage";
_local1.portraitID = 14;
_local1.dialogueText = "\"Yes, victory is mine and my power grows. My thanks to you, weak one.\"~\n\nNik'Nak floats across the field and exits the Arena.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(160));
return(_local1);
}
if (inDialogueID == 139) {
_local1.speakerName = "Arena Grinder";
_local1.speakerTitle = "Robotic Mangler";
_local1.portraitID = 17;
_local1.dialogueText = "\"Beep boop beep.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(161));
return(_local1);
}
if (inDialogueID == 140) {
_local1.speakerName = "Arena Grinder";
_local1.speakerTitle = "Robotic Mangler";
_local1.portraitID = 17;
_local1.dialogueText = "~The Arena Grinder struggles against smashed gears until your final blow sends sparks and smoke gushing out uncontrollably. As you stand panting, you vaguely hear your name being shouted by a few fans.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(162));
return(_local1);
}
if (inDialogueID == 141) {
_local1.speakerName = "Arena Grinder";
_local1.speakerTitle = "Robotic Mangler";
_local1.portraitID = 17;
_local1.dialogueText = "~As you crash to the floor in defeat, the Arena Grinder raises the closest thing it has to arms in victory. With a few bleeps and bloops, it turns and exits the Arena. The lack of emotion from the robot seems to be boring the crowd. Maybe you should win next time.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(163));
return(_local1);
}
if (inDialogueID == 142) {
_local1.speakerName = "Jingles";
_local1.speakerTitle = "Jester Prince";
_local1.portraitID = 20;
_local1.dialogueText = "~As you walk the tunnel leading into the Arena, you hear the sounds of many bells and a high-pitched, squealing laugh. You enter the battlefield to see a figure in loud, gaudy clothing bouncing and tumbling around at a blinding speed. The crowd roars with delight as he performs impossible maneuvers.~\n\n\"Looky looky, fresh meat! Want to see a magic trick, friend?!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(164));
return(_local1);
}
if (inDialogueID == 143) {
_local1.speakerName = "Jingles";
_local1.speakerTitle = "Jester Prince";
_local1.portraitID = 20;
_local1.dialogueText = "~Jingles takes a final blow midway through a tumble, unfolding into a bloody mess. The crowd erupts into a cacophony of whistling and applause. You spot a small collection of fans yelling your name.~\n\n\"%n! %n! %n!\"\n\n~With a grimace, Jingles clambers to his feet and scampers off in defeat.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(165));
return(_local1);
}
if (inDialogueID == 144) {
_local1.speakerName = "Jingles";
_local1.speakerTitle = "Jester Prince";
_local1.portraitID = 20;
_local1.dialogueText = "~As you fall to the ground, Jingles races to catch you in a mock loving embrace.~\n\n\"No! Don't leave me, %n! We were just getting to know each other!\"\n\n~Although the crowd seems to love his feigned drama, you can't help but notice a small section of people booing his victory.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(166));
return(_local1);
}
if (inDialogueID == 145) {
_local1.speakerName = "Slog";
_local1.speakerTitle = "Grog's Brother";
_local1.portraitID = 23;
_local1.dialogueText = "~A large ogre comes lumbering out onto the blood-drenched field of combat. Grog seems especially excited to see this brute, cheering him on and calling out his name. Slog looks, for the most part, confused.~\n\n\"My brother Grog says you are a bad man. I will smash you especially hard.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(167));
return(_local1);
}
if (inDialogueID == 146) {
_local1.speakerName = "Slog";
_local1.speakerTitle = "Grog's Brother";
_local1.portraitID = 23;
_local1.dialogueText = "~The ogre crashes to the ground with a loud thud, sending a cloud of dust into the air. You can hear Grog off on a viewing platform cursing your name. The crowd looks stunned at your victory over the brute, but erupt into applause. Your cheering section seems to be growing with each victory!~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(168));
return(_local1);
}
if (inDialogueID == 147) {
_local1.speakerName = "Slog";
_local1.speakerTitle = "Grog's Brother";
_local1.portraitID = 23;
_local1.dialogueText = "\"You can't beat Slog, I am much too big for you, puny man. Grog will be happy with me. Don't come back, puny man. Slog hates your stupid face.\"\n\n~Slog lumbers out of the Arena, leaving you on the floor tasting blood and dirt.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(169));
return(_local1);
}
if (inDialogueID == 148) {
_local1.speakerName = "Medusa";
_local1.speakerTitle = "Famous Baddie";
_local1.portraitID = 26;
_local1.dialogueText = "~When your next opponent takes the field, the crowd instantly goes crazy. You can hardly believe your eyes! It's Medusa, arguably the most famous monster in Andomeda!~\n\n\"Ah, so you recognize me, heh. Yes, it is I, Medusa. This is my Arena, friend. What's wrong? You look like you're feeling... sluggish.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(170));
return(_local1);
}
if (inDialogueID == 149) {
_local1.speakerName = "Medusa";
_local1.speakerTitle = "Famous Baddie";
_local1.portraitID = 26;
_local1.dialogueText = "\"How can his happen? I am Medusa! No one defeats me! I suspect foul play, I've never even heard of you, %c!\"\n\n~Medusa hangs her snaky head in shame and slithers off the field. As you look around the cheering crowd, you notice several large signs painted with your name!~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(171));
return(_local1);
}
if (inDialogueID == 150) {
_local1.speakerName = "Medusa";
_local1.speakerTitle = "Famous Baddie";
_local1.portraitID = 26;
_local1.dialogueText = "~Medusa slithers over to your crumpled body, looking down at you with mock pity.~\n\n\"Don't worry, child. You can't possibly defeat me. I'm the most legendary monster to grace this land. Ha!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(172));
return(_local1);
}
if (inDialogueID == 151) {
_local1.speakerName = "Jasper";
_local1.speakerTitle = "Voodoo Lich";
_local1.portraitID = 29;
_local1.dialogueText = "\"Yesss... Another soul!\"~\n\nThe booming voice echoes throughout the Arena. A decaying lich approaches you, strange blue tribal symbols covering his body. A hush comes over the crowd.~\n\n\"I will tear your very essence from the fabric of your existence.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(173));
return(_local1);
}
if (inDialogueID == 152) {
_local1.speakerName = "Jasper";
_local1.speakerTitle = "Voodoo Lich";
_local1.portraitID = 29;
_local1.dialogueText = "~You strike Jasper with the killing blow, only to see his body explode. Upon impact, screaming demons spiral out of his corpse to the sky! The colorful, yet gruesome, display sends the crowd into a frenzy. They begin chanting your name in unison! Their voices vibrate the air around you, shaking the very ground you stand upon!~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(174));
return(_local1);
}
if (inDialogueID == 153) {
_local1.speakerName = "Jasper";
_local1.speakerTitle = "Voodoo Lich";
_local1.portraitID = 29;
_local1.dialogueText = "~Before your body has a chance to collapse to the floor, Jasper grasps you with his fist, holding you up. His glowing eyes seem to be seeing right through you and you feel a strong force tugging at your very soul.~\n\n\"You are strong, young one. Your soul will remain yours for another day.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(175));
return(_local1);
}
if (inDialogueID == 154) {
_local1.speakerName = "Krax";
_local1.speakerTitle = "Arena Master";
_local1.portraitID = 32;
_local1.dialogueText = "~As Krax comes onto the field, the crowd erupts into a mixture of cheering and boos. Clearly, the crowd is split.~\n\n\"You seem like a smart man, %n. You have seen the trail of bodies leading to me. Why do you persist? I don't just win, I kill.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(176));
return(_local1);
}
if (inDialogueID == 155) {
_local1.speakerName = "Krax";
_local1.speakerTitle = "Arena Master";
_local1.portraitID = 32;
_local1.dialogueText = "~Krax casually laughs at your remark. You find his confidence and relaxed demeanor extremely irritating.~\n\n\"Ah, more clever than I even gave you credit. No matter, simply KNOWING about it will do nothing to save you from its lethal effects. Time to end this.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(177));
return(_local1);
}
if (inDialogueID == 156) {
_local1.speakerName = "Krax";
_local1.speakerTitle = "Arena Master";
_local1.portraitID = 32;
_local1.dialogueText = "~Krax falls to the ground, a look of astonishment smeared across his face. From upon the royal platform, you notice King Alton watching you with a stern look. Your eyes lock and he affords you a solemn nod. You know what to do. Without a thought, you cleave Krax' head from his body.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(178));
return(_local1);
}
if (inDialogueID == 157) {
_local1.speakerName = "Krax";
_local1.speakerTitle = "Arena Master";
_local1.portraitID = 32;
_local1.dialogueText = "~You stand before the roaring crowd, drenched in sweat and the blood of both you and Krax. With a cry of victory, you throw your fists to the sky, drinking it in. \n\n~All hail %c, the new Arena Master!";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(179));
return(_local1);
}
if (inDialogueID == 158) {
_local1.speakerName = "Krax";
_local1.speakerTitle = "Arena Master";
_local1.portraitID = 32;
_local1.dialogueText = "~Krax walks over to your bloodied body, kicking you sharply in the ribs.\n\n\"Your will is strong, I'm surprised you lived through the poison. No matter. I think you've learned your lesson.\"~\n\n~Krax spits on you before leaving the Arena.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(180));
return(_local1);
}
if (inDialogueID == 159) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~A tall man wearing a showy cloak weaves through the crowd in your direction. You recognize him as the Rune salesman from a while back! He notices you and makes his way over.~\n\n\"Psst! Remember me? Runes for the Black Market?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(181));
return(_local1);
}
if (inDialogueID == 160) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Excellent, you are wise to remember. However, with the rising cost of a good meal at the Puddle of Wax Tavern, the prices have gone up. I'll sell you one for 300 gold, two for 575 gold, or three for 825 gold.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(182));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(183));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(184));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(185));
return(_local1);
}
if (inDialogueID == 161) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~The man inconspicuously trades you the gold for the Runes.~\n\n\"Good day to you, my friend. I hope the Black Market has what you're looking for...\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(186));
return(_local1);
}
if (inDialogueID == 162) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Well, you know the routine. When you are ready to spend some gold, come find me in the Market Square.\"~\n\nThe man vanishes among the passers-by, whispering all the while.~\n\n+ This quest can be retried in the Tavern +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(230));
return(_local1);
}
if (inDialogueID == 163) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~A crowd is gathering around a man atop a small wooden stage. He is curiously dressed in a tattered jester outfit, bells jingling with every emotive gesture.\n\n~\"Gather around, friends! Solve an easy riddle and win two rare stones!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(187));
return(_local1);
}
if (inDialogueID == 164) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"You sir! The %c! What say thee? Pay a mere 250 gold for a chance to win two of these strange stones.\"\n\n~The stones he holds appear to be Runes! He must not know how valuable they are.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(188));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(189));
return(_local1);
}
if (inDialogueID == 165) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~At your response, the jester leaps off the stage, executing an amazing front flip. He pulls you up on stage with him, taking your 250 gold and sitting you on a barrel.~\n\n\"We have a gambling man among us, friends! Are you ready for your riddle?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(190));
return(_local1);
}
if (inDialogueID == 166) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~The jester lowers his voice, setting the mood with a mysterious tone...\n\n~\"When Talesworth goes dark,\nWe hunt and thrive,\nThe color of blood,\nDoth come alive...\n\nWho am I?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(191));
return(_local1);
}
if (inDialogueID == 167) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Correct! Good for you, wise sir! Take these incredible stones as your prize!\"\n\n~The man bounces around the stage while coercing the small group of onlookers to cheer loudly. You take your Runes and continue on your way.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(192));
return(_local1);
}
if (inDialogueID == 168) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Incorrect! So sorry, good sir! I'll be here all day if you want to take another stab at it!\"\n\n~The small group of onlookers seems to lose interest and wander off. You do the same.~\n\n+ This quest can be retried in the Tavern +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(193));
return(_local1);
}
if (inDialogueID == 169) {
_local1.speakerName = "Market Square";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"I see, I see. Well, surely someone is up for the challenge?\"\n\n~The man continues to call out names among passers-by, offering the same trivia and prize. You continue on your way.~\n\n+ This quest can be retried in the Tavern +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(193));
return(_local1);
}
if (inDialogueID == 170) {
_local1.speakerName = "Felton Burrfoot";
_local1.speakerTitle = "Master Herbalist";
_local1.portraitID = 9009;
_local1.dialogueText = "~Felton approaches from a nearby herb vendor. His expression warns you that he is about to ask for something.~\n\n\"%n, hellooo! I'm so glad I found you. I wonder if you would go pick some herbs for me. The vendor prices are outrageous! I can pay 500 gold.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(194));
return(_local1);
}
if (inDialogueID == 171) {
_local1.speakerName = "Felton Burrfoot";
_local1.speakerTitle = "Master Herbalist";
_local1.portraitID = 9009;
_local1.dialogueText = "\"Splendid! Here is where you will find them.\"~\n\nFelton hands you a crude map leading to the outskirts of Hallsguard Forest. ~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(195));
return(_local1);
}
if (inDialogueID == 172) {
_local1.speakerName = "Felton Burrfoot";
_local1.speakerTitle = "Master Herbalist";
_local1.portraitID = 9009;
_local1.dialogueText = "~Feeling satisfied for completing your task, you head back to Talesworth and give the herbs to Felton.\n\n~\"Thank you, %n. You are truly a boon to this fine city! Here is your payment.\"~\n\nHe hands you 500 gold.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(198));
return(_local1);
}
if (inDialogueID == 173) {
_local1.speakerName = "Outskirts";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "~Your trip is uneventful and within a few hours, you reach the forest. Felton's map is fairly accurate and the herbs are right where you expect them to be. As you prepare to head back, you notice some strange ruins nearby.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(196));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(197));
return(_local1);
}
if (inDialogueID == 174) {
_local1.speakerName = "Temple Ruins";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "~Your curiosity takes you closer. You enter into what appears to be a ruined temple. Much of the ceiling remains intact, but the sky peeks through in several places. This structure is clearly not stable. Movement triggers your reflexes and you turn to see a massive boulder airborne and headed in your direction!~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(199));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(200));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(201));
return(_local1);
}
if (inDialogueID == 175) {
_local1.speakerName = "Temple Ruins";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "~You dodge, but not nearly fast enough. The boulder clips your left leg, sending a shudder of pain through your body and taking away 10% of your health. You gather yourself to your feet and press into the rubble ahead.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(202));
return(_local1);
}
if (inDialogueID == 176) {
_local1.speakerName = "Temple Ruins";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "~Bravely, you press on into the shattered remains of the temple, barely rolling under the boulder in it's arc as it careens over your head!~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(202));
return(_local1);
}
if (inDialogueID == 177) {
_local1.speakerName = "Temple Ruins";
_local1.speakerTitle = "Hallsguard Forest";
_local1.portraitID = 9007;
_local1.dialogueText = "~You turn to flee, but the boulder moves faster, barely missing your head and crashing into the wall above the entrance. The jolt causes a large portion of the ceiling to plummet down on top of you, taking away 10% of your health.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(202));
return(_local1);
}
if (inDialogueID == 178) {
_local1.speakerName = "Gok";
_local1.speakerTitle = "Disgruntled Ogre";
_local1.portraitID = 9003;
_local1.dialogueText = "~You move deeper into the ruined Temple and the source of the boulder becomes immediately apparent in the form of a massive, two-headed ogre. He is already on his way to greet you, rampaging over stones and debris in a charge! A mighty roar bellows from his throat.~\n\n\"Gok protects pretty stones!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(203));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(204));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(205));
return(_local1);
}
if (inDialogueID == 179) {
_local1.speakerName = "Gok";
_local1.speakerTitle = "Disgruntled Ogre";
_local1.portraitID = 9003;
_local1.dialogueText = "~With agility and grace you weave through the ogre's legs, spinning to face him in what is now an (almost) fair fight!~\n\n\"Small man fast. You cannot have glowy stones, small man!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(206));
return(_local1);
}
if (inDialogueID == 180) {
_local1.speakerName = "Gok";
_local1.speakerTitle = "Disgruntled Ogre";
_local1.portraitID = 9003;
_local1.dialogueText = "~The ogre barrels into you with astonishing force, launching you 20 yards into the air. You come crashing down with a painful thud, taking away 10% of your life. Gok approaches.~\n\n\"You cannot have glowy stones, small man!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(206));
return(_local1);
}
if (inDialogueID == 181) {
_local1.speakerName = "Gok";
_local1.speakerTitle = "Disgruntled Ogre";
_local1.portraitID = 9003;
_local1.dialogueText = "~Your attempt to scramble to higher ground is disrupted by all the loose rubble. You brace for the impact as Gok barrels into you, launching you 20 yards into the air. You come crashing down with a painful thud, taking away 10% of your life. Gok approaches.~\n\n\"You cannot have glowy stones, small man!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(206));
return(_local1);
}
if (inDialogueID == 182) {
_local1.speakerName = "Gok";
_local1.speakerTitle = "Disgruntled Ogre";
_local1.portraitID = 9003;
_local1.dialogueText = "~The ogre collapses to the ground, causing the walls and ceiling around you to shudder and crumble. A quick search of the room reveals the \"glowy stones\" that Gok spoke of. As you suspected, they are Runes! You quickly make your way out before the whole place collapses around you!~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(208));
return(_local1);
}
if (inDialogueID == 183) {
_local1.speakerName = "Gok";
_local1.speakerTitle = "Disgruntled Ogre";
_local1.portraitID = 9003;
_local1.dialogueText = "\"Har! You never get my glowy stones, small man! You go now.\"\n\n~The ogre hurls your broken body from the temple, taking your herbs in the process. You head back to Talesworth, defeated and broken.~\n\n+ This quest can be retried in the Tavern +";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(207));
return(_local1);
}
if (inDialogueID == 184) {
_local1.speakerName = "Main Street";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~As you make your way down Main Street, a small child raps lightly on your leg. When you peer down at him, he hands you a small note and scurries off. It reads,~\n\nPlease meet me in The Dark at once. The matter is urgent. Signed, Lar";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(209));
return(_local1);
}
if (inDialogueID == 185) {
_local1.speakerName = "The Dark";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~You make your way through winding streets to The Dark. The cheerful Talesworth vibe is quickly replaced by a gloomy overcast. What could Lar want with you? You have your answer in the form of a punch to the back of the head. You spin to face a strange man with a glowing axe.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(210));
return(_local1);
}
if (inDialogueID == 186) {
_local1.speakerName = "Fizzle";
_local1.speakerTitle = "Hired Mercenary";
_local1.portraitID = 9011;
_local1.dialogueText = "\"I'm the guy that's gonna make you hurt. Swampy the Gambler sends his regards. He asked me to illustrate how we handle squealers here in The Dark.\"~\n\nHe must be referring to that shady gambler you reported! Lar didn't summon you, this whole thing is a trap!~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(211));
return(_local1);
}
if (inDialogueID == 187) {
_local1.speakerName = "The Dark";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9005;
_local1.dialogueText = "~You wipe your blade clean on the man's shirt and notice some coins spilling from his pouch onto the ground. Must be the bounty gold for attempting to take you out. Yeah, that probably belongs in your pocket. You grab it and head back to Main Street.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(212));
return(_local1);
}
if (inDialogueID == 188) {
_local1.speakerName = "Fizzle";
_local1.speakerTitle = "Hired Mercenary";
_local1.portraitID = 9011;
_local1.dialogueText = "\"Consider this a warning. Next time, keep your mouth shut, squealer.\"~\n\nThe man laughs casually before sauntering off into the filth and grime of The Dark.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(213));
return(_local1);
}
if (inDialogueID == 189) {
_local1.speakerName = "Path to Arena";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~As head towards the Arena for your next match, you come upon a wall of people dressed in leather. They each have a red bandana tied to their ankle and they clearly intend to block further progress. The woman who appears to be their leader steps forward.~\n\n\"Are you %n? The %c who killed Anya?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(214));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(215));
return(_local1);
}
if (inDialogueID == 190) {
_local1.speakerName = "Path to Arena";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~You nod and your hand moves to your weapon, preparing for an onslaught. However, the group immediately bends down to one knee. Their leader speaks to you.\n\n~\"Only someone with sharp skills in thievery could have reached Anya. Only one of truly great power could have defeated her. By custom, you are now offered the position of Guild Mandrake of the Crimson Brotherhood. What say thee?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(216));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(217));
return(_local1);
}
if (inDialogueID == 191) {
_local1.speakerName = "Path to Arena";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Your decision is respected, %n. We will choose a new Mandrake from among our Brothers.\"~\n\nShe bows, and with a wave, the rest of the thieves fall in line behind her. As they mix into the crowd around you, the entire group seems to instantly vanish.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(218));
return(_local1);
}
if (inDialogueID == 192) {
_local1.speakerName = "Path to Arena";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Then it is so. %n, you are now our Guild Mandrake. Please accept this offering of gold and runes in celebration of your new position. You have the entire Crimsons Brotherhood behind you as you make your way to Krax in the Arena!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(219));
return(_local1);
}
if (inDialogueID == 193) {
_local1.speakerName = "Path to Arena";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~The woman eyes you suspiciously.~\n\n\"Hmm... Our sources are rarely wrong. No matter, sorry to bother you.\"~\n\nShe bows, and with a wave, the rest of the thieves fall in line behind her. As they mix into the crowd around you, the entire group seems to instantly vanish.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(218));
return(_local1);
}
if (inDialogueID == 194) {
_local1.speakerName = "Outside Tavern";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~A drunk man stumbles over to you. You recognize him as Harney, the town drunk that you helped to harass River.~\n\n\"Hey, itsh my buddy! Psssssshht...Buddy, want to buy a Rune for 400 gold? It'sh... um... purple and says Rune on it...\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(220));
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(221));
return(_local1);
}
if (inDialogueID == 195) {
_local1.speakerName = "Outside Tavern";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~You hand 400 gold to Harney and he turns to reach in his pocket. Seeming to have a change of mind, he spins back and shoves you hard. The liquor pumping through his veins must give him incredible strength. You hit the dirt and when you scramble to his feet, he is nowhere to be seen.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(222));
return(_local1);
}
if (inDialogueID == 196) {
_local1.speakerName = "Outside Tavern";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~Something about this just doesn't seem right and you refuse Harney's offer.~\n\n\"Well, sho I'm a liar now!? Well, sho what! I need booze. I just...\"\n\n~Harney gets sick all over himself then stumbles off to attempt to trick someone else.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(222));
return(_local1);
}
if (inDialogueID == 197) {
_local1.speakerName = "Outside Tavern";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~River, the woman you saved from Harney the town drunk, is just exiting the Puddle of Wax tavern when she notices you. She approaches you with a smile on her face.~\n\n\"Brave %c, I'm so glad to see you. I never got a chance to properly thank you for your help.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(223));
return(_local1);
}
if (inDialogueID == 198) {
_local1.speakerName = "Outside Tavern";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~She glances around to make sure no one is watching.~\n\n\"Here, please take this Rune, it is the least I can do.\"\n\n~She gives you a quick hug and continues on her way.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(224));
return(_local1);
}
if (inDialogueID == 199) {
_local1.speakerName = "Felton Burrfoot";
_local1.speakerTitle = "Master Herbalist";
_local1.portraitID = 9009;
_local1.dialogueText = "~Herbs in hand, you head back to Talesworth and give them to Felton.\n\n~\"Thank you, %n. You are truly a boon to this fine city! Here is your payment.\"~\n\nHe hands you 500 gold.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(198));
return(_local1);
}
if (inDialogueID == 200) {
_local1.speakerName = "Path to Arena";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~The woman bows, and with a wave, the rest of the thieves fall in line behind her. As they mix into the crowd around you, the entire group seems to instantly vanish.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(225));
return(_local1);
}
if (inDialogueID == 201) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"Ah, I see you have learned Groin Kick! Some skills, including this one, have the ability to INTERRUPT what your opponent is doing. This is a very important concept in the Arena. You can use it to stop especially gruesome attacks.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 202) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"Ah, I see you have learned Psychic Blast! Some skills, including this one, have the ability to INTERRUPT what your opponent is doing. This is a very important concept in the Arena. You can use it to stop especially gruesome attacks.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 203) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"Ah, I see you have learned Uppercut! Some skills, including this one, have the ability to INTERRUPT what your opponent is doing. This is a very important concept in the Arena. You can use it to stop especially gruesome attacks.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 204) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "~You notice Lar here in the Training Grounds helping a City Guard trainee with some swordplay.~\n\n\"Ah, %n, welcome to the Training Grounds. Here, you will learn new skills or spells. Remember to check back each time you gain a level for new choices!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 205) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"In the Bazaar, you will find all manners of exotic Artifacts! You have five slots you can put an Artifact in: Head, Back, Hands, Finger, and Magic. Also, every time you achieve three combat victories, the Bazaar will receive a fresh shipment of equipment for purchase!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(226));
return(_local1);
}
if (inDialogueID == 206) {
_local1.speakerName = "Felton Burrfoot";
_local1.speakerTitle = "Master Herbalist";
_local1.portraitID = 9009;
_local1.dialogueText = "~You wander into the raucous Tavern, eager for a pint. A heavyset man wearing a huge grin claps you on the back.~\n\n\"Hellooo, %c! Welcome to the Tavern! Have any unfinished quests? You'll find 'em here. Over on the right, you can manage your Artifacts you've found. You can even pawn your Artifacts if you need gold, but you must remove them first!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 207) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "~Rook saunters over. He seems to be very comfortable among the other shady patrons of the Black Market.~\n\n\"Here you'll find Skill Upgrades for sale, but you can only pay with those rare Runes you've been finding from questing. Once you upgrade a Skill, it STAYS upgraded even if you train a better version of it in the Training Grounds.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(232));
return(_local1);
}
if (inDialogueID == 208) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "\"Ah, good question! Green Artifacts are merely uncommon, Blue means somewhat rare, and Orange are the most ancient devices known to this land!\"~\n\nLar wanders off, seeming to be a bit uncomfortable around all this magic.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 209) {
_local1.speakerName = "Arena Gates";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "~A nearby man carrying a heavy sack over his shoulder notices you and comes over to say hi. His bag jingles with each step. He has wild eyes and looks like a man possessed.~\n\n\"Hail, friend! Hail! I've seen you around here quite a bit, I have. Thought I'd bid thee hello from a fellow gold farmer, right? Right?\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(227));
return(_local1);
}
if (inDialogueID == 210) {
_local1.speakerName = "Arena Gates";
_local1.speakerTitle = "Talesworth City";
_local1.portraitID = 9006;
_local1.dialogueText = "\"Sure, gold farming! You know, fighting in the Arena over and over without leveling to save up lots o' gold! Gotta have that gold, heh! The Arena Overseer is onto us though, and after ten victories, you'll start to earn 5% less gold each fight. Anyway, thought you knew. Good luck, friend!\"\n\n~The man trots off, hugging his sack of coins with love in his eyes.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(228));
return(_local1);
}
if (inDialogueID == 211) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "~Lar approaches, beaming with pride.~\n\n\"Great work so far, %n! You have attained enough experience to face the level 1 Boss, Pepe LeTank. If you defeat him, you will gain a level. However, you can always continue to fight in the Arena to gain more gold before leveling. The choice is yours.\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
if (inDialogueID == 212) {
_local1.speakerName = "Lar";
_local1.speakerTitle = "City Guard Captain";
_local1.portraitID = 9001;
_local1.dialogueText = "~Lar winces from the stands. He calls out to you as you leave the Arena.~\n\n\"%n! You can't let him heal! Just make sure you stun or interrupt him when he tries. If you examine his skills before combat, you will see that he will start trying to heal once his health dips below 50%. Good luck!\"";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(231));
return(_local1);
}
if (inDialogueID == 213) {
_local1.speakerName = "Rook";
_local1.speakerTitle = "Shadowy Figure";
_local1.portraitID = 9000;
_local1.dialogueText = "\"Oh, one more thing, you probably won't be able to upgrade everything, so choose wisely!\"~\n\nRook wanders off, nodding silently with a crooked smile at some other patrons that he knows.~";
_local1.dialogueOptions.push(DialogueOption.GetDialogueOption(3));
return(_local1);
}
}
var dialogueID = -1;
var speakerName = "";
var speakerTitle = "";
var portraitID = -1;
var dialogueText = "";
var dialogueOptions = undefined;
var randomizeOptions = false;
}
Symbol 854 MovieClip [__Packages.DialogueOption] Frame 0
class DialogueOption
{
function DialogueOption () {
}
static function GetDialogueOption(inDialogueOptionID) {
var _local1 = new DialogueOption();
_local1.dialogueOptionID = inDialogueOptionID;
if (inDialogueOptionID == 1) {
_local1.optionText = "Register for Arena";
_local1.dialogueID = 2;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 2) {
_local1.optionText = "Sign Roster";
_local1.dialogueID = 3;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 3) {
_local1.optionText = "\"Farewell\"";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 4) {
_local1.optionText = "Continue";
_local1.dialogueID = 7;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 5) {
_local1.optionText = "\"We shall see, fat man!\"";
_local1.encounterID = 1;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 6) {
_local1.optionText = "\"I'll be back, fat man!\"";
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 7) {
_local1.optionText = "\"Thanks, I guess.\"";
_local1.completesEvent = 2;
_local1.costGold = -10;
return(_local1);
}
if (inDialogueOptionID == 8) {
_local1.optionText = "\"I'll help! Show me the way, Lar.\"";
_local1.dialogueID = 15;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 9) {
_local1.optionText = "\"Sorry, The Dark is none of my concern.\"";
_local1.dialogueID = 16;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 10) {
_local1.optionText = "\"I'm ready.\"";
_local1.encounterID = 2;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 11) {
_local1.optionText = "\"Will do!\"";
_local1.encounterID = 3;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 12) {
_local1.optionText = "\"Glad I could help!\"";
_local1.completesEvent = 2;
_local1.costGold = -10;
return(_local1);
}
if (inDialogueOptionID == 13) {
_local1.optionText = "Continue...";
_local1.dialogueID = 20;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 14) {
_local1.optionText = "\"I'm listening...\"";
_local1.dialogueID = 22;
return(_local1);
}
if (inDialogueOptionID == 15) {
_local1.optionText = "\"Yeah, I'll try\"";
_local1.dialogueID = 24;
_local1.costGold = 10;
return(_local1);
}
if (inDialogueOptionID == 16) {
_local1.optionText = "\"No, thanks.\"";
_local1.dialogueID = 23;
return(_local1);
}
if (inDialogueOptionID == 17) {
_local1.optionText = "Turn over the red shell";
_local1.dialogueID = 25;
return(_local1);
}
if (inDialogueOptionID == 18) {
_local1.optionText = "Turn over the blue shell";
_local1.dialogueID = 26;
return(_local1);
}
if (inDialogueOptionID == 19) {
_local1.optionText = "Turn over the green shell";
_local1.dialogueID = 26;
return(_local1);
}
if (inDialogueOptionID == 20) {
_local1.optionText = "Back to Main street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 21) {
_local1.optionText = "Back to Main street";
_local1.completesEvent = 2;
_local1.costGold = -35;
return(_local1);
}
if (inDialogueOptionID == 22) {
_local1.optionText = "Sure, his name is:";
_local1.optionType = 1;
_local1.dialogueID = 29;
_local1.correctAnswers = new Array();
_local1.correctAnswers.push("LAR");
_local1.correctAnswers.push("LARS");
_local1.incorrectDialogueID = 28;
return(_local1);
}
if (inDialogueOptionID == 23) {
_local1.optionText = "\"I will try, farewell.\"";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 24) {
_local1.optionText = "\"Farewell\"";
_local1.completesEvent = 2;
_local1.costGold = -15;
_local1.costExp = -50;
return(_local1);
}
if (inDialogueOptionID == 25) {
_local1.optionText = "Report him to a Guard";
_local1.dialogueID = 30;
_local1.milestoneID = 3;
return(_local1);
}
if (inDialogueOptionID == 26) {
_local1.optionText = "Follow the strange figure";
_local1.dialogueID = 32;
return(_local1);
}
if (inDialogueOptionID == 27) {
_local1.optionText = "Enter the store";
_local1.dialogueID = 33;
return(_local1);
}
if (inDialogueOptionID == 28) {
_local1.optionText = "Weird... but I'll go in...";
_local1.dialogueID = 34;
return(_local1);
}
if (inDialogueOptionID == 29) {
_local1.optionText = "Push the button";
_local1.dialogueID = 35;
return(_local1);
}
if (inDialogueOptionID == 30) {
_local1.optionText = "What do you answer?";
_local1.optionType = 1;
_local1.dialogueID = 36;
_local1.correctAnswers = new Array();
_local1.correctAnswers.push("ANYA");
_local1.incorrectDialogueID = 37;
_local1.healthReduction = 0.15;
return(_local1);
}
if (inDialogueOptionID == 31) {
_local1.optionText = "Continue...";
_local1.dialogueID = 38;
return(_local1);
}
if (inDialogueOptionID == 32) {
_local1.optionText = "Wait 2 seconds and charge";
_local1.dialogueID = 40;
_local1.healthReduction = 0.15;
return(_local1);
}
if (inDialogueOptionID == 33) {
_local1.optionText = "Wait 6 seconds and charge";
_local1.dialogueID = 39;
return(_local1);
}
if (inDialogueOptionID == 34) {
_local1.optionText = "Wait 8 seconds and charge";
_local1.dialogueID = 40;
_local1.healthReduction = 0.15;
return(_local1);
}
if (inDialogueOptionID == 35) {
_local1.optionText = "Wait 10 seconds and charge";
_local1.dialogueID = 40;
_local1.healthReduction = 0.15;
return(_local1);
}
if (inDialogueOptionID == 36) {
_local1.optionText = "Continue...";
_local1.dialogueID = 41;
return(_local1);
}
if (inDialogueOptionID == 37) {
_local1.optionText = "Press the first button";
_local1.dialogueID = 42;
return(_local1);
}
if (inDialogueOptionID == 38) {
_local1.optionText = "Press the second button";
_local1.dialogueID = 43;
_local1.healthReduction = 0.1;
return(_local1);
}
if (inDialogueOptionID == 39) {
_local1.optionText = "Press the third button";
_local1.dialogueID = 43;
_local1.healthReduction = 0.1;
return(_local1);
}
if (inDialogueOptionID == 40) {
_local1.optionText = "Continue...";
_local1.dialogueID = 45;
return(_local1);
}
if (inDialogueOptionID == 41) {
_local1.optionText = "Examine the statues";
_local1.dialogueID = 44;
return(_local1);
}
if (inDialogueOptionID == 42) {
_local1.optionText = "\"Ha! That guy!?\"";
_local1.dialogueID = 46;
return(_local1);
}
if (inDialogueOptionID == 43) {
_local1.optionText = "\"Bring it.\"";
_local1.encounterID = 4;
return(_local1);
}
if (inDialogueOptionID == 44) {
_local1.optionText = "\"Let's talk about poison...\"";
_local1.dialogueID = 49;
return(_local1);
}
if (inDialogueOptionID == 45) {
_local1.optionText = "\"Ok, fight THEN talk.\"";
_local1.encounterID = 5;
return(_local1);
}
if (inDialogueOptionID == 46) {
_local1.optionText = "Leave and let Anya live";
_local1.dialogueID = 51;
_local1.milestoneID = 7;
return(_local1);
}
if (inDialogueOptionID == 47) {
_local1.optionText = "Finish her";
_local1.dialogueID = 52;
_local1.milestoneID = 6;
return(_local1);
}
if (inDialogueOptionID == 48) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
_local1.milestoneID = 5;
return(_local1);
}
if (inDialogueOptionID == 49) {
_local1.optionText = "Follow apprentice blacksmith";
_local1.dialogueID = 54;
return(_local1);
}
if (inDialogueOptionID == 50) {
_local1.optionText = "\"Well met, Trey.\"";
_local1.dialogueID = 55;
return(_local1);
}
if (inDialogueOptionID == 51) {
_local1.optionText = "\"Anything you can do to help?\"";
_local1.dialogueID = 56;
return(_local1);
}
if (inDialogueOptionID == 52) {
_local1.optionText = "\"Great! Where is he?\"";
_local1.dialogueID = 57;
return(_local1);
}
if (inDialogueOptionID == 53) {
_local1.optionText = "Follow map to Shimshank";
_local1.dialogueID = 58;
return(_local1);
}
if (inDialogueOptionID == 54) {
_local1.optionText = "Explore the clearing";
_local1.dialogueID = 59;
return(_local1);
}
if (inDialogueOptionID == 55) {
_local1.optionText = "\"Indeed I am, monster.\"";
_local1.dialogueID = 60;
return(_local1);
}
if (inDialogueOptionID == 56) {
_local1.optionText = "\"We shall see...\"";
_local1.encounterID = 6;
return(_local1);
}
if (inDialogueOptionID == 57) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 58) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
_local1.milestoneID = 2;
_local1.rewardArtifact = 201;
return(_local1);
}
if (inDialogueOptionID == 59) {
_local1.optionText = "\"I will retrieve the Crown.\"";
_local1.dialogueID = 63;
return(_local1);
}
if (inDialogueOptionID == 60) {
_local1.optionText = "\"Uh oh...\"";
_local1.dialogueID = 64;
return(_local1);
}
if (inDialogueOptionID == 61) {
_local1.optionText = "Follow Grog";
_local1.dialogueID = 66;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 62) {
_local1.optionText = "\"What's the problem?\"";
_local1.dialogueID = 67;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 63) {
_local1.optionText = "\"Die, goblin fool!\"";
_local1.encounterID = 7;
_local1.completesEvent = 0;
return(_local1);
}
if (inDialogueOptionID == 64) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 65) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 66) {
_local1.optionText = "\"Thank you, your Highness.\"";
_local1.dialogueID = 72;
return(_local1);
}
if (inDialogueOptionID == 67) {
_local1.optionText = "\"Farewell!\"";
_local1.completesEvent = 1;
_local1.costRunes = -1;
return(_local1);
}
if (inDialogueOptionID == 68) {
_local1.optionText = "\"I will not forget.\"";
_local1.dialogueID = 71;
return(_local1);
}
if (inDialogueOptionID == 69) {
_local1.optionText = "\"No.\"";
_local1.dialogueID = 74;
return(_local1);
}
if (inDialogueOptionID == 70) {
_local1.optionText = "\"Sure, let's go.\"";
_local1.dialogueID = 75;
return(_local1);
}
if (inDialogueOptionID == 71) {
_local1.optionText = "Flee the cul-de-sac!";
_local1.dialogueID = 76;
return(_local1);
}
if (inDialogueOptionID == 72) {
_local1.optionText = "Stay and face Rook.";
_local1.dialogueID = 77;
return(_local1);
}
if (inDialogueOptionID == 73) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 74) {
_local1.optionText = "\"I want it!\"";
_local1.dialogueID = 79;
_local1.costGold = 300;
return(_local1);
}
if (inDialogueOptionID == 75) {
_local1.optionText = "\"No, thanks.\"";
_local1.dialogueID = 78;
return(_local1);
}
if (inDialogueOptionID == 76) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
_local1.milestoneID = 10;
return(_local1);
}
if (inDialogueOptionID == 77) {
_local1.optionText = "\"Krax is using Death Watch.\"";
_local1.dialogueID = 81;
return(_local1);
}
if (inDialogueOptionID == 78) {
_local1.optionText = "\"As you wish.\"";
_local1.dialogueID = 82;
return(_local1);
}
if (inDialogueOptionID == 79) {
_local1.optionText = "\"I am.\"";
_local1.dialogueID = 83;
return(_local1);
}
if (inDialogueOptionID == 80) {
_local1.optionText = "\"It's called Death Watch.\"";
_local1.dialogueID = 84;
return(_local1);
}
if (inDialogueOptionID == 81) {
_local1.optionText = "Wait patiently.";
_local1.dialogueID = 85;
return(_local1);
}
if (inDialogueOptionID == 82) {
_local1.optionText = "\"Where can I find it?\"";
_local1.dialogueID = 86;
return(_local1);
}
if (inDialogueOptionID == 83) {
_local1.optionText = "\"Thank you, Felton.\"";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 84) {
_local1.optionText = "\"I am honored, your highness.\"";
_local1.dialogueID = 88;
return(_local1);
}
if (inDialogueOptionID == 85) {
_local1.optionText = "\"Sounds serious...\"";
_local1.dialogueID = 89;
return(_local1);
}
if (inDialogueOptionID == 86) {
_local1.optionText = "\"Krax must face justice.\"";
_local1.dialogueID = 90;
return(_local1);
}
if (inDialogueOptionID == 87) {
_local1.optionText = "\"But... what if... ok.\"";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 88) {
_local1.optionText = "\"Woah, where did you come from?\"";
_local1.dialogueID = 92;
return(_local1);
}
if (inDialogueOptionID == 89) {
_local1.optionText = "\"Um, ok. What do you know?\"";
_local1.dialogueID = 93;
return(_local1);
}
if (inDialogueOptionID == 90) {
_local1.optionText = "\"Go on...\"";
_local1.dialogueID = 94;
return(_local1);
}
if (inDialogueOptionID == 91) {
_local1.optionText = "\"Makes sense.\"";
_local1.dialogueID = 95;
return(_local1);
}
if (inDialogueOptionID == 92) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 93) {
_local1.optionText = "\"What is needed?\"";
_local1.dialogueID = 97;
return(_local1);
}
if (inDialogueOptionID == 94) {
_local1.optionText = "\"I will find Gwendolyn.\"";
_local1.dialogueID = 99;
return(_local1);
}
if (inDialogueOptionID == 95) {
_local1.optionText = "\"Sorry, I have no time.\"";
_local1.dialogueID = 98;
return(_local1);
}
if (inDialogueOptionID == 96) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 97) {
_local1.optionText = "Go North";
_local1.dialogueID = 100;
return(_local1);
}
if (inDialogueOptionID == 98) {
_local1.optionText = "Go West";
_local1.dialogueID = 100;
return(_local1);
}
if (inDialogueOptionID == 99) {
_local1.optionText = "Go North";
_local1.dialogueID = 101;
return(_local1);
}
if (inDialogueOptionID == 100) {
_local1.optionText = "Go East";
_local1.dialogueID = 103;
return(_local1);
}
if (inDialogueOptionID == 101) {
_local1.optionText = "Go West";
_local1.dialogueID = 104;
return(_local1);
}
if (inDialogueOptionID == 102) {
_local1.optionText = "Go North";
_local1.dialogueID = 101;
return(_local1);
}
if (inDialogueOptionID == 103) {
_local1.optionText = "Go East";
_local1.dialogueID = 102;
return(_local1);
}
if (inDialogueOptionID == 104) {
_local1.optionText = "Go South";
_local1.dialogueID = 103;
return(_local1);
}
if (inDialogueOptionID == 105) {
_local1.optionText = "Go West";
_local1.dialogueID = 100;
return(_local1);
}
if (inDialogueOptionID == 106) {
_local1.optionText = "Go North";
_local1.dialogueID = 103;
return(_local1);
}
if (inDialogueOptionID == 107) {
_local1.optionText = "Go East";
_local1.dialogueID = 101;
return(_local1);
}
if (inDialogueOptionID == 108) {
_local1.optionText = "Go South";
_local1.dialogueID = 100;
return(_local1);
}
if (inDialogueOptionID == 109) {
_local1.optionText = "Go West";
_local1.dialogueID = 100;
return(_local1);
}
if (inDialogueOptionID == 110) {
_local1.optionText = "Go North";
_local1.dialogueID = 102;
return(_local1);
}
if (inDialogueOptionID == 111) {
_local1.optionText = "Go East";
_local1.dialogueID = 102;
return(_local1);
}
if (inDialogueOptionID == 112) {
_local1.optionText = "Go South";
_local1.dialogueID = 105;
return(_local1);
}
if (inDialogueOptionID == 113) {
_local1.optionText = "Go West";
_local1.dialogueID = 100;
return(_local1);
}
if (inDialogueOptionID == 114) {
_local1.optionText = "Go North";
_local1.dialogueID = 101;
return(_local1);
}
if (inDialogueOptionID == 115) {
_local1.optionText = "Go South";
_local1.dialogueID = 105;
return(_local1);
}
if (inDialogueOptionID == 116) {
_local1.optionText = "Go West";
_local1.dialogueID = 106;
return(_local1);
}
if (inDialogueOptionID == 117) {
_local1.optionText = "Go East";
_local1.dialogueID = 101;
return(_local1);
}
if (inDialogueOptionID == 118) {
_local1.optionText = "Go South";
_local1.dialogueID = 105;
return(_local1);
}
if (inDialogueOptionID == 119) {
_local1.optionText = "Go West";
_local1.dialogueID = 106;
return(_local1);
}
if (inDialogueOptionID == 120) {
_local1.optionText = "Go North";
_local1.dialogueID = 102;
return(_local1);
}
if (inDialogueOptionID == 121) {
_local1.optionText = "Go East";
_local1.dialogueID = 107;
return(_local1);
}
if (inDialogueOptionID == 122) {
_local1.optionText = "Free her!";
_local1.dialogueID = 108;
return(_local1);
}
if (inDialogueOptionID == 123) {
_local1.optionText = "Head back to Amelie";
_local1.dialogueID = 109;
return(_local1);
}
if (inDialogueOptionID == 124) {
_local1.optionText = "Back to Main St.";
_local1.completesEvent = 2;
_local1.costGold = -235;
_local1.costExp = -150;
_local1.milestoneID = 1;
return(_local1);
}
if (inDialogueOptionID == 125) {
_local1.optionText = "Give up on your quest";
_local1.dialogueID = 110;
return(_local1);
}
if (inDialogueOptionID == 126) {
_local1.optionText = "Investigate the sound";
_local1.dialogueID = 112;
return(_local1);
}
if (inDialogueOptionID == 127) {
_local1.optionText = "Ignore it and move on";
return(_local1);
}
if (inDialogueOptionID == 128) {
_local1.optionText = "Encourage her";
_local1.dialogueID = 113;
return(_local1);
}
if (inDialogueOptionID == 129) {
_local1.optionText = "Tell her to stop";
_local1.dialogueID = 115;
return(_local1);
}
if (inDialogueOptionID == 130) {
_local1.optionText = "Pet Gwendolyn";
_local1.dialogueID = 114;
_local1.costRunes = -2;
return(_local1);
}
if (inDialogueOptionID == 131) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 2;
return(_local1);
}
if (inDialogueOptionID == 132) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 133) {
_local1.optionText = "Get his attention";
_local1.dialogueID = 117;
return(_local1);
}
if (inDialogueOptionID == 134) {
_local1.optionText = "Buy one";
_local1.dialogueID = 118;
_local1.costGold = 250;
_local1.costRunes = -1;
return(_local1);
}
if (inDialogueOptionID == 135) {
_local1.optionText = "Buy two";
_local1.dialogueID = 118;
_local1.costGold = 475;
_local1.costRunes = -2;
return(_local1);
}
if (inDialogueOptionID == 136) {
_local1.optionText = "Buy three";
_local1.dialogueID = 118;
_local1.costGold = 700;
_local1.costRunes = -3;
return(_local1);
}
if (inDialogueOptionID == 137) {
_local1.optionText = "\"No, but thanks.\"";
_local1.dialogueID = 119;
return(_local1);
}
if (inDialogueOptionID == 138) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
_local1.milestoneID = 4;
return(_local1);
}
if (inDialogueOptionID == 139) {
_local1.optionText = "Approach the conflict";
_local1.dialogueID = 121;
return(_local1);
}
if (inDialogueOptionID == 140) {
_local1.optionText = "Walk the other way";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 141) {
_local1.optionText = "\"Take your hands off her!\"";
_local1.dialogueID = 122;
return(_local1);
}
if (inDialogueOptionID == 142) {
_local1.optionText = "Call the City Guard";
_local1.dialogueID = 125;
return(_local1);
}
if (inDialogueOptionID == 143) {
_local1.optionText = "Help scare the woman";
_local1.dialogueID = 127;
return(_local1);
}
if (inDialogueOptionID == 144) {
_local1.optionText = "\"Come get some, stinky.\"";
_local1.encounterID = 8;
return(_local1);
}
if (inDialogueOptionID == 145) {
_local1.optionText = "More...";
_local1.dialogueID = 126;
return(_local1);
}
if (inDialogueOptionID == 146) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
_local1.milestoneID = 8;
return(_local1);
}
if (inDialogueOptionID == 147) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
_local1.costGold = -10;
_local1.milestoneID = 8;
return(_local1);
}
if (inDialogueOptionID == 148) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 149) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
_local1.milestoneID = 9;
return(_local1);
}
if (inDialogueOptionID == 150) {
_local1.optionText = "Put Rune in my pouch.";
_local1.dialogueID = 129;
_local1.costRunes = -1;
return(_local1);
}
if (inDialogueOptionID == 151) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 152) {
_local1.optionText = "\"I dare.\"";
_local1.encounterID = 9;
return(_local1);
}
if (inDialogueOptionID == 153) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 154) {
_local1.optionText = "\"I will be back for you!\"";
_local1.dialogueID = 212;
return(_local1);
}
if (inDialogueOptionID == 155) {
_local1.optionText = "\"En Garde!\"";
_local1.encounterID = 10;
return(_local1);
}
if (inDialogueOptionID == 156) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 157) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 158) {
_local1.optionText = "What could that mean?";
_local1.encounterID = 11;
return(_local1);
}
if (inDialogueOptionID == 159) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 160) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 161) {
_local1.optionText = "\"Um... Ok... \"";
_local1.encounterID = 12;
return(_local1);
}
if (inDialogueOptionID == 162) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 163) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 164) {
_local1.optionText = "\"Bring it on, funny man.\"";
_local1.encounterID = 13;
return(_local1);
}
if (inDialogueOptionID == 165) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 166) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 167) {
_local1.optionText = "\"Your brother is rude.\"";
_local1.encounterID = 14;
return(_local1);
}
if (inDialogueOptionID == 168) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 169) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 170) {
_local1.optionText = "\"You're goin' down, ugly!\"";
_local1.encounterID = 15;
return(_local1);
}
if (inDialogueOptionID == 171) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 172) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 173) {
_local1.optionText = "\"Today you die... again.\"";
_local1.encounterID = 16;
return(_local1);
}
if (inDialogueOptionID == 174) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 175) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 176) {
_local1.optionText = "\"I know about Death Watch.\"";
_local1.dialogueID = 155;
return(_local1);
}
if (inDialogueOptionID == 177) {
_local1.optionText = "\"My sentiments exactly.\"";
_local1.encounterID = 17;
return(_local1);
}
if (inDialogueOptionID == 178) {
_local1.optionText = "Scream in victory!";
_local1.dialogueID = 157;
return(_local1);
}
if (inDialogueOptionID == 179) {
_local1.optionText = "Arena Mastery Complete";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 180) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 181) {
_local1.optionText = "\"Hello again.\"";
_local1.dialogueID = 160;
return(_local1);
}
if (inDialogueOptionID == 182) {
_local1.optionText = "Buy one";
_local1.dialogueID = 161;
_local1.costGold = 300;
_local1.costRunes = -1;
return(_local1);
}
if (inDialogueOptionID == 183) {
_local1.optionText = "Buy two";
_local1.dialogueID = 161;
_local1.costGold = 575;
_local1.costRunes = -2;
return(_local1);
}
if (inDialogueOptionID == 184) {
_local1.optionText = "Buy three";
_local1.dialogueID = 161;
_local1.costGold = 825;
_local1.costRunes = -3;
return(_local1);
}
if (inDialogueOptionID == 185) {
_local1.optionText = "\"No, but thanks.\"";
_local1.dialogueID = 162;
return(_local1);
}
if (inDialogueOptionID == 186) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 187) {
_local1.optionText = "Approach the stage.";
_local1.dialogueID = 164;
return(_local1);
}
if (inDialogueOptionID == 188) {
_local1.optionText = "\"I accept!\"";
_local1.dialogueID = 165;
_local1.costGold = 250;
return(_local1);
}
if (inDialogueOptionID == 189) {
_local1.optionText = "\"No, I do not gamble.\"";
_local1.dialogueID = 169;
return(_local1);
}
if (inDialogueOptionID == 190) {
_local1.optionText = "\"I am ready!\"";
_local1.dialogueID = 166;
return(_local1);
}
if (inDialogueOptionID == 191) {
_local1.optionText = "The answer is:";
_local1.optionType = 1;
_local1.dialogueID = 167;
_local1.correctAnswers = new Array();
_local1.correctAnswers.push("CRIMSON BROTHERHOOD");
_local1.correctAnswers.push(" THE CRIMSON BROTHERHOOD");
_local1.incorrectDialogueID = 168;
return(_local1);
}
if (inDialogueOptionID == 192) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
_local1.costRunes = -2;
return(_local1);
}
if (inDialogueOptionID == 193) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 194) {
_local1.optionText = "\"Sure, I'll help.\"";
_local1.dialogueID = 171;
return(_local1);
}
if (inDialogueOptionID == 195) {
_local1.optionText = "Head out";
_local1.dialogueID = 173;
return(_local1);
}
if (inDialogueOptionID == 196) {
_local1.optionText = "Explore the strange ruins";
_local1.dialogueID = 174;
return(_local1);
}
if (inDialogueOptionID == 197) {
_local1.optionText = "Head back to Talesworth";
_local1.dialogueID = 172;
return(_local1);
}
if (inDialogueOptionID == 198) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 2;
_local1.costGold = -500;
return(_local1);
}
if (inDialogueOptionID == 199) {
_local1.optionText = "Dodge to the left";
_local1.dialogueID = 175;
_local1.healthReduction = 0.1;
return(_local1);
}
if (inDialogueOptionID == 200) {
_local1.optionText = "Charge ahead into the rubble";
_local1.dialogueID = 176;
return(_local1);
}
if (inDialogueOptionID == 201) {
_local1.optionText = "Scramble out the entrance";
_local1.dialogueID = 177;
_local1.healthReduction = 0.1;
return(_local1);
}
if (inDialogueOptionID == 202) {
_local1.optionText = "Continue...";
_local1.dialogueID = 178;
return(_local1);
}
if (inDialogueOptionID == 203) {
_local1.optionText = "Dodge through his legs";
_local1.dialogueID = 179;
return(_local1);
}
if (inDialogueOptionID == 204) {
_local1.optionText = "Defiantly meet his charge";
_local1.dialogueID = 180;
_local1.healthReduction = 0.1;
return(_local1);
}
if (inDialogueOptionID == 205) {
_local1.optionText = "Scramble for higher ground";
_local1.dialogueID = 181;
_local1.healthReduction = 0.1;
return(_local1);
}
if (inDialogueOptionID == 206) {
_local1.optionText = "\"Oooh, glowing stones?!\"";
_local1.encounterID = 18;
return(_local1);
}
if (inDialogueOptionID == 207) {
_local1.optionText = "Head back to Talesworth";
return(_local1);
}
if (inDialogueOptionID == 208) {
_local1.optionText = "Return to Felton";
_local1.dialogueID = 199;
_local1.costRunes = -2;
return(_local1);
}
if (inDialogueOptionID == 209) {
_local1.optionText = "Head to The Dark";
_local1.dialogueID = 185;
return(_local1);
}
if (inDialogueOptionID == 210) {
_local1.optionText = "\"Who are you!?\"";
_local1.dialogueID = 186;
return(_local1);
}
if (inDialogueOptionID == 211) {
_local1.optionText = "\"Give Swampy THIS message!\"";
_local1.encounterID = 19;
return(_local1);
}
if (inDialogueOptionID == 212) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
_local1.costGold = -150;
return(_local1);
}
if (inDialogueOptionID == 213) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 214) {
_local1.optionText = "\"Yes. She died at my hand.\"";
_local1.dialogueID = 190;
return(_local1);
}
if (inDialogueOptionID == 215) {
_local1.optionText = "\"No, that wasn't me.\"";
_local1.dialogueID = 193;
return(_local1);
}
if (inDialogueOptionID == 216) {
_local1.optionText = "\"I accept the offer.\"";
_local1.dialogueID = 192;
return(_local1);
}
if (inDialogueOptionID == 217) {
_local1.optionText = "\"Not interested.\"";
_local1.dialogueID = 191;
return(_local1);
}
if (inDialogueOptionID == 218) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 219) {
_local1.optionText = "Be the Mandrake";
_local1.dialogueID = 200;
_local1.costGold = -500;
_local1.costRunes = -2;
return(_local1);
}
if (inDialogueOptionID == 220) {
_local1.optionText = "\"Sure, here ya go.\"";
_local1.dialogueID = 195;
_local1.costGold = 400;
return(_local1);
}
if (inDialogueOptionID == 221) {
_local1.optionText = "\"Hmm... No thanks, old cad.\"";
_local1.dialogueID = 196;
return(_local1);
}
if (inDialogueOptionID == 222) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 223) {
_local1.optionText = "\"No need to thank me.\"";
_local1.dialogueID = 198;
return(_local1);
}
if (inDialogueOptionID == 224) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
_local1.costRunes = -1;
return(_local1);
}
if (inDialogueOptionID == 225) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 226) {
_local1.optionText = "\"What are the Artifact colors?\"";
_local1.dialogueID = 208;
return(_local1);
}
if (inDialogueOptionID == 227) {
_local1.optionText = "\"Um... Gold farmer?\"";
_local1.dialogueID = 210;
return(_local1);
}
if (inDialogueOptionID == 228) {
_local1.optionText = "Back to Main Street";
_local1.completesEvent = 1;
return(_local1);
}
if (inDialogueOptionID == 229) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 230) {
_local1.optionText = "Back to Main Street";
return(_local1);
}
if (inDialogueOptionID == 231) {
_local1.optionText = "\"Thanks, Lar, I'll try!\"";
return(_local1);
}
if (inDialogueOptionID == 232) {
_local1.optionText = "\"Got it. Anything else?\"";
_local1.dialogueID = 213;
return(_local1);
}
}
var dialogueOptionID = -1;
var optionText = "";
var optionType = 0;
var dialogueID = -1;
var encounterID = -1;
var completesEvent = -1;
var costGold = 0;
var costRunes = 0;
var costExp = 0;
var milestoneID = -1;
var correctAnswers = undefined;
var incorrectDialogueID = -1;
var incorrectEncounterID = -1;
var healthReduction = -1;
var rewardArtifact = -1;
}
Symbol 855 MovieClip [__Packages.Encounter] Frame 0
class Encounter
{
function Encounter () {
artifacts = new Array();
}
static function GetEncounter(eID) {
var _local1 = new Encounter();
_local1.encounterID = eID;
if (eID == 1) {
_local1.monsterID = 4;
_local1.winDialogueID = 12;
_local1.loseDialogueID = 13;
return(_local1);
}
if (eID == 2) {
_local1.monsterID = 33;
_local1.winDialogueID = 17;
_local1.loseDialogueID = 19;
return(_local1);
}
if (eID == 3) {
_local1.monsterID = 33;
_local1.winDialogueID = 18;
_local1.loseDialogueID = 19;
return(_local1);
}
if (eID == 4) {
_local1.monsterID = 35;
_local1.winDialogueID = 48;
_local1.loseDialogueID = 47;
return(_local1);
}
if (eID == 5) {
_local1.monsterID = 36;
_local1.winDialogueID = 50;
_local1.loseDialogueID = 47;
return(_local1);
}
if (eID == 6) {
_local1.monsterID = 37;
_local1.winDialogueID = 61;
_local1.loseDialogueID = 62;
return(_local1);
}
if (eID == 7) {
_local1.monsterID = 38;
_local1.winDialogueID = 68;
_local1.loseDialogueID = 69;
return(_local1);
}
if (eID == 8) {
_local1.monsterID = 34;
_local1.winDialogueID = 123;
_local1.loseDialogueID = 124;
return(_local1);
}
if (eID == 9) {
_local1.monsterID = 8;
_local1.winDialogueID = 131;
_local1.loseDialogueID = 132;
return(_local1);
}
if (eID == 10) {
_local1.monsterID = 11;
_local1.winDialogueID = 134;
_local1.loseDialogueID = 135;
return(_local1);
}
if (eID == 11) {
_local1.monsterID = 14;
_local1.winDialogueID = 137;
_local1.loseDialogueID = 138;
return(_local1);
}
if (eID == 12) {
_local1.monsterID = 17;
_local1.winDialogueID = 140;
_local1.loseDialogueID = 141;
return(_local1);
}
if (eID == 13) {
_local1.monsterID = 20;
_local1.winDialogueID = 143;
_local1.loseDialogueID = 144;
return(_local1);
}
if (eID == 14) {
_local1.monsterID = 23;
_local1.winDialogueID = 146;
_local1.loseDialogueID = 147;
return(_local1);
}
if (eID == 15) {
_local1.monsterID = 26;
_local1.winDialogueID = 149;
_local1.loseDialogueID = 150;
return(_local1);
}
if (eID == 16) {
_local1.monsterID = 29;
_local1.winDialogueID = 152;
_local1.loseDialogueID = 153;
return(_local1);
}
if (eID == 17) {
_local1.monsterID = 32;
_local1.winDialogueID = 156;
_local1.loseDialogueID = 158;
return(_local1);
}
if (eID == 18) {
_local1.monsterID = 39;
_local1.winDialogueID = 182;
_local1.loseDialogueID = 183;
return(_local1);
}
if (eID == 19) {
_local1.monsterID = 40;
_local1.winDialogueID = 187;
_local1.loseDialogueID = 188;
return(_local1);
}
}
var encounterID = -1;
var monsterID = -1;
var winDialogueID = -1;
var winEncounterID = -1;
var loseDialogueID = -1;
var artifacts = undefined;
}
Symbol 108 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 109 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 110 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 111 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.126";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 112 MovieClip [__Packages.mx.controls.CheckBox] Frame 0
class mx.controls.CheckBox extends mx.controls.Button
{
var _getTextFormat, labelPath, iconName;
function CheckBox () {
super();
}
function onRelease() {
super.onRelease();
}
function init() {
super.init();
}
function size() {
super.size();
}
function get emphasized() {
return(undefined);
}
function calcPreferredHeight() {
var _local5 = _getTextFormat();
var _local3 = _local5.getTextExtent2(labelPath.text).height;
var _local4 = iconName._height;
var _local2 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local2 = Math.max(_local3, _local4);
} else {
_local2 = _local3 + _local4;
}
return(Math.max(14, _local2));
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "CheckBox";
static var symbolOwner = mx.controls.CheckBox;
static var version = "2.0.2.126";
var className = "CheckBox";
var ignoreClassStyleDeclaration = {Button:1};
var btnOffset = 0;
var __toggle = true;
var __selected = false;
var __labelPlacement = "right";
var __label = "CheckBox";
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "CheckFalseUp";
var falseDownIcon = "CheckFalseDown";
var falseOverIcon = "CheckFalseOver";
var falseDisabledIcon = "CheckFalseDisabled";
var trueUpIcon = "CheckTrueUp";
var trueDownIcon = "CheckTrueDown";
var trueOverIcon = "CheckTrueOver";
var trueDisabledIcon = "CheckTrueDisabled";
var clipParameters = {label:1, labelPlacement:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
var centerContent = false;
var borderW = 0;
}
Symbol 158 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 159 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 160 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 161 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 162 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 163 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 164 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 165 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 166 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 167 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 168 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 169 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 170 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 171 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 172 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 173 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 174 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 175 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 176 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 177 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 429 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 240 MovieClip [forgetInstructions] Frame 5
stop();
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 259 MovieClip Frame 3
stop();
Symbol 259 MovieClip Frame 4
stop();
Symbol 273 MovieClip Frame 1
function AdjustHealth() {
var _local3 = 146 * (1 - _root.p1.totalHealthReduction);
this.mcMaxHealthBar._x = 56.5 + _local3;
this.myMeterBar._width = 146 * (1 - _root.p1.totalHealthReduction);
this.questHealthLabelText.p1HealthLabel.text = ((("Max Health " + _root.p1.health) + "/") + _root.p1.maxHealth) + "";
if (_root.p1.totalHealthReduction == 0) {
this.mcQuestHealthLabel._visible = false;
} else {
this.mcQuestHealthLabel._visible = true;
}
}
AdjustHealth();
stop();
Symbol 274 MovieClip [dialogue] Frame 1
stop();
Instance of Symbol 259 MovieClip "btnDisableTutorial" in Symbol 274 MovieClip [dialogue] Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_root.p1.showTutorial = false;
_root.currentEvent.EndEvent();
}
Symbol 284 MovieClip [btnDialogue] Frame 1
var whichOption;
stop();
Symbol 284 MovieClip [btnDialogue] Frame 2
stop();
Symbol 284 MovieClip [btnDialogue] Frame 3
stop();
Symbol 284 MovieClip [btnDialogue] Frame 4
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 2
stop();
Symbol 295 MovieClip Frame 3
stop();
Symbol 295 MovieClip Frame 4
stop();
Symbol 296 MovieClip [dialogueOptionTextbox] Frame 1
var whichOption;
Symbol 300 MovieClip [slowCursor] Frame 1
stop();
Symbol 300 MovieClip [slowCursor] Frame 2
stop();
Symbol 330 Button
on (release) {
if (_currentframe == 1) {
_parent.TurnOffButtons();
gotoAndStop (2);
_parent.GetSelected();
_parent.EnablePurchase();
} else {
gotoAndStop (1);
_parent.DisablePurchase();
}
}
Symbol 331 MovieClip [itemSkill] Frame 1
stop();
Symbol 331 MovieClip [itemSkill] Frame 2
stop();
Symbol 336 Button
on (release) {
if (_currentframe == 1) {
_parent.TurnOffButtons();
gotoAndStop (2);
_parent.GetSelected();
_parent.EnablePurchase();
} else {
gotoAndStop (1);
_parent.DisablePurchase();
}
}
Symbol 337 MovieClip [itemSkillUpgrade] Frame 1
stop();
Symbol 337 MovieClip [itemSkillUpgrade] Frame 2
stop();
Symbol 343 Button
on (release) {
if (_currentframe == 1) {
_parent.TurnOffButtons();
gotoAndStop (2);
_parent.GetSelected();
_parent.EnablePurchase();
} else {
gotoAndStop (1);
_parent.DisablePurchase();
}
}
Symbol 344 MovieClip [itemArtifact] Frame 1
stop();
Symbol 344 MovieClip [itemArtifact] Frame 2
stop();
Symbol 385 MovieClip Frame 1
stop();
Symbol 389 Button
on (release) {
if (_currentframe == 1) {
_parent.TurnOffButtons();
gotoAndStop (2);
_parent.GetSelected();
_parent.EnableBegin();
_root.ClearSelectedEvent();
} else {
gotoAndStop (1);
_parent.DisableBegin();
}
}
Symbol 390 MovieClip [itemEvent] Frame 1
stop();
Symbol 390 MovieClip [itemEvent] Frame 2
stop();
Symbol 390 MovieClip [itemEvent] Frame 3
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 2
stop();
Symbol 406 MovieClip Frame 3
stop();
Symbol 406 MovieClip Frame 4
stop();
Instance of Symbol 55 MovieClip [btnOK] "btnYes" in Symbol 407 MovieClip [confirmPopup] Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("down");
}
}
on (release) {
gotoAndStop ("up");
_root.PopupCallback(1);
}
Instance of Symbol 406 MovieClip "btnNo" in Symbol 407 MovieClip [confirmPopup] Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("down");
}
}
on (release) {
gotoAndStop ("up");
_root.PopupCallback(0);
}
Instance of Symbol 64 MovieClip "btnContinue" in Symbol 407 MovieClip [confirmPopup] Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
_root.PlaySound(4);
gotoAndStop ("down");
}
}
on (release) {
gotoAndStop ("up");
_root.PopupCallback();
}
Symbol 432 MovieClip [TextInput] Frame 1
#initclip 54
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 441 Button
on (release) {
StartTransition("howto");
}
Symbol 446 Button
on (release) {
StartTransition("credits");
}
Symbol 453 Button
on (release) {
_root.loadSaveAction = "save";
StartTransition("SaveLoad");
}
Symbol 458 Button
on (release) {
_root.loadSaveAction = "load";
StartTransition("SaveLoad");
}
Symbol 464 Button
on (release) {
var classID = _root.selectedClassID;
var mcErrorText = _root.mcErrorText1;
if ((inputName.text == "") && (_root.selectedClassID == -1)) {
mcErrorText._alpha = 100;
mcErrorText.errorText.text = "Select Character Class and Enter Name";
fadeCounter = 0;
fadePtr = setInterval(this, "FadeErrorText", 83);
} else if (inputName.text == "") {
mcErrorText._alpha = 100;
mcErrorText.errorText.text = "Enter a Name";
fadeCounter = 0;
fadePtr = setInterval(this, "FadeErrorText", 83);
} else if (_root.selectedClassID == -1) {
mcErrorText._alpha = 100;
mcErrorText.errorText.text = "Select Character Class Above";
fadeCounter = 0;
fadePtr = setInterval(this, "FadeErrorText", 83);
} else {
p1.level = 1;
p1.classID = classID;
var l = Level.GetLevel(1, classID);
p1.playerName = inputName.text;
p1.health = l.hpBonus;
p1.power = l.powerBonus;
if (p1.classID == 1) {
p1.powerType = 1;
} else if (p1.classID == 2) {
p1.powerType = 2;
} else if (p1.classID == 3) {
p1.powerType = 3;
}
p1.portraitID = 900 + p1.classID;
p1.curHealth = p1.health;
p1.curPower = p1.power;
p1.playerNbr = 1;
bizaarArtifactArr = new Array();
resetBizaarFlag = true;
totalVictories = 0;
eventFightCounter = 0;
p1.ResetMaxHealthReduction();
StartTransition("Staging");
}
}
Symbol 471 MovieClip Frame 1
this.hitArea = hitbox;
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 3
stop();
Symbol 471 MovieClip Frame 4
stop();
Symbol 477 MovieClip Frame 1
this.hitArea = hitbox;
stop();
Symbol 477 MovieClip Frame 2
stop();
Symbol 477 MovieClip Frame 3
stop();
Symbol 477 MovieClip Frame 4
stop();
Symbol 482 MovieClip Frame 1
this.hitArea = hitbox;
stop();
Symbol 482 MovieClip Frame 2
stop();
Symbol 482 MovieClip Frame 3
stop();
Symbol 482 MovieClip Frame 4
stop();
Symbol 496 Button
on (release) {
if (p1.skillIDs.length > 0) {
var myEvent = undefined;
if ((!p1.HasCompletedEvent(14)) && (p1.level == 9)) {
myEvent = Event.GetEvent(14);
} else if (eventFightCounter >= 1) {
myEvent = Event.Search(true);
}
if (myEvent != undefined) {
eventFightCounter = 0;
currentEvent = myEvent;
p1.ResetMaxHealthReduction();
currentEvent.StartEvent();
} else {
StartTransition("Battle", true);
}
} else {
mcErrorText._alpha = 100;
mcErrorText.errorText.text = "Please Visit Training First...";
fadeCounter = 0;
fadePtr = setInterval(this, "FadeErrorText", 83);
}
}
Symbol 499 Button
on (release) {
StartTransition("Tavern");
}
Symbol 502 Button
on (release) {
StartTransition("bizzare");
}
Symbol 508 Button
on (release) {
_root.boss = true;
var nextMonster = null;
if (p1.level == 1) {
nextMonster = Monster.LoadMonster(4);
} else if (p1.level == 2) {
nextMonster = Monster.LoadMonster(8);
} else if (p1.level == 3) {
nextMonster = Monster.LoadMonster(11);
} else if (p1.level == 4) {
nextMonster = Monster.LoadMonster(14);
} else if (p1.level == 5) {
nextMonster = Monster.LoadMonster(17);
} else if (p1.level == 6) {
nextMonster = Monster.LoadMonster(20);
} else if (p1.level == 7) {
nextMonster = Monster.LoadMonster(23);
} else if (p1.level == 8) {
nextMonster = Monster.LoadMonster(26);
} else if (p1.level == 9) {
nextMonster = Monster.LoadMonster(29);
} else if (p1.level == 10) {
nextMonster = Monster.LoadMonster(32);
}
StartTransition("Battle", true);
}
Symbol 513 Button
on (release) {
_root.StartTransition("BlackMarket");
}
Symbol 516 Button
on (release) {
StartTransition("trainingGrounds");
}
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
stop();
Symbol 534 MovieClip Frame 3
stop();
Symbol 534 MovieClip Frame 4
stop();
Symbol 541 MovieClip Frame 1
this.hitarea = hitareaSound;
var myText;
myLabel.text = myText;
stop();
Symbol 541 MovieClip Frame 2
myLabel.text = myText;
stop();
Symbol 541 MovieClip Frame 3
myLabel.text = myText;
stop();
Symbol 546 MovieClip Frame 1
this.hitarea = hitareaSound;
var myText;
myLabel.text = myText;
stop();
Symbol 546 MovieClip Frame 2
myLabel.text = myText;
stop();
Symbol 546 MovieClip Frame 3
myLabel.text = myText;
stop();
Symbol 548 MovieClip Frame 1
if (!_root.muteMusic) {
btnMusic.myLabel.text == "Music On";
btnMusic.myText = "Music On";
} else {
btnMusic.myLabel.text == "Music Off";
btnMusic.myText = "Music Off";
}
if (!_root.muteSound) {
btnSound.myLabel.text == "Sound Effects On";
btnSound.myText = "Sound Effects On";
} else {
btnSound.myLabel.text == "Sound Effects Off";
btnSound.myText = "Sound Effects Off";
}
stop();
Instance of Symbol 534 MovieClip "btnExit" in Symbol 548 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
gotoAndStop ("over");
_root.SaveMyGame();
_root.StartTransition("Home");
}
Instance of Symbol 541 MovieClip "btnMusic" in Symbol 548 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("_over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("_up");
}
on (press) {
gotoAndStop ("_down");
}
on (release) {
gotoAndStop ("_over");
if (this.myText == "Music On") {
this.myText = "Music Off";
} else {
this.myText = "Music On";
}
_root.ToggleMuteMusic();
}
Instance of Symbol 546 MovieClip "btnSound" in Symbol 548 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("_over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("_up");
}
on (press) {
gotoAndStop ("_down");
}
on (release) {
gotoAndStop ("_over");
if (this.myText == "Sound Effects On") {
this.myText = "Sound Effects Off";
} else {
this.myText = "Sound Effects On";
}
_root.ToggleMuteSound();
}
Symbol 555 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 1
function ClearSkipper() {
clearInterval(intPtr);
}
function SetAttacker(inVar) {
attacker = inVar;
}
function SetDefender(inVar) {
defender = inVar;
}
function SetSkill(inSkill) {
curSkill = inSkill;
if (curSkill.castTime != 0) {
castTime = (curSkill.castTime * (1 + attacker.slowed)) * (1 - attacker.GetCastTimeBonus());
} else {
castTime = curSkill.castTime;
}
if ((castTime < 0.5) && (castTime > 0)) {
trace(((curSkill.skillName + " casttime was ") + castTime) + ". Setting to .5");
castTime = 0.5;
}
}
var castTime;
var curSkill = null;
var attacker = null;
var defender = null;
var casting;
var intPtr = 0;
timeToFinish._visible = false;
casting = false;
if (_root.nextSkill != undefined) {
var tempSkill = _root.nextSkill;
_root.nextSkill = undefined;
tempSkill.SkillPress();
}
stop();
Symbol 564 MovieClip Frame 2
function FrameSkipper() {
var _local2 = (240 * (getTimer() - timePassed)) / (castTime * 1000);
if (_local2 >= this._totalframes) {
_local2 = this._totalframes;
}
if (_local2 < 3) {
_local2 = 3;
}
this.gotoAndStop(Math.round(_local2));
}
function EndCast() {
if (casting) {
ClearSkipper();
this.gotoAndStop(1);
}
}
casting = true;
intPtr = setInterval(this, "FrameSkipper", 83);
var timeCtr;
var timePassed;
timeCtr = getTimer();
timePassed = getTimer();
stop();
Symbol 564 MovieClip Frame 241
timeToFinish.text = (getTimer() - timeCtr) / 1000;
ClearSkipper();
if (curSkill.refillPower) {
_root.PlaySound(5);
attacker.ModPower(attacker.power);
} else if (curSkill.skillID == 105) {
attacker.ResetCooldowns();
} else if ((((curSkill.syphonPowerAmt > 0) && (defender.curPower > 0)) && (defender.powerType == curSkill.syphonPowerType)) && (!defender.IsImmuneDmg(10))) {
var gasTaken = curSkill.syphonPowerAmt;
if (defender.curPower < gasTaken) {
gasTaken = defender.curPower;
}
attacker.ModPower(gasTaken);
defender.ModPower(gasTaken * -1);
} else if ((curSkill.skillID == 121) || (curSkill.skillID == 331)) {
_root.ForgetSpell_Start();
} else if (curSkill.parentSkillID == 22) {
attacker.taunting = 36;
} else if (curSkill.removeDmgType != -1) {
attacker.RemoveDotsByType(curSkill.removeDmgType);
} else if (curSkill.removeBuff == true) {
defender.RemoveRandomBuffDot();
}
var immuneToStun = false;
var immuneToDamageType = false;
var reflected = false;
if ((defender.IsReflectingDmg(curSkill.dmgType) || (defender.IsReflectingDmg(10))) && (curSkill.isDebuff)) {
reflected = true;
defender.specialDamageWindow.AddEffectsText("Reflected!");
defender = attacker;
} else if ((defender.IsImmuneDmg(curSkill.dmgType) || (defender.IsImmuneDmg(10))) && (curSkill.isDebuff)) {
immuneToDamageType = true;
defender.specialDamageWindow.AddEffectsText("Immune!");
} else if (curSkill.jumbleSkills) {
defender.specialDamageWindow.AddEffectsText("Confused");
defender.JumbleSkills();
}
if (defender.IsImmuneToStun()) {
immuneToStun = true;
}
if (curSkill.interupt) {
if (immuneToStun || (immuneToDamageType)) {
if (!immuneToDamageType) {
defender.specialDamageWindow.AddEffectsText("Immune!");
}
} else {
if (curSkill.chanceOfStun == 0) {
if (defender.castBar.casting) {
_root.PlaySound(3);
defender.specialDamageWindow.AddEffectsText("Interrupted!");
}
}
defender.StopCast();
}
}
if (curSkill.powerBonus > 0) {
attacker.ModPower(curSkill.powerBonus);
}
if (curSkill.dmgMax != 0) {
var dmg = _root.RandRange(curSkill.dmgMin, curSkill.dmgMax);
if (curSkill.parentSkillID == 18) {
dmg = dmg + attacker.curPower;
attacker.ModPower(attacker.curPower * -1);
} else if ((curSkill.parentSkillID == 20) && (attacker.curPower > 1)) {
var jabPower = Math.round(attacker.curPower / 2);
if (defender.hasOpening) {
dmg = dmg + jabPower;
_root.PlaySound(14);
}
attacker.ModPower(jabPower * -1);
}
if (curSkill.isDebuff) {
if (immuneToDamageType) {
trace(curSkill.skillName + " :: Defender is immune, zero damage.");
} else {
var actualDmg = ((dmg + attacker.GetTotalDamageBonus(0)) + defender.GetTotalDamageReduction(0));
if (actualDmg < 0) {
actualDmg = 0;
}
var dmgAfterManaShield;
if (defender.classID == 2) {
dmgAfterManaShield = defender.ReduceManaShield(actualDmg * -1);
} else if (defender.classID == 3) {
dmgAfterManaShield = defender.ReduceAdrenalineRush(actualDmg * -1);
} else {
dmgAfterManaShield = actualDmg * -1;
}
defender.ModHealth(dmgAfterManaShield);
}
} else {
attacker.ModHealth(dmg * -1);
}
}
if (curSkill.buffTime > 0) {
if (curSkill.isDebuff) {
if (((curSkill.chanceOfStun > 0) || (curSkill.interupt)) && (immuneToStun)) {
} else if (immuneToDamageType) {
} else if (!_root.battleOver) {
defender.ApplyDot(curSkill, attacker);
}
} else if (!_root.battleOver) {
attacker.ApplyDot(curSkill, defender);
}
}
EndCast();
stop();
Symbol 586 MovieClip Frame 1
txtPlacement._visible = false;
stop();
Symbol 586 MovieClip Frame 4
var filter = (new flash.filters.GlowFilter(0, 0.8, 15, 15, 4, 3, false, false));
var filterArray = new Array();
filterArray.push(filter);
c3.filters = filterArray;
Symbol 586 MovieClip Frame 12
var filter = (new flash.filters.GlowFilter(0, 0.8, 15, 15, 4, 3, false, false));
var filterArray = new Array();
filterArray.push(filter);
c2.filters = filterArray;
Symbol 586 MovieClip Frame 15
_root.Cheat();
Symbol 586 MovieClip Frame 20
var filter = (new flash.filters.GlowFilter(0, 0.8, 15, 15, 4, 3, false, false));
var filterArray = new Array();
filterArray.push(filter);
c1.filters = filterArray;
Symbol 586 MovieClip Frame 26
_root.PlaySound(9);
Symbol 586 MovieClip Frame 28
var filter = (new flash.filters.GlowFilter(0, 0.8, 15, 15, 4, 3, false, false));
var filterArray = new Array();
filterArray.push(filter);
txtBegin.filters = filterArray;
_parent.removeMovieClip(battleCoverupMC);
_parent.StartBattle();
Symbol 586 MovieClip Frame 42
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 22
stop();
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 2
stop();
Symbol 599 MovieClip Frame 3
stop();
Symbol 599 MovieClip Frame 4
stop();
Symbol 608 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 2
stop();
Symbol 608 MovieClip Frame 3
stop();
Symbol 608 MovieClip Frame 4
stop();
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 2
stop();
Symbol 617 MovieClip Frame 3
stop();
Symbol 617 MovieClip Frame 4
stop();
Symbol 620 MovieClip Frame 1
function ExistsInArray(lookup, arr) {
var _local3 = false;
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1] == lookup) {
_local3 = true;
break;
}
_local1++;
}
return(_local3);
}
function GetSelected() {
var _local1 = 0;
while (_local1 < itemlistArr.length) {
if (itemlistArr[_local1]._currentframe == 2) {
selectedMenuIndex = _local1;
availableSkillIndex = ((curPage - 1) * pageSize) + selectedMenuIndex;
break;
}
_local1++;
}
}
function EnablePurchase() {
var _local2 = Skill.LoadSkill(availableSkills[availableSkillIndex].skillID);
if (_local2.goldCost <= _root.p1.gold) {
btnPurchase.gotoAndStop("up");
btnPurchase.enabled = true;
} else {
DisablePurchase();
}
}
function DisablePurchase() {
btnPurchase.gotoAndStop("disabled");
btnPurchase.enabled = false;
}
function TurnOffButtons() {
var _local1 = 0;
while (_local1 < itemlistArr.length) {
itemlistArr[_local1].gotoAndStop(1);
_local1++;
}
}
function ClearItems() {
var _local1 = 0;
while (_local1 < itemlistArr.length) {
itemlistArr[_local1].removeMovieClip();
_local1++;
}
}
function DisplayItems() {
ClearItems();
var _local7 = (curPage - 1) * pageSize;
var _local3 = _local7;
while ((_local3 < availableSkills.length) && (_local3 < (_local7 + pageSize))) {
var _local6 = _root.GetDepthSlot(4000, itemlistArr);
var _local9;
var _local8;
_local9 = 4;
_local8 = -32 + ((_local3 - _local7) * 94);
var _local4 = this.attachMovie("itemSkill", "item" + _local6, _local6);
_local4._x = _local9;
_local4._y = _local8;
_local4.itemName.text = availableSkills[_local3].skillName;
var _local5 = Skill.ReplaceDescTokens(availableSkills[_local3]);
if (availableSkills[_local3].rank != 1) {
_local5 = (((("[" + _root.parentSkillArr[availableSkills[_local3].parentSkillID]) + " Rank ") + availableSkills[_local3].rank) + "] ") + _local5;
}
_local4.itemDesc.text = _local5;
_local4.itemCost.text = availableSkills[_local3].goldCost + "g";
_local4.castTime.text = ("Cast Time: " + availableSkills[_local3].castTime) + " sec";
_local4.cooldown.text = ("Cooldown:" + availableSkills[_local3].cooldown) + " sec";
_local4.powerCost.text = "";
if (availableSkills[_local3].powerCost > 0) {
_local4.powerCost.text = (availableSkills[_local3].powerCost + " ") + _root.PowerTypeName(availableSkills[_local3].powerTypeCost);
}
itemlistArr.push(_local4);
_local3++;
}
CheckPrevNext();
if (availableSkills.length > 0) {
txtNothingToLearn._visible = false;
} else {
txtNothingToLearn._visible = true;
}
}
function CheckPrevNext() {
if (availableSkills.length > (curPage * pageSize)) {
btnNext.gotoAndStop("up");
btnNext.enabled = true;
} else {
btnNext.gotoAndStop("disabled");
btnNext.enabled = false;
}
if (curPage > 1) {
btnPrev.gotoAndStop("up");
btnPrev.enabled = true;
} else {
btnPrev.gotoAndStop("disabled");
btnPrev.enabled = false;
}
}
var itemlistArr = new Array();
var pageSize = 3;
var curPage = 1;
var availableSkills = new Array();
var selectedMenuIndex = -1;
var availableSkillIndex = -1;
var i = 0;
while (i < _root.skillArr.length) {
if (((_root.skillArr[i].reqLevel <= _root.p1.level) && (_root.skillArr[i].forSale)) && (_root.skillArr[i].reqClass == _root.p1.classID)) {
if ((!ExistsInArray(_root.skillArr[i].skillID, _root.p1.skillIDs)) && (!ExistsInArray(_root.skillArr[i].skillID, _root.p1.deprecatedSkillIDs))) {
var listMe = true;
var ski = 0;
while (ski < _root.p1.skillIDs.length) {
var tmpSkill = Skill.LoadSkill(_root.p1.skillIDs[ski]);
if (tmpSkill.parentSkillID == _root.skillArr[i].parentSkillID) {
if (tmpSkill.rank > _root.skillArr[i].rank) {
listMe = false;
}
break;
}
ski++;
}
if (listMe) {
availableSkills.push(_root.skillArr[i]);
}
}
}
i++;
}
DisablePurchase();
DisplayItems();
stop();
Instance of Symbol 599 MovieClip "btnPurchase" in Symbol 620 MovieClip Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
gotoAndStop ("down");
}
}
on (release) {
var s = Skill.LoadSkill(_parent.availableSkills[_parent.availableSkillIndex].skillID);
_root.p1.AddSkill(s);
_root.p1.ModGold(s.goldCost * -1);
_parent.availableSkills.splice(_parent.availableSkillIndex, 1);
_parent.curPage = 1;
_parent.selectedMenuIndex = -1;
_parent.TurnOffButtons();
_parent.DisablePurchase();
_parent.DisplayItems();
_parent._parent.UpdateStats();
}
Instance of Symbol 608 MovieClip "btnNext" in Symbol 620 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_parent.curPage++;
_parent.DisplayItems();
}
Instance of Symbol 617 MovieClip "btnPrev" in Symbol 620 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_parent.curPage--;
_parent.DisplayItems();
}
Symbol 627 Button
on (release) {
StartTransition("Staging");
}
Symbol 634 MovieClip Frame 1
function ExistsInArray(lookup, arr) {
var _local3 = false;
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1] == lookup) {
_local3 = true;
break;
}
_local1++;
}
return(_local3);
}
function GetSelected() {
var _local1 = 0;
while (_local1 < itemlistArr.length) {
if (itemlistArr[_local1]._currentframe == 2) {
selectedMenuIndex = _local1;
availableSkillIndex = ((curPage - 1) * pageSize) + selectedMenuIndex;
break;
}
_local1++;
}
}
function EnablePurchase() {
var _local2 = Artifact.LoadArtifact(availableSkills[availableSkillIndex].ID);
if (_local2.GetCost() <= _root.p1.gold) {
btnPurchase.gotoAndStop("up");
btnPurchase.enabled = true;
} else {
DisablePurchase();
}
}
function DisablePurchase() {
btnPurchase.gotoAndStop("disabled");
btnPurchase.enabled = false;
}
function TurnOffButtons() {
var _local1 = 0;
while (_local1 < itemlistArr.length) {
itemlistArr[_local1].gotoAndStop(1);
_local1++;
}
}
function ClearItems() {
var _local1 = 0;
while (_local1 < itemlistArr.length) {
itemlistArr[_local1].removeMovieClip();
_local1++;
}
}
function DisplayItems() {
ClearItems();
var _local7 = (curPage - 1) * pageSize;
var _local4 = _local7;
while ((_local4 < availableSkills.length) && (_local4 < (_local7 + pageSize))) {
var _local6 = _root.GetDepthSlot(4000, itemlistArr);
var _local9;
var _local8;
_local9 = 4;
_local8 = -32 + ((_local4 - _local7) * 94);
var _local3 = this.attachMovie("itemArtifact", "item" + _local6, _local6);
_local3._x = _local9;
_local3._y = _local8;
_local3.qualityName.text = "";
var _local5 = new TextFormat();
_local5.font = "Verdana";
_local5.size = 14;
_local5.bold = true;
_local5.color = _root.GetQualityColor(availableSkills[_local4].qualityID);
_local3.itemName.setNewTextFormat(_local5);
_local3.itemName.text = availableSkills[_local4].artifactName;
_local3.itemDesc.text = availableSkills[_local4].GetDescription();
_local3.itemCost.text = availableSkills[_local4].GetCost() + "g";
_local3.slot.text = "Slot: " + _root.SlotName(availableSkills[_local4].slotID);
itemlistArr.push(_local3);
_local4++;
}
CheckPrevNext();
if (availableSkills.length > 0) {
txtNothingToLearn._visible = false;
} else {
txtNothingToLearn._visible = true;
}
}
function CheckPrevNext() {
if (availableSkills.length > (curPage * pageSize)) {
btnNext.gotoAndStop("up");
btnNext.enabled = true;
} else {
btnNext.gotoAndStop("disabled");
btnNext.enabled = false;
}
if (curPage > 1) {
btnPrev.gotoAndStop("up");
btnPrev.enabled = true;
} else {
btnPrev.gotoAndStop("disabled");
btnPrev.enabled = false;
}
}
var itemlistArr = new Array();
var pageSize = 3;
var curPage = 1;
var availableSkills = new Array();
var selectedMenuIndex = -1;
var availableSkillIndex = -1;
var i = 0;
while (i < _root.bizaarArtifactArr.length) {
if ((_root.bizaarArtifactArr[i].reqLevel <= _root.p1.level) && (_root.bizaarArtifactArr[i].forSale)) {
availableSkills.push(_root.bizaarArtifactArr[i]);
}
i++;
}
DisablePurchase();
DisplayItems();
stop();
Instance of Symbol 599 MovieClip "btnPurchase" in Symbol 634 MovieClip Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
gotoAndStop ("down");
}
}
on (release) {
var a = Artifact.LoadArtifact(_parent.availableSkills[_parent.availableSkillIndex].ID);
_root.p1.AddArtifact(a);
_root.p1.ModGold(a.GetCost() * -1);
_root.bizaarArtifactArr.splice(_parent.availableSkillIndex, 1);
_parent.availableSkills.splice(_parent.availableSkillIndex, 1);
_parent.curPage = 1;
_parent.selectedMenuIndex = -1;
_parent.TurnOffButtons();
_parent.DisablePurchase();
_parent.DisplayItems();
_parent._parent.UpdateStats();
_root.p1.UnloadArtifacts();
_root.p1.DrawArtifactsBazaar();
}
Instance of Symbol 608 MovieClip "btnNext" in Symbol 634 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_parent.curPage++;
_parent.DisplayItems();
}
Instance of Symbol 617 MovieClip "btnPrev" in Symbol 634 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_parent.curPage--;
_parent.DisplayItems();
}
Symbol 664 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 2
stop();
Symbol 664 MovieClip Frame 3
stop();
Symbol 674 Button
on (release) {
p1.UnloadArtifacts();
StartTransition("Staging");
}
Symbol 684 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 2
stop();
Symbol 684 MovieClip Frame 3
stop();
Symbol 684 MovieClip Frame 4
stop();
Symbol 693 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 2
stop();
Symbol 693 MovieClip Frame 3
stop();
Symbol 693 MovieClip Frame 4
stop();
Symbol 697 MovieClip Frame 1
function LoadUnequipped() {
availableArtifacts = [];
arts = _root.p1.artifacts;
var _local2 = 0;
while (_local2 < arts.length) {
if (!arts[_local2].equipped) {
availableArtifacts.push(arts[_local2]);
}
_local2++;
}
DisplayItems();
}
function GetSelected() {
var _local1 = 0;
while (_local1 < artifactlistArr.length) {
if (artifactlistArr[_local1]._currentframe == 2) {
selectedMenuIndex = _local1;
availableArtifactIndex = ((curPage - 1) * pageSize) + selectedMenuIndex;
break;
}
_local1++;
}
}
function EnableEquip() {
btnEquip.gotoAndStop("up");
btnEquip.enabled = true;
btnPawn.gotoAndStop("up");
btnPawn.enabled = true;
SetPawnText();
}
function DisableEquip() {
btnEquip.gotoAndStop("disabled");
btnEquip.enabled = false;
btnPawn.gotoAndStop("disabled");
btnPawn.enabled = false;
UnsetPawnText();
}
function TurnOffButtons() {
var _local1 = 0;
while (_local1 < artifactlistArr.length) {
artifactlistArr[_local1].gotoAndStop(1);
_local1++;
}
DisableEquip();
}
function ClearItems() {
var _local1 = 0;
while (_local1 < artifactlistArr.length) {
artifactlistArr[_local1].removeMovieClip();
_local1++;
}
artifactlistArr = [];
}
function EquipItem() {
var _local4 = _root.p1.FindArtifact(availableArtifacts[availableArtifactIndex].ID, false).slotID;
var _local3 = 0;
while (_local3 < _parent.p1.artifacts.length) {
if ((_root.p1.artifacts[_local3].slotID == _local4) && (_root.p1.artifacts[_local3].equipped)) {
_parent.p1.artifacts[_local3].equipped = false;
removeMovieClip(_root.p1.artifacts[_local3].mcPtr);
break;
}
_local3++;
}
_parent.p1.FindArtifact(availableArtifacts[availableArtifactIndex].ID, false).equipped = true;
_root.p1.DrawArtifactsTavern();
availableArtifacts.splice(availableArtifactIndex, 1);
curPage = 1;
selectedMenuIndex = -1;
TurnOffButtons();
DisableEquip();
LoadUnequipped();
DisplayItems();
}
function PawnItem() {
_root.p1.ModGold(Math.round(_parent.p1.FindArtifact(availableArtifacts[availableArtifactIndex].ID, false).GetCost() * 0.5));
_parent.p1.RemoveArtifact(availableArtifacts[availableArtifactIndex].ID);
availableArtifacts.splice(availableArtifactIndex, 1);
curPage = 1;
selectedMenuIndex = -1;
TurnOffButtons();
DisableEquip();
LoadUnequipped();
DisplayItems();
}
function DisplayItems() {
ClearItems();
var _local7 = (curPage - 1) * pageSize;
var _local3 = _local7;
while ((_local3 < availableArtifacts.length) && (_local3 < (_local7 + pageSize))) {
var _local6 = _root.GetDepthSlot(4000, artifactlistArr);
var _local9;
var _local8;
_local9 = -5;
_local8 = -68 + ((_local3 - _local7) * 63);
var _local4 = this.attachMovie("itemTavern", "aitem" + _local6, _local6);
_local4._x = _local9;
_local4._y = _local8;
var _local5 = new TextFormat();
_local5.font = "Verdana";
_local5.size = 12;
_local5.bold = true;
_local5.color = _root.GetQualityColor(availableArtifacts[_local3].qualityID);
_local4.itemName.setNewTextFormat(_local5);
_local4.itemName.text = availableArtifacts[_local3].artifactName;
_local4.slotName.text = _root.SlotName(availableArtifacts[_local3].slotID);
_local4.itemDesc.text = availableArtifacts[_local3].GetDescription();
artifactlistArr.push(_local4);
_local3++;
}
CheckPrevNext();
if (availableArtifacts.length > 0) {
txtNothingToLearn._visible = false;
} else {
txtNothingToLearn._visible = true;
if (_root.p1.artifacts.length > 0) {
txtNothingToLearn.theText.text = "All your Artifacts are currently equipped.";
} else {
txtNothingToLearn.theText.text = "You have no Artifacts in your inventory at this time.";
}
}
}
function SetPawnText() {
txtPawn._visible = true;
var _local2 = _parent.p1.FindArtifact(availableArtifacts[availableArtifactIndex].ID, false).GetCost() * 0.5;
_local2 = Math.round(_local2);
if (_local2 == 0) {
txtPawn.text = "Quest Item";
btnPawn.gotoAndStop("disabled");
btnPawn.enabled = false;
} else {
txtPawn.text = ("Pawn for " + _local2) + "g";
}
}
function UnsetPawnText() {
txtPawn.text = "";
txtPawn._visible = false;
}
function CheckPrevNext() {
if (availableArtifacts.length > (curPage * pageSize)) {
btnNext.gotoAndStop("up");
btnNext.enabled = true;
} else {
btnNext.gotoAndStop("disabled");
btnNext.enabled = false;
}
if (curPage > 1) {
btnPrev.gotoAndStop("up");
btnPrev.enabled = true;
} else {
btnPrev.gotoAndStop("disabled");
btnPrev.enabled = false;
}
}
var artifactlistArr = new Array();
var pageSize = 3;
var curPage = 1;
var availableArtifacts = new Array();
var selectedMenuIndex = -1;
var availableArtifactIndex = -1;
coverup._visible = false;
txtNothingToLearn._visible = false;
txtPawn.text = "";
txtPawn._visible = false;
LoadUnequipped();
DisableEquip();
stop();
Instance of Symbol 617 MovieClip "btnPrev" in Symbol 697 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_parent.curPage--;
_parent.DisplayItems();
}
Instance of Symbol 608 MovieClip "btnNext" in Symbol 697 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_parent.curPage++;
_parent.DisplayItems();
}
Instance of Symbol 684 MovieClip "btnPawn" in Symbol 697 MovieClip Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
gotoAndStop ("down");
}
}
on (release) {
_parent.PawnItem();
}
Instance of Symbol 693 MovieClip "btnEquip" in Symbol 697 MovieClip Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
gotoAndStop ("down");
}
}
on (release) {
_parent.EquipItem();
}
Symbol 706 MovieClip Frame 1
stop();
Symbol 706 MovieClip Frame 2
stop();
Symbol 706 MovieClip Frame 3
stop();
Symbol 706 MovieClip Frame 4
stop();
Symbol 715 MovieClip Frame 1
stop();
Symbol 715 MovieClip Frame 2
stop();
Symbol 715 MovieClip Frame 3
stop();
Symbol 715 MovieClip Frame 4
stop();
Symbol 718 MovieClip Frame 1
function LoadEvents() {
availableEvents = [];
arts = _root.p1.uncompletedEvents;
var _local2 = 0;
while (_local2 < arts.length) {
availableEvents.push(Event.GetEvent(arts[_local2]));
_local2++;
}
availableEvents.sortOn("levelMin", Array.NUMERIC);
DisplayItems();
}
function GetSelected() {
var _local1 = 0;
while (_local1 < eventlistArr.length) {
if (eventlistArr[_local1]._currentframe == 2) {
selectedMenuIndex = _local1;
availableEventIndex = ((curPage - 1) * pageSize) + selectedMenuIndex;
break;
}
_local1++;
}
}
function EnableBegin() {
btnBegin.gotoAndStop("up");
btnBegin.enabled = true;
}
function DisableBegin() {
btnBegin.gotoAndStop("disabled");
btnBegin.enabled = false;
}
function TurnOffButtons() {
var _local1 = 0;
while (_local1 < eventlistArr.length) {
eventlistArr[_local1].gotoAndStop(1);
_local1++;
}
DisableBegin();
}
function ClearItems() {
var _local1 = 0;
while (_local1 < eventlistArr.length) {
eventlistArr[_local1].removeMovieClip();
_local1++;
}
eventlistArr = [];
}
function BeginEvent() {
_root.currentEvent = availableEvents[availableEventIndex];
_root.fromTavern = true;
_root.StartTransition("Staging");
}
function DisplayItems() {
ClearItems();
var _local6 = (curPage - 1) * pageSize;
var _local3 = _local6;
while ((_local3 < availableEvents.length) && (_local3 < (_local6 + pageSize))) {
var _local5 = _root.GetDepthSlot(4000, eventlistArr);
var _local8;
var _local7;
_local8 = -5;
_local7 = -68 + ((_local3 - _local6) * 63);
var _local4 = this.attachMovie("itemEvent", "aitem" + _local5, _local5);
_local4._x = _local8;
_local4._y = _local7;
_local4.itemName.text = availableEvents[_local3].eventTitle;
_local4.eventLevel.text = "Level " + availableEvents[_local3].levelMin;
_local4.itemDesc.text = availableEvents[_local3].description;
eventlistArr.push(_local4);
_local3++;
}
CheckPrevNext();
if (availableEvents.length > 0) {
txtNothingToLearn._visible = false;
} else {
txtNothingToLearn._visible = true;
}
}
function CheckPrevNext() {
if (availableEvents.length > (curPage * pageSize)) {
btnNext.gotoAndStop("up");
btnNext.enabled = true;
} else {
btnNext.gotoAndStop("disabled");
btnNext.enabled = false;
}
if (curPage > 1) {
btnPrev.gotoAndStop("up");
btnPrev.enabled = true;
} else {
btnPrev.gotoAndStop("disabled");
btnPrev.enabled = false;
}
}
var eventlistArr = new Array();
var pageSize = 4;
var curPage = 1;
var availableEvents = new Array();
var selectedMenuIndex = -1;
var availableEventIndex = -1;
coverup._visible = false;
txtNothingToLearn._visible = false;
txtPawn.text = "";
txtPawn._visible = false;
LoadEvents();
DisableBegin();
stop();
Instance of Symbol 617 MovieClip "btnPrev" in Symbol 718 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_parent.curPage--;
_parent.DisplayItems();
}
Instance of Symbol 608 MovieClip "btnNext" in Symbol 718 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_parent.curPage++;
_parent.DisplayItems();
}
Instance of Symbol 715 MovieClip "btnBegin" in Symbol 718 MovieClip Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
gotoAndStop ("down");
}
}
on (release) {
_parent.BeginEvent();
}
Symbol 724 Button
on (release) {
gotoAndPlay (80);
}
Instance of Symbol 719 MovieClip in Symbol 810 MovieClip Frame 1
on (release) {
getURL ("http://www.jinx.com/track.aspx?rsid=301&bid=25", "_blank");
}
Instance of Symbol 719 MovieClip in Symbol 810 MovieClip Frame 89
on (release) {
getURL ("http://www.jinx.com", "_blank");
}
Symbol 810 MovieClip Frame 95
_parent.ResumeFromIntro();
stop();
Symbol 816 MovieClip Frame 1
function ExistsInArray(lookup, arr) {
var _local3 = false;
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1] == lookup) {
_local3 = true;
break;
}
_local1++;
}
return(_local3);
}
function GetSelected() {
var _local1 = 0;
while (_local1 < itemlistArr.length) {
if (itemlistArr[_local1]._currentframe == 2) {
selectedMenuIndex = _local1;
availableSkillIndex = ((curPage - 1) * pageSize) + selectedMenuIndex;
break;
}
_local1++;
}
}
function EnablePurchase() {
var _local2 = Skill.LoadSkill(availableSkills[availableSkillIndex].skillID);
if (_local2.goldCost <= _root.p1.runes) {
btnPurchase.gotoAndStop("up");
btnPurchase.enabled = true;
} else {
DisablePurchase();
}
}
function DisablePurchase() {
btnPurchase.gotoAndStop("disabled");
btnPurchase.enabled = false;
}
function TurnOffButtons() {
var _local1 = 0;
while (_local1 < itemlistArr.length) {
itemlistArr[_local1].gotoAndStop(1);
_local1++;
}
}
function ClearItems() {
var _local1 = 0;
while (_local1 < itemlistArr.length) {
itemlistArr[_local1].removeMovieClip();
_local1++;
}
}
function DisplayItems() {
ClearItems();
var _local6 = (curPage - 1) * pageSize;
var _local3 = _local6;
while ((_local3 < availableSkills.length) && (_local3 < (_local6 + pageSize))) {
var _local5 = _root.GetDepthSlot(4000, itemlistArr);
var _local8;
var _local7;
_local8 = 4;
_local7 = -32 + ((_local3 - _local6) * 94);
var _local4 = this.attachMovie("itemSkillUpgrade", "item" + _local5, _local5);
_local4._x = _local8;
_local4._y = _local7;
_local4.itemName.text = availableSkills[_local3].skillName;
_local4.itemDesc.text = Skill.ReplaceDescTokens(availableSkills[_local3]);
_local4.itemCost.text = availableSkills[_local3].goldCost + " Rune";
if (availableSkills[_local3].goldCost > 1) {
_local4.itemCost.text = _local4.itemCost.text + "s";
}
_local4.parentSkillTxt.text = ("Upgrades " + _root.parentSkillArr[availableSkills[_local3].parentSkillID]) + "";
itemlistArr.push(_local4);
_local3++;
}
CheckPrevNext();
if (availableSkills.length > 0) {
txtNothingToLearn._visible = false;
} else {
txtNothingToLearn._visible = true;
}
}
function CheckPrevNext() {
if (availableSkills.length > (curPage * pageSize)) {
btnNext.gotoAndStop("up");
btnNext.enabled = true;
} else {
btnNext.gotoAndStop("disabled");
btnNext.enabled = false;
}
if (curPage > 1) {
btnPrev.gotoAndStop("up");
btnPrev.enabled = true;
} else {
btnPrev.gotoAndStop("disabled");
btnPrev.enabled = false;
}
}
var itemlistArr = new Array();
var pageSize = 3;
var curPage = 1;
var availableSkills = new Array();
var selectedMenuIndex = -1;
var availableSkillIndex = -1;
var i = 0;
while (i < _root.skillArr.length) {
if (((_root.skillArr[i].reqLevel == 9999) && (_root.skillArr[i].forSale)) && (_root.skillArr[i].reqClass == _root.p1.classID)) {
if (!ExistsInArray(_root.skillArr[i].skillID, _root.p1.skillUpgradeIDs)) {
availableSkills.push(_root.skillArr[i]);
}
}
i++;
}
DisablePurchase();
DisplayItems();
stop();
Instance of Symbol 599 MovieClip "btnPurchase" in Symbol 816 MovieClip Frame 1
on (rollOver) {
if (this.enabled) {
gotoAndStop ("over");
}
}
on (releaseOutside, rollOut) {
if (this.enabled) {
gotoAndStop ("up");
}
}
on (press) {
if (this.enabled) {
gotoAndStop ("down");
}
}
on (release) {
var s = Skill.LoadSkill(_parent.availableSkills[_parent.availableSkillIndex].skillID);
_root.p1.skillUpgradeIDs.push(s.skillID);
_root.p1.ModRunes(s.goldCost * -1);
_parent.availableSkills.splice(_parent.availableSkillIndex, 1);
_parent.curPage = 1;
_parent.selectedMenuIndex = -1;
_parent.TurnOffButtons();
_parent.DisablePurchase();
_parent.DisplayItems();
_parent._parent.UpdateStats();
}
Instance of Symbol 608 MovieClip "btnNext" in Symbol 816 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_parent.curPage++;
_parent.DisplayItems();
}
Instance of Symbol 617 MovieClip "btnPrev" in Symbol 816 MovieClip Frame 1
on (rollOver) {
gotoAndStop ("over");
}
on (releaseOutside, rollOut) {
gotoAndStop ("up");
}
on (press) {
_root.PlaySound(4);
gotoAndStop ("down");
}
on (release) {
_parent.curPage--;
_parent.DisplayItems();
}
Symbol 831 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 2
stop();
Symbol 844 MovieClip Frame 1
stop();
Symbol 844 MovieClip Frame 2
stop();