STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229494
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2575 · P5149

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/13486394?noj=FRM13486394-14DC" width="1" height="1"></div>

Dutamasa Battle.swf

This is the info page for
Flash #100622

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
frame 1 { function initAwal() { zlevel = 1; alevel = 1; wlevel = 1; nama1 = inputNama; nama2 = 'Computer'; musuhUnlimited = 1; zmusuhUnlimited = 1; xmusuhUnlimited = 1; if (pilihLevel == 1) { turanggaLevel = 1; manaPoint = 45; } else { if (pilihLevel >= 2) { turanggaLevel = 0; manaPoint = 30; } } turanggaLevel2 = 1; manaPoint2 = 0; turanggaLevel3 = 2; manaPoint3 = 0; i = 1; while (i <= 24) { _root['masihHidup' + i] = true; ++i; } if (pilihLevel == 1) { i = 1; while (i <= 24) { karakterLevel[i] = 2; karakterExp[i] = 0; ++i; } } else { if (pilihLevel >= 2) { i = 1; while (i <= 24) { karakterLevel[i] = 1; karakterExp[i] = 0; ++i; } } } i = 1; while (i <= 24) { karakterLevel2[i] = 2; karakterExp2[i] = 0; ++i; } i = 1; while (i <= 24) { karakterLevel3[i] = 3; karakterExp3[i] = 3; ++i; } } function saveData() { sudahSave = true; Cookies = SharedObject.getLocal('DutamasaBattle', '/'); Cookies.data.zlevelx = zlevel; Cookies.data.alevelx = alevel; Cookies.data.wlevelx = wlevel; Cookies.data.musuhUnlimitedx = musuhUnlimited; Cookies.data.zmusuhUnlimitedx = zmusuhUnlimited; Cookies.data.xmusuhUnlimitedx = xmusuhUnlimited; Cookies.data.sudahSavex = sudahSave; if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { } else { Cookies.data.turanggaLevelx = turanggaLevel; Cookies.data.manaPointx = manaPoint; } Cookies.data.turanggaLevel2x = turanggaLevel2; Cookies.data.manaPoint2x = manaPoint2; Cookies.data.turanggaLevel3x = turanggaLevel3; Cookies.data.manaPoint3x = manaPoint3; Cookies.data.nama1x = nama1; Cookies.data.nama2x = nama2; Cookies.data.pilihLevelx = pilihLevel; Cookies.data.karakterRahasiax = karakterRahasia; i = 1; while (i <= 24) { if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { } else { Cookies.data['karakterLevelx' + i] = karakterLevel[i]; Cookies.data['karakterExpx' + i] = karakterExp[i]; Cookies.data['masihHidupx' + i] = _root['masihHidup' + i]; } Cookies.data['karakterLevel2x' + i] = karakterLevel2[i]; Cookies.data['karakterExp2x' + i] = karakterExp2[i]; Cookies.data['karakterLevel3x' + i] = karakterLevel3[i]; Cookies.data['karakterExp3x' + i] = karakterExp3[i]; ++i; } i = 1; while (i <= 23) { Cookies.data['medalxx' + i] = _root['medalx' + i]; ++i; } Cookies.flush(); } function loadData() { Cookies = SharedObject.getLocal('DutamasaBattle', '/'); zlevel = Cookies.data.zlevelx; alevel = Cookies.data.alevelx; wlevel = Cookies.data.wlevelx; musuhUnlimited = Cookies.data.musuhUnlimitedx; zmusuhUnlimited = Cookies.data.zmusuhUnlimitedx; xmusuhUnlimited = Cookies.data.xmusuhUnlimitedx; sudahSave = Cookies.data.sudahSavex; turanggaLevel = Cookies.data.turanggaLevelx; manaPoint = Cookies.data.manaPointx; turanggaLevel2 = Cookies.data.turanggaLevel2x; manaPoint2 = Cookies.data.manaPoint2x; turanggaLevel3 = Cookies.data.turanggaLevel3x; manaPoint3 = Cookies.data.manaPoint3x; nama1 = Cookies.data.nama1x; nama2 = Cookies.data.nama2x; pilihLevel = Cookies.data.pilihLevelx; karakterRahasia = Cookies.data.karakterRahasiax; i = 1; while (i <= 24) { karakterLevel[i] = Cookies.data['karakterLevelx' + i]; karakterExp[i] = Cookies.data['karakterExpx' + i]; _root['masihHidup' + i] = Cookies.data['masihHidupx' + i]; karakterLevel2[i] = Cookies.data['karakterLevel2x' + i]; karakterExp2[i] = Cookies.data['karakterExp2x' + i]; karakterLevel3[i] = Cookies.data['karakterLevel3x' + i]; karakterExp3[i] = Cookies.data['karakterExp3x' + i]; ++i; } i = 1; while (i <= 23) { _root['medalx' + i] = Cookies.data['medalxx' + i]; ++i; } } function clearData() { Cookies.clear(); sudahSave = undefined; karakterRahasia = undefined; Cookies.data.zlevelx.clear(); Cookies.data.alevelx.clear(); Cookies.data.wlevelx.clear(); Cookies.data.sudahSavex.clear(); Cookies.data.turanggaLevelx.clear(); Cookies.data.manaPointx.clear(); Cookies.data.nama1x.clear(); Cookies.data.nama2x.clear(); Cookies.data.pilihLevelx.clear(); Cookies.data.karakterRahasiax.clear(); i = 1; while (i <= 24) { Cookies.data['karakterLevelx' + i].clear(); Cookies.data['karakterExpx' + i].clear(); Cookies.data['masihHidupx' + i].clear(); ++i; } } function backMusic1() { myMusic.stop(); myMusic = new Sound(music); myMusic.attachSound('backMusic1'); myMusic.setVolume(volume1); myMusic.start(0, 1); myMusic.onSoundComplete = function () { backMusic1(); }; } function backMusic2() { myMusic.stop(); myMusic = new Sound(music); myMusic.attachSound('backMusic2'); myMusic.setVolume(volume1); myMusic.start(0, 1); myMusic.onSoundComplete = function () { backMusic2(); }; } function backMusic3() { myMusic.stop(); myMusic = new Sound(music); myMusic.attachSound('backMusic3'); myMusic.setVolume(volume1); myMusic.start(0, 1); myMusic.onSoundComplete = function () { backMusic3(); }; } function backNormalAttack() { mySound = new Sound(sound); mySound.attachSound('backNormalAttack'); mySound.start(0, 1); mySound.setVolume(volume2); } function backSmash() { mySound = new Sound(sound); mySound.attachSound('backSmash'); mySound.start(0, 1); mySound.setVolume(volume2); } function backStrike() { mySound = new Sound(sound); mySound.attachSound('backStrike'); mySound.start(0, 1); mySound.setVolume(volume2); } function backSpecial() { mySound = new Sound(sound); mySound.attachSound('backSpecial'); mySound.start(0, 1); mySound.setVolume(volume2); } function backMaster() { mySound = new Sound(sound); mySound.attachSound('backMaster'); mySound.start(0, 1); mySound.setVolume(volume2); } function backDoubleAttack() { mySound = new Sound(sound); mySound.attachSound('backDoubleAttack'); mySound.start(0, 1); mySound.setVolume(volume2); } function backSlash() { mySound = new Sound(sound); mySound.attachSound('backSlash'); mySound.start(0, 1); mySound.setVolume(volume2); } function backShoot() { mySound = new Sound(sound); mySound.attachSound('backShoot'); mySound.start(0, 1); mySound.setVolume(volume2); } function backDoubleShoot() { mySound = new Sound(sound); mySound.attachSound('backDoubleShoot'); mySound.start(0, 1); mySound.setVolume(volume2); } function backBomb() { mySound = new Sound(sound); mySound.attachSound('backBomb'); mySound.start(0, 1); mySound.setVolume(volume2); } function backIceBerg() { mySound = new Sound(sound); mySound.attachSound('backIceBerg'); mySound.start(0, 1); mySound.setVolume(volume2); } function backIceBerg2() { mySound = new Sound(sound); mySound.attachSound('backIceBerg2'); mySound.start(0, 1); mySound.setVolume(volume2); } function backBurn() { mySound = new Sound(sound); mySound.attachSound('backBurn'); mySound.start(0.5, 1); mySound.setVolume(volume2); mySound = new Sound(sound); mySound.attachSound('backBurn'); mySound.start(0.5, 1); mySound.setVolume(volume2); } function backEarthquake() { mySound = new Sound(sound); mySound.attachSound('backEarthquake'); mySound.start(0, 1); mySound.setVolume(volume2); } function backAcid() { mySound = new Sound(sound); mySound.attachSound('backAcid'); mySound.start(0, 1); mySound.setVolume(volume2); } function backAcid2() { mySound = new Sound(sound); mySound.attachSound('backAcid2'); mySound.start(0, 1); mySound.setVolume(volume2); } function backFlood() { mySound = new Sound(sound); mySound.attachSound('backFlood'); mySound.start(0, 1); mySound.setVolume(volume2); } function backThunder() { mySound = new Sound(sound); mySound.attachSound('backThunder'); mySound.start(0, 1); mySound.setVolume(volume2); } function backMeteor() { mySound = new Sound(sound); mySound.attachSound('backMeteor'); mySound.start(0, 1); mySound.setVolume(volume2); } function backFreeze() { mySound = new Sound(sound); mySound.attachSound('backFreeze'); mySound.start(0, 1); mySound.setVolume(volume2); } function backSunrise() { mySound = new Sound(sound); mySound.attachSound('backSunrise'); mySound.start(0, 1); mySound.setVolume(volume2); } function backHeal1() { mySound = new Sound(sound); mySound.attachSound('backHeal1'); mySound.start(0, 1); mySound.setVolume(volume2); } function backHeal2() { mySound = new Sound(sound); mySound.attachSound('backHeal1'); mySound.start(0, 1); mySound.setVolume(volume2); mySound = new Sound(sound); mySound.attachSound('backHeal1'); mySound.start(-1, 1); mySound.setVolume(volume2); } function backShield1() { mySound = new Sound(sound); mySound.attachSound('backShield1'); mySound.start(0, 1); mySound.setVolume(volume2); } function backShield2() { mySound = new Sound(sound); mySound.attachSound('backShield1'); mySound.start(0, 1); mySound.setVolume(volume2); mySound = new Sound(sound); mySound.attachSound('backShield1'); mySound.start(-1, 1); mySound.setVolume(volume2); } function backRage1() { mySound = new Sound(sound); mySound.attachSound('backRage1'); mySound.start(0, 1); mySound.setVolume(volume2); } function backRage2() { mySound = new Sound(sound); mySound.attachSound('backRage1'); mySound.start(0, 1); mySound.setVolume(volume2); mySound = new Sound(sound); mySound.attachSound('backRage1'); mySound.start(-1, 1); mySound.setVolume(volume2); } function backIlusi() { mySound = new Sound(sound); mySound.attachSound('backIlusi'); mySound.start(0, 1); mySound.setVolume(volume2); } function backPower1() { mySound = new Sound(sound); mySound.attachSound('backPower1'); mySound.start(0, 1); mySound.setVolume(volume2); } function backPower2() { mySound = new Sound(sound); mySound.attachSound('backPower1'); mySound.start(0, 1); mySound.setVolume(volume2); mySound = new Sound(sound); mySound.attachSound('backPower1'); mySound.start(-1, 1); mySound.setVolume(volume2); } function backLevel() { mySound = new Sound(sound); mySound.attachSound('backLevel'); mySound.start(0, 1); mySound.setVolume(volume2); } stop(); fscommand('showmenu', false); fscommand('fullscreen', false); fscommand('showmenu', false); fscommand('trapallkeys', true); Stage.showMenu = false; volume1 = 125; volume2 = 200; this.onEnterFrame = function () { persen = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); bar_mc.gotoAndStop(persen); bar_mc.xpersen = persen + '%'; if (persen >= 100) { delete this.onEnterFrame; gotoAndStop('complete'); } }; qnama1 = 'Player 1'; qnama2 = 'Player 2'; pilihCard1 = 1; pilihCard2 = 2; karakterLevel = new Array(); karakterExp = new Array(); karakterLevel2 = new Array(); karakterExp2 = new Array(); karakterLevel3 = new Array(); karakterExp3 = new Array(); loadData(); if (karakterRahasia == undefined) { karakterRahasia = false; } if (sudahSave == undefined) { inputNama = 'Player'; pilihLevel = 1; } if (medalx1 == undefined) { i = 1; while (i <= 23) { _root['medalx' + i] = false; ++i; } } musikNyala = 1; soundNyala = 1; kualitasGrafis = 1; _quality = 'HIGH'; } // unknown tag 88 length 75 movieClip 12 { frame 1 { stop(); } } movieClip 15 { } instance of movieClip 15 { onClipEvent (release) { getURL('http://www.belugerinstudios.com', '_blank'); } } movieClip 24 { } movieClip 35 { } movieClip 52 { frame 1 { stop(); bb_time = Math.random() * 230 + 60; bb_startTime = 0; this.onEnterFrame = function () { ++bb_startTime; if (bb_startTime > bb_time) { delete this.onEnterFrame; this.gotoAndPlay(2); } }; } } movieClip 53 { } instance of movieClip 53 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=preloader', '_blank'); } } movieClip 54 transisi_mc { frame 1 { stop(); } frame 15 { _root.cekKemana(_root.kemanax); } } movieClip 75 efekDarah1 { frame 11 { stop(); removeMovieClip(this); } } movieClip 90 efekDarah2 { frame 11 { stop(); removeMovieClip(this); } } movieClip 95 { } movieClip 154 efekPukul { frame 35 { stop(); removeMovieClip(this); } } movieClip 172 efekCakar { frame 12 { stop(); removeMovieClip(this); } } movieClip 173 efekCakar2 { frame 15 { stop(); removeMovieClip(this); } } movieClip 216 { frame 22 { stop(); removeMovieClip(this); } } movieClip 217 efekEs { } movieClip 240 { frame 50 { stop(); removeMovieClip(this); } } movieClip 241 efekApi { frame 50 { stop(); removeMovieClip(this); } } movieClip 264 { frame 44 { stop(); } } movieClip 265 efekAcid { frame 45 { stop(); removeMovieClip(this); } } movieClip 288 { frame 45 { stop(); } } movieClip 289 efekFlood { frame 45 { stop(); removeMovieClip(this); } } movieClip 312 { frame 45 { stop(); } } movieClip 313 efekPetir { } movieClip 346 { frame 16 { stop(); } } movieClip 347 efekBeku { frame 20 { stop(); removeMovieClip(this); } } movieClip 390 { frame 21 { stop(); } } movieClip 391 efekMatahari { frame 20 { stop(); removeMovieClip(this); } } movieClip 432 { } movieClip 433 efekLedakan { frame 20 { stop(); removeMovieClip(this); } } movieClip 474 { } movieClip 475 efekBomb { frame 20 { stop(); removeMovieClip(this); } } movieClip 498 { frame 45 { stop(); } } movieClip 499 efekPenguat1 { frame 45 { stop(); removeMovieClip(this); } } movieClip 500 efekPenguat2 { frame 45 { stop(); removeMovieClip(this); } } movieClip 533 { frame 50 { stop(); } } movieClip 534 efekIlusi { frame 50 { stop(); removeMovieClip(this); } } movieClip 557 { frame 45 { stop(); } } movieClip 558 efekPelindung1 { frame 45 { stop(); removeMovieClip(this); } } movieClip 559 efekPower1 { frame 45 { stop(); removeMovieClip(this); } } movieClip 560 efekPower2 { frame 45 { stop(); removeMovieClip(this); } } movieClip 583 { frame 45 { stop(); } } movieClip 584 efekHeal1 { frame 45 { stop(); removeMovieClip(this); } } movieClip 585 efekHeal2 { frame 45 { stop(); removeMovieClip(this); } } movieClip 586 efekPelindung2 { frame 45 { stop(); removeMovieClip(this); } } movieClip 595 { frame 30 { stop(); } } movieClip 596 efekTabrakan { frame 30 { stop(); removeMovieClip(this); } } movieClip 637 { frame 10 { _root.backBomb(); } frame 70 { _root.backBomb(); } frame 130 { _root.backBomb(); } frame 180 { stop(); removeMovieClip(this); } } movieClip 638 efekMeteor { frame 220 { stop(); removeMovieClip(this); } } movieClip 659 { frame 172 { stop(); } } movieClip 660 efekTanah { frame 175 { stop(); removeMovieClip(this); } } movieClip 681 { frame 1 { stop(); } } movieClip 686 { frame 1 { stop(); } } movieClip 687 kalkulasi { frame 1 { stop(); } } movieClip 730 { frame 41 { stop(); } } movieClip 731 efekLevel { frame 45 { stop(); removeMovieClip(this); } } movieClip 734 miss_mc { } movieClip 736 xsound { } // unknown tag 88 length 87 // unknown tag 88 length 30 // unknown tag 88 length 87 movieClip 769 { } movieClip 770 { frame 1 { stop(); } } movieClip 775 { } movieClip 776 { frame 1 { stop(); } } movieClip 781 { } movieClip 782 { frame 1 { stop(); } } movieClip 788 pilihan_mc { frame 1 { stop(); } frame 2 { function cekKonfigurasi() { if (_root.musikNyala == 0) { musik_mc1.gotoAndStop(2); musik_mc2.gotoAndStop(1); _root.volume1 = 0; _root.myMusic.setVolume(_root.volume1); } else { musik_mc1.gotoAndStop(1); musik_mc2.gotoAndStop(2); _root.volume1 = 125; _root.myMusic.setVolume(_root.volume1); } if (_root.soundNyala == 0) { sound_mc1.gotoAndStop(2); sound_mc2.gotoAndStop(1); _root.volume2 = 0; } else { sound_mc1.gotoAndStop(1); sound_mc2.gotoAndStop(2); _root.volume2 = 200; } if (_root.kualitasGrafis == 1) { kualiti1.gotoAndStop(1); kualiti2.gotoAndStop(2); kualiti3.gotoAndStop(2); _quality = 'HIGH'; } else { if (_root.kualitasGrafis == 2) { kualiti1.gotoAndStop(2); kualiti2.gotoAndStop(1); kualiti3.gotoAndStop(2); _quality = 'MEDIUM'; } else { if (_root.kualitasGrafis == 3) { kualiti1.gotoAndStop(2); kualiti2.gotoAndStop(2); kualiti3.gotoAndStop(1); _quality = 'LOW'; } } } } cekKonfigurasi(); musik_mc1.onRelease = function () { _root.musikNyala = 1; cekKonfigurasi(); }; musik_mc2.onRelease = function () { _root.musikNyala = 0; cekKonfigurasi(); }; sound_mc1.onRelease = function () { _root.soundNyala = 1; cekKonfigurasi(); }; sound_mc2.onRelease = function () { _root.soundNyala = 0; cekKonfigurasi(); }; kualiti1.onRelease = function () { _root.kualitasGrafis = 1; cekKonfigurasi(); }; kualiti2.onRelease = function () { _root.kualitasGrafis = 2; cekKonfigurasi(); }; kualiti3.onRelease = function () { _root.kualitasGrafis = 3; cekKonfigurasi(); }; } } frame 20 { function cekKemana(indi) { if (indi == 'battle') { gotoAndStop(1955); } else { if (indi == 'completed') { gotoAndStop(1956); } else { if (indi == 'completed2') { gotoAndStop(1957); } else { if (indi == 'select') { gotoAndStop(1951); } else { if (indi == 'map') { gotoAndStop(1929); } else { if (indi == 'story') { gotoAndStop(423); } else { if (indi == 'map2') { gotoAndStop(1930); } else { if (indi == 'complete') { gotoAndStop('complete'); } else { if (indi == 'menu') { gotoAndStop(422); } else { if (indi == 'option') { gotoAndStop(1927); } else { if (indi == 'help') { gotoAndStop(1923); } else { if (indi == 'credit') { gotoAndStop(1928); } else { if (indi == 'win') { gotoAndStop(1958); } else { if (indi == 'lose') { gotoAndStop(1); } else { if (indi == 'pvp') { gotoAndStop(1950); } else { if (indi == 'bubble') { gotoAndStop(41); } else { if (indi == 'belugerin') { gotoAndStop(271); } else { if (indi == 'medals') { gotoAndStop(1926); } } } } } } } } } } } } } } } } } } } stop(); sound = attachMovie('xsound', 'sound', 90000); music = attachMovie('xsound', 'music', 90001); music._x = -500; sound._x = -500; music._y = -500; sound._y = -500; Selection.setFocus(input_txt); enter_btn.onRelease = function () { stop(); _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); if (domain == 'bubblebox.com') { transisi.gotoAndPlay(2); kemanax = 'bubble'; } else { transisi.gotoAndPlay(2); kemanax = 'bubble'; } }; transisi = attachMovie('transisi_mc', 'transisi_mc', 9000); } instance of movieClip 15 { onClipEvent (release) { getURL('http://www.belugerinstudios.com', '_blank'); } } instance of movieClip 53 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=preloader', '_blank'); } } frame 30 { stop(); } movieClip 824 { } instance of movieClip 824 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=sitelocked', '_blank'); } } frame 31 { prevFrame(); gotoAndStop(undefined); undefined; } frame 41 { play(); } movieClip 826 { } movieClip 828 { } movieClip 858 { } movieClip 859 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 860 { } movieClip 861 { frame 1 { this.link.onRelease = function () { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1226&subid=splash', '_blank'); }; } frame 210 { stop(); } } movieClip 863 { } instance of movieClip 863 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=splash', '_blank'); } } frame 270 { stop(); gotoAndStop(271); } frame 271 { play(); } instance of movieClip 824 { onClipEvent (release) { getURL('http://www.belugerinstudios.com', '_blank'); } } movieClip 866 { } frame 421 { stop(); transisi.gotoAndPlay(2); kemanax = 'menu'; } frame 422 { function pilihMusuhX() { randomx = Math.floor(Math.random() * 2); if (pilihLevel == 1) { jenisMusuh[0] = 1 + randomx; levelMusuh[0] = 1; jenisMusuh[1] = 1 + randomx; levelMusuh[1] = 1; jenisMusuh[2] = 1 + randomx; levelMusuh[2] = 1; jenisMusuh[3] = 2 + randomx; levelMusuh[3] = 1; jenisMusuh[4] = 2 + randomx; levelMusuh[4] = 2; jenisMusuh[5] = 3 + randomx; levelMusuh[5] = 2; jenisMusuh[6] = 3 + randomx; levelMusuh[6] = 2; jenisMusuh[7] = 4 + randomx; levelMusuh[7] = 3; jenisMusuh[8] = 4 + randomx; levelMusuh[8] = 3; jenisMusuh[9] = 5 + randomx; levelMusuh[9] = 3; jenisMusuh[10] = 5 + randomx; levelMusuh[10] = 4; jenisMusuh[11] = 6 + randomx; levelMusuh[11] = 4; jenisMusuh[12] = 6 + randomx; levelMusuh[12] = 4; jenisMusuh[13] = 7 + randomx; levelMusuh[13] = 5; jenisMusuh[14] = 7 + randomx; levelMusuh[14] = 5; jenisMusuh[15] = 8 + randomx; levelMusuh[15] = 5; jenisMusuh[16] = 8 + randomx; levelMusuh[16] = 6; jenisMusuh[17] = 9 + randomx; levelMusuh[17] = 6; jenisMusuh[18] = 9 + randomx; levelMusuh[18] = 6; jenisMusuh[19] = 10 + randomx; levelMusuh[19] = 7; jenisMusuh[20] = 10 + randomx; levelMusuh[20] = 7; jenisMusuh[21] = 11 + randomx; levelMusuh[21] = 7; jenisMusuh[22] = 11 + randomx; levelMusuh[22] = 8; jenisMusuh[23] = 12 + randomx; levelMusuh[23] = 8; jenisMusuh[24] = 12 + randomx; levelMusuh[24] = 8; jenisMusuh[25] = 13 + randomx; levelMusuh[25] = 9; jenisMusuh[26] = 13 + randomx; levelMusuh[26] = 9; jenisMusuh[27] = 14 + randomx; levelMusuh[27] = 9; jenisMusuh[28] = 14 + randomx; levelMusuh[28] = 10; jenisMusuh[29] = 15 + randomx; levelMusuh[29] = 10; jenisMusuh[30] = 15 + randomx; levelMusuh[30] = 10; jenisMusuh[31] = 15 + randomx; levelMusuh[31] = 11; jenisMusuh[32] = 16 + randomx; levelMusuh[32] = 11; jenisMusuh[33] = 16 + randomx; levelMusuh[33] = 11; jenisMusuh[34] = 16 + randomx; levelMusuh[34] = 12; jenisMusuh[35] = 17 + randomx; levelMusuh[35] = 12; jenisMusuh[36] = 17 + randomx; levelMusuh[36] = 12; jenisMusuh[37] = 17 + randomx; levelMusuh[37] = 13; jenisMusuh[38] = 18 + randomx; levelMusuh[38] = 13; jenisMusuh[39] = 18 + randomx; levelMusuh[39] = 13; jenisMusuh[40] = 18 + randomx; levelMusuh[40] = 14; jenisMusuh[41] = 19 + randomx; levelMusuh[41] = 14; jenisMusuh[42] = 19 + randomx; levelMusuh[42] = 14; jenisMusuh[43] = 19 + randomx; levelMusuh[43] = 15; jenisMusuh[44] = 20 + randomx; levelMusuh[44] = 15; jenisMusuh[45] = 20 + randomx; levelMusuh[45] = 16; jenisMusuh[46] = 20 + randomx; levelMusuh[46] = 17; jenisMusuh[47] = 21; levelMusuh[47] = 18; jenisMusuh[48] = 21; levelMusuh[48] = 19; jenisMusuh[49] = 21; levelMusuh[49] = 20; jenisMusuh[50] = 22; levelMusuh[50] = 21; } else { if (pilihLevel >= 2) { jenisMusuh[0] = 1 + randomx; levelMusuh[0] = 1; jenisMusuh[1] = 1 + randomx; levelMusuh[1] = 1; jenisMusuh[2] = 2 + randomx; levelMusuh[2] = 1; jenisMusuh[3] = 2 + randomx; levelMusuh[3] = 2; jenisMusuh[4] = 3 + randomx; levelMusuh[4] = 2; jenisMusuh[5] = 3 + randomx; levelMusuh[5] = 2; jenisMusuh[6] = 4 + randomx; levelMusuh[6] = 3; jenisMusuh[7] = 4 + randomx; levelMusuh[7] = 3; jenisMusuh[8] = 5 + randomx; levelMusuh[8] = 3; jenisMusuh[9] = 5 + randomx; levelMusuh[9] = 4; jenisMusuh[10] = 6 + randomx; levelMusuh[10] = 4; jenisMusuh[11] = 6 + randomx; levelMusuh[11] = 4; jenisMusuh[12] = 7 + randomx; levelMusuh[12] = 5; jenisMusuh[13] = 7 + randomx; levelMusuh[13] = 5; jenisMusuh[14] = 8 + randomx; levelMusuh[14] = 5; jenisMusuh[15] = 8 + randomx; levelMusuh[15] = 6; jenisMusuh[16] = 9 + randomx; levelMusuh[16] = 6; jenisMusuh[17] = 9 + randomx; levelMusuh[17] = 6; jenisMusuh[18] = 10 + randomx; levelMusuh[18] = 7; jenisMusuh[19] = 10 + randomx; levelMusuh[19] = 7; jenisMusuh[20] = 11 + randomx; levelMusuh[20] = 7; jenisMusuh[21] = 11 + randomx; levelMusuh[21] = 8; jenisMusuh[22] = 12 + randomx; levelMusuh[22] = 8; jenisMusuh[23] = 12 + randomx; levelMusuh[23] = 8; jenisMusuh[24] = 13 + randomx; levelMusuh[24] = 9; jenisMusuh[25] = 13 + randomx; levelMusuh[25] = 9; jenisMusuh[26] = 14 + randomx; levelMusuh[26] = 9; jenisMusuh[27] = 14 + randomx; levelMusuh[27] = 10; jenisMusuh[28] = 14 + randomx; levelMusuh[28] = 10; jenisMusuh[29] = 15 + randomx; levelMusuh[29] = 10; jenisMusuh[30] = 15 + randomx; levelMusuh[30] = 11; jenisMusuh[31] = 15 + randomx; levelMusuh[31] = 11; jenisMusuh[32] = 16 + randomx; levelMusuh[32] = 12; jenisMusuh[33] = 16 + randomx; levelMusuh[33] = 12; jenisMusuh[34] = 16 + randomx; levelMusuh[34] = 13; jenisMusuh[35] = 17 + randomx; levelMusuh[35] = 13; jenisMusuh[36] = 17 + randomx; levelMusuh[36] = 14; jenisMusuh[37] = 17 + randomx; levelMusuh[37] = 14; jenisMusuh[38] = 18 + randomx; levelMusuh[38] = 15; jenisMusuh[39] = 18 + randomx; levelMusuh[39] = 15; jenisMusuh[40] = 18 + randomx; levelMusuh[40] = 16; jenisMusuh[41] = 19 + randomx; levelMusuh[41] = 16; jenisMusuh[42] = 19 + randomx; levelMusuh[42] = 17; jenisMusuh[43] = 19 + randomx; levelMusuh[43] = 17; jenisMusuh[44] = 20 + randomx; levelMusuh[44] = 18; jenisMusuh[45] = 20 + randomx; levelMusuh[45] = 18; jenisMusuh[46] = 20 + randomx; levelMusuh[46] = 19; jenisMusuh[47] = 21; levelMusuh[47] = 20; jenisMusuh[48] = 21; levelMusuh[48] = 21; jenisMusuh[49] = 21; levelMusuh[49] = 21; jenisMusuh[50] = 22; levelMusuh[50] = 25; } } } function pilihMusuhX2() { randomx = 0; if (pilihLevel == 1) { jenisMusuh[0] = 1 + randomx; levelMusuh[0] = 1; jenisMusuh[1] = 1 + randomx; levelMusuh[1] = 1; jenisMusuh[2] = 1 + randomx; levelMusuh[2] = 1; jenisMusuh[3] = 2 + randomx; levelMusuh[3] = 1; jenisMusuh[4] = 2 + randomx; levelMusuh[4] = 2; jenisMusuh[5] = 3 + randomx; levelMusuh[5] = 2; jenisMusuh[6] = 3 + randomx; levelMusuh[6] = 2; jenisMusuh[7] = 4 + randomx; levelMusuh[7] = 3; jenisMusuh[8] = 4 + randomx; levelMusuh[8] = 3; jenisMusuh[9] = 5 + randomx; levelMusuh[9] = 3; jenisMusuh[10] = 5 + randomx; levelMusuh[10] = 4; jenisMusuh[11] = 6 + randomx; levelMusuh[11] = 4; jenisMusuh[12] = 6 + randomx; levelMusuh[12] = 4; jenisMusuh[13] = 7 + randomx; levelMusuh[13] = 5; jenisMusuh[14] = 7 + randomx; levelMusuh[14] = 5; jenisMusuh[15] = 8 + randomx; levelMusuh[15] = 5; jenisMusuh[16] = 8 + randomx; levelMusuh[16] = 6; jenisMusuh[17] = 9 + randomx; levelMusuh[17] = 6; jenisMusuh[18] = 9 + randomx; levelMusuh[18] = 6; jenisMusuh[19] = 10 + randomx; levelMusuh[19] = 7; jenisMusuh[20] = 10 + randomx; levelMusuh[20] = 7; jenisMusuh[21] = 11 + randomx; levelMusuh[21] = 7; jenisMusuh[22] = 11 + randomx; levelMusuh[22] = 8; jenisMusuh[23] = 12 + randomx; levelMusuh[23] = 8; jenisMusuh[24] = 12 + randomx; levelMusuh[24] = 8; jenisMusuh[25] = 13 + randomx; levelMusuh[25] = 9; jenisMusuh[26] = 13 + randomx; levelMusuh[26] = 9; jenisMusuh[27] = 14 + randomx; levelMusuh[27] = 9; jenisMusuh[28] = 14 + randomx; levelMusuh[28] = 10; jenisMusuh[29] = 15 + randomx; levelMusuh[29] = 10; jenisMusuh[30] = 15 + randomx; levelMusuh[30] = 10; jenisMusuh[31] = 15 + randomx; levelMusuh[31] = 11; jenisMusuh[32] = 16 + randomx; levelMusuh[32] = 11; jenisMusuh[33] = 16 + randomx; levelMusuh[33] = 11; jenisMusuh[34] = 16 + randomx; levelMusuh[34] = 12; jenisMusuh[35] = 17 + randomx; levelMusuh[35] = 12; jenisMusuh[36] = 17 + randomx; levelMusuh[36] = 12; jenisMusuh[37] = 17 + randomx; levelMusuh[37] = 13; jenisMusuh[38] = 18 + randomx; levelMusuh[38] = 13; jenisMusuh[39] = 18 + randomx; levelMusuh[39] = 13; jenisMusuh[40] = 18 + randomx; levelMusuh[40] = 14; jenisMusuh[41] = 19 + randomx; levelMusuh[41] = 14; jenisMusuh[42] = 19 + randomx; levelMusuh[42] = 14; jenisMusuh[43] = 19 + randomx; levelMusuh[43] = 15; jenisMusuh[44] = 20 + randomx; levelMusuh[44] = 15; jenisMusuh[45] = 20 + randomx; levelMusuh[45] = 16; jenisMusuh[46] = 20 + randomx; levelMusuh[46] = 17; jenisMusuh[47] = 21; levelMusuh[47] = 18; jenisMusuh[48] = 21; levelMusuh[48] = 19; jenisMusuh[49] = 21; levelMusuh[49] = 20; jenisMusuh[50] = 22; levelMusuh[50] = 21; } else { if (pilihLevel >= 2) { jenisMusuh[0] = 1 + randomx; levelMusuh[0] = 1; jenisMusuh[1] = 1 + randomx; levelMusuh[1] = 1; jenisMusuh[2] = 2 + randomx; levelMusuh[2] = 1; jenisMusuh[3] = 2 + randomx; levelMusuh[3] = 2; jenisMusuh[4] = 3 + randomx; levelMusuh[4] = 2; jenisMusuh[5] = 3 + randomx; levelMusuh[5] = 2; jenisMusuh[6] = 4 + randomx; levelMusuh[6] = 3; jenisMusuh[7] = 4 + randomx; levelMusuh[7] = 3; jenisMusuh[8] = 5 + randomx; levelMusuh[8] = 3; jenisMusuh[9] = 5 + randomx; levelMusuh[9] = 4; jenisMusuh[10] = 6 + randomx; levelMusuh[10] = 4; jenisMusuh[11] = 6 + randomx; levelMusuh[11] = 4; jenisMusuh[12] = 7 + randomx; levelMusuh[12] = 5; jenisMusuh[13] = 7 + randomx; levelMusuh[13] = 5; jenisMusuh[14] = 8 + randomx; levelMusuh[14] = 5; jenisMusuh[15] = 8 + randomx; levelMusuh[15] = 6; jenisMusuh[16] = 9 + randomx; levelMusuh[16] = 6; jenisMusuh[17] = 9 + randomx; levelMusuh[17] = 6; jenisMusuh[18] = 10 + randomx; levelMusuh[18] = 7; jenisMusuh[19] = 10 + randomx; levelMusuh[19] = 7; jenisMusuh[20] = 11 + randomx; levelMusuh[20] = 7; jenisMusuh[21] = 11 + randomx; levelMusuh[21] = 8; jenisMusuh[22] = 12 + randomx; levelMusuh[22] = 8; jenisMusuh[23] = 12 + randomx; levelMusuh[23] = 8; jenisMusuh[24] = 13 + randomx; levelMusuh[24] = 9; jenisMusuh[25] = 13 + randomx; levelMusuh[25] = 9; jenisMusuh[26] = 14 + randomx; levelMusuh[26] = 9; jenisMusuh[27] = 14 + randomx; levelMusuh[27] = 10; jenisMusuh[28] = 14 + randomx; levelMusuh[28] = 10; jenisMusuh[29] = 15 + randomx; levelMusuh[29] = 10; jenisMusuh[30] = 15 + randomx; levelMusuh[30] = 11; jenisMusuh[31] = 15 + randomx; levelMusuh[31] = 11; jenisMusuh[32] = 16 + randomx; levelMusuh[32] = 12; jenisMusuh[33] = 16 + randomx; levelMusuh[33] = 12; jenisMusuh[34] = 16 + randomx; levelMusuh[34] = 13; jenisMusuh[35] = 17 + randomx; levelMusuh[35] = 13; jenisMusuh[36] = 17 + randomx; levelMusuh[36] = 14; jenisMusuh[37] = 17 + randomx; levelMusuh[37] = 14; jenisMusuh[38] = 18 + randomx; levelMusuh[38] = 15; jenisMusuh[39] = 18 + randomx; levelMusuh[39] = 15; jenisMusuh[40] = 18 + randomx; levelMusuh[40] = 16; jenisMusuh[41] = 19 + randomx; levelMusuh[41] = 16; jenisMusuh[42] = 19 + randomx; levelMusuh[42] = 17; jenisMusuh[43] = 19 + randomx; levelMusuh[43] = 17; jenisMusuh[44] = 20 + randomx; levelMusuh[44] = 18; jenisMusuh[45] = 20 + randomx; levelMusuh[45] = 18; jenisMusuh[46] = 20 + randomx; levelMusuh[46] = 19; jenisMusuh[47] = 21; levelMusuh[47] = 20; jenisMusuh[48] = 21; levelMusuh[48] = 21; jenisMusuh[49] = 21; levelMusuh[49] = 21; jenisMusuh[50] = 22; levelMusuh[50] = 25; } } } function init2() { karakterNama = new Array('', 'Boneman', 'Clubswinger', 'Hammerman', 'Stonebow', 'Raptor Rider', 'Bronto Rider', 'Stone Catapult', 'Swordsman', 'Spearsman', 'Archerman', 'Axeman', 'Paladin', 'Knight', 'Arrow Catapult', 'Gunman', 'Rifleman', 'Grenader', 'Rocket Launcer', 'Panzer', 'Combat Tank', 'Missile Silo', 'Lord Dragon', 'White Guardian', 'Black Guardian'); karakterLife = new Array('', 125, 150, 200, 150, 175, 300, 400, 100, 125, 150, 200, 150, 120, 200, 300, 400, 600, 200, 1000, 1500, 2500, 5000, 10000, 7500); karakterPower = new Array('', 20, 25, 30, 35, 40, 45, 50, 20, 25, 30, 35, 50, 45, 50, 20, 25, 30, 35, 40, 45, 50, 100, 150, 125); karakterMaxLevel = new Array('', 7, 7, 7, 7, 7, 7, 12, 14, 14, 14, 14, 14, 14, 19, 21, 21, 21, 21, 21, 21, 25, 25, 25, 25); karakterMana = new Array('', 25, 30, 35, 40, 45, 50, 55, 30, 35, 40, 45, 50, 55, 60, 35, 40, 45, 50, 55, 60, 65, 90, 125, 100); karakterMana2 = new Array('', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); karakterRegen = new Array('', 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 10, 15, 15); karakterTurangga = new Array('', 0, 0, 0, 2, 2, 2, 5, 4, 4, 4, 6, 6, 6, 9, 8, 8, 8, 10, 10, 10, 13, 15, 14, 14); karakterAttack = new Array('', 1, 1, 1, 3, 2, 1, 4, 2, 2, 3, 4, 2, 3, 6, 2, 3, 4, 5, 5, 5, 8, 9, 5, 10); karakterDefense = new Array('', 2, 4, 5, 3, 4, 6, 3, 1, 3, 1, 3, 5, 4, 2, 3, 2, 1, 3, 7, 6, 4, 9, 10, 5); jenisAttack = new Array('', 'Normal Attack', 'Smash', 'Strike', 'Special Attack', 'Master Attack', 'Double Attack', 'Slash', 'Shoot', 'Double Shoot', 'Bomb', 'Iceberg', 'Burn', 'Earthquake', 'Acid', 'Flood', 'Thunderbolt', 'Meteor', 'Freeze', 'Sunrise', 'Clear'); infoAttack2 = new Array('', 'Serangan biasa yang tidak mempunyai pengaruh khusus, serangan ini tidak membutuhkan power, seluruh karakter dapat melakukan serangan ini kapanpun.', 'Serangan mematikan dan cepat, dapat meningkatkan nilai serangan sebanyak 25% dari nilai serangan karakter yang menyerang, serangan ini juga akan mengurangi power lawan sebanyak 50%.', 'Serangan maut, dapat meningkatkan nilai serangan sebanyak 50% dari nilai serangan karakter yang menyerang.', 'Serangan spesial, dapat meningkatkan nilai serangan sebanyak 50% dari seluruh damage, berpengaruh ke nilai pertahanan lawan, juga akan mengurangi power lawan 75%.', 'Serangan master, dapat meningkatkan nilai serangan sebanyak 75% dari seluruh damage, berpengaruh ke nilai pertahanan lawan', 'Dapat menyerang lawan dengan normal attack sebanyak dua kali pada saat yang bersamaan, namun akurasi spell ini hanya 75%.', 'Serangan cabikkan berbahaya, dapat meningkatkan nilai serangan sampai dengan 100%, namun karena terlalu berbahaya, dapat mengurangi nyawa kamu maksimal sampai dengan 25%.', 'Serangan tembakan jarak jauh, lawan yang terkena tembakan ini tidak dapat jalan 1 kali turn, namun akurasi tembakan ini hanya 50%.', 'Dapat menyerang lawan dengan shoot sebanyak dua kali pada saat bersamaan, namun akurasi spell ini hanya 25%.', 'Serangan bomb yg mematikan, dapat meningkatkan nilai serangan sampai dengan 150%, namun karena terlalu berbahaya, dapat mengurangi nyawa kamu maksimal sampai dengan 50%.', 'Serangan es yang membuat beku, karakter yang terkena serangan ini akan menjadi beku dan tidak dapat berjalan sebanyak 3 kali turn, namun akurasi tembakan ini hanya 50%.', 'Serangan bakar yang menghanguskan, dapat membakar lawan dan lawan yg terbakar akan berkurang nyawanya sebanyak 25% dari nyawa saat ini, berlaku selama 4 turn.', 'Serangan gempa bumi, dapat mengurangi nyawa anda dan lawan selama kurang lebih 2 detik secara terus menerus, selama gempa berlangsung anda dapat action.', 'Serangan beracun yg sangat mematikan, dapat meracuni lawan dan lawan yg terkena racun akan berkurang nyawanya sebanyak 15% dari nyawa keseluruhan, berlaku selama 3 turn.', 'Serangan banjir yang menghanyutkan, lawan yang terkena spell ini tidak dapat jalan selama 2 kali turn dan selama itu akan berkurang nyawanya sebanyak 15% dari nyawa keseluruhan', 'Serangan petir yang membuat gempar, serangan ini sangat mematikan, dapat meningkatkan nilai serangan sampai dengan 200%, namun setelah itu anda tidak dapat jalan sebanyak 1 kali turn.', 'Serangan meteor yang datang tiada henti, dapat mengurangi nyawa anda dan lawan selama kurang lebih 4 detik secara terus menerus, selama gempa berlangsung anda dapat action.', 'Serangan yang dapat membuat lawan beku dan terdiam, dapat mengurangi power lawan sebesar 100% dari total power dan lawan tidak dapat jalan sebanyak 3 kali giliran.', 'Serangan matahari maut yang dapat membuat lawan terpedaya, dia akan menyerang dirinya sendiri selama 1 kali giliran.', 'Dapat menghilangkan seluruh efek positif yang dimiliki oleh lawan.'); infoAttack = new Array('', 'Regular attacks, have no special effects, this attack does not require power, all characters can perform these attacks at any time.', 'Deadly and fast attacks, can increase 25% of the attack value of the character attacks, this attack will also reduce the opponent\'s power as much as 50%.', 'Deadly assault, can increase 50% of the attack value of the character attacks.', 'Special attacks, can increase 50% of the attack value of all damage, affect the opponent\'s defense score, this attack will also reduce the opponent\'s power by 75%.', 'Master attack, can increase 75% of the attack value of all damage, affect the opponent\'s defense score.', 'It can attack your opponent with a normal attack twice at the same time, but the accuracy of this spell is only 75%.', 'Dangerous snag attack, can increase the attack value of up to 100%, but it’s rather dangerous, where it can reduce the maximum of your life up to 25%.', 'The long distance shoot attacks, the opponents who got this shoot will miss one turn. But the shooting accuracy is only 50%.', 'It can attack your opponent with twice shots at the same time, but the accuracy of this spell is only 25%.', 'Deadly bomb attacks, can increase the attack value up to 150%, but it’s rather dangerous, where it can reduce the maximum of your life up to 50%.', 'Ice freezing attack , the character who got this attack will be frozen and will miss turn 3 times, but the shooting accuracy is only 50%.', 'Scorch burns attack, can burn the opponent while at the same time reducing the opponent life as much as 25% of current life, applied for 4 times turns.', 'Earthquake attack, can reduce your life and your opponent life for about 2 seconds continuously, it is recommended to use it if your life is longer than the enemy.', 'Deadly toxicant attacks, can poison your opponent while at the same time reducing the opponent life as much as 15% of current life, valid for 3 turn.', 'Floods attacks, the opponent affected by this spell will miss 2 turns and hiss life would be reduced as much as 15% of the total life.', 'The uproar Lightning attack, this is a very deadly attack. It can increase the attack value up to 200%, but after that you will miss one turn.', 'The meteor attack, can continuously reduce your life and your opponent for 4 seconds or less, it is recommended to use if your life is longer than the enemy.', 'The attacks that can make your opponent frozen and silent, can reduce the opponent\'s power at 100% of the total power and your opponent will miss 2 times turns.', 'Deadly sun attack that can make your opponent be deceived, he will attack himself for 2 times turns.', 'It can clear of all enemy\'s positive effects.'); jenisDefense = new Array('', 'Heal+', 'Double Heal+', 'Shield', 'Double shield', 'Rage', 'Double Rage', 'Illusion', 'Power+', 'Double Power+', 'Anti Stun'); infoDefense2 = new Array('', 'Dapat meningkatkan nyawa karakter kamu sebanyak 25% dari nyawa saat ini.', 'Dapat meningkatkan nyawa karakter kamu sebanyak 50% dari nyawa saat ini.', 'Dapat melindungi karakter kamu untuk 3 kali giliran, setiap serangan lawan akan berkurang damage-nya sebanyak 50%.', 'Dapat melindungi karakter kamu untuk 4 kali giliran, setiap serangan lawan akan berkurang damage-nya sebanyak 75%', 'Dapat meningkatkan serangan karakter kamu sebanyak 50% untuk 3 kali giliran.', 'Dapat meningkatkan serangan karakter kamu sebanyak 75% untuk 3 kali giliran.', 'Dapat membuat ilusi sehingga karakter anda tidak mempan terhadap serangan lawan apapun selama 3 kali giliran, ilusi hanya bisa dikurangi efeknya jika lawan menyerang kita.', 'Dapat meningkatkan power karakter kamu sebanyak 50% dari total power.', 'Dapat meningkatkan power karakter kamu sebanyak 75% dari power total power.', 'Dapat menghilangkan seluruh efek negatif yang dimiliki oleh kamu dan jika mempunyai spell ini maka seluruh serangan stun tidak akan mempan.'); infoDefense = new Array('', 'It can improve the lives of your characters as much as 25% of current life.', 'It can improve the lives of your characters as much as 50% of current life.', 'It can protect your character to 3 times turns, each opponent\'s attack will be reduced its damage as much as 50%.', 'It can protect your character to 6 times turns, each opponent\'s attack will be reduced its damages by 75%', 'It can improve your character attack as much as 50% for 3 times turns.', 'It can improve your character attacks by 75% for 6 times turns.', 'It can create the illusion that your character is harmless against any opponent\'s attack during 3 times turns.', 'It can increase your character power up to 50% of the total power.', 'It can increase your character power up to 75% of the total power.', 'It can clear all of your negative effects and if you have this spell, all stun effect does not affect'); powerAttack = new Array('', 0, 30, 20, 60, 70, 65, 75, 80, 100, 250, 150, 250, 125, 180, 325, 150, 175, 350, 375, 275); powerDefense = new Array('', 40, 85, 30, 65, 40, 85, 275, 10, 20, 225); tipeAttack = new Array(); tipeDefense = new Array(); i = 1; while (i <= 24) { tipeAttack[i] = new Array(); tipeDefense[i] = new Array(); j = 1; while (j <= 10) { tipeAttack[i][j] = 0; tipeDefense[i][j] = 0; ++j; } ++i; } tipeAttack[1][1] = 1; tipeAttack[1][2] = 3; tipeDefense[1][1] = 1; tipeAttack[2][1] = 1; tipeAttack[2][2] = 2; tipeDefense[2][1] = 3; tipeAttack[3][1] = 1; tipeAttack[3][2] = 4; tipeAttack[3][3] = 6; tipeDefense[3][1] = 5; tipeAttack[4][1] = 1; tipeAttack[4][2] = 2; tipeAttack[4][3] = 8; tipeDefense[4][1] = 2; tipeDefense[4][2] = 8; tipeAttack[5][1] = 1; tipeAttack[5][2] = 7; tipeAttack[5][3] = 14; tipeDefense[5][1] = 3; tipeDefense[5][2] = 7; tipeAttack[6][1] = 1; tipeAttack[6][2] = 5; tipeAttack[6][3] = 12; tipeAttack[6][4] = 20; tipeDefense[6][1] = 3; tipeDefense[6][2] = 8; tipeAttack[7][1] = 1; tipeAttack[7][2] = 5; tipeAttack[7][3] = 9; tipeAttack[7][4] = 12; tipeAttack[7][5] = 13; tipeAttack[7][6] = 16; tipeAttack[8][1] = 1; tipeAttack[8][2] = 5; tipeAttack[8][3] = 7; tipeDefense[8][1] = 3; tipeAttack[9][1] = 1; tipeAttack[9][2] = 7; tipeAttack[9][3] = 11; tipeDefense[9][1] = 1; tipeDefense[9][2] = 8; tipeAttack[10][1] = 1; tipeAttack[10][2] = 4; tipeAttack[10][3] = 9; tipeAttack[10][4] = 14; tipeDefense[10][1] = 4; tipeAttack[11][1] = 1; tipeAttack[11][2] = 2; tipeAttack[11][3] = 6; tipeAttack[11][4] = 7; tipeAttack[11][5] = 16; tipeDefense[11][1] = 6; tipeAttack[12][1] = 1; tipeAttack[12][2] = 5; tipeAttack[12][3] = 15; tipeAttack[12][4] = 18; tipeAttack[12][5] = 20; tipeDefense[12][1] = 2; tipeDefense[12][2] = 8; tipeAttack[13][1] = 1; tipeAttack[13][2] = 4; tipeAttack[13][3] = 13; tipeDefense[13][1] = 2; tipeDefense[13][2] = 7; tipeAttack[14][1] = 1; tipeAttack[14][2] = 2; tipeAttack[14][3] = 9; tipeAttack[14][4] = 15; tipeAttack[14][5] = 17; tipeDefense[14][1] = 3; tipeDefense[14][2] = 7; tipeAttack[15][1] = 1; tipeAttack[15][2] = 3; tipeAttack[15][3] = 8; tipeDefense[15][1] = 1; tipeDefense[15][2] = 3; tipeAttack[16][1] = 1; tipeAttack[16][2] = 6; tipeAttack[16][3] = 9; tipeAttack[16][4] = 10; tipeDefense[16][1] = 4; tipeDefense[16][2] = 8; tipeAttack[17][1] = 1; tipeAttack[17][2] = 9; tipeAttack[17][3] = 10; tipeAttack[17][4] = 12; tipeAttack[17][5] = 16; tipeDefense[17][1] = 2; tipeDefense[17][2] = 8; tipeAttack[18][1] = 1; tipeAttack[18][2] = 3; tipeAttack[18][3] = 9; tipeAttack[18][4] = 10; tipeAttack[18][5] = 12; tipeDefense[18][1] = 1; tipeDefense[18][2] = 7; tipeDefense[18][3] = 9; tipeAttack[19][1] = 1; tipeAttack[19][2] = 4; tipeAttack[19][3] = 10; tipeAttack[19][4] = 13; tipeAttack[19][5] = 16; tipeAttack[19][6] = 18; tipeDefense[19][1] = 1; tipeDefense[19][2] = 3; tipeDefense[19][3] = 9; tipeAttack[20][1] = 1; tipeAttack[20][2] = 5; tipeAttack[20][3] = 10; tipeAttack[20][4] = 16; tipeAttack[20][5] = 17; tipeAttack[20][6] = 20; tipeDefense[20][1] = 2; tipeDefense[20][2] = 3; tipeDefense[20][3] = 6; tipeDefense[20][4] = 9; tipeAttack[21][1] = 1; tipeAttack[21][2] = 2; tipeAttack[21][3] = 4; tipeAttack[21][4] = 10; tipeAttack[21][5] = 15; tipeAttack[21][6] = 19; tipeAttack[21][7] = 20; tipeDefense[21][1] = 2; tipeDefense[21][2] = 9; tipeDefense[21][3] = 10; tipeAttack[22][1] = 1; tipeAttack[22][2] = 4; tipeAttack[22][3] = 8; tipeAttack[22][4] = 12; tipeAttack[22][5] = 17; tipeAttack[22][6] = 19; tipeAttack[22][7] = 20; tipeDefense[22][1] = 7; tipeDefense[22][2] = 9; tipeDefense[22][3] = 10; tipeAttack[23][1] = 1; tipeAttack[23][2] = 8; tipeAttack[23][3] = 17; tipeAttack[23][4] = 20; tipeDefense[23][1] = 2; tipeDefense[23][2] = 4; tipeDefense[23][3] = 6; tipeDefense[23][4] = 7; tipeDefense[23][5] = 9; tipeDefense[23][6] = 10; tipeAttack[24][1] = 1; tipeAttack[24][2] = 4; tipeAttack[24][3] = 7; tipeAttack[24][4] = 9; tipeAttack[24][5] = 11; tipeAttack[24][6] = 16; tipeAttack[24][7] = 18; tipeAttack[24][8] = 19; tipeDefense[24][1] = 2; tipeDefense[24][2] = 4; } function cekAtribute() { zunit = 0; i = 1; while (i <= 21) { if (_root['masihHidup' + i] == true) { ++zunit; } ++i; } if (pilihLevel == 1) { gameLevel = 'Game Level: Normal'; } else { if (pilihLevel == 2) { gameLevel = 'Game Level: Hard'; } else { if (pilihLevel == 3) { gameLevel = 'Game Level: Extreme'; } } } info = ''; namaz = 'Welcome ' + inputNama; msgBox_mc._visible = false; msgBox_mc.onEnterFrame = entermsgBox; turanggamasa = 'Turanggamasa Level: ' + turanggaLevel; mana = 'Prada Point: ' + manaPoint; game = 'Game Level: ' + zlevel; unitLeft = 'Unit Available: ' + zunit; turanggamasa = 'Turanggamasa Level: ' + turanggaLevel; mana = 'Prada Point: ' + manaPoint; game = 'Game Level: ' + zlevel; unitLeft = 'Unit Available: ' + zunit; } function zcekTutorial() { msgBox_mc4.nama = 'Start New Game'; if (pilihLevel == 1) { msgBox_mc4.isi = 'Read tutorial first before start the normal difficulty new game?'; } else { if (pilihLevel == 2) { msgBox_mc4.isi = 'Read tutorial first before start the hard difficulty new game?'; } else { if (pilihLevel == 3) { msgBox_mc4.isi = 'Read tutorial first before start the extreme difficulty new game? in this mode, enemy can play first turn.'; } } } msgBox_mc4._visible = true; normal_btn._visible = false; hard_btn._visible = false; extreme_btn._visible = false; continue_btn._visible = false; msgBox_mc4.yes_btn.onRelease = function () { tutorialMulai = true; tutorialMulai2 = true; tutorialMulai3 = true; initAwal(); init2(); transisi.gotoAndPlay(2); kemanax = 'story'; msgBox_mc4._visible = false; }; msgBox_mc4.no_btn.onRelease = function () { tutorialMulai = false; tutorialMulai2 = false; tutorialMulai3 = false; initAwal(); init2(); transisi.gotoAndPlay(2); kemanax = 'story'; msgBox_mc4._visible = false; }; msgBox_mc4.cancel_btn.onRelease = function () { msgBox_mc4._visible = false; }; } stop(); jenisMainX = 'biasa'; jenisMusuh = new Array(); levelMusuh = new Array(); pilihMusuhX(); init2(); awalSekali = undefined; zsekarangLagu = undefined; pilihCard = undefined; tutorialMulai = false; tutorialMulai2 = false; tutorialMulai3 = false; msgBox_mc4._visible = false; normal_btn._visible = false; hard_btn._visible = false; extreme_btn._visible = false; continue_btn._visible = false; if (karakterRahasia == true) { unlimited_btn.enabled = true; unlimited_btn._alpha = 100; pvp_btn.enabled = true; pvp_btn._alpha = 100; } else { unlimited_btn.enabled = false; unlimited_btn._alpha = 50; pvp_btn.enabled = false; pvp_btn._alpha = 50; } play_btn.onRelease = function () { jenisMainX = 'biasa'; normal_btn._visible = true; hard_btn._visible = true; extreme_btn._visible = true; continue_btn._visible = true; if (sudahSave == undefined) { continue_btn.enabled = false; continue_btn._alpha = 50; } else { continue_btn.enabled = true; continue_btn._alpha = 100; } }; unlimited_btn.onRelease = function () { jenisMainX = 'unlimited'; cekAtribute(); pilihLevel = 1; initAwal(); init2(); loadData(); i = 1; while (i <= 24) { karakterLevel[i] = karakterLevel2[i]; karakterExp[i] = karakterExp2[i]; ++i; } turanggaLevel = turanggaLevel2; manaPoint = manaPoint2; if (turanggaLevel2 == undefined) { initAwal(); init2(); i = 1; while (i <= 24) { karakterLevel[i] = karakterLevel2[i]; karakterExp[i] = karakterExp2[i]; ++i; } turanggaLevel = turanggaLevel2; manaPoint = manaPoint2; simpanData(); } tipePilih = 'train'; transisi.gotoAndPlay(2); kemanax = 'select'; }; pvp_btn.onRelease = function () { jenisMainX = 'pvp'; cekAtribute(); pilihLevel = 1; initAwal(); init2(); ztotalWin1 = 0; ztotalWin2 = 0; loadData(); i = 1; while (i <= 24) { karakterLevel[i] = karakterLevel3[i]; karakterExp[i] = karakterExp3[i]; ++i; } turanggaLevel = turanggaLevel3; manaPoint = manaPoint3; if (turanggaLevel3 == undefined) { initAwal(); init2(); i = 1; while (i <= 24) { karakterLevel[i] = karakterLevel3[i]; karakterExp[i] = karakterExp3[i]; ++i; } turanggaLevel = turanggaLevel3; manaPoint = manaPoint3; simpanData(); } giliranDuluan = 1; tipePilih = 'train'; transisi.gotoAndPlay(2); kemanax = 'pvp'; }; normal_btn.onRelease = function () { if (karakterRahasia == true) { pilihLevel = 1; initAwal(); init2(); transisi.gotoAndPlay(2); kemanax = 'story'; } else { pilihLevel = 1; zcekTutorial(); } }; hard_btn.onRelease = function () { if (karakterRahasia == true) { pilihLevel = 2; initAwal(); init2(); transisi.gotoAndPlay(2); kemanax = 'story'; } else { pilihLevel = 2; zcekTutorial(); } }; extreme_btn.onRelease = function () { if (karakterRahasia == true) { pilihLevel = 3; initAwal(); init2(); transisi.gotoAndPlay(2); kemanax = 'story'; } else { pilihLevel = 3; zcekTutorial(); } }; continue_btn.onRelease = function () { jenisMainX = 'biasa'; loadData(); init2(); transisi.gotoAndPlay(2); kemanax = 'map'; }; medals_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'medals'; }; options_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'option'; }; help_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'help'; }; credits_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'credit'; }; more_btn.onRelease = function () { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=moregames', '_blank'); }; } instance of movieClip 15 { onClipEvent (release) { getURL('http://www.belugerinstudios.com', '_blank'); } } movieClip 890 { } movieClip 892 { } movieClip 893 { frame 1 { stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; } } instance logo_mc of movieClip 893 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=mainmenu', '_blank'); } } movieClip 907 { } frame 423 { play(); backMusic3(); skip_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'map'; }; } frame 1922 { stop(); transisi.gotoAndPlay(2); kemanax = 'map'; } frame 1923 { stop(); quit_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'menu'; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } instance logo_mc of movieClip 893 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=help', '_blank'); } } frame 1924 { stop(); quit_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'menu'; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } movieClip 925 { } movieClip 928 { } movieClip 930 { } movieClip 931 { frame 1 { stop(); } frame 7 { gotoAndStop(1); } frame 26 { gotoAndStop(1); } } movieClip 932 { } movieClip 933 { frame 1 { stop(); } } movieClip 978 { } button 979 { on (release) { getURL('http://www.bubblebox.com', '_blank'); } } movieClip 984 { frame 1 { stop(); } frame 22 { if (_root.karakterRahasia == true) { tanya_mc._visible = false; } else { tanya_mc._visible = true; } } frame 23 { if (_root.karakterRahasia == true) { tanya_mc._visible = false; } else { tanya_mc._visible = true; } } frame 24 { if (_root.karakterRahasia == true) { tanya_mc._visible = false; } else { tanya_mc._visible = true; } } } movieClip 988 { frame 1 { stop(); } } movieClip 989 { } movieClip 992 { } movieClip 993 { frame 1 { stop(); } } movieClip 994 { } frame 1925 { function enterMsgBox() { if (_root._ymouse < 225) { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse + 140; } else { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse - 50; } } function overAttack() { myStr = new String(this); if (myStr.length == 16) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } indi = this._currentframe; if (indi >= 39) { indi -= 40; msgBox_mc2.nama = jenisDefense[indi]; msgBox_mc2.isi = infoDefense[indi] + '\nNeed ' + powerDefense[indi] + ' Power.'; } else { msgBox_mc2.nama = jenisAttack[indi]; msgBox_mc2.isi = infoAttack[indi] + '\nNeed ' + powerAttack[indi] + ' Power.'; } msgBox_mc2._visible = true; } function outAttack() { msgBox_mc2._visible = false; } stop(); i = 1; while (i <= 50) { if (i >= 21) { _root['spell' + i].gotoAndStop(i + 20); } else { _root['spell' + i].gotoAndStop(i); } ++i; } quit_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'menu'; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; i = 1; while (i <= 50) { _root['spell' + i].gotoAndStop(30); _root['spell' + i]._alpha = 50; ++i; } i = 1; while (i <= 20) { _root['spell' + i].gotoAndStop(i); _root['spell' + i]._alpha = 100; _root['spell' + i].onRollOver = overAttack; _root['spell' + i].onRollOut = outAttack; ++i; } i = 21; while (i <= 30) { _root['spell' + i].gotoAndStop(i + 20); _root['spell' + i]._alpha = 100; _root['spell' + i].onRollOver = overAttack; _root['spell' + i].onRollOut = outAttack; ++i; } i = 31; while (i <= 50) { _root['spell' + i].gotoAndStop(60); _root['spell' + i]._alpha = 100; ++i; } msgBox_mc2.onEnterFrame = enterMsgBox; msgBox_mc2._visible = false; } // unknown tag 88 length 87 movieClip 1064 { frame 1 { stop(); } } movieClip 1068 { } frame 1926 { function enterMsgBox() { if (_root._ymouse < 225) { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse + 140; } else { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse - 50; } } function overAttack() { myStr = new String(this); if (myStr.length == 14) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } if (_root['medalx' + indi] == true) { msgBox_mc2.nama = daftarMedal[indi]; } else { msgBox_mc2.nama = daftarMedal[indi] + ', locked'; } msgBox_mc2._visible = true; } function outAttack() { msgBox_mc2._visible = false; } stop(); daftarMedal = new Array('', 'Win 10 Level in Adventure Mode', 'Win 20 Level in Adventure Mode', 'Win 30 Level in Adventure Mode', 'Win 40 Level in Adventure Mode', 'Win 50 Level in Adventure Mode', 'Increase All Character to Level 5', 'Increase All Character to Level 10', 'Increase All Character to Level 15', 'Increase All Character to Level 20', 'Increase All Character to Level 25', 'Increase All Character to Level 30', 'Increase All Character to Level 35', 'Increase All Character to Level 40', 'Increase All Character to Level 45', 'Increase All Character to Level 50', 'Player 1 win 25 times', 'Player 1 win 50 times', 'Player 1 win 75 times', 'Player 1 win 100 times', 'Player 2 win 25 times', 'Player 2 win 50 times', 'Player 2 win 75 times', 'Player 2 win 100 times'); quit_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'menu'; }; i = 1; while (i <= 23) { _root['medal' + i].onRollOver = overAttack; _root['medal' + i].onRollOut = outAttack; if (_root['medalx' + i] == true) { _root['medal' + i]._alpha = 100; } else { _root['medal' + i]._alpha = 25; } ++i; } msgBox_mc2.onEnterFrame = enterMsgBox; msgBox_mc2._visible = false; } movieClip 1075 { } movieClip 1078 { } movieClip 1081 { } movieClip 1084 { } movieClip 1087 { } movieClip 1090 { } movieClip 1093 { } movieClip 1096 { } movieClip 1099 { } movieClip 1102 { } movieClip 1105 { } movieClip 1108 { } movieClip 1111 { } movieClip 1114 { } movieClip 1117 { } movieClip 1120 { } movieClip 1123 { } movieClip 1126 { } movieClip 1129 { } movieClip 1132 { } movieClip 1135 { } movieClip 1138 { } movieClip 1141 { } movieClip 1145 { } instance of movieClip 53 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=medals', '_blank'); } } frame 1927 { function cekKonfigurasi() { if (musikNyala == 0) { musik_mc1.gotoAndStop(2); musik_mc2.gotoAndStop(1); volume1 = 0; myMusic.setVolume(volume1); } else { musik_mc1.gotoAndStop(1); musik_mc2.gotoAndStop(2); volume1 = 125; myMusic.setVolume(volume1); } if (soundNyala == 0) { sound_mc1.gotoAndStop(2); sound_mc2.gotoAndStop(1); volume2 = 0; } else { sound_mc1.gotoAndStop(1); sound_mc2.gotoAndStop(2); volume2 = 200; } if (kualitasGrafis == 1) { kualiti1.gotoAndStop(1); kualiti2.gotoAndStop(2); kualiti3.gotoAndStop(2); _quality = 'HIGH'; } else { if (kualitasGrafis == 2) { kualiti1.gotoAndStop(2); kualiti2.gotoAndStop(1); kualiti3.gotoAndStop(2); _quality = 'MEDIUM'; } else { if (kualitasGrafis == 3) { kualiti1.gotoAndStop(2); kualiti2.gotoAndStop(2); kualiti3.gotoAndStop(1); _quality = 'LOW'; } } } } stop(); back_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'menu'; }; clear_btn.onRelease = function () { msgBox_mc4.nama = 'Clear All Saved Data'; msgBox_mc4.isi = 'Are you sure to clear all saved data? it\'s included all data from Adventure, Unlimited and Player vs Player Mode.'; msgBox_mc4._visible = true; msgBox_mc4.yes_btn.onRelease = function () { clearData(); transisi.gotoAndPlay(2); kemanax = 'menu'; msgBox_mc4._visible = false; }; msgBox_mc4.no_btn.onRelease = function () { msgBox_mc4._visible = false; }; }; msgBox_mc4._visible = false; cekKonfigurasi(); musik_mc1.onRelease = function () { musikNyala = 1; cekKonfigurasi(); }; musik_mc2.onRelease = function () { musikNyala = 0; cekKonfigurasi(); }; sound_mc1.onRelease = function () { soundNyala = 1; cekKonfigurasi(); }; sound_mc2.onRelease = function () { soundNyala = 0; cekKonfigurasi(); }; kualiti1.onRelease = function () { kualitasGrafis = 1; cekKonfigurasi(); }; kualiti2.onRelease = function () { kualitasGrafis = 2; cekKonfigurasi(); }; kualiti3.onRelease = function () { kualitasGrafis = 3; cekKonfigurasi(); }; } movieClip 1159 { } instance logo_mc of movieClip 893 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=option', '_blank'); } } frame 1928 { stop(); back_btn.onRelease = function () { transisi.gotoAndPlay(2); kemanax = 'menu'; }; } // unknown tag 88 length 30 instance of movieClip 15 { onClipEvent (release) { getURL('http://www.belugerinstudios.com', '_blank'); } } frame 1929 { function cekBisaKlikSaja() { tutorial_mc._visible = true; train_btn.enabled = true; save_btn.enabled = true; if (sudahSave == undefined) { load_btn.enabled = false; load_btn._alpha = 50; } else { load_btn.enabled = true; load_btn._alpha = 100; } option_btn.enabled = true; battle_btn.enabled = true; quitsave_btn.enabled = true; quit_btn.enabled = true; _root['level' + zlevel].enabled = true; } function munculJeda() { if (jeda == 1) { msgBox_mc.card1._visible = true; msgBox_mc.card2._visible = false; jeda = 0; } else { msgBox_mc.card1._visible = false; msgBox_mc.card2._visible = true; jeda = 1; } } function enterMsgBox2() { if (_root._ymouse < 225) { if (_root._xmouse < 400) { this._x = _root._xmouse + 200; } else { this._x = _root._xmouse - 200; } this._y = _root._ymouse; } else { if (_root._xmouse < 400) { this._x = _root._xmouse + 200; } else { this._x = _root._xmouse - 200; } this._y = _root._ymouse; } } stop(); zunit = 0; if (karakterRahasia == true) { i = 1; while (i <= 24) { if (_root['masihHidup' + i] == true) { ++zunit; } ++i; } unitLeft = 'Unit Available: ' + zunit + '/24'; } else { i = 1; while (i <= 22) { if (_root['masihHidup' + i] == true) { ++zunit; } ++i; } unitLeft = 'Unit Available: ' + zunit + '/22'; } if (pilihLevel == 1) { gameLevel = 'Game Level: Normal'; } else { if (pilihLevel == 2) { gameLevel = 'Game Level: Hard'; } else { if (pilihLevel == 3) { gameLevel = 'Game Level: Extreme'; } } } if (zlevel <= 15) { map_mc.gotoAndStop(1); } else { if (zlevel <= 30) { map_mc.gotoAndStop(2); } else { if (zlevel <= 45) { map_mc.gotoAndStop(3); } else { map_mc.gotoAndStop(4); } } } info = ''; namaz = 'Welcome ' + inputNama; msgBox_mc._visible = false; msgBox_mc.onEnterFrame = entermsgBox; turanggamasa = 'Turanggamasa Level: ' + turanggaLevel; mana = 'Prada Point: ' + manaPoint; game = 'Game Level: ' + zlevel; turanggamasa = 'Turanggamasa Level: ' + turanggaLevel; mana = 'Prada Point: ' + manaPoint; game = 'Game Level: ' + zlevel + '/50'; pilihan_mc2._visible = false; train_btn.onRelease = function () { clearInterval(idMunculJeda); tipePilih = 'train'; transisi.gotoAndPlay(2); kemanax = 'select'; }; save_btn.onRelease = function () { saveData(); info = 'The game data has been saved'; }; if (sudahSave == undefined) { load_btn.enabled = false; load_btn._alpha = 50; } else { load_btn.enabled = true; load_btn._alpha = 100; } load_btn.onRelease = function () { clearInterval(idMunculJeda); loadData(); transisi.gotoAndPlay(2); kemanax = 'map2'; }; option_btn.onRelease = function () { pilihan_mc2._visible = true; }; pilihan_mc2.back_btn.onRelease = function () { pilihan_mc2._visible = false; }; battle_btn.onRelease = function () { clearInterval(idMunculJeda); tipePilih = 'battle'; transisi.gotoAndPlay(2); kemanax = 'select'; }; quitsave_btn.onRelease = function () { clearInterval(idMunculJeda); saveData(); transisi.gotoAndPlay(2); kemanax = 'menu'; }; quit_btn.onRelease = function () { clearInterval(idMunculJeda); transisi.gotoAndPlay(2); kemanax = 'menu'; }; i = 1; while (i <= 50) { _root['level' + i]._visible = false; ++i; } if (zlevel <= 15) { i = 1; while (i <= 15) { _root['level' + i]._visible = true; ++i; } } else { if (zlevel <= 30) { i = 16; while (i <= 30) { _root['level' + i]._visible = true; ++i; } } else { if (zlevel <= 45) { i = 31; while (i <= 45) { _root['level' + i]._visible = true; ++i; } } else { i = 46; while (i <= 50) { _root['level' + i]._visible = true; ++i; } } } } msgBox_mc.onEnterFrame = enterMsgBox2; _root['level' + zlevel]._visible = true; _root['level' + zlevel].gotoAndStop(2); _root['level' + zlevel].onRollOver = function () { msgBox_mc._visible = true; }; _root['level' + zlevel].onRollOut = function () { msgBox_mc._visible = false; }; pilihMusuhX2(); msgBox_mc.card1.gotoAndStop(jenisMusuh[zlevel]); msgBox_mc.card2.gotoAndStop(jenisMusuh[zlevel] + 1); clearInterval(idMunculJeda); idMunculJeda = setInterval(munculJeda, 1500); jeda = 1; if (zlevel >= 40) { _root.medalx4 = true; } else { if (zlevel >= 30) { _root.medalx3 = true; } else { if (zlevel >= 20) { _root.medalx2 = true; } else { if (zlevel >= 10) { _root.medalx1 = true; } } } } if (tutorialMulai == true) { tutorial_mc._visible = true; train_btn.enabled = false; save_btn.enabled = false; load_btn.enabled = false; option_btn.enabled = false; battle_btn.enabled = false; quitsave_btn.enabled = false; quit_btn.enabled = false; _root['level' + zlevel].enabled = false; tutorialMulai = false; } else { tutorial_mc._visible = false; } } movieClip 1182 { frame 1 { stop(); } } movieClip 1193 { frame 1 { stop(); } } movieClip 1197 { frame 1 { stop(); } } movieClip 1220 { } movieClip 1221 { frame 1 { function cekKonfigurasi() { if (_root.musikNyala == 0) { musik_mc1.gotoAndStop(2); musik_mc2.gotoAndStop(1); _root.volume1 = 0; _root.myMusic.setVolume(_root.volume1); } else { musik_mc1.gotoAndStop(1); musik_mc2.gotoAndStop(2); _root.volume1 = 50; _root.myMusic.setVolume(_root.volume1); } if (_root.soundNyala == 0) { sound_mc1.gotoAndStop(2); sound_mc2.gotoAndStop(1); _root.volume2 = 0; } else { sound_mc1.gotoAndStop(1); sound_mc2.gotoAndStop(2); _root.volume2 = 200; } if (_root.kualitasGrafis == 1) { kualiti1.gotoAndStop(1); kualiti2.gotoAndStop(2); kualiti3.gotoAndStop(2); _quality = 'HIGH'; } else { if (_root.kualitasGrafis == 2) { kualiti1.gotoAndStop(2); kualiti2.gotoAndStop(1); kualiti3.gotoAndStop(2); _quality = 'MEDIUM'; } else { if (_root.kualitasGrafis == 3) { kualiti1.gotoAndStop(2); kualiti2.gotoAndStop(2); kualiti3.gotoAndStop(1); _quality = 'LOW'; } } } } cekKonfigurasi(); musik_mc1.onRelease = function () { _root.musikNyala = 1; cekKonfigurasi(); }; musik_mc2.onRelease = function () { _root.musikNyala = 0; cekKonfigurasi(); }; sound_mc1.onRelease = function () { _root.soundNyala = 1; cekKonfigurasi(); }; sound_mc2.onRelease = function () { _root.soundNyala = 0; cekKonfigurasi(); }; kualiti1.onRelease = function () { _root.kualitasGrafis = 1; cekKonfigurasi(); }; kualiti2.onRelease = function () { _root.kualitasGrafis = 2; cekKonfigurasi(); }; kualiti3.onRelease = function () { _root.kualitasGrafis = 3; cekKonfigurasi(); }; } } movieClip 1230 { } movieClip 1239 { } movieClip 1240 { frame 1 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } frame 2 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } frame 7 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } frame 8 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } } instance logo_mc of movieClip 893 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=map', '_blank'); } } frame 1930 { play(); } frame 1949 { stop(); transisi.gotoAndPlay(2); kemanax = 'map'; } frame 1950 { function cekPlayer1(indi) { i = 1; while (i <= 10) { _root['attack' + i].gotoAndStop(30); _root['attack' + i]._alpha = 50; ++i; } i = 1; while (i <= tipeAttack[indi].length - 1) { if (tipeAttack[indi][i] != 0) { _root['attack' + i].gotoAndStop(tipeAttack[indi][i]); _root['attack' + i]._alpha = 100; _root['attack' + i].onRollOver = overAttack; _root['attack' + i].onRollOut = outAttack; } else { keberapa = i; i = tipeAttack[indi].length; } ++i; } i = 1; while (i <= tipeDefense[indi].length - 1) { if (tipeDefense[indi][i] != 0) { kemana = 40 + tipeDefense[indi][i]; _root['attack' + keberapa].gotoAndStop(kemana); _root['attack' + keberapa]._alpha = 100; _root['attack' + keberapa].onRollOver = overAttack; _root['attack' + keberapa].onRollOut = outAttack; ++keberapa; } ++i; } } function cekPlayer2(indi) { i = 1; while (i <= 10) { _root['defense' + i].gotoAndStop(30); _root['defense' + i]._alpha = 50; ++i; } i = 1; while (i <= tipeAttack[indi].length - 1) { if (tipeAttack[indi][i] != 0) { _root['defense' + i].gotoAndStop(tipeAttack[indi][i]); _root['defense' + i]._alpha = 100; _root['defense' + i].onRollOver = overAttack; _root['defense' + i].onRollOut = outAttack; } else { keberapa = i; i = tipeAttack[indi].length; } ++i; } i = 1; while (i <= tipeDefense[indi].length - 1) { if (tipeDefense[indi][i] != 0) { kemana = 40 + tipeDefense[indi][i]; _root['defense' + keberapa].gotoAndStop(kemana); _root['defense' + keberapa]._alpha = 100; _root['defense' + keberapa].onRollOver = overAttack; _root['defense' + keberapa].onRollOut = outAttack; ++keberapa; } ++i; } } function enterMsgBox() { if (_root._ymouse < 225) { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse + 140; } else { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse - 50; } } function overAttack() { myStr = new String(this); if (myStr.length == 16) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } indi = this._currentframe; if (indi >= 39) { indi -= 40; msgBox_mc2.nama = jenisDefense[indi]; msgBox_mc2.isi = infoDefense[indi] + '\nNeed ' + powerDefense[indi] + ' Power.'; } else { msgBox_mc2.nama = jenisAttack[indi]; msgBox_mc2.isi = infoAttack[indi] + '\nNeed ' + powerAttack[indi] + ' Power.'; } msgBox_mc2._visible = true; } function outAttack() { msgBox_mc2._visible = false; } function cekGiliranPertama() { if (giliranDuluan == 1) { player1.gotoAndStop(1); player2.gotoAndStop(2); } else { if (giliranDuluan == 2) { player1.gotoAndStop(2); player2.gotoAndStop(1); } } } stop(); card1.gotoAndStop(pilihCard1); card2.gotoAndStop(pilihCard2); nama1 = qnama1; nama2 = qnama2; qqlevel1 = 'Level ' + karakterLevel[pilihCard1]; qqlevel2 = 'Level ' + karakterLevel[pilihCard2]; xxexp1 = 'Exp: ' + karakterExp[pilihCard1] + '/' + karakterLevel[pilihCard1] * 100; xxexp2 = 'Exp: ' + karakterExp[pilihCard2] + '/' + karakterLevel[pilihCard2] * 100; start_btn.onRelease = function () { qnama1 = nama1; qnama2 = nama2; pilihCard = pilihCard1; pilihCard2 = pilihCard2; transisi.gotoAndPlay(2); kemanax = 'battle'; }; quit_btn.onRelease = function () { qnama1 = nama1; qnama2 = nama2; transisi.gotoAndPlay(2); kemanax = 'menu'; }; card1.onRelease = function () { qnama1 = nama1; qnama2 = nama2; pilihanKartu = 1; transisi.gotoAndPlay(2); kemanax = 'select'; }; card2.onRelease = function () { qnama1 = nama1; qnama2 = nama2; pilihanKartu = 2; transisi.gotoAndPlay(2); kemanax = 'select'; }; cekPlayer1(pilihCard1); cekPlayer2(pilihCard2); msgBox_mc2.onEnterFrame = enterMsgBox; msgBox_mc2._visible = false; cekGiliranPertama(); player1.onRelease = function () { giliranDuluan = 1; cekGiliranPertama(); }; player2.onRelease = function () { giliranDuluan = 2; cekGiliranPertama(); }; } movieClip 1243 { } frame 1951 { function cekBisaKlikSaja() { next_btn.enabled = true; prev_btn.enabled = true; i = 1; while (i <= 24) { _root['card' + i].enabled = true; ++i; } } function sellectCard() { zunit = 0; if (karakterRahasia == true) { i = 1; while (i <= 24) { if (_root['masihHidup' + i] == true) { ++zunit; } ++i; } unitLeft = 'Unit Available: ' + zunit + '/24'; } else { i = 1; while (i <= 22) { if (_root['masihHidup' + i] == true) { ++zunit; } ++i; } unitLeft = 'Unit Available: ' + zunit + '/22'; } i = 1; while (i <= 24) { _root['card' + i].gotoAndStop(i); if (_root['masihHidup' + i] == false) { _root['card' + i]._alpha = 50; _root['card' + i].border_mc._visible = true; _root['card' + i].onRelease = klikCard2; _root['card' + i].onRollOver = overCard2; _root['card' + i].onRollOut = outCard2; msgBox_mc5.onEnterFrame = enterMsgBox5; } else { _root['card' + i]._alpha = 100; _root['card' + i].border_mc._visible = false; _root['card' + i].onRelease = klikCard; _root['card' + i].onRollOver = overCard; _root['card' + i].onRollOut = outCard; msgBox_mc.onEnterFrame = enterMsgBox2; } ++i; } msgBox_mc._visible = false; turanggamasa = 'Turanggamasa Level: ' + turanggaLevel; mana = 'Prada Point: ' + manaPoint; if (jenisMainX == 'unlimited') { game = 'Unlimited game'; } else { if (jenisMainX == 'pvp') { game = 'Player vs Player'; } else { game = 'Game Level: ' + zlevel + '/50'; } } } function enterMsgBox2() { if (_root._ymouse < 225) { this._x = _root._xmouse; this._y = _root._ymouse + 200; } else { this._x = _root._xmouse; this._y = _root._ymouse - 180; } } function enterMsgBox3() { if (_root._ymouse < 225) { this._x = _root._xmouse; this._y = _root._ymouse + 200; } else { this._x = _root._xmouse; this._y = _root._ymouse - 120; } } function enterMsgBox5() { if (_root._ymouse < 225) { this._x = _root._xmouse; this._y = _root._ymouse + 150; } else { this._x = _root._xmouse; this._y = _root._ymouse - 60; } } function klikCard2() { next_btn.enabled = false; prev_btn.enabled = false; i = 1; while (i <= 24) { _root['card' + i].enabled = false; ++i; } msgBox_mc5._visible = false; msgBox_mc4._visible = true; msgBox_mc4.nama = 'Dead Character'; msgBox_mc4.isi = 'Revive this character takes 0.2 level of Turanggamasa, are you sure?'; myStr = new String(this); if (myStr.length == 13) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } msgBox_mc4.yes_btn.onRelease = function () { next_btn.enabled = true; prev_btn.enabled = true; i = 1; while (i <= 24) { _root['card' + i].enabled = true; ++i; } turanggaLevel -= 0.2; if (turanggaLevel <= 0) { turanggaLevel = 0; } _root['masihHidup' + indi] = true; msgBox_mc4._visible = false; sellectCard(); }; msgBox_mc4.no_btn.onRelease = function () { next_btn.enabled = true; prev_btn.enabled = true; i = 1; while (i <= 24) { _root['card' + i].enabled = true; ++i; } msgBox_mc4._visible = false; }; } function overCard2() { msgBox_mc5.nama = 'Dead Character'; msgBox_mc5.isi = 'You can revive this character, it takes 0.2 level of Turanggamasa. Reviving this character will reduce 0.2 point of your Turanggamasa level. '; msgBox_mc5._visible = true; } function outCard2() { msgBox_mc5._visible = false; } function klikCard() { myStr = new String(this); if (myStr.length == 13) { pilihCard = Number(myStr.substr(myStr.length - 1, 1)); } else { pilihCard = Number(myStr.substr(myStr.length - 2, 2)); } if (tipePilih == 'train') { seberapaMana = karakterMana2[pilihCard]; } else { seberapaMana = karakterMana[pilihCard]; } if (karakterRahasia != true && pilihCard >= 22) { i = 1; while (i <= 24) { _root['card' + i].enabled = false; ++i; } msgBox_mc._visible = false; next_btn.enabled = false; prev_btn.enabled = false; msgBox_mc3._visible = true; msgBox_mc3.nama = 'Ups'; msgBox_mc3.isi = 'Unable to use this character, you must win this game first before use this mysterious character.'; msgBox_mc3.ok_btn.onRelease = function () { i = 1; while (i <= 24) { _root['card' + i].enabled = true; ++i; } next_btn.enabled = true; prev_btn.enabled = true; msgBox_mc3._visible = false; }; } else { if (Number(manaPoint) >= Number(seberapaMana)) { if (turanggaLevel + 0.01 >= karakterTurangga[pilihCard]) { sellectCard(); msgBox_mc._visible = false; select_mc._visible = true; next_btn.enabled = false; prev_btn.enabled = false; i = 1; while (i <= 24) { _root['card' + i].enabled = false; ++i; } select_mc.card.gotoAndStop(pilihCard); indi = pilihCard; select_mc.nama = karakterNama[indi]; select_mc.xexp = 'Exp: ' + karakterExp[indi] + '/' + karakterLevel[indi] * 100; if (jenisMainX == 'unlimited') { select_mc.xlevel = 'Level ' + karakterLevel[indi]; } else { if (jenisMainX == 'pvp') { select_mc.xlevel = 'Level ' + karakterLevel[indi]; } else { select_mc.xlevel = 'Level ' + karakterLevel[indi] + '/' + karakterMaxLevel[indi]; } } if (tipePilih == 'train') { select_mc.mana = 'Need Prada: ' + karakterMana2[indi]; } else { select_mc.mana = 'Need Prada: ' + karakterMana[indi]; } select_mc.regen = 'Power Regeneration: ' + karakterRegen[indi]; select_mc.turanggamasa = 'Need Turanggamasa Level: ' + karakterTurangga[indi]; select_mc.attack = 'Basic Attack: ' + karakterAttack[indi]; select_mc.defense = 'Basic Defense: ' + karakterDefense[indi]; select_mc.life = 'Basic Life: ' + karakterLife[indi]; select_mc.power = 'Basic Power: ' + karakterPower[indi]; i = 1; while (i <= 10) { select_mc['attack' + i].gotoAndStop(30); select_mc['attack' + i]._alpha = 50; ++i; } i = 1; while (i <= tipeAttack[indi].length - 1) { if (tipeAttack[indi][i] != 0) { select_mc['attack' + i].gotoAndStop(tipeAttack[indi][i]); select_mc['attack' + i]._alpha = 100; select_mc['attack' + i].onRollOver = overAttack; select_mc['attack' + i].onRollOut = outAttack; } else { keberapa = i; i = tipeAttack[indi].length; } ++i; } i = 1; while (i <= tipeDefense[indi].length - 1) { if (tipeDefense[indi][i] != 0) { kemana = 40 + tipeDefense[indi][i]; select_mc['attack' + keberapa].gotoAndStop(kemana); select_mc['attack' + keberapa]._alpha = 100; select_mc['attack' + keberapa].onRollOver = overAttack; select_mc['attack' + keberapa].onRollOut = outAttack; ++keberapa; } ++i; } select_mc.yes_btn.onRelease = function () { if (jenisMainX == 'pvp') { select_mc._visible = false; _root['bisaAktif' + indi] = true; if (pilihanKartu == 1) { pilihCard1 = pilihCard; } else { if (pilihanKartu == 2) { pilihCard2 = pilihCard; } } transisi.gotoAndPlay(2); kemanax = 'pvp'; } else { select_mc._visible = false; _root['bisaAktif' + indi] = true; if (tipePilih == 'train') { } else { manaPoint -= karakterMana[pilihCard]; } transisi.gotoAndPlay(2); kemanax = 'battle'; } }; select_mc.no_btn.onRelease = function () { i = 1; while (i <= 24) { _root['card' + i].enabled = true; ++i; } select_mc._visible = false; next_btn.enabled = true; prev_btn.enabled = true; }; } else { i = 1; while (i <= 24) { _root['card' + i].enabled = false; ++i; } msgBox_mc._visible = false; next_btn.enabled = false; prev_btn.enabled = false; msgBox_mc3._visible = true; msgBox_mc3.nama = 'Ups'; msgBox_mc3.isi = 'Unable to use this character, not enough turanggamasa level, you need a higher level of turanggamasa, win a battle first.'; msgBox_mc3.ok_btn.onRelease = function () { i = 1; while (i <= 24) { _root['card' + i].enabled = true; ++i; } next_btn.enabled = true; prev_btn.enabled = true; msgBox_mc3._visible = false; }; } } else { i = 1; while (i <= 24) { _root['card' + i].enabled = false; ++i; } msgBox_mc._visible = false; next_btn.enabled = false; prev_btn.enabled = false; msgBox_mc3._visible = true; msgBox_mc3.nama = 'Ups'; msgBox_mc3.isi = 'Unable to use this character, not enough prada, you need more prada, you can conduct training to increase the value of prada.'; msgBox_mc3.ok_btn.onRelease = function () { i = 1; while (i <= 24) { _root['card' + i].enabled = true; ++i; } next_btn.enabled = true; prev_btn.enabled = true; msgBox_mc3._visible = false; }; } } } function enterMsgBox() { if (_root._ymouse < 225) { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse + 140; } else { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse - 50; } } function overAttack() { myStr = new String(this); if (myStr.length == 16) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } indi = this._currentframe; if (indi >= 39) { indi -= 40; msgBox_mc2.nama = jenisDefense[indi]; msgBox_mc2.isi = infoDefense[indi] + '\nNeed ' + powerDefense[indi] + ' Power.'; } else { msgBox_mc2.nama = jenisAttack[indi]; msgBox_mc2.isi = infoAttack[indi] + '\nNeed ' + powerAttack[indi] + ' Power.'; } msgBox_mc2._visible = true; } function outAttack() { msgBox_mc2._visible = false; } function overCard() { myStr = new String(this); if (myStr.length == 13) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } if (karakterRahasia != true && indi >= 22) { msgBox_mc.nama = karakterNama[indi]; msgBox_mc.xexp = 'Exp: ??/??'; if (jenisMainX == 'unlimited') { msgBox_mc.xlevel = 'Level ??'; } else { if (jenisMainX == 'pvp') { msgBox_mc.xlevel = 'Level ??'; } else { msgBox_mc.xlevel = 'Level ??/??'; } } if (tipePilih == 'train') { msgBox_mc.mana = 'Need Prada: ??'; } else { msgBox_mc.mana = 'Need Prada: ??'; } msgBox_mc.regen = 'Power Regeneration: ??'; msgBox_mc.turanggamasa = 'Need Turanggamasa Level: ??'; msgBox_mc.attack = 'Basic Attack: ??'; msgBox_mc.defense = 'Basic Defense: ??'; msgBox_mc.life = 'Basic Life: ??'; msgBox_mc.power = 'Basic Power: ??'; i = 1; while (i <= 10) { msgBox_mc['attack' + i].gotoAndStop(30); msgBox_mc['attack' + i]._alpha = 50; ++i; } i = 1; while (i <= tipeAttack[indi].length - 1) { if (tipeAttack[indi][i] != 0) { msgBox_mc['attack' + i].gotoAndStop(60); msgBox_mc['attack' + i]._alpha = 100; } else { keberapa = i; i = tipeAttack[indi].length; } ++i; } i = 1; while (i <= tipeDefense[indi].length - 1) { if (tipeDefense[indi][i] != 0) { kemana = 40 + tipeDefense[indi][i]; msgBox_mc['attack' + keberapa].gotoAndStop(60); msgBox_mc['attack' + keberapa]._alpha = 100; ++keberapa; } ++i; } } else { msgBox_mc.nama = karakterNama[indi]; msgBox_mc.xexp = 'Exp: ' + karakterExp[indi] + '/' + karakterLevel[indi] * 100; if (jenisMainX == 'unlimited') { msgBox_mc.xlevel = 'Level ' + karakterLevel[indi]; } else { if (jenisMainX == 'pvp') { msgBox_mc.xlevel = 'Level ' + karakterLevel[indi]; } else { msgBox_mc.xlevel = 'Level ' + karakterLevel[indi] + '/' + karakterMaxLevel[indi]; } } if (tipePilih == 'train') { msgBox_mc.mana = 'Need Prada: ' + karakterMana2[indi]; } else { msgBox_mc.mana = 'Need Prada: ' + karakterMana[indi]; } msgBox_mc.regen = 'Power Regeneration: ' + karakterRegen[indi]; msgBox_mc.turanggamasa = 'Need Turanggamasa Level: ' + karakterTurangga[indi]; msgBox_mc.attack = 'Basic Attack: ' + karakterAttack[indi]; msgBox_mc.defense = 'Basic Defense: ' + karakterDefense[indi]; msgBox_mc.life = 'Basic Life: ' + karakterLife[indi]; msgBox_mc.power = 'Basic Power: ' + karakterPower[indi]; i = 1; while (i <= 10) { msgBox_mc['attack' + i].gotoAndStop(30); msgBox_mc['attack' + i]._alpha = 50; ++i; } i = 1; while (i <= tipeAttack[indi].length - 1) { if (tipeAttack[indi][i] != 0) { msgBox_mc['attack' + i].gotoAndStop(tipeAttack[indi][i]); msgBox_mc['attack' + i]._alpha = 100; } else { keberapa = i; i = tipeAttack[indi].length; } ++i; } i = 1; while (i <= tipeDefense[indi].length - 1) { if (tipeDefense[indi][i] != 0) { kemana = 40 + tipeDefense[indi][i]; msgBox_mc['attack' + keberapa].gotoAndStop(kemana); msgBox_mc['attack' + keberapa]._alpha = 100; ++keberapa; } ++i; } } msgBox_mc._visible = true; } function outCard() { msgBox_mc._visible = false; } stop(); next_btn.onRelease = function () { gotoAndStop('dua'); }; prev_btn.onRelease = function () { if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { if (jenisMainX == 'pvp') { transisi.gotoAndPlay(2); kemanax = 'pvp'; } else { if (jenisMainX == 'unlimited') { transisi.gotoAndPlay(2); kemanax = 'menu'; } } } else { transisi.gotoAndPlay(2); kemanax = 'map'; } }; msgBox_mc3._visible = false; select_mc._visible = false; msgBox_mc4._visible = false; msgBox_mc5._visible = false; sellectCard(); if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { select.gotoAndStop(3); select_mc.use_mc.gotoAndStop(3); } else { if (tipePilih == 'train') { select.gotoAndStop(1); select_mc.use_mc.gotoAndStop(2); } else { select.gotoAndStop(2); select_mc.use_mc.gotoAndStop(1); } } msgBox_mc2.onEnterFrame = enterMsgBox; msgBox_mc2._visible = false; if (pilihCard != undefined) { if (awalSekali == undefined) { awalSekali = true; if (pilihCard <= 6) { gotoAndStop('satu'); } else { if (pilihCard > 7 && pilihCard <= 13) { gotoAndStop('dua'); } else { if (pilihCard > 14 && pilihCard <= 20) { gotoAndStop('tiga'); } else { gotoAndStop('empat'); } } } } } else {} if (jenisMainX == 'unlimited') { brpLevelNaik6 = 0; brpLevelNaik7 = 0; brpLevelNaik8 = 0; brpLevelNaik9 = 0; brpLevelNaik10 = 0; brpLevelNaik11 = 0; brpLevelNaik12 = 0; brpLevelNaik13 = 0; brpLevelNaik14 = 0; brpLevelNaik15 = 0; i = 1; while (i <= 24) { if (karakterLevel[i] == 5) { ++brpLevelNaik6; } if (karakterLevel[i] == 10) { ++brpLevelNaik7; } if (karakterLevel[i] == 15) { ++brpLevelNaik8; } if (karakterLevel[i] == 20) { ++brpLevelNaik9; } if (karakterLevel[i] == 25) { ++brpLevelNaik10; } if (karakterLevel[i] == 30) { ++brpLevelNaik11; } if (karakterLevel[i] == 35) { ++brpLevelNaik12; } if (karakterLevel[i] == 40) { ++brpLevelNaik13; } if (karakterLevel[i] == 45) { ++brpLevelNaik14; } if (karakterLevel[i] == 50) { ++brpLevelNaik15; } ++i; } if (brpLevelNaik6 >= 22) { _root.medalx6 = true; } if (brpLevelNaik7 >= 22) { _root.medalx7 = true; } if (brpLevelNaik8 >= 22) { _root.medalx8 = true; } if (brpLevelNaik9 >= 22) { _root.medalx9 = true; } if (brpLevelNaik10 >= 22) { _root.medalx10 = true; } if (brpLevelNaik11 >= 22) { _root.medalx11 = true; } if (brpLevelNaik12 >= 22) { _root.medalx12 = true; } if (brpLevelNaik13 >= 22) { _root.medalx13 = true; } if (brpLevelNaik14 >= 22) { _root.medalx14 = true; } if (brpLevelNaik15 >= 22) { _root.medalx15 = true; } } if (tutorialMulai2 == true) { tutorial_mc._visible = true; next_btn.enabled = false; prev_btn.enabled = false; i = 1; while (i <= 24) { _root['card' + i].enabled = false; ++i; } tutorialMulai2 = false; } else { tutorial_mc._visible = false; } } movieClip 1273 { frame 1 { stop(); } } movieClip 1291 { frame 1 { stop(); } } movieClip 1292 { } movieClip 1303 { } movieClip 1308 { } movieClip 1313 { frame 1 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } frame 2 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } frame 3 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } } frame 1952 { stop(); pilihCard = undefined; next_btn.onRelease = function () { gotoAndStop('tiga'); }; prev_btn.onRelease = function () { gotoAndStop('satu'); }; sellectCard(); } frame 1953 { stop(); pilihCard = undefined; next_btn.onRelease = function () { gotoAndStop('empat'); }; prev_btn.onRelease = function () { gotoAndStop('dua'); }; sellectCard(); } frame 1954 { stop(); pilihCard = undefined; prev_btn.onRelease = function () { gotoAndStop('tiga'); }; sellectCard(); } frame 1955 { function cekBisaKlikSaja() { end_btn.enabled = true; i = 1; while (i <= tipeAttack[pilihCard].length) { if (tipeAttack[pilihCard][i] != 0) { _root['attack' + i].enabled = true; } ++i; } i = 1; while (i <= tipeDefense[pilihCard].length) { if (tipeDefense[pilihCard][i] != 0) { _root['defense' + i].enabled = true; } ++i; } kartu1.enabled = true; nyawa1.enabled = true; power1.enabled = true; kartu2.enabled = true; nyawa2.enabled = true; power2.enabled = true; } function klikKartu1() { select_mc2._visible = true; msgBox_mc5._visible = false; kartu1.enabled = false; kartu2.enabled = false; select_mc2.card.gotoAndStop(pilihCard); qindi = pilihCard; select_mc2.nama = karakterNama[qindi]; select_mc2.xexp = 'Exp: ' + karakterExp[qindi] + '/' + karakterLevel[qindi] * 100; if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { select_mc2.xlevel = 'Level ' + karakterLevel[qindi]; } else { select_mc2.xlevel = 'Level ' + karakterLevel[qindi] + '/' + karakterMaxLevel[qindi]; } if (tipePilih == 'train') { select_mc2.mana = 'Need Prada: ' + karakterMana2[qindi]; } else { select_mc2.mana = 'Need Prada: ' + karakterMana[qindi]; } select_mc2.regen = 'Power Regeneration: ' + karakterRegen[qindi]; select_mc2.turanggamasa = 'Need Turanggamasa Level: ' + karakterTurangga[qindi]; select_mc2.attack = 'Basic Attack: ' + karakterAttack[qindi]; select_mc2.defense = 'Basic Defense: ' + karakterDefense[qindi]; select_mc2.life = 'Basic Life: ' + karakterLife[qindi]; select_mc2.power = 'Basic Power: ' + karakterPower[qindi]; i = 1; while (i <= 10) { select_mc2['attack' + i].gotoAndStop(30); select_mc2['attack' + i]._alpha = 50; ++i; } i = 1; while (i <= tipeAttack[qindi].length - 1) { if (tipeAttack[qindi][i] != 0) { select_mc2['attack' + i].gotoAndStop(tipeAttack[qindi][i]); select_mc2['attack' + i]._alpha = 100; select_mc2['attack' + i].onRollOver = overAttack2; select_mc2['attack' + i].onRollOut = outAttack2; } else { keberapa = i; i = tipeAttack[qindi].length; } ++i; } i = 1; while (i <= tipeDefense[qindi].length - 1) { if (tipeDefense[qindi][i] != 0) { kemana = 40 + tipeDefense[qindi][i]; select_mc2['attack' + keberapa].gotoAndStop(kemana); select_mc2['attack' + keberapa]._alpha = 100; select_mc2['attack' + keberapa].onRollOver = overAttack2; select_mc2['attack' + keberapa].onRollOut = outAttack2; ++keberapa; } ++i; } select_mc2.ok_btn.onRelease = function () { kartu1.enabled = true; kartu2.enabled = true; select_mc2._visible = false; }; } function klikKartu2() { select_mc2._visible = true; msgBox_mc5._visible = false; kartu1.enabled = false; kartu2.enabled = false; select_mc2.card.gotoAndStop(jenisMusuh[zlevel]); qindi = jenisMusuh[zlevel]; select_mc2.nama = karakterNama[qindi]; select_mc2.xexp = 'Exp: ' + musuhExp + '/' + levelMusuh[zlevel] * 100; if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { select_mc2.xlevel = 'Level ' + levelMusuh[zlevel]; } else { select_mc2.xlevel = 'Level ' + levelMusuh[zlevel] + '/' + karakterMaxLevel[qindi]; } if (tipePilih == 'train') { select_mc2.mana = 'Need Prada: ' + karakterMana2[qindi]; } else { select_mc2.mana = 'Need Prada: ' + karakterMana[qindi]; } select_mc2.regen = 'Power Regeneration: ' + karakterRegen[qindi]; select_mc2.turanggamasa = 'Need Turanggamasa Level: ' + karakterTurangga[qindi]; select_mc2.attack = 'Basic Attack: ' + karakterAttack[qindi]; select_mc2.defense = 'Basic Defense: ' + karakterDefense[qindi]; select_mc2.life = 'Basic Life: ' + karakterLife[qindi]; select_mc2.power = 'Basic Power: ' + karakterPower[qindi]; i = 1; while (i <= 10) { select_mc2['attack' + i].gotoAndStop(30); select_mc2['attack' + i]._alpha = 50; ++i; } i = 1; while (i <= tipeAttack[qindi].length - 1) { if (tipeAttack[qindi][i] != 0) { select_mc2['attack' + i].gotoAndStop(tipeAttack[qindi][i]); select_mc2['attack' + i]._alpha = 100; select_mc2['attack' + i].onRollOver = overAttack2; select_mc2['attack' + i].onRollOut = outAttack2; } else { keberapa = i; i = tipeAttack[qindi].length; } ++i; } i = 1; while (i <= tipeDefense[qindi].length - 1) { if (tipeDefense[qindi][i] != 0) { kemana = 40 + tipeDefense[qindi][i]; select_mc2['attack' + keberapa].gotoAndStop(kemana); select_mc2['attack' + keberapa]._alpha = 100; select_mc2['attack' + keberapa].onRollOver = overAttack2; select_mc2['attack' + keberapa].onRollOut = outAttack2; ++keberapa; } ++i; } select_mc2.ok_btn.onRelease = function () { kartu1.enabled = true; kartu2.enabled = true; select_mc2._visible = false; }; } function overAttack2() { myStr = new String(this); if (myStr.length == 16) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } indi = this._currentframe; if (indi >= 39) { indi -= 40; msgBox_mc2.nama = jenisDefense[indi]; msgBox_mc2.isi = infoDefense[indi] + '\nNeed ' + powerDefense[indi] + ' Power.'; } else { msgBox_mc2.nama = jenisAttack[indi]; msgBox_mc2.isi = infoAttack[indi] + '\nNeed ' + powerAttack[indi] + ' Power.'; } msgBox_mc2._visible = true; } function outAttack2() { msgBox_mc2._visible = false; } function overKartu1() { msgBox_mc5.nama = karakterNama[pilihCard]; msgBox_mc5.isi = 'Click here for detail information about this charachter.'; msgBox_mc5._visible = true; } function overKartu2() { msgBox_mc5.nama = karakterNama[jenisMusuh[zlevel]]; msgBox_mc5.isi = 'Click here for detail information about this charachter.'; msgBox_mc5._visible = true; } function outKartu1() { msgBox_mc5._visible = false; } function outKartu2() { msgBox_mc5._visible = false; } function overEfek() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); msgBox_mc.nama = namaKondisi[indi]; msgBox_mc.isi = penjelasanKondisi[indi]; msgBox_mc._visible = true; } function outEfek() { msgBox_mc._visible = false; } function enterMsgBox() { if (_root._ymouse < 225) { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse + 100; } else { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse - 50; } } function enterMsgBox6() { if (_root._ymouse < 225) { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse + 160; } else { if (_root._xmouse <= 125) { this._x = _root._xmouse + 100; } else { if (_root._xmouse >= 675) { this._x = _root._xmouse - 100; } else { this._x = _root._xmouse; } } this._y = _root._ymouse - 50; } } function klikAttack() { if (myStr.length == 15) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } indi = this._currentframe; if (powerKini1 >= powerAttack[indi]) { msgBox_mc._visible = false; bisaKlikAction(false); if (indi == 6 || indi == 9) { cekDamage(pilihCard, jenisMusuh[zlevel], indi, 1); idDamage = setInterval(cekDamage, 1000, pilihCard, jenisMusuh[zlevel], indi, 1, 0); } else { cekDamage(pilihCard, jenisMusuh[zlevel], indi, 1); } if (tidakDapatJalan2 > 0) { --tidakDapatJalan2; idLanjut1 = setInterval(nextTurn, 1500); } else { if (masihMatahari2 > 0) { idLanjut2 = setInterval(nextTurn, 1500); } else { if (indi == 6 || indi == 9) { if (jenisMainX == 'pvp') { idLanjut3 = setInterval(nextTurn, 2500); } else { idAI1 = setInterval(cekAI, 2000); idLanjut3 = setInterval(nextTurn, 3000); } } else { if (jenisMainX == 'pvp') { idLanjut4 = setInterval(nextTurn, 2000); } else { idAI2 = setInterval(cekAI, 1500); idLanjut4 = setInterval(nextTurn, 2000); } } } } } else { msgBox_mc3._visible = true; kartu1.enabled = false; kartu2.enabled = false; msgBox_mc3.nama = 'Can\'t cast spell'; msgBox_mc3.isi = 'Not enough power to cast this spell.'; msgBox_mc3.ok_btn.onRelease = function () { kartu1.enabled = true; kartu2.enabled = true; msgBox_mc3._visible = false; }; } } function klikAttack2() { if (myStr.length == 15) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } indi = this._currentframe; if (powerKini2 >= powerAttack[indi]) { msgBox_mc._visible = false; bisaKlikAction(false); if (indi == 6 || indi == 9) { cekDamage(jenisMusuh[zlevel], pilihCard, indi, 2); idDamage = setInterval(cekDamage, 1000, jenisMusuh[zlevel], pilihCard, indi, 2, 0); } else { cekDamage(jenisMusuh[zlevel], pilihCard, indi, 2); } if (tidakDapatJalan1 > 0) { idLanjut1 = setInterval(nextTurn, 1500); } else { if (masihMatahari2 > 0) { idLanjut2 = setInterval(nextTurn, 1500); } else { if (indi == 6 || indi == 9) { if (jenisMainX == 'pvp') { idLanjut3 = setInterval(nextTurn, 3500); } else { idAI1 = setInterval(cekAI, 3500); idLanjut3 = setInterval(nextTurn, 4500); } } else { if (jenisMainX == 'pvp') { idLanjut4 = setInterval(nextTurn, 2000); } else { idAI2 = setInterval(cekAI, 1500); idLanjut4 = setInterval(nextTurn, 2000); } } } } } else { msgBox_mc3._visible = true; kartu1.enabled = false; kartu2.enabled = false; msgBox_mc3.nama = 'Can\'t cast spell'; msgBox_mc3.isi = 'Not enough power to cast this spell.'; msgBox_mc3.ok_btn.onRelease = function () { kartu1.enabled = true; kartu2.enabled = true; msgBox_mc3._visible = false; }; } } function overAttack() { myStr = new String(this); if (myStr.length == 15) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } indi = this._currentframe; msgBox_mc.nama = jenisAttack[indi]; msgBox_mc.isi = infoAttack[indi] + '\nNeed ' + powerAttack[indi] + ' Power.'; msgBox_mc._visible = true; } function outAttack() { msgBox_mc._visible = false; } function klikDefense() { if (myStr.length == 15) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } indi = this._currentframe; if (powerKini1 >= powerDefense[indi]) { msgBox_mc._visible = false; bisaKlikAction(false); cekDefense(pilihCard, jenisMusuh[zlevel], indi, 1); if (jenisMainX == 'pvp') { idLanjut5 = setInterval(nextTurn, 2000); } else { idAI3 = setInterval(cekAI, 1500); idLanjut5 = setInterval(nextTurn, 2000); } } else { msgBox_mc3._visible = true; kartu1.enabled = false; kartu2.enabled = false; msgBox_mc3.nama = 'Can\'t cast spell'; msgBox_mc3.isi = 'Not enough power to cast this spell.'; msgBox_mc3.ok_btn.onRelease = function () { kartu1.enabled = true; kartu2.enabled = true; msgBox_mc3._visible = false; }; } } function klikDefense2() { if (myStr.length == 15) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } indi = this._currentframe; if (powerKini2 >= powerDefense[indi]) { msgBox_mc._visible = false; bisaKlikAction(false); cekDefense(jenisMusuh[zlevel], pilihCard, indi, 2); if (jenisMainX == 'pvp') { idLanjut5 = setInterval(nextTurn, 2000); } else { idAI3 = setInterval(cekAI, 1500); idLanjut5 = setInterval(nextTurn, 2000); } } else { msgBox_mc3._visible = true; kartu1.enabled = false; kartu2.enabled = false; msgBox_mc3.nama = 'Can\'t cast spell'; msgBox_mc3.isi = 'Not enough power to cast this spell.'; msgBox_mc3.ok_btn.onRelease = function () { kartu1.enabled = true; kartu2.enabled = true; msgBox_mc3._visible = false; }; } } function overDefense() { myStr = new String(this); if (myStr.length == 15) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } indi = this._currentframe; msgBox_mc.nama = jenisDefense[indi]; msgBox_mc.isi = infoDefense[indi] + '\nNeed ' + powerDefense[indi] + ' Power.'; msgBox_mc._visible = true; } function outDefense() { msgBox_mc._visible = false; } function cekAksiBisa() { if (jenisMainX == 'pvp') { if (jalanDuluan == 1) { i = 1; while (i <= tipeAttack[pilihCard].length) { if (tipeAttack[pilihCard][i] != 0) { if (_root['attackAktif' + i] == 0) { _root['attack' + i].delayx = ''; } else { _root['attack' + i]._alpha = 25; _root['attack' + i].enabled = false; _root['attack' + i].delayx = _root['attackAktif' + i]; } } else { _root['attack' + i].delayx = ''; } ++i; } i = 1; while (i <= tipeDefense[pilihCard].length) { if (tipeDefense[pilihCard][i] != 0) { if (_root['defenseAktif' + i] == 0) { _root['defense' + i].delayx = ''; } else { _root['defense' + i]._alpha = 25; _root['defense' + i].enabled = false; _root['defense' + i].delayx = _root['defenseAktif' + i]; } } else { _root['defense' + i].delayx = ''; } ++i; } } else { if (jalanDuluan == 2) { i = 1; while (i <= tipeAttack[jenisMusuh[zlevel]].length) { if (tipeAttack[jenisMusuh[zlevel]][i] != 0) { if (_root['zattackAktif' + i] == 0) { _root['attack' + i].delayx = ''; } else { _root['attack' + i]._alpha = 25; _root['attack' + i].enabled = false; _root['attack' + i].delayx = _root['zattackAktif' + i]; } } else { _root['attack' + i].delayx = ''; } ++i; } i = 1; while (i <= tipeDefense[jenisMusuh[zlevel]].length) { if (tipeDefense[jenisMusuh[zlevel]][i] != 0) { if (_root['zdefenseAktif' + i] == 0) { _root['defense' + i].delayx = ''; } else { _root['defense' + i]._alpha = 25; _root['defense' + i].enabled = false; _root['defense' + i].delayx = _root['zdefenseAktif' + i]; } } else { _root['defense' + i].delayx = ''; } ++i; } } } } else { i = 1; while (i <= tipeAttack[pilihCard].length) { if (tipeAttack[pilihCard][i] != 0) { if (_root['attackAktif' + i] == 0) { _root['attack' + i].delayx = ''; } else { _root['attack' + i]._alpha = 25; _root['attack' + i].enabled = false; _root['attack' + i].delayx = _root['attackAktif' + i]; } } else { _root['attack' + i].delayx = ''; } ++i; } i = 1; while (i <= tipeDefense[pilihCard].length) { if (tipeDefense[pilihCard][i] != 0) { if (_root['defenseAktif' + i] == 0) { _root['defense' + i].delayx = ''; } else { _root['defense' + i]._alpha = 25; _root['defense' + i].enabled = false; _root['defense' + i].delayx = _root['defenseAktif' + i]; } } else { _root['defense' + i].delayx = ''; } ++i; } } } function cekSpell1() { i = 1; while (i <= 10) { _root['attack' + i]._alpha = 50; _root['defense' + i]._alpha = 50; _root['attack' + i].gotoAndStop(30); _root['defense' + i].gotoAndStop(30); ++i; } i = 1; while (i <= tipeAttack[pilihCard].length) { if (tipeAttack[pilihCard][i] != 0) { _root['attack' + i].gotoAndStop(tipeAttack[pilihCard][i]); _root['attack' + i]._alpha = 100; _root['attack' + i].onRelease = klikAttack; _root['attack' + i].onRollOver = overAttack; _root['attack' + i].onRollOut = outAttack; } ++i; } i = 1; while (i <= tipeDefense[pilihCard].length) { if (tipeDefense[pilihCard][i] != 0) { _root['defense' + i].gotoAndStop(tipeDefense[pilihCard][i]); _root['defense' + i]._alpha = 100; _root['defense' + i].onRelease = klikDefense; _root['defense' + i].onRollOver = overDefense; _root['defense' + i].onRollOut = outDefense; } ++i; } } function cekSpell2() { i = 1; while (i <= 10) { _root['attack' + i]._alpha = 50; _root['defense' + i]._alpha = 50; _root['attack' + i].gotoAndStop(30); _root['defense' + i].gotoAndStop(30); ++i; } i = 1; while (i <= tipeAttack[jenisMusuh[zlevel]].length) { if (tipeAttack[jenisMusuh[zlevel]][i] != 0) { _root['attack' + i].gotoAndStop(tipeAttack[jenisMusuh[zlevel]][i]); _root['attack' + i]._alpha = 100; _root['attack' + i].onRelease = klikAttack2; _root['attack' + i].onRollOver = overAttack; _root['attack' + i].onRollOut = outAttack; } ++i; } i = 1; while (i <= tipeDefense[jenisMusuh[zlevel]].length) { if (tipeDefense[jenisMusuh[zlevel]][i] != 0) { _root['defense' + i].gotoAndStop(tipeDefense[jenisMusuh[zlevel]][i]); _root['defense' + i]._alpha = 100; _root['defense' + i].onRelease = klikDefense2; _root['defense' + i].onRollOver = overDefense; _root['defense' + i].onRollOut = outDefense; } ++i; } } function bisaKlikAction(indi, indi2) { if (jenisMainX == 'pvp') { i = 1; while (i <= 10) { delete _root['attack' + i].onRelease; delete _root['attack' + i].onRollOver; delete _root['attack' + i].onRollOut; delete _root['defense' + i].onRelease; delete _root['defense' + i].onRollOver; delete _root['defense' + i].onRollOut; ++i; } } if (indi2 == 1) { cekSpell1(); } else { if (indi2 == 2) { cekSpell2(); } } i = 1; while (i <= 10) { _root['attack' + i].enabled = indi; _root['defense' + i].enabled = indi; if (indi == true) { _root['attack' + i]._alpha = 100; _root['defense' + i]._alpha = 100; } else { _root['attack' + i]._alpha = 50; _root['defense' + i]._alpha = 50; } ++i; } cekAksiBisa(); if (indi == true) { end_btn._alpha = 100; } else { end_btn._alpha = 50; } end_btn.enabled = indi; } function cekAI() { clearInterval(idAI); clearInterval(idAI1); clearInterval(idAI2); clearInterval(idAI3); clearInterval(idAI4); clearInterval(idAI5); if (tidakDapatJalan2 <= 0) { if (nyawaKini1 > 0 && nyawaKini2 > 0) { sudahDefense = false; if (ilusi1 > 0) { i = tipeDefense[jenisMusuh[zlevel]].length; while (i >= 1) { if (tipeDefense[jenisMusuh[zlevel]][i] != 0 && tipeDefense[jenisMusuh[zlevel]][i] != undefined) { if (powerKini2 >= powerDefense[tipeDefense[jenisMusuh[zlevel]][i]]) { pilihDefense = tipeDefense[jenisMusuh[zlevel]][i]; if (pilihDefense == 7) { if (ilusi2 <= 0) { if (_root['zdefenseAktif' + pilihDefense] == 0) { cekDefense(pilihCard, jenisMusuh[zlevel], pilihDefense, 2); sudahDefense = true; i = 0; } } } } } --i; } if (sudahDefense == false) { i = tipeAttack[jenisMusuh[zlevel]].length; while (i >= 1) { if (tipeAttack[jenisMusuh[zlevel]][i] != 0 && tipeAttack[jenisMusuh[zlevel]][i] != undefined) { if (powerKini2 >= powerAttack[tipeAttack[jenisMusuh[zlevel]][i]]) { if (tipeAttack[jenisMusuh[zlevel]][i] == 20) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; cekDamage(jenisMusuh[zlevel], pilihCard, pilihAttack, 2); sudahDefense = true; i = 0; } } } } --i; } if (sudahDefense == false) { if (jenisMusuh[zlevel] <= 9) { randIlus = random(100); } else { randIlus = 1; } if (pilihLevel >= 2) { randIlus = 1; } if (randIlus <= 50) { if (_root.zattackAktif1 == 0) { pilihAttack = 1; cekDamage(jenisMusuh[zlevel], pilihCard, pilihAttack, 2); i = 0; sudahDefense = true; } } else { sudahDefense = false; } } } } else { if (tidakDapatJalan2 > 0 || masihTerbakar2 > 0 || masihBeracun2 > 0 || masihMatahari2 > 0) { i = tipeDefense[jenisMusuh[zlevel]].length; while (i >= 1) { if (tipeDefense[jenisMusuh[zlevel]][i] != 0 && tipeDefense[jenisMusuh[zlevel]][i] != undefined) { if (powerKini2 >= powerDefense[tipeDefense[jenisMusuh[zlevel]][i]]) { pilihDefense = tipeDefense[jenisMusuh[zlevel]][i]; if (pilihDefense == 10) { if (_root['zdefenseAktif' + pilihDefense] == 0) { cekDefense(pilihCard, jenisMusuh[zlevel], pilihDefense, 2); sudahDefense = true; i = 0; } } } } --i; } } else { sudahDefense = false; } } if (sudahDefense == false) { if (nyawaKini1 <= nyawaAwal1 * 0.25) { pilihAttack = 1; i = tipeAttack[jenisMusuh[zlevel]].length; while (i >= 1) { if (tipeAttack[jenisMusuh[zlevel]][i] != 0 && tipeAttack[jenisMusuh[zlevel]][i] != undefined) { if (powerKini2 >= powerAttack[tipeAttack[jenisMusuh[zlevel]][i]]) { if ((tidakDapatJalan1 > 0 || masihMatahari1 > 0) && tipeAttack[jenisMusuh[zlevel]][i] == 18) { } else { if ((tidakDapatJalan1 > 0 || masihMatahari1 > 0) && tipeAttack[jenisMusuh[zlevel]][i] == 19) { } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 13 || tipeAttack[jenisMusuh[zlevel]][i] == 17) { if (nyawaKini2 >= nyawaKini1 + nyawaKini1 / 2) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } else {} } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 10) { if (nyawaKini2 <= nyawaAwal2 * 0.5) { } else { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 7 || tipeAttack[jenisMusuh[zlevel]][i] == 10) { if (nyawaKini2 >= nyawaAwal2 * 0.1 && jenisMusuh[zlevel] <= 18) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } else { if (jenisMusuh[zlevel] >= 19) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 20) { if (lamaPelindung11 > 0 || lamaPelindung21 > 0 || rage11 > 0 || rage21 > 0 || ilusi1 > 0) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } else { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } } } } } } } --i; } if (sudahDefense == true) { if (pilihAttack == 6 || pilihAttack == 9) { cekDamage(jenisMusuh[zlevel], pilihCard, pilihAttack, 2); idDamage = setInterval(cekDamage, 1500, jenisMusuh[zlevel], pilihCard, pilihAttack, 2, 0); } else { cekDamage(jenisMusuh[zlevel], pilihCard, pilihAttack, 2); } } } } if (sudahDefense == false) { if (nyawaKini2 <= nyawaAwal2 * 0.25) { i = tipeDefense[jenisMusuh[zlevel]].length; while (i >= 1) { if (tipeDefense[jenisMusuh[zlevel]][i] != 0 && tipeDefense[jenisMusuh[zlevel]][i] != undefined) { if (powerKini2 >= powerDefense[tipeDefense[jenisMusuh[zlevel]][i]]) { pilihDefense = tipeDefense[jenisMusuh[zlevel]][i]; if (pilihDefense >= 1 && pilihDefense <= 2) { if (_root['zdefenseAktif' + pilihDefense] == 0) { cekDefense(pilihCard, jenisMusuh[zlevel], pilihDefense, 2); sudahDefense = true; i = 0; } } } } --i; } } } if (sudahDefense == false) { if (jenisMusuh[zlevel] <= 14) { naikPower = 0.35; } else { if (jenisMusuh[zlevel] <= 21) { naikPower = 0.25; } else { naikPower = 0.15; } } if (powerKini2 <= powerAwal2 * naikPower) { i = tipeDefense[jenisMusuh[zlevel]].length; while (i >= 1) { if (tipeDefense[jenisMusuh[zlevel]][i] != 0 && tipeDefense[jenisMusuh[zlevel]][i] != undefined) { if (powerKini2 >= powerDefense[tipeDefense[jenisMusuh[zlevel]][i]]) { pilihDefense = tipeDefense[jenisMusuh[zlevel]][i]; if (pilihDefense >= 8 && pilihDefense <= 9) { if (_root['zdefenseAktif' + pilihDefense] == 0) { cekDefense(pilihCard, jenisMusuh[zlevel], pilihDefense, 2); sudahDefense = true; i = 0; } } } } --i; } } } xrandZ = random(100); if (pilihLevel == 3 && zlevel > 25 && xrandZ <= 75) { pilihAttack = 1; i = tipeAttack[jenisMusuh[zlevel]].length; while (i >= 1) { if (tipeAttack[jenisMusuh[zlevel]][i] != 0 && tipeAttack[jenisMusuh[zlevel]][i] != undefined) { if (powerKini2 >= powerAttack[tipeAttack[jenisMusuh[zlevel]][i]]) { if ((tidakDapatJalan1 > 0 || masihMatahari1 > 0) && tipeAttack[jenisMusuh[zlevel]][i] == 18) { } else { if ((tidakDapatJalan1 > 0 || masihMatahari1 > 0) && tipeAttack[jenisMusuh[zlevel]][i] == 19) { } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 13 || tipeAttack[jenisMusuh[zlevel]][i] == 17) { if (nyawaKini2 >= nyawaKini1 + nyawaKini1 / 2) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } else {} } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 10) { if (nyawaKini2 <= nyawaAwal2 * 0.5) { } else { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 7 || tipeAttack[jenisMusuh[zlevel]][i] == 10) { if (nyawaKini2 >= nyawaAwal2 * 0.1 && jenisMusuh[zlevel] <= 18) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } else { if (jenisMusuh[zlevel] >= 19) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 20) { if (lamaPelindung11 > 0 || lamaPelindung21 > 0 || rage11 > 0 || rage21 > 0 || ilusi1 > 0) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } else { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } } } } } } } --i; } if (sudahDefense == true) { if (pilihAttack == 6 || pilihAttack == 9) { cekDamage(jenisMusuh[zlevel], pilihCard, pilihAttack, 2); idDamage = setInterval(cekDamage, 1500, jenisMusuh[zlevel], pilihCard, pilihAttack, 2, 0); } else { cekDamage(jenisMusuh[zlevel], pilihCard, pilihAttack, 2); } } } if (sudahDefense == false) { if (nyawaKini2 <= nyawaAwal2) { i = tipeDefense[jenisMusuh[zlevel]].length; while (i >= 1) { if (tipeDefense[jenisMusuh[zlevel]][i] != 0 && tipeDefense[jenisMusuh[zlevel]][i] != undefined) { if (powerKini2 >= powerDefense[tipeDefense[jenisMusuh[zlevel]][i]]) { pilihDefense = tipeDefense[jenisMusuh[zlevel]][i]; if (pilihDefense >= 3 && pilihDefense <= 7) { if (pilihDefense == 3 || pilihDefense == 4) { if (pelindung12 == false && pelindung22 == false) { if (_root['zdefenseAktif' + pilihDefense] == 0) { cekDefense(pilihCard, jenisMusuh[zlevel], pilihDefense, 2); sudahDefense = true; i = 0; } } } else { if (pilihDefense == 5 || pilihDefense == 6) { if (rage12 <= 0 && rage22 <= 0) { if (_root['zdefenseAktif' + pilihDefense] == 0) { cekDefense(pilihCard, jenisMusuh[zlevel], pilihDefense, 2); sudahDefense = true; i = 0; } } } else { if (pilihDefense == 7) { if (ilusi2 <= 0) { if (_root['zdefenseAktif' + pilihDefense] == 0) { cekDefense(pilihCard, jenisMusuh[zlevel], pilihDefense, 2); sudahDefense = true; i = 0; } } } } } } } } --i; } } } if (sudahDefense == false) { pilihAttack = 1; i = tipeAttack[jenisMusuh[zlevel]].length; while (i >= 1) { if (tipeAttack[jenisMusuh[zlevel]][i] != 0 && tipeAttack[jenisMusuh[zlevel]][i] != undefined) { if (powerKini2 >= powerAttack[tipeAttack[jenisMusuh[zlevel]][i]]) { if ((tidakDapatJalan1 > 0 || masihMatahari1 > 0) && tipeAttack[jenisMusuh[zlevel]][i] == 18) { } else { if ((tidakDapatJalan1 > 0 || masihMatahari1 > 0) && tipeAttack[jenisMusuh[zlevel]][i] == 19) { } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 13 || tipeAttack[jenisMusuh[zlevel]][i] == 17) { if (nyawaKini2 >= nyawaKini1 + nyawaKini1 / 2) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } else {} } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 7 || tipeAttack[jenisMusuh[zlevel]][i] == 10) { if (nyawaKini2 >= nyawaAwal2 * 0.1 && jenisMusuh[zlevel] <= 18) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } else { if (jenisMusuh[zlevel] >= 19) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 10) { if (nyawaKini2 <= nyawaAwal2 * 0.8) { } else { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } else { if (tipeAttack[jenisMusuh[zlevel]][i] == 20) { if (lamaPelindung11 > 0 || lamaPelindung21 > 0 || rage11 > 0 || rage21 > 0 || ilusi1 > 0) { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } else { if (_root['zattackAktif' + tipeAttack[jenisMusuh[zlevel]][i]] == 0) { pilihAttack = tipeAttack[jenisMusuh[zlevel]][i]; i = 0; sudahDefense = true; } } } } } } } } } --i; } if (pilihAttack == 6 || pilihAttack == 9) { cekDamage(jenisMusuh[zlevel], pilihCard, pilihAttack, 2); idDamage = setInterval(cekDamage, 1500, jenisMusuh[zlevel], pilihCard, pilihAttack, 2, 0); } else { cekDamage(jenisMusuh[zlevel], pilihCard, pilihAttack, 2); } } } } } function xenterKartu1() { this._alpha -= 10; if (this._alpha <= 0) { delete this.onEnterFrame; if (sudahKelar == false) { sudahKelar = true; clearInterval(idLanjutEnd); idLanjutEnd = setInterval(cekLanjutLevel, 2000, 'kalah'); } } } function xenterKartu2() { if (sudahNaikan == false) { sudahNaikan = true; if (tipePilih == 'train') { karakterExp[pilihCard] += 16 * perbedaanLevel; } else { karakterExp[pilihCard] += 40 * perbedaanLevel; } cekLevelNaik(); } this._alpha -= 10; if (this._alpha <= 0) { delete this.onEnterFrame; if (sudahKelar == false) { sudahKelar = true; clearInterval(idLanjutEnd); idLanjutEnd = setInterval(cekLanjutLevel, 2000, 'menang'); } } } function cekDefense(indi1, indi2, indi3, indi4, indi5) { nyawaSekarang1 = nyawaKini1; nyawaSekarang2 = nyawaKini2; powerSekarang1 = powerKini1; powerSekarang2 = powerKini2; perhitunganNyawa = 0; perhitunganPower = 0; if (indi4 == 1) { ++zYourSpell; if (indi3 == 1) { perhitunganNyawa = karakterLife[indi1] * karakterLevel[indi1] * 0.25; } else { if (indi3 == 2) { perhitunganNyawa = karakterLife[indi1] * karakterLevel[indi1] * 0.5; } else { if (indi3 == 3) { pelindung11 = true; pelindung21 = false; if (jenisMainX == 'pvp') { lamaPelindung11 = 4; } else { lamaPelindung11 = 3; } } else { if (indi3 == 4) { pelindung21 = true; pelindung11 = false; if (jenisMainX == 'pvp') { lamaPelindung21 = 7; } else { lamaPelindung21 = 6; } } else { if (indi3 == 5) { if (jenisMainX == 'pvp') { rage11 = 4; } else { rage11 = 3; } } else { if (indi3 == 6) { if (jenisMainX == 'pvp') { rage21 = 7; } else { rage21 = 6; } } else { if (indi3 == 7) { if (jenisMainX == 'pvp') { ilusi1 = 4; } else { ilusi1 = 3; } } else { if (indi3 == 8) { perhitunganPower = powerAwal1 * 0.5; } else { if (indi3 == 9) { perhitunganPower = powerAwal1 * 0.75; } else { if (indi3 == 10) { tidakDapatJalan1 = 0; masihTerbakar1 = 0; masihBeracun1 = 0; masihMatahari1 = 0; } } } } } } } } } } } else { ++zEnemySpell; if (indi3 == 1) { perhitunganNyawa = karakterLife[indi1] * levelMusuh[wlevel] * 0.25; } else { if (indi3 == 2) { perhitunganNyawa = karakterLife[indi1] * levelMusuh[wlevel] * 0.5; } else { if (indi3 == 3) { pelindung12 = true; pelindung22 = false; if (jenisMainX == 'pvp') { lamaPelindung12 = 4; } else { lamaPelindung12 = 4; } } else { if (indi3 == 4) { pelindung22 = true; pelindung12 = false; if (jenisMainX == 'pvp') { lamaPelindung22 = 5; } else { lamaPelindung22 = 5; } } else { if (indi3 == 5) { if (jenisMainX == 'pvp') { rage12 = 4; } else { rage12 = 4; } } else { if (indi3 == 6) { if (jenisMainX == 'pvp') { rage22 = 4; } else { rage22 = 4; } } else { if (indi3 == 7) { if (jenisMainX == 'pvp') { ilusi2 = 4; } else { ilusi2 = 4; } } else { if (indi3 == 8) { perhitunganPower = powerAwal2 * 0.5; munculAngka('+', perhitunganPower, indi4); } else { if (indi3 == 9) { perhitunganPower = powerAwal2 * 0.75; munculAngka('+', perhitunganPower, indi4); } else { if (indi3 == 10) { tidakDapatJalan2 = 0; masihTerbakar2 = 0; masihBeracun2 = 0; masihMatahari2 = 0; } } } } } } } } } } } perhitunganNyawa = Math.ceil(perhitunganNyawa); perhitunganPower = Math.ceil(perhitunganPower); if (perhitunganNyawa != 0) { if (indi4 == 1) { if (nyawaKini1 + perhitunganNyawa >= nyawaAwal1) { perhitunganNyawa = nyawaAwal1 - nyawaKini1; } nyawaKini1 += perhitunganNyawa; munculAngka('+', perhitunganNyawa, indi4); powerKini1 -= powerDefense[indi3]; if (tipePilih == 'train') { karakterExp[pilihCard] += 10; } else { karakterExp[pilihCard] += 30; } cekLevelNaik(); } else { if (nyawaKini2 + perhitunganNyawa >= nyawaAwal2) { perhitunganNyawa = nyawaAwal2 - nyawaKini2; } nyawaKini2 += perhitunganNyawa; munculAngka('+', perhitunganNyawa, indi4); powerKini2 -= powerDefense[indi3]; if (tipePilih == 'train') { musuhExp += 10; } else { musuhExp += 30; } cekLevelNaik(); } } else { if (perhitunganPower != 0) { if (indi4 == 1) { powerKini1 -= powerDefense[indi3]; if (powerKini1 + perhitunganPower >= powerAwal1) { perhitunganPower = powerAwal1 - powerKini1; } powerKini1 += perhitunganPower; munculAngka('+', perhitunganPower, indi4); if (tipePilih == 'train') { karakterExp[pilihCard] += 10; } else { karakterExp[pilihCard] += 30; } cekLevelNaik(); } else { powerKini2 -= powerDefense[indi3]; if (powerKini2 + perhitunganPower >= powerAwal2) { perhitunganPower = powerAwal2 - powerKini2; } powerKini2 += perhitunganPower; munculAngka('+', perhitunganPower, indi4); if (tipePilih == 'train') { musuhExp += 10; } else { musuhExp += 30; } cekLevelNaik(); } } else { if (indi4 == 1) { powerKini1 -= powerDefense[indi3]; } else { powerKini2 -= powerDefense[indi3]; } } } if (nyawaSekarang1 != nyawaKini1) { if (nyawa1.bar._currentframe == 1) { nyawa1.bar.gotoAndPlay(2); } } if (nyawaSekarang2 != nyawaKini2) { if (nyawa2.bar._currentframe == 1) { nyawa2.bar.gotoAndPlay(2); } } if (powerSekarang1 != powerKini1) { if (power1.bar._currentframe == 1) { power1.bar.gotoAndPlay(2); } } if (powerSekarang2 != powerKini2) { if (power2.bar._currentframe == 1) { power2.bar.gotoAndPlay(2); } } if (jenisMainX == 'pvp') { if (indi4 == 1) { i = 1; while (i <= tipeDefense[pilihCard].length) { if (tipeDefense[pilihCard][i] == indi3) { if (indi3 <= 3) { _root['defenseAktif' + i] = 3; } else { if (indi3 <= 6) { _root['defenseAktif' + i] = 4; } else { _root['defenseAktif' + i] = 5; } } } ++i; } } else { i = 1; while (i <= tipeDefense[jenisMusuh[zlevel]].length) { if (tipeDefense[jenisMusuh[zlevel]][i] == indi3) { if (indi3 <= 3) { _root['zdefenseAktif' + i] = 3; } else { if (indi3 <= 6) { _root['zdefenseAktif' + i] = 4; } else { _root['zdefenseAktif' + i] = 5; } } } ++i; } } } else { if (indi4 == 1) { i = 1; while (i <= tipeDefense[pilihCard].length) { if (tipeDefense[pilihCard][i] == indi3) { if (indi3 <= 3) { _root['defenseAktif' + i] = 3; } else { if (indi3 <= 6) { _root['defenseAktif' + i] = 4; } else { _root['defenseAktif' + i] = 5; } } } ++i; } } else { if (indi3 <= 3) { _root['zdefenseAktif' + indi3] = 3; } else { if (indi3 <= 6) { _root['zdefenseAktif' + indi3] = 5; } else { _root['zdefenseAktif' + indi3] = 7; } } } } cekSuara2(indi3); cekEfek2(indi3, indi4); } function cekLevelNaik() { if (karakterExp[pilihCard] >= karakterLevel[pilihCard] * 100) { karakterExp[pilihCard] = 0; ++karakterLevel[pilihCard]; adaNaikLevelx = true; if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { } else { if (karakterLevel[pilihCard] >= karakterMaxLevel[pilihCard]) { adaNaikLevelx = false; karakterLevel[pilihCard] = karakterMaxLevel[pilihCard]; } } if (adaNaikLevelx == true) { backLevel(); efek = attachMovie('efekLevel', 'efek_mc' + dalamEfek, dalamEfek); kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } } } if (musuhExp >= levelMusuh[wlevel] * 100) { musuhExp = 0; ++levelMusuh[wlevel]; adaNaikLevelx = true; if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { } else { if (levelMusuh[wlevel] >= karakterMaxLevel[jenisMusuh[zlevel]]) { adaNaikLevelx = false; levelMusuh[wlevel] = karakterMaxLevel[jenisMusuh[zlevel]]; } } if (adaNaikLevelx == true) { backLevel(); efek = attachMovie('efekLevel', 'efek_mc' + dalamEfek, dalamEfek); kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } } } nyawaAwal1 = karakterLife[pilihCard] * karakterLevel[pilihCard]; nyawaAwal2 = karakterLife[jenisMusuh[zlevel]] * levelMusuh[wlevel]; powerAwal1 = Math.ceil(karakterPower[pilihCard] * karakterLevel[pilihCard]); powerAwal2 = Math.ceil(karakterPower[jenisMusuh[zlevel]] * levelMusuh[wlevel]); } function cekDamage(indi1, indi2, indi3, indi4, indi5) { clearInterval(idDamage); powerSekarang1 = powerKini1; powerSekarang2 = powerKini2; if (indi5 != 0) { if (indi4 == 1) { powerKini1 -= powerAttack[indi3]; } else { powerKini2 -= powerAttack[indi3]; } } if (indi3 == 6) { randKena = random(18); } else { if (indi3 == 8) { randKena = random(24); } else { if (indi3 == 9) { randKena = random(30); } else { if (indi3 == 11) { randKena = random(24); } else { randKena = 0; } } } } if (ilusi2 > 0 && indi4 == 1) { --ilusi2; randKena = 20; } else { if (ilusi1 > 0 && indi4 != 1) { --ilusi1; randKena = 20; } } if (indi3 == 20) { randKena = 0; } if (randKena <= 14) { if (indi4 == 1) { if (indi3 == 1) { perhitunganDamage = karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4); } else { if (indi3 == 2) { perhitunganDamage = (karakterAttack[indi1] + karakterAttack[indi1] * 0.25) * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4); powerKini2 -= Math.ceil(powerKini2 * 0.5); } else { if (indi3 == 3) { perhitunganDamage = (karakterAttack[indi1] + karakterAttack[indi1] * 0.5) * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4); } else { if (indi3 == 4) { perhitunganDamage = 1.5 * (karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4)); powerKini2 -= Math.ceil(powerKini2 * 0.75); } else { if (indi3 == 5) { perhitunganDamage = 1.75 * (karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4)); } else { if (indi3 == 6) { perhitunganDamage = karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4); } else { if (indi3 == 7) { perhitunganDamage = 2 * (karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4)); } else { if (indi3 == 8) { perhitunganDamage = karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4); if (antiStun2 == false) { tidakDapatJalan2 = 1; } } else { if (indi3 == 9) { perhitunganDamage = karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4); if (antiStun2 == false) { tidakDapatJalan2 = 1; } } else { if (indi3 == 10) { perhitunganDamage = 2.5 * (karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4)); } else { if (indi3 == 11) { perhitunganDamage = karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4); if (antiStun2 == false) { tidakDapatJalan2 = 3; } } else { if (indi3 == 12) { perhitunganDamage = karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4); masihTerbakar2 = 4; } else { if (indi3 == 13) { clearInterval(idGempa1); clearInterval(idGempa2); bykGempa1 = 0; bykGempa2 = 0; idGempa1 = setInterval(gempaKacau1, 100); } else { if (indi3 == 14) { perhitunganDamage = karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4); masihBeracun2 = 3; } else { if (indi3 == 15) { perhitunganDamage = karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4); masihBeracun2 = 2; if (antiStun2 == false) { tidakDapatJalan2 = 2; } } else { if (indi3 == 16) { perhitunganDamage = 4 * (karakterAttack[indi1] * 15 * karakterLevel[indi1] - karakterDefense[indi2] * levelMusuh[wlevel] + random(4)); if (antiStun1 == false) { tidakDapatJalan1 = 1; } } else { if (indi3 == 17) { clearInterval(idMeteor1); clearInterval(idMeteor2); bykMeteor1 = 0; bykMeteor2 = 0; idMeteor1 = setInterval(meteorKacau1, 100); } else { if (indi3 == 18) { perhitunganDamage = 0; powerKini2 -= powerKini2; if (antiStun2 == false) { tidakDapatJalan2 = 3; } } else { if (indi3 == 19) { if (antiStun2 == false) { tidakDapatJalan2 = 2; } masihMatahari2 = 2; } else { if (indi3 == 20) { lamaPelindung12 = 0; lamaPelindung22 = 0; rage12 = 0; rage22 = 0; ilusi2 = 0; } } } } } } } } } } } } } } } } } } } } } else { if (indi4 == 2) { if (indi3 == 1) { perhitunganDamage = karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4); } else { if (indi3 == 2) { perhitunganDamage = (karakterAttack[indi1] + karakterAttack[indi1] * 0.25) * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4); powerKini1 -= Math.ceil(powerKini1 * 0.5); } else { if (indi3 == 3) { perhitunganDamage = (karakterAttack[indi1] + karakterAttack[indi1] * 0.5) * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4); } else { if (indi3 == 4) { perhitunganDamage = 1.5 * (karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4)); powerKini1 -= Math.ceil(powerKini1 * 0.75); } else { if (indi3 == 5) { perhitunganDamage = 1.75 * (karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4)); } else { if (indi3 == 6) { perhitunganDamage = karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4); } else { if (indi3 == 7) { perhitunganDamage = 2 * (karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4)); } else { if (indi3 == 8) { perhitunganDamage = karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4); if (antiStun1 == false) { tidakDapatJalan1 = 1; } } else { if (indi3 == 9) { perhitunganDamage = karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4); if (antiStun1 == false) { tidakDapatJalan1 = 1; } } else { if (indi3 == 10) { perhitunganDamage = 2.5 * (karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4)); } else { if (indi3 == 11) { perhitunganDamage = karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4); if (antiStun1 == false) { tidakDapatJalan1 = 3; } } else { if (indi3 == 12) { perhitunganDamage = karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4); masihTerbakar1 = 4; } else { if (indi3 == 13) { clearInterval(idGempa1); clearInterval(idGempa2); bykGempa1 = 0; bykGempa2 = 0; idGempa2 = setInterval(gempaKacau2, 100); } else { if (indi3 == 14) { perhitunganDamage = karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4); masihBeracun1 = 3; } else { if (indi3 == 15) { perhitunganDamage = karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4); masihBeracun1 = 2; if (antiStun1 == false) { tidakDapatJalan1 = 2; } } else { if (indi3 == 16) { perhitunganDamage = 4 * (karakterAttack[indi1] * 15 * levelMusuh[wlevel] - karakterDefense[indi2] * karakterLevel[indi2] + random(4)); if (antiStun2 == false) { tidakDapatJalan2 = 1; } } else { if (indi3 == 17) { clearInterval(idMeteor1); clearInterval(idMeteor2); bykMeteor1 = 0; bykMeteor2 = 0; idMeteor2 = setInterval(meteorKacau2, 100); } else { if (indi3 == 18) { perhitunganDamage = 0; powerKini1 -= powerKini1; if (antiStun1 == false) { tidakDapatJalan1 = 3; } } else { if (indi3 == 19) { if (antiStun1 == false) { tidakDapatJalan1 = 2; } masihMatahari1 = 2; } else { if (indi3 == 20) { lamaPelindung11 = 0; lamaPelindung21 = 0; rage11 = 0; rage21 = 0; ilusi1 = 0; } } } } } } } } } } } } } } } } } } } } } } perhitunganDamage = Math.ceil(perhitunganDamage); if (indi4 == 1) { if (perhitunganDamage <= 5 * levelMusuh[wlevel]) { perhitunganDamage = random(5) + 5 * levelMusuh[wlevel]; } } else { if (perhitunganDamage <= 5 * levelMusuh[wlevel]) { perhitunganDamage = random(5) + 5 * karakterLevel[indi2]; } } if (indi3 == 18 || indi3 == 19) { perhitunganDamage = 0; } if (indi4 == 1) { if (rage11 > 0) { perhitunganDamage += Math.ceil(perhitunganDamage * 0.5); --rage11; } else { if (rage21 > 0) { perhitunganDamage += Math.ceil(perhitunganDamage * 0.75); --rage21; } } } else { if (rage12 > 0) { perhitunganDamage += Math.ceil(perhitunganDamage * 0.5); --rage12; } else { if (rage22 > 0) { perhitunganDamage += Math.ceil(perhitunganDamage * 0.75); --rage22; } } } if (indi4 == 1) { ++zYourSpell; if (nyawaKini2 - perhitunganDamage <= 0) { perhitunganDamage = nyawaKini2; } if (pelindung12 == true) { nyawaKini2 -= Math.ceil(perhitunganDamage * 0.5); perhitunganDamage = Math.ceil(perhitunganDamage * 0.5); } else { if (pelindung22 == true) { nyawaKini2 -= Math.ceil(perhitunganDamage * 0.25); perhitunganDamage = Math.ceil(perhitunganDamage * 0.25); } else { nyawaKini2 -= perhitunganDamage; } } if (indi3 == 7) { rand = random(3); if (rand == 0) { nyawaKini1 -= Math.ceil(nyawaKini1 * 0.25); } else { if (rand == 1) { nyawaKini1 -= Math.ceil(nyawaKini1 * 0.225); } else { nyawaKini1 -= Math.ceil(nyawaKini1 * 0.2); } } } else { if (indi3 == 10) { rand = random(3); if (rand == 0) { nyawaKini1 -= Math.ceil(nyawaKini1 * 0.5); } else { if (rand == 1) { nyawaKini1 -= Math.ceil(nyawaKini1 * 0.47); } else { nyawaKini1 -= Math.ceil(nyawaKini1 * 0.45); } } } } if (tipePilih == 'train') { karakterExp[pilihCard] += 4 * indi3 * perbedaanLevel; } else { karakterExp[pilihCard] += 20 * indi3 * perbedaanLevel; } cekLevelNaik(); } else { ++zEnemySpell; if (nyawaKini1 - perhitunganDamage <= 0) { perhitunganDamage = nyawaKini1; } if (pelindung11 == true) { nyawaKini1 -= Math.ceil(perhitunganDamage * 0.5); perhitunganDamage = Math.ceil(perhitunganDamage * 0.5); } else { if (pelindung21 == true) { nyawaKini1 -= Math.ceil(perhitunganDamage * 0.25); perhitunganDamage = Math.ceil(perhitunganDamage * 0.25); } else { nyawaKini1 -= perhitunganDamage; } } if (indi3 == 7) { nyawaKini2 -= Math.ceil(nyawaKini2 * 0.5); } else { if (indi3 == 10) { nyawaKini2 -= Math.ceil(nyawaKini2 * 0.75); } } if (tipePilih == 'train') { musuhExp += 4 * indi3 * perbedaanLevel2; } else { musuhExp += 20 * indi3 * perbedaanLevel2; } cekLevelNaik(); } if (jenisMainX == 'pvp') { if (indi4 == 1) { i = 1; while (i <= tipeAttack[pilihCard].length) { if (tipeAttack[pilihCard][i] == indi3) { if (indi3 == 1) { _root['attackAktif' + i] = 0; } else { if (indi3 <= 9) { _root['attackAktif' + i] = 3; } else { if (indi3 <= 17) { _root['attackAktif' + i] = 4; } else { _root['attackAktif' + i] = 5; } } } } ++i; } } else { i = 1; while (i <= tipeAttack[jenisMusuh[zlevel]].length) { if (tipeAttack[jenisMusuh[zlevel]][i] == indi3) { if (indi3 == 1) { _root['zattackAktif' + i] = 0; } else { if (indi3 <= 9) { _root['zattackAktif' + i] = 3; } else { if (indi3 <= 17) { _root['zattackAktif' + i] = 4; } else { _root['zattackAktif' + i] = 5; } } } } ++i; } } } else { if (indi4 == 1) { i = 1; while (i <= tipeAttack[pilihCard].length) { if (tipeAttack[pilihCard][i] == indi3) { if (indi3 == 1) { _root['attackAktif' + i] = 0; } else { if (indi3 <= 9) { _root['attackAktif' + i] = 3; } else { if (indi3 <= 17) { _root['attackAktif' + i] = 4; } else { _root['attackAktif' + i] = 5; } } } } ++i; } } else { if (indi3 == 1) { _root['zattackAktif' + indi3] = 0; } else { if (indi3 <= 9) { _root['zattackAktif' + indi3] = 3; } else { if (indi3 <= 17) { _root['zattackAktif' + indi3] = 4; } else { _root['zattackAktif' + indi3] = 5; } } } } } munculAngka('-', perhitunganDamage, indi4); xcekKena(indi4, perhitunganDamage); cekSuara(indi3); cekEfek(indi3, indi4); } else { munculAngka('miss', '', indi4); } } function munculAngka(indi1, indi2, indi3) { if (indi1 == 'miss') { huruf = attachMovie('miss_mc', 'huruf' + bykHuruf, bykHuruf); if (indi3 == 1) { huruf._x = kartu2._x - random(150) + 75; huruf._y = kartu2._y - random(300) + 150; } else { huruf._x = kartu1._x - random(150) + 75; huruf._y = kartu1._y - random(300) + 150; } } else { if (indi1 == '-') { huruf = attachMovie('kalkulasi', 'huruf' + bykHuruf, bykHuruf); huruf.tanda.gotoAndStop(2); myStr = new String(indi2); zangka1 = Number(myStr.substr(0, 1)); zangka2 = Number(myStr.substr(1, 1)); zangka3 = Number(myStr.substr(2, 1)); zangka4 = Number(myStr.substr(3, 1)); zangka5 = Number(myStr.substr(4, 1)); huruf.gotoAndStop(myStr.length); if (zangka1 == 0) { huruf.angka1.gotoAndStop(10); } else { huruf.angka1.gotoAndStop(zangka1); } if (zangka2 == 0) { huruf.angka2.gotoAndStop(10); } else { huruf.angka2.gotoAndStop(zangka2); } if (zangka3 == 0) { huruf.angka3.gotoAndStop(10); } else { huruf.angka3.gotoAndStop(zangka3); } if (zangka4 == 0) { huruf.angka4.gotoAndStop(10); } else { huruf.angka4.gotoAndStop(zangka4); } if (zangka5 == 0) { huruf.angka5.gotoAndStop(10); } else { huruf.angka5.gotoAndStop(zangka5); } if (indi3 == 1) { if (myStr.length == 1) { kartu2.gerakanGetar = 5; } else { if (myStr.length == 2) { kartu2.gerakanGetar = 10; } else { kartu2.gerakanGetar = 15; } } } else { if (myStr.length == 1) { kartu1.gerakanGetar = 5; } else { if (myStr.length == 2) { kartu1.gerakanGetar = 10; } else { kartu1.gerakanGetar = 15; } } } if (myStr.length == 1) { huruf._yscale = 70; huruf._xscale = 70; } else { if (myStr.length == 2) { huruf._yscale = 90; huruf._xscale = 90; } else { if (myStr.length == 3) { huruf._yscale = 110; huruf._xscale = 110; } else { if (myStr.length == 4) { huruf._yscale = 130; huruf._xscale = 130; } else { huruf._yscale = 150; huruf._xscale = 150; } } } } if (indi3 == 1) { huruf._x = kartu2._x - random(150) + 75; huruf._y = kartu2._y - random(300) + 150; } else { huruf._x = kartu1._x - random(150) + 75; huruf._y = kartu1._y - random(300) + 150; } } else { if (indi1 == '+') { huruf = attachMovie('kalkulasi', 'huruf' + bykHuruf, bykHuruf); huruf.tanda.gotoAndStop(1); myStr = new String(indi2); zangka1 = Number(myStr.substr(0, 1)); zangka2 = Number(myStr.substr(1, 1)); zangka3 = Number(myStr.substr(2, 1)); zangka4 = Number(myStr.substr(3, 1)); zangka5 = Number(myStr.substr(4, 1)); huruf.gotoAndStop(myStr.length); if (zangka1 == 0) { huruf.angka1.gotoAndStop(10); } else { huruf.angka1.gotoAndStop(zangka1); } if (zangka2 == 0) { huruf.angka2.gotoAndStop(10); } else { huruf.angka2.gotoAndStop(zangka2); } if (zangka3 == 0) { huruf.angka3.gotoAndStop(10); } else { huruf.angka3.gotoAndStop(zangka3); } if (zangka4 == 0) { huruf.angka4.gotoAndStop(10); } else { huruf.angka4.gotoAndStop(zangka4); } if (zangka5 == 0) { huruf.angka5.gotoAndStop(10); } else { huruf.angka5.gotoAndStop(zangka5); } if (myStr.length == 1) { huruf._yscale = 70; huruf._xscale = 70; } else { if (myStr.length == 2) { huruf._yscale = 90; huruf._xscale = 90; } else { if (myStr.length == 3) { huruf._yscale = 110; huruf._xscale = 110; } else { if (myStr.length == 4) { huruf._yscale = 130; huruf._xscale = 130; } else { huruf._yscale = 150; huruf._xscale = 150; } } } } if (indi3 == 1) { huruf._x = kartu1._x - random(150) + 75; huruf._y = kartu1._y - random(300) + 150; } else { huruf._x = kartu2._x - random(150) + 75; huruf._y = kartu2._y - random(300) + 150; } } } } huruf.perhitungan = 10; huruf._alpha = 0; huruf.onEnterFrame = enterHuruf; ++bykHuruf; if (bykHuruf >= 120) { bykHuruf = 100; } } function enterHuruf() { this._alpha += this.perhitungan; if (this._alpha >= 150) { this.perhitungan = -this.perhitungan; } else { if (this._alpha <= -10) { removeMovieClip(this); } } } function cekEfek2(indi, indi2) { if (indi == 1) { efek = attachMovie('efekHeal1', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } } else { if (indi == 2) { efek = attachMovie('efekHeal2', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } } else { if (indi == 3) { efek = attachMovie('efekPelindung1', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } } else { if (indi == 4) { efek = attachMovie('efekPelindung2', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } } else { if (indi == 5) { efek = attachMovie('efekPenguat1', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } } else { if (indi == 6) { efek = attachMovie('efekPenguat2', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } } else { if (indi == 7) { efek = attachMovie('efekIlusi', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } } else { if (indi == 8) { efek = attachMovie('efekPower1', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } } else { if (indi == 9) { efek = attachMovie('efekPower2', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } } else { if (indi == 10) { efek = attachMovie('efekMatahari', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } efek._yscale = 110; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } efek = attachMovie('efekPelindung1', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } } } } } } } } } } } efek._yscale = 110; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } } function cekEfek(indi, indi2) { if (indi == 1) { rand = random(2); if (rand == 0) { efek = attachMovie('efekDarah1', 'efek_mc' + dalamEfek, dalamEfek); } else { efek = attachMovie('efekDarah2', 'efek_mc' + dalamEfek, dalamEfek); } if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 2) { rand = random(2); if (rand == 0) { efek = attachMovie('efekDarah1', 'efek_mc' + dalamEfek, dalamEfek); } else { efek = attachMovie('efekDarah2', 'efek_mc' + dalamEfek, dalamEfek); } if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } ++dalamEfek; efek = attachMovie('efekPukul', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 3) { rand = random(2); if (rand == 0) { efek = attachMovie('efekDarah1', 'efek_mc' + dalamEfek, dalamEfek); } else { efek = attachMovie('efekDarah2', 'efek_mc' + dalamEfek, dalamEfek); } if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } ++dalamEfek; efek = attachMovie('efekTabrakan', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 4 || indi == 5) { rand = random(2); if (rand == 0) { efek = attachMovie('efekDarah1', 'efek_mc' + dalamEfek, dalamEfek); } else { efek = attachMovie('efekDarah2', 'efek_mc' + dalamEfek, dalamEfek); } if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } ++dalamEfek; efek = attachMovie('efekCakar', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - 200 - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - 200 - random(50) + 25; } } else { if (indi == 6) { rand = random(2); if (rand == 0) { efek = attachMovie('efekDarah1', 'efek_mc' + dalamEfek, dalamEfek); } else { efek = attachMovie('efekDarah2', 'efek_mc' + dalamEfek, dalamEfek); } if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 7) { rand = random(2); if (rand == 0) { efek = attachMovie('efekDarah1', 'efek_mc' + dalamEfek, dalamEfek); } else { efek = attachMovie('efekDarah2', 'efek_mc' + dalamEfek, dalamEfek); } if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } ++dalamEfek; efek = attachMovie('efekCakar2', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - 100 - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - 100 - random(50) + 25; } } else { if (indi == 8 || indi == 9) { rand = random(2); if (rand == 0) { efek = attachMovie('efekDarah1', 'efek_mc' + dalamEfek, dalamEfek); } else { efek = attachMovie('efekDarah2', 'efek_mc' + dalamEfek, dalamEfek); } if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } ++dalamEfek; efek = attachMovie('efekLedakan', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 10) { rand = random(2); if (rand == 0) { efek = attachMovie('efekDarah1', 'efek_mc' + dalamEfek, dalamEfek); } else { efek = attachMovie('efekDarah2', 'efek_mc' + dalamEfek, dalamEfek); } if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } ++dalamEfek; efek = attachMovie('efekBomb', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 11) { efek = attachMovie('efekEs', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 12) { efek = attachMovie('efekApi', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x; efek._y = kartu2._y; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x; efek._y = kartu1._y; } } else { if (indi == 13) { efek = attachMovie('efekTanah', 'efek_mc' + dalamEfek, dalamEfek); kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x; efek._y = kartu2._y; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } efek = attachMovie('efekTanah', 'efek_mc' + dalamEfek, dalamEfek); kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x; efek._y = kartu1._y; } else { if (indi == 14) { efek = attachMovie('efekAcid', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 15) { efek = attachMovie('efekFlood', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 16) { efek = attachMovie('efekPetir', 'efek_mc' + dalamEfek, dalamEfek); kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } efek = attachMovie('efekPetir', 'efek_mc' + dalamEfek, dalamEfek); kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } else { if (indi == 17) { efek = attachMovie('efekMeteor', 'efek_mc' + dalamEfek, dalamEfek); kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x; efek._y = kartu2._y + 120; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } efek = attachMovie('efekMeteor', 'efek_mc' + dalamEfek, dalamEfek); kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x; efek._y = kartu1._y + 120; } else { if (indi == 18) { efek = attachMovie('efekBeku', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 19) { efek = attachMovie('efekMatahari', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; } else { kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; } } else { if (indi == 20) { efek = attachMovie('efekIlusi', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } efek._yscale = 110; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } efek = attachMovie('efekPenguat2', 'efek_mc' + dalamEfek, dalamEfek); if (indi2 == 1) { kartu1.kedip_mc.gotoAndPlay(20); efek._x = kartu2._x; efek._y = kartu2._y; } else { kartu2.kedip_mc.gotoAndPlay(20); efek._x = kartu1._x; efek._y = kartu1._y; } } } } } } } } } } } } } } } } } } } efek._yscale = 110; ++dalamEfek; if (dalamEfek >= 40) { dalamEfek = 10; } } function cekSuara2(indi) { if (indi == 1) { backHeal1(); } else { if (indi == 2) { backHeal2(); } else { if (indi == 3) { backShield1(); } else { if (indi == 4) { backShield2(); } else { if (indi == 5) { backRage1(); } else { if (indi == 6) { backRage2(); } else { if (indi == 7) { backIlusi(); } else { if (indi == 8) { backPower1(); } else { if (indi == 9) { backPower2(); } else { if (indi == 9) { backShield1(); backSunrise(); } } } } } } } } } } } function cekSuara(indi) { if (indi == 1) { backNormalAttack(); } else { if (indi == 2) { backSmash(); } else { if (indi == 3) { backStrike(); } else { if (indi == 4) { backSpecial(); } else { if (indi == 5) { backMaster(); } else { if (indi == 6) { backDoubleAttack(); } else { if (indi == 7) { backSlash(); } else { if (indi == 8) { backShoot(); } else { if (indi == 9) { backDoubleShoot(); } else { if (indi == 10) { backBomb(); } else { if (indi == 11) { backIceBerg2(); } else { if (indi == 12) { backBurn(); } else { if (indi == 13) { backEarthquake(); } else { if (indi == 14) { backAcid(); backAcid2(); } else { if (indi == 15) { backFlood(); } else { if (indi == 16) { backThunder(); } else { if (indi == 17) { backMeteor(); } else { if (indi == 18) { backFreeze(); } else { if (indi == 19) { backSunrise(); } else { if (indi == 20) { backShield2(); backPower2(); } } } } } } } } } } } } } } } } } } } } } function xcekKena(indi, indi2) { if (indi == 1) { if (nyawa2.bar._currentframe == 1) { nyawa2.bar.gotoAndPlay(2); } } else { if (nyawa1.bar._currentframe == 1) { nyawa1.bar.gotoAndPlay(2); } } if (powerSekarang1 != powerKini1) { if (power1.bar._currentframe == 1) { power1.bar.gotoAndPlay(2); } } if (powerSekarang2 != powerKini2) { if (power2.bar._currentframe == 1) { power2.bar.gotoAndPlay(2); } } } function gempaKacau1() { if (nyawaKini1 > 0) { if (ilusi1 <= 0) { nyawaKini1 -= Math.ceil(nyawaAwal1 * 0.005); munculAngka('-', Math.ceil(nyawaAwal1 * 0.005), 1); if (nyawa1.bar._currentframe == 1) { nyawa1.bar.gotoAndPlay(2); } } } if (nyawaKini2 > 0) { if (ilusi2 <= 0) { nyawaKini2 -= Math.ceil(nyawaAwal2 * 0.005); munculAngka('-', Math.ceil(nyawaAwal2 * 0.005), 2); if (nyawa2.bar._currentframe == 1) { nyawa2.bar.gotoAndPlay(2); } } } ++bykGempa1; if (bykGempa1 >= 50) { clearInterval(idGempa1); } } function gempaKacau2() { if (nyawaKini1 > 0) { if (ilusi1 <= 0) { nyawaKini1 -= Math.ceil(nyawaAwal1 * 0.01); munculAngka('-', Math.ceil(nyawaAwal1 * 0.01), 2); if (nyawa1.bar._currentframe == 1) { nyawa1.bar.gotoAndPlay(2); } } } if (nyawaKini2 > 0) { if (ilusi2 <= 0) { nyawaKini2 -= Math.ceil(nyawaAwal2 * 0.01); munculAngka('-', Math.ceil(nyawaAwal2 * 0.01), 1); if (nyawa2.bar._currentframe == 1) { nyawa2.bar.gotoAndPlay(2); } } } ++bykGempa2; if (bykGempa2 >= 20) { clearInterval(idGempa2); } } function meteorKacau1() { if (nyawaKini1 > 0) { if (ilusi1 <= 0) { nyawaKini1 -= Math.ceil(nyawaAwal1 * 0.01); munculAngka('-', Math.ceil(nyawaAwal1 * 0.01), 2); if (nyawa1.bar._currentframe == 1) { nyawa1.bar.gotoAndPlay(2); } } } if (nyawaKini2 > 0) { if (ilusi2 <= 0) { nyawaKini2 -= Math.ceil(nyawaAwal2 * 0.01); munculAngka('-', Math.ceil(nyawaAwal2 * 0.01), 1); if (nyawa2.bar._currentframe == 1) { nyawa2.bar.gotoAndPlay(2); } } } ++bykMeteor1; if (bykMeteor1 >= 40) { clearInterval(idMeteor1); } } function meteorKacau2() { if (nyawaKini1 > 0) { if (ilusi1 <= 0) { nyawaKini1 -= Math.ceil(nyawaAwal1 * 0.01); munculAngka('-', Math.ceil(nyawaAwal1 * 0.01), 2); if (nyawa1.bar._currentframe == 1) { nyawa1.bar.gotoAndPlay(2); } } } if (nyawaKini2 > 0) { if (ilusi2 <= 0) { nyawaKini2 -= Math.ceil(nyawaAwal2 * 0.01); munculAngka('-', Math.ceil(nyawaAwal2 * 0.01), 1); if (nyawa2.bar._currentframe == 1) { nyawa2.bar.gotoAndPlay(2); } } } ++bykMeteor2; if (bykMeteor2 >= 30) { clearInterval(idMeteor2); } } function nextTurn() { clearInterval(idLanjut); clearInterval(idLanjut1); clearInterval(idLanjut2); clearInterval(idLanjut3); clearInterval(idLanjut4); clearInterval(idLanjut5); clearInterval(idLanjut6); clearInterval(idLanjut7); clearInterval(idLanjut8); clearInterval(idLanjut9); clearInterval(idLanjut10); nyawaSekarang1 = nyawaKini1; nyawaSekarang2 = nyawaKini2; powerSekarang1 = powerKini1; powerSekarang2 = powerKini2; if (jenisMainX == 'pvp') { if (jenisMainX == 'pvp') { if (jalanDuluan == 1) { jalanDuluan = 2; if (tidakDapatJalan2 <= 0) { if (masihMatahari2 > 0) { jalanDuluan = 1; bisaKlikAction(true, 1); } else { bisaKlikAction(true, 2); } } else { jalanDuluan = 1; bisaKlikAction(true, 1); } } else { if (jalanDuluan == 2) { jalanDuluan = 1; if (tidakDapatJalan1 <= 0) { if (masihMatahari1 > 0) { jalanDuluan = 2; bisaKlikAction(true, 2); } else { bisaKlikAction(true, 1); } } else { jalanDuluan = 2; bisaKlikAction(true, 2); } } } } } else { if (tidakDapatJalan1 <= 0) { bisaKlikAction(true); } } if (nyawaKini1 > 0 && nyawaKini2 > 0) { --lamaPelindung11; --lamaPelindung12; if (lamaPelindung11 <= 0) { lamaPelindung11 = 0; pelindung11 = false; } if (lamaPelindung12 <= 0) { lamaPelindung12 = 0; pelindung12 = false; } --lamaPelindung21; --lamaPelindung22; if (lamaPelindung21 <= 0) { lamaPelindung21 = 0; pelindung21 = false; } if (lamaPelindung22 <= 0) { lamaPelindung22 = 0; pelindung22 = false; } if (masihTerbakar1 > 0) { backBurn(); efek = attachMovie('efekApi', 'efek_mc' + dalamEfek, dalamEfek); kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x; efek._y = kartu1._y; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } --masihTerbakar1; nyawaKini1 -= Math.ceil(nyawaKini1 * 0.25); munculAngka('-', Math.ceil(nyawaKini1 * 0.25), 2); } if (masihTerbakar2 > 0) { backBurn(); efek = attachMovie('efekApi', 'efek_mc' + dalamEfek, dalamEfek); kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x; efek._y = kartu2._y; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } --masihTerbakar2; nyawaKini2 -= Math.ceil(nyawaKini2 * 0.25); munculAngka('-', Math.ceil(nyawaKini2 * 0.25), 1); } if (masihBeracun1 > 0) { backAcid(); backAcid2(); efek = attachMovie('efekAcid', 'efek_mc' + dalamEfek, dalamEfek); kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } --masihBeracun1; nyawaKini1 -= Math.ceil(nyawaAwal1 * 0.15); munculAngka('-', Math.ceil(nyawaAwal1 * 0.15), 2); } if (masihBeracun2 > 0) { backAcid(); backAcid2(); efek = attachMovie('efekAcid', 'efek_mc' + dalamEfek, dalamEfek); kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; ++dalamEfek; if (dalamEfek >= 50) { dalamEfek = 10; } --masihBeracun2; nyawaKini2 -= Math.ceil(nyawaAwal2 * 0.15); munculAngka('-', Math.ceil(nyawaAwal2 * 0.15), 1); } if (tidakDapatJalan1 > 0) { --tidakDapatJalan1; if (jenisMainX == 'pvp') { } else { idAI4 = setInterval(cekAI, 1500); idLanjut6 = setInterval(nextTurn, 2000); } } else { if (masihMatahari1 > 0) { backNormalAttack(); rand = random(2); if (rand == 0) { efek = attachMovie('efekDarah1', 'efek_mc' + dalamEfek, dalamEfek); } else { efek = attachMovie('efekDarah2', 'efek_mc' + dalamEfek, dalamEfek); } kartu1.kedip_mc.gotoAndPlay(2); efek._x = kartu1._x - random(50) + 25; efek._y = kartu1._y - random(50) + 25; --masihMatahari1; indi1 = pilihCard; zperhitunganDamage = karakterAttack[indi1] * (10 - karakterDefense[indi1]) * karakterLevel[indi1] + random(4); zperhitunganDamage = Math.abs(zperhitunganDamage); nyawaKini1 -= zperhitunganDamage; munculAngka('-', zperhitunganDamage, 2); if (jenisMainX == 'pvp') { } else { idAI5 = setInterval(cekAI, 1500); idLanjut7 = setInterval(nextTurn, 2000); } } } if (masihMatahari2 > 0) { backNormalAttack(); rand = random(2); if (rand == 0) { efek = attachMovie('efekDarah1', 'efek_mc' + dalamEfek, dalamEfek); } else { efek = attachMovie('efekDarah2', 'efek_mc' + dalamEfek, dalamEfek); } kartu2.kedip_mc.gotoAndPlay(2); efek._x = kartu2._x - random(50) + 25; efek._y = kartu2._y - random(50) + 25; --masihMatahari2; indi1 = jenisMusuh[zlevel]; zperhitunganDamage = karakterAttack[indi1] * (10 - karakterDefense[indi1]) * karakterLevel[indi1] + random(4); zperhitunganDamage = Math.abs(zperhitunganDamage); nyawaKini2 -= zperhitunganDamage; munculAngka('-', zperhitunganDamage, 1); } } if (nyawaKini1 > 0 && nyawaKini2 > 0) { if (powerKini1 + karakterRegen[pilihCard] * karakterLevel[pilihCard] <= powerAwal1) { powerKini1 += karakterRegen[pilihCard] * karakterLevel[pilihCard]; } else { powerKini1 += powerAwal1 - powerKini1; } if (powerKini2 + karakterRegen[jenisMusuh[zlevel]] * levelMusuh[wlevel] <= powerAwal2) { powerKini2 += karakterRegen[jenisMusuh[zlevel]] * levelMusuh[wlevel]; } else { powerKini2 += powerAwal2 - powerKini2; } } else { bisaKlikAction(false); } if (nyawaSekarang1 != nyawaKini1) { if (nyawa1.bar._currentframe == 1) { nyawa1.bar.gotoAndPlay(2); } } if (nyawaSekarang2 != nyawaKini2) { if (nyawa2.bar._currentframe == 1) { nyawa2.bar.gotoAndPlay(2); } } if (powerSekarang1 != powerKini1) { if (power1.bar._currentframe == 1) { power1.bar.gotoAndPlay(2); } } if (powerSekarang2 != powerKini2) { if (power2.bar._currentframe == 1) { power2.bar.gotoAndPlay(2); } } ++zTurn; i = 1; while (i <= tipeAttack[pilihCard].length) { if (tipeAttack[pilihCard][i] != 0) { if (_root['attackAktif' + i] > 0) { --_root['attackAktif' + i]; } } ++i; } i = 1; while (i <= 21) { if (_root['zattackAktif' + i] > 0) { --_root['zattackAktif' + i]; } ++i; } i = 1; while (i <= tipeDefense[pilihCard].length) { if (tipeDefense[pilihCard][i] != 0) { if (_root['defenseAktif' + i] > 0) { --_root['defenseAktif' + i]; } } ++i; } i = 1; while (i <= 11) { if (_root['zdefenseAktif' + i] > 0) { --_root['zdefenseAktif' + i]; } ++i; } } function cekPilihan() { pilihan.option_btn.onRelease = function () { pilihan.gotoAndStop(2); pilihan.back_btn.onRelease = function () { pilihan.gotoAndStop(1); cekPilihan(); }; }; pilihan.quitsave_btn.onRelease = function () { if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { simpanSementara(); cekClear(); transisi.gotoAndPlay(2); kemanax = 'menu'; } else { cekClear(); saveData(); transisi.gotoAndPlay(2); kemanax = 'menu'; } }; pilihan.quit_btn.onRelease = function () { cekClear(); transisi.gotoAndPlay(2); kemanax = 'menu'; }; pilihan.surender_btn.onRelease = function () { klikSurender = true; if (jalanDuluan == 1) { nyawaKini1 = 0; } else { if (jalanDuluan == 2) { nyawaKini2 = 0; } } removeMovieClip(pilihan_mc); }; pilihan.end_btn.onRelease = function () { clearInterval(idAI); clearInterval(idAI1); clearInterval(idAI2); clearInterval(idAI3); clearInterval(idAI4); clearInterval(idAI5); clearInterval(idLanjut); clearInterval(idLanjut1); clearInterval(idLanjut2); clearInterval(idLanjut3); clearInterval(idLanjut4); clearInterval(idLanjut5); clearInterval(idLanjut6); clearInterval(idLanjut7); clearInterval(idLanjut8); clearInterval(idLanjut9); clearInterval(idLanjut10); msgBox_mc._visible = false; bisaKlikAction(false); if (tidakDapatJalan2 > 0) { --tidakDapatJalan2; idLanjut8 = setInterval(nextTurn, 1000); } else { if (masihMatahari2 > 0) { --masihMatahari2; nyawaKini2 -= Math.ceil(nyawaAwal2 * 0.2); idLanjut9 = setInterval(nextTurn, 1000); } else { if (jenisMainX == 'pvp') { idLanjut10 = setInterval(nextTurn, 1500); } else { cekAI(); idLanjut10 = setInterval(nextTurn, 1500); } } } removeMovieClip(pilihan_mc); kartu1.enabled = true; kartu2.enabled = true; }; pilihan.close_btn.onRelease = function () { removeMovieClip(pilihan_mc); kartu1.enabled = true; kartu2.enabled = true; }; } function cekClear() { clearInterval(idLanjutEnd); clearInterval(idMeteor1); clearInterval(idMeteor2); clearInterval(idGempa1); clearInterval(idGempa2); clearInterval(idAI); clearInterval(idAI1); clearInterval(idAI2); clearInterval(idAI3); clearInterval(idAI4); clearInterval(idAI5); clearInterval(idLanjut); clearInterval(idLanjut1); clearInterval(idLanjut2); clearInterval(idLanjut3); clearInterval(idLanjut4); clearInterval(idLanjut5); clearInterval(idLanjut6); clearInterval(idLanjut7); clearInterval(idLanjut8); clearInterval(idLanjut9); clearInterval(idLanjut10); delete _root.onEnterFrame; delete kartu1.onEnterFrame; delete kartu2.onEnterFrame; delete msgBox_mc.onEnterFrame; i = 1; while (i <= 50) { removeMovieClip(_root['efek_mc' + i]); ++i; } i = 50; while (i <= 200) { removeMovieClip(_root['huruf' + i]); ++i; } removeMovieClip(pilihan_mc); zsekarangLagu = pilihCard; } function cekLanjutLevel(indi) { cekClear(); zTuranggamasa = 0; zPrada = 0; if (jenisMainX == 'pvp') { if (indi == 'menang') { cekTandaBattle = 1; } else { if (indi == 'kalah') { cekTandaBattle = 2; } } } else { if (indi == 'menang') { if (tipePilih == 'train') { alevel += 0.5; if (jenisMusuh[zlevel] <= 7) { if (alevel >= 21) { alevel = 21; } } else { if (jenisMusuh[zlevel] <= 14) { if (alevel >= 42) { alevel = 42; } } else { if (jenisMusuh[zlevel] <= 22) { if (alevel >= 49) { alevel = 49; } } } } if (pilihLevel == 1) { manaPoint += 20; zPrada = 20; } else { manaPoint += 10; zPrada = 10; } } else { ++zlevel; if (pilihLevel == 1) { manaPoint += Math.ceil(40 + 0.5 * zlevel); zPrada = Math.ceil(40 + 0.5 * zlevel); } else { manaPoint += Math.ceil(30 + 0.5 * zlevel); zPrada = Math.ceil(30 + 0.5 * zlevel); } if (pilihLevel == 1) { turanggaLevel += 0.4; zTuranggamasa = 0.4; } else { turanggaLevel += 0.3; zTuranggamasa = 0.3; } } cekTandaBattle = 1; } else { if (indi == 'kalah') { if (tipePilih == 'train') { alevel -= 0.25; if (alevel <= 1) { alevel = 1; } if (klikSurender == true) { manaPoint += 0; zPrada = 0; } else { if (pilihLevel == 1) { manaPoint += 10; zPrada = 10; } else { manaPoint += 5; zPrada = 5; } } } else { _root['masihHidup' + pilihCard] = false; if (klikSurender == true) { manaPoint += 0; zPrada = 0; } else { manaPoint += Math.ceil(15 + 0.25 * zlevel); zPrada = Math.ceil(15 + 0.25 * zlevel); } if (pilihLevel == 1) { turanggaLevel += 0.2; zTuranggamasa = 0.2; } else { turanggaLevel += 0.1; zTuranggamasa = 0.1; } } cekTandaBattle = 2; } } zsekarangLagu = pilihCard; if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { if (indi == 'menang') { manaPoint += Math.ceil(50 + 0.5 * wlevel); zPrada = Math.ceil(50 + 0.5 * wlevel); turanggaLevel += 0.3; zTuranggamasa = 0.3; } else { manaPoint += Math.ceil(35 + 0.5 * wlevel); zPrada = Math.ceil(35 + 0.5 * wlevel); } if (jenisMainX == 'pvp') { karakterLevel[pilihCard2] = levelMusuh[zlevel]; karakterExp[pilihCard2] = musuhExp; } } } if (zlevel >= 51) { if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { if (jenisMainX == 'pvp') { transisi.gotoAndPlay(2); kemanax = 'completed2'; } else { transisi.gotoAndPlay(2); kemanax = 'completed'; } } else { if (tipePilih == 'train') { transisi.gotoAndPlay(2); kemanax = 'completed'; } else { transisi.gotoAndPlay(2); kemanax = 'win'; } } } else { if (jenisMainX == 'pvp') { transisi.gotoAndPlay(2); kemanax = 'completed2'; } else { transisi.gotoAndPlay(2); kemanax = 'completed'; } } if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { simpanSementara(); } } function simpanSementara() { if (jenisMainX == 'unlimited') { i = 1; while (i <= 22) { karakterLevel2[i] = karakterLevel[i]; karakterExp2[i] = karakterExp[i]; ++i; } turanggaLevel2 = turanggaLevel; manaPoint2 = manaPoint; saveData(); } else { if (jenisMainX == 'pvp') { i = 1; while (i <= 22) { karakterLevel3[i] = karakterLevel[i]; karakterExp3[i] = karakterExp[i]; ++i; } turanggaLevel3 = turanggaLevel; manaPoint3 = manaPoint; saveData(); } } } stop(); zTurn = 1; zYourSpell = 0; zEnemySpell = 0; if (jenisMainX == 'unlimited') { zlevel = 1; wlevel = 1; alevel = 1; jenisMusuh = new Array(); levelMusuh = new Array(); jenisMusuh[zlevel] = Math.ceil(zmusuhUnlimited); levelMusuh[zlevel] = Math.ceil(xmusuhUnlimited / 6); ++xmusuhUnlimited; musuhUnlimited += 0.5; zmusuhUnlimited = musuhUnlimited; if (zmusuhUnlimited >= 23) { zmusuhUnlimited = 1; musuhUnlimited = 1; } if (jenisMusuh[zlevel] >= 22) { jenisMusuh[zlevel] = 22; } } else { if (jenisMainX == 'pvp') { zlevel = 1; wlevel = 1; alevel = 1; jenisMusuh = new Array(); levelMusuh = new Array(); if (giliranDuluan == 1) { jalanDuluan = 1; } else { jalanDuluan = 2; } } } if (tipePilih == 'train') { tipe_mc.gotoAndStop(1); wlevel = Math.ceil(alevel); } else { tipe_mc.gotoAndStop(2); wlevel = zlevel; } if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { } else { if (wlevel >= 50) { wlevel = 50; } else { if (wlevel <= 1) { wlevel = 1; } } } if (pilihLevel == 1) { xlevel_mc.gotoAndStop(1); } else { if (pilihLevel == 2) { xlevel_mc.gotoAndStop(2); } else { if (pilihLevel == 3) { xlevel_mc.gotoAndStop(5); } } } if (jenisMainX == 'unlimited') { xlevel_mc.gotoAndStop(3); tipe_mc.gotoAndStop(3); } else { if (jenisMainX == 'pvp') { xlevel_mc.gotoAndStop(4); tipe_mc.gotoAndStop(4); } } wlevel = Math.ceil(wlevel); if (pilihCard <= 7) { if (zsekarangLagu > 7) { backMusic1(); } else { if (zsekarangLagu == undefined) { backMusic1(); } } } else { if (pilihCard <= 14 && pilihCard > 7) { if (zsekarangLagu <= 7 || zsekarangLagu > 14) { backMusic2(); } else { if (zsekarangLagu == undefined) { backMusic2(); } } } else { if (pilihCard > 14) { if (zsekarangLagu <= 14) { backMusic3(); } else { if (zsekarangLagu == undefined) { backMusic3(); } } } } } if (jenisMainX == 'pvp') { pilihCard = pilihCard; karakterLevel[pilihCard] = karakterLevel[pilihCard1]; karakterExp[pilihCard] = karakterExp[pilihCard1]; jenisMusuh[zlevel] = pilihCard2; levelMusuh[zlevel] = karakterLevel[pilihCard2]; musuhExp = karakterExp[pilihCard2]; } else { musuhExp = 0; if (jenisMainX == 'unlimited') { } else { pilihMusuhX(); } } if (musikNyala == 0) { volume1 = 0; } else { volume1 = 125; } myMusic.setVolume(volume1); jalanDuluan = 1; if (jenisMainX == 'pvp') { if (giliranDuluan == 1) { jalanDuluan = 1; } else { jalanDuluan = 2; } } kartu1.gotoAndStop(pilihCard); if (tipePilih == 'train') { kartu2.gotoAndStop(jenisMusuh[zlevel]); } else { kartu2.gotoAndStop(jenisMusuh[zlevel]); } kartu1.onRelease = klikKartu1; kartu1.onRollOver = overKartu1; kartu1.onRollOut = outKartu1; kartu2.onRelease = klikKartu2; kartu2.onRollOver = overKartu2; kartu2.onRollOut = outKartu2; sudahNaikan = false; select_mc2._visible = false; klikSurender = false; msgBox_mc5.onEnterFrame = enterMsgBox; msgBox_mc2.onEnterFrame = enterMsgBox; msgBox_mc2._visible = false; msgBox_mc5._visible = false; nyawa1.onRollOver = function () { msgBox_mc5.nama = 'Your Life'; msgBox_mc5.isi = 'This is show your life, you will lose when it\'s show zero.'; msgBox_mc5._visible = true; }; nyawa2.onRollOver = function () { msgBox_mc5.nama = 'Enemy Life'; msgBox_mc5.isi = 'This is show enemy life, you will win when it\'s show zero.'; msgBox_mc5._visible = true; }; power1.onRollOver = function () { msgBox_mc5.nama = 'Your Power'; msgBox_mc5.isi = 'This is show your power, it\'s use to unleash spell.'; msgBox_mc5._visible = true; }; power2.onRollOver = function () { msgBox_mc5.nama = 'Enemy Power'; msgBox_mc5.isi = 'This is show your power, it\'s use to unleash spell.'; msgBox_mc5._visible = true; }; nyawa1.onRollOut = function () { msgBox_mc5._visible = false; }; nyawa2.onRollOut = function () { msgBox_mc5._visible = false; }; power1.onRollOut = function () { msgBox_mc5._visible = false; }; power2.onRollOut = function () { msgBox_mc5._visible = false; }; kartu1.gerakanGetar = 0; kartu2.gerakanGetar = 0; kartu1AwalX = kartu1._x; kartu1AwalY = kartu1._y; kartu2AwalX = kartu2._x; kartu2AwalY = kartu2._y; nyawaKini1 = karakterLife[pilihCard] * karakterLevel[pilihCard]; nyawaKini2 = karakterLife[jenisMusuh[zlevel]] * levelMusuh[wlevel]; powerKini1 = Math.ceil(karakterPower[pilihCard] * karakterLevel[pilihCard]); powerKini2 = Math.ceil(karakterPower[jenisMusuh[zlevel]] * levelMusuh[wlevel]); nyawaAwal1 = nyawaKini1; nyawaAwal2 = nyawaKini2; powerAwal1 = powerKini1; powerAwal2 = powerKini2; xnyawaKini1 = nyawaKini1; xnyawaKini2 = nyawaKini2; xpowerKini1 = powerKini1; xpowerKini2 = powerKini2; sudahKelar = false; kartu1.border_mc._visible = false; kartu2.border_mc._visible = false; speedNyawa1 = 3 * karakterLevel[pilihCard]; speedPower1 = 0.5 * karakterLevel[pilihCard]; speedNyawa2 = 3 * levelMusuh[wlevel]; speedPower2 = 0.5 * levelMusuh[wlevel]; if (jenisMainX == 'pvp') { bisaKlikAction(true, jalanDuluan); } else { bisaKlikAction(true); } pelindung11 = false; pelindung12 = false; lamaPelindung11 = 0; lamaPelindung12 = 0; pelindung21 = false; pelindung22 = false; lamaPelindung21 = 0; lamaPelindung22 = 0; rage11 = 0; rage12 = 0; rage21 = 0; rage22 = 0; tidakDapatJalan1 = 0; tidakDapatJalan2 = 0; masihTerbakar1 = 0; masihTerbakar2 = 0; masihBeracun1 = 0; masihBeracun2 = 0; masihMatahari1 = 0; masihMatahari2 = 0; ilusi1 = 0; ilusi2 = 0; dalamEfek = 10; dalamEfek2 = 45; bykHuruf = 100; namaKondisi = new Array('', 'Shield', 'Rage', 'Stun', 'Burn', 'Poison', 'Confuse', 'Hidden'); penjelasanKondisi = new Array('', 'This character uses the protector so it reduces the damage from your opponent attacks.', 'This character is enthusiastic therefore his attack is more violent', 'This character is frozen and not moving at all.', 'This character is on fire so that his life will continue to decrease.', 'This character is poisoned so that his life will continue to decrease.', 'This character is confused, so he will attack himself.', 'This character is hiding so he can’t be attacked.'); i = 1; while (i <= 7) { _root['efek' + i].gotoAndStop(i); _root['efekx' + i].gotoAndStop(i); _root['efek' + i]._visible = false; _root['efekx' + i]._visible = false; _root['efek' + i].onRollOver = overEfek; _root['efek' + i].onRollOut = outEfek; _root['efekx' + i].onRollOver = overEfek; _root['efekx' + i].onRollOut = outEfek; ++i; } _root.onEnterFrame = function () { if (lamaPelindung11 > 0 || lamaPelindung21 > 0) { if (lamaPelindung11 > 0) { _root.efek1.banyak = 'x' + lamaPelindung11; } else { if (lamaPelindung21 > 0) { _root.efek1.banyak = 'x' + lamaPelindung21; } } _root.efek1._visible = true; } else { _root.efek1._visible = false; } if (rage11 > 0 || rage21 > 0) { if (rage11 > 0) { _root.efek2.banyak = 'x' + rage11; } else { if (rage21 > 0) { _root.efek2.banyak = 'x' + rage21; } } _root.efek2._visible = true; } else { _root.efek2._visible = false; } if (tidakDapatJalan1 > 0) { if (tidakDapatJalan1 > 0) { _root.efek3.banyak = 'x' + tidakDapatJalan1; } _root.efek3._visible = true; } else { _root.efek3._visible = false; } if (masihTerbakar1 > 0) { if (masihTerbakar1 > 0) { _root.efek4.banyak = 'x' + masihTerbakar1; } _root.efek4._visible = true; } else { _root.efek4._visible = false; } if (masihBeracun1 > 0) { if (masihBeracun1 > 0) { _root.efek5.banyak = 'x' + masihBeracun1; } _root.efek5._visible = true; } else { _root.efek5._visible = false; } if (masihMatahari1 > 0) { if (masihMatahari1 > 0) { _root.efek6.banyak = 'x' + masihMatahari1; } _root.efek6._visible = true; } else { _root.efek6._visible = false; } if (ilusi1 > 0) { if (ilusi1 > 0) { _root.efek7.banyak = 'x' + ilusi1; } _root.efek7._visible = true; } else { _root.efek7._visible = false; } if (lamaPelindung12 > 0 || lamaPelindung22 > 0) { if (lamaPelindung12 > 0) { _root.efekx1.banyak = 'x' + lamaPelindung12; } else { if (lamaPelindung22 > 0) { _root.efekx1.banyak = 'x' + lamaPelindung22; } } _root.efekx1._visible = true; } else { _root.efekx1._visible = false; } if (rage12 > 0 || rage22 > 0) { if (rage12 > 0) { _root.efekx2.banyak = 'x' + rage12; } else { if (rage22 > 0) { _root.efekx2.banyak = 'x' + rage22; } } _root.efekx2._visible = true; } else { _root.efekx2._visible = false; } if (tidakDapatJalan2 > 0) { if (tidakDapatJalan2 > 0) { _root.efekx3.banyak = 'x' + tidakDapatJalan2; } _root.efekx3._visible = true; } else { _root.efekx3._visible = false; } if (masihTerbakar2 > 0) { if (masihTerbakar2 > 0) { _root.efekx4.banyak = 'x' + masihTerbakar2; } _root.efekx4._visible = true; } else { _root.efekx4._visible = false; } if (masihBeracun2 > 0) { if (masihBeracun2 > 0) { _root.efekx5.banyak = 'x' + masihBeracun2; } _root.efekx5._visible = true; } else { _root.efekx5._visible = false; } if (masihMatahari2 > 0) { if (masihMatahari2 > 0) { _root.efekx6.banyak = 'x' + masihMatahari2; } _root.efekx6._visible = true; } else { _root.efekx6._visible = false; } if (ilusi2 > 0) { if (ilusi2 > 0) { _root.efekx7.banyak = 'x' + ilusi2; } _root.efekx7._visible = true; } else { _root.efekx7._visible = false; } if (xnyawaKini1 <= 0) { xnyawaKini1 = 0; } if (xpowerKini1 <= 0) { xpowerKini1 = 0; } if (xnyawaKini2 <= 0) { xnyawaKini2 = 0; } if (xpowerKini2 <= 0) { xpowerKini2 = 0; } if (nyawaKini1 <= 0) { nyawaKini1 = 0; } if (powerKini1 <= 0) { powerKini1 = 0; } if (nyawaKini2 <= 0) { nyawaKini2 = 0; } if (powerKini2 <= 0) { powerKini2 = 0; } if (jenisMainX == 'unlimited' || jenisMainX == 'pvp') { qlevel1 = 'Level ' + karakterLevel[pilihCard]; qlevel2 = 'Level ' + levelMusuh[wlevel]; } else { qlevel1 = 'Level ' + karakterLevel[pilihCard] + '/' + karakterMaxLevel[pilihCard]; qlevel2 = 'Level ' + levelMusuh[wlevel] + '/' + karakterMaxLevel[jenisMusuh[zlevel]]; } xexp1 = 'Exp: ' + karakterExp[pilihCard] + '/' + karakterLevel[pilihCard] * 100; xexp2 = 'Exp: ' + musuhExp + '/' + levelMusuh[wlevel] * 100; nyawa1x = nyawaKini1 + '/' + nyawaAwal1; nyawa2x = nyawaKini2 + '/' + nyawaAwal2; if (nyawaKini1 <= 0) { kartu1.onEnterFrame = xenterKartu1; } else { if (nyawaKini2 <= 0) { kartu2.onEnterFrame = xenterKartu2; } } power1x = powerKini1 + '/' + powerAwal1; power2x = powerKini2 + '/' + powerAwal2; perbedaanLevel = Math.ceil(1.5 * levelMusuh[wlevel] - karakterLevel[pilihCard]); if (perbedaanLevel <= 1) { perbedaanLevel = 1; } perbedaanLevel2 = Math.ceil(1.5 * karakterLevel[pilihCard] - levelMusuh[wlevel]); if (perbedaanLevel2 <= 1) { perbedaanLevel2 = 1; } if (nyawaKini1 < xnyawaKini1) { xnyawaKini1 -= speedNyawa1; if (xnyawaKini1 < nyawaKini1) { xnyawaKini1 = nyawaKini1; } } else { if (nyawaKini1 > xnyawaKini1) { xnyawaKini1 += speedNyawa1; if (xnyawaKini1 > nyawaKini1) { xnyawaKini1 = nyawaKini1; } } else { xnyawaKini1 = nyawaKini1; } } if (powerKini1 < xpowerKini1) { xpowerKini1 -= speedPower1; if (xpowerKini1 < powerKini1) { xpowerKini1 = powerKini1; } } else { if (powerKini1 > xpowerKini1) { xpowerKini1 += speedPower1; if (xpowerKini1 > powerKini1) { xpowerKini1 = powerKini1; } } else { xpowerKini1 = powerKini1; } } if (nyawaKini2 < xnyawaKini2) { xnyawaKini2 -= speedNyawa2; if (xnyawaKini2 < nyawaKini2) { xnyawaKini2 = nyawaKini2; } } else { if (nyawaKini2 > xnyawaKini2) { xnyawaKini2 += speedNyawa2; if (xnyawaKini2 > nyawaKini2) { xnyawaKini2 = nyawaKini2; } } else { xnyawaKini2 = nyawaKini2; } } if (powerKini2 < xpowerKini2) { xpowerKini2 -= speedPower2; if (xpowerKini2 < powerKini2) { xpowerKini2 = powerKini2; } } else { if (powerKini2 > xpowerKini2) { xpowerKini2 += speedPower2; if (xpowerKini2 > powerKini2) { xpowerKini2 = powerKini2; } } else { xpowerKini2 = powerKini2; } } nyawa1.bar._xscale = (xnyawaKini1 / nyawaAwal1) * 100; power1.bar._xscale = (xpowerKini1 / powerAwal1) * 100; nyawa2.bar._xscale = (xnyawaKini2 / nyawaAwal2) * 100; power2.bar._xscale = (xpowerKini2 / powerAwal2) * 100; if (kartu1.gerakanGetar > 0) { --kartu1.gerakanGetar; kartu1._x += -random(3) + 1; kartu1._y += -random(3) + 1; } else { kartu1.gerakanGetar = 0; kartu1._x = kartu1AwalX; kartu1._y = kartu1AwalY; } if (kartu2.gerakanGetar > 0) { --kartu2.gerakanGetar; kartu2._x += -random(3) + 1; kartu2._y += -random(3) + 1; } else { kartu2.gerakanGetar = 0; kartu2._x = kartu2AwalX; kartu2._y = kartu2AwalY; } if (jenisMainX == 'pvp') { if (jalanDuluan == 1) { player1.gotoAndStop(1); player2.gotoAndStop(3); kartu1.gelap_mc.gotoAndStop(1); kartu2.gelap_mc.gotoAndStop(2); } else { if (jalanDuluan == 2) { player1.gotoAndStop(3); player2.gotoAndStop(2); kartu1.gelap_mc.gotoAndStop(2); kartu2.gelap_mc.gotoAndStop(1); } } } else { player1._visible = false; player2._visible = false; } }; i = 1; while (i <= 10) { _root['attack' + i]._alpha = 50; _root['defense' + i]._alpha = 50; _root['attack' + i].gotoAndStop(30); _root['defense' + i].gotoAndStop(30); ++i; } i = 1; while (i <= tipeAttack[pilihCard].length) { if (tipeAttack[pilihCard][i] != 0) { _root['attack' + i].gotoAndStop(tipeAttack[pilihCard][i]); _root['attack' + i]._alpha = 100; _root['attack' + i].onRelease = klikAttack; _root['attack' + i].onRollOver = overAttack; _root['attack' + i].onRollOut = outAttack; _root['attackAktif' + i] = 0; } ++i; } i = 1; while (i <= 21) { _root['zattackAktif' + i] = 0; ++i; } i = 1; while (i <= tipeDefense[pilihCard].length) { if (tipeDefense[pilihCard][i] != 0) { _root['defense' + i].gotoAndStop(tipeDefense[pilihCard][i]); _root['defense' + i]._alpha = 100; _root['defense' + i].onRelease = klikDefense; _root['defense' + i].onRollOver = overDefense; _root['defense' + i].onRollOut = outDefense; _root['defenseAktif' + i] = 0; } ++i; } i = 1; while (i <= 11) { _root['zdefenseAktif' + i] = 0; ++i; } antiStun1 = false; antiStun2 = false; i = tipeDefense[pilihCard].length; while (i >= 1) { if (tipeDefense[pilihCard][i] != 0 && tipeDefense[pilihCard][i] != undefined) { if (powerKini2 >= powerDefense[tipeDefense[pilihCard][i]]) { pilihDefense = tipeDefense[pilihCard][i]; if (pilihDefense == 10) { antiStun1 = true; } } } --i; } i = tipeDefense[jenisMusuh[zlevel]].length; while (i >= 1) { if (tipeDefense[jenisMusuh[zlevel]][i] != 0 && tipeDefense[jenisMusuh[zlevel]][i] != undefined) { if (powerKini2 >= powerDefense[tipeDefense[jenisMusuh[zlevel]][i]]) { pilihDefense = tipeDefense[jenisMusuh[zlevel]][i]; if (pilihDefense == 10) { antiStun2 = true; } } } --i; } if (jenisMainX == 'pvp') { bisaKlikAction(true, jalanDuluan); } else { if (jenisMainX != 'unlimited' && jenisMainX != 'pvp') { if (pilihLevel <= 2) { bisaKlikAction(true); } else { if (zlevel < 25) { randJalan = random(2); if (randJalan == 0) { bisaKlikAction(true); } else { bisaKlikAction(false); idAI1 = setInterval(cekAI, 500); idLanjut3 = setInterval(nextTurn, 1000); } } else { bisaKlikAction(false); idAI1 = setInterval(cekAI, 500); idLanjut3 = setInterval(nextTurn, 1000); } } } else { bisaKlikAction(true); } } msgBox_mc.onEnterFrame = enterMsgBox6; msgBox_mc._visible = false; msgBox_mc3._visible = false; end_btn.onRollOver = function () { msgBox_mc.nama = 'Menu Button'; msgBox_mc.isi = 'Click here to open the menu, containing buttons to access options such as end turn, quit the game, surrender and game options.'; msgBox_mc._visible = true; }; end_btn.onRollOut = function () { msgBox_mc._visible = false; }; end_btn.onRelease = function () { pilihan = attachMovie('pilihan_mc', 'pilihan_mc', 99001); pilihan._x = 400; pilihan._y = 300; pilihan.gotoAndStop(1); kartu1.enabled = false; kartu2.enabled = false; cekPilihan(); }; if (tutorialMulai3 == true) { tutorial_mc._visible = true; end_btn.enabled = false; i = 1; while (i <= tipeAttack[pilihCard].length) { if (tipeAttack[pilihCard][i] != 0) { _root['attack' + i].enabled = false; } ++i; } i = 1; while (i <= tipeDefense[pilihCard].length) { if (tipeDefense[pilihCard][i] != 0) { _root['defense' + i].enabled = false; } ++i; } kartu1.enabled = false; nyawa1.enabled = false; power1.enabled = false; kartu2.enabled = false; nyawa2.enabled = false; power2.enabled = false; tutorialMulai3 = false; } else { tutorial_mc._visible = false; } } movieClip 1318 { } movieClip 1321 { } movieClip 1327 { frame 1 { stop(); } } movieClip 1332 { frame 1 { stop(); } } movieClip 1336 { frame 1 { stop(); } } movieClip 1340 { frame 1 { stop(); } } movieClip 1345 { frame 1 { stop(); } } // unknown tag 88 length 84 movieClip 1360 { frame 1 { stop(); } } movieClip 1365 { frame 1 { stop(); } } movieClip 1369 { } movieClip 1380 { } movieClip 1384 { } movieClip 1390 { frame 1 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } frame 2 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } frame 4 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } frame 5 { stop(); skip_btn.onRelease = function () { _root.cekBisaKlikSaja(); _root.tutorial_mc._visible = false; }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; } } frame 1956 { stop(); if (musikNyala == 0) { volume1 = 0; } else { volume1 = 50; } myMusic.setVolume(volume1); next_btn.onRelease = function () { if (jenisMainX == 'pvp') { awalSekali = undefined; transisi.gotoAndPlay(2); kemanax = 'pvp'; } else { awalSekali = undefined; transisi.gotoAndPlay(2); kemanax = 'select'; } }; zYourLife = nyawaKini1 + '/' + nyawaAwal1; zEnemyLife = nyawaKini2 + '/' + nyawaAwal2; zYourPower = powerKini1 + '/' + powerAwal1; zEnemyPower = powerKini2 + '/' + powerAwal2; tanda_mc.gotoAndStop(cekTandaBattle); if (jenisMainX == 'pvp') { tanda_mc.gotoAndStop(3); if (cekTandaBattle == 1) { tanda_mc.xnama = nama1 + ' WIN'; } else { if (cekTandaBattle == 2) { tanda_mc.xnama = nama2 + ' WIN'; } } } } movieClip 1394 { frame 1 { stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; } } instance logo_mc of movieClip 1394 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=winlevel', '_blank'); } } movieClip 1398 { frame 1 { stop(); } } frame 1957 { stop(); if (musikNyala == 0) { volume1 = 0; } else { volume1 = 50; } myMusic.setVolume(volume1); next_btn.onRelease = function () { if (jenisMainX == 'pvp') { awalSekali = undefined; transisi.gotoAndPlay(2); kemanax = 'pvp'; } else { awalSekali = undefined; transisi.gotoAndPlay(2); kemanax = 'select'; } }; zYourLife = nyawaKini1 + '/' + nyawaAwal1; zEnemyLife = nyawaKini2 + '/' + nyawaAwal2; zYourPower = powerKini1 + '/' + powerAwal1; zEnemyPower = powerKini2 + '/' + powerAwal2; tanda_mc.gotoAndStop(cekTandaBattle); if (jenisMainX == 'pvp') { tanda_mc.gotoAndStop(3); if (cekTandaBattle == 1) { ++ztotalWin1; tanda_mc.xnama = nama1 + ' WIN'; } else { if (cekTandaBattle == 2) { ++ztotalWin2; tanda_mc.xnama = nama2 + ' WIN'; } } } totalWin1 = ztotalWin1; totalWin2 = ztotalWin2; if (jenisMainX == 'pvp') { if (ztotalWin1 >= 100) { _root.medalx19 = true; } else { if (ztotalWin1 >= 75) { _root.medalx18 = true; } else { if (ztotalWin1 >= 50) { _root.medalx17 = true; } else { if (ztotalWin1 >= 25) { _root.medalx16 = true; } } } } if (ztotalWin2 >= 100) { _root.medalx23 = true; } else { if (ztotalWin2 >= 75) { _root.medalx22 = true; } else { if (ztotalWin2 >= 50) { _root.medalx21 = true; } else { if (ztotalWin2 >= 25) { _root.medalx20 = true; } } } } } } instance logo_mc of movieClip 1394 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=winpvp', '_blank'); } } frame 1958 { stop(); if (musikNyala == 0) { volume1 = 0; } else { volume1 = 50; } myMusic.setVolume(volume1); next_btn.onRelease = function () { awalSekali = undefined; transisi.gotoAndPlay(2); kemanax = 'menu'; }; zYourLife = nyawaKini1 + '/' + nyawaAwal1; zEnemyLife = nyawaKini2 + '/' + nyawaAwal2; zYourPower = powerKini1 + '/' + powerAwal1; zEnemyPower = powerKini2 + '/' + powerAwal2; tanda_mc.gotoAndStop(cekTandaBattle); _root.medalx5 = true; karakterRahasia = true; initAwal(); saveData(); } instance logo_mc of movieClip 1394 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=wingame', '_blank'); } } button 1439 { on (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1626&subid=wingame', '_blank'); } }




http://swfchan.com/21/100622/info.shtml
Created: 21/3 -2019 05:00:35 Last modified: 21/3 -2019 05:00:35 Server time: 14/11 -2024 06:45:49