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

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM64939419-15DC&rnd=64939419" width="1" height="1"></div>

armorgames castle-hero-7270.swf

This is the info page for
Flash #268075

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


ActionScript [AS1/AS2]
Combined Code
movieClip 2 xsound { } frame 1 { var CPMStarContentSpotID = '3354QD2D70DCD'; System.security.allowDomain('server.cpmstar.com'); adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID); } frame 1 { function simpanData() { Cookies = SharedObject.getLocal('AoDData2'); i = 1; while (i <= simpanSemua.length) { Cookies.data['xAoData' + i] = eval(simpanSemua[i]); ++i; } i = 1; while (i <= simpanSemua2.length) { Cookies.data['zAoData' + i] = eval(simpanSemua2[i]); ++i; } } function simpanMedal() { Cookies = SharedObject.getLocal('AoDData2'); i = 1; while (i <= simpanSemua2.length) { Cookies.data['zAoData' + i] = eval(simpanSemua2[i]); ++i; } } function loadData() { Cookies = SharedObject.getLocal('AoDData2'); i = 1; while (i <= simpanSemua.length) { _root[simpanSemua[i]] = Cookies.data['xAoData' + i]; ++i; } i = 1; while (i <= simpanSemua2.length) { _root[simpanSemua2[i]] = Cookies.data['zAoData' + i]; ++i; } } function initMedal() { i = 1; while (i <= 35) { _root['lockMedal' + i] = false; ++i; } } function initData() { pilihLevel = 1; xscore = 0; exp = 0; gembokBaseKini = 1; gembokThrowKini = 1; gembokArrowKini = 1; gembokGunKini = 1; gembokEfekKini = 1; gembokDamageKini = 1; gembokSpecialKini = 1; pilihBackground = 1; pilihWeaponThrow = 1; pilihWeaponArrow = 0; pilihWeaponGun = 0; penambahanBaseLife = 50; penambahanBaseDefense = 1; baseEndurance = 1; baseDefense = 1; characterSpeed = 1; characterPower = 1; senjataPrimary = 1; basePerfect = 0; senjataSecondary = 2; } function backMusic() { myMusic.stop(); myMusic = new Sound(zmusik); myMusic.attachSound('backMusic'); myMusic.start(0, 1); myMusic.onSoundComplete = function () { backMusic(); }; } function backMenu() { myMusic.stop(); myMusic = new Sound(zmusik); myMusic.attachSound('backMenu'); myMusic.start(0, 1); myMusic.setVolume(volume1); myMusic.onSoundComplete = function () { backMenu(); }; } function backBird() { mySound = new Sound(zsound); mySound.attachSound('backBird'); mySound.start(0, 1); mySound.setVolume(volume2); } function backMati() { rand = random(4) + 1; mySound = new Sound(zsound); mySound.attachSound('backMati' + rand); mySound.start(0, 1); mySound.setVolume(volume2); } function backSerang() { mySound = new Sound(zsound); mySound.attachSound('backSerang'); mySound.start(0, 1); mySound.setVolume(volume2); } function backBatu() { mySound = new Sound(zsound); mySound.attachSound('backBatu'); mySound.start(0, 1); mySound.setVolume(volume2); } function backKetapel() { mySound = new Sound(zsound); mySound.attachSound('backKetapel'); mySound.start(0, 1); mySound.setVolume(volume2); } function backKena() { rand2 = random(4); if (rand2 == 0) { backDarah(); } else { rand = random(3) + 1; mySound = new Sound(zsound); mySound.attachSound('backKena' + rand); mySound.start(0, 1); mySound.setVolume(volume2); } } function backKena3() { mySound = new Sound(zsound); mySound.attachSound('backKena3'); mySound.start(0, 1); mySound.setVolume(volume2); } function backLempar() { mySound = new Sound(zsound); mySound.attachSound('backLempar'); mySound.start(0.15, 1); mySound.setVolume(volume2 * 2); } function backPanah() { mySound = new Sound(zsound); mySound.attachSound('backPanah'); mySound.start(0, 1); mySound.setVolume(volume2); } function backHandGun() { mySound = new Sound(zsound); mySound.attachSound('backHandGun'); mySound.start(0, 1); mySound.setVolume(volume2); } function backRifle() { mySound = new Sound(zsound); mySound.attachSound('backRifle'); mySound.start(0, 1); mySound.setVolume(volume2); } function backMachineGun() { mySound = new Sound(zsound); mySound.attachSound('backMachineGun'); mySound.start(0, 1); mySound.setVolume(volume2); } function backSniper() { mySound = new Sound(zsound); mySound.attachSound('backSniper'); mySound.start(0, 1); mySound.setVolume(volume2); } function backRocket() { mySound = new Sound(zsound); mySound.attachSound('backRocket'); mySound.start(0, 1); mySound.setVolume(volume2); } function backListrik() { mySound = new Sound(zsound); mySound.attachSound('backListrik'); mySound.start(0, 1); mySound.setVolume(volume2); } function backLedak() { rand = random(3) + 1; mySound = new Sound(zsound); mySound.attachSound('backLedak' + rand); mySound.start(0, 1); mySound.setVolume(volume2); } function backRifle2() { mySound = new Sound(zsound); mySound.attachSound('backRifle2'); mySound.start(0, 1); mySound.setVolume(volume2); } function backDarah() { mySound = new Sound(zsound); mySound.attachSound('backDarah'); mySound.start(0, 1); mySound.setVolume(volume2); } function backAsap() { mySound = new Sound(zsound); mySound.attachSound('backAsap'); mySound.start(0, 1); mySound.setVolume(volume2); } function backApi() { mySound = new Sound(zsound); mySound.attachSound('backApi'); mySound.start(0, 1); mySound.setVolume(volume2); } function backRacun() { mySound = new Sound(zsound); mySound.attachSound('backRacun'); mySound.start(0, 1); mySound.setVolume(volume2); } function backOgre() { rand = random(2) + 1; mySound = new Sound(zsound); mySound.attachSound('backOgre' + rand); mySound.start(0, 1); mySound.setVolume(volume2); } function backKuda() { mySound = new Sound(zsound); mySound.attachSound('backKuda'); mySound.start(0, 1); mySound.setVolume(volume2 * 2); } function backGada() { mySound = new Sound(zsound); mySound.attachSound('backGada'); mySound.start(0, 1); mySound.setVolume(volume2); } function backPukul() { mySound = new Sound(zsound); mySound.attachSound('backPukul'); mySound.start(0, 1); mySound.setVolume(volume2); } function backSihir() { mySound = new Sound(zsound); mySound.attachSound('backSihir'); mySound.start(0, 1); mySound.setVolume(volume2); } function backDobrak() { mySound = new Sound(zsound); mySound.attachSound('backDobrak'); mySound.start(0, 1); mySound.setVolume(volume2); } function backAngin() { mySound = new Sound(zsound); mySound.attachSound('backAngin'); mySound.start(0, 1); mySound.setVolume(volume2); } function backHidra() { backPukul(); mySound = new Sound(zsound); mySound.attachSound('backHidra'); mySound.start(0, 1); mySound.setVolume(volume2); } function backMedusa() { mySound = new Sound(zsound); mySound.attachSound('backMedusa'); mySound.start(0, 1); mySound.setVolume(volume2); } function backPhonix() { mySound = new Sound(zsound); mySound.attachSound('backPhonix'); mySound.start(0, 1); mySound.setVolume(volume2); } function backPanahKecil() { mySound = new Sound(zsound); mySound.attachSound('backPanahKecil'); mySound.start(0, 1); mySound.setVolume(volume2); } function backPedang() { mySound = new Sound(zsound); mySound.attachSound('backPedang'); mySound.start(0, 1); mySound.setVolume(volume2); } function backPanahBesar() { mySound = new Sound(zsound); mySound.attachSound('backPanahBesar'); mySound.start(0, 1); mySound.setVolume(volume2); } function backMortar() { mySound = new Sound(zsound); mySound.attachSound('backMortar'); mySound.start(0, 1); mySound.setVolume(volume2); } function backKeluarBomb() { mySound = new Sound(zsound); mySound.attachSound('backKeluarBomb'); mySound.start(0, 1); mySound.setVolume(volume2); } function backSaber() { mySound = new Sound(zsound); mySound.attachSound('backSaber'); mySound.start(0, 1); mySound.setVolume(volume2); } function backGelombang() { mySound = new Sound(zsound); mySound.attachSound('backGelombang'); mySound.start(0, 1); mySound.setVolume(volume2); } function backLaser() { mySound = new Sound(zsound); mySound.attachSound('backLaser'); mySound.start(0, 1); mySound.setVolume(volume2 * 2); } function backMisil() { mySound = new Sound(zsound); mySound.attachSound('backMisil'); mySound.start(0, 1); mySound.setVolume(volume2 * 2); } stop(); fscommand('fullscreen', false); fscommand('allowscale', true); zmusik = attachMovie('xsound', 'zmusik', 20); zsound = attachMovie('xsound', 'zsound', 30); this.onEnterFrame = function () { persen = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); xpersen = persen + ' %'; bar_mc.gotoAndStop(persen); if (persen >= 100) { gotoAndStop('completed'); delete this.onEnterFrame; } }; simpanSemua = new Array('', 'pilihLevel', 'xscore', 'exp', 'gembokBaseKini', 'gembokThrowKini', 'gembokArrowKini', 'gembokGunKini', 'gembokEfekKini', 'gembokDamageKini', 'gembokSpecialKini', 'pilihBackground', 'penambahanBaseLife', 'penambahanBaseDefense', 'penambahanBaseDefense', 'baseEndurance', 'baseDefense', 'characterSpeed', 'characterPower', 'senjataPrimary', 'senjataSecondary', 'basePerfect', 'pilihWeaponThrow', 'pilihWeaponArrow', 'pilihWeaponGun'); simpanSemua2 = new Array('', 'lockMedal1', 'lockMedal2', 'lockMedal3', 'lockMedal4', 'lockMedal5', 'lockMedal6', 'lockMedal7', 'lockMedal8', 'lockMedal9', 'lockMedal10', 'lockMedal11', 'lockMedal12', 'lockMedal13', 'lockMedal14', 'lockMedal15', 'lockMedal16', 'lockMedal17', 'lockMedal18', 'lockMedal19', 'lockMedal20', 'lockMedal21', 'lockMedal22', 'lockMedal23', 'lockMedal24', 'lockMedal25', 'lockMedal26', 'lockMedal27', 'lockMedal28', 'lockMedal29', 'lockMedal30', 'lockMedal31', 'lockMedal32', 'lockMedal33', 'lockMedal34', 'lockMedal35'); volume1 = 75; volume2 = 100; qualityGame = 1; _quality = 'HIGH'; loadData(); if (pilihLevel == undefined) { initData(); initMedal(); simpanData(); } } // unknown tag 88 length 11 movieClip 14 { frame 1 { stop(); } } movieClip 24 { } movieClip 31 { } movieClip 33 { } movieClip 40 { } movieClip 46 { } movieClip 55 { } movieClip 63 { } movieClip 74 { } movieClip 80 { } movieClip 89 { } movieClip 92 { } movieClip 93 { frame 1 { this.onPress = function () { getURL('http://www.belugerinstudios.com/', '_blank'); }; } } // unknown tag 88 length 84 movieClip 102 { } instance of movieClip 102 { onClipEvent (release) { getURL('http://armorgames.com/', '_blank'); } } movieClip 119 { } movieClip 121 { } movieClip 132 { frame 20 { _root.cekBerkurangBase(this._parent); } frame 21 { _root.backPukul(); } } movieClip 143 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 144 musuh1 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 158 { } movieClip 169 { frame 22 { _root.cekBerkurangBase(this._parent); } frame 24 { _root.backGada(); } } movieClip 181 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 182 musuh2 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 202 { } movieClip 220 { frame 23 { _root.cekKetapelBatu(this._parent); } frame 24 { _root.backKetapel(); } } movieClip 230 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 231 musuh3 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 270 { } movieClip 279 { frame 29 { _root.cekBatuBesar(this._parent); } frame 30 { _root.backKetapel(); } } movieClip 292 { frame 17 { stop(); removeMovieClip(this._parent); } } movieClip 293 musuh4 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 308 { } movieClip 316 { frame 19 { _root.cekBerkurangBase(this._parent); } frame 20 { _root.backPukul(); } } movieClip 326 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 327 musuh5 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 343 { } movieClip 356 { frame 36 { _root.cekLemparBatu(this._parent); } frame 37 { _root.backKetapel(); } } movieClip 368 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 370 musuh6 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 378 { } movieClip 398 { frame 37 { _root.cekSihirApi(this._parent); } frame 38 { _root.backSihir(); } } movieClip 407 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 408 musuh7 { frame 1 { stop(); } } movieClip 431 { } movieClip 458 { frame 40 { _root.backApi(); } frame 55 { _root.cekBerkurangBase(this._parent); } } movieClip 464 { frame 25 { stop(); removeMovieClip(this._parent); } } movieClip 465 musuh8 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 482 { } movieClip 494 { frame 24 { _root.backSerang(); } frame 29 { _root.cekBerkurangBase(this._parent); } } movieClip 505 { frame 50 { stop(); removeMovieClip(this._parent); } } movieClip 506 musuh9 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 514 { } movieClip 530 { frame 23 { _root.backDobrak(); } frame 25 { _root.cekBerkurangBase(this._parent); } } movieClip 539 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 540 musuh10 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 549 { } movieClip 554 { frame 14 { _root.backAngin(); } frame 15 { _root.cekPusar(this._parent); } } movieClip 569 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 570 musuh11 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 573 { } movieClip 600 { } movieClip 603 { } movieClip 609 { } movieClip 613 { } movieClip 618 { } movieClip 622 { } movieClip 626 { } movieClip 630 { } movieClip 634 { } movieClip 639 { } movieClip 641 { } movieClip 653 { frame 30 { _root.cekPanahApiBurung(this._parent); } frame 31 { _root.backPanah(); } } movieClip 669 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 671 musuh12 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 675 { } movieClip 684 { } movieClip 688 { } movieClip 692 { } movieClip 695 { } movieClip 699 { } movieClip 706 { } movieClip 708 { } movieClip 720 { } movieClip 723 { } movieClip 726 { } movieClip 728 { } movieClip 731 { frame 21 { _root.cekBerkurangBase(this._parent); } frame 22 { _root.backHidra(); } } movieClip 734 { } movieClip 736 { } movieClip 744 { frame 36 { stop(); removeMovieClip(this._parent); } } movieClip 745 musuh13 { frame 1 { stop(); } } movieClip 777 { } movieClip 786 { frame 15 { _root.cekPanahDatar(this._parent); } frame 16 { _root.backPanah(); } } movieClip 797 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 799 musuh14 { frame 1 { stop(); } frame 3 { _root.backKuda(); } } movieClip 817 { } movieClip 826 { } movieClip 846 { } movieClip 849 { frame 15 { _root.backMedusa(); } frame 35 { _root.cekBerkurangBase(this._parent); } } movieClip 864 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 866 musuh15 { frame 1 { stop(); } } movieClip 869 { } movieClip 876 { } movieClip 880 { } movieClip 884 { } movieClip 888 { } movieClip 892 { } movieClip 896 { } movieClip 900 { } movieClip 904 { } movieClip 906 { } movieClip 916 { frame 10 { _root.backPhonix(); } frame 30 { _root.cekBolaApi(this._parent); } } movieClip 924 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 926 musuh16 { frame 1 { stop(); } } movieClip 944 { } movieClip 955 { frame 24 { _root.cekBerkurangBase(this._parent); } frame 26 { _root.backPedang(); } } movieClip 971 { frame 50 { stop(); removeMovieClip(this._parent); } } movieClip 972 musuh17 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 990 { } movieClip 999 { frame 15 { _root.cekPanahDatar(this._parent); } frame 16 { _root.backPanah(); } } movieClip 1012 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1014 musuh18 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1048 { } movieClip 1056 { frame 14 { _root.backSerang(); } frame 15 { _root.cekBerkurangBase(this._parent); } } movieClip 1067 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1068 musuh19 { frame 1 { stop(); } frame 3 { _root.backKuda(); } } movieClip 1074 { } movieClip 1080 { frame 9 { _root.cekPanahBanyak(this._parent); } frame 11 { _root.backPanahKecil(); } frame 13 { _root.backPanahKecil(); } frame 15 { _root.backPanahKecil(); } frame 17 { _root.backPanahKecil(); } frame 19 { _root.backPanahKecil(); } } movieClip 1111 { frame 33 { removeMovieClip(this); } } movieClip 1112 { frame 15 { stop(); removeMovieClip(this._parent); } } movieClip 1114 musuh20 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1132 { } movieClip 1143 { frame 21 { _root.backPedang(); } frame 22 { _root.cekBerkurangBase(this._parent); } } movieClip 1156 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1157 musuh21 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1174 { } movieClip 1182 { frame 17 { _root.cekPanahDatar(this._parent); } frame 18 { _root.backPanahBesar(); } } movieClip 1194 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1195 musuh22 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1212 { } movieClip 1220 { frame 16 { _root.backRifle2(); } frame 18 { _root.cekBerkurangBase(this._parent); } } movieClip 1231 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 1232 musuh23 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1240 { } movieClip 1247 { frame 7 { _root.backMachineGun(); } frame 7 { _root.cekBerkurangBase(this._parent); } frame 9 { _root.backMachineGun(); } frame 9 { _root.cekBerkurangBase(this._parent); } frame 11 { _root.backMachineGun(); } frame 11 { _root.cekBerkurangBase(this._parent); } } movieClip 1250 { frame 20 { stop(); removeMovieClip(this._parent); } } movieClip 1252 musuh24 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1271 { } movieClip 1284 { frame 25 { _root.backRifle(); } frame 25 { _root.cekBerkurangBase(this._parent); } frame 28 { _root.cekBerkurangBase(this._parent); } frame 31 { _root.cekBerkurangBase(this._parent); } frame 34 { _root.cekBerkurangBase(this._parent); } } movieClip 1295 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 1297 musuh25 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1314 { } movieClip 1339 { } movieClip 1345 { } movieClip 1346 { frame 28 { _root.backMortar(); } frame 31 { _root.cekRocket(this._parent); } } movieClip 1357 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1359 musuh26 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1370 { } movieClip 1377 { frame 22 { _root.cekPanahDatar2(this._parent); } frame 23 { _root.backRocket(); } } movieClip 1388 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 1390 musuh27 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1397 { } movieClip 1401 { } movieClip 1402 { frame 9 { _root.backKeluarBomb(); } frame 10 { _root.cekBomber(this._parent); } } movieClip 1405 { frame 15 { stop(); removeMovieClip(this._parent); } } movieClip 1407 musuh28 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1418 { } movieClip 1431 { } movieClip 1447 { frame 18 { _root.backSaber(); } frame 19 { _root.cekBerkurangBase(this._parent); } } movieClip 1463 { } movieClip 1471 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 1472 musuh29 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1488 { } movieClip 1495 { } movieClip 1504 { } movieClip 1518 { } movieClip 1549 { } movieClip 1550 { frame 18 { _root.cekBerkurangBase(this._parent); } frame 19 { _root.backGelombang(); } } movieClip 1561 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1562 musuh30 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1579 { } movieClip 1607 { frame 20 { _root.backLaser(); } frame 40 { _root.cekBerkurangBase(this._parent); } } movieClip 1618 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1619 musuh31 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1626 { } movieClip 1630 { } movieClip 1633 { } movieClip 1634 { frame 5 { _root.backMisil(); } frame 13 { _root.backLaser(); } frame 20 { _root.cekBerkurangBase(this._parent); } frame 25 { _root.cekBerkurangBase(this._parent); } } movieClip 1637 { frame 15 { stop(); removeMovieClip(this._parent); } } movieClip 1639 musuh32 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1643 { } movieClip 1645 lempar1 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1647 batuKecil { } movieClip 1649 batuBesar { } movieClip 1652 apiMagic { } movieClip 1655 lempar2 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1658 lempar3 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1661 lempar4 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1664 { } movieClip 1665 lempar5 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1670 { } movieClip 1671 { } movieClip 1672 lempar6 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1674 { } movieClip 1675 panah1 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1676 panah5 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1677 { } movieClip 1678 panah6 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1679 { } movieClip 1680 panah7 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1682 gun1 { frame 1 { stop(); } frame 2 { play(); } frame 5 { removeMovieClip(this); } } movieClip 1686 gun2 { frame 1 { stop(); } frame 2 { play(); } frame 5 { removeMovieClip(this); } } movieClip 1690 gun3 { frame 1 { stop(); } frame 2 { play(); } frame 8 { removeMovieClip(this); } } movieClip 1701 pusaran { } movieClip 1703 panahApi { frame 1 { stop(); } frame 30 { removeMovieClip(this); } } movieClip 1705 panahDatar { frame 1 { stop(); } frame 30 { removeMovieClip(this); } } movieClip 1707 panahBanyak { } movieClip 1710 bomb { } movieClip 1711 efekAsap { frame 19 { removeMovieClip(this); } } movieClip 1712 { } movieClip 1743 { frame 67 { stop(); } } movieClip 1744 efekApi { frame 15 { --this._parent.nyawa; this._parent.speedXJatuh = 0; this._parent.speedYJatuh = 2.5; } frame 25 { --this._parent.nyawa; this._parent.speedXJatuh = 0; this._parent.speedYJatuh = 2.5; } frame 35 { --this._parent.nyawa; this._parent.speedXJatuh = 0; this._parent.speedYJatuh = 2.5; removeMovieClip(this); } } movieClip 1767 { frame 30 { removeMovieClip(this); } } movieClip 1768 efekLedak { frame 30 { removeMovieClip(this); } } movieClip 1779 { frame 10 { removeMovieClip(this); } } movieClip 1780 efekKena { frame 10 { removeMovieClip(this); } } movieClip 1818 { frame 65 { removeMovieClip(this); } } movieClip 1819 efekRacun { frame 11 { --this._parent.nyawa; this._parent.speedXJatuh = 0; this._parent.speedYJatuh = 2.5; } frame 20 { --this._parent.nyawa; this._parent.speedXJatuh = 0; this._parent.speedYJatuh = 2.5; } frame 30 { --this._parent.nyawa; this._parent.speedXJatuh = 0; this._parent.speedYJatuh = 2.5; } frame 40 { --this._parent.nyawa; this._parent.speedXJatuh = 0; this._parent.speedYJatuh = 2.5; } frame 50 { --this._parent.nyawa; this._parent.speedXJatuh = 0; this._parent.speedYJatuh = 2.5; } frame 60 { --this._parent.nyawa; this._parent.speedXJatuh = 0; this._parent.speedYJatuh = 2.5; removeMovieClip(this); } } movieClip 1850 { frame 55 { stop(); } } movieClip 1851 efekPetir { frame 45 { removeMovieClip(this); } } movieClip 1872 { frame 16 { stop(); } } movieClip 1873 efekDarah { } movieClip 1880 { frame 1 { stop(); } } movieClip 1887 { frame 1 { stop(); } } movieClip 1894 { frame 1 { stop(); } } movieClip 1901 { frame 1 { stop(); } } movieClip 1908 { frame 1 { stop(); } } movieClip 1915 { frame 1 { stop(); } } movieClip 1922 { frame 1 { stop(); } } movieClip 1929 { frame 1 { stop(); } } movieClip 1930 base_mc { frame 1 { stop(); } } movieClip 1942 { } movieClip 1944 { } movieClip 1946 { } movieClip 1948 { } movieClip 1950 { } movieClip 1951 { frame 1 { stop(); } } movieClip 1970 { frame 17 { stop(); } frame 19 { play(); } frame 25 { _root.cekBatu(); } frame 32 { _parent.gotoAndStop(1); } } movieClip 1978 { frame 14 { stop(); } frame 15 { play(); } frame 17 { _root.cekBatu(); } frame 26 { _parent.gotoAndStop(1); } } movieClip 1986 { frame 14 { stop(); } frame 16 { play(); } frame 18 { _root.cekBatu(); } frame 30 { _parent.gotoAndStop(1); } } movieClip 2010 { frame 8 { stop(); } frame 10 { play(); } frame 11 { _root.cekBatu(); } frame 22 { _parent.gotoAndStop(1); } } movieClip 2025 { frame 15 { stop(); } frame 17 { play(); } frame 19 { _root.cekBatu(); } frame 27 { _parent.gotoAndStop(1); } } movieClip 2031 { frame 13 { stop(); } frame 15 { play(); } frame 17 { _root.cekBatu(); } frame 25 { _parent.gotoAndStop(1); } } movieClip 2044 { } movieClip 2053 { frame 23 { stop(); } } movieClip 2054 { frame 1 { stop(); } frame 3 { play(); } frame 6 { _root.cekPanah(); } frame 20 { gotoAndStop(1); } } movieClip 2067 { } movieClip 2071 { } movieClip 2072 { frame 1 { stop(); } frame 3 { play(); } frame 6 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2084 { } movieClip 2088 { } movieClip 2089 { frame 1 { stop(); } frame 3 { play(); } frame 6 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2092 { } movieClip 2095 { } movieClip 2096 { frame 1 { stop(); } frame 3 { play(); } frame 5 { _root.cekGun(); } frame 10 { if (_root.masihPress == true) { gotoAndStop('lanjut'); } else { gotoAndStop(1); } } } movieClip 2106 { } movieClip 2108 { } movieClip 2109 { frame 1 { stop(); } frame 3 { play(); } frame 8 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2112 { } movieClip 2114 { } movieClip 2115 { frame 1 { stop(); } frame 3 { play(); } frame 8 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2118 { } movieClip 2122 { } movieClip 2123 { frame 1 { stop(); } frame 3 { play(); } frame 16 { _root.cekGun2(); } frame 25 { gotoAndStop(1); } } movieClip 2128 { frame 9 { _root.cekBatu('special'); } frame 20 { _parent.gotoAndStop(1); } } movieClip 2132 { frame 9 { _root.cekBatu('special'); } frame 18 { _parent.gotoAndStop(1); } } movieClip 2136 { frame 9 { _root.cekBatu('special'); } frame 21 { _parent.gotoAndStop(1); } } movieClip 2154 { frame 40 { stop(); } } movieClip 2155 lakon_mc { frame 1 { stop(); _root.sedangTekan = false; } instance of movieClip 2128 { } instance of movieClip 2132 { } instance of movieClip 2136 { } } movieClip 2169 { frame 1 { stop(); } } // unknown tag 88 length 18 // unknown tag 88 length 11 movieClip 2175 { } movieClip 2178 { } movieClip 2179 { } movieClip 2188 { frame 1 { stop(); } } movieClip 2191 { } movieClip 2196 ui_mc { } movieClip 2198 lempar7 { frame 1 { stop(); } frame 2 { play(); } frame 15 { stop(); _root.cekMeledak(this, 3); removeMovieClip(this); } } movieClip 2200 lempar8 { frame 1 { stop(); } frame 2 { play(); } frame 7 { stop(); _root.cekMeledak(this, 4); removeMovieClip(this); } } movieClip 2202 lempar9 { frame 1 { stop(); } frame 2 { stop(); _root.cekMeledak(this, 5); removeMovieClip(this); } } movieClip 2221 { frame 31 { removeMovieClip(this); } } movieClip 2222 efekDahsyat { frame 30 { removeMovieClip(this); } } movieClip 2225 es_mc { } movieClip 2236 { } movieClip 2237 meteor_mc { } movieClip 2240 { } movieClip 2250 { } movieClip 2253 { } movieClip 2254 petir_mc { frame 28 { removeMovieClip(this); } } movieClip 2265 { frame 1 { stop(); } } movieClip 2270 { frame 1 { stop(); } } movieClip 2271 { frame 1 { stop(); } } movieClip 2277 { } movieClip 2280 { } movieClip 2281 { } movieClip 2284 { } button 2285 { on (release) { getURL('http://armorgames.com/', '_blank'); } } movieClip 2288 { } movieClip 2292 { } movieClip 2294 pause_mc { frame 1 { function cekSpeedQuality() { i = 1; while (i <= 3) { this['speed' + i].angka = i; this['quality' + i].angka = i; this['speed' + i].gotoAndStop(1); this['quality' + i].gotoAndStop(1); this['speed' + i].onRelease = klikSpeed; this['quality' + i].onRelease = klikQuality; this['speed' + i].onRollOver = function () { over(); }; this['quality' + i].onRollOver = function () { over(); }; ++i; } this['speed' + _root.speedGame].gotoAndStop(2); this['quality' + _root.qualityGame].gotoAndStop(2); } function klikSpeed() { klik(); indi = new String(this); _root.speedGame = Number(indi.substr(indi.length - 1, 1)); cekSpeedQuality(); } function klikQuality() { klik(); indi = new String(this); _root.qualityGame = Number(indi.substr(indi.length - 1, 1)); if (_root.qualityGame == 1) { _quality = 'HIGH'; } else { if (_root.qualityGame == 2) { _quality = 'MEDIUM'; } else { if (_root.qualityGame == 3) { _quality = 'LOW'; } } } cekSpeedQuality(); } stop(); bar1_mc.bar_mc._x = Math.ceil(_root.volume1 / 0.4347826086956522 - 115); bar1_mc.bar_mc.onEnterFrame = function () { _root.volume1 = int(0.4347826086956522 * (this._x + 115)); _root.myMusic.setVolume(_root.volume1); bar1_mc.persen1 = _root.volume1 + ' %'; }; bar1_mc.indi_mc.onPress = function () { klik(); startDrag(bar1_mc.bar_mc, true, -115, 0, 115, 0); }; bar1_mc.indi_mc.onReleaseOutside = function () { over(); stopDrag(); }; bar1_mc.indi_mc.onRelease = bar1_mc.indi_mc.onReleaseOutside; bar2_mc.bar_mc._x = Math.ceil(_root.volume2 / 0.4347826086956522 - 115); bar2_mc.bar_mc.onEnterFrame = function () { _root.volume2 = int(0.4347826086956522 * (this._x + 115)); _root.volum3 = int(0.4347826086956522 * (this._x + 115)); _root.mySound.setVolume(_root.volume2); _root.mySound2.setVolume(_root.volum3); bar2_mc.persen2 = _root.volume2 + ' %'; }; bar2_mc.indi_mc.onPress = function () { klik(); backGunx(); sudahLepas = false; startDrag(bar2_mc.bar_mc, true, -115, 0, 115, 0); }; bar2_mc.indi_mc.onReleaseOutside = function () { over(); sudahLepas = true; stopDrag(); }; bar2_mc.indi_mc.onRelease = bar2_mc.indi_mc.onReleaseOutside; cekSpeedQuality(); } } movieClip 2297 ketapel_mc { frame 1 { stop(); } frame 2 { removeMovieClip(this); } } movieClip 2300 hujanPanah_mc { } movieClip 2310 { } movieClip 2311 puyuh_mc { } movieClip 2314 { } movieClip 2315 laser_mc { frame 30 { removeMovieClip(this); } } movieClip 2318 bom_mc { } movieClip 2324 { } movieClip 2327 { } movieClip 2337 { } movieClip 2339 { } movieClip 2341 { } movieClip 2343 { } movieClip 2351 { } movieClip 2353 { } movieClip 2354 { } movieClip 2357 { } movieClip 2360 { } movieClip 2363 { } movieClip 2366 { } movieClip 2380 { } movieClip 2385 { frame 1 { play(); } frame 9 { this._parent.kena = true; } frame 13 { this._parent.kena = false; } frame 50 { this._parent.gotoAndStop(1); } } movieClip 2386 creature1 { frame 1 { stop(); this.kena = false; this.jalan = true; } frame 2 { this.jalan = false; } } movieClip 2389 { } movieClip 2392 { } movieClip 2395 { } movieClip 2406 { } movieClip 2410 { } movieClip 2414 { } movieClip 2416 { } movieClip 2417 { } movieClip 2418 { } movieClip 2421 { } movieClip 2423 { } movieClip 2425 { } movieClip 2427 { } movieClip 2433 { frame 1 { play(); } frame 35 { this._parent.kena = true; } frame 40 { this._parent.kena = false; } frame 50 { this._parent.gotoAndStop(1); } } movieClip 2434 creature2 { frame 1 { stop(); this.kena = false; this.jalan = true; } frame 2 { this.jalan = false; } } movieClip 2453 { } movieClip 2462 { frame 1 { play(); } frame 25 { _root.cekBadai(); } frame 79 { _root.cekBadai(); } frame 139 { _root.cekBadai(); } frame 160 { this._parent.sudahSelesai = true; this._parent._xscale = -100; this._parent.gotoAndStop(1); } } movieClip 2463 creature3 { frame 1 { stop(); this.kena = false; this.jalan = true; } frame 2 { this.jalan = false; } } movieClip 2469 badai_mc { } movieClip 2472 { } movieClip 2475 { } movieClip 2478 { } movieClip 2483 { } movieClip 2486 { } movieClip 2489 { } movieClip 2500 { } movieClip 2508 { } movieClip 2509 creature4 { frame 1 { stop(); } } movieClip 2529 { } movieClip 2544 { frame 1 { play(); } frame 30 { this._parent.kena = true; } frame 32 { this._parent.kena = false; } frame 50 { this._parent.kena = true; } frame 52 { this._parent.kena = false; } frame 64 { this._parent.gotoAndStop(1); } } movieClip 2545 creature5 { frame 1 { stop(); this.kena = false; this.jalan = true; } frame 2 { this.jalan = false; } } movieClip 2551 { } movieClip 2552 { frame 1 { _root.munculBomber(this._parent); } frame 5 { _root.munculBomber(this._parent); } frame 10 { _root.munculBomber(this._parent); } frame 15 { _root.munculBomber(this._parent); } frame 20 { _root.munculBomber(this._parent); } } movieClip 2553 creature6 { frame 1 { stop(); this.kena = false; this.jalan = true; } } movieClip 2572 { } movieClip 2583 { } movieClip 2596 creature7 { } movieClip 2603 { } movieClip 2608 { } movieClip 2656 { } movieClip 2657 { } movieClip 2658 { frame 150 { _parent.gotoAndStop(3); } } movieClip 2673 { } movieClip 2677 { frame 29 { _root.cekBadai2(); } frame 50 { _root.cekBadai2(); } frame 70 { _root.cekBadai2(); } frame 90 { _root.cekBadai2(); } frame 110 { _root.cekBadai2(); } frame 130 { _root.cekBadai2(); } frame 150 { _root.cekBadai2(); } frame 181 { _parent.sudahSelesai = true; } } movieClip 2678 creature8 { frame 1 { stop(); this.kena = false; this.jalan = true; } frame 2 { this.jalan = false; } } movieClip 2681 { } movieClip 2684 { } movieClip 2687 { } movieClip 2690 { } movieClip 2693 { } movieClip 2706 { } movieClip 2710 { } movieClip 2716 { } movieClip 2719 { } movieClip 2722 { } movieClip 2725 { } movieClip 2728 { } movieClip 2752 { } movieClip 2760 { frame 30 { _root.cekBerkurangBase(this._parent); } } movieClip 2772 { } movieClip 2780 { } movieClip 2788 { } movieClip 2805 { } movieClip 2807 { frame 35 { _root.cekBerkurangBase(this._parent); } frame 40 { _root.cekBerkurangBase(this._parent); } frame 45 { _root.cekBerkurangBase(this._parent); } frame 50 { _root.cekBerkurangBase(this._parent); } } movieClip 2823 { frame 49 { _root.cekBerkurangBase(this._parent); } } movieClip 2854 { } movieClip 2865 { } movieClip 2868 { } movieClip 2880 { frame 43 { _root.cekBerkurangBase(this._parent); } } movieClip 2881 bigboss_mc { frame 1 { stop(); } } movieClip 2884 { } movieClip 2887 { } movieClip 2890 { } movieClip 2893 { } movieClip 2907 { } movieClip 2911 { } movieClip 2926 { frame 50 { stop(); } } movieClip 2934 { frame 25 { _root.cekBerkurangBase(this._parent); } frame 26 { _root.backPukul(); } } movieClip 2935 boss1 { frame 1 { stop(); } } movieClip 2938 { } movieClip 2941 { } movieClip 2944 { } movieClip 2947 { } movieClip 2950 { } movieClip 2957 { } movieClip 2985 { } movieClip 2993 { frame 31 { stop(); } } movieClip 3000 { frame 42 { _root.cekBolaApi(this._parent); } } movieClip 3001 boss2 { frame 1 { stop(); } } movieClip 3007 { } movieClip 3010 { } movieClip 3031 { } movieClip 3044 { } movieClip 3056 { } movieClip 3057 { frame 1 { stop(); } } movieClip 3058 { frame 1 { stop(); } } movieClip 3081 { frame 40 { stop(); } } movieClip 3104 { frame 30 { stop(); } } movieClip 3123 { frame 29 { stop(); } } movieClip 3124 { frame 1 { stop(); } } movieClip 3142 { frame 20 { _root.cekBerkurangBase(this._parent._parent); } } movieClip 3154 { frame 20 { _root.cekBerkurangBase(this._parent._parent); } } movieClip 3162 { frame 20 { _root.cekBerkurangBase(this._parent._parent); } } movieClip 3163 { frame 1 { stop(); } } movieClip 3164 boss3 { frame 1 { stop(); } } frame 10 { stop(); play_btn.onRelease = function () { _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 == 'armorgames.com') { play_btn.enabled = false; gotoAndStop(16); } else { play_btn.enabled = false; getURL('http://www.belugerinstudios.com/', '_self'); } }; } movieClip 3215 { frame 1 { stop(); } } frame 16 { play(); } movieClip 3220 { } button 3225 { on (press) { getURL('http://armorgames.com', '_blank'); } } movieClip 3228 { frame 1 { gotoAndPlay(2); } frame 218 { stop(); } } movieClip 3229 { } instance of movieClip 3229 { onClipEvent (release) { getURL('http://armorgames.com/', '_blank'); } } frame 235 { gotoAndStop(236); } frame 236 { play(); } movieClip 3257 { } movieClip 3265 { } movieClip 3277 { frame 175 { stop(); } } movieClip 3284 { } movieClip 3288 { frame 175 { stop(); } } // unknown tag 88 length 197 movieClip 3296 { } movieClip 3297 { frame 1 { this.onPress = function () { getURL('http://www.belugerinstudios.com', '_blank'); }; } frame 185 { stop(); } } movieClip 3299 { } frame 420 { stop(); backMenu(); gotoAndStop(421); } frame 421 { function cekMedalDapat() { if (pilihLevel >= 40) { _root.lockMedal8 = true; } else { if (pilihLevel >= 35) { _root.lockMedal7 = true; } else { if (pilihLevel >= 30) { _root.lockMedal6 = true; } else { if (pilihLevel >= 25) { _root.lockMedal5 = true; } else { if (pilihLevel >= 20) { _root.lockMedal4 = true; } else { if (pilihLevel >= 15) { _root.lockMedal3 = true; } else { if (pilihLevel >= 10) { _root.lockMedal2 = true; } else { if (pilihLevel >= 5) { _root.lockMedal1 = true; } } } } } } } } if (gembokBaseKini >= 8) { _root.lockMedal9 = true; } if (gembokThrowKini >= 6) { _root.lockMedal10 = true; } if (gembokArrowKini >= 7) { _root.lockMedal11 = true; } if (gembokGunKini >= 7) { _root.lockMedal12 = true; } if (gembokSpecialKini >= 4) { _root.lockMedal13 = true; } if (gembokDamageKini >= 5) { _root.lockMedal14 = true; } if (baseEndurance >= 10) { _root.lockMedal15 = true; } if (baseDefense >= 10) { _root.lockMedal16 = true; } if (basePerfect >= 8) { _root.lockMedal20 = true; } else { if (basePerfect >= 6) { _root.lockMedal19 = true; } else { if (basePerfect >= 4) { _root.lockMedal18 = true; } else { if (basePerfect >= 2) { _root.lockMedal17 = true; } } } } if (useStone >= 30) { _root.lockMedal21 = true; } if (useSpiked >= 30) { _root.lockMedal22 = true; } if (useArrow >= 30) { _root.lockMedal23 = true; } if (useLightingArrow >= 30) { _root.lockMedal24 = true; } if (useSniper >= 30) { _root.lockMedal25 = true; } if (useLaserGun >= 30) { _root.lockMedal26 = true; } if (kill2 == true) { _root.lockMedal27 = true; } if (kill7 == true) { _root.lockMedal28 = true; } if (kill12 == true) { _root.lockMedal29 = true; } if (kill15 == true) { _root.lockMedal30 = true; } if (kill20 == true) { _root.lockMedal31 = true; } if (kill25 == true) { _root.lockMedal32 = true; } if (kill28 == true) { _root.lockMedal33 = true; } if (kill32 == true) { _root.lockMedal34 = true; } simpanMedal(); } stop(); petunjuk_mc._visible = false; new_btn.onRelease = function () { if (pilihLevel >= 2) { petunjuk_mc._visible = true; petunjuk_mc.gotoAndStop(1); petunjuk_mc.yes_btn.onRelease = function () { initData(); simpanData(); asalMana = 'new'; gotoAndStop(423); }; petunjuk_mc.no_btn.onRelease = function () { petunjuk_mc._visible = false; }; } else { initData(); simpanData(); asalMana = 'new'; gotoAndStop(423); } }; continue_btn.onRelease = function () { if (pilihLevel >= 2) { loadData(); backMusic(); gotoAndStop(432); } else { petunjuk_mc._visible = true; petunjuk_mc.gotoAndStop(2); petunjuk_mc.oke_btn.onRelease = function () { petunjuk_mc._visible = false; }; } }; option_btn.onRelease = function () { gotoAndStop(422); }; credits_btn.onRelease = function () { gotoAndStop(429); }; instructions_btn.onRelease = function () { asalMana = 'instruction'; gotoAndStop(423); }; achievements_btn.onRelease = function () { gotoAndStop(430); }; more_btn.onRelease = function () { getURL('http://armorgames.com/', '_blank'); }; follow_btn.onRelease = function () { getURL('http://twitter.com/armorgames', '_blank'); }; follow_btn.onRelease = function () { getURL('http://twitter.com/armorgames', '_blank'); }; facebook_btn.onRelease = function () { getURL('http://www.facebook.com/pages/Armor-Games/19522089061', '_blank'); }; age_btn.onRelease = function () { getURL('http://armorgames.com/play/6987/age-of-defense', '_blank'); }; } movieClip 3306 { } movieClip 3310 { } movieClip 3314 { } movieClip 3318 { } movieClip 3322 { } movieClip 3326 { } movieClip 3330 { } movieClip 3334 { } movieClip 3338 { } movieClip 3342 { } instance of movieClip 102 { onClipEvent (release) { getURL('http://armorgames.com/', '_blank'); } } movieClip 3350 { } movieClip 3354 { } movieClip 3360 { } movieClip 3362 { frame 1 { stop(); } } frame 422 { function cekSpeedQuality() { i = 1; while (i <= 3) { this['speed' + i].angka = i; this['quality' + i].angka = i; this['speed' + i].gotoAndStop(1); this['quality' + i].gotoAndStop(1); this['speed' + i].onRelease = klikSpeed; this['quality' + i].onRelease = klikQuality; this['speed' + i].onRollOver = function () { over(); }; this['quality' + i].onRollOver = function () { over(); }; ++i; } this['speed' + _root.speedGame].gotoAndStop(2); this['quality' + _root.qualityGame].gotoAndStop(2); } function klikSpeed() { klik(); indi = new String(this); _root.speedGame = Number(indi.substr(indi.length - 1, 1)); cekSpeedQuality(); } function klikQuality() { klik(); indi = new String(this); _root.qualityGame = Number(indi.substr(indi.length - 1, 1)); if (_root.qualityGame == 1) { _quality = 'HIGH'; } else { if (_root.qualityGame == 2) { _quality = 'MEDIUM'; } else { if (_root.qualityGame == 3) { _quality = 'LOW'; } } } cekSpeedQuality(); } stop(); petunjuk_mc2._visible = false; back_btn.onRelease = function () { gotoAndStop(421); }; clear_btn.onRelease = function () { petunjuk_mc2._visible = true; petunjuk_mc2.yes_btn.onRelease = function () { initData(); initMedal(); simpanData(); simpanMedal(); gotoAndStop(421); }; petunjuk_mc2.no_btn.onRelease = function () { petunjuk_mc2._visible = false; }; }; bar1_mc.bar_mc._x = Math.ceil(_root.volume1 / 0.4347826086956522 - 115); bar1_mc.bar_mc.onEnterFrame = function () { _root.volume1 = int(0.4347826086956522 * (this._x + 115)); _root.myMusic.setVolume(_root.volume1); bar1_mc.persen1 = _root.volume1 + ' %'; }; bar1_mc.indi_mc.onPress = function () { klik(); startDrag(bar1_mc.bar_mc, true, -115, 0, 115, 0); }; bar1_mc.indi_mc.onReleaseOutside = function () { over(); stopDrag(); }; bar1_mc.indi_mc.onRelease = bar1_mc.indi_mc.onReleaseOutside; bar2_mc.bar_mc._x = Math.ceil(_root.volume2 / 0.4347826086956522 - 115); bar2_mc.bar_mc.onEnterFrame = function () { _root.volume2 = int(0.4347826086956522 * (this._x + 115)); _root.volum3 = int(0.4347826086956522 * (this._x + 115)); _root.mySound.setVolume(_root.volume2); _root.mySound2.setVolume(_root.volum3); bar2_mc.persen2 = _root.volume2 + ' %'; }; bar2_mc.indi_mc.onPress = function () { klik(); backGunx(); sudahLepas = false; startDrag(bar2_mc.bar_mc, true, -115, 0, 115, 0); }; bar2_mc.indi_mc.onReleaseOutside = function () { over(); sudahLepas = true; stopDrag(); }; bar2_mc.indi_mc.onRelease = bar2_mc.indi_mc.onReleaseOutside; cekSpeedQuality(); } movieClip 3365 { } movieClip 3369 { } movieClip 3379 { } frame 423 { stop(); back_btn.onRelease = function () { gotoAndStop(421); }; prev_btn.onRelease = function () { gotoAndStop(421); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 3385 { } movieClip 3389 { } frame 424 { stop(); back_btn.onRelease = function () { gotoAndStop(421); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 3399 { frame 20 { stop(); } } movieClip 3407 { } frame 425 { stop(); back_btn.onRelease = function () { gotoAndStop(421); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 3409 { } movieClip 3415 { } movieClip 3416 { } frame 426 { stop(); back_btn.onRelease = function () { gotoAndStop(421); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 3419 { } frame 427 { stop(); back_btn.onRelease = function () { gotoAndStop(421); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { // An attempt to read a value from empty stack }; } movieClip 3427 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 3430 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 3434 { } movieClip 3437 { } movieClip 3439 { } movieClip 3445 { frame 1 { stop(); } } movieClip 3448 { frame 1 { stop(); } } movieClip 3451 { frame 1 { stop(); } } movieClip 3454 { frame 1 { stop(); } } movieClip 3457 { frame 1 { stop(); } } movieClip 3460 { frame 1 { stop(); } } movieClip 3463 { frame 1 { stop(); } } movieClip 3466 { frame 1 { stop(); } } movieClip 3472 { } movieClip 3473 { frame 1 { stop(); } } movieClip 3475 { } movieClip 3476 { frame 1 { stop(); } } movieClip 3479 { frame 1 { stop(); } } movieClip 3481 { frame 1 { stop(); } } movieClip 3483 { frame 1 { stop(); } } movieClip 3485 { frame 1 { stop(); } } frame 428 { stop(); back_btn.onRelease = function () { gotoAndStop(421); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; yes_btn.onRelease = function () { backMusic(); gotoAndStop(431); }; no_btn.onRelease = function () { gotoAndStop(421); }; } frame 429 { stop(); back_btn.onRelease = function () { gotoAndStop(421); }; } movieClip 3517 { } instance of movieClip 3517 { onClipEvent (release) { getURL('http://waterflame.newgrounds.com/', '_blank'); } } movieClip 3520 { } instance of movieClip 3520 { onClipEvent (release) { getURL('http://awakendreams.weebly.com/', '_blank'); } } movieClip 3523 { } instance of movieClip 3523 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 3526 { } instance of movieClip 3526 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 3529 { } instance of movieClip 3529 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 3532 { } instance of movieClip 3532 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } frame 430 { function overMedal() { frame_mc._visible = true; myStr = new String(this); if (myStr.length == 14) { indi = myStr.substr(myStr.length - 1, 1); } else { indi = myStr.substr(myStr.length - 2, 2); } if (indi >= 21) { if (_root['lockMedal' + indi] == false || _root['lockMedal' + indi] == undefined) { frame_mc.penjelasan = 'Secret Achievement'; } else { frame_mc.penjelasan = namaMedal[indi]; } } else { frame_mc.penjelasan = namaMedal[indi]; } if (_root['lockMedal' + indi] == false || _root['lockMedal' + indi] == undefined) { frame_mc.zunlock = 'Achievement Locked'; } else { frame_mc.zunlock = 'Achievement Unlocked'; } } function outMedal() { frame_mc._visible = false; } function enterGembokBase() { frame_mc._x = _root._xmouse; if (_root._ymouse >= 350) { frame_mc._y = _root._ymouse - 150; } else { frame_mc._y = _root._ymouse; } frame_mc.gotoAndStop(4); } stop(); back_btn.onRelease = function () { gotoAndStop(421); }; namaMedal = new Array('', 'Win 5 levels', 'Win 10 levels', 'Win 15 levels', 'Win 20 levels', 'Win 25 levels', 'Win 30 levels', 'Win 35 levels', 'Win 40 levels', 'Upgrade Base Robotic', 'Upgrade Lightning Spear', 'Upgrade Lightning Arrow', 'Upgrade Laser Gun', 'Upgrade Bomb', 'Upgrade Light Effect', 'Upgrade Base Endurance to level 10', 'Upgrade Base Shield to level 10', 'two time base perfect', 'four times base perfect', 'six times base perfect', 'eight times base perfect', 'Use Big Stone 30 times sequence', 'Use Spiked Ball 30 times sequence', 'Use Single Arrow 30 times sequence', 'Use Lightning Arrow 30 times sequence', 'Use Sniper 30 times sequence', 'Use Laser Gun 30 times sequence', 'Kill Clubswinger first time', 'Kill Wizard first time', 'Kill Birdman first time', 'Kill Medusa first time', 'Kill Balloon first time', 'Kill Rifleman first time', 'Kill Bomber Jet first time', 'Kill Robot Gun first time'); frame_mc._visible = false; frame_mc.gotoAndStop(4); frame_mc.onEnterFrame = enterGembokBase; i = 1; while (i <= 34) { _root['medal' + i].onRollOver = overMedal; _root['medal' + i].onRollOut = outMedal; if (_root['lockMedal' + i] == false || _root['lockMedal' + i] == undefined) { _root['gembokMedal' + i]._visible = true; } else { _root['gembokMedal' + i]._visible = false; } ++i; } } movieClip 3537 { } movieClip 3540 { } movieClip 3543 { } movieClip 3546 { } movieClip 3549 { } movieClip 3552 { } movieClip 3555 { } movieClip 3558 { } movieClip 3560 { } movieClip 3563 { } movieClip 3566 { } movieClip 3569 { } movieClip 3572 { } movieClip 3575 { } movieClip 3578 { } movieClip 3581 { } movieClip 3584 { } movieClip 3587 { } movieClip 3590 { } movieClip 3593 { } movieClip 3596 { } movieClip 3599 { } movieClip 3602 { } movieClip 3605 { } movieClip 3608 { } movieClip 3611 { } movieClip 3614 { } movieClip 3617 { } movieClip 3620 { } movieClip 3623 { } movieClip 3626 { } movieClip 3629 { } movieClip 3632 { } movieClip 3635 { } movieClip 3652 { frame 1 { stop(); } } frame 431 { function cekUse() { if (jenisSenjata == 'throw') { if (xgembokThrowKini == 1) { ++useStone; } else { if (xgembokThrowKini == 3) { ++useSpiked; } } } else { if (jenisSenjata == 'arrow') { if (xgembokArrowKini == 2) { ++useArrow; } else { if (xgembokArrowKini == 7) { ++useLightingArrow; } } } else { if (jenisSenjata == 'gun') { if (xgembokGunKini == 5) { ++useSniper; } else { if (xgembokGunKini == 7) { ++useLaserGun; } } } } } } function munculSpell1() { if (pilihLevel <= 5) { indi = 1; } else { if (pilihLevel <= 10) { indi = 2; } else { if (pilihLevel <= 15) { indi = 3; } else { if (pilihLevel <= 20) { indi = 4; } else { if (pilihLevel <= 25) { indi = 5; } else { if (pilihLevel <= 30) { indi = 6; } else { if (pilihLevel <= 35) { indi = 7; } else { if (pilihLevel <= 40) { indi = 8; } } } } } } } } if (indi == 1) { munculMeteor(); } else { if (indi == 2) { munculPuyuh(); } else { if (indi == 3) { munculEs(); } else { if (indi == 4) { munculPetir(); } else { if (indi == 5) { munculKetapel(); } else { if (indi == 6) { munculPanah(); } else { if (indi == 7) { munculBomb(); } else { if (indi == 8) { munculLaser(); } } } } } } } } } function munculSpell2() { if (pilihLevel <= 5) { indi = 1; } else { if (pilihLevel <= 10) { indi = 2; } else { if (pilihLevel <= 15) { indi = 3; } else { if (pilihLevel <= 20) { indi = 4; } else { if (pilihLevel <= 25) { indi = 5; } else { if (pilihLevel <= 30) { indi = 6; } else { if (pilihLevel <= 35) { indi = 7; } else { if (pilihLevel <= 40) { indi = 8; } } } } } } } } if (indi == 1) { munculDino(); } else { if (indi == 2) { munculNaga(); } else { if (indi == 3) { munculGua(); } else { if (indi == 4) { munculTroya(); } else { if (indi == 5) { munculMars(); } else { if (indi == 6) { munculPesawat(); } else { if (indi == 7) { munculSpider(); } else { if (indi == 8) { munculTransformer(); } } } } } } } } } function munculDino() { creature = attachMovie('creature1', 'creature' + dalamCreature, dalamCreature); creature._x = 900 + random(100); creature._y = 450; spell._yscale = 100; creature._xscale = 100; creature.jenis = 1; creature.speed = 4; creature.damage = 0.5; creature.jalan = true; creature.tipePeluru = 'dino'; creature.onEnterFrame = enterDino; ++dalamCreature; } function munculNaga() { creature = attachMovie('creature2', 'creature' + dalamCreature, dalamCreature); creature._x = 900 + random(100); creature._y = 150; spell._yscale = 100; creature._xscale = 100; creature.jenis = 1; creature.speed = 1; creature.damage = 0.5; creature.jalan = true; creature.tipePeluru = 'dino'; creature.onEnterFrame = enterDino; ++dalamCreature; } function munculGua() { creature = attachMovie('creature3', 'creature' + dalamCreature, dalamCreature); creature._x = 900 + random(100); creature._y = 465; spell._yscale = 100; creature._xscale = 100; creature.jenis = 1; creature.speed = 2; creature.damage = 0.5; creature.jalan = true; creature.tipePeluru = 'dino'; creature.onEnterFrame = enterGua; ++dalamCreature; } function munculTroya() { creature = attachMovie('creature4', 'creature' + dalamCreature, dalamCreature); creature._x = 900 + random(100); creature._y = 465; spell._yscale = 100; creature._xscale = 100; creature.jenis = 4; creature.speed = 12; creature.damage = 0.25; creature.jalan = true; creature.kena = true; creature.tipePeluru = 'dino'; creature.onEnterFrame = enterDino; ++dalamCreature; } function munculMars() { creature = attachMovie('creature5', 'creature' + dalamCreature, dalamCreature); creature._x = 900 + random(100); creature._y = 445; spell._yscale = 100; creature._xscale = 100; creature.jenis = 1; creature.speed = 3; creature.damage = 1; creature.jalan = true; creature.tipePeluru = 'dino'; creature.onEnterFrame = enterDino; ++dalamCreature; } function munculPesawat() { creature = attachMovie('creature6', 'creature' + dalamCreature, dalamCreature); creature._x = 800 + random(100); creature._y = 100; creature._yscale = 50; creature._xscale = 50; creature.jenis = 4; creature.speed = 1; creature.damage = 2; creature.jalan = true; creature.kena = true; creature.tipePeluru = 'dino'; creature.onEnterFrame = enterDino2; ++dalamCreature; } function munculSpider() { creature = attachMovie('creature7', 'creature' + dalamCreature, dalamCreature); creature._x = 900 + random(100); creature._y = 445; spell._yscale = 100; creature._xscale = 100; creature.jenis = 4; creature.speed = 12; creature.damage = 0.25; creature.jalan = true; creature.kena = true; creature.tipePeluru = 'dino'; creature.onEnterFrame = enterDino3; ++dalamCreature; } function munculTransformer() { creature = attachMovie('creature8', 'creature' + dalamCreature, dalamCreature); creature._x = 900 + random(100); creature._y = 465; spell._yscale = 100; creature._xscale = 100; creature.jenis = 1; creature.speed = 4; creature.damage = 0.5; creature.jalan = true; creature.tipePeluru = 'dino'; creature.onEnterFrame = enterGua2; ++dalamCreature; } function enterGua() { if (this.sudahSelesai == true) { this._x += this.speed; if (this._x >= 1100) { removeMovieClip(this); } } else { if (this._x >= 750) { this._x -= this.speed; } else { if (this._currentframe == 1) { this.gotoAndStop(2); } } } } function enterGua2() { if (this.sudahSelesai == true) { this._x += this.speed; if (this._x >= 1100) { removeMovieClip(this); } } else { if (this._x >= 800) { this._x -= this.speed; } else { if (this._currentframe == 1) { this.gotoAndStop(2); } } } } function cekBadai() { spell = attachMovie('badai_mc', 'spell' + dalamSpell, dalamSpell); spell._x = 400; spell._y = 300; spell._yscale = 100; spell._xscale = 100; spell.xspeed = 2; spell.damage = 0.5; spell.tipePeluru = 'puyuh'; spell.onEnterFrame = enterPuyuh; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } } function cekBadai2() { spell = attachMovie('badai_mc', 'spell' + dalamSpell, dalamSpell); spell._x = 400; xrand = random(3); if (xrand == 0) { spell._y = 100; } else { spell._y = 350; } spell._yscale = 100; spell._xscale = 100; spell.xspeed = 2; spell._visible = false; spell.damage = 2; spell.tipePeluru = 'puyuh'; spell.onEnterFrame = enterPuyuh; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } } function enterDino() { if (this.jalan == true) { this._x -= this.speed; } if (this._x <= -200) { removeMovieClip(this); } } function enterDino3() { if (this._x < -400) { this._x = -400; this._y = 200; this._xscale = -100; this.speed = -this.speed; } if (this.jalan == true) { this._x -= this.speed; } if (this._x >= 1300) { removeMovieClip(this); } } function enterDino2() { if (this.jalan == true) { this._x -= this.speed; this.speed += 0.1; } if (this._x <= -200) { removeMovieClip(this); } } function munculBomber(indi) { bykBomb = 1; i = 1; while (i <= bykBomb) { spell = attachMovie('bom_mc', 'spell' + dalamSpell, dalamSpell); spell._x = indi._x; spell._y = indi._y + 25; spell.speedY = 0.25; spell.damage = 10; spell._yscale = 50; spell._xscale = 50; spell.tipePeluru = 'laser'; spell.onEnterFrame = enterBomb2; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } ++i; } } function munculMeteor() { bykMeteor = random(4) + 3; i = 1; while (i <= bykMeteor) { spell = attachMovie('meteor_mc', 'spell' + dalamSpell, dalamSpell); spell._x = 850 + random(300); spell._y = -100 - random(200); spell._yscale = 50; spell._xscale = 50; spell.xspeed = random(2) + 1; spell.yspeed = spell.xspeed; spell.damage = 2; spell.tipePeluru = 'meteor'; spell.onEnterFrame = enterMeteor; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } ++i; } } function munculPuyuh() { spell = attachMovie('puyuh_mc', 'spell' + dalamSpell, dalamSpell); spell._x = 900; spell._y = 500; spell._yscale = 100; spell._xscale = 100; spell.xspeed = 2; spell.damage = 2; spell.tipePeluru = 'puyuh'; spell.onEnterFrame = enterPuyuh; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } spell = attachMovie('puyuh_mc', 'spell' + dalamSpell, dalamSpell); spell._x = 1300; spell._y = 500; spell._yscale = 100; spell._xscale = 100; spell.xspeed = 2; spell.damage = 1; spell.tipePeluru = 'puyuh'; spell.onEnterFrame = enterPuyuh; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } } function enterPuyuh() { this._x -= this.xspeed; this.xspeed += 0.25; if (this._x <= -100) { removeMovieClip(this); } } function enterMeteor() { if (sedangPause == false) { this._x -= this.xspeed; this._y += this.yspeed; this.xspeed += 0.2; this.yspeed += 0.2; if (this._y >= 475) { this._y = 500; cekEfek(2, this, 'khusus'); cekEfek(3, this, 'khusus'); removeMovieClip(this); } } } function munculEs() { bykEs = random(12) + 24; i = 1; while (i <= bykEs) { spell = attachMovie('es_mc', 'spell' + dalamSpell, dalamSpell); spell._x = random(576) + 25; spell._y = -100 - random(800); spell._yscale = 50; spell._xscale = 50; spell.yspeed = random(3) + 2; spell.damage = 4; spell.tipePeluru = 'es'; spell.onEnterFrame = enterEs; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } ++i; } } function enterEs() { if (sedangPause == false) { this._y += this.yspeed; this.yspeed += 0.2; if (this._y >= 475) { this._y = 500; cekEfek(4, this, 'khusus'); removeMovieClip(this); } } } function enterEs2() { if (sedangPause == false) { this._y += this.yspeed; this.yspeed += 0.2; if (this._y >= 550) { this._y = 550; cekEfek(4, this, 'khusus'); cekEfek(5, this, 'khusus'); removeMovieClip(this); } } } function cekPause() { if (sedangPause == false) { sedangPause = true; pause_mc = attachMovie('pause_mc', 'pause_mc', 929); pause_mc._x = 400; pause_mc._y = 250; pause_mc.quit_btn.onRelease = function () { sedangPause = false; removeMovieClip(pause_mc); }; pause_mc.exit_btn.onRelease = function () { clearSemua(); cekMedalDapat(); simpanData(); gotoAndStop(421); }; } } function munculPetir() { spell = attachMovie('petir_mc', 'spell' + dalamSpell, dalamSpell); spell._x = 200; spell._y = 0; spell._yscale = 100; spell._xscale = 100; spell.damage = 3; spell.tipePeluru = 'petir'; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } spell = attachMovie('petir_mc', 'spell' + dalamSpell, dalamSpell); spell._x = 200; spell._y = 0; spell._yscale = 100; spell._xscale = 100; spell.damage = 3; spell.tipePeluru = 'petir'; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } spell = attachMovie('petir_mc', 'spell' + dalamSpell, dalamSpell); spell._x = 200; spell._y = 0; spell._yscale = 100; spell._xscale = 100; spell.damage = 3; spell.tipePeluru = 'petir'; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } } function munculKetapel() { bykKetapel = random(2) + 4; i = 1; while (i <= bykKetapel) { spell = attachMovie('ketapel_mc', 'spell' + dalamSpell, dalamSpell); spell._x = 800 + random(150); spell._y = 200 + random(200); spell.speedX = 10 + random(10); spell.speedY = 20 + random(10); spell.rotasi = 2; spell.damage = 6; spell.spell = true; spell.tipePeluru = 'batu'; spell.onEnterFrame = enterBatu; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } ++i; } } function munculPanah() { bykPanah = 10; i = 1; while (i <= bykPanah) { spell = attachMovie('hujanPanah_mc', 'spell' + dalamSpell, dalamSpell); spell._x = i * 60; spell._y = -100; spell._yscale = 50; spell._xscale = 50; spell.yspeed = 2; spell.damage = 7; spell.tipePeluru = 'batu'; spell.onEnterFrame = enterEs; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } ++i; } } function munculBomb() { bykBomb = 20; i = 1; while (i <= bykBomb) { spell = attachMovie('bom_mc', 'spell' + dalamSpell, dalamSpell); spell._x = i * 30; spell._y = -100 - random(200); spell.yspeed = 2; spell.damage = 8; spell.tipePeluru = 'laser'; spell.onEnterFrame = enterEs2; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } ++i; } } function munculLaser() { bykLaser = random(4) + 6; i = 1; while (i <= bykLaser) { spell = attachMovie('laser_mc', 'spell' + dalamSpell, dalamSpell); spell._x = random(576) + 25; spell._y = 500; spell.damage = 9; spell._yscale = 100; spell._xscale = 100; spell.tipePeluru = 'laser'; ++dalamSpell; if (dalamSpell >= 3050) { dalamSpell = 3000; } ++i; } } function cekAmbilSenjata(indi) { if (indi == 1) { if (senjataPrimary == 1 && xgembokThrowKini >= 1) { jenisSenjata = 'throw'; } else { if (senjataPrimary == 2 && xgembokArrowKini >= 2) { jenisSenjata = 'arrow'; } else { if (senjataPrimary == 3 && xgembokGunKini >= 2) { jenisSenjata = 'gun'; } else { jenisSenjata = 'throw'; } } } } else { if (indi == 2) { if (senjataSecondary == 1 && xgembokThrowKini >= 1) { jenisSenjata = 'throw'; } else { if (senjataSecondary == 2 && xgembokArrowKini >= 2) { jenisSenjata = 'arrow'; } else { if (senjataSecondary == 3 && xgembokGunKini >= 2) { jenisSenjata = 'gun'; } else { jenisSenjata = 'throw'; } } } } } if (jenisSenjata == 'throw') { lakon_mc.ammo_mc._visible = false; ui_mc.ammo_mc._visible = false; lakon_mc.ammo_mc2._visible = false; ui_mc.ammo_mc2._visible = false; lakon_mc.gotoAndStop(1); jagoanDamage = Math.ceil(damageSenjata[xgembokThrowKini] + (characterPower - 1) / 2); } else { if (jenisSenjata == 'arrow') { lakon_mc.ammo_mc2._visible = false; ui_mc.ammo_mc2._visible = false; lakon_mc.ammo_mc._visible = true; ui_mc.ammo_mc._visible = true; lakon_mc.gotoAndStop(xgembokArrowKini + 6); jagoanDamage = Math.ceil(damageSenjata[xgembokArrowKini + 5] + (characterPower - 1) / 3); } else { if (jenisSenjata == 'gun') { lakon_mc.ammo_mc._visible = false; ui_mc.ammo_mc._visible = false; lakon_mc.ammo_mc2._visible = true; ui_mc.ammo_mc2._visible = true; lakon_mc.gotoAndStop(xgembokGunKini + 12); jagoanDamage = Math.ceil(damageSenjata[xgembokGunKini + 11] + (characterPower - 1) / 2.5); } } } if (gembokDamageKini > 1) { lakon_mc.efek_mc._visible = true; ui_mc.efek_mc._visible = true; } else { lakon_mc.efek_mc._visible = false; ui_mc.efek_mc._visible = false; } lakon_mc.efek_mc.bar2._xscale = (specialPower / maxPower) * 100; ui_mc.efek_mc.bar2._xscale = (specialPower / maxPower) * 100; } function waktu() { --waktuMundur; if (waktuMundur <= 0) { waktuMundur = 0; } } function cekAtributMusuh(indix, indix2) { musuh._x = -100; if (back_mc._currentframe == 1) { musuh._y = 490; } else { if (back_mc._currentframe == 2) { musuh._y = 490; } else { if (back_mc._currentframe == 3) { musuh._y = 490; } else { if (back_mc._currentframe == 4) { musuh._y = 500; } else { if (back_mc._currentframe == 5) { musuh._y = 495; } else { if (back_mc._currentframe == 6) { musuh._y = 490; } else { if (back_mc._currentframe == 7) { musuh._y = 495; } else { if (back_mc._currentframe == 8) { musuh._y = 495; } } } } } } } } if (jenisWilayah[musuh.jenisMusuh] == 'udara' || indix2 == 2) { if (indix2 == 2) { musuh._y -= 150 + random(50); } else { musuh._y -= 250 + random(50); } } musuh.diamDelay = 0; musuh.speedXJatuh = 5; musuh.speedYJatuh = 5; musuh.speed = speedMusuh[musuh.jenisMusuh]; musuh.range = rangeMusuh[musuh.jenisMusuh] + random(12); musuh.damage = damageMusuh[musuh.jenisMusuh]; musuh._yscale = 75; musuh._xscale = 75; if (indix == 'boss') { if (indix2 == 1) { musuh.speed = 1; musuh.range = 50; musuh.batasDelay = 200; musuh.xdelay = 0; musuh.damage = 5; } else { if (indix2 == 2) { musuh.speed = 6; musuh.range = 200; musuh.batasDelay = 150; musuh.xdelay = 0; musuh.damage = 10; } else { if (indix2 == 3) { musuh.speed = 4; musuh.batasDelay = 100; musuh.xdelay = 0; musuh.damage = 15; musuh.jenis = random(3) + 1; musuh.indi2.gotoAndStop(musuh.jenis); if (musuh.jenis == 2) { musuh.range = 350; } else { musuh.range = 100; } } else { musuh.speed = 2; musuh.range = 100; musuh.batasDelay = 200; musuh.xdelay = 0; musuh.damage = 20; } } } musuh.jalanNyerang = true; musuh.nyawa = nyawaBoss[indix2]; musuh.onEnterFrame = enterBoss; } else { musuh.nyawa = nyawaMusuh[musuh.jenisMusuh]; musuh.onEnterFrame = enterMusuh; } ++dalamMusuh; } function enterBoss() { myStr = new String(this); if (myStr.length == 16) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { if (myStr.length == 17) { indi = Number(myStr.substr(myStr.length - 2, 2)); } else { if (myStr.length == 18) { indi = Number(myStr.substr(myStr.length - 3, 3)); } } } i = 0; while (i <= 5) { if (gembokDamageKini == 5 || _root['efek' + i].damageLangsung == true) { if (this.indi.hitTest(_root['efek' + i])) { if (this.indi[indi] != true) { this.indi[indi] = true; if (_root['efek' + i].damageDahsyat == true) { this.nyawa -= jagoanDamage * _root['efek' + i].damageBerapa / 2.5; } else { this.nyawa -= jagoanDamage * 1.25; } } } } ++i; } if (this.nyawa <= 0) { adaBoss = false; if (awalSiapa == 0) { _root['kill' + this.jenisMusuh] = true; awalSiapa = this.jenisMusuh; } if (this._currentframe != 3) { xscore += Math.ceil((800 - this._x) / 2); --banyakMusuh; if (banyakMusuh <= 0) { sudahSelesai = true; idMenang = setInterval(menangLevel, 3000); } } if (this.kenaEfekLedak == true) { this._y += this.speedYJatuh; this._x -= this.speedXJatuh; this.speedYJatuh += 2; } else { if (this.speedXJatuh > 0) { this._x -= this.speedXJatuh; --this.speedXJatuh; } else { this.speedXJatuh = 0; } if (jenisWilayah[this.jenisMusuh] == 'udara') { this._y += this.speedYJatuh; ++this.speedYJatuh; if (this._y >= 450) { this._y = 450; } } } this.gotoAndStop(3); this.indi2.gotoAndStop(this.jenis); } else { if (this.jalanNyerang == true) { if (this._x > batasBase - this.range) { this.gotoAndStop(4); this.indi2.gotoAndStop(this.jenis); ++this.xdelay; if (this.xdelay >= this.batasDelay) { this.jalanNyerang = false; this.xdelay = 0; this._xscale = -100; } } else { this._x += this.speed; this.gotoAndStop(1); this.indi2.gotoAndStop(this.jenis); } } else { if (this._x > 100) { this._x -= this.speed; this.gotoAndStop(1); this.indi2.gotoAndStop(this.jenis); } else { this._x = 100; this._xscale = 100; if (jenisBoss == 4) { if (randSerang == undefined) { randSerang = random(3) + 5; this.gotoAndStop(randSerang); } ++this.xdelay; if (this.xdelay >= this.batasDelay) { this.jalanNyerang = true; this.xdelay = 0; randSerang = undefined; } } else { this.gotoAndStop(2); this.indi2.gotoAndStop(this.jenis); ++this.xdelay; if (this.xdelay >= this.batasDelay) { if (jenisBoss == 3) { this.jenis = random(3) + 1; this.gotoAndStop(1); this.indi2.gotoAndStop(this.jenis); if (this.jenis == 2) { this.range = 350; } else { this.range = 100; } } this.jalanNyerang = true; this.xdelay = 0; this._xscale = 100; } } } } j = 4000; while (j <= 4005) { if (_root['creature' + j] != undefined) { if (_root['creature' + j].jenis == 1) { _root['creature' + j].bisaJalan = true; if (this.indi.hitTest(_root['creature' + j].indi)) { _root['creature' + j].jalan = false; _root['creature' + j].gotoAndStop(2); _root['creature' + j].bisaJalan = false; if (_root['creature' + j]._x >= this._x) { if (_root['creature' + j].kena == true) { this.nyawa -= _root['creature' + j].damage; if (_root['spell' + j].tipePeluru == 'dino') { cekEfek(1, this, 'khusus2', '', _root['creature' + j]); this.speedXJatuh = 4; this.speedYJatuh = 2.5; } } } } if (_root['creature' + j].bisaJalan == true) { } } else { if (_root['creature' + j].jenis == 4) { if (this.indi.hitTest(_root['creature' + j].indi)) { if (_root['creature' + j].kena == true) { this.nyawa -= _root['creature' + j].damage; if (_root['spell' + j].tipePeluru == 'dino') { cekEfek(1, this, 'khusus2', '', _root['creature' + j]); this.speedXJatuh = 4; this.speedYJatuh = 2.5; } } } } } } ++j; } i = 1000; while (i <= 1020) { if (_root['peluru' + i] != undefined) { if (this.indi.hitTest(_root['peluru' + i].indi) && (_root['peluru' + i]._currentframe == 1 || _root['peluru' + i].tembus == true)) { if (_root['peluru' + i][indi] != true) { backKena(); _root['peluru' + i][indi] = true; if (_root['peluru' + i].kurangDamage == 2) { if (pilihLevel <= 20) { this.nyawa -= _root['peluru' + i].damage / 3.5; } else { if (pilihLevel <= 30) { this.nyawa -= _root['peluru' + i].damage / 3; } else { this.nyawa -= _root['peluru' + i].damage / 2.5; } } } else { this.nyawa -= _root['peluru' + i].damage; } if (this.nyawa > 0) { this.diamDelay = 20; } if (_root['peluru' + i].tipePeluru == 'batu') { cekEfek(1, this, 'khusus2', '', _root['peluru' + i]); this.speedXJatuh = _root['peluru' + i].speedX / 1.4; this.speedYJatuh = 2.5; } else { cekEfek(4, this, 'khusus2', '', _root['peluru' + i]); this.speedXJatuh = 0; this.speedYJatuh = 2.5; } cekEfek(0, this, 'khusus2', '', _root['peluru' + i]); this._x -= random(5) + 5; if (pilihEfek == 0) { _root['peluru' + i].gotoAndPlay(2); if (_root['peluru' + i]._x > this._x + 15) { if (_root['peluru' + i].tipePeluru == 'batu') { _root['peluru' + i].speedX = -_root['peluru' + i].speedX / 2; } else { delete _root['peluru' + i].onEnterFrame; } } else { if (_root['peluru' + i].tipePeluru == 'batu') { this.speedXJatuh *= 0.5; _root['peluru' + i].speedY = -_root['peluru' + i].speedY / 2; } else { delete _root['peluru' + i].onEnterFrame; } } } else { if (pilihEfek == 1 || pilihEfek == 3) { if (_root['peluru' + i].mantul2 > 0 && this.sudahKena == undefined) { if (_root['peluru' + i].xpanah == true) { _root['peluru' + i].gotoAndPlay(2); } else { this.sudahKena = true; --_root['peluru' + i].mantul2; if (_root['peluru' + i]._x > this._x + 15) { _root['peluru' + i].speedX = -_root['peluru' + i].speedX / 2; } else { _root['peluru' + i].speedY = -_root['peluru' + i].speedY / 2; } } } else { _root['peluru' + i].gotoAndPlay(2); } } else { if (pilihEfek == 2 || pilihEfek == 4) { if (_root['peluru' + i].mantul2 > 0 && this.sudahKena == undefined) { this.sudahKena = true; --_root['peluru' + i].mantul2; } else { _root['peluru' + i].gotoAndPlay(2); } } else { if (pilihEfek == 5) { _root['peluru' + i].gotoAndPlay(2); delete _root['peluru' + i].onEnterFrame; } } } } if (_root['efek' + i].damageLangsung != true) { if (specialPower >= 100) { specialPower = 0; lakon_mc.efek_mc.gotoAndStop(1); lakon_mc.efek_mc.bar2._xscale = (specialPower / maxPower) * 100; ui_mc.efek_mc.gotoAndStop(1); ui_mc.efek_mc.bar2._xscale = (specialPower / maxPower) * 100; cekEfek2(2, this, 'khusus'); } cekSpecial(); } } } } ++i; } i = 3000; while (i <= 3050) { if (this.indi.hitTest(_root['spell' + i])) { if (_root['spell' + i] != undefined) { if (_root['spell' + i][indi] != true) { trace('a'); backKena(); _root['spell' + i][indi] = true; this.nyawa -= _root['spell' + i].damage; if (this.nyawa > 0) { this.diamDelay = 20; } if (_root['spell' + i].tipePeluru == 'meteor') { cekEfek(2, this, 'khusus'); this.speedXJatuh = 4; this.speedYJatuh = 2.5; } else { if (_root['spell' + i].tipePeluru == 'es') { cekEfek(4, this, 'khusus'); } else { if (_root['spell' + i].tipePeluru == 'puyuh') { cekEfek(1, this, 'khusus'); this.speedXJatuh = 10; this.speedYJatuh = -10; } else { if (_root['spell' + i].tipePeluru == 'batu') { cekEfek(1, this, 'khusus'); this.speedXJatuh = 4; this.speedYJatuh = 2.5; } else { if (_root['spell' + i].tipePeluru == 'laser') { cekEfek(5, this, 'khusus'); this.speedXJatuh = 4; this.speedYJatuh = 2.5; } } } } } cekEfek(0, this, '', _root['peluru' + i]); this._x -= random(5) + 5; } } } ++i; } } } function lanjutBoss() { ++banyakMusuh; if (jenisBoss == 1) { musuh = attachMovie('boss1', 'musuh' + dalamMusuh, dalamMusuh); } else { if (jenisBoss == 2) { musuh = attachMovie('boss2', 'musuh' + dalamMusuh, dalamMusuh); } else { if (jenisBoss == 3) { musuh = attachMovie('boss3', 'musuh' + dalamMusuh, dalamMusuh); } else { musuh = attachMovie('bigboss_mc', 'musuh' + dalamMusuh, dalamMusuh); } } } musuh.jenisMusuh = musuh1; cekAtributMusuh('boss', jenisBoss); } function munculMusuh1() { if (sedangPause == false) { if (banyakMuncul > 0) { --banyakMuncul; musuh = attachMovie('musuh' + musuh1, 'musuh' + dalamMusuh, dalamMusuh); musuh.jenisMusuh = musuh1; cekAtributMusuh(); } } } function munculMusuh2() { if (sedangPause == false) { if (banyakMuncul > 0) { --banyakMuncul; musuh = attachMovie('musuh' + musuh2, 'musuh' + dalamMusuh, dalamMusuh); musuh.jenisMusuh = musuh2; cekAtributMusuh(); } } } function munculMusuh3() { if (sedangPause == false) { if (banyakMuncul > 0) { --banyakMuncul; musuh = attachMovie('musuh' + musuh3, 'musuh' + dalamMusuh, dalamMusuh); musuh.jenisMusuh = musuh3; cekAtributMusuh(); } } } function munculMusuh4() { if (sedangPause == false) { if (banyakMuncul > 0) { --banyakMuncul; musuh = attachMovie('musuh' + musuh4, 'musuh' + dalamMusuh, dalamMusuh); musuh.jenisMusuh = musuh4; cekAtributMusuh(); } } } function munculMusuh5() { if (sedangPause == false) { if (banyakMuncul > 0) { --banyakMuncul; musuh = attachMovie('musuh' + musuh5, 'musuh' + dalamMusuh, dalamMusuh); musuh.jenisMusuh = musuh5; cekAtributMusuh(); } } } function munculMusuh6() { if (sedangPause == false) { if (banyakMuncul > 0) { --banyakMuncul; musuh = attachMovie('musuh' + musuh6, 'musuh' + dalamMusuh, dalamMusuh); musuh.jenisMusuh = musuh6; cekAtributMusuh(); } } } function enterMusuh() { if (sedangPause == false) { if (base_mc.indi._currentframe != 3) { myStr = new String(this); if (myStr.length == 16) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { if (myStr.length == 17) { indi = Number(myStr.substr(myStr.length - 2, 2)); } else { if (myStr.length == 18) { indi = Number(myStr.substr(myStr.length - 3, 3)); } } } i = 0; while (i <= 5) { if (gembokDamageKini == 5 || _root['efek' + i].damageLangsung == true) { if (this.indi.hitTest(_root['efek' + i])) { if (this.indi[indi] != true) { this.indi[indi] = true; if (_root['efek' + i].damageDahsyat == true) { this.nyawa -= jagoanDamage * _root['efek' + i].damageBerapa / 2.5; } else { this.nyawa -= jagoanDamage * 1.25; } } } } ++i; } if (this.nyawa <= 0) { if (awalSiapa == 0) { _root['kill' + this.jenisMusuh] = true; awalSiapa = this.jenisMusuh; } if (this._currentframe != 3) { xscore += Math.ceil((800 - this._x) / 2); --banyakMusuh; if (banyakMusuh <= 0) { sudahSelesai = true; idMenang = setInterval(menangLevel, 3000); } } if (this.kenaEfekLedak == true) { this._y += this.speedYJatuh; this._x -= this.speedXJatuh; this.speedYJatuh += 2; } else { if (this.speedXJatuh > 0) { this._x -= this.speedXJatuh; --this.speedXJatuh; } else { this.speedXJatuh = 0; } if (jenisWilayah[this.jenisMusuh] == 'udara') { this._y += this.speedYJatuh; ++this.speedYJatuh; if (this._y >= 450) { this._y = 450; } } } this.gotoAndStop(3); } else { if (this._x > batasBase - this.range) { this.gotoAndStop(2); } else { if (this.diamDelay == 0) { this.gotoAndStop(1); this._x += this.speed; } else { --this.diamDelay; this.gotoAndStop(4); } } j = 4000; while (j <= 4005) { if (_root['creature' + j] != undefined) { if (_root['creature' + j].jenis == 1) { _root['creature' + j].bisaJalan = true; if (this.indi.hitTest(_root['creature' + j].indi)) { _root['creature' + j].jalan = false; _root['creature' + j].gotoAndStop(2); _root['creature' + j].bisaJalan = false; if (_root['creature' + j]._x >= this._x) { if (_root['creature' + j].kena == true) { this.nyawa -= _root['creature' + j].damage; if (_root['spell' + j].tipePeluru == 'dino') { cekEfek(1, this, 'khusus'); this.speedXJatuh = 4; this.speedYJatuh = 2.5; } } } } if (_root['creature' + j].bisaJalan == true) { } } else { if (_root['creature' + j].jenis == 4) { if (this.indi.hitTest(_root['creature' + j].indi)) { if (_root['creature' + j].kena == true) { this.nyawa -= _root['creature' + j].damage; if (_root['spell' + j].tipePeluru == 'dino') { cekEfek(1, this, 'khusus'); this.speedXJatuh = 4; this.speedYJatuh = 2.5; } } } } } } ++j; } i = 1000; while (i <= 1020) { if (_root['peluru' + i] != undefined) { if (this.indi.hitTest(_root['peluru' + i].indi) && (_root['peluru' + i]._currentframe == 1 || _root['peluru' + i].tembus == true)) { if (_root['peluru' + i][indi] != true) { backKena(); _root['peluru' + i][indi] = true; if (_root['peluru' + i].kurangDamage == 2) { if (pilihLevel <= 20) { this.nyawa -= _root['peluru' + i].damage / 3.5; } else { if (pilihLevel <= 30) { this.nyawa -= _root['peluru' + i].damage / 3; } else { this.nyawa -= _root['peluru' + i].damage / 2.5; } } } else { this.nyawa -= _root['peluru' + i].damage; } if (this.nyawa > 0) { this.diamDelay = 20; } if (_root['peluru' + i].tipePeluru == 'batu') { cekEfek(1, this); this.speedXJatuh = _root['peluru' + i].speedX / 1.4; this.speedYJatuh = 2.5; } else { cekEfek(4, this); this.speedXJatuh = 0; this.speedYJatuh = 2.5; } cekEfek(0, this, '', _root['peluru' + i]); this._x -= random(5) + 5; if (pilihEfek == 0) { _root['peluru' + i].gotoAndPlay(2); if (_root['peluru' + i]._x > this._x + 15) { if (_root['peluru' + i].tipePeluru == 'batu') { _root['peluru' + i].speedX = -_root['peluru' + i].speedX / 2; } else { delete _root['peluru' + i].onEnterFrame; } } else { if (_root['peluru' + i].tipePeluru == 'batu') { this.speedXJatuh *= 0.5; _root['peluru' + i].speedY = -_root['peluru' + i].speedY / 2; } else { delete _root['peluru' + i].onEnterFrame; } } } else { if (pilihEfek == 1 || pilihEfek == 3) { if (_root['peluru' + i].mantul2 > 0 && this.sudahKena == undefined) { if (_root['peluru' + i].xpanah == true) { _root['peluru' + i].gotoAndPlay(2); } else { this.sudahKena = true; --_root['peluru' + i].mantul2; if (_root['peluru' + i]._x > this._x + 15) { _root['peluru' + i].speedX = -_root['peluru' + i].speedX / 2; } else { _root['peluru' + i].speedY = -_root['peluru' + i].speedY / 2; } } } else { _root['peluru' + i].gotoAndPlay(2); } } else { if (pilihEfek == 2 || pilihEfek == 4) { if (_root['peluru' + i].mantul2 > 0 && this.sudahKena == undefined) { this.sudahKena = true; --_root['peluru' + i].mantul2; } else { _root['peluru' + i].gotoAndPlay(2); } } else { if (pilihEfek == 5) { _root['peluru' + i].gotoAndPlay(2); delete _root['peluru' + i].onEnterFrame; } } } } if (_root['efek' + i].damageLangsung != true) { if (specialPower >= 100) { specialPower = 0; lakon_mc.efek_mc.gotoAndStop(1); lakon_mc.efek_mc.bar2._xscale = (specialPower / maxPower) * 100; ui_mc.efek_mc.gotoAndStop(1); ui_mc.efek_mc.bar2._xscale = (specialPower / maxPower) * 100; cekEfek2(2, this); } cekSpecial(); } } } } ++i; } i = 3000; while (i <= 3050) { if (this.indi.hitTest(_root['spell' + i])) { if (_root['spell' + i] != undefined) { if (_root['spell' + i][indi] != true) { trace('a'); backKena(); _root['spell' + i][indi] = true; this.nyawa -= _root['spell' + i].damage; if (this.nyawa > 0) { this.diamDelay = 20; } if (_root['spell' + i].tipePeluru == 'meteor') { cekEfek(2, this, 'khusus'); this.speedXJatuh = 4; this.speedYJatuh = 2.5; } else { if (_root['spell' + i].tipePeluru == 'es') { cekEfek(4, this, 'khusus'); } else { if (_root['spell' + i].tipePeluru == 'puyuh') { cekEfek(1, this, 'khusus'); this.speedXJatuh = 10; this.speedYJatuh = -10; } else { if (_root['spell' + i].tipePeluru == 'batu') { cekEfek(1, this, 'khusus'); this.speedXJatuh = 4; this.speedYJatuh = 2.5; } else { if (_root['spell' + i].tipePeluru == 'laser') { cekEfek(5, this, 'khusus'); this.speedXJatuh = 4; this.speedYJatuh = 2.5; } } } } } cekEfek(0, this, '', _root['peluru' + i]); this._x -= random(5) + 5; } } } ++i; } } } else { this.gotoAndStop(1); this.anim.stop(); } } } function cekSpecial() { if (gembokDamageKini >= 2) { specialPower += 20; if (specialPower >= 100) { lakon_mc.efek_mc.gotoAndStop(2); ui_mc.efek_mc.gotoAndStop(2); specialPower = 100; } lakon_mc.efek_mc.bar2._xscale = (specialPower / maxPower) * 100; ui_mc.efek_mc.bar2._xscale = (specialPower / maxPower) * 100; } } function cekBatu(zindi) { if (sedangPause == false) { if (sudahSelesai == false) { jenisLempar = xgembokThrowKini; if (zindi == 'special') { if (gembokSpecialKini == 2) { jenisLempar = 7; } else { if (gembokSpecialKini == 3) { jenisLempar = 8; } else { if (gembokSpecialKini == 4) { jenisLempar = 9; } } } tambahanBatu = 200; } else { tambahanBatu = 0; cekUse(); } backLempar(); peluru = attachMovie('lempar' + jenisLempar, 'peluru' + (dalamBatu + tambahanBatu), dalamBatu + tambahanBatu); peluru._x = lakon_mc._x + 50; peluru._y = lakon_mc._y - 50; if (jenisLempar != 4 && jenisLempar != 6) { peluru.tipePeluru = 'batu'; } peluru.rotasi = 3; if (_root._ymouse <= 150) { if (barPower2 <= 10) { peluru.speedX = barPower2 / 8 + 9 + jagoanSpeed / 10; } else { peluru.speedX = barPower2 / 8 + 11 + jagoanSpeed * 2.5; } peluru.speedY = barPower2 / 3; } else { if (_root._ymouse >= 350) { if (barPower2 <= 50) { peluru.speedX = barPower2 / 4 + 10; } else { peluru.speedX = barPower2 / 4 + 10 + jagoanSpeed; } peluru.speedY = barPower2 / 16; } else { if (barPower2 <= 10) { peluru.speedX = barPower2 / 6 + 9 + jagoanSpeed / 10; } else { peluru.speedX = barPower2 / 6 + 10 + jagoanSpeed; } peluru.speedY = barPower2 / 8; } } if (pilihEfek == 1 || pilihEfek == 2) { peluru.mantul2 = 1; } else { if (pilihEfek == 3 || pilihEfek == 4) { peluru.mantul2 = 2; } } peluru.damage = jagoanDamage; if (zindi == 'special') { peluru.speedX = 20; peluru.speedY = 10; peluru.onEnterFrame = enterBatu3; } else { peluru.kurangDamage = 1; if (jenisLempar != 4 && jenisLempar != 6) { peluru.onEnterFrame = enterBatu; } else { peluru.onEnterFrame = enterBatu2; } } ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } } } function cekPusar(indi) { peluru = attachMovie('pusaran', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + 75; peluru._y = indi._y; peluru.speedX = 2; peluru.damage = indi.damage; peluru.batasBaseY = 700 + random(20); peluru.onEnterFrame = enterPusaran; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function enterPusaran() { if (sedangPause == false) { this._x += this.speedX; ++this.speedX; if (this._x >= this.batasBaseY + random(12)) { cekBerkurangBase(this); removeMovieClip(this); } } } function cekPanahApiBurung(indi) { peluru = attachMovie('panahApi', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + 75; peluru._y = indi._y + 10; peluru.speedX = 24; peluru.speedY = 12; peluru.damage = indi.damage; peluru.batasBaseY = 650 + random(50); peluru.onEnterFrame = enterPanahApi; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function enterPanahApi() { if (sedangPause == false) { this._x += this.speedX; this._y += this.speedY; this.speedX += 5; this.speedY += 5; if (this._x >= this.batasBaseY && this._currentframe == 1) { cekEfek(2, this); this._x = this.batasBaseY; cekBerkurangBase(this); this.gotoAndPlay(2); delete this.onEnterFrame; } } } function cekPanahDatar(indi) { peluru = attachMovie('panahDatar', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + 75; peluru._y = indi._y - 50 - random(10); peluru.speedX = 24; peluru.speedY = random(4); peluru.damage = indi.damage; peluru.batasBaseY = 650 + random(50); peluru.onEnterFrame = enterPanahDatar; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function cekPanahDatar2(indi) { peluru = attachMovie('apiMagic', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + 75; peluru._y = indi._y - 50 - random(10); peluru.speedX = 24; peluru.speedY = random(4); peluru.damage = indi.damage; peluru.batasBaseY = 650 + random(100); peluru.onEnterFrame = enterPanahDatar2; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function enterPanahDatar() { if (sedangPause == false) { this._x += this.speedX; this._rotation += this.speedY / 2; this._y += this.speedY / 3; this.speedX += 5; if (this._x >= this.batasBaseY && this._currentframe == 1) { cekEfek(3, this); this._x = this.batasBaseY; cekBerkurangBase(this); this.gotoAndPlay(2); delete this.onEnterFrame; } } } function enterPanahDatar2() { if (sedangPause == false) { this._x += this.speedX; this._rotation += this.speedY / 2; this._y += this.speedY / 2; this.speedX += 5; if (this._x >= this.batasBaseY && this._currentframe == 1) { this._x = this.batasBaseY; cekBerkurangBase(this); removeMovieClip(this); } } } function cekPanahBanyak(indi) { i = 1; while (i <= 3) { peluru = attachMovie('panahBanyak', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + 40 + random(10); peluru._y = indi._y - 20 - random(10); peluru._rotation = 25 + random(10); peluru.speedX = 24 + random(5); peluru.speedY = 12 + random(5); peluru.damage = indi.damage; peluru.batasBaseY = 650 + random(50); peluru.onEnterFrame = enterPanahBanyak; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } ++i; } } function enterPanahBanyak() { if (sedangPause == false) { this._x += this.speedX; this._y += this.speedY; this.speedX += 5; this.speedY += 5; if (this._x >= this.batasBaseY && this._currentframe == 1) { this._x = this.batasBaseY; cekEfek(4, this); cekBerkurangBase(this); this.gotoAndPlay(2); delete this.onEnterFrame; } } } function cekEfek2(indi, indi2, indi3) { if (gembokDamageKini == 2) { backApi(); efek = indi2.attachMovie('efekApi', 'efek' + dalamEfek2, dalamEfek2); } else { if (gembokDamageKini == 3) { backRacun(); efek = indi2.attachMovie('efekRacun', 'efek' + dalamEfek2, dalamEfek2); } else { if (gembokDamageKini == 4) { backLedak(); efek = attachMovie('efekLedak', 'efek' + dalamEfek2, dalamEfek2); efek._x = indi2._x; efek._y = indi2._y; indi2.kenaEfekLedak = true; indi2.nyawa -= jagoanDamage; indi2.speedXJatuh = 25; indi2.speedYJatuh = -25; } else { if (gembokDamageKini == 5) { backListrik(); efek = attachMovie('efekPetir', 'efek' + dalamEfek2, dalamEfek2); efek._x = indi2._x; efek._y = indi2._y; efek.damageLangsung = true; } } } } ++dalamEfek2; if (dalamEfek2 >= 5) { dalamEfek2 = 0; } } function cekEfek(indi, indi2, indi3, indi4, indi5) { if (indi == 0) { efek = attachMovie('efekDarah', 'efek' + dalamEfek, dalamEfek); } else { if (indi == 1) { backAsap(); efek = attachMovie('efekAsap', 'efek' + dalamEfek, dalamEfek); } else { if (indi == 2) { backApi(); efek = attachMovie('efekApi', 'efek' + dalamEfek, dalamEfek); } else { if (indi == 3) { backLedak(); efek = attachMovie('efekLedak', 'efek' + dalamEfek, dalamEfek); } else { if (indi == 4) { efek = attachMovie('efekKena', 'efek' + dalamEfek, dalamEfek); } else { if (indi == 5) { backLedak(); efek = attachMovie('efekDahsyat', 'efek' + dalamEfek, dalamEfek); } } } } } } if (indi3 == 'khususBase') { efek._x = base_mc._x + 75; efek._y = base_mc._y + 250; } else { if (indi3 == 'khusus') { efek._x = indi2._x; efek._y = indi2._y; } else { if (indi3 == 'khusus2') { efek._x = indi5._x; efek._y = indi5._y; } else { if (indi == 0) { if (jenisWilayah[indi2.jenisMusuh] == 'udara') { efek._x = indi2._x; efek._y = indi2._y - indi2._height / 2; } else { if (jenisSenjata == 'arrow') { efek._x = indi4._x - indi4._width / 2; efek._y = indi4._y; } else { efek._x = indi2._x; efek._y = indi2._y - indi2._height; } } } else { if (indi == 2) { efek._x = indi2._x + 75; efek._y = indi2._y + 75; } else { efek._x = indi2._x; efek._y = indi2._y - indi2._height / 2; } } } } } ++dalamEfek; if (dalamEfek >= 5100) { dalamEfek = 5000; } } function enterBatu() { if (sedangPause == false) { this._rotation -= this.rotasi; this._x -= this.speedX; this._y -= this.speedY; this.speedY -= 2; if (this._y > 450 && this._currentframe == 1) { if (this.spell == true) { this._y = 450; this.gotoAndStop(2); } else { if (pilihEfek == 1 || pilihEfek == 3) { this._y = 450; this.kurangDamage = 2; this.gotoAndStop(1); this.speedY = -this.speedY / 2; } else { this.speedX -= 0.5; this._y = 450; this.gotoAndPlay(2); this.speedY = -this.speedY / 2; } } cekEfek(1, this, 'khusus'); } if (this._x <= -100 || this._x >= 1000) { removeMovieClip(this); } } } function enterBatu2() { if (sedangPause == false) { this._rotation -= this.rotasi / 1.25; this._x -= this.speedX; this._y -= this.speedY; this.speedY -= 2; if (this._y >= 450 && this._currentframe == 1) { if (pilihEfek == 1 || pilihEfek == 3) { this._y = 450; this.kurangDamage = 2; this.gotoAndStop(1); this.speedY = -this.speedY / 2; } else { this.speedX -= 0.5; this._y = 450; this.gotoAndPlay(2); this.speedY = -this.speedY / 2; } if (this.tipePeluru != 'batu') { delete this.onEnterFrame; } } if (this._x <= -100 || this._x >= 900) { removeMovieClip(this); } } } function enterBatu3() { if (sedangPause == false) { if (this.speedX > 0) { this._rotation -= this.rotasi; this._x -= this.speedX; this._y -= this.speedY; this.speedY -= 2; this.speedX -= 0.1; } else { this.speedX = 0; } if (this._y > 470 && this._currentframe == 1) { this._y = 470; this.gotoAndPlay(2); cekEfek(1, this, 'khusus'); delete this.onEnterFrame; } if (this._x <= -100 || this._x >= 900) { removeMovieClip(this); } } } function cekMeledak(indi2, indi3) { efek = attachMovie('efekDahsyat', 'efek' + dalamEfek2, dalamEfek2); efek._x = indi2._x; efek._y = indi2._y; if (indi3 == undefined) { efek.damageBerapa = 3; } else { efek.damageBerapa = indi3; } efek.damageLangsung = true; efek.damageDahsyat = true; } function cekKetapelBatu(indi) { peluru = attachMovie('batuKecil', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + 75; peluru._y = indi._y - 75; peluru.speedX = 25; peluru.speedY = -4; peluru.damage = indi.damage; peluru.onEnterFrame = enterBatuKecil; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function enterBatuKecil() { if (sedangPause == false) { this._rotation + this.rotasi; this._x += this.speedX; this._y += this.speedY; this.speedX += 1.5; ++this.speedY; if (this._x >= batasBase + random(12)) { cekEfek(1, this, 'khusus'); cekBerkurangBase(this); removeMovieClip(this); } if (this._y >= 500) { removeMovieClip(this); } } } function cekBatuBesar(indi) { peluru = attachMovie('batuBesar', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x; peluru._y = indi._y; peluru._yscale = 75; peluru._xscale = 75; peluru.speedX = 8; peluru.speedY = -8; peluru.damage = indi.damage; peluru.batasBaseY = 400 + random(50); peluru.onEnterFrame = enterBatuBesar; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function enterBatuBesar() { if (sedangPause == false) { this._rotation + this.rotasi; this._x += this.speedX; this._y += this.speedY; this.speedX += 0.5; this.speedY += 2; if (this._y >= this.batasBaseY) { this._y = this.batasBaseY; cekEfek(1, this, 'khusus'); cekBerkurangBase(this); removeMovieClip(this); } } } function enterBatuBesar2() { if (sedangPause == false) { this._rotation + this.rotasi; this._x += this.speedX; this._y += this.speedY; this.speedX += 0.5; ++this.speedY; if (this._x >= this.batasBaseX) { cekEfek(1, this, 'khusus'); cekBerkurangBase(this); removeMovieClip(this); } if (this._y >= this.batasBaseY) { cekBerkurangBase(this); removeMovieClip(this); } } } function cekLemparBatu(indi) { peluru = attachMovie('batuBesar', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + 50; peluru._y = indi._y - 200; peluru._yscale = 100; peluru._xscale = 100; peluru.speedX = 10; peluru.speedY = -8; peluru.damage = indi.damage; peluru.batasBaseX = 700 + random(20); peluru.batasBaseY = 450 + random(20); peluru.onEnterFrame = enterBatuBesar2; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function cekBerkurangBase(xindi) { if (xindi.jenisMusuh == 8) { cekEfek(2, base_mc, 'khususBase'); } else { cekEfek(4, base_mc, 'khususBase'); } zdamage = xindi.damage - defenseBase; if (zdamage <= 0.5) { zdamage = 0.5; } lifeBase -= zdamage; } function cekSihirApi(indi) { peluru = attachMovie('apiMagic', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + 50; peluru._y = indi._y - 100; peluru.speedX = 10; peluru.damage = indi.damage; peluru.batasBaseX = 600 + random(100); peluru.onEnterFrame = enterApiMagic; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function cekBolaApi(indi) { peluru = attachMovie('apiMagic', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + 50; peluru._y = indi._y - 100; peluru.speedX = 20; peluru.speedY = 10; peluru._rotation = 35; peluru.damage = indi.damage; peluru.batasBaseX = 600 + random(100); peluru.onEnterFrame = enterApiBola; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function enterApiMagic() { if (sedangPause == false) { this._x += this.speedX; ++this.speedX; if (this._x >= this.batasBaseX) { cekEfek(2, this); this._x = this.batasBaseX; cekBerkurangBase(this); removeMovieClip(this); } } } function enterApiBola() { if (sedangPause == false) { this._x += this.speedX; this._y += this.speedY; ++this.speedX; ++this.speedY; if (this._x >= this.batasBaseX) { cekEfek(2, this); this._x = this.batasBaseX; cekBerkurangBase(this); removeMovieClip(this); } } } function cekRocket(indi) { peluru = attachMovie('apiMagic', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + 50; peluru._y = indi._y - 100; peluru.speedX = 15; peluru.speedY = -20; peluru._rotation = -45; peluru.damage = indi.damage; peluru.batasBaseX = 650 + random(100); peluru.onEnterFrame = enterRocket; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function enterRocket() { if (sedangPause == false) { this._x += this.speedX; this._y += this.speedY; ++this.speedY; this._rotation += 2.5; if (this._x >= this.batasBaseX) { cekEfek(3, this, 'khusus'); this._x = this.batasBaseX; cekBerkurangBase(this); removeMovieClip(this); } } } function cekBomber(indi) { peluru = attachMovie('bomb', 'peluru' + dalamBatu, dalamBatu); peluru._x = indi._x + random(15); peluru._y = indi._y; peluru.speedY = 0.5; peluru.damage = indi.damage; peluru.batasBaseX = 650 + random(100); peluru.onEnterFrame = enterBomb; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } function enterBomb() { if (sedangPause == false) { ++this._x; this._y += this.speedY; this.speedY += 0.5; this._rotation += 2; if (this._y >= 450) { cekEfek(3, this, 'khusus'); this._x = 450; cekBerkurangBase(this); removeMovieClip(this); } } } function enterBomb2() { if (sedangPause == false) { ++this._x; this._y += this.speedY; this.speedY += 0.5; this._rotation += 2; if (this._y >= 450) { cekEfek(3, this, 'khusus'); this._x = 450; removeMovieClip(this); } } } function menangLevel() { perfectBonus = persenBase; jumlahBonus = lifeBase; if (adaBoss == true) { clearInterval(idMenang); sudahSelesai = false; lanjutBoss(); } else { clearSemua(); if (pilihLevel == 40) { gotoAndStop(435); } else { gotoAndStop(433); } } } function kalahLevel() { clearSemua(); gotoAndStop(434); } function clearSemua() { clearInterval(idMusuh1); clearInterval(idMusuh2); clearInterval(idMusuh3); clearInterval(idMusuh4); clearInterval(idMusuh5); clearInterval(idMusuh6); clearInterval(idMenang); clearInterval(idKalah); clearInterval(idWaktu); i = 100; while (i <= dalamMusuh) { removeMovieClip(_root['musuh' + i]); ++i; } i = 4000; while (i <= 4050) { removeMovieClip(_root['creature' + i]); ++i; } i = 3000; while (i <= 3050) { removeMovieClip(_root['spell' + i]); ++i; } i = 1000; while (i <= 1020) { removeMovieClip(_root['peluru' + i]); ++i; } removeMovieClip(base_mc); removeMovieClip(lakon_mc); removeMovieClip(ui_mc); removeMovieClip(pause_mc); } function cekPanah() { if (sedangPause == false) { if (xgembokArrowKini <= 3) { jenisLempar = 1; } else { if (xgembokArrowKini == 4) { jenisLempar = 5; } else { if (xgembokArrowKini == 5) { jenisLempar = 6; } else { if (xgembokArrowKini == 6) { jenisLempar = 7; } else { jenisLempar = 1; } } } } if (xgembokArrowKini == 2) { bykPanah = 1; } else { if (xgembokArrowKini == 3) { bykPanah = 3; } else { if (xgembokArrowKini == 4) { bykPanah = 2; } else { if (xgembokArrowKini == 5) { bykPanah = 3; } else { if (xgembokArrowKini == 6) { bykPanah = 4; } else { if (xgembokArrowKini == 7) { bykPanah = 5; } } } } } } cekUse(); i = 1; while (i <= bykPanah) { backPanah(); --jumlahPeluru[xgembokArrowKini]; lakon_mc.ammo_mc.bar2._xscale = (jumlahPeluru[xgembokArrowKini] / maxPeluru[xgembokArrowKini]) * 100; ui_mc.ammo_mc.bar2._xscale = lakon_mc.ammo_mc.bar2._xscale; peluru = attachMovie('panah' + jenisLempar, 'peluru' + dalamBatu, dalamBatu); peluru._x = lakon_mc._x - 25; if (lakon_mc.xangle >= -55) { peluru.kurangX = 3; peluru._y = lakon_mc._y - 25; peluru.speedX = barPower2 / 6 + 35 + jagoanSpeed; } else { if (lakon_mc.xangle > -60) { peluru.kurangX = 3; peluru._y = lakon_mc._y - 15; peluru.speedX = barPower2 / 6 + 25 + jagoanSpeed; } else { if (lakon_mc.xangle > -70) { peluru.kurangX = 2; peluru._y = lakon_mc._y - 5; peluru.speedX = barPower2 / 6 + 25 + jagoanSpeed; } else { if (lakon_mc.xangle > -80) { peluru.kurangX = 2; peluru._y = lakon_mc._y + 5; peluru.speedX = barPower2 / 6 + 25 + jagoanSpeed; } else { if (lakon_mc.xangle > -90) { peluru.kurangX = 3; peluru._y = lakon_mc._y + 15; peluru.speedX = barPower2 / 6 + 25 + jagoanSpeed; } else { if (lakon_mc.xangle > -100) { peluru.kurangX = 3; peluru._y = lakon_mc._y + 25; peluru.speedX = barPower2 / 6 + 30 + jagoanSpeed; } else { if (lakon_mc.xangle > -110) { peluru.kurangX = 4; peluru._y = lakon_mc._y + 50; peluru.speedX = barPower2 / 6 + 20 + jagoanSpeed; } else { peluru.kurangX = 4; peluru._y = lakon_mc._y + 75; peluru.speedX = barPower2 / 6 + 10 + jagoanSpeed; } } } } } } } if (pilihEfek == 1 || pilihEfek == 2) { peluru.mantul2 = 1; } else { if (pilihEfek == 3 || pilihEfek == 4) { peluru.mantul2 = 2; } } peluru.damage = jagoanDamage; if (i == 1) { peluru._rotation = lakon_mc.xangle; } else { if (i == 2) { peluru._rotation = lakon_mc.xangle - 15; } else { if (i == 3) { peluru._rotation = lakon_mc.xangle + 15; } else { if (i == 4) { peluru._rotation = lakon_mc.xangle - 25; } else { if (i == 5) { peluru._rotation = lakon_mc.xangle + 25; } } } } } if (_root._ymouse <= 300 || _root._xmouse >= 600) { peluru.indiKurang = 1.25; } else { peluru.indiKurang = 0.5; } peluru.xpanah = true; peluru.onEnterFrame = enterPanah; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } ++i; } } } function cekGun() { if (sedangPause == false) { if (sudahSelesai == false) { cekUse(); --jumlahPeluru2[xgembokGunKini]; lakon_mc.ammo_mc2.bar2._xscale = (jumlahPeluru2[xgembokGunKini] / maxPeluru2[xgembokGunKini]) * 100; ui_mc.ammo_mc2.bar2._xscale = lakon_mc.ammo_mc2.bar2._xscale; if (xgembokGunKini == 2) { backHandGun(); bykGun = 1; } else { if (xgembokGunKini == 3) { bykGun = 2; backRifle(); } else { if (xgembokGunKini == 4) { bykGun = 1; backMachineGun(); } else { if (xgembokGunKini == 5) { bykGun = 1; backSniper(); } else { if (xgembokGunKini == 6) { bykGun = 1; backRocket(); } } } } } if (xgembokGunKini <= 5) { jenisLempar = 1; } else { if (xgembokGunKini == 6) { jenisLempar = 2; } } i = 1; while (i <= bykGun) { peluru = attachMovie('gun' + jenisLempar, 'peluru' + dalamBatu, dalamBatu); peluru._x = lakon_mc._x; if (jenisLempar == 2) { peluru.tembus = true; if (lakon_mc.xangle >= -55) { peluru._y = lakon_mc._y - 80; } else { if (lakon_mc.xangle > -60) { peluru._y = lakon_mc._y - 50; } else { if (lakon_mc.xangle > -70) { peluru._y = lakon_mc._y - 40; } else { if (lakon_mc.xangle > -80) { peluru._y = lakon_mc._y - 30; } else { if (lakon_mc.xangle > -90) { peluru._y = lakon_mc._y - 10; } else { if (lakon_mc.xangle > -100) { peluru._y = lakon_mc._y + 10; } else { if (lakon_mc.xangle > -110) { peluru._y = lakon_mc._y + 20; } else { if (lakon_mc.xangle > -120) { peluru._y = lakon_mc._y + 60; } else { if (lakon_mc.xangle >= -135) { peluru._y = lakon_mc._y + 110; } } } } } } } } } } else { if (lakon_mc.xangle > -90) { peluru._y = lakon_mc._y; } else { if (lakon_mc.xangle > -100) { peluru._y = lakon_mc._y + 10; } else { if (lakon_mc.xangle > -110) { peluru._y = lakon_mc._y + 20; } else { if (lakon_mc.xangle > -120) { peluru._y = lakon_mc._y + 30; } else { if (lakon_mc.xangle > -130) { peluru._y = lakon_mc._y + 40; } else { peluru._y = lakon_mc._y + 50; } } } } } } if (xgembokGunKini == 6) { peluru.rocket = true; } peluru._visible = false; peluru.speedX = barPower2 / 6 + 75 + jagoanSpeed; peluru.damage = jagoanDamage; if (pilihEfek == 1 || pilihEfek == 2) { peluru.mantul2 = 1; } else { if (pilihEfek == 3 || pilihEfek == 4) { peluru.mantul2 = 2; } } if (i == 1) { peluru._rotation = lakon_mc.xangle; } else { if (i == 2) { peluru._rotation = lakon_mc.xangle - 5; } else { if (i == 3) { peluru._rotation = lakon_mc.xangle + 5; } } } peluru.onEnterFrame = enterGun; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } ++i; } } } } function cekGun2() { if (sedangPause == false) { if (sudahSelesai == false) { cekUse(); cekSpecial(); backListrik(); --jumlahPeluru2[xgembokGunKini]; lakon_mc.ammo_mc2.bar2._xscale = (jumlahPeluru2[xgembokGunKini] / maxPeluru2[xgembokGunKini]) * 100; ui_mc.ammo_mc2.bar2._xscale = lakon_mc.ammo_mc2.bar2._xscale; peluru = attachMovie('gun3', 'peluru' + dalamBatu, dalamBatu); peluru._x = lakon_mc._x - 75; if (lakon_mc.xangle >= -55) { peluru._y = lakon_mc._y - 80; } else { if (lakon_mc.xangle > -60) { peluru._y = lakon_mc._y - 50; } else { if (lakon_mc.xangle > -70) { peluru._y = lakon_mc._y - 40; } else { if (lakon_mc.xangle > -80) { peluru._y = lakon_mc._y - 30; } else { if (lakon_mc.xangle > -90) { peluru._y = lakon_mc._y - 10; } else { if (lakon_mc.xangle > -100) { peluru._y = lakon_mc._y + 10; } else { if (lakon_mc.xangle > -110) { peluru._y = lakon_mc._y + 20; } else { if (lakon_mc.xangle > -120) { peluru._y = lakon_mc._y + 60; } else { if (lakon_mc.xangle >= -135) { peluru._y = lakon_mc._y + 110; } } } } } } } } } peluru._y += 25; peluru._visible = false; peluru.tembus = true; if (pilihEfek == 1 || pilihEfek == 2) { peluru.mantul2 = 1; } else { if (pilihEfek == 3 || pilihEfek == 4) { peluru.mantul2 = 2; } } peluru.damage = jagoanDamage; peluru.speedX = barPower2 / 6 + 75 + jagoanSpeed; peluru.gotoAndPlay(2); peluru._rotation = lakon_mc.xangle; ++dalamBatu; if (dalamBatu >= 1020) { dalamBatu = 1000; } } } } function enterPanah() { if (sedangPause == false) { this._y -= this.speedX * Math.cos(this._rotation * 0.0174532925199433); this._x += this.speedX * Math.sin(this._rotation * 0.0174532925199433); this.speedX += 2; this._rotation -= this.kurangX * this.indiKurang; if (this._y > 475) { this._y = 475; cekEfek(4, this); this.gotoAndPlay(2); delete this.onEnterFrame; } if (this._x <= -100 || this._x >= 900) { removeMovieClip(this); } } } function enterGun() { if (sedangPause == false) { this._y -= this.speedX * Math.cos(this._rotation * 0.0174532925199433); this._x += this.speedX * Math.sin(this._rotation * 0.0174532925199433); this.speedX += 10; if (this._y >= 525) { if (this.rocket == true) { cekEfek(3, this, 'khusus'); } this._y = 525; this.gotoAndPlay(2); delete this.onEnterFrame; } if (this._x <= -100 || this._x >= 900) { removeMovieClip(this); } } } function cekSpecialWeapons() { if (gembokSpecialKini == 2) { lakon_mc.gotoAndStop(25); } else { if (gembokSpecialKini == 3) { lakon_mc.gotoAndStop(26); } else { if (gembokSpecialKini == 4) { lakon_mc.gotoAndStop(27); } } } } stop(); myMusic.setVolume(volume1); dalamMusuh = 100; dalamBatu = 1000; dalamEfek = 5000; dalamCreature = 4000; dalamSpell = 3000; dalamEfek2 = 1; batasBase = 610; barPower = 0; barPower2 = 0; specialPower = 0; maxPower = 100; jenisLempar = 1; waktuMundur = 120; sedangTekan = false; sedangPause = false; sudahSelesai = false; masihPress = false; sedangPause = false; sudahPakaiSpecial = false; ammo_mc._visible = false; ammo_mc2._visible = false; sedangOverMenu = false; jumlahPeluru = new Array('', '', 6, 15, 12, 15, 16, 20); maxPeluru = new Array('', '', 6, 15, 12, 15, 16, 20); jumlahPeluru2 = new Array('', '', 12, 12, 24, 20, 18, 6); maxPeluru2 = new Array('', '', 12, 12, 24, 20, 18, 6); damageSenjata = new Array('', 1, 2, 3, 6, 4, 7, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 5, 6); useStone = 0; useSpiked = 0; useArrow = 0; useLightingArrow = 0; useSniper = 0; useLaserGun = 0; xgembokThrowKini = pilihWeaponThrow; xgembokArrowKini = pilihWeaponArrow + 1; xgembokGunKini = pilihWeaponGun + 1; zgembokEfekKini = 1; if (gembokEfekKini == 2) { zgembokEfekKini = 3; } else { if (gembokEfekKini == 3) { zgembokEfekKini = 2; } else { if (gembokEfekKini == 4) { zgembokEfekKini = 5; } else { if (gembokEfekKini == 5) { zgembokEfekKini = 4; } } } } kill2 = false; kill7 = false; kill12 = false; kill15 = false; kill20 = false; kill25 = false; kill28 = false; kill32 = false; awalSiapa = 0; base_mc = attachMovie('base_mc', 'base_mc', 900); base_mc._x = 619; base_mc._y = 190; base_mc._yscale = 90; base_mc._xscale = 90; lakon_mc = attachMovie('lakon_mc', 'lakon_mc', 909); lakon_mc._x = 684; lakon_mc._y = 311; lakon_mc._yscale = 75; lakon_mc._xscale = 75; ui_mc = attachMovie('ui_mc', 'ui_mc', 919); ui_mc._x = 0; ui_mc._y = 0; ui_mc._yscale = 100; ui_mc._xscale = 100; ui_mc.menu_btn.onRollOver = function () { sedangOverMenu = true; }; ui_mc.menu_btn.onRollOut = function () { sedangOverMenu = false; }; ui_mc.menu_btn.onRelease = function () { cekPause(); }; if (pilihLevel <= 5) { indiSpell1 = 1; } else { if (pilihLevel <= 10) { indiSpell1 = 2; } else { if (pilihLevel <= 15) { indiSpell1 = 3; } else { if (pilihLevel <= 20) { indiSpell1 = 4; } else { if (pilihLevel <= 25) { indiSpell1 = 5; } else { if (pilihLevel <= 30) { indiSpell1 = 6; } else { if (pilihLevel <= 35) { indiSpell1 = 7; } else { if (pilihLevel <= 40) { indiSpell1 = 8; } } } } } } } } ui_mc.spell_mc.spell1.gotoAndStop(indiSpell1); ui_mc.spell_mc.spell1.onRelease = function () { ui_mc.spell_mc.spell1._visible = false; munculSpell1(); }; ui_mc.spell_mc.spell1.onRollOver = function () { sedangOverMenu = true; }; ui_mc.spell_mc.spell1.onRollOut = function () { sedangOverMenu = false; }; if (pilihLevel == 5 || pilihLevel == 10 || pilihLevel == 15 || pilihLevel == 20 || pilihLevel == 25 || pilihLevel == 30 || pilihLevel == 35 || pilihLevel == 40) { ui_mc.spell_mc.gembokSpell._visible = false; ui_mc.spell_mc.spell2.enabled = true; } else { ui_mc.spell_mc.gembokSpell._visible = true; ui_mc.spell_mc.spell2.enabled = false; } if (pilihLevel == 10 || pilihLevel == 20 || pilihLevel == 30 || pilihLevel == 40) { if (pilihLevel == 10) { jenisBoss = 1; } else { if (pilihLevel == 20) { jenisBoss = 2; } else { if (pilihLevel == 30) { jenisBoss = 3; } else { if (pilihLevel == 40) { jenisBoss = 4; } } } } nyawaBoss = new Array('', 50, 100, 150, 200); adaBoss = true; } else { adaBoss = false; } ui_mc.spell_mc.spell2.onRelease = function () { ui_mc.spell_mc.spell2._visible = false; munculSpell2(); }; ui_mc.spell_mc.spell2.onRollOver = function () { sedangOverMenu = true; }; ui_mc.spell_mc.spell2.onRollOut = function () { sedangOverMenu = false; }; cekAmbilSenjata(1); lifeBase = penambahanBaseLife * gembokBaseKini + baseEndurance * 12; defenseBase = Math.ceil(penambahanBaseDefense * gembokBaseKini + baseDefense * 2 / 2); jagoanSpeed = characterSpeed; back_mc.gotoAndStop(pilihBackground); base_mc.gotoAndStop(gembokBaseKini); maxBase = lifeBase; efekTembus = false; efekMantul = false; efekTembus2 = false; efekMantul2 = false; sudahTamat = false; idWaktu = setInterval(waktu, 1000); if (zgembokEfekKini == 2) { pilihEfek = 1; } else { if (zgembokEfekKini == 3) { pilihEfek = 2; } else { if (zgembokEfekKini == 4) { pilihEfek = 3; } else { if (zgembokEfekKini == 5) { pilihEfek = 4; } else { pilihEfek = 0; } } } } i = 1; while (i <= 4) { _root['musuh' + i] = 0; ++i; } jenisWilayah = new Array(); nyawaMusuh = new Array('', 1, 2, 1, 8, 1, 9, 2, 10, 3, 8, 2, 9, 4, 10, 4, 11, 5, 6, 5, 9, 6, 7, 6, 8, 7, 9, 7, 10, 9, 11, 10, 12); damageMusuh = new Array('', 1, 2, 1, 2, 0.1, 3, 2, 4, 3, 4, 3, 5, 4, 5, 4, 6, 5, 6, 5, 2.5, 6, 7, 6, 3, 2, 8, 7, 9, 8, 9, 8, 10); speedMusuh = new Array('', 1.25, 1, 2, 0.1, 2.5, 0.1, 1, 0.1, 2.5, 1, 0.25, 1.5, 0.25, 3, 0.5, 1.5, 1.25, 1, 3.5, 0.25, 1, 1, 1, 3.5, 2, 1, 1, 4.5, 0.5, 1, 0.25, 3.5); rangeMusuh = new Array('', 0, 0, 200, 150, 0, 250, 300, 100, 0, 0, 300, 250, 0, 300, 200, 300, 0, 250, 0, 250, 0, 350, 350, 200, 250, 400, 450, -50, 0, 25, 225, 250); jumlahMusuh = new Array('', 7, 9, 12, 18, 24, 9, 11, 14, 21, 26, 11, 13, 16, 23, 28, 13, 15, 18, 25, 30, 15, 17, 21, 26, 32, 17, 19, 23, 28, 34, 19, 21, 25, 30, 36, 21, 23, 27, 32, 38); i = 1; while (i <= 32) { speedMusuh[i] += 1.25; damageMusuh[i] += 2; ++i; } i = 1; while (i <= 40) { if (pilihLevel <= 5) { jumlahMusuh[i] += 4; } else { if (pilihLevel <= 10) { nyawaMusuh[i] += 2; jumlahMusuh[i] += 8; } else { if (pilihLevel <= 15) { jumlahMusuh[i] += 9; nyawaMusuh[i] += 4; damageMusuh[i] += 1; } else { if (pilihLevel <= 20) { nyawaMusuh[i] += 6; jumlahMusuh[i] += 10; } else { if (pilihLevel <= 25) { nyawaMusuh[i] += 12; jumlahMusuh[i] += 11; damageMusuh[i] += 1; } else { if (pilihLevel <= 30) { nyawaMusuh[i] += 14; jumlahMusuh[i] += 12; damageMusuh[i] += 2; } else { if (pilihLevel <= 35) { nyawaMusuh[i] += 16; jumlahMusuh[i] += 13; damageMusuh[i] += 4; } else { if (pilihLevel <= 37) { nyawaMusuh[i] += 18; jumlahMusuh[i] += 14; damageMusuh[i] += 6; } else { nyawaMusuh[i] += 20; jumlahMusuh[i] += 15; damageMusuh[i] += 8; } } } } } } } } ++i; } banyakMusuh = jumlahMusuh[pilihLevel]; banyakMuncul = banyakMusuh; i = 1; while (i <= 32) { if (i == 4 || i == 8 || i == 12 || i == 16 || i == 20 || i == 24 || i == 28 || i == 32) { jenisWilayah[i] = 'udara'; } else { jenisWilayah[i] = 'darat'; } ++i; } musuhUdara = new Array(); musuh1 = 0; musuh2 = 0; musuh3 = 0; musuh4 = 0; musuh5 = 0; musuh6 = 0; if (pilihLevel == 1) { musuh1 = 1; musuh2 = 2; } else { if (pilihLevel == 2) { musuh1 = 2; musuh2 = 3; } else { if (pilihLevel == 3) { musuh1 = 1; musuh2 = 4; } else { if (pilihLevel == 4) { musuh1 = 1; musuh2 = 3; musuh3 = 4; } else { if (pilihLevel == 5) { musuh1 = 1; musuh2 = 2; musuh3 = 3; musuh4 = 4; } else { if (pilihLevel == 6) { musuh1 = 3; musuh2 = 5; musuh3 = 6; } else { if (pilihLevel == 7) { musuh1 = 4; musuh2 = 5; musuh3 = 7; } else { if (pilihLevel == 8) { musuh1 = 2; musuh2 = 5; musuh3 = 8; } else { if (pilihLevel == 9) { musuh1 = 5; musuh2 = 6; musuh3 = 8; } else { if (pilihLevel == 10) { musuh1 = 5; musuh2 = 6; musuh3 = 7; musuh4 = 8; musuh5 = 3; musuh6 = 4; } else { if (pilihLevel == 11) { musuh1 = 5; musuh2 = 9; musuh3 = 10; } else { if (pilihLevel == 12) { musuh1 = 6; musuh2 = 9; musuh3 = 11; } else { if (pilihLevel == 13) { musuh1 = 7; musuh2 = 10; musuh3 = 11; } else { if (pilihLevel == 14) { musuh1 = 8; musuh2 = 9; musuh3 = 10; musuh4 = 12; } else { if (pilihLevel == 15) { musuh1 = 9; musuh2 = 10; musuh3 = 11; musuh4 = 12; musuh5 = 7; musuh6 = 8; } else { if (pilihLevel == 16) { musuh1 = 9; musuh2 = 13; musuh3 = 15; } else { if (pilihLevel == 17) { musuh1 = 12; musuh2 = 14; musuh3 = 16; } else { if (pilihLevel == 18) { musuh1 = 11; musuh2 = 13; musuh3 = 14; musuh4 = 15; } else { if (pilihLevel == 19) { musuh1 = 11; musuh2 = 14; musuh3 = 15; musuh4 = 16; } else { if (pilihLevel == 20) { musuh1 = 13; musuh2 = 14; musuh3 = 15; musuh4 = 16; musuh5 = 11; musuh6 = 12; } else { if (pilihLevel == 21) { musuh1 = 14; musuh2 = 17; musuh3 = 18; } else { if (pilihLevel == 22) { musuh1 = 16; musuh2 = 19; musuh3 = 20; musuh4 = 15; } else { if (pilihLevel == 23) { musuh1 = 15; musuh2 = 17; musuh3 = 20; musuh4 = 16; } else { if (pilihLevel == 24) { musuh1 = 16; musuh2 = 17; musuh3 = 18; musuh4 = 19; } else { if (pilihLevel == 25) { musuh1 = 17; musuh2 = 18; musuh3 = 19; musuh4 = 20; musuh5 = 15; musuh6 = 16; } else { if (pilihLevel == 26) { musuh1 = 17; musuh2 = 21; musuh3 = 22; musuh4 = 23; } else { if (pilihLevel == 27) { musuh1 = 18; musuh2 = 21; musuh3 = 22; musuh4 = 23; } else { if (pilihLevel == 28) { musuh1 = 20; musuh2 = 21; musuh3 = 22; musuh4 = 19; } else { if (pilihLevel == 29) { musuh1 = 19; musuh2 = 22; musuh3 = 23; musuh4 = 24; } else { if (pilihLevel == 30) { musuh1 = 21; musuh2 = 22; musuh3 = 23; musuh4 = 24; musuh5 = 19; musuh6 = 20; } else { if (pilihLevel == 31) { musuh1 = 21; musuh2 = 25; musuh3 = 26; musuh4 = 27; } else { if (pilihLevel == 32) { musuh1 = 24; musuh2 = 25; musuh3 = 26; musuh4 = 28; } else { if (pilihLevel == 33) { musuh1 = 22; musuh2 = 26; musuh3 = 27; musuh4 = 28; } else { if (pilihLevel == 34) { musuh1 = 23; musuh2 = 25; musuh3 = 27; musuh4 = 28; musuh5 = 24; } else { if (pilihLevel == 35) { musuh1 = 25; musuh2 = 26; musuh3 = 27; musuh4 = 28; musuh5 = 23; musuh6 = 24; } else { if (pilihLevel == 36) { musuh1 = 28; musuh2 = 29; musuh3 = 30; musuh4 = 31; } else { if (pilihLevel == 37) { musuh1 = 27; musuh2 = 29; musuh3 = 30; musuh4 = 32; } else { if (pilihLevel == 38) { musuh1 = 26; musuh2 = 29; musuh3 = 30; musuh4 = 31; } else { if (pilihLevel == 39) { musuh1 = 28; musuh2 = 29; musuh3 = 30; musuh4 = 31; musuh5 = 32; } else { if (pilihLevel == 40) { musuh1 = 29; musuh2 = 30; musuh3 = 31; musuh4 = 32; musuh5 = 27; musuh6 = 28; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } if (pilihLevel <= 5) { zdelayMusuh = 0.95; } else { if (pilihLevel <= 10) { zdelayMusuh = 0.9; } else { if (pilihLevel <= 15) { zdelayMusuh = 0.85; } else { if (pilihLevel <= 20) { zdelayMusuh = 0.8; } else { if (pilihLevel <= 25) { zdelayMusuh = 0.75; } else { if (pilihLevel <= 30) { zdelayMusuh = 0.7; } else { if (pilihLevel <= 35) { zdelayMusuh = 0.65; } else { if (pilihLevel <= 40) { zdelayMusuh = 0.6; } else { zdelayMusuh = 1; } } } } } } } } clearInterval(idMusuh1); clearInterval(idMusuh2); clearInterval(idMusuh3); clearInterval(idMusuh4); clearInterval(idMusuh5); clearInterval(idMusuh6); i = 1; while (i <= 6) { if (_root['musuh' + i] > 0) { if (i == 1) { if (musuh1 == 4 || musuh1 == 6 || musuh1 == 8) { delayMusuh = 2; } else { s; delayMusuh = zdelayMusuh; } idMusuh1 = setInterval(munculMusuh1, 4000 * delayMusuh); } else { if (i == 2) { if (musuh2 == 4 || musuh2 == 6 || musuh2 == 8) { delayMusuh = 2; } else { delayMusuh = zdelayMusuh; } idMusuh2 = setInterval(munculMusuh2, 7000 * delayMusuh); } else { if (i == 3) { if (musuh3 == 4 || musuh3 == 6 || musuh3 == 8) { delayMusuh = 2; } else { delayMusuh = zdelayMusuh; } idMusuh3 = setInterval(munculMusuh3, 10000 * delayMusuh); } else { if (i == 4) { if (musuh4 == 4 || musuh4 == 6 || musuh4 == 8) { delayMusuh = 2; } else { delayMusuh = zdelayMusuh; } idMusuh4 = setInterval(munculMusuh4, 13000 * delayMusuh); } else { if (i == 5) { if (musuh5 == 4 || musuh5 == 6 || musuh5 == 8) { delayMusuh = 2; } else { delayMusuh = zdelayMusuh; } idMusuh5 = setInterval(munculMusuh5, 16000 * delayMusuh); } else { if (i == 6) { if (musuh6 == 4 || musuh6 == 6 || musuh6 == 8) { delayMusuh = 2; } else { delayMusuh = zdelayMusuh; } idMusuh6 = setInterval(munculMusuh6, 19000 * delayMusuh); } } } } } } } ++i; } _root.onEnterFrame = function () { if (sedangPause == false) { if (sedangTekan == true) { barPower += 3.5; if (barPower >= 100) { barPower = 100; } barPower2 = barPower / 1.25; lakon_mc.bar_mc.bar2._xscale = barPower; ui_mc.bar_mc.bar2._xscale = barPower; } persenBase = Math.ceil((lifeBase / maxBase) * 100); if (persenBase <= 1) { if (sudahTamat == false) { sudahSelesai = true; sudahTamat = true; persenBase = 0; ui_mc.life_mc.gotoAndStop(persenBase); base_mc.indi.gotoAndStop(3); lakon_mc.gotoAndStop(30); idKalah = setInterval(kalahLevel, 3000); } } else { if (persenBase <= 75) { base_mc.indi.gotoAndStop(2); } else { base_mc.indi.gotoAndStop(1); } } if (lifeBase <= 0) { lifeBase = 0; } ui_mc.zpersen = Math.ceil(lifeBase) + '/' + Math.ceil(maxBase); ui_mc.life_mc.gotoAndStop(persenBase); ui_mc.zday = pilihLevel; ui_mc.zscore = xscore; ui_mc.zpoint = exp; } }; lakon_mc.anim.gerak_mc._rotation = -90; lakon_mc.onEnterFrame = function () { if (sedangPause == false) { if (jenisSenjata == 'arrow') { this.aimX = _root._xmouse; this.aimY = _root._ymouse; this.deltaX = this._x - this.aimX; this.deltaY = this._y - this.aimY; this.xangle = -Math.atan2(this.deltaX, this.deltaY) / 0.0174532925199433; if (this.xangle < -55 && this.xangle > -115) { this.anim.gerak_mc._rotation = this.xangle; } else { if (this.xangle > -55) { this.anim.gerak_mc._rotation = -55; this.xangle = -55; } else { if (this.xangle < -115) { this.anim.gerak_mc._rotation = -115; this.xangle = -115; } } } } else { if (jenisSenjata == 'gun') { this.aimX = _root._xmouse; this.aimY = _root._ymouse; this.deltaX = this._x - this.aimX; this.deltaY = this._y - this.aimY; this.xangle = -Math.atan2(this.deltaX, this.deltaY) / 0.0174532925199433; if (this.xangle < -55 && this.xangle > -145) { this.anim.gerak_mc._rotation = this.xangle; } else { if (this.xangle > -55) { this.anim.gerak_mc._rotation = -55; this.xangle = -55; } else { if (this.xangle < -145) { this.anim.gerak_mc._rotation = -145; this.xangle = -145; } } } } } if (jumlahPeluru2[xgembokGunKini] <= 0) { masihPress = false; this.ammo_mc2.bar2._xscale += 0.625; ui_mc.ammo_mc2.bar2._xscale = this.ammo_mc2.bar2._xscale; if (this.ammo_mc2.bar2._xscale >= 100) { jumlahPeluru2[xgembokGunKini] = maxPeluru2[xgembokGunKini]; } } if (jumlahPeluru[xgembokArrowKini] <= 0) { masihPress = false; this.ammo_mc.bar2._xscale += 1.25; ui_mc.ammo_mc.bar2._xscale = this.ammo_mc.bar2._xscale; if (this.ammo_mc.bar2._xscale >= 100) { jumlahPeluru[xgembokArrowKini] = maxPeluru[xgembokArrowKini]; } } if (this._currentframe >= 2 && this._currentframe <= 7) { ui_mc.bar_mc._visible = true; } else { ui_mc.bar_mc._visible = false; } } }; _root.onMouseDown = function () { if (sedangPause == false) { if (sudahSelesai == false) { if (sedangOverMenu == false) { if (sedangPause == false) { if (masihPress == false) { masihPress = true; if (lakon_mc._currentframe == 1) { sedangTekan = true; barPower = 0; barPower2 = 0; if (jenisSenjata == 'throw') { lakon_mc.gotoAndStop(xgembokThrowKini + 1); } else { if (jenisSenjata == 'arrow') { lakon_mc.gotoAndStop(xgembokArrowKini + 6); } else { if (jenisSenjata == 'gun') { lakon_mc.gotoAndStop(xgembokGunKini + 12); } } } lakon_mc.bar_mc.bar2._xscale = barPower; ui_mc.bar_mc.bar2._xscale = barPower; } else { if (jenisSenjata == 'arrow') { lakon_mc.gotoAndStop(xgembokArrowKini + 6); if (lakon_mc.anim._currentframe == 1) { if (jumlahPeluru[xgembokArrowKini] > 0) { lakon_mc.anim.gotoAndPlay('lanjut'); lakon_mc.anim.gerak_mc2._rotation = lakon_mc.xangle; } } } else { if (jenisSenjata == 'gun') { lakon_mc.gotoAndStop(xgembokGunKini + 12); if (lakon_mc.anim._currentframe == 1) { if (jumlahPeluru2[xgembokGunKini] > 0) { lakon_mc.anim.gotoAndPlay('lanjut'); lakon_mc.anim.gerak_mc2._rotation = lakon_mc.xangle; } } } } } } } } } } }; _root.onMouseUp = function () { if (sedangPause == false) { masihPress = false; if (sudahSelesai == false) { if (sedangPause == false) { if (sedangTekan == true) { targetX = _root._xmouse; targetY = _root._ymouse; if (jenisSenjata == 'throw') { lakon_mc.gotoAndStop(xgembokThrowKini + 1); } else { if (jenisSenjata == 'arrow') { lakon_mc.gotoAndStop(xgembokArrowKini + 6); } else { if (jenisSenjata == 'gun') { lakon_mc.gotoAndStop(xgembokGunKini + 12); } } } lakon_mc.anim.gotoAndPlay('lanjut'); sedangTekan = false; } } } } }; menu_btn.onRelease = function () { sedangPause = true; pause_mc._visible = true; pause_mc.continue_btn.onRelease = function () { sedangPause = false; pause_mc._visible = false; }; }; myListener = new Object(); myListener.onKeyDown = function () { if (Key.getCode() == 9) { sedangOverMenu = false; } if (Key.getCode() == 80) { sedangOverMenu = false; cekPause(); } if (Key.getCode() == 49) { if (masihPress == false) { if (sedangPause == false) { sedangOverMenu = false; cekAmbilSenjata(1); } } } if (Key.getCode() == 50) { if (masihPress == false) { if (sedangPause == false) { sedangOverMenu = false; cekAmbilSenjata(2); } } } if (Key.getCode() == 32) { if (gembokSpecialKini >= 2) { if (sudahPakaiSpecial == false) { if (sedangPause == false) { sedangOverMenu = false; sudahPakaiSpecial = true; cekSpecialWeapons(); } } } } }; Key.addListener(myListener); } movieClip 3669 { frame 1 { stop(); } } frame 432 { function klikBackground() { myStr = new String(this); indiBack = myStr.substr(myStr.length - 1, 1); pilihBackground = indiBack; upgadeSemua(); } function overBack() { myStr = new String(this); indiDamage = myStr.substr(myStr.length - 1, 1); frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = namaBack[indiDamage]; frame_mc.baseLife = ''; frame_mc.baseDefense = ''; frame_mc.baseCost = 'Click to use'; } function outBack() { frame_mc._visible = false; } function upgadeSemua() { i = 1; while (i <= 8) { _root['gembokBase' + i]._visible = true; _root['gembokBack' + i]._visible = true; _root['back' + i].gotoAndStop(1); _root['back' + i].enabled = false; ++i; } i = 1; while (i <= gembokBaseKini - 1) { _root['gembokBase' + i]._visible = false; _root['gembokBack' + i]._visible = false; ++i; } i = 1; while (i <= gembokBaseKini) { _root['back' + i].enabled = true; _root['back' + i].onRelease = klikBackground; _root['back' + i].onRollOver = overBack; _root['back' + i].onRollOut = outBack; ++i; } _root['back' + pilihBackground].gotoAndStop(2); _root['gembokBase' + gembokBaseKini].onRelease = klikGembokBase; _root['gembokBase' + gembokBaseKini].onRollOver = overGembokBase; _root['gembokBase' + gembokBaseKini].onRollOut = outGembokBase; i = 1; while (i <= 6) { _root['gembokThrow' + i]._visible = true; ++i; } i = 1; while (i <= gembokThrowKini - 1) { _root['gembokThrow' + i]._visible = false; ++i; } _root['gembokThrow' + gembokThrowKini].onRelease = klikGembokThrow; _root['gembokThrow' + gembokThrowKini].onRollOver = overGembokThrow; _root['gembokThrow' + gembokThrowKini].onRollOut = outGembokThrow; i = 1; while (i <= 6) { _root['gembokArrow' + i]._visible = true; ++i; } i = 1; while (i <= gembokArrowKini - 1) { _root['gembokArrow' + i]._visible = false; ++i; } _root['gembokArrow' + gembokArrowKini].onRelease = klikGembokArrow; _root['gembokArrow' + gembokArrowKini].onRollOver = overGembokArrow; _root['gembokArrow' + gembokArrowKini].onRollOut = outGembokArrow; i = 1; while (i <= 6) { _root['gembokGun' + i]._visible = true; ++i; } i = 1; while (i <= gembokGunKini - 1) { _root['gembokGun' + i]._visible = false; ++i; } _root['gembokGun' + gembokGunKini].onRelease = klikGembokGun; _root['gembokGun' + gembokGunKini].onRollOver = overGembokGun; _root['gembokGun' + gembokGunKini].onRollOut = outGembokGun; i = 1; while (i <= 6) { _root['gembokEfek' + i]._visible = true; ++i; } i = 1; while (i <= gembokEfekKini - 1) { _root['gembokEfek' + i]._visible = false; ++i; } _root['gembokEfek' + gembokEfekKini].onRelease = klikGembokEfek; _root['gembokEfek' + gembokEfekKini].onRollOver = overGembokEfek; _root['gembokEfek' + gembokEfekKini].onRollOut = outGembokEfek; i = 1; while (i <= 6) { _root['gembokDamage' + i]._visible = true; ++i; } i = 1; while (i <= gembokDamageKini - 1) { _root['gembokDamage' + i]._visible = false; ++i; } _root['gembokDamage' + gembokDamageKini].onRelease = klikGembokDamage; _root['gembokDamage' + gembokDamageKini].onRollOver = overGembokDamage; _root['gembokDamage' + gembokDamageKini].onRollOut = outGembokDamage; i = 1; while (i <= 6) { _root['gembokSpecial' + i]._visible = true; ++i; } i = 1; while (i <= gembokSpecialKini - 1) { _root['gembokSpecial' + i]._visible = false; ++i; } _root['gembokSpecial' + gembokSpecialKini].onRelease = klikGembokSpecial; _root['gembokSpecial' + gembokSpecialKini].onRollOver = overGembokSpecial; _root['gembokSpecial' + gembokSpecialKini].onRollOut = outGembokSpecial; zday = pilihLevel; zscore = xscore; zpoint = exp; zlife = penambahanBaseLife * gembokBaseKini + baseEndurance * 12; zdefense = baseDefense * 2; zspeed = characterSpeed; zpower = characterPower; if (baseEndurance == 10) { upgradeLife.enabled = false; } if (baseDefense == 10) { upgradeArmour.enabled = false; } if (characterSpeed == 10) { upgradeSpeed.enabled = false; } if (characterPower == 10) { upgradePower.enabled = false; } frame_mc._visible = false; cekBar(); cekWeapons(); } function klikGembokSpecial() { if (exp >= hargaSpecial[gembokSpecialKini]) { exp -= hargaSpecial[gembokSpecialKini]; ++gembokSpecialKini; i = 1; while (i <= 6) { _root['gembokSpecial' + i].enabled = false; ++i; } upgadeSemua(); } } function overGembokSpecial() { myStr = new String(this); indiSpecial = myStr.substr(myStr.length - 1, 1); frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = namaSpecial[indiSpecial]; frame_mc.baseLife = 'Press Spacebar to use '; frame_mc.baseDefense = 'One ammo each level'; zcost = hargaSpecial[indiSpecial]; if (zcost == 1) { frame_mc.baseCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.baseCost = 'Cost ' + zcost + ' Points'; } } function outGembokSpecial() { frame_mc._visible = false; } function klikGembokDamage() { if (exp >= hargaDamage[gembokDamageKini]) { exp -= hargaDamage[gembokDamageKini]; ++gembokDamageKini; i = 1; while (i <= 6) { _root['gembokDamage' + i].enabled = false; ++i; } upgadeSemua(); } } function overGembokDamage() { myStr = new String(this); indiDamage = myStr.substr(myStr.length - 1, 1); frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = namaDamage[indiDamage]; frame_mc.baseLife = ''; frame_mc.baseDefense = ''; zcost = hargaDamage[indiDamage]; if (zcost == 1) { frame_mc.baseCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.baseCost = 'Cost ' + zcost + ' Points'; } } function outGembokDamage() { frame_mc._visible = false; } function klikGembokEfek() { if (exp >= hargaEfek[gembokEfekKini]) { exp -= hargaEfek[gembokEfekKini]; ++gembokEfekKini; i = 1; while (i <= 6) { _root['gembokEfek' + i].enabled = false; ++i; } upgadeSemua(); } } function overGembokEfek() { myStr = new String(this); indiEfek = myStr.substr(myStr.length - 1, 1); frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = namaEfek[indiEfek]; frame_mc.baseLife = ''; frame_mc.baseDefense = ''; zcost = hargaEfek[indiEfek]; if (zcost == 1) { frame_mc.baseCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.baseCost = 'Cost ' + zcost + ' Points'; } } function outGembokEfek() { frame_mc._visible = false; } function klikGembokGun() { if (exp >= hargaGun[gembokGunKini]) { exp -= hargaGun[gembokGunKini]; ++gembokGunKini; pilihWeaponGun = gembokGunKini - 1; i = 1; while (i <= 6) { _root['gembokGun' + i].enabled = false; ++i; } upgadeSemua(); } } function overGembokGun() { myStr = new String(this); indiGun = myStr.substr(myStr.length - 1, 1); frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = namaGun[indiGun]; frame_mc.baseLife = 'Damage: ' + damageGun[indiGun]; frame_mc.baseDefense = ''; zcost = hargaGun[indiGun]; if (zcost == 1) { frame_mc.baseCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.baseCost = 'Cost ' + zcost + ' Points'; } } function outGembokGun() { frame_mc._visible = false; } function klikGembokArrow() { if (exp >= hargaArrow[gembokArrowKini]) { exp -= hargaArrow[gembokArrowKini]; ++gembokArrowKini; pilihWeaponArrow = gembokArrowKini - 1; i = 1; while (i <= 6) { _root['gembokArrow' + i].enabled = false; ++i; } upgadeSemua(); } } function overGembokArrow() { myStr = new String(this); indiArrow = myStr.substr(myStr.length - 1, 1); frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = namaArrow[indiArrow]; frame_mc.baseLife = 'Damage: ' + damageArrow[indiArrow]; frame_mc.baseDefense = ''; zcost = hargaArrow[indiArrow]; if (zcost == 1) { frame_mc.baseCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.baseCost = 'Cost ' + zcost + ' Points'; } } function outGembokArrow() { frame_mc._visible = false; } function klikGembokThrow() { if (exp >= hargaThrow[gembokThrowKini]) { exp -= hargaThrow[gembokThrowKini]; ++gembokThrowKini; pilihWeaponThrow = gembokThrowKini; i = 1; while (i <= 6) { _root['gembokThrow' + i].enabled = false; ++i; } upgadeSemua(); } } function overGembokThrow() { myStr = new String(this); indiThrow = myStr.substr(myStr.length - 1, 1); frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = namaThrow[indiThrow]; frame_mc.baseLife = 'Damage: ' + damageThrow[indiThrow]; frame_mc.baseDefense = ''; zcost = hargaThrow[indiThrow]; if (zcost == 1) { frame_mc.baseCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.baseCost = 'Cost ' + zcost + ' Points'; } } function outGembokThrow() { frame_mc._visible = false; } function klikGembokBase() { if (exp >= hargaBase[gembokBaseKini]) { exp -= hargaBase[gembokBaseKini]; ++gembokBaseKini; pilihBackground = gembokBaseKini; i = 1; while (i <= 8) { _root['gembokBase' + i].enabled = false; ++i; } upgadeSemua(); } } function overGembokBase() { frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = namaBase[gembokBaseKini]; frame_mc.baseLife = 'Base Life: ' + penambahanBaseLife * gembokBaseKini; frame_mc.baseDefense = 'Base Defense: ' + penambahanBaseDefense * gembokBaseKini; zcost = hargaBase[gembokBaseKini]; if (zcost == 1) { frame_mc.baseCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.baseCost = 'Cost ' + zcost + ' Points'; } } function outGembokBase() { frame_mc._visible = false; } function cekBar() { bar1.gotoAndStop(baseEndurance); bar2.gotoAndStop(baseDefense); bar3.gotoAndStop(characterSpeed); bar4.gotoAndStop(characterPower); } function cekSenjata() { i = 1; while (i <= 3) { if (senjataPrimary == i) { _root['weapon' + i].gotoAndStop(1); } else { if (senjataSecondary == i) { _root['weapon' + i].gotoAndStop(2); } else { _root['weapon' + i].gotoAndStop(3); } } _root['weapon' + i].onRelease = klikWeapon; _root['weapon' + i].onRollOver = overWeapon; _root['weapon' + i].onRollOut = outWeapon; ++i; } } function overWeapon() { frame_mc.gotoAndStop(3); frame_mc._visible = true; } function outWeapon() { frame_mc._visible = false; } function klikWeapon() { myStr = new String(this); indi = myStr.substr(myStr.length - 1, 1); ++senjataPrimary; ++senjataSecondary; if (senjataPrimary >= 4) { senjataPrimary = 1; } if (senjataSecondary >= 4) { senjataSecondary = 1; } cekSenjata(); } function cekWeapons() { i = 1; while (i <= 6) { _root['weaponThrow' + i].gotoAndStop(1); _root['weaponArrow' + i].gotoAndStop(1); _root['weaponGun' + i].gotoAndStop(1); ++i; } _root['weaponThrow' + pilihWeaponThrow].gotoAndStop(2); _root['weaponArrow' + pilihWeaponArrow].gotoAndStop(2); _root['weaponGun' + pilihWeaponGun].gotoAndStop(2); i = 1; while (i <= 6) { if (_root['gembokThrow' + (i - 1)]._visible == true) { _root['weaponThrow' + i].enabled = false; } else { _root['weaponThrow' + i].enabled = true; _root['weaponThrow' + i].onRelease = klikThrow; _root['weaponThrow' + i].onRollOver = zoverGembokThrow; _root['weaponThrow' + i].onRollOut = zoutGembokThrow; } if (_root['gembokArrow' + i]._visible == true) { _root['weaponArrow' + i].enabled = false; } else { _root['weaponArrow' + i].enabled = true; _root['weaponArrow' + i].onRelease = klikArrow; _root['weaponArrow' + i].onRollOver = zoverGembokArrow; _root['weaponArrow' + i].onRollOut = zoutGembokArrow; } if (_root['gembokGun' + i]._visible == true) { _root['weaponGun' + i].enabled = false; } else { _root['weaponGun' + i].enabled = true; _root['weaponGun' + i].onRelease = klikGun; _root['weaponGun' + i].onRollOver = zoverGembokGun; _root['weaponGun' + i].onRollOut = zoutGembokGun; } ++i; } } function klikThrow() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); pilihWeaponThrow = indi; cekWeapons(); } function klikArrow() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); pilihWeaponArrow = indi; cekWeapons(); } function klikGun() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); pilihWeaponGun = indi; cekWeapons(); } function zoverGembokGun() { myStr = new String(this); indiGun = myStr.substr(myStr.length - 1, 1); frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = namaGun[indiGun]; frame_mc.baseLife = 'Damage: ' + damageGun[indiGun]; frame_mc.baseDefense = ''; zcost = hargaGun[indiGun]; frame_mc.baseCost = 'Click to use'; } function zoutGembokGun() { frame_mc._visible = false; } function zoverGembokArrow() { myStr = new String(this); indiArrow = myStr.substr(myStr.length - 1, 1); frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = namaArrow[indiArrow]; frame_mc.baseLife = 'Damage: ' + damageArrow[indiArrow]; frame_mc.baseDefense = ''; zcost = hargaArrow[indiArrow]; frame_mc.baseCost = 'Click to use'; } function zoutGembokArrow() { frame_mc._visible = false; } function zoverGembokThrow() { myStr = new String(this); indiThrow = myStr.substr(myStr.length - 1, 1); frame_mc.gotoAndStop(1); frame_mc._visible = true; frame_mc.baseName = znamaThrow[indiThrow]; frame_mc.baseLife = 'Damage: ' + zdamageThrow[indiThrow]; frame_mc.baseDefense = ''; zcost = hargaThrow[indiThrow]; frame_mc.baseCost = 'Click to use'; } function zoutGembokThrow() { frame_mc._visible = false; } stop(); more_btn.onRelease = function () { getURL('http://armorgames.com/', '_blank'); }; next_btn.onRelease = function () { delete _root.onEnterFrame; cekMedalDapat(); gotoAndStop(431); }; option_btn.onRelease = function () { pause_mc = attachMovie('pause_mc', 'pause_mc', 929); pause_mc._x = 400; pause_mc._y = 250; pause_mc.quit_btn.onRelease = function () { removeMovieClip(pause_mc); }; }; quit_btn.onRelease = function () { backMenu(); gotoAndStop(421); }; if (baseEndurance < 10) { upgradeLife.enabled = true; } else { upgradeLife.enabled = false; } if (baseDefense < 10) { upgradeArmour.enabled = true; } else { upgradeArmour.enabled = false; } if (characterSpeed < 10) { upgradeSpeed.enabled = true; } else { upgradeSpeed.enabled = false; } if (characterPower < 10) { upgradePower.enabled = true; } else { upgradePower.enabled = false; } frame_mc._visible = false; hargaBase = new Array('', 15, 18, 21, 24, 27, 30, 33); hargaUpgrade = new Array('', 2, 2, 3, 4); namaBase = new Array('', 'Darkness Base', 'Fantasy Base', 'Greek Base', 'Rome Base', 'Medieval Base', 'Millenium Base', 'Robotic Base'); namaBack = new Array('', 'Stone World', 'Darkness World', 'Fantasy World', 'Greek World', 'Rome World', 'Medieval World', 'Millenium World', 'Robotic World'); namaUpgrade = new Array('', 'Endurance', 'Shield', 'Speed', 'Power'); namaThrow = new Array('', 'Iron', 'Spiked Ball', 'Spear', 'Fire Stone', 'Lightning Spear'); znamaThrow = new Array('', 'Stone', 'Iron', 'Spiked Ball', 'Spear', 'Fire Stone', 'Lightning Spear'); damageThrow = new Array('', 2, 3, 5, 4, 6); zdamageThrow = new Array('', 1, 2, 3, 6, 4, 7); hargaThrow = new Array('', 11, 15, 19, 23, 27); namaArrow = new Array('', 'Single Arrow', 'Triple Arrows', 'Double Fire Arrows', 'Triple Poison Arrows', 'Four Lightning Arrows', 'Penta Arrows'); damageArrow = new Array('', 1, 1, 2, 2, 2, 3); hargaArrow = new Array('', 16, 19, 22, 25, 28, 31); namaGun = new Array('', 'Hand Gun', 'Rifle', 'Machine Gun', 'Sniper', 'Rocket Launcher', 'Laser Gun'); damageGun = new Array('', 3, 3, 3, 4, 5, 6); hargaGun = new Array('', 35, 37, 39, 41, 43, 45); namaEfek = new Array('', 'Single Pierce', 'Single Bounce', 'Double Pierce', 'Double Bounce'); hargaEfek = new Array('', 18, 24, 20, 26); namaDamage = new Array('', 'Fire Effect', 'Poison Effect', 'Explode Effect', 'Light Effect'); hargaDamage = new Array('', 24, 26, 28, 30); namaSpecial = new Array('', 'Grenade', 'Dynamite', 'Bomb'); hargaSpecial = new Array('', 30, 32, 34, 36); upgadeSemua(); _root.onEnterFrame = function () { if (_root._ymouse >= 350) { frame_mc._x = _root._xmouse; frame_mc._y = _root._ymouse - 150; } else { frame_mc._x = _root._xmouse; frame_mc._y = _root._ymouse; } }; upgradeLife.onRelease = function () { if (exp >= hargaUpgrade[1] * baseEndurance) { if (baseEndurance < 10) { exp -= hargaUpgrade[1] * baseEndurance; ++baseEndurance; upgadeSemua(); frame_mc._visible = false; upgradeLife.enabled = false; } } }; upgradeArmour.onRelease = function () { if (exp >= hargaUpgrade[2] * baseDefense) { if (baseDefense < 10) { exp -= hargaUpgrade[2] * baseDefense; ++baseDefense; upgadeSemua(); frame_mc._visible = false; upgradeArmour.enabled = false; } } }; upgradeSpeed.onRelease = function () { if (exp >= hargaUpgrade[3] * characterSpeed) { if (characterSpeed < 10) { exp -= hargaUpgrade[3] * characterSpeed; ++characterSpeed; upgadeSemua(); frame_mc._visible = false; upgradeSpeed.enabled = false; } } }; upgradePower.onRelease = function () { if (exp >= hargaUpgrade[3] * characterPower) { if (characterPower < 10) { exp -= hargaUpgrade[3] * characterPower; ++characterPower; upgadeSemua(); frame_mc._visible = false; upgradePower.enabled = false; } } }; upgradeLife.onRollOver = function () { frame_mc.gotoAndStop(2); frame_mc.upgradeName = namaUpgrade[1]; frame_mc.upgradeLevel = 'Level ' + baseEndurance; frame_mc.upgradeEfek = 'Life Plus ' + baseEndurance * 12; zcost = hargaUpgrade[1] * baseEndurance; if (zcost == 1) { frame_mc.upgradeCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.upgradeCost = 'Cost ' + zcost + ' Points'; } frame_mc._visible = true; }; upgradeArmour.onRollOver = function () { frame_mc.gotoAndStop(2); frame_mc.upgradeName = namaUpgrade[2]; frame_mc.upgradeLevel = 'Level ' + baseDefense; frame_mc.upgradeEfek = 'Defense Plus ' + baseDefense * 2; zcost = hargaUpgrade[2] * baseDefense; if (zcost == 1) { frame_mc.upgradeCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.upgradeCost = 'Cost ' + zcost + ' Points'; } frame_mc._visible = true; }; upgradeSpeed.onRollOver = function () { frame_mc.gotoAndStop(2); frame_mc.upgradeName = namaUpgrade[3]; frame_mc.upgradeLevel = 'Level ' + characterSpeed; frame_mc.upgradeEfek = 'Speed Plus ' + characterSpeed; zcost = hargaUpgrade[3] * characterSpeed; if (zcost == 1) { frame_mc.upgradeCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.upgradeCost = 'Cost ' + zcost + ' Points'; } frame_mc._visible = true; }; upgradePower.onRollOver = function () { frame_mc.gotoAndStop(2); frame_mc.upgradeName = namaUpgrade[4]; frame_mc.upgradeLevel = 'Level ' + characterPower; frame_mc.upgradeEfek = 'Power Plus ' + characterPower; zcost = hargaUpgrade[4] * characterPower; if (zcost == 1) { frame_mc.upgradeCost = 'Cost ' + zcost + ' Point'; } else { frame_mc.upgradeCost = 'Cost ' + zcost + ' Points'; } frame_mc._visible = true; }; upgradePower.onRollOut = function () { frame_mc._visible = false; }; upgradeSpeed.onRollOut = upgradePower.onRollOut; upgradeArmour.onRollOut = upgradePower.onRollOut; upgradeLife.onRollOut = upgradePower.onRollOut; cekSenjata(); cekWeapons(); } movieClip 3676 { frame 1 { stop(); } } movieClip 3678 { frame 1 { stop(); } } movieClip 3680 { frame 1 { stop(); } } movieClip 3682 { frame 1 { stop(); } } movieClip 3685 { frame 1 { stop(); } } movieClip 3687 { frame 1 { stop(); } } movieClip 3689 { frame 1 { stop(); } } movieClip 3691 { frame 1 { stop(); } } movieClip 3693 { frame 1 { stop(); } } movieClip 3695 { frame 1 { stop(); } } movieClip 3697 { } movieClip 3699 { frame 1 { stop(); } } movieClip 3701 { frame 1 { stop(); } } movieClip 3703 { frame 1 { stop(); } } movieClip 3706 { frame 1 { stop(); } } movieClip 3709 { frame 1 { stop(); } } movieClip 3711 { frame 1 { stop(); } } movieClip 3713 { frame 1 { stop(); } } movieClip 3716 { frame 1 { stop(); } } movieClip 3718 { frame 1 { stop(); } } movieClip 3720 { frame 1 { stop(); } } movieClip 3722 { frame 1 { stop(); } } movieClip 3746 { } movieClip 3750 { } movieClip 3753 { } movieClip 3756 { } movieClip 3759 { } movieClip 3762 { } movieClip 3765 { } movieClip 3768 { } movieClip 3771 { } movieClip 3773 { frame 1 { stop(); } } movieClip 3776 { frame 1 { stop(); } } movieClip 3778 { frame 1 { stop(); } } movieClip 3781 { frame 1 { stop(); } } instance of movieClip 102 { onClipEvent (release) { getURL('http://armorgames.com/', '_blank'); } } frame 433 { stop(); myMusic.setVolume(volume1 / 5); more_btn.onRelease = function () { getURL('http://armorgames.com/', '_blank'); }; next_btn.onRelease = function () { ++pilihLevel; cekMedalDapat(); simpanData(); gotoAndStop(432); }; if (perfectBonus == 100) { bonusPerfect = pilihLevel * waktuMundur * 5; ++basePerfect; } else { bonusPerfect = 0; } bonusTime = waktuMundur * jumlahBonus; if (perfectBonus == 100) { bonusExp = 10 + Math.ceil(pilihLevel); } else { bonusExp = 8 + Math.ceil(pilihLevel); } xscore += bonusTime + bonusPerfect; exp += bonusExp; xscore = Math.ceil(xscore); exp = Math.ceil(exp); zzscore = xscore; zzexp = exp; } instance of movieClip 102 { onClipEvent (release) { getURL('http://armorgames.com/', '_blank'); } } frame 434 { stop(); myMusic.setVolume(volume1 / 5); more_btn.onRelease = function () { getURL('http://armorgames.com/', '_blank'); }; quit_btn.onRelease = function () { backMenu(); gotoAndStop(421); }; } instance of movieClip 102 { onClipEvent (release) { getURL('http://armorgames.com/', '_blank'); } } frame 435 { stop(); backMenu(); cekMedalDapat(); more_btn.onRelease = function () { getURL('http://armorgames.com/', '_blank'); }; quit_btn.onRelease = function () { backMenu(); initData(); simpanData(); gotoAndStop(421); }; if (perfectBonus == 100) { bonusPerfect = pilihLevel * waktuMundur * 5; ++basePerfect; } else { bonusPerfect = 0; } bonusTime = waktuMundur * jumlahBonus; if (perfectBonus == 100) { bonusExp = 7 + Math.ceil(pilihLevel / 2); } else { bonusExp = 5 + Math.ceil(pilihLevel / 2); } xscore += (bonusTime + bonusPerfect) * 2; exp += bonusExp; xscore = Math.ceil(xscore); exp = Math.ceil(exp); zzscore = xscore; zzexp = exp; } instance of movieClip 102 { onClipEvent (release) { getURL('http://armorgames.com/', '_blank'); } }




https://swfchan.com/54/268075/info.shtml
Created: 12/6 -2026 20:43:07 Last modified: 12/6 -2026 20:43:07 Server time: 15/06 -2026 20:36:36