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

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

Age of Defense - cool and addicting action defense game.swf

This is the info page for
Flash #92625

(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 = '3054Q03002F47'; 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 = 40; 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 12 { } movieClip 13 { frame 1 { stop(); } } movieClip 23 { } movieClip 30 { } movieClip 32 { } movieClip 39 { } movieClip 45 { } movieClip 54 { } movieClip 62 { } movieClip 73 { } movieClip 79 { } movieClip 88 { } movieClip 91 { } movieClip 92 { frame 1 { this.onPress = function () { getURL('http://www.belugerinstudios.com/', '_blank'); }; } } // unknown tag 88 length 84 movieClip 99 { } movieClip 116 { } movieClip 118 { } movieClip 129 { frame 20 { _root.cekBerkurangBase(this._parent); } frame 21 { _root.backPukul(); } } movieClip 140 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 141 musuh1 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 155 { } movieClip 166 { frame 22 { _root.cekBerkurangBase(this._parent); } frame 24 { _root.backGada(); } } movieClip 178 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 179 musuh2 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 199 { } movieClip 217 { frame 23 { _root.cekKetapelBatu(this._parent); } frame 24 { _root.backKetapel(); } } movieClip 227 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 228 musuh3 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 267 { } movieClip 276 { frame 29 { _root.cekBatuBesar(this._parent); } frame 30 { _root.backKetapel(); } } movieClip 289 { frame 17 { stop(); removeMovieClip(this._parent); } } movieClip 290 musuh4 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 305 { } movieClip 313 { frame 19 { _root.cekBerkurangBase(this._parent); } frame 20 { _root.backPukul(); } } movieClip 323 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 324 musuh5 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 340 { } movieClip 353 { frame 36 { _root.cekLemparBatu(this._parent); } frame 37 { _root.backKetapel(); } } movieClip 365 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 367 musuh6 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 375 { } movieClip 395 { frame 37 { _root.cekSihirApi(this._parent); } frame 38 { _root.backSihir(); } } movieClip 404 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 405 musuh7 { frame 1 { stop(); } } movieClip 428 { } movieClip 455 { frame 40 { _root.backApi(); } frame 55 { _root.cekBerkurangBase(this._parent); } } movieClip 461 { frame 25 { stop(); removeMovieClip(this._parent); } } movieClip 462 musuh8 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 479 { } movieClip 491 { frame 24 { _root.backSerang(); } frame 29 { _root.cekBerkurangBase(this._parent); } } movieClip 502 { frame 50 { stop(); removeMovieClip(this._parent); } } movieClip 503 musuh9 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 511 { } movieClip 527 { frame 23 { _root.backDobrak(); } frame 25 { _root.cekBerkurangBase(this._parent); } } movieClip 536 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 537 musuh10 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 546 { } movieClip 551 { frame 14 { _root.backAngin(); } frame 15 { _root.cekPusar(this._parent); } } movieClip 566 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 567 musuh11 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 570 { } movieClip 597 { } movieClip 600 { } movieClip 606 { } movieClip 610 { } movieClip 615 { } movieClip 619 { } movieClip 623 { } movieClip 627 { } movieClip 631 { } movieClip 636 { } movieClip 638 { } movieClip 650 { frame 30 { _root.cekPanahApiBurung(this._parent); } frame 31 { _root.backPanah(); } } movieClip 666 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 668 musuh12 { frame 1 { stop(); } frame 3 { _root.backOgre(); } } movieClip 672 { } movieClip 681 { } movieClip 685 { } movieClip 689 { } movieClip 692 { } movieClip 696 { } movieClip 703 { } movieClip 705 { } movieClip 717 { } movieClip 720 { } movieClip 723 { } movieClip 725 { } movieClip 728 { frame 21 { _root.cekBerkurangBase(this._parent); } frame 22 { _root.backHidra(); } } movieClip 731 { } movieClip 733 { } movieClip 741 { frame 36 { stop(); removeMovieClip(this._parent); } } movieClip 742 musuh13 { frame 1 { stop(); } } movieClip 774 { } movieClip 783 { frame 15 { _root.cekPanahDatar(this._parent); } frame 16 { _root.backPanah(); } } movieClip 794 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 796 musuh14 { frame 1 { stop(); } frame 3 { _root.backKuda(); } } movieClip 814 { } movieClip 823 { } movieClip 843 { } movieClip 846 { frame 15 { _root.backMedusa(); } frame 35 { _root.cekBerkurangBase(this._parent); } } movieClip 861 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 863 musuh15 { frame 1 { stop(); } } movieClip 866 { } movieClip 873 { } movieClip 877 { } movieClip 881 { } movieClip 885 { } movieClip 889 { } movieClip 893 { } movieClip 897 { } movieClip 901 { } movieClip 903 { } movieClip 913 { frame 10 { _root.backPhonix(); } frame 30 { _root.cekBolaApi(this._parent); } } movieClip 921 { frame 30 { stop(); removeMovieClip(this._parent); } } movieClip 923 musuh16 { frame 1 { stop(); } } movieClip 941 { } movieClip 952 { frame 24 { _root.cekBerkurangBase(this._parent); } frame 26 { _root.backPedang(); } } movieClip 968 { frame 50 { stop(); removeMovieClip(this._parent); } } movieClip 969 musuh17 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 987 { } movieClip 996 { frame 15 { _root.cekPanahDatar(this._parent); } frame 16 { _root.backPanah(); } } movieClip 1009 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1011 musuh18 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1045 { } movieClip 1053 { frame 14 { _root.backSerang(); } frame 15 { _root.cekBerkurangBase(this._parent); } } movieClip 1064 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1065 musuh19 { frame 1 { stop(); } frame 3 { _root.backKuda(); } } movieClip 1071 { } movieClip 1077 { 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 1108 { frame 33 { removeMovieClip(this); } } movieClip 1109 { frame 15 { stop(); removeMovieClip(this._parent); } } movieClip 1111 musuh20 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1129 { } movieClip 1140 { frame 21 { _root.backPedang(); } frame 22 { _root.cekBerkurangBase(this._parent); } } movieClip 1153 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1154 musuh21 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1171 { } movieClip 1179 { frame 17 { _root.cekPanahDatar(this._parent); } frame 18 { _root.backPanahBesar(); } } movieClip 1191 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1192 musuh22 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1209 { } movieClip 1217 { frame 16 { _root.backRifle2(); } frame 18 { _root.cekBerkurangBase(this._parent); } } movieClip 1228 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 1229 musuh23 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1237 { } movieClip 1244 { 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 1247 { frame 20 { stop(); removeMovieClip(this._parent); } } movieClip 1249 musuh24 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1268 { } movieClip 1281 { 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 1292 { frame 35 { stop(); removeMovieClip(this._parent); } } movieClip 1294 musuh25 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1311 { } movieClip 1336 { } movieClip 1342 { } movieClip 1343 { frame 28 { _root.backMortar(); } frame 31 { _root.cekRocket(this._parent); } } movieClip 1354 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1356 musuh26 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1367 { } movieClip 1374 { frame 22 { _root.cekPanahDatar2(this._parent); } frame 23 { _root.backRocket(); } } movieClip 1385 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 1387 musuh27 { frame 1 { stop(); } frame 3 { _root.backMati(); } } movieClip 1394 { } movieClip 1398 { } movieClip 1399 { frame 9 { _root.backKeluarBomb(); } frame 10 { _root.cekBomber(this._parent); } } movieClip 1402 { frame 15 { stop(); removeMovieClip(this._parent); } } movieClip 1404 musuh28 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1415 { } movieClip 1428 { } movieClip 1444 { frame 18 { _root.backSaber(); } frame 19 { _root.cekBerkurangBase(this._parent); } } movieClip 1460 { } movieClip 1468 { frame 45 { stop(); removeMovieClip(this._parent); } } movieClip 1469 musuh29 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1485 { } movieClip 1492 { } movieClip 1501 { } movieClip 1515 { } movieClip 1546 { } movieClip 1547 { frame 18 { _root.cekBerkurangBase(this._parent); } frame 19 { _root.backGelombang(); } } movieClip 1558 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1559 musuh30 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1576 { } movieClip 1604 { frame 20 { _root.backLaser(); } frame 40 { _root.cekBerkurangBase(this._parent); } } movieClip 1615 { frame 40 { stop(); removeMovieClip(this._parent); } } movieClip 1616 musuh31 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1623 { } movieClip 1627 { } movieClip 1630 { } movieClip 1631 { frame 5 { _root.backMisil(); } frame 13 { _root.backLaser(); } frame 20 { _root.cekBerkurangBase(this._parent); } frame 25 { _root.cekBerkurangBase(this._parent); } } movieClip 1634 { frame 15 { stop(); removeMovieClip(this._parent); } } movieClip 1636 musuh32 { frame 1 { stop(); } frame 3 { _root.backLedak(); } } movieClip 1640 { } movieClip 1642 lempar1 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1644 batuKecil { } movieClip 1646 batuBesar { } movieClip 1649 apiMagic { } movieClip 1652 lempar2 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1655 lempar3 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1658 lempar4 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1661 { } movieClip 1662 lempar5 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1667 { } movieClip 1668 { } movieClip 1669 lempar6 { frame 1 { stop(); } frame 7 { stop(); removeMovieClip(this); } } movieClip 1671 { } movieClip 1672 panah1 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1673 panah5 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1674 { } movieClip 1675 panah6 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1676 { } movieClip 1677 panah7 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(this); } } movieClip 1679 gun1 { frame 1 { stop(); } frame 2 { play(); } frame 5 { removeMovieClip(this); } } movieClip 1683 gun2 { frame 1 { stop(); } frame 2 { play(); } frame 5 { removeMovieClip(this); } } movieClip 1687 gun3 { frame 1 { stop(); } frame 2 { play(); } frame 8 { removeMovieClip(this); } } movieClip 1698 pusaran { } movieClip 1700 panahApi { frame 1 { stop(); } frame 30 { removeMovieClip(this); } } movieClip 1702 panahDatar { frame 1 { stop(); } frame 30 { removeMovieClip(this); } } movieClip 1704 panahBanyak { } movieClip 1707 bomb { } movieClip 1708 efekAsap { frame 19 { removeMovieClip(this); } } movieClip 1709 { } movieClip 1740 { frame 67 { stop(); } } movieClip 1741 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 1764 { frame 30 { removeMovieClip(this); } } movieClip 1765 efekLedak { frame 30 { removeMovieClip(this); } } movieClip 1776 { frame 10 { removeMovieClip(this); } } movieClip 1777 efekKena { frame 10 { removeMovieClip(this); } } movieClip 1815 { frame 65 { removeMovieClip(this); } } movieClip 1816 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 1847 { frame 55 { stop(); } } movieClip 1848 efekPetir { frame 45 { removeMovieClip(this); } } movieClip 1869 { frame 16 { stop(); } } movieClip 1870 efekDarah { } movieClip 1877 { frame 1 { stop(); } } movieClip 1884 { frame 1 { stop(); } } movieClip 1891 { frame 1 { stop(); } } movieClip 1898 { frame 1 { stop(); } } movieClip 1905 { frame 1 { stop(); } } movieClip 1912 { frame 1 { stop(); } } movieClip 1919 { frame 1 { stop(); } } movieClip 1926 { frame 1 { stop(); } } movieClip 1927 base_mc { frame 1 { stop(); } } movieClip 1939 { } movieClip 1941 { } movieClip 1943 { } movieClip 1945 { } movieClip 1947 { } movieClip 1948 { frame 1 { stop(); } } movieClip 1967 { frame 17 { stop(); } frame 19 { play(); } frame 25 { _root.cekBatu(); } frame 32 { _parent.gotoAndStop(1); } } movieClip 1975 { frame 14 { stop(); } frame 15 { play(); } frame 17 { _root.cekBatu(); } frame 26 { _parent.gotoAndStop(1); } } movieClip 1983 { frame 14 { stop(); } frame 16 { play(); } frame 18 { _root.cekBatu(); } frame 30 { _parent.gotoAndStop(1); } } movieClip 2007 { frame 8 { stop(); } frame 10 { play(); } frame 11 { _root.cekBatu(); } frame 22 { _parent.gotoAndStop(1); } } movieClip 2022 { frame 15 { stop(); } frame 17 { play(); } frame 19 { _root.cekBatu(); } frame 32 { _parent.gotoAndStop(1); } } movieClip 2028 { frame 13 { stop(); } frame 15 { play(); } frame 17 { _root.cekBatu(); } frame 36 { _parent.gotoAndStop(1); } } movieClip 2041 { } movieClip 2050 { frame 23 { stop(); } } movieClip 2051 { frame 1 { stop(); } frame 3 { play(); } frame 6 { _root.cekPanah(); } frame 20 { gotoAndStop(1); } } movieClip 2064 { } movieClip 2068 { } movieClip 2069 { frame 1 { stop(); } frame 3 { play(); } frame 6 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2081 { } movieClip 2085 { } movieClip 2086 { frame 1 { stop(); } frame 3 { play(); } frame 6 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2089 { } movieClip 2092 { } movieClip 2093 { frame 1 { stop(); } frame 3 { play(); } frame 5 { _root.cekGun(); } frame 10 { if (_root.masihPress == true) { gotoAndStop('lanjut'); } else { gotoAndStop(1); } } } movieClip 2103 { } movieClip 2105 { } movieClip 2106 { frame 1 { stop(); } frame 3 { play(); } frame 8 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2109 { } movieClip 2111 { } movieClip 2112 { frame 1 { stop(); } frame 3 { play(); } frame 8 { _root.cekGun(); } frame 15 { gotoAndStop(1); } } movieClip 2115 { } movieClip 2119 { } movieClip 2120 { frame 1 { stop(); } frame 3 { play(); } frame 16 { _root.cekGun2(); } frame 25 { gotoAndStop(1); } } movieClip 2125 { frame 9 { _root.cekBatu('special'); } frame 20 { _parent.gotoAndStop(1); } } movieClip 2129 { frame 9 { _root.cekBatu('special'); } frame 18 { _parent.gotoAndStop(1); } } movieClip 2133 { frame 9 { _root.cekBatu('special'); } frame 21 { _parent.gotoAndStop(1); } } movieClip 2151 { frame 40 { stop(); } } movieClip 2152 lakon_mc { frame 1 { stop(); _root.sedangTekan = false; } instance of movieClip 2125 { } instance of movieClip 2129 { } instance of movieClip 2133 { } } movieClip 2158 { } // unknown tag 88 length 18 movieClip 2161 { } // unknown tag 88 length 11 movieClip 2172 { frame 1 { stop(); } } movieClip 2175 { } movieClip 2181 ui_mc { } movieClip 2183 lempar7 { frame 1 { stop(); } frame 2 { play(); } frame 15 { stop(); _root.cekMeledak(this, 3); removeMovieClip(this); } } movieClip 2185 lempar8 { frame 1 { stop(); } frame 2 { play(); } frame 7 { stop(); _root.cekMeledak(this, 4); removeMovieClip(this); } } movieClip 2187 lempar9 { frame 1 { stop(); } frame 2 { stop(); _root.cekMeledak(this, 5); removeMovieClip(this); } } movieClip 2206 { frame 31 { removeMovieClip(this); } } movieClip 2207 efekDahsyat { frame 30 { removeMovieClip(this); } } movieClip 2210 es_mc { } movieClip 2221 { } movieClip 2222 meteor_mc { } movieClip 2225 { } movieClip 2235 { } movieClip 2238 { } movieClip 2239 petir_mc { frame 28 { removeMovieClip(this); } } movieClip 2249 { frame 1 { stop(); } } movieClip 2254 { frame 1 { stop(); } } movieClip 2259 { frame 1 { stop(); } } movieClip 2265 { } movieClip 2268 { } movieClip 2269 { } movieClip 2272 { } button 2273 { on (release) { getURL('http://www.belugerinstudios.com', '_blank'); } } movieClip 2276 { } movieClip 2280 { } movieClip 2282 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 2285 ketapel_mc { frame 1 { stop(); } frame 2 { removeMovieClip(this); } } movieClip 2288 hujanPanah_mc { } movieClip 2298 { } movieClip 2299 puyuh_mc { } movieClip 2302 { } movieClip 2303 laser_mc { frame 30 { removeMovieClip(this); } } movieClip 2306 bom_mc { } 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 2357 { frame 1 { stop(); } } movieClip 2360 { } frame 16 { play(); } movieClip 2389 { } movieClip 2397 { } movieClip 2409 { frame 175 { stop(); } } movieClip 2416 { } movieClip 2420 { frame 175 { stop(); } } // unknown tag 88 length 197 movieClip 2428 { } movieClip 2429 { 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(213); } 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(210); }; instructions_btn.onRelease = function () { asalMana = 'instruction'; gotoAndStop(203); }; achievements_btn.onRelease = function () { gotoAndStop(211); }; more_btn.onRelease = function () { getURL('http://www.belugerinstudios.com/', '_blank'); }; } movieClip 2434 { } movieClip 2438 { } movieClip 2442 { } movieClip 2446 { } movieClip 2450 { } movieClip 2454 { } movieClip 2458 { } movieClip 2465 { } movieClip 2469 { } movieClip 2475 { } movieClip 2477 { 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 2484 { } movieClip 2487 { } movieClip 2491 { } movieClip 2495 { } frame 203 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { gotoAndStop(201); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 2498 { } movieClip 2503 { } movieClip 2507 { } frame 204 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 2517 { frame 20 { stop(); } } movieClip 2525 { } frame 205 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 2527 { } movieClip 2533 { } movieClip 2534 { } frame 206 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 2537 { } frame 207 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { nextFrame(); gotoAndStop(undefined); }; } movieClip 2545 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 2547 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 2551 { } movieClip 2554 { } movieClip 2556 { } movieClip 2562 { frame 1 { stop(); } } movieClip 2565 { frame 1 { stop(); } } movieClip 2568 { frame 1 { stop(); } } movieClip 2571 { frame 1 { stop(); } } movieClip 2574 { frame 1 { stop(); } } movieClip 2577 { frame 1 { stop(); } } movieClip 2580 { frame 1 { stop(); } } movieClip 2583 { frame 1 { stop(); } } movieClip 2589 { } movieClip 2590 { frame 1 { stop(); } } movieClip 2592 { } movieClip 2593 { frame 1 { stop(); } } movieClip 2596 { frame 1 { stop(); } } movieClip 2598 { frame 1 { stop(); } } movieClip 2600 { frame 1 { stop(); } } movieClip 2602 { frame 1 { stop(); } } frame 208 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; next_btn.onRelease = function () { if (asalMana == 'new') { nextFrame(); gotoAndStop(undefined); } else { gotoAndStop(201); } }; } frame 209 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; prev_btn.onRelease = function () { prevFrame(); gotoAndStop(undefined); }; yes_btn.onRelease = function () { backMusic(); gotoAndStop(212); }; no_btn.onRelease = function () { gotoAndStop(201); }; } frame 210 { stop(); back_btn.onRelease = function () { gotoAndStop(201); }; } movieClip 2608 { } movieClip 2635 { } instance of movieClip 2635 { onClipEvent (release) { getURL('http://waterflame.newgrounds.com/', '_blank'); } } movieClip 2638 { } instance of movieClip 2638 { onClipEvent (release) { getURL('http://awakendreams.weebly.com/', '_blank'); } } movieClip 2641 { } instance of movieClip 2641 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 2644 { } instance of movieClip 2644 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 2647 { } instance of movieClip 2647 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 2650 { } instance of movieClip 2650 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } frame 211 { 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 2653 { } movieClip 2656 { } movieClip 2659 { } movieClip 2662 { } movieClip 2665 { } movieClip 2668 { } movieClip 2671 { } movieClip 2674 { } movieClip 2677 { } movieClip 2680 { } movieClip 2683 { } movieClip 2686 { } movieClip 2689 { } movieClip 2692 { } movieClip 2695 { } movieClip 2698 { } movieClip 2701 { } movieClip 2704 { } movieClip 2707 { } movieClip 2710 { } movieClip 2713 { } movieClip 2716 { } movieClip 2719 { } movieClip 2722 { } movieClip 2725 { } movieClip 2728 { } movieClip 2731 { } movieClip 2734 { } movieClip 2737 { } movieClip 2740 { } movieClip 2743 { } movieClip 2746 { } movieClip 2749 { } movieClip 2752 { } movieClip 2755 { } movieClip 2771 { frame 1 { stop(); } } frame 212 { 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 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 >= 475) { this._y = 500; 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(); 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; lakon_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; lakon_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; lakon_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; } else { lakon_mc.efek_mc._visible = false; } lakon_mc.efek_mc.bar2._xscale = (specialPower / maxPower) * 100; } function waktu() { --waktuMundur; if (waktuMundur <= 0) { waktuMundur = 0; } } function cekAtributMusuh() { 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) { if (jenisWilayah[musuh.jenisMusuh] != 'udara') { musuh._y = 400; } else { musuh._y = 490; } } else { if (back_mc._currentframe == 8) { musuh._y = 495; } } } } } } } } if (jenisWilayah[musuh.jenisMusuh] == 'udara') { 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; musuh.nyawa = nyawaMusuh[musuh.jenisMusuh]; musuh.onEnterFrame = enterMusuh; ++dalamMusuh; } 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); } } 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; 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) { 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); specialPower = 100; } lakon_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; } } } } else { cekUse(); } backLempar(); peluru = attachMovie('lempar' + jenisLempar, 'peluru' + dalamBatu, dalamBatu); 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) { 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 (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 menangLevel() { perfectBonus = persenBase; jumlahBonus = lifeBase; clearSemua(); if (pilihLevel == 40) { gotoAndStop(216); } else { gotoAndStop(214); } } function kalahLevel() { clearSemua(); gotoAndStop(215); } 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 = 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; 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; 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; 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; 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(); }; 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.spell2._visible = true; } else { ui_mc.spell_mc.spell2._visible = false; } 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 <= 10) { jumlahMusuh[i] += 4; } else { if (pilihLevel <= 15) { jumlahMusuh[i] += 8; damageMusuh[i] += 1; } else { if (pilihLevel <= 20) { nyawaMusuh[i] += 1; jumlahMusuh[i] += 12; } else { if (pilihLevel <= 25) { nyawaMusuh[i] += 3; jumlahMusuh[i] += 16; damageMusuh[i] += 1; } else { if (pilihLevel <= 30) { nyawaMusuh[i] += 6; jumlahMusuh[i] += 19; damageMusuh[i] += 2; } else { if (pilihLevel <= 35) { nyawaMusuh[i] += 9; jumlahMusuh[i] += 21; damageMusuh[i] += 4; } else { if (pilihLevel <= 37) { nyawaMusuh[i] += 12; jumlahMusuh[i] += 23; damageMusuh[i] += 6; } else { nyawaMusuh[i] += 15; jumlahMusuh[i] += 26; 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; } 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 (jenisSenjata == 'gun') { if (jumlahPeluru2[xgembokGunKini] <= 0) { masihPress = false; this.ammo_mc2.bar2._xscale += 0.625; if (this.ammo_mc2.bar2._xscale >= 100) { jumlahPeluru2[xgembokGunKini] = maxPeluru2[xgembokGunKini]; } } } else { if (jenisSenjata == 'arrow') { if (jumlahPeluru[xgembokArrowKini] <= 0) { masihPress = false; this.ammo_mc.bar2._xscale += 1.25; if (this.ammo_mc.bar2._xscale >= 100) { jumlahPeluru[xgembokArrowKini] = maxPeluru[xgembokArrowKini]; } } } } } }; _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; } 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 2788 { frame 1 { stop(); } } frame 213 { 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(212); }; 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 2796 { frame 1 { stop(); } } movieClip 2798 { frame 1 { stop(); } } movieClip 2800 { frame 1 { stop(); } } movieClip 2802 { frame 1 { stop(); } } movieClip 2805 { frame 1 { stop(); } } movieClip 2807 { frame 1 { stop(); } } movieClip 2809 { frame 1 { stop(); } } movieClip 2811 { frame 1 { stop(); } } movieClip 2813 { frame 1 { stop(); } } movieClip 2815 { frame 1 { stop(); } } movieClip 2817 { } movieClip 2819 { frame 1 { stop(); } } movieClip 2821 { frame 1 { stop(); } } movieClip 2823 { frame 1 { stop(); } } movieClip 2826 { frame 1 { stop(); } } movieClip 2829 { frame 1 { stop(); } } movieClip 2831 { frame 1 { stop(); } } movieClip 2833 { frame 1 { stop(); } } movieClip 2836 { frame 1 { stop(); } } movieClip 2838 { frame 1 { stop(); } } movieClip 2840 { frame 1 { stop(); } } movieClip 2842 { frame 1 { stop(); } } movieClip 2856 { } movieClip 2869 { } movieClip 2874 { } movieClip 2878 { } movieClip 2881 { } movieClip 2884 { } movieClip 2887 { } movieClip 2890 { } movieClip 2893 { } movieClip 2896 { } movieClip 2899 { } movieClip 2901 { frame 1 { stop(); } } movieClip 2904 { frame 1 { stop(); } } movieClip 2906 { frame 1 { stop(); } } movieClip 2909 { frame 1 { stop(); } } frame 214 { stop(); myMusic.setVolume(volume1 / 5); more_btn.onRelease = function () { getURL('http://www.belugerinstudios.com/', '_blank'); }; next_btn.onRelease = function () { ++pilihLevel; cekMedalDapat(); simpanData(); gotoAndStop(213); }; if (perfectBonus == 100) { bonusPerfect = pilihLevel * waktuMundur * 5; ++basePerfect; } else { bonusPerfect = 0; } bonusTime = waktuMundur * jumlahBonus; if (perfectBonus == 100) { bonusExp = 9 + Math.ceil(pilihLevel / 1.25); } else { bonusExp = 7 + Math.ceil(pilihLevel / 1.25); } xscore += bonusTime + bonusPerfect; exp += bonusExp; xscore = Math.ceil(xscore); exp = Math.ceil(exp); zzscore = xscore; zzexp = exp; } frame 215 { stop(); myMusic.setVolume(volume1 / 5); more_btn.onRelease = function () { getURL('http://www.belugerinstudios.com/', '_blank'); }; quit_btn.onRelease = function () { backMenu(); gotoAndStop(201); }; } frame 216 { stop(); 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/92625/info.shtml
Created: 27/3 -2019 08:35:14 Last modified: 27/3 -2019 08:35:14 Server time: 04/05 -2024 17:35:00