Combined Code
movieClip 2 indi3 {
}
movieClip 7 {
}
movieClip 12 {
frame 70 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 19 {
frame 20 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 26 {
frame 1 {
_root.selesaiSerang(_parent._parent);
}
frame 11 {
stop();
}
}
movieClip 33 {
frame 80 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 40 {
frame 45 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 47 {
frame 10 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 54 {
frame 6 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 59 {
frame 130 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 60 {
frame 1 {
stop();
}
}
movieClip 68 {
}
movieClip 73 {
}
movieClip 78 {
frame 70 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 85 {
frame 22 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 92 {
frame 1 {
_root.selesaiSerang(_parent._parent);
}
frame 11 {
stop();
}
}
movieClip 99 {
frame 45 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 106 {
frame 10 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 113 {
frame 6 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 118 {
frame 130 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 119 {
frame 1 {
stop();
}
}
movieClip 124 {
}
movieClip 129 {
frame 70 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 138 {
frame 20 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 145 {
frame 1 {
_root.selesaiSerang(_parent._parent);
}
frame 11 {
stop();
}
}
movieClip 153 {
frame 60 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 158 {
frame 5 {
_root.cekFierceAmmo();
if (_root.selesaiFierceAmmo == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 164 {
frame 6 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 170 {
frame 6 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 175 {
frame 130 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 176 {
frame 1 {
stop();
}
}
movieClip 181 {
}
movieClip 187 {
frame 70 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 194 {
frame 22 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 201 {
frame 1 {
_root.selesaiSerang(_parent._parent);
}
frame 11 {
stop();
}
}
movieClip 208 {
frame 10 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 215 {
frame 6 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 221 {
frame 130 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 222 {
frame 1 {
stop();
}
}
movieClip 227 {
}
movieClip 231 {
frame 70 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 242 {
frame 28 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 249 {
frame 11 {
stop();
}
}
// unknown tag 88 length 145
movieClip 256 {
frame 4 {
namaTools = _root.namaTools;
}
frame 45 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 263 {
frame 5 {
_root.cekFierceAmmo2();
if (_root.selesaiFierceAmmo2 == true) {
_root.selesaiSerang2(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 271 {
frame 10 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 282 {
frame 9 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 286 {
frame 130 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 287 {
frame 1 {
stop();
}
}
movieClip 292 {
}
movieClip 296 {
frame 70 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 307 {
frame 25 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 314 {
frame 11 {
stop();
}
}
movieClip 322 {
frame 10 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 333 {
frame 9 {
_root.cekMultipleAttack();
if (_root.selesaiMultipleAttack == true) {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
}
movieClip 337 {
frame 130 {
_root.selesaiSerang(_parent._parent);
_parent.gotoAndStop(1);
}
}
movieClip 338 {
frame 1 {
stop();
}
}
movieClip 339 jagoan_mc {
frame 1 {
stop();
}
}
frame 1 {
belugerin_mc._visible = false;
_urlStart = _url.indexOf('://') + 3;
_urlEnd = _url.indexOf('/', _urlStart);
domain = _url.substring(_urlStart, _urlEnd);
LastDot = domain.lastIndexOf('.') - 1;
domEnd = domain.lastIndexOf('.', LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
mainDimana2 = 'global';
if (domain == 'kongregate.com') {
mainDimana2 = 'alien';
} else {
mainDimana2 = 'global';
}
if (mainDimana2 == 'global') {
adBox.gotoAndStop(1);
var CPMStarContentSpotID = '5579Q3B640F62';
System.security.allowDomain('server.cpmstar.com');
adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID);
} else {
if (mainDimana2 == 'alien') {
adBox.gotoAndStop(2);
}
}
}
frame 1 {
i = 0;
while (i <= 20) {
_root['strengthBody' + i] = 0;
_root['vitalityBody' + i] = 0;
_root['speedBody' + i] = 0;
_root['tranceSpeedBody' + i] = 0;
_root['attackBody' + i] = 0;
_root['magicAttackBody' + i] = 0;
_root['defenseBody' + i] = 0;
_root['magicDefenseBody' + i] = 0;
_root['evadeBody' + i] = 0;
_root['accuracyBody' + i] = 0;
_root['luckBody' + i] = 0;
++i;
}
_root.defenseBody0 = 0;
_root.defenseBody1 = 40;
_root.defenseBody2 = 50;
_root.defenseBody3 = 60;
_root.defenseBody4 = 70;
_root.defenseBody5 = 80;
_root.defenseBody6 = 90;
_root.magicDefenseBody7 = 60;
_root.magicDefenseBody8 = 70;
_root.magicDefenseBody9 = 80;
_root.magicDefenseBody10 = 90;
_root.strengthBody11 = 75;
_root.vitalityBody12 = 75;
_root.speedBody13 = 50;
_root.tranceSpeedBody14 = 50;
_root.attackBody15 = 75;
_root.magicAttackBody16 = 75;
_root.evadeBody17 = 25;
_root.accuracyBody18 = 25;
_root.luckBody19 = 25;
_root.strengthBody20 = 20;
_root.vitalityBody20 = 20;
_root.defenseBody20 = 75;
_root.magicDefenseBody20 = 75;
_root.evadeBody20 = 20;
_root.accuracyBody20 = 20;
_root.luckBody20 = 20;
}
frame 1 {
i = 0;
while (i <= 20) {
_root['strengthHead' + i] = 0;
_root['vitalityHead' + i] = 0;
_root['speedHead' + i] = 0;
_root['tranceSpeedHead' + i] = 0;
_root['attackHead' + i] = 0;
_root['magicAttackHead' + i] = 0;
_root['defenseHead' + i] = 0;
_root['magicDefenseHead' + i] = 0;
_root['evadeHead' + i] = 0;
_root['accuracyHead' + i] = 0;
_root['luckHead' + i] = 0;
++i;
}
_root.defenseHead0 = 0;
_root.defenseHead1 = 40;
_root.defenseHead2 = 50;
_root.defenseHead3 = 60;
_root.defenseHead4 = 70;
_root.defenseHead5 = 80;
_root.defenseHead6 = 90;
_root.magicDefenseHead7 = 60;
_root.magicDefenseHead8 = 70;
_root.magicDefenseHead9 = 80;
_root.magicDefenseHead10 = 90;
_root.strengthHead11 = 75;
_root.vitalityHead12 = 75;
_root.speedHead13 = 50;
_root.tranceSpeedHead14 = 50;
_root.attackHead15 = 75;
_root.magicAttackHead16 = 75;
_root.evadeHead17 = 25;
_root.accuracyHead18 = 25;
_root.luckHead19 = 25;
_root.strengthHead20 = 20;
_root.vitalityHead20 = 20;
_root.defenseHead20 = 75;
_root.magicDefenseHead20 = 75;
_root.evadeHead20 = 20;
_root.accuracyHead20 = 20;
_root.luckHead20 = 20;
}
frame 1 {
i = 0;
while (i <= 36) {
_root['strengthShield' + i] = 0;
_root['vitalityShield' + i] = 0;
_root['speedShield' + i] = 0;
_root['tranceSpeedShield' + i] = 0;
_root['attackShield' + i] = 0;
_root['magicAttackShield' + i] = 0;
_root['defenseShield' + i] = 0;
_root['magicDefenseShield' + i] = 0;
_root['evadeShield' + i] = 0;
_root['accuracyShield' + i] = 0;
_root['luckShield' + i] = 0;
++i;
}
_root.defenseShield0 = 0;
_root.defenseShield1 = 40;
_root.vitalityShield1 = 40;
_root.defenseShield2 = 60;
_root.vitalityShield2 = 50;
_root.magicDefenseShield2 = 60;
_root.defenseShield3 = 100;
_root.vitalityShield3 = 75;
_root.attackShield4 = 75;
_root.vitalityShield4 = 75;
_root.defenseShield4 = 75;
_root.defenseShield5 = 125;
_root.vitalityShield5 = 150;
_root.magicDefenseShield5 = 175;
_root.defenseShield6 = 35;
_root.vitalityShield6 = 40;
_root.defenseShield7 = 55;
_root.vitalityShield7 = 60;
_root.magicDefenseShield7 = 55;
_root.defenseShield8 = 75;
_root.vitalityShield8 = 70;
_root.luckShield8 = 30;
_root.defenseShield9 = 175;
_root.vitalityShield9 = 150;
_root.vitalityShield10 = 150;
_root.speedShield10 = 25;
_root.defenseShield10 = 150;
_root.magicDefenseShield10 = 150;
_root.evadeShield10 = 25;
_root.defenseShield11 = 30;
_root.vitalityShield11 = 25;
_root.defenseShield12 = 60;
_root.vitalityShield12 = 65;
_root.speedShield12 = 45;
_root.strengthShield13 = 30;
_root.vitalityShield13 = 100;
_root.tranceSpeedShield13 = 30;
_root.defenseShield13 = 100;
_root.magicDefenseShield13 = 100;
_root.accuracyShield13 = 30;
_root.defenseShield14 = 125;
_root.vitalityShield14 = 100;
_root.magicDefenseShield14 = 125;
_root.defenseShield15 = 150;
_root.vitalityShield15 = 125;
_root.defenseShield16 = 30;
_root.vitalityShield16 = 40;
_root.defenseShield17 = 75;
_root.vitalityShield17 = 75;
_root.magicDefenseShield17 = 100;
_root.defenseShield18 = 125;
_root.vitalityShield18 = 100;
_root.evadeShield18 = 40;
_root.defenseShield19 = 200;
_root.vitalityShield19 = 175;
_root.speedShield19 = -5;
_root.defenseShield20 = 100;
_root.vitalityShield20 = 75;
_root.defenseShield21 = 75;
_root.vitalityShield21 = 60;
_root.strengthShield22 = 20;
_root.vitalityShield22 = 100;
_root.speedShield22 = 30;
_root.defenseShield22 = 125;
_root.evadeShield22 = 30;
_root.luckShield22 = 30;
_root.vitalityShield23 = 90;
_root.tranceSpeedShield23 = 30;
_root.defenseShield23 = 100;
_root.magicDefenseShield23 = 100;
_root.luckShield23 = 30;
_root.defenseShield24 = 50;
_root.vitalityShield24 = 50;
_root.magicDefenseShield24 = 50;
_root.defenseShield25 = 50;
_root.vitalityShield25 = 75;
_root.magicDefenseShield25 = 50;
_root.defenseShield26 = 50;
_root.vitalityShield26 = 100;
_root.defenseShield27 = 80;
_root.vitalityShield27 = 100;
_root.speedShield27 = 50;
_root.defenseShield28 = 100;
_root.vitalityShield28 = 125;
_root.defenseShield29 = 60;
_root.vitalityShield29 = 75;
_root.strengthShield30 = 30;
_root.vitalityShield30 = 130;
_root.speedShield30 = 35;
_root.tranceSpeedShield30 = 35;
_root.defenseShield30 = 125;
_root.magicDefenseShield30 = 125;
_root.luckShield30 = 35;
_root.defenseShield31 = 225;
_root.vitalityShield31 = 200;
_root.magicDefenseShield31 = 225;
_root.strengthShield32 = 75;
_root.vitalityShield32 = 175;
_root.speedShield32 = 25;
_root.tranceSpeedShield32 = 25;
_root.attackShield32 = 75;
_root.magicAttackShield32 = 75;
_root.defenseShield32 = 175;
_root.magicDefenseShield32 = 175;
_root.evadeShield32 = 30;
_root.accuracyShield32 = 30;
_root.luckShield32 = 30;
_root.defenseShield33 = 175;
_root.vitalityShield33 = 225;
_root.magicDefenseShield33 = 175;
_root.defenseShield34 = 350;
_root.vitalityShield34 = 250;
_root.defenseShield35 = 275;
_root.vitalityShield35 = 250;
_root.magicDefenseShield35 = 250;
_root.defenseShield36 = 250;
_root.vitalityShield36 = 225;
_root.magicDefenseShield36 = 250;
}
frame 1 {
i = 0;
while (i <= 44) {
_root['strengthWeapon' + i] = 0;
_root['vitalityWeapon' + i] = 0;
_root['speedWeapon' + i] = 0;
_root['tranceSpeedWeapon' + i] = 0;
_root['attackWeapon' + i] = 0;
_root['magicAttackWeapon' + i] = 0;
_root['defenseWeapon' + i] = 0;
_root['magicDefenseWeapon' + i] = 0;
_root['evadeWeapon' + i] = 0;
_root['accuracyWeapon' + i] = 0;
_root['luckWeapon' + i] = 0;
++i;
}
_root.attackWeapon0 = 0;
_root.attackWeapon1 = 25;
_root.strengthWeapon1 = 25;
_root.attackWeapon2 = 50;
_root.strengthWeapon2 = 75;
_root.attackWeapon3 = 75;
_root.strengthWeapon3 = 100;
_root.attackWeapon4 = 100;
_root.strengthWeapon4 = 150;
_root.magicAttackWeapon4 = 75;
_root.accuracyWeapon4 = 10;
_root.luckWeapon4 = 5;
_root.attackWeapon5 = 150;
_root.strengthWeapon5 = 150;
_root.magicAttackWeapon5 = 125;
_root.attackWeapon6 = 5;
_root.strengthWeapon6 = 5;
_root.attackWeapon7 = 175;
_root.strengthWeapon7 = 200;
_root.attackWeapon8 = 30;
_root.strengthWeapon8 = 35;
_root.attackWeapon9 = 75;
_root.strengthWeapon9 = 50;
_root.speedWeapon9 = -3;
_root.attackWeapon10 = 100;
_root.strengthWeapon10 = 75;
_root.defenseWeapon10 = 75;
_root.magicDefenseWeapon10 = 50;
_root.attackWeapon11 = 125;
_root.strengthWeapon11 = 100;
_root.magicAttackWeapon11 = 100;
_root.attackWeapon12 = 150;
_root.strengthWeapon12 = 175;
_root.magicAttackWeapon12 = 175;
_root.attackWeapon13 = 175;
_root.strengthWeapon13 = 200;
_root.evadeWeapon13 = 30;
_root.attackWeapon14 = 125;
_root.strengthWeapon14 = 100;
_root.attackWeapon15 = 35;
_root.strengthWeapon15 = 40;
_root.attackWeapon16 = 75;
_root.strengthWeapon16 = 80;
_root.magicAttackWeapon16 = 75;
_root.attackWeapon17 = 90;
_root.strengthWeapon17 = 90;
_root.vitalityWeapon17 = 20;
_root.speedWeapon17 = 20;
_root.magicAttackWeapon17 = 85;
_root.attackWeapon18 = 100;
_root.strengthWeapon18 = 75;
_root.accuracyWeapon18 = 75;
_root.attackWeapon19 = 125;
_root.strengthWeapon19 = 100;
_root.magicAttackWeapon19 = 175;
_root.attackWeapon20 = 200;
_root.strengthWeapon20 = 200;
_root.attackWeapon21 = 40;
_root.strengthWeapon21 = 50;
_root.attackWeapon22 = 80;
_root.strengthWeapon22 = 75;
_root.magicAttackWeapon22 = 80;
_root.attackWeapon23 = 95;
_root.strengthWeapon23 = 90;
_root.magicAttackWeapon23 = 100;
_root.attackWeapon24 = 125;
_root.strengthWeapon24 = 100;
_root.speedWeapon24 = 25;
_root.tranceSpeedWeapon24 = 25;
_root.attackWeapon25 = 150;
_root.strengthWeapon25 = 185;
_root.magicAttackWeapon25 = 150;
_root.attackWeapon26 = 225;
_root.strengthWeapon26 = 200;
_root.attackWeapon27 = 45;
_root.strengthWeapon27 = 50;
_root.attackWeapon28 = 90;
_root.strengthWeapon28 = 90;
_root.attackWeapon29 = 50;
_root.strengthWeapon29 = 75;
_root.attackWeapon30 = 125;
_root.strengthWeapon30 = 100;
_root.attackWeapon31 = 150;
_root.strengthWeapon31 = 125;
_root.evadeWeapon31 = 50;
_root.luckWeapon31 = 50;
_root.attackWeapon32 = 50;
_root.strengthWeapon32 = 75;
_root.attackWeapon33 = 100;
_root.strengthWeapon33 = 125;
_root.attackWeapon34 = 125;
_root.strengthWeapon34 = 100;
_root.attackWeapon35 = 175;
_root.strengthWeapon35 = 200;
_root.attackWeapon36 = 250;
_root.strengthWeapon36 = 200;
_root.attackWeapon37 = 200;
_root.strengthWeapon37 = 250;
_root.attackWeapon38 = 200;
_root.strengthWeapon38 = 275;
_root.strengthWeapon39 = 250;
_root.vitalityWeapon39 = 125;
_root.speedWeapon39 = 25;
_root.tranceSpeedWeapon39 = 25;
_root.attackWeapon39 = 250;
_root.magicAttackWeapon39 = 225;
_root.defenseWeapon39 = 75;
_root.magicDefenseWeapon39 = 75;
_root.evadeWeapon39 = 30;
_root.accuracyWeapon39 = 30;
_root.luckWeapon39 = 30;
_root.attackWeapon40 = 225;
_root.strengthWeapon40 = 250;
_root.attackWeapon41 = 250;
_root.strengthWeapon41 = 200;
_root.magicAttackWeapon41 = 250;
_root.attackWeapon42 = 175;
_root.strengthWeapon42 = 180;
_root.attackWeapon43 = 350;
_root.strengthWeapon43 = 250;
_root.attackWeapon44 = 250;
_root.strengthWeapon44 = 225;
_root.magicAttackWeapon44 = 200;
}
frame 1 {
function kalkulasiStats(indi, indi2) {
if (indi == 'awal') {
strengthAwal = 0;
vitalityAwal = 0;
speedAwal = 0;
tranceSpeedAwal = 0;
attackAwal = 0;
magicAttackAwal = 0;
defenseAwal = 0;
magicDefenseAwal = 0;
evadeAwal = 0;
accuracyAwal = 0;
luckAwal = 0;
strengthAkhir = 0;
vitalityAkhir = 0;
speedAkhir = 0;
tranceSpeedAkhir = 0;
attackAkhir = 0;
magicAttackAkhir = 0;
defenseAkhir = 0;
magicDefenseAkhir = 0;
evadeAkhir = 0;
accuracyAkhir = 0;
luckAkhir = 0;
} else {
if (indi == 'hasil') {
if (indi2 <= 20) {
strengthAkhir = _root['strengthHead' + indi2];
vitalityAkhir = _root['vitalityHead' + indi2];
speedAkhir = _root['speedHead' + indi2];
tranceSpeedAkhir = _root['tranceSpeedHead' + indi2];
attackAkhir = _root['attackHead' + indi2];
magicAttackAkhir = _root['magicAttackHead' + indi2];
defenseAkhir = _root['defenseHead' + indi2];
magicDefenseAkhir = _root['magicDefenseHead' + indi2];
evadeAkhir = _root['evadeHead' + indi2];
accuracyAkhir = _root['accuracyHead' + indi2];
luckAkhir = _root['luckHead' + indi2];
} else {
strengthAkhir = _root['strengthBody' + indi2];
vitalityAkhir = _root['vitalityBody' + indi2];
speedAkhir = _root['speedBody' + indi2];
tranceSpeedAkhir = _root['tranceSpeedBody' + indi2];
attackAkhir = _root['attackBody' + indi2];
magicAttackAkhir = _root['magicAttackBody' + indi2];
defenseAkhir = _root['defenseBody' + indi2];
magicDefenseAkhir = _root['magicDefenseBody' + indi2];
evadeAkhir = _root['evadeBody' + indi2];
accuracyAkhir = _root['accuracyBody' + indi2];
luckAkhir = _root['luckBody' + indi2];
}
} else {
if (indi == 'akhir') {
strengthAwal = _root['xStrength' + siapaPunya] + _root['strengthWeapon' + siapaWeapon] + _root['strengthShield' + siapaShield] + _root['strengthHead' + siapaHead] + _root['strengthBody' + siapaBody];
vitalityAwal = _root['xVitality' + siapaPunya] + _root['vitalityWeapon' + siapaWeapon] + _root['vitalityShield' + siapaShield] + _root['vitalityHead' + siapaHead] + _root['vitalityBody' + siapaBody];
speedAwal = _root['xspeed' + siapaPunya] + _root['speedWeapon' + siapaWeapon] + _root['speedShield' + siapaShield] + _root['speedHead' + siapaHead] + _root['speedBody' + siapaBody];
tranceSpeedAwal = _root['xspeedTrance' + siapaPunya] + _root['tranceSpeedWeapon' + siapaWeapon] + _root['tranceSpeedShield' + siapaShield] + _root['tranceSpeedHead' + siapaHead] + _root['tranceSpeedBody' + siapaBody];
attackAwal = _root['xAttack' + siapaPunya] + _root['attackWeapon' + siapaWeapon] + _root['attackShield' + siapaShield] + _root['attackHead' + siapaHead] + _root['attackBody' + siapaBody];
magicAttackAwal = _root['xMagicAttack' + siapaPunya] + _root['magicAttackWeapon' + siapaWeapon] + _root['magicAttackShield' + siapaShield] + _root['magicAttackHead' + siapaHead] + _root['magicAttackBody' + siapaBody];
defenseAwal = _root['xDefense' + siapaPunya] + _root['defenseWeapon' + siapaWeapon] + _root['defenseShield' + siapaShield] + _root['defenseHead' + siapaHead] + _root['defenseBody' + siapaBody];
magicDefenseAwal = _root['xMagicDefense' + siapaPunya] + _root['magicDefenseWeapon' + siapaWeapon] + _root['magicDefenseShield' + siapaShield] + _root['magicDefenseHead' + siapaHead] + _root['magicDefenseBody' + siapaBody];
evadeAwal = _root['xEvade' + siapaPunya] + _root['evadeWeapon' + siapaWeapon] + _root['evadeShield' + siapaShield] + _root['evadeHead' + siapaHead] + _root['evadeBody' + siapaBody];
accuracyAwal = _root['xAccuracy' + siapaPunya] + _root['accuracyWeapon' + siapaWeapon] + _root['accuracyShield' + siapaShield] + _root['accuracyHead' + siapaHead] + _root['accuracyBody' + siapaBody];
luckAwal = _root['xLuck' + siapaPunya] + _root['luckWeapon' + siapaWeapon] + _root['luckShield' + siapaShield] + _root['luckHead' + siapaHead] + _root['luckBody' + siapaBody];
strengthAkhir = _root['xStrength' + siapaPunya] + _root['strengthWeapon' + kiniWeapon] + _root['strengthShield' + kiniShield] + _root['strengthHead' + kiniHead] + _root['strengthBody' + kiniBody];
vitalityAkhir = _root['xVitality' + siapaPunya] + _root['vitalityWeapon' + kiniWeapon] + _root['vitalityShield' + kiniShield] + _root['vitalityHead' + kiniHead] + _root['vitalityBody' + kiniBody];
speedAkhir = _root['xspeed' + siapaPunya] + _root['speedWeapon' + kiniWeapon] + _root['speedShield' + kiniShield] + _root['speedHead' + kiniHead] + _root['speedBody' + kiniBody];
tranceSpeedAkhir = _root['xspeedTrance' + siapaPunya] + _root['tranceSpeedWeapon' + kiniWeapon] + _root['tranceSpeedShield' + kiniShield] + _root['tranceSpeedHead' + kiniHead] + _root['tranceSpeedBody' + kiniBody];
attackAkhir = _root['xAttack' + siapaPunya] + _root['attackWeapon' + kiniWeapon] + _root['attackShield' + kiniShield] + _root['attackHead' + kiniHead] + _root['attackBody' + kiniBody];
magicAttackAkhir = _root['xMagicAttack' + siapaPunya] + _root['magicAttackWeapon' + kiniWeapon] + _root['magicAttackShield' + kiniShield] + _root['magicAttackHead' + kiniHead] + _root['magicAttackBody' + kiniBody];
defenseAkhir = _root['xDefense' + siapaPunya] + _root['defenseWeapon' + kiniWeapon] + _root['defenseShield' + kiniShield] + _root['defenseHead' + kiniHead] + _root['defenseBody' + kiniBody];
magicDefenseAkhir = _root['xMagicDefense' + siapaPunya] + _root['magicDefenseWeapon' + kiniWeapon] + _root['magicDefenseShield' + kiniShield] + _root['magicDefenseHead' + kiniHead] + _root['magicDefenseBody' + kiniBody];
evadeAkhir = _root['xEvade' + siapaPunya] + _root['evadeWeapon' + kiniWeapon] + _root['evadeShield' + kiniShield] + _root['evadeHead' + kiniHead] + _root['evadeBody' + kiniBody];
accuracyAkhir = _root['xAccuracy' + siapaPunya] + _root['accuracyWeapon' + kiniWeapon] + _root['accuracyShield' + kiniShield] + _root['accuracyHead' + kiniHead] + _root['accuracyBody' + kiniBody];
luckAkhir = _root['xLuck' + siapaPunya] + _root['luckWeapon' + kiniWeapon] + _root['luckShield' + kiniShield] + _root['luckHead' + kiniHead] + _root['luckBody' + kiniBody];
}
}
}
if (strengthAkhir > strengthAwal) {
myColor = new Color(strength_mc);
myColor2 = new Color(strength2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah1.gotoAndStop(2);
} else {
if (strengthAkhir < strengthAwal) {
myColor = new Color(strength_mc);
myColor2 = new Color(strength2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah1.gotoAndStop(3);
} else {
myColor = new Color(strength_mc);
myColor2 = new Color(strength2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah1.gotoAndStop(1);
}
}
if (vitalityAkhir > vitalityAwal) {
myColor = new Color(vitality_mc);
myColor2 = new Color(vitality2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah2.gotoAndStop(2);
} else {
if (vitalityAkhir < vitalityAwal) {
myColor = new Color(vitality_mc);
myColor2 = new Color(vitality2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah2.gotoAndStop(3);
} else {
myColor = new Color(vitality_mc);
myColor2 = new Color(vitality2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah2.gotoAndStop(1);
}
}
if (speedAkhir > speedAwal) {
myColor = new Color(speed_mc);
myColor2 = new Color(speed2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah3.gotoAndStop(2);
} else {
if (speedAkhir < speedAwal) {
myColor = new Color(speed_mc);
myColor2 = new Color(speed2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah3.gotoAndStop(3);
} else {
myColor = new Color(speed_mc);
myColor2 = new Color(speed2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah3.gotoAndStop(1);
}
}
if (tranceSpeedAkhir > tranceSpeedAwal) {
myColor = new Color(tranceSpeed_mc);
myColor2 = new Color(tranceSpeed2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah4.gotoAndStop(2);
} else {
if (tranceSpeedAkhir < tranceSpeedAwal) {
myColor = new Color(tranceSpeed_mc);
myColor2 = new Color(tranceSpeed2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah4.gotoAndStop(3);
} else {
myColor = new Color(tranceSpeed_mc);
myColor2 = new Color(tranceSpeed2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah4.gotoAndStop(1);
}
}
if (attackAkhir > attackAwal) {
myColor = new Color(attack_mc);
myColor2 = new Color(attack2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah5.gotoAndStop(2);
} else {
if (attackAkhir < attackAwal) {
myColor = new Color(attack_mc);
myColor2 = new Color(attack2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah5.gotoAndStop(3);
} else {
myColor = new Color(attack_mc);
myColor2 = new Color(attack2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah5.gotoAndStop(1);
}
}
if (magicAttackAkhir > magicAttackAwal) {
myColor = new Color(magic_mc);
myColor2 = new Color(magic2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah6.gotoAndStop(2);
} else {
if (magicAttackAkhir < magicAttackAwal) {
myColor = new Color(magic_mc);
myColor2 = new Color(magic2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah6.gotoAndStop(3);
} else {
myColor = new Color(magic_mc);
myColor2 = new Color(magic2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah6.gotoAndStop(1);
}
}
if (defenseAkhir > defenseAwal) {
myColor = new Color(defense_mc);
myColor2 = new Color(defense2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah7.gotoAndStop(2);
} else {
if (defenseAkhir < defenseAwal) {
myColor = new Color(defense_mc);
myColor2 = new Color(defense2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah7.gotoAndStop(3);
} else {
myColor = new Color(defense_mc);
myColor2 = new Color(defense2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah7.gotoAndStop(1);
}
}
if (magicDefenseAkhir > magicDefenseAwal) {
myColor = new Color(magicDefense_mc);
myColor2 = new Color(magicDefense2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah8.gotoAndStop(2);
} else {
if (magicDefenseAkhir < magicDefenseAwal) {
myColor = new Color(magicDefense_mc);
myColor2 = new Color(magicDefense2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah8.gotoAndStop(3);
} else {
myColor = new Color(magicDefense_mc);
myColor2 = new Color(magicDefense2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah8.gotoAndStop(1);
}
}
if (evadeAkhir > evadeAwal) {
myColor = new Color(evade_mc);
myColor2 = new Color(evade2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah9.gotoAndStop(2);
} else {
if (evadeAkhir < evadeAwal) {
myColor = new Color(evade_mc);
myColor2 = new Color(evade2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah9.gotoAndStop(3);
} else {
myColor = new Color(evade_mc);
myColor2 = new Color(evade2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah9.gotoAndStop(1);
}
}
if (accuracyAkhir > accuracyAwal) {
myColor = new Color(accuracy_mc);
myColor2 = new Color(accuracy2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah10.gotoAndStop(2);
} else {
if (accuracyAkhir < accuracyAwal) {
myColor = new Color(accuracy_mc);
myColor2 = new Color(accuracy2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah10.gotoAndStop(3);
} else {
myColor = new Color(accuracy_mc);
myColor2 = new Color(accuracy2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah10.gotoAndStop(1);
}
}
if (luckAkhir > luckAwal) {
myColor = new Color(luck_mc);
myColor2 = new Color(luck2_mc);
myColor.setRGB(39168);
myColor2.setRGB(39168);
panah11.gotoAndStop(2);
} else {
if (luckAkhir < luckAwal) {
myColor = new Color(luck_mc);
myColor2 = new Color(luck2_mc);
myColor.setRGB(16711680);
myColor2.setRGB(16711680);
panah11.gotoAndStop(3);
} else {
myColor = new Color(luck_mc);
myColor2 = new Color(luck2_mc);
myColor.setRGB(0);
myColor2.setRGB(0);
panah11.gotoAndStop(1);
}
}
}
}
frame 1 {
function simpanData(indi) {
Cookies = SharedObject.getLocal(dataBaseMonster + indi);
zi = 1;
while (zi <= simpanSemua.length) {
Cookies.data['monsterSquadData' + zi] = eval(simpanSemua[zi]);
++zi;
}
Cookies.flush();
}
function loadData(indi) {
Cookies = SharedObject.getLocal(dataBaseMonster + indi);
zi = 1;
while (zi <= simpanSemua.length) {
_root[simpanSemua[zi]] = Cookies.data['monsterSquadData' + zi];
++zi;
}
Cookies.flush();
}
function initData() {
posisiKini = 1;
uring = 2500;
timeKini = 0;
detikKini = 0;
menitKini = 0;
jamKini = 0;
battleKini = 0;
sudahKeBar3 = false;
sudahKeLab38 = false;
sudahLanjutGame = false;
sudahLanjutGame2 = false;
party1 = 1;
party2 = 2;
party3 = 0;
jumlahKarakterParty = 2;
sudahKetemu1 = true;
sudahKetemu2 = true;
sudahKetemu3 = false;
sudahKetemu4 = false;
sudahKetemu5 = false;
sudahKetemu6 = false;
posKotak1 = 2;
posKotak2 = 2;
posKotak3 = 2;
posKotak4 = 2;
posKotak5 = 2;
posKotak6 = 2;
command11 = 1;
command12 = 7;
command13 = 3;
command14 = 4;
command21 = 1;
command22 = 9;
command23 = 3;
command24 = 4;
command31 = 1;
command32 = 8;
command33 = 3;
command34 = 4;
command41 = 1;
command42 = 6;
command43 = 3;
command44 = 4;
command51 = 1;
command52 = 12;
command53 = 3;
command54 = 4;
command61 = 1;
command62 = 10;
command63 = 3;
command64 = 4;
punyaCommand3 = 1;
punyaCommand4 = 1;
punyaCommand5 = 0;
punyaCommand6 = 0;
punyaCommand7 = 0;
punyaCommand8 = 0;
punyaCommand9 = 0;
punyaCommand10 = 0;
punyaCommand11 = 0;
punyaCommand12 = 0;
status11 = '';
status12 = '';
status13 = '';
status21 = '';
status22 = '';
status23 = '';
status31 = '';
status32 = '';
status33 = '';
status41 = '';
status42 = '';
status43 = '';
status51 = '';
status52 = '';
status53 = '';
status61 = '';
status62 = '';
status63 = '';
namaKarakter1 = 'Wolgenus';
namaKarakter2 = 'Eaglue';
namaKarakter3 = 'Rhineo';
namaKarakter4 = 'Crocodua';
namaKarakter5 = '??????';
namaKarakter6 = 'Ratuest';
defaultNama1 = 'Wolgenus';
defaultNama2 = 'Eaglue';
defaultNama3 = 'Rhineo';
defaultNama4 = 'Crocodua';
defaultNama5 = 'Lamberogi';
defaultNama6 = 'Ratuest';
namaJob1 = 'Thief';
namaJob2 = 'Warrior';
namaJob3 = 'Hunter';
namaJob4 = 'Guard';
namaJob5 = 'Troops';
namaJob6 = 'Scientist';
weaponPasang1 = 1;
weaponPasang2 = 8;
weaponPasang3 = 15;
weaponPasang4 = 21;
weaponPasang5 = 27;
weaponPasang6 = 33;
shieldPasang1 = 0;
shieldPasang2 = 0;
shieldPasang3 = 11;
shieldPasang4 = 16;
shieldPasang5 = 21;
shieldPasang6 = 26;
headPasang1 = 2;
headPasang2 = 1;
headPasang3 = 4;
headPasang4 = 5;
headPasang5 = 7;
headPasang6 = 9;
bodyPasang1 = 0;
bodyPasang2 = 0;
bodyPasang3 = 0;
bodyPasang4 = 0;
bodyPasang5 = 0;
bodyPasang6 = 0;
fineryPasang11 = 0;
fineryPasang12 = 0;
fineryPasang13 = 0;
fineryPasang14 = 0;
fineryPasang21 = 0;
fineryPasang22 = 0;
fineryPasang23 = 0;
fineryPasang24 = 0;
fineryPasang31 = 0;
fineryPasang32 = 0;
fineryPasang33 = 0;
fineryPasang34 = 0;
fineryPasang41 = 0;
fineryPasang42 = 0;
fineryPasang43 = 0;
fineryPasang44 = 0;
fineryPasang51 = 0;
fineryPasang52 = 0;
fineryPasang53 = 0;
fineryPasang54 = 0;
fineryPasang61 = 0;
fineryPasang62 = 0;
fineryPasang63 = 0;
fineryPasang64 = 0;
spellPasang11 = 1;
spellPasang12 = 0;
spellPasang13 = 0;
spellPasang14 = 0;
spellPasang15 = 0;
spellPasang16 = 0;
spellPasang17 = 0;
spellPasang18 = 0;
spellPasang21 = 4;
spellPasang22 = 10;
spellPasang23 = 0;
spellPasang24 = 0;
spellPasang25 = 0;
spellPasang26 = 0;
spellPasang27 = 0;
spellPasang28 = 0;
spellPasang31 = 1;
spellPasang32 = 4;
spellPasang33 = 7;
spellPasang34 = 0;
spellPasang35 = 0;
spellPasang36 = 0;
spellPasang37 = 0;
spellPasang38 = 0;
spellPasang41 = 0;
spellPasang42 = 0;
spellPasang43 = 0;
spellPasang44 = 0;
spellPasang45 = 0;
spellPasang46 = 0;
spellPasang47 = 0;
spellPasang48 = 0;
spellPasang51 = 0;
spellPasang52 = 0;
spellPasang53 = 0;
spellPasang54 = 0;
spellPasang55 = 0;
spellPasang56 = 0;
spellPasang57 = 0;
spellPasang58 = 0;
spellPasang61 = 0;
spellPasang62 = 0;
spellPasang63 = 0;
spellPasang64 = 0;
spellPasang65 = 0;
spellPasang66 = 0;
spellPasang67 = 0;
spellPasang68 = 0;
servantPasang1 = 0;
servantPasang2 = 0;
servantPasang3 = 0;
servantPasang4 = 0;
servantPasang5 = 0;
servantPasang6 = 0;
fierceName11 = 'Blasting Blade';
fierceName12 = 'Vigorous Arm';
fierceName13 = 'Barrage Swords';
fierceLevel11 = 1;
fierceLevel12 = 1;
fierceLevel13 = 1;
fierceName21 = 'Giant Axe';
fierceName22 = 'Dangerous Turn';
fierceName23 = 'Mega Blow';
fierceLevel21 = 1;
fierceLevel22 = 1;
fierceLevel23 = 1;
fierceName31 = 'Select Ammo';
fierceName32 = 'Bow of Death';
fierceName33 = 'Arrow Rain';
fierceLevel31 = 1;
fierceLevel32 = 1;
fierceLevel33 = 1;
fierceName41 = 'Healing Stick';
fierceName42 = 'Magic Recover';
fierceName43 = 'Mega Shelter';
fierceLevel41 = 1;
fierceLevel42 = 1;
fierceLevel43 = 1;
fierceName51 = 'Select Ammo';
fierceName52 = 'Golden Gun';
fierceName53 = 'Auto Series';
fierceLevel51 = 1;
fierceLevel52 = 1;
fierceLevel53 = 1;
fierceName61 = 'Missile Strike';
fierceName62 = 'Electric Shock';
fierceName63 = 'Bad Laser';
fierceLevel61 = 1;
fierceLevel62 = 1;
fierceLevel63 = 1;
xLevel1 = 3;
xLevel2 = 4;
xLevel3 = 6;
xLevel4 = 14;
xLevel5 = 19;
xLevel6 = 25;
servantLevel1 = 0;
servantLevel2 = 0;
servantLevel3 = 0;
servantLevel4 = 0;
servantLevel5 = 0;
servantLevel6 = 0;
servantLevel7 = 0;
servantLevel8 = 0;
servantLevel9 = 0;
servantLevel10 = 0;
xLevelUpServant1 = 1000;
xLevelUpServant2 = 1500;
xLevelUpServant3 = 2000;
xLevelUpServant4 = 2500;
xLevelUpServant5 = 3000;
xLevelUpServant6 = 3500;
xLevelUpServant7 = 4000;
xLevelUpServant8 = 4500;
xLevelUpServant9 = 5000;
xLevelUpServant10 = 5500;
tambahanHP1 = 0;
tambahanHP2 = 0;
tambahanHP3 = 0;
tambahanHP4 = 0;
tambahanHP5 = 0;
tambahanHP6 = 0;
tambahanMP1 = 0;
tambahanMP2 = 0;
tambahanMP3 = 0;
tambahanMP4 = 0;
tambahanMP5 = 0;
tambahanMP6 = 0;
tambahanHPFinery1 = 0;
tambahanHPFinery2 = 0;
tambahanHPFinery3 = 0;
tambahanHPFinery4 = 0;
tambahanHPFinery5 = 0;
tambahanHPFinery6 = 0;
xHP1 = 550 * xLevel1 + tambahanHP1;
xHP2 = 600 * xLevel2 + tambahanHP2;
xHP3 = 525 * xLevel3 + tambahanHP3;
xHP4 = 575 * xLevel4 + tambahanHP4;
xHP5 = 500 * xLevel5 + tambahanHP5;
xHP6 = 475 * xLevel6 + tambahanHP6;
xKiniHP1 = 550 * xLevel1;
xKiniHP2 = 600 * xLevel2;
xKiniHP3 = 525 * xLevel3;
xKiniHP4 = 575 * xLevel4;
xKiniHP5 = 500 * xLevel5;
xKiniHP6 = 475 * xLevel6;
xMP1 = 90 * xLevel1 + tambahanMP1;
xMP2 = 110 * xLevel2 + tambahanMP2;
xMP3 = 70 * xLevel3 + tambahanMP3;
xMP4 = 100 * xLevel4 + tambahanMP4;
xMP5 = 60 * xLevel5 + tambahanMP5;
xMP6 = 50 * xLevel6 + tambahanMP6;
xKiniMP1 = 90 * xLevel1;
xKiniMP2 = 110 * xLevel2;
xKiniMP3 = 70 * xLevel3;
xKiniMP4 = 100 * xLevel4;
xKiniMP5 = 60 * xLevel5;
xKiniMP6 = 50 * xLevel6;
xLevelUp1 = 900 * xLevel1;
xLevelUp2 = 1000 * xLevel2;
xLevelUp3 = 950 * xLevel3;
xLevelUp4 = 1200 * xLevel4;
xLevelUp5 = 1150 * xLevel5;
xLevelUp6 = 1100 * xLevel6;
xStrength1 = 17 + xLevel1;
xStrength2 = 19 + xLevel2;
xStrength3 = 18 + xLevel3;
xStrength4 = 13 + xLevel4;
xStrength5 = 14 + xLevel5;
xStrength6 = 12 + xLevel6;
xVitality1 = 16 + xLevel1;
xVitality2 = 20 + xLevel2;
xVitality3 = 17 + xLevel3;
xVitality4 = 25 + xLevel4;
xVitality5 = 14 + xLevel5;
xVitality6 = 13 + xLevel6;
xspeed1 = Math.ceil(16 + xLevel1 / 2);
xspeed2 = Math.ceil(23 + xLevel2 / 2);
xspeed3 = Math.ceil(15 + xLevel3 / 2);
xspeed4 = Math.ceil(14 + xLevel4 / 2);
xspeed5 = Math.ceil(18 + xLevel5 / 2);
xspeed6 = Math.ceil(12 + xLevel6 / 2);
xspeedTrance1 = Math.ceil(23 + xLevel1 / 2);
xspeedTrance2 = Math.ceil(27 + xLevel1 / 2);
xspeedTrance3 = Math.ceil(20 + xLevel1 / 2);
xspeedTrance4 = Math.ceil(18 + xLevel1 / 2);
xspeedTrance5 = Math.ceil(6 + xLevel1 / 2);
xspeedTrance6 = Math.ceil(8 + xLevel1 / 2);
xAttack1 = 17 + xLevel1;
xAttack2 = 21 + xLevel2;
xAttack3 = 20 + xLevel3;
xAttack4 = 18 + xLevel4;
xAttack5 = 19 + xLevel5;
xAttack6 = 17 + xLevel6;
xMagicAttack1 = 19 + xLevel1;
xMagicAttack2 = 21 + xLevel2;
xMagicAttack3 = 17 + xLevel3;
xMagicAttack4 = 18 + xLevel4;
xMagicAttack5 = 15 + xLevel5;
xMagicAttack6 = 14 + xLevel6;
xDefense1 = 19 + xLevel1;
xDefense2 = 21 + xLevel2;
xDefense3 = 18 + xLevel3;
xDefense4 = 27 + xLevel4;
xDefense5 = 16 + xLevel5;
xDefense6 = 15 + xLevel6;
xMagicDefense1 = 17 + xLevel1;
xMagicDefense2 = 21 + xLevel2;
xMagicDefense3 = 16 + xLevel3;
xMagicDefense4 = 20 + xLevel4;
xMagicDefense5 = 19 + xLevel5;
xMagicDefense6 = 20 + xLevel6;
xEvade1 = Math.ceil(9 + xLevel1 / 1.5);
xEvade2 = Math.ceil(5 + xLevel1 / 1.5);
xEvade3 = Math.ceil(6 + xLevel1 / 1.5);
xEvade4 = Math.ceil(4 + xLevel1 / 1.5);
xEvade5 = Math.ceil(10 + xLevel1 / 1.5);
xEvade6 = Math.ceil(12 + xLevel1 / 1.5);
xAccuracy1 = Math.ceil(8 + xLevel1 / 1.5);
xAccuracy2 = Math.ceil(7 + xLevel1 / 1.5);
xAccuracy3 = Math.ceil(9 + xLevel1 / 1.5);
xAccuracy4 = Math.ceil(10 + xLevel1 / 1.5);
xAccuracy5 = Math.ceil(12 + xLevel1 / 1.5);
xAccuracy6 = Math.ceil(11 + xLevel1 / 1.5);
xLuck1 = Math.ceil(9 + xLevel1 / 1.5);
xLuck2 = Math.ceil(4 + xLevel1 / 1.5);
xLuck3 = Math.ceil(8 + xLevel1 / 1.5);
xLuck4 = Math.ceil(7 + xLevel1 / 1.5);
xLuck5 = Math.ceil(5 + xLevel1 / 1.5);
xLuck6 = Math.ceil(6 + xLevel1 / 1.5);
itemPunya1 = 2;
itemPunya2 = 0;
itemPunya3 = 0;
itemPunya4 = 2;
itemPunya5 = 0;
itemPunya6 = 0;
itemPunya7 = 0;
itemPunya8 = 1;
itemPunya9 = 1;
itemPunya10 = 0;
itemPunya11 = 0;
itemPunya12 = 0;
itemPunya13 = 0;
itemPunya14 = 0;
itemPunya15 = 0;
itemPunya16 = 0;
itemPunya17 = 0;
itemPunya18 = 0;
itemPunya19 = 0;
itemPunya20 = 0;
itemPunya21 = 0;
itemPunya22 = 0;
itemPunya23 = 0;
itemPunya24 = 0;
itemPunya25 = 0;
itemPunya26 = 0;
itemPunya27 = 0;
itemPunya28 = 0;
itemPunya29 = 0;
itemPunya30 = 0;
itemPunya31 = 0;
itemPunya32 = 0;
itemPunya33 = 0;
itemPunya34 = 0;
itemPunya35 = 0;
itemPunya36 = 0;
itemPunya37 = 0;
itemPunya38 = 0;
itemPunya39 = 0;
itemPunya40 = 0;
itemPunya41 = 0;
itemPunya42 = 0;
itemPunya43 = 0;
itemPunya44 = 0;
itemPunya45 = 0;
itemPunya46 = 0;
itemPunya47 = 0;
itemPunya48 = 0;
itemPunya49 = 0;
itemPunya50 = 0;
itemPunya51 = 0;
itemPunya52 = 0;
itemPunya53 = 0;
itemPunya54 = 0;
itemPunya55 = 0;
itemPunya56 = 0;
itemPunya57 = 0;
itemPunya58 = 0;
itemPunya59 = 0;
itemPunya60 = 0;
itemPunya61 = 0;
itemPunya62 = 0;
itemPunya63 = 0;
itemPunya64 = 0;
itemPunya65 = 0;
itemPunya66 = 0;
itemPunya67 = 0;
itemPunya68 = 0;
itemPunya69 = 0;
itemPunya70 = 0;
itemPunya71 = 0;
itemPunya72 = 0;
itemPunya73 = 0;
itemPunya74 = 0;
itemPunya75 = 0;
itemPunya76 = 0;
itemPunya77 = 0;
itemPunya78 = 0;
itemPunya79 = 0;
itemPunya80 = 0;
itemPunya81 = 0;
itemPunya82 = 0;
itemPunya83 = 0;
spellPunya1 = 1;
spellPunya2 = 0;
spellPunya3 = 0;
spellPunya4 = 1;
spellPunya5 = 0;
spellPunya6 = 0;
spellPunya7 = 0;
spellPunya8 = 0;
spellPunya9 = 0;
spellPunya10 = 0;
spellPunya11 = 0;
spellPunya12 = 0;
spellPunya13 = 0;
spellPunya14 = 0;
spellPunya15 = 0;
spellPunya16 = 0;
spellPunya17 = 0;
spellPunya18 = 0;
spellPunya19 = 0;
spellPunya20 = 0;
spellPunya21 = 0;
spellPunya22 = 0;
spellPunya23 = 0;
spellPunya24 = 0;
spellPunya25 = 0;
spellPunya26 = 0;
spellPunya27 = 0;
spellPunya28 = 0;
spellPunya29 = 0;
spellPunya30 = 0;
spellPunya31 = 0;
spellPunya32 = 0;
spellPunya33 = 0;
spellPunya34 = 0;
weaponPunya1 = 0;
weaponPunya2 = 1;
weaponPunya3 = 0;
weaponPunya4 = 0;
weaponPunya5 = 0;
weaponPunya6 = 0;
weaponPunya7 = 0;
weaponPunya8 = 0;
weaponPunya9 = 1;
weaponPunya10 = 0;
weaponPunya11 = 0;
weaponPunya12 = 0;
weaponPunya13 = 0;
weaponPunya14 = 0;
weaponPunya15 = 0;
weaponPunya16 = 0;
weaponPunya17 = 0;
weaponPunya18 = 0;
weaponPunya19 = 0;
weaponPunya20 = 0;
weaponPunya21 = 0;
weaponPunya22 = 0;
weaponPunya23 = 0;
weaponPunya24 = 0;
weaponPunya25 = 0;
weaponPunya26 = 0;
weaponPunya27 = 0;
weaponPunya28 = 0;
weaponPunya29 = 0;
weaponPunya30 = 0;
weaponPunya31 = 0;
weaponPunya32 = 0;
weaponPunya33 = 0;
weaponPunya34 = 0;
weaponPunya35 = 0;
weaponPunya36 = 0;
weaponPunya37 = 0;
weaponPunya38 = 0;
weaponPunya39 = 0;
weaponPunya40 = 0;
weaponPunya41 = 0;
weaponPunya42 = 0;
weaponPunya43 = 0;
weaponPunya44 = 0;
shieldPunya1 = 0;
shieldPunya2 = 0;
shieldPunya3 = 0;
shieldPunya4 = 0;
shieldPunya5 = 0;
shieldPunya6 = 0;
shieldPunya7 = 0;
shieldPunya8 = 0;
shieldPunya9 = 0;
shieldPunya10 = 0;
shieldPunya11 = 0;
shieldPunya12 = 0;
shieldPunya13 = 0;
shieldPunya14 = 0;
shieldPunya15 = 0;
shieldPunya16 = 0;
shieldPunya17 = 0;
shieldPunya18 = 0;
shieldPunya19 = 0;
shieldPunya20 = 0;
shieldPunya21 = 0;
shieldPunya22 = 0;
shieldPunya23 = 0;
shieldPunya24 = 0;
shieldPunya25 = 0;
shieldPunya26 = 0;
shieldPunya27 = 0;
shieldPunya28 = 0;
shieldPunya29 = 0;
shieldPunya30 = 0;
shieldPunya31 = 0;
shieldPunya32 = 0;
shieldPunya33 = 0;
shieldPunya34 = 0;
shieldPunya35 = 0;
shieldPunya36 = 0;
armorPunya1 = 0;
armorPunya2 = 0;
armorPunya3 = 0;
armorPunya4 = 0;
armorPunya5 = 0;
armorPunya6 = 0;
armorPunya7 = 0;
armorPunya8 = 0;
armorPunya9 = 0;
armorPunya10 = 0;
armorPunya11 = 0;
armorPunya12 = 0;
armorPunya13 = 0;
armorPunya14 = 0;
armorPunya15 = 0;
armorPunya16 = 0;
armorPunya17 = 0;
armorPunya18 = 0;
armorPunya19 = 0;
armorPunya20 = 0;
armorPunya21 = 0;
armorPunya22 = 0;
armorPunya23 = 0;
armorPunya24 = 0;
armorPunya25 = 0;
armorPunya26 = 0;
armorPunya27 = 0;
armorPunya28 = 0;
armorPunya29 = 0;
armorPunya30 = 0;
armorPunya31 = 0;
armorPunya32 = 0;
armorPunya33 = 0;
armorPunya34 = 0;
armorPunya35 = 0;
armorPunya36 = 0;
armorPunya37 = 0;
armorPunya38 = 0;
armorPunya39 = 0;
armorPunya40 = 0;
fineryPunya1 = 0;
fineryPunya2 = 0;
fineryPunya3 = 0;
fineryPunya4 = 0;
fineryPunya5 = 0;
fineryPunya6 = 0;
fineryPunya7 = 0;
fineryPunya8 = 0;
fineryPunya9 = 0;
fineryPunya10 = 0;
fineryPunya11 = 0;
fineryPunya12 = 0;
fineryPunya13 = 0;
fineryPunya14 = 0;
fineryPunya15 = 0;
fineryPunya16 = 0;
fineryPunya17 = 0;
fineryPunya18 = 0;
fineryPunya19 = 0;
fineryPunya20 = 0;
fineryPunya21 = 0;
fineryPunya22 = 0;
fineryPunya23 = 0;
fineryPunya24 = 0;
fineryPunya25 = 0;
fineryPunya26 = 0;
fineryPunya27 = 0;
fineryPunya28 = 0;
fineryPunya29 = 0;
fineryPunya30 = 0;
fineryPunya31 = 0;
fineryPunya32 = 0;
fineryPunya33 = 0;
fineryPunya34 = 0;
fineryPunya35 = 0;
fineryPunya36 = 0;
fineryPunya37 = 0;
fineryPunya38 = 0;
fineryPunya39 = 0;
fineryPunya40 = 0;
persenFierce1 = 0;
persenFierce2 = 0;
persenFierce3 = 0;
persenFierce4 = 0;
persenFierce5 = 0;
persenFierce6 = 0;
pilihFierce1 = 1;
pilihFierce2 = 1;
pilihFierce3 = 1;
pilihFierce4 = 1;
pilihFierce5 = 1;
pilihFierce6 = 1;
namaServant1 = 'Hedgebrog';
namaServant2 = 'Combat Tank';
namaServant3 = 'Combat Copter';
namaServant4 = 'Aliegator';
namaServant5 = 'The Hunter';
namaServant6 = 'Geblaster';
namaServant7 = 'Magic Tank';
namaServant8 = 'Magic Copter';
namaServant9 = 'Mice Dice';
namaServant10 = 'Monbot';
defaultServant1 = 'Hedgebrog';
defaultServant2 = 'Combat Tank';
defaultServant3 = 'Combat Copter';
defaultServant4 = 'Aliegator';
defaultServant5 = 'The Hunter';
defaultServant6 = 'Geblaster';
defaultServant7 = 'Magic Tank';
defaultServant8 = 'Magic Copter';
defaultServant9 = 'Mice Dice';
defaultServant10 = 'Monbot';
dapatServantKe1 = false;
dapatServantKe2 = false;
dapatServantKe3 = false;
dapatServantKe4 = false;
dapatServantKe5 = false;
dapatServantKe6 = false;
dapatServantKe7 = false;
dapatServantKe8 = false;
dapatServantKe9 = false;
dapatServantKe10 = false;
sudahKlikCave10Box1 = false;
sudahKlikCave10Box2 = false;
sudahKlikCave10Box3 = false;
sudahKlikCave10Box4 = false;
sudahKlikCave10Box5 = false;
sudahKlikCave12Box1 = false;
sudahKlikCave12Box2 = false;
sudahKlikCave12Box3 = false;
sudahKlikCave13Box1 = false;
sudahKlikCave13Box2 = false;
sudahKlikCave13Box3 = false;
sudahKlikCave13Box4 = false;
sudahKlikCave13Box5 = false;
sudahKlikCave13Box6 = false;
sudahKlikCave13Box7 = false;
sudahKlikCave17Box1 = false;
sudahKlikCave17Box2 = false;
sudahKlikCave17Box3 = false;
sudahKlikCave24Box1 = false;
sudahKlikCave24Box2 = false;
sudahKlikCave24Box3 = false;
sudahKlikCave24Box4 = false;
sudahKlikCave24Box5 = false;
sudahKlikCave24Box6 = false;
sudahKlikCave24Box7 = false;
sudahKlikCave24Box8 = false;
sudahKlikCave24Box9 = false;
sudahKlikCave24Box10 = false;
sudahKlikCave24Box11 = false;
sudahKlikCave37Box1 = false;
sudahKlikCave37Box2 = false;
sudahKlikCave37Box3 = false;
sudahKlikCave37Box4 = false;
sudahKlikCave37Box5 = false;
sudahKlikCave37Box6 = false;
sudahKlikCave30Box1 = false;
sudahKlikCave30Box2 = false;
sudahKlikCave30Box3 = false;
sudahKlikCave30Box4 = false;
sudahKlikCave30Box5 = false;
sudahKlikCave30Box6 = false;
sudahKlikCave30Box7 = false;
sudahKlikCave30Box8 = false;
sudahKlikCave30Box9 = false;
sudahKlikCave30Box10 = false;
sudahKlikCave30Box11 = false;
sudahKlikCave30Box12 = false;
sudahKlikCave30Box13 = false;
sudahKlikCave30Box14 = false;
sudahKlikCave30Box15 = false;
sudahKlikCave30Box16 = false;
sudahKlikBox31 = false;
sudahKlikBox33 = false;
sudahKlikCave34Box1 = false;
sudahKlikCave34Box2 = false;
sudahKlikCave34Box3 = false;
sudahKlikCave39Box1 = false;
adaKarakter4 = false;
adaDidalamCave = false;
posisiCave = '';
frameKeCave = 1;
duniaBerubah = false;
adaTutorial1 = true;
adaTutorial2 = true;
adaTutorial3 = true;
adaTutorial4 = true;
adaTutorial5 = true;
adaTutorial6 = true;
adaTutorial7 = true;
adaTutorial8 = true;
adaTutorial9 = true;
tutorialAda = true;
musicKini1 = 0;
musicKini2 = 0;
sudahKlikArea = false;
sudahKlikBattle = false;
sudahKlikStatus = false;
}
function backMenu() {
myMusic.stop();
myMusic = new Sound(zmusic);
myMusic.attachSound('backMenu');
myMusic.start(musicKini1, 1);
myMusic.setVolume(volume1);
myMusic.onSoundComplete = backMenu;
musicKini1 = 0;
}
function backBattle1() {
myMusic.stop();
myMusic = new Sound(zmusic);
myMusic.attachSound('backBattle1');
myMusic.start(musicKini2, 1);
myMusic.setVolume(volume1);
myMusic.onSoundComplete = backBattle1;
musicKini2 = 0;
}
function backBattle2() {
myMusic.stop();
myMusic = new Sound(zmusic);
myMusic.attachSound('backBattle2');
myMusic.start(0, 1);
myMusic.setVolume(volume1);
myMusic.onSoundComplete = backBattle2;
}
function backPukul() {
mySound = new Sound(zsound);
mySound.attachSound('backPukul');
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backPukul2() {
mySound = new Sound(zsound);
mySound.attachSound('backPukul2');
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backMoney() {
mySound = new Sound(zsound);
mySound.attachSound('backMoney');
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backMoney() {
mySound = new Sound(zsound);
mySound.attachSound('backMoney');
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backKlik() {
mySound = new Sound(zsound);
mySound.attachSound('backKlik');
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backSpell() {
mySound = new Sound(zsound);
mySound.attachSound('backSpell');
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backSpell2() {
mySound = new Sound(zsound);
mySound.attachSound('backSpell2');
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backTerompet() {
mySound = new Sound(zsound);
mySound.attachSound('backTerompet');
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backGagal() {
mySound = new Sound(zsound);
mySound.attachSound('backGagal');
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backCompleted() {
mySound = new Sound(zsound);
mySound.attachSound('backCompleted');
mySound.start(0, 1);
mySound.setVolume(volume2);
}
stop();
fscommand('fullscreen', false);
fscommand('allowscale', true);
fscommand('showmenu', false);
Stage.showMenu = false;
persen = 'Loading';
this.onEnterFrame = function () {
persen = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
xpersen = persen + ' %';
if (persen >= 100) {
gotoAndStop('preloader');
delete this.onEnterFrame;
}
};
dataBaseMonster = 'monsterSquad_v1.7_';
simpanSemua = new Array('', 'dataSave', 'posisiKini', 'uring', 'timeKini', 'battleKini', 'sudahKeBar3', 'sudahLanjutGame', 'party1', 'party2', 'party3', 'jumlahKarakterParty', 'sudahKetemu1', 'sudahKetemu2', 'sudahKetemu3', 'sudahKetemu4', 'sudahKetemu5', 'sudahKetemu6', 'posKotak1', 'posKotak2', 'posKotak3', 'posKotak4', 'posKotak5', 'posKotak6', 'command11', 'command12', 'command13', 'command14', 'command21', 'command22', 'command23', 'command24', 'command31', 'command32', 'command33', 'command34', 'command41', 'command42', 'command43', 'command44', 'command51', 'command52', 'command53', 'command54', 'command61', 'command62', 'command63', 'command64', 'punyaCommand3', 'punyaCommand4', 'punyaCommand5', 'punyaCommand6', 'punyaCommand7', 'punyaCommand8', 'punyaCommand9', 'punyaCommand10', 'punyaCommand11', 'punyaCommand12', 'status11', 'status12', 'status13', 'status21', 'status22', 'status23', 'status31', 'status32', 'status33', 'status41', 'status42', 'status43', 'status51', 'status52', 'status53', 'status61', 'status62', 'status63', 'namaKarakter1', 'namaKarakter2', 'namaKarakter3', 'namaKarakter4', 'namaKarakter5', 'namaKarakter6', 'defaultNama1', 'defaultNama2', 'defaultNama3', 'defaultNama4', 'defaultNama5', 'defaultNama6', 'namaJob1', 'namaJob2', 'namaJob3', 'namaJob4', 'namaJob5', 'namaJob6', 'weaponPasang1', 'weaponPasang2', 'weaponPasang3', 'weaponPasang4', 'weaponPasang5', 'weaponPasang6', 'shieldPasang1', 'shieldPasang2', 'shieldPasang3', 'shieldPasang4', 'shieldPasang5', 'shieldPasang6', 'headPasang1', 'headPasang2', 'headPasang3', 'headPasang4', 'headPasang5', 'headPasang6', 'bodyPasang1', 'bodyPasang2', 'bodyPasang3', 'bodyPasang4', 'bodyPasang5', 'bodyPasang6', 'fineryPasang11', 'fineryPasang12', 'fineryPasang13', 'fineryPasang14', 'fineryPasang21', 'fineryPasang22', 'fineryPasang23', 'fineryPasang24', 'fineryPasang31', 'fineryPasang32', 'fineryPasang33', 'fineryPasang34', 'fineryPasang41', 'fineryPasang42', 'fineryPasang43', 'fineryPasang44', 'fineryPasang51', 'fineryPasang52', 'fineryPasang53', 'fineryPasang54', 'fineryPasang61', 'fineryPasang62', 'fineryPasang63', 'fineryPasang64', 'spellPasang11', 'spellPasang12', 'spellPasang13', 'spellPasang14', 'spellPasang15', 'spellPasang16', 'spellPasang17', 'spellPasang18', 'spellPasang21', 'spellPasang22', 'spellPasang23', 'spellPasang24', 'spellPasang25', 'spellPasang26', 'spellPasang27', 'spellPasang28', 'spellPasang31', 'spellPasang32', 'spellPasang33', 'spellPasang34', 'spellPasang35', 'spellPasang36', 'spellPasang37', 'spellPasang38', 'spellPasang41', 'spellPasang42', 'spellPasang43', 'spellPasang44', 'spellPasang45', 'spellPasang46', 'spellPasang47', 'spellPasang48', 'spellPasang51', 'spellPasang52', 'spellPasang53', 'spellPasang54', 'spellPasang55', 'spellPasang56', 'spellPasang57', 'spellPasang58', 'spellPasang61', 'spellPasang62', 'spellPasang63', 'spellPasang64', 'spellPasang65', 'spellPasang66', 'spellPasang67', 'spellPasang68', 'servantPasang1', 'servantPasang2', 'servantPasang3', 'servantPasang4', 'servantPasang5', 'servantPasang6', 'xLevelUpServant1', 'xLevelUpServant2', 'xLevelUpServant3', 'xLevelUpServant4', 'xLevelUpServant5', 'xLevelUpServant6', 'xLevelUpServant7', 'xLevelUpServant8', 'xLevelUpServant9', 'xLevelUpServant10', 'fierceName11', 'fierceName12', 'fierceName13', 'fierceLevel3', 'fierceLevel11', 'fierceLevel12', 'fierceLevel13', 'fierceName21', 'fierceName22', 'fierceName23', 'fierceLevel23', 'fierceLevel21', 'fierceLevel22', 'fierceName31', 'fierceName32', 'fierceName33', 'fierceLevel33', 'fierceLevel31', 'fierceLevel32', 'fierceName41', 'fierceName42', 'fierceName43', 'fierceLevel43', 'fierceLevel41', 'fierceLevel42', 'fierceName51', 'fierceName52', 'fierceName53', 'fierceLevel53', 'fierceLevel51', 'fierceLevel52', 'fierceName61', 'fierceName62', 'fierceName63', 'fierceLevel63', 'fierceLevel61', 'fierceLevel62', 'xLevel1', 'xLevel2', 'xLevel3', 'xLevel4', 'xLevel5', 'xLevel6', 'servantLevel1', 'servantLevel2', 'servantLevel3', 'servantLevel4', 'servantLevel5', 'servantLevel6', 'servantLevel7', 'servantLevel8', 'servantLevel9', 'servantLevel10', 'tambahanHP1', 'tambahanHP2', 'tambahanHP3', 'tambahanHP4', 'tambahanHP5', 'tambahanHP6', 'tambahanMP1', 'tambahanMP2', 'tambahanMP3', 'tambahanMP4', 'tambahanMP5', 'tambahanMP6', 'tambahanHPFinery1', 'tambahanHPFinery2', 'tambahanHPFinery3', 'tambahanHPFinery4', 'tambahanHPFinery5', 'tambahanHPFinery6', 'xHP1', 'xHP2', 'xHP3', 'xHP4', 'xHP5', 'xHP6', 'xKiniHP1', 'xKiniHP2', 'xKiniHP3', 'xKiniHP4', 'xKiniHP5', 'xKiniHP6', 'xMP1', 'xMP2', 'xMP3', 'xMP4', 'xMP5', 'xMP6', 'xKiniMP1', 'xKiniMP2', 'xKiniMP3', 'xKiniMP4', 'xKiniMP5', 'xKiniMP6', 'xLevelUp1', 'xLevelUp2', 'xLevelUp3', 'xLevelUp4', 'xLevelUp5', 'xLevelUp6', 'xStrength1', 'xStrength2', 'xStrength3', 'xStrength4', 'xStrength5', 'xStrength6', 'xVitality1', 'xVitality2', 'xVitality3', 'xVitality4', 'xVitality5', 'xVitality6', 'xspeed1', 'xspeed2', 'xspeed3', 'xspeed4', 'xspeed5', 'xspeed6', 'xspeedTrance1', 'xspeedTrance2', 'xspeedTrance3', 'xspeedTrance4', 'xspeedTrance5', 'xspeedTrance6', 'xAttack1', 'xAttack2', 'xAttack3', 'xAttack4', 'xAttack5', 'xAttack6', 'xMagicAttack1', 'xMagicAttack2', 'xMagicAttack3', 'xMagicAttack4', 'xMagicAttack5', 'xMagicAttack6', 'xDefense1', 'xDefense2', 'xDefense3', 'xDefense4', 'xDefense5', 'xDefense6', 'xMagicDefense1', 'xMagicDefense2', 'xMagicDefense3', 'xMagicDefense4', 'xMagicDefense5', 'xMagicDefense6', 'xEvade1', 'xEvade2', 'xEvade3', 'xEvade4', 'xEvade5', 'xEvade6', 'xAccuracy1', 'xAccuracy2', 'xAccuracy3', 'xAccuracy4', 'xAccuracy5', 'xAccuracy6', 'xLuck1', 'xLuck2', 'xLuck3', 'xLuck4', 'xLuck5', 'xLuck6', 'itemPunya1', 'itemPunya2', 'itemPunya3', 'itemPunya4', 'itemPunya5', 'itemPunya6', 'itemPunya7', 'itemPunya8', 'itemPunya9', 'itemPunya10', 'itemPunya11', 'itemPunya12', 'itemPunya13', 'itemPunya14', 'itemPunya15', 'itemPunya16', 'itemPunya17', 'itemPunya18', 'itemPunya19', 'itemPunya20', 'itemPunya21', 'itemPunya22', 'itemPunya23', 'itemPunya24', 'itemPunya25', 'itemPunya26', 'itemPunya27', 'itemPunya28', 'itemPunya29', 'itemPunya30', 'itemPunya31', 'itemPunya32', 'itemPunya33', 'itemPunya34', 'itemPunya35', 'itemPunya36', 'itemPunya37', 'itemPunya38', 'itemPunya39', 'itemPunya40', 'itemPunya41', 'itemPunya42', 'itemPunya43', 'itemPunya44', 'itemPunya45', 'itemPunya46', 'itemPunya47', 'itemPunya48', 'itemPunya49', 'itemPunya50', 'itemPunya51', 'itemPunya52', 'itemPunya53', 'itemPunya54', 'itemPunya55', 'itemPunya56', 'itemPunya57', 'itemPunya58', 'itemPunya59', 'itemPunya60', 'itemPunya61', 'itemPunya62', 'itemPunya63', 'itemPunya64', 'itemPunya65', 'itemPunya66', 'itemPunya67', 'itemPunya68', 'itemPunya69', 'itemPunya70', 'itemPunya71', 'itemPunya72', 'itemPunya73', 'itemPunya74', 'itemPunya75', 'spellPunya1', 'spellPunya2', 'spellPunya3', 'spellPunya4', 'spellPunya5', 'spellPunya6', 'spellPunya7', 'spellPunya8', 'spellPunya9', 'spellPunya10', 'spellPunya11', 'spellPunya12', 'spellPunya13', 'spellPunya14', 'spellPunya15', 'spellPunya16', 'spellPunya17', 'spellPunya18', 'spellPunya19', 'spellPunya20', 'spellPunya21', 'spellPunya22', 'spellPunya23', 'spellPunya24', 'spellPunya25', 'spellPunya26', 'spellPunya27', 'spellPunya28', 'spellPunya29', 'spellPunya30', 'spellPunya31', 'spellPunya32', 'spellPunya33', 'weaponPunya1', 'weaponPunya2', 'weaponPunya3', 'weaponPunya4', 'weaponPunya5', 'weaponPunya6', 'weaponPunya7', 'weaponPunya8', 'weaponPunya9', 'weaponPunya10', 'weaponPunya11', 'weaponPunya12', 'weaponPunya13', 'weaponPunya14', 'weaponPunya15', 'weaponPunya16', 'weaponPunya17', 'weaponPunya18', 'weaponPunya19', 'weaponPunya20', 'weaponPunya21', 'weaponPunya22', 'weaponPunya23', 'weaponPunya24', 'weaponPunya25', 'weaponPunya26', 'weaponPunya27', 'weaponPunya28', 'weaponPunya29', 'weaponPunya30', 'weaponPunya31', 'weaponPunya32', 'weaponPunya33', 'weaponPunya34', 'weaponPunya35', 'weaponPunya36', 'weaponPunya37', 'weaponPunya38', 'weaponPunya39', 'weaponPunya40', 'weaponPunya41', 'weaponPunya42', 'weaponPunya43', 'weaponPunya44', 'shieldPunya1', 'shieldPunya2', 'shieldPunya3', 'shieldPunya4', 'shieldPunya5', 'shieldPunya6', 'shieldPunya7', 'shieldPunya8', 'shieldPunya9', 'shieldPunya10', 'shieldPunya11', 'shieldPunya12', 'shieldPunya13', 'shieldPunya14', 'shieldPunya15', 'shieldPunya16', 'shieldPunya17', 'shieldPunya18', 'shieldPunya19', 'shieldPunya20', 'shieldPunya21', 'shieldPunya22', 'shieldPunya23', 'shieldPunya24', 'shieldPunya25', 'shieldPunya26', 'shieldPunya27', 'shieldPunya28', 'shieldPunya29', 'shieldPunya30', 'shieldPunya31', 'shieldPunya32', 'shieldPunya33', 'shieldPunya34', 'shieldPunya35', 'shieldPunya36', 'armorPunya1', 'armorPunya2', 'armorPunya3', 'armorPunya4', 'armorPunya5', 'armorPunya6', 'armorPunya7', 'armorPunya8', 'armorPunya9', 'armorPunya10', 'armorPunya11', 'armorPunya12', 'armorPunya13', 'armorPunya14', 'armorPunya15', 'armorPunya16', 'armorPunya17', 'armorPunya18', 'armorPunya19', 'armorPunya20', 'armorPunya21', 'armorPunya22', 'armorPunya23', 'armorPunya24', 'armorPunya25', 'armorPunya26', 'armorPunya27', 'armorPunya28', 'armorPunya29', 'armorPunya30', 'armorPunya31', 'armorPunya32', 'armorPunya33', 'armorPunya34', 'armorPunya35', 'armorPunya36', 'armorPunya37', 'armorPunya38', 'armorPunya39', 'armorPunya40', 'fineryPunya1', 'fineryPunya2', 'fineryPunya3', 'fineryPunya4', 'fineryPunya5', 'fineryPunya6', 'fineryPunya7', 'fineryPunya8', 'fineryPunya9', 'fineryPunya10', 'fineryPunya11', 'fineryPunya12', 'fineryPunya13', 'fineryPunya14', 'fineryPunya15', 'fineryPunya16', 'fineryPunya17', 'fineryPunya18', 'fineryPunya19', 'fineryPunya20', 'fineryPunya21', 'fineryPunya22', 'fineryPunya23', 'fineryPunya24', 'fineryPunya25', 'fineryPunya26', 'fineryPunya27', 'fineryPunya28', 'fineryPunya29', 'fineryPunya30', 'fineryPunya31', 'fineryPunya32', 'fineryPunya33', 'fineryPunya34', 'fineryPunya35', 'fineryPunya36', 'fineryPunya37', 'fineryPunya38', 'fineryPunya39', 'fineryPunya40', 'sudahMenangBenteng2', 'sudahMenangBenteng4', 'sudahMenangBenteng5', 'sudahMenangBenteng6', 'sudahMenangBenteng8', 'sudahMenangBenteng16', 'sudahMenangBenteng20', 'sudahMenangBenteng22', 'sudahMenangBenteng23', 'sudahMenangBenteng25', 'sudahMenangBenteng27', 'sudahMenangBenteng28', 'sudahKlikBox31', 'persenFierce1', 'persenFierce2', 'persenFierce3', 'persenFierce4', 'persenFierce5', 'persenFierce6', 'pilihFierce1', 'pilihFierce2', 'pilihFierce3', 'pilihFierce4', 'pilihFierce5', 'pilihFierce6', 'adaKarakter4', 'sudahKlikCave10Box1', 'sudahKlikCave10Box2', 'sudahKlikCave10Box3', 'sudahKlikCave10Box4', 'sudahKlikCave10Box5', 'adaDidalamCave', 'posisiCave', 'frameKeCave', 'sudahKlikCave13Box1', 'sudahKlikCave13Box2', 'sudahKlikCave13Box3', 'sudahKlikCave13Box4', 'sudahKlikCave13Box5', 'sudahKlikCave13Box6', 'sudahKlikCave13Box7', 'dapatServantKe1', 'dapatServantKe2', 'dapatServantKe3', 'dapatServantKe4', 'dapatServantKe5', 'dapatServantKe6', 'dapatServantKe7', 'dapatServantKe8', 'dapatServantKe9', 'dapatServantKe10', 'namaServant1', 'namaServant2', 'namaServant3', 'namaServant4', 'namaServant5', 'namaServant6', 'namaServant7', 'namaServant8', 'namaServant9', 'namaServant10', 'sudahMenangBenteng15', 'duniaBerubah', 'sudahKlikCave12Box1', 'sudahKlikCave12Box2', 'sudahKlikCave12Box3', 'sudahKlikCave17Box1', 'sudahKlikCave17Box2', 'sudahKlikCave17Box3', 'sudahKlikCave24Box1', 'sudahKlikCave24Box2', 'sudahKlikCave24Box3', 'sudahKlikCave24Box4', 'sudahKlikCave24Box5', 'sudahKlikCave24Box6', 'sudahKlikCave24Box7', 'sudahKlikCave24Box8', 'sudahKlikCave24Box9', 'sudahKlikCave24Box10', 'sudahKlikCave24Box11', 'spellPunya34', 'sudahMenangBenteng36', 'sudahKlikBox33', 'sudahMenangBenteng33', 'sudahKeLab38', 'itemPunya76', 'itemPunya77', 'itemPunya78', 'itemPunya79', 'itemPunya80', 'itemPunya81', 'itemPunya82', 'sudahMenangBenteng35', 'sudahKlikCave30Box1', 'sudahKlikCave30Box2', 'sudahKlikCave30Box3', 'sudahKlikCave30Box4', 'sudahKlikCave30Box5', 'sudahKlikCave30Box6', 'sudahKlikCave30Box7', 'sudahKlikCave30Box8', 'sudahKlikCave30Box9', 'sudahKlikCave30Box10', 'sudahKlikCave30Box11', 'sudahKlikCave30Box12', 'sudahKlikCave30Box13', 'sudahKlikCave30Box14', 'sudahKlikCave30Box15', 'sudahKlikCave30Box16', 'adaTutorial1', 'adaTutorial2', 'adaTutorial3', 'adaTutorial4', 'adaTutorial5', 'adaTutorial6', 'adaTutorial7', 'adaTutorial8', 'adaTutorial9', 'tutorialAda', 'detikKini', 'menitKini', 'jamKini', 'musicKini1', 'musicKini2', 'defaultServant1', 'defaultServant2', 'defaultServant3', 'defaultServant4', 'defaultServant5', 'defaultServant6', 'defaultServant7', 'defaultServant8', 'defaultServant9', 'defaultServant10', 'sudahKlikCave34Box1', 'sudahKlikCave34Box2', 'sudahKlikCave34Box3', 'sudahKlikCave37Box1', 'sudahKlikCave37Box2', 'sudahKlikCave37Box3', 'sudahKlikCave37Box4', 'sudahKlikCave37Box5', 'sudahKlikCave37Box6', 'sudahKlikArea', 'sudahKlikBattle', 'sudahKlikStatus', 'sudahLanjutGame2', 'sudahKlikCave39Box1', 'itemPunya83');
namaKota = new Array('', 'Iludia Village', 'Gerindros Base', 'Woles Village', 'Karta Base', 'Egaria Base', 'Gandaria Castle', 'Goda Village', 'Marada Base', 'Liraga Town', 'Lares Cave', 'Rageri Town', 'Cave of Death', 'Hedgebrog Cave', 'Mini Village', 'Hijacked Village', 'Grande Castle', 'Pamungkas Cave', 'Cursed Village', 'Aledria Town', 'Winde Castle', 'Bomba Village', 'Ajusia Base', 'Morande Base', 'Uring Cave', 'Lendria Base', 'Verdina Town', 'Dirado Castle', 'Zargaz Castle', 'Capsule Village', 'Dragia Cavern', 'Rahasia Village', 'Forbidden Forest', 'Mount Maribaya', 'King Dragon Cave', 'Ancient Forest', 'Rahasia Forest', 'Malung Cave', 'Forest Lab', 'Unknown Cave');
qualityGame = 1;
_quality = 'HIGH';
adaSuara = true;
zmusic = attachMovie('indi3', 'zmusic', 7);
zmusic._x = -500;
zmusic._y = -500;
zsound = attachMovie('indi3', 'zsound', 8);
zsound._x = -750;
zsound._y = -750;
volume1 = 100;
volume2 = 75;
i = 1;
while (i <= 4) {
loadData(i);
if (dataSave == undefined) {
dataSave = false;
initData();
simpanData(i);
}
++i;
}
if (volume1 != 0) {
sound_mc.gotoAndStop(1);
} else {
sound_mc.gotoAndStop(2);
}
sound_mc.onRelease = function () {
if (volume1 != 0) {
volume1 = 0;
volume2 = 0;
sound_mc.gotoAndStop(2);
} else {
volume1 = 100;
volume2 = 75;
sound_mc.gotoAndStop(1);
}
myMusic.setVolume(volume1);
mySound.setVolume(volume2);
};
}
movieClip 347 {
frame 1 {
stop();
}
}
movieClip 351 {
}
movieClip 354 {
frame 1 {
stop();
}
}
// unknown tag 88 length 61
movieClip 360 {
}
movieClip 363 {
}
movieClip 364 {
frame 1 {
this.onRelease = function () {
getURL('http://www.thegames8.com/', '_blank');
};
}
}
frame 20 {
stop();
enter_btn.onRelease = function () {
backKlik();
_urlStart = _url.indexOf('://') + 3;
_urlEnd = _url.indexOf('/', _urlStart);
domain = _url.substring(_urlStart, _urlEnd);
LastDot = domain.lastIndexOf('.') - 1;
domEnd = domain.lastIndexOf('.', LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
loadMovie('', adBox);
adBox._visible = false;
gotoAndStop(31);
};
}
frame 25 {
stop();
}
frame 26 {
prevFrame();
gotoAndStop(undefined);
undefined;
}
frame 31 {
play();
}
movieClip 397 {
}
movieClip 402 {
}
movieClip 405 {
}
movieClip 410 {
frame 90 {
gotoAndPlay(random(10) + 1);
}
}
movieClip 411 {
frame 90 {
stop();
}
}
movieClip 413 {
frame 1 {
this.onRelease = function () {
getURL('http://www.thegames8.com/tag/cartoon/', '_blank');
};
}
}
frame 305 {
gotoAndStop(306);
}
frame 306 {
function waktuMaju() {
++timeKini;
++detikKini;
if (detikKini >= 60) {
++menitKini;
detikKini = 0;
}
if (menitKini >= 60) {
++jamKini;
menitKini = 0;
}
xjam = jamKini;
if (menitKini <= 9) {
xmenit = '0' + menitKini;
} else {
xmenit = menitKini;
}
if (detikKini <= 9) {
xdetik = '0' + detikKini;
} else {
xdetik = detikKini;
}
xtimeKini = xjam + ':' + xmenit + ':' + xdetik;
}
stop();
clearInterval(idWaktu);
new_btn.onRelease = function () {
backKlik();
clearInterval(idWaktu);
initData();
pilihSemuaArea = false;
backMenu();
gotoAndStop(308);
};
credits_btn.onRelease = function () {
backKlik();
gotoAndStop('credits');
};
adaDataKah = false;
i = 1;
while (i <= 4) {
Cookies = SharedObject.getLocal(dataBaseMonster + i);
if (Cookies.data.monsterSquadData1 == true) {
adaDataKah = true;
}
++i;
}
if (adaDataKah == false) {
continue_btn._visible = false;
} else {
continue_btn._visible = true;
}
continue_btn.onRelease = function () {
backKlik();
clearInterval(idWaktu);
pilihSemuaArea = false;
pilihSaveLoad = 'load';
asalMula = 'mainmenu';
gotoAndStop('save status');
};
if (volume1 != 0) {
sound_mc.gotoAndStop(1);
} else {
sound_mc.gotoAndStop(2);
}
sound_mc.onRelease = function () {
if (volume1 != 0) {
volume1 = 0;
volume2 = 0;
sound_mc.gotoAndStop(2);
} else {
volume1 = 100;
volume2 = 75;
sound_mc.gotoAndStop(1);
}
myMusic.setVolume(volume1);
mySound.setVolume(volume2);
};
sudahMenangBenteng2 = 4;
sudahMenangBenteng4 = 5;
sudahMenangBenteng5 = 6;
sudahMenangBenteng6 = 1;
sudahMenangBenteng8 = 4;
sudahMenangBenteng15 = 5;
sudahMenangBenteng16 = 7;
sudahMenangBenteng20 = 7;
sudahMenangBenteng22 = 4;
sudahMenangBenteng23 = 4;
sudahMenangBenteng25 = 3;
sudahMenangBenteng27 = 10;
sudahMenangBenteng28 = 5;
sudahMenangBenteng36 = 1;
sudahMenangBenteng33 = 1;
sudahMenangBenteng35 = 1;
xsudahMenangBenteng2 = 4;
xsudahMenangBenteng4 = 5;
xsudahMenangBenteng5 = 6;
xsudahMenangBenteng6 = 1;
xsudahMenangBenteng8 = 4;
xsudahMenangBenteng15 = 5;
xsudahMenangBenteng16 = 7;
xsudahMenangBenteng20 = 7;
xsudahMenangBenteng22 = 4;
xsudahMenangBenteng23 = 4;
xsudahMenangBenteng25 = 3;
xsudahMenangBenteng27 = 10;
xsudahMenangBenteng28 = 5;
xsudahMenangBenteng36 = 1;
xsudahMenangBenteng33 = 1;
xsudahMenangBenteng35 = 1;
more_btn.onRelease = function () {
getURL('http://www.thegames8.com/', '_blank');
};
walk_btn.onRelease = function () {
getURL('http://thegames8.com/monster-squad-walkthrough.html', '_blank');
};
}
movieClip 415 {
}
movieClip 416 {
frame 1 {
this.onRelease = function () {
getURL('http://www.thegames8.com/', '_blank');
};
}
}
frame 307 {
stop();
msgBox_mc2.continue_btn.onRelease = function () {
backKlik();
gotoAndStop('awalanMenu');
};
}
// unknown tag 88 length 64
// unknown tag 88 length 93
movieClip 455 {
}
frame 308 {
stop();
karakter_mc._visible = true;
karakter_mc.indikasi = 'First Protagonist Name';
karakter_mc.gotoAndStop(1);
karakter_mc.monsterList.gotoAndStop(1);
karakter_mc.namaKe = namaKarakter1;
karakter_mc.edit_btn.onRelease = function () {
backKlik();
karakter_mc.gotoAndStop(2);
Selection.setFocus('karakter_mc.nama_txt');
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.nama_txt.text = defaultNama1;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
namaKarakter1 = karakter_mc.nama_txt.text;
gagalNama = false;
if (namaKarakter1 == '' || namaKarakter1 == ' ' || namaKarakter1 == ' ' || namaKarakter1 == ' ' || namaKarakter1 == ' ' || namaKarakter1 == ' ' || namaKarakter1 == ' ' || namaKarakter1 == ' ' || namaKarakter1 == ' ' || namaKarakter1 == ' ') {
namaKarakter1 = defaultNama1;
} else {
if (namaKarakter1 == namaKarakter2) {
gagalNama = true;
} else {
if (namaKarakter1 == namaKarakter3) {
gagalNama = true;
} else {
if (namaKarakter1 == namaKarakter4) {
gagalNama = true;
} else {
if (namaKarakter1 == namaKarakter5) {
gagalNama = true;
} else {
if (namaKarakter1 == namaKarakter6) {
gagalNama = true;
}
}
}
}
}
}
if (gagalNama == false) {
karakter_mc._visible = false;
gotoAndStop('lanjutKedua');
}
};
};
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.namaKe = defaultNama1;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
namaKarakter1 = namaKarakter1;
karakter_mc._visible = false;
gotoAndStop('lanjutKedua');
};
}
movieClip 474 {
frame 1 {
stop();
}
}
movieClip 478 {
frame 1 {
stop();
}
}
frame 312 {
stop();
karakter_mc._visible = true;
karakter_mc.indikasi = 'Second Protagonist Name';
karakter_mc.gotoAndStop(1);
karakter_mc.monsterList.gotoAndStop(2);
karakter_mc.namaKe = namaKarakter2;
karakter_mc.edit_btn.onRelease = function () {
backKlik();
karakter_mc.gotoAndStop(2);
Selection.setFocus('karakter_mc.nama_txt');
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.nama_txt.text = defaultNama2;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
namaKarakter2 = karakter_mc.nama_txt.text;
gagalNama = false;
if (namaKarakter2 == '' || namaKarakter2 == ' ' || namaKarakter2 == ' ' || namaKarakter2 == ' ' || namaKarakter2 == ' ' || namaKarakter2 == ' ' || namaKarakter2 == ' ' || namaKarakter2 == ' ' || namaKarakter2 == ' ' || namaKarakter2 == ' ') {
namaKarakter2 = defaultNama2;
} else {
if (namaKarakter2 == namaKarakter1) {
gagalNama = true;
} else {
if (namaKarakter2 == namaKarakter3) {
gagalNama = true;
} else {
if (namaKarakter2 == namaKarakter4) {
gagalNama = true;
} else {
if (namaKarakter2 == namaKarakter5) {
gagalNama = true;
} else {
if (namaKarakter2 == namaKarakter6) {
gagalNama = true;
}
}
}
}
}
}
if (gagalNama == false) {
karakter_mc._visible = false;
clearInterval(idWaktu);
waktuMaju();
idWaktu = setInterval(waktuMaju, 1000);
gotoAndStop(323);
}
};
};
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.namaKe = defaultNama2;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
namaKarakter2 = karakter_mc.namaKe;
karakter_mc._visible = false;
clearInterval(idWaktu);
waktuMaju();
idWaktu = setInterval(waktuMaju, 1000);
gotoAndStop(323);
};
}
frame 323 {
function pilihCave39() {
cave_mc39._visible = true;
pilihan_mc.gotoAndStop(50);
tombolAwal();
cave_mc39.gotoAndStop(1);
frameKeCave = 1;
adaDidalamCave = true;
posisiCave = cave_mc39;
framaCave = posisiCave._currentframe;
cekCave39();
}
function cekCave39() {
pilihan_mc.gotoAndStop(50);
tombolAwal();
frameKeCave = cave_mc39._currentframe;
if (cave_mc39._currentframe == 1) {
cave_mc39.box1.onRelease = function () {
backKlik();
if (sudahKlikCave39Box1 == true) {
adaDidalamCave = false;
awalMasukCave = true;
cave_mc39._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
} else {
adaDidalamCave = false;
sudahKlikCave39Box1 = true;
cave_mc39._visible = false;
pilihan_mc._visible = false;
awalMasukCave = true;
backKlik();
musuhDiBox = 61;
gotoAndStop(399);
}
};
}
}
stop();
}
frame 323 {
function pilihCave34() {
cave_mc34._visible = true;
pilihan_mc.gotoAndStop(50);
tombolAwal();
cave_mc34.gotoAndStop(1);
frameKeCave = 1;
adaDidalamCave = true;
posisiCave = cave_mc34;
framaCave = posisiCave._currentframe;
cekCave34();
}
function cekCave34() {
pilihan_mc.gotoAndStop(50);
tombolAwal();
frameKeCave = cave_mc34._currentframe;
if (cave_mc34._currentframe == 1) {
cave_mc34.proceed_btn.onRelease = function () {
backKlik();
cave_mc34.gotoAndStop(5);
cekCave34();
};
cave_mc34.away_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
awalMasukCave = true;
cave_mc34._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
} else {
if (cave_mc34._currentframe == 5) {
cave_mc34.forward_btn.onRelease = function () {
backKlik();
cave_mc34.gotoAndStop(10);
cekCave34();
};
if (sudahKlikCave34Box1 == true) {
cave_mc34.box1.enabled = false;
cave_mc34.box1._alpha = 50;
}
cave_mc34.box1.onRelease = function () {
backKlik();
sudahKlikCave34Box1 = true;
++_root.fineryPunya37;
cave_mc34.box1.enabled = false;
cave_mc34.box1._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaFinery[37];
};
} else {
if (cave_mc34._currentframe == 10) {
cave_mc34.forward_btn.onRelease = function () {
backKlik();
cave_mc34.gotoAndStop(15);
cekCave34();
};
if (sudahKlikCave34Box2 == true) {
cave_mc34.box2.enabled = false;
cave_mc34.box2._alpha = 50;
}
cave_mc34.box2.onRelease = function () {
backKlik();
sudahKlikCave34Box2 = true;
++_root.fineryPunya40;
cave_mc34.box2.enabled = false;
cave_mc34.box2._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaFinery[40];
};
} else {
if (cave_mc34._currentframe == 15) {
cave_mc34.box3.onRelease = function () {
backKlik();
if (sudahKlikCave34Box3 == true) {
adaDidalamCave = false;
awalMasukCave = true;
cave_mc34._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
} else {
adaDidalamCave = false;
sudahKlikCave34Box3 = true;
cave_mc34._visible = false;
pilihan_mc._visible = false;
awalMasukCave = true;
backKlik();
musuhDiBox = 60;
gotoAndStop(399);
}
};
}
}
}
}
}
stop();
}
frame 323 {
function pilihCave30() {
cave_mc30._visible = true;
pilihan_mc.gotoAndStop(50);
tombolAwal();
cave_mc30.gotoAndStop(1);
frameKeCave = 1;
adaDidalamCave = true;
posisiCave = cave_mc30;
framaCave = posisiCave._currentframe;
cekCave30();
}
function cekCave30() {
pilihan_mc.gotoAndStop(50);
tombolAwal();
frameKeCave = cave_mc30._currentframe;
if (cave_mc30._currentframe == 1) {
cave_mc30.left_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(80);
cekCave30();
};
cave_mc30.right_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(5);
cekCave30();
};
} else {
if (cave_mc30._currentframe == 5) {
cave_mc30.left_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(35);
cekCave30();
};
cave_mc30.right_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(10);
cekCave30();
};
} else {
if (cave_mc30._currentframe == 10) {
cave_mc30.left_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(25);
cekCave30();
};
cave_mc30.right_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(15);
cekCave30();
};
} else {
if (cave_mc30._currentframe == 15) {
cave_mc30.forward_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(20);
cekCave30();
};
if (sudahKlikCave30Box1 == true) {
cave_mc30.box1.enabled = false;
cave_mc30.box1._alpha = 50;
}
cave_mc30.box1.onRelease = function () {
backKlik();
sudahKlikCave30Box1 = true;
++_root.weaponPunya39;
cave_mc30.box1.enabled = false;
cave_mc30.box1._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaWeapon[39];
};
} else {
if (cave_mc30._currentframe == 20) {
cave_mc30.exit_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc30._visible = false;
if (_root.itemPunya75 >= 1) {
awalMasukCave = true;
} else {
awalMasukCave = false;
}
cekAsalMuasal();
tombolAwal();
};
if (sudahKlikCave30Box2 == true) {
cave_mc30.box2.enabled = false;
cave_mc30.box2._alpha = 50;
}
cave_mc30.box2.onRelease = function () {
backKlik();
sudahKlikCave30Box2 = true;
++_root.shieldPunya32;
cave_mc30.box2.enabled = false;
cave_mc30.box2._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaShield[32];
};
} else {
if (cave_mc30._currentframe == 25) {
cave_mc30.forward_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(30);
cekCave30();
};
if (sudahKlikCave30Box3 == true) {
cave_mc30.box3.enabled = false;
cave_mc30.box3._alpha = 50;
}
cave_mc30.box3.onRelease = function () {
backKlik();
sudahKlikCave30Box3 = true;
++_root.fineryPunya29;
cave_mc30.box3.enabled = false;
cave_mc30.box3._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaFinery[29];
};
} else {
if (cave_mc30._currentframe == 30) {
cave_mc30.left_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(55);
cekCave30();
};
cave_mc30.right_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(60);
cekCave30();
};
} else {
if (cave_mc30._currentframe == 35) {
cave_mc30.forward_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(40);
cekCave30();
};
if (sudahKlikCave30Box4 == true) {
cave_mc30.box4.enabled = false;
cave_mc30.box4._alpha = 50;
}
cave_mc30.box4.onRelease = function () {
backKlik();
sudahKlikCave30Box4 = true;
++_root.armorPunya18;
cave_mc30.box4.enabled = false;
cave_mc30.box4._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaArmor[18];
};
} else {
if (cave_mc30._currentframe == 40) {
cave_mc30.forward_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(45);
cekCave30();
};
if (sudahKlikCave30Box5 == true) {
cave_mc30.box5.enabled = false;
cave_mc30.box5._alpha = 50;
}
cave_mc30.box5.onRelease = function () {
backKlik();
sudahKlikCave30Box5 = true;
++_root.weaponPunya41;
cave_mc30.box5.enabled = false;
cave_mc30.box5._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaWeapon[41];
};
} else {
if (cave_mc30._currentframe == 45) {
cave_mc30.forward_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(50);
cekCave30();
};
if (sudahKlikCave30Box6 == true) {
cave_mc30.box6.enabled = false;
cave_mc30.box6._alpha = 50;
}
cave_mc30.box6.onRelease = function () {
backKlik();
cave_mc30._visible = false;
pilihan_mc._visible = false;
foundMonster_mc._visible = true;
foundMonster_mc.gotoAndPlay(2);
sudahKlikCave30Box6 = true;
musuhDiBox = 58;
};
} else {
if (cave_mc30._currentframe == 50) {
cave_mc30.exit_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc30._visible = false;
if (_root.itemPunya75 >= 1) {
awalMasukCave = true;
} else {
awalMasukCave = false;
}
cekAsalMuasal();
tombolAwal();
};
if (sudahKlikCave30Box7 == true) {
cave_mc30.box7.enabled = false;
cave_mc30.box7._alpha = 50;
}
cave_mc30.box7.onRelease = function () {
backKlik();
sudahKlikCave30Box7 = true;
cave_mc30.box7.enabled = false;
cave_mc30.box7._alpha = 50;
sudahLanjutGame = true;
posisi34._visible = true;
kedip_mc.gotoAndPlay(10);
};
} else {
if (cave_mc30._currentframe == 55) {
cave_mc30.exit_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc30._visible = false;
if (_root.itemPunya75 >= 1) {
awalMasukCave = true;
} else {
awalMasukCave = false;
}
cekAsalMuasal();
tombolAwal();
};
if (sudahKlikCave30Box8 == true) {
cave_mc30.box8.enabled = false;
cave_mc30.box8._alpha = 50;
}
cave_mc30.box8.onRelease = function () {
backKlik();
sudahKlikCave30Box8 = true;
++_root.shieldPunya34;
cave_mc30.box8.enabled = false;
cave_mc30.box8._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaShield[34];
};
} else {
if (cave_mc30._currentframe == 60) {
cave_mc30.exit_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc30._visible = false;
if (_root.itemPunya75 >= 1) {
awalMasukCave = true;
} else {
awalMasukCave = false;
}
cekAsalMuasal();
tombolAwal();
};
if (sudahKlikCave30Box9 == true) {
cave_mc30.box9.enabled = false;
cave_mc30.box9._alpha = 50;
}
cave_mc30.box9.onRelease = function () {
backKlik();
sudahKlikCave30Box9 = true;
++_root.weaponPunya6;
cave_mc30.box9.enabled = false;
cave_mc30.box9._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaWeapon[6];
};
} else {
if (cave_mc30._currentframe == 80) {
cave_mc30.left_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(120);
cekCave30();
};
cave_mc30.right_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(85);
cekCave30();
};
} else {
if (cave_mc30._currentframe == 85) {
cave_mc30.left_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(95);
cekCave30();
};
cave_mc30.right_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(90);
cekCave30();
};
} else {
if (cave_mc30._currentframe == 90) {
cave_mc30.exit_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc30._visible = false;
if (_root.itemPunya75 >= 1) {
awalMasukCave = true;
} else {
awalMasukCave = false;
}
cekAsalMuasal();
tombolAwal();
};
if (sudahKlikCave30Box10 == true) {
cave_mc30.box10.enabled = false;
cave_mc30.box10._alpha = 50;
}
cave_mc30.box10.onRelease = function () {
backKlik();
sudahKlikCave30Box10 = true;
++_root.weaponPunya37;
cave_mc30.box10.enabled = false;
cave_mc30.box10._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaWeapon[37];
};
} else {
if (cave_mc30._currentframe == 95) {
cave_mc30.forward_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(100);
cekCave30();
};
if (sudahKlikCave30Box14 == true) {
cave_mc30.box14.enabled = false;
cave_mc30.box14._alpha = 50;
}
if (sudahKlikCave30Box11 == true) {
cave_mc30.box11.enabled = false;
cave_mc30.box11._alpha = 50;
}
cave_mc30.box11.onRelease = function () {
backKlik();
if (_root.itemPunya70 >= 1) {
sudahKlikCave30Box11 = true;
++_root.fineryPunya34;
cave_mc30.box11.enabled = false;
cave_mc30.box11._alpha = 50;
foundItem_mc.gotoAndPlay(50);
foundItem_mc.itemKe = namaFinery[34];
} else {
locked_mc.gotoAndPlay(2);
}
};
} else {
if (cave_mc30._currentframe == 100) {
cave_mc30.forward_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(105);
cekCave30();
};
if (sudahKlikCave30Box12 == true) {
cave_mc30.box12.enabled = false;
cave_mc30.box12._alpha = 50;
}
cave_mc30.box12.onRelease = function () {
backKlik();
sudahKlikCave30Box12 = true;
++_root.spellPunya33;
cave_mc30.box12.enabled = false;
cave_mc30.box12._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaSpell[33];
};
} else {
if (cave_mc30._currentframe == 105) {
cave_mc30.box13.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(110);
cekCave30();
};
} else {
if (cave_mc30._currentframe == 110) {
cave_mc30.yes_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc30._visible = false;
pilihan_mc._visible = false;
awalMasukCave = false;
masukRandomBattle = false;
musuhDiBox = 59;
gotoAndStop(399);
};
cave_mc30.no_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc30._visible = false;
if (_root.itemPunya75 >= 1) {
awalMasukCave = true;
} else {
awalMasukCave = false;
}
cekAsalMuasal();
tombolAwal();
};
} else {
if (cave_mc30._currentframe == 120) {
cave_mc30.forward_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(125);
cekCave30();
};
if (sudahKlikCave30Box14 == true) {
cave_mc30.box14.enabled = false;
cave_mc30.box14._alpha = 50;
}
cave_mc30.box14.onRelease = function () {
backKlik();
sudahKlikCave30Box14 = true;
++_root.shieldPunya33;
cave_mc30.box14.enabled = false;
cave_mc30.box14._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaShield[33];
};
} else {
if (cave_mc30._currentframe == 125) {
cave_mc30.forward_btn.onRelease = function () {
backKlik();
cave_mc30.gotoAndStop(130);
cekCave30();
};
if (sudahKlikCave30Box15 == true) {
cave_mc30.box15.enabled = false;
cave_mc30.box15._alpha = 50;
}
cave_mc30.box15.onRelease = function () {
backKlik();
sudahKlikCave30Box15 = true;
++_root.weaponPunya42;
cave_mc30.box15.enabled = false;
cave_mc30.box15._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaWeapon[42];
};
} else {
if (cave_mc30._currentframe == 130) {
cave_mc30.exit_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc30._visible = false;
if (_root.itemPunya75 >= 1) {
awalMasukCave = true;
} else {
awalMasukCave = false;
}
cekAsalMuasal();
tombolAwal();
};
if (sudahKlikCave30Box16 == true) {
cave_mc30.box16.enabled = false;
cave_mc30.box16._alpha = 50;
}
cave_mc30.box16.onRelease = function () {
backKlik();
sudahKlikCave30Box16 = true;
++_root.fineryPunya35;
cave_mc30.box16.enabled = false;
cave_mc30.box16._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaFinery[35];
};
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
stop();
}
frame 323 {
function pilihCave37() {
cave_mc37._visible = true;
pilihan_mc.gotoAndStop(50);
tombolAwal();
cave_mc37.gotoAndStop(1);
frameKeCave = 1;
adaDidalamCave = true;
posisiCave = cave_mc37;
framaCave = posisiCave._currentframe;
cekCave37();
}
function cekCave37() {
pilihan_mc.gotoAndStop(50);
tombolAwal();
frameKeCave = cave_mc37._currentframe;
if (cave_mc37._currentframe == 1) {
cave_mc37.forward_btn.onRelease = function () {
backKlik();
cave_mc37.gotoAndStop(5);
cekCave37();
};
if (sudahKlikCave37Box1 == true) {
cave_mc37.box1.enabled = false;
cave_mc37.box1._alpha = 50;
}
cave_mc37.box1.onRelease = function () {
backKlik();
sudahKlikCave37Box1 = true;
++_root.weaponPunya29;
cave_mc37.box1.enabled = false;
cave_mc37.box1._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaWeapon[29];
};
} else {
if (cave_mc37._currentframe == 5) {
cave_mc37.forward_btn.onRelease = function () {
backKlik();
cave_mc37.gotoAndStop(10);
cekCave37();
};
if (sudahKlikCave37Box2 == true) {
cave_mc37.box2.enabled = false;
cave_mc37.box2._alpha = 50;
}
cave_mc37.box2.onRelease = function () {
backKlik();
sudahKlikCave37Box2 = true;
++_root.weaponPunya26;
cave_mc37.box2.enabled = false;
cave_mc37.box2._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaWeapon[26];
};
} else {
if (cave_mc37._currentframe == 10) {
cave_mc37.forward_btn.onRelease = function () {
backKlik();
cave_mc37.gotoAndStop(15);
cekCave37();
};
if (sudahKlikCave37Box3 == true) {
cave_mc37.box3.enabled = false;
cave_mc37.box3._alpha = 50;
}
cave_mc37.box3.onRelease = function () {
backKlik();
sudahKlikCave37Box3 = true;
++_root.armorPunya18;
cave_mc37.box3.enabled = false;
cave_mc37.box3._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaArmor[18];
};
} else {
if (cave_mc37._currentframe == 15) {
cave_mc37.forward_btn.onRelease = function () {
backKlik();
cave_mc37.gotoAndStop(20);
cekCave37();
};
if (sudahKlikCave37Box4 == true) {
cave_mc37.box4.enabled = false;
cave_mc37.box4._alpha = 50;
}
cave_mc37.box4.onRelease = function () {
backKlik();
sudahKlikCave37Box4 = true;
++_root.shieldPunya25;
cave_mc37.box4.enabled = false;
cave_mc37.box4._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaShield[25];
};
} else {
if (cave_mc37._currentframe == 20) {
cave_mc37.forward_btn.onRelease = function () {
backKlik();
cave_mc37.gotoAndStop(25);
cekCave37();
};
if (sudahKlikCave37Box5 == true) {
cave_mc37.box5.enabled = false;
cave_mc37.box5._alpha = 50;
}
cave_mc37.box5.onRelease = function () {
backKlik();
cave_mc37._visible = false;
pilihan_mc._visible = false;
foundMonster_mc._visible = true;
foundMonster_mc.gotoAndPlay(2);
sudahKlikCave37Box5 = true;
musuhDiBox = 54;
};
} else {
if (cave_mc37._currentframe == 25) {
cave_mc37.exit_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc37._visible = false;
awalMasukCave = true;
cekAsalMuasal();
tombolAwal();
};
if (sudahKlikCave37Box6 == true) {
cave_mc37.box6.enabled = false;
cave_mc37.box6._alpha = 50;
}
cave_mc37.box6.onRelease = function () {
backKlik();
cave_mc37._visible = false;
pilihan_mc._visible = false;
foundMonster_mc._visible = true;
foundMonster_mc.gotoAndPlay(2);
sudahKlikCave37Box6 = true;
musuhDiBox = 57;
};
}
}
}
}
}
}
}
stop();
}
frame 323 {
function pilihCave24() {
cave_mc24._visible = true;
pilihan_mc.gotoAndStop(50);
tombolAwal();
cave_mc24.gotoAndStop(1);
frameKeCave = 1;
adaDidalamCave = true;
posisiCave = cave_mc24;
framaCave = posisiCave._currentframe;
cekCave24();
}
function cekCave24() {
pilihan_mc.gotoAndStop(50);
tombolAwal();
frameKeCave = cave_mc24._currentframe;
if (cave_mc24._currentframe == 1) {
cave_mc24.forward_btn.onRelease = function () {
backKlik();
cave_mc24.gotoAndStop(5);
cekCave24();
};
if (sudahKlikCave24Box1 == true) {
cave_mc24.box1.enabled = false;
cave_mc24.box1._alpha = 50;
}
cave_mc24.box1.onRelease = function () {
backKlik();
sudahKlikCave24Box1 = true;
uring += 100000;
cave_mc24.box1.enabled = false;
cave_mc24.box1._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = '100000 Uring';
};
} else {
if (cave_mc24._currentframe == 5) {
cave_mc24.forward_btn.onRelease = function () {
backKlik();
cave_mc24.gotoAndStop(10);
cekCave24();
};
if (sudahKlikCave24Box2 == true) {
cave_mc24.box2.enabled = false;
cave_mc24.box2._alpha = 50;
}
cave_mc24.box2.onRelease = function () {
backKlik();
sudahKlikCave24Box2 = true;
uring += 200000;
cave_mc24.box2.enabled = false;
cave_mc24.box2._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = '200000 Uring';
};
} else {
if (cave_mc24._currentframe == 10) {
cave_mc24.forward_btn.onRelease = function () {
backKlik();
cave_mc24.gotoAndStop(15);
cekCave24();
};
if (sudahKlikCave24Box3 == true) {
cave_mc24.box3.enabled = false;
cave_mc24.box3._alpha = 50;
}
cave_mc24.box3.onRelease = function () {
backKlik();
sudahKlikCave24Box3 = true;
++_root.itemPunya36;
++_root.itemPunya36;
cave_mc24.box3.enabled = false;
cave_mc24.box3._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = '2 X ' + namaItem[36];
};
} else {
if (cave_mc24._currentframe == 15) {
cave_mc24.forward_btn.onRelease = function () {
backKlik();
cave_mc24.gotoAndStop(20);
cekCave24();
};
if (sudahKlikCave24Box4 == true) {
cave_mc24.box4.enabled = false;
cave_mc24.box4._alpha = 50;
}
cave_mc24.box4.onRelease = function () {
backKlik();
sudahKlikCave24Box4 = true;
++_root.weaponPunya14;
cave_mc24.box4.enabled = false;
cave_mc24.box4._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaWeapon[14];
};
} else {
if (cave_mc24._currentframe == 20) {
cave_mc24.forward_btn.onRelease = function () {
backKlik();
cave_mc24.gotoAndStop(25);
cekCave24();
};
if (sudahKlikCave24Box5 == true) {
cave_mc24.box5.enabled = false;
cave_mc24.box5._alpha = 50;
}
cave_mc24.box5.onRelease = function () {
backKlik();
sudahKlikCave24Box5 = true;
++_root.spellPunya18;
cave_mc24.box5.enabled = false;
cave_mc24.box5._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaSpell[18];
};
} else {
if (cave_mc24._currentframe == 25) {
cave_mc24.forward_btn.onRelease = function () {
backKlik();
cave_mc24.gotoAndStop(30);
cekCave24();
};
if (sudahKlikCave24Box6 == true) {
cave_mc24.box6.enabled = false;
cave_mc24.box6._alpha = 50;
}
cave_mc24.box6.onRelease = function () {
backKlik();
sudahKlikCave24Box6 = true;
++_root.weaponPunya31;
cave_mc24.box6.enabled = false;
cave_mc24.box6._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaWeapon[31];
};
} else {
if (cave_mc24._currentframe == 30) {
cave_mc24.forward_btn.onRelease = function () {
backKlik();
cave_mc24.gotoAndStop(35);
cekCave24();
};
if (sudahKlikCave24Box7 == true) {
cave_mc24.box7.enabled = false;
cave_mc24.box7._alpha = 50;
}
cave_mc24.box7.onRelease = function () {
backKlik();
sudahKlikCave24Box7 = true;
++_root.shieldPunya24;
cave_mc24.box7.enabled = false;
cave_mc24.box7._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaShield[24];
};
} else {
if (cave_mc24._currentframe == 35) {
cave_mc24.forward_btn.onRelease = function () {
backKlik();
cave_mc24.gotoAndStop(40);
cekCave24();
};
if (sudahKlikCave24Box8 == true) {
cave_mc24.box8.enabled = false;
cave_mc24.box8._alpha = 50;
}
cave_mc24.box8.onRelease = function () {
backKlik();
sudahKlikCave24Box8 = true;
++_root.fineryPunya32;
cave_mc24.box8.enabled = false;
cave_mc24.box8._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaFinery[32];
};
} else {
if (cave_mc24._currentframe == 40) {
cave_mc24.forward_btn.onRelease = function () {
backKlik();
cave_mc24.gotoAndStop(45);
cekCave24();
};
if (sudahKlikCave24Box9 == true) {
cave_mc24.box9.enabled = false;
cave_mc24.box9._alpha = 50;
}
cave_mc24.box9.onRelease = function () {
backKlik();
sudahKlikCave24Box9 = true;
uring += 400000;
cave_mc24.box9.enabled = false;
cave_mc24.box9._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = '400000 Uring';
};
} else {
if (cave_mc24._currentframe == 45) {
cave_mc24.forward_btn.onRelease = function () {
backKlik();
cave_mc24.gotoAndStop(50);
cekCave24();
};
if (sudahKlikCave24Box10 == true) {
cave_mc24.box10.enabled = false;
cave_mc24.box10._alpha = 50;
}
cave_mc24.box10.onRelease = function () {
backKlik();
sudahKlikCave24Box10 = true;
++_root.armorPunya20;
cave_mc24.box10.enabled = false;
cave_mc24.box10._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaArmor[20];
};
} else {
if (cave_mc24._currentframe == 50) {
cave_mc24.exit_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc24._visible = false;
awalMasukCave = false;
cekAsalMuasal();
tombolAwal();
};
if (sudahKlikCave24Box11 == true) {
cave_mc24.box11.enabled = false;
cave_mc24.box11._alpha = 50;
}
cave_mc24.box11.onRelease = function () {
backKlik();
cave_mc24._visible = false;
pilihan_mc._visible = false;
foundMonster_mc._visible = true;
foundMonster_mc.gotoAndPlay(2);
sudahKlikCave24Box11 = true;
musuhDiBox = 38;
};
}
}
}
}
}
}
}
}
}
}
}
}
stop();
}
frame 323 {
function pilihCave17() {
cave_mc17._visible = true;
pilihan_mc.gotoAndStop(50);
tombolAwal();
cave_mc17.gotoAndStop(1);
frameKeCave = 1;
adaDidalamCave = true;
posisiCave = cave_mc17;
framaCave = posisiCave._currentframe;
cekCave17();
}
function cekCave17() {
pilihan_mc.gotoAndStop(50);
tombolAwal();
frameKeCave = cave_mc17._currentframe;
if (cave_mc17._currentframe == 1) {
cave_mc17.box1.onRelease = function () {
backKlik();
if (sudahKlikCave17Box1 == false) {
sudahKlikCave17Box1 = true;
cave_mc17.gotoAndStop(5);
cave_mc17._visible = false;
pilihan_mc._visible = false;
cekCave17();
musuhDiBox = 27;
gotoAndStop(399);
} else {
cave_mc17.gotoAndStop(5);
cekCave17();
}
};
} else {
if (cave_mc17._currentframe == 5) {
cave_mc17.box2.onRelease = function () {
backKlik();
if (sudahKlikCave17Box2 == false) {
sudahKlikCave17Box2 = true;
cave_mc17.gotoAndStop(10);
cave_mc17._visible = false;
pilihan_mc._visible = false;
cekCave17();
musuhDiBox = 28;
gotoAndStop(399);
} else {
cave_mc17.gotoAndStop(10);
cekCave17();
}
};
} else {
if (cave_mc17._currentframe == 10) {
cave_mc17.box3.onRelease = function () {
backKlik();
if (sudahKlikCave17Box3 == false) {
sudahKlikCave17Box3 = true;
adaDidalamCave = false;
cave_mc17._visible = false;
pilihan_mc._visible = false;
awalMasukCave = false;
musuhDiBox = 29;
gotoAndStop(399);
} else {
adaDidalamCave = false;
cave_mc17._visible = false;
awalMasukCave = false;
cekAsalMuasal();
tombolAwal();
}
};
}
}
}
}
stop();
}
frame 323 {
function pilihCave13() {
cave_mc13._visible = true;
pilihan_mc.gotoAndStop(50);
tombolAwal();
cave_mc13.gotoAndStop(1);
frameKeCave = 1;
adaDidalamCave = true;
posisiCave = cave_mc13;
framaCave = posisiCave._currentframe;
cekCave13();
}
function cekCave13() {
pilihan_mc.gotoAndStop(50);
tombolAwal();
frameKeCave = cave_mc13._currentframe;
if (cave_mc13._currentframe == 1) {
cave_mc13.forward_btn.onRelease = function () {
backKlik();
cave_mc13.gotoAndStop(2);
cekCave13();
};
if (sudahKlikCave13Box1 == true) {
cave_mc13.box1.enabled = false;
cave_mc13.box1._alpha = 50;
}
cave_mc13.box1.onRelease = function () {
backKlik();
sudahKlikCave13Box1 = true;
++_root.itemPunya61;
cave_mc13.box1.enabled = false;
cave_mc13.box1._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaItem[61];
};
} else {
if (cave_mc13._currentframe == 2) {
cave_mc13.forward_btn.onRelease = function () {
backKlik();
cave_mc13.gotoAndStop(3);
cekCave13();
};
if (sudahKlikCave13Box2 == true) {
cave_mc13.box2.enabled = false;
cave_mc13.box2._alpha = 50;
}
cave_mc13.box2.onRelease = function () {
backKlik();
sudahKlikCave13Box2 = true;
++_root.itemPunya35;
cave_mc13.box2.enabled = false;
cave_mc13.box2._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaItem[35];
};
} else {
if (cave_mc13._currentframe == 3) {
cave_mc13.left_btn.onRelease = function () {
backKlik();
cave_mc13.gotoAndStop(5);
cekCave13();
};
cave_mc13.right_btn.onRelease = function () {
backKlik();
cave_mc13.gotoAndStop(10);
cekCave13();
};
} else {
if (cave_mc13._currentframe == 5) {
cave_mc13.forward_btn.onRelease = function () {
backKlik();
cave_mc13.gotoAndStop(15);
cekCave13();
};
if (sudahKlikCave13Box3 == true) {
cave_mc13.box3.enabled = false;
cave_mc13.box3._alpha = 50;
}
cave_mc13.box3.onRelease = function () {
backKlik();
cave_mc13._visible = false;
pilihan_mc._visible = false;
foundMonster_mc._visible = true;
foundMonster_mc.gotoAndPlay(2);
sudahKlikCave13Box3 = true;
musuhDiBox = 14;
};
} else {
if (cave_mc13._currentframe == 10) {
cave_mc13.forward_btn.onRelease = function () {
backKlik();
cave_mc13.gotoAndStop(15);
cekCave13();
};
if (sudahKlikCave13Box4 == true) {
cave_mc13.box4.enabled = false;
cave_mc13.box4._alpha = 50;
}
cave_mc13.box4.onRelease = function () {
backKlik();
cave_mc13._visible = false;
pilihan_mc._visible = false;
foundMonster_mc._visible = true;
foundMonster_mc.gotoAndPlay(2);
sudahKlikCave13Box4 = true;
musuhDiBox = 14;
};
} else {
if (cave_mc13._currentframe == 15) {
cave_mc13.left_btn.onRelease = function () {
backKlik();
cave_mc13.gotoAndStop(20);
cekCave13();
};
cave_mc13.right_btn.onRelease = function () {
backKlik();
cave_mc13.gotoAndStop(25);
cekCave13();
};
} else {
if (cave_mc13._currentframe == 20) {
cave_mc13.forward_btn.onRelease = function () {
backKlik();
cave_mc13.gotoAndStop(30);
cekCave13();
};
if (sudahKlikCave13Box5 == true) {
cave_mc13.box5.enabled = false;
cave_mc13.box5._alpha = 50;
}
cave_mc13.box5.onRelease = function () {
backKlik();
sudahKlikCave13Box5 = true;
uring += 10000;
cave_mc13.box5.enabled = false;
cave_mc13.box5._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = '10000 Uring';
};
} else {
if (cave_mc13._currentframe == 25) {
cave_mc13.forward_btn.onRelease = function () {
backKlik();
cave_mc13.gotoAndStop(30);
cekCave13();
};
if (sudahKlikCave13Box6 == true) {
cave_mc13.box6.enabled = false;
cave_mc13.box6._alpha = 50;
}
cave_mc13.box6.onRelease = function () {
backKlik();
sudahKlikCave13Box6 = true;
++_root.shieldPunya18;
cave_mc13.box6.enabled = false;
cave_mc13.box6._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaShield[18];
};
} else {
if (cave_mc13._currentframe == 30) {
cave_mc13.box7.onRelease = function () {
backKlik();
if (sudahKlikCave13Box7 == false) {
sudahKlikCave13Box7 = true;
adaDidalamCave = false;
cave_mc13._visible = false;
pilihan_mc._visible = false;
awalMasukCave = false;
musuhDiBox = 15;
gotoAndStop(399);
} else {
adaDidalamCave = false;
cave_mc13._visible = false;
awalMasukCave = false;
cekAsalMuasal();
tombolAwal();
}
};
}
}
}
}
}
}
}
}
}
}
stop();
}
frame 323 {
function pilihCave12() {
cave_mc12._visible = true;
pilihan_mc.gotoAndStop(50);
tombolAwal();
cave_mc12.gotoAndStop(1);
frameKeCave = 1;
adaDidalamCave = true;
posisiCave = cave_mc12;
framaCave = posisiCave._currentframe;
cekCave12();
}
function cekCave12() {
pilihan_mc.gotoAndStop(50);
tombolAwal();
frameKeCave = cave_mc12._currentframe;
if (cave_mc12._currentframe == 1) {
cave_mc12.proceed_btn.onRelease = function () {
backKlik();
cave_mc12.gotoAndStop(2);
cekCave12();
};
cave_mc12.away_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc12._visible = false;
pilihan_mc._visible = true;
posisiKini = posisiSebelumnya;
cekAsalMuasal();
tombolAwal();
};
} else {
if (cave_mc12._currentframe == 2) {
cave_mc12.left_btn.onRelease = function () {
backKlik();
cave_mc12.gotoAndStop(10);
cekCave12();
};
cave_mc12.right_btn.onRelease = function () {
backKlik();
cave_mc12.gotoAndStop(5);
cekCave12();
};
} else {
if (cave_mc12._currentframe == 5) {
cave_mc12.forward_btn.onRelease = function () {
backKlik();
cave_mc12.gotoAndStop(15);
cekCave12();
};
if (sudahKlikCave12Box1 == true) {
cave_mc12.box1.enabled = false;
cave_mc12.box1._alpha = 50;
}
cave_mc12.box1.onRelease = function () {
backKlik();
sudahKlikCave12Box1 = true;
++_root.shieldPunya5;
cave_mc12.box1.enabled = false;
cave_mc12.box1._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaShield[5];
};
} else {
if (cave_mc12._currentframe == 10) {
cave_mc12.forward_btn.onRelease = function () {
backKlik();
cave_mc12.gotoAndStop(15);
cekCave12();
};
if (sudahKlikCave12Box2 == true) {
cave_mc12.box2.enabled = false;
cave_mc12.box2._alpha = 50;
}
cave_mc12.box2.onRelease = function () {
backKlik();
sudahKlikCave12Box2 = true;
++_root.spellPunya12;
cave_mc12.box2.enabled = false;
cave_mc12.box2._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaSpell[12];
};
} else {
if (cave_mc12._currentframe == 15) {
cave_mc12.box3.onRelease = function () {
backKlik();
if (sudahKlikCave12Box3 == false) {
sudahKlikCave12Box3 = true;
adaDidalamCave = false;
cave_mc12._visible = false;
pilihan_mc._visible = false;
awalMasukCave = false;
musuhDiBox = 26;
gotoAndStop(399);
} else {
adaDidalamCave = false;
cave_mc12._visible = false;
awalMasukCave = false;
cekAsalMuasal();
tombolAwal();
}
};
}
}
}
}
}
}
stop();
}
frame 323 {
function pilihCave10() {
cave_mc10._visible = true;
pilihan_mc.gotoAndStop(50);
tombolAwal();
cave_mc10.gotoAndStop(1);
frameKeCave = 1;
adaDidalamCave = true;
posisiCave = cave_mc10;
framaCave = posisiCave._currentframe;
cekCave10();
}
function cekCave10() {
pilihan_mc.gotoAndStop(50);
tombolAwal();
frameKeCave = cave_mc10._currentframe;
if (cave_mc10._currentframe == 1) {
cave_mc10.forward_btn.onRelease = function () {
backKlik();
cave_mc10.gotoAndStop(2);
cekCave10();
};
if (sudahKlikCave10Box1 == true) {
cave_mc10.box1.enabled = false;
cave_mc10.box1._alpha = 50;
}
cave_mc10.box1.onRelease = function () {
backKlik();
cave_mc10._visible = false;
pilihan_mc._visible = false;
foundMonster_mc._visible = true;
foundMonster_mc.gotoAndPlay(2);
sudahKlikCave10Box1 = true;
musuhDiBox = 13;
};
} else {
if (cave_mc10._currentframe == 2) {
cave_mc10.forward_btn.onRelease = function () {
backKlik();
cave_mc10.gotoAndStop(3);
cekCave10();
};
if (sudahKlikCave10Box2 == true) {
cave_mc10.box2.enabled = false;
cave_mc10.box2._alpha = 50;
}
cave_mc10.box2.onRelease = function () {
backKlik();
sudahKlikCave10Box2 = true;
++_root.fineryPunya13;
cave_mc10.box2.enabled = false;
cave_mc10.box2._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaFinery[13];
};
} else {
if (cave_mc10._currentframe == 3) {
cave_mc10.left_btn.onRelease = function () {
backKlik();
cave_mc10.gotoAndStop(5);
cekCave10();
};
cave_mc10.right_btn.onRelease = function () {
backKlik();
cave_mc10.gotoAndStop(10);
cekCave10();
};
} else {
if (cave_mc10._currentframe == 5) {
cave_mc10.forward_btn.onRelease = function () {
backKlik();
cave_mc10.gotoAndStop(15);
cekCave10();
};
if (sudahKlikCave10Box3 == true) {
cave_mc10.box3.enabled = false;
cave_mc10.box3._alpha = 50;
}
cave_mc10.box3.onRelease = function () {
backKlik();
sudahKlikCave10Box3 = true;
++_root.fineryPunya16;
cave_mc10.box3.enabled = false;
cave_mc10.box3._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaFinery[16];
};
} else {
if (cave_mc10._currentframe == 10) {
cave_mc10.forward_btn.onRelease = function () {
backKlik();
cave_mc10.gotoAndStop(15);
cekCave10();
};
if (sudahKlikCave10Box4 == true) {
cave_mc10.box4.enabled = false;
cave_mc10.box4._alpha = 50;
}
cave_mc10.box4.onRelease = function () {
backKlik();
sudahKlikCave10Box4 = true;
++_root.weaponPunya11;
cave_mc10.box4.enabled = false;
cave_mc10.box4._alpha = 50;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaWeapon[11];
};
} else {
if (cave_mc10._currentframe == 15) {
cave_mc10.exit_btn.onRelease = function () {
backKlik();
adaDidalamCave = false;
cave_mc10._visible = false;
awalMasukCave = false;
cekAsalMuasal();
tombolAwal();
};
if (sudahKlikCave10Box5 == true) {
cave_mc10.box5.enabled = false;
cave_mc10.box5._alpha = 50;
}
cave_mc10.box5.onRelease = function () {
backKlik();
cave_mc10._visible = false;
pilihan_mc._visible = false;
foundMonster_mc._visible = true;
foundMonster_mc.gotoAndPlay(2);
sudahKlikCave10Box5 = true;
musuhDiBox = 13;
};
}
}
}
}
}
}
}
stop();
}
frame 323 {
function sellItemKe() {
pilihSemuaArea = false;
karakterPilih_mc._visible = false;
sell_mc.xinfo = '';
sell_mc.xown = 'Own: ' + uring + ' Uring';
sell_mc.xprice = '';
sell_mc.back_btn.onRelease = function () {
backKlik();
sell_mc._visible = false;
};
masukItem = new Array();
tipeItem = new Array();
keItem = 1;
if (pilihanAwal == 1) {
i = 1;
while (i <= 83) {
if (_root['itemPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Item';
++keItem;
}
++i;
}
} else {
if (pilihanAwal == 2) {
i = 1;
while (i <= 34) {
if (_root['spellPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Spell';
++keItem;
}
++i;
}
} else {
if (pilihanAwal == 3) {
i = 1;
while (i <= 44) {
if (_root['weaponPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Weapon';
++keItem;
}
++i;
}
} else {
if (pilihanAwal == 4) {
i = 1;
while (i <= 36) {
if (_root['shieldPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Shield';
++keItem;
}
++i;
}
} else {
if (pilihanAwal == 5) {
i = 1;
while (i <= 40) {
if (_root['armorPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Armor';
++keItem;
}
++i;
}
} else {
if (pilihanAwal == 6) {
i = 1;
while (i <= 40) {
if (_root['fineryPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Finery';
++keItem;
}
++i;
}
}
}
}
}
}
}
}
function klikItemSell() {
if (this.tandaList._visible == false) {
karakterPilih_mc._visible = false;
i = 1;
while (i <= 25) {
sell_mc['item' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
if (this.tipeBerapa == 'Item') {
sell_mc.xinfo = infoItem[this.keBerapa] + ' (' + this.tipeBerapa + ')';
sell_mc.xprice = 'Price: ' + hargaItem[this.keBerapa] + ' Uring';
} else {
if (this.tipeBerapa == 'Spell') {
sell_mc.xinfo = infoSpell[this.keBerapa] + ' (' + this.tipeBerapa + ')';
sell_mc.xprice = 'Price: ' + hargaSpell[this.keBerapa] + ' Uring';
} else {
if (this.tipeBerapa == 'Weapon') {
sell_mc.xinfo = infoWeapon[this.keBerapa] + ' (' + this.tipeBerapa + ')';
sell_mc.xprice = 'Price: ' + hargaWeapon[this.keBerapa] + ' Uring';
} else {
if (this.tipeBerapa == 'Shield') {
sell_mc.xinfo = infoShield[this.keBerapa] + ' (' + this.tipeBerapa + ')';
sell_mc.xprice = 'Price: ' + hargaShield[this.keBerapa] + ' Uring';
} else {
if (this.tipeBerapa == 'Armor') {
sell_mc.xinfo = infoArmor[this.keBerapa] + ' (' + this.tipeBerapa + ')';
sell_mc.xprice = 'Price: ' + hargaArmor[this.keBerapa] + ' Uring';
} else {
if (this.tipeBerapa == 'Finery') {
sell_mc.xinfo = infoFinery[this.keBerapa] + ' (' + this.tipeBerapa + ')';
sell_mc.xprice = 'Price: ' + hargaFinery[this.keBerapa] + ' Uring';
}
}
}
}
}
}
yangDiklik = this.tipeBerapa;
yangPosisi = this.keBerapa;
yangItemPos = this;
} else {
backMoney();
if (pilihanAwal == 1) {
--_root['itemPunya' + yangPosisi];
uring += hargaItem[yangPosisi];
} else {
if (pilihanAwal == 2) {
--_root['spellPunya' + yangPosisi];
uring += hargaSpell[yangPosisi];
} else {
if (pilihanAwal == 3) {
--_root['weaponPunya' + yangPosisi];
uring += hargaItem[yangPosisi];
} else {
if (pilihanAwal == 4) {
--_root['shieldPunya' + yangPosisi];
uring += hargaItem[yangPosisi];
} else {
if (pilihanAwal == 5) {
--_root['armorPunya' + yangPosisi];
uring += hargaItem[yangPosisi];
} else {
if (pilihanAwal == 6) {
--_root['fineryPunya' + yangPosisi];
uring += hargaItem[yangPosisi];
}
}
}
}
}
}
sellItemKe();
cekHalamanSell();
}
}
function cekHalamanSell() {
sell_mc.pageKe = 'Page: ' + halamanKe + '/4';
i = 1;
while (i <= 25) {
sell_mc['item' + i]._visible = false;
sell_mc['item' + i].tandaList._visible = false;
++i;
}
if (halamanKe == 1) {
i = 1;
while (i <= 25) {
if (masukItem[i] != undefined) {
sell_mc['item' + i]._visible = true;
if (tipeItem[i] == 'Item') {
sell_mc['item' + i].namaItem = namaItem[masukItem[i]];
sell_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Spell') {
sell_mc['item' + i].namaItem = namaSpell[masukItem[i]];
sell_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Weapon') {
sell_mc['item' + i].namaItem = namaWeapon[masukItem[i]];
sell_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Shield') {
sell_mc['item' + i].namaItem = namaShield[masukItem[i]];
sell_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Armor') {
sell_mc['item' + i].namaItem = namaArmor[masukItem[i]];
sell_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Finery') {
sell_mc['item' + i].namaItem = namaFinery[masukItem[i]];
sell_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i]];
}
}
}
}
}
}
sell_mc['item' + i].keBerapa = masukItem[i];
sell_mc['item' + i].tipeBerapa = tipeItem[i];
sell_mc['item' + i].onRelease = klikItemSell;
}
++i;
}
} else {
if (halamanKe == 2) {
i = 1;
while (i <= 25) {
if (masukItem[i + 25] != undefined) {
sell_mc['item' + i]._visible = true;
if (tipeItem[i + 25] == 'Item') {
sell_mc['item' + i].namaItem = namaItem[masukItem[i + 25]];
sell_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i + 25]];
} else {
if (tipeItem[i + 25] == 'Spell') {
sell_mc['item' + i].namaItem = namaSpell[masukItem[i + 25]];
sell_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i + 25]];
} else {
if (tipeItem[i + 25] == 'Weapon') {
sell_mc['item' + i].namaItem = namaWeapon[masukItem[i + 25]];
sell_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 25]];
} else {
if (tipeItem[i + 25] == 'Shield') {
sell_mc['item' + i].namaItem = namaShield[masukItem[i + 25]];
sell_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 25]];
} else {
if (tipeItem[i + 25] == 'Armor') {
sell_mc['item' + i].namaItem = namaArmor[masukItem[i + 25]];
sell_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i + 25]];
} else {
if (tipeItem[i + 25] == 'Finery') {
sell_mc['item' + i].namaItem = namaFinery[masukItem[i + 25]];
sell_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 25]];
}
}
}
}
}
}
sell_mc['item' + i].keBerapa = masukItem[i + 25];
sell_mc['item' + i].tipeBerapa = tipeItem[i + 25];
sell_mc['item' + i].onRelease = klikItemSell;
}
++i;
}
} else {
if (halamanKe == 3) {
i = 1;
while (i <= 25) {
if (masukItem[i + 50] != undefined) {
sell_mc['item' + i]._visible = true;
if (tipeItem[i + 50] == 'Item') {
sell_mc['item' + i].namaItem = namaItem[masukItem[i + 50]];
sell_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i + 50]];
} else {
if (tipeItem[i + 50] == 'Spell') {
sell_mc['item' + i].namaItem = namaSpell[masukItem[i + 50]];
sell_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i + 50]];
} else {
if (tipeItem[i + 50] == 'Weapon') {
sell_mc['item' + i].namaItem = namaWeapon[masukItem[i + 50]];
sell_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 50]];
} else {
if (tipeItem[i + 50] == 'Shield') {
sell_mc['item' + i].namaItem = namaShield[masukItem[i + 50]];
sell_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 50]];
} else {
if (tipeItem[i + 50] == 'Armor') {
sell_mc['item' + i].namaItem = namaArmor[masukItem[i + 50]];
sell_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i + 50]];
} else {
if (tipeItem[i + 50] == 'Finery') {
sell_mc['item' + i].namaItem = namaFinery[masukItem[i + 50]];
sell_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 50]];
}
}
}
}
}
}
sell_mc['item' + i].keBerapa = masukItem[i + 50];
sell_mc['item' + i].tipeBerapa = tipeItem[i + 50];
sell_mc['item' + i].onRelease = klikItemSell;
}
++i;
}
} else {
if (halamanKe == 4) {
i = 1;
while (i <= 25) {
if (masukItem[i + 75] != undefined) {
sell_mc['item' + i]._visible = true;
if (tipeItem[i + 75] == 'Item') {
sell_mc['item' + i].namaItem = namaItem[masukItem[i + 75]];
sell_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i + 75]];
} else {
if (tipeItem[i + 75] == 'Spell') {
sell_mc['item' + i].namaItem = namaSpell[masukItem[i + 75]];
sell_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i + 75]];
} else {
if (tipeItem[i + 75] == 'Weapon') {
sell_mc['item' + i].namaItem = namaWeapon[masukItem[i + 75]];
sell_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 75]];
} else {
if (tipeItem[i + 75] == 'Shield') {
sell_mc['item' + i].namaItem = namaShield[masukItem[i + 75]];
sell_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 75]];
} else {
if (tipeItem[i + 75] == 'Armor') {
sell_mc['item' + i].namaItem = namaArmor[masukItem[i + 75]];
sell_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i + 75]];
} else {
if (tipeItem[i + 75] == 'Finery') {
sell_mc['item' + i].namaItem = namaFinery[masukItem[i + 75]];
sell_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 75]];
}
}
}
}
}
}
sell_mc['item' + i].keBerapa = masukItem[i + 75];
sell_mc['item' + i].tipeBerapa = tipeItem[i + 75];
sell_mc['item' + i].onRelease = klikItemSell;
}
++i;
}
}
}
}
}
}
stop();
hargaItem = new Array('', 50, 500, 5000, 50, 500, 5000, 250, 150, 100, 200, 500, 1000, 1500, 2000, 2500, 500, 1000, 1500, 2000, 2500, 800, 1600, 3200, 10000, 15000, 20000, 25000, 30000, 50000, 50000, 50000, 50000, 25, 25, 5000, 100, 5000, 5000, 20000, 20000, 50000, 50000, 75000, 2000, 2000, 3000, 3000, 4000, 5000, 7500, 3000, 3000, 3000, 3000, 3000, 7500, 4000, 5000, 50000, 50000, 50000, 50000, 50000, 50000, 50000, 50000, 50000, 2000000, 2000000, 2000000, 10000, 1000, 100, 10, 20000, 100000, 100000, 100000, 100000, 100000, 100000, 0);
hargaSpell = new Array('', 500, 1000, 2000, 500, 1000, 2000, 1000, 2000, 3000, 2000, 5000, 40000, 10000, 7500, 10000, 15000, 7500, 7500, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 30000, 20000, 20000, 10000, 10000, 75000, 10000);
costMP = new Array(0, 50, 100, 200, 60, 120, 240, 100, 200, 400, 150, 200, 1500, 400, 200, 400, 800, 500, 500, 250, 250, 250, 250, 250, 250, 1250, 250, 250, 1000, 750, 750, 500, 500, 2000, 1750);
hargaWeapon = new Array('', 250, 500, 1000, 5000, 7500, 10000, 15000, 300, 600, 2000, 5000, 7500, 10000, 15000, 350, 1000, 2500, 5000, 7500, 15000, 400, 1000, 1500, 2500, 7500, 10000, 450, 2000, 1500, 7500, 10000, 15000, 500, 1500, 2500, 5000, 15000, 15000, 200000, 200000, 200000, 200000, 200000, 200000);
hargaShield = new Array('', 500, 1000, 2000, 4000, 8000, 600, 1200, 2400, 4800, 9600, 700, 1400, 2800, 5400, 10800, 800, 1600, 3200, 6400, 12800, 900, 1800, 3600, 7200, 14400, 1000, 2000, 4000, 8000, 16000, 150000, 150000, 150000, 150000, 150000, 300000);
hargaArmor = new Array('', 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500);
hargaFinery = new Array('', 1000, 2000, 3000, 4000, 5000, 1000, 2000, 3000, 4000, 5000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 7500, 10000, 12500, 15000, 15000, 3500, 3500, 10000, 7500, 7500, 7500, 7500, 10000, 20000, 20000, 100000, 50000, 100000, 200000);
i = 1;
while (i <= 83) {
hargaItem[i] = Math.ceil(hargaItem[i] * 0.5);
++i;
}
i = 1;
while (i <= 34) {
hargaSpell[i] = Math.ceil(hargaSpell[i] * 0.5);
++i;
}
i = 1;
while (i <= 44) {
hargaWeapon[i] = Math.ceil(hargaWeapon[i] * 0.5);
++i;
}
i = 1;
while (i <= 36) {
hargaShield[i] = Math.ceil(hargaShield[i] * 0.5);
++i;
}
i = 1;
while (i <= 40) {
hargaArmor[i] = Math.ceil(hargaArmor[i] * 0.5);
++i;
}
i = 1;
while (i <= 40) {
hargaFinery[i] = Math.ceil(hargaFinery[i] * 0.5);
++i;
}
sell_mc.item_mc.gotoAndStop(2);
sell_mc.spell_mc.gotoAndStop(1);
sell_mc.weapon_mc.gotoAndStop(1);
sell_mc.armor_mc.gotoAndStop(1);
sell_mc.shield_mc.gotoAndStop(1);
sell_mc.finery_mc.gotoAndStop(1);
sell_mc.item_mc.onRelease = function () {
backKlik();
pilihanAwal = 1;
halamanKe = 1;
sellItemKe();
cekHalamanSell();
sell_mc.item_mc.gotoAndStop(2);
sell_mc.spell_mc.gotoAndStop(1);
sell_mc.weapon_mc.gotoAndStop(1);
sell_mc.armor_mc.gotoAndStop(1);
sell_mc.shield_mc.gotoAndStop(1);
sell_mc.finery_mc.gotoAndStop(1);
};
sell_mc.spell_mc.onRelease = function () {
backKlik();
pilihanAwal = 2;
halamanKe = 1;
sellItemKe();
cekHalamanSell();
sell_mc.item_mc.gotoAndStop(1);
sell_mc.spell_mc.gotoAndStop(2);
sell_mc.weapon_mc.gotoAndStop(1);
sell_mc.armor_mc.gotoAndStop(1);
sell_mc.shield_mc.gotoAndStop(1);
sell_mc.finery_mc.gotoAndStop(1);
};
sell_mc.weapon_mc.onRelease = function () {
backKlik();
pilihanAwal = 3;
halamanKe = 1;
sellItemKe();
cekHalamanSell();
sell_mc.item_mc.gotoAndStop(1);
sell_mc.spell_mc.gotoAndStop(1);
sell_mc.weapon_mc.gotoAndStop(2);
sell_mc.armor_mc.gotoAndStop(1);
sell_mc.shield_mc.gotoAndStop(1);
sell_mc.finery_mc.gotoAndStop(1);
};
sell_mc.shield_mc.onRelease = function () {
backKlik();
pilihanAwal = 4;
halamanKe = 1;
sellItemKe();
cekHalamanSell();
sell_mc.item_mc.gotoAndStop(1);
sell_mc.spell_mc.gotoAndStop(1);
sell_mc.weapon_mc.gotoAndStop(1);
sell_mc.armor_mc.gotoAndStop(1);
sell_mc.shield_mc.gotoAndStop(2);
sell_mc.finery_mc.gotoAndStop(1);
};
sell_mc.armor_mc.onRelease = function () {
backKlik();
pilihanAwal = 5;
halamanKe = 1;
sellItemKe();
cekHalamanSell();
sell_mc.item_mc.gotoAndStop(1);
sell_mc.spell_mc.gotoAndStop(1);
sell_mc.weapon_mc.gotoAndStop(1);
sell_mc.armor_mc.gotoAndStop(2);
sell_mc.shield_mc.gotoAndStop(1);
sell_mc.finery_mc.gotoAndStop(1);
};
sell_mc.finery_mc.onRelease = function () {
backKlik();
pilihanAwal = 6;
halamanKe = 1;
sellItemKe();
cekHalamanSell();
sell_mc.item_mc.gotoAndStop(1);
sell_mc.spell_mc.gotoAndStop(1);
sell_mc.weapon_mc.gotoAndStop(1);
sell_mc.armor_mc.gotoAndStop(1);
sell_mc.shield_mc.gotoAndStop(1);
sell_mc.finery_mc.gotoAndStop(2);
};
sell_mc.next_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
if (halamanKe == 1) {
halamanKe = 2;
} else {
if (halamanKe == 2) {
halamanKe = 3;
} else {
if (halamanKe == 3) {
halamanKe = 4;
} else {
if (halamanKe == 4) {
halamanKe = 1;
}
}
}
}
cekHalamanSell();
};
sell_mc.prev_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
if (halamanKe == 4) {
halamanKe = 3;
} else {
if (halamanKe == 3) {
halamanKe = 2;
} else {
if (halamanKe == 2) {
halamanKe = 1;
} else {
if (halamanKe == 1) {
halamanKe = 4;
}
}
}
}
cekHalamanSell();
};
}
frame 323 {
function duplicateItemKe() {
pilihSemuaArea = false;
karakterPilih_mc._visible = false;
duplicate_mc.xinfo = '';
duplicate_mc.back_btn.onRelease = function () {
backKlik();
duplicate_mc._visible = false;
};
masukItem = new Array();
tipeItem = new Array();
keItem = 1;
if (pilihanAwal == 1) {
i = 1;
while (i <= 75) {
if (_root['itemPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Item';
++keItem;
}
++i;
}
i = 82;
while (i <= 83) {
if (_root['itemPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Item';
++keItem;
}
++i;
}
} else {
if (pilihanAwal == 2) {
i = 1;
while (i <= 34) {
if (_root['spellPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Spell';
++keItem;
}
++i;
}
} else {
if (pilihanAwal == 3) {
i = 1;
while (i <= 44) {
if (_root['weaponPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Weapon';
++keItem;
}
++i;
}
} else {
if (pilihanAwal == 4) {
i = 1;
while (i <= 36) {
if (_root['shieldPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Shield';
++keItem;
}
++i;
}
} else {
if (pilihanAwal == 5) {
i = 1;
while (i <= 40) {
if (_root['armorPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Armor';
++keItem;
}
++i;
}
} else {
if (pilihanAwal == 6) {
i = 1;
while (i <= 40) {
if (_root['fineryPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Finery';
++keItem;
}
++i;
}
}
}
}
}
}
}
}
function klikItem() {
if (this.tandaList._visible == false) {
karakterPilih_mc._visible = false;
i = 1;
while (i <= 25) {
duplicate_mc['item' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
if (this.tipeBerapa == 'Item') {
duplicate_mc.xinfo = infoItem[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Spell') {
duplicate_mc.xinfo = infoSpell[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Weapon') {
duplicate_mc.xinfo = infoWeapon[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Shield') {
duplicate_mc.xinfo = infoShield[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Armor') {
duplicate_mc.xinfo = infoArmor[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Finery') {
duplicate_mc.xinfo = infoFinery[this.keBerapa] + ' (' + this.tipeBerapa + ')';
}
}
}
}
}
}
yangDiklik = this.tipeBerapa;
yangPosisi = this.keBerapa;
yangItemPos = this;
} else {
if (pilihanAwal == 1) {
if (_root.itemPunya76 >= 1) {
_root['itemPunya' + yangPosisi] *= 2;
if (_root['itemPunya' + yangPosisi] >= 100) {
_root['itemPunya' + yangPosisi] = 100;
}
--_root.itemPunya76;
}
} else {
if (pilihanAwal == 2) {
if (_root.itemPunya77 >= 1) {
_root['spellPunya' + yangPosisi] *= 2;
if (_root['spellPunya' + yangPosisi] >= 100) {
_root['spellPunya' + yangPosisi] = 100;
}
--_root.itemPunya77;
}
} else {
if (pilihanAwal == 3) {
if (_root.itemPunya78 >= 1) {
_root['weaponPunya' + yangPosisi] *= 2;
if (_root['weaponPunya' + yangPosisi] >= 100) {
_root['weaponPunya' + yangPosisi] = 100;
}
--_root.itemPunya78;
}
} else {
if (pilihanAwal == 4) {
if (_root.itemPunya79 >= 1) {
_root['shieldPunya' + yangPosisi] *= 2;
if (_root['shieldPunya' + yangPosisi] >= 100) {
_root['shieldPunya' + yangPosisi] = 100;
}
--_root.itemPunya79;
}
} else {
if (pilihanAwal == 5) {
if (_root.itemPunya80 >= 1) {
_root['armorPunya' + yangPosisi] *= 2;
if (_root['armorPunya' + yangPosisi] >= 100) {
_root['armorPunya' + yangPosisi] = 100;
}
--_root.itemPunya80;
}
} else {
if (pilihanAwal == 6) {
if (_root.itemPunya81 >= 1) {
_root['fineryPunya' + yangPosisi] *= 2;
if (_root['fineryPunya' + yangPosisi] >= 100) {
_root['fineryPunya' + yangPosisi] = 100;
}
--_root.itemPunya81;
}
}
}
}
}
}
}
duplicateItemKe();
cekHalamanDuplicate();
}
}
function cekHalamanDuplicate() {
duplicate_mc.xjumlah1 = _root.itemPunya76;
duplicate_mc.xjumlah2 = _root.itemPunya77;
duplicate_mc.xjumlah3 = _root.itemPunya78;
duplicate_mc.xjumlah4 = _root.itemPunya79;
duplicate_mc.xjumlah5 = _root.itemPunya80;
duplicate_mc.xjumlah6 = _root.itemPunya81;
duplicate_mc.pageKe = 'Page: ' + halamanKe + '/4';
i = 1;
while (i <= 25) {
duplicate_mc['item' + i]._visible = false;
duplicate_mc['item' + i].tandaList._visible = false;
++i;
}
if (halamanKe == 1) {
i = 1;
while (i <= 25) {
if (masukItem[i] != undefined) {
duplicate_mc['item' + i]._visible = true;
if (tipeItem[i] == 'Item') {
duplicate_mc['item' + i].namaItem = namaItem[masukItem[i]];
duplicate_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Spell') {
duplicate_mc['item' + i].namaItem = namaSpell[masukItem[i]];
duplicate_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Weapon') {
duplicate_mc['item' + i].namaItem = namaWeapon[masukItem[i]];
duplicate_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Shield') {
duplicate_mc['item' + i].namaItem = namaShield[masukItem[i]];
duplicate_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Armor') {
duplicate_mc['item' + i].namaItem = namaArmor[masukItem[i]];
duplicate_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Finery') {
duplicate_mc['item' + i].namaItem = namaFinery[masukItem[i]];
duplicate_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i]];
}
}
}
}
}
}
duplicate_mc['item' + i].keBerapa = masukItem[i];
duplicate_mc['item' + i].tipeBerapa = tipeItem[i];
duplicate_mc['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 2) {
i = 1;
while (i <= 25) {
if (masukItem[i + 25] != undefined) {
duplicate_mc['item' + i]._visible = true;
if (tipeItem[i + 25] == 'Item') {
duplicate_mc['item' + i].namaItem = namaItem[masukItem[i + 25]];
duplicate_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i + 25]];
} else {
if (tipeItem[i + 25] == 'Spell') {
duplicate_mc['item' + i].namaItem = namaSpell[masukItem[i + 25]];
duplicate_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i + 25]];
} else {
if (tipeItem[i + 25] == 'Weapon') {
duplicate_mc['item' + i].namaItem = namaWeapon[masukItem[i + 25]];
duplicate_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 25]];
} else {
if (tipeItem[i + 25] == 'Shield') {
duplicate_mc['item' + i].namaItem = namaShield[masukItem[i + 25]];
duplicate_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 25]];
} else {
if (tipeItem[i + 25] == 'Armor') {
duplicate_mc['item' + i].namaItem = namaArmor[masukItem[i + 25]];
duplicate_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i + 25]];
} else {
if (tipeItem[i + 25] == 'Finery') {
duplicate_mc['item' + i].namaItem = namaFinery[masukItem[i + 25]];
duplicate_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 25]];
}
}
}
}
}
}
duplicate_mc['item' + i].keBerapa = masukItem[i + 25];
duplicate_mc['item' + i].tipeBerapa = tipeItem[i + 25];
duplicate_mc['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 3) {
i = 1;
while (i <= 25) {
if (masukItem[i + 50] != undefined) {
duplicate_mc['item' + i]._visible = true;
if (tipeItem[i + 50] == 'Item') {
duplicate_mc['item' + i].namaItem = namaItem[masukItem[i + 50]];
duplicate_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i + 50]];
} else {
if (tipeItem[i + 50] == 'Spell') {
duplicate_mc['item' + i].namaItem = namaSpell[masukItem[i + 50]];
duplicate_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i + 50]];
} else {
if (tipeItem[i + 50] == 'Weapon') {
duplicate_mc['item' + i].namaItem = namaWeapon[masukItem[i + 50]];
duplicate_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 50]];
} else {
if (tipeItem[i + 50] == 'Shield') {
duplicate_mc['item' + i].namaItem = namaShield[masukItem[i + 50]];
duplicate_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 50]];
} else {
if (tipeItem[i + 50] == 'Armor') {
duplicate_mc['item' + i].namaItem = namaArmor[masukItem[i + 50]];
duplicate_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i + 50]];
} else {
if (tipeItem[i + 50] == 'Finery') {
duplicate_mc['item' + i].namaItem = namaFinery[masukItem[i + 50]];
duplicate_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 50]];
}
}
}
}
}
}
duplicate_mc['item' + i].keBerapa = masukItem[i + 50];
duplicate_mc['item' + i].tipeBerapa = tipeItem[i + 50];
duplicate_mc['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 4) {
i = 1;
while (i <= 25) {
if (masukItem[i + 75] != undefined) {
duplicate_mc['item' + i]._visible = true;
if (tipeItem[i + 75] == 'Item') {
duplicate_mc['item' + i].namaItem = namaItem[masukItem[i + 75]];
duplicate_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i + 75]];
} else {
if (tipeItem[i + 75] == 'Spell') {
duplicate_mc['item' + i].namaItem = namaSpell[masukItem[i + 75]];
duplicate_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i + 75]];
} else {
if (tipeItem[i + 75] == 'Weapon') {
duplicate_mc['item' + i].namaItem = namaWeapon[masukItem[i + 75]];
duplicate_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 75]];
} else {
if (tipeItem[i + 75] == 'Shield') {
duplicate_mc['item' + i].namaItem = namaShield[masukItem[i + 75]];
duplicate_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 75]];
} else {
if (tipeItem[i + 75] == 'Armor') {
duplicate_mc['item' + i].namaItem = namaArmor[masukItem[i + 75]];
duplicate_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i + 75]];
} else {
if (tipeItem[i + 75] == 'Finery') {
duplicate_mc['item' + i].namaItem = namaFinery[masukItem[i + 75]];
duplicate_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 75]];
}
}
}
}
}
}
duplicate_mc['item' + i].keBerapa = masukItem[i + 75];
duplicate_mc['item' + i].tipeBerapa = tipeItem[i + 75];
duplicate_mc['item' + i].onRelease = klikItem;
}
++i;
}
}
}
}
}
}
stop();
duplicate_mc.item_mc.gotoAndStop(2);
duplicate_mc.spell_mc.gotoAndStop(1);
duplicate_mc.weapon_mc.gotoAndStop(1);
duplicate_mc.armor_mc.gotoAndStop(1);
duplicate_mc.shield_mc.gotoAndStop(1);
duplicate_mc.finery_mc.gotoAndStop(1);
duplicate_mc.item_mc.onRelease = function () {
backKlik();
pilihanAwal = 1;
halamanKe = 1;
duplicateItemKe();
cekHalamanDuplicate();
duplicate_mc.item_mc.gotoAndStop(2);
duplicate_mc.spell_mc.gotoAndStop(1);
duplicate_mc.weapon_mc.gotoAndStop(1);
duplicate_mc.armor_mc.gotoAndStop(1);
duplicate_mc.shield_mc.gotoAndStop(1);
duplicate_mc.finery_mc.gotoAndStop(1);
};
duplicate_mc.spell_mc.onRelease = function () {
backKlik();
pilihanAwal = 2;
halamanKe = 1;
duplicateItemKe();
cekHalamanDuplicate();
duplicate_mc.item_mc.gotoAndStop(1);
duplicate_mc.spell_mc.gotoAndStop(2);
duplicate_mc.weapon_mc.gotoAndStop(1);
duplicate_mc.armor_mc.gotoAndStop(1);
duplicate_mc.shield_mc.gotoAndStop(1);
duplicate_mc.finery_mc.gotoAndStop(1);
};
duplicate_mc.weapon_mc.onRelease = function () {
backKlik();
pilihanAwal = 3;
halamanKe = 1;
duplicateItemKe();
cekHalamanDuplicate();
duplicate_mc.item_mc.gotoAndStop(1);
duplicate_mc.spell_mc.gotoAndStop(1);
duplicate_mc.weapon_mc.gotoAndStop(2);
duplicate_mc.armor_mc.gotoAndStop(1);
duplicate_mc.shield_mc.gotoAndStop(1);
duplicate_mc.finery_mc.gotoAndStop(1);
};
duplicate_mc.shield_mc.onRelease = function () {
backKlik();
pilihanAwal = 4;
halamanKe = 1;
duplicateItemKe();
cekHalamanDuplicate();
duplicate_mc.item_mc.gotoAndStop(1);
duplicate_mc.spell_mc.gotoAndStop(1);
duplicate_mc.weapon_mc.gotoAndStop(1);
duplicate_mc.armor_mc.gotoAndStop(1);
duplicate_mc.shield_mc.gotoAndStop(2);
duplicate_mc.finery_mc.gotoAndStop(1);
};
duplicate_mc.armor_mc.onRelease = function () {
backKlik();
pilihanAwal = 5;
halamanKe = 1;
duplicateItemKe();
cekHalamanDuplicate();
duplicate_mc.item_mc.gotoAndStop(1);
duplicate_mc.spell_mc.gotoAndStop(1);
duplicate_mc.weapon_mc.gotoAndStop(1);
duplicate_mc.armor_mc.gotoAndStop(2);
duplicate_mc.shield_mc.gotoAndStop(1);
duplicate_mc.finery_mc.gotoAndStop(1);
};
duplicate_mc.finery_mc.onRelease = function () {
backKlik();
pilihanAwal = 6;
halamanKe = 1;
duplicateItemKe();
cekHalamanDuplicate();
duplicate_mc.item_mc.gotoAndStop(1);
duplicate_mc.spell_mc.gotoAndStop(1);
duplicate_mc.weapon_mc.gotoAndStop(1);
duplicate_mc.armor_mc.gotoAndStop(1);
duplicate_mc.shield_mc.gotoAndStop(1);
duplicate_mc.finery_mc.gotoAndStop(2);
};
duplicate_mc.xjumlah1 = _root.itemPunya76;
duplicate_mc.xjumlah2 = _root.itemPunya77;
duplicate_mc.xjumlah3 = _root.itemPunya78;
duplicate_mc.xjumlah4 = _root.itemPunya79;
duplicate_mc.xjumlah5 = _root.itemPunya80;
duplicate_mc.xjumlah6 = _root.itemPunya81;
duplicate_mc.next_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
if (halamanKe == 1) {
halamanKe = 2;
} else {
if (halamanKe == 2) {
halamanKe = 3;
} else {
if (halamanKe == 3) {
halamanKe = 4;
} else {
if (halamanKe == 4) {
halamanKe = 1;
}
}
}
}
cekHalamanDuplicate();
};
duplicate_mc.prev_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
if (halamanKe == 4) {
halamanKe = 3;
} else {
if (halamanKe == 3) {
halamanKe = 2;
} else {
if (halamanKe == 2) {
halamanKe = 1;
} else {
if (halamanKe == 1) {
halamanKe = 4;
}
}
}
}
cekHalamanDuplicate();
};
}
frame 323 {
function cekArah() {
i = 1;
while (i <= 40) {
_root['posisi' + i].gotoAndStop(1);
delete _root['posisi' + i].onRelease;
++i;
}
if (posisiKini == 1) {
i = 1;
while (i <= jalur1.length) {
_root['posisi' + jalur1[i]].gotoAndPlay(2);
_root['posisi' + jalur1[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 2) {
i = 1;
while (i <= jalur2.length) {
_root['posisi' + jalur2[i]].gotoAndPlay(2);
_root['posisi' + jalur2[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 3) {
i = 1;
while (i <= jalur3.length) {
_root['posisi' + jalur3[i]].gotoAndPlay(2);
_root['posisi' + jalur3[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 4) {
i = 1;
while (i <= jalur4.length) {
_root['posisi' + jalur4[i]].gotoAndPlay(2);
_root['posisi' + jalur4[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 5) {
i = 1;
while (i <= jalur5.length) {
_root['posisi' + jalur5[i]].gotoAndPlay(2);
_root['posisi' + jalur5[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 6) {
i = 1;
while (i <= jalur6.length) {
_root['posisi' + jalur6[i]].gotoAndPlay(2);
_root['posisi' + jalur6[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 7) {
i = 1;
while (i <= jalur7.length) {
_root['posisi' + jalur7[i]].gotoAndPlay(2);
_root['posisi' + jalur7[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 8) {
i = 1;
while (i <= jalur8.length) {
_root['posisi' + jalur8[i]].gotoAndPlay(2);
_root['posisi' + jalur8[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 9) {
i = 1;
while (i <= jalur9.length) {
_root['posisi' + jalur9[i]].gotoAndPlay(2);
_root['posisi' + jalur9[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 10) {
i = 1;
while (i <= jalur10.length) {
_root['posisi' + jalur10[i]].gotoAndPlay(2);
_root['posisi' + jalur10[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 11) {
i = 1;
while (i <= jalur11.length) {
_root['posisi' + jalur11[i]].gotoAndPlay(2);
_root['posisi' + jalur11[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 12) {
i = 1;
while (i <= jalur12.length) {
_root['posisi' + jalur12[i]].gotoAndPlay(2);
_root['posisi' + jalur12[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 13) {
i = 1;
while (i <= jalur13.length) {
_root['posisi' + jalur13[i]].gotoAndPlay(2);
_root['posisi' + jalur13[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 14) {
i = 1;
while (i <= jalur14.length) {
_root['posisi' + jalur14[i]].gotoAndPlay(2);
_root['posisi' + jalur14[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 15) {
i = 1;
while (i <= jalur15.length) {
_root['posisi' + jalur15[i]].gotoAndPlay(2);
_root['posisi' + jalur15[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 16) {
i = 1;
while (i <= jalur16.length) {
_root['posisi' + jalur16[i]].gotoAndPlay(2);
_root['posisi' + jalur16[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 17) {
i = 1;
while (i <= jalur17.length) {
_root['posisi' + jalur17[i]].gotoAndPlay(2);
_root['posisi' + jalur17[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 18) {
i = 1;
while (i <= jalur18.length) {
_root['posisi' + jalur18[i]].gotoAndPlay(2);
_root['posisi' + jalur18[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 19) {
i = 1;
while (i <= jalur19.length) {
_root['posisi' + jalur19[i]].gotoAndPlay(2);
_root['posisi' + jalur19[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 20) {
i = 1;
while (i <= jalur20.length) {
_root['posisi' + jalur20[i]].gotoAndPlay(2);
_root['posisi' + jalur20[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 21) {
i = 1;
while (i <= jalur21.length) {
_root['posisi' + jalur21[i]].gotoAndPlay(2);
_root['posisi' + jalur21[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 22) {
i = 1;
while (i <= jalur22.length) {
_root['posisi' + jalur22[i]].gotoAndPlay(2);
_root['posisi' + jalur22[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 23) {
i = 1;
while (i <= jalur23.length) {
_root['posisi' + jalur23[i]].gotoAndPlay(2);
_root['posisi' + jalur23[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 24) {
i = 1;
while (i <= jalur24.length) {
_root['posisi' + jalur24[i]].gotoAndPlay(2);
_root['posisi' + jalur24[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 25) {
i = 1;
while (i <= jalur25.length) {
_root['posisi' + jalur25[i]].gotoAndPlay(2);
_root['posisi' + jalur25[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 26) {
i = 1;
while (i <= jalur26.length) {
_root['posisi' + jalur26[i]].gotoAndPlay(2);
_root['posisi' + jalur26[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 27) {
i = 1;
while (i <= jalur27.length) {
_root['posisi' + jalur27[i]].gotoAndPlay(2);
_root['posisi' + jalur27[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 28) {
i = 1;
while (i <= jalur28.length) {
_root['posisi' + jalur28[i]].gotoAndPlay(2);
_root['posisi' + jalur28[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 29) {
i = 1;
while (i <= jalur29.length) {
_root['posisi' + jalur29[i]].gotoAndPlay(2);
_root['posisi' + jalur29[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 30) {
i = 1;
while (i <= jalur30.length) {
_root['posisi' + jalur30[i]].gotoAndPlay(2);
_root['posisi' + jalur30[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 31) {
i = 1;
while (i <= jalur31.length) {
_root['posisi' + jalur31[i]].gotoAndPlay(2);
_root['posisi' + jalur31[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 32) {
i = 1;
while (i <= jalur32.length) {
_root['posisi' + jalur32[i]].gotoAndPlay(2);
_root['posisi' + jalur32[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 33) {
i = 1;
while (i <= jalur33.length) {
_root['posisi' + jalur33[i]].gotoAndPlay(2);
_root['posisi' + jalur33[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 34) {
i = 1;
while (i <= jalur34.length) {
_root['posisi' + jalur34[i]].gotoAndPlay(2);
_root['posisi' + jalur34[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 35) {
i = 1;
while (i <= jalur35.length) {
_root['posisi' + jalur35[i]].gotoAndPlay(2);
_root['posisi' + jalur35[i]].onRelease = klikPosisi;
++i;
}
} else {
if (posisiKini == 36) {
i = 1;
while (i <= jalur36.length) {
_root['posisi' + jalur36[i]].gotoAndPlay(2);
_root['posisi' + jalur36[i]].onRelease = klikPosisi;
++i;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function klikPosisi() {
backKlik();
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = Number(myStr.substr(myStr.length - 1, 1));
} else {
indi = Number(myStr.substr(myStr.length - 2, 2));
}
i = 1;
while (i <= 40) {
_root['posisi' + i].gotoAndStop(1);
delete _root['posisi' + i].onRelease;
++i;
}
pilihan_mc.gotoAndStop(15);
posisiAkhir = indi;
jagoan_mc.posX = _root['posisi' + indi]._x;
jagoan_mc.posY = _root['posisi' + indi]._y + 10;
jagoan_mc.speed = 2;
jagoan_mc.onEnterFrame = enterJagoan;
}
function enterJagoan() {
deltaX = this._x - this.posX;
deltaY = this._y - this.posY;
angle = -Math.atan2(deltaX, deltaY) / 0.0174532925199433;
if (Math.sqrt(deltaX * deltaX + deltaY * deltaY) > this.speed) {
this.speed += 0.1;
this._y -= this.speed * Math.cos(angle * 0.0174532925199433);
this._x += this.speed * Math.sin(angle * 0.0174532925199433);
} else {
awalMasukCave = true;
posisiSebelumnya = posisiKini;
posisiKini = posisiAkhir;
cekAsalMuasal();
tombolAwal();
delete this.onEnterFrame;
sudahKlikArea = true;
if (tutorialAda == true) {
if (adaTutorial1 == true) {
if (sudahKlikStatus == true) {
tutorial_mc.gotoAndStop(14);
}
}
}
}
}
}
frame 323 {
function cekAsalMuasal() {
if (posisiKini == 2 || posisiKini == 4 || posisiKini == 5 || posisiKini == 6 || posisiKini == 8 || posisiKini == 16 || posisiKini == 20 || posisiKini == 22 || posisiKini == 23 || posisiKini == 25 || posisiKini == 27 || posisiKini == 28) {
if (_root['sudahMenangBenteng' + posisiKini] > 0) {
asalMuasal = 2;
} else {
asalMuasal = 6;
}
} else {
if (posisiKini == 10 || posisiKini == 13 || posisiKini == 17 || posisiKini == 12 || posisiKini == 24 || posisiKini == 30 || posisiKini == 37 || posisiKini == 34 || posisiKini == 39) {
if (awalMasukCave == true) {
asalMuasal = 3;
} else {
asalMuasal = 7;
}
} else {
if (posisiKini == 31) {
asalMuasal = 20;
} else {
if (posisiKini == 15) {
if (_root['sudahMenangBenteng' + posisiKini] > 0) {
asalMuasal = 2;
} else {
asalMuasal = 1;
}
} else {
if (posisiKini == 18) {
asalMuasal = 8;
} else {
if (posisiKini == 35) {
asalMuasal = 22;
} else {
if (posisiKini == 36) {
asalMuasal = 2;
} else {
if (posisiKini == 32) {
asalMuasal = 40;
} else {
if (posisiKini == 33) {
asalMuasal = 21;
} else {
if (posisiKini == 38) {
asalMuasal = 23;
} else {
asalMuasal = 1;
}
}
}
}
}
}
}
}
}
}
if (asalMuasal == 1) {
pilihan_mc.gotoAndStop(1);
} else {
if (asalMuasal == 2) {
pilihan_mc.gotoAndStop(2);
pilihan_mc.fightKe = 'Battle: ' + (_root['xsudahMenangBenteng' + posisiKini] - (_root['sudahMenangBenteng' + posisiKini] - 1)) + ' / ' + _root['xsudahMenangBenteng' + posisiKini];
if (_root['xsudahMenangBenteng' + posisiKini] - (_root['sudahMenangBenteng' + posisiKini] - 1) > _root['xsudahMenangBenteng' + posisiKini]) {
pilihan_mc.fightKe = '';
}
} else {
if (asalMuasal == 3) {
pilihan_mc.gotoAndStop(3);
} else {
if (asalMuasal == 6) {
pilihan_mc.gotoAndStop(6);
} else {
if (asalMuasal == 7) {
pilihan_mc.gotoAndStop(7);
} else {
if (asalMuasal == 8) {
pilihan_mc.gotoAndStop(8);
} else {
if (asalMuasal == 20) {
pilihan_mc.gotoAndStop(20);
if (sudahKlikBox31 == false) {
pilihan_mc.box_btn._visible = true;
} else {
pilihan_mc.box_btn._visible = false;
}
} else {
if (asalMuasal == 21) {
pilihan_mc.gotoAndStop(21);
if (sudahKlikBox33 == false) {
pilihan_mc.box_btn2._visible = true;
} else {
pilihan_mc.box_btn2._visible = false;
}
} else {
if (asalMuasal == 22) {
pilihan_mc.gotoAndStop(22);
if (sudahKlikBox32 == false) {
pilihan_mc.box_btn3._visible = true;
} else {
pilihan_mc.box_btn3._visible = false;
}
} else {
if (asalMuasal == 23) {
pilihan_mc.gotoAndStop(23);
} else {
if (asalMuasal == 40) {
pilihan_mc.gotoAndStop(40);
}
}
}
}
}
}
}
}
}
}
}
if (posisiKini == 3) {
if (sudahKeBar3 == false) {
asalMuasal = 5;
pilihan_mc.gotoAndStop(5);
pilihan_mc.bar_btn.onRelease = function () {
backKlik();
karakter_mc._visible = true;
karakter_mc.indikasi = 'New Protagonist Found';
karakter_mc.monsterList.gotoAndStop(3);
karakter_mc.namaKe = namaKarakter3;
karakter_mc.edit_btn.onRelease = function () {
backKlik();
karakter_mc.gotoAndStop(2);
Selection.setFocus('karakter_mc.nama_txt');
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.nama_txt.text = defaultNama3;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
namaKarakter3 = karakter_mc.nama_txt.text;
gagalNama = false;
if (namaKarakter3 == '' || namaKarakter3 == ' ' || namaKarakter3 == ' ' || namaKarakter3 == ' ' || namaKarakter3 == ' ' || namaKarakter3 == ' ' || namaKarakter3 == ' ' || namaKarakter3 == ' ' || namaKarakter3 == ' ' || namaKarakter3 == ' ') {
namaKarakter3 = defaultNama3;
} else {
if (namaKarakter3 == namaKarakter1) {
gagalNama = true;
} else {
if (namaKarakter3 == namaKarakter2) {
gagalNama = true;
} else {
if (namaKarakter3 == namaKarakter4) {
gagalNama = true;
} else {
if (namaKarakter3 == namaKarakter5) {
gagalNama = true;
} else {
if (namaKarakter3 == namaKarakter6) {
gagalNama = true;
}
}
}
}
}
}
if (gagalNama == false) {
party3 = 3;
sudahKeBar3 = true;
asalMuasal = 1;
pilihan_mc.gotoAndStop(1);
karakter_mc._visible = false;
++jumlahKarakterParty;
sudahKetemu3 = true;
cekAsalMuasal();
tombolAwal();
}
};
};
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.namaKe = defaultNama3;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
namaKarakter3 = karakter_mc.namaKe;
party3 = 3;
sudahKeBar3 = true;
asalMuasal = 1;
pilihan_mc.gotoAndStop(1);
karakter_mc._visible = false;
++jumlahKarakterParty;
sudahKetemu3 = true;
cekAsalMuasal();
tombolAwal();
};
};
} else {
asalMuasal = 1;
pilihan_mc.gotoAndStop(1);
}
} else {
if (posisiKini == 38) {
if (sudahKeLab38 == false) {
pilihan_mc.lab_btn.onRelease = function () {
backKlik();
karakter_mc._visible = true;
karakter_mc.indikasi = 'New Protagonist Found';
karakter_mc.monsterList.gotoAndStop(6);
karakter_mc.namaKe = namaKarakter6;
karakter_mc.edit_btn.onRelease = function () {
backKlik();
karakter_mc.gotoAndStop(2);
Selection.setFocus('karakter_mc.nama_txt');
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.nama_txt.text = defaultNama6;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
gagalNama = false;
if (namaKarakter6 == '' || namaKarakter6 == ' ' || namaKarakter6 == ' ' || namaKarakter6 == ' ' || namaKarakter6 == ' ' || namaKarakter6 == ' ' || namaKarakter6 == ' ' || namaKarakter6 == ' ' || namaKarakter6 == ' ' || namaKarakter6 == ' ') {
namaKarakter6 = defaultNama6;
} else {
if (namaKarakter6 == namaKarakter1) {
gagalNama = true;
} else {
if (namaKarakter6 == namaKarakter2) {
gagalNama = true;
} else {
if (namaKarakter6 == namaKarakter3) {
gagalNama = true;
} else {
if (namaKarakter6 == namaKarakter4) {
gagalNama = true;
} else {
if (namaKarakter6 == namaKarakter5) {
gagalNama = true;
}
}
}
}
}
}
if (gagalNama == false) {
sudahKeLab38 = true;
karakter_mc._visible = false;
++jumlahKarakterParty;
sudahKetemu6 = true;
cekAsalMuasal();
tombolAwal();
}
};
};
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.namaKe = defaultNama6;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
namaKarakter6 = karakter_mc.namaKe;
sudahKeLab38 = true;
karakter_mc._visible = false;
++jumlahKarakterParty;
sudahKetemu6 = true;
cekAsalMuasal();
tombolAwal();
};
};
} else {
pilihan_mc.lab_btn.onRelease = function () {
backKlik();
pilihanShop = 'buy';
gotoAndStop(379);
};
}
}
}
pilihan_mc.namaKota = namaKota[posisiKini];
pilihan_mc.uringKe = uring + ' Uring';
jagoan_mc.gotoAndStop(_root.party1);
jagoan_mc._x = _root['posisi' + posisiKini]._x;
jagoan_mc._y = _root['posisi' + posisiKini]._y + 10;
if (_root.itemPunya75 >= 1) {
flying_btn._visible = true;
} else {
flying_btn._visible = false;
}
}
function tombolAwal() {
pilihan_mc.status_btn.onRelease = function () {
backKlik();
gotoAndStop(324);
};
pilihan_mc.shop_btn2.onRelease = function () {
backKlik();
if (_root.itemPunya68 == 1) {
pilihan_mc.gotoAndStop(24);
pilihan_mc.buy_btn.onRelease = function () {
backKlik();
pilihanShop = 'buy';
gotoAndStop(379);
};
pilihan_mc.sell_btn.onRelease = function () {
backKlik();
sell_mc._visible = true;
pilihanAwal = 1;
halamanKe = 1;
sellItemKe();
cekHalamanSell();
};
if (posisiKini == 1) {
hargaIstirahat = 100;
} else {
if (posisiKini == 3) {
hargaIstirahat = 200;
} else {
if (posisiKini == 7) {
hargaIstirahat = 300;
} else {
if (posisiKini == 9) {
hargaIstirahat = 400;
} else {
if (posisiKini == 11) {
if (duniaBerubah == true) {
hargaIstirahat = 0;
} else {
hargaIstirahat = 500;
}
} else {
if (posisiKini == 14) {
hargaIstirahat = 600;
} else {
if (posisiKini == 15) {
hargaIstirahat = 700;
} else {
if (posisiKini == 18) {
hargaIstirahat = 800;
} else {
if (posisiKini == 19) {
hargaIstirahat = 900;
} else {
if (posisiKini == 21) {
hargaIstirahat = 1000;
} else {
if (posisiKini == 26) {
hargaIstirahat = 1100;
} else {
if (posisiKini == 29) {
hargaIstirahat = 1200;
} else {
if (posisiKini == 31) {
hargaIstirahat = 1500;
}
}
}
}
}
}
}
}
}
}
}
}
}
pilihan_mc.restUring = hargaIstirahat + ' Uring';
pilihan_mc.rest_btn.onRelease = function () {
backSpell();
if (uring >= hargaIstirahat) {
kedip_mc.gotoAndPlay(2);
uring -= hargaIstirahat;
ceRestoreSemua();
i = 1;
while (i <= 40) {
_root['posisi' + i].gotoAndStop(1);
delete _root['posisi' + i].onRelease;
++i;
}
pilihan_mc.gotoAndStop(asalMuasal);
cekAsalMuasal();
tombolAwal();
}
};
pilihan_mc.cancel_btn.onRelease = function () {
backKlik();
cekAsalMuasal();
tombolAwal();
};
} else {
locked_mc.gotoAndPlay(2);
}
};
pilihan_mc.shop_btn.onRelease = function () {
backKlik();
adaKondisiShop = false;
if (posisiKini == 11) {
if (duniaBerubah == true) {
if (_root.itemPunya69 <= 0) {
adaKondisiShop = true;
}
}
}
if (adaKondisiShop == true) {
locked_mc.gotoAndPlay(2);
} else {
pilihan_mc.gotoAndStop(4);
pilihan_mc.buy_btn.onRelease = function () {
backKlik();
pilihanShop = 'buy';
gotoAndStop(379);
};
pilihan_mc.sell_btn.onRelease = function () {
backKlik();
sell_mc._visible = true;
pilihanAwal = 1;
halamanKe = 1;
sellItemKe();
cekHalamanSell();
};
if (posisiKini == 1) {
hargaIstirahat = 100;
} else {
if (posisiKini == 3) {
hargaIstirahat = 200;
} else {
if (posisiKini == 7) {
hargaIstirahat = 300;
} else {
if (posisiKini == 9) {
hargaIstirahat = 400;
} else {
if (posisiKini == 11) {
if (duniaBerubah == true) {
hargaIstirahat = 0;
} else {
hargaIstirahat = 500;
}
} else {
if (posisiKini == 14) {
hargaIstirahat = 600;
} else {
if (posisiKini == 15) {
hargaIstirahat = 700;
} else {
if (posisiKini == 18) {
hargaIstirahat = 800;
} else {
if (posisiKini == 19) {
hargaIstirahat = 900;
} else {
if (posisiKini == 21) {
hargaIstirahat = 1000;
} else {
if (posisiKini == 26) {
hargaIstirahat = 1100;
} else {
if (posisiKini == 29) {
hargaIstirahat = 1200;
}
}
}
}
}
}
}
}
}
}
}
}
pilihan_mc.restUring = hargaIstirahat + ' Uring';
pilihan_mc.rest_btn.onRelease = function () {
backSpell();
if (uring >= hargaIstirahat) {
kedip_mc.gotoAndPlay(2);
uring -= hargaIstirahat;
ceRestoreSemua();
i = 1;
while (i <= 40) {
_root['posisi' + i].gotoAndStop(1);
delete _root['posisi' + i].onRelease;
++i;
}
pilihan_mc.gotoAndStop(asalMuasal);
cekAsalMuasal();
tombolAwal();
}
};
pilihan_mc.cancel_btn.onRelease = function () {
backKlik();
cekAsalMuasal();
tombolAwal();
};
}
};
pilihan_mc.move_btn.onRelease = function () {
backKlik();
pilihan_mc.gotoAndStop(10);
cekArah();
pilihan_mc.cancel_btn.onRelease = function () {
backKlik();
i = 1;
while (i <= 40) {
_root['posisi' + i].gotoAndStop(1);
delete _root['posisi' + i].onRelease;
++i;
}
pilihanShop = 'sell';
pilihan_mc.gotoAndStop(asalMuasal);
cekAsalMuasal();
tombolAwal();
};
if (tutorialAda == true) {
if (adaTutorial1 == true) {
if (sudahKlikStatus == true) {
tutorial_mc.gotoAndStop(13);
pilihan_mc.cancel_btn._visible = false;
pilihan_mc.logo_mc._visible = false;
}
}
}
};
pilihan_mc.box_btn.onRelease = function () {
backKlik();
++_root.fineryPunya39;
sudahKlikBox31 = true;
this._visible = false;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaFinery[39];
};
pilihan_mc.box_btn2.onRelease = function () {
backKlik();
++_root.fineryPunya34;
sudahKlikBox33 = true;
this._visible = false;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaFinery[34];
};
pilihan_mc.box_btn3.onRelease = function () {
backKlik();
++_root.fineryPunya29;
sudahKlikBox32 = true;
this._visible = false;
foundItem_mc.gotoAndPlay(2);
foundItem_mc.itemKe = namaFinery[29];
};
pilihan_mc.battle_btn.onRelease = function () {
sudahKlikBattle = true;
backKlik();
sudahKomplit = false;
if (asalMuasal == 2) {
masukRandomBattle = false;
gotoAndStop(399);
} else {
if (asalMuasal == 6) {
masukRandomBattle = true;
gotoAndStop(399);
} else {
if (asalMuasal == 21) {
masukRandomBattle = false;
gotoAndStop(399);
} else {
if (asalMuasal == 22) {
masukRandomBattle = false;
gotoAndStop(399);
}
}
}
}
};
pilihan_mc.explore_btn.onRelease = function () {
backKlik();
if (posisiKini == 10) {
pilihCave10();
} else {
if (posisiKini == 12) {
pilihCave12();
} else {
if (posisiKini == 13) {
pilihCave13();
} else {
if (posisiKini == 17) {
pilihCave17();
} else {
if (posisiKini == 24) {
pilihCave24();
} else {
if (posisiKini == 30) {
pilihCave30();
} else {
if (posisiKini == 37) {
pilihCave37();
} else {
if (posisiKini == 34) {
pilihCave34();
} else {
if (posisiKini == 39) {
pilihCave39();
}
}
}
}
}
}
}
}
}
};
if (duniaBerubah == true) {
pilihan_mc.examine_btn.enabled = false;
pilihan_mc.examine_btn._alpha = 50;
}
pilihan_mc.examine_btn.onRelease = function () {
backKlik();
cave_mc18._visible = true;
cave_mc18.touch_btn.onRelease = function () {
backKlik();
cave_mc18._visible = false;
posisi38._visible = true;
kedip_mc.gotoAndPlay(10);
duniaBerubah = true;
pilihan_mc.examine_btn.enabled = false;
pilihan_mc.examine_btn._alpha = 50;
};
cave_mc18.away_btn.onRelease = function () {
backKlik();
cave_mc18._visible = false;
};
};
pilihan_mc.duplicate_btn.onRelease = function () {
backKlik();
pilihanAwal = 1;
halamanKe = 1;
duplicateItemKe();
cekHalamanDuplicate();
duplicate_mc._visible = true;
};
}
function ceRestoreSemua() {
i = 1;
while (i <= 6) {
_root['xKiniHP' + i] = _root['xHP' + i];
_root['xKiniMP' + i] = _root['xMP' + i];
_root['status' + i + '1'] = '';
_root['status' + i + '2'] = '';
_root['status' + i + '3'] = '';
++i;
}
}
function overPosisi() {
this.gotoAndPlay(2);
}
function outPosisi() {
this.gotoAndStop(1);
}
function klikPosisi() {
backKlik();
i = 1;
while (i <= 40) {
delete _root['posisi' + i].onRollOver;
delete _root['posisi' + i].onRollOut;
delete _root['posisi' + i].onRelease;
_root['posisi' + i].gotoAndStop(1);
++i;
}
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = Number(myStr.substr(myStr.length - 1, 1));
} else {
indi = Number(myStr.substr(myStr.length - 2, 2));
}
pilihSemuaArea = false;
pilihan_mc.gotoAndStop(15);
posisiAkhir = indi;
jagoan_mc.posX = _root['posisi' + indi]._x;
jagoan_mc.posY = _root['posisi' + indi]._y + 10;
jagoan_mc.speed = 2;
jagoan_mc.onEnterFrame = enterJagoan;
}
function cekPerubahanHPMP(indi) {
if (_root['xLevel' + indi] >= 100) {
_root['xLevel' + indi] = 100;
_root['xLevelUp' + indi] = 0;
}
if (indi != undefined) {
partyKeSiapa = indi;
}
xHPAwal1 = 550 * xLevel1 + tambahanHP1;
xHPAwal2 = 600 * xLevel2 + tambahanHP2;
xHPAwal3 = 525 * xLevel3 + tambahanHP3;
xHPAwal4 = 575 * xLevel4 + tambahanHP4;
xHPAwal5 = 500 * xLevel5 + tambahanHP5;
xHPAwal6 = 475 * xLevel6 + tambahanHP6;
xMPAwal1 = 90 * xLevel1 + tambahanMP1;
xMPAwal2 = 110 * xLevel2 + tambahanMP2;
xMPAwal3 = 70 * xLevel3 + tambahanMP3;
xMPAwal4 = 100 * xLevel4 + tambahanMP4;
xMPAwal5 = 60 * xLevel5 + tambahanMP5;
xMPAwal6 = 50 * xLevel6 + tambahanMP6;
_root['tambahanHPFinery' + partyKeSiapa] = 0;
i = 1;
while (i <= 4) {
if (_root['fineryPasang' + partyKeSiapa + i] == 1) {
_root['tambahanHPFinery' + partyKeSiapa] += 10;
} else {
if (_root['fineryPasang' + partyKeSiapa + i] == 2) {
_root['tambahanHPFinery' + partyKeSiapa] += 20;
} else {
if (_root['fineryPasang' + partyKeSiapa + i] == 3) {
_root['tambahanHPFinery' + partyKeSiapa] += 30;
} else {
if (_root['fineryPasang' + partyKeSiapa + i] == 4) {
_root['tambahanHPFinery' + partyKeSiapa] += 40;
} else {
if (_root['fineryPasang' + partyKeSiapa + i] == 5) {
_root['tambahanHPFinery' + partyKeSiapa] += 50;
}
}
}
}
}
++i;
}
tambahanHP = Math.ceil(_root['xHPAwal' + partyKeSiapa] * (_root['tambahanHPFinery' + partyKeSiapa] / 100));
_root['xHP' + partyKeSiapa] = _root['xHPAwal' + partyKeSiapa] + tambahanHP;
_root['tambahanMPFinery' + partyKeSiapa] = 0;
i = 1;
while (i <= 4) {
if (_root['fineryPasang' + partyKeSiapa + i] == 6) {
_root['tambahanMPFinery' + partyKeSiapa] += 10;
} else {
if (_root['fineryPasang' + partyKeSiapa + i] == 7) {
_root['tambahanMPFinery' + partyKeSiapa] += 20;
} else {
if (_root['fineryPasang' + partyKeSiapa + i] == 8) {
_root['tambahanMPFinery' + partyKeSiapa] += 30;
} else {
if (_root['fineryPasang' + partyKeSiapa + i] == 9) {
_root['tambahanMPFinery' + partyKeSiapa] += 40;
} else {
if (_root['fineryPasang' + partyKeSiapa + i] == 10) {
_root['tambahanMPFinery' + partyKeSiapa] += 50;
}
}
}
}
}
++i;
}
tambahanMP = Math.ceil(_root['xMPAwal' + partyKeSiapa] * (_root['tambahanMPFinery' + partyKeSiapa] / 100));
_root['xMP' + partyKeSiapa] = _root['xMPAwal' + partyKeSiapa] + tambahanMP;
i = 1;
while (i <= 3) {
if (_root['xHP' + _root['party' + i]] >= 99999) {
_root['xHP' + _root['party' + i]] = 99999;
}
if (_root['xMP' + _root['party' + i]] >= 9999) {
_root['xMP' + _root['party' + i]] = 9999;
}
if (_root['xKiniHP' + _root['party' + i]] >= _root['xHP' + _root['party' + i]]) {
_root['xKiniHP' + _root['party' + i]] = _root['xHP' + _root['party' + i]];
}
if (_root['xKiniMP' + _root['party' + i]] >= _root['xMP' + _root['party' + i]]) {
_root['xKiniMP' + _root['party' + i]] = _root['xMP' + _root['party' + i]];
}
++i;
}
if (_root['xStrength' + indi] >= 350) {
_root['xStrength' + indi] = 350;
}
if (_root['xVitality' + indi] >= 350) {
_root['xVitality' + indi] = 350;
}
if (_root['xAttack' + indi] >= 350) {
_root['xAttack' + indi] = 350;
}
if (_root['xDefense' + indi] >= 350) {
_root['xDefense' + indi] = 350;
}
if (_root['xspeed' + indi] >= 100) {
_root['xspeed' + indi] = 100;
}
if (_root['xspeedTrance' + indi] >= 100) {
_root['xspeedTrance' + indi] = 100;
}
if (_root['xMagicAttack' + indi] >= 350) {
_root['xMagicAttack' + indi] = 350;
}
if (_root['xMagicDefense' + indi] >= 350) {
_root['xMagicDefense' + indi] = 350;
}
if (_root['xEvade' + indi] >= 100) {
_root['xEvade' + indi] = 100;
}
if (_root['xAccuracy' + indi] >= 100) {
_root['xAccuracy' + indi] = 100;
}
if (_root['xLuck' + indi] >= 100) {
_root['xLuck' + indi] = 100;
}
}
function cekMonsterInBox() {
gotoAndStop(399);
}
function cekAdaServantAwal() {
tutorial_mc._visible = false;
if (tutorialAda == true) {
if (adaTutorial6 == true) {
sedangPause = true;
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(6);
tutorial_mc.oke_btn.onRelease = function () {
backKlik();
sedangPause = false;
tutorial_mc._visible = false;
adaTutorial6 = false;
};
tutorial_mc.switch_mc.gotoAndStop(1);
tutorial_mc.switch_mc.onRelease = function () {
backKlik();
if (tutorialAda == true) {
tutorialAda = false;
tutorial_mc.switch_mc.gotoAndStop(2);
} else {
tutorialAda = true;
tutorial_mc.switch_mc.gotoAndStop(1);
}
};
}
}
}
function cekDapatServant8() {
servant_mc.gotoAndStop(1);
dapatServantKe8 = false;
servantLevel8 = 1;
servant_mc._visible = true;
pilihan_mc._visible = false;
servant_mc.indikasi = 'New Servant Found';
servant_mc.monsterList.gotoAndStop(8);
servant_mc.namaKe = namaServant8;
servant_mc.edit_btn.onRelease = function () {
backKlik();
servant_mc.gotoAndStop(2);
Selection.setFocus('servant_mc.nama_txt');
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.nama_txt.text = defaultServant8;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant8 = servant_mc.nama_txt.text;
if (namaServant8 == '' || namaServant8 == ' ' || namaServant8 == ' ' || namaServant8 == ' ' || namaServant8 == ' ' || namaServant8 == ' ' || namaServant8 == ' ' || namaServant8 == ' ' || namaServant8 == ' ' || namaServant8 == ' ') {
namaServant8 = defaultServant8;
}
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
backTerompet();
foundItem_mc2.gotoAndPlay(2);
foundItem_mc2.itemKe1 = namaSpell[33];
foundItem_mc2.itemKe2 = namaSpell[33];
foundItem_mc2.itemKe3 = namaWeapon[29];
foundItem_mc2.itemKe4 = namaShield[33];
foundItem_mc2.itemKe5 = namaFinery[29];
++_root.spellPunya33;
++_root.spellPunya33;
++_root.weaponPunya29;
++_root.shieldPunya33;
++_root.fineryPunya29;
};
};
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.namaKe = defaultServant8;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant8 = servant_mc.namaKe;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
foundItem_mc2.gotoAndPlay(2);
foundItem_mc2.itemKe1 = namaSpell[33];
foundItem_mc2.itemKe2 = namaSpell[33];
foundItem_mc2.itemKe3 = namaWeapon[29];
foundItem_mc2.itemKe4 = namaShield[33];
foundItem_mc2.itemKe5 = namaFinery[29];
++_root.spellPunya33;
++_root.spellPunya33;
++_root.weaponPunya29;
++_root.shieldPunya33;
++_root.fineryPunya29;
};
}
function xskipTutorial() {
backKlik();
tutorial_mc._visible = false;
tutorialAda = false;
pilihan_mc.status_btn.enabled = true;
pilihan_mc.shop_btn.enabled = true;
pilihan_mc.move_btn.enabled = true;
pilihan_mc.battle_btn.enabled = true;
pilihan_mc.cancel_btn.enabled = true;
adaTutorial1 = false;
sudahKlikStatus = false;
}
function xcontinueTutorial() {
backKlik();
tutorial_mc._visible = false;
pilihan_mc.status_btn.enabled = true;
pilihan_mc.shop_btn.enabled = true;
pilihan_mc.move_btn.enabled = true;
pilihan_mc.battle_btn.enabled = true;
pilihan_mc.cancel_btn.enabled = true;
adaTutorial1 = false;
sudahKlikStatus = false;
}
stop();
if (duniaBerubah == false) {
background_mc.gotoAndStop(1);
posisi38._visible = false;
} else {
background_mc.gotoAndStop(2);
posisi38._visible = true;
}
cave_mc10._visible = false;
cave_mc12._visible = false;
cave_mc13._visible = false;
cave_mc17._visible = false;
cave_mc18._visible = false;
cave_mc24._visible = false;
cave_mc30._visible = false;
cave_mc34._visible = false;
cave_mc37._visible = false;
cave_mc39._visible = false;
karakter_mc._visible = false;
servant_mc._visible = false;
duplicate_mc._visible = false;
sell_mc._visible = false;
if (sudahLanjutGame == true) {
posisi34._visible = true;
} else {
posisi34._visible = false;
}
if (sudahLanjutGame2 == true) {
posisi39._visible = true;
} else {
posisi39._visible = false;
}
namaItem = new Array('', 'Herb', 'Herb+', 'Herb++', 'Tonic', 'Tonic+', 'Tonic++', 'Spring Bed', 'Life', 'Remedy', 'Nostrum', 'Fire Arrow', 'Ice Arrow', 'Thunder Arrow', 'Blast Arrow', 'Pulse Arrow', 'Cannon Ammo', 'Holy Ammo', 'Wind Ammo', 'Bad Ammo', 'Mega Ammo', 'Small Bomb', 'Medium Bomb', 'Large Bomb', 'Nail Gun', 'Hammer', 'Treadmill', 'Drill', 'Bulldozer', 'Str+', 'Vit+', 'Attack+', 'Defense+', 'Peeper', 'Transporter', 'Strong Drink', 'Zombie Gas', 'Regen Herb', 'Regen Tonic', 'Mega Herb', 'Mega Tonic', 'Ultra Herb', 'Ultra Tonic', 'Abadi', 'Fire Seed', 'Ice Seed', 'Wind Seed', 'Thunder Seed', 'Toxic Seed', 'Quake Seed', 'Meteor Seed', 'Curse Seed', 'Protect Seed', 'Reflect Seed', 'Slow Seed', 'Haste Seed', 'Death Seed', 'Froze Seed', 'Holy Seed', 'HP+', 'MP+', 'Speed+', 'Trance+', 'M.Attack+', 'M.Defense+', 'Evade+', 'Acuracy+', 'Luck+', 'Red Secret Key', 'Top Secret Key', 'Servant Padlock', '10000 Thorns', '1000 Thorns', '100 Thorns', '10 Thorns', 'Flying Capsule', 'Item Duplicate', 'Spell Duplicate', 'Weapon Duplicate', 'Shield Duplicate', 'Armor Duplicate', 'Finery Duplicate', 'Double Uring', 'Full Upgrade');
infoItem = new Array('', 'Increase HP by 400', 'Increase HP by 4000', 'Increase HP by 40000', 'Increase MP by 100', 'Increase MP by 500', 'Increase MP by 2500', 'Restore all characters status, only using in the town (save point)', 'Revive from KO\'d', 'Remove Poison, Slow and Mini', 'Remove Silence, Confuse and Curse', 'Fire ammo for ' + namaKarakter3 + ' fierce attack', 'Ice ammo for ' + namaKarakter3 + ' fierce attack', 'Mini ammo for ' + namaKarakter3 + ' fierce attack', 'Blast ammo for ' + namaKarakter3 + ' fierce attack', 'Pulse ammo for ' + namaKarakter3 + ' fierce attack', 'Cannon ammo for ' + namaKarakter5 + ' fierce attack', 'Holy ammo for ' + namaKarakter5 + ' fierce attack', 'Wind ammo for ' + namaKarakter5 + ' fierce attack', 'Bad ammo for ' + namaKarakter5 + ' fierce attack', 'Mega ammo for ' + namaKarakter5 + ' fierce attack', 'Damages all enemies', 'Damages all enemies', 'Damages all enemies', 'Use Tools command, damages all enemies', 'Use Tools command, damages all enemies', 'Use Tools command, damages all enemies', 'Use Tools command, damages all enemies', 'Use Tools command, damages all enemies', 'Increase strength by 1 point', 'Increase vitality by 1 point', 'Increase attack by 1 point', 'Increase defense by 1 point', 'Reveal enemy HP, MP, weaknesses and status', 'Escape from battles, except bosses and particular enemies', 'Increase status temporary', 'Makes one character become undead', 'Activate HP regeneration for one character', 'Activate MP regeneration for one character', 'Restore one character HP', 'Restore one character MP', 'Restore all character HP', 'Restore all character MP', 'Restore all characters HP and MP', 'Cast Fire magic to all enemies', 'Cast Ice magic to all enemies', 'Cast Wind magic to all enemies', 'Cast Thunder magic to all enemies', 'Cast Toxic magic to all enemies', 'Cast Quake magic to all enemies', 'Cast Meteor magic to all enemies', 'Cast Curse magic to all enemies', 'Cast Protect magic to all allies', 'Cast Reflect magic to all allies', 'Cast Slow magic to all enemies', 'Cast Haste magic to all allies', 'Cast Death magic to all enemies', 'Cast Froze magic to all enemies', 'Cast Holy magic to all enemies', 'Increase Max HP by 1000 points', 'Increase Max MP by 10 points', 'Increase Speed by 1 point', 'Increase Trance Speed by 1 point', 'Increase Magic Attack by 1 point', 'Increase Magic Defense by 1 point', 'Increase Evade by 1 point', 'Increase Accuracy by 1 point', 'Increase Luck by 1 point', 'Mysterious key to open red shop', 'Mysterious key to open secret shop', 'Mysterious padlock to open secret box', 'Decrease 10000 HP', 'Decrease 1000 HP', 'Decrease 100 HP', 'Decrease 10 HP', 'Go to any locations on the map, including unreachable areas', 'Double any item on the game, can only be used in Forbidden Forest', 'Double any spell on the game, can only be used in Forbidden Forest', 'Double any weapon on the game, can only be used in Forbidden Forest', 'Double any shield on the game, can only be used in Forbidden Forest', 'Double any armor on the game, can only be used in Forbidden Forest', 'Double any finery on the game, can only be used in Forbidden Forest', 'Double your uring', 'Maximum stats to all party members');
namaSpell = new Array('', 'Fire', 'Burn', 'Flame', 'Ice', 'Froze', 'Hypothermia', 'Wind', 'Typhoon', 'Tornado', 'Thunder', 'Toxic', 'Meteor', 'Earthquake', 'Hex', 'Demon', 'Hell Gate', 'Protector', 'Reflector', 'Angel', 'Confuse', 'Slow', 'Haste', 'Berserk', 'Freeze', 'Death', 'Mini', 'Silence', 'Holy', 'HP Heal', 'MP Heal', 'Netralis', 'Omit', 'Pamungkas', 'Mighty');
infoSpell = new Array('', 'Fire damages to all enemies', 'Fire damages to all enemies', 'Fire damages to all enemies', 'Ice damages to all enemies', 'Ice damages to all enemies, sometimes inflict freeze', 'Ice damages to all enemies', 'Wind damages to all enemies', 'Wind damages to all enemies', 'Wind damages to all enemies', 'Thunder damages to all enemies', 'Earth damages to all enemies, sometimes inflict poison', 'Non elemental damages to all enemies', 'Earth massive damages to all enemies', 'Evil damages to all enemies, sometimes inflict curse', 'Evil damages to all enemies', 'Evil damages to all enemies and decrease their defenses', 'Cast protect to all characters, protect from physical attacks', 'Cast reflect to all characters, reflect magical attacks', 'Makes all characters become angel', 'Makes all characters confuse', 'Makes all characters slow', 'Makes all characters fast', 'Makes all characters berserk', 'Makes all characters freeze', 'Makes all characters death', 'Makes all characters mini', 'Makes all characters silence', 'Holy damages to all enemies', 'Increase all characters HP by its 50% maximum HP', 'Increase all characters MP by its 50% maximum MP', 'Remove all negative status effects to all allies', 'Remove all positive status effects to all enemies', 'Non elemental massive damages that ignore all defenses to all enemies', 'Increase stats temporary to all enemies');
namaWeapon = new Array('No Weapon', 'Dagger', 'Long Dagger', 'Longisium', 'Crystal Sabre', 'Holy Sword', 'Exterminator', 'Genie Blade', 'Axe', 'Battle Axe', 'Celeste', 'Thunder Axe', 'Kinslayer', 'Harald Axe', 'Axelancest', 'Bow', 'Fire Bow', 'Golden Bow', 'Lagasutra', 'Enni Arrow', 'Save the King', 'Spear', 'Trident', 'Sharpoon', 'Crusherish', 'Magic Lance', 'Edan Spear', 'Hand Gun', 'Machine Gun', 'Gun of Death', 'Blaster Gun', 'Gambler Gun', 'Wonder Gun', 'Bazooka', 'Mortar', 'Missiles', 'Laser', 'Electricity', 'Biological', 'Viscaradia', 'Axe of God', 'Panah', 'Mandraguna', 'Top Gun', 'Nuclear');
infoWeapon = new Array('', 'Small dagger', 'Long dagger, more powerfull than normal dagger', 'Thief sword used by the adventurer, ensure steal/mug never miss', 'Sword from crystal, increases many aspect', 'Sword with the power of Holy', 'Large sword that half damages of enemy current HP', 'Very sharp sword, sometimes inflict death', 'Normal axe', 'Larger than normal axe, decrease speed', 'Axe that can also useful as a shield', 'Axe that contain the power of Thunder', 'Incredible axe from the demon, contain the power of Evil', 'Axe derived through the fairy kingdom', 'Double edged axe which can attack the enemy twice', 'Common bow', 'Bow that contain the power of Fire', 'Bow made from gold, increases many aspect', 'Bow made from silk, very fast and accurate', 'Arrow from princess Enni, contain the power of Earth', 'Arrow that was used to save the king', 'Plain spear', 'Three eyed pike, contain the power of Ice', 'Spear that contain the power of Wind', 'Great spear from the heaven, increase wearer speed', 'Magical lance, always inflict random status effect', 'Crazy spear that created by screwball', 'A handgun', 'Automatic gun that can attack the enemy twice', 'Gun that can makes enemy undead', 'Powerful gun, always inflict critical hit', 'Gun from the gambler, increase luck and evade', 'Cool gun that can also reduce enemy MP to 0', 'Ordinary bazooka', 'Grenade launcher with massive explosions', 'Air strikes that damages enemy three times', 'Powerful blow that damages one enemy', 'Shock effect to one enemy, decrease enemy strength', 'Biological attack, decrease enemy vitality', 'Legendary sword from heaven, increase all available status', 'Very light axe from God, always activate trance and fierce', 'Magical bow made in eden, which can attack the enemy four times', 'Spear from the hell that ignore all defenses', 'Best gun in the world that can exceed the attack limit', 'Very powerfull weapon that always produce Pamungkas');
namaShield = new Array('No Shield', 'Warrior Shield', 'Fire Shield', 'Shield of War', 'Shield Attack', 'Magic Shield', 'Wood Shield', 'Ice Shield', 'Shield of Luck', 'Dodge Shield', 'Crystal Shield', 'Leather Shield', 'Feather Shield', 'Particle Shield', 'Demon Shield', 'Angel Shield', 'Guard Shield', 'Thunder Shield', 'Evade Shield', 'Power Shield', 'Wonder Shield', 'Military Shield', 'Iron Shield', 'Steel Shield', 'Tank Shield', 'Panzer Shield', 'Armor Shield', 'Jet Shield', 'Robotic Shield', 'Trance Shield', 'President Arm', 'Paladin Shield', 'King\'s Shield', 'Tameng Shield', 'Shield of Honor', 'Platina Shield', 'Ultimate Shield');
infoShield = new Array('', 'Standard shield for warrior', 'Shield that contain the power of Fire', 'Shield that has been used in hundreds of battles', 'Shield that can also serve as an weapon', 'Wonderful shield that can evade magic and status attacks', 'Standard shield for woodcutter', 'Shield that contain the power of Ice', 'Strange shield that can improve luck', 'Amazing shield that can evade physical attacks', 'Shield made by crystal, increase many aspect', 'Standard shield for adventurer', 'Light shield, increase wearer speed', 'Shield from particle, increase many aspect', 'Shield that contain the power of Evil', 'Wearer automatically becomes angel', 'Standard shield for escort', 'Shield that contain the power of Thunder', 'Shield that makes wearer agile, increase evade', 'Powerfull shield, heavy and decrease speed', 'Cool shield that also restore wearer MP each turn', 'Standard shield for infantry', 'Shield made by iron, increase many aspect', 'Shield made by steel, increase many aspect', 'Park the tank, reduce all physical attacks to 1', 'Park the panzer, reduce all magical attacks to 1', 'Standard shield for artillery', 'Shield with jet power, increase wearer speed', 'AI shield, wearer automatically becomes berserk', 'Shield that makes the character always trance', 'Shield of president, increase many aspect', 'Shield that can avoid almost all types of attacks', 'Shield from the ancient king, increase all available status', 'Legendary shield that auto cast Reflect and Protect to wearer', 'Shield pride that can exceed the defense limit', 'Shield made by platinum that can absorb Pamungkas', 'Active all positive status, prevent all negative status');
namaArmor = new Array('', 'Wood Helmet', 'Iron Helmet', 'Bronze Helmet', 'Silver Helmet', 'Steel Helmet', 'Golden Helmet', 'Cyrstal Helmet', 'Meteor Helmet', 'Galaxy Helmet', 'Heaven Helmet', 'Str Helmet', 'Vit Helmet', 'Fast Helmet', 'Trance Helmet', 'Spiked Helmet', 'Aura Helmet', 'Evade Helmet', 'Proper Helmet', 'Luck Helmet', 'Mega Helmet', 'Wood Armor', 'Iron Armor', 'Bronze Armor', 'Silver Armor', 'Steel Armor', 'Golden Armor', 'Cyrstal Armor', 'Meteor Armor', 'Galaxy Armor', 'Heaven Armor', 'Str Armor', 'Vit Armor', 'Fast Armor', 'Trance Armor', 'Spiked Armor', 'Aura Armor', 'Evade Armor', 'Proper Armor', 'Luck Armor', 'Mega Armor');
infoArmor = new Array('', 'Helmet made of wood', 'Helmet made of iron', 'Helmet made of bronze', 'Helmet made of silver', 'Helmet made of steel', 'Helmet made of golden', 'Helmet made of cyrstal', 'Helmet made of meteor stone', 'Helmet made of galaxy stone', 'Helmet made of heaven', 'Helmet that increase wearer strength', 'Helmet that increase wearer vitality', 'Helmet that increase wearer speed', 'Helmet that increase wearer trance speed', 'Helmet that increase wearer attack', 'Helmet that increase wearer magic attack', 'Helmet that increase wearer evade', 'Helmet that increase wearer accuracy', 'Helmet that increase wearer luck', 'Helmet that increase wearer most status', 'Armor made of wood', 'Armor made of iron', 'Armor made of bronze', 'Armor made of silver', 'Armor made of steel', 'Armor made of golden', 'Armor made of cyrstal', 'Armor made of meteor stone', 'Armor made of galaxy stone', 'Armor made of heaven', 'Armor that increase wearer strength', 'Armor that increase wearer vitality', 'Armor that increase wearer speed', 'Armor that increase wearer trance speed', 'Armor that increase wearer attack', 'Armor that increase wearer magic attack', 'Armor that increase wearer evade', 'Armor that increase wearer accuracy', 'Armor that increase wearer luck', 'Armor that increase wearer most status');
namaFinery = new Array('', 'Owl Ring 10%', 'Owl Ring 20%', 'Owl Ring 30%', 'Owl Ring 40%', 'Owl Ring 50%', 'Odd Belt 10%', 'Odd Belt 20%', 'Odd Belt 30%', 'Odd Belt 40%', 'Odd Belt 50%', 'Power Gloves', 'Beast Feather', 'Flash Shoes', 'Sacred Ring', 'Osmo Bangle', 'Wonder Bangle', 'Golden Vest', 'Runic Vest', 'Agile Sandals', 'Cool Glasses', 'Luck Necklace', 'Dore Pant', 'Vore Pant', 'Zore Pant', 'Exp Bandana', 'Pet Earrings', 'Remedy Vase', 'Nostrum Vase', 'Bundle', 'Thief Mug', 'Magic Book', 'Debit Card', 'Double Decker', 'Pet Amulet', 'Fierce Paper', 'Trance Paper', 'Heaven Scroll', 'Double Turban', 'Triple Turban', 'Keramat');
infoFinery = new Array('', 'Add 10% of current HP', 'Add 20% of current HP', 'Add 30% of current HP', 'Add 40% of current HP', 'Add 50% of current HP', 'Add 10% of current MP', 'Add 20% of current MP', 'Add 30% of current MP', 'Add 40% of current MP', 'Add 50% of current MP', 'Increase wearer strength (only increase attribute at battle)', 'Increase wearer vitality (only increase attribute at battle)', 'Increase wearer speed (only increase attribute at battle)', 'Increase wearer trance speed (only increase attribute at battle)', 'Increase wearer attack (only increase attribute at battle)', 'Increase wearer magic attack (only increase attribute at battle)', 'Increase wearer defense (only increase attribute at battle)', 'Increase wearer magic defense (only increase attribute at battle)', 'Increase wearer evade (only increase attribute at battle)', 'Increase wearer accuracy (only increase attribute at battle)', 'Increase wearer luck (only increase attribute at battle)', 'Decrease 10% MP cost', 'Decrease 15% MP cost', 'Decrease 20% MP cost', 'Boost wearer EXP obtain', 'Boost Servant EXP obtain', 'Prevent Poison, Slow and Mini', 'Prevent Silence, Confuse and Curse', 'Prevent All Status Alignment', 'Change Steal command to Mug', 'Change Learn command to Pray', 'Change Tools command to Uring Toss', 'Change Dual Charge command to Copy', 'Allows unlimited servant action', 'Always activate fierce', 'Always activate trance', 'All Magic only cost 1 MP', 'Allows wearer do double attack', 'Allows wearer do triple attack', 'Double fierce effects and damages');
jalur1 = new Array('', 2);
jalur2 = new Array('', 1, 3);
jalur3 = new Array('', 2, 4, 5);
jalur4 = new Array('', 3, 8, 9);
jalur5 = new Array('', 3, 6);
jalur6 = new Array('', 5, 7, 8);
jalur7 = new Array('', 6);
jalur8 = new Array('', 4, 6, 9, 10);
jalur9 = new Array('', 4, 8, 10, 12);
jalur10 = new Array('', 8, 9, 11, 12);
jalur11 = new Array('', 10, 13);
jalur12 = new Array('', 9, 10, 18);
jalur13 = new Array('', 11, 15, 21);
jalur14 = new Array('', 15, 16);
jalur15 = new Array('', 13, 14, 16);
jalur16 = new Array('', 14, 15, 17);
jalur17 = new Array('', 16);
jalur18 = new Array('', 12, 19);
jalur19 = new Array('', 18, 20, 22);
jalur20 = new Array('', 19, 21);
jalur21 = new Array('', 13, 20);
jalur22 = new Array('', 19, 23);
jalur23 = new Array('', 22, 24);
jalur24 = new Array('', 23, 25);
jalur25 = new Array('', 24, 26);
jalur26 = new Array('', 25, 27);
jalur27 = new Array('', 26, 28);
jalur28 = new Array('', 27, 29);
jalur29 = new Array('', 28, 30);
jalur30 = new Array('', 29);
jalur31 = new Array('', 36);
jalur36 = new Array('', 31);
cekAsalMuasal();
tombolAwal();
if (adaKarakter4 == true) {
adaKarakter4 = false;
pilihan_mc._visible = false;
karakter_mc._visible = true;
karakter_mc.indikasi = 'New Protagonist Found';
karakter_mc.monsterList.gotoAndStop(4);
karakter_mc.namaKe = namaKarakter4;
karakter_mc.edit_btn.onRelease = function () {
backKlik();
karakter_mc.gotoAndStop(2);
Selection.setFocus('karakter_mc.nama_txt');
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.nama_txt.text = defaultNama4;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
namaKarakter4 = karakter_mc.nama_txt.text;
gagalNama = false;
if (namaKarakter4 == '' || namaKarakter4 == ' ' || namaKarakter4 == ' ' || namaKarakter4 == ' ' || namaKarakter4 == ' ' || namaKarakter4 == ' ' || namaKarakter4 == ' ' || namaKarakter4 == ' ' || namaKarakter4 == ' ' || namaKarakter4 == ' ') {
namaKarakter4 = defaultNama4;
} else {
if (namaKarakter4 == namaKarakter1) {
gagalNama = true;
} else {
if (namaKarakter4 == namaKarakter2) {
gagalNama = true;
} else {
if (namaKarakter4 == namaKarakter3) {
gagalNama = true;
} else {
if (namaKarakter4 == namaKarakter5) {
gagalNama = true;
} else {
if (namaKarakter4 == namaKarakter6) {
gagalNama = true;
}
}
}
}
}
}
if (gagalNama == false) {
karakter_mc._visible = false;
++jumlahKarakterParty;
sudahKetemu4 = true;
pilihan_mc._visible = true;
}
};
};
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.namaKe = defaultNama4;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
namaKarakter4 = karakter_mc.namaKe;
karakter_mc._visible = false;
++jumlahKarakterParty;
sudahKetemu4 = true;
pilihan_mc._visible = true;
};
} else {
if (adaKarakter5 == true) {
namaKarakter5 = 'Lamberogi';
adaKarakter5 = false;
pilihan_mc._visible = false;
karakter_mc._visible = true;
karakter_mc.indikasi = 'New Protagonist Found';
karakter_mc.monsterList.gotoAndStop(5);
karakter_mc.namaKe = namaKarakter5;
karakter_mc.edit_btn.onRelease = function () {
backKlik();
karakter_mc.gotoAndStop(2);
Selection.setFocus('karakter_mc.nama_txt');
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.nama_txt.text = defaultNama5;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
gagalNama = false;
if (namaKarakter5 == '' || namaKarakter5 == ' ' || namaKarakter5 == ' ' || namaKarakter5 == ' ' || namaKarakter5 == ' ' || namaKarakter5 == ' ' || namaKarakter5 == ' ' || namaKarakter5 == ' ' || namaKarakter5 == ' ' || namaKarakter5 == ' ') {
namaKarakter5 = defaultNama5;
} else {
if (namaKarakter5 == namaKarakter1) {
gagalNama = true;
} else {
if (namaKarakter5 == namaKarakter2) {
gagalNama = true;
} else {
if (namaKarakter5 == namaKarakter3) {
gagalNama = true;
} else {
if (namaKarakter5 == namaKarakter4) {
gagalNama = true;
} else {
if (namaKarakter5 == namaKarakter6) {
gagalNama = true;
}
}
}
}
}
}
if (gagalNama == false) {
karakter_mc._visible = false;
++jumlahKarakterParty;
sudahKetemu5 = true;
pilihan_mc._visible = true;
}
};
};
karakter_mc.default_btn.onRelease = function () {
backKlik();
karakter_mc.namaKe = defaultNama5;
};
karakter_mc.confirm_btn.onRelease = function () {
backKlik();
namaKarakter5 = karakter_mc.namaKe;
karakter_mc._visible = false;
++jumlahKarakterParty;
sudahKetemu5 = true;
pilihan_mc._visible = true;
};
}
}
_root.onEnterFrame = function () {
if (adaDidalamCave == true) {
framaCave = posisiCave._currentframe;
posisiCave.gotoAndStop(framaCave);
}
if (_root.itemPunya75 >= 1) {
if (adaDidalamCave == true) {
flying_btn._visible = false;
} else {
flying_btn._visible = true;
}
}
};
if (dapatServantKe1 == true) {
dapatServantKe1 = false;
servantLevel1 = 1;
servant_mc._visible = true;
pilihan_mc._visible = false;
servant_mc.indikasi = 'New Servant Found';
servant_mc.monsterList.gotoAndStop(1);
servant_mc.namaKe = namaServant1;
servant_mc.edit_btn.onRelease = function () {
backKlik();
servant_mc.gotoAndStop(2);
Selection.setFocus('servant_mc.nama_txt');
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.nama_txt.text = defaultServant1;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant1 = servant_mc.nama_txt.text;
if (namaServant1 == '' || namaServant1 == ' ' || namaServant1 == ' ' || namaServant1 == ' ' || namaServant1 == ' ' || namaServant1 == ' ' || namaServant1 == ' ' || namaServant1 == ' ' || namaServant1 == ' ' || namaServant1 == ' ') {
namaServant1 = defaultServant1;
}
servant_mc.gotoAndStop(5);
servant_mc.ok_btn.onRelease = function () {
backKlik();
punyaCommand5 += 3;
punyaCommand9 += 3;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
cekAdaServantAwal();
};
};
};
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.namaKe = defaultServant1;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant1 = servant_mc.namaKe;
servant_mc.gotoAndStop(5);
servant_mc.ok_btn.onRelease = function () {
backKlik();
punyaCommand5 += 3;
punyaCommand9 += 3;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
cekAdaServantAwal();
};
};
} else {
if (dapatServantKe2 == true) {
dapatServantKe2 = false;
servantLevel2 = 1;
servant_mc._visible = true;
pilihan_mc._visible = false;
servant_mc.indikasi = 'New Servant Found';
servant_mc.monsterList.gotoAndStop(2);
servant_mc.namaKe = namaServant2;
servant_mc.edit_btn.onRelease = function () {
backKlik();
servant_mc.gotoAndStop(2);
Selection.setFocus('servant_mc.nama_txt');
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.nama_txt.text = defaultServant2;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant2 = servant_mc.nama_txt.text;
if (namaServant2 == '' || namaServant2 == ' ' || namaServant2 == ' ' || namaServant2 == ' ' || namaServant2 == ' ' || namaServant2 == ' ' || namaServant2 == ' ' || namaServant2 == ' ' || namaServant2 == ' ' || namaServant2 == ' ') {
namaServant2 = defaultServant2;
}
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
};
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.namaKe = defaultServant2;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant2 = servant_mc.namaKe;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
} else {
if (dapatServantKe3 == true) {
dapatServantKe3 = false;
servantLevel3 = 1;
servant_mc._visible = true;
pilihan_mc._visible = false;
servant_mc.indikasi = 'New Servant Found';
servant_mc.monsterList.gotoAndStop(3);
servant_mc.namaKe = namaServant3;
servant_mc.edit_btn.onRelease = function () {
backKlik();
servant_mc.gotoAndStop(2);
Selection.setFocus('servant_mc.nama_txt');
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.nama_txt.text = defaultServant3;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant3 = servant_mc.nama_txt.text;
if (namaServant3 == '' || namaServant3 == ' ' || namaServant3 == ' ' || namaServant3 == ' ' || namaServant3 == ' ' || namaServant3 == ' ' || namaServant3 == ' ' || namaServant3 == ' ' || namaServant3 == ' ' || namaServant3 == ' ') {
namaServant3 = defaultServant3;
}
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
};
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.namaKe = defaultServant3;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant3 = servant_mc.namaKe;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
} else {
if (dapatServantKe4 == true) {
dapatServantKe4 = false;
servantLevel4 = 1;
servant_mc._visible = true;
pilihan_mc._visible = false;
servant_mc.indikasi = 'New Servant Found';
servant_mc.monsterList.gotoAndStop(4);
servant_mc.namaKe = namaServant4;
servant_mc.edit_btn.onRelease = function () {
backKlik();
servant_mc.gotoAndStop(2);
Selection.setFocus('servant_mc.nama_txt');
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.nama_txt.text = defaultServant4;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant4 = servant_mc.nama_txt.text;
if (namaServant4 == '' || namaServant4 == ' ' || namaServant4 == ' ' || namaServant4 == ' ' || namaServant4 == ' ' || namaServant4 == ' ' || namaServant4 == ' ' || namaServant4 == ' ' || namaServant4 == ' ' || namaServant4 == ' ') {
namaServant4 = defaultServant4;
}
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
};
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.namaKe = defaultServant4;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant4 = servant_mc.namaKe;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
} else {
if (dapatServantKe5 == true) {
dapatServantKe5 = false;
servantLevel5 = 1;
servant_mc._visible = true;
pilihan_mc._visible = false;
servant_mc.indikasi = 'New Servant Found';
servant_mc.monsterList.gotoAndStop(5);
servant_mc.namaKe = namaServant5;
servant_mc.edit_btn.onRelease = function () {
backKlik();
servant_mc.gotoAndStop(2);
Selection.setFocus('servant_mc.nama_txt');
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.nama_txt.text = defaultServant5;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant5 = servant_mc.nama_txt.text;
if (namaServant5 == '' || namaServant5 == ' ' || namaServant5 == ' ' || namaServant5 == ' ' || namaServant5 == ' ' || namaServant5 == ' ' || namaServant5 == ' ' || namaServant5 == ' ' || namaServant5 == ' ' || namaServant5 == ' ') {
namaServant5 = defaultServant5;
}
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
};
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.namaKe = defaultServant5;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant5 = servant_mc.namaKe;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
} else {
if (dapatServantKe6 == true) {
dapatServantKe6 = false;
servantLevel6 = 1;
servant_mc._visible = true;
pilihan_mc._visible = false;
servant_mc.indikasi = 'New Servant Found';
servant_mc.monsterList.gotoAndStop(6);
servant_mc.namaKe = namaServant6;
servant_mc.edit_btn.onRelease = function () {
backKlik();
servant_mc.gotoAndStop(2);
Selection.setFocus('servant_mc.nama_txt');
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.nama_txt.text = defaultServant6;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant6 = servant_mc.nama_txt.text;
if (namaServant6 == '' || namaServant6 == ' ' || namaServant6 == ' ' || namaServant6 == ' ' || namaServant6 == ' ' || namaServant6 == ' ' || namaServant6 == ' ' || namaServant6 == ' ' || namaServant6 == ' ' || namaServant6 == ' ') {
namaServant6 = defaultServant6;
}
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
};
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.namaKe = defaultServant6;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant6 = servant_mc.namaKe;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
} else {
if (dapatServantKe7 == true) {
dapatServantKe7 = false;
servantLevel7 = 1;
servant_mc._visible = true;
pilihan_mc._visible = false;
servant_mc.indikasi = 'New Servant Found';
servant_mc.monsterList.gotoAndStop(7);
servant_mc.namaKe = namaServant7;
servant_mc.edit_btn.onRelease = function () {
backKlik();
servant_mc.gotoAndStop(2);
Selection.setFocus('servant_mc.nama_txt');
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.nama_txt.text = defaultServant7;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant7 = servant_mc.nama_txt.text;
if (namaServant7 == '' || namaServant7 == ' ' || namaServant7 == ' ' || namaServant7 == ' ' || namaServant7 == ' ' || namaServant7 == ' ' || namaServant7 == ' ' || namaServant7 == ' ' || namaServant7 == ' ' || namaServant7 == ' ') {
namaServant7 = defaultServant7;
}
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
cekDapatServant8();
};
};
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.namaKe = defaultServant7;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant7 = servant_mc.namaKe;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
cekDapatServant8();
};
} else {
if (dapatServantKe9 == true) {
dapatServantKe9 = false;
servantLevel9 = 1;
servant_mc._visible = true;
pilihan_mc._visible = false;
servant_mc.indikasi = 'New Servant Found';
servant_mc.monsterList.gotoAndStop(9);
servant_mc.namaKe = namaServant9;
servant_mc.edit_btn.onRelease = function () {
backKlik();
servant_mc.gotoAndStop(2);
Selection.setFocus('servant_mc.nama_txt');
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.nama_txt.text = defaultServant9;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant9 = servant_mc.nama_txt.text;
if (namaServant9 == '' || namaServant9 == ' ' || namaServant9 == ' ' || namaServant9 == ' ' || namaServant9 == ' ' || namaServant9 == ' ' || namaServant9 == ' ' || namaServant9 == ' ' || namaServant9 == ' ' || namaServant9 == ' ') {
namaServant9 = defaultServant9;
}
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
};
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.namaKe = defaultServant9;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant9 = servant_mc.namaKe;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
} else {
if (dapatServantKe10 == true) {
dapatServantKe10 = false;
servantLevel10 = 1;
servant_mc._visible = true;
pilihan_mc._visible = false;
servant_mc.indikasi = 'New Servant Found';
servant_mc.monsterList.gotoAndStop(10);
servant_mc.namaKe = namaServant10;
servant_mc.edit_btn.onRelease = function () {
backKlik();
servant_mc.gotoAndStop(2);
Selection.setFocus('servant_mc.nama_txt');
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.nama_txt.text = defaultServant10;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant10 = servant_mc.nama_txt.text;
if (namaServant10 == '' || namaServant10 == ' ' || namaServant10 == ' ' || namaServant10 == ' ' || namaServant10 == ' ' || namaServant10 == ' ' || namaServant10 == ' ' || namaServant10 == ' ' || namaServant10 == ' ' || namaServant10 == ' ') {
namaServant10 = defaultServant10;
}
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
};
servant_mc.default_btn.onRelease = function () {
backKlik();
servant_mc.namaKe = defaultServant10;
};
servant_mc.confirm_btn.onRelease = function () {
backKlik();
namaServant10 = servant_mc.namaKe;
servant_mc._visible = false;
pilihan_mc._visible = true;
cekAsalMuasal();
tombolAwal();
};
}
}
}
}
}
}
}
}
}
if (adaDidalamCave == true) {
posisiCave._visible = true;
if (posisiCave == _root.cave_mc10) {
posisiCave.gotoAndStop(frameKeCave);
cekCave10();
} else {
if (posisiCave == _root.cave_mc12) {
posisiCave.gotoAndStop(frameKeCave);
cekCave12();
} else {
if (posisiCave == _root.cave_mc13) {
posisiCave.gotoAndStop(frameKeCave);
cekCave13();
} else {
if (posisiCave == _root.cave_mc17) {
posisiCave.gotoAndStop(frameKeCave);
cekCave17();
} else {
if (posisiCave == _root.cave_mc24) {
posisiCave.gotoAndStop(frameKeCave);
cekCave24();
} else {
if (posisiCave == _root.cave_mc37) {
posisiCave.gotoAndStop(frameKeCave);
cekCave37();
} else {
if (posisiCave == _root.cave_mc30) {
posisiCave.gotoAndStop(frameKeCave);
cekCave30();
} else {
if (posisiCave == _root.cave_mc34) {
posisiCave.gotoAndStop(frameKeCave);
cekCave34();
} else {
if (posisiCave == _root.cave_mc39) {
posisiCave.gotoAndStop(frameKeCave);
cekCave39();
}
}
}
}
}
}
}
}
}
}
pilihan_mc.onEnterFrame = function () {
pilihan_mc.uringKe = uring + ' Uring';
if (duniaBerubah == false) {
background_mc.gotoAndStop(1);
} else {
background_mc.gotoAndStop(2);
}
};
flying_btn.onRelease = function () {
backKlik();
flying_btn._visible = false;
pilihSemuaArea = true;
pilihan_mc.gotoAndStop(11);
pilihan_mc.cancel_btn.onRelease = function () {
backKlik();
i = 1;
while (i <= 40) {
delete _root['posisi' + i].onRollOver;
delete _root['posisi' + i].onRollOut;
delete _root['posisi' + i].onRelease;
++i;
}
pilihSemuaArea = false;
cekAsalMuasal();
tombolAwal();
};
i = 1;
while (i <= 40) {
if (i != posisiKini) {
_root['posisi' + i].onRollOver = overPosisi;
_root['posisi' + i].onRollOut = outPosisi;
_root['posisi' + i].onRelease = klikPosisi;
}
++i;
}
};
if (pilihSemuaArea == true) {
flying_btn._visible = false;
pilihan_mc.gotoAndStop(11);
pilihan_mc.cancel_btn.onRelease = function () {
backKlik();
i = 1;
while (i <= 40) {
delete _root['posisi' + i].onRollOver;
delete _root['posisi' + i].onRollOut;
delete _root['posisi' + i].onRelease;
++i;
}
pilihSemuaArea = false;
cekAsalMuasal();
tombolAwal();
};
i = 1;
while (i <= 40) {
if (i != posisiKini) {
_root['posisi' + i].onRollOver = overPosisi;
_root['posisi' + i].onRollOut = outPosisi;
_root['posisi' + i].onRelease = klikPosisi;
}
++i;
}
}
yi = 1;
while (yi <= 3) {
if (_root['party' + yi] != 0) {
cekPerubahanHPMP(_root['party' + yi]);
}
++yi;
}
tutorial_mc._visible = false;
if (tutorialAda == true) {
if (adaTutorial1 == true) {
if (sudahKlikBattle == true) {
if (posisiKeMusuh == 3) {
pilihan_mc.status_btn.enabled = false;
pilihan_mc.move_btn.enabled = false;
pilihan_mc.shop_btn.enabled = false;
pilihan_mc.battle_btn.enabled = false;
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(16);
} else {
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(15);
}
} else {
if (sudahKlikArea == true) {
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(14);
} else {
if (sudahKlikStatus == true) {
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(12);
} else {
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(1);
sudahKlikStatus = false;
tutorial_mc.next_btn.onRelease = function () {
backKlik();
tutorial_mc.gotoAndStop(10);
pilihan_mc.shop_btn.enabled = false;
pilihan_mc.move_btn.enabled = false;
};
}
}
}
}
}
if (volume1 != 0) {
sound_mc.gotoAndStop(1);
} else {
sound_mc.gotoAndStop(2);
}
sound_mc.onRelease = function () {
if (volume1 != 0) {
volume1 = 0;
volume2 = 0;
sound_mc.gotoAndStop(2);
} else {
volume1 = 100;
volume2 = 75;
sound_mc.gotoAndStop(1);
}
myMusic.setVolume(volume1);
mySound.setVolume(volume2);
};
}
movieClip 482 {
frame 1 {
stop();
}
}
movieClip 485 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay(2);
}
}
movieClip 487 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay(2);
}
}
movieClip 489 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay(2);
}
}
movieClip 491 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay(2);
}
}
movieClip 493 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay(2);
}
}
movieClip 495 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay(2);
}
}
movieClip 497 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay(2);
}
}
movieClip 499 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay(2);
}
}
movieClip 502 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay(2);
}
}
movieClip 504 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay(2);
}
}
movieClip 506 {
}
movieClip 508 {
}
movieClip 510 {
}
movieClip 512 {
}
movieClip 514 {
}
movieClip 516 {
}
movieClip 517 {
frame 1 {
stop();
}
}
movieClip 607 {
frame 1 {
stop();
}
}
movieClip 626 {
}
movieClip 652 {
frame 1 {
stop();
}
}
movieClip 664 {
frame 1 {
stop();
}
}
movieClip 667 {
frame 1 {
stop();
}
}
movieClip 668 {
frame 1 {
stop();
}
}
movieClip 673 {
frame 1 {
stop();
}
}
movieClip 674 {
frame 1 {
stop();
}
}
movieClip 691 {
frame 1 {
stop();
}
}
movieClip 693 {
frame 1 {
stop();
}
}
movieClip 699 {
frame 1 {
stop();
}
}
movieClip 707 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 45 {
gotoAndStop(1);
}
frame 50 {
play();
}
frame 210 {
gotoAndStop(1);
}
}
movieClip 714 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 716 {
frame 1 {
stop();
}
frame 2 {
play();
_root.flying_btn._visible = false;
}
frame 45 {
_root.cekMonsterInBox();
}
}
movieClip 718 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 741 {
frame 1 {
stop();
}
}
movieClip 758 {
frame 1 {
stop();
}
}
movieClip 761 {
frame 1 {
stop();
}
frame 5 {
gotoAndStop(1);
}
frame 10 {
play();
}
frame 16 {
gotoAndStop(1);
}
}
movieClip 769 {
}
movieClip 770 {
frame 1 {
stop();
}
}
movieClip 793 {
frame 1 {
stop();
}
}
movieClip 797 {
frame 1 {
stop();
}
}
movieClip 801 {
frame 1 {
stop();
}
}
movieClip 805 {
frame 1 {
stop();
}
}
movieClip 809 {
frame 1 {
stop();
}
}
movieClip 813 {
frame 1 {
stop();
}
}
movieClip 820 {
}
movieClip 898 {
frame 1 {
stop();
}
}
movieClip 935 {
frame 1 {
stop();
}
frame 2 {
_root.backCompleted();
}
}
movieClip 952 {
frame 1 {
stop();
}
}
movieClip 955 {
frame 1 {
stop();
}
}
movieClip 957 {
frame 1 {
stop();
}
}
movieClip 1003 {
frame 1 {
stop();
}
}
// unknown tag 88 length 87
movieClip 1026 {
}
movieClip 1046 {
frame 1 {
stop();
skip_btn.onRelease = function () {
_root.xskipTutorial();
};
}
frame 10 {
stop();
skip_btn.onRelease = function () {
_root.xskipTutorial();
};
}
frame 11 {
stop();
skip_btn.onRelease = function () {
_root.xskipTutorial();
};
}
frame 12 {
stop();
skip_btn.onRelease = function () {
_root.xskipTutorial();
};
}
frame 13 {
stop();
skip_btn.onRelease = function () {
_root.xskipTutorial();
};
}
frame 14 {
stop();
skip_btn.onRelease = function () {
_root.xskipTutorial();
};
}
frame 15 {
stop();
skip_btn.onRelease = function () {
_root.xskipTutorial();
};
}
frame 16 {
stop();
continue_btn.onRelease = function () {
_root.xcontinueTutorial();
};
}
}
movieClip 1054 {
}
frame 324 {
function cekStatusKini() {
i = 1;
while (i <= 3) {
if (_root['party' + i] == 0) {
_root['status' + i].gotoAndStop(2);
} else {
partyKeSiapa = _root['party' + i];
_root['status' + i].gotoAndStop(1);
_root['status' + i].monsterList.gotoAndStop(partyKeSiapa);
_root['status' + i].namaKe = _root['namaKarakter' + partyKeSiapa];
_root['status' + i].jobKe = _root['namaJob' + partyKeSiapa];
_root['status' + i].levelKe = 'Level: ' + _root['xLevel' + partyKeSiapa];
_root['status' + i].hpKe = 'HP: ' + _root['xKiniHP' + partyKeSiapa] + '/' + _root['xHP' + partyKeSiapa];
_root['status' + i].mpKe = 'MP: ' + _root['xKiniMP' + partyKeSiapa] + '/' + _root['xMP' + partyKeSiapa];
_root['status' + i].levelUpKe = 'Level Up: ' + _root['xLevelUp' + partyKeSiapa];
_root['status' + i].statusKe = _root['status' + partyKeSiapa + '1'] + '\n' + _root['status' + partyKeSiapa + '2'] + _root['status' + partyKeSiapa + '3'];
_root['status' + i].posKotak.gotoAndStop(_root['posKotak' + partyKeSiapa]);
_root['status' + i].fierceBar._xscale = _root['persenFierce' + partyKeSiapa];
if (_root['status' + i].fierceBar._xscale >= 100) {
_root['status' + i].fierceBar._xscale = 100;
_root['status' + i].fierceBar.gotoAndStop(3);
} else {
_root['status' + i].fierceBar.gotoAndStop(1);
}
_root['status' + i].posisi.onRelease = klikStatus;
if (_root['servantPasang' + partyKeSiapa] == 0) {
_root['status' + i].servantKe.gotoAndStop(100);
} else {
_root['status' + i].servantKe.namaServant = _root['namaServant' + _root['servantPasang' + partyKeSiapa]];
_root['status' + i].servantKe.servantLevel = 'Level ' + _root['servantLevel' + _root['servantPasang' + partyKeSiapa]];
_root['status' + i].servantKe.gotoAndStop(_root['servantPasang' + partyKeSiapa]);
}
}
++i;
}
}
function klikStatus() {
backKlik();
myStr = new String(this._parent);
indi = myStr.substr(myStr.length - 1, 1);
++_root['posKotak' + _root['party' + indi]];
if (_root['posKotak' + _root['party' + indi]] >= 4) {
_root['posKotak' + _root['party' + indi]] = 1;
}
cekStatusKini();
}
function klikKotakan() {
backKlik();
myStr = new String(this);
indi = myStr.substr(myStr.length - 1, 1);
pilihKarakter = _root['party' + indi];
if (arahKemana == 'equip') {
arahKarakter = indi;
gotoAndStop('equip status');
} else {
if (arahKemana == 'status') {
pilihKarakter = indi;
gotoAndStop('status status');
} else {
if (arahKemana == 'spell') {
arahKarakter = indi;
gotoAndStop('spell status');
} else {
if (arahKemana == 'command') {
arahKarakter = indi;
gotoAndStop('command status');
} else {
if (arahKemana == 'servant') {
arahKarakter = indi;
gotoAndStop('servant status');
} else {
if (arahKemana == 'fierce') {
arahKarakter = indi;
gotoAndStop('fierce status');
}
}
}
}
}
}
}
function cekPerubahanCommand(partyKeSiapa) {
adaMug = false;
i = 1;
while (i <= 4) {
if (_root['fineryPasang' + partyKeSiapa + i] == 30) {
adaMug = true;
}
++i;
}
if (adaMug == true) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 7) {
_root['command' + partyKeSiapa + i] = 13;
}
++i;
}
} else {
if (adaMug == false) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 13) {
_root['command' + partyKeSiapa + i] = 7;
}
++i;
}
}
}
adaPray = false;
i = 1;
while (i <= 4) {
if (_root['fineryPasang' + partyKeSiapa + i] == 31) {
adaPray = true;
}
++i;
}
if (adaPray == true) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 8) {
_root['command' + partyKeSiapa + i] = 14;
}
++i;
}
} else {
if (adaPray == false) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 14) {
_root['command' + partyKeSiapa + i] = 8;
}
++i;
}
}
}
adaUringToss = false;
i = 1;
while (i <= 4) {
if (_root['fineryPasang' + partyKeSiapa + i] == 32) {
adaUringToss = true;
}
++i;
}
if (adaUringToss == true) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 12) {
_root['command' + partyKeSiapa + i] = 15;
}
++i;
}
} else {
if (adaUringToss == false) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 15) {
_root['command' + partyKeSiapa + i] = 12;
}
++i;
}
}
}
adaDualCopy = false;
i = 1;
while (i <= 4) {
if (_root['fineryPasang' + partyKeSiapa + i] == 33) {
adaDualCopy = true;
}
++i;
}
if (adaDualCopy == true) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 10) {
_root['command' + partyKeSiapa + i] = 16;
}
++i;
}
} else {
if (adaDualCopy == false) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 16) {
_root['command' + partyKeSiapa + i] = 10;
}
++i;
}
}
}
}
stop();
tutorial_mc._visible = false;
option_mc._visible = false;
unequip_mc._visible = false;
if (tutorialAda == true) {
if (adaTutorial1 == true) {
if (sudahKlikStatus == false) {
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(11);
sudahKlikStatus = true;
tutorial_mc.skip_btn.onRelease = function () {
backKlik();
tutorial_mc._visible = false;
tutorialAda = false;
pilihan_mc.status_btn.enabled = true;
pilihan_mc.shop_btn.enabled = true;
pilihan_mc.move_btn.enabled = true;
adaTutorial1 = false;
};
}
}
}
delete _root.onEnterFrame;
if (asalMuasal == 1 || posisiKini == 31) {
xsavePoint = true;
} else {
xsavePoint = false;
}
if (xsavePoint == true) {
save_btn.enabled = true;
save_btn._alpha = 100;
} else {
save_btn.enabled = false;
save_btn._alpha = 50;
}
xtime = 'Time: ' + xtimeKini;
xbattle = 'Total Battle: ' + battleKini;
_root.onEnterFrame = function () {
xtime = 'Time: ' + xtimeKini;
xbattle = 'Total Battle: ' + battleKini;
};
xnamaKota = namaKota[posisiKini];
xuringKe = uring + ' Uring';
karakterPilih_mc._visible = false;
arahKemana = '';
if (jumlahKarakterParty >= 3) {
party_btn.enabled = true;
party_btn._alpha = 100;
} else {
party_btn.enabled = false;
party_btn._alpha = 50;
}
cekStatusKini();
status_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = true;
i = 1;
while (i <= 3) {
if (_root['party' + i] == 0) {
karakterPilih_mc['monsterList' + i]._visible = false;
karakterPilih_mc['namaKe' + i] = '';
karakterPilih_mc['kotakan' + i].enabled = false;
} else {
partyKeSiapa = _root['party' + i];
karakterPilih_mc['monsterList' + i].gotoAndStop(partyKeSiapa);
karakterPilih_mc['namaKe' + i] = _root['namaKarakter' + partyKeSiapa];
karakterPilih_mc['kotakan' + i].enabled = true;
arahKemana = 'status';
karakterPilih_mc['kotakan' + i].onRelease = klikKotakan;
}
++i;
}
karakterPilih_mc.cancel_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
};
};
equip_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = true;
i = 1;
while (i <= 3) {
if (_root['party' + i] == 0) {
karakterPilih_mc['monsterList' + i]._visible = false;
karakterPilih_mc['namaKe' + i] = '';
karakterPilih_mc['kotakan' + i].enabled = false;
} else {
partyKeSiapa = _root['party' + i];
karakterPilih_mc['monsterList' + i].gotoAndStop(partyKeSiapa);
karakterPilih_mc['namaKe' + i] = _root['namaKarakter' + partyKeSiapa];
karakterPilih_mc['kotakan' + i].enabled = true;
arahKemana = 'equip';
karakterPilih_mc['kotakan' + i].onRelease = klikKotakan;
}
++i;
}
karakterPilih_mc.cancel_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
};
};
spell_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = true;
i = 1;
while (i <= 3) {
if (_root['party' + i] == 0) {
karakterPilih_mc['monsterList' + i]._visible = false;
karakterPilih_mc['namaKe' + i] = '';
karakterPilih_mc['kotakan' + i].enabled = false;
} else {
partyKeSiapa = _root['party' + i];
karakterPilih_mc['monsterList' + i].gotoAndStop(partyKeSiapa);
karakterPilih_mc['namaKe' + i] = _root['namaKarakter' + partyKeSiapa];
karakterPilih_mc['kotakan' + i].enabled = true;
arahKemana = 'spell';
karakterPilih_mc['kotakan' + i].onRelease = klikKotakan;
}
++i;
}
karakterPilih_mc.cancel_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
};
};
command_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = true;
i = 1;
while (i <= 3) {
if (_root['party' + i] == 0) {
karakterPilih_mc['monsterList' + i]._visible = false;
karakterPilih_mc['namaKe' + i] = '';
karakterPilih_mc['kotakan' + i].enabled = false;
} else {
partyKeSiapa = _root['party' + i];
karakterPilih_mc['monsterList' + i].gotoAndStop(partyKeSiapa);
karakterPilih_mc['namaKe' + i] = _root['namaKarakter' + partyKeSiapa];
karakterPilih_mc['kotakan' + i].enabled = true;
arahKemana = 'command';
karakterPilih_mc['kotakan' + i].onRelease = klikKotakan;
}
++i;
}
karakterPilih_mc.cancel_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
};
};
servant_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = true;
i = 1;
while (i <= 3) {
if (_root['party' + i] == 0) {
karakterPilih_mc['monsterList' + i]._visible = false;
karakterPilih_mc['namaKe' + i] = '';
karakterPilih_mc['kotakan' + i].enabled = false;
} else {
partyKeSiapa = _root['party' + i];
karakterPilih_mc['monsterList' + i].gotoAndStop(partyKeSiapa);
karakterPilih_mc['namaKe' + i] = _root['namaKarakter' + partyKeSiapa];
karakterPilih_mc['kotakan' + i].enabled = true;
arahKemana = 'servant';
karakterPilih_mc['kotakan' + i].onRelease = klikKotakan;
}
++i;
}
karakterPilih_mc.cancel_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
};
};
fierce_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = true;
i = 1;
while (i <= 3) {
if (_root['party' + i] == 0) {
karakterPilih_mc['monsterList' + i]._visible = false;
karakterPilih_mc['namaKe' + i] = '';
karakterPilih_mc['kotakan' + i].enabled = false;
} else {
partyKeSiapa = _root['party' + i];
karakterPilih_mc['monsterList' + i].gotoAndStop(partyKeSiapa);
karakterPilih_mc['namaKe' + i] = _root['namaKarakter' + partyKeSiapa];
karakterPilih_mc['kotakan' + i].enabled = true;
arahKemana = 'fierce';
karakterPilih_mc['kotakan' + i].onRelease = klikKotakan;
}
++i;
}
karakterPilih_mc.cancel_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
};
};
item_btn.onRelease = function () {
backKlik();
gotoAndStop('item status');
};
party_btn.onRelease = function () {
backKlik();
gotoAndStop('party status');
};
save_btn.onRelease = function () {
backKlik();
pilihSaveLoad = 'save';
asalMula = 'awalan';
gotoAndStop('save status');
};
option_btn.onRelease = function () {
backKlik();
option_mc._visible = true;
option_mc.load_btn.onRelease = function () {
backKlik();
pilihSaveLoad = 'load';
asalMula = 'awalan';
gotoAndStop('save status');
};
option_mc.quit_btn.onRelease = function () {
backKlik();
gotoAndStop(306);
};
option_mc.close_btn.onRelease = function () {
backKlik();
option_mc._visible = false;
};
option_mc.more_btn.onRelease = function () {
getURL('http://www.thegames8.com/', '_blank');
};
};
back_btn.onRelease = function () {
backKlik();
pilihSemuaArea = false;
gotoAndStop(323);
};
unequip_btn.onRelease = function () {
backKlik();
unequip_mc._visible = true;
unequip_mc.unequip1.onRelease = function () {
backSpell();
gi = 1;
while (gi <= 6) {
if (_root['shieldPasang' + gi] != 0) {
++_root['shieldPunya' + _root['shieldPasang' + gi]];
}
_root['shieldPasang' + gi] = 0;
if (_root['bodyPasang' + gi] != 0) {
++_root['armorPunya' + (_root['bodyPasang' + gi] + 20)];
}
_root['bodyPasang' + gi] = 0;
j = 1;
while (j <= 4) {
if (_root['fineryPasang' + gi + j] != 0) {
++_root['fineryPunya' + _root['fineryPasang' + gi + j]];
}
_root['fineryPasang' + gi + j] = 0;
++j;
}
cekPerubahanCommand(gi);
cekPerubahanHPMP();
++gi;
}
unequip_mc._visible = false;
};
unequip_mc.unequip2.onRelease = function () {
backSpell();
gi = 1;
while (gi <= 6) {
bisaLanjutUnequip = true;
if (_root.party1 == gi) {
bisaLanjutUnequip = false;
} else {
if (_root.party2 == gi) {
bisaLanjutUnequip = false;
} else {
if (_root.party3 == gi) {
bisaLanjutUnequip = false;
}
}
}
if (bisaLanjutUnequip == true) {
if (_root['shieldPasang' + gi] != 0) {
++_root['shieldPunya' + _root['shieldPasang' + gi]];
}
_root['shieldPasang' + gi] = 0;
if (_root['bodyPasang' + gi] != 0) {
++_root['armorPunya' + (_root['bodyPasang' + gi] + 20)];
}
_root['bodyPasang' + gi] = 0;
j = 1;
while (j <= 4) {
if (_root['fineryPasang' + gi + j] != 0) {
++_root['fineryPunya' + _root['fineryPasang' + gi + j]];
}
_root['fineryPasang' + gi + j] = 0;
++j;
}
cekPerubahanCommand(gi);
cekPerubahanHPMP();
}
++gi;
}
unequip_mc._visible = false;
};
unequip_mc.close_btn.onRelease = function () {
backKlik();
unequip_mc._visible = false;
};
};
}
movieClip 1064 {
frame 1 {
stop();
}
}
movieClip 1079 {
frame 1 {
stop();
}
}
movieClip 1082 {
}
movieClip 1084 {
frame 1 {
stop();
}
}
movieClip 1149 {
}
movieClip 1163 {
}
movieClip 1181 {
}
frame 328 {
function cekPrev() {
if (arahKarakter == 1) {
arahKarakter = 3;
} else {
if (arahKarakter == 3) {
arahKarakter = 2;
} else {
if (arahKarakter == 2) {
arahKarakter = 1;
}
}
}
pilihKarakter = _root['party' + arahKarakter];
}
function cekNext() {
if (arahKarakter == 1) {
arahKarakter = 2;
} else {
if (arahKarakter == 2) {
arahKarakter = 3;
} else {
if (arahKarakter == 3) {
arahKarakter = 1;
}
}
}
pilihKarakter = _root['party' + arahKarakter];
}
function initKarakter(zindi) {
xinfo = '';
partyKeSiapa = pilihKarakter;
_root.monsterList.gotoAndStop(partyKeSiapa);
_root.namaKe = _root['namaKarakter' + partyKeSiapa];
_root.levelKe = 'Level: ' + _root['xLevel' + partyKeSiapa];
_root.hpKe = 'HP: ' + _root['xKiniHP' + partyKeSiapa] + '/' + _root['xHP' + partyKeSiapa];
_root.mpKe = 'MP: ' + _root['xKiniMP' + partyKeSiapa] + '/' + _root['xMP' + partyKeSiapa];
siapaPunya = partyKeSiapa;
siapaWeapon = _root['weaponPasang' + partyKeSiapa];
kiniWeapon = _root['weaponPasang' + partyKeSiapa];
siapaShield = _root['shieldPasang' + partyKeSiapa];
kiniShield = _root['shieldPasang' + partyKeSiapa];
siapaHead = _root['headPasang' + partyKeSiapa];
kiniHead = _root['headPasang' + partyKeSiapa];
siapaBody = _root['bodyPasang' + partyKeSiapa];
kiniBody = _root['bodyPasang' + partyKeSiapa];
kalkulasiStats('akhir');
if (_root['weaponPasang' + partyKeSiapa] == 0) {
weapon.gotoAndStop(100);
} else {
weapon.xjumlah = '';
weapon.gotoAndStop(_root['weaponPasang' + partyKeSiapa]);
}
if (_root['shieldPasang' + partyKeSiapa] == 0) {
shield.gotoAndStop(100);
} else {
shield.xjumlah = '';
shield.gotoAndStop(_root['shieldPasang' + partyKeSiapa]);
}
if (_root['headPasang' + partyKeSiapa] == 0) {
head.gotoAndStop(100);
} else {
head.xjumlah = '';
head.gotoAndStop(_root['headPasang' + partyKeSiapa]);
}
if (_root['bodyPasang' + partyKeSiapa] == 0) {
body.gotoAndStop(100);
} else {
body.xjumlah = '';
body.gotoAndStop(_root['bodyPasang' + partyKeSiapa] + 20);
}
if (_root['fineryPasang' + partyKeSiapa + '1'] == 0) {
finery1.gotoAndStop(100);
} else {
finery1.xjumlah = '';
finery1.gotoAndStop(_root['fineryPasang' + partyKeSiapa + '1']);
}
if (_root['fineryPasang' + partyKeSiapa + '2'] == 0) {
finery2.gotoAndStop(100);
} else {
finery2.xjumlah = '';
finery2.gotoAndStop(_root['fineryPasang' + partyKeSiapa + '2']);
}
if (_root['fineryPasang' + partyKeSiapa + '3'] == 0) {
finery3.gotoAndStop(100);
} else {
finery3.xjumlah = '';
finery3.gotoAndStop(_root['fineryPasang' + partyKeSiapa + '3']);
}
if (_root['fineryPasang' + partyKeSiapa + '4'] == 0) {
finery4.gotoAndStop(100);
} else {
finery4.xjumlah = '';
finery4.gotoAndStop(_root['fineryPasang' + partyKeSiapa + '4']);
}
}
function cekEquip() {
milikWeapon = new Array('', 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 1, 2, 3, 4, 5, 6);
milikShield = new Array('', 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 1, 2, 3, 4, 5, 6);
tipeEquip.gotoAndStop(pilihanEquip);
if (pilihanEquip == 3) {
slot_mc._visible = true;
slot_mc.gotoAndStop(slotMagicArmor[_root['headPasang' + partyKeSiapa]]);
i = 1;
while (i <= 8) {
slot_mc['isi' + i]._visible = false;
++i;
}
} else {
slot_mc._visible = false;
}
if (pilihanEquip == 1) {
empty_btn._visible = false;
masukWeapon = new Array();
weaponKe = 1;
halamanKe = 1;
i = 1;
while (i <= 44) {
if (_root['weaponPunya' + i] > 0) {
if (milikWeapon[i] == partyKeSiapa) {
masukWeapon[weaponKe] = i;
++weaponKe;
}
}
++i;
}
i = 1;
while (i <= 10) {
tipeEquip['weapon' + i].tandaList._visible = false;
tipeEquip['weapon' + i]._visible = false;
++i;
}
cekWeaponHalaman();
if (weaponKe > 11) {
next_btn._visible = true;
prev_btn._visible = true;
} else {
next_btn._visible = false;
prev_btn._visible = false;
}
next_btn.onRelease = function () {
backKlik();
++halamanKe;
if (halamanKe >= 6) {
halamanKe = 1;
}
cekWeaponHalaman();
};
prev_btn.onRelease = function () {
backKlik();
--halamanKe;
if (halamanKe <= 0) {
halamanKe = 5;
}
cekWeaponHalaman();
};
} else {
if (pilihanEquip == 2) {
empty_btn._visible = true;
masukShield = new Array();
shieldKe = 1;
halamanKe = 1;
i = 1;
while (i <= 44) {
if (_root['shieldPunya' + i] > 0) {
if (milikShield[i] == partyKeSiapa) {
masukShield[shieldKe] = i;
++shieldKe;
}
}
++i;
}
i = 1;
while (i <= 10) {
tipeEquip['shield' + i].tandaList._visible = false;
tipeEquip['shield' + i]._visible = false;
++i;
}
cekShieldHalaman();
if (shieldKe > 11) {
next_btn._visible = true;
prev_btn._visible = true;
} else {
next_btn._visible = false;
prev_btn._visible = false;
}
next_btn.onRelease = function () {
backKlik();
++halamanKe;
if (halamanKe >= 6) {
halamanKe = 1;
}
cekShieldHalaman();
};
prev_btn.onRelease = function () {
backKlik();
--halamanKe;
if (halamanKe <= 0) {
halamanKe = 5;
}
cekShieldHalaman();
};
empty_btn.onRelease = function () {
backKlik();
if (_root['shieldPasang' + partyKeSiapa] != 0) {
++_root['shieldPunya' + _root['shieldPasang' + partyKeSiapa]];
}
_root['shieldPasang' + partyKeSiapa] = 0;
initKarakter();
cekEquip();
};
} else {
if (pilihanEquip == 3) {
empty_btn._visible = false;
masukHead = new Array();
headKe = 1;
halamanKe = 1;
i = 1;
while (i <= 20) {
if (_root['armorPunya' + i] > 0) {
masukHead[headKe] = i;
++headKe;
}
++i;
}
i = 1;
while (i <= 10) {
tipeEquip['head' + i].tandaList._visible = false;
tipeEquip['head' + i]._visible = false;
++i;
}
cekHeadHalaman();
if (headKe > 11) {
next_btn._visible = true;
prev_btn._visible = true;
} else {
next_btn._visible = false;
prev_btn._visible = false;
}
next_btn.onRelease = function () {
backKlik();
++halamanKe;
if (halamanKe >= 3) {
halamanKe = 1;
}
cekHeadHalaman();
};
prev_btn.onRelease = function () {
backKlik();
--halamanKe;
if (halamanKe <= 0) {
halamanKe = 2;
}
cekHeadHalaman();
};
} else {
if (pilihanEquip == 4) {
empty_btn._visible = true;
masukBody = new Array();
bodyKe = 1;
halamanKe = 1;
i = 1;
while (i <= 20) {
if (_root['armorPunya' + (i + 20)] > 0) {
masukBody[bodyKe] = i + 20;
++bodyKe;
}
++i;
}
i = 1;
while (i <= 10) {
tipeEquip['body' + i].tandaList._visible = false;
tipeEquip['body' + i]._visible = false;
++i;
}
cekBodyHalaman();
if (bodyKe > 11) {
next_btn._visible = true;
prev_btn._visible = true;
} else {
next_btn._visible = false;
prev_btn._visible = false;
}
next_btn.onRelease = function () {
backKlik();
++halamanKe;
if (halamanKe >= 3) {
halamanKe = 1;
}
cekBodyHalaman();
};
prev_btn.onRelease = function () {
backKlik();
--halamanKe;
if (halamanKe <= 0) {
halamanKe = 2;
}
cekBodyHalaman();
};
empty_btn.onRelease = function () {
backKlik();
if (_root['bodyPasang' + partyKeSiapa] != 0) {
++_root['armorPunya' + (_root['bodyPasang' + partyKeSiapa] + 20)];
}
_root['bodyPasang' + partyKeSiapa] = 0;
initKarakter();
cekEquip();
};
} else {
if (pilihanEquip == 5) {
empty_btn._visible = true;
masukFinery = new Array();
fineryKe = 1;
halamanKe = 1;
i = 1;
while (i <= 40) {
if (_root['fineryPunya' + i] > 0) {
masukFinery[fineryKe] = i;
++fineryKe;
}
++i;
}
i = 1;
while (i <= 10) {
tipeEquip['finery' + i].tandaList._visible = false;
tipeEquip['finery' + i]._visible = false;
++i;
}
cekFineryHalaman();
if (fineryKe > 11) {
next_btn._visible = true;
prev_btn._visible = true;
} else {
next_btn._visible = false;
prev_btn._visible = false;
}
next_btn.onRelease = function () {
backKlik();
++halamanKe;
if (halamanKe >= 5) {
halamanKe = 1;
}
cekFineryHalaman();
};
prev_btn.onRelease = function () {
backKlik();
--halamanKe;
if (halamanKe <= 0) {
halamanKe = 4;
}
cekFineryHalaman();
};
empty_btn.onRelease = function () {
backKlik();
if (_root['fineryPasang' + partyKeSiapa + pilihanFinery] != 0) {
++_root['fineryPunya' + _root['fineryPasang' + partyKeSiapa + pilihanFinery]];
}
_root['fineryPasang' + partyKeSiapa + pilihanFinery] = 0;
cekPerubahanCommand(partyKeSiapa);
cekPerubahanHPMP();
initKarakter();
cekEquip();
};
}
}
}
}
}
}
function cekWeaponHalaman() {
if (halamanKe == 1) {
i = 1;
while (i <= 10) {
if (masukWeapon[i] != undefined) {
tipeEquip['weapon' + i]._visible = true;
tipeEquip['weapon' + i].gotoAndStop(masukWeapon[i]);
tipeEquip['weapon' + i].onRelease = klikWeapon;
tipeEquip['weapon' + i].xjumlah = _root['weaponPunya' + masukWeapon[i]];
}
++i;
}
} else {
if (halamanKe == 2) {
i = 11;
while (i <= 20) {
if (masukWeapon[i] != undefined) {
tipeEquip['weapon' + (i - 10)]._visible = true;
tipeEquip['weapon' + (i - 10)].gotoAndStop(masukWeapon[i]);
tipeEquip['weapon' + (i - 10)].onRelease = klikWeapon;
tipeEquip['weapon' + (i - 10)].xjumlah = _root['weaponPunya' + masukWeapon[i]];
}
++i;
}
} else {
if (halamanKe == 3) {
i = 21;
while (i <= 30) {
if (masukWeapon[i] != undefined) {
tipeEquip['weapon' + (i - 20)]._visible = true;
tipeEquip['weapon' + (i - 20)].gotoAndStop(masukWeapon[i]);
tipeEquip['weapon' + (i - 20)].onRelease = klikWeapon;
tipeEquip['weapon' + (i - 20)].xjumlah = _root['weaponPunya' + masukWeapon[i]];
}
++i;
}
} else {
if (halamanKe == 4) {
i = 31;
while (i <= 40) {
if (masukWeapon[i] != undefined) {
tipeEquip['weapon' + (i - 30)]._visible = true;
tipeEquip['weapon' + (i - 30)].gotoAndStop(masukWeapon[i]);
tipeEquip['weapon' + (i - 30)].onRelease = klikWeapon;
tipeEquip['weapon' + (i - 30)].xjumlah = _root['weaponPunya' + masukWeapon[i]];
}
++i;
}
} else {
if (halamanKe == 5) {
i = 41;
while (i <= 44) {
if (masukWeapon[i] != undefined) {
tipeEquip['weapon' + (i - 40)]._visible = true;
tipeEquip['weapon' + (i - 40)].gotoAndStop(masukWeapon[i]);
tipeEquip['weapon' + (i - 40)].onRelease = klikWeapon;
tipeEquip['weapon' + (i - 40)].xjumlah = _root['weaponPunya' + masukWeapon[i]];
}
++i;
}
}
}
}
}
}
}
function klikWeapon() {
backKlik();
if (this.tandaList._visible == false) {
i = 1;
while (i <= 10) {
tipeEquip['weapon' + i].tandaList._visible = false;
++i;
}
xinfo = infoWeapon[this._currentframe];
this.tandaList._visible = true;
siapaPunya = partyKeSiapa;
siapaWeapon = _root['weaponPasang' + partyKeSiapa];
kiniWeapon = this._currentframe;
siapaShield = _root['shieldPasang' + partyKeSiapa];
kiniShield = _root['shieldPasang' + partyKeSiapa];
siapaHead = _root['headPasang' + partyKeSiapa];
kiniHead = _root['headPasang' + partyKeSiapa];
siapaBody = _root['bodyPasang' + partyKeSiapa];
kiniBody = _root['bodyPasang' + partyKeSiapa];
kalkulasiStats('akhir');
} else {
if (_root['weaponPasang' + partyKeSiapa] != this._currentframe) {
if (_root['weaponPasang' + partyKeSiapa] != 0) {
++_root['weaponPunya' + _root['weaponPasang' + partyKeSiapa]];
}
_root['weaponPasang' + partyKeSiapa] = this._currentframe;
--_root['weaponPunya' + this._currentframe];
initKarakter();
cekEquip();
}
}
}
function cekShieldHalaman() {
if (halamanKe == 1) {
i = 1;
while (i <= 10) {
if (masukShield[i] != undefined) {
tipeEquip['shield' + i]._visible = true;
tipeEquip['shield' + i].gotoAndStop(masukShield[i]);
tipeEquip['shield' + i].onRelease = klikShield;
tipeEquip['shield' + i].xjumlah = _root['shieldPunya' + masukShield[i]];
}
++i;
}
} else {
if (halamanKe == 2) {
i = 11;
while (i <= 20) {
if (masukShield[i] != undefined) {
tipeEquip['shield' + (i - 10)]._visible = true;
tipeEquip['shield' + (i - 10)].gotoAndStop(masukShield[i]);
tipeEquip['shield' + (i - 10)].onRelease = klikShield;
tipeEquip['shield' + (i - 10)].xjumlah = _root['shieldPunya' + masukShield[i]];
}
++i;
}
} else {
if (halamanKe == 3) {
i = 21;
while (i <= 30) {
if (masukShield[i] != undefined) {
tipeEquip['shield' + (i - 20)]._visible = true;
tipeEquip['shield' + (i - 20)].gotoAndStop(masukShield[i]);
tipeEquip['shield' + (i - 20)].onRelease = klikShield;
tipeEquip['shield' + (i - 20)].xjumlah = _root['shieldPunya' + masukShield[i]];
}
++i;
}
} else {
if (halamanKe == 4) {
i = 31;
while (i <= 40) {
if (masukShield[i] != undefined) {
tipeEquip['shield' + (i - 30)]._visible = true;
tipeEquip['shield' + (i - 30)].gotoAndStop(masukShield[i]);
tipeEquip['shield' + (i - 30)].onRelease = klikShield;
tipeEquip['shield' + (i - 30)].xjumlah = _root['shieldPunya' + masukShield[i]];
}
++i;
}
} else {
if (halamanKe == 5) {
i = 41;
while (i <= 44) {
if (masukShield[i] != undefined) {
tipeEquip['shield' + (i - 40)]._visible = true;
tipeEquip['shield' + (i - 40)].gotoAndStop(masukShield[i]);
tipeEquip['shield' + (i - 40)].onRelease = klikShield;
tipeEquip['shield' + (i - 40)].xjumlah = _root['shieldPunya' + masukShield[i]];
}
++i;
}
}
}
}
}
}
}
function klikShield() {
backKlik();
if (this.tandaList._visible == false) {
i = 1;
while (i <= 10) {
tipeEquip['shield' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
xinfo = infoShield[this._currentframe];
siapaPunya = partyKeSiapa;
siapaWeapon = _root['weaponPasang' + partyKeSiapa];
kiniWeapon = _root['weaponPasang' + partyKeSiapa];
siapaShield = _root['shieldPasang' + partyKeSiapa];
kiniShield = this._currentframe;
siapaHead = _root['headPasang' + partyKeSiapa];
kiniHead = _root['headPasang' + partyKeSiapa];
siapaBody = _root['bodyPasang' + partyKeSiapa];
kiniBody = _root['bodyPasang' + partyKeSiapa];
kalkulasiStats('akhir');
} else {
if (_root['shieldPasang' + partyKeSiapa] != this._currentframe) {
if (_root['shieldPasang' + partyKeSiapa] != 0) {
++_root['shieldPunya' + _root['shieldPasang' + partyKeSiapa]];
}
_root['shieldPasang' + partyKeSiapa] = this._currentframe;
--_root['shieldPunya' + this._currentframe];
initKarakter();
cekEquip();
}
}
}
function cekHeadHalaman() {
i = 1;
while (i <= 10) {
tipeEquip['head' + i].tandaList._visible = false;
tipeEquip['head' + i]._visible = false;
++i;
}
if (halamanKe == 1) {
i = 1;
while (i <= 10) {
if (masukHead[i] != undefined) {
tipeEquip['head' + i]._visible = true;
tipeEquip['head' + i].gotoAndStop(masukHead[i]);
tipeEquip['head' + i].onRelease = klikHead;
tipeEquip['head' + i].xjumlah = _root['armorPunya' + masukHead[i]];
}
++i;
}
} else {
if (halamanKe == 2) {
i = 11;
while (i <= 20) {
if (masukHead[i] != undefined) {
tipeEquip['head' + (i - 10)]._visible = true;
tipeEquip['head' + (i - 10)].gotoAndStop(masukHead[i]);
tipeEquip['head' + (i - 10)].onRelease = klikHead;
tipeEquip['head' + (i - 10)].xjumlah = _root['armorPunya' + masukHead[i]];
}
++i;
}
}
}
}
function klikHead() {
backKlik();
if (this.tandaList._visible == false) {
i = 1;
while (i <= 10) {
tipeEquip['head' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
xinfo = infoArmor[this._currentframe];
siapaPunya = partyKeSiapa;
siapaWeapon = _root['weaponPasang' + partyKeSiapa];
kiniWeapon = _root['weaponPasang' + partyKeSiapa];
siapaShield = _root['shieldPasang' + partyKeSiapa];
kiniShield = _root['shieldPasang' + partyKeSiapa];
siapaHead = _root['headPasang' + partyKeSiapa];
kiniHead = this._currentframe;
siapaBody = _root['bodyPasang' + partyKeSiapa];
kiniBody = _root['bodyPasang' + partyKeSiapa];
kalkulasiStats('akhir');
slot_mc.gotoAndStop(slotMagicArmor[this._currentframe]);
i = 1;
while (i <= 8) {
slot_mc['isi' + i]._visible = false;
++i;
}
} else {
if (_root['headPasang' + partyKeSiapa] != this._currentframe) {
adaPerubahanHead = true;
if (_root['headPasang' + partyKeSiapa] != 0) {
++_root['armorPunya' + _root['headPasang' + partyKeSiapa]];
}
_root['headPasang' + partyKeSiapa] = this._currentframe;
--_root['armorPunya' + this._currentframe];
i = 1;
while (i <= 8) {
if (_root['spellPasang' + partyKeSiapa + i] != 0) {
++_root['spellPunya' + _root['spellPasang' + partyKeSiapa + i]];
_root['spellPasang' + partyKeSiapa + i] = 0;
}
++i;
}
initKarakter();
cekEquip();
}
}
}
function cekBodyHalaman() {
i = 1;
while (i <= 10) {
tipeEquip['body' + i].tandaList._visible = false;
tipeEquip['body' + i]._visible = false;
++i;
}
if (halamanKe == 1) {
i = 1;
while (i <= 10) {
if (masukBody[i] != undefined) {
tipeEquip['body' + i]._visible = true;
tipeEquip['body' + i].gotoAndStop(masukBody[i]);
tipeEquip['body' + i].onRelease = klikBody;
tipeEquip['body' + i].xjumlah = _root['armorPunya' + masukBody[i]];
}
++i;
}
} else {
if (halamanKe == 2) {
i = 11;
while (i <= 20) {
if (masukBody[i] != undefined) {
tipeEquip['body' + (i - 10)]._visible = true;
tipeEquip['body' + (i - 10)].gotoAndStop(masukBody[i]);
tipeEquip['body' + (i - 10)].onRelease = klikBody;
tipeEquip['body' + (i - 10)].xjumlah = _root['armorPunya' + masukBody[i]];
}
++i;
}
}
}
}
function klikBody() {
backKlik();
if (this.tandaList._visible == false) {
i = 1;
while (i <= 10) {
tipeEquip['body' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
xinfo = infoArmor[this._currentframe];
siapaPunya = partyKeSiapa;
siapaWeapon = _root['weaponPasang' + partyKeSiapa];
kiniWeapon = _root['weaponPasang' + partyKeSiapa];
siapaShield = _root['shieldPasang' + partyKeSiapa];
kiniShield = _root['shieldPasang' + partyKeSiapa];
siapaHead = _root['headPasang' + partyKeSiapa];
kiniHead = _root['headPasang' + partyKeSiapa];
siapaBody = _root['bodyPasang' + partyKeSiapa];
kiniBody = this._currentframe - 20;
kalkulasiStats('akhir');
} else {
if (_root['bodyPasang' + partyKeSiapa] != this._currentframe - 20) {
if (_root['bodyPasang' + partyKeSiapa] != 0) {
++_root['armorPunya' + (_root['bodyPasang' + partyKeSiapa] + 20)];
}
_root['bodyPasang' + partyKeSiapa] = this._currentframe - 20;
--_root['armorPunya' + this._currentframe];
initKarakter();
cekEquip();
}
}
}
function cekFineryHalaman() {
i = 1;
while (i <= 10) {
tipeEquip['finery' + i].tandaList._visible = false;
tipeEquip['finery' + i]._visible = false;
++i;
}
if (halamanKe == 1) {
i = 1;
while (i <= 10) {
if (masukFinery[i] != undefined) {
tipeEquip['finery' + i]._visible = true;
tipeEquip['finery' + i].gotoAndStop(masukFinery[i]);
tipeEquip['finery' + i].onRelease = klikFinery;
tipeEquip['finery' + i].xjumlah = _root['fineryPunya' + masukFinery[i]];
}
++i;
}
} else {
if (halamanKe == 2) {
i = 11;
while (i <= 20) {
if (masukFinery[i] != undefined) {
tipeEquip['finery' + (i - 10)]._visible = true;
tipeEquip['finery' + (i - 10)].gotoAndStop(masukFinery[i]);
tipeEquip['finery' + (i - 10)].onRelease = klikFinery;
tipeEquip['finery' + (i - 10)].xjumlah = _root['fineryPunya' + masukFinery[i]];
}
++i;
}
} else {
if (halamanKe == 3) {
i = 21;
while (i <= 30) {
if (masukFinery[i] != undefined) {
tipeEquip['finery' + (i - 20)]._visible = true;
tipeEquip['finery' + (i - 20)].gotoAndStop(masukFinery[i]);
tipeEquip['finery' + (i - 20)].onRelease = klikFinery;
tipeEquip['finery' + (i - 20)].xjumlah = _root['fineryPunya' + masukFinery[i]];
}
++i;
}
} else {
if (halamanKe == 4) {
i = 31;
while (i <= 40) {
if (masukFinery[i] != undefined) {
tipeEquip['finery' + (i - 30)]._visible = true;
tipeEquip['finery' + (i - 30)].gotoAndStop(masukFinery[i]);
tipeEquip['finery' + (i - 30)].onRelease = klikFinery;
tipeEquip['finery' + (i - 30)].xjumlah = _root['fineryPunya' + masukFinery[i]];
}
++i;
}
}
}
}
}
}
function klikFinery() {
backKlik();
if (this.tandaList._visible == false) {
i = 1;
while (i <= 10) {
tipeEquip['finery' + i].tandaList._visible = false;
++i;
}
xinfo = infoFinery[this._currentframe];
this.tandaList._visible = true;
} else {
if (_root['fineryPasang' + partyKeSiapa + pilihanFinery] != this._currentframe) {
if (_root['fineryPasang' + partyKeSiapa + pilihanFinery] != 0) {
++_root['fineryPunya' + _root['fineryPasang' + partyKeSiapa + pilihanFinery]];
}
_root['fineryPasang' + partyKeSiapa + pilihanFinery] = this._currentframe;
--_root['fineryPunya' + this._currentframe];
cekPerubahanCommand(partyKeSiapa);
cekPerubahanHPMP();
initKarakter();
cekEquip();
}
}
}
function cekPerubahanCommand(partyKeSiapa) {
adaMug = false;
i = 1;
while (i <= 4) {
if (_root['fineryPasang' + partyKeSiapa + i] == 30) {
adaMug = true;
}
++i;
}
if (adaMug == true) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 7) {
_root['command' + partyKeSiapa + i] = 13;
}
++i;
}
} else {
if (adaMug == false) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 13) {
_root['command' + partyKeSiapa + i] = 7;
}
++i;
}
}
}
adaPray = false;
i = 1;
while (i <= 4) {
if (_root['fineryPasang' + partyKeSiapa + i] == 31) {
adaPray = true;
}
++i;
}
if (adaPray == true) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 8) {
_root['command' + partyKeSiapa + i] = 14;
}
++i;
}
} else {
if (adaPray == false) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 14) {
_root['command' + partyKeSiapa + i] = 8;
}
++i;
}
}
}
adaUringToss = false;
i = 1;
while (i <= 4) {
if (_root['fineryPasang' + partyKeSiapa + i] == 32) {
adaUringToss = true;
}
++i;
}
if (adaUringToss == true) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 12) {
_root['command' + partyKeSiapa + i] = 15;
}
++i;
}
} else {
if (adaUringToss == false) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 15) {
_root['command' + partyKeSiapa + i] = 12;
}
++i;
}
}
}
adaDualCopy = false;
i = 1;
while (i <= 4) {
if (_root['fineryPasang' + partyKeSiapa + i] == 33) {
adaDualCopy = true;
}
++i;
}
if (adaDualCopy == true) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 10) {
_root['command' + partyKeSiapa + i] = 16;
}
++i;
}
} else {
if (adaDualCopy == false) {
i = 1;
while (i <= 4) {
if (_root['command' + partyKeSiapa + i] == 16) {
_root['command' + partyKeSiapa + i] = 10;
}
++i;
}
}
}
}
stop();
tutorial_mc._visible = false;
if (tutorialAda == true) {
if (adaTutorial4 == true) {
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(4);
tutorial_mc.oke_btn.onRelease = function () {
backKlik();
tutorial_mc._visible = false;
adaTutorial4 = false;
};
tutorial_mc.switch_mc.gotoAndStop(1);
tutorial_mc.switch_mc.onRelease = function () {
backKlik();
if (tutorialAda == true) {
tutorialAda = false;
tutorial_mc.switch_mc.gotoAndStop(2);
} else {
tutorialAda = true;
tutorial_mc.switch_mc.gotoAndStop(1);
}
};
}
}
slotMagicArmor = new Array('', 3, 1, 2, 4, 5, 6, 7, 8, 9, 10, 6, 5, 7, 8, 10, 9, 12, 14, 13, 11);
back_btn.onRelease = function () {
backKlik();
if (adaPerubahanHead == false) {
gotoAndStop('awalan');
} else {
gotoAndStop('spell status');
}
};
prev_btn2.onRelease = function () {
backKlik();
cekPrev();
if (_root['party' + arahKarakter] == 0) {
cekPrev();
if (_root['party' + arahKarakter] == 0) {
cekPrev();
initKarakter();
cekEquip();
} else {
initKarakter();
cekEquip();
}
} else {
initKarakter();
cekEquip();
}
};
next_btn2.onRelease = function () {
backKlik();
cekNext();
if (_root['party' + arahKarakter] == 0) {
cekNext();
if (_root['party' + arahKarakter] == 0) {
cekNext();
initKarakter();
cekEquip();
} else {
initKarakter();
cekEquip();
}
} else {
initKarakter();
cekEquip();
}
};
adaPerubahanHead = false;
pilihanEquip = 1;
weapon.tandaList._visible = true;
shield.tandaList._visible = false;
head.tandaList._visible = false;
body.tandaList._visible = false;
finery1.tandaList._visible = false;
finery2.tandaList._visible = false;
finery3.tandaList._visible = false;
finery4.tandaList._visible = false;
weapon.onRelease = function () {
backKlik();
pilihanEquip = 1;
weapon.tandaList._visible = true;
shield.tandaList._visible = false;
head.tandaList._visible = false;
body.tandaList._visible = false;
finery1.tandaList._visible = false;
finery2.tandaList._visible = false;
finery3.tandaList._visible = false;
finery4.tandaList._visible = false;
initKarakter();
cekEquip();
if (this._currentframe == 100) {
xinfo = '';
} else {
xinfo = infoWeapon[this._currentframe];
}
};
shield.onRelease = function () {
backKlik();
pilihanEquip = 2;
weapon.tandaList._visible = false;
shield.tandaList._visible = true;
head.tandaList._visible = false;
body.tandaList._visible = false;
finery1.tandaList._visible = false;
finery2.tandaList._visible = false;
finery3.tandaList._visible = false;
finery4.tandaList._visible = false;
initKarakter();
cekEquip();
if (this._currentframe == 100) {
xinfo = '';
} else {
xinfo = infoShield[this._currentframe];
}
};
head.onRelease = function () {
backKlik();
pilihanEquip = 3;
weapon.tandaList._visible = false;
shield.tandaList._visible = false;
head.tandaList._visible = true;
body.tandaList._visible = false;
finery1.tandaList._visible = false;
finery2.tandaList._visible = false;
finery3.tandaList._visible = false;
finery4.tandaList._visible = false;
initKarakter();
cekEquip();
if (this._currentframe == 100) {
xinfo = '';
} else {
xinfo = infoArmor[this._currentframe];
}
};
body.onRelease = function () {
backKlik();
pilihanEquip = 4;
weapon.tandaList._visible = false;
shield.tandaList._visible = false;
head.tandaList._visible = false;
body.tandaList._visible = true;
finery1.tandaList._visible = false;
finery2.tandaList._visible = false;
finery3.tandaList._visible = false;
finery4.tandaList._visible = false;
initKarakter();
cekEquip();
if (this._currentframe == 100) {
xinfo = '';
} else {
xinfo = infoArmor[this._currentframe - 20];
}
};
finery1.onRelease = function () {
backKlik();
pilihanFinery = 1;
pilihanEquip = 5;
weapon.tandaList._visible = false;
shield.tandaList._visible = false;
head.tandaList._visible = false;
body.tandaList._visible = false;
finery1.tandaList._visible = true;
finery2.tandaList._visible = false;
finery3.tandaList._visible = false;
finery4.tandaList._visible = false;
initKarakter();
cekEquip();
if (this._currentframe == 100) {
xinfo = '';
} else {
xinfo = infoFinery[this._currentframe];
}
};
finery2.onRelease = function () {
backKlik();
pilihanFinery = 2;
pilihanEquip = 5;
weapon.tandaList._visible = false;
shield.tandaList._visible = false;
head.tandaList._visible = false;
body.tandaList._visible = false;
finery1.tandaList._visible = false;
finery2.tandaList._visible = true;
finery3.tandaList._visible = false;
finery4.tandaList._visible = false;
initKarakter();
cekEquip();
if (this._currentframe == 100) {
xinfo = '';
} else {
xinfo = infoFinery[this._currentframe];
}
};
finery3.onRelease = function () {
backKlik();
pilihanFinery = 3;
pilihanEquip = 5;
weapon.tandaList._visible = false;
shield.tandaList._visible = false;
head.tandaList._visible = false;
body.tandaList._visible = false;
finery1.tandaList._visible = false;
finery2.tandaList._visible = false;
finery3.tandaList._visible = true;
finery4.tandaList._visible = false;
initKarakter();
cekEquip();
if (this._currentframe == 100) {
xinfo = '';
} else {
xinfo = infoFinery[this._currentframe];
}
};
finery4.onRelease = function () {
backKlik();
pilihanFinery = 4;
pilihanEquip = 5;
weapon.tandaList._visible = false;
shield.tandaList._visible = false;
head.tandaList._visible = false;
body.tandaList._visible = false;
finery1.tandaList._visible = false;
finery2.tandaList._visible = false;
finery3.tandaList._visible = false;
finery4.tandaList._visible = true;
initKarakter();
cekEquip();
if (this._currentframe == 100) {
xinfo = '';
} else {
xinfo = infoFinery[this._currentframe];
}
};
initKarakter();
cekEquip();
}
movieClip 1290 {
frame 1 {
stop();
}
}
movieClip 1368 {
frame 1 {
stop();
}
}
movieClip 1451 {
frame 1 {
stop();
}
}
movieClip 1530 {
frame 1 {
stop();
}
}
movieClip 1531 {
frame 1 {
stop();
}
}
movieClip 1545 {
frame 1 {
stop();
}
}
movieClip 1572 {
frame 1 {
stop();
}
}
movieClip 1587 {
frame 1 {
stop();
}
}
frame 333 {
function awalanItem() {
xinfo = '';
back_btn.onRelease = function () {
backKlik();
gotoAndStop('awalan');
};
masukItem = new Array();
tipeItem = new Array();
keItem = 1;
xmaxItem = 0;
xkiniItem = 0;
i = 1;
while (i <= 83) {
++xmaxItem;
if (_root['itemPunya' + i] > 0) {
++xkiniItem;
masukItem[keItem] = i;
tipeItem[keItem] = 'Item';
++keItem;
}
++i;
}
i = 1;
while (i <= 34) {
++xmaxItem;
if (_root['spellPunya' + i] > 0) {
++xkiniItem;
masukItem[keItem] = i;
tipeItem[keItem] = 'Spell';
++keItem;
}
++i;
}
i = 1;
while (i <= 44) {
++xmaxItem;
if (_root['weaponPunya' + i] > 0) {
++xkiniItem;
masukItem[keItem] = i;
tipeItem[keItem] = 'Weapon';
++keItem;
}
++i;
}
i = 1;
while (i <= 36) {
++xmaxItem;
if (_root['shieldPunya' + i] > 0) {
++xkiniItem;
masukItem[keItem] = i;
tipeItem[keItem] = 'Shield';
++keItem;
}
++i;
}
i = 1;
while (i <= 40) {
++xmaxItem;
if (_root['armorPunya' + i] > 0) {
++xkiniItem;
masukItem[keItem] = i;
tipeItem[keItem] = 'Armor';
++keItem;
}
++i;
}
i = 1;
while (i <= 40) {
++xmaxItem;
if (_root['fineryPunya' + i] > 0) {
++xkiniItem;
masukItem[keItem] = i;
tipeItem[keItem] = 'Finery';
++keItem;
}
++i;
}
xtotalItem = 'Total Item: ' + xkiniItem + ' / ' + xmaxItem;
}
function cekHalaman() {
pageKe = 'Page: ' + halamanKe + '/10';
i = 1;
while (i <= 30) {
_root['item' + i]._visible = false;
_root['item' + i].tandaList._visible = false;
++i;
}
if (halamanKe == 1) {
i = 1;
while (i <= 30) {
if (masukItem[i] != undefined) {
_root['item' + i]._visible = true;
if (tipeItem[i] == 'Item') {
_root['item' + i].namaItem = namaItem[masukItem[i]];
_root['item' + i].jumlah = _root['itemPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Spell') {
_root['item' + i].namaItem = namaSpell[masukItem[i]];
_root['item' + i].jumlah = _root['spellPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Weapon') {
_root['item' + i].namaItem = namaWeapon[masukItem[i]];
_root['item' + i].jumlah = _root['weaponPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Shield') {
_root['item' + i].namaItem = namaShield[masukItem[i]];
_root['item' + i].jumlah = _root['shieldPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Armor') {
_root['item' + i].namaItem = namaArmor[masukItem[i]];
_root['item' + i].jumlah = _root['armorPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Finery') {
_root['item' + i].namaItem = namaFinery[masukItem[i]];
_root['item' + i].jumlah = _root['fineryPunya' + masukItem[i]];
}
}
}
}
}
}
_root['item' + i].keBerapa = masukItem[i];
_root['item' + i].tipeBerapa = tipeItem[i];
_root['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 2) {
i = 1;
while (i <= 30) {
if (masukItem[i + 30] != undefined) {
_root['item' + i]._visible = true;
if (tipeItem[i + 30] == 'Item') {
_root['item' + i].namaItem = namaItem[masukItem[i + 30]];
_root['item' + i].jumlah = _root['itemPunya' + masukItem[i + 30]];
} else {
if (tipeItem[i + 30] == 'Spell') {
_root['item' + i].namaItem = namaSpell[masukItem[i + 30]];
_root['item' + i].jumlah = _root['spellPunya' + masukItem[i + 30]];
} else {
if (tipeItem[i + 30] == 'Weapon') {
_root['item' + i].namaItem = namaWeapon[masukItem[i + 30]];
_root['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 30]];
} else {
if (tipeItem[i + 30] == 'Shield') {
_root['item' + i].namaItem = namaShield[masukItem[i + 30]];
_root['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 30]];
} else {
if (tipeItem[i + 30] == 'Armor') {
_root['item' + i].namaItem = namaArmor[masukItem[i + 30]];
_root['item' + i].jumlah = _root['armorPunya' + masukItem[i + 30]];
} else {
if (tipeItem[i + 30] == 'Finery') {
_root['item' + i].namaItem = namaFinery[masukItem[i + 30]];
_root['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 30]];
}
}
}
}
}
}
_root['item' + i].keBerapa = masukItem[i + 30];
_root['item' + i].tipeBerapa = tipeItem[i + 30];
_root['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 3) {
i = 1;
while (i <= 30) {
if (masukItem[i + 60] != undefined) {
_root['item' + i]._visible = true;
if (tipeItem[i + 60] == 'Item') {
_root['item' + i].namaItem = namaItem[masukItem[i + 60]];
_root['item' + i].jumlah = _root['itemPunya' + masukItem[i + 60]];
} else {
if (tipeItem[i + 60] == 'Spell') {
_root['item' + i].namaItem = namaSpell[masukItem[i + 60]];
_root['item' + i].jumlah = _root['spellPunya' + masukItem[i + 60]];
} else {
if (tipeItem[i + 60] == 'Weapon') {
_root['item' + i].namaItem = namaWeapon[masukItem[i + 60]];
_root['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 60]];
} else {
if (tipeItem[i + 60] == 'Shield') {
_root['item' + i].namaItem = namaShield[masukItem[i + 60]];
_root['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 60]];
} else {
if (tipeItem[i + 60] == 'Armor') {
_root['item' + i].namaItem = namaArmor[masukItem[i + 60]];
_root['item' + i].jumlah = _root['armorPunya' + masukItem[i + 60]];
} else {
if (tipeItem[i + 60] == 'Finery') {
_root['item' + i].namaItem = namaFinery[masukItem[i + 60]];
_root['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 60]];
}
}
}
}
}
}
_root['item' + i].keBerapa = masukItem[i + 60];
_root['item' + i].tipeBerapa = tipeItem[i + 60];
_root['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 4) {
i = 1;
while (i <= 30) {
if (masukItem[i + 90] != undefined) {
_root['item' + i]._visible = true;
if (tipeItem[i + 90] == 'Item') {
_root['item' + i].namaItem = namaItem[masukItem[i + 90]];
_root['item' + i].jumlah = _root['itemPunya' + masukItem[i + 90]];
} else {
if (tipeItem[i + 90] == 'Spell') {
_root['item' + i].namaItem = namaSpell[masukItem[i + 90]];
_root['item' + i].jumlah = _root['spellPunya' + masukItem[i + 90]];
} else {
if (tipeItem[i + 90] == 'Weapon') {
_root['item' + i].namaItem = namaWeapon[masukItem[i + 90]];
_root['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 90]];
} else {
if (tipeItem[i + 90] == 'Shield') {
_root['item' + i].namaItem = namaShield[masukItem[i + 90]];
_root['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 90]];
} else {
if (tipeItem[i + 90] == 'Armor') {
_root['item' + i].namaItem = namaArmor[masukItem[i + 90]];
_root['item' + i].jumlah = _root['armorPunya' + masukItem[i + 90]];
} else {
if (tipeItem[i + 90] == 'Finery') {
_root['item' + i].namaItem = namaFinery[masukItem[i + 90]];
_root['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 90]];
}
}
}
}
}
}
_root['item' + i].keBerapa = masukItem[i + 90];
_root['item' + i].tipeBerapa = tipeItem[i + 90];
_root['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 5) {
i = 1;
while (i <= 30) {
if (masukItem[i + 120] != undefined) {
_root['item' + i]._visible = true;
if (tipeItem[i + 120] == 'Item') {
_root['item' + i].namaItem = namaItem[masukItem[i + 120]];
_root['item' + i].jumlah = _root['itemPunya' + masukItem[i + 120]];
} else {
if (tipeItem[i + 120] == 'Spell') {
_root['item' + i].namaItem = namaSpell[masukItem[i + 120]];
_root['item' + i].jumlah = _root['spellPunya' + masukItem[i + 120]];
} else {
if (tipeItem[i + 120] == 'Weapon') {
_root['item' + i].namaItem = namaWeapon[masukItem[i + 120]];
_root['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 120]];
} else {
if (tipeItem[i + 120] == 'Shield') {
_root['item' + i].namaItem = namaShield[masukItem[i + 120]];
_root['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 120]];
} else {
if (tipeItem[i + 120] == 'Armor') {
_root['item' + i].namaItem = namaArmor[masukItem[i + 120]];
_root['item' + i].jumlah = _root['armorPunya' + masukItem[i + 120]];
} else {
if (tipeItem[i + 120] == 'Finery') {
_root['item' + i].namaItem = namaFinery[masukItem[i + 120]];
_root['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 120]];
}
}
}
}
}
}
_root['item' + i].keBerapa = masukItem[i + 120];
_root['item' + i].tipeBerapa = tipeItem[i + 120];
_root['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 6) {
i = 1;
while (i <= 30) {
if (masukItem[i + 150] != undefined) {
_root['item' + i]._visible = true;
if (tipeItem[i + 150] == 'Item') {
_root['item' + i].namaItem = namaItem[masukItem[i + 150]];
_root['item' + i].jumlah = _root['itemPunya' + masukItem[i + 150]];
} else {
if (tipeItem[i + 150] == 'Spell') {
_root['item' + i].namaItem = namaSpell[masukItem[i + 150]];
_root['item' + i].jumlah = _root['spellPunya' + masukItem[i + 150]];
} else {
if (tipeItem[i + 150] == 'Weapon') {
_root['item' + i].namaItem = namaWeapon[masukItem[i + 150]];
_root['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 150]];
} else {
if (tipeItem[i + 150] == 'Shield') {
_root['item' + i].namaItem = namaShield[masukItem[i + 150]];
_root['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 150]];
} else {
if (tipeItem[i + 150] == 'Armor') {
_root['item' + i].namaItem = namaArmor[masukItem[i + 150]];
_root['item' + i].jumlah = _root['armorPunya' + masukItem[i + 150]];
} else {
if (tipeItem[i + 150] == 'Finery') {
_root['item' + i].namaItem = namaFinery[masukItem[i + 150]];
_root['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 150]];
}
}
}
}
}
}
_root['item' + i].keBerapa = masukItem[i + 150];
_root['item' + i].tipeBerapa = tipeItem[i + 150];
_root['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 7) {
i = 1;
while (i <= 30) {
if (masukItem[i + 180] != undefined) {
_root['item' + i]._visible = true;
if (tipeItem[i + 180] == 'Item') {
_root['item' + i].namaItem = namaItem[masukItem[i + 180]];
_root['item' + i].jumlah = _root['itemPunya' + masukItem[i + 180]];
} else {
if (tipeItem[i + 180] == 'Spell') {
_root['item' + i].namaItem = namaSpell[masukItem[i + 180]];
_root['item' + i].jumlah = _root['spellPunya' + masukItem[i + 180]];
} else {
if (tipeItem[i + 180] == 'Weapon') {
_root['item' + i].namaItem = namaWeapon[masukItem[i + 180]];
_root['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 180]];
} else {
if (tipeItem[i + 180] == 'Shield') {
_root['item' + i].namaItem = namaShield[masukItem[i + 180]];
_root['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 180]];
} else {
if (tipeItem[i + 180] == 'Armor') {
_root['item' + i].namaItem = namaArmor[masukItem[i + 180]];
_root['item' + i].jumlah = _root['armorPunya' + masukItem[i + 180]];
} else {
if (tipeItem[i + 180] == 'Finery') {
_root['item' + i].namaItem = namaFinery[masukItem[i + 180]];
_root['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 180]];
}
}
}
}
}
}
_root['item' + i].keBerapa = masukItem[i + 180];
_root['item' + i].tipeBerapa = tipeItem[i + 180];
_root['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 8) {
i = 1;
while (i <= 30) {
if (masukItem[i + 210] != undefined) {
_root['item' + i]._visible = true;
if (tipeItem[i + 210] == 'Item') {
_root['item' + i].namaItem = namaItem[masukItem[i + 210]];
_root['item' + i].jumlah = _root['itemPunya' + masukItem[i + 210]];
} else {
if (tipeItem[i + 210] == 'Spell') {
_root['item' + i].namaItem = namaSpell[masukItem[i + 210]];
_root['item' + i].jumlah = _root['spellPunya' + masukItem[i + 210]];
} else {
if (tipeItem[i + 210] == 'Weapon') {
_root['item' + i].namaItem = namaWeapon[masukItem[i + 210]];
_root['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 210]];
} else {
if (tipeItem[i + 210] == 'Shield') {
_root['item' + i].namaItem = namaShield[masukItem[i + 210]];
_root['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 210]];
} else {
if (tipeItem[i + 210] == 'Armor') {
_root['item' + i].namaItem = namaArmor[masukItem[i + 210]];
_root['item' + i].jumlah = _root['armorPunya' + masukItem[i + 210]];
} else {
if (tipeItem[i + 210] == 'Finery') {
_root['item' + i].namaItem = namaFinery[masukItem[i + 210]];
_root['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 210]];
}
}
}
}
}
}
_root['item' + i].keBerapa = masukItem[i + 210];
_root['item' + i].tipeBerapa = tipeItem[i + 210];
_root['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 9) {
i = 1;
while (i <= 30) {
if (masukItem[i + 240] != undefined) {
_root['item' + i]._visible = true;
if (tipeItem[i + 240] == 'Item') {
_root['item' + i].namaItem = namaItem[masukItem[i + 240]];
_root['item' + i].jumlah = _root['itemPunya' + masukItem[i + 240]];
} else {
if (tipeItem[i + 240] == 'Spell') {
_root['item' + i].namaItem = namaSpell[masukItem[i + 240]];
_root['item' + i].jumlah = _root['spellPunya' + masukItem[i + 240]];
} else {
if (tipeItem[i + 240] == 'Weapon') {
_root['item' + i].namaItem = namaWeapon[masukItem[i + 240]];
_root['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 240]];
} else {
if (tipeItem[i + 240] == 'Shield') {
_root['item' + i].namaItem = namaShield[masukItem[i + 240]];
_root['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 240]];
} else {
if (tipeItem[i + 240] == 'Armor') {
_root['item' + i].namaItem = namaArmor[masukItem[i + 240]];
_root['item' + i].jumlah = _root['armorPunya' + masukItem[i + 240]];
} else {
if (tipeItem[i + 240] == 'Finery') {
_root['item' + i].namaItem = namaFinery[masukItem[i + 240]];
_root['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 240]];
}
}
}
}
}
}
_root['item' + i].keBerapa = masukItem[i + 240];
_root['item' + i].tipeBerapa = tipeItem[i + 240];
_root['item' + i].onRelease = klikItem;
}
++i;
}
} else {
if (halamanKe == 10) {
i = 1;
while (i <= 30) {
if (masukItem[i + 270] != undefined) {
_root['item' + i]._visible = true;
if (tipeItem[i + 270] == 'Item') {
_root['item' + i].namaItem = namaItem[masukItem[i + 270]];
_root['item' + i].jumlah = _root['itemPunya' + masukItem[i + 270]];
} else {
if (tipeItem[i + 270] == 'Spell') {
_root['item' + i].namaItem = namaSpell[masukItem[i + 270]];
_root['item' + i].jumlah = _root['spellPunya' + masukItem[i + 270]];
} else {
if (tipeItem[i + 270] == 'Weapon') {
_root['item' + i].namaItem = namaWeapon[masukItem[i + 270]];
_root['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 270]];
} else {
if (tipeItem[i + 270] == 'Shield') {
_root['item' + i].namaItem = namaShield[masukItem[i + 270]];
_root['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 270]];
} else {
if (tipeItem[i + 270] == 'Armor') {
_root['item' + i].namaItem = namaArmor[masukItem[i + 270]];
_root['item' + i].jumlah = _root['armorPunya' + masukItem[i + 270]];
} else {
if (tipeItem[i + 270] == 'Finery') {
_root['item' + i].namaItem = namaFinery[masukItem[i + 270]];
_root['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 270]];
}
}
}
}
}
}
_root['item' + i].keBerapa = masukItem[i + 270];
_root['item' + i].tipeBerapa = tipeItem[i + 270];
_root['item' + i].onRelease = klikItem;
}
++i;
}
}
}
}
}
}
}
}
}
}
}
}
function klikItem() {
backKlik();
if (this.tandaList._visible == false) {
karakterPilih_mc._visible = false;
i = 1;
while (i <= 30) {
_root['item' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
if (this.tipeBerapa == 'Item') {
xinfo = infoItem[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Spell') {
xinfo = infoSpell[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Weapon') {
xinfo = infoWeapon[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Shield') {
xinfo = infoShield[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Armor') {
xinfo = infoArmor[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Finery') {
xinfo = infoFinery[this.keBerapa] + ' (' + this.tipeBerapa + ')';
}
}
}
}
}
}
yangDiklik = this.tipeBerapa;
yangPosisi = this.keBerapa;
yangItemPos = this;
} else {
if (yangDiklik == 'Item') {
if (yangPosisi == 76 || yangPosisi == 77 || yangPosisi == 78 || yangPosisi == 79 || yangPosisi == 80 || yangPosisi == 81) {
if (posisiKini == 35) {
}
} else {
if (yangPosisi == 75) {
pilihSemuaArea = true;
gotoAndStop(323);
} else {
if (yangPosisi == 7 || yangPosisi == 41 || yangPosisi == 42 || yangPosisi == 43) {
gagalItem = false;
if (yangPosisi == 7) {
if (xsavePoint == true) {
kedip_mc.gotoAndPlay(2);
ceRestoreSemua();
gotoAndStop('awalan');
} else {
cekGagal();
}
} else {
if (yangPosisi == 41) {
adaKurang = false;
i = 1;
while (i <= 3) {
if (_root['xKiniHP' + _root['party' + i]] < _root['xHP' + _root['party' + i]]) {
adaKurang = true;
_root['xKiniHP' + _root['party' + i]] = _root['xHP' + _root['party' + i]];
}
++i;
}
if (adaKurang == false) {
cekGagal();
}
} else {
if (yangPosisi == 42) {
adaKurang = false;
i = 1;
while (i <= 3) {
if (_root['xKiniMP' + _root['party' + i]] < _root['xMP' + _root['party' + i]]) {
adaKurang = true;
_root['xKiniMP' + _root['party' + i]] = _root['xMP' + _root['party' + i]];
}
++i;
}
if (adaKurang == false) {
cekGagal();
}
} else {
if (yangPosisi == 43) {
adaKurang = false;
i = 1;
while (i <= 3) {
if (_root['xKiniHP' + _root['party' + i]] < _root['xHP' + _root['party' + i]]) {
adaKurang = true;
_root['xKiniHP' + _root['party' + i]] = _root['xHP' + _root['party' + i]];
}
++i;
}
i = 1;
while (i <= 3) {
if (_root['xKiniMP' + _root['party' + i]] < _root['xMP' + _root['party' + i]]) {
adaKurang = true;
_root['xKiniMP' + _root['party' + i]] = _root['xMP' + _root['party' + i]];
}
++i;
}
if (adaKurang == false) {
cekGagal();
}
}
}
}
}
if (gagalItem == false) {
--_root['itemPunya' + yangPosisi];
awalanItem();
cekHalaman();
}
if (_root['itemPunya' + yangPosisi] > 0) {
yangItemPos.tandaList._visible = true;
xinfo = infoItem[yangPosisi] + ' (' + yangDiklik + ')';
} else {
karakterPilih_mc._visible = false;
}
} else {
if (yangPosisi >= 11 && yangPosisi <= 28) {
} else {
if (yangPosisi >= 33 && yangPosisi <= 38) {
} else {
if (yangPosisi >= 44 && yangPosisi <= 58) {
} else {
if (yangPosisi >= 68 && yangPosisi <= 70) {
} else {
if (yangPosisi == 82) {
gagalItem = false;
if (uring <= 0) {
cekGagal();
} else {
uring *= 2;
}
if (gagalItem == false) {
--_root['itemPunya' + yangPosisi];
awalanItem();
cekHalaman();
}
} else {
if (yangPosisi == 83) {
z = 1;
while (z <= 6) {
_root['xLevel' + z] = 100;
_root['tambahanHP' + z] = 99999;
_root['tambahanMP' + z] = 9999;
_root['xStrength' + z] = 350;
_root['xVitality' + z] = 350;
_root['xAttack' + z] = 350;
_root['xDefense' + z] = 350;
_root['xspeed' + z] = 100;
_root['xspeedTrance' + z] = 100;
_root['xMagicAttack' + z] = 350;
_root['xMagicDefense' + z] = 350;
_root['xEvade' + z] = 100;
_root['xAccuracy' + z] = 100;
_root['xLuck' + z] = 100;
cekPerubahanHPMP(z);
++z;
}
--_root['itemPunya' + yangPosisi];
awalanItem();
cekHalaman();
} else {
karakterPilih_mc._visible = true;
i = 1;
while (i <= 3) {
partyKeSiapa = _root['party' + i];
if (partyKeSiapa == 0) {
karakterPilih_mc['monsterList' + i]._visible = false;
karakterPilih_mc['namaKe' + i] = '';
karakterPilih_mc['levelKe' + i] = '';
karakterPilih_mc['hpKe' + i] = '';
karakterPilih_mc['mpKe' + i] = '';
karakterPilih_mc['statusKe' + i] = '';
karakterPilih_mc['kotakan' + i].enabled = false;
} else {
karakterPilih_mc['monsterList' + i].gotoAndStop(partyKeSiapa);
karakterPilih_mc['namaKe' + i] = _root['namaKarakter' + partyKeSiapa];
karakterPilih_mc['levelKe' + i] = 'Level: ' + _root['xLevel' + partyKeSiapa];
karakterPilih_mc['hpKe' + i] = 'HP: ' + _root['xKiniHP' + partyKeSiapa] + '/' + _root['xHP' + partyKeSiapa];
karakterPilih_mc['mpKe' + i] = 'MP: ' + _root['xKiniMP' + partyKeSiapa] + '/' + _root['xMP' + partyKeSiapa];
karakterPilih_mc['statusKe' + i] = _root['status' + partyKeSiapa + '1'] + '\n' + _root['status' + partyKeSiapa + '2'] + _root['status' + partyKeSiapa + '3'];
karakterPilih_mc['kotakan' + i].enabled = true;
karakterPilih_mc['kotakan' + i].onRelease = klikKotakan;
}
karakterPilih_mc.close_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
};
++i;
}
}
}
}
}
}
}
}
}
}
}
}
}
function klikKotakan() {
backKlik();
gagalItem = false;
myStr = new String(this);
indi = myStr.substr(myStr.length - 1, 1);
yangKarakter = _root['party' + indi];
if (_root['xKiniHP' + yangKarakter] > 0) {
if (yangPosisi == 1) {
if (_root['xKiniHP' + yangKarakter] < _root['xHP' + yangKarakter]) {
_root['xKiniHP' + yangKarakter] += 400;
} else {
cekGagal();
}
} else {
if (yangPosisi == 2) {
if (_root['xKiniHP' + yangKarakter] < _root['xHP' + yangKarakter]) {
_root['xKiniHP' + yangKarakter] += 4000;
} else {
cekGagal();
}
} else {
if (yangPosisi == 3) {
if (_root['xKiniHP' + yangKarakter] < _root['xHP' + yangKarakter]) {
_root['xKiniHP' + yangKarakter] += 40000;
} else {
cekGagal();
}
} else {
if (yangPosisi == 4) {
if (_root['xKiniMP' + yangKarakter] < _root['xMP' + yangKarakter]) {
_root['xKiniMP' + yangKarakter] += 100;
} else {
cekGagal();
}
} else {
if (yangPosisi == 5) {
if (_root['xKiniMP' + yangKarakter] < _root['xMP' + yangKarakter]) {
_root['xKiniMP' + yangKarakter] += 500;
} else {
cekGagal();
}
} else {
if (yangPosisi == 6) {
if (_root['xKiniMP' + yangKarakter] < _root['xMP' + yangKarakter]) {
_root['xKiniMP' + yangKarakter] += 2500;
} else {
cekGagal();
}
} else {
if (yangPosisi == 8) {
cekGagal();
} else {
if (yangPosisi == 9) {
adaKurang = false;
if (_root['status' + yangKarakter + '1'] == 'POISON' || _root['status' + yangKarakter + '1'] == 'SLOW' || _root['status' + yangKarakter + '1'] == 'MINI') {
adaKurang = true;
_root['status' + yangKarakter + '1'] = '';
}
if (_root['status' + yangKarakter + '2'] == 'POISON' || _root['status' + yangKarakter + '2'] == 'SLOW' || _root['status' + yangKarakter + '2'] == 'MINI') {
adaKurang = true;
_root['status' + yangKarakter + '2'] = '';
}
if (_root['status' + yangKarakter + '3'] == 'POISON' || _root['status' + yangKarakter + '3'] == 'SLOW' || _root['status' + yangKarakter + '3'] == 'MINI') {
adaKurang = true;
_root['status' + yangKarakter + '3'] = '';
}
if (adaKurang == false) {
cekGagal();
}
} else {
if (yangPosisi == 10) {
adaKurang = false;
if (_root['status' + yangKarakter + '1'] == 'CURSE' || _root['status' + yangKarakter + '1'] == 'SILENCE' || _root['status' + yangKarakter + '1'] == 'CONFUSE') {
adaKurang = true;
_root['status' + yangKarakter + '1'] = '';
}
if (_root['status' + yangKarakter + '2'] == 'CURSE' || _root['status' + yangKarakter + '2'] == 'SILENCE' || _root['status' + yangKarakter + '2'] == 'CONFUSE') {
adaKurang = true;
_root['status' + yangKarakter + '2'] = '';
}
if (_root['status' + yangKarakter + '3'] == 'CURSE' || _root['status' + yangKarakter + '3'] == 'SILENCE' || _root['status' + yangKarakter + '3'] == 'CONFUSE') {
adaKurang = true;
_root['status' + yangKarakter + '3'] = '';
}
if (adaKurang == false) {
cekGagal();
}
} else {
if (yangPosisi == 29) {
++_root['xStrength' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 30) {
++_root['xVitality' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 31) {
++_root['xAttack' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 32) {
++_root['xDefense' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 39) {
if (_root['xKiniHP' + yangKarakter] < _root['xHP' + yangKarakter]) {
_root['xKiniHP' + yangKarakter] = _root['xHP' + yangKarakter];
} else {
cekGagal();
}
} else {
if (yangPosisi == 40) {
if (_root['xKiniMP' + yangKarakter] < _root['xMP' + yangKarakter]) {
_root['xKiniMP' + yangKarakter] = _root['xMP' + yangKarakter];
} else {
cekGagal();
}
} else {
if (yangPosisi == 59) {
_root['xHP' + yangKarakter] += 1000;
_root['tambahanHP' + yangKarakter] += 1000;
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 60) {
_root['xMP' + yangKarakter] += 10;
_root['tambahanMP' + yangKarakter] += 10;
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 61) {
++_root['xspeed' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 62) {
++_root['xspeedTrance' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 63) {
++_root['xMagicAttack' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 64) {
++_root['xMagicDefense' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 65) {
++_root['xEvade' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 66) {
++_root['xAccuracy' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 67) {
++_root['xLuck' + yangKarakter];
cekPerubahanHPMP(yangKarakter);
} else {
if (yangPosisi == 71) {
_root['xKiniHP' + yangKarakter] -= 10000;
} else {
if (yangPosisi == 72) {
_root['xKiniHP' + yangKarakter] -= 1000;
} else {
if (yangPosisi == 73) {
_root['xKiniHP' + yangKarakter] -= 100;
} else {
if (yangPosisi == 74) {
_root['xKiniHP' + yangKarakter] -= 10;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
i = 1;
while (i <= 3) {
if (_root['xKiniHP' + _root['party' + i]] >= _root['xHP' + _root['party' + i]]) {
_root['xKiniHP' + _root['party' + i]] = _root['xHP' + _root['party' + i]];
}
if (_root['xKiniMP' + _root['party' + i]] >= _root['xMP' + _root['party' + i]]) {
_root['xKiniMP' + _root['party' + i]] = _root['xMP' + _root['party' + i]];
}
if (_root['xKiniHP' + _root['party' + i]] <= 0) {
_root['xKiniHP' + _root['party' + i]] = 0;
}
if (_root['xKiniMP' + _root['party' + i]] <= 0) {
_root['xKiniMP' + _root['party' + i]] = 0;
}
++i;
}
} else {
if (yangPosisi == 8) {
if (_root['xKiniHP' + yangKarakter] <= 0) {
_root['xKiniHP' + yangKarakter] += Math.ceil(_root['xHP' + yangKarakter] * 0.5);
} else {
cekGagal();
}
} else {
cekGagal();
}
}
cekStatusItem();
if (gagalItem == false) {
--_root['itemPunya' + yangPosisi];
awalanItem();
cekHalaman();
}
if (_root['itemPunya' + yangPosisi] > 0) {
yangItemPos.tandaList._visible = true;
xinfo = infoItem[yangPosisi] + ' (' + yangDiklik + ')';
} else {
karakterPilih_mc._visible = false;
}
}
function cekStatusItem() {
i = 1;
while (i <= 3) {
partyKeSiapa = _root['party' + i];
if (partyKeSiapa == 0) {
karakterPilih_mc['monsterList' + i]._visible = false;
karakterPilih_mc['namaKe' + i] = '';
karakterPilih_mc['levelKe' + i] = '';
karakterPilih_mc['hpKe' + i] = '';
karakterPilih_mc['mpKe' + i] = '';
karakterPilih_mc['statusKe' + i] = '';
} else {
karakterPilih_mc['monsterList' + i].gotoAndStop(partyKeSiapa);
karakterPilih_mc['namaKe' + i] = _root['namaKarakter' + partyKeSiapa];
karakterPilih_mc['levelKe' + i] = 'Level: ' + _root['xLevel' + partyKeSiapa];
karakterPilih_mc['hpKe' + i] = 'HP: ' + _root['xKiniHP' + partyKeSiapa] + '/' + _root['xHP' + partyKeSiapa];
karakterPilih_mc['mpKe' + i] = 'MP: ' + _root['xKiniMP' + partyKeSiapa] + '/' + _root['xMP' + partyKeSiapa];
karakterPilih_mc['statusKe' + i] = _root['status' + partyKeSiapa + '1'] + '\n' + _root['status' + partyKeSiapa + '2'] + _root['status' + partyKeSiapa + '3'];
}
++i;
}
}
function cekGagal() {
gagalItem = true;
}
stop();
tutorial_mc._visible = false;
if (tutorialAda == true) {
if (adaTutorial2 == true) {
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(2);
tutorial_mc.oke_btn.onRelease = function () {
backKlik();
tutorial_mc._visible = false;
adaTutorial2 = false;
};
tutorial_mc.switch_mc.gotoAndStop(1);
tutorial_mc.switch_mc.onRelease = function () {
backKlik();
if (tutorialAda == true) {
tutorialAda = false;
tutorial_mc.switch_mc.gotoAndStop(2);
} else {
tutorialAda = true;
tutorial_mc.switch_mc.gotoAndStop(1);
}
};
}
}
pilihSemuaArea = false;
karakterPilih_mc._visible = false;
awalanItem();
halamanKe = 1;
cekHalaman();
next_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
if (halamanKe == 1) {
halamanKe = 2;
} else {
if (halamanKe == 2) {
halamanKe = 3;
} else {
if (halamanKe == 3) {
halamanKe = 4;
} else {
if (halamanKe == 4) {
halamanKe = 5;
} else {
if (halamanKe == 5) {
halamanKe = 6;
} else {
if (halamanKe == 6) {
halamanKe = 7;
} else {
if (halamanKe == 7) {
halamanKe = 8;
} else {
if (halamanKe == 8) {
halamanKe = 9;
} else {
if (halamanKe == 9) {
halamanKe = 10;
} else {
if (halamanKe == 10) {
halamanKe = 1;
}
}
}
}
}
}
}
}
}
}
cekHalaman();
};
prev_btn.onRelease = function () {
backKlik();
karakterPilih_mc._visible = false;
if (halamanKe == 1) {
halamanKe = 10;
} else {
if (halamanKe == 10) {
halamanKe = 9;
} else {
if (halamanKe == 9) {
halamanKe = 8;
} else {
if (halamanKe == 8) {
halamanKe = 7;
} else {
if (halamanKe == 7) {
halamanKe = 6;
} else {
if (halamanKe == 6) {
halamanKe = 5;
} else {
if (halamanKe == 5) {
halamanKe = 4;
} else {
if (halamanKe == 4) {
halamanKe = 3;
} else {
if (halamanKe == 3) {
halamanKe = 2;
} else {
if (halamanKe == 2) {
halamanKe = 1;
}
}
}
}
}
}
}
}
}
}
cekHalaman();
};
}
movieClip 1612 {
}
frame 338 {
function cekPrev() {
if (arahKarakter == 1) {
arahKarakter = 3;
} else {
if (arahKarakter == 3) {
arahKarakter = 2;
} else {
if (arahKarakter == 2) {
arahKarakter = 1;
}
}
}
pilihKarakter = _root['party' + arahKarakter];
}
function cekNext() {
if (arahKarakter == 1) {
arahKarakter = 2;
} else {
if (arahKarakter == 2) {
arahKarakter = 3;
} else {
if (arahKarakter == 3) {
arahKarakter = 1;
}
}
}
pilihKarakter = _root['party' + arahKarakter];
}
function initKarakter(zindi) {
xinfo = '';
partyKeSiapa = pilihKarakter;
_root.monsterList.gotoAndStop(partyKeSiapa);
_root.namaKe = _root['namaKarakter' + partyKeSiapa];
_root.levelKe = 'Level: ' + _root['xLevel' + partyKeSiapa];
_root.hpKe = 'HP: ' + _root['xKiniHP' + partyKeSiapa] + '/' + _root['xHP' + partyKeSiapa];
_root.mpKe = 'MP: ' + _root['xKiniMP' + partyKeSiapa] + '/' + _root['xMP' + partyKeSiapa];
slot_mc.gotoAndStop(slotMagicArmor[_root['headPasang' + partyKeSiapa]]);
_root.spell1.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '1']];
_root.spell2.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '2']];
_root.spell3.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '3']];
_root.spell4.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '4']];
_root.spell5.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '5']];
_root.spell6.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '6']];
_root.spell7.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '7']];
_root.spell8.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '8']];
i = 1;
while (i <= 8) {
if (_root['spellPasang' + partyKeSiapa + i] == 0) {
slot_mc['isi' + i]._visible = false;
_root['spell' + i].namaSpell = 'Empty';
_root['spell' + i].gotoAndStop(1);
_root['spell' + i].bulatan_mc.gotoAndStop(2);
} else {
slot_mc['isi' + i]._visible = true;
slot_mc['isi' + i].onRelease = klikSpell2;
slot_mc['isi' + i].onRollOver = overSlot;
slot_mc['isi' + i].onRollOut = outSlot;
_root['spell' + i].gotoAndStop(2);
_root['spell' + i].hargaMP = costMP[_root['spellPasang' + partyKeSiapa + i]] + ' MP';
_root['spell' + i].bulatan_mc.gotoAndStop(1);
}
_root['spell' + i].onRollOver = overSpell;
_root['spell' + i].onRollOut = outSpell;
++i;
}
bykSlotSpell = jumlahSlotSpell[slot_mc._currentframe];
i = 1;
while (i <= 8) {
_root['spell' + i]._visible = true;
++i;
}
i = bykSlotSpell + 1;
while (i <= 8) {
_root['spell' + i]._visible = false;
++i;
}
}
function klikSpell2() {
myStr = new String(this);
indi = myStr.substr(myStr.length - 1, 1);
if (_root['spellPasang' + partyKeSiapa + indi] != 0) {
++_root['spellPunya' + _root['spellPasang' + partyKeSiapa + indi]];
_root['spellPasang' + partyKeSiapa + indi] = 0;
}
initKarakter();
cekSpell();
}
function overSpell() {
if (this.indi.hitTest(daftarSpell)) {
this.indi.gotoAndStop(2);
}
myStr = new String(this);
indi = myStr.substr(myStr.length - 1, 1);
xinfo = infoSpell[_root['spellPasang' + partyKeSiapa + indi]];
}
function outSpell() {
this.indi.gotoAndStop(1);
xinfo = '';
}
function overSlot() {
this.gotoAndStop(2);
myStr = new String(this);
indi = myStr.substr(myStr.length - 1, 1);
this.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + indi]];
xinfo = infoSpell[_root['spellPasang' + partyKeSiapa + indi]];
}
function outSlot() {
this.gotoAndStop(1);
xinfo = '';
}
function cekSpell() {
empty_btn._visible = false;
masukSpell = new Array();
spellKe = 1;
halamanKe = 1;
i = 1;
while (i <= 34) {
if (_root['spellPunya' + i] > 0) {
masukSpell[spellKe] = i;
++spellKe;
}
++i;
}
i = 1;
while (i <= 12) {
_root['daftarSpell' + i].tandaList._visible = false;
_root['daftarSpell' + i]._visible = false;
++i;
}
cekSpellHalaman();
if (spellKe > 11) {
next_btn._visible = true;
prev_btn._visible = true;
} else {
next_btn._visible = false;
prev_btn._visible = false;
}
next_btn.onRelease = function () {
backKlik();
++halamanKe;
if (halamanKe >= 4) {
halamanKe = 1;
}
cekSpellHalaman();
};
prev_btn.onRelease = function () {
backKlik();
--halamanKe;
if (halamanKe <= 0) {
halamanKe = 3;
}
cekSpellHalaman();
};
}
function cekSpellHalaman() {
i = 1;
while (i <= 12) {
_root['daftarSpell' + i].tandaList._visible = false;
_root['daftarSpell' + i]._visible = false;
++i;
}
if (halamanKe == 1) {
i = 1;
while (i <= 12) {
if (masukSpell[i] != undefined) {
_root['daftarSpell' + i]._visible = true;
_root['daftarSpell' + i].gotoAndStop(masukSpell[i]);
_root['daftarSpell' + i].onRelease = klikSpell;
_root['daftarSpell' + i].hargaMP = costMP[masukSpell[i]] + ' MP';
_root['daftarSpell' + i].xjumlah = _root['spellPunya' + masukSpell[i]];
}
++i;
}
} else {
if (halamanKe == 2) {
i = 13;
while (i <= 24) {
if (masukSpell[i] != undefined) {
_root['daftarSpell' + (i - 12)]._visible = true;
_root['daftarSpell' + (i - 12)].gotoAndStop(masukSpell[i]);
_root['daftarSpell' + (i - 12)].onRelease = klikSpell;
_root['daftarSpell' + (i - 12)].hargaMP = costMP[masukSpell[i]] + ' MP';
_root['daftarSpell' + (i - 12)].xjumlah = _root['spellPunya' + masukSpell[i]];
}
++i;
}
} else {
if (halamanKe == 3) {
i = 25;
while (i <= 36) {
if (masukSpell[i] != undefined) {
_root['daftarSpell' + (i - 24)]._visible = true;
_root['daftarSpell' + (i - 24)].gotoAndStop(masukSpell[i]);
_root['daftarSpell' + (i - 24)].onRelease = klikSpell;
_root['daftarSpell' + (i - 24)].hargaMP = costMP[masukSpell[i]] + ' MP';
_root['daftarSpell' + (i - 24)].xjumlah = _root['spellPunya' + masukSpell[i]];
}
++i;
}
}
}
}
}
function klikSpell() {
backKlik();
if (this.tandaList._visible == false) {
i = 1;
while (i <= 12) {
_root['daftarSpell' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
xinfo = infoSpell[this._currentframe];
} else {
this.tandaList._visible = false;
if (this.xjumlah <= 1) {
duplicateMovieClip(this, 'daftarSpell', 10);
this._visible = false;
} else {
duplicateMovieClip(this, 'daftarSpell', 10);
}
daftarSpell.gotoAndStop(this._currentframe);
daftarSpell.keSpell = this._currentframe;
daftarSpell.hargaMP = '';
daftarSpell.xjumlah = '';
startDrag(daftarSpell, false);
}
}
stop();
tutorial_mc._visible = false;
if (tutorialAda == true) {
if (adaTutorial3 == true) {
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(3);
tutorial_mc.oke_btn.onRelease = function () {
backKlik();
tutorial_mc._visible = false;
adaTutorial3 = false;
};
tutorial_mc.switch_mc.gotoAndStop(1);
tutorial_mc.switch_mc.onRelease = function () {
backKlik();
if (tutorialAda == true) {
tutorialAda = false;
tutorial_mc.switch_mc.gotoAndStop(2);
} else {
tutorialAda = true;
tutorial_mc.switch_mc.gotoAndStop(1);
}
};
}
}
slotMagicArmor = new Array('', 3, 1, 2, 4, 5, 6, 7, 8, 9, 10, 6, 5, 7, 8, 10, 9, 12, 14, 13, 11);
jumlahSlotSpell = new Array('', 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 8, 8, 8, 8);
costMP = new Array(0, 50, 100, 200, 60, 120, 240, 100, 200, 400, 150, 200, 1500, 400, 200, 400, 800, 500, 500, 250, 250, 250, 250, 250, 250, 1250, 250, 250, 1000, 750, 750, 500, 500, 2000, 1750);
back_btn.onRelease = function () {
backKlik();
removeMovieClip(daftarSpell);
delete _root.onMouseDown;
gotoAndStop('awalan');
};
prev_btn2.onRelease = function () {
backKlik();
cekPrev();
if (_root['party' + arahKarakter] == 0) {
cekPrev();
if (_root['party' + arahKarakter] == 0) {
cekPrev();
initKarakter();
cekSpell();
} else {
initKarakter();
cekSpell();
}
} else {
initKarakter();
cekSpell();
}
};
next_btn2.onRelease = function () {
backKlik();
cekNext();
if (_root['party' + arahKarakter] == 0) {
cekNext();
if (_root['party' + arahKarakter] == 0) {
cekNext();
initKarakter();
cekSpell();
} else {
initKarakter();
cekSpell();
}
} else {
initKarakter();
cekSpell();
}
};
initKarakter();
cekSpell();
reset_btn.onRelease = function () {
backKlik();
i = 1;
while (i <= 8) {
if (_root['spellPasang' + partyKeSiapa + i] != 0) {
++_root['spellPunya' + _root['spellPasang' + partyKeSiapa + i]];
_root['spellPasang' + partyKeSiapa + i] = 0;
}
++i;
}
initKarakter();
cekSpell();
};
_root.onMouseDown = function () {
if (daftarSpell._x != undefined) {
backKlik();
i = 1;
while (i <= 8) {
if (_root['spell' + i].indi._currentframe == 2) {
if (_root['spellPasang' + partyKeSiapa + i] == 0) {
_root['spellPasang' + partyKeSiapa + i] = daftarSpell.keSpell;
} else {
++_root['spellPunya' + _root['spellPasang' + partyKeSiapa + i]];
_root['spellPasang' + partyKeSiapa + i] = daftarSpell.keSpell;
}
--_root['spellPunya' + _root['spellPasang' + partyKeSiapa + i]];
i = 8;
}
++i;
}
stopDrag();
removeMovieClip(daftarSpell);
initKarakter();
cekSpell();
}
};
}
movieClip 1621 {
frame 1 {
stop();
}
}
movieClip 1623 {
frame 1 {
stop();
}
}
movieClip 1691 {
frame 1 {
stop();
}
}
movieClip 1705 {
frame 1 {
stop();
}
}
frame 343 {
function cekPrev() {
if (arahKarakter == 1) {
arahKarakter = 3;
} else {
if (arahKarakter == 3) {
arahKarakter = 2;
} else {
if (arahKarakter == 2) {
arahKarakter = 1;
}
}
}
pilihKarakter = _root['party' + arahKarakter];
}
function cekNext() {
if (arahKarakter == 1) {
arahKarakter = 2;
} else {
if (arahKarakter == 2) {
arahKarakter = 3;
} else {
if (arahKarakter == 3) {
arahKarakter = 1;
}
}
}
pilihKarakter = _root['party' + arahKarakter];
}
function initKarakter() {
xinfo = '';
pilihCommand = 0;
partyKeSiapa = pilihKarakter;
_root.monsterList.gotoAndStop(partyKeSiapa);
_root.namaKe = _root['namaKarakter' + partyKeSiapa];
_root.levelKe = 'Level: ' + _root['xLevel' + partyKeSiapa];
_root.hpKe = 'HP: ' + _root['xKiniHP' + partyKeSiapa] + '/' + _root['xHP' + partyKeSiapa];
_root.mpKe = 'MP: ' + _root['xKiniMP' + partyKeSiapa] + '/' + _root['xMP' + partyKeSiapa];
slot_mc.gotoAndStop(slotMagicArmor[_root['headPasang' + partyKeSiapa]]);
i = 1;
while (i <= 4) {
_root['xcommand' + i].gotoAndStop(_root['command' + partyKeSiapa + i]);
_root['xcommand' + i].xjumlah = '';
_root['xcommand' + i].tandaList._visible = false;
_root['xcommand' + i]._visible = true;
_root['xcommand' + i].onRollOver = function () {
myStr = new String(this);
indi = myStr.substr(myStr.length - 1, 1);
pilihCommand = indi;
xinfo = infoCommand[this._currentframe];
};
_root['xcommand' + i].onRollOut = function () {
xinfo = '';
};
++i;
}
i = 3;
while (i <= 16) {
if (_root['punyaCommand' + i] == 0) {
_root['bisaCommand' + i].gotoAndStop(100);
delete _root['bisaCommand' + i].onRelease;
} else {
_root['bisaCommand' + i].gotoAndStop(i);
_root['bisaCommand' + i].onRelease = klikCommand;
}
_root['bisaCommand' + i]._visible = true;
_root['bisaCommand' + i].xjumlah = _root['punyaCommand' + i];
_root['bisaCommand' + i].tandaList._visible = false;
++i;
}
}
function klikCommand() {
backKlik();
if (this.tandaList._visible == false) {
i = 3;
while (i <= 12) {
_root['bisaCommand' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
xinfo = infoCommand[this._currentframe];
} else {
this.tandaList._visible = false;
if (this.xjumlah <= 1) {
duplicateMovieClip(this, 'daftarCommand', 10);
this._visible = false;
} else {
duplicateMovieClip(this, 'daftarCommand', 10);
}
daftarCommand.gotoAndStop(this._currentframe);
daftarCommand.keCommand = this._currentframe;
daftarCommand.xjumlah = '';
startDrag(daftarCommand, false);
i = 1;
while (i <= 4) {
_root['xcommand' + i]._alpha = 50;
++i;
}
i = 3;
while (i <= 4) {
_root['xcommand' + i]._alpha = 100;
++i;
}
}
}
stop();
infoCommand = new Array('', 'Strike with physical attack', 'Onslaught that more dangerous than regular attack', 'Use MP to deal magical attack', 'Use consumable items on the stock', 'Call servant to help the party', 'Increase temporary defense and magic defense to all allies', 'Steal item from one enemy', 'Learn spells from one enemy', 'Activate trance mode, increase temporary key atrributes', 'Strike with physical attack while cast top magic at once', 'Escape from battles, except bosses and particular enemies', 'Use certain tools to attack all enemies', 'Steal items from one enemy while attacking them', 'Pray to restore some HP to all ally', 'Throw Uring to all enemies', 'Copy any last action from ally');
back_btn.onRelease = function () {
backKlik();
removeMovieClip(daftarCommand);
delete _root.onMouseDown;
gotoAndStop('awalan');
};
prev_btn2.onRelease = function () {
backKlik();
cekPrev();
if (_root['party' + arahKarakter] == 0) {
cekPrev();
if (_root['party' + arahKarakter] == 0) {
cekPrev();
initKarakter();
cekSpell();
} else {
initKarakter();
cekSpell();
}
} else {
initKarakter();
cekSpell();
}
};
next_btn2.onRelease = function () {
backKlik();
cekNext();
if (_root['party' + arahKarakter] == 0) {
cekNext();
if (_root['party' + arahKarakter] == 0) {
cekNext();
initKarakter();
} else {
initKarakter();
}
} else {
initKarakter();
}
};
initKarakter();
_root.onMouseDown = function () {
if (daftarCommand._x != undefined) {
backKlik();
i = 3;
while (i <= 4) {
if (i == pilihCommand) {
--_root['punyaCommand' + daftarCommand.keCommand];
++_root['punyaCommand' + _root['command' + partyKeSiapa + i]];
_root['command' + partyKeSiapa + i] = daftarCommand.keCommand;
i = 4;
}
++i;
}
stopDrag();
removeMovieClip(daftarCommand);
initKarakter();
i = 1;
while (i <= 4) {
_root['xcommand' + i]._alpha = 100;
++i;
}
}
};
}
movieClip 1714 {
}
movieClip 1719 {
}
movieClip 1744 {
frame 1 {
stop();
}
}
frame 348 {
function cekPrev() {
if (arahKarakter == 1) {
arahKarakter = 3;
} else {
if (arahKarakter == 3) {
arahKarakter = 2;
} else {
if (arahKarakter == 2) {
arahKarakter = 1;
}
}
}
pilihKarakter = _root['party' + arahKarakter];
}
function cekNext() {
if (arahKarakter == 1) {
arahKarakter = 2;
} else {
if (arahKarakter == 2) {
arahKarakter = 3;
} else {
if (arahKarakter == 3) {
arahKarakter = 1;
}
}
}
pilihKarakter = _root['party' + arahKarakter];
}
function initKarakter() {
xinfo = '';
partyKeSiapa = pilihKarakter;
_root.monsterList.gotoAndStop(partyKeSiapa);
_root.namaKe = _root['namaKarakter' + partyKeSiapa];
_root.levelKe = 'Level: ' + _root['xLevel' + partyKeSiapa];
_root.hpKe = 'HP: ' + _root['xKiniHP' + partyKeSiapa] + '/' + _root['xHP' + partyKeSiapa];
_root.mpKe = 'MP: ' + _root['xKiniMP' + partyKeSiapa] + '/' + _root['xMP' + partyKeSiapa];
_root.levelUpServant = 'Level Up: ' + _root['xLevelUpServant' + _root['servantPasang' + partyKeSiapa]];
slot_mc.gotoAndStop(slotMagicArmor[_root['headPasang' + partyKeSiapa]]);
if (_root['servantPasang' + partyKeSiapa] == 0) {
servantKe.gotoAndStop(100);
_root.levelUpServant = '';
servantList.gotoAndStop(100);
} else {
servantKe.gotoAndStop(_root['servantPasang' + partyKeSiapa]);
servantKe.servantLevel = 'Level ' + _root['servantLevel' + _root['servantPasang' + partyKeSiapa]];
servantKe.namaServant = _root['namaServant' + _root['servantPasang' + partyKeSiapa]];
servantList.gotoAndStop(_root['servantPasang' + partyKeSiapa]);
}
servantKe.onRollOver = function () {
if (this._currentframe == 100) {
xinfo = '';
} else {
xinfo = infoServant[this._currentframe];
}
};
servantKe.onRollOut = function () {
xinfo = '';
};
servantKe.tandaList._visible = false;
i = 1;
while (i <= 10) {
if (_root['servantLevel' + i] == 0) {
_root['bisaServant' + i].gotoAndStop(100);
} else {
_root['bisaServant' + i].namaServant = _root['namaServant' + i];
_root['bisaServant' + i].gotoAndStop(i);
_root['bisaServant' + i].onRelease = klikServant;
}
_root['bisaServant' + i]._visible = true;
_root['bisaServant' + i]._alpha = 100;
_root['bisaServant' + i].servantLevel = 'Level ' + _root['servantLevel' + i];
_root['bisaServant' + i].tandaList._visible = false;
++i;
}
i = 1;
while (i <= 10) {
j = 1;
while (j <= 6) {
if (_root['servantPasang' + j] == i) {
_root['bisaServant' + i]._alpha = 50;
delete _root['bisaServant' + i].onRelease;
}
++j;
}
++i;
}
}
function klikServant() {
backKlik();
if (this.tandaList._visible == false) {
i = 1;
while (i <= 10) {
_root['bisaServant' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
xinfo = infoServant[this._currentframe];
} else {
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = myStr.substr(myStr.length - 1, 1);
} else {
indi = myStr.substr(myStr.length - 2, 2);
}
_root['servantPasang' + partyKeSiapa] = indi;
initKarakter();
}
}
stop();
infoServant = new Array('', 'When Level Up:\nTrance Speed +1\nLearn Holy', 'When Level Up:\nStrength +5\nLearn Protector', 'When Level Up:\nVitality +5\nLearn Reflector', 'When Level Up:\nSpeed +1\nLearn Haste', 'When Level Up:\nAccuracy +2\nLearn Tornado', 'When Level Up:\nDefense +10, Magic Defense +10\nLearn Meteor', 'When Level Up:\nHP +25%\nLearn HP Heal', 'When Level Up:\nMP +25%\nLearn MP Heal', 'When Level Up:\nEvade +2, Luck+2\nLearn Netralis', 'When Level Up:\nAttack +10, Magic +10\nLearn Pamungkas');
back_btn.onRelease = function () {
backKlik();
removeMovieClip(daftarCommand);
gotoAndStop('awalan');
};
prev_btn2.onRelease = function () {
backKlik();
cekPrev();
if (_root['party' + arahKarakter] == 0) {
cekPrev();
if (_root['party' + arahKarakter] == 0) {
cekPrev();
initKarakter();
} else {
initKarakter();
}
} else {
initKarakter();
}
};
next_btn2.onRelease = function () {
backKlik();
cekNext();
if (_root['party' + arahKarakter] == 0) {
cekNext();
if (_root['party' + arahKarakter] == 0) {
cekNext();
initKarakter();
} else {
initKarakter();
}
} else {
initKarakter();
}
};
empty_btn.onRelease = function () {
backKlik();
_root['servantPasang' + partyKeSiapa] = 0;
initKarakter();
};
initKarakter();
}
movieClip 1757 {
frame 1 {
stop();
}
}
movieClip 1765 {
frame 1 {
stop();
}
}
frame 353 {
function cekPrev() {
if (arahKarakter == 1) {
arahKarakter = 3;
} else {
if (arahKarakter == 3) {
arahKarakter = 2;
} else {
if (arahKarakter == 2) {
arahKarakter = 1;
}
}
}
pilihKarakter = _root['party' + arahKarakter];
}
function cekNext() {
if (arahKarakter == 1) {
arahKarakter = 2;
} else {
if (arahKarakter == 2) {
arahKarakter = 3;
} else {
if (arahKarakter == 3) {
arahKarakter = 1;
}
}
}
pilihKarakter = _root['party' + arahKarakter];
}
function initKarakter() {
xinfo = '';
partyKeSiapa = pilihKarakter;
_root.monsterList.gotoAndStop(partyKeSiapa);
_root.namaKe = _root['namaKarakter' + partyKeSiapa];
_root.levelKe = 'Level: ' + _root['xLevel' + partyKeSiapa];
_root.hpKe = 'HP: ' + _root['xKiniHP' + partyKeSiapa] + '/' + _root['xHP' + partyKeSiapa];
_root.mpKe = 'MP: ' + _root['xKiniMP' + partyKeSiapa] + '/' + _root['xMP' + partyKeSiapa];
fierceName1 = _root['fierceName' + partyKeSiapa + '1'];
fierceName2 = _root['fierceName' + partyKeSiapa + '2'];
fierceName3 = _root['fierceName' + partyKeSiapa + '3'];
fierceLevel1 = 'LV ' + _root['fierceLevel' + partyKeSiapa + '1'];
fierceLevel2 = 'LV ' + _root['fierceLevel' + partyKeSiapa + '2'];
fierceLevel3 = 'LV ' + _root['fierceLevel' + partyKeSiapa + '3'];
if (partyKeSiapa == 1) {
fierceInfo1 = infoFierce1[1];
fierceInfo2 = infoFierce1[2];
fierceInfo3 = infoFierce1[3];
} else {
if (partyKeSiapa == 2) {
fierceInfo1 = infoFierce2[1];
fierceInfo2 = infoFierce2[2];
fierceInfo3 = infoFierce2[3];
} else {
if (partyKeSiapa == 3) {
fierceInfo1 = infoFierce3[1];
fierceInfo2 = infoFierce3[2];
fierceInfo3 = infoFierce3[3];
} else {
if (partyKeSiapa == 4) {
fierceInfo1 = infoFierce4[1];
fierceInfo2 = infoFierce4[2];
fierceInfo3 = infoFierce4[3];
} else {
if (partyKeSiapa == 5) {
fierceInfo1 = infoFierce5[1];
fierceInfo2 = infoFierce5[2];
fierceInfo3 = infoFierce5[3];
} else {
if (partyKeSiapa == 6) {
fierceInfo1 = infoFierce6[1];
fierceInfo2 = infoFierce6[2];
fierceInfo3 = infoFierce6[3];
}
}
}
}
}
}
i = 1;
while (i <= 3) {
_root['fierceJenis' + i].tandaList._visible = false;
_root['fierceJenis' + i].onRelease = klikFierceJenis;
_root['fierceJenis' + i].gotoAndStop(2);
++i;
}
_root['fierceJenis' + _root['pilihFierce' + partyKeSiapa]].tandaList._visible = true;
_root['fierceJenis' + _root['pilihFierce' + partyKeSiapa]].gotoAndStop(1);
if (_root['xLevel' + partyKeSiapa] <= 15) {
fierceName2 = '?????';
fierceLevel2 = '???';
fierceName3 = '?????';
fierceLevel3 = '???';
fierceInfo2 = '??????????';
fierceInfo3 = '??????????';
fierceJenis2.gotoAndStop(3);
fierceJenis2.enabled = false;
fierceJenis2.tandaList._visible = false;
fierceJenis3.gotoAndStop(3);
fierceJenis3.enabled = false;
fierceJenis3.tandaList._visible = false;
} else {
if (_root['xLevel' + partyKeSiapa] <= 30) {
fierceName3 = '?????';
fierceLevel3 = '???';
fierceInfo3 = '??????????';
fierceJenis3.gotoAndStop(3);
fierceJenis3.enabled = false;
fierceJenis3.tandaList._visible = false;
}
}
}
function klikFierceJenis() {
backKlik();
myStr = new String(this);
indi = myStr.substr(myStr.length - 1, 1);
_root['pilihFierce' + partyKeSiapa] = indi;
i = 1;
while (i <= 3) {
_root['fierceJenis' + i].tandaList._visible = false;
if (_root['fierceJenis' + i]._currentframe != 3) {
_root['fierceJenis' + i].gotoAndStop(2);
}
++i;
}
this.tandaList._visible = true;
this.gotoAndStop(1);
}
stop();
infoFierce1 = new Array('', 'Blasting sword attack to all enemies', 'Massive sword attack to one enemey', 'Extremely powerfull barrage attacks to all enemies');
infoFierce2 = new Array('', 'Great axe attack to one enemy', 'Multiple fierce attacks to all enemies', 'Mega blow attacks to all enemies');
infoFierce3 = new Array('', 'Select ammo from items to deal massive damages to all enemies', 'Dangerous bow attack to one enemy', 'Extreme multiple attacks to all enemies');
infoFierce4 = new Array('', 'Restore HP to all allies', 'Restore MP to all allies', 'Activate Wall, Protector and Reflector to all allies');
infoFierce5 = new Array('', 'Select ammo from items to deal massive damages to all enemies', 'A golden gun that always decrease all enemies MP to 0', 'Powerfull barrage attacks to one enemey');
infoFierce6 = new Array('', 'Blasting attack to one enemy', 'Powerfull shock attack to one enemy', 'Dangerous attack to all enemies');
back_btn.onRelease = function () {
backKlik();
removeMovieClip(daftarCommand);
gotoAndStop('awalan');
};
prev_btn2.onRelease = function () {
backKlik();
cekPrev();
if (_root['party' + arahKarakter] == 0) {
cekPrev();
if (_root['party' + arahKarakter] == 0) {
cekPrev();
initKarakter();
} else {
initKarakter();
}
} else {
initKarakter();
}
};
next_btn2.onRelease = function () {
backKlik();
cekNext();
if (_root['party' + arahKarakter] == 0) {
cekNext();
if (_root['party' + arahKarakter] == 0) {
cekNext();
initKarakter();
} else {
initKarakter();
}
} else {
initKarakter();
}
};
initKarakter();
}
movieClip 1787 {
frame 1 {
stop();
}
}
frame 358 {
function cekPrev() {
if (pilihKarakter == 1) {
pilihKarakter = 3;
} else {
if (pilihKarakter == 3) {
pilihKarakter = 2;
} else {
if (pilihKarakter == 2) {
pilihKarakter = 1;
}
}
}
}
function cekNext() {
if (pilihKarakter == 1) {
pilihKarakter = 2;
} else {
if (pilihKarakter == 2) {
pilihKarakter = 3;
} else {
if (pilihKarakter == 3) {
pilihKarakter = 1;
}
}
}
}
function initKarakter() {
xinfo = '';
partyKeSiapa = _root['party' + pilihKarakter];
_root.status.gotoAndStop(1);
_root.status.monsterList.gotoAndStop(partyKeSiapa);
_root.status.namaKe = _root['namaKarakter' + partyKeSiapa];
_root.status.jobKe = _root['namaJob' + partyKeSiapa];
_root.status.levelKe = 'Level: ' + _root['xLevel' + partyKeSiapa];
_root.status.hpKe = 'HP: ' + _root['xKiniHP' + partyKeSiapa] + '/' + _root['xHP' + partyKeSiapa];
_root.status.mpKe = 'MP: ' + _root['xKiniMP' + partyKeSiapa] + '/' + _root['xMP' + partyKeSiapa];
_root.status.levelUpKe = 'Level Up: ' + _root['xLevelUp' + partyKeSiapa];
_root.status.statusKe = _root['status' + partyKeSiapa + '1'] + '\n' + _root['status' + partyKeSiapa + '2'] + _root['status' + partyKeSiapa + '3'];
_root.status.posKotak.gotoAndStop(_root['posKotak' + partyKeSiapa]);
siapaPunya = partyKeSiapa;
siapaWeapon = _root['weaponPasang' + partyKeSiapa];
kiniWeapon = _root['weaponPasang' + partyKeSiapa];
siapaShield = _root['shieldPasang' + partyKeSiapa];
kiniShield = _root['shieldPasang' + partyKeSiapa];
siapaHead = _root['headPasang' + partyKeSiapa];
kiniHead = _root['headPasang' + partyKeSiapa];
siapaBody = _root['bodyPasang' + partyKeSiapa];
kiniBody = _root['bodyPasang' + partyKeSiapa];
kalkulasiStats('akhir');
slot_mc.gotoAndStop(slotMagicArmor[_root['headPasang' + partyKeSiapa]]);
command1.gotoAndStop(_root['command' + partyKeSiapa + '1']);
command2.gotoAndStop(_root['command' + partyKeSiapa + '2']);
command3.gotoAndStop(_root['command' + partyKeSiapa + '3']);
command4.gotoAndStop(_root['command' + partyKeSiapa + '4']);
fierceName1 = _root['fierceName' + partyKeSiapa + '1'];
fierceName2 = _root['fierceName' + partyKeSiapa + '2'];
fierceName3 = _root['fierceName' + partyKeSiapa + '3'];
fierceLevel1 = 'LV ' + _root['fierceLevel' + partyKeSiapa + '1'];
fierceLevel2 = 'LV ' + _root['fierceLevel' + partyKeSiapa + '2'];
fierceLevel3 = 'LV ' + _root['fierceLevel' + partyKeSiapa + '3'];
if (_root['xLevel' + partyKeSiapa] <= 15) {
fierceName2 = '?????';
fierceLevel2 = '???';
fierceName3 = '?????';
fierceLevel3 = '???';
} else {
if (_root['xLevel' + partyKeSiapa] <= 30) {
fierceName3 = '?????';
fierceLevel3 = '???';
}
}
_root.spell1.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '1']];
_root.spell2.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '2']];
_root.spell3.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '3']];
_root.spell4.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '4']];
_root.spell5.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '5']];
_root.spell6.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '6']];
_root.spell7.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '7']];
_root.spell8.namaSpell = namaSpell[_root['spellPasang' + partyKeSiapa + '8']];
i = 1;
while (i <= 8) {
if (_root['spellPasang' + partyKeSiapa + i] == 0) {
slot_mc['isi' + i]._visible = false;
_root['spell' + i]._visible = false;
} else {
slot_mc['isi' + i]._visible = true;
_root['spell' + i]._visible = true;
}
++i;
}
if (_root['servantPasang' + partyKeSiapa] == 0) {
servant.gotoAndStop(100);
} else {
servant.namaServant = _root['namaServant' + _root['servantPasang' + partyKeSiapa]];
servant.servantLevel = 'Level ' + _root['servantLevel' + _root['servantPasang' + partyKeSiapa]];
servant.gotoAndStop(_root['servantPasang' + partyKeSiapa]);
}
if (_root['weaponPasang' + partyKeSiapa] == 0) {
weapon.gotoAndStop(100);
} else {
weapon.xjumlah = '';
weapon.gotoAndStop(_root['weaponPasang' + partyKeSiapa]);
}
if (_root['shieldPasang' + partyKeSiapa] == 0) {
shield.gotoAndStop(100);
} else {
shield.xjumlah = '';
shield.gotoAndStop(_root['shieldPasang' + partyKeSiapa]);
}
if (_root['headPasang' + partyKeSiapa] == 0) {
head.gotoAndStop(100);
} else {
head.xjumlah = '';
head.gotoAndStop(_root['headPasang' + partyKeSiapa]);
}
if (_root['bodyPasang' + partyKeSiapa] == 0) {
body.gotoAndStop(100);
} else {
body.xjumlah = '';
body.gotoAndStop(_root['bodyPasang' + partyKeSiapa] + 20);
}
if (_root['fineryPasang' + partyKeSiapa + '1'] == 0) {
finery1.gotoAndStop(100);
} else {
finery1.xjumlah = '';
finery1.gotoAndStop(_root['fineryPasang' + partyKeSiapa + '1']);
}
if (_root['fineryPasang' + partyKeSiapa + '2'] == 0) {
finery2.gotoAndStop(100);
} else {
finery2.xjumlah = '';
finery2.gotoAndStop(_root['fineryPasang' + partyKeSiapa + '2']);
}
if (_root['fineryPasang' + partyKeSiapa + '3'] == 0) {
finery3.gotoAndStop(100);
} else {
finery3.xjumlah = '';
finery3.gotoAndStop(_root['fineryPasang' + partyKeSiapa + '3']);
}
if (_root['fineryPasang' + partyKeSiapa + '4'] == 0) {
finery4.gotoAndStop(100);
} else {
finery4.xjumlah = '';
finery4.gotoAndStop(_root['fineryPasang' + partyKeSiapa + '4']);
}
}
stop();
slotMagicArmor = new Array('', 3, 1, 2, 4, 5, 6, 7, 8, 9, 10, 6, 5, 7, 8, 10, 9, 12, 14, 13, 11);
back_btn.onRelease = function () {
backKlik();
gotoAndStop('awalan');
};
prev_btn.onRelease = function () {
backKlik();
cekPrev();
if (_root['party' + pilihKarakter] == 0) {
cekPrev();
if (_root['party' + pilihKarakter] == 0) {
cekPrev();
initKarakter();
} else {
initKarakter();
}
} else {
initKarakter();
}
};
next_btn.onRelease = function () {
backKlik();
cekNext();
if (_root['party' + pilihKarakter] == 0) {
cekNext();
if (_root['party' + pilihKarakter] == 0) {
cekNext();
initKarakter();
} else {
initKarakter();
}
} else {
initKarakter();
}
};
initKarakter();
}
movieClip 1818 {
frame 1 {
stop();
}
}
movieClip 1835 {
frame 1 {
stop();
}
}
frame 363 {
function awalParty() {
urutanKe = 1;
bykPilihan = 0;
i = 1;
while (i <= 6) {
if (_root['sudahKetemu' + i] == true) {
_root['xparty' + i].monsterList._visible = true;
_root['xparty' + i].monsterList.gotoAndStop(i);
_root['xparty' + i].namaKe = _root['namaKarakter' + i];
_root['xparty' + i].levelKe = 'Level: ' + _root['xLevel' + i];
_root['xparty' + i].hpKe = 'HP: ' + _root['xKiniHP' + i] + '/' + _root['xHP' + i];
_root['xparty' + i].mpKe = 'MP: ' + _root['xKiniMP' + i] + '/' + _root['xMP' + i];
_root['xparty' + i].urutan_mc._visible = false;
_root['xparty' + i].kotakan_mc.gotoAndStop(1);
_root['xparty' + i].onRelease = klikParty;
} else {
_root['xparty' + i].monsterList._visible = false;
_root['xparty' + i].namaKe = '';
_root['xparty' + i].levelKe = '';
_root['xparty' + i].hpKe = '';
_root['xparty' + i].mpKe = '';
_root['xparty' + i].kotakan_mc.gotoAndStop(1);
_root['xparty' + i].urutan_mc._visible = false;
}
++i;
}
}
function klikParty() {
i = 1;
while (i <= 6) {
if (_root['xparty' + i].urutan_mc._currentframe == urutanKe) {
_root['xparty' + i].kotakan_mc.gotoAndStop(1);
_root['xparty' + i].urutan_mc._visible = false;
}
++i;
}
this.urutan_mc._visible = true;
this.kotakan_mc.gotoAndStop(2);
this.urutan_mc.gotoAndStop(urutanKe);
++urutanKe;
if (urutanKe >= 4) {
urutanKe = 1;
}
}
stop();
tutorial_mc._visible = false;
if (tutorialAda == true) {
if (adaTutorial7 == true) {
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(7);
tutorial_mc.oke_btn.onRelease = function () {
backKlik();
tutorial_mc._visible = false;
adaTutorial7 = false;
};
tutorial_mc.switch_mc.gotoAndStop(1);
tutorial_mc.switch_mc.onRelease = function () {
backKlik();
if (tutorialAda == true) {
tutorialAda = false;
tutorial_mc.switch_mc.gotoAndStop(2);
} else {
tutorialAda = true;
tutorial_mc.switch_mc.gotoAndStop(1);
}
};
}
}
cancel_btn.onRelease = function () {
backKlik();
gotoAndStop('awalan');
};
reset_btn.onRelease = function () {
backKlik();
awalParty();
};
confirm_btn.onRelease = function () {
backKlik();
adaParty = 0;
i = 1;
while (i <= 6) {
if (_root['xparty' + i].urutan_mc._visible == true) {
++adaParty;
}
++i;
}
if (adaParty == 3) {
i = 1;
while (i <= 6) {
if (_root['xparty' + i].urutan_mc._visible == true) {
if (_root['xparty' + i].urutan_mc._currentframe == 1) {
_root.party1 = i;
} else {
if (_root['xparty' + i].urutan_mc._currentframe == 2) {
_root.party2 = i;
} else {
if (_root['xparty' + i].urutan_mc._currentframe == 3) {
_root.party3 = i;
}
}
}
}
++i;
}
gotoAndStop('awalan');
}
};
awalParty();
}
movieClip 1843 {
frame 1 {
stop();
}
}
movieClip 1844 {
}
frame 368 {
stop();
}
frame 373 {
function initSaveLoad() {
i = 1;
while (i <= 4) {
delete _root['save' + i].onRelease;
Cookies = SharedObject.getLocal(dataBaseMonster + i);
if (Cookies.data.monsterSquadData1 == false || Cookies.data.monsterSquadData1 == undefined) {
if (pilihSaveLoad == 'save') {
_root['saveSlot' + i].gotoAndStop(2);
_root['saveSlot' + i].onRelease = klikSave;
_root['saveSlot' + i].onRollOver = function () {
this.kotakan_mc.gotoAndStop(2);
};
_root['saveSlot' + i].onRollOut = function () {
this.kotakan_mc.gotoAndStop(1);
};
} else {
if (pilihSaveLoad == 'load') {
_root['saveSlot' + i].gotoAndStop(3);
}
}
} else {
_root['saveSlot' + i].gotoAndStop(1);
if (pilihSaveLoad == 'save') {
_root['saveSlot' + i].onRelease = klikSave;
_root['saveSlot' + i].onRollOver = function () {
this.kotakan_mc.gotoAndStop(2);
};
_root['saveSlot' + i].onRollOut = function () {
this.kotakan_mc.gotoAndStop(1);
};
} else {
if (pilihSaveLoad == 'load') {
_root['saveSlot' + i].onRelease = klikLoad;
_root['saveSlot' + i].onRollOver = function () {
this.kotakan_mc.gotoAndStop(2);
};
_root['saveSlot' + i].onRollOut = function () {
this.kotakan_mc.gotoAndStop(1);
};
}
}
}
if (Cookies.data.monsterSquadData8 != 0) {
_root['saveSlot' + i].monsterList1.gotoAndStop(Cookies.data.monsterSquadData8);
} else {
_root['saveSlot' + i].monsterList1.gotoAndStop(10);
}
if (Cookies.data.monsterSquadData9 != 0) {
_root['saveSlot' + i].monsterList2.gotoAndStop(Cookies.data.monsterSquadData9);
} else {
_root['saveSlot' + i].monsterList2.gotoAndStop(10);
}
if (Cookies.data.monsterSquadData10 != 0) {
_root['saveSlot' + i].monsterList3.gotoAndStop(Cookies.data.monsterSquadData10);
} else {
_root['saveSlot' + i].monsterList3.gotoAndStop(10);
}
_root['saveSlot' + i].namaKe = _root['namaKarakter' + Cookies.data.monsterSquadData8];
_root['saveSlot' + i].levelKe = 'Level: ' + _root['xLevel' + Cookies.data.monsterSquadData8];
_root['saveSlot' + i].hpKe = 'HP: ' + _root['xKiniHP' + Cookies.data.monsterSquadData8] + '/' + _root['xHP' + Cookies.data.monsterSquadData8];
_root['saveSlot' + i].mpKe = 'MP: ' + _root['xKiniMP' + Cookies.data.monsterSquadData8] + '/' + _root['xMP' + Cookies.data.monsterSquadData8];
_root['saveSlot' + i].locationKe = namaKota[Cookies.data.monsterSquadData2];
xdetikKini = Cookies.data.monsterSquadData760;
xmenitKini = Cookies.data.monsterSquadData761;
xjamKini = Cookies.data.monsterSquadData762;
xxjam = xjamKini;
if (xmenitKini <= 9) {
xxmenit = '0' + xmenitKini;
} else {
xxmenit = xmenitKini;
}
if (xdetikKini <= 9) {
xxdetik = '0' + xdetikKini;
} else {
xxdetik = xdetikKini;
}
xxtimeKini = xxjam + ':' + xxmenit + ':' + xxdetik;
_root['saveSlot' + i].timeKe = 'Time: ' + xxtimeKini;
++i;
}
}
function klikSave() {
i = 1;
while (i <= 4) {
_root['saveSlot' + i].kotakan_mc.gotoAndStop(1);
_root['saveSlot' + i].enabled = false;
++i;
}
this.kotakan_mc.gotoAndStop(2);
myStr = new String(this);
indi = myStr.substr(myStr.length - 1, 1);
Cookies = SharedObject.getLocal(dataBaseMonster + indi);
if (Cookies.data.monsterSquadData1 == true) {
timpa_mc._visible = true;
timpa_mc.yes_btn.onRelease = function () {
backKlik();
Cookies.data.monsterSquadData1 = true;
dataSave = true;
simpanData(indi);
initSaveLoad();
i = 1;
while (i <= 4) {
_root['saveSlot' + i].kotakan_mc.gotoAndStop(1);
_root['saveSlot' + i].enabled = true;
++i;
}
timpa_mc.gotoAndPlay(2);
};
timpa_mc.no_btn.onRelease = function () {
backKlik();
timpa_mc._visible = false;
i = 1;
while (i <= 4) {
_root['saveSlot' + i].kotakan_mc.gotoAndStop(1);
_root['saveSlot' + i].enabled = true;
++i;
}
};
} else {
Cookies.data.monsterSquadData1 = true;
dataSave = true;
simpanData(indi);
initSaveLoad();
i = 1;
while (i <= 4) {
_root['saveSlot' + i].kotakan_mc.gotoAndStop(1);
_root['saveSlot' + i].enabled = true;
++i;
}
timpa_mc._visible = true;
timpa_mc.gotoAndPlay(2);
}
}
function klikLoad() {
myStr = new String(this);
indi = myStr.substr(myStr.length - 1, 1);
loadData(indi);
clearInterval(idWaktu);
waktuMaju();
idWaktu = setInterval(waktuMaju, 1000);
backMenu();
gotoAndStop(323);
}
stop();
timpa_mc._visible = false;
cancel_btn.onRelease = function () {
backKlik();
if (asalMula == 'awalan') {
gotoAndStop('awalan');
} else {
if (asalMula == 'mainmenu') {
gotoAndStop(306);
}
}
};
if (pilihSaveLoad == 'save') {
selectSlot = 'Select Slot to Save Game';
} else {
if (pilihSaveLoad == 'load') {
selectSlot = 'Select Slot to Load Game';
}
}
initSaveLoad();
}
movieClip 1849 {
frame 1 {
stop();
}
}
movieClip 1858 {
frame 1 {
stop();
}
}
movieClip 1865 {
frame 1 {
stop();
}
frame 2 {
_root.backSpell();
play();
}
frame 10 {
this._visible = false;
}
}
frame 379 {
stop();
if (posisiKini == 1) {
if (duniaBerubah == false) {
close1._visible = false;
close2._visible = false;
close3._visible = true;
close4._visible = true;
close5._visible = true;
close6._visible = true;
weapon_mc.enabled = false;
shield_mc.enabled = false;
armor_mc.enabled = false;
finery_mc.enabled = false;
weapon_mc._alpha = 50;
shield_mc._alpha = 50;
armor_mc._alpha = 50;
finery_mc._alpha = 50;
} else {
close1._visible = false;
close2._visible = false;
close3._visible = false;
close4._visible = true;
close5._visible = true;
close6._visible = true;
shield_mc.enabled = false;
armor_mc.enabled = false;
finery_mc.enabled = false;
shield_mc._alpha = 50;
armor_mc._alpha = 50;
finery_mc._alpha = 50;
}
} else {
if (posisiKini == 3) {
close1._visible = false;
close2._visible = false;
close3._visible = false;
close4._visible = false;
close5._visible = false;
close6._visible = true;
finery_mc.enabled = false;
finery_mc._alpha = 50;
} else {
if (posisiKini == 7) {
close1._visible = false;
close2._visible = true;
close3._visible = true;
close4._visible = true;
close5._visible = true;
close6._visible = false;
spell_mc.enabled = false;
weapon_mc.enabled = false;
shield_mc.enabled = false;
armor_mc.enabled = false;
spell_mc._alpha = 50;
weapon_mc._alpha = 50;
shield_mc._alpha = 50;
armor_mc._alpha = 50;
} else {
if (posisiKini == 9) {
close1._visible = false;
close2._visible = false;
close3._visible = false;
close4._visible = false;
close5._visible = false;
close6._visible = true;
finery_mc.enabled = false;
finery_mc._alpha = 50;
} else {
if (posisiKini == 11) {
if (duniaBerubah == false) {
close1._visible = false;
close2._visible = false;
close3._visible = false;
close4._visible = false;
close5._visible = false;
close6._visible = false;
} else {
close1._visible = false;
close2._visible = true;
close3._visible = false;
close4._visible = false;
close5._visible = false;
close6._visible = true;
spell_mc.enabled = false;
finery_mc.enabled = false;
spell_mc._alpha = 50;
finery_mc._alpha = 50;
}
} else {
if (posisiKini == 15) {
close1._visible = false;
close2._visible = true;
close3._visible = true;
close4._visible = true;
close5._visible = true;
close6._visible = true;
spell_mc.enabled = false;
weapon_mc.enabled = false;
shield_mc.enabled = false;
armor_mc.enabled = false;
finery_mc.enabled = false;
spell_mc._alpha = 50;
weapon_mc._alpha = 50;
shield_mc._alpha = 50;
armor_mc._alpha = 50;
finery_mc._alpha = 50;
} else {
if (posisiKini == 14) {
if (duniaBerubah == false) {
close1._visible = false;
close2._visible = true;
close3._visible = false;
close4._visible = false;
close5._visible = false;
close6._visible = true;
spell_mc.enabled = false;
finery_mc.enabled = false;
spell_mc._alpha = 50;
finery_mc._alpha = 50;
} else {
close1._visible = false;
close2._visible = true;
close3._visible = false;
close4._visible = false;
close5._visible = false;
close6._visible = true;
spell_mc.enabled = false;
finery_mc.enabled = false;
spell_mc._alpha = 50;
finery_mc._alpha = 50;
}
} else {
if (posisiKini == 21) {
close1._visible = false;
close2._visible = true;
close3._visible = true;
close4._visible = true;
close5._visible = true;
close6._visible = false;
spell_mc.enabled = false;
weapon_mc.enabled = false;
shield_mc.enabled = false;
armor_mc.enabled = false;
spell_mc._alpha = 50;
weapon_mc._alpha = 50;
shield_mc._alpha = 50;
armor_mc._alpha = 50;
} else {
if (posisiKini == 19) {
close1._visible = false;
close2._visible = false;
close3._visible = false;
close4._visible = false;
close5._visible = false;
close6._visible = false;
} else {
if (posisiKini == 26) {
close1._visible = false;
close2._visible = false;
close3._visible = false;
close4._visible = false;
close5._visible = false;
close6._visible = false;
} else {
if (posisiKini == 29) {
close1._visible = false;
close2._visible = true;
close3._visible = true;
close4._visible = true;
close5._visible = true;
close6._visible = true;
spell_mc.enabled = false;
weapon_mc.enabled = false;
shield_mc.enabled = false;
armor_mc.enabled = false;
finery_mc.enabled = false;
spell_mc._alpha = 50;
weapon_mc._alpha = 50;
shield_mc._alpha = 50;
armor_mc._alpha = 50;
finery_mc._alpha = 50;
} else {
if (posisiKini == 31) {
close1._visible = false;
close2._visible = false;
close3._visible = true;
close4._visible = true;
close5._visible = true;
close6._visible = false;
weapon_mc.enabled = false;
shield_mc.enabled = false;
armor_mc.enabled = false;
weapon_mc._alpha = 50;
shield_mc._alpha = 50;
armor_mc._alpha = 50;
} else {
if (posisiKini == 38) {
close1._visible = false;
close2._visible = true;
close3._visible = true;
close4._visible = true;
close5._visible = true;
close6._visible = true;
spell_mc.enabled = false;
weapon_mc.enabled = false;
shield_mc.enabled = false;
armor_mc.enabled = false;
finery_mc.enabled = false;
spell_mc._alpha = 50;
weapon_mc._alpha = 50;
shield_mc._alpha = 50;
armor_mc._alpha = 50;
finery_mc._alpha = 50;
gotoAndStop('item2');
}
}
}
}
}
}
}
}
}
}
}
}
}
back_btn.onRelease = function () {
backKlik();
pilihSemuaArea = false;
gotoAndStop(323);
};
}
frame 379 {
function klikItem() {
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = Number(myStr.substr(myStr.length - 1, 1));
} else {
indi = Number(myStr.substr(myStr.length - 2, 2));
}
if (this.tandaList._visible == false) {
i = 1;
while (i <= 16) {
_root['item' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
kiniItem = this._currentframe;
xinfo = infoItem[this._currentframe];
ownKe = 'Stock: ' + _root['itemPunya' + this._currentframe];
if (pilihanShop == 'buy') {
buy_btn._visible = true;
sell_btn._visible = false;
buy_btn.onRelease = function () {
if (uring >= hargaItem[kiniItem]) {
if (_root['itemPunya' + kiniItem] < 100) {
backMoney();
uring -= hargaItem[kiniItem];
++_root['itemPunya' + kiniItem];
ownKe = 'Stock: ' + _root['itemPunya' + kiniItem];
uringKe = uring + ' Uring';
}
}
};
} else {
if (pilihanShop == 'sell') {
buy_btn._visible = false;
sell_btn._visible = true;
sell_btn.onRelease = function () {
if (_root['itemPunya' + kiniItem] > 0) {
backMoney();
uring += hargaItem[kiniItem];
--_root['itemPunya' + kiniItem];
ownKe = 'Stock: ' + _root['itemPunya' + kiniItem];
uringKe = uring + ' Uring';
}
};
}
}
} else {
this.tandaList._visible = true;
kiniItem = this._currentframe;
xinfo = infoItem[this._currentframe];
ownKe = 'Stock: ' + _root['itemPunya' + this._currentframe];
if (pilihanShop == 'buy') {
if (uring >= hargaItem[kiniItem]) {
if (_root['itemPunya' + kiniItem] < 100) {
backMoney();
uring -= hargaItem[kiniItem];
++_root['itemPunya' + kiniItem];
ownKe = 'Stock: ' + _root['itemPunya' + kiniItem];
uringKe = uring + ' Uring';
}
}
} else {
if (pilihanShop == 'sell') {
if (_root['itemPunya' + kiniItem] > 0) {
backMoney();
uring += hargaItem[kiniItem];
--_root['itemPunya' + kiniItem];
ownKe = 'Stock: ' + _root['itemPunya' + kiniItem];
uringKe = uring + ' Uring';
}
}
}
}
}
stop();
buy_btn._visible = false;
sell_btn._visible = false;
hargaItem = new Array('', 50, 500, 5000, 50, 500, 5000, 250, 150, 100, 200, 500, 1000, 1500, 2000, 2500, 500, 1000, 1500, 2000, 2500, 800, 1600, 3200, 10000, 15000, 20000, 25000, 30000, 50000, 50000, 50000, 50000, 25, 25, 5000, 100, 5000, 5000, 20000, 20000, 50000, 50000, 75000, 2000, 2000, 3000, 3000, 4000, 5000, 7500, 3000, 3000, 3000, 3000, 3000, 7500, 4000, 5000, 50000, 50000, 50000, 50000, 50000, 50000, 50000, 50000, 50000, 2000000, 2000000, 2000000, 10000, 1000, 100, 10, 20000, 100000, 100000, 100000, 100000, 100000, 100000);
if (pilihanShop == 'buy') {
i = 1;
while (i <= 80) {
hargaItem[i] = hargaItem[i];
++i;
}
} else {
if (pilihanShop == 'sell') {
i = 1;
while (i <= 80) {
hargaItem[i] = Math.ceil(hargaItem[i] * 0.5);
++i;
}
}
}
xinfo = '';
ownKe = '';
uringKe = uring + ' Uring';
i = 1;
while (i <= 16) {
_root['item' + i].tandaList._visible = false;
_root['item' + i].onRelease = klikItem;
++i;
}
if (posisiKini == 1) {
_root.item1.gotoAndStop(1);
_root.item2.gotoAndStop(4);
_root.item3.gotoAndStop(33);
_root.item4.gotoAndStop(34);
_root.item5.gotoAndStop(21);
_root.item6.gotoAndStop(7);
_root.item7.gotoAndStop(8);
_root.item8.gotoAndStop(9);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 9;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 3) {
_root.item1.gotoAndStop(1);
_root.item2.gotoAndStop(4);
_root.item3.gotoAndStop(33);
_root.item4.gotoAndStop(34);
_root.item5.gotoAndStop(21);
_root.item6.gotoAndStop(7);
_root.item7.gotoAndStop(8);
_root.item8.gotoAndStop(9);
_root.item9.gotoAndStop(10);
_root.item10.gotoAndStop(11);
_root.item11.gotoAndStop(12);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 12;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 7) {
_root.item1.gotoAndStop(1);
_root.item2.gotoAndStop(4);
_root.item3.gotoAndStop(33);
_root.item4.gotoAndStop(34);
_root.item5.gotoAndStop(22);
_root.item6.gotoAndStop(7);
_root.item7.gotoAndStop(8);
_root.item8.gotoAndStop(9);
_root.item9.gotoAndStop(10);
_root.item10.gotoAndStop(74);
_root.item11.gotoAndStop(46);
_root.item12.gotoAndStop(47);
_root.item13.gotoAndStop(48);
_root.item14.gotoAndStop(11);
_root.item15.gotoAndStop(12);
_root.item16.gotoAndStop(13);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 17;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 9) {
_root.item1.gotoAndStop(1);
_root.item2.gotoAndStop(4);
_root.item3.gotoAndStop(33);
_root.item4.gotoAndStop(34);
_root.item5.gotoAndStop(22);
_root.item6.gotoAndStop(7);
_root.item7.gotoAndStop(8);
_root.item8.gotoAndStop(9);
_root.item9.gotoAndStop(10);
_root.item10.gotoAndStop(74);
_root.item11.gotoAndStop(44);
_root.item12.gotoAndStop(45);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 13;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 11) {
if (duniaBerubah == false) {
_root.item1.gotoAndStop(1);
_root.item2.gotoAndStop(4);
_root.item3.gotoAndStop(33);
_root.item4.gotoAndStop(34);
_root.item5.gotoAndStop(22);
_root.item6.gotoAndStop(7);
_root.item7.gotoAndStop(8);
_root.item8.gotoAndStop(9);
_root.item9.gotoAndStop(10);
_root.item10.gotoAndStop(46);
_root.item11.gotoAndStop(47);
_root.item12.gotoAndStop(48);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 13;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
_root.item1.gotoAndStop(41);
_root.item2.gotoAndStop(42);
_root.item3.gotoAndStop(43);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 4;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
}
} else {
if (posisiKini == 14) {
_root.item1.gotoAndStop(2);
_root.item2.gotoAndStop(5);
_root.item3.gotoAndStop(8);
_root.item4.gotoAndStop(9);
_root.item5.gotoAndStop(10);
_root.item6.gotoAndStop(14);
_root.item7.gotoAndStop(15);
_root.item8.gotoAndStop(33);
_root.item9.gotoAndStop(34);
_root.item10.gotoAndStop(23);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 11;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 15) {
_root.item1.gotoAndStop(2);
_root.item2.gotoAndStop(5);
_root.item3.gotoAndStop(8);
_root.item4.gotoAndStop(9);
_root.item5.gotoAndStop(10);
_root.item6.gotoAndStop(14);
_root.item7.gotoAndStop(15);
_root.item8.gotoAndStop(33);
_root.item9.gotoAndStop(34);
_root.item10.gotoAndStop(23);
_root.item11.gotoAndStop(47);
_root.item12.gotoAndStop(55);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 13;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 19) {
_root.item1.gotoAndStop(2);
_root.item2.gotoAndStop(5);
_root.item3.gotoAndStop(8);
_root.item4.gotoAndStop(9);
_root.item5.gotoAndStop(10);
_root.item6.gotoAndStop(14);
_root.item7.gotoAndStop(15);
_root.item8.gotoAndStop(16);
_root.item9.gotoAndStop(17);
_root.item10.gotoAndStop(23);
_root.item11.gotoAndStop(48);
_root.item12.gotoAndStop(54);
_root.item13.gotoAndStop(24);
_root.item14.gotoAndStop(25);
_root.item15.gotoAndStop(26);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 16;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 21) {
_root.item1.gotoAndStop(2);
_root.item2.gotoAndStop(5);
_root.item3.gotoAndStop(8);
_root.item4.gotoAndStop(9);
_root.item5.gotoAndStop(10);
_root.item6.gotoAndStop(33);
_root.item7.gotoAndStop(34);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 8;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 26) {
_root.item1.gotoAndStop(3);
_root.item2.gotoAndStop(6);
_root.item3.gotoAndStop(8);
_root.item4.gotoAndStop(9);
_root.item5.gotoAndStop(10);
_root.item6.gotoAndStop(18);
_root.item7.gotoAndStop(19);
_root.item8.gotoAndStop(20);
_root.item9.gotoAndStop(23);
_root.item10.gotoAndStop(27);
_root.item11.gotoAndStop(28);
_root.item12.gotoAndStop(34);
_root.item13.gotoAndStop(37);
_root.item14.gotoAndStop(38);
_root.item15.gotoAndStop(47);
_root.item16.gotoAndStop(55);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 17;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 29) {
_root.item1.gotoAndStop(75);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 2;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 31) {
_root.item1.gotoAndStop(44);
_root.item2.gotoAndStop(45);
_root.item3.gotoAndStop(46);
_root.item4.gotoAndStop(47);
_root.item5.gotoAndStop(48);
_root.item6.gotoAndStop(49);
_root.item7.gotoAndStop(50);
_root.item8.gotoAndStop(51);
_root.item9.gotoAndStop(52);
_root.item10.gotoAndStop(53);
_root.item11.gotoAndStop(54);
_root.item12.gotoAndStop(55);
_root.item13.gotoAndStop(56);
_root.item14.gotoAndStop(57);
_root.item15.gotoAndStop(58);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 16;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 38) {
_root.item1.gotoAndStop(76);
_root.item2.gotoAndStop(77);
_root.item3.gotoAndStop(78);
_root.item4.gotoAndStop(79);
_root.item5.gotoAndStop(80);
_root.item6.gotoAndStop(81);
i = 1;
while (i <= 16) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 7;
while (i <= 16) {
_root['item' + i]._visible = false;
++i;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
item_mc.gotoAndStop(2);
spell_mc.gotoAndStop(1);
weapon_mc.gotoAndStop(1);
armor_mc.gotoAndStop(1);
shield_mc.gotoAndStop(1);
finery_mc.gotoAndStop(1);
command_mc.gotoAndStop(1);
servant_mc.gotoAndStop(1);
item_mc.onRelease = function () {
backKlik();
gotoAndStop('item');
};
spell_mc.onRelease = function () {
backKlik();
gotoAndStop('spell');
};
weapon_mc.onRelease = function () {
backKlik();
gotoAndStop('weapon');
};
armor_mc.onRelease = function () {
backKlik();
gotoAndStop('armor');
};
shield_mc.onRelease = function () {
backKlik();
gotoAndStop('shield');
};
finery_mc.onRelease = function () {
backKlik();
gotoAndStop('finery');
};
command_mc.onRelease = function () {
backKlik();
gotoAndStop('command');
};
servant_mc.onRelease = function () {
backKlik();
gotoAndStop('servant');
};
}
movieClip 2033 {
frame 1 {
stop();
}
}
movieClip 2038 {
}
frame 380 {
function klikSpell() {
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = Number(myStr.substr(myStr.length - 1, 1));
} else {
indi = Number(myStr.substr(myStr.length - 2, 2));
}
if (this.tandaList._visible == false) {
i = 1;
while (i <= 12) {
_root['spell' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
kiniSpell = this._currentframe;
xinfo = infoSpell[this._currentframe];
ownKe = 'Stock: ' + _root['spellPunya' + this._currentframe];
if (pilihanShop == 'buy') {
buy_btn._visible = true;
sell_btn._visible = false;
buy_btn.onRelease = function () {
if (uring >= hargaSpell[kiniSpell]) {
if (_root['spellPunya' + kiniSpell] < 100) {
backMoney();
uring -= hargaSpell[kiniSpell];
++_root['spellPunya' + kiniSpell];
ownKe = 'Stock: ' + _root['spellPunya' + kiniSpell];
uringKe = uring + ' Uring';
}
}
};
} else {
if (pilihanShop == 'sell') {
buy_btn._visible = false;
sell_btn._visible = true;
sell_btn.onRelease = function () {
if (_root['spellPunya' + kiniSpell] > 0) {
backMoney();
uring += hargaSpell[kiniSpell];
--_root['spellPunya' + kiniSpell];
ownKe = 'Stock: ' + _root['spellPunya' + kiniSpell];
uringKe = uring + ' Uring';
}
};
}
}
} else {
this.tandaList._visible = true;
kiniSpell = this._currentframe;
xinfo = infoSpell[this._currentframe];
ownKe = 'Stock: ' + _root['spellPunya' + this._currentframe];
if (pilihanShop == 'buy') {
if (uring >= hargaSpell[kiniSpell]) {
if (_root['spellPunya' + kiniSpell] < 100) {
backMoney();
uring -= hargaSpell[kiniSpell];
++_root['spellPunya' + kiniSpell];
ownKe = 'Stock: ' + _root['spellPunya' + kiniSpell];
uringKe = uring + ' Uring';
}
}
} else {
if (pilihanShop == 'sell') {
if (_root['spellPunya' + kiniSpell] > 0) {
backMoney();
uring += hargaSpell[kiniSpell];
--_root['spellPunya' + kiniSpell];
ownKe = 'Stock: ' + _root['spellPunya' + kiniSpell];
uringKe = uring + ' Uring';
}
}
}
}
}
stop();
buy_btn._visible = false;
sell_btn._visible = false;
hargaSpell = new Array('', 500, 1000, 2000, 500, 1000, 2000, 1000, 2000, 3000, 2000, 5000, 40000, 10000, 7500, 10000, 15000, 7500, 7500, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 30000, 20000, 20000, 10000, 10000, 75000, 10000);
costMP = new Array(0, 50, 100, 200, 60, 120, 240, 100, 200, 400, 150, 200, 1500, 400, 200, 400, 800, 500, 500, 250, 250, 250, 250, 250, 250, 1250, 250, 250, 1000, 750, 750, 500, 500, 2000, 1750);
xinfo = '';
ownKe = '';
if (pilihanShop == 'buy') {
i = 1;
while (i <= 35) {
hargaSpell[i] = hargaSpell[i];
++i;
}
} else {
if (pilihanShop == 'sell') {
i = 1;
while (i <= 35) {
hargaSpell[i] = Math.ceil(hargaSpell[i] * 0.5);
++i;
}
}
}
uringKe = uring + ' Uring';
i = 1;
while (i <= 12) {
_root['spell' + i].tandaList._visible = false;
_root['spell' + i].onRelease = klikSpell;
++i;
}
if (posisiKini == 1) {
_root.spell1.gotoAndStop(1);
_root.spell2.gotoAndStop(4);
i = 1;
while (i <= 12) {
_root['spell' + i].harga = hargaSpell[_root['spell' + i]._currentframe] + ' Uring';
_root['spell' + i].hargaMP = costMP[_root['spell' + i]._currentframe] + ' MP';
++i;
}
i = 3;
while (i <= 12) {
_root['spell' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 3) {
_root.spell1.gotoAndStop(1);
_root.spell2.gotoAndStop(4);
_root.spell3.gotoAndStop(7);
i = 1;
while (i <= 12) {
_root['spell' + i].harga = hargaSpell[_root['spell' + i]._currentframe] + ' Uring';
_root['spell' + i].hargaMP = costMP[_root['spell' + i]._currentframe] + ' MP';
++i;
}
i = 4;
while (i <= 12) {
_root['spell' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 9) {
_root.spell1.gotoAndStop(1);
_root.spell2.gotoAndStop(4);
_root.spell3.gotoAndStop(7);
_root.spell4.gotoAndStop(10);
i = 1;
while (i <= 12) {
_root['spell' + i].harga = hargaSpell[_root['spell' + i]._currentframe] + ' Uring';
_root['spell' + i].hargaMP = costMP[_root['spell' + i]._currentframe] + ' MP';
++i;
}
i = 5;
while (i <= 12) {
_root['spell' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 11) {
_root.spell1.gotoAndStop(2);
_root.spell2.gotoAndStop(5);
_root.spell3.gotoAndStop(8);
_root.spell4.gotoAndStop(11);
_root.spell5.gotoAndStop(14);
_root.spell6.gotoAndStop(19);
_root.spell7.gotoAndStop(26);
i = 1;
while (i <= 12) {
_root['spell' + i].harga = hargaSpell[_root['spell' + i]._currentframe] + ' Uring';
_root['spell' + i].hargaMP = costMP[_root['spell' + i]._currentframe] + ' MP';
++i;
}
i = 8;
while (i <= 12) {
_root['spell' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 19) {
_root.spell1.gotoAndStop(2);
_root.spell2.gotoAndStop(5);
_root.spell3.gotoAndStop(8);
_root.spell4.gotoAndStop(11);
_root.spell5.gotoAndStop(15);
_root.spell6.gotoAndStop(19);
_root.spell7.gotoAndStop(20);
_root.spell8.gotoAndStop(21);
_root.spell9.gotoAndStop(22);
_root.spell10.gotoAndStop(23);
_root.spell11.gotoAndStop(27);
i = 1;
while (i <= 12) {
_root['spell' + i].harga = hargaSpell[_root['spell' + i]._currentframe] + ' Uring';
_root['spell' + i].hargaMP = costMP[_root['spell' + i]._currentframe] + ' MP';
++i;
}
i = 12;
while (i <= 12) {
_root['spell' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 26) {
_root.spell1.gotoAndStop(3);
_root.spell2.gotoAndStop(6);
_root.spell3.gotoAndStop(9);
_root.spell4.gotoAndStop(13);
_root.spell5.gotoAndStop(16);
_root.spell6.gotoAndStop(24);
_root.spell7.gotoAndStop(25);
_root.spell8.gotoAndStop(26);
_root.spell9.gotoAndStop(27);
_root.spell10.gotoAndStop(28);
_root.spell11.gotoAndStop(17);
_root.spell12.gotoAndStop(18);
i = 1;
while (i <= 12) {
_root['spell' + i].harga = hargaSpell[_root['spell' + i]._currentframe] + ' Uring';
_root['spell' + i].hargaMP = costMP[_root['spell' + i]._currentframe] + ' MP';
++i;
}
i = 13;
while (i <= 12) {
_root['spell' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 31) {
_root.spell1.gotoAndStop(29);
_root.spell2.gotoAndStop(30);
_root.spell3.gotoAndStop(31);
_root.spell4.gotoAndStop(32);
_root.spell5.gotoAndStop(34);
i = 1;
while (i <= 12) {
_root['spell' + i].harga = hargaSpell[_root['spell' + i]._currentframe] + ' Uring';
_root['spell' + i].hargaMP = costMP[_root['spell' + i]._currentframe] + ' MP';
++i;
}
i = 6;
while (i <= 12) {
_root['spell' + i]._visible = false;
++i;
}
}
}
}
}
}
}
}
item_mc.gotoAndStop(1);
spell_mc.gotoAndStop(2);
weapon_mc.gotoAndStop(1);
armor_mc.gotoAndStop(1);
shield_mc.gotoAndStop(1);
finery_mc.gotoAndStop(1);
command_mc.gotoAndStop(1);
servant_mc.gotoAndStop(1);
item_mc.onRelease = function () {
backKlik();
gotoAndStop('item');
};
spell_mc.onRelease = function () {
backKlik();
gotoAndStop('spell');
};
weapon_mc.onRelease = function () {
backKlik();
gotoAndStop('weapon');
};
armor_mc.onRelease = function () {
backKlik();
gotoAndStop('armor');
};
shield_mc.onRelease = function () {
backKlik();
gotoAndStop('shield');
};
finery_mc.onRelease = function () {
backKlik();
gotoAndStop('finery');
};
command_mc.onRelease = function () {
backKlik();
gotoAndStop('command');
};
servant_mc.onRelease = function () {
backKlik();
gotoAndStop('servant');
};
}
movieClip 2076 {
frame 1 {
stop();
}
}
frame 381 {
function klikWeapon() {
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = Number(myStr.substr(myStr.length - 1, 1));
} else {
indi = Number(myStr.substr(myStr.length - 2, 2));
}
xinfo = infoWeapon[this._currentframe];
ownKe = 'Stock: ' + _root['weaponPunya' + this._currentframe];
i = 1;
while (i <= 6) {
_root['own' + i]._visible = false;
++i;
}
siapaPunya = milikWeapon[this._currentframe];
siapaWeapon = _root['weaponPasang' + siapaPunya];
kiniWeapon = this._currentframe;
siapaShield = _root['shieldPasang' + siapaPunya];
kiniShield = _root['shieldPasang' + siapaPunya];
siapaHead = _root['headPasang' + siapaPunya];
kiniHead = _root['headPasang' + siapaPunya];
siapaBody = _root['bodyPasang' + siapaPunya];
kiniBody = _root['bodyPasang' + siapaPunya];
usedWeapon = 'Weapon Used: ' + namaWeapon[siapaWeapon];
_root['own' + siapaPunya]._visible = true;
kalkulasiStats('akhir');
if (this.tandaList._visible == false) {
i = 1;
while (i <= 12) {
_root['weapon' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
if (pilihanShop == 'buy') {
buy_btn._visible = true;
sell_btn._visible = false;
buy_btn.onRelease = function () {
if (uring >= hargaWeapon[kiniWeapon]) {
if (_root['weaponPunya' + kiniWeapon] < 100) {
backMoney();
uring -= hargaWeapon[kiniWeapon];
++_root['weaponPunya' + kiniWeapon];
ownKe = 'Stock: ' + _root['weaponPunya' + kiniWeapon];
uringKe = uring + ' Uring';
}
}
};
} else {
if (pilihanShop == 'sell') {
buy_btn._visible = false;
sell_btn._visible = true;
sell_btn.onRelease = function () {
if (_root['weaponPunya' + kiniWeapon] > 0) {
backMoney();
uring += hargaWeapon[kiniWeapon];
--_root['weaponPunya' + kiniWeapon];
ownKe = 'Stock: ' + _root['weaponPunya' + kiniWeapon];
uringKe = uring + ' Uring';
if (_root['weaponPunya' + kiniWeapon] <= 0) {
if (_root['weaponPasang' + siapaPunya] == kiniWeapon) {
_root['weaponPasang' + siapaPunya] = 0;
}
}
}
};
}
}
} else {
this.tandaList._visible = true;
if (pilihanShop == 'buy') {
if (uring >= hargaWeapon[kiniWeapon]) {
if (_root['weaponPunya' + kiniWeapon] < 100) {
backMoney();
uring -= hargaWeapon[kiniWeapon];
++_root['weaponPunya' + kiniWeapon];
ownKe = 'Stock: ' + _root['weaponPunya' + kiniWeapon];
uringKe = uring + ' Uring';
}
}
} else {
if (pilihanShop == 'sell') {
if (_root['weaponPunya' + kiniWeapon] > 0) {
backMoney();
uring += hargaWeapon[kiniWeapon];
--_root['weaponPunya' + kiniWeapon];
ownKe = 'Stock: ' + _root['weaponPunya' + kiniWeapon];
uringKe = uring + ' Uring';
if (_root['weaponPunya' + kiniWeapon] <= 0) {
if (_root['weaponPasang' + siapaPunya] == kiniWeapon) {
_root['weaponPasang' + siapaPunya] = 0;
}
}
}
}
}
}
}
stop();
buy_btn._visible = false;
sell_btn._visible = false;
hargaWeapon = new Array('', 250, 500, 1000, 5000, 7500, 10000, 15000, 300, 600, 2000, 5000, 7500, 10000, 15000, 350, 1000, 2500, 5000, 7500, 15000, 400, 1000, 1500, 2500, 7500, 10000, 450, 2000, 1500, 7500, 10000, 15000, 500, 1500, 2500, 5000, 15000, 15000, 200000, 200000, 200000, 200000, 200000, 200000);
milikWeapon = new Array('', 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 1, 2, 3, 4, 5, 6);
if (pilihanShop == 'buy') {
i = 1;
while (i <= 45) {
hargaWeapon[i] = hargaWeapon[i];
++i;
}
} else {
if (pilihanShop == 'sell') {
i = 1;
while (i <= 45) {
hargaWeapon[i] = Math.ceil(hargaWeapon[i] * 0.5);
++i;
}
}
}
xinfo = '';
ownKe = '';
usedWeapon = '';
uringKe = uring + ' Uring';
i = 1;
while (i <= 8) {
_root['weapon' + i].tandaList._visible = false;
_root['weapon' + i].onRelease = klikWeapon;
++i;
}
if (posisiKini == 1 || posisiKini == 3) {
if (duniaBerubah == false) {
_root.weapon1.gotoAndStop(2);
_root.weapon2.gotoAndStop(3);
_root.weapon3.gotoAndStop(9);
i = 1;
while (i <= 8) {
_root['weapon' + i].harga = hargaWeapon[_root['weapon' + i]._currentframe] + ' Uring';
++i;
}
i = 4;
while (i <= 8) {
_root['weapon' + i]._visible = false;
++i;
}
} else {
_root.weapon1.gotoAndStop(1);
_root.weapon2.gotoAndStop(8);
_root.weapon3.gotoAndStop(15);
_root.weapon4.gotoAndStop(21);
_root.weapon5.gotoAndStop(27);
_root.weapon6.gotoAndStop(32);
_root.weapon7.gotoAndStop(33);
i = 1;
while (i <= 8) {
_root['weapon' + i].harga = hargaWeapon[_root['weapon' + i]._currentframe] + ' Uring';
++i;
}
i = 8;
while (i <= 8) {
_root['weapon' + i]._visible = false;
++i;
}
}
} else {
if (posisiKini == 9) {
_root.weapon1.gotoAndStop(2);
_root.weapon2.gotoAndStop(3);
_root.weapon3.gotoAndStop(9);
_root.weapon4.gotoAndStop(10);
_root.weapon5.gotoAndStop(16);
i = 1;
while (i <= 8) {
_root['weapon' + i].harga = hargaWeapon[_root['weapon' + i]._currentframe] + ' Uring';
++i;
}
i = 6;
while (i <= 8) {
_root['weapon' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 11) {
if (duniaBerubah == false) {
_root.weapon1.gotoAndStop(4);
_root.weapon2.gotoAndStop(17);
_root.weapon3.gotoAndStop(22);
i = 1;
while (i <= 8) {
_root['weapon' + i].harga = hargaWeapon[_root['weapon' + i]._currentframe] + ' Uring';
++i;
}
i = 4;
while (i <= 8) {
_root['weapon' + i]._visible = false;
++i;
}
} else {
_root.weapon1.gotoAndStop(38);
_root.weapon2.gotoAndStop(40);
_root.weapon3.gotoAndStop(43);
_root.weapon4.gotoAndStop(44);
i = 1;
while (i <= 8) {
_root['weapon' + i].harga = hargaWeapon[_root['weapon' + i]._currentframe] + ' Uring';
++i;
}
i = 5;
while (i <= 8) {
_root['weapon' + i]._visible = false;
++i;
}
}
} else {
if (posisiKini == 14) {
_root.weapon1.gotoAndStop(5);
_root.weapon2.gotoAndStop(18);
_root.weapon3.gotoAndStop(23);
i = 1;
while (i <= 8) {
_root['weapon' + i].harga = hargaWeapon[_root['weapon' + i]._currentframe] + ' Uring';
++i;
}
i = 4;
while (i <= 8) {
_root['weapon' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 19) {
_root.weapon1.gotoAndStop(5);
_root.weapon2.gotoAndStop(12);
_root.weapon3.gotoAndStop(19);
_root.weapon4.gotoAndStop(24);
_root.weapon5.gotoAndStop(28);
_root.weapon6.gotoAndStop(30);
i = 1;
while (i <= 8) {
_root['weapon' + i].harga = hargaWeapon[_root['weapon' + i]._currentframe] + ' Uring';
++i;
}
i = 7;
while (i <= 8) {
_root['weapon' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 26) {
_root.weapon1.gotoAndStop(7);
_root.weapon2.gotoAndStop(13);
_root.weapon3.gotoAndStop(20);
_root.weapon4.gotoAndStop(25);
_root.weapon5.gotoAndStop(29);
_root.weapon6.gotoAndStop(34);
_root.weapon7.gotoAndStop(35);
_root.weapon8.gotoAndStop(36);
i = 1;
while (i <= 8) {
_root['weapon' + i].harga = hargaWeapon[_root['weapon' + i]._currentframe] + ' Uring';
++i;
}
i = 9;
while (i <= 8) {
_root['weapon' + i]._visible = false;
++i;
}
}
}
}
}
}
}
i = 1;
while (i <= 6) {
_root['monster' + i].gotoAndStop(i);
_root['own' + i]._visible = false;
++i;
}
kalkulasiStats('awal');
item_mc.gotoAndStop(1);
spell_mc.gotoAndStop(1);
weapon_mc.gotoAndStop(2);
armor_mc.gotoAndStop(1);
shield_mc.gotoAndStop(1);
finery_mc.gotoAndStop(1);
command_mc.gotoAndStop(1);
servant_mc.gotoAndStop(1);
item_mc.onRelease = function () {
backKlik();
gotoAndStop('item');
};
spell_mc.onRelease = function () {
backKlik();
gotoAndStop('spell');
};
weapon_mc.onRelease = function () {
backKlik();
gotoAndStop('weapon');
};
armor_mc.onRelease = function () {
backKlik();
gotoAndStop('armor');
};
shield_mc.onRelease = function () {
backKlik();
gotoAndStop('shield');
};
finery_mc.onRelease = function () {
backKlik();
gotoAndStop('finery');
};
command_mc.onRelease = function () {
backKlik();
gotoAndStop('command');
};
servant_mc.onRelease = function () {
backKlik();
gotoAndStop('servant');
};
}
movieClip 2125 {
frame 1 {
stop();
}
}
movieClip 2149 {
frame 1 {
stop();
}
}
frame 382 {
function klikShield() {
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = Number(myStr.substr(myStr.length - 1, 1));
} else {
indi = Number(myStr.substr(myStr.length - 2, 2));
}
xinfo = infoShield[this._currentframe];
ownKe = 'Stock: ' + _root['shieldPunya' + this._currentframe];
i = 1;
while (i <= 6) {
_root['own' + i]._visible = false;
++i;
}
siapaPunya = milikShield[this._currentframe];
siapaWeapon = _root['weaponPasang' + siapaPunya];
kiniWeapon = _root['weaponPasang' + siapaPunya];
siapaShield = _root['shieldPasang' + siapaPunya];
kiniShield = this._currentframe;
siapaHead = _root['headPasang' + siapaPunya];
kiniHead = _root['headPasang' + siapaPunya];
siapaBody = _root['bodyPasang' + siapaPunya];
kiniBody = _root['bodyPasang' + siapaPunya];
usedShield = 'Shield Used: ' + namaShield[siapaShield];
_root['own' + siapaPunya]._visible = true;
kalkulasiStats('akhir');
if (this.tandaList._visible == false) {
i = 1;
while (i <= 12) {
_root['shield' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
if (pilihanShop == 'buy') {
buy_btn._visible = true;
sell_btn._visible = false;
buy_btn.onRelease = function () {
if (uring >= hargaShield[kiniShield]) {
if (_root['shieldPunya' + kiniShield] < 100) {
backMoney();
uring -= hargaShield[kiniShield];
++_root['shieldPunya' + kiniShield];
ownKe = 'Stock: ' + _root['shieldPunya' + kiniShield];
uringKe = uring + ' Uring';
}
}
};
} else {
if (pilihanShop == 'sell') {
buy_btn._visible = false;
sell_btn._visible = true;
sell_btn.onRelease = function () {
if (_root['shieldPunya' + kiniShield] > 0) {
backMoney();
uring += hargaShield[kiniShield];
--_root['shieldPunya' + kiniShield];
ownKe = 'Stock: ' + _root['shieldPunya' + kiniShield];
uringKe = uring + ' Uring';
if (_root['shieldPunya' + kiniShield] <= 0) {
if (_root['shieldPasang' + siapaPunya] == kiniShield) {
_root['shieldPasang' + siapaPunya] = 0;
}
}
}
};
}
}
} else {
this.tandaList._visible = true;
if (pilihanShop == 'buy') {
if (uring >= hargaShield[kiniShield]) {
if (_root['shieldPunya' + kiniShield] < 100) {
backMoney();
uring -= hargaShield[kiniShield];
++_root['shieldPunya' + kiniShield];
ownKe = 'Stock: ' + _root['shieldPunya' + kiniShield];
uringKe = uring + ' Uring';
}
}
} else {
if (pilihanShop == 'sell') {
if (_root['shieldPunya' + kiniShield] > 0) {
backMoney();
uring += hargaShield[kiniShield];
--_root['shieldPunya' + kiniShield];
ownKe = 'Stock: ' + _root['shieldPunya' + kiniShield];
uringKe = uring + ' Uring';
if (_root['shieldPunya' + kiniShield] <= 0) {
if (_root['shieldPasang' + siapaPunya] == kiniShield) {
_root['shieldPasang' + siapaPunya] = 0;
}
}
}
}
}
}
}
stop();
buy_btn._visible = false;
sell_btn._visible = false;
hargaShield = new Array('', 500, 1000, 2000, 4000, 8000, 600, 1200, 2400, 4800, 9600, 700, 1400, 2800, 5400, 10800, 800, 1600, 3200, 6400, 12800, 900, 1800, 3600, 7200, 14400, 1000, 2000, 4000, 8000, 16000, 150000, 150000, 150000, 150000, 150000, 300000);
milikShield = new Array('', 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 1, 2, 3, 4, 5, 6);
if (pilihanShop == 'buy') {
i = 1;
while (i <= 40) {
hargaShield[i] = hargaShield[i];
++i;
}
} else {
if (pilihanShop == 'sell') {
i = 1;
while (i <= 40) {
hargaShield[i] = Math.ceil(hargaShield[i] * 0.5);
++i;
}
}
}
xinfo = '';
ownKe = '';
usedShield = '';
uringKe = uring + ' Uring';
i = 1;
while (i <= 8) {
_root['shield' + i].tandaList._visible = false;
_root['shield' + i].onRelease = klikShield;
++i;
}
if (posisiKini == 3) {
if (duniaBerubah == false) {
_root.shield1.gotoAndStop(1);
_root.shield2.gotoAndStop(6);
i = 1;
while (i <= 8) {
_root['shield' + i].harga = hargaShield[_root['shield' + i]._currentframe] + ' Uring';
++i;
}
i = 3;
while (i <= 8) {
_root['shield' + i]._visible = false;
++i;
}
} else {
_root.shield1.gotoAndStop(1);
_root.shield2.gotoAndStop(6);
_root.shield3.gotoAndStop(11);
_root.shield4.gotoAndStop(16);
_root.shield5.gotoAndStop(21);
_root.shield6.gotoAndStop(26);
i = 1;
while (i <= 8) {
_root['shield' + i].harga = hargaShield[_root['shield' + i]._currentframe] + ' Uring';
++i;
}
i = 7;
while (i <= 8) {
_root['shield' + i]._visible = false;
++i;
}
}
} else {
if (posisiKini == 9) {
_root.shield1.gotoAndStop(2);
_root.shield2.gotoAndStop(7);
_root.shield3.gotoAndStop(12);
i = 1;
while (i <= 8) {
_root['shield' + i].harga = hargaShield[_root['shield' + i]._currentframe] + ' Uring';
++i;
}
i = 4;
while (i <= 8) {
_root['shield' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 11) {
if (duniaBerubah == false) {
_root.shield1.gotoAndStop(3);
_root.shield2.gotoAndStop(8);
_root.shield3.gotoAndStop(13);
} else {
_root.shield1.gotoAndStop(31);
_root.shield2.gotoAndStop(35);
_root.shield3.gotoAndStop(36);
_root.shield4.gotoAndStop(9);
}
i = 1;
while (i <= 8) {
_root['shield' + i].harga = hargaShield[_root['shield' + i]._currentframe] + ' Uring';
++i;
}
i = 5;
while (i <= 8) {
_root['shield' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 14) {
_root.shield1.gotoAndStop(4);
_root.shield2.gotoAndStop(14);
_root.shield3.gotoAndStop(17);
i = 1;
while (i <= 8) {
_root['shield' + i].harga = hargaShield[_root['shield' + i]._currentframe] + ' Uring';
++i;
}
i = 4;
while (i <= 8) {
_root['shield' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 19) {
_root.shield1.gotoAndStop(10);
_root.shield2.gotoAndStop(22);
_root.shield3.gotoAndStop(23);
i = 1;
while (i <= 8) {
_root['shield' + i].harga = hargaShield[_root['shield' + i]._currentframe] + ' Uring';
++i;
}
i = 4;
while (i <= 8) {
_root['shield' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 26) {
_root.shield1.gotoAndStop(15);
_root.shield2.gotoAndStop(19);
_root.shield3.gotoAndStop(20);
_root.shield4.gotoAndStop(23);
_root.shield5.gotoAndStop(27);
_root.shield6.gotoAndStop(28);
_root.shield7.gotoAndStop(29);
_root.shield8.gotoAndStop(30);
i = 1;
while (i <= 8) {
_root['shield' + i].harga = hargaShield[_root['shield' + i]._currentframe] + ' Uring';
++i;
}
i = 9;
while (i <= 8) {
_root['shield' + i]._visible = false;
++i;
}
}
}
}
}
}
}
i = 1;
while (i <= 6) {
_root['monster' + i].gotoAndStop(i);
_root['own' + i]._visible = false;
++i;
}
kalkulasiStats('awal');
item_mc.gotoAndStop(1);
spell_mc.gotoAndStop(1);
weapon_mc.gotoAndStop(1);
armor_mc.gotoAndStop(1);
shield_mc.gotoAndStop(2);
finery_mc.gotoAndStop(1);
command_mc.gotoAndStop(1);
servant_mc.gotoAndStop(1);
item_mc.onRelease = function () {
backKlik();
gotoAndStop('item');
};
spell_mc.onRelease = function () {
backKlik();
gotoAndStop('spell');
};
weapon_mc.onRelease = function () {
backKlik();
gotoAndStop('weapon');
};
armor_mc.onRelease = function () {
backKlik();
gotoAndStop('armor');
};
shield_mc.onRelease = function () {
backKlik();
gotoAndStop('shield');
};
finery_mc.onRelease = function () {
backKlik();
gotoAndStop('finery');
};
command_mc.onRelease = function () {
backKlik();
gotoAndStop('command');
};
servant_mc.onRelease = function () {
backKlik();
gotoAndStop('servant');
};
}
movieClip 2191 {
frame 1 {
stop();
}
}
frame 383 {
function klikArmor() {
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = Number(myStr.substr(myStr.length - 1, 1));
} else {
indi = Number(myStr.substr(myStr.length - 2, 2));
}
if (this._currentframe <= 20) {
siapaHead = _root['headPasang' + siapaPunya];
kiniHead = this._currentframe;
kalkulasiStats('hasil', this._currentframe);
slot_mc._visible = true;
slot_mc.gotoAndStop(slotMagicArmor[this._currentframe]);
i = 1;
while (i <= 8) {
slot_mc['isi' + i]._visible = false;
++i;
}
} else {
siapaBody = _root['bodyPasang' + siapaPunya];
kiniBody = this._currentframe - 20;
kalkulasiStats('hasil', this._currentframe - 20);
slot_mc._visible = false;
}
posisiArmor = this._currentframe;
xinfo = infoArmor[this._currentframe];
ownKe = 'Stock: ' + _root['armorPunya' + this._currentframe];
if (this.tandaList._visible == false) {
i = 1;
while (i <= 9) {
_root['armor' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
if (pilihanShop == 'buy') {
buy_btn._visible = true;
sell_btn._visible = false;
buy_btn.onRelease = function () {
if (_root['armorPunya' + posisiArmor] < 100) {
if (posisiArmor <= 20) {
if (uring >= hargaArmor[posisiArmor]) {
backMoney();
uring -= hargaArmor[posisiArmor];
++_root['armorPunya' + posisiArmor];
ownKe = 'Stock: ' + _root['armorPunya' + posisiArmor];
uringKe = uring + ' Uring';
}
} else {
if (uring >= hargaArmor[posisiArmor]) {
backMoney();
uring -= hargaArmor[posisiArmor];
++_root['armorPunya' + posisiArmor];
ownKe = 'Stock: ' + _root['armorPunya' + posisiArmor];
uringKe = uring + ' Uring';
}
}
}
};
} else {
if (pilihanShop == 'sell') {
buy_btn._visible = false;
sell_btn._visible = true;
sell_btn.onRelease = function () {
if (posisiArmor <= 20) {
if (_root['armorPunya' + posisiArmor] > 0) {
backMoney();
uring += hargaArmor[posisiArmor];
--_root['armorPunya' + posisiArmor];
ownKe = 'Stock: ' + _root['armorPunya' + posisiArmor];
uringKe = uring + ' Uring';
if (_root['armorPunya' + posisiArmor] <= 0) {
if (_root['headPasang' + siapaHead] == kiniHead) {
_root['headPasang' + siapaHead] = 0;
}
}
}
} else {
if (_root['armorPunya' + posisiArmor] > 0) {
backMoney();
uring += hargaArmor[posisiArmor];
--_root['armorPunya' + posisiArmor];
ownKe = 'Stock: ' + _root['armorPunya' + posisiArmor];
uringKe = uring + ' Uring';
if (_root['armorPunya' + posisiArmor] <= 0) {
if (_root['bodyPasang' + siapaBody] == kiniBody) {
_root['bodyPasang' + siapaBody] = 0;
}
}
}
}
};
}
}
} else {
this.tandaList._visible = true;
if (pilihanShop == 'buy') {
if (_root['armorPunya' + posisiArmor] < 100) {
if (posisiArmor <= 20) {
if (uring >= hargaArmor[posisiArmor]) {
backMoney();
uring -= hargaArmor[posisiArmor];
++_root['armorPunya' + posisiArmor];
ownKe = 'Stock: ' + _root['armorPunya' + posisiArmor];
uringKe = uring + ' Uring';
}
} else {
if (uring >= hargaArmor[posisiArmor]) {
backMoney();
uring -= hargaArmor[posisiArmor];
++_root['armorPunya' + posisiArmor];
ownKe = 'Stock: ' + _root['armorPunya' + posisiArmor];
uringKe = uring + ' Uring';
}
}
}
} else {
if (pilihanShop == 'sell') {
if (posisiArmor <= 20) {
if (_root['armorPunya' + posisiArmor] > 0) {
backMoney();
uring += hargaArmor[posisiArmor];
--_root['armorPunya' + posisiArmor];
ownKe = 'Stock: ' + _root['armorPunya' + posisiArmor];
uringKe = uring + ' Uring';
if (_root['armorPunya' + posisiArmor] <= 0) {
if (_root['headPasang' + siapaHead] == kiniHead) {
_root['headPasang' + siapaHead] = 0;
}
}
}
} else {
if (_root['armorPunya' + posisiArmor] > 0) {
backMoney();
uring += hargaArmor[posisiArmor];
--_root['armorPunya' + posisiArmor];
ownKe = 'Stock: ' + _root['armorPunya' + posisiArmor];
uringKe = uring + ' Uring';
if (_root['armorPunya' + posisiArmor] <= 0) {
if (_root['bodyPasang' + siapaBody] == kiniBody) {
_root['bodyPasang' + siapaBody] = 0;
}
}
}
}
}
}
}
}
stop();
buy_btn._visible = false;
sell_btn._visible = false;
hargaArmor = new Array('', 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500);
xinfo = '';
slotMagicArmor = new Array('', 3, 1, 2, 4, 5, 6, 7, 8, 9, 10, 6, 5, 7, 8, 10, 9, 12, 14, 13, 11);
if (pilihanShop == 'buy') {
i = 1;
while (i <= 40) {
hargaArmor[i] = hargaArmor[i];
++i;
}
} else {
if (pilihanShop == 'sell') {
i = 1;
while (i <= 40) {
hargaArmor[i] = Math.ceil(hargaArmor[i] * 0.5);
++i;
}
}
}
i = 1;
while (i <= 8) {
slot_mc['isi' + i]._visible = false;
++i;
}
uringKe = uring + ' Uring';
i = 1;
while (i <= 9) {
_root['armor' + i].tandaList._visible = false;
_root['armor' + i].onRelease = klikArmor;
++i;
}
if (posisiKini == 3) {
_root.armor1.gotoAndStop(1);
_root.armor2.gotoAndStop(2);
_root.armor3.gotoAndStop(21);
_root.armor4.gotoAndStop(22);
i = 1;
while (i <= 9) {
_root['armor' + i].harga = hargaArmor[_root['armor' + i]._currentframe] + ' Uring';
++i;
}
i = 5;
while (i <= 9) {
_root['armor' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 9) {
_root.armor1.gotoAndStop(3);
_root.armor2.gotoAndStop(4);
_root.armor3.gotoAndStop(23);
_root.armor4.gotoAndStop(24);
i = 1;
while (i <= 9) {
_root['armor' + i].harga = hargaArmor[_root['armor' + i]._currentframe] + ' Uring';
++i;
}
i = 5;
while (i <= 9) {
_root['armor' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 11) {
if (duniaBerubah == false) {
_root.armor1.gotoAndStop(5);
_root.armor2.gotoAndStop(6);
_root.armor3.gotoAndStop(25);
_root.armor4.gotoAndStop(26);
i = 1;
while (i <= 9) {
_root['armor' + i].harga = hargaArmor[_root['armor' + i]._currentframe] + ' Uring';
++i;
}
i = 5;
while (i <= 9) {
_root['armor' + i]._visible = false;
++i;
}
} else {
_root.armor1.gotoAndStop(15);
_root.armor2.gotoAndStop(16);
_root.armor3.gotoAndStop(17);
_root.armor4.gotoAndStop(19);
_root.armor5.gotoAndStop(36);
_root.armor6.gotoAndStop(37);
_root.armor7.gotoAndStop(38);
_root.armor8.gotoAndStop(39);
_root.armor9.gotoAndStop(40);
i = 1;
while (i <= 9) {
_root['armor' + i].harga = hargaArmor[_root['armor' + i]._currentframe] + ' Uring';
++i;
}
i = 10;
while (i <= 9) {
_root['armor' + i]._visible = false;
++i;
}
}
} else {
if (posisiKini == 14) {
_root.armor1.gotoAndStop(7);
_root.armor2.gotoAndStop(8);
_root.armor3.gotoAndStop(27);
_root.armor4.gotoAndStop(28);
i = 1;
while (i <= 9) {
_root['armor' + i].harga = hargaArmor[_root['armor' + i]._currentframe] + ' Uring';
++i;
}
i = 5;
while (i <= 9) {
_root['armor' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 19) {
_root.armor1.gotoAndStop(9);
_root.armor2.gotoAndStop(10);
_root.armor3.gotoAndStop(29);
_root.armor4.gotoAndStop(30);
i = 1;
while (i <= 9) {
_root['armor' + i].harga = hargaArmor[_root['armor' + i]._currentframe] + ' Uring';
++i;
}
i = 5;
while (i <= 9) {
_root['armor' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 26) {
_root.armor1.gotoAndStop(11);
_root.armor2.gotoAndStop(12);
_root.armor3.gotoAndStop(13);
_root.armor4.gotoAndStop(14);
_root.armor5.gotoAndStop(31);
_root.armor6.gotoAndStop(32);
_root.armor7.gotoAndStop(33);
_root.armor8.gotoAndStop(34);
_root.armor9.gotoAndStop(35);
i = 1;
while (i <= 9) {
_root['armor' + i].harga = hargaArmor[_root['armor' + i]._currentframe] + ' Uring';
++i;
}
i = 10;
while (i <= 9) {
_root['armor' + i]._visible = false;
++i;
}
}
}
}
}
}
}
kalkulasiStats('awal');
item_mc.gotoAndStop(1);
spell_mc.gotoAndStop(1);
weapon_mc.gotoAndStop(1);
armor_mc.gotoAndStop(2);
shield_mc.gotoAndStop(1);
finery_mc.gotoAndStop(1);
command_mc.gotoAndStop(1);
servant_mc.gotoAndStop(1);
item_mc.onRelease = function () {
backKlik();
gotoAndStop('item');
};
spell_mc.onRelease = function () {
backKlik();
gotoAndStop('spell');
};
weapon_mc.onRelease = function () {
backKlik();
gotoAndStop('weapon');
};
armor_mc.onRelease = function () {
backKlik();
gotoAndStop('armor');
};
shield_mc.onRelease = function () {
backKlik();
gotoAndStop('shield');
};
finery_mc.onRelease = function () {
backKlik();
gotoAndStop('finery');
};
command_mc.onRelease = function () {
backKlik();
gotoAndStop('command');
};
servant_mc.onRelease = function () {
backKlik();
gotoAndStop('servant');
};
}
movieClip 2259 {
frame 1 {
stop();
}
}
frame 384 {
function klikFinery() {
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = Number(myStr.substr(myStr.length - 1, 1));
} else {
indi = Number(myStr.substr(myStr.length - 2, 2));
}
xinfo = infoFinery[this._currentframe];
kiniFinery = this._currentframe;
ownKe = 'Stock: ' + _root['fineryPunya' + this._currentframe];
if (this.tandaList._visible == false) {
i = 1;
while (i <= 16) {
_root['finery' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
if (pilihanShop == 'buy') {
buy_btn._visible = true;
sell_btn._visible = false;
buy_btn.onRelease = function () {
if (_root['fineryPunya' + kiniFinery] < 100) {
if (uring >= hargaFinery[kiniFinery]) {
backMoney();
uring -= hargaFinery[kiniFinery];
++_root['fineryPunya' + kiniFinery];
ownKe = 'Stock: ' + _root['fineryPunya' + kiniFinery];
uringKe = uring + ' Uring';
}
}
};
} else {
if (pilihanShop == 'sell') {
buy_btn._visible = false;
sell_btn._visible = true;
sell_btn.onRelease = function () {
if (_root['fineryPunya' + kiniFinery] > 0) {
backMoney();
uring += hargaFinery[kiniFinery];
--_root['fineryPunya' + kiniFinery];
ownKe = 'Stock: ' + _root['fineryPunya' + kiniFinery];
uringKe = uring + ' Uring';
if (_root['fineryPunya' + kiniFinery] <= 0) {
if (_root['fineryPasang' + siapaPunya] == kiniFinery) {
_root['fineryPasang' + siapaPunya] = 0;
}
}
}
};
}
}
} else {
this.tandaList._visible = true;
if (pilihanShop == 'buy') {
if (uring >= hargaFinery[kiniFinery]) {
if (_root['fineryPunya' + kiniFinery] < 100) {
backMoney();
uring -= hargaFinery[kiniFinery];
++_root['fineryPunya' + kiniFinery];
ownKe = 'Stock: ' + _root['fineryPunya' + kiniFinery];
uringKe = uring + ' Uring';
}
}
} else {
if (pilihanShop == 'sell') {
if (_root['fineryPunya' + kiniFinery] > 0) {
backMoney();
uring += hargaFinery[kiniFinery];
--_root['fineryPunya' + kiniFinery];
ownKe = 'Stock: ' + _root['fineryPunya' + kiniFinery];
uringKe = uring + ' Uring';
if (_root['fineryPunya' + kiniFinery] <= 0) {
if (_root['fineryPasang' + siapaPunya] == kiniFinery) {
_root['fineryPasang' + siapaPunya] = 0;
}
}
}
}
}
}
}
stop();
buy_btn._visible = false;
sell_btn._visible = false;
hargaFinery = new Array('', 1000, 2000, 3000, 4000, 5000, 1000, 2000, 3000, 4000, 5000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 7500, 10000, 12500, 15000, 15000, 3500, 3500, 10000, 7500, 7500, 7500, 7500, 10000, 20000, 20000, 100000, 50000, 100000, 200000);
if (pilihanShop == 'buy') {
i = 1;
while (i <= 40) {
hargaFinery[i] = hargaFinery[i];
++i;
}
} else {
if (pilihanShop == 'sell') {
i = 1;
while (i <= 40) {
hargaFinery[i] = Math.ceil(hargaFinery[i] * 0.5);
++i;
}
}
}
xinfo = '';
ownKe = '';
usedFinery = '';
uringKe = uring + ' Uring';
i = 1;
while (i <= 16) {
_root['finery' + i].tandaList._visible = false;
_root['finery' + i].onRelease = klikFinery;
++i;
}
if (posisiKini == 7) {
_root.finery1.gotoAndStop(1);
_root.finery2.gotoAndStop(6);
_root.finery3.gotoAndStop(11);
_root.finery4.gotoAndStop(12);
_root.finery5.gotoAndStop(15);
_root.finery6.gotoAndStop(17);
_root.finery7.gotoAndStop(27);
_root.finery8.gotoAndStop(30);
i = 1;
while (i <= 16) {
_root['finery' + i].harga = hargaFinery[_root['finery' + i]._currentframe] + ' Uring';
++i;
}
i = 9;
while (i <= 16) {
_root['finery' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 11) {
_root.finery1.gotoAndStop(2);
_root.finery2.gotoAndStop(7);
_root.finery3.gotoAndStop(19);
_root.finery4.gotoAndStop(20);
_root.finery5.gotoAndStop(27);
i = 1;
while (i <= 16) {
_root['finery' + i].harga = hargaFinery[_root['finery' + i]._currentframe] + ' Uring';
++i;
}
i = 6;
while (i <= 16) {
_root['finery' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 21) {
_root.finery1.gotoAndStop(3);
_root.finery2.gotoAndStop(8);
_root.finery3.gotoAndStop(22);
_root.finery4.gotoAndStop(31);
_root.finery5.gotoAndStop(18);
_root.finery6.gotoAndStop(21);
i = 1;
while (i <= 16) {
_root['finery' + i].harga = hargaFinery[_root['finery' + i]._currentframe] + ' Uring';
++i;
}
i = 6;
while (i <= 16) {
_root['finery' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 19) {
_root.finery1.gotoAndStop(4);
_root.finery2.gotoAndStop(9);
_root.finery3.gotoAndStop(23);
_root.finery4.gotoAndStop(28);
_root.finery5.gotoAndStop(18);
i = 1;
while (i <= 16) {
_root['finery' + i].harga = hargaFinery[_root['finery' + i]._currentframe] + ' Uring';
++i;
}
i = 6;
while (i <= 16) {
_root['finery' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 26) {
_root.finery1.gotoAndStop(5);
_root.finery2.gotoAndStop(10);
_root.finery3.gotoAndStop(11);
_root.finery4.gotoAndStop(12);
_root.finery5.gotoAndStop(13);
_root.finery6.gotoAndStop(14);
_root.finery7.gotoAndStop(15);
_root.finery8.gotoAndStop(16);
_root.finery9.gotoAndStop(17);
_root.finery10.gotoAndStop(18);
_root.finery11.gotoAndStop(19);
_root.finery12.gotoAndStop(20);
_root.finery13.gotoAndStop(21);
_root.finery14.gotoAndStop(24);
_root.finery15.gotoAndStop(27);
_root.finery16.gotoAndStop(28);
i = 1;
while (i <= 16) {
_root['finery' + i].harga = hargaFinery[_root['finery' + i]._currentframe] + ' Uring';
++i;
}
i = 17;
while (i <= 16) {
_root['finery' + i]._visible = false;
++i;
}
} else {
if (posisiKini == 31) {
_root.finery1.gotoAndStop(25);
_root.finery2.gotoAndStop(26);
_root.finery3.gotoAndStop(38);
_root.finery4.gotoAndStop(33);
_root.finery5.gotoAndStop(36);
i = 1;
while (i <= 16) {
_root['finery' + i].harga = hargaFinery[_root['finery' + i]._currentframe] + ' Uring';
++i;
}
i = 6;
while (i <= 16) {
_root['finery' + i]._visible = false;
++i;
}
}
}
}
}
}
}
kalkulasiStats('awal');
item_mc.gotoAndStop(1);
spell_mc.gotoAndStop(1);
weapon_mc.gotoAndStop(1);
armor_mc.gotoAndStop(1);
shield_mc.gotoAndStop(1);
finery_mc.gotoAndStop(2);
command_mc.gotoAndStop(1);
servant_mc.gotoAndStop(1);
item_mc.onRelease = function () {
backKlik();
gotoAndStop('item');
};
spell_mc.onRelease = function () {
backKlik();
gotoAndStop('spell');
};
weapon_mc.onRelease = function () {
backKlik();
gotoAndStop('weapon');
};
armor_mc.onRelease = function () {
backKlik();
gotoAndStop('armor');
};
shield_mc.onRelease = function () {
backKlik();
gotoAndStop('shield');
};
finery_mc.onRelease = function () {
backKlik();
gotoAndStop('finery');
};
command_mc.onRelease = function () {
backKlik();
gotoAndStop('command');
};
servant_mc.onRelease = function () {
backKlik();
gotoAndStop('servant');
};
}
movieClip 2316 {
frame 1 {
stop();
}
}
frame 393 {
function klikItem() {
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = Number(myStr.substr(myStr.length - 1, 1));
} else {
indi = Number(myStr.substr(myStr.length - 2, 2));
}
if (this.tandaList._visible == false) {
i = 1;
while (i <= 16) {
_root['item' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
kiniItem = this._currentframe;
xinfo = infoItem[this._currentframe];
ownKe = 'Stock: ' + _root['itemPunya' + this._currentframe];
if (pilihanShop == 'buy') {
buy_btn._visible = true;
sell_btn._visible = false;
buy_btn.onRelease = function () {
backKlik();
if (uring >= hargaItem[kiniItem]) {
if (_root['itemPunya' + kiniItem] < 100) {
backMoney();
uring -= hargaItem[kiniItem];
++_root['itemPunya' + kiniItem];
ownKe = 'Stock: ' + _root['itemPunya' + kiniItem];
uringKe = uring + ' Uring';
}
}
};
} else {
if (pilihanShop == 'sell') {
buy_btn._visible = false;
sell_btn._visible = true;
sell_btn.onRelease = function () {
backKlik();
if (_root['itemPunya' + kiniItem] > 0) {
backMoney();
uring += hargaItem[kiniItem];
--_root['itemPunya' + kiniItem];
ownKe = 'Stock: ' + _root['itemPunya' + kiniItem];
uringKe = uring + ' Uring';
}
};
}
}
} else {
this.tandaList._visible = true;
kiniItem = this._currentframe;
xinfo = infoItem[this._currentframe];
ownKe = 'Stock: ' + _root['itemPunya' + this._currentframe];
if (pilihanShop == 'buy') {
if (uring >= hargaItem[kiniItem]) {
if (_root['itemPunya' + kiniItem] < 100) {
backMoney();
uring -= hargaItem[kiniItem];
++_root['itemPunya' + kiniItem];
ownKe = 'Stock: ' + _root['itemPunya' + kiniItem];
uringKe = uring + ' Uring';
}
}
} else {
if (pilihanShop == 'sell') {
if (_root['itemPunya' + kiniItem] > 0) {
backMoney();
uring += hargaItem[kiniItem];
--_root['itemPunya' + kiniItem];
ownKe = 'Stock: ' + _root['itemPunya' + kiniItem];
uringKe = uring + ' Uring';
}
}
}
}
}
function klikItem2() {
myStr = new String(this);
if (isNaN(myStr.substr(myStr.length - 2, 2))) {
indi = Number(myStr.substr(myStr.length - 1, 1));
} else {
indi = Number(myStr.substr(myStr.length - 2, 2));
}
if (this.tandaList._visible == false) {
i = 1;
while (i <= 16) {
_root['item' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
kiniItem = this._currentframe;
xinfo = infoCommand[this._currentframe];
ownKe = 'Stock: ' + _root['punyaCommand' + this._currentframe];
if (pilihanShop == 'buy') {
buy_btn._visible = true;
sell_btn._visible = false;
buy_btn.onRelease = function () {
if (uring >= hargaItem2[kiniItem]) {
if (_root['punyaCommand' + kiniItem] < 100) {
backMoney();
uring -= hargaItem2[kiniItem];
++_root['punyaCommand' + kiniItem];
ownKe = 'Stock: ' + _root['punyaCommand' + kiniItem];
uringKe = uring + ' Uring';
}
}
};
} else {
if (pilihanShop == 'sell') {
buy_btn._visible = false;
sell_btn._visible = true;
sell_btn.onRelease = function () {
if (_root['punyaCommand' + kiniItem] > 0) {
backMoney();
uring += hargaItem2[kiniItem];
--_root['punyaCommand' + kiniItem];
ownKe = 'Stock: ' + _root['punyaCommand' + kiniItem];
uringKe = uring + ' Uring';
}
};
}
}
} else {
this.tandaList._visible = true;
kiniItem = this._currentframe;
xinfo = infoCommand[this._currentframe];
ownKe = 'Stock: ' + _root['punyaCommand' + this._currentframe];
if (pilihanShop == 'buy') {
if (uring >= hargaItem2[kiniItem]) {
if (_root['punyaCommand' + kiniItem] < 100) {
backMoney();
uring -= hargaItem2[kiniItem];
++_root['punyaCommand' + kiniItem];
ownKe = 'Stock: ' + _root['punyaCommand' + kiniItem];
uringKe = uring + ' Uring';
}
}
} else {
if (pilihanShop == 'sell') {
if (_root['itemPunya' + kiniItem] > 0) {
backMoney();
uring += hargaItem2[kiniItem];
--_root['punyaCommand' + kiniItem];
ownKe = 'Stock: ' + _root['punyaCommand' + kiniItem];
uringKe = uring + ' Uring';
}
}
}
}
}
stop();
buy_btn._visible = false;
sell_btn._visible = false;
infoCommand = new Array('', '(Command) Strike with physical attack', '(Command) Onslaught that more dangerous than regular attack', '(Command) Use MP to deal magical attack', '(Command) Use consumable items on the stock', '(Command) Call servant to help the party', '(Command) Increase temporary defense and magic defense to all allies', '(Command) Steal items from one enemy', '(Command) Learn spells from one enemy', '(Command) Activate trance mode, increase temporary key atrributes', '(Command) Strike with physical attack while cast top magic at once', '(Command) Escape from battles, except bosses and particular enemies', '(Command) Use certain tools to attack enemy', '(Command) Steal items from one enemy while attacking them', '(Command) Pray to restore some HP to all ally', '(Command) Throw Uring to one enemy', '(Command) Copy any last action from ally');
hargaItem = new Array('', 50, 500, 5000, 50, 500, 5000, 250, 150, 100, 200, 500, 1000, 1500, 2000, 2500, 500, 1000, 1500, 2000, 2500, 800, 1600, 3200, 10000, 15000, 20000, 25000, 30000, 50000, 50000, 50000, 50000, 25, 25, 5000, 100, 5000, 5000, 20000, 20000, 50000, 50000, 75000, 2000, 2000, 3000, 3000, 4000, 5000, 7500, 3000, 3000, 3000, 3000, 3000, 7500, 4000, 5000, 50000, 50000, 50000, 50000, 50000, 50000, 50000, 50000, 50000, 2000000, 2000000, 2000000, 10000, 1000, 100, 10, 20000, 100000, 100000, 100000, 100000, 100000, 100000);
hargaItem2 = new Array('', 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000);
if (pilihanShop == 'buy') {
i = 1;
while (i <= 80) {
hargaItem[i] = hargaItem[i];
hargaItem2[i] = hargaItem2[i];
++i;
}
} else {
if (pilihanShop == 'sell') {
i = 1;
while (i <= 80) {
hargaItem[i] = Math.ceil(hargaItem[i] * 0.5);
hargaItem2[i] = Math.ceil(hargaItem2[i] * 0.5);
++i;
}
}
}
xinfo = '';
ownKe = '';
uringKe = uring + ' Uring';
i = 1;
while (i <= 6) {
_root['item' + i]._visible = true;
_root['item' + i].tandaList._visible = false;
_root['item' + i].onRelease = klikItem;
++i;
}
i = 7;
while (i <= 16) {
_root['item' + i]._visible = true;
_root['item' + i].tandaList._visible = false;
_root['item' + i].onRelease = klikItem2;
++i;
}
if (posisiKini == 38) {
_root.item1.gotoAndStop(76);
_root.item2.gotoAndStop(77);
_root.item3.gotoAndStop(78);
_root.item4.gotoAndStop(79);
_root.item5.gotoAndStop(80);
_root.item6.gotoAndStop(81);
_root.item7.gotoAndStop(3);
_root.item8.gotoAndStop(4);
_root.item9.gotoAndStop(5);
_root.item10.gotoAndStop(6);
_root.item11.gotoAndStop(7);
_root.item12.gotoAndStop(8);
_root.item13.gotoAndStop(9);
_root.item14.gotoAndStop(10);
_root.item15.gotoAndStop(11);
_root.item16.gotoAndStop(12);
i = 1;
while (i <= 6) {
_root['item' + i].harga = hargaItem[_root['item' + i]._currentframe] + ' Uring';
++i;
}
i = 7;
while (i <= 16) {
_root['item' + i].harga = hargaItem2[_root['item' + i]._currentframe] + ' Uring';
++i;
}
}
item_mc.gotoAndStop(2);
spell_mc.gotoAndStop(1);
weapon_mc.gotoAndStop(1);
armor_mc.gotoAndStop(1);
shield_mc.gotoAndStop(1);
finery_mc.gotoAndStop(1);
command_mc.gotoAndStop(1);
servant_mc.gotoAndStop(1);
item_mc.onRelease = function () {
backKlik();
gotoAndStop('item');
};
spell_mc.onRelease = function () {
backKlik();
gotoAndStop('spell');
};
weapon_mc.onRelease = function () {
backKlik();
gotoAndStop('weapon');
};
armor_mc.onRelease = function () {
backKlik();
gotoAndStop('armor');
};
shield_mc.onRelease = function () {
backKlik();
gotoAndStop('shield');
};
finery_mc.onRelease = function () {
backKlik();
gotoAndStop('finery');
};
command_mc.onRelease = function () {
backKlik();
gotoAndStop('command');
};
servant_mc.onRelease = function () {
backKlik();
gotoAndStop('servant');
};
}
movieClip 2339 {
frame 1 {
stop();
}
}
frame 399 {
_root.namaMusuh1 = 'Gandaria Soldier';
_root.levelMusuh1 = 5;
_root.jobMusuh1 = 'Army';
_root.kiniHPMusuh1 = 800;
_root.HPMusuh1 = 800;
_root.kiniMPMusuh1 = 75;
_root.MPMusuh1 = 75;
_root.strengthMusuh1 = 14;
_root.vitalityMusuh1 = 14;
_root.speedMusuh1 = 15;
_root.tranceSpeedMusuh1 = 0;
_root.attackMusuh1 = 15;
_root.magicAttackMusuh1 = 5;
_root.defenseMusuh1 = 16;
_root.magicDefenseMusuh1 = 1;
_root.evadeMusuh1 = 3;
_root.accuracyMusuh1 = 3;
_root.luckMusuh1 = 4;
_root.itemSteal1 = 4;
_root.bisaLearn1 = 0;
_root.fireEffect1 = 0;
_root.iceEffect1 = 0;
_root.windEffect1 = 0;
_root.thunderEffect1 = 0;
_root.earthEffect1 = 0;
_root.evilEffect1 = 0;
_root.holyEffect1 = 0;
_root.poisonEffect1 = 0;
_root.angelEffect1 = 0;
_root.confuseEffect1 = 0;
_root.slowEffect1 = 0;
_root.fastEffect1 = 0;
_root.berserkEffect1 = 0;
_root.freezeEffect1 = 0;
_root.deathEffect1 = 0;
_root.miniEffect1 = 0;
_root.silenceEffect1 = 0;
_root.curseEffect1 = 0;
_root.undeadEffect1 = 0;
_root.namaMusuh2 = 'Gandaria General';
_root.levelMusuh2 = 7;
_root.jobMusuh2 = 'Army';
_root.kiniHPMusuh2 = 2400;
_root.HPMusuh2 = 2400;
_root.kiniMPMusuh2 = 200;
_root.MPMusuh2 = 200;
_root.strengthMusuh2 = 28;
_root.vitalityMusuh2 = 21;
_root.speedMusuh2 = 8;
_root.tranceSpeedMusuh2 = 0;
_root.attackMusuh2 = 31;
_root.magicAttackMusuh2 = 10;
_root.defenseMusuh2 = 23;
_root.magicDefenseMusuh2 = 7;
_root.evadeMusuh2 = 3;
_root.accuracyMusuh2 = 8;
_root.luckMusuh2 = 6;
_root.itemSteal2 = 29;
_root.bisaLearn2 = 0;
_root.fireEffect2 = 0;
_root.iceEffect2 = 0;
_root.windEffect2 = 0;
_root.thunderEffect2 = 0;
_root.earthEffect2 = 0;
_root.evilEffect2 = 0;
_root.holyEffect2 = 0;
_root.poisonEffect2 = 0;
_root.angelEffect2 = 0;
_root.confuseEffect2 = 0;
_root.slowEffect2 = 0;
_root.fastEffect2 = 0;
_root.berserkEffect2 = 0;
_root.freezeEffect2 = 0;
_root.deathEffect2 = 0;
_root.miniEffect2 = 0;
_root.silenceEffect2 = 0;
_root.curseEffect2 = 0;
_root.undeadEffect2 = 0;
_root.namaMusuh3 = 'Gandaria Rebel';
_root.levelMusuh3 = 10;
_root.jobMusuh3 = 'Army';
_root.kiniHPMusuh3 = 1400;
_root.HPMusuh3 = 1400;
_root.kiniMPMusuh3 = 150;
_root.MPMusuh3 = 150;
_root.strengthMusuh3 = 16;
_root.vitalityMusuh3 = 14;
_root.speedMusuh3 = 9;
_root.tranceSpeedMusuh3 = 0;
_root.attackMusuh3 = 16;
_root.magicAttackMusuh3 = 12;
_root.defenseMusuh3 = 17;
_root.magicDefenseMusuh3 = 4;
_root.evadeMusuh3 = 3;
_root.accuracyMusuh3 = 3;
_root.luckMusuh3 = 3;
_root.itemSteal3 = 21;
_root.bisaLearn3 = 11;
_root.fireEffect3 = 0;
_root.iceEffect3 = 0;
_root.windEffect3 = 0;
_root.thunderEffect3 = 0;
_root.earthEffect3 = 0;
_root.evilEffect3 = 0;
_root.holyEffect3 = 0;
_root.poisonEffect3 = 0;
_root.angelEffect3 = 0;
_root.confuseEffect3 = 0;
_root.slowEffect3 = 0;
_root.fastEffect3 = 0;
_root.berserkEffect3 = 0;
_root.freezeEffect3 = 0;
_root.deathEffect3 = 0;
_root.miniEffect3 = 0;
_root.silenceEffect3 = 0;
_root.curseEffect3 = 0;
_root.undeadEffect3 = 0;
_root.namaMusuh4 = 'Gandaria Guard';
_root.levelMusuh4 = 11;
_root.jobMusuh4 = 'Army';
_root.kiniHPMusuh4 = 1300;
_root.HPMusuh4 = 1300;
_root.kiniMPMusuh4 = 200;
_root.MPMusuh4 = 200;
_root.strengthMusuh4 = 20;
_root.vitalityMusuh4 = 20;
_root.speedMusuh4 = 10;
_root.tranceSpeedMusuh4 = 0;
_root.attackMusuh4 = 23;
_root.magicAttackMusuh4 = 20;
_root.defenseMusuh4 = 15;
_root.magicDefenseMusuh4 = 15;
_root.evadeMusuh4 = 10;
_root.accuracyMusuh4 = 10;
_root.luckMusuh4 = 10;
_root.itemSteal4 = 11;
_root.bisaLearn4 = 19;
_root.fireEffect4 = 1;
_root.iceEffect4 = 0;
_root.windEffect4 = 0;
_root.thunderEffect4 = 1;
_root.earthEffect4 = 0;
_root.evilEffect4 = 0;
_root.holyEffect4 = 0;
_root.poisonEffect4 = 0;
_root.angelEffect4 = 0;
_root.confuseEffect4 = 0;
_root.slowEffect4 = 0;
_root.fastEffect4 = 0;
_root.berserkEffect4 = 0;
_root.freezeEffect4 = 0;
_root.deathEffect4 = 0;
_root.miniEffect4 = 0;
_root.silenceEffect4 = 0;
_root.curseEffect4 = 0;
_root.undeadEffect4 = 0;
_root.namaMusuh5 = 'Gandaria Shooter';
_root.levelMusuh5 = 12;
_root.jobMusuh5 = 'Army';
_root.kiniHPMusuh5 = 2700;
_root.HPMusuh5 = 2700;
_root.kiniMPMusuh5 = 250;
_root.MPMusuh5 = 250;
_root.strengthMusuh5 = 26;
_root.vitalityMusuh5 = 28;
_root.speedMusuh5 = 11;
_root.tranceSpeedMusuh5 = 0;
_root.attackMusuh5 = 27;
_root.magicAttackMusuh5 = 25;
_root.defenseMusuh5 = 25;
_root.magicDefenseMusuh5 = 15;
_root.evadeMusuh5 = 12;
_root.accuracyMusuh5 = 30;
_root.luckMusuh5 = 12;
_root.itemSteal5 = 61;
_root.bisaLearn5 = 21;
_root.fireEffect5 = 0;
_root.iceEffect5 = 1;
_root.windEffect5 = 1;
_root.thunderEffect5 = 0;
_root.earthEffect5 = 0;
_root.evilEffect5 = 0;
_root.holyEffect5 = 0;
_root.poisonEffect5 = 0;
_root.angelEffect5 = 0;
_root.confuseEffect5 = 0;
_root.slowEffect5 = 0;
_root.fastEffect5 = 0;
_root.berserkEffect5 = 0;
_root.freezeEffect5 = 0;
_root.deathEffect5 = 0;
_root.miniEffect5 = 0;
_root.silenceEffect5 = 0;
_root.curseEffect5 = 0;
_root.undeadEffect5 = 0;
_root.namaMusuh6 = 'Gandaria Elite';
_root.levelMusuh6 = 13;
_root.jobMusuh6 = 'King';
_root.kiniHPMusuh6 = 3000;
_root.HPMusuh6 = 3000;
_root.kiniMPMusuh6 = 350;
_root.MPMusuh6 = 350;
_root.strengthMusuh6 = 29;
_root.vitalityMusuh6 = 30;
_root.speedMusuh6 = 12;
_root.tranceSpeedMusuh6 = 0;
_root.attackMusuh6 = 30;
_root.magicAttackMusuh6 = 30;
_root.defenseMusuh6 = 32;
_root.magicDefenseMusuh6 = 20;
_root.evadeMusuh6 = 15;
_root.accuracyMusuh6 = 40;
_root.luckMusuh6 = 12;
_root.itemSteal6 = 35;
_root.bisaLearn6 = 26;
_root.fireEffect6 = 1;
_root.iceEffect6 = 1;
_root.windEffect6 = 1;
_root.thunderEffect6 = 0;
_root.earthEffect6 = 0;
_root.evilEffect6 = 0;
_root.holyEffect6 = 0;
_root.poisonEffect6 = 0;
_root.angelEffect6 = 0;
_root.confuseEffect6 = 0;
_root.slowEffect6 = 0;
_root.fastEffect6 = 0;
_root.berserkEffect6 = 0;
_root.freezeEffect6 = 0;
_root.deathEffect6 = 0;
_root.miniEffect6 = 0;
_root.silenceEffect6 = 0;
_root.curseEffect6 = 0;
_root.undeadEffect6 = 0;
_root.namaMusuh7 = '???????';
_root.levelMusuh7 = 10;
_root.jobMusuh7 = '????';
_root.kiniHPMusuh7 = 1500;
_root.HPMusuh7 = 1500;
_root.kiniMPMusuh7 = 340;
_root.MPMusuh7 = 340;
_root.strengthMusuh7 = 28;
_root.vitalityMusuh7 = 35;
_root.speedMusuh7 = 4;
_root.tranceSpeedMusuh7 = 0;
_root.attackMusuh7 = 29;
_root.magicAttackMusuh7 = 25;
_root.defenseMusuh7 = 36;
_root.magicDefenseMusuh7 = 28;
_root.evadeMusuh7 = 20;
_root.accuracyMusuh7 = 25;
_root.luckMusuh7 = 20;
_root.itemSteal7 = 37;
_root.bisaLearn7 = 0;
_root.fireEffect7 = 0;
_root.iceEffect7 = 0;
_root.windEffect7 = 0;
_root.thunderEffect7 = 0;
_root.earthEffect7 = 0;
_root.evilEffect7 = 0;
_root.holyEffect7 = 0;
_root.poisonEffect7 = 0;
_root.angelEffect7 = 0;
_root.confuseEffect7 = 0;
_root.slowEffect7 = 0;
_root.fastEffect7 = 0;
_root.berserkEffect7 = 0;
_root.freezeEffect7 = 0;
_root.deathEffect7 = 0;
_root.miniEffect7 = 0;
_root.silenceEffect7 = 0;
_root.curseEffect7 = 0;
_root.undeadEffect7 = 0;
_root.namaMusuh8 = 'Skeleton';
_root.levelMusuh8 = 15;
_root.jobMusuh8 = 'Undead';
_root.kiniHPMusuh8 = 1750;
_root.HPMusuh8 = 1750;
_root.kiniMPMusuh8 = 300;
_root.MPMusuh8 = 300;
_root.strengthMusuh8 = 40;
_root.vitalityMusuh8 = 40;
_root.speedMusuh8 = 4;
_root.tranceSpeedMusuh8 = 0;
_root.attackMusuh8 = 39;
_root.magicAttackMusuh8 = 15;
_root.defenseMusuh8 = 39;
_root.magicDefenseMusuh8 = 39;
_root.evadeMusuh8 = 5;
_root.accuracyMusuh8 = 40;
_root.luckMusuh8 = 5;
_root.itemSteal8 = 49;
_root.bisaLearn8 = 20;
_root.fireEffect8 = 0;
_root.iceEffect8 = 0;
_root.windEffect8 = 0;
_root.thunderEffect8 = 0;
_root.earthEffect8 = 0;
_root.evilEffect8 = 2;
_root.holyEffect8 = 0;
_root.poisonEffect8 = 0;
_root.angelEffect8 = 0;
_root.confuseEffect8 = 0;
_root.slowEffect8 = 0;
_root.fastEffect8 = 0;
_root.berserkEffect8 = 0;
_root.freezeEffect8 = 0;
_root.deathEffect8 = 0;
_root.miniEffect8 = 0;
_root.silenceEffect8 = 0;
_root.curseEffect8 = 0;
_root.undeadEffect8 = 1;
_root.undead8 = true;
_root.namaMusuh9 = 'Gargantuan';
_root.levelMusuh9 = 17;
_root.jobMusuh9 = 'Yeti';
_root.kiniHPMusuh9 = 2500;
_root.HPMusuh9 = 2500;
_root.kiniMPMusuh9 = 250;
_root.MPMusuh9 = 250;
_root.strengthMusuh9 = 42;
_root.vitalityMusuh9 = 43;
_root.speedMusuh9 = 4;
_root.tranceSpeedMusuh9 = 0;
_root.attackMusuh9 = 41;
_root.magicAttackMusuh9 = 30;
_root.defenseMusuh9 = 41;
_root.magicDefenseMusuh9 = 41;
_root.evadeMusuh9 = 5;
_root.accuracyMusuh9 = 50;
_root.luckMusuh9 = 5;
_root.itemSteal9 = 59;
_root.bisaLearn9 = 23;
_root.fireEffect9 = 0;
_root.iceEffect9 = 0;
_root.windEffect9 = 0;
_root.thunderEffect9 = 0;
_root.earthEffect9 = 0;
_root.evilEffect9 = 0;
_root.holyEffect9 = 0;
_root.poisonEffect9 = 0;
_root.angelEffect9 = 0;
_root.confuseEffect9 = 0;
_root.slowEffect9 = 0;
_root.fastEffect9 = 0;
_root.berserkEffect9 = 0;
_root.freezeEffect9 = 0;
_root.deathEffect9 = 0;
_root.miniEffect9 = 0;
_root.silenceEffect9 = 0;
_root.curseEffect9 = 0;
_root.undeadEffect9 = 0;
_root.namaMusuh10 = 'Hedgebrog';
_root.levelMusuh10 = 18;
_root.jobMusuh10 = 'Servant';
_root.kiniHPMusuh10 = 3000;
_root.HPMusuh10 = 3000;
_root.kiniMPMusuh10 = 350;
_root.MPMusuh10 = 350;
_root.strengthMusuh10 = 43;
_root.vitalityMusuh10 = 42;
_root.speedMusuh10 = 15;
_root.tranceSpeedMusuh10 = 0;
_root.attackMusuh10 = 43;
_root.magicAttackMusuh10 = 40;
_root.defenseMusuh10 = 43;
_root.magicDefenseMusuh10 = 42;
_root.evadeMusuh10 = 40;
_root.accuracyMusuh10 = 40;
_root.luckMusuh10 = 30;
_root.itemSteal10 = 77;
_root.bisaLearn10 = 22;
_root.fireEffect10 = 1;
_root.iceEffect10 = 1;
_root.windEffect10 = 1;
_root.thunderEffect10 = 1;
_root.earthEffect10 = 0;
_root.evilEffect10 = 0;
_root.holyEffect10 = 0;
_root.poisonEffect10 = 1;
_root.angelEffect10 = 1;
_root.confuseEffect10 = 1;
_root.slowEffect10 = 1;
_root.fastEffect10 = 1;
_root.berserkEffect10 = 1;
_root.freezeEffect10 = 1;
_root.deathEffect10 = 1;
_root.miniEffect10 = 1;
_root.silenceEffect10 = 1;
_root.curseEffect10 = 1;
_root.undeadEffect10 = 0;
_root.namaMusuh11 = 'Ninjabro';
_root.levelMusuh11 = 15;
_root.jobMusuh11 = 'Ninja Robot';
_root.kiniHPMusuh11 = 2500;
_root.HPMusuh11 = 2500;
_root.kiniMPMusuh11 = 450;
_root.MPMusuh11 = 450;
_root.strengthMusuh11 = 51;
_root.vitalityMusuh11 = 52;
_root.speedMusuh11 = 25;
_root.tranceSpeedMusuh11 = 0;
_root.attackMusuh11 = 51;
_root.magicAttackMusuh11 = 45;
_root.defenseMusuh11 = 52;
_root.magicDefenseMusuh11 = 55;
_root.evadeMusuh11 = 50;
_root.accuracyMusuh11 = 50;
_root.luckMusuh11 = 40;
_root.itemSteal11 = 35;
_root.bisaLearn11 = 17;
_root.fireEffect11 = 1;
_root.iceEffect11 = 1;
_root.windEffect11 = 1;
_root.thunderEffect11 = 0;
_root.earthEffect11 = 1;
_root.evilEffect11 = 0;
_root.holyEffect11 = 0;
_root.poisonEffect11 = 1;
_root.angelEffect11 = 1;
_root.confuseEffect11 = 1;
_root.slowEffect11 = 0;
_root.fastEffect11 = 0;
_root.berserkEffect11 = 0;
_root.freezeEffect11 = 0;
_root.deathEffect11 = 0;
_root.miniEffect11 = 0;
_root.silenceEffect11 = 0;
_root.curseEffect11 = 0;
_root.undeadEffect11 = 0;
_root.namaMusuh12 = 'Grande Machine';
_root.levelMusuh12 = 25;
_root.jobMusuh12 = 'Robot';
_root.kiniHPMusuh12 = 2000;
_root.HPMusuh12 = 2000;
_root.kiniMPMusuh12 = 150;
_root.MPMusuh12 = 150;
_root.strengthMusuh12 = 50;
_root.vitalityMusuh12 = 50;
_root.speedMusuh12 = 5;
_root.tranceSpeedMusuh12 = 0;
_root.attackMusuh12 = 50;
_root.magicAttackMusuh12 = 40;
_root.defenseMusuh12 = 50;
_root.magicDefenseMusuh12 = 50;
_root.evadeMusuh12 = 35;
_root.accuracyMusuh12 = 40;
_root.luckMusuh12 = 40;
_root.itemSteal12 = 30;
_root.bisaLearn12 = 21;
_root.fireEffect12 = 1;
_root.iceEffect12 = 1;
_root.windEffect12 = 1;
_root.thunderEffect12 = 0;
_root.earthEffect12 = 1;
_root.evilEffect12 = 0;
_root.holyEffect12 = 0;
_root.poisonEffect12 = 0;
_root.angelEffect12 = 0;
_root.confuseEffect12 = 0;
_root.slowEffect12 = 0;
_root.fastEffect12 = 0;
_root.berserkEffect12 = 0;
_root.freezeEffect12 = 0;
_root.deathEffect12 = 0;
_root.miniEffect12 = 0;
_root.silenceEffect12 = 0;
_root.curseEffect12 = 0;
_root.undeadEffect12 = 0;
_root.namaMusuh13 = 'Grande Samurai';
_root.levelMusuh13 = 27;
_root.jobMusuh13 = 'Robot';
_root.kiniHPMusuh13 = 2500;
_root.HPMusuh13 = 2500;
_root.kiniMPMusuh13 = 250;
_root.MPMusuh13 = 250;
_root.strengthMusuh13 = 55;
_root.vitalityMusuh13 = 45;
_root.speedMusuh13 = 10;
_root.tranceSpeedMusuh13 = 0;
_root.attackMusuh13 = 54;
_root.magicAttackMusuh13 = 37;
_root.defenseMusuh13 = 44;
_root.magicDefenseMusuh13 = 54;
_root.evadeMusuh13 = 75;
_root.accuracyMusuh13 = 43;
_root.luckMusuh13 = 45;
_root.itemSteal13 = 76;
_root.bisaLearn13 = 12;
_root.fireEffect13 = 1;
_root.iceEffect13 = 1;
_root.windEffect13 = 1;
_root.thunderEffect13 = 0;
_root.earthEffect13 = 1;
_root.evilEffect13 = 0;
_root.holyEffect13 = 0;
_root.poisonEffect13 = 1;
_root.angelEffect13 = 1;
_root.confuseEffect13 = 1;
_root.slowEffect13 = 1;
_root.fastEffect13 = 1;
_root.berserkEffect13 = 1;
_root.freezeEffect13 = 1;
_root.deathEffect13 = 1;
_root.miniEffect13 = 1;
_root.silenceEffect13 = 1;
_root.curseEffect13 = 1;
_root.undeadEffect13 = 0;
_root.namaMusuh14 = 'Grande Thief';
_root.levelMusuh14 = 30;
_root.jobMusuh14 = 'Robot';
_root.kiniHPMusuh14 = 2500;
_root.HPMusuh14 = 2500;
_root.kiniMPMusuh14 = 200;
_root.MPMusuh14 = 200;
_root.strengthMusuh14 = 43;
_root.vitalityMusuh14 = 43;
_root.speedMusuh14 = 20;
_root.tranceSpeedMusuh14 = 0;
_root.attackMusuh14 = 40;
_root.magicAttackMusuh14 = 32;
_root.defenseMusuh14 = 40;
_root.magicDefenseMusuh14 = 40;
_root.evadeMusuh14 = 45;
_root.accuracyMusuh14 = 50;
_root.luckMusuh14 = 50;
_root.itemSteal14 = 72;
_root.bisaLearn14 = 2;
_root.fireEffect14 = 1;
_root.iceEffect14 = 1;
_root.windEffect14 = 1;
_root.thunderEffect14 = 0;
_root.earthEffect14 = 1;
_root.evilEffect14 = 0;
_root.holyEffect14 = 0;
_root.poisonEffect14 = 1;
_root.angelEffect14 = 1;
_root.confuseEffect14 = 1;
_root.slowEffect14 = 0;
_root.fastEffect14 = 0;
_root.berserkEffect14 = 0;
_root.freezeEffect14 = 0;
_root.deathEffect14 = 0;
_root.miniEffect14 = 0;
_root.silenceEffect14 = 0;
_root.curseEffect14 = 0;
_root.undeadEffect14 = 0;
_root.namaMusuh15 = 'Mudness';
_root.levelMusuh15 = 15;
_root.jobMusuh15 = 'Mud Keeper';
_root.kiniHPMusuh15 = 10000;
_root.HPMusuh15 = 10000;
_root.kiniMPMusuh15 = 50;
_root.MPMusuh15 = 50;
_root.strengthMusuh15 = 20;
_root.vitalityMusuh15 = 40;
_root.speedMusuh15 = 25;
_root.tranceSpeedMusuh15 = 0;
_root.attackMusuh15 = 20;
_root.magicAttackMusuh15 = 20;
_root.defenseMusuh15 = 40;
_root.magicDefenseMusuh15 = 40;
_root.evadeMusuh15 = 30;
_root.accuracyMusuh15 = 75;
_root.luckMusuh15 = 5;
_root.itemSteal15 = 50;
_root.bisaLearn15 = 31;
_root.fireEffect15 = 0;
_root.iceEffect15 = 2;
_root.windEffect15 = 2;
_root.thunderEffect15 = 2;
_root.earthEffect15 = 2;
_root.evilEffect15 = 2;
_root.holyEffect15 = 0;
_root.poisonEffect15 = 1;
_root.angelEffect15 = 1;
_root.confuseEffect15 = 1;
_root.slowEffect15 = 1;
_root.fastEffect15 = 1;
_root.berserkEffect15 = 1;
_root.freezeEffect15 = 1;
_root.deathEffect15 = 0;
_root.miniEffect15 = 1;
_root.silenceEffect15 = 1;
_root.curseEffect15 = 1;
_root.undeadEffect15 = 0;
_root.namaMusuh16 = 'Red Dragon';
_root.levelMusuh16 = 40;
_root.jobMusuh16 = 'Evil';
_root.kiniHPMusuh16 = 2000 + random(1000);
_root.HPMusuh16 = 2000 + random(1000);
_root.kiniMPMusuh16 = 1600;
_root.MPMusuh16 = 1600;
_root.strengthMusuh16 = 40;
_root.vitalityMusuh16 = 40;
_root.speedMusuh16 = 10;
_root.tranceSpeedMusuh16 = 0;
_root.attackMusuh16 = 40;
_root.magicAttackMusuh16 = 40;
_root.defenseMusuh16 = 40;
_root.magicDefenseMusuh16 = 40;
_root.evadeMusuh16 = 50;
_root.accuracyMusuh16 = 50;
_root.luckMusuh16 = 5;
_root.itemSteal16 = 63;
_root.bisaLearn16 = 16;
_root.fireEffect16 = 2;
_root.iceEffect16 = 0;
_root.windEffect16 = 2;
_root.thunderEffect16 = 2;
_root.earthEffect16 = 2;
_root.evilEffect16 = 2;
_root.holyEffect16 = 2;
_root.poisonEffect16 = 1;
_root.angelEffect16 = 1;
_root.confuseEffect16 = 1;
_root.slowEffect16 = 1;
_root.fastEffect16 = 1;
_root.berserkEffect16 = 1;
_root.freezeEffect16 = 1;
_root.deathEffect16 = 0;
_root.miniEffect16 = 1;
_root.silenceEffect16 = 1;
_root.curseEffect16 = 1;
_root.undeadEffect16 = 0;
_root.namaMusuh17 = 'Magic Tank';
_root.levelMusuh17 = 65;
_root.jobMusuh17 = 'Servant';
_root.kiniHPMusuh17 = 10000;
_root.HPMusuh17 = 10000;
_root.kiniMPMusuh17 = 3000;
_root.MPMusuh17 = 3000;
_root.strengthMusuh17 = 75;
_root.vitalityMusuh17 = 75;
_root.speedMusuh17 = 20;
_root.tranceSpeedMusuh17 = 0;
_root.attackMusuh17 = 75;
_root.magicAttackMusuh17 = 75;
_root.defenseMusuh17 = 75;
_root.magicDefenseMusuh17 = 75;
_root.evadeMusuh17 = 55;
_root.accuracyMusuh17 = 55;
_root.luckMusuh17 = 25;
_root.itemSteal17 = 43;
_root.bisaLearn17 = 29;
_root.fireEffect17 = 2;
_root.iceEffect17 = 2;
_root.windEffect17 = 2;
_root.thunderEffect17 = 2;
_root.earthEffect17 = 2;
_root.evilEffect17 = 2;
_root.holyEffect17 = 2;
_root.poisonEffect17 = 1;
_root.angelEffect17 = 1;
_root.confuseEffect17 = 1;
_root.slowEffect17 = 1;
_root.fastEffect17 = 1;
_root.berserkEffect17 = 1;
_root.freezeEffect17 = 1;
_root.deathEffect17 = 1;
_root.miniEffect17 = 1;
_root.silenceEffect17 = 1;
_root.curseEffect17 = 1;
_root.undeadEffect17 = 0;
_root.namaMusuh18 = 'Magic Copter';
_root.levelMusuh18 = 65;
_root.jobMusuh18 = 'Servant';
_root.kiniHPMusuh18 = 10000;
_root.HPMusuh18 = 10000;
_root.kiniMPMusuh18 = 3000;
_root.MPMusuh18 = 3000;
_root.strengthMusuh18 = 75;
_root.vitalityMusuh18 = 75;
_root.speedMusuh18 = 20;
_root.tranceSpeedMusuh18 = 0;
_root.attackMusuh18 = 75;
_root.magicAttackMusuh18 = 75;
_root.defenseMusuh18 = 75;
_root.magicDefenseMusuh18 = 75;
_root.evadeMusuh18 = 55;
_root.accuracyMusuh18 = 55;
_root.luckMusuh18 = 25;
_root.itemSteal18 = 43;
_root.bisaLearn18 = 30;
_root.fireEffect18 = 2;
_root.iceEffect18 = 2;
_root.windEffect18 = 2;
_root.thunderEffect18 = 2;
_root.earthEffect18 = 2;
_root.evilEffect18 = 2;
_root.holyEffect18 = 2;
_root.poisonEffect18 = 1;
_root.angelEffect18 = 1;
_root.confuseEffect18 = 1;
_root.slowEffect18 = 1;
_root.fastEffect18 = 1;
_root.berserkEffect18 = 1;
_root.freezeEffect18 = 1;
_root.deathEffect18 = 1;
_root.miniEffect18 = 1;
_root.silenceEffect18 = 1;
_root.curseEffect18 = 1;
_root.undeadEffect18 = 0;
_root.namaMusuh19 = 'Mini Sword';
_root.levelMusuh19 = 30;
_root.jobMusuh19 = 'Soldier';
_root.kiniHPMusuh19 = 5000;
_root.HPMusuh19 = 5000;
_root.kiniMPMusuh19 = 1000;
_root.MPMusuh19 = 1000;
_root.strengthMusuh19 = 25;
_root.vitalityMusuh19 = 25;
_root.speedMusuh19 = 5;
_root.tranceSpeedMusuh19 = 0;
_root.attackMusuh19 = 25;
_root.magicAttackMusuh19 = 10;
_root.defenseMusuh19 = 15;
_root.magicDefenseMusuh19 = 25;
_root.evadeMusuh19 = 75;
_root.accuracyMusuh19 = 75;
_root.luckMusuh19 = 75;
_root.itemSteal19 = 56;
_root.bisaLearn19 = 9;
_root.fireEffect19 = 0;
_root.iceEffect19 = 0;
_root.windEffect19 = 0;
_root.thunderEffect19 = 0;
_root.earthEffect19 = 0;
_root.evilEffect19 = 2;
_root.holyEffect19 = 2;
_root.poisonEffect19 = 0;
_root.angelEffect19 = 0;
_root.confuseEffect19 = 0;
_root.slowEffect19 = 0;
_root.fastEffect19 = 0;
_root.berserkEffect19 = 0;
_root.freezeEffect19 = 0;
_root.deathEffect19 = 1;
_root.miniEffect19 = 0;
_root.silenceEffect19 = 0;
_root.curseEffect19 = 0;
_root.undeadEffect19 = 1;
_root.namaMusuh20 = 'Mini Arrow';
_root.levelMusuh20 = 35;
_root.jobMusuh20 = 'Soldier';
_root.kiniHPMusuh20 = 3500;
_root.HPMusuh20 = 3500;
_root.kiniMPMusuh20 = 2000;
_root.MPMusuh20 = 2000;
_root.strengthMusuh20 = 20;
_root.vitalityMusuh20 = 20;
_root.speedMusuh20 = 5;
_root.tranceSpeedMusuh20 = 0;
_root.attackMusuh20 = 20;
_root.magicAttackMusuh20 = 20;
_root.defenseMusuh20 = 20;
_root.magicDefenseMusuh20 = 15;
_root.evadeMusuh20 = 75;
_root.accuracyMusuh20 = 75;
_root.luckMusuh20 = 75;
_root.itemSteal20 = 56;
_root.bisaLearn20 = 18;
_root.fireEffect20 = 0;
_root.iceEffect20 = 0;
_root.windEffect20 = 0;
_root.thunderEffect20 = 0;
_root.earthEffect20 = 0;
_root.evilEffect20 = 2;
_root.holyEffect20 = 2;
_root.poisonEffect20 = 0;
_root.angelEffect20 = 0;
_root.confuseEffect20 = 0;
_root.slowEffect20 = 0;
_root.fastEffect20 = 0;
_root.berserkEffect20 = 0;
_root.freezeEffect20 = 0;
_root.deathEffect20 = 1;
_root.miniEffect20 = 0;
_root.silenceEffect20 = 0;
_root.curseEffect20 = 0;
_root.undeadEffect20 = 1;
_root.namaMusuh21 = 'Mini Spear';
_root.levelMusuh21 = 40;
_root.jobMusuh21 = 'Soldier';
_root.kiniHPMusuh21 = 7500;
_root.HPMusuh21 = 7500;
_root.kiniMPMusuh21 = 2500;
_root.MPMusuh21 = 2500;
_root.strengthMusuh21 = 20;
_root.vitalityMusuh21 = 20;
_root.speedMusuh21 = 5;
_root.tranceSpeedMusuh21 = 0;
_root.attackMusuh21 = 15;
_root.magicAttackMusuh21 = 15;
_root.defenseMusuh21 = 20;
_root.magicDefenseMusuh21 = 20;
_root.evadeMusuh21 = 75;
_root.accuracyMusuh21 = 75;
_root.luckMusuh21 = 75;
_root.itemSteal21 = 67;
_root.bisaLearn21 = 9;
_root.fireEffect21 = 0;
_root.iceEffect21 = 0;
_root.windEffect21 = 0;
_root.thunderEffect21 = 0;
_root.earthEffect21 = 0;
_root.evilEffect21 = 2;
_root.holyEffect21 = 2;
_root.poisonEffect21 = 0;
_root.angelEffect21 = 0;
_root.confuseEffect21 = 0;
_root.slowEffect21 = 0;
_root.fastEffect21 = 0;
_root.berserkEffect21 = 0;
_root.freezeEffect21 = 0;
_root.deathEffect21 = 1;
_root.miniEffect21 = 0;
_root.silenceEffect21 = 0;
_root.curseEffect21 = 0;
_root.undeadEffect21 = 1;
_root.namaMusuh22 = 'Combat Tank';
_root.levelMusuh22 = 50;
_root.jobMusuh22 = 'Servant';
_root.kiniHPMusuh22 = 20000;
_root.HPMusuh22 = 20000;
_root.kiniMPMusuh22 = 0;
_root.MPMusuh22 = 0;
_root.strengthMusuh22 = 145;
_root.vitalityMusuh22 = 30;
_root.speedMusuh22 = 10;
_root.tranceSpeedMusuh22 = 0;
_root.attackMusuh22 = 150;
_root.magicAttackMusuh22 = 5;
_root.defenseMusuh22 = 140;
_root.magicDefenseMusuh22 = 5;
_root.evadeMusuh22 = 50;
_root.accuracyMusuh22 = 50;
_root.luckMusuh22 = 50;
_root.itemSteal22 = 67;
_root.bisaLearn22 = 0;
_root.fireEffect22 = 0;
_root.iceEffect22 = 0;
_root.windEffect22 = 0;
_root.thunderEffect22 = 0;
_root.earthEffect22 = 0;
_root.evilEffect22 = 0;
_root.holyEffect22 = 0;
_root.poisonEffect22 = 1;
_root.angelEffect22 = 1;
_root.confuseEffect22 = 1;
_root.slowEffect22 = 1;
_root.fastEffect22 = 1;
_root.berserkEffect22 = 1;
_root.freezeEffect22 = 1;
_root.deathEffect22 = 1;
_root.miniEffect22 = 1;
_root.silenceEffect22 = 1;
_root.curseEffect22 = 1;
_root.undeadEffect22 = 1;
_root.namaMusuh23 = 'Asing';
_root.levelMusuh23 = 20;
_root.jobMusuh23 = 'Alien';
_root.kiniHPMusuh23 = 10;
_root.HPMusuh23 = 10;
_root.kiniMPMusuh23 = 0;
_root.MPMusuh23 = 0;
_root.strengthMusuh23 = 90;
_root.vitalityMusuh23 = 10;
_root.speedMusuh23 = 10;
_root.tranceSpeedMusuh23 = 0;
_root.attackMusuh23 = 90;
_root.magicAttackMusuh23 = 10;
_root.defenseMusuh23 = 10;
_root.magicDefenseMusuh23 = 10;
_root.evadeMusuh23 = 100;
_root.accuracyMusuh23 = 100;
_root.luckMusuh23 = 100;
_root.itemSteal23 = 62;
_root.bisaLearn23 = 34;
_root.fireEffect23 = 0;
_root.iceEffect23 = 0;
_root.windEffect23 = 0;
_root.thunderEffect23 = 0;
_root.earthEffect23 = 0;
_root.evilEffect23 = 0;
_root.holyEffect23 = 0;
_root.poisonEffect23 = 1;
_root.angelEffect23 = 1;
_root.confuseEffect23 = 1;
_root.slowEffect23 = 1;
_root.fastEffect23 = 1;
_root.berserkEffect23 = 1;
_root.freezeEffect23 = 1;
_root.deathEffect23 = 1;
_root.miniEffect23 = 1;
_root.silenceEffect23 = 1;
_root.curseEffect23 = 1;
_root.undeadEffect23 = 1;
_root.namaMusuh24 = 'Zombie';
_root.levelMusuh24 = 40;
_root.jobMusuh24 = 'Undead';
_root.kiniHPMusuh24 = 15000;
_root.HPMusuh24 = 15000;
_root.kiniMPMusuh24 = 0;
_root.MPMusuh24 = 0;
_root.strengthMusuh24 = 200;
_root.vitalityMusuh24 = 100;
_root.speedMusuh24 = 3 + random(2);
_root.tranceSpeedMusuh24 = 0;
_root.attackMusuh24 = 200;
_root.magicAttackMusuh24 = 10;
_root.defenseMusuh24 = 100;
_root.magicDefenseMusuh24 = 100;
_root.evadeMusuh24 = 0;
_root.accuracyMusuh24 = 100;
_root.luckMusuh24 = 50;
_root.itemSteal24 = 29;
_root.bisaLearn24 = 32;
_root.fireEffect24 = 0;
_root.iceEffect24 = 0;
_root.windEffect24 = 0;
_root.thunderEffect24 = 0;
_root.earthEffect24 = 0;
_root.evilEffect24 = 0;
_root.holyEffect24 = 0;
_root.poisonEffect24 = 1;
_root.angelEffect24 = 1;
_root.confuseEffect24 = 1;
_root.slowEffect24 = 1;
_root.fastEffect24 = 1;
_root.berserkEffect24 = 1;
_root.freezeEffect24 = 1;
_root.deathEffect24 = 1;
_root.miniEffect24 = 1;
_root.silenceEffect24 = 1;
_root.curseEffect24 = 1;
_root.undeadEffect24 = 1;
_root.undead24 = true;
_root.namaMusuh25 = 'Master Magic';
_root.levelMusuh25 = 65;
_root.jobMusuh25 = 'Magician';
_root.kiniHPMusuh25 = 10000;
_root.HPMusuh25 = 10000;
_root.kiniMPMusuh25 = 10000;
_root.MPMusuh25 = 10000;
_root.strengthMusuh25 = 75;
_root.vitalityMusuh25 = 75;
_root.speedMusuh25 = 5;
_root.tranceSpeedMusuh25 = 0;
_root.attackMusuh25 = 75;
_root.magicAttackMusuh25 = 100;
_root.defenseMusuh25 = 75;
_root.magicDefenseMusuh25 = 100;
_root.evadeMusuh25 = 25;
_root.accuracyMusuh25 = 75;
_root.luckMusuh25 = 30;
_root.itemSteal25 = 50;
_root.bisaLearn25 = 12;
_root.fireEffect25 = 2;
_root.iceEffect25 = 2;
_root.windEffect25 = 2;
_root.thunderEffect25 = 2;
_root.earthEffect25 = 2;
_root.evilEffect25 = 2;
_root.holyEffect25 = 2;
_root.poisonEffect25 = 1;
_root.angelEffect25 = 1;
_root.confuseEffect25 = 1;
_root.slowEffect25 = 1;
_root.fastEffect25 = 1;
_root.berserkEffect25 = 1;
_root.freezeEffect25 = 1;
_root.deathEffect25 = 1;
_root.miniEffect25 = 1;
_root.silenceEffect25 = 1;
_root.curseEffect25 = 1;
_root.undeadEffect25 = 1;
_root.namaMusuh26 = 'Aliegator';
_root.levelMusuh26 = 60;
_root.jobMusuh26 = 'Servant';
_root.kiniHPMusuh26 = 10000;
_root.HPMusuh26 = 10000;
_root.kiniMPMusuh26 = 5000;
_root.MPMusuh26 = 5000;
_root.strengthMusuh26 = 27;
_root.vitalityMusuh26 = 29;
_root.speedMusuh26 = 50;
_root.tranceSpeedMusuh26 = 0;
_root.attackMusuh26 = 77;
_root.magicAttackMusuh26 = 27;
_root.defenseMusuh26 = 22;
_root.magicDefenseMusuh26 = 24;
_root.evadeMusuh26 = 22;
_root.accuracyMusuh26 = 23;
_root.luckMusuh26 = 20;
_root.itemSteal26 = 61;
_root.bisaLearn26 = 22;
_root.fireEffect26 = 2;
_root.iceEffect26 = 2;
_root.windEffect26 = 2;
_root.thunderEffect26 = 2;
_root.earthEffect26 = 2;
_root.evilEffect26 = 2;
_root.holyEffect26 = 2;
_root.poisonEffect26 = 1;
_root.angelEffect26 = 1;
_root.confuseEffect26 = 1;
_root.slowEffect26 = 1;
_root.fastEffect26 = 0;
_root.berserkEffect26 = 1;
_root.freezeEffect26 = 1;
_root.deathEffect26 = 1;
_root.miniEffect26 = 1;
_root.silenceEffect26 = 1;
_root.curseEffect26 = 1;
_root.undeadEffect26 = 1;
_root.namaMusuh27 = 'Combat Copter';
_root.levelMusuh27 = 75;
_root.jobMusuh27 = 'Servant';
_root.kiniHPMusuh27 = 20000;
_root.HPMusuh27 = 20000;
_root.kiniMPMusuh27 = 0;
_root.MPMusuh27 = 0;
_root.strengthMusuh27 = 145;
_root.vitalityMusuh27 = 30;
_root.speedMusuh27 = 10;
_root.tranceSpeedMusuh27 = 0;
_root.attackMusuh27 = 150;
_root.magicAttackMusuh27 = 5;
_root.defenseMusuh27 = 140;
_root.magicDefenseMusuh27 = 5;
_root.evadeMusuh27 = 50;
_root.accuracyMusuh27 = 50;
_root.luckMusuh27 = 50;
_root.itemSteal27 = 66;
_root.bisaLearn27 = 0;
_root.fireEffect27 = 0;
_root.iceEffect27 = 0;
_root.windEffect27 = 0;
_root.thunderEffect27 = 0;
_root.earthEffect27 = 0;
_root.evilEffect27 = 0;
_root.holyEffect27 = 0;
_root.poisonEffect27 = 1;
_root.angelEffect27 = 1;
_root.confuseEffect27 = 1;
_root.slowEffect27 = 1;
_root.fastEffect27 = 1;
_root.berserkEffect27 = 1;
_root.freezeEffect27 = 1;
_root.deathEffect27 = 1;
_root.miniEffect27 = 1;
_root.silenceEffect27 = 1;
_root.curseEffect27 = 1;
_root.undeadEffect27 = 1;
_root.namaMusuh28 = 'The Hunter';
_root.levelMusuh28 = 75;
_root.jobMusuh28 = 'Servant';
_root.kiniHPMusuh28 = 20000;
_root.HPMusuh28 = 20000;
_root.kiniMPMusuh28 = 2500;
_root.MPMusuh28 = 2500;
_root.strengthMusuh28 = 25;
_root.vitalityMusuh28 = 30;
_root.speedMusuh28 = 25;
_root.tranceSpeedMusuh28 = 0;
_root.attackMusuh28 = 100;
_root.magicAttackMusuh28 = 50;
_root.defenseMusuh28 = 25;
_root.magicDefenseMusuh28 = 25;
_root.evadeMusuh28 = 50;
_root.accuracyMusuh28 = 50;
_root.luckMusuh28 = 50;
_root.itemSteal28 = 65;
_root.bisaLearn28 = 12;
_root.fireEffect28 = 0;
_root.iceEffect28 = 0;
_root.windEffect28 = 0;
_root.thunderEffect28 = 0;
_root.earthEffect28 = 0;
_root.evilEffect28 = 0;
_root.holyEffect28 = 0;
_root.poisonEffect28 = 1;
_root.angelEffect28 = 1;
_root.confuseEffect28 = 1;
_root.slowEffect28 = 1;
_root.fastEffect28 = 1;
_root.berserkEffect28 = 1;
_root.freezeEffect28 = 1;
_root.deathEffect28 = 1;
_root.miniEffect28 = 1;
_root.silenceEffect28 = 1;
_root.curseEffect28 = 1;
_root.undeadEffect28 = 1;
_root.namaMusuh29 = 'Geblaster';
_root.levelMusuh29 = 80;
_root.jobMusuh29 = 'Servant';
_root.kiniHPMusuh29 = 20000;
_root.HPMusuh29 = 20000;
_root.kiniMPMusuh29 = 3500;
_root.MPMusuh29 = 3500;
_root.strengthMusuh29 = 45;
_root.vitalityMusuh29 = 40;
_root.speedMusuh29 = 45;
_root.tranceSpeedMusuh29 = 0;
_root.attackMusuh29 = 150;
_root.magicAttackMusuh29 = 60;
_root.defenseMusuh29 = 45;
_root.magicDefenseMusuh29 = 45;
_root.evadeMusuh29 = 45;
_root.accuracyMusuh29 = 40;
_root.luckMusuh29 = 40;
_root.itemSteal29 = 64;
_root.bisaLearn29 = 34;
_root.fireEffect29 = 0;
_root.iceEffect29 = 0;
_root.windEffect29 = 0;
_root.thunderEffect29 = 0;
_root.earthEffect29 = 0;
_root.evilEffect29 = 0;
_root.holyEffect29 = 0;
_root.poisonEffect29 = 1;
_root.angelEffect29 = 1;
_root.confuseEffect29 = 1;
_root.slowEffect29 = 1;
_root.fastEffect29 = 1;
_root.berserkEffect29 = 1;
_root.freezeEffect29 = 1;
_root.deathEffect29 = 1;
_root.miniEffect29 = 1;
_root.silenceEffect29 = 1;
_root.curseEffect29 = 1;
_root.undeadEffect29 = 1;
_root.namaMusuh30 = 'Mice Dice';
_root.levelMusuh30 = 85;
_root.jobMusuh30 = 'Servant';
_root.kiniHPMusuh30 = 25000;
_root.HPMusuh30 = 25000;
_root.kiniMPMusuh30 = 4500;
_root.MPMusuh30 = 4500;
_root.strengthMusuh30 = 55;
_root.vitalityMusuh30 = 50;
_root.speedMusuh30 = 55;
_root.tranceSpeedMusuh30 = 0;
_root.attackMusuh30 = 125;
_root.magicAttackMusuh30 = 70;
_root.defenseMusuh30 = 55;
_root.magicDefenseMusuh30 = 55;
_root.evadeMusuh30 = 55;
_root.accuracyMusuh30 = 50;
_root.luckMusuh30 = 50;
_root.itemSteal30 = 31;
_root.bisaLearn30 = 25;
_root.fireEffect30 = 2;
_root.iceEffect30 = 2;
_root.windEffect30 = 2;
_root.thunderEffect30 = 2;
_root.earthEffect30 = 2;
_root.evilEffect30 = 2;
_root.holyEffect30 = 2;
_root.poisonEffect30 = 1;
_root.angelEffect30 = 1;
_root.confuseEffect30 = 1;
_root.slowEffect30 = 1;
_root.fastEffect30 = 1;
_root.berserkEffect30 = 1;
_root.freezeEffect30 = 1;
_root.deathEffect30 = 1;
_root.miniEffect30 = 1;
_root.silenceEffect30 = 1;
_root.curseEffect30 = 1;
_root.undeadEffect30 = 1;
_root.namaMusuh31 = 'Monbot';
_root.levelMusuh31 = 95;
_root.jobMusuh31 = 'Servant';
_root.kiniHPMusuh31 = 50000;
_root.HPMusuh31 = 50000;
_root.kiniMPMusuh31 = 1000;
_root.MPMusuh31 = 1000;
_root.strengthMusuh31 = 200;
_root.vitalityMusuh31 = 175;
_root.speedMusuh31 = 40;
_root.tranceSpeedMusuh31 = 0;
_root.attackMusuh31 = 225;
_root.magicAttackMusuh31 = 50;
_root.defenseMusuh31 = 250;
_root.magicDefenseMusuh31 = 175;
_root.evadeMusuh31 = 35;
_root.accuracyMusuh31 = 75;
_root.luckMusuh31 = 40;
_root.itemSteal31 = 32;
_root.bisaLearn31 = 33;
_root.fireEffect31 = 2;
_root.iceEffect31 = 2;
_root.windEffect31 = 2;
_root.thunderEffect31 = 2;
_root.earthEffect31 = 2;
_root.evilEffect31 = 2;
_root.holyEffect31 = 2;
_root.poisonEffect31 = 1;
_root.angelEffect31 = 1;
_root.confuseEffect31 = 1;
_root.slowEffect31 = 1;
_root.fastEffect31 = 1;
_root.berserkEffect31 = 1;
_root.freezeEffect31 = 1;
_root.deathEffect31 = 1;
_root.miniEffect31 = 1;
_root.silenceEffect31 = 1;
_root.curseEffect31 = 1;
_root.undeadEffect31 = 1;
_root.namaMusuh32 = 'Torturise';
_root.levelMusuh32 = 100;
_root.jobMusuh32 = 'Ruler';
_root.kiniHPMusuh32 = 300000;
_root.HPMusuh32 = 300000;
_root.kiniMPMusuh32 = 5000;
_root.MPMusuh32 = 5000;
_root.strengthMusuh32 = 160;
_root.vitalityMusuh32 = 165;
_root.speedMusuh32 = 25;
_root.tranceSpeedMusuh32 = 0;
_root.attackMusuh32 = 145;
_root.magicAttackMusuh32 = 100;
_root.defenseMusuh32 = 155;
_root.magicDefenseMusuh32 = 170;
_root.evadeMusuh32 = 70;
_root.accuracyMusuh32 = 85;
_root.luckMusuh32 = 75;
_root.itemSteal32 = 0;
_root.bisaLearn32 = 0;
_root.fireEffect32 = 2;
_root.iceEffect32 = 2;
_root.windEffect32 = 2;
_root.thunderEffect32 = 2;
_root.earthEffect32 = 2;
_root.evilEffect32 = 2;
_root.holyEffect32 = 2;
_root.poisonEffect32 = 1;
_root.angelEffect32 = 1;
_root.confuseEffect32 = 1;
_root.slowEffect32 = 1;
_root.fastEffect32 = 1;
_root.berserkEffect32 = 1;
_root.freezeEffect32 = 1;
_root.deathEffect32 = 1;
_root.miniEffect32 = 1;
_root.silenceEffect32 = 1;
_root.curseEffect32 = 1;
_root.undeadEffect32 = 1;
_root.namaMusuh33 = 'Dragon King';
_root.levelMusuh33 = 100;
_root.jobMusuh33 = 'The Greatest';
_root.kiniHPMusuh33 = 1000000;
_root.HPMusuh33 = 1000000;
_root.kiniMPMusuh33 = 50000;
_root.MPMusuh33 = 50000;
_root.strengthMusuh33 = 275;
_root.vitalityMusuh33 = 250;
_root.speedMusuh33 = 30;
_root.tranceSpeedMusuh33 = 0;
_root.attackMusuh33 = 250;
_root.magicAttackMusuh33 = 275;
_root.defenseMusuh33 = 250;
_root.magicDefenseMusuh33 = 250;
_root.evadeMusuh33 = 100;
_root.accuracyMusuh33 = 100;
_root.luckMusuh33 = 100;
_root.itemSteal33 = 0;
_root.bisaLearn33 = 0;
_root.fireEffect33 = 2;
_root.iceEffect33 = 2;
_root.windEffect33 = 2;
_root.thunderEffect33 = 2;
_root.earthEffect33 = 2;
_root.evilEffect33 = 2;
_root.holyEffect33 = 2;
_root.poisonEffect33 = 1;
_root.angelEffect33 = 1;
_root.confuseEffect33 = 1;
_root.slowEffect33 = 1;
_root.fastEffect33 = 1;
_root.berserkEffect33 = 1;
_root.freezeEffect33 = 1;
_root.deathEffect33 = 1;
_root.miniEffect33 = 1;
_root.silenceEffect33 = 1;
_root.curseEffect33 = 1;
_root.undeadEffect33 = 1;
_root.namaMusuh34 = 'Unknown';
_root.levelMusuh34 = 100;
_root.jobMusuh34 = 'Unknown';
_root.kiniHPMusuh34 = 2000000;
_root.HPMusuh34 = 2000000;
_root.kiniMPMusuh34 = 0;
_root.MPMusuh34 = 0;
_root.strengthMusuh34 = 350;
_root.vitalityMusuh34 = 350;
_root.speedMusuh34 = 25;
_root.tranceSpeedMusuh34 = 0;
_root.attackMusuh34 = 350;
_root.magicAttackMusuh34 = 350;
_root.defenseMusuh34 = 350;
_root.magicDefenseMusuh34 = 350;
_root.evadeMusuh34 = 100;
_root.accuracyMusuh34 = 100;
_root.luckMusuh34 = 100;
_root.itemSteal34 = 0;
_root.bisaLearn34 = 0;
_root.fireEffect34 = 2;
_root.iceEffect34 = 2;
_root.windEffect34 = 2;
_root.thunderEffect34 = 2;
_root.earthEffect34 = 2;
_root.evilEffect34 = 2;
_root.holyEffect34 = 2;
_root.poisonEffect34 = 1;
_root.angelEffect34 = 1;
_root.confuseEffect34 = 1;
_root.slowEffect34 = 1;
_root.fastEffect34 = 1;
_root.berserkEffect34 = 1;
_root.freezeEffect34 = 1;
_root.deathEffect34 = 1;
_root.miniEffect34 = 1;
_root.silenceEffect34 = 1;
_root.curseEffect34 = 1;
_root.undeadEffect34 = 1;
}
frame 399 {
function buatMusuh() {
i = 1;
while (i <= 100) {
_root['bisaEscape' + posisiKeMusuh] = false;
++i;
}
if (posisiKini == 2) {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 1;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 2;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 1;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 3;
_root['bisaEscape' + posisiKeMusuh] = false;
}
}
}
}
if (masukRandomBattle == true) {
rand = random(2);
if (rand == 0) {
posisiKeMusuh = 1;
} else {
if (rand == 1) {
posisiKeMusuh = 2;
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 4) {
if (_root['sudahMenangBenteng' + posisiKini] == 5) {
posisiKeMusuh = 4;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 5;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 4;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 5;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 6;
_root['bisaEscape' + posisiKeMusuh] = true;
}
}
}
}
}
if (masukRandomBattle == true) {
rand = random(3);
if (rand == 0) {
posisiKeMusuh = 4;
} else {
if (rand == 1) {
posisiKeMusuh = 5;
} else {
if (rand == 2) {
posisiKeMusuh = 6;
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 5) {
if (_root['sudahMenangBenteng' + posisiKini] == 6) {
posisiKeMusuh = 7;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 5) {
posisiKeMusuh = 7;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 8;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 8;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 9;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 10;
_root['bisaEscape' + posisiKeMusuh] = false;
}
}
}
}
}
}
if (masukRandomBattle == true) {
rand = random(3);
if (rand == 0) {
posisiKeMusuh = 7;
} else {
if (rand == 1) {
posisiKeMusuh = 8;
} else {
if (rand == 2) {
posisiKeMusuh = 9;
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 6) {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 11;
_root['bisaEscape' + posisiKeMusuh] = false;
}
if (masukRandomBattle == true) {
rand = random(3);
if (rand == 0) {
posisiKeMusuh = 7;
} else {
if (rand == 1) {
posisiKeMusuh = 8;
} else {
if (rand == 2) {
posisiKeMusuh = 9;
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 8) {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 4;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 5;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 6;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 12;
_root['bisaEscape' + posisiKeMusuh] = false;
}
}
}
}
if (masukRandomBattle == true) {
rand = random(3);
if (rand == 0) {
posisiKeMusuh = 4;
} else {
if (rand == 1) {
posisiKeMusuh = 5;
} else {
if (rand == 2) {
posisiKeMusuh = 6;
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 10) {
posisiKeMusuh = musuhDiBox;
_root['bisaEscape' + posisiKeMusuh] = false;
} else {
if (posisiKini == 12) {
posisiKeMusuh = musuhDiBox;
_root['bisaEscape' + posisiKeMusuh] = false;
} else {
if (posisiKini == 13) {
posisiKeMusuh = musuhDiBox;
_root['bisaEscape' + posisiKeMusuh] = false;
} else {
if (posisiKini == 15) {
if (_root['sudahMenangBenteng' + posisiKini] == 5) {
posisiKeMusuh = 16;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 17;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 16;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 17;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 18;
_root['bisaEscape' + posisiKeMusuh] = false;
}
}
}
}
}
if (masukRandomBattle == true) {
rand = random(2);
if (rand == 0) {
posisiKeMusuh = 16;
} else {
if (rand == 1) {
posisiKeMusuh = 17;
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 16) {
if (_root['sudahMenangBenteng' + posisiKini] == 7) {
posisiKeMusuh = 19;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 6) {
posisiKeMusuh = 20;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 5) {
posisiKeMusuh = 21;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 19;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 20;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 21;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 22;
_root['bisaEscape' + posisiKeMusuh] = false;
}
}
}
}
}
}
}
if (masukRandomBattle == true) {
rand = random(3);
if (rand == 0) {
posisiKeMusuh = 19;
} else {
if (rand == 1) {
posisiKeMusuh = 20;
} else {
if (rand == 2) {
posisiKeMusuh = 21;
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 20) {
if (_root['sudahMenangBenteng' + posisiKini] == 7) {
posisiKeMusuh = 23;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 6) {
posisiKeMusuh = 24;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 5) {
posisiKeMusuh = 25;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 23;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 24;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 25;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 22;
_root['bisaEscape' + posisiKeMusuh] = false;
}
}
}
}
}
}
}
if (masukRandomBattle == true) {
rand = random(3);
if (rand == 0) {
posisiKeMusuh = 23;
} else {
if (rand == 1) {
posisiKeMusuh = 24;
} else {
if (rand == 2) {
posisiKeMusuh = 25;
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 17) {
posisiKeMusuh = musuhDiBox;
_root['bisaEscape' + posisiKeMusuh] = false;
} else {
if (posisiKini == 22) {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 30;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 31;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 32;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 33;
_root['bisaEscape' + posisiKeMusuh] = true;
}
}
}
}
if (masukRandomBattle == true) {
rand = random(3);
if (rand == 0) {
posisiKeMusuh = 30;
} else {
if (rand == 1) {
posisiKeMusuh = 31;
} else {
if (rand == 2) {
posisiKeMusuh = 32;
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 23) {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 34;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 35;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 36;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 37;
_root['bisaEscape' + posisiKeMusuh] = true;
}
}
}
}
if (masukRandomBattle == true) {
rand = random(4);
if (rand == 0) {
posisiKeMusuh = 34;
} else {
if (rand == 1) {
posisiKeMusuh = 35;
} else {
if (rand == 2) {
posisiKeMusuh = 36;
} else {
if (rand == 3) {
posisiKeMusuh = 37;
}
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 24) {
posisiKeMusuh = musuhDiBox;
} else {
if (posisiKini == 25) {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 39;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 40;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 41;
_root['bisaEscape' + posisiKeMusuh] = true;
}
}
}
if (masukRandomBattle == true) {
rand = random(3);
if (rand == 0) {
posisiKeMusuh = 39;
} else {
if (rand == 1) {
posisiKeMusuh = 40;
} else {
if (rand == 2) {
posisiKeMusuh = 41;
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 27) {
if (_root['sudahMenangBenteng' + posisiKini] == 10) {
posisiKeMusuh = 42;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 9) {
posisiKeMusuh = 43;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 8) {
posisiKeMusuh = 44;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 7) {
posisiKeMusuh = 45;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 6) {
posisiKeMusuh = 46;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 5) {
posisiKeMusuh = 47;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 48;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 49;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 50;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 51;
_root['bisaEscape' + posisiKeMusuh] = true;
}
}
}
}
}
}
}
}
}
}
if (masukRandomBattle == true) {
rand = random(10);
if (rand == 0) {
posisiKeMusuh = 42;
} else {
if (rand == 1) {
posisiKeMusuh = 43;
} else {
if (rand == 2) {
posisiKeMusuh = 44;
} else {
if (rand == 3) {
posisiKeMusuh = 45;
} else {
if (rand == 4) {
posisiKeMusuh = 46;
} else {
if (rand == 5) {
posisiKeMusuh = 47;
} else {
if (rand == 6) {
posisiKeMusuh = 48;
} else {
if (rand == 7) {
posisiKeMusuh = 49;
} else {
if (rand == 8) {
posisiKeMusuh = 50;
} else {
if (rand == 9) {
posisiKeMusuh = 51;
}
}
}
}
}
}
}
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 28) {
if (_root['sudahMenangBenteng' + posisiKini] == 5) {
posisiKeMusuh = 44;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 4) {
posisiKeMusuh = 46;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 3) {
posisiKeMusuh = 49;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 2) {
posisiKeMusuh = 51;
_root['bisaEscape' + posisiKeMusuh] = true;
} else {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 52;
_root['bisaEscape' + posisiKeMusuh] = false;
}
}
}
}
}
if (masukRandomBattle == true) {
rand = random(4);
if (rand == 0) {
posisiKeMusuh = 44;
} else {
if (rand == 1) {
posisiKeMusuh = 46;
} else {
if (rand == 2) {
posisiKeMusuh = 49;
} else {
if (rand == 3) {
posisiKeMusuh = 51;
}
}
}
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 36) {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 53;
_root['bisaEscape' + posisiKeMusuh] = false;
} else {
rand = random(2);
if (rand == 0) {
posisiKeMusuh = 17;
} else {
posisiKeMusuh = 18;
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 37) {
posisiKeMusuh = musuhDiBox;
} else {
if (posisiKini == 33) {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 55;
_root['bisaEscape' + posisiKeMusuh] = false;
} else {
rand = random(2);
if (rand == 0) {
posisiKeMusuh = 21;
} else {
posisiKeMusuh = 22;
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 35) {
if (_root['sudahMenangBenteng' + posisiKini] == 1) {
posisiKeMusuh = 56;
_root['bisaEscape' + posisiKeMusuh] = false;
} else {
rand = random(2);
if (rand == 0) {
posisiKeMusuh = 25;
} else {
posisiKeMusuh = 26;
}
_root['bisaEscape' + posisiKeMusuh] = true;
}
} else {
if (posisiKini == 30) {
posisiKeMusuh = musuhDiBox;
_root['bisaEscape' + posisiKeMusuh] = false;
} else {
if (posisiKini == 34) {
posisiKeMusuh = musuhDiBox;
_root['bisaEscape' + posisiKeMusuh] = false;
} else {
if (posisiKini == 39) {
posisiKeMusuh = musuhDiBox;
_root['bisaEscape' + posisiKeMusuh] = false;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
cekMusuhJadi();
cekMusuhDapatBattle();
}
function cekMusuhJadi() {
if (posisiKeMusuh == 1) {
bykMusuh = 2;
_root.jenisMusuh1 = 1;
_root.jenisMusuh2 = 1;
} else {
if (posisiKeMusuh == 2) {
bykMusuh = 3;
_root.jenisMusuh1 = 1;
_root.jenisMusuh2 = 1;
_root.jenisMusuh3 = 1;
} else {
if (posisiKeMusuh == 3) {
bykMusuh = 4;
_root.jenisMusuh1 = 1;
_root.jenisMusuh2 = 1;
_root.jenisMusuh3 = 1;
_root.jenisMusuh4 = 2;
} else {
if (posisiKeMusuh == 4) {
bykMusuh = 3;
_root.jenisMusuh1 = 3;
_root.jenisMusuh2 = 3;
_root.jenisMusuh3 = 3;
} else {
if (posisiKeMusuh == 5) {
bykMusuh = 5;
_root.jenisMusuh1 = 3;
_root.jenisMusuh2 = 3;
_root.jenisMusuh3 = 3;
_root.jenisMusuh4 = 3;
_root.jenisMusuh5 = 3;
} else {
if (posisiKeMusuh == 6) {
bykMusuh = 6;
_root.jenisMusuh1 = 3;
_root.jenisMusuh2 = 3;
_root.jenisMusuh3 = 3;
_root.jenisMusuh4 = 3;
_root.jenisMusuh5 = 3;
_root.jenisMusuh6 = 3;
} else {
if (posisiKeMusuh == 7) {
bykMusuh = 3;
_root.jenisMusuh1 = 4;
_root.jenisMusuh2 = 1;
_root.jenisMusuh3 = 4;
} else {
if (posisiKeMusuh == 8) {
bykMusuh = 3;
_root.jenisMusuh1 = 4;
_root.jenisMusuh2 = 4;
_root.jenisMusuh3 = 4;
} else {
if (posisiKeMusuh == 9) {
bykMusuh = 6;
_root.jenisMusuh1 = 4;
_root.jenisMusuh2 = 4;
_root.jenisMusuh3 = 4;
_root.jenisMusuh4 = 1;
_root.jenisMusuh5 = 1;
_root.jenisMusuh6 = 1;
} else {
if (posisiKeMusuh == 10) {
bykMusuh = 4;
_root.jenisMusuh1 = 4;
_root.jenisMusuh2 = 4;
_root.jenisMusuh3 = 4;
_root.jenisMusuh4 = 5;
} else {
if (posisiKeMusuh == 11) {
bykMusuh = 6;
_root.jenisMusuh1 = 4;
_root.jenisMusuh2 = 6;
_root.jenisMusuh3 = 4;
_root.jenisMusuh4 = 4;
_root.jenisMusuh5 = 2;
_root.jenisMusuh6 = 4;
} else {
if (posisiKeMusuh == 12) {
bykMusuh = 4;
_root.jenisMusuh1 = 7;
_root.jenisMusuh2 = 3;
_root.jenisMusuh3 = 3;
_root.jenisMusuh4 = 3;
} else {
if (posisiKeMusuh == 13) {
bykMusuh = 1;
_root.jenisMusuh1 = 8;
} else {
if (posisiKeMusuh == 14) {
bykMusuh = 1;
_root.jenisMusuh1 = 9;
} else {
if (posisiKeMusuh == 15) {
bykMusuh = 1;
_root.jenisMusuh1 = 10;
} else {
if (posisiKeMusuh == 16) {
bykMusuh = 3;
_root.jenisMusuh1 = 5;
_root.jenisMusuh2 = 5;
_root.jenisMusuh3 = 5;
} else {
if (posisiKeMusuh == 17) {
bykMusuh = 6;
_root.jenisMusuh1 = 6;
_root.jenisMusuh2 = 6;
_root.jenisMusuh3 = 6;
_root.jenisMusuh4 = 5;
_root.jenisMusuh5 = 5;
_root.jenisMusuh6 = 5;
} else {
if (posisiKeMusuh == 18) {
bykMusuh = 1;
_root.jenisMusuh1 = 11;
} else {
if (posisiKeMusuh == 19) {
bykMusuh = 2;
_root.jenisMusuh1 = 12;
_root.jenisMusuh2 = 12;
} else {
if (posisiKeMusuh == 20) {
bykMusuh = 3;
_root.jenisMusuh1 = 12;
_root.jenisMusuh2 = 12;
_root.jenisMusuh3 = 12;
} else {
if (posisiKeMusuh == 21) {
bykMusuh = 4;
_root.jenisMusuh1 = 12;
_root.jenisMusuh2 = 12;
_root.jenisMusuh3 = 12;
_root.jenisMusuh4 = 12;
} else {
if (posisiKeMusuh == 22) {
bykMusuh = 3;
_root.jenisMusuh1 = 12;
_root.jenisMusuh2 = 12;
_root.jenisMusuh3 = 13;
} else {
if (posisiKeMusuh == 23) {
bykMusuh = 2;
_root.jenisMusuh1 = 14;
_root.jenisMusuh2 = 14;
} else {
if (posisiKeMusuh == 24) {
bykMusuh = 3;
_root.jenisMusuh1 = 14;
_root.jenisMusuh2 = 14;
_root.jenisMusuh3 = 14;
} else {
if (posisiKeMusuh == 25) {
bykMusuh = 4;
_root.jenisMusuh1 = 14;
_root.jenisMusuh2 = 14;
_root.jenisMusuh3 = 14;
_root.jenisMusuh4 = 14;
} else {
if (posisiKeMusuh == 26) {
bykMusuh = 1;
_root.jenisMusuh1 = 15;
} else {
if (posisiKeMusuh == 27) {
bykMusuh = 6;
_root.jenisMusuh1 = 16;
_root.jenisMusuh2 = 16;
_root.jenisMusuh3 = 16;
_root.jenisMusuh4 = 16;
_root.jenisMusuh5 = 16;
_root.jenisMusuh6 = 16;
} else {
if (posisiKeMusuh == 28) {
bykMusuh = 3;
_root.jenisMusuh1 = 15;
_root.jenisMusuh2 = 15;
_root.jenisMusuh3 = 15;
} else {
if (posisiKeMusuh == 29) {
bykMusuh = 2;
_root.jenisMusuh1 = 17;
_root.jenisMusuh2 = 18;
} else {
if (posisiKeMusuh == 30) {
bykMusuh = 2;
_root.jenisMusuh1 = 19;
_root.jenisMusuh2 = 19;
} else {
if (posisiKeMusuh == 31) {
bykMusuh = 3;
_root.jenisMusuh1 = 19;
_root.jenisMusuh2 = 19;
_root.jenisMusuh3 = 20;
} else {
if (posisiKeMusuh == 32) {
bykMusuh = 4;
_root.jenisMusuh1 = 19;
_root.jenisMusuh2 = 19;
_root.jenisMusuh3 = 20;
_root.jenisMusuh4 = 20;
} else {
if (posisiKeMusuh == 33) {
bykMusuh = 6;
_root.jenisMusuh1 = 19;
_root.jenisMusuh2 = 19;
_root.jenisMusuh3 = 19;
_root.jenisMusuh4 = 20;
_root.jenisMusuh5 = 20;
_root.jenisMusuh6 = 20;
} else {
if (posisiKeMusuh == 34) {
bykMusuh = 2;
_root.jenisMusuh1 = 21;
_root.jenisMusuh2 = 21;
} else {
if (posisiKeMusuh == 35) {
bykMusuh = 4;
_root.jenisMusuh1 = 21;
_root.jenisMusuh2 = 21;
_root.jenisMusuh3 = 20;
_root.jenisMusuh4 = 20;
} else {
if (posisiKeMusuh == 36) {
bykMusuh = 6;
_root.jenisMusuh1 = 21;
_root.jenisMusuh2 = 21;
_root.jenisMusuh3 = 21;
_root.jenisMusuh4 = 20;
_root.jenisMusuh5 = 20;
_root.jenisMusuh6 = 20;
} else {
if (posisiKeMusuh == 37) {
bykMusuh = 6;
_root.jenisMusuh1 = 20;
_root.jenisMusuh2 = 20;
_root.jenisMusuh3 = 20;
_root.jenisMusuh4 = 20;
_root.jenisMusuh5 = 20;
_root.jenisMusuh6 = 20;
} else {
if (posisiKeMusuh == 38) {
bykMusuh = 1;
_root.jenisMusuh1 = 22;
} else {
if (posisiKeMusuh == 39) {
bykMusuh = 2;
_root.jenisMusuh1 = 23;
_root.jenisMusuh2 = 23;
} else {
if (posisiKeMusuh == 40) {
bykMusuh = 2;
_root.jenisMusuh1 = 24;
_root.jenisMusuh2 = 24;
} else {
if (posisiKeMusuh == 41) {
bykMusuh = 4;
_root.jenisMusuh1 = 23;
_root.jenisMusuh2 = 23;
_root.jenisMusuh3 = 24;
_root.jenisMusuh4 = 24;
} else {
if (posisiKeMusuh == 42) {
bykMusuh = 4;
_root.jenisMusuh1 = 20;
_root.jenisMusuh2 = 20;
_root.jenisMusuh3 = 20;
_root.jenisMusuh4 = 13;
} else {
if (posisiKeMusuh == 43) {
bykMusuh = 5;
_root.jenisMusuh1 = 16;
_root.jenisMusuh2 = 16;
_root.jenisMusuh3 = 16;
_root.jenisMusuh4 = 14;
_root.jenisMusuh5 = 14;
} else {
if (posisiKeMusuh == 44) {
bykMusuh = 6;
_root.jenisMusuh1 = 20;
_root.jenisMusuh2 = 20;
_root.jenisMusuh3 = 4;
_root.jenisMusuh4 = 4;
_root.jenisMusuh5 = 4;
_root.jenisMusuh6 = 15;
} else {
if (posisiKeMusuh == 45) {
bykMusuh = 6;
_root.jenisMusuh1 = 9;
_root.jenisMusuh2 = 9;
_root.jenisMusuh3 = 8;
_root.jenisMusuh4 = 8;
_root.jenisMusuh5 = 9;
_root.jenisMusuh6 = 9;
} else {
if (posisiKeMusuh == 46) {
bykMusuh = 4;
_root.jenisMusuh1 = 20;
_root.jenisMusuh2 = 20;
_root.jenisMusuh3 = 20;
_root.jenisMusuh4 = 11;
} else {
if (posisiKeMusuh == 47) {
bykMusuh = 5;
_root.jenisMusuh1 = 12;
_root.jenisMusuh2 = 12;
_root.jenisMusuh3 = 20;
_root.jenisMusuh4 = 20;
_root.jenisMusuh5 = 20;
} else {
if (posisiKeMusuh == 48) {
bykMusuh = 6;
_root.jenisMusuh1 = 20;
_root.jenisMusuh2 = 20;
_root.jenisMusuh3 = 20;
_root.jenisMusuh4 = 20;
_root.jenisMusuh5 = 15;
_root.jenisMusuh6 = 20;
} else {
if (posisiKeMusuh == 49) {
bykMusuh = 6;
_root.jenisMusuh1 = 16;
_root.jenisMusuh2 = 16;
_root.jenisMusuh3 = 16;
_root.jenisMusuh4 = 20;
_root.jenisMusuh5 = 20;
_root.jenisMusuh6 = 20;
} else {
if (posisiKeMusuh == 50) {
bykMusuh = 6;
_root.jenisMusuh1 = 20;
_root.jenisMusuh2 = 4;
_root.jenisMusuh3 = 21;
_root.jenisMusuh4 = 24;
_root.jenisMusuh5 = 3;
_root.jenisMusuh6 = 23;
} else {
if (posisiKeMusuh == 51) {
bykMusuh = 6;
_root.jenisMusuh1 = 20;
_root.jenisMusuh2 = 20;
_root.jenisMusuh3 = 20;
_root.jenisMusuh4 = 24;
_root.jenisMusuh5 = 24;
_root.jenisMusuh6 = 24;
} else {
if (posisiKeMusuh == 52) {
bykMusuh = 1;
_root.jenisMusuh1 = 25;
} else {
if (posisiKeMusuh == 53) {
bykMusuh = 1;
_root.jenisMusuh1 = 26;
} else {
if (posisiKeMusuh == 54) {
bykMusuh = 1;
_root.jenisMusuh1 = 27;
} else {
if (posisiKeMusuh == 55) {
bykMusuh = 1;
_root.jenisMusuh1 = 28;
} else {
if (posisiKeMusuh == 56) {
bykMusuh = 1;
_root.jenisMusuh1 = 29;
} else {
if (posisiKeMusuh == 57) {
bykMusuh = 1;
_root.jenisMusuh1 = 30;
} else {
if (posisiKeMusuh == 58) {
bykMusuh = 1;
_root.jenisMusuh1 = 31;
} else {
if (posisiKeMusuh == 59) {
bykMusuh = 1;
_root.jenisMusuh1 = 32;
} else {
if (posisiKeMusuh == 60) {
bykMusuh = 1;
_root.jenisMusuh1 = 33;
} else {
if (posisiKeMusuh == 61) {
bykMusuh = 1;
_root.jenisMusuh1 = 34;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
musuh_mc.gotoAndStop(posisiKeMusuh);
i = 1;
while (i <= bykMusuh) {
musuh_mc['musuh' + i].posisiAwalX = musuh_mc['musuh' + i]._x;
musuh_mc['musuh' + i].posisiAwalY = musuh_mc['musuh' + i]._y;
musuh_mc['musuh' + i].scaleKiniX = musuh_mc['musuh' + i]._xscale;
musuh_mc['musuh' + i].scaleKiniX2 = musuh_mc['musuh' + i]._xscale * 0.5;
musuh_mc['musuh' + i].scaleKiniY = musuh_mc['musuh' + i]._yscale;
musuh_mc['musuh' + i].scaleKiniY2 = musuh_mc['musuh' + i]._yscale * 0.5;
if (duniaBerubah == false) {
musuh_mc['musuh' + i].tranceMulai = false;
musuh_mc['musuh' + i].sedangTrance = false;
musuh_mc['musuh' + i].xpersenTrance = 0;
musuh_mc['musuh' + i].tranceEfek._visible = false;
} else {
musuh_mc['musuh' + i].tranceMulai = false;
musuh_mc['musuh' + i].sedangTrance = true;
musuh_mc['musuh' + i].xpersenTrance = 0;
musuh_mc['musuh' + i].tranceEfek._visible = true;
}
musuh_mc['musuh' + i].akanNyerang = false;
musuh_mc['musuh' + i].punyaItem = _root['itemSteal' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].punyaSpell = _root['bisaLearn' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].xfire = _root['fireEffect' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].xice = _root['iceEffect' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].xwind = _root['windEffect' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].xthunder = _root['thunderEffect' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].xearth = _root['earthEffect' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].xevil = _root['evilEffect' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].xholy = _root['holyEffect' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].levelKe = _root['levelMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].nama = _root['namaMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].job = _root['jobMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].HP = _root['kiniHPMusuh' + _root['jenisMusuh' + i]] * _root['levelMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].maxHP = _root['HPMusuh' + _root['jenisMusuh' + i]] * _root['levelMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].MP = _root['kiniMPMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].maxMP = _root['MPMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].keBerapa = _root['jenisMusuh' + i];
musuh_mc['musuh' + i].keTipeBerapa = i;
musuh_mc['musuh' + i].batasSerang = 9;
musuh_mc['musuh' + i].status1 = '';
musuh_mc['musuh' + i].status2 = '';
musuh_mc['musuh' + i].status3 = '';
if (_root['undead' + _root['jenisMusuh' + i]] == true) {
musuh_mc['musuh' + i].undead = true;
} else {
musuh_mc['musuh' + i].undead = false;
}
musuh_mc['musuh' + i].angel = false;
if (musuh_mc['musuh' + i].keBerapa == 28 || musuh_mc['musuh' + i].keBerapa == 29 || musuh_mc['musuh' + i].keBerapa == 30) {
musuh_mc['musuh' + i].HPRegen = true;
musuh_mc['musuh' + i].MPRegen = true;
} else {
musuh_mc['musuh' + i].HPRegen = false;
musuh_mc['musuh' + i].MPRegen = false;
}
musuh_mc['musuh' + i].adaWall = false;
if (musuh_mc['musuh' + i].keBerapa == 20) {
musuh_mc['musuh' + i].adaReflect = true;
} else {
if (musuh_mc['musuh' + i].keBerapa == 25) {
musuh_mc['musuh' + i].adaReflect = true;
} else {
musuh_mc['musuh' + i].adaReflect = false;
}
}
musuh_mc['musuh' + i].sedangConfuse = false;
musuh_mc['musuh' + i].sedangSlow = false;
musuh_mc['musuh' + i].sedangFast = false;
musuh_mc['musuh' + i].sedangBerserk = false;
musuh_mc['musuh' + i].sedangSilence = false;
musuh_mc['musuh' + i].delayPoison = 100;
musuh_mc['musuh' + i].sedangFreeze = false;
musuh_mc['musuh' + i].strength = _root['strengthMusuh' + _root['jenisMusuh' + i]] + _root['levelMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].strengthTrance = musuh_mc['musuh' + i].strength * 2;
musuh_mc['musuh' + i].vitality = _root['vitalityMusuh' + _root['jenisMusuh' + i]] + _root['levelMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].vitalityTrance = musuh_mc['musuh' + i].vitality * 2;
musuh_mc['musuh' + i].speed = _root['speedMusuh' + _root['jenisMusuh' + i]];
if (duniaBerubah == false) {
_root['tranceSpeedMusuh' + _root['jenisMusuh' + i]] = 0;
musuh_mc['musuh' + i].speedTrance = _root['tranceSpeedMusuh' + _root['jenisMusuh' + i]];
} else {
if (duniaBerubah == false) {
_root['tranceSpeedMusuh' + _root['jenisMusuh' + i]] = 100;
musuh_mc['musuh' + i].speedTrance = _root['tranceSpeedMusuh' + _root['jenisMusuh' + i]];
}
}
musuh_mc['musuh' + i].attack = _root['attackMusuh' + _root['jenisMusuh' + i]] + _root['levelMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].magicAttack = _root['magicAttackMusuh' + _root['jenisMusuh' + i]] + _root['levelMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].defense = _root['defenseMusuh' + _root['jenisMusuh' + i]] + _root['levelMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].magicDefense = _root['magicDefenseMusuh' + _root['jenisMusuh' + i]] + _root['levelMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].evade = _root['evadeMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].accuracy = _root['accuracyMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].luck = _root['luckMusuh' + _root['jenisMusuh' + i]];
musuh_mc['musuh' + i].activeKe = 1000 + random(200);
if (_root['poisonEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaPoison = true;
} else {
musuh_mc['musuh' + i].bisaKenaPoison = false;
}
if (_root['angelEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaAngel = true;
} else {
musuh_mc['musuh' + i].bisaKenaAngel = false;
}
if (_root['confuseEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaConfuse = true;
} else {
musuh_mc['musuh' + i].bisaKenaConfuse = false;
}
if (_root['slowEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaSlow = true;
} else {
musuh_mc['musuh' + i].bisaKenaSlow = false;
}
if (_root['fastEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaFast = true;
} else {
musuh_mc['musuh' + i].bisaKenaFast = false;
}
if (_root['berserkEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaBerserk = true;
} else {
musuh_mc['musuh' + i].bisaKenaBerserk = false;
}
if (_root['freezeEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaFreeze = true;
} else {
musuh_mc['musuh' + i].bisaKenaFreeze = false;
}
if (_root['deathEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaDeath = true;
} else {
musuh_mc['musuh' + i].bisaKenaDeath = false;
}
if (_root['miniEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaMini = true;
} else {
musuh_mc['musuh' + i].bisaKenaMini = false;
}
if (_root['silenceEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaSilence = true;
} else {
musuh_mc['musuh' + i].bisaKenaSilence = false;
}
if (_root['curseEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaCurse = true;
} else {
musuh_mc['musuh' + i].bisaKenaCurse = false;
}
if (_root['undeadEffect' + _root['jenisMusuh' + i]] == 0) {
musuh_mc['musuh' + i].bisaKenaUndead = true;
} else {
musuh_mc['musuh' + i].bisaKenaUndead = false;
}
++i;
}
}
function cekMusuhDapatBattle() {
dapatUring = new Array();
dapatExp = new Array();
dapatItem = new Array();
dapatServant = new Array();
dapatUring[1] = 250;
dapatExp[1] = 500;
dapatItem[1] = 1;
dapatServant[1] = 0;
dapatUring[2] = 300;
dapatExp[2] = 600;
dapatItem[2] = 4;
dapatServant[2] = 0;
dapatUring[3] = 1500;
dapatExp[3] = 1500;
dapatItem[3] = 7;
dapatServant[3] = 0;
dapatUring[4] = 500;
dapatExp[4] = 700;
dapatItem[4] = 8;
dapatServant[4] = 0;
dapatUring[5] = 800;
dapatExp[5] = 900;
dapatItem[5] = 10;
dapatServant[5] = 0;
dapatUring[6] = 1000;
dapatExp[6] = 1000;
dapatItem[6] = 11;
dapatServant[6] = 0;
dapatUring[7] = 1500;
dapatExp[7] = 1250;
dapatItem[7] = 12;
dapatServant[7] = 0;
dapatUring[8] = 1750;
dapatExp[8] = 1500;
dapatItem[8] = 22;
dapatServant[8] = 0;
dapatUring[9] = 3000;
dapatExp[9] = 1750;
dapatItem[9] = 22;
dapatServant[9] = 0;
dapatUring[10] = 3500;
dapatExp[10] = 2000;
dapatItem[10] = 59;
dapatServant[10] = 0;
dapatUring[11] = 5000;
dapatExp[11] = 4000;
dapatItem[11] = 68;
dapatServant[11] = 0;
dapatUring[12] = 2500;
dapatExp[12] = 2500;
dapatItem[12] = 23;
dapatServant[12] = 0;
dapatUring[13] = 3500;
dapatExp[13] = 3000;
dapatItem[13] = 24;
dapatServant[13] = 0;
dapatUring[14] = 4000;
dapatExp[14] = 3500;
dapatItem[14] = 67;
dapatServant[14] = 0;
dapatUring[15] = 5500;
dapatExp[15] = 5500;
dapatItem[15] = 67;
dapatServant[15] = 0;
dapatUring[16] = 4000;
dapatExp[16] = 2500;
dapatItem[16] = 54;
dapatServant[16] = 500;
dapatUring[17] = 4500;
dapatExp[17] = 3000;
dapatItem[17] = 57;
dapatServant[17] = 750;
dapatUring[18] = 5000;
dapatExp[18] = 5000;
dapatItem[18] = 71;
dapatServant[18] = 1000;
dapatUring[19] = 4000;
dapatExp[19] = 2500;
dapatItem[19] = 2;
dapatServant[19] = 1500;
dapatUring[20] = 4500;
dapatExp[20] = 3500;
dapatItem[20] = 5;
dapatServant[20] = 1700;
dapatUring[21] = 4500;
dapatExp[21] = 3000;
dapatItem[21] = 14;
dapatServant[21] = 2000;
dapatUring[22] = 5000;
dapatExp[22] = 7500;
dapatItem[22] = 76;
dapatServant[22] = 3000;
dapatUring[23] = 10000;
dapatExp[23] = 5000;
dapatItem[23] = 74;
dapatServant[23] = 8000;
dapatUring[24] = 10000;
dapatExp[24] = 5000;
dapatItem[24] = 73;
dapatServant[24] = 10000;
dapatUring[25] = 10000;
dapatExp[25] = 5000;
dapatItem[25] = 39;
dapatServant[25] = 12000;
dapatUring[26] = 10000;
dapatExp[26] = 5000;
dapatItem[26] = 43;
dapatServant[26] = 0;
dapatUring[27] = 50000;
dapatExp[27] = 7500;
dapatItem[27] = 28;
dapatServant[27] = 15000;
dapatUring[28] = 0;
dapatExp[28] = 0;
dapatItem[28] = 39;
dapatServant[28] = 20000;
dapatUring[29] = 100000;
dapatExp[29] = 15000;
dapatItem[29] = 42;
dapatServant[29] = 5000;
dapatUring[30] = 2000;
dapatExp[30] = 5000;
dapatItem[30] = 40;
dapatServant[30] = 500;
dapatUring[31] = 4000;
dapatExp[31] = 6000;
dapatItem[31] = 59;
dapatServant[31] = 6000;
dapatUring[32] = 5000;
dapatExp[32] = 7000;
dapatItem[32] = 60;
dapatServant[32] = 7000;
dapatUring[33] = 5000;
dapatExp[33] = 7000;
dapatItem[33] = 61;
dapatServant[33] = 7000;
dapatUring[34] = 5500;
dapatExp[34] = 7500;
dapatItem[34] = 82;
dapatServant[34] = 7500;
dapatUring[35] = 5500;
dapatExp[35] = 7500;
dapatItem[35] = 55;
dapatServant[35] = 7500;
dapatUring[36] = 5500;
dapatExp[36] = 7500;
dapatItem[36] = 63;
dapatServant[36] = 7500;
dapatUring[37] = 5500;
dapatExp[37] = 7500;
dapatItem[37] = 64;
dapatServant[37] = 7500;
dapatUring[38] = 0;
dapatExp[38] = 0;
dapatItem[38] = 60;
dapatServant[38] = 10000;
dapatUring[39] = 10000;
dapatExp[39] = 15000;
dapatItem[39] = 59;
dapatServant[39] = 4000;
dapatUring[40] = 15000;
dapatExp[40] = 10000;
dapatItem[40] = 36;
dapatServant[40] = 6000;
dapatUring[41] = 15000;
dapatExp[41] = 15000;
dapatItem[41] = 71;
dapatServant[41] = 8000;
dapatUring[42] = 5000;
dapatExp[42] = 5000;
dapatItem[42] = 44;
dapatServant[42] = 5000;
dapatUring[43] = 6000;
dapatExp[43] = 6000;
dapatItem[43] = 45;
dapatServant[43] = 6000;
dapatUring[44] = 7000;
dapatExp[44] = 7000;
dapatItem[44] = 46;
dapatServant[44] = 7000;
dapatUring[45] = 8000;
dapatExp[45] = 8000;
dapatItem[45] = 47;
dapatServant[45] = 8000;
dapatUring[46] = 9000;
dapatExp[46] = 9000;
dapatItem[46] = 48;
dapatServant[46] = 9000;
dapatUring[47] = 10000;
dapatExp[47] = 10000;
dapatItem[47] = 49;
dapatServant[47] = 10000;
dapatUring[48] = 11000;
dapatExp[48] = 11000;
dapatItem[48] = 50;
dapatServant[48] = 11000;
dapatUring[49] = 12000;
dapatExp[49] = 12000;
dapatItem[49] = 51;
dapatServant[49] = 12000;
dapatUring[50] = 13000;
dapatExp[50] = 13000;
dapatItem[50] = 52;
dapatServant[50] = 13000;
dapatUring[51] = 14000;
dapatExp[51] = 14000;
dapatItem[51] = 53;
dapatServant[51] = 14000;
dapatUring[52] = 15000;
dapatExp[52] = 15000;
dapatItem[52] = 69;
dapatServant[52] = 15000;
dapatUring[53] = 8500;
dapatExp[53] = 8500;
dapatItem[53] = 67;
dapatServant[53] = 8500;
dapatUring[54] = 9500;
dapatExp[54] = 9500;
dapatItem[54] = 71;
dapatServant[54] = 10000;
dapatUring[55] = 12000;
dapatExp[55] = 12000;
dapatItem[55] = 65;
dapatServant[55] = 10000;
dapatUring[56] = 14000;
dapatExp[56] = 14000;
dapatItem[56] = 79;
dapatServant[56] = 12000;
dapatUring[57] = 16000;
dapatExp[57] = 16000;
dapatItem[57] = 41;
dapatServant[57] = 15000;
dapatUring[58] = 55000;
dapatExp[58] = 55000;
dapatItem[58] = 70;
dapatServant[58] = 50000;
dapatUring[59] = 0;
dapatExp[59] = 0;
dapatItem[59] = 0;
dapatServant[59] = 0;
dapatUring[60] = 0;
dapatExp[60] = 0;
dapatItem[60] = 0;
dapatServant[60] = 0;
dapatUring[61] = 0;
dapatExp[61] = 0;
dapatItem[61] = 83;
dapatServant[61] = 0;
}
}
frame 399 {
function cekItemBisa() {
action_mc.xinfo = '';
action_mc.cancel_btn.onRelease = function () {
backKlik();
sedangPause = false;
commandAda(true);
action_mc._visible = false;
};
action_mc.next_btn.onRelease = function () {
backKlik();
if (halamanKe == 1) {
halamanKe = 2;
} else {
if (halamanKe == 2) {
halamanKe = 3;
} else {
if (halamanKe == 3) {
halamanKe = 1;
}
}
}
cekHalaman();
};
action_mc.prev_btn.onRelease = function () {
backKlik();
if (halamanKe == 1) {
halamanKe = 3;
} else {
if (halamanKe == 3) {
halamanKe = 2;
} else {
if (halamanKe == 2) {
halamanKe = 1;
}
}
}
cekHalaman();
};
masukItem = new Array();
tipeItem = new Array();
keItem = 1;
i = 1;
while (i <= 83) {
if (_root['itemPunya' + i] > 0) {
masukItem[keItem] = i;
tipeItem[keItem] = 'Item';
++keItem;
}
++i;
}
halamanKe = 1;
cekHalaman();
}
function cekHalaman() {
action_mc.pageKe = 'Page: ' + halamanKe + '/3';
i = 1;
while (i <= 30) {
action_mc['item' + i]._visible = false;
action_mc['item' + i].tandaList._visible = false;
++i;
}
if (halamanKe == 1) {
i = 1;
while (i <= 30) {
if (masukItem[i] != undefined) {
action_mc['item' + i]._visible = true;
if (tipeItem[i] == 'Item') {
action_mc['item' + i].namaItem = namaItem[masukItem[i]];
action_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Spell') {
action_mc['item' + i].namaItem = namaSpell[masukItem[i]];
action_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Weapon') {
action_mc['item' + i].namaItem = namaWeapon[masukItem[i]];
action_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Shield') {
action_mc['item' + i].namaItem = namaShield[masukItem[i]];
action_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Armor') {
action_mc['item' + i].namaItem = namaArmor[masukItem[i]];
action_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i]];
} else {
if (tipeItem[i] == 'Finery') {
action_mc['item' + i].namaItem = namaFinery[masukItem[i]];
action_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i]];
}
}
}
}
}
}
action_mc['item' + i].keBerapa = masukItem[i];
action_mc['item' + i].tipeBerapa = tipeItem[i];
action_mc['item' + i].onRelease = klikItem;
cekItemBisaKlik(masukItem[i]);
}
++i;
}
} else {
if (halamanKe == 2) {
i = 1;
while (i <= 30) {
if (masukItem[i + 30] != undefined) {
action_mc['item' + i]._visible = true;
if (tipeItem[i + 30] == 'Item') {
action_mc['item' + i].namaItem = namaItem[masukItem[i + 30]];
action_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i + 30]];
} else {
if (tipeItem[i + 30] == 'Spell') {
action_mc['item' + i].namaItem = namaSpell[masukItem[i + 30]];
action_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i + 30]];
} else {
if (tipeItem[i + 30] == 'Weapon') {
action_mc['item' + i].namaItem = namaWeapon[masukItem[i + 30]];
action_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 30]];
} else {
if (tipeItem[i + 30] == 'Shield') {
action_mc['item' + i].namaItem = namaShield[masukItem[i + 30]];
action_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 30]];
} else {
if (tipeItem[i + 30] == 'Armor') {
action_mc['item' + i].namaItem = namaArmor[masukItem[i + 30]];
action_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i + 30]];
} else {
if (tipeItem[i + 30] == 'Finery') {
action_mc['item' + i].namaItem = namaFinery[masukItem[i + 30]];
action_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 30]];
}
}
}
}
}
}
action_mc['item' + i].keBerapa = masukItem[i + 30];
action_mc['item' + i].tipeBerapa = tipeItem[i + 30];
action_mc['item' + i].onRelease = klikItem;
cekItemBisaKlik(masukItem[i + 30]);
}
++i;
}
} else {
if (halamanKe == 3) {
i = 1;
while (i <= 30) {
if (masukItem[i + 60] != undefined) {
action_mc['item' + i]._visible = true;
if (tipeItem[i + 60] == 'Item') {
action_mc['item' + i].namaItem = namaItem[masukItem[i + 60]];
action_mc['item' + i].jumlah = _root['itemPunya' + masukItem[i + 60]];
} else {
if (tipeItem[i + 60] == 'Spell') {
action_mc['item' + i].namaItem = namaSpell[masukItem[i + 60]];
action_mc['item' + i].jumlah = _root['spellPunya' + masukItem[i + 60]];
} else {
if (tipeItem[i + 60] == 'Weapon') {
action_mc['item' + i].namaItem = namaWeapon[masukItem[i + 60]];
action_mc['item' + i].jumlah = _root['weaponPunya' + masukItem[i + 60]];
} else {
if (tipeItem[i + 60] == 'Shield') {
action_mc['item' + i].namaItem = namaShield[masukItem[i + 60]];
action_mc['item' + i].jumlah = _root['shieldPunya' + masukItem[i + 60]];
} else {
if (tipeItem[i + 60] == 'Armor') {
action_mc['item' + i].namaItem = namaArmor[masukItem[i + 60]];
action_mc['item' + i].jumlah = _root['armorPunya' + masukItem[i + 60]];
} else {
if (tipeItem[i + 60] == 'Finery') {
action_mc['item' + i].namaItem = namaFinery[masukItem[i + 60]];
action_mc['item' + i].jumlah = _root['fineryPunya' + masukItem[i + 60]];
}
}
}
}
}
}
action_mc['item' + i].keBerapa = masukItem[i + 60];
action_mc['item' + i].tipeBerapa = tipeItem[i + 60];
action_mc['item' + i].onRelease = klikItem;
cekItemBisaKlik(masukItem[i + 60]);
}
++i;
}
}
}
}
}
function cekItemBisaKlik(windi) {
if (windi == 7 || windi == 11 || windi == 12 || windi == 13 || windi == 14 || windi == 15 || windi == 16 || windi == 17 || windi == 18 || windi == 19 || windi == 20 || windi == 24 || windi == 25 || windi == 26 || windi == 27 || windi == 28 || windi == 29 || windi == 30 || windi == 31 || windi == 32 || windi == 59 || windi == 60 || windi == 61 || windi == 62 || windi == 63 || windi == 64 || windi == 65 || windi == 66 || windi == 67 || windi == 68 || windi == 69 || windi == 70 || windi == 75 || windi == 76 || windi == 77 || windi == 78 || windi == 79 || windi == 80 || windi == 81 || windi == 82 || windi == 83) {
action_mc['item' + i].enabled = false;
action_mc['item' + i]._alpha = 50;
} else {
action_mc['item' + i].enabled = true;
action_mc['item' + i]._alpha = 100;
}
}
function klikItem() {
if (this.tandaList._visible == false) {
i = 1;
while (i <= 30) {
action_mc['item' + i].tandaList._visible = false;
++i;
}
this.tandaList._visible = true;
if (this.tipeBerapa == 'Item') {
action_mc.xinfo = infoItem[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Spell') {
action_mc.xinfo = infoSpell[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Weapon') {
action_mc.xinfo = infoWeapon[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Shield') {
action_mc.xinfo = infoShield[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Armor') {
action_mc.xinfo = infoArmor[this.keBerapa] + ' (' + this.tipeBerapa + ')';
} else {
if (this.tipeBerapa == 'Finery') {
action_mc.xinfo = infoFinery[this.keBerapa] + ' (' + this.tipeBerapa + ')';
}
}
}
}
}
}
yangDiklik = this.tipeBerapa;
yangPosisi = this.keBerapa;
yangItemPos = this;
} else {
if (yangDiklik == 'Item') {
if (yangPosisi == 1 || yangPosisi == 2 || yangPosisi == 3 || yangPosisi == 4 || yangPosisi == 5 || yangPosisi == 6 || yangPosisi == 8 || yangPosisi == 9 || yangPosisi == 10 || yangPosisi == 33 || yangPosisi == 35 || yangPosisi == 36 || yangPosisi == 37 || yangPosisi == 38 || yangPosisi == 39 || yangPosisi == 40 || yangPosisi == 71 || yangPosisi == 72 || yangPosisi == 73 || yangPosisi == 74) {
jenisItemPilihan = 'individu';
} else {
if (yangPosisi == 21 || yangPosisi == 22 || yangPosisi == 23 || yangPosisi == 41 || yangPosisi == 42 || yangPosisi == 43 || yangPosisi == 44 || yangPosisi == 45 || yangPosisi == 46 || yangPosisi == 47 || yangPosisi == 48 || yangPosisi == 49 || yangPosisi == 50 || yangPosisi == 51 || yangPosisi == 52 || yangPosisi == 53 || yangPosisi == 54 || yangPosisi == 55 || yangPosisi == 56 || yangPosisi == 57 || yangPosisi == 58) {
jenisItemPilihan = 'masal';
} else {
if (yangPosisi == 34) {
jenisItemPilihan = 'escape';
}
}
}
if (jenisItemPilihan == 'individu') {
pilihanItemKe = yangPosisi;
sedangPause = false;
commandAda(false);
action_mc._visible = false;
cekSiapa();
} else {
if (jenisItemPilihan == 'masal') {
pilihanItemKe = yangPosisi;
sedangPause = false;
commandAda(true);
action_mc._visible = false;
cekSerangSemua(4);
} else {
if (jenisItemPilihan == 'escape') {
if (_root['bisaEscape' + posisiKeMusuh] == true) {
pilihanItemKe = yangPosisi;
--_root['itemPunya' + pilihanItemKe];
action_mc._visible = false;
cekEscape();
} else {
action_mc.xinfo = 'Can\'t Escape';
}
}
}
}
}
}
}
function cekGagal() {
gagalItem = true;
}
}
frame 399 {
function actionSpell(indi, indi2, indi3) {
if (indi3 != 'dual') {
sedangPause = true;
commandAda(false);
action_mc._visible = true;
action_mc.gotoAndStop(1);
action_mc.xpesan = '';
}
pasangKeSlot = slotMagicArmor[_root['headPasang' + indi]];
gabungSlot1 = false;
gabungSlot2 = false;
gabungSlot3 = false;
gabungSlot4 = false;
if (pasangKeSlot == 1) {
bykSlot = 2;
} else {
if (pasangKeSlot == 2) {
bykSlot = 1;
gabungSlot1 = true;
bykGabung1 = 2;
} else {
if (pasangKeSlot == 3) {
bykSlot = 3;
} else {
if (pasangKeSlot == 4) {
bykSlot = 2;
gabungSlot1 = true;
bykGabung1 = 2;
} else {
if (pasangKeSlot == 5) {
bykSlot = 4;
} else {
if (pasangKeSlot == 6) {
bykSlot = 2;
gabungSlot1 = true;
bykGabung1 = 2;
gabungSlot2 = true;
bykGabung2 = 2;
} else {
if (pasangKeSlot == 7) {
bykSlot = 5;
} else {
if (pasangKeSlot == 8) {
bykSlot = 3;
gabungSlot1 = true;
bykGabung1 = 2;
gabungSlot2 = true;
bykGabung2 = 2;
} else {
if (pasangKeSlot == 9) {
bykSlot = 6;
} else {
if (pasangKeSlot == 10) {
bykSlot = 3;
gabungSlot1 = true;
bykGabung1 = 2;
gabungSlot2 = true;
bykGabung2 = 2;
gabungSlot3 = true;
bykGabung3 = 2;
} else {
if (pasangKeSlot == 11) {
bykSlot = 8;
} else {
if (pasangKeSlot == 12) {
bykSlot = 4;
gabungSlot1 = true;
bykGabung1 = 2;
gabungSlot2 = true;
bykGabung2 = 2;
gabungSlot3 = true;
bykGabung3 = 2;
gabungSlot4 = true;
bykGabung4 = 2;
} else {
if (pasangKeSlot == 13) {
bykSlot = 3;
gabungSlot1 = true;
bykGabung1 = 3;
gabungSlot2 = true;
bykGabung2 = 3;
gabungSlot3 = true;
bykGabung3 = 2;
} else {
if (pasangKeSlot == 14) {
bykSlot = 2;
gabungSlot1 = true;
bykGabung1 = 4;
gabungSlot2 = true;
bykGabung2 = 4;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
i = 1;
while (i <= 8) {
action_mc['spellGabung' + i]._visible = false;
++i;
}
i = 1;
while (i <= bykSlot) {
action_mc['spellGabung' + i]._visible = true;
++i;
}
slotMagic1 = new Array();
slotMagic2 = new Array();
slotMagic3 = new Array();
slotMagic4 = new Array();
slotMagic5 = new Array();
slotMagic6 = new Array();
slotMagic7 = new Array();
slotMagic8 = new Array();
if (pasangKeSlot == 1) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic2[0] = _root['spellPasang' + indi + '2'];
} else {
if (pasangKeSlot == 2) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic1[1] = _root['spellPasang' + indi + '2'];
} else {
if (pasangKeSlot == 3) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic2[0] = _root['spellPasang' + indi + '2'];
slotMagic3[0] = _root['spellPasang' + indi + '3'];
} else {
if (pasangKeSlot == 4) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic1[1] = _root['spellPasang' + indi + '2'];
slotMagic2[0] = _root['spellPasang' + indi + '3'];
} else {
if (pasangKeSlot == 5) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic2[0] = _root['spellPasang' + indi + '2'];
slotMagic3[0] = _root['spellPasang' + indi + '3'];
slotMagic4[0] = _root['spellPasang' + indi + '4'];
} else {
if (pasangKeSlot == 6) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic1[1] = _root['spellPasang' + indi + '2'];
slotMagic2[0] = _root['spellPasang' + indi + '3'];
slotMagic2[1] = _root['spellPasang' + indi + '4'];
} else {
if (pasangKeSlot == 7) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic2[0] = _root['spellPasang' + indi + '2'];
slotMagic3[0] = _root['spellPasang' + indi + '3'];
slotMagic4[0] = _root['spellPasang' + indi + '4'];
slotMagic5[0] = _root['spellPasang' + indi + '5'];
} else {
if (pasangKeSlot == 8) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic1[1] = _root['spellPasang' + indi + '2'];
slotMagic2[0] = _root['spellPasang' + indi + '3'];
slotMagic2[1] = _root['spellPasang' + indi + '4'];
slotMagic3[0] = _root['spellPasang' + indi + '5'];
} else {
if (pasangKeSlot == 9) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic2[0] = _root['spellPasang' + indi + '2'];
slotMagic3[0] = _root['spellPasang' + indi + '3'];
slotMagic4[0] = _root['spellPasang' + indi + '4'];
slotMagic5[0] = _root['spellPasang' + indi + '5'];
slotMagic6[0] = _root['spellPasang' + indi + '6'];
} else {
if (pasangKeSlot == 10) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic1[1] = _root['spellPasang' + indi + '2'];
slotMagic2[0] = _root['spellPasang' + indi + '3'];
slotMagic2[1] = _root['spellPasang' + indi + '4'];
slotMagic3[0] = _root['spellPasang' + indi + '5'];
slotMagic3[1] = _root['spellPasang' + indi + '6'];
} else {
if (pasangKeSlot == 11) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic2[0] = _root['spellPasang' + indi + '2'];
slotMagic3[0] = _root['spellPasang' + indi + '3'];
slotMagic4[0] = _root['spellPasang' + indi + '4'];
slotMagic5[0] = _root['spellPasang' + indi + '5'];
slotMagic6[0] = _root['spellPasang' + indi + '6'];
slotMagic7[0] = _root['spellPasang' + indi + '7'];
slotMagic8[0] = _root['spellPasang' + indi + '8'];
} else {
if (pasangKeSlot == 12) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic1[1] = _root['spellPasang' + indi + '2'];
slotMagic2[0] = _root['spellPasang' + indi + '3'];
slotMagic2[1] = _root['spellPasang' + indi + '4'];
slotMagic3[0] = _root['spellPasang' + indi + '5'];
slotMagic3[1] = _root['spellPasang' + indi + '6'];
slotMagic4[0] = _root['spellPasang' + indi + '7'];
slotMagic4[1] = _root['spellPasang' + indi + '8'];
} else {
if (pasangKeSlot == 13) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic1[1] = _root['spellPasang' + indi + '2'];
slotMagic1[2] = _root['spellPasang' + indi + '3'];
slotMagic2[0] = _root['spellPasang' + indi + '4'];
slotMagic2[1] = _root['spellPasang' + indi + '5'];
slotMagic2[2] = _root['spellPasang' + indi + '6'];
slotMagic3[0] = _root['spellPasang' + indi + '7'];
slotMagic3[1] = _root['spellPasang' + indi + '8'];
} else {
if (pasangKeSlot == 14) {
slotMagic1[0] = _root['spellPasang' + indi + '1'];
slotMagic1[1] = _root['spellPasang' + indi + '2'];
slotMagic1[2] = _root['spellPasang' + indi + '3'];
slotMagic1[3] = _root['spellPasang' + indi + '4'];
slotMagic2[0] = _root['spellPasang' + indi + '5'];
slotMagic2[1] = _root['spellPasang' + indi + '6'];
slotMagic2[2] = _root['spellPasang' + indi + '7'];
slotMagic2[3] = _root['spellPasang' + indi + '8'];
}
}
}
}
}
}
}
}
}
}
}
}
}
}
i = 1;
while (i <= bykSlot) {
_root['hargaMPKe' + i] = 0;
action_mc['spellGabung' + i].namaSpell = '';
++i;
}
i = 1;
while (i <= bykSlot) {
j = 0;
while (j <= 4) {
if (i == 1) {
if (slotMagic1[j] != undefined) {
action_mc['spellGabung' + i].namaSpell += namaSpell[slotMagic1[j]] + ' ';
_root['hargaMPKe' + i] += costMP[slotMagic1[j]];
}
} else {
if (i == 2) {
if (slotMagic2[j] != undefined) {
action_mc['spellGabung' + i].namaSpell += namaSpell[slotMagic2[j]] + ' ';
_root['hargaMPKe' + i] += costMP[slotMagic2[j]];
}
} else {
if (i == 3) {
if (slotMagic3[j] != undefined) {
action_mc['spellGabung' + i].namaSpell += namaSpell[slotMagic3[j]] + ' ';
_root['hargaMPKe' + i] += costMP[slotMagic3[j]];
}
} else {
if (i == 4) {
if (slotMagic4[j] != undefined) {
action_mc['spellGabung' + i].namaSpell += namaSpell[slotMagic4[j]] + ' ';
_root['hargaMPKe' + i] += costMP[slotMagic4[j]];
}
} else {
if (i == 5) {
if (slotMagic5[j] != undefined) {
action_mc['spellGabung' + i].namaSpell += namaSpell[slotMagic5[j]] + ' ';
_root['hargaMPKe' + i] += costMP[slotMagic5[j]];
}
} else {
if (i == 6) {
if (slotMagic6[j] != undefined) {
action_mc['spellGabung' + i].namaSpell += namaSpell[slotMagic6[j]] + ' ';
_root['hargaMPKe' + i] += costMP[slotMagic6[j]];
}
} else {
if (i == 7) {
if (slotMagic7[j] != undefined) {
action_mc['spellGabung' + i].namaSpell += namaSpell[slotMagic7[j]] + ' ';
_root['hargaMPKe' + i] += costMP[slotMagic7[j]];
}
} else {
if (i == 8) {
if (slotMagic7[j] != undefined) {
action_mc['spellGabung' + i].namaSpell += namaSpell[slotMagic8[j]] + ' ';
_root['hargaMPKe' + i] += costMP[slotMagic8[j]];
}
}
}
}
}
}
}
}
}
++j;
}
penguranganMP = 0;
ji = 1;
while (ji <= 4) {
if (_root['fineryPasang' + indi + ji] == 22) {
penguranganMP += 0.1;
} else {
if (_root['fineryPasang' + indi + ji] == 23) {
penguranganMP += 0.15;
} else {
if (_root['fineryPasang' + indi + ji] == 24) {
penguranganMP += 0.2;
}
}
}
++ji;
}
totalPengurangan = Math.ceil(_root['hargaMPKe' + i] * penguranganMP);
_root['hargaMPKe' + i] -= totalPengurangan;
ji = 1;
while (ji <= 4) {
xi = 1;
while (xi <= bykJagoan) {
if (_root['fineryPasang' + _root['party' + xi] + ji] == 37) {
_root['hargaMPKe' + i] = 1;
}
++xi;
}
++ji;
}
action_mc['spellGabung' + i].hargaMP = 'MP: ' + _root['hargaMPKe' + i];
++i;
}
i = 1;
while (i <= bykSlot) {
if (action_mc['spellGabung' + i].namaSpell == ' ' || action_mc['spellGabung' + i].namaSpell == '' || action_mc['spellGabung' + i].namaSpell == 'Empty' || action_mc['spellGabung' + i].namaSpell == 'Empty ') {
action_mc['spellGabung' + i]._visible = false;
} else {
action_mc['spellGabung' + i].onRelease = klikActionSpell;
action_mc['spellGabung' + i].onRollOver = function () {
this.indiSpell.gotoAndStop(2);
};
action_mc['spellGabung' + i].onRollOut = function () {
this.indiSpell.gotoAndStop(1);
};
}
++i;
}
kosongSemuaGak = 0;
i = 0;
while (i <= 3) {
if (slotMagic1[i] == 0) {
++kosongSemuaGak;
}
++i;
}
if (kosongSemuaGak == slotMagic1.length) {
action_mc.spellGabung1._visible = false;
}
kosongSemuaGak = 0;
i = 0;
while (i <= 3) {
if (slotMagic2[i] == 0) {
++kosongSemuaGak;
}
++i;
}
if (kosongSemuaGak == slotMagic2.length) {
action_mc.spellGabung2._visible = false;
}
kosongSemuaGak = 0;
i = 0;
while (i <= 3) {
if (slotMagic3[i] == 0) {
++kosongSemuaGak;
}
++i;
}
if (kosongSemuaGak == slotMagic3.length) {
action_mc.spellGabung3._visible = false;
}
kosongSemuaGak = 0;
i = 0;
while (i <= 3) {
if (slotMagic4[i] == 0) {
++kosongSemuaGak;
}
++i;
}
if (kosongSemuaGak == slotMagic4.length) {
action_mc.spellGabung4._visible = false;
}
action_mc.xkarakterMP = 'MP: ' + _root['jagoan' + indi2].MP;
action_mc.cancel_btn.onRelease = function () {
backKlik();
sedangPause = false;
commandAda(true);
action_mc._visible = false;
};
}
}
frame 399 {
function cekKalkulasi3(pilihTipeSerangan, ygSerang, ygTahan, siapaKena, tipeItemKe, elementSerang) {
backSpell();
pilihMagicItem = 0;
tipeActionItem = 1;
damageTotal3 = 'Kosong';
damageTotal = 0;
if (pilihTipeSerangan == 4) {
if (tipeItemKe == 21) {
powerAttack = 2000 + random(500);
damageTotal = powerAttack;
pilihMagicItem = 100;
} else {
if (tipeItemKe == 22) {
powerAttack = 4000 + random(1000);
damageTotal = powerAttack;
pilihMagicItem = 101;
} else {
if (tipeItemKe == 23) {
powerAttack = 8000 + random(2000);
damageTotal = powerAttack;
pilihMagicItem = 102;
} else {
if (tipeItemKe == 44) {
powerAttack = ygSerang.magicAttack * ygSerang.strength * 3;
powerDefense = ygTahan.magicDefense * ygTahan.vitality;
randSerang = random(100) + 100;
if (powerAttack - powerDefense <= randSerang) {
damageTotal = Math.ceil(randSerang);
} else {
damageTotal = Math.ceil(powerAttack - powerDefense);
}
pilihMagicItem = 1;
} else {
if (tipeItemKe == 45) {
powerAttack = ygSerang.magicAttack * ygSerang.strength * 3;
powerDefense = ygTahan.magicDefense * ygTahan.vitality;
randSerang = random(100) + 100;
if (powerAttack - powerDefense <= randSerang) {
damageTotal = Math.ceil(randSerang);
} else {
damageTotal = Math.ceil(powerAttack - powerDefense);
}
pilihMagicItem = 4;
} else {
if (tipeItemKe == 46) {
powerAttack = ygSerang.magicAttack * ygSerang.strength * 3;
powerDefense = ygTahan.magicDefense * ygTahan.vitality;
randSerang = random(100) + 100;
if (powerAttack - powerDefense <= randSerang) {
damageTotal = Math.ceil(randSerang);
} else {
damageTotal = Math.ceil(powerAttack - powerDefense);
}
pilihMagicItem = 7;
} else {
if (tipeItemKe == 47) {
powerAttack = ygSerang.magicAttack * ygSerang.strength * 3.5;
powerDefense = ygTahan.magicDefense * ygTahan.vitality;
randSerang = random(100) + 100;
if (powerAttack - powerDefense <= randSerang) {
damageTotal = Math.ceil(randSerang);
} else {
damageTotal = Math.ceil(powerAttack - powerDefense);
}
pilihMagicItem = 10;
} else {
if (tipeItemKe == 48) {
if (ygTahan.bisaKenaPoison == true) {
gagalEfek = true;
z = 1;
while (z <= 3) {
if (ygTahan['status' + z] == '') {
ygTahan['status' + z] = 'POISON';
damageTotal3 = 'Poisoned';
gagalEfek = false;
z = 3;
} else {
if (ygTahan['status' + z] == 'POISON') {
gagalEfek = true;
z = 3;
}
}
++z;
}
if (gagalEfek == true) {
damageTotal = 0;
}
} else {
damageTotal = 0;
}
if (damageTotal != 0) {
powerAttack = ygSerang.magicAttack * ygSerang.strength;
powerDefense = ygTahan.magicDefense * ygTahan.vitality;
randSerang = random(100) + 100;
if (powerAttack - powerDefense <= randSerang) {
damageTotal = Math.ceil(randSerang);
} else {
damageTotal = Math.ceil(powerAttack - powerDefense);
}
}
pilihMagicItem = 11;
} else {
if (tipeItemKe == 49) {
powerAttack = ygSerang.magicAttack * ygSerang.strength * 5;
powerDefense = ygTahan.magicDefense * ygTahan.vitality;
randSerang = random(100) + 100;
if (powerAttack - powerDefense <= randSerang) {
damageTotal = Math.ceil(randSerang);
} else {
damageTotal = Math.ceil(powerAttack - powerDefense);
}
pilihMagicItem = 13;
} else {
if (tipeItemKe == 50) {
powerAttack = ygSerang.magicAttack * ygSerang.strength * 5;
powerDefense = 0;
randSerang = random(100) + 100;
if (powerAttack - powerDefense <= randSerang) {
damageTotal = Math.ceil(randSerang);
} else {
damageTotal = Math.ceil(powerAttack - powerDefense);
}
pilihMagicItem = 12;
} else {
if (tipeItemKe == 51) {
if (ygTahan.bisaKenaCurse == true) {
z = 1;
while (z <= 3) {
rand = random(100);
if (rand <= 80) {
if (ygTahan['status' + z] == '') {
ygTahan['status' + z] = 'CURSE';
damageTotal3 = 'Curse';
z = 3;
} else {
if (ygTahan['status' + z] == 'CURSE') {
z = 3;
}
}
}
++z;
}
}
pilihMagicItem = 14;
} else {
if (tipeItemKe == 52) {
if (ygTahan.adaWall == false) {
ygTahan.adaWall = true;
ygTahan.defense *= 2;
ygTahan.magicDefense *= 2;
damageTotal3 = 'Protector';
} else {
damageTotal = 0;
}
pilihMagicItem = 17;
} else {
if (tipeItemKe == 53) {
if (ygTahan.adaReflect == false) {
ygTahan.adaReflect = true;
damageTotal3 = 'Reflector';
} else {
damageTotal = 0;
}
pilihMagicItem = 18;
} else {
if (tipeItemKe == 54) {
if (ygTahan.bisaKenaSlow == true) {
z = 1;
while (z <= 3) {
if (ygTahan['status' + z] == '') {
ygTahan['status' + z] = 'SLOW';
damageTotal3 = 'Slow';
z = 3;
} else {
if (ygTahan['status' + z] == 'SLOW') {
z = 3;
}
}
++z;
}
}
pilihMagicItem = 21;
} else {
if (tipeItemKe == 55) {
if (ygTahan.bisaKenaFast == true) {
z = 1;
while (z <= 3) {
if (ygTahan['status' + z] == '') {
ygTahan['status' + z] = 'FAST';
damageTotal3 = 'Fast';
z = 3;
} else {
if (ygTahan['status' + z] == 'FAST') {
z = 3;
damageTotal = 0;
}
}
++z;
}
} else {
damageTotal = 0;
}
pilihMagicItem = 22;
} else {
if (tipeItemKe == 56) {
if (ygTahan.bisaKenaDeath == true) {
damageTotal = ygTahan.maxHP * 2;
damageTotal3 = 'Death';
}
} else {
if (tipeItemKe == 57) {
if (ygTahan.bisaKenaFreeze == true) {
z = 1;
while (z <= 3) {
if (ygTahan['status' + z] == '') {
ygTahan['status' + z] = 'FREEZE';
damageTotal3 = 'Freeze';
z = 3;
} else {
if (ygTahan['status' + z] == 'FREEZE') {
z = 3;
}
}
++z;
}
}
pilihMagicItem = 24;
} else {
if (tipeItemKe == 58) {
powerAttack = ygSerang.magicAttack * ygSerang.strength * 4;
powerDefense = ygTahan.magicDefense * ygTahan.vitality;
randSerang = random(100) + 100;
if (powerAttack - powerDefense <= randSerang) {
damageTotal = Math.ceil(randSerang);
} else {
damageTotal = Math.ceil(powerAttack - powerDefense);
}
pilihMagicItem = 28;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
cekElement(elementSerang, ygTahan);
damageTotal *= efekElement;
damageTotal = Math.ceil(damageTotal);
}
}
}
frame 399 {
function cekKalkulasi2(pilihTipeSerangan, ygSerang, ygTahan, siapaKena, tipeItemKe) {
backSpell2();
pilihMagicItem = 0;
tipeActionItem = 1;
if (pilihTipeSerangan == 4) {
if (tipeItemKe == 1) {
damageTotal = 400;
if (ygTahan.angel == true) {
damageTotal *= 2;
}
if (ygTahan.HP <= 0) {
damageTotal = 0;
}
if (ygTahan.undead == false) {
ygTahan.HP += damageTotal;
tipeActionItem = 2;
} else {
ygTahan.HP -= damageTotal;
tipeActionItem = 1;
}
} else {
if (tipeItemKe == 2) {
damageTotal = 4000;
if (ygTahan.angel == true) {
damageTotal *= 2;
}
if (ygTahan.HP <= 0) {
damageTotal = 0;
}
if (ygTahan.undead == false) {
ygTahan.HP += damageTotal;
tipeActionItem = 2;
} else {
ygTahan.HP -= damageTotal;
tipeActionItem = 1;
}
} else {
if (tipeItemKe == 3) {
damageTotal = 40000;
if (ygTahan.angel == true) {
damageTotal *= 2;
}
if (ygTahan.HP <= 0) {
damageTotal = 0;
}
if (ygTahan.undead == false) {
ygTahan.HP += damageTotal;
tipeActionItem = 2;
} else {
ygTahan.HP -= damageTotal;
tipeActionItem = 1;
}
} else {
if (tipeItemKe == 4) {
damageTotal = 100;
if (ygTahan.angel == true) {
damageTotal *= 2;
}
if (ygTahan.HP <= 0) {
damageTotal = 0;
}
ygTahan.MP += damageTotal;
tipeActionItem = 2;
} else {
if (tipeItemKe == 5) {
damageTotal = 500;
if (ygTahan.angel == true) {
damageTotal *= 2;
}
if (ygTahan.HP <= 0) {
damageTotal = 0;
}
ygTahan.MP += damageTotal;
tipeActionItem = 2;
} else {
if (tipeItemKe == 6) {
damageTotal = 2500;
if (ygTahan.angel == true) {
damageTotal *= 2;
}
if (ygTahan.HP <= 0) {
damageTotal = 0;
}
ygTahan.MP += damageTotal;
tipeActionItem = 2;
} else {
if (tipeItemKe == 8) {
if (ygTahan.undead == false) {
if (ygTahan.HP <= 0) {
damageTotal = Math.ceil(ygTahan.maxHP * 0.5);
ygTahan.HP += damageTotal;
ygTahan.anim.gotoAndStop(1);
tipeActionItem = 2;
if (siapaKena == 'kenaJagoan') {
ygTahan.activeKe = 0;
selesaiSerang(ygTahan);
}
} else {
damageTotal = 0;
}
} else {
damageTotal = ygTahan.maxHP;
ygTahan.HP -= damageTotal;
tipeActionItem = 1;
}
pilihanItemKe = 0;
} else {
if (tipeItemKe == 9) {
adaStatusKarakterKini = false;
zi = 1;
while (zi <= 3) {
if (ygTahan['status' + zi] == 'POISON' || ygTahan['status' + zi] == 'SLOW' || ygTahan['status' + zi] == 'MINI') {
if (ygTahan['status' + zi] == 'MINI') {
ygTahan.attack *= 4;
ygTahan.magicAttack *= 4;
}
damageTotal = 'Removed';
ygTahan['status' + zi] = '';
tipeActionItem = 2;
adaStatusKarakterKini = true;
}
++zi;
}
if (adaStatusKarakterKini == false) {
damageTotal = 0;
}
pilihanItemKe = 0;
} else {
if (tipeItemKe == 10) {
adaStatusKarakterKini = false;
zi = 1;
while (zi <= 3) {
if (ygTahan['status' + zi] == 'CURSE' || ygTahan['status' + zi] == 'SILENCE' || ygTahan['status' + zi] == 'CONFUSE') {
if (ygTahan['status' + zi] == 'CURSE') {
ygTahan.MP = ygTahan.maxMP;
}
damageTotal = 'Removed';
ygTahan['status' + zi] = '';
tipeActionItem = 2;
adaStatusKarakterKini = true;
}
++zi;
}
if (adaStatusKarakterKini == false) {
damageTotal = 0;
}
pilihanItemKe = 0;
} else {
if (tipeItemKe == 33) {
cekPeeper(ygTahan);
damageTotal = '';
} else {
if (tipeItemKe == 35) {
if (ygTahan.sudahDrink == false) {
ygTahan.sudahDrink = true;
ygTahan.strength *= 2;
ygTahan.strengthTrance *= 2;
ygTahan.vitality *= 2;
ygTahan.vitalityTrance *= 2;
ygTahan.speed *= 2;
ygTahan.speedTrance *= 2;
ygTahan.attack *= 2;
ygTahan.magicAttack *= 2;
ygTahan.defense *= 2;
ygTahan.magicDefense *= 2;
ygTahan.evade *= 2;
ygTahan.accuracy *= 2;
ygTahan.luck *= 2;
damageTotal = 'Stronger';
} else {
damageTotal = 0;
}
} else {
if (tipeItemKe == 36) {
if (ygTahan.bisaKenaUndead == true) {
if (ygTahan.undead == false) {
ygTahan.undead = true;
damageTotal = 'Undead';
} else {
damageTotal = 0;
}
} else {
damageTotal = 0;
}
} else {
if (tipeItemKe == 37) {
if (ygTahan.HPRegen == false) {
ygTahan.HPRegen = true;
damageTotal = 'HP Regen';
} else {
damageTotal = 0;
}
} else {
if (tipeItemKe == 38) {
if (ygTahan.MPRegen == false) {
ygTahan.MPRegen = true;
damageTotal = 'MP Regen';
} else {
damageTotal = 0;
}
} else {
if (tipeItemKe == 39) {
damageTotal = ygTahan.maxHP;
if (ygTahan.HP <= 0) {
damageTotal = 0;
}
if (ygTahan.undead == false) {
ygTahan.HP += damageTotal;
tipeActionItem = 2;
} else {
ygTahan.HP -= damageTotal;
tipeActionItem = 1;
}
} else {
if (tipeItemKe == 40) {
damageTotal = ygTahan.maxMP;
if (ygTahan.HP <= 0) {
damageTotal = 0;
}
ygTahan.MP += damageTotal;
tipeActionItem = 2;
} else {
if (tipeItemKe == 41) {
damageTotal = ygTahan.maxHP;
if (ygTahan.HP <= 0) {
damageTotal = 0;
}
if (ygTahan.undead == false) {
ygTahan.HP += damageTotal;
tipeActionItem = 2;
} else {
ygTahan.HP -= damageTotal;
tipeActionItem = 1;
}
} else {
if (tipeItemKe == 42) {
damageTotal = ygTahan.maxMP;
if (ygTahan.HP <= 0) {
damageTotal = 0;
}
ygTahan.MP += damageTotal;
tipeActionItem = 2;
} else {
if (tipeItemKe == 43) {
damageTotal = ygTahan.maxHP;
if (ygTahan.HP <= 0) {
damageTotal = 0;
} else {
ygTahan.HP += damageTotal;
damageTotal = ygTahan.maxMP;
ygTahan.MP += damageTotal;
tipeActionItem = 2;
damageTotal = 'HP MP Full';
}
} else {
if (tipeItemKe == 71) {
damageTotal = 10000;
ygTahan.HP -= damageTotal;
tipeActionItem = 1;
} else {
if (tipeItemKe == 72) {
damageTotal = 1000;
ygTahan.HP -= damageTotal;
tipeActionItem = 1;
} else {
if (tipeItemKe == 73) {
damageTotal = 100;
ygTahan.HP -= damageTotal;
tipeActionItem = 1;
} else {
if (tipeItemKe == 74) {
damageTotal = 10;
ygTahan.HP -= damageTotal;
tipeActionItem = 1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}