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

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

Castle Hero - sequel of Age of Defense strategy game.swf

This is the info page for
Flash #91961

(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 100 { } movieClip 117 { } movieClip 119 { } movieClip 130 { frame 20 { _root.cekBerkurangBase(this._parent); } frame 21 { _root.backPukul(); } } movieClip 141 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 142 musuh1 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 156 { } movieClip 167 { frame 22 { _root.cekBerkurangBase(this._parent); } frame 24 { _root.backGada(); } } movieClip 179 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 180 musuh2 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 200 { } movieClip 218 { frame 23 { _root.cekKetapelBatu(this._parent); } frame 24 { _root.backKetapel(); } } movieClip 228 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 229 musuh3 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 268 { } movieClip 277 { frame 29 { _root.cekBatuBesar(this._parent); } frame 30 { _root.backKetapel(); } } movieClip 290 { frame 17 { stop(); removeMovieClip(this._parent); } } movieClip 291 musuh4 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 306 { } movieClip 314 { frame 19 { _root.cekBerkurangBase(this._parent); } frame 20 { _root.backPukul(); } } movieClip 324 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 325 musuh5 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 341 { } movieClip 354 { frame 36 { _root.cekLemparBatu(this._parent); } frame 37 { _root.backKetapel(); } } movieClip 366 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 368 musuh6 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 376 { } movieClip 396 { frame 37 { _root.cekSihirApi(this._parent); } frame 38 { _root.backSihir(); } } movieClip 405 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 406 musuh7 { frame 1 { stop(); } } movieClip 429 { } movieClip 456 { frame 40 { _root.backApi(); } frame 55 { _root.cekBerkurangBase(this._parent); } } movieClip 462 { frame 25 { stop(); removeMovieClip(this._parent); } } movieClip 463 musuh8 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 480 { } movieClip 492 { frame 24 { _root.backSerang(); } frame 29 { _root.cekBerkurangBase(this._parent); } } movieClip 503 { frame 50 { stop(); removeMovieClip(this._parent); } } movieClip 504 musuh9 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 512 { } movieClip 528 { frame 23 { _root.backDobrak(); } frame 25 { _root.cekBerkurangBase(this._parent); } } movieClip 537 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 538 musuh10 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 547 { } movieClip 552 { frame 14 { _root.backAngin(); } frame 15 { _root.cekPusar(this._parent); } } movieClip 567 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 568 musuh11 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 571 { } movieClip 598 { } movieClip 601 { } movieClip 607 { } movieClip 611 { } movieClip 616 { } movieClip 620 { } movieClip 624 { } movieClip 628 { } movieClip 632 { } movieClip 637 { } movieClip 639 { } movieClip 651 { frame 30 { _root.cekPanahApiBurung(this._parent); } frame 31 { _root.backPanah(); } } movieClip 667 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 669 musuh12 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 673 { } movieClip 682 { } movieClip 686 { } movieClip 690 { } movieClip 693 { } movieClip 697 { } movieClip 704 { } movieClip 706 { } movieClip 718 { } movieClip 721 { } movieClip 724 { } movieClip 726 { } movieClip 729 { frame 21 { _root.cekBerkurangBase(this._parent); } frame 22 { _root.backHidra(); } } movieClip 732 { } movieClip 734 { } movieClip 742 { frame 36 { stop(); removeMovieClip(this._parent); } } movieClip 743 musuh13 { frame 1 { stop(); } } movieClip 775 { } movieClip 784 { frame 15 { _root.cekPanahDatar(this._parent); } frame 16 { _root.backPanah(); } } movieClip 795 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 797 musuh14 { frame 1 { stop(); } frame 3 { _root.backKuda(); } } movieClip 815 { } movieClip 824 { } movieClip 844 { } movieClip 847 { frame 15 { _root.backMedusa(); } frame 35 { _root.cekBerkurangBase(this._parent); } } movieClip 862 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 864 musuh15 { frame 1 { stop(); } } movieClip 867 { } movieClip 874 { } movieClip 878 { } movieClip 882 { } movieClip 886 { } movieClip 890 { } movieClip 894 { } movieClip 898 { } movieClip 902 { } movieClip 904 { } movieClip 914 { frame 10 { _root.backPhonix(); } frame 30 { _root.cekBolaApi(this._parent); } } movieClip 922 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 924 musuh16 { frame 1 { stop(); } } movieClip 942 { } movieClip 953 { frame 24 { _root.cekBerkurangBase(this._parent); } frame 26 { _root.backPedang(); } } movieClip 969 { frame 50 { stop(); removeMovieClip(this._parent); } } movieClip 970 musuh17 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 988 { } movieClip 997 { frame 15 { _root.cekPanahDatar(this._parent); } frame 16 { _root.backPanah(); } } movieClip 1010 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1012 musuh18 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1046 { } movieClip 1054 { frame 14 { _root.backSerang(); } frame 15 { _root.cekBerkurangBase(this._parent); } } movieClip 1065 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1066 musuh19 { frame 1 { stop(); } frame 3 { _root.backKuda(); } } movieClip 1072 { } movieClip 1078 { 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 1109 { frame 33 { removeMovieClip(this); } } movieClip 1110 { frame 15 { stop(); removeMovieClip(this._parent); } } movieClip 1112 musuh20 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1130 { } movieClip 1141 { frame 21 { _root.backPedang(); } frame 22 { _root.cekBerkurangBase(this._parent); } } movieClip 1154 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1155 musuh21 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1172 { } movieClip 1180 { frame 17 { _root.cekPanahDatar(this._parent); } frame 18 { _root.backPanahBesar(); } } movieClip 1192 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1193 musuh22 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1210 { } movieClip 1218 { frame 16 { _root.backRifle2(); } frame 18 { _root.cekBerkurangBase(this._parent); } } movieClip 1229 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 1230 musuh23 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1238 { } movieClip 1245 { 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 1248 { frame 20 { stop(); removeMovieClip(this._parent); } } movieClip 1250 musuh24 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1269 { } movieClip 1282 { 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 1293 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 1295 musuh25 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1312 { } movieClip 1337 { } movieClip 1343 { } movieClip 1344 { frame 28 { _root.backMortar(); } frame 31 { _root.cekRocket(this._parent); } } movieClip 1355 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1357 musuh26 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1368 { } movieClip 1375 { frame 22 { _root.cekPanahDatar2(this._parent); } frame 23 { _root.backRocket(); } } movieClip 1386 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 1388 musuh27 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1395 { } movieClip 1399 { } movieClip 1400 { frame 9 { _root.backKeluarBomb(); } frame 10 { _root.cekBomber(this._parent); } } movieClip 1403 { frame 15 { stop(); removeMovieClip(this._parent); } } movieClip 1405 musuh28 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1416 { } movieClip 1429 { } movieClip 1445 { frame 18 { _root.backSaber(); } frame 19 { _root.cekBerkurangBase(this._parent); } } movieClip 1461 { } movieClip 1469 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 1470 musuh29 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1486 { } movieClip 1493 { } movieClip 1502 { } movieClip 1516 { } movieClip 1547 { } movieClip 1548 { frame 18 { _root.cekBerkurangBase(this._parent); } frame 19 { _root.backGelombang(); } } movieClip 1559 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1560 musuh30 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1577 { } movieClip 1605 { frame 20 { _root.backLaser(); } frame 40 { _root.cekBerkurangBase(this._parent); } } movieClip 1616 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1617 musuh31 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1624 { } movieClip 1628 { } movieClip 1631 { } movieClip 1632 { frame 5 { _root.backMisil(); } frame 13 { _root.backLaser(); } frame 20 { _root.cekBerkurangBase(this._parent); } frame 25 { _root.cekBerkurangBase(this._parent); } } movieClip 1635 { frame 15 { stop(); removeMovieClip(this._parent); } } movieClip 1637 musuh32 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1641 { } movieClip 1643 lempar1 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1645 batuKecil { } movieClip 1647 batuBesar { } movieClip 1650 apiMagic { } movieClip 1653 lempar2 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1656 lempar3 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1659 lempar4 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1662 { } movieClip 1663 lempar5 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1668 { } movieClip 1669 { } movieClip 1670 lempar6 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1672 { } movieClip 1673 panah1 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1674 panah5 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1675 { } movieClip 1676 panah6 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1677 { } movieClip 1678 panah7 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1680 gun1 { frame 1 { stop(); } frame 2 { play(); } frame 5 { removeMovieClip(this); } } movieClip 1684 gun2 { frame 1 { stop(); } frame 2 { play(); } frame 5 { removeMovieClip(this); } } movieClip 1688 gun3 { frame 1 { stop(); } frame 2 { play(); } frame 8 { removeMovieClip(this); } } movieClip 1699 pusaran { } movieClip 1701 panahApi { frame 1 { stop(); } frame 30 { removeMovieClip(this); } } movieClip 1703 panahDatar { frame 1 { stop(); } frame 30 { removeMovieClip(this); } } movieClip 1705 panahBanyak { } movieClip 1708 bomb { } movieClip 1709 efekAsap { frame 19 { removeMovieClip(this); } } movieClip 1710 { } movieClip 1741 { frame 67 { stop(); } } movieClip 1742 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 1765 { frame 30 { removeMovieClip(this); } } movieClip 1766 efekLedak { frame 30 { removeMovieClip(this); } } movieClip 1777 { frame 10 { removeMovieClip(this); } } movieClip 1778 efekKena { frame 10 { removeMovieClip(this); } } movieClip 1816 { frame 65 { removeMovieClip(this); } } movieClip 1817 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 1848 { frame 55 { stop(); } } movieClip 1849 efekPetir { frame 45 { removeMovieClip(this); } } movieClip 1870 { frame 16 { stop(); } } movieClip 1871 efekDarah { } movieClip 1878 { frame 1 { stop(); } } movieClip 1885 { frame 1 { stop(); } } movieClip 1892 { frame 1 { stop(); } } movieClip 1899 { frame 1 { stop(); } } movieClip 1906 { frame 1 { stop(); } } movieClip 1913 { frame 1 { stop(); } } movieClip 1920 { frame 1 { stop(); } } movieClip 1927 { frame 1 { stop(); } } movieClip 1928 base_mc { frame 1 { stop(); } } movieClip 1940 { } movieClip 1942 { } movieClip 1944 { } movieClip 1946 { } movieClip 1948 { } movieClip 1949 { frame 1 { stop(); } } movieClip 1968 { frame 17 { stop(); } frame 19 { play(); } frame 25 { _root.cekBatu(); } frame 32 { _parent.gotoAndStop(1); } } movieClip 1976 { frame 14 { stop(); } frame 15 { play(); } frame 17 { _root.cekBatu(); } frame 26 { _parent.gotoAndStop(1); } } movieClip 1984 { frame 14 { stop(); } frame 16 { play(); } frame 18 { _root.cekBatu(); } frame 30 { _parent.gotoAndStop(1); } } movieClip 2008 { frame 8 { stop(); } frame 10 { play(); } frame 11 { _root.cekBatu(); } frame 22 { _parent.gotoAndStop(1); } } movieClip 2023 { frame 15 { stop(); } frame 17 { play(); } frame 19 { _root.cekBatu(); } frame 27 { _parent.gotoAndStop(1); } } movieClip 2029 { frame 13 { stop(); } frame 15 { play(); } frame 17 { _root.cekBatu(); } frame 25 { _parent.gotoAndStop(1); } } movieClip 2042 { } movieClip 2051 { frame 23 { stop(); } } movieClip 2052 { frame 1 { stop(); } frame 3 { play(); } frame 6 { _root.cekPanah(); } frame 20 { gotoAndStop(1); } } movieClip 2065 { } movieClip 2069 { } movieClip 2070 { frame 1 { stop(); } frame 3 { play(); } frame 6 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2082 { } movieClip 2086 { } movieClip 2087 { frame 1 { stop(); } frame 3 { play(); } frame 6 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2090 { } movieClip 2093 { } movieClip 2094 { frame 1 { stop(); } frame 3 { play(); } frame 5 { _root.cekGun(); } frame 10 { if (_root.masihPress == true) { gotoAndStop('lanjut'); } else { gotoAndStop(1); } } } movieClip 2104 { } movieClip 2106 { } movieClip 2107 { frame 1 { stop(); } frame 3 { play(); } frame 8 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2110 { } movieClip 2112 { } movieClip 2113 { frame 1 { stop(); } frame 3 { play(); } frame 8 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2116 { } movieClip 2120 { } movieClip 2121 { frame 1 { stop(); } frame 3 { play(); } frame 16 { _root.cekGun2(); } frame 25 { gotoAndStop(1); } } movieClip 2126 { frame 9 { _root.cekBatu('special'); } frame 20 { _parent.gotoAndStop(1); } } movieClip 2130 { frame 9 { _root.cekBatu('special'); } frame 18 { _parent.gotoAndStop(1); } } movieClip 2134 { frame 9 { _root.cekBatu('special'); } frame 21 { _parent.gotoAndStop(1); } } movieClip 2152 { frame 40 { stop(); } } movieClip 2153 lakon_mc { frame 1 { stop(); _root.sedangTekan = false; } instance of movieClip 2126 { } instance of movieClip 2130 { } instance of movieClip 2134 { } } movieClip 2167 { frame 1 { stop(); } } // unknown tag 88 length 18 // unknown tag 88 length 11 movieClip 2173 { } movieClip 2176 { } movieClip 2177 { } movieClip 2186 { frame 1 { stop(); } } movieClip 2189 { } movieClip 2194 ui_mc { } movieClip 2196 lempar7 { frame 1 { stop(); } frame 2 { play(); } frame 15 { stop(); _root.cekMeledak(this, 3); removeMovieClip(this); } } movieClip 2198 lempar8 { frame 1 { stop(); } frame 2 { play(); } frame 7 { stop(); _root.cekMeledak(this, 4); removeMovieClip(this); } } movieClip 2200 lempar9 { frame 1 { stop(); } frame 2 { stop(); _root.cekMeledak(this, 5); removeMovieClip(this); } } movieClip 2219 { frame 31 { removeMovieClip(this); } } movieClip 2220 efekDahsyat { frame 30 { removeMovieClip(this); } } movieClip 2223 es_mc { } movieClip 2234 { } movieClip 2235 meteor_mc { } movieClip 2238 { } movieClip 2248 { } movieClip 2251 { } movieClip 2252 petir_mc { frame 28 { removeMovieClip(this); } } movieClip 2263 { frame 1 { stop(); } } movieClip 2268 { frame 1 { stop(); } } movieClip 2269 { frame 1 { stop(); } } movieClip 2275 { } movieClip 2278 { } movieClip 2279 { } movieClip 2282 { } button 2283 { on (release) { getURL('http://www.belugerinstudios.com', '_blank'); } } movieClip 2286 { } movieClip 2290 { } movieClip 2292 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 2295 ketapel_mc { frame 1 { stop(); } frame 2 { removeMovieClip(this); } } movieClip 2298 hujanPanah_mc { } movieClip 2308 { } movieClip 2309 puyuh_mc { } movieClip 2312 { } movieClip 2313 laser_mc { frame 30 { removeMovieClip(this); } } movieClip 2316 bom_mc { } movieClip 2322 { } movieClip 2325 { } movieClip 2335 { } movieClip 2337 { } movieClip 2339 { } movieClip 2341 { } movieClip 2349 { } movieClip 2351 { } movieClip 2352 { } movieClip 2355 { } movieClip 2358 { } movieClip 2361 { } movieClip 2364 { } movieClip 2378 { } movieClip 2383 { frame 1 { play(); } frame 9 { this._parent.kena = true; } frame 13 { this._parent.kena = false; } frame 50 { this._parent.gotoAndStop(1); } } movieClip 2384 creature1 { frame 1 { stop(); this.kena = false; this.jalan = true; } frame 2 { this.jalan = false; } } movieClip 2387 { } movieClip 2390 { } movieClip 2393 { } movieClip 2404 { } movieClip 2408 { } movieClip 2412 { } movieClip 2414 { } movieClip 2415 { } movieClip 2416 { } movieClip 2419 { } movieClip 2421 { } movieClip 2423 { } movieClip 2425 { } movieClip 2431 { frame 1 { play(); } frame 35 { this._parent.kena = true; } frame 40 { this._parent.kena = false; } frame 50 { this._parent.gotoAndStop(1); } } movieClip 2432 creature2 { frame 1 { stop(); this.kena = false; this.jalan = true; } frame 2 { this.jalan = false; } } movieClip 2451 { } movieClip 2460 { 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 2461 creature3 { frame 1 { stop(); this.kena = false; this.jalan = true; } frame 2 { this.jalan = false; } } movieClip 2467 badai_mc { } movieClip 2470 { } movieClip 2473 { } movieClip 2476 { } movieClip 2481 { } movieClip 2484 { } movieClip 2487 { } movieClip 2498 { } movieClip 2506 { } movieClip 2507 creature4 { frame 1 { stop(); } } movieClip 2527 { } movieClip 2542 { 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 2543 creature5 { frame 1 { stop(); this.kena = false; this.jalan = true; } frame 2 { this.jalan = false; } } movieClip 2549 { } movieClip 2550 { 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 2551 creature6 { frame 1 { stop(); this.kena = false; this.jalan = true; } } movieClip 2570 { } movieClip 2581 { } movieClip 2594 creature7 { } movieClip 2601 { } movieClip 2606 { } movieClip 2654 { } movieClip 2655 { } movieClip 2656 { frame 150 { _parent.gotoAndStop(3); } } movieClip 2671 { } movieClip 2675 { 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 2676 creature8 { frame 1 { stop(); this.kena = false; this.jalan = true; } frame 2 { this.jalan = false; } } movieClip 2679 { } movieClip 2682 { } movieClip 2685 { } movieClip 2688 { } movieClip 2691 { } movieClip 2704 { } movieClip 2708 { } movieClip 2714 { } movieClip 2717 { } movieClip 2720 { } movieClip 2723 { } movieClip 2726 { } movieClip 2750 { } movieClip 2758 { frame 30 { _root.cekBerkurangBase(this._parent); } } movieClip 2770 { } movieClip 2778 { } movieClip 2786 { } movieClip 2803 { } movieClip 2805 { 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 2821 { frame 49 { _root.cekBerkurangBase(this._parent); } } movieClip 2852 { } movieClip 2863 { } movieClip 2866 { } movieClip 2878 { frame 43 { _root.cekBerkurangBase(this._parent); } } movieClip 2879 bigboss_mc { frame 1 { stop(); } } movieClip 2882 { } movieClip 2885 { } movieClip 2888 { } movieClip 2891 { } movieClip 2905 { } movieClip 2909 { } movieClip 2924 { frame 50 { stop(); } } movieClip 2932 { frame 25 { _root.cekBerkurangBase(this._parent); } frame 26 { _root.backPukul(); } } movieClip 2933 boss1 { frame 1 { stop(); } } movieClip 2936 { } movieClip 2939 { } movieClip 2942 { } movieClip 2945 { } movieClip 2948 { } movieClip 2955 { } movieClip 2983 { } movieClip 2991 { frame 31 { stop(); } } movieClip 2998 { frame 42 { _root.cekBolaApi(this._parent); } } movieClip 2999 boss2 { frame 1 { stop(); } } movieClip 3005 { } movieClip 3008 { } movieClip 3029 { } movieClip 3042 { } movieClip 3054 { } movieClip 3055 { frame 1 { stop(); } } movieClip 3056 { frame 1 { stop(); } } movieClip 3079 { frame 40 { stop(); } } movieClip 3102 { frame 30 { stop(); } } movieClip 3121 { frame 29 { stop(); } } movieClip 3122 { frame 1 { stop(); } } movieClip 3140 { frame 20 { _root.cekBerkurangBase(this._parent._parent); } } movieClip 3152 { frame 20 { _root.cekBerkurangBase(this._parent._parent); } } movieClip 3160 { frame 20 { _root.cekBerkurangBase(this._parent._parent); } } movieClip 3161 { frame 1 { stop(); } } movieClip 3162 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 == 'belugerinstudios.com') { play_btn.enabled = false; gotoAndStop(16); } else { play_btn.enabled = false; gotoAndStop(16); } }; } movieClip 3213 { frame 1 { stop(); } } frame 16 { play(); } movieClip 3241 { } movieClip 3249 { } movieClip 3261 { frame 175 { stop(); } } movieClip 3268 { } movieClip 3272 { frame 175 { stop(); } } // unknown tag 88 length 197 movieClip 3280 { } movieClip 3281 { frame 1 { this.onPress = function () { getURL('http://www.belugerinstudios.com', '_blank'); }; } frame 185 { stop(); } } frame 200 { stop(); backMenu(); gotoAndStop(201); } frame 201 { 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(203); }; petunjuk_mc.no_btn.onRelease = function () { petunjuk_mc._visible = false; }; } else { initData(); simpanData(); asalMana = 'new'; gotoAndStop(203); } }; continue_btn.onRelease = function () { if (pilihLevel >= 2) { loadData(); backMusic(); gotoAndStop(212); } else { petunjuk_mc._visible = true; petunjuk_mc.gotoAndStop(2); petunjuk_mc.oke_btn.onRelease = function () { petunjuk_mc._visible = false; }; } }; option_btn.onRelease = function () { gotoAndStop(202); }; credits_btn.onRelease = function () { gotoAndStop(209); }; instructions_btn.onRelease = function () { asalMana = 'instruction'; gotoAndStop(203); }; achievements_btn.onRelease = function () { gotoAndStop(210); }; more_btn.onRelease = function () { getURL('http://www.belugerinstudios.com/', '_blank'); }; } movieClip 3288 { } movieClip 3292 { } movieClip 3296 { } movieClip 3300 { } movieClip 3304 { } movieClip 3308 { } movieClip 3312 { } movieClip 3320 { } movieClip 3324 { } movieClip 3330 { } movieClip 3332 { frame 1 { stop(); } } frame 202 { 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(201); }; clear_btn.onRelease = function () { petunjuk_mc2._visible = true; petunjuk_mc2.yes_btn.onRelease = function () { initData(); initMedal(); simpanData(); simpanMedal(); gotoAndStop(201); }; 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 3335 { } movieClip 3339 { } movieClip 3349 { } frame 203 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { gotoAndStop(201); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 3355 { } movieClip 3359 { } frame 204 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 3369 { frame 20 { stop(); } } movieClip 3377 { } frame 205 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 3379 { } movieClip 3385 { } movieClip 3386 { } frame 206 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 3389 { } frame 207 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { // An attempt to read a value from empty stack }; } movieClip 3397 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 3400 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 3404 { } movieClip 3407 { } movieClip 3409 { } movieClip 3415 { frame 1 { stop(); } } movieClip 3418 { frame 1 { stop(); } } movieClip 3421 { frame 1 { stop(); } } movieClip 3424 { frame 1 { stop(); } } movieClip 3427 { frame 1 { stop(); } } movieClip 3430 { frame 1 { stop(); } } movieClip 3433 { frame 1 { stop(); } } movieClip 3436 { frame 1 { stop(); } } movieClip 3442 { } movieClip 3443 { frame 1 { stop(); } } movieClip 3445 { } movieClip 3446 { frame 1 { stop(); } } movieClip 3449 { frame 1 { stop(); } } movieClip 3451 { frame 1 { stop(); } } movieClip 3453 { frame 1 { stop(); } } movieClip 3455 { frame 1 { stop(); } } frame 208 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; yes_btn.onRelease = function () { backMusic(); gotoAndStop(211); }; no_btn.onRelease = function () { gotoAndStop(201); }; } frame 209 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; } movieClip 3487 { } instance of movieClip 3487 { onClipEvent (release) { getURL('http://waterflame.newgrounds.com/', '_blank'); } } movieClip 3490 { } instance of movieClip 3490 { onClipEvent (release) { getURL('http://awakendreams.weebly.com/', '_blank'); } } movieClip 3493 { } instance of movieClip 3493 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 3496 { } instance of movieClip 3496 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 3499 { } instance of movieClip 3499 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 3502 { } instance of movieClip 3502 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } frame 210 { 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(201); }; 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 3507 { } movieClip 3510 { } movieClip 3513 { } movieClip 3516 { } movieClip 3519 { } movieClip 3522 { } movieClip 3525 { } movieClip 3528 { } movieClip 3530 { } movieClip 3533 { } movieClip 3536 { } movieClip 3539 { } movieClip 3542 { } movieClip 3545 { } movieClip 3548 { } movieClip 3551 { } movieClip 3554 { } movieClip 3557 { } 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 3622 { frame 1 { stop(); } } frame 211 { 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(201); }; } } 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(215); } else { gotoAndStop(213); } } } function kalahLevel() { clearSemua(); gotoAndStop(214); } 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 3639 { frame 1 { stop(); } } frame 212 { 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://www.belugerinstudios.com/', '_blank'); }; next_btn.onRelease = function () { delete _root.onEnterFrame; cekMedalDapat(); gotoAndStop(211); }; 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(201); }; 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 3646 { frame 1 { stop(); } } movieClip 3648 { frame 1 { stop(); } } movieClip 3650 { frame 1 { stop(); } } movieClip 3652 { frame 1 { stop(); } } movieClip 3655 { frame 1 { stop(); } } movieClip 3657 { frame 1 { stop(); } } movieClip 3659 { frame 1 { stop(); } } movieClip 3661 { frame 1 { stop(); } } movieClip 3663 { frame 1 { stop(); } } movieClip 3665 { frame 1 { stop(); } } movieClip 3667 { } movieClip 3669 { frame 1 { stop(); } } movieClip 3671 { frame 1 { stop(); } } movieClip 3673 { frame 1 { stop(); } } movieClip 3676 { frame 1 { stop(); } } movieClip 3679 { frame 1 { stop(); } } movieClip 3681 { frame 1 { stop(); } } movieClip 3683 { frame 1 { stop(); } } movieClip 3686 { frame 1 { stop(); } } movieClip 3688 { frame 1 { stop(); } } movieClip 3690 { frame 1 { stop(); } } movieClip 3692 { frame 1 { stop(); } } movieClip 3716 { } movieClip 3720 { } movieClip 3723 { } movieClip 3726 { } movieClip 3729 { } movieClip 3732 { } movieClip 3735 { } movieClip 3738 { } movieClip 3741 { } movieClip 3743 { frame 1 { stop(); } } movieClip 3746 { frame 1 { stop(); } } movieClip 3748 { frame 1 { stop(); } } movieClip 3751 { frame 1 { stop(); } } frame 213 { stop(); myMusic.setVolume(volume1 / 5); more_btn.onRelease = function () { getURL('http://www.belugerinstudios.com/', '_blank'); }; next_btn.onRelease = function () { ++pilihLevel; cekMedalDapat(); simpanData(); gotoAndStop(212); }; 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; } frame 214 { stop(); myMusic.setVolume(volume1 / 5); more_btn.onRelease = function () { getURL('http://www.belugerinstudios.com/', '_blank'); }; quit_btn.onRelease = function () { backMenu(); gotoAndStop(201); }; } frame 215 { stop(); backMenu(); cekMedalDapat(); more_btn.onRelease = function () { getURL('http://www.belugerinstudios.com/', '_blank'); }; quit_btn.onRelease = function () { backMenu(); initData(); simpanData(); gotoAndStop(201); }; 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; }




http://swfchan.com/19/91961/info.shtml
Created: 2/11 -2018 01:48:36 Last modified: 2/11 -2018 01:48:36 Server time: 03/05 -2024 04:29:20