Frame 1
all_script_address = "";
loadVariables (all_script_address + "getIP.php", _level0, "GET");
loadVariables (all_script_address + "message.php", _level0, "GET");
if ((this._url == "http://www.ragnarok.wilfritz.com/ragendarslot.swf") || (this._url == "http://ragnarok.wilfritz.com/ragendarslot.swf")) {
_allowPlay = "YES";
}
score_script_address1 = all_script_address + "daily_scores.php";
score_script_address2 = all_script_address + "weekly_scores.php";
score_script_address3 = all_script_address + "monthly_scores.php";
if (_allowsound == false) {
} else {
_allowsound = true;
}
_uninitiated = true;
_root._slotEffect = "MISS";
_justloaded = false;
stop();
Stage.showMenu = false;
_bytesLoadedtext = "";
_totalBytestext = "";
_percentLoaded = "";
temp.onEnterFrame = function () {
_totalBytes = Math.round(_root.getBytesTotal() / 1024);
_bytesLoaded = Math.round(_root.getBytesLoaded() / 1024);
if (_bytesLoaded == _totalBytes) {
gotoAndStop (2);
}
_bytesLoadedtext = _bytesLoaded + "Kb";
_totalBytestext = _totalBytes + "Kb";
loadbar._xscale = (_bytesLoaded / _totalBytes) * 100;
_percentLoaded = Math.floor((_bytesLoaded / _totalBytes) * 100) + "%";
};
Frame 2
authorizeCounter = 3;
if (_allowPlay == "YES") {
gotoAndStop (5);
}
authorizedTemp.onEnterFrame = function () {
if (_allowPlay == "YES") {
gotoAndStop (5);
} else if (authorizeCounter > 0) {
authorizeCounter = authorizeCounter - 0.025;
} else if (_allowPlay != "YES") {
gotoAndStop (3);
}
};
stop();
temp.onEnterFrame = function () {
if (_framesloaded == _totalframes) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Frame 3
stop();
unauthorized.onEnterFrame = function () {
if (_allowPlay == "YES") {
gotoAndStop (5);
}
};
Frame 4
if (_allowPlay == "YES") {
gotoAndStop (5);
} else {
gotoAndStop (3);
}
Frame 5
if (_allowsound == false) {
} else {
_allowsound = true;
}
if (_allowmusic == false) {
} else {
_allowmusic = true;
}
_uninitiated = true;
_justloaded = false;
stop();
Frame 6
stop();
Frame 7
stop();
Frame 31
function enemyAI() {
if (_enemyStunned) {
_enemyStunned = false;
gotoAndPlay (715);
} else if (_enemy == "bapho") {
if ((((_enemyhp < (0.2 * _enemymaxhp)) && (random(100) < 50)) || ((random(100) < 20) && (_enemyhp < (0.8 * _enemymaxhp)))) && (_enemymp >= _healmpCost)) {
_castedLoV = false;
_enemymp = _enemymp - _healmpCost;
gotoAndPlay (399);
} else if (((random(100) < 30) && (_enemymp > _LoVmpCost)) && ((_castedLoV == false) || (_charlevel > 100))) {
_enemymp = _enemymp - _LoVmpCost;
gotoAndPlay (306);
} else {
_castedLoV = false;
if ((random(100) < (35 + (_charlevel / 10))) && (_enemymp > _jumpAttackmpCost)) {
_enemymp = _enemymp - _jumpAttackmpCost;
gotoAndPlay (539);
} else {
gotoAndPlay (116);
}
}
} else if (_enemy == "eddga") {
if ((((_enemyhp < (0.2 * _enemymaxhp)) && (random(100) < 50)) || ((random(100) < 20) && (_enemyhp < (0.8 * _enemymaxhp)))) && (_enemymp >= _healmpCost)) {
_enemymp = _enemymp - _healmpCost;
gotoAndPlay (399);
} else if ((random(100) < 40) && (_enemymp > _fireballmpCost)) {
_enemymp = _enemymp - _fireballmpCost;
gotoAndPlay (664);
} else {
gotoAndPlay (587);
}
} else if (_enemy == "turtle") {
if ((((_enemyhp < (0.2 * _enemymaxhp)) && (random(100) < 50)) || ((random(100) < 20) && (_enemyhp < (0.8 * _enemymaxhp)))) && (_enemymp >= _healmpCost)) {
_enemymp = _enemymp - _healmpCost;
gotoAndPlay (399);
} else if ((random(100) < 20) && (_enemymp > _waterballmpCost)) {
_enemymp = _enemymp - _waterballmpCost;
gotoAndPlay (836);
} else {
gotoAndPlay (761);
}
}
}
function getCharHP() {
_root._charmaxhp = Math.round((((_root._charvit * 6) + (_root._charlevel * 11)) * ((100 + _root._charlevel) + _root._charVit)) / 100) + _root._charExtraHP;
}
function getCharMP() {
_root._charmaxmp = Math.round((_root._charint + _root._charlevel) * _root._mpFactor);
_levels50to100 = (_root._charint + _root._charlevel) - 50;
if (_levels50to100 > 50) {
_levels50to100 = 50;
} else if (_levels50to100 < 0) {
_levels50to100 = 0;
}
_root._charmaxmp = _root._charmaxmp + _levels50to100;
_levels0to50 = _root._charint + _root._charlevel;
if (_levels0to50 > 50) {
_levels0to50 = 50;
}
_root._charmaxmp = _root._charmaxmp + _levels0to50;
}
function getEnemyMP() {
_root._enemymp = (_root._enemymaxmp = Math.round((_root._enemyint + _root._enemylevel) * _mpFactor));
_levels50to100 = Math.round(_root._enemyint + _root._enemylevel) - 50;
if (_levels50to100 > 50) {
_levels50to100 = 50;
} else if (_levels50to100 < 0) {
_levels50to100 = 0;
}
_root._enemymp = (_root._enemymaxmp = _root._enemymaxmp + _levels50to100);
_levels0to50 = Math.round(_root._enemyint) + _root._enemylevel;
if (_levels0to50 > 50) {
_levels0to50 = 50;
}
_root._enemymp = (_root._enemymaxmp = _root._enemymaxmp + Math.round(_levels0to50));
}
function calculateDef() {
if (_root._slotEffect == "STRIPARMOR") {
_root._charDef = 10;
} else {
_root._charDef = _root._charArmor + 10;
}
}
function calculatebaseDamage() {
if (_root._slotEffect == "STRIPWEAPON") {
_root._actualcharstr = ((_root._charstr + (4 * _root._swordmasterylevel)) + (_root._chardamageFactor * _root._charlevel)) + 20;
} else {
_root._actualcharstr = (((_root._charstr + (4 * _root._swordmasterylevel)) + _root._charWeaponDamage) + (_root._chardamageFactor * _root._charlevel)) + 20;
}
_root._charbasedamage = (Math.round(_root._actualcharstr) + "-") + Math.round(_root._actualcharstr * 1.1);
}
function calculateCrit() {
if (_root._slotEffect == "MISFORTUNE") {
_root._charcrit = 0;
} else {
_root._charcrit = Math.floor(_root._charluk * 0.75) + 1;
}
}
function calculateEva() {
if (_root._slotEffect == "SLOW") {
_root._chareva = ((Math.round(_root._charagi / 2) + " (") + ((70 - _root._enemydex) + Math.round(_root._charagi / 2))) + "%)";
} else {
_root._chareva = ((_root._charagi + " (") + ((70 - _root._enemydex) + _root._charagi)) + "%)";
}
}
function calculateHit() {
_root._charhit = (((_root._chardex + 50) + " (") + Math.round((_root._chardex + 50) - _root._enemyagi)) + "%)";
}
function calculateHits() {
if (_root._slotEffect == "SLOW") {
_root._charHits = Math.floor((1 + Math.floor((_root._charagi + 1) / 20)) / 2);
if (_root._charHits < 1) {
_root._charHits = 1;
}
} else if (_root._quickenNow) {
_root._charHits = 2 + Math.floor((_root._charagi + 1) / (20 - _root._quickenLevel));
} else {
_root._charHits = 1 + Math.floor((_root._charagi + 1) / 20);
}
}
function LoVSubDamage() {
if (_quitgame) {
_enemydamagedealt = Math.ceil(((_root._charmaxhp / 12) * (100 + random(50))) / 100);
} else {
_enemydamagedealt = Math.round((((_enemyint * (100 + random(100))) / 100) * (101 - (_charint / 1.5))) / 500);
}
}
function waterballSubDamage() {
if (_quitgame) {
_enemydamagedealt = Math.ceil(((_root._charmaxhp / 3) * (100 + random(100))) / 100);
} else {
_enemydamagedealt = Math.round((((_enemyint * (100 + random(100))) / 100) * (101 - (_charint / 1.5))) / 110);
}
}
function charhpbar() {
_charhptemp = _charhptemp - ((_charhptemp - _charhp) / 9);
if (_charhptemp < 0) {
_charhptemp = 0;
}
charhealth.text = (charhealth2.text = Math.round(_charhptemp));
charmaxhealth.text = (charmaxhealth2.text = _charmaxhp);
charhealthbar._xscale = ((_charhptemp - ((_charhptemp - _charhp) / 9)) / _charmaxhp) * 100;
if (charhealthbar._xscale < 0) {
charhealthbar._xscale = 0;
}
}
function enemyhpbar() {
_enemyhptemp = _enemyhptemp - ((_enemyhptemp - _enemyhp) / 9);
if (_enemyhptemp < 0) {
_enemyhptemp = 0;
}
enemyhealth.text = (enemyhealth2.text = Math.round(_enemyhptemp));
enemymaxhealth.text = (enemymaxhealth2.text = _enemymaxhp);
enemyhealthbar._xscale = ((_enemyhptemp - ((_enemyhptemp - _enemyhp) / 9)) / _enemymaxhp) * 100;
if (enemyhealthbar._xscale < 0) {
enemyhealthbar._xscale = 0;
}
}
function charmpbarFunction() {
_charmptemp = _charmptemp - ((_charmptemp - _charmp) / 9);
if (_charmptemp < 0) {
_charmptemp = 0;
}
charmp.text = (charmp2.text = Math.round(_charmptemp));
charmaxmp.text = (charmaxmp2.text = _charmaxmp);
charmpbar._xscale = ((_charmptemp - ((_charmptemp - _charmp) / 9)) / _charmaxmp) * 100;
if (charmpbar._xscale < 0) {
charmpbar._xscale = 0;
}
}
function enemympbarFunction() {
_enemymptemp = _enemymptemp - ((_enemymptemp - _enemymp) / 9);
if (_enemymptemp < 0) {
_enemymptemp = 0;
}
enemymp.text = (enemymp2.text = Math.round(_enemymptemp));
enemymaxmp.text = (enemymaxmp2.text = _enemymaxmp);
enemympbar._xscale = ((_enemymptemp - ((_enemymptemp - _enemymp) / 9)) / _enemymaxmp) * 100;
if (enemympbar._xscale < 0) {
enemympbar._xscale = 0;
}
}
saveComplete = function () {
gotoAndStop (5);
};
gotoandstop47 = function () {
gotoAndStop (77);
};
isDefendSuccessful = function () {
if (_defendNow && (random(100) < (40 + (_defendlevel * 5)))) {
_defendSuccess = true;
} else {
_defendSuccess = false;
}
};
ifDefendNow = function () {
if (_defendSuccess) {
_actualchardef = 100;
} else if (_defendNow) {
_actualchardef = _chardef + (2.5 * _defendlevel);
} else {
_actualchardef = _chardef;
}
};
toggleMusic = function () {
if (bgmusic._currentframe == 2) {
_allowmusic = false;
} else if (bgmusic._currentframe == 3) {
_allowsound = false;
} else {
_allowsound = true;
_allowmusic = true;
}
};
commandAttack = function () {
_bashNow = false;
gotoAndPlay (77);
};
commandDefend = function () {
if (_defendlevel > 0) {
_defendNow = true;
gotoAndPlay (433);
}
};
commandBash = function () {
if (_bashlevel > 0) {
if ((_charmp >= _bashMPCost1) && (_bashlevel <= 5)) {
_charmp = _charmp - _bashMPCost1;
gotoAndPlay (77);
_bashnow = true;
} else if ((_charmp >= _bashMPCost2) && (_bashlevel >= 5)) {
_charmp = _charmp - _bashMPCost2;
gotoAndPlay (77);
_bashnow = true;
}
}
};
commandProvoke = function () {
if (((_provokelevel > 0) && (_charmp >= 10)) && (_provokedThisRound == false)) {
_provokeCounter = 6 + (_provokeLevel / 2);
_enemyprovoked = true;
_provokedThisRound = true;
_charmp = _charmp - 10;
gotoAndPlay (230);
}
};
commandHeal = function () {
if ((_healLevel > 0) && (_charmp >= 20)) {
_charmp = _charmp - 20;
gotoAndPlay (192);
}
};
commandQuicken = function () {
if (((_charmp >= _quickenMPCost) && (_quickenNow == false)) && (_quickenNow == false)) {
_quickenedThisRound = true;
_charmp = _charmp - _quickenMPCost;
if (_root._slotEffect == "SLOW") {
_root._slotEffect = "MISS";
} else {
_quickenCounter = 6 + (_quickenLevel / 2);
_quickenNow = true;
}
_root.calculateHits();
gotoAndPlay (441);
}
};
commandStatus = function () {
gotoAndStop (537);
};
commandShop = function () {
gotoAndStop (536);
};
justInitiated = false;
dmgtextSpeed = 20;
_fpsdelay = getTimer();
_frames = 0;
if (_justloaded) {
if (_enemy == "") {
_enemy = "bapho";
}
} else {
var randomNumber = random(100);
if (randomNumber < 33) {
_enemy = "eddga";
} else if (randomNumber < 66) {
_enemy = "bapho";
} else {
_enemy = "turtle";
}
}
charhpbar();
enemyhpbar();
charmpbarFunction();
enemympbarFunction();
_counterFactor = 7.5;
_chardamageFactor = 0.25;
_charExtraHP = 80;
_enemyExtraHP = 80;
_fireballmpCost = 25;
_LoVmpCost = 40;
_waterballmpCost = 25;
_healmpCost = 20;
_bashMPCost1 = 5;
_bashMPCost2 = 10;
_mpFactor = 0.8;
_quickenMPCost = 15;
_jumpAttackmpCost = 5;
_charvitLimit = 99;
_charintLimit = 99;
_charstrLimit = 99;
_charagiLimit = 99;
_charlukLimit = 99;
_chardexLimit = 99;
if (_uninitiated) {
justInitiated = true;
stop();
_root.usedPotionThisRound = false;
_uninitiated = false;
_quickenedThisRound = false;
_provokedThisRound = false;
_charMoney = 0;
_quickenNow = false;
_showStatus = true;
_autoSelect = true;
_charWeaponDamage = 1;
_statpoints = 48;
_skillpoints = 1;
_charlevel = 1;
_charvit = 1;
getCharHP();
_root._charhp = _root._charmaxhp;
_charhptemp = 0;
_charint = 1;
getCharMP();
_root._charmp = _root._charmaxmp;
_charmptemp = 0;
_charstr = 1;
_charArmor = 1;
_charagi = 1;
_charluk = 1;
_chardex = 1;
_healLevel = 0;
_defendlevel = 0;
_bashlevel = 0;
_regenlevel = 0;
_provokelevel = 0;
_swordmasterylevel = 0;
_quickenlevel = 0;
_counterLevel = 0;
redPotions = 0;
yellowPotions = 0;
whitePotions = 0;
bluePotions = 0;
greenPotions = 0;
}
_quickenCounter = 0;
_provokeCounter = 0;
_quickenedThisRound = false;
_quickenNow = false;
_enemyprovoked = false;
_provokedThisRound = false;
_justLeveledUp = true;
_enemylevel = _charlevel;
if (!_justloaded) {
if (_enemy == "bapho") {
_enemyExtraHP = 70 + (_enemylevel * 5);
_enemyvit = 1;
_enemyint = 5;
_enemystr = 20;
_enemydef = 1;
_enemyagi = 1;
_enemycrit = 1;
_enemydex = 30;
_levelupCounter = 1;
while (_levelupCounter < _enemylevel) {
_enemyvit = _enemyvit + 1;
_enemyint = _enemyint + (1 + Math.floor(_levelupCounter / 50));
_enemystr = _enemystr + (2.6 + Math.floor(_levelupCounter / 50));
_enemydef = _enemydef + 0.5;
_enemyagi = _enemyagi + 0.2;
_enemydex = _enemydex + 1;
_levelupCounter++;
}
} else if (_enemy == "eddga") {
_enemyExtraHP = 80 + (_enemylevel * 7);
_enemyvit = 5;
_enemyint = 5;
_enemystr = 20;
_enemydef = 5;
_enemyagi = -25;
_enemycrit = 1;
_enemydex = 25;
_levelupCounter = 1;
while (_levelupCounter < _enemylevel) {
_enemyvit = _enemyvit + 1.33333333333333;
_enemyint = _enemyint + (0.666666666666667 + (Math.floor(_levelupCounter / 50) * 0.666666666666667));
_enemystr = _enemystr + (3.1 + Math.floor(_levelupCounter / 50));
_enemydef = _enemydef + 0.5;
_enemyagi = _enemyagi + 0.2;
_enemydex = _enemydex + 1;
_levelupCounter++;
}
} else if (_enemy == "turtle") {
_enemyExtraHP = 100 + (_enemylevel * 10);
_enemyvit = 10;
_enemyint = 1;
_enemystr = 15;
_enemydef = 5;
_enemyagi = -50;
_enemycrit = 1;
_enemydex = 49;
_levelupCounter = 1;
while (_levelupCounter < _enemylevel) {
_enemyvit = _enemyvit + 1;
_enemyint = _enemyint + (0.9 + (Math.floor(_levelupCounter / 50) * 0.9));
_enemystr = _enemystr + (2.85 + Math.floor(_levelupCounter / 50));
_enemydef = _enemydef + 0.6;
_enemyagi = _enemyagi + 0.1;
_enemydex = _enemydex + 1;
_levelupCounter++;
}
}
_enemyhp = (_enemymaxhp = Math.round((((_root._enemyvit * 6) + (_root._enemylevel * 6)) * ((100 + _root._enemylevel) + _root._enemyvit)) / 100) + _enemyExtraHP);
_enemyhptemp = 0;
getEnemyMP();
_enemymptemp = 0;
if (_enemydef > 75) {
_enemydef = 75;
}
_enemyprovoked = false;
}
_root.calculateHits();
_root.calculatebaseDamage();
_root.getCharHP();
_root.getCharMP();
_root.calculateEva();
_root.calculateHit();
_root.calculateDef();
_root.calculateCrit();
tacticsClip._visible = false;
if (_showStatus == false) {
statusScreen._visible = false;
play();
}
shopButton._visible = false;
fightButton._visible = false;
shopWindow._visible = false;
dimmer._visible = false;
fps.onEnterFrame = function () {
_frames++;
if ((getTimer() - _fpsdelay) >= 1000) {
_fpsdelay = getTimer();
_framerate = _frames;
_frames = 0;
}
};
Frame 32
tacticsClip._visible = true;
statusScreen._visible = true;
charhealthbar.onEnterFrame = function () {
if (_allowsound) {
if (_allowmusic) {
tellTarget (bgmusic) {
gotoAndStop (2);
};
} else {
tellTarget (bgmusic) {
gotoAndStop (3);
};
}
} else {
tellTarget (bgmusic) {
gotoAndStop (4);
};
}
charhpbar();
enemyhpbar();
charmpbarFunction();
enemympbarFunction();
};
if (_enemy == "eddga") {
tellTarget (enemyEnter) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyEnter) {
gotoAndStop (3);
};
}
Frame 61
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 72
if (_allowsound) {
sound_drawweapon.play();
}
Frame 75
_quickenCounter--;
_provokeCounter--;
if (_quickenCounter <= 0) {
_quickenedThisRound = false;
_quickenNow = false;
_root.calculateHits();
}
if (_provokeCounter <= 0) {
_enemyprovoked = false;
_provokedThisRound = false;
}
if (_justloaded) {
_justLeveledUp = false;
_justloaded = false;
_regenerateThisRound = true;
} else if (_justLeveledUp) {
_regenerateThisRound = true;
_justLeveledUp = false;
} else {
_regenerateThisRound = false;
}
play();
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 76
suicideButton._visible = false;
suicideButton2._visible = false;
_enemyStunned = false;
if (_regenerateThisRound) {
} else {
usedPotionThisRound = false;
_regenerateThisRound = true;
if ((1 + Math.floor(_charmaxmp / 100)) < 10) {
_charmp = _charmp + (1 + Math.floor(_charmaxmp / 100));
} else {
_charmp = _charmp + 9;
}
if ((1 + Math.floor(_enemymaxmp / 100)) < 10) {
_enemymp = _enemymp + (1 + Math.floor(_enemymaxmp / 100));
} else {
_enemymp = _enemymp + 9;
}
if ((_root._slotEffect == "POISON") || (poisoncounter > 0)) {
_charhp = _charhp - Math.floor(_charmaxhp / 20);
poisoncounter--;
} else {
_charhp = _charhp + (1 + Math.floor(_charmaxhp / 100));
}
_enemyhp = _enemyhp + (1 + Math.floor(_enemymaxhp / 100));
if (_charmp > _charmaxmp) {
_charmp = _charmaxmp;
}
if (_enemymp > _enemymaxmp) {
_enemymp = _enemymaxmp;
}
if (_charhp > _charmaxhp) {
_charhp = _charmaxhp;
}
if (_charhp < 1) {
_charhp = 1;
}
if (_enemyhp > _enemymaxhp) {
_enemyhp = _enemymaxhp;
}
}
charhpbar();
enemyhpbar();
charmpbarFunction();
enemympbarFunction();
stop();
if (((_autoHeal && (_charhp < ((_charmaxhp * _healPercent) / 100))) && (_healLevel > 0)) && (_charmp >= 20)) {
_charmp = _charmp - 20;
gotoAndPlay (192);
} else if (_autoDefend && (_defendLevel > 0)) {
_defendNow = true;
gotoAndPlay (433);
} else if (((_autoProvoke && (_provokeLevel > 0)) && (_charmp >= 10)) && (_provokedThisRound == false)) {
_provokeCounter = 6 + (_provokeLevel / 2);
_enemyprovoked = true;
_provokedThisRound = true;
_charmp = _charmp - 10;
gotoAndPlay (230);
} else if (((_autoQuicken && (_charmp >= 15)) && (_quickenlevel > 0)) && (_quickenNow == false)) {
_quickenedThisRound = true;
_charmp = _charmp - _quickenMPCost;
if (_root._slotEffect == "SLOW") {
_root._slotEffect = "MISS";
} else {
_quickenCounter = 6 + (_quickenLevel / 2);
_quickenNow = true;
}
_root.calculateHits();
gotoAndPlay (441);
} else if (((_autoBash && (_charmp >= _bashMPCost1)) && (_bashlevel <= 5)) && (_bashlevel > 0)) {
_charmp = _charmp - _bashMPCost1;
gotoAndPlay (77);
_bashnow = true;
} else if ((_autoBash && (_charmp >= _bashMPCost2)) && (_bashlevel >= 5)) {
_charmp = _charmp - _bashMPCost2;
gotoAndPlay (77);
_bashnow = true;
} else if (_autoAttack) {
_bashNow = false;
gotoAndPlay (77);
}
_quitgame = false;
function command(_button, _skillLevel, _skillMPCost) {
if ((_skillLevel < 1) || (_charmp < _skillMPCost)) {
if (_button == "defend") {
defendButton._visible = false;
}
if (_button == "bash") {
bashButton._visible = false;
}
if (_button == "provoke") {
provokeButton._visible = false;
}
if (_button == "heal") {
healButton._visible = false;
}
if (_button == "quicken") {
quickenButton._visible = false;
}
}
}
potionList._visible = false;
f_hint._visible = false;
quickenButton._visible = true;
defendButton._visible = true;
bashButton._visible = true;
provokeButton._visible = true;
healButton._visible = true;
if (usedPotionThisRound) {
useButton._visible = false;
}
if (_quickenedThisRound) {
quickenButton._visible = false;
}
if (_provokedThisRound) {
provokeButton._visible = false;
}
command("defend", _defendlevel, 0);
if (_bashlevel > 5) {
command("bash", _bashlevel, 15);
} else {
command("bash", _bashlevel, 7);
}
command("provoke", _provokelevel, 15);
command("heal", _heallevel, 20);
command("quicken", _quickenlevel, 15);
temp2.onEnterFrame = function () {
if (Key.isDown(18)) {
f_hint._visible = true;
} else {
f_hint._visible = false;
}
if (Key.isDown(112)) {
commandAttack();
} else if (Key.isDown(113)) {
commandDefend();
} else if (Key.isDown(114)) {
commandBash();
} else if (Key.isDown(115)) {
commandProvoke();
} else if (Key.isDown(116)) {
commandHeal();
} else if (Key.isDown(117)) {
commandQuicken();
} else if (Key.isDown(120)) {
commandStatus();
} else if (Key.isDown(121)) {
commandShop();
}
quickenButton._visible = true;
defendButton._visible = true;
bashButton._visible = true;
provokeButton._visible = true;
healButton._visible = true;
if (_quickenedThisRound) {
quickenButton._visible = false;
}
if (_provokedThisRound) {
provokeButton._visible = false;
}
command("defend", _defendlevel, 0);
if (_bashlevel > 5) {
command("bash", _bashlevel, 15);
} else {
command("bash", _bashlevel, 7);
}
command("provoke", _provokelevel, 15);
command("heal", _heallevel, 20);
command("quicken", _quickenlevel, _quickenMPCost);
};
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 77
_hitsDone = 0;
_charAttackDamage = 0;
Frame 78
if (_allowsound) {
sound_dash.play();
}
Frame 88
if (_allowsound && (_bashnow)) {
sound_bash.play();
}
if (_bashnow) {
stop();
basheffect.play();
_bashcounter = 15;
}
basheffect.onEnterFrame = function () {
if (_bashcounter > 0) {
_bashcounter--;
} else {
play();
}
};
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 89
if (_allowsound) {
sound_swingweapon.play();
}
Frame 90
_root.calculateCrit();
if (_bashnow) {
_charhitrate = (_chardex + 50) + (5 * _bashlevel);
} else {
_charhitrate = _chardex + 50;
}
if ((_bashnow == false) && (random(100) < _charcrit)) {
_enemywashit = true;
_criticalAttackNow = true;
} else if (random(100) < (_charhitrate - _enemyagi)) {
_enemywashit = true;
}
Frame 91
if (_allowsound) {
if (_enemywashit) {
if (_bashnow || (_criticalAttackNow)) {
sound_wapak.play();
} else {
sound_slash.play();
}
} else {
sound_dash.play();
}
}
Frame 92
_enemyStunned = false;
if (_enemywashit) {
if (_root._slotEffect == "STRIPWEAPON") {
_root._actualcharstr = ((_root._charstr + (4 * _root._swordmasterylevel)) + (_root._chardamageFactor * _root._charlevel)) + 20;
} else {
_root._actualcharstr = (((_root._charstr + (4 * _root._swordmasterylevel)) + _root._charWeaponDamage) + (_root._chardamageFactor * _root._charlevel)) + 20;
}
if (_enemyprovoked) {
_actualenemydef = _enemydef * (1 - (0.09 * _provokelevel));
} else {
_actualenemydef = _enemydef;
}
if (_bashnow) {
if ((_bashlevel > 5) && (random(100) < ((_bashLevel * 10) - 30))) {
_enemyStunned = true;
}
if (_enemyprovoked) {
_chardamagedealt = Math.round(((((_actualcharstr * ((100 + (40 * _bashlevel)) + random(10))) / 100) * (101 - _actualenemydef)) / 100) - ((_enemyvit / 2) / 1.2));
} else {
_chardamagedealt = Math.round(((((_actualcharstr * ((100 + (40 * _bashlevel)) + random(10))) / 100) * (101 - _actualenemydef)) / 100) - (_enemyvit / 2));
}
} else if (_criticalAttackNow) {
if (_enemyprovoked) {
_chardamagedealt = Math.round((_actualcharstr * 1.2) - ((_enemyvit / 2) / 1.2));
} else {
_chardamagedealt = Math.round((_actualcharstr * 1.2) - (_enemyvit / 2));
}
} else if (_enemyprovoked) {
_chardamagedealt = Math.round(((((_actualcharstr * (100 + random(10))) / 100) * (101 - _actualenemydef)) / 100) - ((_enemyvit / 2) / 1.2));
} else {
_chardamagedealt = Math.round(((((_actualcharstr * (100 + random(10))) / 100) * (101 - _actualenemydef)) / 100) - (_enemyvit / 2));
}
if (_chardamagedealt < 1) {
_chardamagedealt = 1;
}
_charAttackDamage = _charAttackDamage + _chardamagedealt;
_enemyhp = _enemyhp - _chardamagedealt;
_chartotaldamagedealt = _chartotaldamagedealt + _chardamagedealt;
if ((_charHits > 1) && (_bashNow == false)) {
_thousands = Math.floor(_chardamagedealt / 1000);
_hundreds = Math.floor((_chardamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_chardamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_chardamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
}
} else if ((_charHits > 1) && (_bashNow == false)) {
tellTarget (subDamage) {
minus.text = "";
enemydamagedealt4.text = "m";
enemydamagedealt3.text = "i";
enemydamagedealt2.text = "s";
enemydamagedealt1.text = "s";
};
}
if (_bashnow) {
basheffect2.play();
flash.play();
}
if (_criticalAttackNow) {
basheffect2.play();
}
if (_enemy == "eddga") {
tellTarget (enemyHit) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyHit) {
gotoAndStop (3);
};
}
Frame 94
_hitsDone++;
if (_enemyhp > 0) {
if ((_charHits > _hitsDone) && (_bashNow == false)) {
gotoAndPlay (88);
} else if (_bashNow) {
_bashnow = false;
}
}
_digits = 0;
if (_charAttackDamage > 0) {
_enemywashit = false;
_thousands = Math.floor(_charAttackDamage / 1000);
_hundreds = Math.floor((_charAttackDamage - (_thousands * 1000)) / 100);
_tens = Math.floor(((_charAttackDamage - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_charAttackDamage - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
_1.text = "";
_2.text = "-";
_3.text = _ones;
_4.text = "";
_5.text = "";
} else if (_digits == 2) {
_1.text = "";
_2.text = "-";
_3.text = _tens;
_4.text = _ones;
_5.text = "";
} else if (_digits == 3) {
_1.text = "-";
_2.text = _hundreds;
_3.text = _tens;
_4.text = _ones;
_5.text = "";
} else {
_1.text = "-";
_2.text = _thousands;
_3.text = _hundreds;
_4.text = _tens;
_5.text = _ones;
}
_chartotaldamagedealt = _chartotaldamagedealt + _chardamagedealt;
if ((_enemyhp <= 0) && (_allowsound)) {
if (_enemy == "eddga") {
sound_eddgadie.play();
} else if (_enemy == "bapho") {
sound_baphodie.play();
}
}
} else {
_1.text = "m";
_2.text = "i";
_3.text = "s";
_4.text = "s";
_5.text = "";
}
_criticalAttackNow = false;
var _speed1;
var _speed2;
var _speed3;
var _speed4;
var _speed5;
var _1counter;
var _2counter;
var _3counter;
var _4counter;
var _5counter;
_1._y = (_2._y = (_3._y = (_4._y = (_5._y = -100))));
_speed1 = (_speed2 = (_speed3 = (_speed4 = (_speed5 = 0))));
_ytarget = 130;
_1counter = 0;
_2counter = 3;
_3counter = 6;
_4counter = 9;
_5counter = 12;
___temp.onEnterFrame = function () {
if (_1counter <= 0) {
if (_1counter == 0) {
_1._y = _ytarget - 50;
_1counter--;
}
if (_1._y < _ytarget) {
_speed1 = _speed1 + ((_1._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_1._y - _ytarget) < 5) {
_speed1 = _speed1 / 10;
}
} else {
_1._y = _ytarget - 10;
}
} else {
_1counter--;
}
if (_2counter <= 0) {
if (_2counter == 0) {
_2._y = _ytarget - 50;
_2counter--;
}
if (_2._y < _ytarget) {
_speed2 = _speed2 + ((_2._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_2._y - _ytarget) < 5) {
_speed2 = _speed2 / 10;
}
} else {
_2._y = _ytarget - 10;
}
} else {
_2counter--;
}
if (_3counter <= 0) {
if (_3counter == 0) {
_3._y = _ytarget - 50;
_3counter--;
}
if (_3._y < _ytarget) {
_speed3 = _speed3 + ((_3._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_3._y - _ytarget) < 5) {
_speed3 = _speed3 / 10;
}
} else {
_3._y = _ytarget - 10;
}
} else {
_3counter--;
}
if (_4counter <= 0) {
if (_4counter == 0) {
_4._y = _ytarget - 50;
_4counter--;
}
if (_4._y < _ytarget) {
_speed4 = _speed4 + ((_4._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_4._y - _ytarget) < 5) {
_speed4 = _speed4 / 10;
}
} else {
_4._y = _ytarget - 10;
}
} else {
_4counter--;
}
if (_5counter <= 0) {
if (_5counter == 0) {
_5._y = _ytarget - 50;
_5counter--;
}
if (_5._y < _ytarget) {
_speed5 = _speed5 + ((_5._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_5._y - _ytarget) < 5) {
_speed5 = _speed5 / 10;
}
} else {
_5._y = _ytarget - 10;
}
} else {
_5counter--;
}
_1._y = _1._y - _speed1;
_2._y = _2._y - _speed2;
_3._y = _3._y - _speed3;
_4._y = _4._y - _speed4;
_5._y = _5._y - _speed5;
};
Frame 95
enemyHit._visible = false;
enemyDead._visible = false;
if (_enemyhp > 0) {
enemyHit._visible = true;
if (_enemy == "eddga") {
tellTarget (enemyHit) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyHit) {
gotoAndStop (3);
};
}
} else {
enemyDead._visible = true;
if (_enemy == "bapho") {
if (_allowsound) {
sound_baphodie.play();
}
} else if (_enemy == "eddga") {
tellTarget (enemyDead) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyDead) {
gotoAndStop (3);
};
}
flash.play();
}
Frame 99
if (_enemyhp > 0) {
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
} else {
enemyStand._visible = false;
}
Frame 100
if (_enemyhp > 0) {
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
} else {
enemyStand._visible = false;
}
Frame 114
if (_enemyhp <= 0) {
leveledUpAlready = false;
gotoAndPlay (532);
} else {
enemyAI();
}
Frame 116
if (_defendNow) {
charStand.gotoAndStop(2);
} else {
charStand.gotoAndStop(1);
}
Frame 147
_enemyhitrate = (_enemydex + _enemylevel) + 30;
_charevarate = _charagi + _charlevel;
if (random(100) < (_enemyhitrate - _charevarate)) {
_charwashit = true;
}
Frame 148
if (_allowsound) {
if (_charwashit) {
sound_slash.play();
} else {
sound_dash.play();
}
}
Frame 150
isDefendSuccessful();
if ((_allowsound && (_defendSuccess)) && (_charwashit)) {
sound_clang.play();
}
Frame 154
charDie._visible = false;
if (_defendNow) {
charDefend._visible = true;
tellTarget (charDefend) {
gotoAndPlay (9);
};
charHit._visible = false;
} else {
charDefend._visible = false;
charHit._visible = true;
}
Frame 156
_digits = 0;
_charDead = false;
if (_charwashit) {
_charwashit = false;
if (_enemyprovoked) {
_actualenemystr = _enemystr * (1 + (0.02 * _provokelevel));
} else {
_actualenemystr = _enemystr;
}
_root.calculateDef();
_root.ifDefendNow();
_enemydamagedealt = Math.round(((((_actualenemystr * (100 + random(10))) / 100) * (101 - _actualchardef)) / 100) - (_charvit / 2));
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
__1.text = "";
__2.text = "-";
__3.text = _ones;
__4.text = "";
__5.text = "";
} else if (_digits == 2) {
__1.text = "";
__2.text = "-";
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else if (_digits == 3) {
__1.text = "-";
__2.text = _hundreds;
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else {
__1.text = "-";
__2.text = _thousands;
__3.text = _hundreds;
__4.text = _tens;
__5.text = _ones;
}
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
if ((_charhp <= 0) && (_allowsound)) {
sound_chardie.play();
}
} else {
__1.text = "m";
__2.text = "i";
__3.text = "s";
__4.text = "s";
__5.text = "";
}
if (_charhp > 0) {
charDie._visible = false;
} else {
_charDead = true;
flash.play();
charDie._visible = true;
charHit._visible = false;
charDefend._visible = false;
}
var __speed1;
var __speed2;
var __speed3;
var __speed4;
var __speed5;
var __1counter;
var __2counter;
var __3counter;
var __4counter;
var __5counter;
__1._y = (__2._y = (__3._y = (__4._y = (__5._y = -100))));
__speed1 = (__speed2 = (__speed3 = (__speed4 = (__speed5 = 0))));
__ytarget = 130;
__1counter = 0;
__2counter = 3;
__3counter = 6;
__4counter = 9;
__5counter = 12;
__temp.onEnterFrame = function () {
if (__1counter <= 0) {
if (__1counter == 0) {
__1._y = __ytarget - 50;
__1counter--;
}
if (__1._y < __ytarget) {
__speed1 = __speed1 + ((__1._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__1._y - __ytarget) < 5) {
__speed1 = __speed1 / 10;
}
} else {
__1._y = __ytarget - 10;
}
} else {
__1counter--;
}
if (__2counter <= 0) {
if (__2counter == 0) {
__2._y = __ytarget - 50;
__2counter--;
}
if (__2._y < __ytarget) {
__speed2 = __speed2 + ((__2._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__2._y - __ytarget) < 5) {
__speed2 = __speed2 / 10;
}
} else {
__2._y = __ytarget - 10;
}
} else {
__2counter--;
}
if (__3counter <= 0) {
if (__3counter == 0) {
__3._y = __ytarget - 50;
__3counter--;
}
if (__3._y < __ytarget) {
__speed3 = __speed3 + ((__3._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__3._y - __ytarget) < 5) {
__speed3 = __speed3 / 10;
}
} else {
__3._y = __ytarget - 10;
}
} else {
__3counter--;
}
if (__4counter <= 0) {
if (__4counter == 0) {
__4._y = __ytarget - 50;
__4counter--;
}
if (__4._y < __ytarget) {
__speed4 = __speed4 + ((__4._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__4._y - __ytarget) < 5) {
__speed4 = __speed4 / 10;
}
} else {
__4._y = __ytarget - 10;
}
} else {
__4counter--;
}
if (__5counter <= 0) {
if (__5counter == 0) {
__5._y = __ytarget - 50;
__5counter--;
}
if (__5._y < __ytarget) {
__speed5 = __speed5 + ((__5._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__5._y - __ytarget) < 5) {
__speed5 = __speed5 / 10;
}
} else {
__5._y = __ytarget - 10;
}
} else {
__5counter--;
}
__1._y = __1._y - __speed1;
__2._y = __2._y - __speed2;
__3._y = __3._y - __speed3;
__4._y = __4._y - __speed4;
__5._y = __5._y - __speed5;
};
Frame 160
_counterAttack = false;
charCounter._visible = false;
if ((_charDead == false) && (random(100) < (_counterLevel * _counterFactor))) {
charHit._visible = false;
charDefend._visible = false;
charCounter._visible = true;
_counterAttack = true;
}
Frame 161
if (_allowsound && (_counterAttack)) {
sound_swingweapon.play();
}
Frame 163
_root.calculateCrit();
if ((_charhp > 0) && (random(100) < _charcrit)) {
_criticalAttackNow = true;
}
if (_allowsound && (_counterAttack)) {
if (_criticalAttackNow) {
sound_wapak.play();
} else {
sound_slash.play();
}
}
if (_charhp > 0) {
charDie._visible = false;
charStand._visible = true;
} else {
charDie._visible = true;
charStand._visible = false;
}
Frame 164
if (_counterAttack) {
if (_criticalAttackNow) {
basheffect2.play();
}
_charAttackDamage = 0;
if (_root._slotEffect == "STRIPWEAPON") {
_root._actualcharstr = ((_root._charstr + (4 * _root._swordmasterylevel)) + (_root._chardamageFactor * _root._charlevel)) + 20;
} else {
_root._actualcharstr = (((_root._charstr + (4 * _root._swordmasterylevel)) + _root._charWeaponDamage) + (_root._chardamageFactor * _root._charlevel)) + 20;
}
if (_enemyprovoked) {
_actualenemydef = _enemydef * (1 - (0.09 * _provokelevel));
} else {
_actualenemydef = _enemydef;
}
if (_criticalAttackNow) {
if (_enemyprovoked) {
_chardamagedealt = Math.round((_actualcharstr * 1.2) - ((_enemyvit / 2) / 1.2));
} else {
_chardamagedealt = Math.round((_actualcharstr * 1.2) - (_enemyvit / 2));
}
} else if (_enemyprovoked) {
_chardamagedealt = Math.round(((((_actualcharstr * (100 + random(10))) / 100) * (101 - _actualenemydef)) / 100) - ((_enemyvit / 2) / 1.2));
} else {
_chardamagedealt = Math.round(((((_actualcharstr * (100 + random(10))) / 100) * (101 - _actualenemydef)) / 100) - (_enemyvit / 2));
}
_chardamagedealt = _chardamagedealt * (1 + ((_counterLevel * 2) / 10));
if (_chardamagedealt < 1) {
_chardamagedealt = 1;
}
if (_chardamagedealt >= _enemyhp) {
_chardamagedealt = _enemyhp - 1;
}
_charAttackDamage = _charAttackDamage + _chardamagedealt;
_enemyhp = _enemyhp - _chardamagedealt;
_chartotaldamagedealt = _chartotaldamagedealt + _chardamagedealt;
}
enemyShadow._visible = false;
baphoHit._visible = false;
if (_counterAttack) {
baphoHit._visible = true;
baphoUncountered._visible = false;
charStand._visible = false;
enemyShadow._visible = true;
}
Frame 167
if (_counterAttack) {
_digits = 0;
_thousands = Math.floor(_charAttackDamage / 1000);
_hundreds = Math.floor((_charAttackDamage - (_thousands * 1000)) / 100);
_tens = Math.floor(((_charAttackDamage - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_charAttackDamage - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
_1.text = "";
_2.text = "-";
_3.text = _ones;
_4.text = "";
_5.text = "";
} else if (_digits == 2) {
_1.text = "";
_2.text = "-";
_3.text = _tens;
_4.text = _ones;
_5.text = "";
} else if (_digits == 3) {
_1.text = "-";
_2.text = _hundreds;
_3.text = _tens;
_4.text = _ones;
_5.text = "";
} else {
_1.text = "-";
_2.text = _thousands;
_3.text = _hundreds;
_4.text = _tens;
_5.text = _ones;
}
}
var _speed1;
var _speed2;
var _speed3;
var _speed4;
var _speed5;
var _1counter;
var _2counter;
var _3counter;
var _4counter;
var _5counter;
_1._y = (_2._y = (_3._y = (_4._y = (_5._y = -100))));
_speed1 = (_speed2 = (_speed3 = (_speed4 = (_speed5 = 0))));
_ytarget = 130;
_1counter = 0;
_2counter = 3;
_3counter = 6;
_4counter = 9;
_5counter = 12;
___temp.onEnterFrame = function () {
if (_1counter <= 0) {
if (_1counter == 0) {
_1._y = _ytarget - 50;
_1counter--;
}
if (_1._y < _ytarget) {
_speed1 = _speed1 + ((_1._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_1._y - _ytarget) < 5) {
_speed1 = _speed1 / 10;
}
} else {
_1._y = _ytarget - 10;
}
} else {
_1counter--;
}
if (_2counter <= 0) {
if (_2counter == 0) {
_2._y = _ytarget - 50;
_2counter--;
}
if (_2._y < _ytarget) {
_speed2 = _speed2 + ((_2._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_2._y - _ytarget) < 5) {
_speed2 = _speed2 / 10;
}
} else {
_2._y = _ytarget - 10;
}
} else {
_2counter--;
}
if (_3counter <= 0) {
if (_3counter == 0) {
_3._y = _ytarget - 50;
_3counter--;
}
if (_3._y < _ytarget) {
_speed3 = _speed3 + ((_3._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_3._y - _ytarget) < 5) {
_speed3 = _speed3 / 10;
}
} else {
_3._y = _ytarget - 10;
}
} else {
_3counter--;
}
if (_4counter <= 0) {
if (_4counter == 0) {
_4._y = _ytarget - 50;
_4counter--;
}
if (_4._y < _ytarget) {
_speed4 = _speed4 + ((_4._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_4._y - _ytarget) < 5) {
_speed4 = _speed4 / 10;
}
} else {
_4._y = _ytarget - 10;
}
} else {
_4counter--;
}
if (_5counter <= 0) {
if (_5counter == 0) {
_5._y = _ytarget - 50;
_5counter--;
}
if (_5._y < _ytarget) {
_speed5 = _speed5 + ((_5._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_5._y - _ytarget) < 5) {
_speed5 = _speed5 / 10;
}
} else {
_5._y = _ytarget - 10;
}
} else {
_5counter--;
}
_1._y = _1._y - _speed1;
_2._y = _2._y - _speed2;
_3._y = _3._y - _speed3;
_4._y = _4._y - _speed4;
_5._y = _5._y - _speed5;
};
Frame 170
if (_charhp > 0) {
charStand._visible = true;
}
Frame 191
_defendNow = false;
if (_charhp > 0) {
if (_regenlevel > 0) {
_regennow = true;
gotoAndPlay (192);
} else {
gotoAndPlay (75);
}
} else {
gotoAndStop (919);
}
Frame 192
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
if (_defendNow) {
charStand.gotoAndStop(2);
} else {
charStand.gotoAndStop(1);
}
Frame 193
if (_allowsound) {
sound_aah.play();
}
Frame 200
_digits = 0;
if (_regennow) {
_chardamagehealed = Math.round((5 * _regenlevel) + ((_charmaxhp / 500) * _regenlevel));
} else {
_chardamagehealed = Math.round((((100 + (_charint * 2)) * ((_charvit + (_healLevel * 10)) + _charlevel)) * (100 + random(20))) / 15000);
}
if (_chardamagehealed > (_charmaxhp - _charhp)) {
_chardamagehealed = _charmaxhp - _charhp;
}
_thousands = Math.floor(_chardamagehealed / 1000);
_hundreds = Math.floor((_chardamagehealed - (_thousands * 1000)) / 100);
_tens = Math.floor(((_chardamagehealed - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_chardamagehealed - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
__1.text = "";
__2.text = "+";
__3.text = _ones;
__4.text = "";
__5.text = "";
} else if (_digits == 2) {
__1.text = "";
__2.text = "+";
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else if (_digits == 3) {
__1.text = "+";
__2.text = _hundreds;
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else {
__1.text = "+";
__2.text = _thousands;
__3.text = _hundreds;
__4.text = _tens;
__5.text = _ones;
}
_charhp = _charhp + _chardamagehealed;
var __speed1;
var __speed2;
var __speed3;
var __speed4;
var __speed5;
var __1counter;
var __2counter;
var __3counter;
var __4counter;
var __5counter;
__1._y = (__2._y = (__3._y = (__4._y = (__5._y = -100))));
__speed1 = (__speed2 = (__speed3 = (__speed4 = (__speed5 = 0))));
__ytarget = 130;
__1counter = 0;
__2counter = 3;
__3counter = 6;
__4counter = 9;
__5counter = 12;
__temp.onEnterFrame = function () {
if (__1counter <= 0) {
if (__1counter == 0) {
__1._y = __ytarget - 50;
__1counter--;
}
if (__1._y < __ytarget) {
__speed1 = __speed1 + ((__1._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__1._y - __ytarget) < 5) {
__speed1 = __speed1 / 10;
}
} else {
__1._y = __ytarget - 10;
}
} else {
__1counter--;
}
if (__2counter <= 0) {
if (__2counter == 0) {
__2._y = __ytarget - 50;
__2counter--;
}
if (__2._y < __ytarget) {
__speed2 = __speed2 + ((__2._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__2._y - __ytarget) < 5) {
__speed2 = __speed2 / 10;
}
} else {
__2._y = __ytarget - 10;
}
} else {
__2counter--;
}
if (__3counter <= 0) {
if (__3counter == 0) {
__3._y = __ytarget - 50;
__3counter--;
}
if (__3._y < __ytarget) {
__speed3 = __speed3 + ((__3._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__3._y - __ytarget) < 5) {
__speed3 = __speed3 / 10;
}
} else {
__3._y = __ytarget - 10;
}
} else {
__3counter--;
}
if (__4counter <= 0) {
if (__4counter == 0) {
__4._y = __ytarget - 50;
__4counter--;
}
if (__4._y < __ytarget) {
__speed4 = __speed4 + ((__4._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__4._y - __ytarget) < 5) {
__speed4 = __speed4 / 10;
}
} else {
__4._y = __ytarget - 10;
}
} else {
__4counter--;
}
if (__5counter <= 0) {
if (__5counter == 0) {
__5._y = __ytarget - 50;
__5counter--;
}
if (__5._y < __ytarget) {
__speed5 = __speed5 + ((__5._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__5._y - __ytarget) < 5) {
__speed5 = __speed5 / 10;
}
} else {
__5._y = __ytarget - 10;
}
} else {
__5counter--;
}
__1._y = __1._y - __speed1;
__2._y = __2._y - __speed2;
__3._y = __3._y - __speed3;
__4._y = __4._y - __speed4;
__5._y = __5._y - __speed5;
};
Frame 225
if (_regennow) {
gotoAndPlay (75);
_regennow = false;
} else {
enemyAI();
}
Frame 230
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 273
if (_enemy == "eddga") {
tellTarget (enemyProvoked) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyProvoked) {
gotoAndStop (3);
};
}
Frame 305
enemyAI();
Frame 306
_castedLoV = true;
if (_allowsound) {
sound_ignite.play();
}
if (_defendNow) {
charStand.gotoAndStop(2);
} else {
charStand.gotoAndStop(1);
}
Frame 324
if (_allowsound) {
sound_boom.play();
}
_lovDamage = 0;
LoVSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_lovDamage = _lovDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
duplicateMovieClip (charHit, "charHit2", 2000);
charHit._x = 9999;
_flameCounter = 50;
flameExplosion.onEnterFrame = function () {
if (_flameCounter > 0) {
if ((_flameCounter % 10) == 1) {
duplicateMovieClip (flameExplosion, "flameExplosion" + _flameCounter, _flameCounter + 2000);
_random = (flameExplosion._xscale * (random(80) + 60)) / 100;
setProperty("flameExplosion" + _flameCounter, _xscale , _random);
setProperty("flameExplosion" + _flameCounter, _yscale , _random);
setProperty("flameExplosion" + _flameCounter, _x , (flameExplosion._x + random(75)) - 38);
setProperty("flameExplosion" + _flameCounter, _y , (flameExplosion._y + random(25)) - 10);
}
if ((_flameCounter % 10) == 5) {
duplicateMovieClip (flameExplosion, "flameExplosion" + _flameCounter, _flameCounter);
_random = (flameExplosion._xscale * (random(40) + 90)) / 100;
setProperty("flameExplosion" + _flameCounter, _xscale , _random);
setProperty("flameExplosion" + _flameCounter, _yscale , _random);
setProperty("flameExplosion" + _flameCounter, _x , (flameExplosion._x + random(75)) - 38);
setProperty("flameExplosion" + _flameCounter, _y , (flameExplosion._y + random(25)) - 20);
}
_flameCounter = _flameCounter - 1;
}
};
Frame 328
LoVSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_lovDamage = _lovDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage2) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage2) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage2) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage2) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 332
LoVSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_lovDamage = _lovDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage3) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage3) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage3) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage3) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 337
LoVSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_lovDamage = _lovDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage4) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage4) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage4) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage4) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 342
LoVSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_lovDamage = _lovDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage5) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage5) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage5) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage5) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 347
LoVSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_lovDamage = _lovDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage6) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage6) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage6) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage6) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 352
LoVSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_lovDamage = _lovDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage7) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage7) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage7) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage7) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 357
LoVSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_lovDamage = _lovDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage8) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage8) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage8) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage8) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 362
LoVSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_lovDamage = _lovDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage9) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage9) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage9) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage9) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 367
LoVSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_lovDamage = _lovDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage10) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage10) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage10) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage10) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 377
_digits = 0;
_thousands = Math.floor(_lovDamage / 1000);
_hundreds = Math.floor((_lovDamage - (_thousands * 1000)) / 100);
_tens = Math.floor(((_lovDamage - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_lovDamage - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
__1.text = "";
__2.text = "-";
__3.text = _ones;
__4.text = "";
__5.text = "";
} else if (_digits == 2) {
__1.text = "";
__2.text = "-";
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else if (_digits == 3) {
__1.text = "-";
__2.text = _hundreds;
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else {
__1.text = "-";
__2.text = _thousands;
__3.text = _hundreds;
__4.text = _tens;
__5.text = _ones;
}
if (_charhp > 0) {
charDie._visible = false;
} else {
flash.play();
charDie._visible = true;
}
var __speed1;
var __speed2;
var __speed3;
var __speed4;
var __speed5;
var __1counter;
var __2counter;
var __3counter;
var __4counter;
var __5counter;
__1._y = (__2._y = (__3._y = (__4._y = (__5._y = -100))));
__speed1 = (__speed2 = (__speed3 = (__speed4 = (__speed5 = 0))));
__ytarget = 130;
__1counter = 0;
__2counter = 3;
__3counter = 6;
__4counter = 9;
__5counter = 12;
__temp.onEnterFrame = function () {
if (__1counter <= 0) {
if (__1counter == 0) {
__1._y = __ytarget - 50;
__1counter--;
}
if (__1._y < __ytarget) {
__speed1 = __speed1 + ((__1._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__1._y - __ytarget) < 5) {
__speed1 = __speed1 / 10;
}
} else {
__1._y = __ytarget - 10;
}
} else {
__1counter--;
}
if (__2counter <= 0) {
if (__2counter == 0) {
__2._y = __ytarget - 50;
__2counter--;
}
if (__2._y < __ytarget) {
__speed2 = __speed2 + ((__2._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__2._y - __ytarget) < 5) {
__speed2 = __speed2 / 10;
}
} else {
__2._y = __ytarget - 10;
}
} else {
__2counter--;
}
if (__3counter <= 0) {
if (__3counter == 0) {
__3._y = __ytarget - 50;
__3counter--;
}
if (__3._y < __ytarget) {
__speed3 = __speed3 + ((__3._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__3._y - __ytarget) < 5) {
__speed3 = __speed3 / 10;
}
} else {
__3._y = __ytarget - 10;
}
} else {
__3counter--;
}
if (__4counter <= 0) {
if (__4counter == 0) {
__4._y = __ytarget - 50;
__4counter--;
}
if (__4._y < __ytarget) {
__speed4 = __speed4 + ((__4._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__4._y - __ytarget) < 5) {
__speed4 = __speed4 / 10;
}
} else {
__4._y = __ytarget - 10;
}
} else {
__4counter--;
}
if (__5counter <= 0) {
if (__5counter == 0) {
__5._y = __ytarget - 50;
__5counter--;
}
if (__5._y < __ytarget) {
__speed5 = __speed5 + ((__5._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__5._y - __ytarget) < 5) {
__speed5 = __speed5 / 10;
}
} else {
__5._y = __ytarget - 10;
}
} else {
__5counter--;
}
__1._y = __1._y - __speed1;
__2._y = __2._y - __speed2;
__3._y = __3._y - __speed3;
__4._y = __4._y - __speed4;
__5._y = __5._y - __speed5;
};
if (_charhp > 0) {
charStand._visible = true;
} else {
charStand._visible = false;
}
Frame 378
removeMovieClip(charHit2);
Frame 398
_defendNow = false;
if (_charhp > 0) {
if (_quitgame) {
gotoAndPlay (306);
} else if (_regenlevel > 0) {
_regennow = true;
gotoAndPlay (192);
} else {
gotoAndPlay (75);
}
} else {
gotoAndStop (919);
}
Frame 399
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
if (_defendNow) {
charStand.gotoAndStop(2);
} else {
charStand.gotoAndStop(1);
}
Frame 400
if (_allowsound) {
sound_aah.play();
}
Frame 407
_digits = 0;
_enemydamagehealed = Math.round((_enemyint * ((50 + random(50)) + _enemyvit)) / 60);
if (_enemydamagehealed > (_enemymaxhp - _enemyhp)) {
_enemydamagehealed = _enemymaxhp - _enemyhp;
}
_thousands = Math.floor(_enemydamagehealed / 1000);
_hundreds = Math.floor((_enemydamagehealed - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagehealed - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagehealed - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
_1.text = "";
_2.text = "+";
_3.text = _ones;
_4.text = "";
_5.text = "";
} else if (_digits == 2) {
_1.text = "";
_2.text = "+";
_3.text = _tens;
_4.text = _ones;
_5.text = "";
} else if (_digits == 3) {
_1.text = "+";
_2.text = _hundreds;
_3.text = _tens;
_4.text = _ones;
_5.text = "";
} else {
_1.text = "+";
_2.text = _thousands;
_3.text = _hundreds;
_4.text = _tens;
_5.text = _ones;
}
_enemyhp = _enemyhp + _enemydamagehealed;
var _speed1;
var _speed2;
var _speed3;
var _speed4;
var _speed5;
var _1counter;
var _2counter;
var _3counter;
var _4counter;
var _5counter;
_1._y = (_2._y = (_3._y = (_4._y = (_5._y = -100))));
_speed1 = (_speed2 = (_speed3 = (_speed4 = (_speed5 = 0))));
_ytarget = 130;
_1counter = 0;
_2counter = 3;
_3counter = 6;
_4counter = 9;
_5counter = 12;
___temp.onEnterFrame = function () {
if (_1counter <= 0) {
if (_1counter == 0) {
_1._y = _ytarget - 50;
_1counter--;
}
if (_1._y < _ytarget) {
_speed1 = _speed1 + ((_1._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_1._y - _ytarget) < 5) {
_speed1 = _speed1 / 10;
}
} else {
_1._y = _ytarget - 10;
}
} else {
_1counter--;
}
if (_2counter <= 0) {
if (_2counter == 0) {
_2._y = _ytarget - 50;
_2counter--;
}
if (_2._y < _ytarget) {
_speed2 = _speed2 + ((_2._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_2._y - _ytarget) < 5) {
_speed2 = _speed2 / 10;
}
} else {
_2._y = _ytarget - 10;
}
} else {
_2counter--;
}
if (_3counter <= 0) {
if (_3counter == 0) {
_3._y = _ytarget - 50;
_3counter--;
}
if (_3._y < _ytarget) {
_speed3 = _speed3 + ((_3._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_3._y - _ytarget) < 5) {
_speed3 = _speed3 / 10;
}
} else {
_3._y = _ytarget - 10;
}
} else {
_3counter--;
}
if (_4counter <= 0) {
if (_4counter == 0) {
_4._y = _ytarget - 50;
_4counter--;
}
if (_4._y < _ytarget) {
_speed4 = _speed4 + ((_4._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_4._y - _ytarget) < 5) {
_speed4 = _speed4 / 10;
}
} else {
_4._y = _ytarget - 10;
}
} else {
_4counter--;
}
if (_5counter <= 0) {
if (_5counter == 0) {
_5._y = _ytarget - 50;
_5counter--;
}
if (_5._y < _ytarget) {
_speed5 = _speed5 + ((_5._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_5._y - _ytarget) < 5) {
_speed5 = _speed5 / 10;
}
} else {
_5._y = _ytarget - 10;
}
} else {
_5counter--;
}
_1._y = _1._y - _speed1;
_2._y = _2._y - _speed2;
_3._y = _3._y - _speed3;
_4._y = _4._y - _speed4;
_5._y = _5._y - _speed5;
};
Frame 432
_defendNow = false;
if (_regenlevel > 0) {
_regennow = true;
gotoAndPlay (192);
} else {
gotoAndPlay (75);
}
Frame 433
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
if (_defendNow) {
charDefend._visible = true;
charStand._visible = false;
} else {
charDefend._visible = false;
charStand._visible = true;
}
Frame 440
enemyAI();
Frame 441
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 469
enemyAI();
Frame 528
gotoAndPlay (5);
Frame 529
_root._autoSelected = false;
eddgaDead._visible = false;
baphoDead._visible = false;
turtleDead._visible = false;
if (_enemy == "eddga") {
eddgaDead._visible = true;
} else if (_enemy == "bapho") {
baphoDead._visible = true;
} else if (_enemy == "turtle") {
turtleDead._visible = true;
}
Frame 530
gotoAndPlay (534);
gotoAndStop (534);
eddgaDead._visible = false;
baphoDead._visible = false;
turtleDead._visible = false;
if (_enemy == "eddga") {
eddgaDead._visible = true;
} else if (_enemy == "bapho") {
baphoDead._visible = true;
} else if (_enemy == "turtle") {
turtleDead._visible = true;
}
Frame 531
gotoAndPlay (533);
eddgaDead._visible = false;
baphoDead._visible = false;
turtleDead._visible = false;
if (_enemy == "eddga") {
eddgaDead._visible = true;
} else if (_enemy == "bapho") {
baphoDead._visible = true;
} else if (_enemy == "turtle") {
turtleDead._visible = true;
}
Frame 532
if (leveledUpAlready) {
gotoAndPlay (5);
}
leveledUpAlready = true;
_exp++;
_temp12345 = 0;
if (_exp >= _expLevelUp) {
_exp = 0;
_charlevel++;
_temp12345 = 3 + Math.floor(_charlevel / 5);
if (_temp12345 > 23) {
_temp12345 = 23;
}
_statpoints = _statpoints + _temp12345;
if ((_charlevel % 2) == 1) {
_skillpoints++;
}
_temp1 = _root._charmaxhp;
_root.getCharHP();
_root._charhp = _root._charhp + (_root._charmaxhp - _temp1);
_temp2 = _root._charmaxmp;
getCharMP();
_root._charmp = _root._charmp + ((_root._charmaxmp * 1.1) - _temp2);
if (_root._charmp > _root._charmaxmp) {
_root._charmp = _root._charmaxmp;
}
}
eddgaDead._visible = false;
baphoDead._visible = false;
turtleDead._visible = false;
if (_enemy == "eddga") {
eddgaDead._visible = true;
} else if (_enemy == "bapho") {
baphoDead._visible = true;
} else if (_enemy == "turtle") {
turtleDead._visible = true;
}
Frame 533
stop();
redPotionClip._visible = false;
yellowPotionClip._visible = false;
whitePotionClip._visible = false;
bluePotionClip._visible = false;
greenPotionClip._visible = false;
potionsObtainedCounter = 0;
if (random(8) < 1) {
redPotions++;
redPotionClip._visible = true;
potionsObtainedCounter++;
}
if (random(15) < 1) {
yellowPotions++;
yellowPotionClip._visible = true;
potionsObtainedCounter++;
}
if (random(30) < 1) {
whitePotions++;
whitePotionClip._visible = true;
potionsObtainedCounter++;
}
if (random(30) < 1) {
bluePotions++;
bluePotionClip._visible = true;
potionsObtainedCounter++;
}
if (random(8) < 1) {
greenPotions++;
greenPotionClip._visible = true;
potionsObtainedCounter++;
}
potionsPositionTemp = 0;
while (potionsPositionTemp < potionsObtainedCounter) {
if (redPotionClip._visible && (redPotionClip._x > 500)) {
redPotionClip._x = ((275 - (((potionsObtainedCounter - 1) * (redPotionClip._width - 5)) / 2)) + (potionsPositionTemp * (yellowPotionClip._width + 2.5))) - (potionsObtainedCounter * 2.5);
} else if (yellowPotionClip._visible && (yellowPotionClip._x > 500)) {
yellowPotionClip._x = ((275 - (((potionsObtainedCounter - 1) * (redPotionClip._width - 5)) / 2)) + (potionsPositionTemp * (yellowPotionClip._width + 2.5))) - (potionsObtainedCounter * 2.5);
} else if (whitePotionClip._visible && (whitePotionClip._x > 500)) {
whitePotionClip._x = ((275 - (((potionsObtainedCounter - 1) * (redPotionClip._width - 5)) / 2)) + (potionsPositionTemp * (yellowPotionClip._width + 2.5))) - (potionsObtainedCounter * 2.5);
} else if (bluePotionClip._visible && (bluePotionClip._x > 500)) {
bluePotionClip._x = ((275 - (((potionsObtainedCounter - 1) * (redPotionClip._width - 5)) / 2)) + (potionsPositionTemp * (yellowPotionClip._width + 2.5))) - (potionsObtainedCounter * 2.5);
} else if (greenPotionClip._visible && (greenPotionClip._x > 500)) {
greenPotionClip._x = ((275 - (((potionsObtainedCounter - 1) * (redPotionClip._width - 5)) / 2)) + (potionsPositionTemp * (yellowPotionClip._width + 2.5))) - (potionsObtainedCounter * 2.5);
}
potionsPositionTemp++;
}
if (potionsObtainedCounter == 0) {
zenyObtainedClip._y = 171 + (zenyObtainedClip._height / 2);
}
if (zenyBoosterCounter > 0) {
var zenyCounter;
zenyCounter = 0;
while (zenyCounter < 15) {
zenyObtained = 1200;
while (random(10000) < 9996) {
zenyObtained++;
}
zenyCounter++;
}
} else {
var zenyCounter;
zenyCounter = 0;
while (zenyCounter < 15) {
zenyObtained = 800;
while (random(10000) < 9990) {
zenyObtained++;
}
zenyCounter++;
}
}
_charMoney = _charMoney + zenyObtained;
zenyBoosterCounter--;
eddgaDead._visible = false;
baphoDead._visible = false;
turtleDead._visible = false;
if (_enemy == "eddga") {
eddgaDead._visible = true;
} else if (_enemy == "bapho") {
baphoDead._visible = true;
} else if (_enemy == "turtle") {
turtleDead._visible = true;
}
Frame 534
statusScreen._visible = true;
statusEx._visible = true;
gotoAndStop (31);
Frame 535
gotoAndStop (76);
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 536
_charhptemp = _charhptemp - ((_charhptemp - _charhp) / 9);
if (_charhptemp < 0) {
_charhptemp = 0;
}
charhealth.text = Math.round(_charhptemp);
charmaxhealth.text = _charmaxhp;
charhealthbar._xscale = ((_charhptemp - ((_charhptemp - _charhp) / 9)) / _charmaxhp) * 100;
if (charhealthbar._xscale < 0) {
charhealthbar._xscale = 0;
}
_enemyhptemp = _enemyhptemp - ((_enemyhptemp - _enemyhp) / 9);
if (_enemyhptemp < 0) {
_enemyhptemp = 0;
}
enemyhealth.text = Math.round(_enemyhptemp);
enemymaxhealth.text = _enemymaxhp;
enemyhealthbar._xscale = ((_enemyhptemp - ((_enemyhptemp - _enemyhp) / 9)) / _enemymaxhp) * 100;
if (enemyhealthbar._xscale < 0) {
enemyhealthbar._xscale = 0;
}
_charmptemp = _charmptemp - ((_charmptemp - _charmp) / 9);
if (_charmptemp < 0) {
_charmptemp = 0;
}
charmp.text = Math.round(_charmptemp);
charmaxmp.text = _charmaxmp;
charmpbar._xscale = ((_charmptemp - ((_charmptemp - _charmp) / 9)) / _charmaxmp) * 100;
if (charmpbar._xscale < 0) {
charmpbar._xscale = 0;
}
_enemymptemp = _enemymptemp - ((_enemymptemp - _enemymp) / 9);
if (_enemymptemp < 0) {
_enemymptemp = 0;
}
enemymp.text = Math.round(_enemymptemp);
enemymaxmp.text = _enemymaxmp;
enemympbar._xscale = ((_enemymptemp - ((_enemymptemp - _enemymp) / 9)) / _enemymaxmp) * 100;
if (enemympbar._xscale < 0) {
enemympbar._xscale = 0;
}
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 537
_charhptemp = _charhptemp - ((_charhptemp - _charhp) / 9);
if (_charhptemp < 0) {
_charhptemp = 0;
}
charhealth.text = Math.round(_charhptemp);
charmaxhealth.text = _charmaxhp;
charhealthbar._xscale = ((_charhptemp - ((_charhptemp - _charhp) / 9)) / _charmaxhp) * 100;
if (charhealthbar._xscale < 0) {
charhealthbar._xscale = 0;
}
_enemyhptemp = _enemyhptemp - ((_enemyhptemp - _enemyhp) / 9);
if (_enemyhptemp < 0) {
_enemyhptemp = 0;
}
enemyhealth.text = Math.round(_enemyhptemp);
enemymaxhealth.text = _enemymaxhp;
enemyhealthbar._xscale = ((_enemyhptemp - ((_enemyhptemp - _enemyhp) / 9)) / _enemymaxhp) * 100;
if (enemyhealthbar._xscale < 0) {
enemyhealthbar._xscale = 0;
}
_charmptemp = _charmptemp - ((_charmptemp - _charmp) / 9);
if (_charmptemp < 0) {
_charmptemp = 0;
}
charmp.text = Math.round(_charmptemp);
charmaxmp.text = _charmaxmp;
charmpbar._xscale = ((_charmptemp - ((_charmptemp - _charmp) / 9)) / _charmaxmp) * 100;
if (charmpbar._xscale < 0) {
charmpbar._xscale = 0;
}
_enemymptemp = _enemymptemp - ((_enemymptemp - _enemymp) / 9);
if (_enemymptemp < 0) {
_enemymptemp = 0;
}
enemymp.text = Math.round(_enemymptemp);
enemymaxmp.text = _enemymaxmp;
enemympbar._xscale = ((_enemymptemp - ((_enemymptemp - _enemymp) / 9)) / _enemymaxmp) * 100;
if (enemympbar._xscale < 0) {
enemympbar._xscale = 0;
}
_root.calculateHits();
statusScreen._visible = (statusEx._visible = true);
_root.calculatebaseDamage();
_root.getCharHP();
_root.getCharMP();
_root.calculateEva();
_root.calculateHit();
_root.calculateDef();
_root.calculateCrit();
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 538
function saveDataFunction(_userName, _userPass) {
if (_receivedIP == "YES") {
saveData.userName = (_userName + "_") + _userPass;
_code = (_IP + _root._charlevel) + saveData.userName;
_codeLength = _code.length;
x = 0;
while (x < _codeLength) {
_temp = _temp + _code.charCodeAt(x);
if (x < (_codeLength - 1)) {
_temp = _temp + "-";
}
x++;
}
saveData._randomNumbers = _temp;
_temp = "";
saveData.action = "SAVE";
saveData.encryption = ((_root._charlevel * _root._charlevel) * _root._charlevel) - 4309629;
saveData.gameMode = _root._gameMode;
saveData.slotEffect = _root._slotEffect;
saveData.charArmor = _root._charArmor;
saveData.enemy = _root._enemy;
saveData.gameDifficulty = gameDifficulty;
saveData._quickenCounter = _quickenCounter;
saveData._provokeCounter = _provokeCounter;
saveData.zenyBoosterCounter = zenyBoosterCounter;
saveData.usedPotionThisRound = _root.usedPotionThisRound;
saveData.redPotions = _root.redPotions;
saveData.yellowPotions = _root.yellowPotions;
saveData.whitePotions = _root.whitePotions;
saveData.bluePotions = _root.bluePotions;
saveData.greenPotions = _root.greenPotions;
saveData.charMoney = _root._charMoney;
saveData.charWeaponDamage = _root._charWeaponDamage;
saveData.charmaxhp = _root._charmaxhp;
saveData.charhp = _root._charhp;
saveData.charhptemp = 0;
saveData.charmaxmp = _root._charmaxmp;
saveData.charmp = _root._charmp;
saveData.charmptemp = 0;
saveData.charLevel = _root._charLevel;
saveData.charStrength = _root._charStr;
saveData.charAgility = _root._charAgi;
saveData.charDefense = _root._charDef;
saveData.charDexterity = _root._charDex;
saveData.charVitality = _root._charVit;
saveData.charIntelligence = _root._charInt;
saveData.charLuck = _root._charLuk;
saveData.provokeLevel = _root._provokeLevel;
saveData.bashLevel = _root._bashLevel;
saveData.regenLevel = _root._regenLevel;
saveData.quickenLevel = _root._quickenLevel;
saveData.defendLevel = _root._defendLevel;
saveData.swordmasteryLevel = _root._swordmasteryLevel;
saveData.counterLevel = _root._counterLevel;
saveData.healLevel = _root._healLevel;
saveData.statPoints = _root._statPoints;
saveData.skillPoints = _root._skillPoints;
saveData.enemylevel = _root._enemylevel;
saveData.enemyvit = _root._enemyvit;
saveData.enemymaxhp = _root._enemymaxhp;
saveData.enemyhp = _root._enemyhp;
saveData.enemyhptemp = 0;
saveData.enemyint = _root._enemyint;
saveData.enemymaxmp = _root._enemymaxmp;
saveData.enemymp = _root._enemymp;
saveData.enemymptemp = 0;
saveData.enemystr = _root._enemystr;
saveData.enemydef = _root._enemydef;
saveData.enemyagi = _root._enemyagi;
saveData.enemydex = _root._enemydex;
saveData.loadVariables(all_script_address + "saveData3.php", "POST");
_savedAlready = true;
}
}
saveData._saveData = "";
_root._savePass = "";
_root._saveName = "";
_savedAlready = false;
_saveCountdown = 0.5;
nowSaving._visible = false;
saveData.onData = function () {
if (saveData._saveData == "SUCCESS") {
saveSuccess.play();
nowSaving._visible = false;
}
};
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 539
if (_defendNow) {
charStand.gotoAndStop(2);
} else {
charStand.gotoAndStop(1);
}
Frame 543
_enemyhitrate = (_enemydex + _enemylevel) + 50;
_charevarate = _charagi + _charlevel;
if (random(100) < (_enemyhitrate - _charevarate)) {
_charwashit = true;
}
Frame 544
if (_allowsound) {
if (_charwashit) {
sound_slash.play();
} else {
sound_dash.play();
}
}
Frame 546
isDefendSuccessful();
if ((_allowsound && (_defendSuccess)) && (_charwashit)) {
sound_clang.play();
}
Frame 550
charDie._visible = false;
if (_defendNow) {
charDefend._visible = true;
tellTarget (charDefend) {
gotoAndPlay (9);
};
charHit._visible = false;
} else {
charDefend._visible = false;
charHit._visible = true;
}
Frame 552
_digits = 0;
if (_charwashit) {
_charwashit = false;
if (_enemyprovoked) {
_actualenemystr = _enemystr * (1 + (0.02 * _provokelevel));
} else {
_actualenemystr = _enemystr;
}
_root.calculateDef();
_root.ifDefendNow();
_enemydamagedealt = Math.round(((((_actualenemystr * (120 + random(50))) / 100) * (101 - _actualchardef)) / 100) - (_charvit / 2));
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
__1.text = "";
__2.text = "-";
__3.text = _ones;
__4.text = "";
__5.text = "";
} else if (_digits == 2) {
__1.text = "";
__2.text = "-";
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else if (_digits == 3) {
__1.text = "-";
__2.text = _hundreds;
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else {
__1.text = "-";
__2.text = _thousands;
__3.text = _hundreds;
__4.text = _tens;
__5.text = _ones;
}
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
if ((_charhp <= 0) && (_allowsound)) {
sound_chardie.play();
}
} else {
__1.text = "m";
__2.text = "i";
__3.text = "s";
__4.text = "s";
__5.text = "";
}
if (_charhp > 0) {
charDie._visible = false;
} else {
flash.play();
charDie._visible = true;
charHit._visible = false;
charDefend._visible = false;
}
_defendNow = false;
var __speed1;
var __speed2;
var __speed3;
var __speed4;
var __speed5;
var __1counter;
var __2counter;
var __3counter;
var __4counter;
var __5counter;
__1._y = (__2._y = (__3._y = (__4._y = (__5._y = -100))));
__speed1 = (__speed2 = (__speed3 = (__speed4 = (__speed5 = 0))));
__ytarget = 130;
__1counter = 0;
__2counter = 3;
__3counter = 6;
__4counter = 9;
__5counter = 12;
__temp.onEnterFrame = function () {
if (__1counter <= 0) {
if (__1counter == 0) {
__1._y = __ytarget - 50;
__1counter--;
}
if (__1._y < __ytarget) {
__speed1 = __speed1 + ((__1._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__1._y - __ytarget) < 5) {
__speed1 = __speed1 / 10;
}
} else {
__1._y = __ytarget - 10;
}
} else {
__1counter--;
}
if (__2counter <= 0) {
if (__2counter == 0) {
__2._y = __ytarget - 50;
__2counter--;
}
if (__2._y < __ytarget) {
__speed2 = __speed2 + ((__2._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__2._y - __ytarget) < 5) {
__speed2 = __speed2 / 10;
}
} else {
__2._y = __ytarget - 10;
}
} else {
__2counter--;
}
if (__3counter <= 0) {
if (__3counter == 0) {
__3._y = __ytarget - 50;
__3counter--;
}
if (__3._y < __ytarget) {
__speed3 = __speed3 + ((__3._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__3._y - __ytarget) < 5) {
__speed3 = __speed3 / 10;
}
} else {
__3._y = __ytarget - 10;
}
} else {
__3counter--;
}
if (__4counter <= 0) {
if (__4counter == 0) {
__4._y = __ytarget - 50;
__4counter--;
}
if (__4._y < __ytarget) {
__speed4 = __speed4 + ((__4._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__4._y - __ytarget) < 5) {
__speed4 = __speed4 / 10;
}
} else {
__4._y = __ytarget - 10;
}
} else {
__4counter--;
}
if (__5counter <= 0) {
if (__5counter == 0) {
__5._y = __ytarget - 50;
__5counter--;
}
if (__5._y < __ytarget) {
__speed5 = __speed5 + ((__5._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__5._y - __ytarget) < 5) {
__speed5 = __speed5 / 10;
}
} else {
__5._y = __ytarget - 10;
}
} else {
__5counter--;
}
__1._y = __1._y - __speed1;
__2._y = __2._y - __speed2;
__3._y = __3._y - __speed3;
__4._y = __4._y - __speed4;
__5._y = __5._y - __speed5;
};
Frame 559
if (_charhp > 0) {
charDie._visible = false;
charStand._visible = true;
} else {
charDie._visible = true;
charStand._visible = false;
}
Frame 586
_defendNow = false;
if (_charhp > 0) {
if (_regenlevel > 0) {
_regennow = true;
gotoAndPlay (192);
} else {
gotoAndPlay (75);
}
} else {
gotoAndStop (919);
}
Frame 587
if (_defendNow) {
charStand.gotoAndStop(2);
} else {
charStand.gotoAndStop(1);
}
Frame 618
_enemyhitrate = (_enemydex + _enemylevel) + 30;
_charevarate = _charagi + _charlevel;
if (random(100) < (_enemyhitrate - _charevarate)) {
_charwashit = true;
}
_poisonhit = false;
if (random(600) < (_root._charLevel + 30)) {
_charwashit = true;
_poisonhit = true;
}
Frame 620
if (_allowsound) {
if (_charwashit) {
sound_slice.play();
sound_wapaw.play();
} else {
sound_dash.play();
}
}
Frame 622
isDefendSuccessful();
if ((_allowsound && (_defendSuccess)) && (_charwashit)) {
sound_clang.play();
}
Frame 627
charDie._visible = false;
if (_defendNow) {
charDefend._visible = true;
tellTarget (charDefend) {
gotoAndPlay (9);
};
charHit._visible = false;
} else {
charDefend._visible = false;
charHit._visible = true;
}
Frame 628
if (_poisonhit) {
poisonflash.play();
if (poisoncounter < 1) {
poisoncounter = 6;
} else {
poisoncounter = poisoncounter + 2;
}
}
Frame 631
_digits = 0;
_charDead = false;
if (_charwashit) {
_charwashit = false;
if (_enemyprovoked) {
_actualenemystr = _enemystr * (1 + (0.02 * _provokelevel));
} else {
_actualenemystr = _enemystr;
}
_root.calculateDef();
_root.ifDefendNow();
_enemydamagedealt = Math.round(((((_actualenemystr * (100 + random(20))) / 100) * (101 - _actualchardef)) / 100) - (_charvit / 2));
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
__1.text = "";
__2.text = "-";
__3.text = _ones;
__4.text = "";
__5.text = "";
} else if (_digits == 2) {
__1.text = "";
__2.text = "-";
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else if (_digits == 3) {
__1.text = "-";
__2.text = _hundreds;
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else {
__1.text = "-";
__2.text = _thousands;
__3.text = _hundreds;
__4.text = _tens;
__5.text = _ones;
}
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
if ((_charhp <= 0) && (_allowsound)) {
sound_chardie.play();
}
} else {
__1.text = "m";
__2.text = "i";
__3.text = "s";
__4.text = "s";
__5.text = "";
}
if (_charhp > 0) {
charDie._visible = false;
} else {
flash.play();
_charDead = true;
charDie._visible = true;
charHit._visible = false;
charDefend._visible = false;
}
var __speed1;
var __speed2;
var __speed3;
var __speed4;
var __speed5;
var __1counter;
var __2counter;
var __3counter;
var __4counter;
var __5counter;
__1._y = (__2._y = (__3._y = (__4._y = (__5._y = -100))));
__speed1 = (__speed2 = (__speed3 = (__speed4 = (__speed5 = 0))));
__ytarget = 130;
__1counter = 0;
__2counter = 3;
__3counter = 6;
__4counter = 9;
__5counter = 12;
__temp.onEnterFrame = function () {
if (__1counter <= 0) {
if (__1counter == 0) {
__1._y = __ytarget - 50;
__1counter--;
}
if (__1._y < __ytarget) {
__speed1 = __speed1 + ((__1._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__1._y - __ytarget) < 5) {
__speed1 = __speed1 / 10;
}
} else {
__1._y = __ytarget - 10;
}
} else {
__1counter--;
}
if (__2counter <= 0) {
if (__2counter == 0) {
__2._y = __ytarget - 50;
__2counter--;
}
if (__2._y < __ytarget) {
__speed2 = __speed2 + ((__2._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__2._y - __ytarget) < 5) {
__speed2 = __speed2 / 10;
}
} else {
__2._y = __ytarget - 10;
}
} else {
__2counter--;
}
if (__3counter <= 0) {
if (__3counter == 0) {
__3._y = __ytarget - 50;
__3counter--;
}
if (__3._y < __ytarget) {
__speed3 = __speed3 + ((__3._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__3._y - __ytarget) < 5) {
__speed3 = __speed3 / 10;
}
} else {
__3._y = __ytarget - 10;
}
} else {
__3counter--;
}
if (__4counter <= 0) {
if (__4counter == 0) {
__4._y = __ytarget - 50;
__4counter--;
}
if (__4._y < __ytarget) {
__speed4 = __speed4 + ((__4._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__4._y - __ytarget) < 5) {
__speed4 = __speed4 / 10;
}
} else {
__4._y = __ytarget - 10;
}
} else {
__4counter--;
}
if (__5counter <= 0) {
if (__5counter == 0) {
__5._y = __ytarget - 50;
__5counter--;
}
if (__5._y < __ytarget) {
__speed5 = __speed5 + ((__5._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__5._y - __ytarget) < 5) {
__speed5 = __speed5 / 10;
}
} else {
__5._y = __ytarget - 10;
}
} else {
__5counter--;
}
__1._y = __1._y - __speed1;
__2._y = __2._y - __speed2;
__3._y = __3._y - __speed3;
__4._y = __4._y - __speed4;
__5._y = __5._y - __speed5;
};
Frame 633
_counterAttack = false;
charCounter._visible = false;
if ((_charDead == false) && (random(100) < (_counterLevel * _counterFactor))) {
charHit._visible = false;
charDefend._visible = false;
charCounter._visible = true;
_counterAttack = true;
}
Frame 634
if (_allowsound && (_counterAttack)) {
sound_swingweapon.play();
}
Frame 636
_root.calculateCrit();
if ((_charhp > 0) && (random(100) < _charcrit)) {
_criticalAttackNow = true;
}
if (_allowsound && (_counterAttack)) {
if (_criticalAttackNow) {
sound_wapak.play();
} else {
sound_slash.play();
}
}
Frame 637
if (_counterAttack) {
if (_criticalAttackNow) {
basheffect2.play();
}
_charAttackDamage = 0;
if (_root._slotEffect == "STRIPWEAPON") {
_root._actualcharstr = ((_root._charstr + (4 * _root._swordmasterylevel)) + (_root._chardamageFactor * _root._charlevel)) + 20;
} else {
_root._actualcharstr = (((_root._charstr + (4 * _root._swordmasterylevel)) + _root._charWeaponDamage) + (_root._chardamageFactor * _root._charlevel)) + 20;
}
if (_enemyprovoked) {
_actualenemydef = _enemydef * (1 - (0.09 * _provokelevel));
} else {
_actualenemydef = _enemydef;
}
if (_criticalAttackNow) {
if (_enemyprovoked) {
_chardamagedealt = Math.round((_actualcharstr * 1.2) - ((_enemyvit / 2) / 1.2));
} else {
_chardamagedealt = Math.round((_actualcharstr * 1.2) - (_enemyvit / 2));
}
} else if (_enemyprovoked) {
_chardamagedealt = Math.round(((((_actualcharstr * (100 + random(10))) / 100) * (101 - _actualenemydef)) / 100) - ((_enemyvit / 2) / 1.2));
} else {
_chardamagedealt = Math.round(((((_actualcharstr * (100 + random(10))) / 100) * (101 - _actualenemydef)) / 100) - (_enemyvit / 2));
}
_chardamagedealt = _chardamagedealt * (1 + ((_counterLevel * 2) / 10));
if (_chardamagedealt < 1) {
_chardamagedealt = 1;
}
if (_chardamagedealt >= _enemyhp) {
_chardamagedealt = _enemyhp - 1;
}
_charAttackDamage = _charAttackDamage + _chardamagedealt;
_enemyhp = _enemyhp - _chardamagedealt;
_chartotaldamagedealt = _chartotaldamagedealt + _chardamagedealt;
}
eddgaHit._visible = false;
if (_counterAttack) {
charStand._visible = false;
eddgaHit._visible = true;
eddgaWalk._visible = false;
}
if (_charhp > 0) {
charDie._visible = false;
if (_counterAttack == false) {
charStand._visible = true;
}
} else {
charDie._visible = true;
charStand._visible = false;
}
Frame 640
minus.text = "";
chardamagedealt4.text = "";
chardamagedealt3.text = "";
chardamagedealt2.text = "";
chardamagedealt1.text = "";
if (_counterAttack) {
_digits = 0;
_thousands = Math.floor(_charAttackDamage / 1000);
_hundreds = Math.floor((_charAttackDamage - (_thousands * 1000)) / 100);
_tens = Math.floor(((_charAttackDamage - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_charAttackDamage - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
_1.text = "";
_2.text = "-";
_3.text = _ones;
_4.text = "";
_5.text = "";
} else if (_digits == 2) {
_1.text = "";
_2.text = "-";
_3.text = _tens;
_4.text = _ones;
_5.text = "";
} else if (_digits == 3) {
_1.text = "-";
_2.text = _hundreds;
_3.text = _tens;
_4.text = _ones;
_5.text = "";
} else {
_1.text = "-";
_2.text = _thousands;
_3.text = _hundreds;
_4.text = _tens;
_5.text = _ones;
}
}
var _speed1;
var _speed2;
var _speed3;
var _speed4;
var _speed5;
var _1counter;
var _2counter;
var _3counter;
var _4counter;
var _5counter;
_1._y = (_2._y = (_3._y = (_4._y = (_5._y = -100))));
_speed1 = (_speed2 = (_speed3 = (_speed4 = (_speed5 = 0))));
_ytarget = 130;
_1counter = 0;
_2counter = 3;
_3counter = 6;
_4counter = 9;
_5counter = 12;
___temp.onEnterFrame = function () {
if (_1counter <= 0) {
if (_1counter == 0) {
_1._y = _ytarget - 50;
_1counter--;
}
if (_1._y < _ytarget) {
_speed1 = _speed1 + ((_1._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_1._y - _ytarget) < 5) {
_speed1 = _speed1 / 10;
}
} else {
_1._y = _ytarget - 10;
}
} else {
_1counter--;
}
if (_2counter <= 0) {
if (_2counter == 0) {
_2._y = _ytarget - 50;
_2counter--;
}
if (_2._y < _ytarget) {
_speed2 = _speed2 + ((_2._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_2._y - _ytarget) < 5) {
_speed2 = _speed2 / 10;
}
} else {
_2._y = _ytarget - 10;
}
} else {
_2counter--;
}
if (_3counter <= 0) {
if (_3counter == 0) {
_3._y = _ytarget - 50;
_3counter--;
}
if (_3._y < _ytarget) {
_speed3 = _speed3 + ((_3._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_3._y - _ytarget) < 5) {
_speed3 = _speed3 / 10;
}
} else {
_3._y = _ytarget - 10;
}
} else {
_3counter--;
}
if (_4counter <= 0) {
if (_4counter == 0) {
_4._y = _ytarget - 50;
_4counter--;
}
if (_4._y < _ytarget) {
_speed4 = _speed4 + ((_4._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_4._y - _ytarget) < 5) {
_speed4 = _speed4 / 10;
}
} else {
_4._y = _ytarget - 10;
}
} else {
_4counter--;
}
if (_5counter <= 0) {
if (_5counter == 0) {
_5._y = _ytarget - 50;
_5counter--;
}
if (_5._y < _ytarget) {
_speed5 = _speed5 + ((_5._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_5._y - _ytarget) < 5) {
_speed5 = _speed5 / 10;
}
} else {
_5._y = _ytarget - 10;
}
} else {
_5counter--;
}
_1._y = _1._y - _speed1;
_2._y = _2._y - _speed2;
_3._y = _3._y - _speed3;
_4._y = _4._y - _speed4;
_5._y = _5._y - _speed5;
};
Frame 643
if (_charhp > 0) {
charStand._visible = true;
eddgaWalk._visible = true;
}
Frame 663
_defendNow = false;
if (_charhp > 0) {
if (_regenlevel > 0) {
_regennow = true;
gotoAndPlay (192);
} else {
gotoAndPlay (75);
}
} else {
gotoAndStop (919);
}
Frame 664
if (_defendNow) {
charStand.gotoAndStop(2);
} else {
charStand.gotoAndStop(1);
}
Frame 665
if (_allowsound) {
sound_fireball.play();
}
Frame 693
if (_quitgame) {
_fireballDamage = (_charhp * (100 + random(20))) / 100;
} else {
_fireballDamage = Math.round(((((_enemyint * 15) * (100 + random(100))) / 100) * (101 - (_charint / 1.5))) / 500);
}
_charhp = _charhp - _fireballDamage;
_digits = 0;
_thousands = Math.floor(_fireballDamage / 1000);
_hundreds = Math.floor((_fireballDamage - (_thousands * 1000)) / 100);
_tens = Math.floor(((_fireballDamage - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_fireballDamage - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
__1.text = "";
__2.text = "-";
__3.text = _ones;
__4.text = "";
__5.text = "";
} else if (_digits == 2) {
__1.text = "";
__2.text = "-";
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else if (_digits == 3) {
__1.text = "-";
__2.text = _hundreds;
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else {
__1.text = "-";
__2.text = _thousands;
__3.text = _hundreds;
__4.text = _tens;
__5.text = _ones;
}
var __speed1;
var __speed2;
var __speed3;
var __speed4;
var __speed5;
var __1counter;
var __2counter;
var __3counter;
var __4counter;
var __5counter;
__1._y = (__2._y = (__3._y = (__4._y = (__5._y = -100))));
__speed1 = (__speed2 = (__speed3 = (__speed4 = (__speed5 = 0))));
__ytarget = 130;
__1counter = 0;
__2counter = 3;
__3counter = 6;
__4counter = 9;
__5counter = 12;
__temp.onEnterFrame = function () {
if (__1counter <= 0) {
if (__1counter == 0) {
__1._y = __ytarget - 50;
__1counter--;
}
if (__1._y < __ytarget) {
__speed1 = __speed1 + ((__1._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__1._y - __ytarget) < 5) {
__speed1 = __speed1 / 10;
}
} else {
__1._y = __ytarget - 10;
}
} else {
__1counter--;
}
if (__2counter <= 0) {
if (__2counter == 0) {
__2._y = __ytarget - 50;
__2counter--;
}
if (__2._y < __ytarget) {
__speed2 = __speed2 + ((__2._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__2._y - __ytarget) < 5) {
__speed2 = __speed2 / 10;
}
} else {
__2._y = __ytarget - 10;
}
} else {
__2counter--;
}
if (__3counter <= 0) {
if (__3counter == 0) {
__3._y = __ytarget - 50;
__3counter--;
}
if (__3._y < __ytarget) {
__speed3 = __speed3 + ((__3._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__3._y - __ytarget) < 5) {
__speed3 = __speed3 / 10;
}
} else {
__3._y = __ytarget - 10;
}
} else {
__3counter--;
}
if (__4counter <= 0) {
if (__4counter == 0) {
__4._y = __ytarget - 50;
__4counter--;
}
if (__4._y < __ytarget) {
__speed4 = __speed4 + ((__4._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__4._y - __ytarget) < 5) {
__speed4 = __speed4 / 10;
}
} else {
__4._y = __ytarget - 10;
}
} else {
__4counter--;
}
if (__5counter <= 0) {
if (__5counter == 0) {
__5._y = __ytarget - 50;
__5counter--;
}
if (__5._y < __ytarget) {
__speed5 = __speed5 + ((__5._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__5._y - __ytarget) < 5) {
__speed5 = __speed5 / 10;
}
} else {
__5._y = __ytarget - 10;
}
} else {
__5counter--;
}
__1._y = __1._y - __speed1;
__2._y = __2._y - __speed2;
__3._y = __3._y - __speed3;
__4._y = __4._y - __speed4;
__5._y = __5._y - __speed5;
};
Frame 703
if (_charhp > 0) {
charDie._visible = false;
} else {
flash.play();
charDie._visible = true;
}
if (_charhp > 0) {
charStand._visible = true;
} else {
charStand._visible = false;
}
Frame 714
_defendNow = false;
if (_charhp > 0) {
if (_regenlevel > 0) {
_regennow = true;
gotoAndPlay (192);
} else {
gotoAndPlay (75);
}
} else {
gotoAndStop (919);
}
Frame 715
if (_enemy == "eddga") {
tellTarget (enemyStand) {
gotoAndStop (2);
};
} else if (_enemy == "turtle") {
tellTarget (enemyStand) {
gotoAndStop (3);
};
}
Frame 716
stunStars.play();
Frame 760
if (_charhp > 0) {
if (_regenlevel > 0) {
_regennow = true;
gotoAndPlay (192);
} else {
gotoAndPlay (75);
}
} else {
gotoAndStop (919);
}
Frame 761
if (_charhp > 0) {
charStand._visible = true;
eddgaWalk._visible = true;
}
if (_defendNow) {
charStand.gotoAndStop(2);
} else {
charStand.gotoAndStop(1);
}
Frame 788
_enemyhitrate = (_enemydex + _enemylevel) + 30;
_charevarate = _charagi + _charlevel;
if (random(100) < (_enemyhitrate - _charevarate)) {
_charwashit = true;
}
Frame 790
if (_allowsound) {
if (_charwashit) {
sound_slice.play();
sound_wapaw.play();
} else {
sound_dash.play();
}
}
Frame 792
isDefendSuccessful();
if ((_allowsound && (_defendSuccess)) && (_charwashit)) {
sound_clang.play();
}
Frame 796
charDie._visible = false;
if (_defendNow) {
charDefend._visible = true;
tellTarget (charDefend) {
gotoAndPlay (9);
};
charHit._visible = false;
} else {
charDefend._visible = false;
charHit._visible = true;
}
Frame 801
_digits = 0;
_charDead = false;
if (_charwashit) {
_charwashit = false;
if (_enemyprovoked) {
_actualenemystr = _enemystr * (1 + (0.02 * _provokelevel));
} else {
_actualenemystr = _enemystr;
}
_root.calculateDef();
_root.ifDefendNow();
_enemydamagedealt = Math.round(((((_actualenemystr * (100 + random(20))) / 100) * (101 - _actualchardef)) / 100) - (_charvit / 2));
if (_quitgame) {
_enemydamagedealt = _charMaxHP * (1 + (Math.random() / 10));
}
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
__1.text = "";
__2.text = "-";
__3.text = _ones;
__4.text = "";
__5.text = "";
} else if (_digits == 2) {
__1.text = "";
__2.text = "-";
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else if (_digits == 3) {
__1.text = "-";
__2.text = _hundreds;
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else {
__1.text = "-";
__2.text = _thousands;
__3.text = _hundreds;
__4.text = _tens;
__5.text = _ones;
}
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
if ((_charhp <= 0) && (_allowsound)) {
sound_chardie.play();
}
} else {
__1.text = "m";
__2.text = "i";
__3.text = "s";
__4.text = "s";
__5.text = "";
}
if (_charhp > 0) {
charDie._visible = false;
} else {
flash.play();
_charDead = true;
charDie._visible = true;
charHit._visible = false;
charDefend._visible = false;
}
var __speed1;
var __speed2;
var __speed3;
var __speed4;
var __speed5;
var __1counter;
var __2counter;
var __3counter;
var __4counter;
var __5counter;
__1._y = (__2._y = (__3._y = (__4._y = (__5._y = -100))));
__speed1 = (__speed2 = (__speed3 = (__speed4 = (__speed5 = 0))));
__ytarget = 130;
__1counter = 0;
__2counter = 3;
__3counter = 6;
__4counter = 9;
__5counter = 12;
__temp.onEnterFrame = function () {
if (__1counter <= 0) {
if (__1counter == 0) {
__1._y = __ytarget - 50;
__1counter--;
}
if (__1._y < __ytarget) {
__speed1 = __speed1 + ((__1._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__1._y - __ytarget) < 5) {
__speed1 = __speed1 / 10;
}
} else {
__1._y = __ytarget - 10;
}
} else {
__1counter--;
}
if (__2counter <= 0) {
if (__2counter == 0) {
__2._y = __ytarget - 50;
__2counter--;
}
if (__2._y < __ytarget) {
__speed2 = __speed2 + ((__2._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__2._y - __ytarget) < 5) {
__speed2 = __speed2 / 10;
}
} else {
__2._y = __ytarget - 10;
}
} else {
__2counter--;
}
if (__3counter <= 0) {
if (__3counter == 0) {
__3._y = __ytarget - 50;
__3counter--;
}
if (__3._y < __ytarget) {
__speed3 = __speed3 + ((__3._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__3._y - __ytarget) < 5) {
__speed3 = __speed3 / 10;
}
} else {
__3._y = __ytarget - 10;
}
} else {
__3counter--;
}
if (__4counter <= 0) {
if (__4counter == 0) {
__4._y = __ytarget - 50;
__4counter--;
}
if (__4._y < __ytarget) {
__speed4 = __speed4 + ((__4._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__4._y - __ytarget) < 5) {
__speed4 = __speed4 / 10;
}
} else {
__4._y = __ytarget - 10;
}
} else {
__4counter--;
}
if (__5counter <= 0) {
if (__5counter == 0) {
__5._y = __ytarget - 50;
__5counter--;
}
if (__5._y < __ytarget) {
__speed5 = __speed5 + ((__5._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__5._y - __ytarget) < 5) {
__speed5 = __speed5 / 10;
}
} else {
__5._y = __ytarget - 10;
}
} else {
__5counter--;
}
__1._y = __1._y - __speed1;
__2._y = __2._y - __speed2;
__3._y = __3._y - __speed3;
__4._y = __4._y - __speed4;
__5._y = __5._y - __speed5;
};
Frame 802
_counterAttack = false;
charCounter._visible = false;
if ((_charDead == false) && (random(100) < (_counterLevel * _counterFactor))) {
charHit._visible = false;
charDefend._visible = false;
charCounter._visible = true;
_counterAttack = true;
}
Frame 804
if (_allowsound && (_counterAttack)) {
sound_swingweapon.play();
}
Frame 806
_root.calculateCrit();
if ((_charhp > 0) && (random(100) < _charcrit)) {
_criticalAttackNow = true;
}
if (_allowsound && (_counterAttack)) {
if (_criticalAttackNow) {
sound_wapak.play();
} else {
sound_slash.play();
}
}
turtleHit._visible = false;
if (_counterAttack) {
charStand._visible = false;
turtleHit._visible = true;
turtleWalk._visible = false;
}
if (_charhp > 0) {
charDie._visible = false;
if (_counterAttack == false) {
charStand._visible = true;
}
} else {
charDie._visible = true;
charStand._visible = false;
}
Frame 807
if (_counterAttack) {
if (_criticalAttackNow) {
basheffect2.play();
}
_charAttackDamage = 0;
if (_root._slotEffect == "STRIPWEAPON") {
_root._actualcharstr = ((_root._charstr + (4 * _root._swordmasterylevel)) + (_root._chardamageFactor * _root._charlevel)) + 20;
} else {
_root._actualcharstr = (((_root._charstr + (4 * _root._swordmasterylevel)) + _root._charWeaponDamage) + (_root._chardamageFactor * _root._charlevel)) + 20;
}
if (_enemyprovoked) {
_actualenemydef = _enemydef * (1 - (0.09 * _provokelevel));
} else {
_actualenemydef = _enemydef;
}
if (_criticalAttackNow) {
if (_enemyprovoked) {
_chardamagedealt = Math.round((_actualcharstr * 1.2) - ((_enemyvit / 2) / 1.2));
} else {
_chardamagedealt = Math.round((_actualcharstr * 1.2) - (_enemyvit / 2));
}
} else if (_enemyprovoked) {
_chardamagedealt = Math.round(((((_actualcharstr * (100 + random(10))) / 100) * (101 - _actualenemydef)) / 100) - ((_enemyvit / 2) / 1.2));
} else {
_chardamagedealt = Math.round(((((_actualcharstr * (100 + random(10))) / 100) * (101 - _actualenemydef)) / 100) - (_enemyvit / 2));
}
_chardamagedealt = _chardamagedealt * (1 + ((_counterLevel * 2) / 10));
if (_chardamagedealt < 1) {
_chardamagedealt = 1;
}
if (_chardamagedealt >= _enemyhp) {
_chardamagedealt = _enemyhp - 1;
}
_charAttackDamage = _charAttackDamage + _chardamagedealt;
_enemyhp = _enemyhp - _chardamagedealt;
_chartotaldamagedealt = _chartotaldamagedealt + _chardamagedealt;
}
Frame 810
minus.text = "";
chardamagedealt4.text = "";
chardamagedealt3.text = "";
chardamagedealt2.text = "";
chardamagedealt1.text = "";
if (_counterAttack) {
_digits = 0;
_thousands = Math.floor(_charAttackDamage / 1000);
_hundreds = Math.floor((_charAttackDamage - (_thousands * 1000)) / 100);
_tens = Math.floor(((_charAttackDamage - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_charAttackDamage - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
_1.text = "";
_2.text = "-";
_3.text = _ones;
_4.text = "";
_5.text = "";
} else if (_digits == 2) {
_1.text = "";
_2.text = "-";
_3.text = _tens;
_4.text = _ones;
_5.text = "";
} else if (_digits == 3) {
_1.text = "-";
_2.text = _hundreds;
_3.text = _tens;
_4.text = _ones;
_5.text = "";
} else {
_1.text = "-";
_2.text = _thousands;
_3.text = _hundreds;
_4.text = _tens;
_5.text = _ones;
}
}
var _speed1;
var _speed2;
var _speed3;
var _speed4;
var _speed5;
var _1counter;
var _2counter;
var _3counter;
var _4counter;
var _5counter;
_1._y = (_2._y = (_3._y = (_4._y = (_5._y = -100))));
_speed1 = (_speed2 = (_speed3 = (_speed4 = (_speed5 = 0))));
_ytarget = 130;
_1counter = 0;
_2counter = 3;
_3counter = 6;
_4counter = 9;
_5counter = 12;
___temp.onEnterFrame = function () {
if (_1counter <= 0) {
if (_1counter == 0) {
_1._y = _ytarget - 50;
_1counter--;
}
if (_1._y < _ytarget) {
_speed1 = _speed1 + ((_1._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_1._y - _ytarget) < 5) {
_speed1 = _speed1 / 10;
}
} else {
_1._y = _ytarget - 10;
}
} else {
_1counter--;
}
if (_2counter <= 0) {
if (_2counter == 0) {
_2._y = _ytarget - 50;
_2counter--;
}
if (_2._y < _ytarget) {
_speed2 = _speed2 + ((_2._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_2._y - _ytarget) < 5) {
_speed2 = _speed2 / 10;
}
} else {
_2._y = _ytarget - 10;
}
} else {
_2counter--;
}
if (_3counter <= 0) {
if (_3counter == 0) {
_3._y = _ytarget - 50;
_3counter--;
}
if (_3._y < _ytarget) {
_speed3 = _speed3 + ((_3._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_3._y - _ytarget) < 5) {
_speed3 = _speed3 / 10;
}
} else {
_3._y = _ytarget - 10;
}
} else {
_3counter--;
}
if (_4counter <= 0) {
if (_4counter == 0) {
_4._y = _ytarget - 50;
_4counter--;
}
if (_4._y < _ytarget) {
_speed4 = _speed4 + ((_4._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_4._y - _ytarget) < 5) {
_speed4 = _speed4 / 10;
}
} else {
_4._y = _ytarget - 10;
}
} else {
_4counter--;
}
if (_5counter <= 0) {
if (_5counter == 0) {
_5._y = _ytarget - 50;
_5counter--;
}
if (_5._y < _ytarget) {
_speed5 = _speed5 + ((_5._y - _ytarget) / dmgtextSpeed);
if (Math.abs(_5._y - _ytarget) < 5) {
_speed5 = _speed5 / 10;
}
} else {
_5._y = _ytarget - 10;
}
} else {
_5counter--;
}
_1._y = _1._y - _speed1;
_2._y = _2._y - _speed2;
_3._y = _3._y - _speed3;
_4._y = _4._y - _speed4;
_5._y = _5._y - _speed5;
};
Frame 812
if (_charhp > 0) {
charStand._visible = true;
turtleWalk._visible = true;
}
Frame 834
_defendNow = false;
if (_charhp > 0) {
if (_regenlevel > 0) {
_regennow = true;
gotoAndPlay (192);
} else {
gotoAndPlay (75);
}
} else {
gotoAndStop (919);
}
Frame 836
if (_defendNow) {
charStand.gotoAndStop(2);
} else {
charStand.gotoAndStop(1);
}
Frame 841
if (_allowsound) {
sound_waterball.play();
}
Frame 869
_waterballDamage = 0;
waterballSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_waterballDamage = _waterballDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 871
flash.gotoAndPlay(2);
Frame 876
flash.gotoAndPlay(2);
Frame 877
waterballSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_waterballDamage = _waterballDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage2) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage2) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage2) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage2) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 881
flash.gotoAndPlay(2);
Frame 885
waterballSubDamage();
if (_enemydamagedealt < 1) {
_enemydamagedealt = 1;
}
_waterballDamage = _waterballDamage + _enemydamagedealt;
_charhp = _charhp - _enemydamagedealt;
_enemytotaldamagedealt = _enemytotaldamagedealt + _enemydamagedealt;
_thousands = Math.floor(_enemydamagedealt / 1000);
_hundreds = Math.floor((_enemydamagedealt - (_thousands * 1000)) / 100);
_tens = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_enemydamagedealt - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
tellTarget (subDamage3) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._ones;
enemydamagedealt2.text = "";
enemydamagedealt1.text = "";
};
} else if (_digits == 2) {
tellTarget (subDamage3) {
minus.text = "";
enemydamagedealt4.text = "-";
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else if (_digits == 3) {
tellTarget (subDamage3) {
minus.text = "-";
enemydamagedealt4.text = _root._hundreds;
enemydamagedealt3.text = _root._tens;
enemydamagedealt2.text = _root._ones;
enemydamagedealt1.text = "";
};
} else {
tellTarget (subDamage3) {
minus.text = "-";
enemydamagedealt4.text = _root._thousands;
enemydamagedealt3.text = _root._hundreds;
enemydamagedealt2.text = _root._tens;
enemydamagedealt1.text = _root._ones;
};
}
Frame 887
charDie._visible = false;
if (_charhp > 0) {
charDie._visible = false;
charStand._visible = true;
} else {
charDie._visible = true;
charStand._visible = false;
}
Frame 888
if (_charhp > 0) {
charDie._visible = false;
} else {
flash.play();
charDie._visible = true;
}
Frame 897
_digits = 0;
_thousands = Math.floor(_waterballDamage / 1000);
_hundreds = Math.floor((_waterballDamage - (_thousands * 1000)) / 100);
_tens = Math.floor(((_waterballDamage - (_thousands * 1000)) - (_hundreds * 100)) / 10);
_ones = Math.floor(((_waterballDamage - (_thousands * 1000)) - (_hundreds * 100)) - (_tens * 10));
if (_thousands == 0) {
_thousands = "";
_digits = 3;
if (_hundreds == 0) {
_hundreds = "";
_digits = 2;
if (_tens == 0) {
_tens = "";
_digits = 1;
}
}
}
if (_digits == 1) {
__1.text = "";
__2.text = "-";
__3.text = _ones;
__4.text = "";
__5.text = "";
} else if (_digits == 2) {
__1.text = "";
__2.text = "-";
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else if (_digits == 3) {
__1.text = "-";
__2.text = _hundreds;
__3.text = _tens;
__4.text = _ones;
__5.text = "";
} else {
__1.text = "-";
__2.text = _thousands;
__3.text = _hundreds;
__4.text = _tens;
__5.text = _ones;
}
var __speed1;
var __speed2;
var __speed3;
var __speed4;
var __speed5;
var __1counter;
var __2counter;
var __3counter;
var __4counter;
var __5counter;
__1._y = (__2._y = (__3._y = (__4._y = (__5._y = -100))));
__speed1 = (__speed2 = (__speed3 = (__speed4 = (__speed5 = 0))));
__ytarget = 130;
__1counter = 0;
__2counter = 3;
__3counter = 6;
__4counter = 9;
__5counter = 12;
__temp.onEnterFrame = function () {
if (__1counter <= 0) {
if (__1counter == 0) {
__1._y = __ytarget - 50;
__1counter--;
}
if (__1._y < __ytarget) {
__speed1 = __speed1 + ((__1._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__1._y - __ytarget) < 5) {
__speed1 = __speed1 / 10;
}
} else {
__1._y = __ytarget - 10;
}
} else {
__1counter--;
}
if (__2counter <= 0) {
if (__2counter == 0) {
__2._y = __ytarget - 50;
__2counter--;
}
if (__2._y < __ytarget) {
__speed2 = __speed2 + ((__2._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__2._y - __ytarget) < 5) {
__speed2 = __speed2 / 10;
}
} else {
__2._y = __ytarget - 10;
}
} else {
__2counter--;
}
if (__3counter <= 0) {
if (__3counter == 0) {
__3._y = __ytarget - 50;
__3counter--;
}
if (__3._y < __ytarget) {
__speed3 = __speed3 + ((__3._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__3._y - __ytarget) < 5) {
__speed3 = __speed3 / 10;
}
} else {
__3._y = __ytarget - 10;
}
} else {
__3counter--;
}
if (__4counter <= 0) {
if (__4counter == 0) {
__4._y = __ytarget - 50;
__4counter--;
}
if (__4._y < __ytarget) {
__speed4 = __speed4 + ((__4._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__4._y - __ytarget) < 5) {
__speed4 = __speed4 / 10;
}
} else {
__4._y = __ytarget - 10;
}
} else {
__4counter--;
}
if (__5counter <= 0) {
if (__5counter == 0) {
__5._y = __ytarget - 50;
__5counter--;
}
if (__5._y < __ytarget) {
__speed5 = __speed5 + ((__5._y - __ytarget) / dmgtextSpeed);
if (Math.abs(__5._y - __ytarget) < 5) {
__speed5 = __speed5 / 10;
}
} else {
__5._y = __ytarget - 10;
}
} else {
__5counter--;
}
__1._y = __1._y - __speed1;
__2._y = __2._y - __speed2;
__3._y = __3._y - __speed3;
__4._y = __4._y - __speed4;
__5._y = __5._y - __speed5;
};
Frame 918
_defendNow = false;
if (_charhp > 0) {
if (_regenlevel > 0) {
_regennow = true;
gotoAndPlay (192);
} else {
gotoAndPlay (75);
}
} else {
gotoAndStop (919);
}
Frame 919
gotoMainNow = false;
countDown = function (time) {
scoretable.onEnterFrame = function () {
if (time > 0) {
time = time - 0.02;
} else {
gotoAndStop (1);
}
};
};
scoretable._visible = false;
sendingScore._visible = false;
scoretable._scoreSave = "";
dataCounter = 0;
scoretable.onData = function () {
if (gotoMainNow) {
gotoAndStop (5);
} else {
gotoAndStop (924);
}
};
stop();
loadVariables ("getIP.php", _level0, "GET");
statusScreen._visible = (statusEx._visible = true);
_root._slotEffect = "MISS";
_root.calculateHits();
_root.calculatebaseDamage();
_root.getCharHP();
_root.getCharMP();
_root.calculateEva();
_root.calculateHit();
_root.calculateDef();
_root.calculateCrit();
Frame 920
gotoAndStop (919);
Frame 921
play();
Frame 922
scoretable._visible = true;
stop();
Frame 923
play();
Frame 924
scoretable._visible = true;
Frame 925
dataCounter = 0;
gotoAndStop (924);
scoretable._visible = true;
scoretable.scoresize = 100;
scoretable.action = "VIEW";
scoretable.viewtype = "FLASH";
scoretable.gameMode = "Normal";
scoretable.gameDifficulty = "Normal";
scoretable.loadVariables(score_script_address1, "GET");
scoretable.loadVariables(score_script_address2, "GET");
scoretable.loadVariables(score_script_address3, "GET");
Frame 926
function loadDataFunction(_userName, _userPass, _fileAddress) {
_root._loadName2 = _userName;
_root._loadPass2 = _userPass;
_uninitiated = false;
redPotions = 0;
yellowPotions = 0;
whitePotions = 0;
bluePotions = 0;
_quickenedThisRound = false;
_provokedThisRound = false;
_charMoney = 0;
_quickenNow = false;
_showStatus = true;
_autoSelect = true;
_charWeaponDamage = 1;
_statpoints = 48;
_skillpoints = 1;
_charlevel = 1;
_charvit = 1;
_charhptemp = 0;
_charint = 1;
_charmptemp = 0;
_charstr = 1;
_chardef = 5;
_charagi = 1;
_charluk = 1;
_chardex = 1;
_healLevel = 0;
_defendlevel = 0;
_bashlevel = 0;
_regenlevel = 0;
_provokelevel = 0;
_swordmasterylevel = 0;
_quickenlevel = 0;
_counterlevel = 0;
_enemylevel = 1;
_enemyvit = 1;
_enemyhptemp = 0;
_enemyint = 5;
_enemymptemp = 0;
_enemystr = 20;
_enemydef = 1;
_enemyagi = 1;
_enemycrit = 1;
_enemydex = 30;
_fileAddress = ((((all_script_address + "saveData/") + _userName) + "_") + _userPass) + ".php";
dataLoader2.loadVariables(_fileAddress, dataLoader2, "POST");
nowLoading._visible = true;
}
_fileAddress = "";
_loadCountdown = 0.5;
_loadedAlready = false;
nowLoading._visible = false;
clearingFile._visible = false;
clearSuccess._visible = false;
_loadData = "";
dataLoader.action = "";
_root._loadName = "";
_root._loadPass = "";
_root._loadName2 = "";
_root._loadPass2 = "";
dataLoader._clearData = "";
dataLoader.onEnterFrame = function () {
if (dataLoader2._loadData == "SUCCESS") {
_root._enemy = dataLoader2._enemy;
_root._gameMode = dataLoader2._gameMode;
_root._charArmor = parseInt(dataLoader2._charArmor);
_root._slotEffect = dataLoader2._slotEffect;
_root._charMoney = parseInt(dataLoader2._charMoney);
_root._quickenCounter = parseInt(dataLoader2._quickenCounter);
_root._provokeCounter = parseInt(dataLoader2._provokeCounter);
_root.zenyBoosterCounter = parseInt(dataLoader2._zenyBoosterCounter);
_root.redPotions = parseInt(dataLoader2._redPotions);
_root.yellowPotions = parseInt(dataLoader2._yellowPotions);
_root.whitePotions = parseInt(dataLoader2._whitePotions);
_root.bluePotions = parseInt(dataLoader2._bluePotions);
_root.greenPotions = parseInt(dataLoader2._greenPotions);
_root._charWeaponDamage = parseInt(dataLoader2._charWeaponDamage);
_root._charmaxhp = parseInt(dataLoader2._charmaxhp);
_root._charhp = parseInt(dataLoader2._charhp);
_root._charhptemp = parseInt(dataLoader2._charhptemp);
_root._charmaxmp = parseInt(dataLoader2._charmaxmp);
_root._charmp = parseInt(dataLoader2._charmp);
_root._charmptemp = parseInt(dataLoader2._charmptemp);
_root._charLevel = parseInt(dataLoader2._charLevel);
_root._charStr = parseInt(dataLoader2._charStr);
_root._charAgi = parseInt(dataLoader2._charAgi);
_root._charDef = parseInt(dataLoader2._charDef);
_root._charDex = parseInt(dataLoader2._charDex);
_root._charVit = parseInt(dataLoader2._charVit);
_root._charInt = parseInt(dataLoader2._charInt);
_root._charLuk = parseInt(dataLoader2._charLuk);
_root._provokeLevel = parseInt(dataLoader2._provokeLevel);
_root._bashLevel = parseInt(dataLoader2._bashLevel);
_root._regenLevel = parseInt(dataLoader2._regenLevel);
_root._quickenLevel = parseInt(dataLoader2._quickenLevel);
_root._defendLevel = parseInt(dataLoader2._defendLevel);
_root._swordmasteryLevel = parseInt(dataLoader2._swordmasteryLevel);
_root._counterLevel = parseInt(dataLoader2._counterLevel);
_root._healLevel = parseInt(dataLoader2._healLevel);
_root._statPoints = parseInt(dataLoader2._statPoints);
_root._skillPoints = parseInt(dataLoader2._skillPoints);
_root._enemylevel = parseInt(dataLoader2._enemylevel);
_root._enemyvit = parseInt(dataLoader2._enemyvit);
_root._enemymaxhp = parseInt(dataLoader2._enemymaxhp);
_root._enemyhp = parseInt(dataLoader2._enemyhp);
_root._enemyhptemp = parseInt(dataLoader2._enemyhptemp);
_root._enemyint = parseInt(dataLoader2._enemyint);
_root._enemymaxmp = parseInt(dataLoader2._enemymaxmp);
_root._enemymp = parseInt(dataLoader2._enemymp);
_root._enemymptemp = parseInt(dataLoader2._enemymptemp);
_root._enemystr = parseInt(dataLoader2._enemystr);
_root._enemydef = parseInt(dataLoader2._enemydef);
_root._enemyagi = parseInt(dataLoader2._enemyagi);
_root._enemydex = parseInt(dataLoader2._enemydex);
dataLoader.userName = (_root._loadName2 + "_") + _root._loadPass2;
dataLoader.loadVariables(all_script_address + "clearData.php", "GET");
_justloaded = true;
dataLoader2._loadData = "";
_loadedAlready = true;
if (dataLoader2._usedPotionThisRound == "true") {
_root.usedPotionThisRound = true;
} else {
_root.usedPotionThisRound = false;
}
if ((dataLoader2._gameDifficulty != "easy") && (dataLoader2._gameDifficulty != "hard")) {
_root.gameDifficulty = "normal";
} else {
_root.gameDifficulty = dataLoader2._gameDifficulty;
}
_root._actualcharstr = (_root._charstr + (4 * _root._swordmasterylevel)) + _charWeaponDamage;
_root._charbasedamage = (Math.round(_root._actualcharstr) + "-") + Math.round(_root._actualcharstr * 1.1);
}
if (dataLoader._clearData == "SUCCESS") {
clearingFile._visible = false;
clearSuccess._visible = true;
if (_loadCountdown > 0) {
_loadCountdown = _loadCountdown - 0.025;
} else {
_loadedAlready = false;
gotoAndStop (31);
}
} else if (_loadedAlready) {
nowLoading._visible = false;
clearingFile._visible = true;
}
};
Frame 927
stop();
Frame 928
stop();
Frame 929
stop();
Frame 930
stop();
Frame 931
stop();
Symbol 13 MovieClip Frame 2
stop();
Symbol 16 MovieClip Frame 2
stop();
Symbol 43 MovieClip Frame 20
gotoAndPlay (15);
Symbol 53 Button
on (release) {
gotoAndPlay (925);
}
Symbol 58 Button
on (release) {
play();
}
Symbol 63 Button
on (release) {
gotoAndStop (926);
}
Symbol 68 Button
on (release) {
gotoAndPlay (927);
}
Symbol 74 Button
on (release) {
_gameMode = "NOVICE";
play();
}
Symbol 79 Button
on (release) {
_gameMode = "SLOTMACHINE";
play();
}
Symbol 82 Button
on (release) {
gameDifficulty = "normal";
play();
}
Symbol 89 Button
on (release) {
gameDifficulty = "easy";
play();
}
Symbol 95 Button
on (release) {
gameDifficulty = "hard";
play();
}
Symbol 102 Button
on (release) {
statusScreen._visible = false;
statusEx._visible = false;
play();
}
Symbol 105 MovieClip Frame 1
Symbol 107 MovieClip Frame 1
function hidestatbutton(_type, _buttonName, _stat, _limit, _statCost, _statCost2) {
if (_type == "stat") {
if ((_root._statpoints < (1 + Math.floor((_stat - 1) / 10))) || (_stat >= _limit)) {
tellTarget (statButtons) {
setProperty(_buttonName, _visible , false);
};
} else {
tellTarget (statButtons) {
setProperty(_buttonName, _visible , true);
};
}
}
if (_type == "skill") {
if ((_root._skillpoints < (1 + Math.floor((_stat - 1) / 10))) || (_stat >= _limit)) {
tellTarget (skillButtons) {
setProperty(_buttonName, _visible , false);
};
} else {
tellTarget (skillButtons) {
setProperty(_buttonName, _visible , true);
};
}
}
_statCost.text = 1 + Math.floor((_stat - 1) / 10);
_statCost2.text = 1 + Math.floor((_stat - 1) / 10);
}
statButtons.onEnterFrame = function () {
if (_root._statpoints <= 0) {
statButtons._visible = false;
} else {
statButtons._visible = true;
}
if (_root._skillpoints <= 0) {
skillButtons._visible = false;
} else {
skillButtons._visible = true;
}
hidestatbutton("stat", "strButton", _root._charstr, 99, strengthCost, strengthCost2);
hidestatbutton("stat", "agiButton", _root._charagi, 99, agilityCost, agilityCost2);
hidestatbutton("stat", "dexButton", _root._chardex, 99, dexterityCost, dexterityCost2);
hidestatbutton("stat", "vitButton", _root._charvit, 99, vitalityCost, vitalityCost2);
hidestatbutton("stat", "intButton", _root._charint, 99, intelligenceCost, intelligenceCost2);
hidestatbutton("stat", "lukButton", _root._charluk, 99, luckCost, luckCost2);
hidestatbutton("skill", "provokeButton", _root._provokelevel, 10);
hidestatbutton("skill", "regenButton", _root._regenlevel, 10);
hidestatbutton("skill", "bashButton", _root._bashlevel, 10);
hidestatbutton("skill", "swordmasteryButton", _root._swordmasterylevel, 10);
hidestatbutton("skill", "defendButton", _root._defendlevel, 10);
hidestatbutton("skill", "healButton", _root._heallevel, 10);
hidestatbutton("skill", "quickenButton", _root._quickenlevel, 10);
};
Symbol 116 Button
on (release) {
shopWindow._visible = true;
shopButton._visible = false;
fightButton._visible = false;
dimmer._visible = false;
}
Symbol 121 Button
on (release, keyPress "<Space>") {
play();
}
Symbol 272 Button
on (release) {
if (_root.gameDifficulty == "easy") {
initialPointsRequired = 1;
} else if (_root.gameDifficulty == "normal") {
initialPointsRequired = 2;
} else if (_root.gameDifficulty == "hard") {
initialPointsRequired = 3;
}
_pointsrequired = initialPointsRequired + Math.floor((_root._charstr - 1) / 10);
if (_root._statpoints >= _pointsrequired) {
_root._charstr++;
_root._statpoints = _root._statpoints - _pointsrequired;
_root.calculatebaseDamage();
}
}
Symbol 273 Button
on (release) {
if (_root.gameDifficulty == "easy") {
initialPointsRequired = 1;
} else if (_root.gameDifficulty == "normal") {
initialPointsRequired = 2;
} else if (_root.gameDifficulty == "hard") {
initialPointsRequired = 3;
}
_pointsrequired = initialPointsRequired + Math.floor((_root._chardex - 1) / 10);
if (_root._statpoints >= _pointsrequired) {
_root._chardex++;
_root._statpoints = _root._statpoints - _pointsrequired;
_root.calculateHit();
}
}
Symbol 274 Button
on (release) {
if (_root.gameDifficulty == "easy") {
initialPointsRequired = 1;
} else if (_root.gameDifficulty == "normal") {
initialPointsRequired = 2;
} else if (_root.gameDifficulty == "hard") {
initialPointsRequired = 3;
}
_pointsrequired = initialPointsRequired + Math.floor((_root._charvit - 1) / 10);
if (_root._statpoints >= _pointsrequired) {
_root._charvit++;
_root._statpoints = _root._statpoints - _pointsrequired;
_temp = _root._charmaxhp;
_root.getCharHP();
_root._charhp = _root._charhp + (_root._charmaxhp - _temp);
}
}
Symbol 275 Button
on (release) {
if (_root.gameDifficulty == "easy") {
initialPointsRequired = 1;
} else if (_root.gameDifficulty == "normal") {
initialPointsRequired = 2;
} else if (_root.gameDifficulty == "hard") {
initialPointsRequired = 3;
}
_pointsrequired = initialPointsRequired + Math.floor((_root._charint - 1) / 10);
if (_root._statpoints >= _pointsrequired) {
_root._charint++;
_root._statpoints = _root._statpoints - _pointsrequired;
_temp = _root._charmaxmp;
_root.getCharMP();
_root._charmp = _root._charmp + (_root._charmaxmp - _temp);
}
}
Symbol 276 Button
on (release) {
if (_root.gameDifficulty == "easy") {
initialPointsRequired = 1;
} else if (_root.gameDifficulty == "normal") {
initialPointsRequired = 2;
} else if (_root.gameDifficulty == "hard") {
initialPointsRequired = 3;
}
_pointsrequired = initialPointsRequired + Math.floor((_root._charluk - 1) / 10);
if (_root._statpoints >= _pointsrequired) {
_root._charluk++;
_root._statpoints = _root._statpoints - _pointsrequired;
_root.calculateCrit();
}
}
Symbol 277 Button
on (release) {
if (_root.gameDifficulty == "easy") {
initialPointsRequired = 1;
} else if (_root.gameDifficulty == "normal") {
initialPointsRequired = 2;
} else if (_root.gameDifficulty == "hard") {
initialPointsRequired = 3;
}
_pointsrequired = initialPointsRequired + Math.floor((_root._charagi - 1) / 10);
if (_root._statpoints >= _pointsrequired) {
_root._charagi++;
_root._statpoints = _root._statpoints - _pointsrequired;
_root.calculateEva();
_root.calculateHits();
}
}
Symbol 279 Button
on (release) {
if (_root._skillpoints > 0) {
_root._provokelevel++;
_root._skillpoints--;
}
}
Symbol 280 Button
on (release) {
if (_root._skillpoints > 0) {
_root._regenlevel++;
_root._skillpoints--;
if (_root._skillpoints <= 0) {
_root.statusButtons._visible = false;
}
}
}
Symbol 281 Button
on (release) {
if (_root._skillpoints > 0) {
_root._bashlevel++;
_root._skillpoints--;
if (_root._skillpoints <= 0) {
_root.statusButtons._visible = false;
}
}
}
Symbol 282 Button
on (release) {
if (_root._skillpoints > 0) {
_root._swordmasterylevel++;
_root._skillpoints--;
_root.calculatebaseDamage();
if (_root._skillpoints <= 0) {
_root._statusButtons._visible = false;
}
}
}
Symbol 283 Button
on (release) {
if (_root._skillpoints > 0) {
_root._defendlevel++;
_root._skillpoints--;
}
}
Symbol 284 Button
on (release) {
if (_root._skillpoints > 0) {
_root._healLevel++;
_root._skillpoints--;
}
}
Symbol 285 Button
on (release) {
if (_root._skillpoints > 0) {
_root._quickenlevel++;
_root._skillpoints--;
if (_root._skillpoints <= 0) {
_root.statusButtons._visible = false;
}
}
}
Symbol 286 Button
on (release) {
if (_root._skillpoints > 0) {
_root._counterLevel++;
_root._skillpoints--;
}
}
Symbol 288 MovieClip Frame 1
function hidestatbutton(_type, _buttonName, _stat, _limit, _statCost, _statCost2) {
if (_root.gameDifficulty == "easy") {
initialPointsRequired = 1;
} else if (_root.gameDifficulty == "normal") {
initialPointsRequired = 2;
} else if (_root.gameDifficulty == "hard") {
initialPointsRequired = 3;
}
if (_type == "stat") {
if ((_root._statpoints < (initialPointsRequired + Math.floor((_stat - 1) / 10))) || (_stat >= _limit)) {
tellTarget (statButtons) {
setProperty(_buttonName, _visible , false);
};
} else {
tellTarget (statButtons) {
setProperty(_buttonName, _visible , true);
};
}
}
if (_type == "skill") {
if ((_root._skillpoints < (1 + Math.floor((_stat - 1) / 10))) || (_stat >= _limit)) {
tellTarget (skillButtons) {
setProperty(_buttonName, _visible , false);
};
} else {
tellTarget (skillButtons) {
setProperty(_buttonName, _visible , true);
};
}
}
if (_stat < 99) {
_statCost.text = initialPointsRequired + Math.floor((_stat - 1) / 10);
_statCost2.text = initialPointsRequired + Math.floor((_stat - 1) / 10);
}
}
misfortune._visible = false;
stripweapon._visible = false;
slowed._visible = false;
striparmor._visible = false;
if (_root._slotEffect == "MISFORTUNE") {
misfortune._visible = true;
} else if (_root._slotEffect == "STRIPWEAPON") {
stripweapon._visible = true;
} else if (_root._slotEffect == "SLOW") {
slowed._visible = true;
} else if (_root._slotEffect == "STRIPARMOR") {
striparmor._visible = true;
}
statButtons.onEnterFrame = function () {
if (_root._statpoints <= 0) {
statButtons._visible = false;
} else {
statButtons._visible = true;
}
if (_root._skillpoints <= 0) {
skillButtons._visible = false;
} else {
skillButtons._visible = true;
}
hidestatbutton("stat", "strButton", _root._charstr, _root._charstrLimit, strengthCost, strengthCost2);
hidestatbutton("stat", "agiButton", _root._charagi, _root._charagiLimit, agilityCost, agilityCost2);
hidestatbutton("stat", "dexButton", _root._chardex, _root._chardexLimit, dexterityCost, dexterityCost2);
hidestatbutton("stat", "vitButton", _root._charvit, _root._charvitLimit, vitalityCost, vitalityCost2);
hidestatbutton("stat", "intButton", _root._charint, _root._charintLimit, intelligenceCost, intelligenceCost2);
hidestatbutton("stat", "lukButton", _root._charluk, _root._charlukLimit, luckCost, luckCost2);
hidestatbutton("skill", "provokeButton", _root._provokelevel, 10);
hidestatbutton("skill", "regenButton", _root._regenlevel, 10);
hidestatbutton("skill", "bashButton", _root._bashlevel, 10);
hidestatbutton("skill", "swordmasteryButton", _root._swordmasterylevel, 10);
hidestatbutton("skill", "defendButton", _root._defendlevel, 10);
hidestatbutton("skill", "healButton", _root._heallevel, 10);
hidestatbutton("skill", "quickenButton", _root._quickenlevel, 10);
hidestatbutton("skill", "counterButton", _root._counterlevel, 10);
};
Symbol 289 Button
on (release, keyPress "<Space>") {
if (justInitiated || (_justloaded)) {
play();
} else {
statusScreen._visible = false;
statusEx._visible = false;
shopButton._visible = true;
fightButton._visible = true;
dimmer._visible = true;
}
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
stop();
Symbol 300 Button
on (release) {
_root._healPercent = _root._healPercent + 5;
if (_root._healPercent > 95) {
_root._healPercent = 95;
}
}
Symbol 301 Button
on (release) {
_root._healPercent = _root._healPercent - 5;
if (_root._healPercent < 5) {
_root._healPercent = 5;
}
}
Symbol 305 Button
on (release) {
if (_root._autoDefend) {
_root._autoDefend = false;
} else {
_root._autoDefend = true;
}
}
Symbol 306 Button
on (release) {
if (_root._autoAttack) {
_root._autoAttack = false;
} else {
_root._autoAttack = true;
}
}
Symbol 307 Button
on (release) {
if (_root._autoBash) {
_root._autoBash = false;
} else {
_root._autoBash = true;
}
}
Symbol 308 Button
on (release) {
if (_root._autoHeal) {
_root._autoHeal = false;
} else {
_root._autoHeal = true;
}
}
Symbol 309 Button
on (release) {
if (_root._autoProvoke) {
_root._autoProvoke = false;
} else {
_root._autoProvoke = true;
}
}
Symbol 310 Button
on (release) {
if (_root._autoQuicken) {
_root._autoQuicken = false;
} else {
_root._autoQuicken = true;
}
}
Symbol 311 Button
on (release) {
if (_root._showStatus) {
_root._showStatus = false;
} else {
_root._showStatus = true;
}
}
Symbol 312 Button
on (release) {
if (_root._autoSelect) {
_root._autoSelect = false;
} else {
_root._autoSelect = true;
}
}
Symbol 326 Button
on (release) {
_root._autoAttack = false;
_root._autoDefend = false;
_root._autoBash = false;
_root._autoProvoke = false;
_root._autoHeal = false;
_root._autoQuicken = false;
}
Symbol 327 MovieClip Frame 1
autoAttackClip.onEnterFrame = function () {
if (_root._autoAttack) {
tellTarget (autoAttackClip) {
gotoAndStop (2);
};
} else {
tellTarget (autoAttackClip) {
gotoAndStop (1);
};
}
if (_root._autoDefend) {
tellTarget (autoDefendClip) {
gotoAndStop (2);
};
} else {
tellTarget (autoDefendClip) {
gotoAndStop (1);
};
}
if (_root._autoBash) {
tellTarget (autoBashClip) {
gotoAndStop (2);
};
} else {
tellTarget (autoBashClip) {
gotoAndStop (1);
};
}
if (_root._autoProvoke) {
tellTarget (autoProvokeClip) {
gotoAndStop (2);
};
} else {
tellTarget (autoProvokeClip) {
gotoAndStop (1);
};
}
if (_root._autoHeal) {
tellTarget (autoHealClip) {
gotoAndStop (2);
};
} else {
tellTarget (autoHealClip) {
gotoAndStop (1);
};
}
if (_root._autoQuicken) {
tellTarget (autoQuickenClip) {
gotoAndStop (2);
};
} else {
tellTarget (autoQuickenClip) {
gotoAndStop (1);
};
}
if (_root._showStatus) {
tellTarget (showStatusClip) {
gotoAndStop (2);
};
} else {
tellTarget (showStatusClip) {
gotoAndStop (1);
};
}
if (_root._autoSelect) {
tellTarget (autoSelectClip) {
gotoAndStop (2);
};
} else {
tellTarget (autoSelectClip) {
gotoAndStop (1);
};
}
};
Symbol 362 Button
on (release) {
buyArmor(10000, 5, 10);
}
Symbol 365 Button
on (release) {
buyArmor(20000, 15, 25);
}
Symbol 373 Button
on (release) {
buyArmor(30000, 25, 40);
}
Symbol 376 Button
on (release) {
buyArmor(50000, 35, 65);
}
Symbol 379 Button
on (release) {
buyArmor(80000, 45, 100);
}
Symbol 386 Button
on (release) {
buyWeapon(10000, 10, 10);
}
Symbol 388 Button
on (release) {
buyWeapon(20000, 20, 25);
}
Symbol 390 Button
on (release) {
buyWeapon(30000, 30, 40);
}
Symbol 391 Button
on (release) {
buyWeapon(50000, 40, 65);
}
Symbol 392 Button
on (release) {
buyWeapon(80000, 50, 100);
}
Symbol 393 Button
on (release, keyPress "<Space>") {
_root.shopWindow._visible = false;
_root.shopButton._visible = true;
_root.fightButton._visible = true;
_root.dimmer._visible = true;
}
Symbol 402 Button
on (release) {
gotoAndStop (2);
}
Symbol 419 Button
on (release) {
buyPotion(1, 500);
}
Symbol 422 Button
on (release) {
buyPotion(2, 1600);
}
Symbol 424 Button
on (release) {
buyPotion(3, 4200);
}
Symbol 427 Button
on (release) {
buyPotion(4, 4200);
}
Symbol 431 Button
on (release) {
buyPotion(5, 500);
}
Symbol 438 Button
on (release) {
buyEnchantment(1, 15000, 0);
}
Symbol 443 Button
on (release) {
gotoAndStop (1);
}
Symbol 444 MovieClip Frame 1
function buyEnchantment(_itemNum, _itemCost, _itemLevelReq) {
if (_itemCost <= _root._charMoney) {
_root._charMoney = _root._charMoney - _itemCost;
if (_itemNum == 1) {
_root.zenyBoosterCounter = 15;
}
}
}
function buyPotion(_itemNum, _itemCost) {
if (_itemCost <= _root._charMoney) {
_root._charMoney = _root._charMoney - _itemCost;
if (_itemNum == 1) {
_root.redPotions++;
} else if (_itemNum == 2) {
_root.yellowPotions++;
} else if (_itemNum == 3) {
_root.whitePotions++;
} else if (_itemNum == 4) {
_root.bluePotions++;
} else if (_itemNum == 5) {
_root.greenPotions++;
}
}
}
function buyArmor(_itemCost, _itemDefense, _itemLevelReq) {
if (((_itemCost <= _root._charMoney) && (_itemLevelReq <= _root._charLevel)) && (_itemDefense > _root._charArmor)) {
_root._charMoney = _root._charMoney - _itemCost;
_root._charArmor = _itemDefense;
}
}
function buyWeapon(_itemCost, _itemDamage, _itemLevelReq) {
if (((_itemCost <= _root._charMoney) && (_itemLevelReq <= _root._charLevel)) && (_itemDamage > _root._charWeaponDamage)) {
_root._charMoney = _root._charMoney - _itemCost;
_root._charWeaponDamage = _itemDamage;
}
}
function shop(_item, _itemCost, _itemLevelReq, _enchantmentCounter) {
if (((_itemCost > _root._charMoney) || (_itemLevelReq > _root._charLevel)) || (_enchantmentCounter > 0)) {
_item._visible = false;
}
}
stop();
shop(woodenMail, 10000, 10);
shop(paddedArmor, 20000, 25);
shop(chainMail, 30000, 40);
shop(fullPlate, 50000, 65);
shop(plateArmor, 80000, 100);
shop(katana, 10000, 10);
shop(slayer, 20000, 25);
shop(bastardSword, 30000, 40);
shop(broadSword, 50000, 65);
shop(claymore, 80000, 100);
shopOnEnterClip.onEnterFrame = function () {
shop(woodenMail, 10000, 10);
shop(paddedArmor, 20000, 25);
shop(chainMail, 30000, 40);
shop(fullPlate, 50000, 65);
shop(plateArmor, 80000, 100);
shop(katana, 10000, 10);
shop(slayer, 20000, 25);
shop(bastardSword, 30000, 40);
shop(broadSword, 50000, 65);
shop(claymore, 80000, 100);
shop(redPotion, 500);
shop(yellowPotion, 1600);
shop(whitePotion, 4200);
shop(bluePotion, 4200);
shop(greenPotion, 500);
shop(zenyBooster, 15000, 0, _root.zenyBoosterCounter);
};
Symbol 444 MovieClip Frame 2
shop(redPotion, 500);
shop(yellowPotion, 1600);
shop(whitePotion, 4200);
shop(bluePotion, 4200);
shop(greenPotion, 500);
shop(zenyBooster, 15000, 0, _root.zenyBoosterCounter);
Symbol 477 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 1
stop();
blueBarTemp.onEnterFrame = function () {
if ((_root._slotEffect == "POISON") || (_root.poisoncounter > 0)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
stop();
Symbol 486 MovieClip Frame 2
stop();
Symbol 516 Button
on (release) {
toggleMusic();
}
on (keyPress "M") {
toggleMusic();
}
on (keyPress "m") {
toggleMusic();
}
Symbol 520 MovieClip Frame 2
stop();
Symbol 520 MovieClip Frame 3
stop();
Symbol 520 MovieClip Frame 4
stop();
Symbol 520 MovieClip Frame 5
gotoAndPlay (2);
Symbol 522 Button
on (release) {
qualiToggle.play();
}
on (keyPress "q") {
qualiToggle.play();
}
on (keyPress "Q") {
qualiToggle.play();
}
Symbol 529 MovieClip Frame 1
stop();
_quality = "HIGH";
Symbol 529 MovieClip Frame 2
stop();
_quality = "MEDIUM";
Symbol 529 MovieClip Frame 3
stop();
_quality = "LOW";
Symbol 597 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 2
stop();
Symbol 635 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 2
_root.gotoandstop47();
Symbol 635 MovieClip Frame 37
gotoAndStop (1);
_root.enemyAI();
Symbol 635 MovieClip Frame 38
_root.gotoandstop47();
Symbol 635 MovieClip Frame 73
gotoAndStop (1);
_root.enemyAI();
Symbol 635 MovieClip Frame 74
_root.gotoandstop47();
Symbol 635 MovieClip Frame 109
gotoAndStop (1);
_root.enemyAI();
Symbol 635 MovieClip Frame 110
_root.gotoandstop47();
Symbol 635 MovieClip Frame 145
gotoAndStop (1);
_root.enemyAI();
Symbol 635 MovieClip Frame 146
_root.gotoandstop47();
Symbol 635 MovieClip Frame 181
gotoAndStop (1);
_root.enemyAI();
Symbol 662 Button
on (release) {
commandAttack();
}
Symbol 665 Button
on (release) {
commandDefend();
}
Symbol 668 Button
on (release) {
commandBash();
}
Symbol 672 Button
on (release) {
gotoAndPlay (836);
}
Symbol 675 Button
on (release) {
commandHeal();
}
Symbol 679 Button
on (release) {
commandProvoke();
}
Symbol 680 Button
on (keyPress "<Escape>") {
_quitgame = true;
if (_enemy == "bapho") {
gotoAndPlay (306);
} else if (_enemy == "eddga") {
gotoAndPlay (664);
}
}
on (release) {
_quitgame = true;
if (_enemy == "bapho") {
gotoAndPlay (306);
} else if (_enemy == "eddga") {
gotoAndPlay (664);
}
}
Symbol 681 Button
on (release) {
commandQuicken();
}
Symbol 682 Button
on (release) {
commandStatus();
}
Symbol 685 Button
on (release) {
if (potionList._visible) {
potionList._visible = false;
} else {
potionList._visible = true;
}
}
Symbol 692 Button
on (release) {
if ((_root.redPotions > 0) && (_root.usedPotionThisRound == false)) {
_root.usedPotionThisRound = true;
_root.potionEffect.gotoandplay(38);
_root.potionList._visible = false;
_root.useButton._visible = false;
_root.redPotions--;
_root._charHP = _root._charHP + 100;
if (_root._charHP > _root._charMaxHP) {
_root._charHP = _root._charMaxHP;
}
}
}
Symbol 693 Button
on (release) {
if ((_root.yellowPotions > 0) && (_root.usedPotionThisRound == false)) {
_root.usedPotionThisRound = true;
_root.potionEffect.gotoandplay(74);
_root.potionList._visible = false;
_root.useButton._visible = false;
_root.yellowPotions--;
_root._charHP = _root._charHP + 300;
if (_root._charHP > _root._charMaxHP) {
_root._charHP = _root._charMaxHP;
}
}
}
Symbol 694 Button
on (release) {
if ((_root.whitePotions > 0) && (_root.usedPotionThisRound == false)) {
_root.usedPotionThisRound = true;
_root.potionEffect.gotoandplay(110);
_root.potionList._visible = false;
_root.useButton._visible = false;
_root.whitePotions--;
_root._charHP = _root._charHP + 800;
if (_root._charHP > _root._charMaxHP) {
_root._charHP = _root._charMaxHP;
}
}
}
Symbol 695 Button
on (release) {
if ((_root.bluePotions > 0) && (_root.usedPotionThisRound == false)) {
_root.usedPotionThisRound = true;
_root.potionEffect.gotoandplay(2);
_root.potionList._visible = false;
_root.useButton._visible = false;
_root.bluePotions--;
_root._charMP = _root._charMP + 50;
if (_root._charMP > _root._charMaxMP) {
_root._charMP = _root._charMaxMP;
}
}
}
Symbol 697 Button
on (release) {
if ((_root.greenPotions > 0) && (_root.usedPotionThisRound == false)) {
_root.usedPotionThisRound = true;
_root.potionEffect.gotoandplay(146);
_root.potionList._visible = false;
_root.useButton._visible = false;
_root.greenPotions--;
_root.poisoncounter = 0;
}
}
Symbol 711 Button
on (release) {
gotoAndStop (538);
}
Symbol 713 Button
on (release) {
if (suicideButton._visible) {
suicideButton._visible = false;
suicideButton2._visible = false;
} else {
suicideButton._visible = true;
suicideButton2._visible = true;
}
}
Symbol 719 Button
on (release) {
if (_root.suicideButton._visible) {
_root.suicideButton._visible = false;
_root.suicideButton2._visible = false;
} else {
_root.suicideButton._visible = true;
_root.suicideButton2._visible = true;
}
}
Symbol 727 Button
on (release) {
_quitgame = true;
if (_enemy == "bapho") {
gotoAndPlay (306);
} else if (_enemy == "eddga") {
gotoAndPlay (664);
} else if (_enemy == "turtle") {
gotoAndPlay (836);
}
}
Symbol 730 MovieClip Frame 1
stop();
Symbol 743 MovieClip Frame 1
stop();
Symbol 743 MovieClip Frame 2
stop();
_spikecounter = 50;
setProperty(spike, _rotation , random(360));
_random = random(100);
setProperty(spike, _xscale , _random);
setProperty(spike, _yscale , _random);
spike.onEnterFrame = function () {
if (_spikecounter > 0) {
duplicateMovieClip (spike, "spike" + _spikecounter, _spikecounter);
setProperty("spike" + _spikecounter, _rotation , random(360));
_random = random(100);
setProperty("spike" + _spikecounter, _xscale , _random);
setProperty("spike" + _spikecounter, _yscale , _random);
_spikecounter--;
duplicateMovieClip (spike, "spike" + _spikecounter, _spikecounter);
setProperty("spike" + _spikecounter, _rotation , random(360));
_random = random(100);
setProperty("spike" + _spikecounter, _xscale , _random);
setProperty("spike" + _spikecounter, _yscale , _random);
_spikecounter--;
duplicateMovieClip (spike, "spike" + _spikecounter, _spikecounter);
setProperty("spike" + _spikecounter, _rotation , random(360));
_random = random(100);
setProperty("spike" + _spikecounter, _xscale , _random);
setProperty("spike" + _spikecounter, _yscale , _random);
_spikecounter--;
duplicateMovieClip (spike, "spike" + _spikecounter, _spikecounter);
setProperty("spike" + _spikecounter, _rotation , random(360));
_random = random(100);
setProperty("spike" + _spikecounter, _xscale , _random);
setProperty("spike" + _spikecounter, _yscale , _random);
_spikecounter--;
duplicateMovieClip (spike, "spike" + _spikecounter, _spikecounter);
setProperty("spike" + _spikecounter, _rotation , random(360));
_random = random(100);
setProperty("spike" + _spikecounter, _xscale , _random);
setProperty("spike" + _spikecounter, _yscale , _random);
_spikecounter--;
}
};
Symbol 746 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 5
stop();
Symbol 749 MovieClip Frame 5
stop();
Symbol 750 MovieClip Frame 5
stop();
Symbol 751 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 2
stop();
_spikecounter = 50;
spike.onEnterFrame = function () {
while (_spikecounter > 0) {
duplicateMovieClip (spike, "spike" + _spikecounter, _spikecounter);
setProperty("spike" + _spikecounter, _rotation , random(360));
_random = random(100);
setProperty("spike" + _spikecounter, _xscale , _random);
setProperty("spike" + _spikecounter, _yscale , _random);
_spikecounter--;
duplicateMovieClip (spike2, "spike" + _spikecounter, _spikecounter);
setProperty("spike" + _spikecounter, _rotation , random(360));
_random = random(100);
setProperty("spike" + _spikecounter, _xscale , _random);
setProperty("spike" + _spikecounter, _yscale , _random);
_spikecounter--;
duplicateMovieClip (spike3, "spike" + _spikecounter, _spikecounter);
setProperty("spike" + _spikecounter, _rotation , random(360));
_random = random(100);
setProperty("spike" + _spikecounter, _xscale , _random);
setProperty("spike" + _spikecounter, _yscale , _random);
_spikecounter--;
duplicateMovieClip (spike2, "spike" + _spikecounter, _spikecounter);
setProperty("spike" + _spikecounter, _rotation , random(360));
_random = random(100);
setProperty("spike" + _spikecounter, _xscale , _random);
setProperty("spike" + _spikecounter, _yscale , _random);
_spikecounter--;
duplicateMovieClip (spike, "spike" + _spikecounter, _spikecounter);
setProperty("spike" + _spikecounter, _rotation , random(360));
_random = random(100);
setProperty("spike" + _spikecounter, _xscale , _random);
setProperty("spike" + _spikecounter, _yscale , _random);
_spikecounter--;
}
};
Symbol 754 MovieClip Frame 1
stop();
Symbol 757 MovieClip Frame 1
stop();
Symbol 760 MovieClip Frame 1
stop();
Symbol 762 MovieClip Frame 1
stop();
Symbol 770 MovieClip Frame 1
stop();
Symbol 782 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 3
stop();
Symbol 803 MovieClip Frame 7
stop();
Symbol 804 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 1
stop();
Symbol 824 MovieClip Frame 8
stop();
Symbol 824 MovieClip Frame 16
stop();
Symbol 831 MovieClip Frame 9
stop();
Symbol 840 MovieClip Frame 10
stop();
Symbol 853 MovieClip Frame 1
stop();
Symbol 879 MovieClip Frame 1
stop();
Symbol 882 MovieClip Frame 1
stop();
Symbol 891 MovieClip Frame 1
stop();
Symbol 898 MovieClip Frame 10
stop();
Symbol 900 MovieClip Frame 5
stop();
Symbol 913 MovieClip Frame 2
stop();
i = 10;
wind.onEnterFrame = function () {
if (i > 0) {
i--;
duplicateMovieClip (wind, "wind" + i, i);
setProperty("wind" + i, _yscale , random(3) * 30);
setProperty("wind" + i, _y , (wind._y + random(10)) - 20);
setProperty("wind" + i, _x , (wind._x + random(20)) - 10);
}
};
Symbol 943 Button
on (release) {
stopSlotMachine();
slotButton._visible = false;
}
Symbol 949 MovieClip Frame 1
stop();
Symbol 950 MovieClip Frame 1
if (_root._autoSelect && (_root._autoSelected == false)) {
_root._autoSelected = true;
slotButton._visible = false;
_autoSelectCounter = 24 + random(36);
}
autoSelectTemp.onEnterFrame = function () {
_autoSelectCounter--;
if (_autoSelectCounter == 0) {
stopSlotMachine();
}
};
function stopSlotMachine() {
_temp2 = 0;
_temp3 = 1;
_temp5 = (_root.slotMachine._currentframe - 1) % 4;
slotMachineFrame.onEnterFrame = function () {
_frameNumber = _root.slotMachine._currentframe;
if (_temp4 < (12 - _temp5)) {
_temp4++;
} else if (_temp2 < _temp3) {
stop();
_temp2++;
} else if (_temp3 < 20) {
play();
_temp3 = _temp3 + 1;
_temp2 = 0;
} else if (_temp3 >= 8) {
if (_root._slotEffect == "NONE") {
if (((_root.slotMachine._currentframe - 1) / 4) == 0) {
_root._slotEffect = "STRIPARMOR";
} else if (((_root.slotMachine._currentframe - 1) / 4) == 8) {
_root._slotEffect = "DAMAGE";
_root._charHP = _root._charHP - (_root._charmaxHP / 5);
if (_root._charHP < 1) {
_root._charHP = 1;
}
} else if (((_root.slotMachine._currentframe - 1) / 4) == 7) {
_root._slotEffect = "RESTORE";
_root._charHP = _root._charmaxHP;
_root._charMP = _root._charmaxMP;
} else if (((_root.slotMachine._currentframe - 1) / 4) == 6) {
_root._slotEffect = "SLOW";
} else if (((_root.slotMachine._currentframe - 1) / 4) == 5) {
_root._slotEffect = "MISFORTUNE";
} else if (((_root.slotMachine._currentframe - 1) / 4) == 4) {
_root._slotEffect = "MISS";
} else if (((_root.slotMachine._currentframe - 1) / 4) == 3) {
_root._slotEffect = "STRIPWEAPON";
} else if (((_root.slotMachine._currentframe - 1) / 4) == 2) {
_root._slotEffect = "POISON";
} else if (((_root.slotMachine._currentframe - 1) / 4) == 1) {
_root._slotEffect = "ZENY";
_root._charMoney = _root._charMoney + 5000;
plus5000zeny.play();
}
}
_timeCounter = _timeCounter - 0.025;
if (_timeCounter < 0) {
_root.play();
}
}
};
}
_timeCounter = 1;
_root._slotEffect = "NONE";
Symbol 963 Button
on (release, keyPress "<Space>") {
if (_root._gameMode == "SLOTMACHINE") {
gotoAndStop (529);
} else {
gotoAndStop (534);
}
}
Symbol 973 Button
on (release) {
if (bgmusic._currentframe == 2) {
_allowmusic = false;
} else if (bgmusic._currentframe == 3) {
_allowsound = false;
} else {
_allowsound = true;
_allowmusic = true;
}
}
Symbol 978 Button
on (release, keyPress "<Space>") {
gotoAndStop (76);
}
Symbol 986 Button
on (release) {
saveDataFunction(_root._saveName, _root._savePass);
nowSaving._visible = true;
}
Symbol 993 Button
on (release) {
gotoAndStop (76);
}
Symbol 999 MovieClip Frame 1
stop();
Symbol 999 MovieClip Frame 11
_root.saveComplete();
Symbol 1014 MovieClip Frame 1
stop();
Symbol 1032 MovieClip Frame 1
stop();
Symbol 1085 MovieClip Frame 1
stop();
Symbol 1164 Button
on (release) {
if (_receivedIP == "YES") {
_code = (_IP + _root._charlevel) + _root.name.text;
_codeLength = _code.length;
x = 0;
while (x < _codeLength) {
_temp = _temp + _code.charCodeAt(x);
if (x < (_codeLength - 1)) {
_temp = _temp + "-";
}
x++;
}
scoretable._randomNumbers = _temp;
_temp = "";
scoretable.scoresize = 100;
if (_root._gameMode == "SLOTMACHINE") {
scoretable.gameMode = "Slot Machine";
} else {
scoretable.gameMode = "Normal";
}
if (_root.gameDifficulty == "easy") {
scoretable.gameDifficulty = "Easy";
} else if (_root.gameDifficulty == "hard") {
scoretable.gameDifficulty = "Hard";
} else {
scoretable.gameDifficulty = "Normal";
}
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = _root.name.text;
scoretable.winscore = _root._charlevel;
scoretable.encryption = ((_root._charlevel * _root._charlevel) * _root._charlevel) - 4309629;
scoretable.loadVariables(score_script_address1, "GET");
scoretable.loadVariables(score_script_address2, "GET");
scoretable.loadVariables(score_script_address3, "GET");
submit._visible = false;
sendingScore._visible = true;
}
}
Symbol 1244 MovieClip Frame 1
delete DAILYSCORE0;
delete DAILYSCORE1;
delete DAILYSCORE2;
delete DAILYSCORE3;
delete DAILYSCORE4;
delete DAILYSCORE5;
delete DAILYSCORE6;
delete DAILYSCORE7;
delete DAILYSCORE8;
delete DAILYSCORE9;
delete WEEKLYSCORE0;
delete WEEKLYSCORE1;
delete WEEKLYSCORE2;
delete WEEKLYSCORE3;
delete WEEKLYSCORE4;
delete WEEKLYSCORE5;
delete WEEKLYSCORE6;
delete WEEKLYSCORE7;
delete WEEKLYSCORE8;
delete WEEKLYSCORE9;
delete MONTHLYSCORE0;
delete MONTHLYSCORE1;
delete MONTHLYSCORE2;
delete MONTHLYSCORE3;
delete MONTHLYSCORE4;
delete MONTHLYSCORE5;
delete MONTHLYSCORE6;
delete MONTHLYSCORE7;
delete MONTHLYSCORE8;
delete MONTHLYSCORE9;
delete DAILYNAME0;
delete DAILYNAME1;
delete DAILYNAME2;
delete DAILYNAME3;
delete DAILYNAME4;
delete DAILYNAME5;
delete DAILYNAME6;
delete DAILYNAME7;
delete DAILYNAME8;
delete DAILYNAME9;
delete WEEKLYNAME0;
delete WEEKLYNAME1;
delete WEEKLYNAME2;
delete WEEKLYNAME3;
delete WEEKLYNAME4;
delete WEEKLYNAME5;
delete WEEKLYNAME6;
delete WEEKLYNAME7;
delete WEEKLYNAME8;
delete WEEKLYNAME9;
delete MONTHLYNAME0;
delete MONTHLYNAME1;
delete MONTHLYNAME2;
delete MONTHLYNAME3;
delete MONTHLYNAME4;
delete MONTHLYNAME5;
delete MONTHLYNAME6;
delete MONTHLYNAME7;
delete MONTHLYNAME8;
delete MONTHLYNAME9;
stop();
temp1.onEnterFrame = function () {
if (((MONTHLYSCORE0 != undefined) && (WEEKLYSCORE0 != undefined)) && (DAILYSCORE0 != undefined)) {
play();
}
};
Symbol 1244 MovieClip Frame 34
stop();
Symbol 1249 Button
on (release) {
gotoMainNow = true;
countDown(5);
if ((_receivedIP == "YES") && (submit._visible)) {
_code = (_IP + _root._charlevel) + _root.name.text;
_codeLength = _code.length;
x = 0;
while (x < _codeLength) {
_temp = _temp + _code.charCodeAt(x);
if (x < (_codeLength - 1)) {
_temp = _temp + "-";
}
x++;
}
scoretable._randomNumbers = _temp;
_temp = "";
scoretable.scoresize = 100;
if (_root._gameMode == "SLOTMACHINE") {
scoretable.gameMode = "Slot Machine";
} else {
scoretable.gameMode = "Normal";
}
if (_root.gameDifficulty == "easy") {
scoretable.gameDifficulty = "Easy";
} else if (_root.gameDifficulty == "hard") {
scoretable.gameDifficulty = "Hard";
} else {
scoretable.gameDifficulty = "Normal";
}
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = _root.name.text;
scoretable.winscore = _root._charlevel;
scoretable.encryption = ((_root._charlevel * _root._charlevel) * _root._charlevel) - 4309629;
scoretable.loadVariables(score_script_address1, "GET");
scoretable.loadVariables(score_script_address2, "GET");
scoretable.loadVariables(score_script_address3, "GET");
submit._visible = false;
sendingScore._visible = true;
}
}
Symbol 1252 Button
on (release) {
gotoAndStop (5);
}
Symbol 1261 Button
on (release) {
if (scoretable._currentframe > 1) {
dataCounter = 0;
tellTarget (scoretable) {
gotoAndStop (1);
};
delete scoretable.DAILYSCORE0;
delete scoretable.DAILYSCORE1;
delete scoretable.DAILYSCORE2;
delete scoretable.DAILYSCORE3;
delete scoretable.DAILYSCORE4;
delete scoretable.DAILYSCORE5;
delete scoretable.DAILYSCORE6;
delete scoretable.DAILYSCORE7;
delete scoretable.DAILYSCORE8;
delete scoretable.DAILYSCORE9;
delete scoretable.WEEKLYSCORE0;
delete scoretable.WEEKLYSCORE1;
delete scoretable.WEEKLYSCORE2;
delete scoretable.WEEKLYSCORE3;
delete scoretable.WEEKLYSCORE4;
delete scoretable.WEEKLYSCORE5;
delete scoretable.WEEKLYSCORE6;
delete scoretable.WEEKLYSCORE7;
delete scoretable.WEEKLYSCORE8;
delete scoretable.WEEKLYSCORE9;
delete scoretable.MONTHLYSCORE0;
delete scoretable.MONTHLYSCORE1;
delete scoretable.MONTHLYSCORE2;
delete scoretable.MONTHLYSCORE3;
delete scoretable.MONTHLYSCORE4;
delete scoretable.MONTHLYSCORE5;
delete scoretable.MONTHLYSCORE6;
delete scoretable.MONTHLYSCORE7;
delete scoretable.MONTHLYSCORE8;
delete scoretable.MONTHLYSCORE9;
delete scoretable.DAILYNAME0;
delete scoretable.DAILYNAME1;
delete scoretable.DAILYNAME2;
delete scoretable.DAILYNAME3;
delete scoretable.DAILYNAME4;
delete scoretable.DAILYNAME5;
delete scoretable.DAILYNAME6;
delete scoretable.DAILYNAME7;
delete scoretable.DAILYNAME8;
delete scoretable.DAILYNAME9;
delete scoretable.WEEKLYNAME0;
delete scoretable.WEEKLYNAME1;
delete scoretable.WEEKLYNAME2;
delete scoretable.WEEKLYNAME3;
delete scoretable.WEEKLYNAME4;
delete scoretable.WEEKLYNAME5;
delete scoretable.WEEKLYNAME6;
delete scoretable.WEEKLYNAME7;
delete scoretable.WEEKLYNAME8;
delete scoretable.WEEKLYNAME9;
delete scoretable.MONTHLYNAME0;
delete scoretable.MONTHLYNAME1;
delete scoretable.MONTHLYNAME2;
delete scoretable.MONTHLYNAME3;
delete scoretable.MONTHLYNAME4;
delete scoretable.MONTHLYNAME5;
delete scoretable.MONTHLYNAME6;
delete scoretable.MONTHLYNAME7;
delete scoretable.MONTHLYNAME8;
delete scoretable.MONTHLYNAME9;
if (scoretable.gameDifficulty == "Easy") {
scoretable.gameDifficulty = "Normal";
} else if (scoretable.gameDifficulty == "Normal") {
scoretable.gameDifficulty = "Hard";
} else if (scoretable.gameDifficulty == "Hard") {
scoretable.gameDifficulty = "Easy";
}
scoretable.action = "VIEW";
scoretable.loadVariables(score_script_address1, "GET");
scoretable.loadVariables(score_script_address2, "GET");
scoretable.loadVariables(score_script_address3, "GET");
}
}
Symbol 1266 Button
on (release) {
if (scoretable._currentframe > 1) {
dataCounter = 0;
tellTarget (scoretable) {
gotoAndStop (1);
};
delete scoretable.DAILYSCORE0;
delete scoretable.DAILYSCORE1;
delete scoretable.DAILYSCORE2;
delete scoretable.DAILYSCORE3;
delete scoretable.DAILYSCORE4;
delete scoretable.DAILYSCORE5;
delete scoretable.DAILYSCORE6;
delete scoretable.DAILYSCORE7;
delete scoretable.DAILYSCORE8;
delete scoretable.DAILYSCORE9;
delete scoretable.WEEKLYSCORE0;
delete scoretable.WEEKLYSCORE1;
delete scoretable.WEEKLYSCORE2;
delete scoretable.WEEKLYSCORE3;
delete scoretable.WEEKLYSCORE4;
delete scoretable.WEEKLYSCORE5;
delete scoretable.WEEKLYSCORE6;
delete scoretable.WEEKLYSCORE7;
delete scoretable.WEEKLYSCORE8;
delete scoretable.WEEKLYSCORE9;
delete scoretable.MONTHLYSCORE0;
delete scoretable.MONTHLYSCORE1;
delete scoretable.MONTHLYSCORE2;
delete scoretable.MONTHLYSCORE3;
delete scoretable.MONTHLYSCORE4;
delete scoretable.MONTHLYSCORE5;
delete scoretable.MONTHLYSCORE6;
delete scoretable.MONTHLYSCORE7;
delete scoretable.MONTHLYSCORE8;
delete scoretable.MONTHLYSCORE9;
delete scoretable.DAILYNAME0;
delete scoretable.DAILYNAME1;
delete scoretable.DAILYNAME2;
delete scoretable.DAILYNAME3;
delete scoretable.DAILYNAME4;
delete scoretable.DAILYNAME5;
delete scoretable.DAILYNAME6;
delete scoretable.DAILYNAME7;
delete scoretable.DAILYNAME8;
delete scoretable.DAILYNAME9;
delete scoretable.WEEKLYNAME0;
delete scoretable.WEEKLYNAME1;
delete scoretable.WEEKLYNAME2;
delete scoretable.WEEKLYNAME3;
delete scoretable.WEEKLYNAME4;
delete scoretable.WEEKLYNAME5;
delete scoretable.WEEKLYNAME6;
delete scoretable.WEEKLYNAME7;
delete scoretable.WEEKLYNAME8;
delete scoretable.WEEKLYNAME9;
delete scoretable.MONTHLYNAME0;
delete scoretable.MONTHLYNAME1;
delete scoretable.MONTHLYNAME2;
delete scoretable.MONTHLYNAME3;
delete scoretable.MONTHLYNAME4;
delete scoretable.MONTHLYNAME5;
delete scoretable.MONTHLYNAME6;
delete scoretable.MONTHLYNAME7;
delete scoretable.MONTHLYNAME8;
delete scoretable.MONTHLYNAME9;
if (scoretable.gameMode == "Slot Machine") {
scoretable.gameMode = "Normal";
} else {
scoretable.gameMode = "Slot Machine";
}
scoretable.action = "VIEW";
scoretable.loadVariables(score_script_address1, "GET");
scoretable.loadVariables(score_script_address2, "GET");
scoretable.loadVariables(score_script_address3, "GET");
}
}
Symbol 1273 Button
on (release) {
loadDataFunction(_root._loadName, _root._loadPass);
}
Symbol 1276 Button
on (release) {
gotoAndStop (1);
}
Symbol 1311 Button
on (release) {
play();
}