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

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

curse-village.swf

This is the info page for
Flash #126694

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { function MD5(string) { function RotateLeft(lValue, iShiftBits) { return lValue << iShiftBits | lValue >>> 32 - iShiftBits; } function AddUnsigned(lX, lY) { var v5; var v4; var v3; var v2; var v1; v3 = lX & 2147483648.0; v2 = lY & 2147483648.0; v5 = lX & 1073741824; v4 = lY & 1073741824; v1 = (lX & 1073741823) + (lY & 1073741823); if (v5 & v4) { return v1 ^ 2147483648.0 ^ v3 ^ v2; } if (v5 | v4) { if (v1 & 1073741824) { return v1 ^ 3221225472.0 ^ v3 ^ v2; } else { return v1 ^ 1073741824 ^ v3 ^ v2; } } else { return v1 ^ v3 ^ v2; } } function F(x, y, z) { return x & y | ~x & z; } function G(x, y, z) { return x & z | y & ~z; } function H(x, y, z) { return x ^ y ^ z; } function I(x, y, z) { return y ^ (x | ~z); } function FF(a, b, c, d, x, s, ac) { a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac)); return AddUnsigned(RotateLeft(a, s), b); } function GG(a, b, c, d, x, s, ac) { a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac)); return AddUnsigned(RotateLeft(a, s), b); } function HH(a, b, c, d, x, s, ac) { a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac)); return AddUnsigned(RotateLeft(a, s), b); } function II(a, b, c, d, x, s, ac) { a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac)); return AddUnsigned(RotateLeft(a, s), b); } function ConvertToWordArray(string) { var v2; var v5 = string.length; var v8 = v5 + 8; var v9 = (v8 - v8 % 64) / 64; var v7 = (v9 + 1) * 16; var v3 = Array(v7 - 1); var v4 = 0; var v1 = 0; while (v1 < v5) { v2 = (v1 - v1 % 4) / 4; v4 = (v1 % 4) * 8; v3[v2] |= string.charCodeAt(v1) << v4; ++v1; } v2 = (v1 - v1 % 4) / 4; v4 = (v1 % 4) * 8; v3[v2] |= 128 << v4; v3[v7 - 2] = v5 << 3; v3[v7 - 1] = v5 >>> 29; return v3; } function WordToHex(lValue) { var v3 = ''; var v2 = ''; var v4; var v1; v1 = 0; while (v1 <= 3) { v4 = lValue >>> v1 * 8 & 255; v2 = '0' + v4.toString(16); v3 += v2.substr(v2.length - 2, 2); ++v1; } return v3; } function Utf8Encode(string) { var v2 = ''; var v3 = 0; while (v3 < string.length) { var v1 = string.charCodeAt(v3); if (v1 < 128) { v2 += String.fromCharCode(v1); } else { if (v1 > 127 && v1 < 2048) { v2 += String.fromCharCode(v1 >> 6 | 192); v2 += String.fromCharCode(v1 & 63 | 128); } else { v2 += String.fromCharCode(v1 >> 12 | 224); v2 += String.fromCharCode(v1 >> 6 & 63 | 128); v2 += String.fromCharCode(v1 & 63 | 128); } } ++v3; } return v2; } var v6 = Array(); var v5; var v35; var v36; var v37; var v34; var v4; var v3; var v2; var v1; var v21 = 7; var v19 = 12; var v16 = 17; var v13 = 22; var v20 = 5; var v17 = 9; var v14 = 14; var v11 = 20; var v18 = 4; var v15 = 11; var v12 = 16; var v10 = 23; var v25 = 6; var v24 = 10; var v23 = 15; var v22 = 21; string = Utf8Encode(string); v6 = ConvertToWordArray(string); v4 = 1732584193; v3 = 4023233417.0; v2 = 2562383102.0; v1 = 271733878; v5 = 0; while (v5 < v6.length) { v35 = v4; v36 = v3; v37 = v2; v34 = v1; v4 = FF(v4, v3, v2, v1, v6[v5 + 0], v21, 3614090360.0); v1 = FF(v1, v4, v3, v2, v6[v5 + 1], v19, 3905402710.0); v2 = FF(v2, v1, v4, v3, v6[v5 + 2], v16, 606105819); v3 = FF(v3, v2, v1, v4, v6[v5 + 3], v13, 3250441966.0); v4 = FF(v4, v3, v2, v1, v6[v5 + 4], v21, 4118548399.0); v1 = FF(v1, v4, v3, v2, v6[v5 + 5], v19, 1200080426); v2 = FF(v2, v1, v4, v3, v6[v5 + 6], v16, 2821735955.0); v3 = FF(v3, v2, v1, v4, v6[v5 + 7], v13, 4249261313.0); v4 = FF(v4, v3, v2, v1, v6[v5 + 8], v21, 1770035416); v1 = FF(v1, v4, v3, v2, v6[v5 + 9], v19, 2336552879.0); v2 = FF(v2, v1, v4, v3, v6[v5 + 10], v16, 4294925233.0); v3 = FF(v3, v2, v1, v4, v6[v5 + 11], v13, 2304563134.0); v4 = FF(v4, v3, v2, v1, v6[v5 + 12], v21, 1804603682); v1 = FF(v1, v4, v3, v2, v6[v5 + 13], v19, 4254626195.0); v2 = FF(v2, v1, v4, v3, v6[v5 + 14], v16, 2792965006.0); v3 = FF(v3, v2, v1, v4, v6[v5 + 15], v13, 1236535329); v4 = GG(v4, v3, v2, v1, v6[v5 + 1], v20, 4129170786.0); v1 = GG(v1, v4, v3, v2, v6[v5 + 6], v17, 3225465664.0); v2 = GG(v2, v1, v4, v3, v6[v5 + 11], v14, 643717713); v3 = GG(v3, v2, v1, v4, v6[v5 + 0], v11, 3921069994.0); v4 = GG(v4, v3, v2, v1, v6[v5 + 5], v20, 3593408605.0); v1 = GG(v1, v4, v3, v2, v6[v5 + 10], v17, 38016083); v2 = GG(v2, v1, v4, v3, v6[v5 + 15], v14, 3634488961.0); v3 = GG(v3, v2, v1, v4, v6[v5 + 4], v11, 3889429448.0); v4 = GG(v4, v3, v2, v1, v6[v5 + 9], v20, 568446438); v1 = GG(v1, v4, v3, v2, v6[v5 + 14], v17, 3275163606.0); v2 = GG(v2, v1, v4, v3, v6[v5 + 3], v14, 4107603335.0); v3 = GG(v3, v2, v1, v4, v6[v5 + 8], v11, 1163531501); v4 = GG(v4, v3, v2, v1, v6[v5 + 13], v20, 2850285829.0); v1 = GG(v1, v4, v3, v2, v6[v5 + 2], v17, 4243563512.0); v2 = GG(v2, v1, v4, v3, v6[v5 + 7], v14, 1735328473); v3 = GG(v3, v2, v1, v4, v6[v5 + 12], v11, 2368359562.0); v4 = HH(v4, v3, v2, v1, v6[v5 + 5], v18, 4294588738.0); v1 = HH(v1, v4, v3, v2, v6[v5 + 8], v15, 2272392833.0); v2 = HH(v2, v1, v4, v3, v6[v5 + 11], v12, 1839030562); v3 = HH(v3, v2, v1, v4, v6[v5 + 14], v10, 4259657740.0); v4 = HH(v4, v3, v2, v1, v6[v5 + 1], v18, 2763975236.0); v1 = HH(v1, v4, v3, v2, v6[v5 + 4], v15, 1272893353); v2 = HH(v2, v1, v4, v3, v6[v5 + 7], v12, 4139469664.0); v3 = HH(v3, v2, v1, v4, v6[v5 + 10], v10, 3200236656.0); v4 = HH(v4, v3, v2, v1, v6[v5 + 13], v18, 681279174); v1 = HH(v1, v4, v3, v2, v6[v5 + 0], v15, 3936430074.0); v2 = HH(v2, v1, v4, v3, v6[v5 + 3], v12, 3572445317.0); v3 = HH(v3, v2, v1, v4, v6[v5 + 6], v10, 76029189); v4 = HH(v4, v3, v2, v1, v6[v5 + 9], v18, 3654602809.0); v1 = HH(v1, v4, v3, v2, v6[v5 + 12], v15, 3873151461.0); v2 = HH(v2, v1, v4, v3, v6[v5 + 15], v12, 530742520); v3 = HH(v3, v2, v1, v4, v6[v5 + 2], v10, 3299628645.0); v4 = II(v4, v3, v2, v1, v6[v5 + 0], v25, 4096336452.0); v1 = II(v1, v4, v3, v2, v6[v5 + 7], v24, 1126891415); v2 = II(v2, v1, v4, v3, v6[v5 + 14], v23, 2878612391.0); v3 = II(v3, v2, v1, v4, v6[v5 + 5], v22, 4237533241.0); v4 = II(v4, v3, v2, v1, v6[v5 + 12], v25, 1700485571); v1 = II(v1, v4, v3, v2, v6[v5 + 3], v24, 2399980690.0); v2 = II(v2, v1, v4, v3, v6[v5 + 10], v23, 4293915773.0); v3 = II(v3, v2, v1, v4, v6[v5 + 1], v22, 2240044497.0); v4 = II(v4, v3, v2, v1, v6[v5 + 8], v25, 1873313359); v1 = II(v1, v4, v3, v2, v6[v5 + 15], v24, 4264355552.0); v2 = II(v2, v1, v4, v3, v6[v5 + 6], v23, 2734768916.0); v3 = II(v3, v2, v1, v4, v6[v5 + 13], v22, 1309151649); v4 = II(v4, v3, v2, v1, v6[v5 + 4], v25, 4149444226.0); v1 = II(v1, v4, v3, v2, v6[v5 + 11], v24, 3174756917.0); v2 = II(v2, v1, v4, v3, v6[v5 + 2], v23, 718787259); v3 = II(v3, v2, v1, v4, v6[v5 + 9], v22, 3951481745.0); v4 = AddUnsigned(v4, v35); v3 = AddUnsigned(v3, v36); v2 = AddUnsigned(v2, v37); v1 = AddUnsigned(v1, v34); v5 += 16; } var v46 = WordToHex(v4) + WordToHex(v3) + WordToHex(v2) + WordToHex(v1); return v46.toLowerCase(); } function getGoldFromChallange(idChallange) { var myXML = new XML(); myXML.ignoreWhite = true; myXML.load('http://www.belugerinstudios.com/data/data.php?act=getGoldFromId&challangeid=' + idChallange); myXML.onLoad = function (success) { nodeResult = myXML.firstChild.childNodes[0].firstChild.nodeValue; _root.icoba.gaingold.value = 'You Gain: ' + nodeResult + ' golds.'; _root.icoba.curgold.value = Number(_root.icoba.curgold.value) + Number(nodeResult); _root.icoba.gold = Number(_root.icoba.gold) + Number(nodeResult); trace('test:' + nodeResult); }; } function scoreHTTPSender(gameid, challangeid) { function fadeIn() { _root.icoba._alpha += 2; trace('ALPHA : ' + _root.icoba._alpha); if (_root.icoba._alpha >= 150) { clearInterval(fadeInInterval); } } function makeMessage(messagestring) { var v1 = new TextFormat(); v1.color = 16777215; v1.font = 'verdana'; v1.size = 11; textCheck.text = messagestring; textCheck.setTextFormat(v1); goldChecker._x = 0; goldChecker._y = 0; textCheck._x = 12; textCheck._y = 12; } function closeMessage() { function removePosition() { goldChecker._x = 10000; goldChecker._y = 10000; textCheck._x = 10000; textCheck._y = 10000; } setTimeout(removePosition, 30000); } function setScoreToDB() { loadVariablesNum('http://www.belugerinstudios.com/action.php?action=score&gameid=' + gameid + '&challangeid=' + challangeid + '&token=' + MD5(gameid + token), 0, 'POST'); if (_root.varCheck == 'loaded') { clearInterval(sentScoreInterval); _root.i = 0; makeMessage('Loading gold screen...'); closeMessage(); var myXML = new XML(); myXML.ignoreWhite = true; myXML.load('http://www.belugerinstudios.com/data/data.php?gameid=' + gameid + '&challangeid=' + challangeid); myXML.onLoad = function (success) { if (success) { _root.debugger1 = 'Debugger2 Running test on...: ' + myXML.firstChild.childNodes[3].firstChild.nodeValue; if (myXML.firstChild.childNodes[3].firstChild.nodeValue == undefined) { } else { _root.debugger1 = 'Debugger Running then loading...'; _root.debugger2 = 'Loading movie: http://www.belugerinstudios.com/games/flash/demo4banner.swf?GET_gameid=' + gameid + '&GET_challangeid=' + challangeid; loadMovie('http://www.belugerinstudios.com/games/flash/demo4banner.swf?GET_gameid=' + gameid + '&GET_challangeid=' + challangeid, _root.icoba); icoba._x = Stage.width / 2 - 250; icoba._y = Stage.height / 2 - 170; getGoldFromChallange(challangeid); trace('width: ' + _root.icoba._width); _root.icoba._alpha = 1; trace('ALPHA : ' + _root.icoba._alpha); fadeInInterval = setInterval(fadeIn, 1); } } else { makeMessage('Fail to contact our server...'); } }; } else { if (_root.varCheck == 'isexist') { makeMessage('Your already get this gold'); clearInterval(sentScoreInterval); _root.i = 0; closeMessage(); } else { if (_root.varCheck == 'notlogin') { makeMessage('Your must login first.'); clearInterval(sentScoreInterval); _root.i = 0; closeMessage(); } else { if (_root.i >= 60) { makeMessage('Fail to contact our server.'); clearInterval(sentScoreInterval); closeMessage(); _root.i = 0; } else { makeMessage('Try to sending your Gold...(timeout in ' + (60 - i) + ' s)'); } } } } ++_root.i; } createEmptyMovieClip('icoba', _root.getNextHighestDepth() + 123456); createEmptyMovieClip('form', _root.getNextHighestDepth() + 123457); form.createTextField('gold', 1, -100, -100); createEmptyMovieClip('goldChecker', _root.getNextHighestDepth() + 123458); goldChecker.beginFill(0); goldChecker.moveTo(5, 5); goldChecker.lineTo(300, 5); goldChecker.lineTo(300, 40); goldChecker.lineTo(5, 40); goldChecker.lineTo(5, 5); goldChecker.endFill(); this.createTextField('textCheck', _root.getNextHighestDepth() + 123459, 12, 12, 300, 50); makeMessage('Gold loading...'); myDate = new Date(); token = 'belugerinstudios.com'; trace(gameid + token); trace(MD5(gameid + token)); _root.form.gold.value = challangeid; _root.i = 0; _root.varCheck = ''; sentScoreInterval = setInterval(setScoreToDB, 1000); } } frame 1 { function initAwal() { score = 0; xlevel = 1; xpoint = 20; slot1 = 1; slot2 = 8; slot3 = 0; slot4 = 0; slot5 = 0; slot6 = 0; milik1 = 1; milik2 = 0; milik3 = 0; milik4 = 0; milik5 = 0; milik6 = 0; milik7 = 0; milik8 = 1; milik9 = 0; milik10 = 0; milik11 = 0; milik12 = 0; milik13 = 0; milik14 = 0; milik15 = 0; milik16 = 0; milik17 = 0; milik18 = 0; milik19 = 0; milik20 = 0; xshield = 100; jenisBarikade1 = 0; jenisBarikade2 = 0; nyawaBarikade1 = 0; nyawaBarikade2 = 0; adaOrang1 = false; adaOrang2 = false; adaOrang3 = false; adaOrang4 = false; banyakPos1 = 0; banyakPos2 = 0; banyakPos3 = 0; banyakPos4 = 0; banyakPos5 = 0; banyakPos6 = 0; banyakPos7 = 0; banyakPos8 = 0; banyakPos9 = 0; tipePos1 = 0; tipePos2 = 0; tipePos3 = 0; tipePos4 = 0; tipePos5 = 0; tipePos6 = 0; tipePos7 = 0; tipePos8 = 0; tipePos9 = 0; berapaPerfect = 0; } function simpanData() { i = 1; while (i <= simpanSemua.length) { _root['cvdatSimp' + i] = simpanSemua[i]; Cookies = SharedObject.getLocal(_root['cvdatSimp' + i], '/'); Cookies.data['cvsoData' + i] = eval(simpanSemua[i]); Cookies.flush(); ++i; } } function loadData() { i = 1; while (i <= simpanSemua.length) { _root['cvdatSimp' + i] = simpanSemua[i]; Cookies = SharedObject.getLocal(_root['cvdatSimp' + i], '/'); _root[simpanSemua[i]] = Cookies.data['cvsoData' + i]; ++i; } } function backMenu() { myMusic.stop(); myMusic = new Sound(zmusik); myMusic.attachSound('backMenu'); myMusic.setVolume(volume1); myMusic.start(0, 1); myMusic.onSoundComplete = function () { backMenu(); }; } function backStory() { myMusic.stop(); myMusic = new Sound(zmusik); myMusic.attachSound('backStory'); myMusic.setVolume(volume1); myMusic.start(0, 1); myMusic.onSoundComplete = function () { backStory(); }; } function backMain() { myMusic.stop(); myMusic = new Sound(zmusik); myMusic.attachSound('backMain'); myMusic.setVolume(volume1); myMusic.start(0, 1); myMusic.onSoundComplete = function () { backMain(); }; } function backDead() { myMusic.stop(); myMusic = new Sound(zmusik); myMusic.attachSound('backDead'); myMusic.setVolume(volume1); myMusic.start(0, 1); myMusic.onSoundComplete = function () { backDead(); }; } function backZombie() { randBunyi = random(2); if (randBunyi == 0) { rand = random(14) + 1; mySound = new Sound(zsound); mySound.attachSound('backZombie' + rand); mySound.setVolume(volume2); mySound.start(0, 1); } } function backKena() { rand = random(5) + 1; mySound = new Sound(zsound); mySound.attachSound('backKena' + rand); mySound.setVolume(volume2); mySound.start(0, 1); } function backSamurai() { mySound = new Sound(zsound); mySound.attachSound('backSamurai'); mySound.setVolume(volume2); mySound.start(0, 1); } function backPistol() { mySound = new Sound(zsound); mySound.attachSound('backPistol'); mySound.setVolume(volume2); mySound.start(0, 1); } function backPisau() { mySound = new Sound(zsound); mySound.attachSound('backPisau'); mySound.setVolume(volume2); mySound.start(0, 1); } function backMesin() { mySound = new Sound(zsound); mySound.attachSound('backMesin'); mySound.setVolume(volume2); mySound.start(0, 1); } function backPistol2() { mySound = new Sound(zsound); mySound.attachSound('backPistol2'); mySound.setVolume(volume2); mySound.start(0, 1); } function backSenapan() { mySound = new Sound(zsound); mySound.attachSound('backSenapan'); mySound.setVolume(volume2); mySound.start(0, 1); } function backMisil() { mySound = new Sound(zsound); mySound.attachSound('backMisil'); mySound.setVolume(volume2); mySound.start(0, 1); } function backGun() { mySound = new Sound(zsound); mySound.attachSound('backGun'); mySound.setVolume(volume2); mySound.start(0, 1); } function backGranat1() { mmySound = new Sound(zsound); mySound.attachSound('backGranat1'); mySound.setVolume(volume2); mySound.start(0, 1); } function backGranat2() { mySound = new Sound(zsound); mySound.attachSound('backGranat2'); mySound.setVolume(volume2); mySound.start(0, 1); } function backDinamit() { mySound = new Sound(zsound); mySound.attachSound('backDinamit'); mySound.setVolume(volume2); mySound.start(0, 1); } function backDarah() { rand = random(3); if (rand == 0) { mySound = new Sound(zsound); mySound.attachSound('backDarah'); mySound.setVolume(volume2); mySound.start(0, 1); } } function backDarah2() { mySound = new Sound(zsound); mySound.attachSound('backDarah'); mySound.setVolume(volume2); mySound.start(0, 1); } function backShotgun() { mySound = new Sound(zsound); mySound.attachSound('backShotgun'); mySound.setVolume(volume2); mySound.start(0, 1); } function backArit() { mySound = new Sound(zsound); mySound.attachSound('backArit'); mySound.setVolume(volume2); mySound.start(0, 1); } function backTombak() { mySound = new Sound(zsound); mySound.attachSound('backTombak'); mySound.setVolume(volume2); mySound.start(0, 1); } function backKapak() { mySound = new Sound(zsound); mySound.attachSound('backKapak'); mySound.setVolume(volume2); mySound.start(0, 1); } function backPanah() { mySound = new Sound(zsound); mySound.attachSound('backPanah'); mySound.setVolume(volume2); mySound.start(0, 1); } function backSniper() { mySound = new Sound(zsound); mySound.attachSound('backSniper'); mySound.setVolume(volume2); mySound.start(0, 1); } function backLightsaber() { mySound = new Sound(zsound); mySound.attachSound('backLightsaber'); mySound.setVolume(volume2); mySound.start(0, 1); } function backRocket() { mySound = new Sound(zsound); mySound.attachSound('backRocket'); mySound.setVolume(volume2); mySound.start(0, 1); } function backLaser() { mySound = new Sound(zsound); mySound.attachSound('backLaser'); mySound.setVolume(volume2); mySound.start(0, 1); } function backSetrum() { mySound = new Sound(zsound); mySound.attachSound('backSetrum'); mySound.setVolume(volume2); mySound.start(0, 1); } function backApi() { mySound = new Sound(zsound); mySound.attachSound('backApi'); mySound.setVolume(volume2); mySound.start(0, 1); } function backBosLuka() { rand = random(3) + 1; mySound = new Sound(zsound); mySound.attachSound('backBosLuka' + rand); mySound.setVolume(volume2); mySound.start(0, 1); } function backBelah() { mySound = new Sound(zsound); mySound.attachSound('backBelah'); mySound.setVolume(volume2); mySound.start(0, 1); } stop(); fscommand('showmenu', false); fscommand('fullscreen', false); fscommand('allowscale', true); Stage.showMenu = false; this.onEnterFrame = function () { persen = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); xpersen = persen + ' %'; bar_mc.gotoAndStop(persen); if (persen >= 100) { delete this.onEnterFrame; gotoAndStop('completed'); } }; qualityGame = 1; _quality = 'HIGH'; jenisLevel = 2; volume1 = 100; volume2 = 50; damage1 = 1.5; damage2 = 2; damage3 = 4.5; damage4 = 4; damage5 = 3.5; damage6 = 3; damage7 = 17; damage8 = 4; damage9 = 6.5; damage10 = 7.5; damage11 = 9; damage12 = 15; damage13 = 20; damage14 = 35; damage15 = 25; damage16 = 40; damage17 = 45; damage18 = 60; damage19 = 45; damage20 = 55; i = 1; while (i <= 20) { _root['damage' + i] *= 1.5; _root['damage' + i] = Math.ceil(_root['damage' + i]); ++i; } gameID = '1389'; xlevel = 2; simpanSemua = new Array('', 'score', 'xpoint', 'xlevel', 'slot1', 'slot2', 'slot3', 'slot4', 'slot5', 'slot6', 'milik1', 'milik2', 'milik3', 'milik4', 'milik5', 'milik6', 'milik7', 'milik8', 'milik9', 'milik10', 'milik11', 'milik12', 'milik13', 'milik14', 'milik15', 'milik16', 'milik17', 'milik18', 'milik19', 'milik20', 'xshield', 'jenisBarikade1', 'jenisBarikade2', 'nyawaBarikade1', 'nyawaBarikade2', 'adaOrang1', 'adaOrang2', 'adaOrang3', 'adaOrang4', 'banyakPos1', 'banyakPos2', 'banyakPos3', 'banyakPos4', 'banyakPos5', 'banyakPos6', 'banyakPos7', 'banyakPos8', 'banyakPos9', 'tipePos1', 'tipePos2', 'tipePos3', 'tipePos4', 'tipePos5', 'tipePos6', 'tipePos7', 'tipePos8', 'tipePos9', 'jenisLevel', 'berapaPerfect'); loadData(); if (xlevel == undefined) { initAwal(); } } // unknown tag 88 length 80 movieClip 8 { frame 1 { stop(); } } // unknown tag 88 length 104 movieClip 14 { } movieClip 16 { } movieClip 18 { } movieClip 20 { } movieClip 22 { } movieClip 24 { } instance of movieClip 24 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 28 { } movieClip 30 { } movieClip 31 { frame 1 { stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; } } instance logo_mc of movieClip 31 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1389&subid=preloader', '_blank'); } } frame 2 { gotoAndStop('completed'); } movieClip 34 back1 { } movieClip 36 pintu1 { } movieClip 48 { frame 89 { stop(); removeMovieClip(_parent); } } movieClip 49 ledakan2 { } movieClip 52 back9 { } movieClip 54 pintu9 { } movieClip 57 back3 { } movieClip 59 pintu3 { } movieClip 62 back2 { } movieClip 64 pintu2 { } movieClip 66 { } movieClip 77 { } movieClip 82 zombie1 { } movieClip 95 zombie2 { } movieClip 107 zombie3 { } movieClip 118 zombie4 { } movieClip 126 zombie5 { } movieClip 137 zombie6 { } movieClip 148 zombie7 { } movieClip 157 zombie8 { } movieClip 158 { } movieClip 176 zombieBelahBawah1 { frame 30 { stop(); } } movieClip 192 zombieBelahAtas1 { frame 80 { stop(); } } movieClip 197 zombiePalaJalan1 { } movieClip 202 { } movieClip 204 { } movieClip 206 { } movieClip 208 { } movieClip 209 senjata3 { frame 1 { stop(); } frame 2 { _root.backSamurai(); } } movieClip 218 efek1 { frame 9 { stop(); removeMovieClip(this); } } movieClip 221 { } movieClip 227 { frame 1 { stop(); } } movieClip 231 { } movieClip 235 { } movieClip 236 senjata1 { frame 1 { stop(); } frame 2 { _root.backPisau(); } } movieClip 238 { } movieClip 240 { } movieClip 244 { } movieClip 245 { frame 1 { stop(); } } movieClip 254 { } movieClip 255 senjata6 { frame 1 { stop(); } frame 2 { _root.backMesin(); } frame 15 { if (_root.tahanSaw == true) { gotoAndPlay(2); } else { gotoAndStop(1); } } } movieClip 262 { } movieClip 267 { } movieClip 268 senjata8 { frame 1 { stop(); } frame 3 { _root.cekPeluru(); _root.backPistol(); } } movieClip 272 { } movieClip 276 { } movieClip 277 senjata9 { frame 1 { stop(); } frame 9 { _root.cekPeluru(); _root.backPistol2(); } } movieClip 289 { } movieClip 290 senjata11 { frame 1 { stop(); } frame 11 { _root.cekPeluru(); _root.backSenapan(); } } movieClip 294 { } movieClip 296 { } movieClip 302 senjata12 { frame 1 { stop(); } frame 8 { _root.cekPeluru(); _root.backGun(); } frame 12 { _root.cekPeluru(); } frame 16 { _root.cekPeluru(); } } movieClip 309 { } movieClip 316 { } movieClip 321 { } movieClip 384 { frame 1 { stop(); } frame 10 { _root.cekPeluru(); } frame 16 { _root.cekPeluru(); } frame 22 { _root.cekPeluru(); } frame 28 { _root.cekPeluru(); } frame 34 { _root.cekPeluru(); } frame 40 { _root.cekPeluru(); } } movieClip 392 { } movieClip 395 { } movieClip 398 { } movieClip 400 { } movieClip 403 { frame 6 { stop(); } } movieClip 404 senjata16 { frame 1 { stop(); } frame 22 { _root.cekPeluru(); _root.backMisil(); } } movieClip 407 { } movieClip 408 { } movieClip 409 { } movieClip 410 { } movieClip 411 { } movieClip 412 { frame 1 { stop(); } } movieClip 420 { } movieClip 421 senjata19 { frame 1 { stop(); } frame 2 { play(); } frame 30 { stop(); _root.backGranat2(); _root.cekLedakan2(this); removeMovieClip(this); } } movieClip 424 senjata20 { frame 1 { stop(); } frame 2 { play(); } frame 60 { stop(); _root.backDinamit(); _root.backDinamit(); _root.cekLedakan(this); removeMovieClip(this); } } movieClip 425 { frame 1 { stop(); } } movieClip 437 { frame 1 { stop(); } } // unknown tag 88 length 80 movieClip 441 { } movieClip 443 { } movieClip 444 { } movieClip 445 { frame 10 { stop(); } } movieClip 451 { frame 1 { stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRelease = function () { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1389&subid=playing', '_blank'); }; } } movieClip 458 frame_mc { } movieClip 474 zombieBelahAtas2 { frame 80 { stop(); } } movieClip 490 zombieBelahAtas3 { frame 80 { stop(); } } movieClip 506 zombieBelahAtas4 { frame 80 { stop(); } } movieClip 522 zombieBelahAtas7 { frame 80 { stop(); } } movieClip 541 zombieBelahBawah2 { frame 30 { stop(); } } movieClip 560 zombieBelahBawah3 { frame 30 { stop(); } } movieClip 579 zombieBelahBawah4 { frame 30 { stop(); } } movieClip 590 zombieBelahBawah7 { frame 30 { stop(); } } movieClip 596 zombiePalaJalan2 { } movieClip 599 zombiePalaJalan3 { } movieClip 603 zombiePalaJalan4 { } movieClip 608 zombiePalaJalan5 { } movieClip 613 zombiePalaJalan6 { } movieClip 621 zombiePalaJalan7 { } movieClip 625 zombiePalaJalan8 { } movieClip 634 zombieBelahAtas5 { frame 80 { stop(); } } movieClip 647 zombieBelahAtas6 { frame 80 { stop(); } } movieClip 662 zombieBelahAtas8 { frame 80 { stop(); } } movieClip 674 zombieBelahBawah5 { frame 30 { stop(); } } movieClip 692 zombieBelahBawah6 { frame 30 { stop(); } } movieClip 695 zombieBelahBawah8 { frame 30 { stop(); } } movieClip 712 { frame 54 { stop(); } } movieClip 724 { frame 54 { stop(); } } movieClip 725 zombieBelahPala1 { frame 80 { stop(); } } movieClip 738 { frame 54 { stop(); } } movieClip 750 { frame 54 { stop(); } } movieClip 751 zombieBelahPala2 { frame 80 { stop(); } } movieClip 763 { frame 54 { stop(); } } movieClip 776 { frame 54 { stop(); } } movieClip 777 zombieBelahPala3 { frame 80 { stop(); } } movieClip 790 { frame 54 { stop(); } } movieClip 802 { frame 54 { stop(); } } movieClip 803 zombieBelahPala4 { frame 80 { stop(); } } movieClip 814 { frame 54 { stop(); } } movieClip 823 { frame 54 { stop(); } } movieClip 824 zombieBelahPala5 { frame 80 { stop(); } } movieClip 837 { frame 54 { stop(); } } movieClip 849 { frame 54 { stop(); } } movieClip 850 zombieBelahPala6 { frame 80 { stop(); } } movieClip 862 { frame 54 { stop(); } } movieClip 874 { frame 54 { stop(); } } movieClip 875 zombieBelahPala7 { frame 80 { stop(); } } movieClip 886 { frame 54 { stop(); } } movieClip 895 { frame 54 { stop(); } } movieClip 896 zombieBelahPala8 { frame 80 { stop(); } } movieClip 905 { frame 35 { stop(); } } movieClip 906 bercak_mc { frame 50 { stop(); } } movieClip 907 { } movieClip 929 { frame 60 { stop(); } } movieClip 930 zombieBelahKaki4 { frame 80 { stop(); } } movieClip 943 { frame 60 { stop(); } } movieClip 944 zombieBelahKaki5 { frame 80 { stop(); } } movieClip 964 { frame 60 { stop(); } } movieClip 965 zombieBelahKaki6 { frame 80 { stop(); } } movieClip 987 { frame 60 { stop(); } } movieClip 988 zombieBelahKaki7 { frame 80 { stop(); } } movieClip 999 { frame 60 { stop(); } } movieClip 1000 zombieBelahKaki8 { frame 80 { stop(); } } movieClip 1023 { frame 65 { stop(); } } movieClip 1024 zombieBelahKaki1 { frame 80 { stop(); } } movieClip 1048 { frame 60 { stop(); } } movieClip 1049 zombieBelahKaki3 { frame 80 { stop(); } } movieClip 1067 { frame 60 { stop(); } } movieClip 1068 zombieBelahKaki2 { frame 80 { stop(); } } movieClip 1072 peluru8 { } movieClip 1073 { } movieClip 1106 { frame 50 { stop(); } } movieClip 1107 zombiePecahPala1 { frame 80 { stop(); } } movieClip 1134 { frame 44 { stop(); } } movieClip 1135 zombiePecahPala2 { frame 80 { stop(); } } movieClip 1159 { frame 55 { stop(); } } movieClip 1160 zombiePecahPala3 { frame 80 { stop(); } } movieClip 1182 { frame 42 { stop(); } } movieClip 1183 zombiePecahPala4 { frame 80 { stop(); } } movieClip 1204 { frame 40 { stop(); } } movieClip 1205 zombiePecahPala5 { frame 80 { stop(); } } movieClip 1222 { frame 42 { stop(); } } movieClip 1223 zombiePecahPala6 { frame 80 { stop(); } } movieClip 1246 { frame 50 { stop(); } } movieClip 1247 zombiePecahPala7 { frame 80 { stop(); } } movieClip 1265 { frame 40 { stop(); } } movieClip 1266 zombiePecahPala8 { frame 80 { stop(); } } movieClip 1272 { } movieClip 1273 zombieJalanKaki1 { frame 80 { stop(); } } movieClip 1279 { } movieClip 1280 zombieJalanKaki2 { frame 80 { stop(); } } movieClip 1286 { } movieClip 1287 zombieJalanKaki3 { frame 80 { stop(); } } movieClip 1293 { } movieClip 1294 zombieJalanKaki4 { frame 80 { stop(); } } movieClip 1299 { } movieClip 1300 zombieJalanKaki5 { frame 80 { stop(); } } movieClip 1306 { } movieClip 1307 zombieJalanKaki6 { frame 80 { stop(); } } movieClip 1313 { } movieClip 1314 zombieJalanKaki7 { frame 80 { stop(); } } movieClip 1320 { } movieClip 1321 zombieJalanKaki8 { frame 80 { stop(); } } movieClip 1328 { frame 25 { stop(); } } movieClip 1329 zombieJatuhKaki1 { frame 40 { stop(); } } movieClip 1335 { frame 25 { stop(); } } movieClip 1336 zombieJatuhKaki2 { frame 40 { stop(); } } movieClip 1343 { frame 26 { stop(); } } movieClip 1344 zombieJatuhKaki3 { frame 40 { stop(); } } movieClip 1351 { frame 35 { stop(); } } movieClip 1352 zombieJatuhKaki4 { frame 40 { stop(); } } movieClip 1359 { frame 25 { stop(); } } movieClip 1360 zombieJatuhKaki5 { frame 40 { stop(); } } movieClip 1367 { frame 30 { stop(); } } movieClip 1368 zombieJatuhKaki6 { frame 40 { stop(); } } movieClip 1375 { frame 45 { stop(); } } movieClip 1376 zombieJatuhKaki7 { frame 40 { stop(); } } movieClip 1385 { frame 50 { stop(); } } movieClip 1386 zombieJatuhKaki8 { frame 60 { stop(); } } movieClip 1394 { } movieClip 1401 { frame 40 { stop(); } } movieClip 1402 zombieTembakBadan1 { frame 60 { stop(); } } movieClip 1418 { frame 55 { stop(); } } movieClip 1419 zombieTembakBadan2 { frame 60 { stop(); } } movieClip 1434 { frame 45 { stop(); } } movieClip 1435 zombieTembakBadan3 { frame 60 { stop(); } } movieClip 1450 { frame 50 { stop(); } } movieClip 1451 zombieTembakBadan4 { frame 60 { stop(); } } movieClip 1463 { frame 45 { stop(); } } movieClip 1464 zombieTembakBadan5 { frame 60 { stop(); } } movieClip 1479 { frame 50 { stop(); } } movieClip 1480 zombieTembakBadan6 { frame 60 { stop(); } } movieClip 1494 { frame 50 { stop(); } } movieClip 1495 zombieTembakBadan7 { frame 60 { stop(); } } movieClip 1507 { frame 35 { stop(); } } movieClip 1508 zombieTembakBadan8 { frame 60 { stop(); } } movieClip 1515 { frame 31 { stop(); } } movieClip 1516 zombieBangunKaki1 { frame 40 { stop(); } } movieClip 1523 { frame 30 { stop(); } } movieClip 1524 zombieBangunKaki2 { frame 40 { stop(); } } movieClip 1532 { frame 32 { stop(); } } movieClip 1533 zombieBangunKaki3 { frame 40 { stop(); } } movieClip 1541 { frame 32 { stop(); } } movieClip 1542 zombieBangunKaki4 { frame 40 { stop(); } } movieClip 1549 { frame 30 { stop(); } } movieClip 1550 zombieBangunKaki5 { frame 40 { stop(); } } movieClip 1559 { frame 35 { stop(); } } movieClip 1560 zombieBangunKaki6 { frame 40 { stop(); } } movieClip 1568 { frame 36 { stop(); } } movieClip 1569 zombieBangunKaki7 { frame 40 { stop(); } } movieClip 1575 { frame 30 { stop(); } } movieClip 1576 zombieBangunKaki8 { frame 40 { stop(); } } movieClip 1577 { } movieClip 1623 { frame 85 { stop(); } } movieClip 1624 zombiePecahKaki1 { frame 80 { stop(); } } movieClip 1668 { frame 85 { stop(); } } movieClip 1669 zombiePecahKaki2 { frame 80 { stop(); } } movieClip 1715 { frame 80 { stop(); } } movieClip 1716 zombiePecahKaki3 { frame 80 { stop(); } } movieClip 1757 { frame 80 { stop(); } } movieClip 1758 zombiePecahKaki4 { frame 80 { stop(); } } movieClip 1800 { frame 70 { stop(); } } movieClip 1801 zombiePecahKaki5 { frame 80 { stop(); } } movieClip 1847 { frame 75 { stop(); } } movieClip 1848 zombiePecahKaki6 { frame 80 { stop(); } } movieClip 1892 { frame 79 { stop(); } } movieClip 1893 zombiePecahKaki7 { frame 80 { stop(); } } movieClip 1942 { frame 80 { stop(); } } movieClip 1943 zombiePecahKaki8 { frame 80 { stop(); } } movieClip 1944 { } movieClip 1986 { frame 50 { stop(); } } movieClip 1987 { } movieClip 1988 zombiePalaPecah1 { } movieClip 2024 { frame 67 { stop(); } } movieClip 2025 { } movieClip 2026 zombiePalaPecah2 { } movieClip 2062 { frame 62 { stop(); } } movieClip 2063 { } movieClip 2064 zombiePalaPecah3 { } movieClip 2102 { frame 78 { stop(); } } movieClip 2103 { } movieClip 2104 zombiePalaPecah4 { } movieClip 2140 { frame 67 { stop(); } } movieClip 2141 { } movieClip 2142 zombiePalaPecah5 { } movieClip 2179 { frame 72 { stop(); } } movieClip 2180 { } movieClip 2181 zombiePalaPecah6 { } movieClip 2216 { frame 77 { stop(); } } movieClip 2217 { } movieClip 2218 zombiePalaPecah7 { } movieClip 2261 { frame 86 { stop(); } } movieClip 2262 { } movieClip 2263 zombiePalaPecah8 { } movieClip 2275 efekDarah1 { frame 12 { stop(); removeMovieClip(this); } } movieClip 2285 efekDarah2 { frame 10 { stop(); removeMovieClip(this); } } movieClip 2296 efekDarah3 { frame 11 { stop(); removeMovieClip(this); } } movieClip 2313 efekDarah4 { frame 19 { stop(); removeMovieClip(this); } } movieClip 2334 efekDarah5 { frame 27 { stop(); removeMovieClip(this); } } movieClip 2346 efekDarah6 { frame 23 { stop(); removeMovieClip(this); } } movieClip 2359 efekDarah7 { frame 13 { stop(); removeMovieClip(this); } } movieClip 2392 efekGranat { frame 35 { stop(); removeMovieClip(this); } } movieClip 2395 back4 { } movieClip 2397 pintu4 { } movieClip 2400 back5 { } movieClip 2402 pintu5 { } movieClip 2405 back6 { } movieClip 2407 pintu6 { } movieClip 2410 back7 { } movieClip 2412 pintu7 { } movieClip 2413 back8 { } movieClip 2434 { frame 82 { stop(); } } movieClip 2435 zombieLebur1 { } movieClip 2456 { frame 65 { stop(); } } movieClip 2457 zombieLebur2 { } movieClip 2478 { frame 70 { stop(); } } movieClip 2479 zombieLebur3 { } movieClip 2500 { frame 63 { stop(); } } movieClip 2501 zombieLebur4 { } movieClip 2520 { frame 73 { stop(); } } movieClip 2521 zombieLebur5 { } movieClip 2542 { frame 66 { stop(); } } movieClip 2543 zombieLebur6 { } movieClip 2564 { frame 65 { stop(); } } movieClip 2565 zombieLebur7 { } movieClip 2586 { frame 75 { stop(); } } movieClip 2587 zombieLebur8 { } movieClip 2590 peluru9 { } movieClip 2593 peluru11 { } movieClip 2594 peluru12 { } movieClip 2597 peluru16 { frame 1 { stop(); } } movieClip 2683 { frame 47 { stop(); removeMovieClip(this); } } movieClip 2684 ledakan1 { } movieClip 2696 { frame 47 { stop(); removeMovieClip(_parent); } } movieClip 2697 ledakan3 { } movieClip 2699 pintu8 { } movieClip 2704 { } movieClip 2705 { } movieClip 2706 { frame 10 { stop(); } } movieClip 2710 { } movieClip 2711 { } movieClip 2712 { frame 10 { stop(); } } movieClip 2715 { } movieClip 2716 { } movieClip 2717 { frame 10 { stop(); } } movieClip 2722 { } movieClip 2723 { } movieClip 2724 { frame 10 { stop(); } } movieClip 2731 { } movieClip 2734 { } movieClip 2735 { } // unknown tag 88 length 104 movieClip 2739 { frame 1 { stop(); } } movieClip 2740 pauseMenu { frame 1 { stop(); } frame 2 { 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(); startDrag(bar2_mc.bar_mc, true, -115, 0, 115, 0); }; bar2_mc.indi_mc.onReleaseOutside = function () { over(); stopDrag(); }; bar2_mc.indi_mc.onRelease = bar2_mc.indi_mc.onReleaseOutside; cekSpeedQuality(); } } movieClip 2751 hasil_mc { frame 35 { stop(); _root.cekHasil(); } } movieClip 2776 { frame 40 { stop(); } } movieClip 2777 zombieHancur1 { } movieClip 2800 { frame 40 { stop(); } } movieClip 2801 zombieHancur2 { } movieClip 2824 { frame 40 { stop(); } } movieClip 2825 zombieHancur3 { } movieClip 2848 { frame 40 { stop(); } } movieClip 2849 zombieHancur4 { } movieClip 2872 { frame 40 { stop(); } } movieClip 2873 zombieHancur5 { } movieClip 2898 { frame 40 { stop(); } } movieClip 2899 zombieHancur6 { } movieClip 2922 { frame 43 { stop(); } } movieClip 2923 zombieHancur7 { } movieClip 2946 { frame 40 { stop(); } } movieClip 2947 zombieHancur8 { } movieClip 2950 back10 { } movieClip 2952 pintu10 { } movieClip 2955 back11 { } movieClip 2957 pintu11 { } movieClip 2960 back12 { } movieClip 2962 pintu12 { } movieClip 2965 back13 { } movieClip 2966 senjata2 { frame 1 { stop(); } frame 2 { _root.backArit(); } } movieClip 2969 { } movieClip 2971 { } movieClip 2973 { } movieClip 2975 { } movieClip 2976 { } movieClip 2977 senjata4 { frame 1 { stop(); } frame 2 { _root.backKapak(); } } movieClip 2980 { } movieClip 2981 senjata5 { frame 1 { stop(); } frame 8 { _root.backTombak(); } } movieClip 2985 { } movieClip 3008 { frame 1 { _root.backLightsaber(); } } movieClip 3009 senjata7 { frame 1 { stop(); } } movieClip 3017 senjata10 { frame 1 { stop(); } frame 12 { _root.cekPeluru(); _root.backPanah(); _root.backPanah(); _root.backPanah(); } } movieClip 3023 { } movieClip 3029 { } movieClip 3030 senjata14 { frame 1 { stop(); } frame 11 { _root.cekPeluru(); _root.backShotgun(); _root.backShotgun(); } } movieClip 3036 { } movieClip 3037 senjata15 { frame 1 { stop(); } frame 5 { _root.cekPeluru(); _root.backShotgun(); } } movieClip 3053 senjata18 { frame 1 { stop(); } frame 19 { _root.backLaser(); } } movieClip 3054 { } movieClip 3070 { } movieClip 3071 zombieSerang1 { } movieClip 3072 { } movieClip 3088 { } movieClip 3089 zombieSerang2 { } movieClip 3103 { } movieClip 3104 zombieSerang3 { } movieClip 3118 { } movieClip 3119 zombieSerang4 { } movieClip 3130 { } movieClip 3131 zombieSerang5 { } movieClip 3144 { } movieClip 3145 zombieSerang6 { } movieClip 3146 { } movieClip 3162 { } movieClip 3163 zombieSerang7 { } movieClip 3175 { } movieClip 3176 zombieSerang8 { } movieClip 3177 { frame 10 { _root.cekPeluru(); _root.backGun(); } frame 16 { _root.cekPeluru(); _root.backGun(); } frame 22 { _root.cekPeluru(); _root.backGun(); } frame 28 { _root.cekPeluru(); _root.backGun(); } frame 34 { _root.cekPeluru(); _root.backGun(); } frame 40 { _root.cekPeluru(); _root.backGun(); } frame 45 { _root.cekPeluru(); _root.backGun(); } } movieClip 3178 senjata13 { frame 1 { stop(); } } movieClip 3190 barikade1 { frame 1 { stop(); } } movieClip 3202 barikade2 { frame 1 { stop(); } } movieClip 3214 barikade3 { frame 1 { stop(); } } movieClip 3215 { } movieClip 3231 { frame 11 { stop(); } } movieClip 3235 { } movieClip 3236 { frame 1 { stop(); } } movieClip 3248 { frame 12 { stop(); } } movieClip 3258 { frame 1 { stop(); } } movieClip 3275 { frame 10 { stop(); } } movieClip 3278 { frame 1 { stop(); } } movieClip 3291 { frame 12 { stop(); } } movieClip 3294 { frame 1 { stop(); } } movieClip 3296 { } movieClip 3297 { frame 19 { _root.cekPeluru(_parent); _root.backPistol(); } } movieClip 3314 { frame 94 { stop(); _root.cekBangkit(_parent); } } movieClip 3315 pejuang1x { frame 1 { stop(); } } movieClip 3316 { frame 27 { _root.cekPeluru(_parent); _root.backSenapan(); } } movieClip 3317 { } movieClip 3334 { } movieClip 3365 { frame 114 { stop(); _root.cekBangkit(_parent); } } movieClip 3366 pejuang2x { frame 1 { stop(); } } movieClip 3375 { frame 21 { _root.cekPeluru(_parent); _root.backGun(); } frame 25 { _root.cekPeluru(_parent); _root.backGun(); } frame 29 { _root.cekPeluru(_parent); _root.backGun(); } } movieClip 3387 { } movieClip 3419 { frame 98 { stop(); _root.cekBangkit(_parent); } } movieClip 3420 pejuang3x { frame 1 { stop(); } } movieClip 3421 { frame 10 { _root.cekPeluru(_parent); _root.backShotgun(); } } movieClip 3454 { frame 90 { stop(); _root.cekBangkit(_parent); } } movieClip 3455 pejuang4x { frame 1 { stop(); } } movieClip 3456 senjata17 { frame 1 { stop(); } frame 24 { _root.cekPeluru(); _root.backRocket(); _root.backRocket(); } } movieClip 3465 { } movieClip 3466 peluru10 { } movieClip 3467 peluru13 { } movieClip 3470 peluru14 { } movieClip 3471 peluru15 { } movieClip 3472 peluru17 { } movieClip 3476 { } movieClip 3478 ranjau2 { } movieClip 3482 ranjau4 { } movieClip 3486 ranjau3 { } movieClip 3490 ranjau1 { frame 1 { stop(); } } movieClip 3491 { } movieClip 3493 { } movieClip 3518 { frame 50 { stop(); } } movieClip 3519 zombieBelah1 { frame 80 { stop(); } } movieClip 3542 { frame 45 { stop(); } } movieClip 3543 zombieBelah2 { frame 80 { stop(); } } movieClip 3544 { } movieClip 3571 { frame 50 { stop(); } } movieClip 3572 zombieBelah3 { frame 80 { stop(); } } movieClip 3598 { frame 45 { stop(); } } movieClip 3599 zombieBelah4 { frame 80 { stop(); } } movieClip 3624 { frame 50 { stop(); } } movieClip 3625 zombieBelah5 { frame 80 { stop(); } } movieClip 3651 { frame 55 { stop(); } } movieClip 3652 zombieBelah6 { frame 80 { stop(); } } movieClip 3676 { frame 45 { stop(); } } movieClip 3677 zombieBelah7 { frame 80 { stop(); } } movieClip 3702 { frame 50 { stop(); } } movieClip 3703 zombieBelah8 { frame 80 { stop(); } } movieClip 3714 { } movieClip 3715 zombie9 { } movieClip 3725 { } movieClip 3726 zombie10 { } movieClip 3738 { } movieClip 3739 zombie11 { } movieClip 3740 { } movieClip 3745 { } movieClip 3756 { } movieClip 3758 { } movieClip 3760 { } movieClip 3762 { } movieClip 3763 { } movieClip 3764 { } movieClip 3765 { } movieClip 3766 { } movieClip 3808 { frame 85 { stop(); } } movieClip 3809 zombieSetrum1 { frame 80 { stop(); } } movieClip 3814 { } movieClip 3816 { } movieClip 3818 { } movieClip 3820 { } movieClip 3858 { frame 77 { stop(); } } movieClip 3859 zombieSetrum2 { frame 80 { stop(); } } movieClip 3871 { } movieClip 3873 { } movieClip 3875 { } movieClip 3877 { } movieClip 3915 { frame 72 { stop(); } } movieClip 3916 zombieSetrum3 { frame 80 { stop(); } } movieClip 3919 { } movieClip 3921 { } movieClip 3923 { } movieClip 3925 { } movieClip 3947 { frame 77 { stop(); } } movieClip 3948 zombieSetrum4 { frame 80 { stop(); } } movieClip 3956 { } movieClip 3958 { } movieClip 3960 { } movieClip 3962 { } movieClip 3996 { frame 80 { stop(); } } movieClip 3997 zombieSetrum5 { frame 80 { stop(); } } movieClip 4008 { } movieClip 4010 { } movieClip 4012 { } movieClip 4014 { } movieClip 4052 { frame 79 { stop(); } } movieClip 4053 zombieSetrum6 { frame 80 { stop(); } } movieClip 4064 { } movieClip 4066 { } movieClip 4068 { } movieClip 4070 { } movieClip 4107 { frame 79 { stop(); } } movieClip 4108 zombieSetrum7 { frame 80 { stop(); } } movieClip 4118 { } movieClip 4120 { } movieClip 4122 { } movieClip 4124 { } movieClip 4134 { frame 80 { stop(); } } movieClip 4135 zombieSetrum8 { frame 80 { stop(); } } movieClip 4144 { } movieClip 4145 zombieSerang9 { } movieClip 4152 { } movieClip 4153 zombieSerang10 { } movieClip 4163 { } movieClip 4164 zombieSerang11 { } movieClip 4174 { frame 50 { stop(); } } movieClip 4175 zombieMati9 { frame 50 { stop(); } } movieClip 4182 { frame 55 { stop(); } } movieClip 4183 zombieMati10 { frame 40 { stop(); } } movieClip 4193 { frame 50 { stop(); } } movieClip 4194 zombieMati11 { frame 50 { stop(); } } movieClip 4209 { frame 80 { stop(); } } movieClip 4210 zombieBakar1 { frame 80 { stop(); } } movieClip 4211 zombieBakar2 { frame 80 { stop(); } } movieClip 4212 zombieBakar3 { frame 80 { stop(); } } movieClip 4213 zombieBakar4 { frame 80 { stop(); } } movieClip 4214 zombieBakar5 { frame 80 { stop(); } } movieClip 4215 zombieBakar6 { frame 80 { stop(); } } movieClip 4216 zombieBakar7 { frame 80 { stop(); } } movieClip 4217 zombieBakar8 { frame 80 { stop(); } } movieClip 4236 percikApi { frame 19 { stop(); removeMovieClip(this); } } movieClip 4238 xsound { } frame 20 { stop(); musik = attachMovie('xsound', 'zmusik', 2); sound = attachMovie('xsound', 'zsound', 3); enter_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 == 'bubblebox.com') { gotoAndStop(41); } else { gotoAndPlay(41); } }; } movieClip 4271 { } movieClip 4272 { } movieClip 4273 { frame 10 { stop(); } } instance of movieClip 24 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } instance logo_mc of movieClip 31 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1389&subid=preloader', '_blank'); } } frame 33 { nextFrame(); } frame 34 { stop(); } instance logo_mc of movieClip 31 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1389&subid=sitelocked', '_blank'); } } frame 35 { prevFrame(); } frame 41 { play(); backMenu(); } movieClip 4278 { } movieClip 4280 { } movieClip 4309 { } movieClip 4310 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 4311 { } movieClip 4312 { frame 1 { this.link.onRelease = function () { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1389&subid=splash', '_blank'); }; } frame 210 { stop(); } } frame 280 { gotoAndStop(281); } frame 281 { play(); } movieClip 4313 { } instance of movieClip 4313 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } movieClip 4322 { frame 107 { stop(); } } frame 510 { stop(); gotoAndStop(511); } frame 511 { stop(); msgBox_mc2._visible = false; play_btn.onRelease = function () { if (xlevel == 1) { msgBox_mc2._visible = true; msgBox_mc2.gotoAndStop(2); msgBox_mc2.judul = 'Select Difficulty'; msgBox_mc2.easy_btn.onRelease = function () { initAwal(); jenisLevel = 1; simpanData(); gotoAndStop(517); }; msgBox_mc2.normal_btn.onRelease = function () { initAwal(); jenisLevel = 2; simpanData(); gotoAndStop(517); }; msgBox_mc2.hard_btn.onRelease = function () { initAwal(); jenisLevel = 3; simpanData(); gotoAndStop(517); }; msgBox_mc2.back_btn.onRelease = function () { msgBox_mc2._visible = false; }; } else { msgBox_mc2._visible = true; msgBox_mc2.gotoAndStop(1); msgBox_mc2.judul = 'Continue Game'; msgBox_mc2.isi = 'Are you sure want to continue last previouse game?\nLevel: ' + xlevel + ', Score: ' + score + '.'; msgBox_mc2.yes_btn.onRelease = function () { loadData(); if (jenisLevel == undefined) { jenisLevel = 2; simpanData(); } backStory(); gotoAndStop(516); }; msgBox_mc2.no_btn.onRelease = function () { msgBox_mc2._visible = true; msgBox_mc2.gotoAndStop(2); msgBox_mc2.judul = 'Select Difficulty'; msgBox_mc2.easy_btn.onRelease = function () { initAwal(); jenisLevel = 1; simpanData(); gotoAndStop(517); }; msgBox_mc2.normal_btn.onRelease = function () { initAwal(); jenisLevel = 2; simpanData(); gotoAndStop(517); }; msgBox_mc2.hard_btn.onRelease = function () { initAwal(); jenisLevel = 3; simpanData(); gotoAndStop(517); }; msgBox_mc2.back_btn.onRelease = function () { msgBox_mc2._visible = false; }; }; msgBox_mc2.cancel_btn.onRelease = function () { msgBox_mc2._visible = false; }; } }; instructions_btn.onRelease = function () { gotoAndStop(514); }; options_btn.onRelease = function () { gotoAndStop(513); }; credits_btn.onRelease = function () { gotoAndStop(515); }; high_btn.onRelease = function () { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1389&subid=highscores&action=viewscores', '_blank'); }; more_btn.onRelease = function () { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1389&subid=moregames', '_blank'); }; } movieClip 4325 { frame 1 { gotoAndPlay(this._currentframe + random(200) + 1); } frame 243 { gotoAndPlay(this._currentframe + random(200) + 1); } } movieClip 4327 { } movieClip 4330 { } movieClip 4331 { } movieClip 4332 { frame 10 { stop(); } } movieClip 4336 { } movieClip 4337 { } movieClip 4338 { frame 10 { stop(); } } movieClip 4342 { } movieClip 4343 { } movieClip 4344 { frame 10 { stop(); } } movieClip 4348 { } movieClip 4349 { } movieClip 4351 { } movieClip 4352 { } movieClip 4353 { frame 10 { stop(); } } movieClip 4356 { } movieClip 4357 { } movieClip 4358 { frame 10 { stop(); } } movieClip 4364 { } movieClip 4365 { } movieClip 4366 { frame 10 { stop(); } } movieClip 4369 { } movieClip 4370 { } movieClip 4371 { frame 10 { stop(); } } movieClip 4374 { } movieClip 4375 { } movieClip 4376 { frame 10 { stop(); } } movieClip 4380 { } movieClip 4381 { } movieClip 4382 { frame 10 { stop(); } } movieClip 4385 { } movieClip 4386 { } movieClip 4387 { frame 10 { stop(); } } movieClip 4390 { } movieClip 4391 { } movieClip 4392 { frame 10 { stop(); } } movieClip 4394 { frame 1 { stop(); } } instance of movieClip 24 { onClipEvent (release) { getURL('http://www.belugerinstudios.com/', '_blank'); } } instance logo_mc of movieClip 31 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1389&subid=preloader', '_blank'); } } frame 512 { prevFrame(); } frame 513 { 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(); back_btn.onRelease = function () { gotoAndStop(511); }; 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(); startDrag(bar2_mc.bar_mc, true, -115, 0, 115, 0); }; bar2_mc.indi_mc.onReleaseOutside = function () { over(); stopDrag(); }; bar2_mc.indi_mc.onRelease = bar2_mc.indi_mc.onReleaseOutside; cekSpeedQuality(); } movieClip 4396 { } movieClip 4397 { } movieClip 4398 { frame 10 { stop(); } } movieClip 4402 { } frame 514 { stop(); back_btn.onRelease = function () { gotoAndStop(511); }; } frame 515 { stop(); back_btn.onRelease = function () { gotoAndStop(511); }; } frame 516 { function cekPosisi() { i = 1; while (i <= 72) { if (map['lokasi' + i]._currentframe == 3) { posisiMap = i; } ++i; } } function klikLokasi() { i = 1; while (i <= 72) { if (map['lokasi' + i]._currentframe != 2) { map['lokasi' + i].gotoAndStop(1); } ++i; } this.gotoAndStop(3); cekPosisi(); } function overLokasi() { myStr = new String(this); if (myStr.length == 19) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } if (jenisLevel == 1) { totalBonus = 1 * Math.ceil(Math.ceil(xzwaves[backKe[indi]] / 2 + (xlevel - 1) * 10) * (xzpowers[backKe[indi]] * xlevel) * xzspeeds[backKe[indi]] * 100); } else { if (jenisLevel == 2) { totalBonus = 2 * Math.ceil(Math.ceil(xzwaves[backKe[indi]] / 2 + (xlevel - 1) * 10) * (xzpowers[backKe[indi]] * xlevel) * xzspeeds[backKe[indi]] * 100); } else { if (jenisLevel == 3) { totalBonus = 3 * Math.ceil(Math.ceil(xzwaves[backKe[indi]] / 2 + (xlevel - 1) * 10) * (xzpowers[backKe[indi]] * xlevel) * xzspeeds[backKe[indi]] * 100); } } } informasi = namaLokasi[backKe[indi]] + '\nZombies:\n' + Math.ceil(xzwaves[backKe[indi]] / 2 + (xlevel - 1) * 10) + '\nZombie\'s Power:\n' + xzpowers[backKe[indi]] * xlevel + '\nZombie\'s Intensity\n' + xzspeeds[backKe[indi]] + '\nBonus Scores:\n' + totalBonus; wlokasi = 'Location ' + indi; } function outLokasi() { informasi = ''; wlokasi = ''; } stop(); Mouse.show(); next_btn.onRelease = function () { cekPosisi(); waveZombie = xzwaves[backKe[posisiMap]]; speedZombie = xzspeeds[backKe[posisiMap]]; powerZombie = xzpowers[backKe[posisiMap]]; if (xlevel == 1) { gotoAndStop(1269); } else { gotoAndStop(1271); } }; informasi = ''; posisiMap = 1; wlevel = 'Level: ' + xlevel + '/30'; wscore = 'Score: ' + score; wlokasi = ''; if (jenisLevel == 1) { wmode = 'Easy Difficulty'; } else { if (jenisLevel == 2) { wmode = 'Normal Difficulty'; } else { if (jenisLevel == 3) { wmode = 'Hard Difficulty'; } } } backKe = new Array('', 7, 5, 2, 4, 8, 6, 7, 1, 5, 3, 1, 3, 4, 2, 6, 8, 9, 8, 7, 6, 10, 8, 6, 9, 7, 1, 13, 11, 7, 12, 7, 10, 2, 7, 13, 1, 1, 2, 4, 1, 7, 3, 7, 11, 13, 12, 6, 12, 6, 7, 13, 1, 12, 7, 4, 9, 8, 4, 12, 11, 12, 1, 7, 6, 8, 7, 12, 9, 12, 12, 9, 14); namaLokasi = new Array('', 'House', 'Warehouse', 'Laboratory', 'Hospital', 'Basketball Yard', 'Grass Land', 'Street', 'Forest', 'Forest', 'Church', 'School', 'Corn Field', 'Market', 'Main Laboratory'); xzwaves = new Array('', 20, 25, 30, 15, 30, 35, 40, 45, 65, 50, 60, 70, 75, 80); xzpowers = new Array('', 3, 4, 3, 4.5, 2.5, 2.5, 3, 3.5, 5, 5.5, 4.5, 4, 5.5, 6); xzspeeds = new Array('', 3, 2.5, 3.5, 3, 3, 4, 3.5, 4.5, 5, 3, 5, 4, 5.5, 6); if (xlevel <= 10) { map.gotoAndStop(1); } else { if (xlevel <= 20) { map.gotoAndStop(2); } else { if (xlevel <= 30) { map.gotoAndStop(3); } } } i = 1; while (i <= 100) { map['lokasi' + i]._visible = false; map.lokasi1.gotoAndStop(1); ++i; } if (xlevel == 1) { map.lokasi1._visible = true; map.lokasi1.gotoAndStop(3); map['lokasi' + i].onRelease = klikLokasi; map.lokasi1.onRollOver = overLokasi; map.lokasi1.onRollOut = outLokasi; } else { if (xlevel == 2) { map.lokasi1._visible = true; map.lokasi2._visible = true; map.lokasi3._visible = true; map.lokasi1.gotoAndStop(2); map.lokasi2.gotoAndStop(3); map.lokasi3.gotoAndStop(1); i = 2; while (i <= 3) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 3) { map.lokasi1._visible = true; map.lokasi2._visible = true; map.lokasi3._visible = true; map.lokasi4._visible = true; map.lokasi5._visible = true; map.lokasi1.gotoAndStop(2); map.lokasi2.gotoAndStop(2); map.lokasi3.gotoAndStop(2); map.lokasi4.gotoAndStop(3); map.lokasi5.gotoAndStop(1); i = 4; while (i <= 5) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 4) { map.lokasi1._visible = true; map.lokasi2._visible = true; map.lokasi3._visible = true; map.lokasi4._visible = true; map.lokasi5._visible = true; map.lokasi6._visible = true; map.lokasi7._visible = true; map.lokasi1.gotoAndStop(2); map.lokasi2.gotoAndStop(2); map.lokasi3.gotoAndStop(2); map.lokasi4.gotoAndStop(2); map.lokasi5.gotoAndStop(2); map.lokasi6.gotoAndStop(3); map.lokasi7.gotoAndStop(1); i = 6; while (i <= 7) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 5) { map.lokasi1._visible = true; map.lokasi2._visible = true; map.lokasi3._visible = true; map.lokasi4._visible = true; map.lokasi5._visible = true; map.lokasi6._visible = true; map.lokasi7._visible = true; map.lokasi8._visible = true; map.lokasi9._visible = true; map.lokasi10._visible = true; map.lokasi1.gotoAndStop(2); map.lokasi2.gotoAndStop(2); map.lokasi3.gotoAndStop(2); map.lokasi4.gotoAndStop(2); map.lokasi5.gotoAndStop(2); map.lokasi6.gotoAndStop(2); map.lokasi7.gotoAndStop(2); map.lokasi8.gotoAndStop(1); map.lokasi9.gotoAndStop(3); map.lokasi10.gotoAndStop(1); i = 8; while (i <= 10) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 6) { map.lokasi1._visible = true; map.lokasi2._visible = true; map.lokasi3._visible = true; map.lokasi4._visible = true; map.lokasi5._visible = true; map.lokasi6._visible = true; map.lokasi7._visible = true; map.lokasi8._visible = true; map.lokasi9._visible = true; map.lokasi10._visible = true; map.lokasi11._visible = true; map.lokasi12._visible = true; map.lokasi13._visible = true; map.lokasi1.gotoAndStop(2); map.lokasi2.gotoAndStop(2); map.lokasi3.gotoAndStop(2); map.lokasi4.gotoAndStop(2); map.lokasi5.gotoAndStop(2); map.lokasi6.gotoAndStop(2); map.lokasi7.gotoAndStop(2); map.lokasi8.gotoAndStop(2); map.lokasi9.gotoAndStop(2); map.lokasi10.gotoAndStop(2); map.lokasi11.gotoAndStop(3); map.lokasi12.gotoAndStop(1); map.lokasi13.gotoAndStop(1); i = 11; while (i <= 13) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 7) { map.lokasi1._visible = true; map.lokasi2._visible = true; map.lokasi3._visible = true; map.lokasi4._visible = true; map.lokasi5._visible = true; map.lokasi6._visible = true; map.lokasi7._visible = true; map.lokasi8._visible = true; map.lokasi9._visible = true; map.lokasi10._visible = true; map.lokasi11._visible = true; map.lokasi12._visible = true; map.lokasi13._visible = true; map.lokasi14._visible = true; map.lokasi15._visible = true; map.lokasi16._visible = true; map.lokasi1.gotoAndStop(2); map.lokasi2.gotoAndStop(2); map.lokasi3.gotoAndStop(2); map.lokasi4.gotoAndStop(2); map.lokasi5.gotoAndStop(2); map.lokasi6.gotoAndStop(2); map.lokasi7.gotoAndStop(2); map.lokasi8.gotoAndStop(2); map.lokasi9.gotoAndStop(2); map.lokasi10.gotoAndStop(2); map.lokasi11.gotoAndStop(2); map.lokasi12.gotoAndStop(2); map.lokasi13.gotoAndStop(2); map.lokasi14.gotoAndStop(3); map.lokasi15.gotoAndStop(1); map.lokasi16.gotoAndStop(1); i = 14; while (i <= 16) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 8) { map.lokasi1._visible = true; map.lokasi2._visible = true; map.lokasi3._visible = true; map.lokasi4._visible = true; map.lokasi5._visible = true; map.lokasi6._visible = true; map.lokasi7._visible = true; map.lokasi8._visible = true; map.lokasi9._visible = true; map.lokasi10._visible = true; map.lokasi11._visible = true; map.lokasi12._visible = true; map.lokasi13._visible = true; map.lokasi14._visible = true; map.lokasi15._visible = true; map.lokasi16._visible = true; map.lokasi17._visible = true; map.lokasi18._visible = true; map.lokasi1.gotoAndStop(2); map.lokasi2.gotoAndStop(2); map.lokasi3.gotoAndStop(2); map.lokasi4.gotoAndStop(2); map.lokasi5.gotoAndStop(2); map.lokasi6.gotoAndStop(2); map.lokasi7.gotoAndStop(2); map.lokasi8.gotoAndStop(2); map.lokasi9.gotoAndStop(2); map.lokasi10.gotoAndStop(2); map.lokasi11.gotoAndStop(2); map.lokasi12.gotoAndStop(2); map.lokasi13.gotoAndStop(2); map.lokasi14.gotoAndStop(2); map.lokasi15.gotoAndStop(2); map.lokasi16.gotoAndStop(2); map.lokasi17.gotoAndStop(3); map.lokasi18.gotoAndStop(1); i = 17; while (i <= 18) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 9) { map.lokasi1._visible = true; map.lokasi2._visible = true; map.lokasi3._visible = true; map.lokasi4._visible = true; map.lokasi5._visible = true; map.lokasi6._visible = true; map.lokasi7._visible = true; map.lokasi8._visible = true; map.lokasi9._visible = true; map.lokasi10._visible = true; map.lokasi11._visible = true; map.lokasi12._visible = true; map.lokasi13._visible = true; map.lokasi14._visible = true; map.lokasi15._visible = true; map.lokasi16._visible = true; map.lokasi17._visible = true; map.lokasi18._visible = true; map.lokasi19._visible = true; map.lokasi20._visible = true; map.lokasi21._visible = true; map.lokasi1.gotoAndStop(2); map.lokasi2.gotoAndStop(2); map.lokasi3.gotoAndStop(2); map.lokasi4.gotoAndStop(2); map.lokasi5.gotoAndStop(2); map.lokasi6.gotoAndStop(2); map.lokasi7.gotoAndStop(2); map.lokasi8.gotoAndStop(2); map.lokasi9.gotoAndStop(2); map.lokasi10.gotoAndStop(2); map.lokasi11.gotoAndStop(2); map.lokasi12.gotoAndStop(2); map.lokasi13.gotoAndStop(2); map.lokasi14.gotoAndStop(2); map.lokasi15.gotoAndStop(2); map.lokasi16.gotoAndStop(2); map.lokasi17.gotoAndStop(2); map.lokasi18.gotoAndStop(2); map.lokasi19.gotoAndStop(3); map.lokasi20.gotoAndStop(1); map.lokasi21.gotoAndStop(1); i = 19; while (i <= 21) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 10) { map.lokasi1._visible = true; map.lokasi2._visible = true; map.lokasi3._visible = true; map.lokasi4._visible = true; map.lokasi5._visible = true; map.lokasi6._visible = true; map.lokasi7._visible = true; map.lokasi8._visible = true; map.lokasi9._visible = true; map.lokasi10._visible = true; map.lokasi11._visible = true; map.lokasi12._visible = true; map.lokasi13._visible = true; map.lokasi14._visible = true; map.lokasi15._visible = true; map.lokasi16._visible = true; map.lokasi17._visible = true; map.lokasi18._visible = true; map.lokasi19._visible = true; map.lokasi20._visible = true; map.lokasi21._visible = true; map.lokasi22._visible = true; map.lokasi23._visible = true; map.lokasi24._visible = true; map.lokasi1.gotoAndStop(2); map.lokasi2.gotoAndStop(2); map.lokasi3.gotoAndStop(2); map.lokasi4.gotoAndStop(2); map.lokasi5.gotoAndStop(2); map.lokasi6.gotoAndStop(2); map.lokasi7.gotoAndStop(2); map.lokasi8.gotoAndStop(2); map.lokasi9.gotoAndStop(2); map.lokasi10.gotoAndStop(2); map.lokasi11.gotoAndStop(2); map.lokasi12.gotoAndStop(2); map.lokasi13.gotoAndStop(2); map.lokasi14.gotoAndStop(2); map.lokasi15.gotoAndStop(2); map.lokasi16.gotoAndStop(2); map.lokasi17.gotoAndStop(2); map.lokasi18.gotoAndStop(2); map.lokasi19.gotoAndStop(2); map.lokasi20.gotoAndStop(2); map.lokasi21.gotoAndStop(2); map.lokasi22.gotoAndStop(3); map.lokasi23.gotoAndStop(1); map.lokasi24.gotoAndStop(1); i = 22; while (i <= 24) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 11) { map.lokasi25._visible = true; map.lokasi26._visible = true; map.lokasi25.gotoAndStop(3); map.lokasi26.gotoAndStop(1); i = 25; while (i <= 26) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 12) { map.lokasi25._visible = true; map.lokasi26._visible = true; map.lokasi27._visible = true; map.lokasi28._visible = true; map.lokasi29._visible = true; map.lokasi30._visible = true; map.lokasi25.gotoAndStop(2); map.lokasi26.gotoAndStop(2); map.lokasi27.gotoAndStop(3); map.lokasi28.gotoAndStop(1); map.lokasi29.gotoAndStop(1); map.lokasi30.gotoAndStop(1); i = 27; while (i <= 30) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 13) { map.lokasi25._visible = true; map.lokasi26._visible = true; map.lokasi27._visible = true; map.lokasi28._visible = true; map.lokasi29._visible = true; map.lokasi30._visible = true; map.lokasi31._visible = true; map.lokasi32._visible = true; map.lokasi33._visible = true; map.lokasi25.gotoAndStop(2); map.lokasi26.gotoAndStop(2); map.lokasi27.gotoAndStop(2); map.lokasi28.gotoAndStop(2); map.lokasi29.gotoAndStop(2); map.lokasi30.gotoAndStop(2); map.lokasi31.gotoAndStop(3); map.lokasi32.gotoAndStop(1); map.lokasi33.gotoAndStop(1); i = 31; while (i <= 33) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 14) { map.lokasi25._visible = true; map.lokasi26._visible = true; map.lokasi27._visible = true; map.lokasi28._visible = true; map.lokasi29._visible = true; map.lokasi30._visible = true; map.lokasi31._visible = true; map.lokasi32._visible = true; map.lokasi33._visible = true; map.lokasi34._visible = true; map.lokasi35._visible = true; map.lokasi36._visible = true; map.lokasi25.gotoAndStop(2); map.lokasi26.gotoAndStop(2); map.lokasi27.gotoAndStop(2); map.lokasi28.gotoAndStop(2); map.lokasi29.gotoAndStop(2); map.lokasi30.gotoAndStop(2); map.lokasi31.gotoAndStop(2); map.lokasi32.gotoAndStop(2); map.lokasi33.gotoAndStop(2); map.lokasi34.gotoAndStop(3); map.lokasi35.gotoAndStop(1); map.lokasi36.gotoAndStop(1); i = 34; while (i <= 36) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 15) { map.lokasi25._visible = true; map.lokasi26._visible = true; map.lokasi27._visible = true; map.lokasi28._visible = true; map.lokasi29._visible = true; map.lokasi30._visible = true; map.lokasi31._visible = true; map.lokasi32._visible = true; map.lokasi33._visible = true; map.lokasi34._visible = true; map.lokasi35._visible = true; map.lokasi36._visible = true; map.lokasi37._visible = true; map.lokasi38._visible = true; map.lokasi25.gotoAndStop(2); map.lokasi26.gotoAndStop(2); map.lokasi27.gotoAndStop(2); map.lokasi28.gotoAndStop(2); map.lokasi29.gotoAndStop(2); map.lokasi30.gotoAndStop(2); map.lokasi31.gotoAndStop(2); map.lokasi32.gotoAndStop(2); map.lokasi33.gotoAndStop(2); map.lokasi34.gotoAndStop(2); map.lokasi35.gotoAndStop(2); map.lokasi36.gotoAndStop(2); map.lokasi37.gotoAndStop(3); map.lokasi38.gotoAndStop(1); i = 37; while (i <= 38) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 16) { map.lokasi25._visible = true; map.lokasi26._visible = true; map.lokasi27._visible = true; map.lokasi28._visible = true; map.lokasi29._visible = true; map.lokasi30._visible = true; map.lokasi31._visible = true; map.lokasi32._visible = true; map.lokasi33._visible = true; map.lokasi34._visible = true; map.lokasi35._visible = true; map.lokasi36._visible = true; map.lokasi37._visible = true; map.lokasi38._visible = true; map.lokasi39._visible = true; map.lokasi40._visible = true; map.lokasi25.gotoAndStop(2); map.lokasi26.gotoAndStop(2); map.lokasi27.gotoAndStop(2); map.lokasi28.gotoAndStop(2); map.lokasi29.gotoAndStop(2); map.lokasi30.gotoAndStop(2); map.lokasi31.gotoAndStop(2); map.lokasi32.gotoAndStop(2); map.lokasi33.gotoAndStop(2); map.lokasi34.gotoAndStop(2); map.lokasi35.gotoAndStop(2); map.lokasi36.gotoAndStop(2); map.lokasi37.gotoAndStop(2); map.lokasi38.gotoAndStop(2); map.lokasi39.gotoAndStop(3); map.lokasi40.gotoAndStop(1); i = 39; while (i <= 40) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 17) { map.lokasi25._visible = true; map.lokasi26._visible = true; map.lokasi27._visible = true; map.lokasi28._visible = true; map.lokasi29._visible = true; map.lokasi30._visible = true; map.lokasi31._visible = true; map.lokasi32._visible = true; map.lokasi33._visible = true; map.lokasi34._visible = true; map.lokasi35._visible = true; map.lokasi36._visible = true; map.lokasi37._visible = true; map.lokasi38._visible = true; map.lokasi39._visible = true; map.lokasi40._visible = true; map.lokasi41._visible = true; map.lokasi42._visible = true; map.lokasi25.gotoAndStop(2); map.lokasi26.gotoAndStop(2); map.lokasi27.gotoAndStop(2); map.lokasi28.gotoAndStop(2); map.lokasi29.gotoAndStop(2); map.lokasi30.gotoAndStop(2); map.lokasi31.gotoAndStop(2); map.lokasi32.gotoAndStop(2); map.lokasi33.gotoAndStop(2); map.lokasi34.gotoAndStop(2); map.lokasi35.gotoAndStop(2); map.lokasi36.gotoAndStop(2); map.lokasi37.gotoAndStop(2); map.lokasi38.gotoAndStop(2); map.lokasi39.gotoAndStop(2); map.lokasi40.gotoAndStop(2); map.lokasi41.gotoAndStop(3); map.lokasi42.gotoAndStop(1); i = 41; while (i <= 42) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 18) { map.lokasi25._visible = true; map.lokasi26._visible = true; map.lokasi27._visible = true; map.lokasi28._visible = true; map.lokasi29._visible = true; map.lokasi30._visible = true; map.lokasi31._visible = true; map.lokasi32._visible = true; map.lokasi33._visible = true; map.lokasi34._visible = true; map.lokasi35._visible = true; map.lokasi36._visible = true; map.lokasi37._visible = true; map.lokasi38._visible = true; map.lokasi39._visible = true; map.lokasi40._visible = true; map.lokasi41._visible = true; map.lokasi42._visible = true; map.lokasi43._visible = true; map.lokasi25.gotoAndStop(2); map.lokasi26.gotoAndStop(2); map.lokasi27.gotoAndStop(2); map.lokasi28.gotoAndStop(2); map.lokasi29.gotoAndStop(2); map.lokasi30.gotoAndStop(2); map.lokasi31.gotoAndStop(2); map.lokasi32.gotoAndStop(2); map.lokasi33.gotoAndStop(2); map.lokasi34.gotoAndStop(2); map.lokasi35.gotoAndStop(2); map.lokasi36.gotoAndStop(2); map.lokasi37.gotoAndStop(2); map.lokasi38.gotoAndStop(2); map.lokasi39.gotoAndStop(2); map.lokasi40.gotoAndStop(2); map.lokasi41.gotoAndStop(2); map.lokasi42.gotoAndStop(2); map.lokasi43.gotoAndStop(3); i = 43; while (i <= 43) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 19) { map.lokasi25._visible = true; map.lokasi26._visible = true; map.lokasi27._visible = true; map.lokasi28._visible = true; map.lokasi29._visible = true; map.lokasi30._visible = true; map.lokasi31._visible = true; map.lokasi32._visible = true; map.lokasi33._visible = true; map.lokasi34._visible = true; map.lokasi35._visible = true; map.lokasi36._visible = true; map.lokasi37._visible = true; map.lokasi38._visible = true; map.lokasi39._visible = true; map.lokasi40._visible = true; map.lokasi41._visible = true; map.lokasi42._visible = true; map.lokasi43._visible = true; map.lokasi44._visible = true; map.lokasi45._visible = true; map.lokasi25.gotoAndStop(2); map.lokasi26.gotoAndStop(2); map.lokasi27.gotoAndStop(2); map.lokasi28.gotoAndStop(2); map.lokasi29.gotoAndStop(2); map.lokasi30.gotoAndStop(2); map.lokasi31.gotoAndStop(2); map.lokasi32.gotoAndStop(2); map.lokasi33.gotoAndStop(2); map.lokasi34.gotoAndStop(2); map.lokasi35.gotoAndStop(2); map.lokasi36.gotoAndStop(2); map.lokasi37.gotoAndStop(2); map.lokasi38.gotoAndStop(2); map.lokasi39.gotoAndStop(2); map.lokasi40.gotoAndStop(2); map.lokasi41.gotoAndStop(2); map.lokasi42.gotoAndStop(2); map.lokasi43.gotoAndStop(2); map.lokasi44.gotoAndStop(3); map.lokasi45.gotoAndStop(1); i = 44; while (i <= 45) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 20) { map.lokasi25._visible = true; map.lokasi26._visible = true; map.lokasi27._visible = true; map.lokasi28._visible = true; map.lokasi29._visible = true; map.lokasi30._visible = true; map.lokasi31._visible = true; map.lokasi32._visible = true; map.lokasi33._visible = true; map.lokasi34._visible = true; map.lokasi35._visible = true; map.lokasi36._visible = true; map.lokasi37._visible = true; map.lokasi38._visible = true; map.lokasi39._visible = true; map.lokasi40._visible = true; map.lokasi41._visible = true; map.lokasi42._visible = true; map.lokasi43._visible = true; map.lokasi44._visible = true; map.lokasi45._visible = true; map.lokasi46._visible = true; map.lokasi47._visible = true; map.lokasi48._visible = true; map.lokasi49._visible = true; map.lokasi25.gotoAndStop(2); map.lokasi26.gotoAndStop(2); map.lokasi27.gotoAndStop(2); map.lokasi28.gotoAndStop(2); map.lokasi29.gotoAndStop(2); map.lokasi30.gotoAndStop(2); map.lokasi31.gotoAndStop(2); map.lokasi32.gotoAndStop(2); map.lokasi33.gotoAndStop(2); map.lokasi34.gotoAndStop(2); map.lokasi35.gotoAndStop(2); map.lokasi36.gotoAndStop(2); map.lokasi37.gotoAndStop(2); map.lokasi38.gotoAndStop(2); map.lokasi39.gotoAndStop(2); map.lokasi40.gotoAndStop(2); map.lokasi41.gotoAndStop(2); map.lokasi42.gotoAndStop(2); map.lokasi43.gotoAndStop(2); map.lokasi44.gotoAndStop(2); map.lokasi45.gotoAndStop(2); map.lokasi46.gotoAndStop(3); map.lokasi47.gotoAndStop(1); map.lokasi48.gotoAndStop(1); map.lokasi49.gotoAndStop(1); i = 46; while (i <= 49) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 21) { map.lokasi50._visible = true; map.lokasi51._visible = true; map.lokasi50.gotoAndStop(3); map.lokasi51.gotoAndStop(1); i = 50; while (i <= 51) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 22) { map.lokasi50._visible = true; map.lokasi51._visible = true; map.lokasi52._visible = true; map.lokasi53._visible = true; map.lokasi50.gotoAndStop(2); map.lokasi51.gotoAndStop(2); map.lokasi52.gotoAndStop(3); map.lokasi53.gotoAndStop(1); i = 52; while (i <= 53) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 23) { map.lokasi50._visible = true; map.lokasi51._visible = true; map.lokasi52._visible = true; map.lokasi53._visible = true; map.lokasi54._visible = true; map.lokasi55._visible = true; map.lokasi50.gotoAndStop(2); map.lokasi51.gotoAndStop(2); map.lokasi52.gotoAndStop(2); map.lokasi53.gotoAndStop(2); map.lokasi54.gotoAndStop(3); map.lokasi55.gotoAndStop(1); i = 54; while (i <= 55) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 24) { map.lokasi50._visible = true; map.lokasi51._visible = true; map.lokasi52._visible = true; map.lokasi53._visible = true; map.lokasi54._visible = true; map.lokasi55._visible = true; map.lokasi56._visible = true; map.lokasi57._visible = true; map.lokasi50.gotoAndStop(2); map.lokasi51.gotoAndStop(2); map.lokasi52.gotoAndStop(2); map.lokasi53.gotoAndStop(2); map.lokasi54.gotoAndStop(2); map.lokasi55.gotoAndStop(2); map.lokasi56.gotoAndStop(3); map.lokasi57.gotoAndStop(1); i = 56; while (i <= 57) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 25) { map.lokasi50._visible = true; map.lokasi51._visible = true; map.lokasi52._visible = true; map.lokasi53._visible = true; map.lokasi54._visible = true; map.lokasi55._visible = true; map.lokasi56._visible = true; map.lokasi57._visible = true; map.lokasi58._visible = true; map.lokasi59._visible = true; map.lokasi50.gotoAndStop(2); map.lokasi51.gotoAndStop(2); map.lokasi52.gotoAndStop(2); map.lokasi53.gotoAndStop(2); map.lokasi54.gotoAndStop(2); map.lokasi55.gotoAndStop(2); map.lokasi56.gotoAndStop(2); map.lokasi57.gotoAndStop(2); map.lokasi58.gotoAndStop(3); map.lokasi59.gotoAndStop(1); i = 58; while (i <= 59) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 26) { map.lokasi50._visible = true; map.lokasi51._visible = true; map.lokasi52._visible = true; map.lokasi53._visible = true; map.lokasi54._visible = true; map.lokasi55._visible = true; map.lokasi56._visible = true; map.lokasi57._visible = true; map.lokasi58._visible = true; map.lokasi59._visible = true; map.lokasi60._visible = true; map.lokasi61._visible = true; map.lokasi62._visible = true; map.lokasi50.gotoAndStop(2); map.lokasi51.gotoAndStop(2); map.lokasi52.gotoAndStop(2); map.lokasi53.gotoAndStop(2); map.lokasi54.gotoAndStop(2); map.lokasi55.gotoAndStop(2); map.lokasi56.gotoAndStop(2); map.lokasi57.gotoAndStop(2); map.lokasi58.gotoAndStop(2); map.lokasi59.gotoAndStop(2); map.lokasi60.gotoAndStop(2); map.lokasi61.gotoAndStop(3); map.lokasi62.gotoAndStop(1); i = 61; while (i <= 62) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 27) { map.lokasi50._visible = true; map.lokasi51._visible = true; map.lokasi52._visible = true; map.lokasi53._visible = true; map.lokasi54._visible = true; map.lokasi55._visible = true; map.lokasi56._visible = true; map.lokasi57._visible = true; map.lokasi58._visible = true; map.lokasi59._visible = true; map.lokasi60._visible = true; map.lokasi61._visible = true; map.lokasi62._visible = true; map.lokasi63._visible = true; map.lokasi64._visible = true; map.lokasi65._visible = true; map.lokasi50.gotoAndStop(2); map.lokasi51.gotoAndStop(2); map.lokasi52.gotoAndStop(2); map.lokasi53.gotoAndStop(2); map.lokasi54.gotoAndStop(2); map.lokasi55.gotoAndStop(2); map.lokasi56.gotoAndStop(2); map.lokasi57.gotoAndStop(2); map.lokasi58.gotoAndStop(2); map.lokasi59.gotoAndStop(2); map.lokasi60.gotoAndStop(2); map.lokasi61.gotoAndStop(2); map.lokasi62.gotoAndStop(2); map.lokasi63.gotoAndStop(3); map.lokasi64.gotoAndStop(1); map.lokasi65.gotoAndStop(1); i = 63; while (i <= 65) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 28) { map.lokasi50._visible = true; map.lokasi51._visible = true; map.lokasi52._visible = true; map.lokasi53._visible = true; map.lokasi54._visible = true; map.lokasi55._visible = true; map.lokasi56._visible = true; map.lokasi57._visible = true; map.lokasi58._visible = true; map.lokasi59._visible = true; map.lokasi60._visible = true; map.lokasi61._visible = true; map.lokasi62._visible = true; map.lokasi63._visible = true; map.lokasi64._visible = true; map.lokasi65._visible = true; map.lokasi66._visible = true; map.lokasi67._visible = true; map.lokasi68._visible = true; map.lokasi50.gotoAndStop(2); map.lokasi51.gotoAndStop(2); map.lokasi52.gotoAndStop(2); map.lokasi53.gotoAndStop(2); map.lokasi54.gotoAndStop(2); map.lokasi55.gotoAndStop(2); map.lokasi56.gotoAndStop(2); map.lokasi57.gotoAndStop(2); map.lokasi58.gotoAndStop(2); map.lokasi59.gotoAndStop(2); map.lokasi60.gotoAndStop(2); map.lokasi61.gotoAndStop(2); map.lokasi62.gotoAndStop(2); map.lokasi63.gotoAndStop(2); map.lokasi64.gotoAndStop(2); map.lokasi65.gotoAndStop(2); map.lokasi66.gotoAndStop(3); map.lokasi67.gotoAndStop(1); map.lokasi68.gotoAndStop(1); i = 66; while (i <= 68) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 29) { map.lokasi50._visible = true; map.lokasi51._visible = true; map.lokasi52._visible = true; map.lokasi53._visible = true; map.lokasi54._visible = true; map.lokasi55._visible = true; map.lokasi56._visible = true; map.lokasi57._visible = true; map.lokasi58._visible = true; map.lokasi59._visible = true; map.lokasi60._visible = true; map.lokasi61._visible = true; map.lokasi62._visible = true; map.lokasi63._visible = true; map.lokasi64._visible = true; map.lokasi65._visible = true; map.lokasi66._visible = true; map.lokasi67._visible = true; map.lokasi68._visible = true; map.lokasi69._visible = true; map.lokasi70._visible = true; map.lokasi50.gotoAndStop(2); map.lokasi51.gotoAndStop(2); map.lokasi52.gotoAndStop(2); map.lokasi53.gotoAndStop(2); map.lokasi54.gotoAndStop(2); map.lokasi55.gotoAndStop(2); map.lokasi56.gotoAndStop(2); map.lokasi57.gotoAndStop(2); map.lokasi58.gotoAndStop(2); map.lokasi59.gotoAndStop(2); map.lokasi60.gotoAndStop(2); map.lokasi61.gotoAndStop(2); map.lokasi62.gotoAndStop(2); map.lokasi63.gotoAndStop(2); map.lokasi64.gotoAndStop(2); map.lokasi65.gotoAndStop(2); map.lokasi66.gotoAndStop(2); map.lokasi67.gotoAndStop(2); map.lokasi68.gotoAndStop(2); map.lokasi69.gotoAndStop(3); map.lokasi70.gotoAndStop(1); i = 69; while (i <= 70) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } else { if (xlevel == 30) { map.lokasi50._visible = true; map.lokasi51._visible = true; map.lokasi52._visible = true; map.lokasi53._visible = true; map.lokasi54._visible = true; map.lokasi55._visible = true; map.lokasi56._visible = true; map.lokasi57._visible = true; map.lokasi58._visible = true; map.lokasi59._visible = true; map.lokasi60._visible = true; map.lokasi61._visible = true; map.lokasi62._visible = true; map.lokasi63._visible = true; map.lokasi64._visible = true; map.lokasi65._visible = true; map.lokasi66._visible = true; map.lokasi67._visible = true; map.lokasi68._visible = true; map.lokasi69._visible = true; map.lokasi70._visible = true; map.lokasi71._visible = true; map.lokasi72._visible = true; map.lokasi50.gotoAndStop(2); map.lokasi51.gotoAndStop(2); map.lokasi52.gotoAndStop(2); map.lokasi53.gotoAndStop(2); map.lokasi54.gotoAndStop(2); map.lokasi55.gotoAndStop(2); map.lokasi56.gotoAndStop(2); map.lokasi57.gotoAndStop(2); map.lokasi58.gotoAndStop(2); map.lokasi59.gotoAndStop(2); map.lokasi60.gotoAndStop(2); map.lokasi61.gotoAndStop(2); map.lokasi62.gotoAndStop(2); map.lokasi63.gotoAndStop(2); map.lokasi64.gotoAndStop(2); map.lokasi65.gotoAndStop(2); map.lokasi66.gotoAndStop(2); map.lokasi67.gotoAndStop(2); map.lokasi68.gotoAndStop(2); map.lokasi69.gotoAndStop(2); map.lokasi70.gotoAndStop(2); map.lokasi71.gotoAndStop(3); map.lokasi72.gotoAndStop(1); i = 71; while (i <= 72) { map['lokasi' + i].onRelease = klikLokasi; map['lokasi' + i].onRollOver = overLokasi; map['lokasi' + i].onRollOut = outLokasi; ++i; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } cekPosisi(); if (xlevel == 10) { if (jenisLevel == 1) { _root.scoreHTTPSender('FL080102', 'CH001'); } if (jenisLevel == 2) { _root.scoreHTTPSender('FL080102', 'CH002'); } if (jenisLevel == 3) { _root.scoreHTTPSender('FL080102', 'CH003'); } } if (xlevel == 20) { if (jenisLevel == 1) { _root.scoreHTTPSender('FL080102', 'CH005'); } if (jenisLevel == 2) { _root.scoreHTTPSender('FL080102', 'CH006'); } if (jenisLevel == 3) { _root.scoreHTTPSender('FL080102', 'CH007'); } } if (xlevel == 30) { if (jenisLevel == 1) { _root.scoreHTTPSender('FL080102', 'CH009'); } if (jenisLevel == 2) { _root.scoreHTTPSender('FL080102', 'CH010'); } if (jenisLevel == 3) { _root.scoreHTTPSender('FL080102', 'CH011'); } } } movieClip 4425 { } movieClip 4432 { } movieClip 4433 { frame 1 { stop(); } } movieClip 4435 { } movieClip 4438 { } movieClip 4440 { } movieClip 4443 { } movieClip 4445 { } movieClip 4446 { frame 1 { stop(); } } movieClip 4448 { } movieClip 4449 { } movieClip 4450 { frame 10 { stop(); } } movieClip 4462 { } frame 517 { play(); backStory(); skip_btn.onRelease = function () { gotoAndStop(1268); }; } movieClip 4466 { } movieClip 4484 { } movieClip 4489 { } movieClip 4491 { } movieClip 4492 { } movieClip 4493 { frame 10 { stop(); } } movieClip 4497 { } movieClip 4500 { } movieClip 4503 { } movieClip 4506 { } movieClip 4509 { } movieClip 4512 { } movieClip 4519 { } movieClip 4522 { } movieClip 4525 { } movieClip 4528 { } movieClip 4531 { } frame 1267 { gotoAndStop(1268); } frame 1268 { stop(); next_btn.onRelease = function () { gotoAndStop(516); }; } frame 1269 { function init() { ammo1 = ''; ammo2 = ''; ammo3 = ''; ammo4 = ''; ammo5 = ''; ammo6 = 300; ammo7 = 10; ammo8 = 100; ammo9 = 75; ammo10 = 25; ammo11 = 75; ammo12 = 60; ammo13 = 50; ammo14 = 45; ammo15 = 25; ammo16 = 40; ammo17 = 30; ammo18 = 5; ammo19 = 25; ammo20 = 20; i = 1; while (i <= 20) { if (_root['ammo' + i] != '') { _root['ammo' + i] *= 1.5; _root['ammo' + i] = Math.ceil(_root['ammo' + i]); } ++i; } banyakSenjata = 300; keZombie = 1000; dalamEfek = 15000; dalamDarah = 500; dalamPeluru = 20000; dalamBarikade1 = 900; dalamBarikade2 = 901; dalamPejuang = 990; xkuat1 = 200; xkuat2 = 800; xkuat3 = 1200; keRanjau = 1990; if (jenisBarikade1 > 0) { totNyawaBarikade1 = _root['xkuat' + jenisBarikade1]; } if (jenisBarikade2 > 0) { totNyawaBarikade2 = _root['xkuat' + jenisBarikade2]; } zombieKilled = 0; zombieMissed = 0; scoreKini = score; masihMain = true; sedangPause = false; adaHalang1 = true; adaHalang2 = true; adaZombie = false; tahanSaw = false; zombieNyawa = new Array('', 4.5, 2.5, 5, 6, 2.5, 3, 2, 1.5, 7, 9, 12); zombieSpeed = new Array('', 1.5, 1.5, 1.25, 1, 1, 1.25, 1.5, 2, 1, 0.5, 2); jenisBack = backKe[posisiMap]; wave = Math.ceil(waveZombie / 2 + (xlevel - 1) * 5); banyakZombie = wave; i = 1; while (i <= 6) { if (_root['slot' + i] != 0) { jenisSenjata = _root['slot' + i]; i = 6; } ++i; } } function buatBack() { back = attachMovie('back' + jenisBack, 'back', 100); back._x = 0; back._y = 0; } function buatPintu() { pintu = attachMovie('pintu' + jenisBack, 'pintu', 10000); if (jenisBack == 1) { pintu._x = 760; pintu._y = 0; } else { if (jenisBack == 2) { pintu._x = 757; pintu._y = 0; } else { if (jenisBack == 3) { pintu._x = 760; pintu._y = 0; } else { if (jenisBack == 4) { pintu._x = 760; pintu._y = 0; } else { if (jenisBack == 5) { pintu._x = 775; pintu._y = 120; } else { if (jenisBack == 6) { pintu._x = 760; pintu._y = 0; } else { if (jenisBack == 7) { pintu._x = 767; pintu._y = 322; } else { if (jenisBack == 8) { pintu._x = 748; pintu._y = 10; } else { if (jenisBack == 9) { pintu._x = 748; pintu._y = 10; } else { if (jenisBack == 10) { pintu._x = 748; pintu._y = 10; } else { if (jenisBack == 11) { pintu._x = 748; pintu._y = 10; } else { if (jenisBack == 12) { pintu._x = 780; pintu._y = 160; } else { if (jenisBack == 13) { pintu._x = 748; pintu._y = 10; } } } } } } } } } } } } } } function buatMenu() { menu_mc = attachMovie('frame_mc', 'menu_mc', 12000); menu_mc._x = 400; menu_mc._y = 440; menu_mc.wlevel = 'Level ' + xlevel + '/30'; menu_mc.onEnterFrame = xenterFrame; menu_mc.menu_btn.onRelease = function () { sedangPause = true; cekPause(true); }; i = 1; while (i <= 6) { menu_mc['senjata' + i].silang_mc._visible = false; menu_mc['senjata' + i].tanda_mc._visible = false; if (_root['slot' + i] == 0) { menu_mc['senjata' + i].gotoAndStop(21); } else { menu_mc['senjata' + i].gotoAndStop(_root['slot' + i]); } menu_mc['slot' + i].info = ''; menu_mc['slot' + i].onRollOver = function () { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); menu_mc['slot' + indi].info = 'Hot Key: ' + indi; this.gotoAndStop(2); }; menu_mc['slot' + i].onRollOut = function () { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); menu_mc['slot' + indi].info = ''; if (_root['slot' + indi] != jenisSenjata) { this.gotoAndStop(1); } else { this.gotoAndStop(3); } }; menu_mc['slot' + i].onRelease = function () { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); if (_root['slot' + indi] != 0) { if (_root['ammo' + _root['slot' + indi]] != 0) { jenisSenjata = _root['slot' + indi]; buatSenjata(indi); } } }; ++i; } } function xenterFrame() { if (sedangPause == false) { i = 1; while (i <= 6) { if (_root['slot' + i] != 0) { menu_mc['xammo' + i] = _root['ammo' + _root['slot' + i]]; } else { menu_mc['xammo' + i] = ''; } ++i; } } } function buatSenjata(senjata) { if (sedangPause == false) { i = 1; while (i <= 6) { menu_mc['slot' + i].gotoAndStop(1); ++i; } menu_mc['slot' + senjata].gotoAndStop(3); senjata = attachMovie('senjata' + jenisSenjata, 'senjata', 21000); senjata._yscale = 70; senjata._xscale = 70; senjata._x = _root._xmouse; senjata._y = _root._ymouse; senjata.onEnterFrame = enterSenjata; if (jenisSenjata <= 6) { jarakSenjata = 'dekat'; } else { jarakSenjata = 'jauh'; } } } function buatBarikade() { if (jenisBarikade1 >= 1) { barikade1 = attachMovie('barikade' + jenisBarikade1, 'barikade1', dalamBarikade1); barikade1._yscale = 80; barikade1._xscale = 80; barikade1._x = 300; barikade1._y = 225; barikade1.kekuatan = ''; barikade1.kekuatan_txt._visible = false; barikade1.jenis = 1; barikade1.onEnterFrame = enterBarikade1; barikade1.onRollOver = overBarikade; barikade1.onRollOut = outBarikade; } if (jenisBarikade2 >= 1) { barikade2 = attachMovie('barikade' + jenisBarikade2, 'barikade2', dalamBarikade2); barikade2._yscale = 80; barikade2._xscale = 80; barikade2._x = 450; barikade2._y = 225; barikade2.kekuatan = ''; barikade2.kekuatan_txt._visible = false; barikade1.jenis = 2; barikade2.onEnterFrame = enterBarikade2; barikade2.onRollOver = overBarikade; barikade2.onRollOut = outBarikade; } } function overBarikade() { this.kekuatan_txt._visible = true; } function outBarikade() { this.kekuatan_txt._visible = false; } function buatPejuang() { i = 1; while (i <= 4) { if (_root['adaOrang' + i] == true) { pejuang = attachMovie('pejuang' + i + 'x', 'pejuang' + i, i * 1000 + keZombie); if (i == 1) { pejuang._x = 550; pejuang._y = 345; pejuang.wjenisSenjata = 8; pejuang.tipe = 3; } else { if (i == 2) { pejuang._x = 575; pejuang._y = 380; pejuang.wjenisSenjata = 11; pejuang.tipe = 1; } else { if (i == 3) { pejuang._x = 585; pejuang._y = 410; pejuang.wjenisSenjata = 12; pejuang.tipe = 2; } else { if (i == 4) { pejuang._x = 545; pejuang._y = 430; pejuang.wjenisSenjata = 14; pejuang.tipe = 4; } } } } pejuang._yscale = 55; pejuang._xscale = 55; pejuang._x += 50; pejuang._y -= 175; pejuang.nomor = i; pejuang.gotoAndStop(2); pejuang.hidup = true; pejuang.onEnterFrame = enterPejuang; keZombie += 3; if (keZombie >= 1350) { keZombie = 1005; } } ++i; } } function enterPejuang() { if (sedangPause == true) { this.anim.stop(); } else { if (this.hidup == true) { if (adaZombie == true) { this.anim.play(); } else { this.anim.stop(); } } } i = 1000; while (i <= 1350) { if (_root['xzombie' + i] != undefined) { if (_root['xzombie' + i].hitTest(this.indi)) { if (_root['xzombie' + i].randPosx == this.nomor) { _root['adaOrang' + this.nomor] = false; this.hidup = false; this.gotoAndStop(3); delete this.onEnterFrame; } } } ++i; } } function cekBangkit(indi) { rand = indi.tipe; randPos = random(5) + 1; randCepat = random(5); jenisGila = indi.ukuran; zombie = attachMovie('zombie' + rand, 'xzombie' + keZombie, randPos * 1000 + keZombie); zombie._x = indi._x + 100; zombie._y = indi._y + 100; if (jenisGila == 0) { zombie._yscale = 60; zombie._xscale = 60; } else { if (jenisGila == 2) { zombie._yscale = 50; zombie._xscale = 50; } else { zombie._yscale = 55; zombie._xscale = 55; } } zombie.ukuran = jenisGila; zombie.keZom = keZombie; zombie.jenis = rand; zombie.hidup = true; if (randPos >= 4) { zombie.randPosx = 4; } else { zombie.randPosx = randPos; } zombie.bentuk = 'utuh'; zombie.nyawa = zombieNyawa[rand] * ((xlevel + 1) / 6) + (xlevel / 3) * powerZombie; if (randCepat == 1) { zombie.speed = Math.random() * (0.5 + xlevel / 4) + 3.5; } else { zombie.speed = Math.random() * (0.5 + xlevel / 4) + 1.5; } zombie.bangkitan = true; zombie.onEnterFrame = enterZombie; zombie.suara = 0; zombie.suaraAkhir = random(100) + 100; zombie.tabEnabled = false; zombie.onRelease = klikZombie; keZombie += 3; if (keZombie >= 1350) { keZombie = 1005; } backZombie(); removeMovieClip(indi); } function buatRanjau() { i = 1; while (i <= 9) { if (_root['banyakPos' + i] > 0) { rand = _root['tipePos' + i]; ranjau = attachMovie('ranjau' + rand, 'ranjau' + i, keRanjau); ranjau.jumlah = ''; if (i <= 3) { ranjau._x = 25 + i * 75; ranjau._y = 270; } else { if (i <= 6) { ranjau._x = 25 + (i - 3) * 75; ranjau._y = 310; } else { if (i <= 9) { ranjau._x = 25 + (i - 6) * 75; ranjau._y = 350; } } } ranjau.jumlah_txt._visible = false; ranjau.jumlah = _root['banyakPos' + i]; ranjau.tipe = rand; ranjau.lokasi = i; ranjau.sudahKena = true; ranjau.onRollOver = overRanjau; ranjau.onRollOut = outRanjau; if (rand <= 2) { ranjau.onEnterFrame = enterRanjau; } else { ranjau.onPress = enterRanjau2; } ++keRanjau; } ++i; } } function overRanjau() { this.jumlah_txt._visible = true; } function outRanjau() { this.jumlah_txt._visible = false; } function enterRanjau() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); this.jumlah = _root['banyakPos' + indi]; i = 1000; while (i <= 1350) { if (_root['xzombie' + i] != undefined) { if (_root['xzombie' + i].kaki.hitTest(this.indi)) { if (_root['xzombie' + i].sudahKena == undefined) { if (this.tipe == 1) { if (_root['xzombie' + i].bentuk == 'palaJalan') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } else { if (_root['xzombie' + i].bentuk == 'kaki') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { backDarah2(); backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 40; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombieBelahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.hidup = true; zombie2.speed = zspeed; zombie2.onEnterFrame = enterHilang3; zombie2.banyakKe = 0; zombie2.sudahKena = true; cekEfek(zombie2, 'kaki'); cekBercak(zombie2); } } --_root['banyakPos' + this.lokasi]; if (_root['banyakPos' + this.lokasi] <= 0) { removeMovieClip(this); } } else { if (this.tipe == 2) { if (_root['xzombie' + i].bentuk == 'palaJalan') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } else { if (_root['xzombie' + i].bentuk == 'kaki') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { backDarah2(); backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 10; jenisGila = _root['xzombie' + i].ukuran; backApi(); zombie2 = attachMovie('zombieBakar' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.hidup = false; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } } --_root['banyakPos' + this.lokasi]; if (_root['banyakPos' + this.lokasi] <= 0) { removeMovieClip(this); } } else { if (this.tipe == 3) { if (_root['xzombie' + i].bentuk == 'palaJalan') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } else { if (_root['xzombie' + i].bentuk == 'kaki') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { cekLedakan(this, 'ranjau'); } } --_root['banyakPos' + this.lokasi]; if (_root['banyakPos' + this.lokasi] <= 0) { removeMovieClip(this); } } else { if (this.tipe == 4) { backGranat1(); zjenisSenjata = 19; ti = 1; while (ti <= 3) { xsenjata = attachMovie('senjata' + zjenisSenjata, 'xsenjata' + banyakSenjata, banyakSenjata); xsenjata._x = this._x; xsenjata._y = this._y; xsenjata.damage = _root['damage' + zjenisSenjata]; if (ti == 1) { xsenjata.speedX = -5; xsenjata.speedY = 20; } else { if (ti == 2) { xsenjata.speedX = 8; xsenjata.speedY = 20; } else { if (ti == 3) { xsenjata.speedX = 15; xsenjata.speedY = 20; } } } xsenjata.batasBawah = this._y; xsenjata.onEnterFrame = enterGranat2; ++banyakSenjata; if (banyakSenjata >= 550) { banyakSenjata = 300; } ++ti; } _root['xzombie' + i].sudahKena = true; --_root['banyakPos' + this.lokasi]; if (_root['banyakPos' + this.lokasi] <= 0) { removeMovieClip(this); } } } } } } } } ++i; } } function enterRanjau2() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); this.jumlah = _root['banyakPos' + indi]; i = 1000; while (i <= 1350) { if (this.tipe == 1) { if (_root['xzombie' + i].bentuk == 'palaJalan') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } else { if (_root['xzombie' + i].bentuk == 'kaki') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { backDarah2(); backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 40; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombieBelahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.hidup = true; zombie2.speed = zspeed; zombie2.onEnterFrame = enterHilang3; zombie2.banyakKe = 0; zombie2.sudahKena = true; cekEfek(zombie2, 'kaki'); cekBercak(zombie2); } } --_root['banyakPos' + this.lokasi]; if (_root['banyakPos' + this.lokasi] <= 0) { removeMovieClip(this); } } else { if (this.tipe == 2) { if (_root['xzombie' + i].bentuk == 'palaJalan') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } else { if (_root['xzombie' + i].bentuk == 'kaki') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { backDarah2(); backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 10; jenisGila = _root['xzombie' + i].ukuran; backApi(); zombie2 = attachMovie('zombieBakar' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.hidup = false; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } } --_root['banyakPos' + this.lokasi]; if (_root['banyakPos' + this.lokasi] <= 0) { removeMovieClip(this); } } else { if (this.tipe == 3) { if (_root['xzombie' + i].bentuk == 'palaJalan') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; backDinamit(); jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } else { if (_root['xzombie' + i].bentuk == 'kaki') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; backDinamit(); jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.sudahKena = true; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { backDinamit(); cekLedakan(this, 'ranjau'); } } --_root['banyakPos' + this.lokasi]; if (_root['banyakPos' + this.lokasi] <= 0) { removeMovieClip(this); } } else { if (this.tipe == 4) { backGranat1(); zjenisSenjata = 19; ti = 1; while (ti <= 3) { xsenjata = attachMovie('senjata' + zjenisSenjata, 'xsenjata' + banyakSenjata, banyakSenjata); xsenjata._x = this._x; xsenjata._y = this._y; xsenjata.damage = _root['damage' + zjenisSenjata]; if (ti == 1) { xsenjata.speedX = 0; xsenjata.speedY = 20; } else { if (ti == 2) { xsenjata.speedX = 10; xsenjata.speedY = 20; } else { if (ti == 3) { xsenjata.speedX = 20; xsenjata.speedY = 20; } } } xsenjata.batasBawah = this._y; xsenjata.onEnterFrame = enterGranat2; ++banyakSenjata; if (banyakSenjata >= 550) { banyakSenjata = 300; } ++ti; } _root['xzombie' + i].sudahKena = true; --_root['banyakPos' + this.lokasi]; if (_root['banyakPos' + this.lokasi] <= 0) { removeMovieClip(this); } } } } } ++i; } } function enterGranat2() { if (sedangPause == false) { this._x += this.speedX; this._y -= this.speedY; this.speedY -= 2; this._rotation -= 10; if (this.speedY <= 0) { if (this._y >= this.batasBawah) { this.gotoAndPlay(2); delete this.onEnterFrame; } } } } function enterBarikade1() { persenx = (nyawaBarikade1 / totNyawaBarikade1) * 100; if (persenx == 100) { this.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { this.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { this.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { this.gotoAndStop(4); } else { if (persenx <= 29) { this.gotoAndStop(5); } } } } } myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); this.kekuatan = 'Strength:\n' + nyawaBarikade1 + '/' + totNyawaBarikade1; } function enterBarikade2() { persenx = (nyawaBarikade2 / totNyawaBarikade2) * 100; if (persenx == 100) { this.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { this.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { this.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { this.gotoAndStop(4); } else { if (persenx <= 29) { this.gotoAndStop(5); } } } } } myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); this.kekuatan = 'Strength:\n' + nyawaBarikade2 + '/' + totNyawaBarikade2; } function enterSenjata() { if (sedangPause == false) { this._x = _root._xmouse; this._y = _root._ymouse; if (jenisSenjata == 2 || jenisSenjata == 4 || jenisSenjata == 5 || jenisSenjata == 7 || jenisSenjata == 6) { if (jenisSenjata == 2) { this.awal = 2; this.akhir = 3; this.maxKena = 2; } else { if (jenisSenjata == 4) { this.awal = 2; this.akhir = 4; this.maxKena = 2; } else { if (jenisSenjata == 5) { this.awal = 10; this.akhir = 12; this.maxKena = 4; } else { if (jenisSenjata == 7) { this.awal = 40; this.akhir = 43; this.maxKena = 6; } else { if (jenisSenjata == 6) { this.awal = 2; this.akhir = 4; this.maxKena = 1; if (this._currentframe >= this.awal && this._currentframe <= this.akhir) { --_root['ammo' + jenisSenjata]; if (_root['ammo' + jenisSenjata] <= 0) { i = 1; while (i <= 6) { if (_root['ammo' + _root['slot' + i]] > 0) { jenisSenjata = _root['slot' + i]; buatSenjata(i); } ++i; } } } } } } } } this.xbanyakKena = 0; i = 1000; while (i <= 1350) { if (this._currentframe >= this.awal && this._currentframe <= this.akhir) { if (_root['xzombie' + i] != undefined && _root['xzombie' + i].hidup == true) { if (_root['xzombie' + i].hitTest(this)) { if (this.xbanyakKena <= this.maxKena) { ++this.xbanyakKena; _root['xzombie' + i].nyawa -= _root['damage' + jenisSenjata]; if (_root['xzombie' + i].boss == true) { if (_root['xzombie' + i].nyawa > 0) { backDarah(); score += 30; rand = random(3) + 1; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = _root._xmouse + 25; efek._y = _root._ymouse; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } else { backDarah(); score += 30; rand = random(3) + 1; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = _root._xmouse + 25; efek._y = _root._ymouse; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombieMati' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } } else { if (_root['xzombie' + i].nyawa > 0) { backDarah(); score += 30; rand = random(3) + 1; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = _root._xmouse + 25; efek._y = _root._ymouse; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } else { if (_root['xzombie' + i].bentuk == 'palaJalan' || _root['xzombie' + i].bentuk == 'pala') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } else { if (_root['xzombie' + i].bentuk == 'kaki') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { backDarah2(); backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 10; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombieBelah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.hidup = false; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } } } } } } } } ++i; } } else { if (jenisSenjata == 18) { this.awal = 19; this.akhir = 30; i = 1000; while (i <= 1350) { if (this._currentframe >= this.awal && this._currentframe <= this.akhir) { if (_root['xzombie' + i] != undefined && _root['xzombie' + i].hidup == true) { if (_root['xzombie' + i].hitTest(this)) { _root['xzombie' + i].nyawa -= _root['damage' + jenisSenjata]; if (_root['xzombie' + i].boss == true) { if (_root['xzombie' + i].nyawa > 0) { backDarah(); score += 30; rand = random(3) + 1; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = _root._xmouse + 25; efek._y = _root._ymouse; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } else { backDarah(); score += 30; rand = random(3) + 1; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = _root._xmouse + 25; efek._y = _root._ymouse; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombieMati' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } } else { if (_root['xzombie' + i].nyawa > 0) { backDarah(); score += 30; rand = random(3) + 1; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = _root._xmouse + 25; efek._y = _root._ymouse; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } else { if (_root['xzombie' + i].bentuk == 'palaJalan' || _root['xzombie' + i].bentuk == 'pala') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } else { if (_root['xzombie' + i].bentuk == 'kaki') { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { backDarah2(); backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 10; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombieSetrum' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.hidup = false; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } } } } } } } ++i; } } } } } function cekLedakan(indi, indi2) { if (sedangPause == false) { efek = attachMovie('ledakan1', 'efek' + dalamEfek, dalamEfek); efek._yscale = 75; efek._xscale = 75; efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } efek = attachMovie('ledakan3', 'efek' + dalamEfek, dalamEfek); efek._yscale = 150; efek._xscale = 150; efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } if (jenisBack >= 6) { efek = attachMovie('efekGranat', 'efek' + dalamEfek, dalamEfek); efek._yscale = 100; efek._xscale = 100; efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } i = 1000; while (i <= 1350) { if (_root['xzombie' + i] != undefined && _root['xzombie' + i].hidup == true) { if (_root['xzombie' + i].hitTest(indi)) { _root['xzombie' + i].nyawa -= indi.damage; if (_root['xzombie' + i].boss == true) { if (_root['xzombie' + i].nyawa > 0) { score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } else { rand = random(3) + 5; efek = attachMovie('ledakan2', 'efek' + dalamEfek, dalamEfek); efek._yscale = 55; efek._xscale = 55; efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } z = 1; while (z <= 1) { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } ++z; } backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombieMati' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } } else { if (_root['xzombie' + i].nyawa > 0) { score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } else { rand = random(3) + 5; efek = attachMovie('ledakan2', 'efek' + dalamEfek, dalamEfek); efek._yscale = 55; efek._xscale = 55; efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } z = 1; while (z <= 1) { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } ++z; } backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; randz = random(2); jenisGila = _root['xzombie' + i].ukuran; if (randz == 1) { zombie2 = attachMovie('zombieLebur' + rand, 'xzombie' + zkeZombie, dalamGet); } else { zombie2 = attachMovie('zombieHancur' + rand, 'xzombie' + zkeZombie, dalamGet); } zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } } } } ++i; } if (indi2 != 'ranjau') { removeMovieClip(indi); } } } function cekLedakan2(indi, indi2) { if (sedangPause == false) { efek = attachMovie('ledakan1', 'efek' + dalamEfek, dalamEfek); efek._yscale = 75; efek._xscale = 75; efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } efek = attachMovie('ledakan3', 'efek' + dalamEfek, dalamEfek); efek._yscale = 125; efek._xscale = 125; efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } efek = attachMovie('efekGranat', 'efek' + dalamEfek, dalamEfek); efek._yscale = 75; efek._xscale = 75; efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } zi = 1000; while (zi <= 1350) { if (_root['xzombie' + zi] != undefined && _root['xzombie' + zi].hidup == true) { if (_root['xzombie' + zi].hitTest(indi)) { _root['xzombie' + zi].nyawa -= indi.damage; if (_root['xzombie' + i].boss == true) { if (_root['xzombie' + zi].nyawa > 0) { score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } else { rand = random(3) + 5; efek = attachMovie('ledakan2', 'efek' + dalamEfek, dalamEfek); efek._yscale = 55; efek._xscale = 55; efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } z = 1; while (z <= 1) { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } ++z; } backKena(); dalamGet = _root['xzombie' + zi].getDepth(); rand = _root['xzombie' + zi].jenis; zkeZombie = _root['xzombie' + zi].keZom; zspeed = _root['xzombie' + zi].speed; posX = _root['xzombie' + zi]._x; posY = _root['xzombie' + zi]._y; jenisGila = _root['xzombie' + zi].ukuran; score += 80; zombie2 = attachMovie('zombieMati' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } } else { if (_root['xzombie' + zi].nyawa > 0) { score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } else { rand = random(3) + 5; efek = attachMovie('ledakan2', 'efek' + dalamEfek, dalamEfek); efek._yscale = 55; efek._xscale = 55; efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } z = 1; while (z <= 1) { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = indi._x; efek._y = indi._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } ++z; } backKena(); dalamGet = _root['xzombie' + zi].getDepth(); rand = _root['xzombie' + zi].jenis; zkeZombie = _root['xzombie' + zi].keZom; zspeed = _root['xzombie' + zi].speed; posX = _root['xzombie' + zi]._x; posY = _root['xzombie' + zi]._y; score += 80; randz = random(2); jenisGila = _root['xzombie' + zi].ukuran; if (randz == 1) { zombie2 = attachMovie('zombieLebur' + rand, 'xzombie' + zkeZombie, dalamGet); } else { zombie2 = attachMovie('zombieHancur' + rand, 'xzombie' + zkeZombie, dalamGet); } zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } } } } ++zi; } if (indi2 != 'khusus') { removeMovieClip(indi); } } } function cekGranat() { if (sedangPause == false) { backGranat1(); xsenjata = attachMovie('senjata' + jenisSenjata, 'xsenjata' + banyakSenjata, banyakSenjata); xsenjata._x = _root._xmouse; xsenjata._y = _root._ymouse; xsenjata.damage = _root['damage' + jenisSenjata]; xsenjata.speedX = 15; xsenjata.speedY = 20; xsenjata.batasBawah = _root._ymouse; xsenjata.onEnterFrame = enterGranat; ++banyakSenjata; if (banyakSenjata >= 550) { banyakSenjata = 300; } } } function enterGranat() { if (sedangPause == false) { this._x -= this.speedX; this._y -= this.speedY; this.speedY -= 2; this._rotation -= 10; if (this.speedY <= 0) { if (this._y >= this.batasBawah) { this.gotoAndPlay(2); delete this.onEnterFrame; } } } } function munculBos() { rand = random(8) + 1; randPos = 2; randCepat = random(5); zombie = attachMovie('bosJalan', 'xzombie' + keZombie, randPos * 1000 + keZombie); zombie._x = 0; zombie._y = 270 + randPos * 18; zombie._yscale = 55; zombie._xscale = 55; zombie.keZom = keZombie; zombie.jenis = rand; zombie.hidup = true; zombie.bentuk = 'utuh'; zombie.xbos = true; zombie.nyawa = 100 * (zombieNyawa[rand] * ((xlevel + 1) / 3)) + xlevel * powerZombie; if (randCepat == 1) { zombie.speed = Math.random() * (0.5 + xlevel / 4) + 3; } else { zombie.speed = Math.random() * (0.5 + xlevel / 4) + 1; } zombie.onEnterFrame = enterZombie; zombie.suara = 0; zombie.suaraAkhir = random(100) + 100; zombie.tabEnabled = false; zombie.onRelease = klikZombie; keZombie += 3; if (keZombie >= 1350) { keZombie = 1005; } backZombie(); } function cekPeluru(indi) { if (sedangPause == false) { if (indi == undefined) { xjenisSenjata = jenisSenjata; } else { xjenisSenjata = indi.wjenisSenjata; } if (indi == undefined) { if (_root['ammo' + xjenisSenjata] > 0) { if (indi == undefined) { --_root['ammo' + xjenisSenjata]; } peluru = attachMovie('peluru' + xjenisSenjata, 'peluru_mc' + dalamPeluru, dalamPeluru); if (indi == undefined) { peluru._x = _root._xmouse; peluru._y = _root._ymouse; } else { peluru._x = indi._x; peluru._y = indi._y + 25; } peluru.speed = 50; peluru.tipePeluru = xjenisSenjata; peluru.damage = _root['damage' + xjenisSenjata]; if (xjenisSenjata == 14 || xjenisSenjata == 16 || xjenisSenjata == 17 || xjenisSenjata == 18 || xjenisSenjata == 19 || xjenisSenjata == 20) { peluru.ledakapi = true; } else { peluru.ledakapi = false; } if (peluru.ledakapi == true) { peluru.jenisPeluru = 'dahsyat'; } else { peluru.jenisPeluru = ''; } peluru.onEnterFrame = enterPeluru; ++dalamPeluru; if (dalamPeluru > 25000) { dalamPeluru = 20000; } } } else { if (indi == undefined) { --_root['ammo' + xjenisSenjata]; } peluru = attachMovie('peluru' + xjenisSenjata, 'peluru_mc' + dalamPeluru, dalamPeluru); if (indi == undefined) { peluru._x = _root._xmouse; peluru._y = _root._ymouse; } else { peluru._x = indi._x; peluru._y = indi._y + 25; } peluru.speed = 50; peluru.tipePeluru = xjenisSenjata; peluru.damage = _root['damage' + xjenisSenjata]; if (xjenisSenjata == 14 || xjenisSenjata == 16 || xjenisSenjata == 17 || xjenisSenjata == 18 || xjenisSenjata == 19 || xjenisSenjata == 20) { peluru.ledakapi = true; } else { peluru.ledakapi = false; } if (peluru.ledakapi == true) { peluru.jenisPeluru = 'dahsyat'; } else { peluru.jenisPeluru = ''; } peluru.onEnterFrame = enterPeluru; ++dalamPeluru; if (dalamPeluru > 25000) { dalamPeluru = 20000; } } } } function enterPeluru() { if (sedangPause == false) { if (jenisSenjata == 15) { this.speed += 10; } else { this.speed += 5; } this._x -= this.speed; i = 1000; while (i <= 1350) { if (_root['xzombie' + i] != undefined && _root['xzombie' + i].hidup == true) { if (_root['xzombie' + i].boss == true) { if (_root['xzombie' + i].hitTest(this)) { _root['xzombie' + i].nyawa -= this.damage; if (_root['xzombie' + i].nyawa > 0) { score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } if (this.jenisPeluru == 'dahsyat') { efek = attachMovie('ledakan3', 'efek' + dalamEfek, dalamEfek); efek._yscale = 75; efek._xscale = 75; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } if (this.tipePeluru != 15) { removeMovieClip(this); } } else { if (this.jenisPeluru == 'dahsyat') { z = 1; while (z <= 1) { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } ++z; } efek = attachMovie('ledakan3', 'efek' + dalamEfek, dalamEfek); efek._yscale = 75; efek._xscale = 75; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombieMati' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; if (this.tipePeluru != 15) { removeMovieClip(this); } } } } else { if (_root['xzombie' + i].bentuk == 'palaJalan') { if (_root['xzombie' + i].hitTest(this)) { _root['xzombie' + i].nyawa -= this.damage; if (_root['xzombie' + i].nyawa > 0) { score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } if (this.jenisPeluru == 'dahsyat') { efek = attachMovie('ledakan3', 'efek' + dalamEfek, dalamEfek); efek._yscale = 75; efek._xscale = 75; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } if (this.tipePeluru != 15) { removeMovieClip(this); } } else { if (this.jenisPeluru == 'dahsyat') { z = 1; while (z <= 1) { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } ++z; } rand = random(3) + 5; efek = attachMovie('ledakan2', 'efek' + dalamEfek, dalamEfek); efek._yscale = 55; efek._xscale = 55; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; if (this.tipePeluru != 15) { removeMovieClip(this); } } else { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; if (this.tipePeluru != 15) { removeMovieClip(this); } } } } } else { if (_root['xzombie' + i].bentuk == 'kaki') { if (_root['xzombie' + i].hitTest(this)) { _root['xzombie' + i].nyawa -= this.damage; if (_root['xzombie' + i].nyawa > 0) { score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } if (this.jenisPeluru == 'dahsyat') { efek = attachMovie('ledakan3', 'efek' + dalamEfek, dalamEfek); efek._yscale = 75; efek._xscale = 75; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } if (this.tipePeluru == 10) { efek = attachMovie('percikApi', 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } if (this.tipePeluru != 15) { removeMovieClip(this); } } else { if (this.jenisPeluru == 'dahsyat') { z = 1; while (z <= 1) { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } ++z; } rand = random(3) + 5; efek = attachMovie('ledakan2', 'efek' + dalamEfek, dalamEfek); efek._yscale = 55; efek._xscale = 55; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); if (this.tipePeluru != 15) { removeMovieClip(this); } } else { if (this.tipePeluru == 10) { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; backApi(); zombie2 = attachMovie('zombieBakar' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; if (this.tipePeluru != 15) { removeMovieClip(this); } } else { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); if (this.tipePeluru != 15) { removeMovieClip(this); } } } } } } else { if (_root['xzombie' + i].kepala.hitTest(this)) { _root['xzombie' + i].nyawa -= this.damage; if (_root['xzombie' + i].nyawa > 0) { score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } if (this.jenisPeluru == 'dahsyat') { efek = attachMovie('ledakan3', 'efek' + dalamEfek, dalamEfek); efek._yscale = 75; efek._xscale = 75; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } if (this.tipePeluru == 10) { efek = attachMovie('percikApi', 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } if (this.tipePeluru != 15) { removeMovieClip(this); } } else { if (this.jenisPeluru == 'dahsyat') { z = 1; while (z <= 1) { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } ++z; } rand = random(3) + 5; efek = attachMovie('ledakan2', 'efek' + dalamEfek, dalamEfek); efek._yscale = 55; efek._xscale = 55; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } _root['xzombie' + i].hidup = false; score += 10; backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; randz = random(2); jenisGila = _root['xzombie' + i].ukuran; if (randz == 1) { zombie2 = attachMovie('zombieLebur' + rand, 'xzombie' + zkeZombie, dalamGet); } else { zombie2 = attachMovie('zombieHancur' + rand, 'xzombie' + zkeZombie, dalamGet); } zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.banyakKe = 0; zombie2.onEnterFrame = zenterHilang; cekEfek(zombie2, 'pala'); cekBercak(zombie2, 'pecah'); this.gotoAndStop(2); cekLedakan2(this, 'khusus'); if (this.tipePeluru != 15) { removeMovieClip(this); } } else { if (this.tipePeluru == 10) { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; backApi(); zombie2 = attachMovie('zombieBakar' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; if (this.tipePeluru != 15) { removeMovieClip(this); } } else { _root['xzombie' + i].hidup = false; score += 10; backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombiePecahPala' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.banyakKe = 0; zombie2.onEnterFrame = zenterHilang; cekEfek(zombie2, 'pala'); cekBercak(zombie2, 'pecah'); if (this.tipePeluru != 15) { removeMovieClip(this); } } } } } else { if (_root['xzombie' + i].kaki.hitTest(this)) { _root['xzombie' + i].nyawa -= this.damage; if (_root['xzombie' + i].nyawa > 0) { score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } if (this.jenisPeluru == 'dahsyat') { efek = attachMovie('ledakan3', 'efek' + dalamEfek, dalamEfek); efek._yscale = 75; efek._xscale = 75; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } if (this.tipePeluru == 10) { efek = attachMovie('percikApi', 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } if (this.tipePeluru != 15) { removeMovieClip(this); } } else { if (this.jenisPeluru == 'dahsyat') { z = 1; while (z <= 1) { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } ++z; } rand = random(3) + 5; efek = attachMovie('ledakan2', 'efek' + dalamEfek, dalamEfek); efek._yscale = 55; efek._xscale = 55; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } _root['xzombie' + i].hidup = false; score += 10; backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; jenisGila = _root['xzombie' + i].ukuran; randz = random(2); if (randz == 1) { zombie2 = attachMovie('zombieLebur' + rand, 'xzombie' + zkeZombie, dalamGet); } else { zombie2 = attachMovie('zombieHancur' + rand, 'xzombie' + zkeZombie, dalamGet); } zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.banyakKe = 0; zombie2.onEnterFrame = zenterHilang; cekEfek(zombie2, 'pala'); cekBercak(zombie2, 'pecah'); this.gotoAndStop(2); cekLedakan2(this, 'khusus'); if (this.tipePeluru != 15) { removeMovieClip(this); } } else { if (this.tipePeluru == 10) { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; score += 80; jenisGila = _root['xzombie' + i].ukuran; backApi(); zombie2 = attachMovie('zombieBakar' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; if (this.tipePeluru != 15) { removeMovieClip(this); } } else { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } _root['xzombie' + i].hidup = false; score += 20; backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombieJatuhKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.banyakKe = 25; zombie2.onEnterFrame = enterDelay3; if (this.tipePeluru != 15) { removeMovieClip(this); } } } } } else { if (_root['xzombie' + i].badan.hitTest(this)) { _root['xzombie' + i].nyawa -= this.damage; if (_root['xzombie' + i].nyawa > 0) { score += 10; rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } if (this.jenisPeluru == 'dahsyat') { efek = attachMovie('ledakan3', 'efek' + dalamEfek, dalamEfek); efek._yscale = 75; efek._xscale = 75; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } if (this.tipePeluru == 10) { efek = attachMovie('percikApi', 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } if (this.tipePeluru != 15) { removeMovieClip(this); } } else { if (this.jenisPeluru == 'dahsyat') { z = 1; while (z <= 1) { rand = random(3) + 5; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } ++z; } rand = random(3) + 5; efek = attachMovie('ledakan2', 'efek' + dalamEfek, dalamEfek); efek._yscale = 55; efek._xscale = 55; efek._x = this._x; efek._y = this._y; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } _root['xzombie' + i].hidup = false; score += 10; backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; jenisGila = _root['xzombie' + i].ukuran; randz = random(2); if (randz == 1) { zombie2 = attachMovie('zombieLebur' + rand, 'xzombie' + zkeZombie, dalamGet); } else { zombie2 = attachMovie('zombieHancur' + rand, 'xzombie' + zkeZombie, dalamGet); } zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.banyakKe = 0; zombie2.onEnterFrame = zenterHilang; cekEfek(zombie2, 'pala'); cekBercak(zombie2, 'pecah'); this.gotoAndStop(2); cekLedakan2(this, 'khusus'); if (this.tipePeluru != 15) { removeMovieClip(this); } } else { if (this.tipePeluru == 10) { backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; jenisGila = _root['xzombie' + i].ukuran; score += 80; backApi(); zombie2 = attachMovie('zombieBakar' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; if (this.tipePeluru != 15) { removeMovieClip(this); } } else { score += 40; backKena(); dalamGet = _root['xzombie' + i].getDepth(); rand = _root['xzombie' + i].jenis; zkeZombie = _root['xzombie' + i].keZom; zspeed = _root['xzombie' + i].speed; posX = _root['xzombie' + i]._x; posY = _root['xzombie' + i]._y; jenisGila = _root['xzombie' + i].ukuran; zombie2 = attachMovie('zombieTembakBadan' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.banyakKe = 50; zombie2.onEnterFrame = enterDelay2; if (this.tipePeluru != 15) { removeMovieClip(this); } } } } } } } } } } } ++i; } if (this._x <= 0) { removeMovieClip(this); } } } function munculZombie() { if (sedangPause == false) { if (wave > 0) { if (xlevel <= 2) { rand = random(3) + 1; } else { if (xlevel >= 3 && xlevel <= 5) { rand = random(5) + 1; } else { if (xlevel >= 6 && xlevel <= 8) { rand = random(7) + 1; } else { if (xlevel >= 9 && xlevel <= 11) { rand = random(8) + 1; } else { if (xlevel >= 12 && xlevel <= 16) { rand = random(9) + 1; } else { if (xlevel >= 17 && xlevel <= 24) { if (jenisLevel >= 2) { rand = random(10) + 1; } else { rand = random(9) + 1; } } else { if (xlevel >= 25 && xlevel <= 30) { if (jenisLevel >= 3) { rand = random(11) + 1; } else { rand = random(10) + 1; } } } } } } } } jenisGila = random(3); randPos = random(5) + 1; randCepat = random(5); zombie = attachMovie('zombie' + rand, 'xzombie' + keZombie, randPos * 1000 + keZombie); zombie._x = -50 + random(25); zombie._y = 270 + randPos * 18; if (jenisGila == 0) { if (rand == 7 || rand == 8) { zombie._yscale = 55; zombie._xscale = 55; } else { zombie._yscale = 60; zombie._xscale = 60; } } else { if (jenisGila == 2) { if (rand == 5 || rand == 6) { zombie._yscale = 55; zombie._xscale = 55; } else { zombie._yscale = 50; zombie._xscale = 50; } } else { zombie._yscale = 55; zombie._xscale = 55; } } if (rand >= 9) { jenisGila = 1; } if (randPos >= 4) { zombie.randPosx = 4; } else { zombie.randPosx = randPos; } zombie.ukuran = jenisGila; zombie.keZom = keZombie; zombie.jenis = rand; zombie.hidup = true; zombie.bentuk = 'utuh'; if (rand >= 9) { zombie.boss = true; } if (rand == 9) { zombie.nyawa = (zombieNyawa[rand] * ((xlevel + 1) / 7) + (xlevel / 3) * powerZombie) * 2; } else { if (rand == 10) { zombie.nyawa = (zombieNyawa[rand] * ((xlevel + 1) / 7) + (xlevel / 3) * powerZombie) * 3; } else { if (rand == 11) { zombie.nyawa = (zombieNyawa[rand] * ((xlevel + 1) / 7) + (xlevel / 3) * powerZombie) * 4; } else { zombie.nyawa = zombieNyawa[rand] * ((xlevel + 1) / 7) + (xlevel / 3) * powerZombie; } } } if (xlevel <= 5) { zombie.nyawa *= 1.5; } else { if (xlevel <= 10) { zombie.nyawa *= 1.25; } else { zombie.nyawa *= 1; } } if (randCepat == 1) { zombie.speed = Math.random() * (0.5 + xlevel / 4.5) + (1.5 + zombieSpeed[rand]); } else { zombie.speed = Math.random() * (0.5 + xlevel / 4.5) + (0.5 + zombieSpeed[rand]); } if (jenisGila == 0) { zombie.nyawa *= 2; zombie.speed *= 0.5; } else { if (jenisGila == 2) { zombie.nyawa *= 0.5; zombie.speed *= 2; } } if (jenisLevel == 1) { zombie.nyawa *= 1; zombie.speed *= 1; } else { if (jenisLevel == 2) { zombie.nyawa *= 1.5; zombie.speed *= 1.5; } else { if (jenisLevel == 3) { zombie.nyawa *= 2; zombie.speed *= 2; } } } zombie.onEnterFrame = enterZombie; zombie.suara = 0; zombie.suaraAkhir = random(100) + 100; zombie.tabEnabled = false; zombie.onRelease = klikZombie; keZombie += 3; if (keZombie >= 1350) { keZombie = 1005; } backZombie(); --wave; } } } function klikZombie() { if (sedangPause == false) { if (jarakSenjata == 'dekat') { if (jenisSenjata != 2 && jenisSenjata != 4 && jenisSenjata != 5 && jenisSenjata != 7 && jenisSenjata != 6) { this.nyawa -= _root['damage' + jenisSenjata]; if (this.nyawa > 0) { backDarah(); score += 30; rand = random(3) + 1; efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = _root._xmouse + 25; efek._y = _root._ymouse; ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } else { backDarah2(); backKena(); dalamGet = this.getDepth(); rand = this.jenis; zkeZombie = this.keZom; zspeed = this.speed; posX = this._x; posY = this._y; jenisGila = this.ukuran; if (this.boss == true) { score += 10; zombie2 = attachMovie('zombieMati' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.hidup = false; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { if (this.tipeSerang == true) { score += 10; zombie2 = attachMovie('zombieBelahPala' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.hidup = false; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { if (this.kepala.hitTest(_root._xmouse, _root._ymouse)) { score += 10; zombie2 = attachMovie('zombieBelahPala' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.hidup = false; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } else { if (this.kaki.hitTest(_root._xmouse, _root._ymouse)) { score += 40; zombie2 = attachMovie('zombieBelahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.hidup = true; zombie2.speed = zspeed; zombie2.bentuk = 'kaki'; zombie2.onEnterFrame = enterHilang3; zombie2.banyakKe = 0; cekEfek(zombie2, 'kaki'); cekBercak(zombie2); } else { score += 20; zombie1 = attachMovie('zombieBelahBawah' + rand, 'xxzombie' + (zkeZombie + 1), dalamGet + 1); zombie2 = attachMovie('zombieBelahAtas' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie1._yscale = 60; zombie1._xscale = 60; } else { if (jenisGila == 2) { zombie1._yscale = 50; zombie1._xscale = 50; } else { zombie1._yscale = 55; zombie1._xscale = 55; } } if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2.speed = zspeed; zombie1._x = posX; zombie1._y = posY - 25; zombie2._x = posX; zombie1.hidup = false; zombie2.hidup = true; zombie2.bentuk = 'pala'; if (rand == 8) { zombie2._y = posY - 50; } else { if (rand == 5) { zombie2._y = posY - 80; } else { zombie2._y = posY - 110; } } zombie1.onEnterFrame = enterHilang; zombie1.banyakKe = 0; zombie2.onEnterFrame = enterHilang2; zombie2.banyakKe = 0; cekEfek(zombie1); cekBercak(zombie1); } } } } } } } } } function klikZombie2() { if (sedangPause == false) { if (jarakSenjata == 'dekat') { if (jenisSenjata != 2 && jenisSenjata != 4 && jenisSenjata != 5 && jenisSenjata != 7 && jenisSenjata != 6) { backDarah2(); backKena(); dalamGet = this.getDepth(); rand = this.jenis; zkeZombie = this.keZom; zspeed = this.speed; posX = this._x; posY = this._y; score += 80; jenisGila = this.ukuran; zombie2 = attachMovie('zombiePecahKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; cekEfek(zombie2, 'pala'); cekBercak(zombie2); } } } } function klikZombie3() { if (sedangPause == false) { if (jenisSenjata != 2 && jenisSenjata != 4 && jenisSenjata != 5 && jenisSenjata != 7 && jenisSenjata != 6) { backDarah2(); backKena(); dalamGet = this.getDepth(); rand = this.jenis; zkeZombie = this.keZom; zspeed = this.speed; posX = this._x; posY = this._y; score += 80; jenisGila = this.ukuran; zombie2 = attachMovie('zombiePalaPecah' + rand, 'xzombie' + zkeZombie, dalamGet); zombie2.jenis = rand; zombie2.keZom = zkeZombie; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2._x = posX; zombie2._y = posY; zombie2.onEnterFrame = zenterHilang; zombie2.banyakKe = 0; } } } function enterDelay() { if (sedangPause == false) { ++this.banyakKe; if (this.banyakKe >= 100) { this._alpha -= 2; if (this._alpha <= 0) { delete this.onEnterFrame; this.onEnterFrame = enterZombie; } } } } function enterDelay2() { if (sedangPause == false) { ++this.banyakKe; if (this.banyakKe >= 100) { delete this.onEnterFrame; dalamGet = this.getDepth(); rand = this.jenis; zkeZombie = this.keZom; zspeed = this.speed; posX = this._x; posY = this._y; randPos = random(5) + 1; jenisGila = this.ukuran; zombie = attachMovie('zombie' + rand, 'xzombie' + zkeZombie, dalamGet); zombie._x = posX; zombie._y = posY; if (jenisGila == 0) { zombie._yscale = 60; zombie._xscale = 60; } else { if (jenisGila == 2) { zombie._yscale = 50; zombie._xscale = 50; } else { zombie._yscale = 55; zombie._xscale = 55; } } zombie.ukuran = jenisGila; zombie.keZom = zkeZombie; zombie.jenis = rand; zombie.hidup = true; if (randPos >= 4) { zombie.randPosx = 4; } else { zombie.randPosx = randPos; } zombie.speed = Math.random() * 1.5 + 1; zombie.onEnterFrame = enterZombie; zombie.suara = 0; zombie.suaraAkhir = random(100) + 100; zombie.tabEnabled = false; zombie.onRelease = klikZombie; keZombie += 3; if (keZombie >= 1350) { keZombie = 1005; } backZombie(); } } } function enterDelay3() { if (sedangPause == false) { ++this.banyakKe; if (this.banyakKe >= 100) { delete this.onEnterFrame; dalamGet = this.getDepth(); rand = this.jenis; zkeZombie = this.keZom; zspeed = this.speed; posX = this._x; posY = this._y; jenisGila = this.ukuran; randPos = random(5) + 1; zombie = attachMovie('zombieBangunKaki' + rand, 'xzombie' + zkeZombie, dalamGet); zombie._x = posX; zombie._y = posY; if (randPos >= 4) { zombie.randPosx = 4; } else { zombie.randPosx = randPos; } if (jenisGila == 0) { zombie._yscale = 60; zombie._xscale = 60; } else { if (jenisGila == 2) { zombie._yscale = 50; zombie._xscale = 50; } else { zombie._yscale = 55; zombie._xscale = 55; } } zombie.ukuran = jenisGila; zombie.keZom = zkeZombie; zombie.jenis = rand; zombie.hidup = true; zombie.speed = Math.random() * 1.5 + 1; zombie.banyakKe = 65; zombie.onEnterFrame = enterDelay2; backZombie(); } } } function cekEfek(indi, indi2) { if (sedangPause == false) { efek = attachMovie('efek1', 'efek' + dalamEfek, dalamEfek); efek._x = indi._x + 50; if (indi2 == 'pala') { efek._y = indi._y - indi._height / 2; } else { if (indi2 == 'kaki') { efek._y = indi._y + indi._height / 10; } else { efek._y = indi._y; } } efek._xscale = 100 + random(60); efek._yscale = 100 + random(60); ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } } } function cekBercak(indi, indi2) { if (sedangPause == false) { efek = attachMovie('bercak_mc', 'efek' + dalamDarah, dalamDarah); if (indi2 == 'pecah') { efek._x = indi._x - 200; efek._y = indi._y - 25; } else { efek._x = indi._x - 50; efek._y = indi._y; } efek.onEnterFrame = enterHilang; efek.banyakKe = 0; ++dalamDarah; if (dalamDarah >= 600) { dalamDarah = 500; } } } function enterHilang() { if (sedangPause == false) { ++this.banyakKe; if (this.banyakKe >= 100) { this._alpha -= 10; if (this._alpha <= 0) { removeMovieClip(this); } } } } function zenterHilang() { if (sedangPause == false) { ++this.banyakKe; if (this.banyakKe >= 100) { this._alpha -= 10; if (this._alpha <= 0) { --banyakZombie; ++zombieKilled; if (banyakZombie <= 0) { banyakZombie = 0; cekMenang(); } removeMovieClip(this); adaZombie = false; } } } } function enterHilang2() { if (sedangPause == false) { ++this.banyakKe; if (this.banyakKe >= 50) { dalamGet = this.getDepth(); rand = this.jenis; zzkeZombie = this.keZom; posX = this._x; posY = this._y; zzspeed = this.speed; jenisGila = this.ukuran; zombie2 = attachMovie('zombiePalaJalan' + rand, 'xzombie' + zzkeZombie, dalamGet); zombie2._x = posX; zombie2._y = posY; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2.speed = zzspeed / 2; zombie2.keZom = zzkeZombie; zombie2.jenis = rand; zombie2.hidup = true; zombie2.bentuk = 'palaJalan'; zombie2.onEnterFrame = enterZombie; zombie2.suara = 0; zombie2.suaraAkhir = random(100) + 100; zombie2.onRelease = klikZombie3; this.onEnterFrame = enterZombie; } } } function enterHilang3() { if (sedangPause == false) { ++this.banyakKe; if (this.banyakKe >= 50) { dalamGet = this.getDepth(); rand = this.jenis; zzkeZombie = this.keZom; posX = this._x; posY = this._y; zzspeed = this.speed; jenisGila = this.ukuran; zombie2 = attachMovie('zombieJalanKaki' + rand, 'xzombie' + zzkeZombie, dalamGet); zombie2._x = posX; zombie2._y = posY; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2.speed = zzspeed / 2; zombie2.keZom = zzkeZombie; zombie2.jenis = rand; zombie2.hidup = true; zombie2.bentuk = 'kaki'; zombie2.onEnterFrame = enterZombie; zombie2.suara = 0; zombie2.suaraAkhir = random(100) + 100; zombie2.onRelease = klikZombie2; this.onEnterFrame = enterZombie; } } } function enterZombie() { if (sedangPause == false) { if (this.bangkitan == true) { this._x += this.speed; if (this._x >= 850) { backDarah(); --banyakZombie; ++zombieMissed; xshield -= 7.5; menu_mc.shield_mc.gotoAndPlay(2); rand = random(3) + 1; backDarah(); efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = 650 + random(100); efek._y = 25 + random(25); ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } xshield = Math.ceil(xshield); if (xshield <= 0) { xshield = 0; cekGameOver(); } else { if (banyakZombie <= 0) { banyakZombie = 0; cekMenang(); } } removeMovieClip(this); adaZombie = false; } ++this.suara; if (this.suara >= this.suaraAkhir) { backZombie(); this.suara = 0; this.suaraAkhir = random(100) + 100; } } else { if (jenisBarikade1 >= 1 && nyawaBarikade1 > 0 && this._x >= 300) { if (this.bentuk == 'utuh') { dalamGet = this.getDepth(); rand = this.jenis; zzkeZombie = this.keZom; posX = this._x; posY = this._y; zzspeed = this.speed; nyawa = this.nyawa; cekBos = this.boss; jenisGila = this.ukuran; zombie2 = attachMovie('zombieSerang' + rand, 'xzombie' + zzkeZombie, dalamGet); zombie2._x = posX; zombie2._y = posY; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2.speed = zzspeed / 2; zombie2.keZom = zzkeZombie; zombie2.jenis = rand; zombie2.hidup = true; zombie2.bentuk = 'utuh'; zombie2.nyawa = nyawa; zombie2.boss = cekBos; zombie2.tipeSerang = true; zombie2.suara = 0; zombie2.suaraAkhir = random(100) + 100; zombie2.onRelease = klikZombie; delete this.onEnterFrame; zombie2.delay1 = 0; zombie2.delay2 = 50; zombie2.jenisSerang = 1; if (zombie2.boss == true) { zombie2.wadamage = 12; } else { if (jenisGila == 0) { zombie2.wadamage = 10; } else { if (jenisGila == 1) { zombie2.wadamage = 7; } else { zombie2.wadamage = 5; } } } zombie2.onEnterFrame = enterZombie2; } else { if (this.bentuk == 'kaki') { this.delay1 = 0; this.delay2 = 50; this.jenisSerang = 1; this.onRelease = klikZombie2; if (this.boss == true) { this.wadamage = 12; } else { if (jenisGila == 0) { this.wadamage = 10; } else { if (jenisGila == 1) { this.wadamage = 7; } else { this.wadamage = 5; } } } this.onEnterFrame = enterZombie2; } else { if (this.bentuk == 'pala') { this.delay1 = 0; this.delay2 = 50; this.jenisSerang = 1; this.onRelease = klikZombie3; if (this.boss == true) { this.wadamage = 12; } else { if (jenisGila == 0) { this.wadamage = 10; } else { if (jenisGila == 1) { this.wadamage = 7; } else { this.wadamage = 5; } } } this.onEnterFrame = enterZombie2; } } } } else { if (jenisBarikade2 >= 1 && nyawaBarikade2 > 0 && this._x >= 450) { if (this.bentuk == 'utuh') { dalamGet = this.getDepth(); rand = this.jenis; zzkeZombie = this.keZom; posX = this._x; posY = this._y; zzspeed = this.speed; nyawa = this.nyawa; cekBos = this.boss; jenisGila = this.ukuran; zombie2 = attachMovie('zombieSerang' + rand, 'xzombie' + zzkeZombie, dalamGet); zombie2._x = posX; zombie2._y = posY; if (jenisGila == 0) { zombie2._yscale = 60; zombie2._xscale = 60; } else { if (jenisGila == 2) { zombie2._yscale = 50; zombie2._xscale = 50; } else { zombie2._yscale = 55; zombie2._xscale = 55; } } zombie2.ukuran = jenisGila; zombie2.speed = zzspeed / 2; zombie2.keZom = zzkeZombie; zombie2.jenis = rand; zombie2.hidup = true; zombie2.bentuk = 'utuh'; zombie2.nyawa = nyawa; zombie2.boss = cekBos; zombie2.tipeSerang = true; zombie2.suara = 0; zombie2.suaraAkhir = random(100) + 100; zombie2.onRelease = klikZombie; delete this.onEnterFrame; zombie2.delay1 = 0; zombie2.delay2 = 50; zombie2.jenisSerang = 2; if (zombie2.boss == true) { zombie2.wadamage = 12; } else { if (jenisGila == 0) { zombie2.wadamage = 10; } else { if (jenisGila == 1) { zombie2.wadamage = 7; } else { zombie2.wadamage = 5; } } } zombie2.onEnterFrame = enterZombie2; } else { if (this.bentuk == 'kaki') { this.delay1 = 0; this.delay2 = 50; this.jenisSerang = 1; this.onRelease = klikZombie2; if (this.boss == true) { this.wadamage = 12; } else { if (jenisGila == 0) { this.wadamage = 10; } else { if (jenisGila == 1) { this.wadamage = 7; } else { this.wadamage = 5; } } } this.onEnterFrame = enterZombie2; } else { if (this.bentuk == 'pala') { this.delay1 = 0; this.delay2 = 50; this.jenisSerang = 1; this.onRelease = klikZombie3; if (this.boss == true) { this.wadamage = 12; } else { if (jenisGila == 0) { this.wadamage = 10; } else { if (jenisGila == 1) { this.wadamage = 7; } else { this.wadamage = 5; } } } this.onEnterFrame = enterZombie2; } } } } else { this._x += this.speed; if (this._x >= 150) { adaZombie = true; } if (this._x >= 850) { backDarah(); --banyakZombie; ++zombieMissed; xshield -= 7.5; menu_mc.shield_mc.gotoAndPlay(2); rand = random(3) + 1; backDarah(); efek = attachMovie('efekDarah' + rand, 'efek' + dalamEfek, dalamEfek); efek._x = 650 + random(100); efek._y = 25 + random(25); ++dalamEfek; if (dalamEfek > 20000) { dalamEfek = 15000; } xshield = Math.ceil(xshield); if (xshield <= 0) { xshield = 0; cekGameOver(); } else { if (banyakZombie <= 0) { banyakZombie = 0; cekMenang(); } } removeMovieClip(this); adaZombie = false; } ++this.suara; if (this.suara >= this.suaraAkhir) { backZombie(); this.suara = 0; this.suaraAkhir = random(100) + 100; } } } } } } function enterZombie2() { if (sedangPause == false) { adaZombie = true; ++this.delay1; if (this.delay1 >= this.delay2) { if (this.jenisSerang == 1) { if (this.wadamage == undefined) { nyawaBarikade1 -= 7; } else { nyawaBarikade1 -= this.wadamage; } if (nyawaBarikade1 <= 0) { nyawaBarikade1 = 0; this.onEnterFrame = zombieLanjut; } } else { if (this.jenisSerang == 2) { if (this.wadamage == undefined) { nyawaBarikade2 -= 7; } else { nyawaBarikade2 -= this.wadamage; } if (nyawaBarikade2 <= 0) { nyawaBarikade2 = 0; this.onEnterFrame = zombieLanjut; } } } this.delay1 = 0; } } } function zombieLanjut() { if (this.bentuk == 'utuh') { delete this.onEnterFrame; dalamGet = this.getDepth(); rand = this.jenis; zkeZombie = this.keZom; zspeed = this.speed; posX = this._x; posY = this._y; randPos = random(5) + 1; cekBos = this.boss; jenisGila = this.ukuran; zombie = attachMovie('zombie' + rand, 'xzombie' + zkeZombie, dalamGet); zombie._x = posX; zombie._y = posY; if (randPos >= 4) { zombie.randPosx = 4; } else { zombie.randPosx = randPos; } if (jenisGila == 0) { zombie._yscale = 60; zombie._xscale = 60; } else { if (jenisGila == 2) { zombie._yscale = 50; zombie._xscale = 50; } else { zombie._yscale = 55; zombie._xscale = 55; } } zombie.ukuran = jenisGila; zombie.keZom = zkeZombie; zombie.jenis = rand; zombie.hidup = true; zombie.speed = Math.random() * 1.5 + 1; zombie.boss = cekBos; zombie.onEnterFrame = enterZombie; zombie.suara = 0; zombie.suaraAkhir = random(100) + 100; zombie.tabEnabled = false; zombie.onRelease = klikZombie; keZombie += 3; if (keZombie >= 1350) { keZombie = 1005; } backZombie(); } else { delete this.onEnterFrame; this.onEnterFrame = enterZombie; } } function cekMenang() { if (masihMain == true) { masihMain = false; hasilnyaApa = 'menang'; hasil = attachMovie('hasil_mc', 'hasil_mc', 30001); hasil._x = 400; hasil._y = 240; i = 1; while (i <= 6) { menu_mc['slot' + i].enabled = false; menu_mc.menu_btn.enabled = false; removeMovieClip(senjata); Mouse.show(); ++i; } } } function cekGameOver() { if (masihMain == true) { masihMain = false; xshield = 0; menu_mc.shield_mc._xscale = xshield; menu_mc.scores = score; menu_mc.waves = wave; hasilnyaApa = 'kalah'; hasil = attachMovie('hasil_mc', 'hasil_mc', 30001); hasil._x = 400; hasil._y = 240; i = 1; while (i <= 6) { menu_mc['slot' + i].enabled = false; menu_mc.menu_btn.enabled = false; removeMovieClip(senjata); Mouse.show(); ++i; } } } function clearSemua() { Key.removeListener(myListener); delete myListener.onKeyDown; clearInterval(); clearInterval(idDelay1); clearInterval(idDelay2); clearInterval(idMuncul); delete _root.onEnterFrame; removeMovieClip(back); removeMovieClip(pintu); removeMovieClip(menu_mc); removeMovieClip(senjata); removeMovieClip(pauseMenu); removeMovieClip(hasil_mc); removeMovieClip(barikade1); removeMovieClip(barikade2); i = 20000; while (i <= 25000) { removeMovieClip(_root['peluru_mc' + dalamPeluru]); ++i; } i = 15000; while (i <= 20000) { removeMovieClip(_root['efek' + i]); ++i; } i = 900; while (i <= 1450) { removeMovieClip(_root['xzombie' + i]); ++i; } i = 900; while (i <= 1450) { removeMovieClip(_root['xxzombie' + i]); ++i; } i = 500; while (i <= 600) { removeMovieClip(_root['efek' + i]); ++i; } i = 1; while (i <= 4) { removeMovieClip(_root['pejuang' + i]); ++i; } i = 1; while (i <= 9) { removeMovieClip(_root['ranjau' + i]); ++i; } } function delayKe1() { clearSemua(); if (xshield >= 100) { ++berapaPerfect; } if (berapaPerfect >= 5) { _root.scoreHTTPSender('FL080102', 'CH013'); } if (xlevel >= 31) { xlevel = 1; simpanData(); backMenu(); gotoAndStop(1276); } else { simpanData(); backStory(); gotoAndStop(516); } } function cekHasil() { if (hasilnyaApa == 'menang') { if (jenisLevel == 1) { score += 1 * Math.ceil(Math.ceil(xzwaves[backKe[posisiMap]] / 2 + (xlevel - 1) * 10) * (xzpowers[backKe[posisiMap]] * xlevel) * xzspeeds[backKe[posisiMap]] * 100); } else { if (jenisLevel == 2) { score += 2 * Math.ceil(Math.ceil(xzwaves[backKe[posisiMap]] / 2 + (xlevel - 1) * 10) * (xzpowers[backKe[posisiMap]] * xlevel) * xzspeeds[backKe[posisiMap]] * 100); } else { if (jenisLevel == 3) { score += 3 * Math.ceil(Math.ceil(xzwaves[backKe[posisiMap]] / 2 + (xlevel - 1) * 10) * (xzpowers[backKe[posisiMap]] * xlevel) * xzspeeds[backKe[posisiMap]] * 100); } } } } if (jenisLevel == 1) { xpoint += 90 * xlevel; } else { if (jenisLevel == 2) { xpoint += 85 * xlevel; } else { if (jenisLevel == 3) { xpoint += 80 * xlevel; } } } hasil_mc.zombieKilled = zombieKilled; hasil_mc.zombieMissed = zombieMissed; hasil_mc.scoreReached = score - scoreKini; hasil_mc.totalScore = score; menu_mc.scores = score; if (hasilnyaApa == 'menang') { hasil_mc.judul = 'Area Cleared'; } else { if (hasilnyaApa == 'kalah') { hasil_mc.judul = 'Zombies invaded the village'; } } hasil_mc.continue_btn.onRelease = function () { removeMovieClip(hasil_mc); if (hasilnyaApa == 'menang') { ++xlevel; delayKe1(); } else { if (hasilnyaApa == 'kalah') { delayKe2(); } } }; } function delayKe2() { xlevel = 1; simpanData(); clearInterval(idDelay1); clearInterval(idDelay2); clearSemua(); backMenu(); gotoAndStop(1275); } function cekPause(indi) { if (masihMain == true) { if (indi == true) { adaSenjata = false; Mouse.show(); pauseMenu = attachMovie('pauseMenu', 'pauseMenu', 30000); pauseMenu.gotoAndStop(1); pauseMenu._x = 400; pauseMenu._y = 200; pauseMenu.continue_btn.onRelease = function () { removeMovieClip(pauseMenu); adaSenjata = true; Mouse.hide(); removeMovieClip(pauseMenu); sedangPause = false; i = 900; while (i <= 1450) { if (_root['xzombie' + i].hidup == true) { _root['xzombie' + i].dalam.play(); if (_root['xzombie' + i].dalam == undefined) { _root['xzombie' + i].play(); } } if (_root['xxzombie' + i].hidup == true) { _root['xxzombie' + i].play(); } ++i; } i = 1; while (i <= 6) { menu_mc['slot' + i].enabled = true; ++i; } if (senjata._currentframe > 1) { senjata.play(); } i = 1; while (i <= 4) { _root['pejuang' + i].anim.play(); ++i; } menu_mc.menu_btn.enabled = true; myMusic.start(posisi, 1); myMusic.onSoundComplete = function () { backMain(); }; }; pauseMenu.option_btn.onRelease = function () { pauseMenu.gotoAndStop(2); pauseMenu.back_btn.onRelease = function () { cekPause(true); }; }; pauseMenu.quit_btn.onRelease = function () { adaSenjata = true; Mouse.show(); senjata._visible = true; removeMovieClip(pauseMenu); masihMain = false; clearSemua(); loadData(); backMenu(); gotoAndStop(511); }; i = 900; while (i <= 1450) { if (_root['xzombie' + i].hidup == true) { _root['xzombie' + i].dalam.stop(); if (_root['xzombie' + i].dalam == undefined) { _root['xzombie' + i].stop(); } } if (_root['xxzombie' + i].hidup == true) { _root['xxzombie' + i].stop(); } ++i; } i = 1; while (i <= 6) { menu_mc['slot' + i].enabled = false; ++i; } i = 1; while (i <= 4) { _root['pejuang' + i].anim.stop(); ++i; } senjata.stop(); menu_mc.menu_btn.enabled = false; posisi = myMusic.position / 1000; myMusic.stop(); } else { adaSenjata = true; Mouse.hide(); removeMovieClip(pauseMenu); sedangPause = false; i = 900; while (i <= 1450) { if (_root['xzombie' + i].hidup == true) { _root['xzombie' + i].dalam.play(); if (_root['xzombie' + i].dalam == undefined) { _root['xzombie' + i].play(); } } if (_root['xxzombie' + i].hidup == true) { _root['xxzombie' + i].play(); } ++i; } i = 1; while (i <= 6) { menu_mc['slot' + i].enabled = true; ++i; } if (senjata._currentframe > 1) { senjata.play(); } i = 1; while (i <= 4) { _root['pejuang' + i].anim.play(); ++i; } menu_mc.menu_btn.enabled = true; myMusic.start(posisi, 1); myMusic.onSoundComplete = function () { backMain(); }; } } } stop(); backMain(); Mouse.hide(); init(); buatBack(); buatPintu(); buatMenu(); buatSenjata(jenisSenjata); buatBarikade(); buatPejuang(); buatRanjau(); i = 1; while (i <= 6) { menu_mc['slot' + i].gotoAndStop(1); ++i; } i = 1; while (i <= 6) { if (_root['slot' + i] >= 1) { menu_mc['slot' + i].gotoAndStop(3); i = 6; } ++i; } _root.onMouseDown = function () { if (sedangPause == false) { tahanSaw = true; if (senjata._currentframe == 1) { if (adaSenjata == true) { if (jenisSenjata <= 18) { if (_root['ammo' + jenisSenjata] > 0 && jenisSenjata >= 6) { senjata.gotoAndPlay(2); } else { if (jenisSenjata <= 6) { senjata.gotoAndPlay(2); } } } if (_root['ammo' + jenisSenjata] <= 0 && jenisSenjata >= 6) { i = 1; while (i <= 6) { if (_root['ammo' + _root['slot' + i]] > 0) { jenisSenjata = _root['slot' + i]; buatSenjata(i); i = 6; } ++i; } } if (jenisSenjata == 7) { if (_root['ammo' + jenisSenjata] > 0) { --_root['ammo' + jenisSenjata]; if (_root['ammo' + jenisSenjata] <= 0) { i = 1; while (i <= 6) { if (_root['ammo' + _root['slot' + i]] > 0) { jenisSenjata = _root['slot' + i]; buatSenjata(i); } ++i; } } } } else { if (jenisSenjata == 18) { if (_root['ammo' + jenisSenjata] > 0) { --_root['ammo' + jenisSenjata]; if (_root['ammo' + jenisSenjata] <= 0) { i = 1; while (i <= 6) { if (_root['ammo' + _root['slot' + i]] > 0) { jenisSenjata = _root['slot' + i]; buatSenjata(i); } ++i; } } } } else { if (jenisSenjata == 19) { if (_root['ammo' + jenisSenjata] > 0) { --_root['ammo' + jenisSenjata]; cekGranat(); if (_root['ammo' + jenisSenjata] <= 0) { i = 1; while (i <= 6) { if (_root['ammo' + _root['slot' + i]] > 0) { jenisSenjata = _root['slot' + i]; buatSenjata(i); } ++i; } } } } else { if (jenisSenjata == 20) { if (_root['ammo' + jenisSenjata] > 0) { --_root['ammo' + jenisSenjata]; xsenjata = attachMovie('senjata' + jenisSenjata, 'xsenjata' + banyakSenjata, banyakSenjata); xsenjata._x = _root._xmouse; xsenjata._y = _root._ymouse; xsenjata.damage = _root['damage' + jenisSenjata]; xsenjata.gotoAndPlay(2); ++banyakSenjata; if (banyakSenjata >= 550) { banyakSenjata = 500; } if (_root['ammo' + jenisSenjata] <= 0) { i = 1; while (i <= 6) { if (_root['ammo' + _root['slot' + i]] > 0) { jenisSenjata = _root['slot' + i]; buatSenjata(i); } ++i; } } } } } } } } } } }; _root.onMouseUp = function () { tahanSaw = false; }; _root.onEnterFrame = function () { if (sedangPause == false) { if (masihMain == true) { if (senjata._y > 400) { adaSenjata = false; Mouse.show(); } else { adaSenjata = true; Mouse.hide(); } if (xshield <= 0) { xshield = 0; } menu_mc.shield_mc._xscale = xshield; menu_mc.scores = score; menu_mc.waves = wave; } } }; if (xlevel <= 3) { munculDelay = 1675; } else { if (xlevel <= 6) { munculDelay = 1650; } else { if (xlevel <= 9) { munculDelay = 1625; } else { if (xlevel <= 12) { munculDelay = 1600; } else { if (xlevel <= 15) { munculDelay = 1575; } else { if (xlevel <= 18) { munculDelay = 1550; } else { if (xlevel <= 21) { munculDelay = 1525; } else { if (xlevel <= 24) { munculDelay = 1500; } else { if (xlevel <= 27) { munculDelay = 1475; } else { if (xlevel <= 30) { munculDelay = 1450; } } } } } } } } } } munculDelay *= 5 / speedZombie; idMuncul = setInterval(munculZombie, munculDelay); myListener = new Object(); myListener.onKeyDown = function () { if (masihMain == true) { if (Key.getCode() == 80) { if (sedangPause == false) { sedangPause = true; cekPause(true); } else { if (sedangPause == true) { sedangPause = false; cekPause(false); } } } if (Key.getCode() == 49) { if (_root.slot1 != 0) { if (_root['ammo' + _root.slot1] != 0) { if (jenisSenjata != slot1) { jenisSenjata = slot1; buatSenjata(1); } } } } if (Key.getCode() == 50) { if (_root.slot2 != 0) { if (_root['ammo' + _root.slot2] != 0) { if (jenisSenjata != slot2) { jenisSenjata = slot2; buatSenjata(2); } } } } if (Key.getCode() == 51) { if (_root.slot3 != 0) { if (_root['ammo' + _root.slot3] != 0) { if (jenisSenjata != slot3) { jenisSenjata = slot3; buatSenjata(3); } } } } if (Key.getCode() == 52) { if (_root.slot4 != 0) { if (_root['ammo' + _root.slot4] != 0) { if (jenisSenjata != slot4) { jenisSenjata = slot4; buatSenjata(4); } } } } if (Key.getCode() == 53) { if (_root.slot5 != 0) { if (_root['ammo' + _root.slot5] != 0) { if (jenisSenjata != slot5) { jenisSenjata = slot5; buatSenjata(5); } } } } if (Key.getCode() == 54) { if (_root.slot6 != 0) { if (_root['ammo' + _root.slot6] != 0) { if (jenisSenjata != slot6) { jenisSenjata = slot6; buatSenjata(6); } } } } } }; Key.addListener(myListener); } frame 1270 { prevFrame(); } frame 1271 { function cekSenjata() { i = 1; while (i <= 20) { _root['senjata' + i].gotoAndStop(i); _root['senjata' + i].silang_mc._visible = false; _root['senjata' + i].onRelease = klikSenjata; _root['senjata' + i].onRollOver = overSenjata; _root['senjata' + i].onRollOut = outSenjata; if (_root['milik' + i] == 1) { _root['senjata' + i].tanda_mc._visible = true; } else { _root['senjata' + i].tanda_mc._visible = false; } _root['senjata' + i].enabled = true; if (xlevel < levelMuncul[i]) { _root['senjata' + i].enabled = true; _root['senjata' + i].silang_mc._visible = true; delete _root['senjata' + i].onRelease; _root['senjata' + i].onRollOver = overSenjata; _root['senjata' + i].onRollOut = outSenjata; } ++i; } i = 1; while (i <= 6) { _root['xsenjata' + i].silang_mc._visible = false; _root['xsenjata' + i].tanda_mc._visible = false; if (_root['slot' + i] == 0) { delete _root['xsenjata' + i].onRelease; delete _root['xsenjata' + i].onRollOver; delete _root['xsenjata' + i].onRollOut; _root['xsenjata' + i].gotoAndStop(21); } else { _root['xsenjata' + i].gotoAndStop(_root['slot' + i]); _root['xsenjata' + i].onRelease = klikSlot; _root['xsenjata' + i].onRollOver = overSlot; _root['xsenjata' + i].onRollOut = outSlot; } ++i; } } function klikSlot() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); _root['slot' + indi] = 0; cekSenjata(); info = ''; } function klikSenjata() { myStr = new String(this); if (myStr.length == 16) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } if (_root['milik' + indi] == 1) { cekAda = false; i = 1; while (i <= 6) { if (_root['slot' + i] == indi) { cekAda = true; } ++i; } if (cekAda == false) { i = 1; while (i <= 6) { if (_root['slot' + i] == 0) { _root['slot' + i] = indi; i = 6; } ++i; } cekSenjata(); } else { info = 'The weapon alredy exist on the weapon slot'; } } else { if (xpoint >= hargaSenjata[indi]) { cekAda = false; i = 1; while (i <= 6) { if (_root['slot' + i] == 0) { _root['slot' + i] = indi; cekAda = true; i = 6; } ++i; } if (cekAda == true) { xpoint -= hargaSenjata[indi]; wpoints = 'Points: ' + xpoint; _root['milik' + indi] = 1; cekSenjata(); } else { info = 'The Weapon slot is full'; } } else { info = 'Not enough points for upgrade.'; } } } function overSenjata() { this._alpha = 75; myStr = new String(this); if (myStr.length == 16) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } if (_root['ammo' + indi] == '') { info = 'Weapon Name:\n' + namaSenjata[indi] + '\nAction Method:\n' + tipeSenjata[indi] + '\nWeapon Price:\n' + hargaSenjata[indi] + ' Points\nDamage:\n' + _root['damage' + indi] + '\nAmmo:\nInfinite'; } else { info = 'Weapon Name:\n' + namaSenjata[indi] + '\nAction Method:\n' + tipeSenjata[indi] + '\nWeapon Price:\n' + hargaSenjata[indi] + ' Points\nDamage:\n' + _root['damage' + indi] + '\nAmmo:\n' + _root['ammo' + indi]; } } function outSenjata() { this._alpha = 100; info = ''; } function overSlot() { this._alpha = 75; myStr = new String(this); if (myStr.length == 17) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } if (_root['ammo' + _root['slot' + indi]] == '') { info = 'Weapon Name:\n' + namaSenjata[_root['slot' + indi]] + '\nAction Method:\n' + tipeSenjata[_root['slot' + indi]] + '\nWeapon Price:\n' + hargaSenjata[_root['slot' + indi]] + ' Point\nDamage:\n' + _root['damage' + _root['slot' + indi]] + '\nAmmo:\nInfinite'; } else { info = 'Weapon Name:\n' + namaSenjata[_root['slot' + indi]] + '\nAction Method:\n' + tipeSenjata[_root['slot' + indi]] + '\nWeapon Price:\n' + hargaSenjata[_root['slot' + indi]] + ' Point\nDamage:\n' + _root['damage' + _root['slot' + indi]] + '\nAmmo:\n' + _root['ammo' + _root['slot' + indi]]; } if (_root['slot' + indi] != 0) { _root['xsenjata' + indi].silang_mc._visible = true; } } function outSlot() { this._alpha = 100; info = ''; myStr = new String(this); if (myStr.length == 17) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } _root['xsenjata' + indi].silang_mc._visible = false; } stop(); info = ''; wpoints = 'Points: ' + xpoint; wlevel = 'Level: ' + xlevel + '/30'; wscore = 'Score: ' + score; wlocation = 'Location: ' + namaLokasi[backKe[posisiMap]]; wbarikade = 'Shield: ' + xshield; namaSenjata = new Array('', 'Knife', 'Sickle', 'Katana', 'Axe', 'Spear', 'Chain Saw', 'Lightsaber', 'Hand Gun', 'Luger', 'Fire Arrow', 'Rifle', 'Automatic Rifle', 'Gatling Gun', 'Shotgun', 'Sniper', 'Rocket Launcher', 'Missile Launcher', 'Laser Gun', 'Grenade', 'Dynamite'); tipeSenjata = new Array('', 'Horizontal Slash', 'Vertical Slash', 'Horizontal Slash', 'Vertical Slash', 'Vertical Slash', 'Horizontal Slash', 'Multiple Slashs', 'Shoot', 'Shoot', 'Shoot and Burn', 'Shoot', 'Triple Shoots', 'Multiple Shoots', 'Shoot and Burn', 'Piercing Shoot', 'Shoot and Explode', 'Shoot and Explode', 'Piercing Shoot', 'Throw and Explode', 'Place and Explode'); hargaSenjata = new Array('', 50, 150, 100, 300, 275, 350, 600, 100, 125, 150, 200, 400, 600, 800, 1000, 950, 1000, 1250, 1500, 1750); levelMuncul = new Array('', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); cekSenjata(); ammo1 = ''; ammo2 = ''; ammo3 = ''; ammo4 = ''; ammo5 = ''; ammo6 = 300; ammo7 = 10; ammo8 = 100; ammo9 = 75; ammo10 = 25; ammo11 = 75; ammo12 = 60; ammo13 = 50; ammo14 = 45; ammo15 = 25; ammo16 = 35; ammo17 = 30; ammo18 = 5; ammo19 = 25; ammo20 = 20; i = 1; while (i <= 20) { if (_root['ammo' + i] != '') { _root['ammo' + i] *= 1.5; _root['ammo' + i] = Math.ceil(_root['ammo' + i]); } hargaSenjata[i] *= 0.75; hargaSenjata[i] = Math.floor(hargaSenjata[i]); ++i; } next_btn.onRelease = function () { cekAda = false; i = 1; while (i <= 6) { if (_root['slot' + i] >= 1) { cekAda = true; } ++i; } hbanyakSenjata = 0; i = 1; while (i <= 20) { if (_root['milik' + i] == 1) { ++hbanyakSenjata; } ++i; } if (hbanyakSenjata >= 20) { _root.scoreHTTPSender('FL080102', 'CH014'); } if (cekAda == true) { gotoAndStop(1272); } else { info = 'You must use at least 1 weapon on the weapon slot.'; } }; back_btn.onRelease = function () { gotoAndStop(516); }; repair_btn.onRelease = function () { if (xshield < 100 && xpoint >= 10) { xpoint -= 10; wpoints = 'Points: ' + xpoint; xshield += 5; if (xshield >= 100) { xpoint += xshield - 100; wpoints = 'Points: ' + xpoint; xshield = 100; } wbarikade = 'Shield: ' + xshield; } else { info = 'Not enough points for repair or Shield = 100'; } }; repair_btn.onRollOver = function () { info = 'Repair needs 10 points to increase 5 points of Shield'; }; repair_btn.onRollOut = function () { info = ''; }; } movieClip 4555 { } movieClip 4556 { } movieClip 4557 { frame 10 { stop(); } } movieClip 4565 { } movieClip 4566 { } movieClip 4567 { frame 10 { stop(); } } frame 1272 { stop(); next_btn.onRelease = function () { gotoAndStop(1273); }; back_btn.onRelease = function () { gotoAndStop(1271); }; xpoint1 = 300; xpoint2 = 800; xpoint3 = 1100; xkuat1 = 200; xkuat2 = 800; xkuat3 = 1200; wlevel = 'Level: ' + xlevel + '/30'; wpoints = 'Points: ' + xpoint; jenisBarikade = new Array('', 'Garbage Barricade', 'Wood Barricade', 'Wire Barricade'); if (nyawaBarikade1 > 0) { judul1 = 'Barricade 1'; bari1.gotoAndStop(jenisBarikade1 + 1); } else { jenisBarikade1 = 0; judul1 = ''; bari1.gotoAndStop(jenisBarikade1 + 1); } if (nyawaBarikade2 > 0) { judul2 = 'Barricade 2'; bari2.gotoAndStop(jenisBarikade2 + 1); } else { jenisBarikade2 = 0; judul2 = ''; bari2.gotoAndStop(jenisBarikade2 + 1); } tombol11.onRelease = function () { if (jenisBarikade1 != 0) { xpoint += nyawaBarikade1; wpoints = 'Points: ' + xpoint; bari1.gotoAndStop(1); jenisBarikade1 = 0; } }; tombol12.onRelease = function () { if (jenisBarikade1 == 1) { info = 'Barricade already exist'; } else { if (xpoint >= xpoint1) { xpoint -= xpoint1; wpoints = 'Points: ' + xpoint; bari1.gotoAndStop(2); jenisBarikade1 = 1; nyawaBarikade1 = xkuat1; judul1 = 'Barricade 1'; } else { info = 'Not enough points for upgrade.'; } } }; tombol13.onRelease = function () { if (jenisBarikade1 == 2) { info = 'Barricade already exist'; } else { if (xpoint >= xpoint2) { xpoint -= xpoint2; wpoints = 'Points: ' + xpoint; bari1.gotoAndStop(3); jenisBarikade1 = 2; nyawaBarikade1 = xkuat2; judul1 = 'Barricade 1'; } else { info = 'Not enough points for upgrade.'; } } }; tombol14.onRelease = function () { if (jenisBarikade1 == 3) { info = 'Barricade already exist'; } else { if (xpoint >= xpoint3) { xpoint -= xpoint3; wpoints = 'Points: ' + xpoint; bari1.gotoAndStop(4); jenisBarikade1 = 3; nyawaBarikade1 = xkuat3; judul1 = 'Barricade 1'; } else { info = 'Not enough points for upgrade.'; } } }; tombol21.onRelease = function () { if (jenisBarikade2 != 0) { xpoint += nyawaBarikade2; wpoints = 'Points: ' + xpoint; bari2.gotoAndStop(1); jenisBarikade2 = 0; } else { info = 'Not enough points for upgrade.'; } }; tombol22.onRelease = function () { if (jenisBarikade2 == 1) { info = 'Barricade already exist'; } else { if (xpoint >= xpoint1) { xpoint -= xpoint1; wpoints = 'Points: ' + xpoint; bari2.gotoAndStop(2); jenisBarikade2 = 1; nyawaBarikade2 = xkuat1; judul2 = 'Barricade 2'; } else { info = 'Not enough points for upgrade.'; } } }; tombol23.onRelease = function () { if (jenisBarikade2 == 2) { info = 'Barricade already exist'; } else { if (xpoint >= xpoint2) { xpoint -= xpoint2; wpoints = 'Points: ' + xpoint; bari2.gotoAndStop(3); jenisBarikade2 = 2; nyawaBarikade2 = xkuat2; judul2 = 'Barricade 2'; } else { info = 'Not enough points for upgrade.'; } } }; tombol24.onRelease = function () { if (jenisBarikade2 == 3) { info = 'Barricade already exist'; } else { if (xpoint >= xpoint3) { xpoint -= xpoint3; wpoints = 'Points: ' + xpoint; bari2.gotoAndStop(4); jenisBarikade2 = 3; nyawaBarikade2 = xkuat3; judul2 = 'Barricade 2'; } else { info = 'Not enough points for upgrade.'; } } }; tombol11.onRollOver = function () { info = 'No Barricade'; }; tombol12.onRollOver = function () { info = 'Click here to upgrade, Garbage Barricade,\nstrength = ' + xkuat1 + '. Need ' + xpoint1 + ' upgrade points to build'; }; tombol13.onRollOver = function () { info = 'Click here to upgrade, Wood Barricade,\nstrength = ' + xkuat2 + '. Need ' + xpoint2 + ' upgrade points to build'; }; tombol14.onRollOver = function () { info = 'Click here to upgrade, Wire Barricade,\nstrength = ' + xkuat3 + '. Need ' + xpoint3 + ' upgrade points to build'; }; tombol21.onRollOver = function () { info = 'No Barricade'; }; tombol22.onRollOver = function () { info = 'Click here to upgrade, Garbage Barricade,\nstrength = ' + xkuat1 + '. Need ' + xpoint1 + ' upgrade points to build'; }; tombol23.onRollOver = function () { info = 'Click here to upgrade, Wood Barricade,\nstrength = ' + xkuat2 + '. Need ' + xpoint2 + ' upgrade points to build'; }; tombol24.onRollOver = function () { info = 'Click here to upgrade, Wire Barricade,\nstrength = ' + xkuat3 + '. Need ' + xpoint3 + ' upgrade points to build'; }; tombol11.onRollOut = function () { info = ''; }; tombol12.onRollOut = function () { info = ''; }; tombol13.onRollOut = function () { info = ''; }; tombol14.onRollOut = function () { info = ''; }; tombol21.onRollOut = function () { info = ''; }; tombol22.onRollOut = function () { info = ''; }; tombol23.onRollOut = function () { info = ''; }; tombol24.onRollOut = function () { info = ''; }; bari1.nama.kekuatan = ''; persenx = (nyawaBarikade1 / _root['xkuat' + jenisBarikade1]) * 100; if (persenx == 100) { bari1.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { bari1.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { bari1.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { bari1.nama.gotoAndStop(4); } else { if (persenx <= 29) { bari1.nama.gotoAndStop(5); } } } } } bari2.nama.kekuatan = ''; persenx = (nyawaBarikade2 / _root['xkuat' + jenisBarikade2]) * 100; if (persenx == 100) { bari2.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { bari2.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { bari2.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { bari2.nama.gotoAndStop(4); } else { if (persenx <= 29) { bari2.nama.gotoAndStop(5); } } } } } bari1.onEnterFrame = function () { this.nama.kekuatan = ''; persenx = (nyawaBarikade1 / _root['xkuat' + jenisBarikade1]) * 100; if (persenx == 100) { this.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { this.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { this.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { this.nama.gotoAndStop(4); } else { if (persenx <= 29) { this.nama.gotoAndStop(5); } } } } } }; bari2.onEnterFrame = function () { this.nama.kekuatan = ''; persenx = (nyawaBarikade2 / _root['xkuat' + jenisBarikade2]) * 100; if (persenx == 100) { this.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { this.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { this.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { this.nama.gotoAndStop(4); } else { if (persenx <= 29) { this.nama.gotoAndStop(5); } } } } } }; bari1.onRelease = function () { if (this._currentframe == 1) { info = 'No Barricade Here'; } else { if (nyawaBarikade1 < _root['xkuat' + jenisBarikade1] && xpoint >= 10) { xpoint -= 10; wpoints = 'Points: ' + xpoint; nyawaBarikade1 += 20; if (nyawaBarikade1 > _root['xkuat' + jenisBarikade1]) { xpoint += nyawaBarikade1 - _root['xkuat' + jenisBarikade1]; wpoints = 'Points: ' + xpoint; nyawaBarikade1 = _root['xkuat' + jenisBarikade1]; } info = jenisBarikade[jenisBarikade1] + ', strength: ' + nyawaBarikade1 + '/' + _root['xkuat' + jenisBarikade1] + '. Click to increase 20 points of strength (need 10 point)'; } else { info = 'Not enough points for repair or maximum stregth.'; } } }; bari2.onRelease = function () { if (this._currentframe == 1) { info = 'No Barricade Here'; } else { if (nyawaBarikade2 < _root['xkuat' + jenisBarikade2] && xpoint >= 10) { xpoint -= 10; wpoints = 'Points: ' + xpoint; nyawaBarikade2 += 20; if (nyawaBarikade2 > _root['xkuat' + jenisBarikade2]) { xpoint += nyawaBarikade2 - _root['xkuat' + jenisBarikade2]; wpoints = 'Points: ' + xpoint; nyawaBarikade2 = _root['xkuat' + jenisBarikade2]; } info = jenisBarikade[jenisBarikade2] + ', strength: ' + nyawaBarikade2 + '/' + _root['xkuat' + jenisBarikade2] + '.\nClick to increase 20 points of strength (need 10 point)'; } else { info = 'Not enough points for repair or maximum stregth.'; } } }; bari1.onRollOver = function () { if (jenisBarikade1 >= 1) { info = jenisBarikade[jenisBarikade1] + ', strength: ' + nyawaBarikade1 + '/' + _root['xkuat' + jenisBarikade1] + '.\nClick to repair 20 points of strength (need 10 point)'; } else { info = 'No Barricade Here'; } }; bari2.onRollOver = function () { if (jenisBarikade2 >= 1) { info = jenisBarikade[jenisBarikade2] + ', strength: ' + nyawaBarikade2 + '/' + _root['xkuat' + jenisBarikade2] + '.\nClick to repair 20 points of strength (need 10 point)'; } else { info = 'No Barricade Here'; } }; bari1.onRollOut = function () { info = ''; }; bari2.onRollOut = function () { info = ''; }; } movieClip 4583 { frame 1 { stop(); } } frame 1273 { function cekOrang() { i = 1; while (i <= 4) { if (_root['adaOrang' + i] == false) { _root['xorang' + i]._visible = false; _root['orang' + i]._alpha = 100; _root['orang' + i].onRelease = klikOrang; _root['orang' + i].onRollOver = overOrang; _root['orang' + i].onRollOut = outOrang; } else { if (_root['adaOrang' + i] == true) { _root['orang' + i]._alpha = 50; _root['xorang' + i]._visible = true; delete _root['orang' + i].onRelease; delete _root['orang' + i].onRollOver; delete _root['orang' + i].onRollOut; } } ++i; } } function klikOrang() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); if (xpoint >= daftarHarga[indi]) { xpoint -= daftarHarga[indi]; wpoints = 'Points: ' + xpoint; _root['xorang' + indi]._visible = true; _root['adaOrang' + indi] = true; cekOrang(); } else { info = 'Not enough point.'; } } function overOrang() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); info = 'Click here to recruit new survivor, need ' + daftarHarga[indi] + ' points to hire, weapon: ' + daftarWeapon[indi]; } function outOrang() { info = ''; } stop(); wlevel = 'Level: ' + xlevel + '/30'; wpoints = 'Points: ' + xpoint; next_btn.onRelease = function () { gotoAndStop(1274); }; back_btn.onRelease = function () { gotoAndStop(1272); }; if (nyawaBarikade1 > 0) { bari1.gotoAndStop(jenisBarikade1 + 1); } else { jenisBarikade1 = 0; bari1.gotoAndStop(jenisBarikade1 + 1); } if (nyawaBarikade2 > 0) { bari2.gotoAndStop(jenisBarikade2 + 1); } else { jenisBarikade2 = 0; bari2.gotoAndStop(jenisBarikade2 + 1); } daftarHarga = new Array('', 400, 600, 1200, 1400); daftarWeapon = new Array('', 'Hand Gun', 'Rifle', 'Automatic Rifle', 'Shotgun'); cekOrang(); bari1.nama.kekuatan = ''; persenx = (nyawaBarikade1 / _root['xkuat' + jenisBarikade1]) * 100; if (persenx == 100) { bari1.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { bari1.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { bari1.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { bari1.nama.gotoAndStop(4); } else { if (persenx <= 29) { bari1.nama.gotoAndStop(5); } } } } } bari2.nama.kekuatan = ''; persenx = (nyawaBarikade2 / _root['xkuat' + jenisBarikade2]) * 100; if (persenx == 100) { bari2.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { bari2.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { bari2.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { bari2.nama.gotoAndStop(4); } else { if (persenx <= 29) { bari2.nama.gotoAndStop(5); } } } } } bari1.onEnterFrame = function () { this.nama.kekuatan = ''; persenx = (nyawaBarikade1 / _root['xkuat' + jenisBarikade1]) * 100; if (persenx == 100) { this.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { this.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { this.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { this.nama.gotoAndStop(4); } else { if (persenx <= 29) { this.nama.gotoAndStop(5); } } } } } }; bari2.onEnterFrame = function () { this.nama.kekuatan = ''; persenx = (nyawaBarikade2 / _root['xkuat' + jenisBarikade2]) * 100; if (persenx == 100) { this.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { this.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { this.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { this.nama.gotoAndStop(4); } else { if (persenx <= 29) { this.nama.gotoAndStop(5); } } } } } }; } movieClip 4602 { } movieClip 4603 { } movieClip 4612 { } movieClip 4613 { } frame 1274 { function klikRanjau() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); ambilRanjau = indi; if (sedangDrag == false) { sedangDrag = true; ranjau = attachMovie('ranjau' + indi, 'ranjau', 100); ranjau.jumlah = ''; ranjau._x = -500; ranjau._y = -500; startDrag(ranjau, true); } else { sedangDrag = false; removeMovieClip(ranjau); } } function overRanjau() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); if (indi >= 3) { info = tipeRanjau[indi] + '.\nPrices: ' + hargaRanjau[indi] + '.\nWhen you fight the zombie, you must click this trap to activate it.'; } else { info = tipeRanjau[indi] + '.\nPrices: ' + hargaRanjau[indi] + '.\nThis trap will automatic active when the zombie\'s foot hit it.'; } } function outRanjau() { info = ''; } function klikPos() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); if (this._currentframe == 1 && sedangDrag == true) { xmyStr = new String(this); xindi = Number(xmyStr.substr(xmyStr.length - 1, 1)); if (xpoint >= hargaRanjau[ambilRanjau]) { xpoint -= hargaRanjau[ambilRanjau]; wpoints = 'Points: ' + xpoint; ++_root['banyakPos' + indi]; _root['pos' + xindi].gotoAndStop(ambilRanjau + 1); _root['tipePos' + indi] = ambilRanjau; removeMovieClip(ranjau); sedangDrag = false; info = tipeRanjau[this._currentframe - 1] + '. Ammount of Traps: ' + _root['banyakPos' + indi] + '. Click here to add number of traps (maximum: 8), need ' + hargaRanjau[this._currentframe - 1] + ' upgrade points to increase.'; } else { info = 'Not enough points.'; } } else { if (this._currentframe > 1) { if (xpoint >= hargaRanjau[_root['tipePos' + indi]]) { if (_root['banyakPos' + indi] < 8) { xpoint -= hargaRanjau[_root['tipePos' + indi]]; wpoints = 'Points: ' + xpoint; ++_root['banyakPos' + indi]; info = tipeRanjau[this._currentframe - 1] + '. Ammount of Traps: ' + _root['banyakPos' + indi] + '. Click here to add number of traps (maximum 8), need ' + hargaRanjau[this._currentframe - 1] + ' upgrade points to increase.'; } else { info = 'Too many traps.'; } } else { info = 'Not enough points.'; } } } } function overPos() { myStr = new String(this); indi = Number(myStr.substr(myStr.length - 1, 1)); if (this._currentframe > 1) { info = tipeRanjau[this._currentframe - 1] + '. Ammount of Traps: ' + _root['banyakPos' + indi] + '. Click here to add number of traps (maximum: 8), need ' + hargaRanjau[this._currentframe - 1] + ' upgrade points to increase.'; } else { info = tipeRanjau[this._currentframe - 1]; } } function outPos() { info = ''; } stop(); next_btn.onRelease = function () { removeMovieClip(ranjau); simpanData(); gotoAndStop(1269); }; back_btn.onRelease = function () { removeMovieClip(ranjau); gotoAndStop(1273); }; if (nyawaBarikade1 > 0) { bari1.gotoAndStop(jenisBarikade1 + 1); } else { jenisBarikade1 = 0; bari1.gotoAndStop(jenisBarikade1 + 1); } if (nyawaBarikade2 > 0) { bari2.gotoAndStop(jenisBarikade2 + 1); } else { jenisBarikade2 = 0; bari2.gotoAndStop(jenisBarikade2 + 1); } i = 1; while (i <= 4) { if (_root['adaOrang' + i] == false) { _root['xorang' + i]._visible = false; } else { _root['xorang' + i]._visible = true; } ++i; } wlevel = 'Level: ' + xlevel + '/30'; wpoints = 'Points: ' + xpoint; tipeRanjau = new Array('Empty Slot', 'Bear Traps', 'Fire Traps', 'Dynamite Traps', 'Grenade Traps'); hargaRanjau = new Array('', 50, 75, 100, 125); i = 1; while (i <= 4) { _root['ranjau' + i].onRelease = klikRanjau; _root['ranjau' + i].onRollOver = overRanjau; _root['ranjau' + i].onRollOut = outRanjau; ++i; } i = 1; while (i <= 9) { _root['pos' + i].onRelease = klikPos; _root['pos' + i].onRollOver = overPos; _root['pos' + i].onRollOut = outPos; if (_root['banyakPos' + i] == 0) { _root['pos' + i].gotoAndStop(1); } else { _root['pos' + i].gotoAndStop(_root['tipePos' + i] + 1); } ++i; } sedangDrag = false; bari1.nama.kekuatan = ''; persenx = (nyawaBarikade1 / _root['xkuat' + jenisBarikade1]) * 100; if (persenx == 100) { bari1.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { bari1.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { bari1.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { bari1.nama.gotoAndStop(4); } else { if (persenx <= 29) { bari1.nama.gotoAndStop(5); } } } } } bari2.nama.kekuatan = ''; persenx = (nyawaBarikade2 / _root['xkuat' + jenisBarikade2]) * 100; if (persenx == 100) { bari2.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { bari2.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { bari2.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { bari2.nama.gotoAndStop(4); } else { if (persenx <= 29) { bari2.nama.gotoAndStop(5); } } } } } bari1.onEnterFrame = function () { this.nama.kekuatan = ''; persenx = (nyawaBarikade1 / _root['xkuat' + jenisBarikade1]) * 100; if (persenx == 100) { this.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { this.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { this.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { this.nama.gotoAndStop(4); } else { if (persenx <= 29) { this.nama.gotoAndStop(5); } } } } } }; bari2.onEnterFrame = function () { this.nama.kekuatan = ''; persenx = (nyawaBarikade2 / _root['xkuat' + jenisBarikade2]) * 100; if (persenx == 100) { this.nama.gotoAndStop(1); } else { if (persenx <= 99 && persenx >= 80) { this.nama.gotoAndStop(2); } else { if (persenx <= 79 && persenx >= 60) { this.nama.gotoAndStop(3); } else { if (persenx <= 60 && persenx >= 30) { this.nama.gotoAndStop(4); } else { if (persenx <= 29) { this.nama.gotoAndStop(5); } } } } } }; } movieClip 4619 { } movieClip 4620 { } movieClip 4621 { } movieClip 4622 { } movieClip 4623 { frame 1 { stop(); } } frame 1275 { stop(); Mouse.show(); quit_btn.onRelease = function () { gotoAndStop(511); }; if (score >= 500000000) { _root.scoreHTTPSender('FL080102', 'CH015'); } } movieClip 4626 { } movieClip 4643 { } movieClip 4644 { } movieClip 4645 { frame 111 { gotoAndPlay(15); } } movieClip 4648 { } movieClip 4652 { } movieClip 4653 { frame 1 { stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; } } movieClip 4658 { } movieClip 4659 { frame 1 { stop(); } } movieClip 4661 { } movieClip 4662 { frame 1 { stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; } } movieClip 4664 { } movieClip 4665 { frame 1 { stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; } } movieClip 4668 { frame 1 { function rhex(num) { str = ''; j = 0; while (j <= 3) { str += hex_chr.charAt(MathbitAND(num >> j * 8 + 4, 15)) + hex_chr.charAt(MathbitAND(num >> j * 8, 15)); ++j; } return str; } function str2blks_MD5(str) { nblk = (str.length + 8 >> 6) + 1; blks = new Array(nblk * 16); i = 0; while (i < nblk * 16) { blks[i] = 0; ++i; } i = 0; while (i < str.length) { blks[i >> 2] |= str.charCodeAt(i) << (i % 4) * 8; ++i; } blks[i >> 2] |= 128 << (i % 4) * 8; blks[nblk * 16 - 2] = str.length * 8; return blks; } function addme(x, y) { var v1 = MathbitAND(x, 65535) + MathbitAND(y, 65535); var v2 = (x >> 16) + (y >> 16) + (v1 >> 16); return v2 << 16 | MathbitAND(v1, 65535); } function rol(num, cnt) { return num << cnt | num >>> 32 - cnt; } function cmn(q, a, b, x, s, t) { return addme(rol(addme(addme(a, q), addme(x, t)), s), b); } function ff(a, b, c, d, x, s, t) { return cmn(MathbitAND(b, c) | MathbitAND(~b, d), a, b, x, s, t); } function gg(a, b, c, d, x, s, t) { return cmn(MathbitAND(b, d) | MathbitAND(c, ~d), a, b, x, s, t); } function hh(a, b, c, d, x, s, t) { return cmn(b ^ c ^ d, a, b, x, s, t); } function ii(a, b, c, d, x, s, t) { return cmn(c ^ (b | ~d), a, b, x, s, t); } MathbitAND = function (a, b) { if (a < 0 && b < 0) { var v3 = a & 1 & (b & 1); var v4 = a >>> 1 & b >>> 1; return v4 << 1 | v3; } else { return a & b; } }; var hex_chr = '0123456789abcdef'; String.prototype.MD5 = function () { var v2 = this; x = str2blks_MD5(v2); a = 1732584193; b = -271733879; c = -1732584194; d = 271733878; i = 0; while (i < x.length) { olda = a; oldb = b; oldc = c; oldd = d; a = ff(a, b, c, d, x[i + 0], 7, -680876936); d = ff(d, a, b, c, x[i + 1], 12, -389564586); c = ff(c, d, a, b, x[i + 2], 17, 606105819); b = ff(b, c, d, a, x[i + 3], 22, -1044525330); a = ff(a, b, c, d, x[i + 4], 7, -176418897); d = ff(d, a, b, c, x[i + 5], 12, 1200080426); c = ff(c, d, a, b, x[i + 6], 17, -1473231341); b = ff(b, c, d, a, x[i + 7], 22, -45705983); a = ff(a, b, c, d, x[i + 8], 7, 1770035416); d = ff(d, a, b, c, x[i + 9], 12, -1958414417); c = ff(c, d, a, b, x[i + 10], 17, -42063); b = ff(b, c, d, a, x[i + 11], 22, -1990404162); a = ff(a, b, c, d, x[i + 12], 7, 1804603682); d = ff(d, a, b, c, x[i + 13], 12, -40341101); c = ff(c, d, a, b, x[i + 14], 17, -1502002290); b = ff(b, c, d, a, x[i + 15], 22, 1236535329); a = gg(a, b, c, d, x[i + 1], 5, -165796510); d = gg(d, a, b, c, x[i + 6], 9, -1069501632); c = gg(c, d, a, b, x[i + 11], 14, 643717713); b = gg(b, c, d, a, x[i + 0], 20, -373897302); a = gg(a, b, c, d, x[i + 5], 5, -701558691); d = gg(d, a, b, c, x[i + 10], 9, 38016083); c = gg(c, d, a, b, x[i + 15], 14, -660478335); b = gg(b, c, d, a, x[i + 4], 20, -405537848); a = gg(a, b, c, d, x[i + 9], 5, 568446438); d = gg(d, a, b, c, x[i + 14], 9, -1019803690); c = gg(c, d, a, b, x[i + 3], 14, -187363961); b = gg(b, c, d, a, x[i + 8], 20, 1163531501); a = gg(a, b, c, d, x[i + 13], 5, -1444681467); d = gg(d, a, b, c, x[i + 2], 9, -51403784); c = gg(c, d, a, b, x[i + 7], 14, 1735328473); b = gg(b, c, d, a, x[i + 12], 20, -1926607734); a = hh(a, b, c, d, x[i + 5], 4, -378558); d = hh(d, a, b, c, x[i + 8], 11, -2022574463); c = hh(c, d, a, b, x[i + 11], 16, 1839030562); b = hh(b, c, d, a, x[i + 14], 23, -35309556); a = hh(a, b, c, d, x[i + 1], 4, -1530992060); d = hh(d, a, b, c, x[i + 4], 11, 1272893353); c = hh(c, d, a, b, x[i + 7], 16, -155497632); b = hh(b, c, d, a, x[i + 10], 23, -1094730640); a = hh(a, b, c, d, x[i + 13], 4, 681279174); d = hh(d, a, b, c, x[i + 0], 11, -358537222); c = hh(c, d, a, b, x[i + 3], 16, -722521979); b = hh(b, c, d, a, x[i + 6], 23, 76029189); a = hh(a, b, c, d, x[i + 9], 4, -640364487); d = hh(d, a, b, c, x[i + 12], 11, -421815835); c = hh(c, d, a, b, x[i + 15], 16, 530742520); b = hh(b, c, d, a, x[i + 2], 23, -995338651); a = ii(a, b, c, d, x[i + 0], 6, -198630844); d = ii(d, a, b, c, x[i + 7], 10, 1126891415); c = ii(c, d, a, b, x[i + 14], 15, -1416354905); b = ii(b, c, d, a, x[i + 5], 21, -57434055); a = ii(a, b, c, d, x[i + 12], 6, 1700485571); d = ii(d, a, b, c, x[i + 3], 10, -1894986606); c = ii(c, d, a, b, x[i + 10], 15, -1051523); b = ii(b, c, d, a, x[i + 1], 21, -2054922799); a = ii(a, b, c, d, x[i + 8], 6, 1873313359); d = ii(d, a, b, c, x[i + 15], 10, -30611744); c = ii(c, d, a, b, x[i + 6], 15, -1560198380); b = ii(b, c, d, a, x[i + 13], 21, 1309151649); a = ii(a, b, c, d, x[i + 4], 6, -145523070); d = ii(d, a, b, c, x[i + 11], 10, -1120210379); c = ii(c, d, a, b, x[i + 2], 15, 718787259); b = ii(b, c, d, a, x[i + 9], 21, -343485551); a = addme(a, olda); b = addme(b, oldb); c = addme(c, oldc); d = addme(d, oldd); i += 16; } return rhex(a) + rhex(b) + rhex(c) + rhex(d); }; } frame 1 { stop(); this.bubbleboxGameID = _root.gameID; scoreMc = this; sendBubbleBoxScore = function (gameID) { userData = new LoadVars(); var v4 = bubbleboxGameID + '_' + _root.score + '_' + _root.bubblebox_name; var v5 = bubbleboxGameID + '_' + '4234232143214421' + '_' + _root.score + '_' + '2537625476251' + '_' + _root.bubblebox_name + '_' + 'desleutelistessa'; var v3 = v5.MD5(); userData.datastring = v4; userData.hashstring = v3; var v2 = new LoadVars(); v2.onLoad = function (success) { if (success) { scoreMc.gotoAndStop('success'); } else { scoreMc.gotoAndStop('tryagain'); } }; userData.sendAndLoad('http://www.bubblebox.com/scripts/insertscore2008.php', v2, 'POST'); }; this.send_btn.onRelease = function () { if (_root.bubblebox_name != 'YOUR NAME' && _root.bubblebox_name.length > 0) { sendBubbleBoxScore(this._parent.bubbleboxGameID); this._parent.gotoAndStop('saving'); } }; } frame 1 { Selection.setFocus('instertname'); } frame 2 { stop(); } frame 3 { this.bubblebox_view_score.onRelease = function () { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1389&subid=highscores&action=viewscores', '_blank'); }; } frame 4 { this.try_again.onRelease = function () { this._parent.gotoAndStop(1); }; } } frame 1276 { stop(); Mouse.show(); quit_btn.onRelease = function () { gotoAndStop(511); }; if (score >= 500000000) { _root.scoreHTTPSender('FL080102', 'CH015'); } } movieClip 4674 { } movieClip 4691 { } movieClip 4692 { } movieClip 4693 { frame 111 { gotoAndPlay(15); } } movieClip 4696 { }




http://swfchan.com/26/126694/info.shtml
Created: 25/2 -2019 19:39:03 Last modified: 25/2 -2019 19:39:03 Server time: 22/12 -2024 09:32:02