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/82139036?noj=FRM82139036-22DC" width="1" height="1"></div>

Darkwar Strategy - Chapter Two.swf

This is the info page for
Flash #136303

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


ActionScript [AS1/AS2]
Combined Code
movieClip 55 sound_mc { } movieClip 69 it14 { frame 18 { removeMovieClip(this); } } movieClip 70 it10 { frame 18 { removeMovieClip(this); } } movieClip 82 it13 { frame 33 { removeMovieClip(this); } } movieClip 83 it9 { frame 33 { removeMovieClip(this); } } movieClip 97 it8 { frame 18 { removeMovieClip(this); } } movieClip 123 fx4 { frame 20 { removeMovieClip(this); } } movieClip 138 it6 { frame 24 { removeMovieClip(this); } } movieClip 170 it12 { frame 20 { removeMovieClip(this); } } movieClip 171 it5 { frame 20 { removeMovieClip(this); } } movieClip 186 it7 { frame 20 { removeMovieClip(this); } } movieClip 194 it4 { frame 32 { removeMovieClip(this); } } movieClip 216 it3 { frame 22 { removeMovieClip(this); } } movieClip 229 it2 { frame 18 { removeMovieClip(this); } } movieClip 230 it1 { frame 19 { removeMovieClip(this); } } movieClip 241 { frame 22 { removeMovieClip(this); } } movieClip 244 fx12 { frame 17 { removeMovieClip(this); } } movieClip 255 fx15 { frame 25 { removeMovieClip(this); } } movieClip 272 fx11 { frame 15 { removeMovieClip(this); } } movieClip 291 fx13 { frame 20 { removeMovieClip(this); } } movieClip 310 fx14 { frame 20 { removeMovieClip(this); } } movieClip 329 fx16 { frame 11 { removeMovieClip(this); } } movieClip 332 fx10 { frame 20 { removeMovieClip(this); } } movieClip 349 fx9 { frame 20 { removeMovieClip(this); } } movieClip 367 fx8 { frame 16 { removeMovieClip(this); } } movieClip 386 fx6 { frame 15 { removeMovieClip(this); } } movieClip 405 fx5 { frame 12 { removeMovieClip(this); } } movieClip 432 fx3 { frame 25 { removeMovieClip(this); } } movieClip 443 fx2 { frame 20 { removeMovieClip(this); } } movieClip 448 fx1 { frame 14 { removeMovieClip(this); } } movieClip 451 arrow_mc { } movieClip 453 { } movieClip 454 all_mc { } movieClip 457 { } movieClip 470 fx7 { frame 12 { removeMovieClip(this); } } movieClip 471 { frame 1 { gotoAndStop(random(50) + 1); } } movieClip 473 { } movieClip 474 meteor2_mc { } movieClip 475 meteor_mc { } movieClip 483 darah_mc { frame 15 { removeMovieClip(this); } } movieClip 485 { } movieClip 487 { } movieClip 489 { } movieClip 491 { } movieClip 493 { } movieClip 495 { } movieClip 497 { } movieClip 499 { } movieClip 501 { } movieClip 503 { } movieClip 505 { } movieClip 507 { } movieClip 509 { } movieClip 511 { } movieClip 513 { } movieClip 515 { } movieClip 517 { } movieClip 518 api_mc2 { frame 38 { removeMovieClip(this); } } movieClip 532 { } movieClip 534 { } movieClip 537 { } movieClip 540 { } movieClip 541 { frame 1 { stop(); } } movieClip 557 { } movieClip 596 { frame 1 { stop(); } } movieClip 599 { } movieClip 601 { } movieClip 603 { } movieClip 605 { } movieClip 606 msgBox_mc2 { } movieClip 609 { } movieClip 611 { } movieClip 613 { } movieClip 614 { } movieClip 616 { } movieClip 618 { } movieClip 620 { } movieClip 621 { } movieClip 643 { } movieClip 645 { } movieClip 646 { } movieClip 654 options_mc { frame 1 { stop(); } frame 2 { stop(); bar1_mc.bar_mc._x = Math.ceil(_root.volum1 / 0.4347826086956522 - 115); bar1_mc.bar_mc.onEnterFrame = function () { _root.volum1 = int(0.4347826086956522 * (this._x + 115)); _root.myMusic.setVolume(_root.volum1); bar1_mc.persen1 = _root.volum1 + ' %'; }; bar1_mc.indi_mc.onPress = function () { _root.klik(); startDrag(bar1_mc.bar_mc, true, -115, 0, 115, 0); }; bar1_mc.bar_mc.onRollOver = function () { _root.over(); }; bar1_mc.indi_mc.onReleaseOutside = function () { _root.over(); stopDrag(); }; bar1_mc.indi_mc.onRelease = bar1_mc.indi_mc.onReleaseOutside; bar2_mc.bar_mc._x = Math.ceil(_root.volum2 / 0.4347826086956522 - 115); bar2_mc.bar_mc.onEnterFrame = function () { _root.volum2 = int(0.4347826086956522 * (this._x + 115)); _root.volum3 = int(0.4347826086956522 * (this._x + 115)); _root.mySound.setVolume(_root.volum2); _root.mySound2.setVolume(_root.volum3); bar2_mc.persen2 = _root.volum2 + ' %'; }; bar2_mc.indi_mc.onPress = function () { _root.klik(); startDrag(bar2_mc.bar_mc, true, -115, 0, 115, 0); }; bar2_mc.bar_mc.onRollOver = function () { _root.over(); }; bar2_mc.indi_mc.onReleaseOutside = function () { _root.over(); stopDrag(); }; bar2_mc.indi_mc.onRelease = bar2_mc.indi_mc.onReleaseOutside; bar3_mc.bar_mc._x = Math.ceil(_root.volum3 / 0.4347826086956522 - 115); bar3_mc.bar_mc.onEnterFrame = function () { _root.volum3 = int(0.4347826086956522 * (this._x + 115)); if (_root.volum3 >= 50) { } else {} bar2_mc.persen3 = _root.volum3 + ' %'; }; bar3_mc.indi_mc.onPress = function () { _root.klik(); startDrag(bar3_mc.bar_mc, true, -115, 0, 115, 0); }; bar3_mc.bar_mc.onRollOver = function () { _root.over(); }; bar3_mc.indi_mc.onReleaseOutside = function () { _root.over(); stopDrag(); }; bar3_mc.indi_mc.onRelease = bar3_mc.indi_mc.onReleaseOutside; } frame 3 { stop(); } frame 4 { stop(); } } movieClip 656 msgBox_mc { } movieClip 659 semak_mc3 { } movieClip 662 pohon_mc8 { } movieClip 665 pohon_mc7 { } movieClip 668 pohon_mc6 { } movieClip 671 pohon_mc5 { } movieClip 674 pohon_mc4 { } movieClip 677 pohon_mc3 { } movieClip 680 kaktus_mc3 { } movieClip 683 kaktus_mc2 { } movieClip 690 penjaga_mati4 { } movieClip 692 penjaga_mati3 { } movieClip 698 penjaga_mati2 { } movieClip 700 penjaga_mati { } movieClip 704 pasar5 { } movieClip 708 pasar4 { } movieClip 711 pasar3 { } movieClip 716 pasar2 { } movieClip 719 pasar6 { } movieClip 721 pasar1 { } movieClip 726 kapal2_mc { } movieClip 731 { } movieClip 732 rakyat6 { } movieClip 738 { } movieClip 739 rakyat5 { } movieClip 744 { } movieClip 745 rakyat4 { } movieClip 752 { } movieClip 753 rakyat3 { } movieClip 759 { } movieClip 760 rakyat2 { } movieClip 767 { } movieClip 768 rakyat1 { } movieClip 772 rumah_mc4 { } movieClip 776 rumah_mc6 { } movieClip 779 { } movieClip 781 { } movieClip 783 { } movieClip 784 bluemount { } movieClip 787 pagar_mc4 { } movieClip 789 pagar_mc3 { } movieClip 792 pagar_mc { } movieClip 794 pagar_mc2 { } movieClip 803 { } movieClip 806 rumput_mc4 { frame 1 { stop(); } } movieClip 813 rumput_mc3 { frame 1 { stop(); } } movieClip 818 rumput_mc7 { frame 1 { stop(); } } movieClip 823 rumput_mc5 { frame 1 { stop(); } } movieClip 828 rumput_mc2 { frame 1 { stop(); } } movieClip 835 naik_mc1 { frame 1 { stop(); } } movieClip 841 rumput_mc6 { frame 1 { stop(); } } movieClip 846 rumput_mc { frame 1 { stop(); } } movieClip 848 bendungan3 { } movieClip 849 gate_mc { } movieClip 850 bendungan_mc { } movieClip 852 bendungan1 { } movieClip 854 bendungan2 { } movieClip 857 gate_mc2 { } movieClip 859 gate_mc1 { } movieClip 864 tembok_mc5 { frame 1 { stop(); } } movieClip 871 tembok_mc2 { frame 1 { stop(); } } movieClip 877 tembok_mc3 { frame 1 { stop(); } } movieClip 882 tembok_mc4 { frame 1 { stop(); } } movieClip 887 tembok_mc { frame 1 { stop(); } } movieClip 894 air_mc2x { frame 1 { stop(); } } movieClip 899 air_mc2 { frame 1 { stop(); } } movieClip 903 jembatan_mc { } movieClip 911 air_mc7 { frame 1 { stop(); } } movieClip 917 air_mc4 { frame 1 { stop(); } } movieClip 923 air_mc6 { frame 1 { stop(); } } movieClip 929 air_mc5 { frame 1 { stop(); } } movieClip 935 air_mc8 { frame 1 { stop(); } } movieClip 941 air_mc3 { frame 1 { stop(); } } movieClip 946 air_mc { frame 1 { stop(); } } movieClip 952 jalan2_mc { frame 1 { stop(); } } movieClip 958 jalan_mc { frame 1 { stop(); } } movieClip 965 { } movieClip 981 { frame 23 { stop(); } } movieClip 982 { frame 1 { stop(); } } movieClip 989 { } movieClip 1006 { frame 23 { stop(); } } movieClip 1007 { frame 1 { stop(); } } movieClip 1012 { } movieClip 1024 { frame 23 { stop(); } } movieClip 1025 { frame 1 { stop(); } } movieClip 1030 { } movieClip 1044 { frame 23 { stop(); } } movieClip 1045 { frame 1 { stop(); } } movieClip 1050 { } movieClip 1065 { frame 23 { stop(); } } movieClip 1066 { frame 1 { stop(); } } movieClip 1067 { frame 1 { stop(); } } movieClip 1082 { frame 23 { stop(); } } movieClip 1083 { frame 1 { stop(); } } movieClip 1098 { frame 23 { stop(); } } movieClip 1099 { frame 1 { stop(); } } movieClip 1100 brave_mc { frame 1 { stop(); } } movieClip 1106 { } movieClip 1111 { } movieClip 1119 { } movieClip 1128 { frame 1 { stop(); } } movieClip 1131 { frame 22 { stop(); } } movieClip 1132 { frame 1 { stop(); } } movieClip 1138 { } movieClip 1143 { } movieClip 1153 { } movieClip 1155 { } movieClip 1156 { } movieClip 1158 { } movieClip 1159 { } movieClip 1161 { } movieClip 1162 { } movieClip 1163 { } movieClip 1171 { frame 1 { stop(); } } movieClip 1174 { frame 22 { stop(); } } movieClip 1175 { frame 1 { stop(); } } movieClip 1180 { } movieClip 1187 { } movieClip 1199 { frame 22 { stop(); } } movieClip 1200 { frame 1 { stop(); } } movieClip 1205 { } movieClip 1212 { } movieClip 1223 { frame 22 { stop(); } } movieClip 1224 { frame 1 { stop(); } } movieClip 1229 { } movieClip 1234 { } movieClip 1248 { frame 22 { stop(); } } movieClip 1249 { frame 1 { stop(); } } movieClip 1250 { frame 1 { stop(); } } movieClip 1259 { frame 22 { stop(); } } movieClip 1260 { frame 1 { stop(); } } movieClip 1269 { frame 22 { stop(); } } movieClip 1270 { frame 1 { stop(); } } movieClip 1271 panther_mc { frame 1 { stop(); } } movieClip 1278 { } movieClip 1283 { } movieClip 1294 { frame 19 { stop(); } } movieClip 1295 { frame 1 { stop(); } } movieClip 1302 { } movieClip 1307 { } movieClip 1319 { frame 19 { stop(); } } movieClip 1320 { frame 1 { stop(); } } movieClip 1327 { } movieClip 1332 { } movieClip 1346 { frame 19 { stop(); } } movieClip 1347 { frame 1 { stop(); } } movieClip 1354 { } movieClip 1357 { } movieClip 1370 { frame 19 { stop(); } } movieClip 1371 { frame 1 { stop(); } } movieClip 1377 { } movieClip 1382 { } movieClip 1394 { frame 19 { stop(); } } movieClip 1395 { frame 1 { stop(); } } movieClip 1402 { } movieClip 1407 { } movieClip 1418 { frame 19 { stop(); } } movieClip 1419 { frame 1 { stop(); } } movieClip 1426 { } movieClip 1431 { } movieClip 1442 { frame 19 { stop(); } } movieClip 1443 { frame 1 { stop(); } } movieClip 1450 { } movieClip 1455 { } movieClip 1466 { frame 19 { stop(); } } movieClip 1467 { frame 1 { stop(); } } movieClip 1468 black_mc { frame 1 { stop(); } } movieClip 1478 { } movieClip 1494 { frame 22 { stop(); } } movieClip 1495 { frame 1 { stop(); } } movieClip 1503 { } movieClip 1517 { frame 22 { stop(); } } movieClip 1518 { frame 1 { stop(); } } movieClip 1527 { } movieClip 1543 { frame 22 { stop(); } } movieClip 1544 { frame 1 { stop(); } } movieClip 1551 { } movieClip 1564 { frame 22 { stop(); } } movieClip 1565 { frame 1 { stop(); } } movieClip 1573 { } movieClip 1589 { frame 22 { stop(); } } movieClip 1590 { frame 1 { stop(); } } movieClip 1597 { } movieClip 1609 { frame 22 { stop(); } } movieClip 1610 { frame 1 { stop(); } } movieClip 1611 { frame 1 { stop(); } } movieClip 1612 { frame 1 { stop(); } } movieClip 1613 lohani_mc { frame 1 { stop(); } } movieClip 1617 { } movieClip 1618 wisatawan_mc { frame 1 { stop(); } } movieClip 1624 { } movieClip 1627 { } movieClip 1638 { frame 22 { stop(); } } movieClip 1639 { frame 1 { stop(); } } movieClip 1645 { } movieClip 1650 { } movieClip 1660 { frame 22 { stop(); } } movieClip 1661 { frame 1 { stop(); } } movieClip 1667 { } movieClip 1673 { } movieClip 1685 { frame 22 { stop(); } } movieClip 1686 { frame 1 { stop(); } } movieClip 1692 { } movieClip 1698 { } movieClip 1707 { frame 22 { stop(); } } movieClip 1708 { frame 1 { stop(); } } movieClip 1715 { } movieClip 1719 { } movieClip 1731 { frame 22 { stop(); } } movieClip 1732 { frame 1 { stop(); } } movieClip 1742 { frame 22 { stop(); } } movieClip 1743 { frame 1 { stop(); } } movieClip 1755 { frame 22 { stop(); } } movieClip 1756 { frame 1 { stop(); } } movieClip 1766 { frame 22 { stop(); } } movieClip 1767 { frame 1 { stop(); } } movieClip 1768 faith_mc { frame 1 { stop(); } } movieClip 1775 { } movieClip 1781 { } movieClip 1793 { frame 21 { stop(); } } movieClip 1794 { frame 1 { stop(); } } movieClip 1801 { } movieClip 1807 { } movieClip 1819 { frame 21 { stop(); } } movieClip 1820 { frame 1 { stop(); } } movieClip 1827 { } movieClip 1833 { } movieClip 1846 { frame 21 { stop(); } } movieClip 1847 { frame 1 { stop(); } } movieClip 1854 { } movieClip 1860 { } movieClip 1872 { frame 21 { stop(); } } movieClip 1873 { frame 1 { stop(); } } movieClip 1879 { } movieClip 1885 { } movieClip 1897 { frame 21 { stop(); } } movieClip 1898 { frame 1 { stop(); } } movieClip 1910 { frame 21 { stop(); } } movieClip 1911 { frame 1 { stop(); } } movieClip 1923 { frame 21 { stop(); } } movieClip 1924 { frame 1 { stop(); } } movieClip 1936 { frame 21 { stop(); } } movieClip 1937 { frame 1 { stop(); } } movieClip 1938 osihir_mc { frame 1 { stop(); } } movieClip 1945 { } movieClip 1951 { } movieClip 1964 { frame 23 { stop(); } } movieClip 1966 { frame 1 { stop(); } } movieClip 1972 { } movieClip 1977 { } movieClip 1987 { frame 23 { stop(); } } movieClip 1988 { frame 1 { stop(); } } movieClip 1994 { } movieClip 2000 { } movieClip 2012 { frame 23 { stop(); } } movieClip 2013 { frame 1 { stop(); } } movieClip 2020 { } movieClip 2027 { } movieClip 2038 { frame 23 { stop(); } } movieClip 2039 { frame 1 { stop(); } } movieClip 2045 { } movieClip 2051 { } movieClip 2062 { frame 23 { stop(); } } movieClip 2063 { frame 1 { stop(); } } movieClip 2064 { frame 1 { stop(); } } movieClip 2065 { frame 1 { stop(); } } movieClip 2074 { frame 23 { stop(); } } movieClip 2075 { frame 1 { stop(); } } movieClip 2076 domo_mc { frame 1 { stop(); } } movieClip 2089 { } movieClip 2090 { } movieClip 2091 { } movieClip 2092 { } movieClip 2093 { } movieClip 2094 { } movieClip 2096 { } movieClip 2097 { } movieClip 2099 { } movieClip 2101 { } movieClip 2103 { } movieClip 2105 { } movieClip 2107 { } movieClip 2108 { } movieClip 2110 { } movieClip 2111 { } movieClip 2112 { } movieClip 2113 { } movieClip 2114 { frame 38 { stop(); } } movieClip 2123 { frame 16 { stop(); } } movieClip 2124 { frame 1 { stop(); } } movieClip 2138 { } movieClip 2149 { frame 16 { stop(); } } movieClip 2150 { frame 1 { stop(); } } movieClip 2162 { } movieClip 2170 { frame 16 { stop(); } } movieClip 2171 { frame 1 { stop(); } } movieClip 2183 { } movieClip 2194 { frame 16 { stop(); } } movieClip 2195 { frame 1 { stop(); } } movieClip 2204 { } movieClip 2215 { frame 16 { stop(); } } movieClip 2216 { frame 1 { stop(); } } movieClip 2221 { } movieClip 2231 { frame 16 { stop(); } } movieClip 2232 { frame 1 { stop(); } } movieClip 2233 dark_mc { frame 1 { stop(); } } movieClip 2239 { } movieClip 2245 { } movieClip 2261 { frame 23 { stop(); } } movieClip 2262 { frame 1 { stop(); } } movieClip 2268 { } movieClip 2274 { } movieClip 2285 { frame 23 { stop(); } } movieClip 2286 { frame 1 { stop(); } } movieClip 2293 { } movieClip 2298 { } movieClip 2305 { } movieClip 2313 { frame 23 { stop(); } } movieClip 2314 { frame 1 { stop(); } } movieClip 2321 { } movieClip 2327 { } movieClip 2340 { frame 23 { stop(); } } movieClip 2341 { frame 1 { stop(); } } movieClip 2347 { } movieClip 2352 { } movieClip 2365 { frame 23 { stop(); } } movieClip 2366 { frame 1 { stop(); } } movieClip 2367 { frame 1 { stop(); } } movieClip 2381 { frame 23 { stop(); } } movieClip 2382 { frame 1 { stop(); } } movieClip 2392 { frame 23 { stop(); } } movieClip 2393 { frame 1 { stop(); } } movieClip 2394 deja_mc { frame 1 { stop(); } } movieClip 2397 { } movieClip 2402 { } movieClip 2409 { frame 20 { stop(); } } movieClip 2411 { frame 1 { stop(); } } movieClip 2418 { } movieClip 2423 { } movieClip 2433 { frame 20 { stop(); } } movieClip 2434 { frame 1 { stop(); } } movieClip 2441 { } movieClip 2446 { } movieClip 2456 { frame 20 { stop(); } } movieClip 2458 { frame 1 { stop(); } } movieClip 2465 { } movieClip 2470 { } movieClip 2480 { frame 20 { stop(); } } movieClip 2482 { frame 1 { stop(); } } movieClip 2489 { } movieClip 2494 { } movieClip 2501 { frame 20 { stop(); } } movieClip 2503 { frame 1 { stop(); } } movieClip 2510 { frame 20 { stop(); } } movieClip 2512 { frame 1 { stop(); } } movieClip 2519 { frame 20 { stop(); } } movieClip 2520 { frame 1 { stop(); } } movieClip 2527 { frame 20 { stop(); } } movieClip 2529 { frame 1 { stop(); } } movieClip 2530 iblis_mc { frame 1 { stop(); } } movieClip 2537 { } movieClip 2543 { } movieClip 2547 { } movieClip 2557 { frame 22 { stop(); } } movieClip 2558 { frame 1 { stop(); } } movieClip 2565 { } movieClip 2571 { } movieClip 2583 { frame 22 { stop(); } } movieClip 2584 { frame 1 { stop(); } } movieClip 2591 { } movieClip 2596 { } movieClip 2607 { frame 22 { stop(); } } movieClip 2608 { frame 1 { stop(); } } movieClip 2615 { } movieClip 2620 { } movieClip 2631 { frame 22 { stop(); } } movieClip 2632 { frame 1 { stop(); } } movieClip 2638 { } movieClip 2644 { } movieClip 2655 { frame 22 { stop(); } } movieClip 2656 { frame 1 { stop(); } } movieClip 2657 { frame 1 { stop(); } } movieClip 2658 { frame 1 { stop(); } } movieClip 2669 { frame 22 { stop(); } } movieClip 2670 { frame 1 { stop(); } } movieClip 2671 oudara_mc { frame 1 { stop(); } } movieClip 2678 { } movieClip 2684 { } movieClip 2694 { frame 20 { stop(); } } movieClip 2696 { frame 1 { stop(); } } movieClip 2703 { } movieClip 2709 { } movieClip 2721 { frame 20 { stop(); } } movieClip 2722 { frame 1 { stop(); } } movieClip 2729 { } movieClip 2735 { } movieClip 2745 { frame 20 { stop(); } } movieClip 2746 { frame 1 { stop(); } } movieClip 2753 { } movieClip 2759 { } movieClip 2768 { frame 20 { stop(); } } movieClip 2769 { frame 1 { stop(); } } movieClip 2775 { } movieClip 2781 { } movieClip 2790 { frame 20 { stop(); } } movieClip 2791 { frame 1 { stop(); } } movieClip 2792 { frame 1 { stop(); } } movieClip 2801 { frame 20 { stop(); } } movieClip 2802 { frame 1 { stop(); } } movieClip 2812 { frame 20 { stop(); } } movieClip 2813 { frame 1 { stop(); } } movieClip 2814 olaut_mc { frame 1 { stop(); } } movieClip 2821 { } movieClip 2827 { } movieClip 2838 { frame 19 { stop(); } } movieClip 2839 { frame 1 { stop(); } } movieClip 2846 { } movieClip 2852 { } movieClip 2862 { frame 19 { stop(); } } movieClip 2863 { frame 1 { stop(); } } movieClip 2870 { } movieClip 2876 { } movieClip 2888 { frame 19 { stop(); } } movieClip 2889 { frame 1 { stop(); } } movieClip 2894 { } movieClip 2900 { } movieClip 2911 { frame 19 { stop(); } } movieClip 2912 { frame 1 { stop(); } } movieClip 2918 { } movieClip 2924 { } movieClip 2935 { frame 19 { stop(); } } movieClip 2936 { frame 1 { stop(); } } movieClip 2945 { frame 19 { stop(); } } movieClip 2946 { frame 1 { stop(); } } movieClip 2956 { frame 19 { stop(); } } movieClip 2957 { frame 1 { stop(); } } movieClip 2964 { frame 19 { stop(); } } movieClip 2965 { frame 1 { stop(); } } movieClip 2966 odarat_mc { frame 1 { stop(); } } movieClip 2973 { } movieClip 2978 { } movieClip 2988 { frame 19 { stop(); } } movieClip 2989 { frame 1 { stop(); } } movieClip 2996 { } movieClip 3001 { } movieClip 3010 { frame 19 { stop(); } } movieClip 3011 { frame 1 { stop(); } } movieClip 3018 { } movieClip 3023 { } movieClip 3033 { frame 19 { stop(); } } movieClip 3034 { frame 1 { stop(); } } movieClip 3041 { } movieClip 3046 { } movieClip 3056 { frame 19 { stop(); } } movieClip 3057 { frame 1 { stop(); } } movieClip 3063 { } movieClip 3068 { } movieClip 3078 { frame 19 { stop(); } } movieClip 3079 { frame 1 { stop(); } } movieClip 3088 { frame 19 { stop(); } } movieClip 3089 { frame 1 { stop(); } } movieClip 3098 { frame 19 { stop(); } } movieClip 3099 { frame 1 { stop(); } } movieClip 3108 { frame 19 { stop(); } } movieClip 3109 { frame 1 { stop(); } } movieClip 3110 guild_mc { frame 1 { stop(); } } movieClip 3111 panther_diem { } movieClip 3119 { } movieClip 3122 { } movieClip 3132 { frame 22 { stop(); gotoAndStop(_parent); } } movieClip 3133 { frame 1 { stop(); } } movieClip 3140 { } movieClip 3143 { } movieClip 3153 { frame 22 { stop(); gotoAndStop(_parent); } } movieClip 3154 { frame 1 { stop(); } } movieClip 3161 { } movieClip 3166 { } movieClip 3177 { frame 22 { stop(); gotoAndStop(_parent); } } movieClip 3178 { frame 1 { stop(); } } movieClip 3185 { } movieClip 3190 { } movieClip 3201 { frame 22 { stop(); gotoAndStop(_parent); } } movieClip 3202 { frame 1 { stop(); } } movieClip 3208 { } movieClip 3213 { } movieClip 3223 { frame 22 { stop(); gotoAndStop(_parent); } } movieClip 3224 { frame 1 { stop(); } } movieClip 3233 { frame 22 { stop(); gotoAndStop(_parent); } } movieClip 3234 { frame 1 { stop(); } } movieClip 3243 { frame 22 { stop(); gotoAndStop(_parent); } } movieClip 3244 { frame 1 { stop(); } } movieClip 3253 { frame 22 { stop(); gotoAndStop(_parent); } } movieClip 3254 { frame 1 { stop(); } } movieClip 3255 devy_mc { frame 1 { stop(); } } movieClip 3263 { } movieClip 3270 { } movieClip 3280 { frame 20 { stop(); } } movieClip 3281 { frame 1 { stop(); } } movieClip 3285 { } movieClip 3292 { } movieClip 3303 { frame 20 { stop(); } } movieClip 3304 { frame 1 { stop(); } } movieClip 3312 { } movieClip 3319 { } movieClip 3330 { frame 20 { stop(); } } movieClip 3331 { frame 1 { stop(); } } movieClip 3336 { } movieClip 3343 { } movieClip 3354 { frame 20 { stop(); } } movieClip 3355 { frame 1 { stop(); } } movieClip 3362 { } movieClip 3368 { } movieClip 3379 { frame 20 { stop(); } } movieClip 3380 { frame 1 { stop(); } } movieClip 3381 { frame 1 { stop(); } } movieClip 3382 { frame 1 { stop(); } } movieClip 3392 { frame 20 { stop(); } } movieClip 3393 { frame 1 { stop(); } } movieClip 3394 brunhill_mc2 { frame 1 { stop(); } } movieClip 3395 brunhill_mc { frame 1 { stop(); } } movieClip 3402 { } movieClip 3408 { } movieClip 3421 { frame 28 { stop(); } } movieClip 3422 { frame 1 { stop(); } } movieClip 3431 { } movieClip 3440 { frame 28 { stop(); } } movieClip 3441 { frame 1 { stop(); } } movieClip 3448 { } movieClip 3453 { } movieClip 3456 { } movieClip 3465 { frame 28 { stop(); } } movieClip 3466 { frame 1 { stop(); } } movieClip 3473 { } movieClip 3478 { } movieClip 3488 { frame 28 { stop(); } } movieClip 3489 { frame 1 { stop(); } } movieClip 3495 { } movieClip 3501 { } movieClip 3511 { frame 28 { stop(); } } movieClip 3512 { frame 1 { stop(); } } movieClip 3516 { } movieClip 3519 { } movieClip 3528 { frame 28 { stop(); } } movieClip 3529 { frame 1 { stop(); } } movieClip 3533 { } movieClip 3537 { } movieClip 3547 { frame 28 { stop(); } } movieClip 3548 { frame 1 { stop(); } } movieClip 3553 { } movieClip 3557 { } movieClip 3568 { frame 28 { stop(); } } movieClip 3569 { frame 1 { stop(); } } movieClip 3570 berthi_mc { frame 1 { stop(); } } movieClip 3576 { } movieClip 3579 { } movieClip 3591 { frame 28 { stop(); } } movieClip 3592 { frame 1 { stop(); } } movieClip 3598 { } movieClip 3601 { } movieClip 3610 { frame 28 { stop(); } } movieClip 3611 { frame 1 { stop(); } } movieClip 3617 { } movieClip 3620 { } movieClip 3627 { frame 28 { stop(); } } movieClip 3628 { frame 1 { stop(); } } movieClip 3634 { } movieClip 3637 { } movieClip 3646 { frame 28 { stop(); } } movieClip 3647 { frame 1 { stop(); } } movieClip 3652 { } movieClip 3655 { } movieClip 3665 { frame 28 { stop(); } } movieClip 3666 { frame 1 { stop(); } } movieClip 3670 { } movieClip 3673 { } movieClip 3682 { frame 28 { stop(); } } movieClip 3683 { frame 1 { stop(); } } movieClip 3687 { } movieClip 3690 { } movieClip 3697 { frame 28 { stop(); } } movieClip 3698 { frame 1 { stop(); } } movieClip 3702 { } movieClip 3705 { } movieClip 3716 { frame 28 { stop(); } } movieClip 3717 { frame 1 { stop(); } } movieClip 3718 bertha_mc { frame 1 { stop(); } } movieClip 3726 { } movieClip 3730 { } movieClip 3739 { frame 23 { stop(); } } movieClip 3741 { frame 1 { stop(); } } movieClip 3748 { } movieClip 3752 { } movieClip 3761 { frame 23 { stop(); } } movieClip 3762 { frame 1 { stop(); } } movieClip 3770 { } movieClip 3774 { } movieClip 3782 { frame 23 { stop(); } } movieClip 3783 { frame 1 { stop(); } } movieClip 3791 { } movieClip 3795 { } movieClip 3803 { frame 23 { stop(); } } movieClip 3804 { frame 1 { stop(); } } movieClip 3811 { } movieClip 3815 { } movieClip 3824 { frame 23 { stop(); } } movieClip 3825 { frame 1 { stop(); } } movieClip 3832 { } movieClip 3835 { } movieClip 3843 { frame 23 { stop(); } } movieClip 3844 { frame 1 { stop(); } } movieClip 3850 { } movieClip 3854 { } movieClip 3863 { frame 23 { stop(); } } movieClip 3864 { frame 1 { stop(); } } movieClip 3870 { } movieClip 3873 { } movieClip 3882 { frame 23 { stop(); } } movieClip 3883 { frame 1 { stop(); } } movieClip 3884 andara_mc { frame 1 { stop(); } } movieClip 3892 { } movieClip 3899 { } movieClip 3907 { frame 20 { stop(); } } movieClip 3908 { frame 1 { stop(); } } movieClip 3916 { } movieClip 3923 { } movieClip 3933 { frame 20 { stop(); } } movieClip 3934 { frame 1 { stop(); } } movieClip 3942 { } movieClip 3949 { } movieClip 3959 { frame 20 { stop(); } } movieClip 3960 { frame 1 { stop(); } } movieClip 3968 { } movieClip 3975 { } movieClip 3985 { frame 20 { stop(); } } movieClip 3986 { frame 1 { stop(); } } movieClip 3993 { } movieClip 4000 { } movieClip 4010 { frame 20 { stop(); } } movieClip 4011 { frame 1 { stop(); } } movieClip 4012 mah_mc { frame 1 { stop(); } } movieClip 4019 { } movieClip 4022 { } movieClip 4029 { frame 20 { stop(); } } movieClip 4030 { frame 1 { stop(); } } movieClip 4036 { } movieClip 4041 { } movieClip 4049 { frame 20 { stop(); } } movieClip 4050 { frame 1 { stop(); } } movieClip 4056 { } movieClip 4061 { } movieClip 4070 { frame 20 { stop(); } } movieClip 4071 { frame 1 { stop(); } } movieClip 4077 { } movieClip 4082 { } movieClip 4091 { frame 20 { stop(); } } movieClip 4092 { frame 1 { stop(); } } movieClip 4097 { } movieClip 4102 { } movieClip 4110 { frame 20 { stop(); } } movieClip 4111 { frame 1 { stop(); } } movieClip 4121 { frame 20 { stop(); } } movieClip 4122 { frame 1 { stop(); } } movieClip 4123 { frame 1 { stop(); } } movieClip 4124 { frame 1 { stop(); } } movieClip 4125 elite_mc { frame 1 { stop(); } } movieClip 4132 { } movieClip 4137 { } movieClip 4150 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4164 { frame 20 { stop(); _parent.gotoAndStop(1); } } movieClip 4179 { frame 25 { stop(); _parent.gotoAndStop(1); } } movieClip 4187 { frame 1 { stop(); } } movieClip 4192 { } movieClip 4199 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4200 { frame 1 { stop(); } } movieClip 4207 { } movieClip 4213 { } movieClip 4224 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4239 { frame 20 { stop(); _parent.gotoAndStop(1); } } movieClip 4249 { frame 23 { stop(); _parent.gotoAndStop(1); } } movieClip 4262 { frame 1 { stop(); } } movieClip 4263 { frame 19 { stop(); _parent.gotoAndStop(1); } } movieClip 4264 { frame 1 { stop(); } } movieClip 4271 { } movieClip 4276 { } movieClip 4290 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4308 { frame 20 { stop(); _parent.gotoAndStop(1); } } movieClip 4323 { frame 25 { stop(); _parent.gotoAndStop(1); } } movieClip 4329 { frame 1 { stop(); } } movieClip 4347 { frame 1 { stop(); } } movieClip 4348 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4349 { frame 1 { stop(); } } movieClip 4358 { } movieClip 4364 { } movieClip 4378 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4394 { frame 20 { stop(); _parent.gotoAndStop(1); } } movieClip 4410 { frame 25 { stop(); _parent.gotoAndStop(1); } } movieClip 4423 { frame 1 { stop(); } } movieClip 4424 { frame 19 { stop(); _parent.gotoAndStop(1); } } movieClip 4425 { frame 1 { stop(); } } movieClip 4433 { } movieClip 4439 { } movieClip 4453 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4469 { frame 20 { stop(); _parent.gotoAndStop(1); } } movieClip 4487 { frame 25 { stop(); _parent.gotoAndStop(1); } } movieClip 4500 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4501 { frame 1 { stop(); } } movieClip 4514 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4526 { frame 20 { stop(); _parent.gotoAndStop(1); } } movieClip 4535 { frame 24 { stop(); _parent.gotoAndStop(1); } } movieClip 4544 { frame 19 { stop(); _parent.gotoAndStop(1); } } movieClip 4545 { frame 1 { stop(); } } movieClip 4558 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4571 { frame 20 { stop(); _parent.gotoAndStop(1); } } movieClip 4587 { frame 25 { stop(); _parent.gotoAndStop(1); } } movieClip 4594 { frame 1 { stop(); } } movieClip 4602 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4603 { frame 1 { stop(); } } movieClip 4613 { frame 22 { stop(); _parent.gotoAndStop(1); } } movieClip 4625 { frame 20 { stop(); _parent.gotoAndStop(1); } } movieClip 4634 { frame 24 { stop(); _parent.gotoAndStop(1); } } movieClip 4644 { frame 1 { stop(); } } movieClip 4647 { frame 19 { stop(); _parent.gotoAndStop(1); } } movieClip 4648 { frame 1 { stop(); } } movieClip 4649 david_mc { frame 1 { stop(); } } movieClip 4656 { } movieClip 4669 { } movieClip 4672 actions_mc { frame 1 { stop(); } } movieClip 4679 angka_mc { frame 50 { stop(); removeMovieClip(this); } } movieClip 4702 msgBox_mc3 { frame 1 { stop(); } } movieClip 4706 info_mc2 { } movieClip 4709 info_mc { frame 1 { stop(); } frame 10 { stop(); attack = _root.namaSerangan; } frame 20 { gotoAndStop(1); } } movieClip 4711 master_mc { frame 15 { stop(); } } movieClip 4713 strike_mc { frame 15 { stop(); } } movieClip 4715 poison_mc { frame 10 { stop(); } } movieClip 4718 uncontrol_mc { frame 15 { stop(); } } movieClip 4720 slow_mc { frame 15 { stop(); } } movieClip 4722 stun_mc { frame 15 { stop(); } } movieClip 4735 failed_mc { frame 1 { stop(); } } movieClip 4753 { frame 1 { stop(); } } movieClip 4754 { } movieClip 4757 { } movieClip 4766 { frame 1 { stop(); } } movieClip 4771 { frame 1 { stop(); } } movieClip 4772 completed_mc { frame 1 { stop(); } } movieClip 4795 objective_mc { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 20 { stop(); } } movieClip 4797 trans_mc2 { frame 1 { stop(); } frame 60 { _root.aturSaja(); } frame 70 { stop(); } } movieClip 4798 trans_mc { frame 1 { stop(); } frame 7 { _root.aturSaja(); } frame 13 { stop(); } } movieClip 4801 flame_mc2 { frame 7 { removeMovieClip(this); } } movieClip 4806 { frame 1 { stop(); } } movieClip 4809 { } movieClip 4811 { } movieClip 4813 { } movieClip 4815 { } movieClip 4816 { } movieClip 4819 { } movieClip 4825 { } movieClip 4826 { frame 1 { stop(); } } movieClip 4835 { } movieClip 4861 { frame 1 { stop(); } } movieClip 4963 { } movieClip 4970 { } movieClip 4980 { frame 1 { stop(); } } movieClip 4993 { frame 1 { stop(); } } movieClip 5001 { } movieClip 5003 { } movieClip 5005 { } movieClip 5007 { } movieClip 5008 status_mc { frame 1 { function overBox() { _root.over(); this.gotoAndStop(2); } function outBox() { this.gotoAndStop(1); } function klikBox() { _root.klik(); myStr = new String(this); _root.lihatChara = 'jagoan'; _root.indiPilih = Number(myStr.substr(myStr.length - 5, 1)); gotoAndStop('detail'); } stop(); quit_btn.onRollOver = function () { _root.over(); }; quit_btn.onRelease = function () { _root.klik(); removeMovieClip(_root.status_mc); _root.xcekKemana(); }; i = 1; while (i <= 11) { if (i <= _root.bykKarakter) { this['chara' + i].gotoAndStop(1); this['chara' + i].pala_mc.gotoAndStop(_root.jenisChara[i - 1]); this['chara' + i].race_mc.gotoAndStop(_root.jenisRace[i - 1] + 1); this['chara' + i].element_mc.gotoAndStop(_root.elementJagoan[i - 1] + 1); this['chara' + i].exp = 'Exp ' + _root.expJagoan[i - 1] + '/' + _root.maxJagoan[i - 1]; this['chara' + i].level = 'Level ' + _root.levelJagoan[i - 1]; this['chara' + i].live = 'Live ' + _root.liveJagoan[i - 1] + '/' + _root.totLiveJagoan[i - 1]; this['chara' + i].nama = _root.namaJagoan[i - 1]; this['chara' + i].box.onRollOver = overBox; this['chara' + i].box.onRollOut = outBox; this['chara' + i].box.onRelease = klikBox; } else { this['chara' + i].gotoAndStop(2); } ++i; } } frame 2 { function ubahSemua(i) { if (_root.lihatChara == 'jagoan') { stun_mc._visible = false; poison_mc._visible = false; uncontrol_mc._visible = false; slow_mc._visible = false; if (_root.stunJagoan[i - 1] == true) { stun_mc._visible = true; } if (_root.poisonJagoan[i - 1] == true) { poison_mc._visible = true; } if (_root.uncontrolJagoan[i - 1] == true) { uncontrol_mc._visible = true; } if (_root.slowJagoan[i - 1] == true) { slow_mc._visible = true; } full_mc.gotoAndStop(_root.jenisChara[i - 1]); race_mc.gotoAndStop(_root.jenisRace[i - 1] + 1); element_mc.gotoAndStop(_root.elementJagoan[i - 1] + 1); nama = _root.namaJagoan[i - 1]; xelement = 'Element: ' + _root.element[_root.elementJagoan[i - 1]]; place = 'Birthplace: ' + _root.jagoanPlace[i - 1]; if (_root.agePlace[i - 1] == 0) { age = 'Age: ' + _root.agePlace[i - 1]; } else { age = 'Age: ' + _root.agePlace[i - 1] + ' Years Old'; } race = 'Race: ' + _root.theRace[_root.jenisRace[i - 1]]; rank = 'Rank: ' + _root.rankJagoan[i - 1]; scala1 = (_root.liveJagoan[i - 1] / _root.totLiveJagoan[i - 1]) * 100; scala2 = (_root.auraJagoan[i - 1] / _root.totAuraJagoan[i - 1]) * 100; darah_mc.zbar._xscale = scala1; aura_mc.zbar._xscale = scala2; exp = 'Exp ' + _root.expJagoan[i - 1] + '/' + _root.maxJagoan[i - 1]; level = 'Level ' + _root.levelJagoan[i - 1]; live = 'Live ' + _root.liveJagoan[i - 1] + '/' + _root.totLiveJagoan[i - 1]; attack = 'Attack ' + _root.attackJagoan[i - 1]; defense = 'Defense ' + _root.defenseJagoan[i - 1]; aura = 'Aura ' + _root.auraJagoan[i - 1] + '/' + _root.totAuraJagoan[i - 1]; range = 'Range ' + _root.serangJagoan[i - 1]; xmove = 'Move ' + _root.xrangeJagoan[i - 1]; accuracy = 'Accuracy ' + _root.accuracyJagoan[i - 1] + ' %'; speed = 'Speed ' + _root.speedJagoan[i - 1]; z = 1; while (z <= 10) { abil = _root.jenisAbility[_root.abilityJagoan[i - 1][z]]; if (abil == undefined) { this['xicon' + z]._visible = false; if (z == 10) { this['ability' + z] = z + '.' + _root.jenisAbility[0]; } else { this['ability' + z] = z + '. ' + _root.jenisAbility[0]; } } else { if (abil == 'Empty') { this['xicon' + z]._visible = false; } else { this['xicon' + z]._visible = true; this['xicon' + z].gotoAndStop(_root.abilityJagoan[i - 1][z]); } if (z == 10) { this['ability' + z] = z + '.' + abil; } else { this['ability' + z] = z + '. ' + abil; } } ++z; } z = 1; while (z <= 5) { abil = _root.jenisItem[_root.itemJagoan[i - 1][z]]; if (abil == undefined) { this['yicon' + z]._visible = false; this['item' + z] = z + '. ' + _root.jenisItem[0]; } else { this['yicon' + z]._visible = true; this['yicon' + z].gotoAndStop(100 + _root.itemJagoan[i - 1][z]); if (abil == 'Empty') { this['yicon' + z]._visible = false; this['item' + z] = z + '. ' + abil; } else { this['item' + z] = z + '. ' + abil + ' (x' + _root.punyaItem[_root.itemJagoan[i - 1][z]] + ')'; } } ++z; } weapon = _root.jenisWeapon[_root.jagoanWeapon[i - 1]]; if (weapon == 'Empty') { this.zicon._visible = false; } else { this.zicon._visible = true; this.zicon.gotoAndStop(200 + _root.jagoanWeapon[i - 1]); } } else { if (_root.lihatChara == 'musuh') { stun_mc._visible = false; poison_mc._visible = false; uncontrol_mc._visible = false; slow_mc._visible = false; if (_root.stunMusuh[i - 1] == true) { stun_mc._visible = true; } if (_root.poisonMusuh[i - 1] == true) { poison_mc._visible = true; } if (_root.uncontrolMusuh[i - 1] == true) { uncontrol_mc._visible = true; } if (_root.slowMusuh[i - 1] == true) { slow_mc._visible = true; } full_mc.gotoAndStop(_root.jenisMusuh[i - 1]); race_mc.gotoAndStop(_root.xjenisRace[i - 1] + 1); element_mc.gotoAndStop(_root.elementMusuh[i - 1] + 1); nama = _root.namaMusuh[i - 1]; xelement = 'Element: ' + _root.element[_root.elementMusuh[i - 1]]; place = 'Birthplace: ' + _root.musuhPlace[i - 1]; if (_root.xagePlace[i - 1] == 0) { age = 'Age: ' + _root.xagePlace[i - 1]; } else { age = 'Age: ' + _root.xagePlace[i - 1] + ' Years Old'; } race = 'Race: ' + _root.theRace[_root.xjenisRace[i - 1]]; rank = 'Rank: ' + _root.rankMusuh[i - 1]; scala1 = (_root.liveMusuh[i - 1] / _root.totLiveMusuh[i - 1]) * 100; scala2 = (_root.auraMusuh[i - 1] / _root.totAuraMusuh[i - 1]) * 100; darah_mc.zbar._xscale = scala1; aura_mc.zbar._xscale = scala2; exp = 'Exp ' + _root.expMusuh[i - 1] + '/' + _root.maxMusuh[i - 1]; level = 'Level ' + _root.levelMusuh[i - 1]; live = 'Live ' + _root.liveMusuh[i - 1] + '/' + _root.totLiveMusuh[i - 1]; attack = 'Attack ' + _root.attackMusuh[i - 1]; defense = 'Defense ' + _root.defenseMusuh[i - 1]; aura = 'Aura ' + _root.auraMusuh[i - 1] + '/' + _root.totAuraMusuh[i - 1]; range = 'Range ' + _root.serangMusuh[i - 1]; xmove = 'Move ' + _root.rangeMusuh[i - 1]; accuracy = 'Accuracy ' + _root.accuracyMusuh[i - 1] + ' %'; speed = 'Speed ' + _root.speedMusuh[i - 1]; z = 1; while (z <= 10) { abil = _root.jenisAbility[_root.abilityMusuh[i - 1][z]]; if (abil == undefined) { this['xicon' + z]._visible = false; if (z == 10) { this['ability' + z] = z + '.' + _root.jenisAbility[0]; } else { this['ability' + z] = z + '. ' + _root.jenisAbility[0]; } } else { if (abil == 'Empty') { this['xicon' + z]._visible = false; } else { this['xicon' + z]._visible = true; this['xicon' + z].gotoAndStop(_root.abilityMusuh[i - 1][z]); } if (z == 10) { this['ability' + z] = z + '.' + abil; } else { this['ability' + z] = z + '. ' + abil; } } ++z; } z = 1; while (z <= 5) { abil = _root.jenisItem[_root.itemMusuh[i - 1][z]]; if (abil == undefined) { this['yicon' + z]._visible = false; this['item' + z] = z + '. ' + _root.jenisItem[0]; } else { this['yicon' + z]._visible = true; this['yicon' + z].gotoAndStop(100 + _root.itemMusuh[i - 1][z]); if (abil == 'Empty') { this['yicon' + z]._visible = false; this['item' + z] = z + '. ' + abil; } else { this['item' + z] = z + '. ' + abil + ' (x' + _root.xpunyaItem[i - 1][_root.itemMusuh[i - 1][z]] + ')'; } } ++z; } weapon = _root.musuhWeapon[i - 1]; if (weapon == 'Empty') { this.zicon._visible = false; } else { z = 0; while (z <= _root.jenisWeapon.length) { if (_root.jenisWeapon[z] == _root.musuhWeapon[i - 1]) { this.zicon._visible = true; this.zicon.gotoAndStop(200 + z); } ++z; } } } } } function klikSpell() { _root.klik(); xmyStr = new String(this); if (xmyStr.length == 26) { xindi = Number(xmyStr.substr(xmyStr.length - 1, 1)); } else { xindi = Number(xmyStr.substr(xmyStr.length - 2, 2)); } _root.munculChangeSpell(xindi, _root.indiPilih); back_btn.enabled = false; } function klikItem() { _root.klik(); xmyStr = new String(this); if (xmyStr.length == 26) { xindi = Number(xmyStr.substr(xmyStr.length - 1, 1)); } else { xindi = Number(xmyStr.substr(xmyStr.length - 2, 2)); } _root.munculChangeItem(xindi, _root.indiPilih); back_btn.enabled = false; } function klikWeapon() { _root.klik(); _root.munculChangeWeapon(_root.indiPilih); back_btn.enabled = false; } function overChange() { _root.over(); myStr = new String(this); if (myStr.length == 26) { _root.pilihAbil = Number(myStr.substr(myStr.length - 1, 1)); } else { _root.pilihAbil = Number(myStr.substr(myStr.length - 2, 2)); } jedaInfo2 = 0; adaJedaInfo = true; info2.nama = ''; info2.informasi = ''; jenisOver = 'attack'; } function overChange2() { _root.over(); myStr = new String(this); _root.pilihAbil = Number(myStr.substr(myStr.length - 1, 1)); jedaInfo2 = 0; adaJedaInfo = true; info2.nama = ''; info2.informasi = ''; jenisOver = 'item'; } function overChange3() { _root.over(); myStr = new String(this); _root.pilihAbil = Number(myStr.substr(myStr.length - 1, 1)); jedaInfo2 = 0; adaJedaInfo = true; info2.nama = ''; info2.informasi = ''; jenisOver = 'weapon'; } function outChange() { adaJedaInfo = false; info2.nama = ''; info2.informasi = ''; info2._visible = false; info2._alpha = 0; } function enterInfo2() { if (adaJedaInfo == true) { ++jedaInfo2; if (jedaInfo2 >= 10) { info2._visible = true; if (info2._alpha <= 100) { info2._alpha += 30; } } } else { info2._visible = false; } if (_root._ymouse >= 500) { info2._x = _root._xmouse - 500; info2._y = _root._ymouse - 400; } else { info2._x = _root._xmouse - 500; info2._y = _root._ymouse - 300; } if (jenisOver == 'attack') { info2.nama = _root.jenisAbility[_root.abilityJagoan[_root.indiPilih - 1][_root.pilihAbil]]; xinfo = _root.infoAbility[_root.abilityJagoan[_root.indiPilih - 1][_root.pilihAbil]]; info2.informasi = 'Element ' + _root.element[_root.elementAbility[_root.abilityJagoan[_root.indiPilih - 1][_root.pilihAbil]]] + ' \n Need ' + _root.auraAbility[_root.abilityJagoan[_root.indiPilih - 1][_root.pilihAbil]] + ' Aura \n\n ' + xinfo; if (xinfo == '' || xinfo == undefined) { info2.nama = 'Empty'; info2.informasi = 'Empty'; } } else { if (jenisOver == 'item') { info2.nama = _root.jenisItem[_root.itemJagoan[_root.indiPilih - 1][_root.pilihAbil]]; info2.informasi = _root.infoItem[_root.itemJagoan[_root.indiPilih - 1][_root.pilihAbil]]; if (info2.nama == '' || info2.nama == undefined) { info2.nama = 'Empty'; info2.informasi = 'Empty'; } } else { if (jenisOver == 'weapon') { info2.nama = _root.jenisWeapon[_root.jagoanWeapon[_root.indiPilih - 1]]; info2.informasi = _root.infoWeapon[_root.jagoanWeapon[_root.indiPilih - 1]]; if (info2.nama == '' || info2.nama == undefined) { info2.nama = 'Empty'; info2.informasi = 'Empty'; } } } } } stop(); if (_root.jenisLihat == 'peta') { empty_btn._visible = true; fill_btn._visible = true; } else { empty_btn._visible = false; fill_btn._visible = false; } back_btn.onRollOver = function () { _root.over(); }; back_btn.onRelease = function () { _root.klik(); if (_root.jenisLihat == 'peta') { gotoAndStop('kotak'); } else { if (_root.jenisLihat == 'main') { _root.bisaTombolAction(true); _root.deleteMusuh2(false); _root.xpause = false; removeMovieClip(_root.status_mc); } } }; empty_btn.onRollOver = function () { _root.over(); }; empty_btn.onRelease = function () { _root.klik(); z = 2; while (z <= 10) { _root.abilityJagoan[_root.indiPilih - 1][z] = 0; ++z; } z = 1; while (z <= 5) { _root.itemJagoan[_root.indiPilih - 1][z] = 0; ++z; } _root.status_mc.ubahSemua(_root.indiPilih); }; fill_btn.onRollOver = function () { _root.over(); }; fill_btn.onRelease = function () { _root.klik(); z = 2; while (z <= 10) { _root.abilityJagoan[_root.indiPilih - 1][z] = 0; ++z; } z = 1; while (z <= 5) { _root.itemJagoan[_root.indiPilih - 1][z] = 0; ++z; } _root.arrayAbil = new Array(); _root.AbilKe = 0; w = 2; while (w <= _root.jenisAbility.length - 1) { if (_root.punyaAbility[w] == 1) { _root.arrayAbil[_root.AbilKe] = w; ++_root.AbilKe; } ++w; } _root.abilJago = 2; w = 0; while (w <= _root.AbilKe - 1) { if (w <= 9) { _root.abilityJagoan[_root.indiPilih - 1][_root.abilJago] = _root.arrayAbil[w]; ++_root.abilJago; } ++w; } _root.arrayItem = new Array(); _root.ItemKe = 0; w = 1; while (w <= _root.jenisItem.length - 1) { if (_root.punyaItem[w] >= 1) { _root.arrayItem[_root.ItemKe] = w; ++_root.ItemKe; } ++w; } _root.itemJago = 1; w = 0; while (w <= _root.ItemKe - 1) { if (w <= 4) { _root.itemJagoan[_root.indiPilih - 1][_root.itemJago] = _root.arrayItem[w]; ++_root.itemJago; } ++w; } _root.status_mc.ubahSemua(_root.indiPilih); }; ubahSemua(_root.indiPilih); if (_root.jenisLihat == 'peta') { i = 1; while (i <= 10) { this['xchange' + i]._visible = true; this['xchange' + i].onRelease = klikSpell; this['xchange' + i].onRollOver = overChange; this['xchange' + i].onRollOut = outChange; this['xchange' + i].onReleaseOutside = outChange; ++i; } i = 1; while (i <= 5) { this['ychange' + i]._visible = true; this['ychange' + i].onRelease = klikItem; this['ychange' + i].onRollOver = overChange2; this['ychange' + i].onRollOut = outChange; this['ychange' + i].onReleaseOutside = outChange; ++i; } this.zchange1._visible = true; this.zchange1.onRelease = klikWeapon; this.zchange1.onRollOver = overChange3; this.zchange1.onRollOut = outChange; this['zchange' + i].onReleaseOutside = outChange; } else { i = 1; while (i <= 10) { this['xchange' + i]._visible = false; ++i; } i = 1; while (i <= 5) { this['ychange' + i]._visible = false; ++i; } this.zchange1._visible = false; } info2 = attachMovie('info_mc2', 'info_mc2', _root.dalamInfo2); info2._x = -500; info2._y = -500; info2._visible = false; info2.onEnterFrame = enterInfo2; } } movieClip 5012 change_mc { } movieClip 5013 api_mc { frame 1 { gotoAndPlay(random(50) + 1); } } movieClip 5117 ballon_mc { frame 1 { stop(); } frame 4 { _root.mulaiLevel(); } frame 15 { _root.mulaiLevel(); } frame 26 { _root.mulaiLevel(); } frame 35 { _root.mulaiLevel(); } frame 41 { _root.selesaiLevel(); } frame 53 { _root.mulaiLevel(); } frame 63 { _root.selesaiLevel(); } frame 72 { _root.mulaiLevel(); } frame 85 { _root.mulaiLevel(); } frame 95 { _root.mulaiLevel(); } frame 107 { _root.selesaiLevel(); } frame 117 { _root.mulaiLevel(); } frame 125 { _root.mulaiLevel(); } frame 132 { _root.selesaiLevel(); } frame 144 { _root.mulaiLevel(); } frame 151 { _root.selesaiLevel(); } frame 161 { _root.mulaiLevel(); } frame 171 { _root.selesaiLevel(); } frame 181 { _root.selesaiLevel(); } frame 190 { _root.mulaiLevel(); } } movieClip 5118 splash_mc { frame 4 { _root.backSeas(); } frame 15 { stop(); removeMovieClip(this); } } movieClip 5121 batu_mc5 { } movieClip 5124 batu_mc4 { } movieClip 5127 batu_mc3 { } movieClip 5130 batu_mc2 { } movieClip 5133 rumah_mc2 { } movieClip 5138 naik_mc2 { frame 1 { stop(); } } movieClip 5141 kaktus_mc { } movieClip 5143 semak_mc2 { } movieClip 5146 batu_mc { } movieClip 5149 pohon_mc2 { } movieClip 5152 semak_mc { } movieClip 5155 danau_mc { } movieClip 5158 pohon_mc { } frame 1 { function wwinitAwal() { totChara = 25; xtotChara2 = 9; jenisMaen = 'tanding'; lewatSini = false; sudahKePeta = true; elementJagoan = new Array(3, 3, 3, 1, 1, 0, 3); jenisRace = new Array(0, 0, 0, 4, 1, 3, 0); element = new Array('Water', 'Fire', 'Air', 'Earth', 'Neutral'); theRace = new Array('Human', 'Mage', 'Bird', 'Fish', 'Ogre', 'Human'); kuatElement = new Array(1, 2, 3, 0); lemahElement = new Array(3, 0, 1, 2); jenisChara = new Array(1, 2, 7, 8, 11, 12, 16); jenisWeapon = new Array('Empty', 'Lunar Sword', 'White Knife', 'Soldier Sword', 'Black Rose', 'Magasutra Axe', 'Fire Devil Spear', 'Eagle Arrow', 'Big Cudgel', 'Magic Stick', 'Giant Dagger', 'Elite Whip Chain', 'White Stick', 'Poseiden Spear', 'Knife', 'Catapult', 'Lunar Arrow', 'Magic Arrow', 'Eaglefire Spear', 'Flash Arrow', 'Dragon Flame', 'Dark Spear', 'Elite Sword', 'Black Cudgel', 'Death Sickle', 'Flying Sharp', 'Trisulajaya Spear', 'Gun'); elementWeapon = new Array('', 4, 4, 4, 1, 4, 1, 2, 4, 1, 4, 4, 1, 0, 4, 4); infoWeapon = new Array('', 'Lunar Blade is passed from generation to generation between great generals of Lunar Kingdom. Attack +25%, move = 5, range = 2, accuracy = 90%.', 'Nimble Sword, the finest of all sword, is able to kill a full-grown tiger by one slash. Attack +15%, move = 4, range = 1, accuracy = 95%.', 'Common Guard Sword, a standard weapon of Lunar state guards. Attack +20%, move = 4, range = 1, accuracy = 80%.', 'Black Rose, posses mysterious magical powers and is passed down from the late King Rock Devil\'s wife to Devy Carla. Attack +25%, move = 5, range = 6, accuracy = 85%.', 'Furtive Axe originated from the people of Lunar, posses immense powers. Attack +45%, move = 4, range = 1, accuracy = 80%. ', 'Spear of Hades, lengthy and travels faster than the speed of wind. Attack +35%, move = 4, range = 2, accuracy = 85%.', 'Arrow of Eaglefire, standard weapon used by Eaglefire guards. Attack +40%, move = 7, range = 6, accuracy = 95%.', 'Big cudgel, a standart cudgel weapon used by Ground Ogre. Attack +15%, move = 4, range = 1, accuracy = 80%.', 'Magical stick, a standard stick weapon used by Witch Ogre. Attack +10%, move = 3, range = 4, accuracy = 85%.', 'Giant weapon used by Detro Stone. Attack +40%, move = 5, range = 1, accuracy = 95%.', 'Elite Whip Chain, a chain weapon used by Guild Made. Attack +35%, move = 6, range = 3, accuracy = 99%.', 'White Stick, a stick used by witches. Attack +25%, move = 4, range = 6, accuracy = 90%.', 'Posieden Spear, a spear used by Andara Pearly. Attack +35%, move = 6, range = 2, accuracy = 90%.', 'Common Sea Ogre weapon, a standard weapon of Sea Ogre. Attack +15%, move = 5, range = 2, accuracy = 80%.', 'Common Air Ogre weapon, a standard weapon of Air Ogre. Attack +25%, move = 5, range = 5, accuracy = 95%.', 'Lunar Arrow weapon, a second weapon of Lunar Soldier. Attack +15%, move = 3, range = 12, accuracy = 90%.', 'Magic Arrow weapon, an arrow used by White Panther. Attack +35%, move = 4, range = 5, accuracy = 95%.', 'Eaglefire Spear weapon, a spear used by Brave Hawk. Attack +25%, move = 7, range = 2, accuracy = 85%.', 'Flash Arrow, an arrow used by Deja Flashgardon, very damaging attack. Attack +45%, move = 7, range = 5, accuracy = 95%.', 'Dragon Flame, Dark Armor dragon. Attack +50%, move = 8, range = 4, accuracy = 99%.', 'Dark Spear, a spear weapon used by Domo Lewatair. Attack +45%, move = 6, range = 3, accuracy = 90%.', 'Elite Sword weapon, a sword weapon, standart weapon of Elite Soldier. Attack +25%, move = 4, range = 2, accuracy = 80%.', 'Black Cudgel, a cugle weapon used by Black Ogre. Attack +35%, move = 6, range = 2, accuracy = 90%.', 'Death Sickle, a sickle weapon used by Blood Sucking Demon. Attack +35%, move = 7, range = 6, accuracy = 99%.', 'Fying Sharp, a knife weapon used by Faith Hanger. Attack +25%, move = 5, range = 2, accuracy = 95%.', 'Trisulajaya Spear, a spear weapon used by Andara Pearly. Attack +35%, move = 7, range = 3, accuracy = 95%.', 'Gun, a traditional gun weapon used by Faith Hanger. Attack +50%, move = 5, range = 7, accuracy = 85%.'); jagoanPlace = new Array('Bizan, Lunar', 'Bizan, Lunar', 'Cacte, Lunar', 'Ork, Ogrezantium', 'Magic Island, Witchcover', 'Fizh Island, Seafizh'); agePlace = new Array(25, 23, 26, 20, 46, 22, 15); rankJagoan = new Array('Allied Force Commander', 'David\'s Adjutant', 'Lunar Soldier Commander', 'Ogrezantium Princess', 'King White Heart\'s Daugther', 'Commander of Seafizh', 'Lunar Prince'); element = new Array('Water', 'Fire', 'Air', 'Earth', 'Neutral'); jenisAbility = new Array('Empty', 'Normal', 'Poison', 'Stun', 'Double Attack', 'Smash', 'Burn', 'Flame', 'Strike', 'Uncontrol', 'Meteor', 'All Attack', 'Aura Blast', 'Slow', 'Ice Belt', 'Master Attack', 'Flood', 'Posion+Stun', 'Uncontrol+Slow', 'Poison+Slow', 'Uncontrol+Stun', 'Stun+Slow', 'Uncontrol+Posion'); elementAbility = new Array('', 4, 3, 1, 4, 2, 1, 1, 4, 1, 3, 4, 4, 2, 0, 4, 0, 4, 4, 4, 4, 4, 4); auraAbility = new Array('', 0, 20, 15, 40, 25, 10, 15, 25, 25, 35, 45, 15, 15, 65, 55, 25, 50, 50, 50, 50, 50, 50, 50); i = 1; while (i <= auraAbility.length - 1) { auraAbility[i] *= 3; ++i; } hargaAbility = new Array('', 0, 1000, 1000, 2000, 1500, 1000, 1500, 1500, 2500, 2000, 3000, 2000, 1500, 2500, 4000, 1000, 4000, 4000, 4000, 4000, 4000, 4000); infoAbility = new Array('', 'Ordinary attack, no harmful effect to the enemy.', 'Poisonous attack on the enemy, enemy that get the poison will reduce by each turn, for three turn.', 'To freeze the enemy, enemy cannot walk, for three turn.', 'Double attack, hit the enemy twice in a row at the same time.', 'To push the enemy one step back, can be used to throw the enemy into the ravine.', 'Flamethrow, suitable for those with fire element, damage increase by 25%.', 'Flamethrow, like a whirlpool, suitable for those with fire element, damage increase by 50%', 'Very damaging attack, but not accurate, increase damage by 150%, but reduce accuracy by 50%.', 'To disoriented the enemy, he will attack his own troops, for three turn.', 'A meteorite attack from the sky that can kill thousand of enemies at once, suitable for high range attack.', 'An all out attack to all enemy disregarding the distance, but damage is reduce by 75% and accuracy is reduce by 50%.', 'A hit that can reduce the enemy’s Aura by 50%.', 'To reduce the enemy’s cruising capability only to one step, for three turn.', 'To attack the enemy and reduce his attack and defense by 20% (only within that particular battle)', 'Very destructive and accurate attack, damage increase by 100%, accuracy increase by 20%.', 'Aquatic Incantation summons floods, suitable for water elements, damage increase by 50%', 'Double Effect to the enemy', 'Double Effect to the enemy', 'Double Effect to the enemy', 'Double Effect to the enemy', 'Double Effect to the enemy', 'Double Effect to the enemy', 'Double Effect to the enemy'); jenisItem = new Array('Empty', 'Health+', 'Aura+', 'Anti dote', 'Break', 'Aware', 'Fast', 'Ice Shield', 'Double Turn', 'Health++', 'Aura++', 'Live', 'Remove All', 'Health+++', 'Aura+++'); elementItem = new Array('', 4, 4, 3, 1, 4, 2, 0, 4, 4, 4, 4, 4, 4, 4); hargaItem = new Array('', 150, 200, 150, 150, 200, 200, 10000, 7500, 1000, 1500, 25000, 4000, 2500, 3000); infoItem = new Array('', 'To increase Health for a single character, Health +100', 'To increase Aura for a single character, Aura +50', 'To remove poison effect on a single character', 'To remove stun effect on a single character', 'To remove uncontrol effect on a single character', 'To remove slow motion effect on a single character', 'Protection for a single character, attack and defense increase by 5% (only within that particular battle)', 'Able to perform two times in a row', 'To increase Health for a single character, Health +200', 'To increase Aura for a single character, Aura +100', 'The character who posses this item will automatically resurrect when dead and the character\'s level increase by 1 pts, this item can not use when character is still alive', 'Remove All Effect for a single character', 'To increase Health for a single character, Health +800', 'To increase Aura for a single character, Aura +400'); abilityJagoan = new Array(); itemJagoan = new Array(); i = 0; while (i <= totChara) { abilityJagoan[i] = new Array(); itemJagoan[i] = new Array(); j = 1; while (j <= 10) { abilityJagoan[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemJagoan[i][j] = 0; ++j; } ++i; } lewatSini = undefined; lewatSini2 = undefined; lewatSini3 = undefined; lewatSini4 = undefined; lewatSini5 = undefined; keCaesar = undefined; xnaik2 = 200; } function cekAbility(indi, indi2) { if (indi == 0) { namaJagoan[indi] = 'David Strong Heart'; if (jagoanWeapon[indi] == 1) { incAttack[indi] = 2.5; rangeJagoan[indi] = 5; serangJagoan[indi] = 2; accuracyJagoan[indi] = 90; speedJagoan[indi] = 5; } else { if (jagoanWeapon[indi] == 5) { incAttack[indi] = 4; rangeJagoan[indi] = 4; serangJagoan[indi] = 1; accuracyJagoan[indi] = 80; speedJagoan[indi] = 3; } else { if (jagoanWeapon[indi] == 6) { incAttack[indi] = 3.5; rangeJagoan[indi] = 4; serangJagoan[indi] = 2; accuracyJagoan[indi] = 85; speedJagoan[indi] = 3.5; } else { if (jagoanWeapon[indi] == 7) { incAttack[indi] = 3; rangeJagoan[indi] = 7; serangJagoan[indi] = 6; accuracyJagoan[indi] = 95; speedJagoan[indi] = 6; } } } } incLive[indi] = 2.5; if (mapKe >= 16) { incDefense[indi] = 5.5; } else { incDefense[indi] = 3; } incAura[indi] = 2.5; } else { if (indi == 1) { namaJagoan[indi] = 'Faith Hanger'; if (mapKe == 9 && jenisMaen != 'training') { punyaWeapon2[27] = 1; jagoanWeapon[indi] = 27; } if (jagoanWeapon[indi] == 2) { incAttack[indi] = 3; rangeJagoan[indi] = 4; serangJagoan[indi] = 1; accuracyJagoan[indi] = 95; } else { if (jagoanWeapon[indi] == 25) { incAttack[indi] = 4; rangeJagoan[indi] = 5; serangJagoan[indi] = 2; accuracyJagoan[indi] = 99; } else { if (jagoanWeapon[indi] == 27) { incAttack[indi] = 6.5; rangeJagoan[indi] = 6; serangJagoan[indi] = 7; accuracyJagoan[indi] = 70; } } } incLive[indi] = 3.5; incDefense[indi] = 3.5; incAura[indi] = 1.5; speedJagoan[indi] = 4; } else { if (indi == 2) { namaJagoan[indi] = 'Brunhill'; incLive[indi] = 3; incAttack[indi] = 2.5; incDefense[indi] = 2.5; incAura[indi] = 1.5; rangeJagoan[indi] = 4; serangJagoan[indi] = 1; accuracyJagoan[indi] = 80; speedJagoan[indi] = 3; } else { if (indi == 3) { namaJagoan[indi] = 'Devy Carla'; incLive[indi] = 3; incAttack[indi] = 2.5; incDefense[indi] = 2.5; incAura[indi] = 4.5; if (mapKe >= 10) { rangeJagoan[indi] = 8; speedJagoan[indi] = 8; } else { rangeJagoan[indi] = 5; speedJagoan[indi] = 5; } serangJagoan[indi] = 6; accuracyJagoan[indi] = 85; } else { if (indi == 4) { namaJagoan[indi] = 'Bertha'; incLive[indi] = 2; incAttack[indi] = 3; incDefense[indi] = 2.5; incAura[indi] = 5; rangeJagoan[indi] = 3; serangJagoan[indi] = 6; accuracyJagoan[indi] = 90; speedJagoan[indi] = 4; } else { if (indi == 5) { namaJagoan[indi] = 'Andara Pearly'; incLive[indi] = 3; if (jagoanWeapon[indi] == 13) { incAttack[indi] = 2.5; rangeJagoan[indi] = 6; serangJagoan[indi] = 2; accuracyJagoan[indi] = 90; incDefense[indi] = 4.5; } else { if (jagoanWeapon[indi] == 26) { incAttack[indi] = 3; rangeJagoan[indi] = 7; serangJagoan[indi] = 3; accuracyJagoan[indi] = 95; incDefense[indi] = 5; } } incAura[indi] = 1.5; speedJagoan[indi] = 4; } else { if (indi == 6 && indi2 == 'khusus') { jenisChara[indi] = 15; namaJagoan[indi] = 'Lohani'; jagoanWeapon[indi] = 12; expJagoan[indi] = 1000; levelJagoan[indi] = 16; elementJagoan[indi] = 3; jenisRace[indi] = 0; jagoanPlace[indi] = 'Bizan, Lunar'; agePlace[indi] = 99; rankJagoan[indi] = 'David Strong Heart\'s Grand-grandma'; abilityJagoan[indi][1] = 1; abilityJagoan[indi][2] = 2; abilityJagoan[indi][3] = 3; abilityJagoan[indi][4] = 4; abilityJagoan[indi][5] = 5; incLive[indi] = 1.5; incAttack[indi] = 1.5; incDefense[indi] = 2; incAura[indi] = 6; rangeJagoan[indi] = 2; serangJagoan[indi] = 7; accuracyJagoan[indi] = 100; speedJagoan[indi] = 3; liveJagoan[indi] = Math.ceil(levelJagoan[indi] * incLive[indi] * 25); totLiveJagoan[indi] = liveJagoan[indi]; attackJagoan[indi] = Math.ceil(levelJagoan[indi] * incAttack[indi] * 10); defenseJagoan[indi] = Math.ceil(levelJagoan[indi] * incDefense[indi] * 5); auraJagoan[indi] = Math.ceil(levelJagoan[indi] * incAura[indi] * 10); totAuraJagoan[indi] = auraJagoan[indi]; maxJagoan[indi] = levelJagoan[indi] * xnaik2; } else { if (indi == 7 && indi2 == 'khusus') { jenisChara[indi] = 17; namaJagoan[indi] = 'White Panther'; jagoanWeapon[indi] = 17; expJagoan[indi] = 1000; levelJagoan[indi] = 17; elementJagoan[indi] = 1; jenisRace[indi] = 1; jagoanPlace[indi] = 'Valley of Heroes, Witchcover'; agePlace[indi] = 94; rankJagoan[indi] = 'Commander of Witchcover'; abilityJagoan[indi][1] = 1; abilityJagoan[indi][2] = 3; abilityJagoan[indi][3] = 5; abilityJagoan[indi][4] = 6; abilityJagoan[indi][5] = 7; abilityJagoan[indi][6] = 8; abilityJagoan[indi][7] = 10; abilityJagoan[indi][8] = 11; abilityJagoan[indi][9] = 12; abilityJagoan[indi][10] = 14; itemJagoan[indi][1] = 1; itemJagoan[indi][2] = 2; itemJagoan[indi][3] = 3; itemJagoan[indi][4] = 4; itemJagoan[indi][5] = 5; incLive[indi] = 2.5; incAttack[indi] = 4; incDefense[indi] = 3.5; incAura[indi] = 5.5; rangeJagoan[indi] = 4; serangJagoan[indi] = 5; accuracyJagoan[indi] = 95; speedJagoan[indi] = 4; liveJagoan[indi] = Math.ceil(levelJagoan[indi] * incLive[indi] * 25); totLiveJagoan[indi] = liveJagoan[indi]; attackJagoan[indi] = Math.ceil(levelJagoan[indi] * incAttack[indi] * 10); defenseJagoan[indi] = Math.ceil(levelJagoan[indi] * incDefense[indi] * 5); auraJagoan[indi] = Math.ceil(levelJagoan[indi] * incAura[indi] * 10); totAuraJagoan[indi] = auraJagoan[indi]; maxJagoan[indi] = levelJagoan[indi] * xnaik2; } else { if (indi == 8 && indi2 == 'khusus') { jenisChara[indi] = 18; namaJagoan[indi] = 'Brave Hawk'; jagoanWeapon[indi] = 18; expJagoan[indi] = 1000; levelJagoan[indi] = 16; elementJagoan[indi] = 2; jenisRace[indi] = 2; jagoanPlace[indi] = 'Blackmith Mount, Eaglefire'; agePlace[indi] = 24; rankJagoan[indi] = 'Commander of Eaglefire'; abilityJagoan[indi][1] = 1; abilityJagoan[indi][2] = 2; abilityJagoan[indi][3] = 4; abilityJagoan[indi][4] = 5; abilityJagoan[indi][5] = 7; abilityJagoan[indi][6] = 9; abilityJagoan[indi][7] = 10; abilityJagoan[indi][8] = 11; abilityJagoan[indi][9] = 13; abilityJagoan[indi][10] = 15; itemJagoan[indi][1] = 1; itemJagoan[indi][2] = 2; itemJagoan[indi][3] = 5; itemJagoan[indi][4] = 6; itemJagoan[indi][5] = 7; incLive[indi] = 4; incAttack[indi] = 3; incDefense[indi] = 3.5; incAura[indi] = 2.5; rangeJagoan[indi] = 7; serangJagoan[indi] = 3; accuracyJagoan[indi] = 85; speedJagoan[indi] = 6; liveJagoan[indi] = Math.ceil(levelJagoan[indi] * incLive[indi] * 25); totLiveJagoan[indi] = liveJagoan[indi]; attackJagoan[indi] = Math.ceil(levelJagoan[indi] * incAttack[indi] * 10); defenseJagoan[indi] = Math.ceil(levelJagoan[indi] * incDefense[indi] * 5); auraJagoan[indi] = Math.ceil(levelJagoan[indi] * incAura[indi] * 10); totAuraJagoan[indi] = auraJagoan[indi]; maxJagoan[indi] = levelJagoan[indi] * xnaik2; } else { if (indi == 9 && indi2 == 'khusus') { jenisChara[indi] = 19; namaJagoan[indi] = 'Berthi'; jagoanWeapon[indi] = 12; expJagoan[indi] = 1000; levelJagoan[indi] = 17; elementJagoan[indi] = 1; jenisRace[indi] = 1; jagoanPlace[indi] = 'Magic Island, Witchcover'; agePlace[indi] = 46; rankJagoan[indi] = 'King White Heart\'s Daugther'; abilityJagoan[indi][1] = 1; abilityJagoan[indi][2] = 2; abilityJagoan[indi][3] = 3; abilityJagoan[indi][4] = 4; abilityJagoan[indi][5] = 5; abilityJagoan[indi][6] = 6; abilityJagoan[indi][7] = 7; abilityJagoan[indi][8] = 8; abilityJagoan[indi][9] = 9; abilityJagoan[indi][10] = 10; itemJagoan[indi][1] = 1; itemJagoan[indi][2] = 2; itemJagoan[indi][3] = 3; itemJagoan[indi][4] = 4; itemJagoan[indi][5] = 5; incLive[indi] = 2; incAttack[indi] = 3; incDefense[indi] = 2.5; incAura[indi] = 5; rangeJagoan[indi] = 3; serangJagoan[indi] = 6; accuracyJagoan[indi] = 90; speedJagoan[indi] = 4; liveJagoan[indi] = Math.ceil(levelJagoan[indi] * incLive[indi] * 25); totLiveJagoan[indi] = liveJagoan[indi]; attackJagoan[indi] = Math.ceil(levelJagoan[indi] * incAttack[indi] * 10); defenseJagoan[indi] = Math.ceil(levelJagoan[indi] * incDefense[indi] * 5); auraJagoan[indi] = Math.ceil(levelJagoan[indi] * incAura[indi] * 10); totAuraJagoan[indi] = auraJagoan[indi]; maxJagoan[indi] = levelJagoan[indi] * xnaik2; } else { if (indi == 10 && indi2 == 'khusus') { jenisChara[indi] = 10; namaJagoan[indi] = 'Guild Made'; expJagoan[indi] = 1000; jagoanWeapon[indi] = 11; levelJagoan[indi] = 18; elementJagoan[indi] = 3; jenisRace[indi] = 0; jagoanPlace[indi] = 'Caesar City, Lonthar'; agePlace[indi] = 31; rankJagoan[indi] = 'Commander of Lonthar'; abilityJagoan[indi][1] = 1; abilityJagoan[indi][2] = 2; abilityJagoan[indi][3] = 4; abilityJagoan[indi][4] = 5; abilityJagoan[indi][5] = 7; abilityJagoan[indi][6] = 8; abilityJagoan[indi][7] = 10; abilityJagoan[indi][8] = 12; abilityJagoan[indi][9] = 13; abilityJagoan[indi][10] = 14; itemJagoan[indi][1] = 1; itemJagoan[indi][2] = 2; itemJagoan[indi][3] = 3; itemJagoan[indi][4] = 4; itemJagoan[indi][5] = 5; incLive[indi] = 4.5; incAttack[indi] = 4.5; incDefense[indi] = 5; incAura[indi] = 4.5; rangeJagoan[indi] = 6; serangJagoan[indi] = 3; accuracyJagoan[indi] = 99; speedJagoan[indi] = 5; liveJagoan[indi] = Math.ceil(levelJagoan[indi] * incLive[indi] * 25); totLiveJagoan[indi] = liveJagoan[indi]; attackJagoan[indi] = Math.ceil(levelJagoan[indi] * incAttack[indi] * 10); defenseJagoan[indi] = Math.ceil(levelJagoan[indi] * incDefense[indi] * 5); auraJagoan[indi] = Math.ceil(levelJagoan[indi] * incAura[indi] * 10); totAuraJagoan[indi] = auraJagoan[indi]; maxJagoan[indi] = levelJagoan[indi] * xnaik2; } else { if (indi == 11 || indi == 12 || indi == 13 || indi == 14) { jenisChara[indi] = 25; namaJagoan[indi] = 'Lunar Soldier'; jagoanWeapon[indi] = 3; expJagoan[indi] = 1000; levelJagoan[indi] = random(2) + 6; elementJagoan[indi] = 3; jenisRace[indi] = 0; jagoanPlace[indi] = 'Magna, Lunar'; agePlace[indi] = random(3) + 27; rankJagoan[indi] = 'Lunar Soldier'; abilityJagoan[indi][1] = 1; abilityJagoan[indi][2] = 4; abilityJagoan[indi][3] = 5; incLive[indi] = 2.5; incAttack[indi] = 2; incDefense[indi] = 1.5; incAura[indi] = 1.25; if (indi == 11 || indi == 12) { serangJagoan[indi] = 1; accuracyJagoan[indi] = 75; rangeJagoan[indi] = 3; } else { serangJagoan[indi] = 12; accuracyJagoan[indi] = 90; rangeJagoan[indi] = 0; } speedJagoan[indi] = 4; liveJagoan[indi] = Math.ceil(levelJagoan[indi] * incLive[indi] * 25); totLiveJagoan[indi] = liveJagoan[indi]; attackJagoan[indi] = Math.ceil(levelJagoan[indi] * incAttack[indi] * 10); defenseJagoan[indi] = Math.ceil(levelJagoan[indi] * incDefense[indi] * 5); auraJagoan[indi] = Math.ceil(levelJagoan[indi] * incAura[indi] * 10); totAuraJagoan[indi] = auraJagoan[indi]; maxJagoan[indi] = levelJagoan[indi] * xnaik2; liveJagoan[indi] *= 0.5; } else { if (indi == 15 || indi == 16) { jenisChara[indi] = 29; namaJagoan[indi] = 'Bendhill Dam'; jagoanWeapon[indi] = 0; expJagoan[indi] = 0; levelJagoan[indi] = 5; elementJagoan[indi] = 3; jenisRace[indi] = 0; jagoanPlace[indi] = ''; agePlace[indi] = 0; rankJagoan[indi] = 'Dam'; incLive[indi] = 2; incAttack[indi] = 0; incDefense[indi] = 1.5; incAura[indi] = 0; rangeJagoan[indi] = 0; serangJagoan[indi] = 0; accuracyJagoan[indi] = 0; speedJagoan[indi] = 0; liveJagoan[indi] = Math.ceil(levelJagoan[indi] * incLive[indi] * 25); totLiveJagoan[indi] = liveJagoan[indi]; attackJagoan[indi] = Math.ceil(levelJagoan[indi] * incAttack[indi] * 10); defenseJagoan[indi] = Math.ceil(levelJagoan[indi] * incDefense[indi] * 5); auraJagoan[indi] = Math.ceil(levelJagoan[indi] * incAura[indi] * 10); totAuraJagoan[indi] = auraJagoan[indi]; maxJagoan[indi] = levelJagoan[indi] * xnaik2; } else { if (indi == 17 || indi == 18) { jenisChara[indi] = 32; namaJagoan[indi] = 'Castle Gate'; jagoanWeapon[indi] = 0; expJagoan[indi] = 0; levelJagoan[indi] = 10; elementJagoan[indi] = 3; jenisRace[indi] = 0; jagoanPlace[indi] = ''; agePlace[indi] = 0; rankJagoan[indi] = 'Gate'; incLive[indi] = 3; incAttack[indi] = 0; incDefense[indi] = 3; incAura[indi] = 0; rangeJagoan[indi] = 0; serangJagoan[indi] = 0; accuracyJagoan[indi] = 0; speedJagoan[indi] = 0; liveJagoan[indi] = Math.ceil(levelJagoan[indi] * incLive[indi] * 25); totLiveJagoan[indi] = liveJagoan[indi]; attackJagoan[indi] = Math.ceil(levelJagoan[indi] * incAttack[indi] * 10); defenseJagoan[indi] = Math.ceil(levelJagoan[indi] * incDefense[indi] * 5); auraJagoan[indi] = Math.ceil(levelJagoan[indi] * incAura[indi] * 10); totAuraJagoan[indi] = auraJagoan[indi]; maxJagoan[indi] = levelJagoan[indi] * xnaik2; } else { if (indi == 19 || indi == 20 || indi == 21 || indi == 22 || indi == 23) { jenisChara[indi] = 34; namaJagoan[indi] = 'Lunar Tourist'; jagoanWeapon[indi] = 0; expJagoan[indi] = 0; levelJagoan[indi] = 7; elementJagoan[indi] = 3; jenisRace[indi] = 0; jagoanPlace[indi] = ''; agePlace[indi] = random(16) + 25; rankJagoan[indi] = 'Lunar Citizen'; incLive[indi] = 1.25; incAttack[indi] = 1.25; incDefense[indi] = 1.25; incAura[indi] = 1.25; rangeJagoan[indi] = 0; serangJagoan[indi] = 0; accuracyJagoan[indi] = 0; speedJagoan[indi] = 0; liveJagoan[indi] = Math.ceil(levelJagoan[indi] * incLive[indi] * 25); totLiveJagoan[indi] = liveJagoan[indi]; attackJagoan[indi] = Math.ceil(levelJagoan[indi] * incAttack[indi] * 10); defenseJagoan[indi] = Math.ceil(levelJagoan[indi] * incDefense[indi] * 5); auraJagoan[indi] = Math.ceil(levelJagoan[indi] * incAura[indi] * 10); totAuraJagoan[indi] = auraJagoan[indi]; maxJagoan[indi] = levelJagoan[indi] * xnaik2; } else { if (indi == 6) { jenisChara[indi] = 16; namaJagoan[indi] = 'Prince Mah Desa'; jagoanWeapon[indi] = 3; expJagoan[indi] = 1000; elementJagoan[indi] = 3; jenisRace[indi] = 0; jagoanPlace[indi] = 'Bizan, Lunar'; agePlace[indi] = 15; rankJagoan[indi] = 'Lunar Prince'; abilityJagoan[indi][1] = 1; abilityJagoan[indi][2] = 2; abilityJagoan[indi][3] = 3; incLive[indi] = 2; incAttack[indi] = 1.5; if (mapKe >= 16) { incDefense[indi] = 4.5; } else { incDefense[indi] = 2; } incAura[indi] = 1.5; rangeJagoan[indi] = 5; serangJagoan[indi] = 1; accuracyJagoan[indi] = 75; speedJagoan[indi] = 5; } else { if (indi == 7) { jenisChara[indi] = 24; namaJagoan[indi] = 'Black Ogre'; jagoanWeapon[indi] = 23; expJagoan[indi] = 1000; elementJagoan[indi] = 1; jenisRace[indi] = 4; jagoanPlace[indi] = 'Ork, Ogrezantium'; agePlace[indi] = 35; rankJagoan[indi] = 'Devy Carla Mentor'; incLive[indi] = 4; incAttack[indi] = 3.5; incDefense[indi] = 3.5; incAura[indi] = 5.5; rangeJagoan[indi] = 6; serangJagoan[indi] = 2; accuracyJagoan[indi] = 90; speedJagoan[indi] = 5.5; } } } } } } } } } } } } } } } } } xrangeJagoan[indi] = rangeJagoan[indi]; k = 0; while (k <= totChara) { liveJagoan[k] = Math.ceil(levelJagoan[k] * incLive[k] * 25); totLiveJagoan[k] = liveJagoan[k]; attackJagoan[k] = Math.ceil(levelJagoan[k] * incAttack[k] * 10); defenseJagoan[k] = Math.ceil(levelJagoan[k] * incDefense[k] * 5); auraJagoan[k] = Math.ceil(levelJagoan[k] * incAura[k] * 10); totAuraJagoan[k] = auraJagoan[k]; maxJagoan[k] = levelJagoan[k] * xnaik2; ++k; } } function cekAbility2(indi) { if (indi == 1) { namaJagoan[indi] = 'Devy Carla'; incLive[indi] = 3; incAttack[indi] = 2.5; incDefense[indi] = 2.5; incAura[indi] = 4.5; rangeJagoan[indi] = 5; serangJagoan[indi] = 6; accuracyJagoan[indi] = 85; if (mapKe >= 10) { speedJagoan[indi] = 8; } else { speedJagoan[indi] = 5; } } k = 0; while (k <= totChara) { liveJagoan[k] = Math.ceil(levelJagoan[k] * incLive[k] * 25); totLiveJagoan[k] = liveJagoan[k]; attackJagoan[k] = Math.ceil(levelJagoan[k] * incAttack[k] * 10); defenseJagoan[k] = Math.ceil(levelJagoan[k] * incDefense[k] * 5); auraJagoan[k] = Math.ceil(levelJagoan[k] * incAura[k] * 10); totAuraJagoan[k] = auraJagoan[k]; maxJagoan[k] = levelJagoan[k] * xnaik2; ++k; } } function ygDiSave() { namaData = 'Empty'; bykKarakter = 6; mapKe = 1; totalMoney = 7500; totalTurn = 0; totalKilled = 0; naikLevel = 1; bisaTrain = true; levelJagoan = new Array(13, 12, 11, 12, 14, 12, 13); expJagoan = new Array(1000, 1000, 1000, 1000, 1000, 1000, 1000); punyaAbility = new Array('', 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); punyaItem = new Array('', 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); punyaWeapon = new Array('', 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); punyaWeapon2 = new Array('', 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); punyaWeapon3 = new Array('', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); jagoanWeapon = new Array(1, 2, 3, 4, 12, 13, 16); abilityJagoan[0][1] = 1; abilityJagoan[0][2] = 3; abilityJagoan[0][3] = 4; abilityJagoan[1][1] = 1; abilityJagoan[1][2] = 2; abilityJagoan[1][3] = 5; abilityJagoan[2][1] = 1; abilityJagoan[2][2] = 2; abilityJagoan[3][1] = 1; abilityJagoan[3][2] = 2; abilityJagoan[3][3] = 3; abilityJagoan[4][1] = 1; abilityJagoan[4][2] = 3; abilityJagoan[4][3] = 4; abilityJagoan[5][1] = 1; abilityJagoan[5][2] = 4; abilityJagoan[5][3] = 5; } function simpanJeda(dataKe) { if (keJeda == 1) { i = 0; while (i <= simpanSemua.length - 1) { _root['dwdatSimp' + i] = simpanSemua[i] + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp' + i], '/'); Cookies.data['dwsoData' + i] = eval(simpanSemua[i]); Cookies.flush(); ++i; } } else { if (keJeda == 2) { i = 0; while (i <= xtotChara2) { _root['dwdatSimp1' + i] = String('levelJagoan' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp1' + i], '/'); Cookies.data['dwsoData1' + i] = levelJagoan[i]; Cookies.flush(); ++i; } } else { if (keJeda == 3) { i = 0; while (i <= xtotChara2) { _root['dwdatSimp2' + i] = String('expJagoan' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp2' + i], '/'); Cookies.data['dwsoData2' + i] = expJagoan[i]; Cookies.flush(); ++i; } } else { if (keJeda == 4) { i = 0; while (i <= jenisAbility.length - 1) { _root['dwdatSimp3' + i] = String('punyaAbility' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp3' + i], '/'); Cookies.data['dwsoData3' + i] = punyaAbility[i]; Cookies.flush(); ++i; } } else { if (keJeda == 5) { i = 0; while (i <= jenisItem.length - 1) { _root['dwdatSimp4' + i] = String('punyaItem' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp4' + i], '/'); Cookies.data['dwsoData4' + i] = punyaItem[i]; Cookies.flush(); ++i; } } else { if (keJeda == 6) { i = 0; while (i <= xtotChara2) { j = 1; while (j <= 5) { _root['dwdatSimp5' + i + j] = String('abilityJagoan' + i + j) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp5' + i + j], '/'); Cookies.data['dwsoData5' + i + j] = abilityJagoan[i][j]; Cookies.flush(); ++j; } ++i; } } else { if (keJeda == 7) { i = 0; while (i <= xtotChara2) { j = 6; while (j <= 10) { _root['dwdatSimp5' + i + j] = String('abilityJagoan' + i + j) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp5' + i + j], '/'); Cookies.data['dwsoData5' + i + j] = abilityJagoan[i][j]; Cookies.flush(); ++j; } ++i; } } else { if (keJeda == 8) { i = 0; while (i <= xtotChara2) { j = 1; while (j <= 5) { _root['dwdatSimp6' + i + j] = String('itemJagoan' + i + j) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp6' + i + j], '/'); Cookies.data['dwsoData6' + i + j] = itemJagoan[i][j]; Cookies.flush(); ++j; } ++i; } } else { if (keJeda == 9) { i = 0; while (i <= jenisWeapon.length - 1) { _root['dwdatSimp7' + i] = String('punyaWeapon' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp7' + i], '/'); Cookies.data['dwsoData7' + i] = punyaWeapon[i]; Cookies.flush(); ++i; } } else { if (keJeda == 10) { i = 0; while (i <= xtotChara2) { _root['dwdatSimp8' + i] = String('jagoanWeapon' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp8' + i], '/'); Cookies.data['dwsoData8' + i] = jagoanWeapon[i]; Cookies.flush(); ++i; } } else { if (keJeda == 11) { i = 0; while (i <= jenisWeapon.length - 1) { _root['dwdatSimp9' + i] = String('punyaWeapon2' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp9' + i], '/'); Cookies.data['dwsoData9' + i] = punyaWeapon2[i]; Cookies.flush(); ++i; } } else { if (keJeda == 12) { i = 0; while (i <= jenisWeapon.length - 1) { _root['dwdatSimp10' + i] = String('punyaWeapon3' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp10' + i], '/'); Cookies.data['dwsoData10' + i] = punyaWeapon3[i]; Cookies.flush(); ++i; } } } } } } } } } } } } } msgBox_mc.bar.gotoAndStop(keJeda); if (keJeda == 13) { clearInterval(idJeda); initData(); xloadData(zindi); cekData(); } else { ++keJeda; } } function simpanData(dataKe) { keJeda = 1; idJeda = setInterval(simpanJeda, 500, dataKe); } function loadJeda(dataKe) { if (keJeda == 1) { i = 0; while (i <= simpanSemua.length - 1) { _root['dwdatSimp' + i] = simpanSemua[i] + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp' + i], '/'); _root[simpanSemua[i]] = Cookies.data['dwsoData' + i]; ++i; } } else { if (keJeda == 2) { i = 0; while (i <= xtotChara2) { _root['dwdatSimp1' + i] = String('levelJagoan' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp1' + i], '/'); levelJagoan[i] = Cookies.data['dwsoData1' + i]; ++i; } } else { if (keJeda == 3) { i = 0; while (i <= xtotChara2) { _root['dwdatSimp2' + i] = String('expJagoan' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp2' + i], '/'); expJagoan[i] = Cookies.data['dwsoData2' + i]; ++i; } } else { if (keJeda == 4) { i = 0; while (i <= jenisAbility.length - 1) { _root['dwdatSimp3' + i] = String('punyaAbility' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp3' + i], '/'); punyaAbility[i] = Cookies.data['dwsoData3' + i]; ++i; } } else { if (keJeda == 5) { i = 0; while (i <= jenisItem.length - 1) { _root['dwdatSimp4' + i] = String('punyaItem' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp4' + i], '/'); punyaItem[i] = Cookies.data['dwsoData4' + i]; ++i; } } else { if (keJeda == 6) { i = 0; while (i <= xtotChara2) { j = 1; while (j <= 5) { _root['dwdatSimp5' + i + j] = String('abilityJagoan' + i + j) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp5' + i + j], '/'); abilityJagoan[i][j] = Cookies.data['dwsoData5' + i + j]; ++j; } ++i; } } else { if (keJeda == 7) { i = 0; while (i <= xtotChara2) { j = 6; while (j <= 10) { _root['dwdatSimp5' + i + j] = String('abilityJagoan' + i + j) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp5' + i + j], '/'); abilityJagoan[i][j] = Cookies.data['dwsoData5' + i + j]; ++j; } ++i; } } else { if (keJeda == 8) { i = 0; while (i <= xtotChara2) { j = 1; while (j <= 5) { _root['dwdatSimp6' + i + j] = String('itemJagoan' + i + j) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp6' + i + j], '/'); itemJagoan[i][j] = Cookies.data['dwsoData6' + i + j]; ++j; } ++i; } } else { if (keJeda == 9) { i = 0; while (i <= jenisWeapon.length - 1) { _root['dwdatSimp7' + i] = String('punyaWeapon' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp7' + i], '/'); punyaWeapon[i] = Cookies.data['dwsoData7' + i]; ++i; } } else { if (keJeda == 10) { i = 0; while (i <= xtotChara2) { _root['dwdatSimp8' + i] = String('jagoanWeapon' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp8' + i], '/'); jagoanWeapon[i] = Cookies.data['dwsoData8' + i]; ++i; } } else { if (keJeda == 11) { i = 0; while (i <= jenisWeapon.length - 1) { _root['dwdatSimp9' + i] = String('punyaWeapon2' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp9' + i], '/'); punyaWeapon2[i] = Cookies.data['dwsoData9' + i]; ++i; } } else { if (keJeda == 12) { i = 0; while (i <= jenisWeapon.length - 1) { _root['dwdatSimp10' + i] = String('punyaWeapon3' + i) + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp10' + i], '/'); punyaWeapon3[i] = Cookies.data['dwsoData10' + i]; ++i; } } } } } } } } } } } } } msgBox_mc.bar.gotoAndStop(keJeda); if (keJeda == 13) { clearInterval(idJeda2); if (mapKe != undefined) { wi = 0; while (wi <= 9) { delete _root['data' + wi].onRollOver; delete _root['data' + wi].onRollOut; delete _root['data' + wi].onRelease; ++wi; } xcekKemana(); if (mapKe >= 12) { musicIstana(); } else { musicIstana(); } } } else { ++keJeda; } } function loadData(dataKe) { keJeda = 1; idJeda2 = setInterval(loadJeda, 500, dataKe); } function xloadData(dataKe) { i = 0; while (i <= simpanSemua.length - 1) { _root['dwdatSimp' + i] = simpanSemua[i] + dataKe; Cookies = SharedObject.getLocal(_root['dwdatSimp' + i], '/'); _root['c' + simpanSemua[i]] = Cookies.data['dwsoData' + i]; ++i; } } function tombolAtas() { box_mc.shop_btn.enabled = true; box_mc.status_btn.enabled = true; box_mc.options_btn.enabled = true; box_mc.battle_btn.enabled = true; if (bisaTrain == true) { box_mc.train_btn.enabled = true; box_mc.train_btn._alpha = 100; } else { box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } box_mc.options_btn.enabled = true; box_mc.save_btn.enabled = true; lone_btn.enabled = false; magre_btn.enabled = false; cacte_btn.enabled = false; valley_btn.enabled = false; dogsa_btn.enabled = false; magna_btn.enabled = false; bizan_btn.enabled = false; rixon_btn.enabled = false; bluegreen_btn.enabled = false; bluediamond_btn.enabled = false; diamondcity_btn.enabled = false; whiteshark_btn.enabled = false; gloria_btn.enabled = false; caesar_btn.enabled = false; box_mc.shop_btn.onRollOver = function () { over(); }; box_mc.shop_btn.onRelease = function () { klik(); gotoAndStop(1205); }; box_mc.status_btn.onRollOver = function () { over(); }; box_mc.status_btn.onRelease = function () { klik(); gotoAndStop(1275); }; box_mc.train_btn.onRollOver = function () { over(); }; box_mc.train_btn.onRelease = function () { klik(); bisaTrain = true; this.enabled = true; jenisMaen = 'training'; gotoAndStop(1195); }; box_mc.save_btn.onRollOver = function () { over(); }; box_mc.save_btn.onRelease = function () { klik(); xjenisData = 'save'; gotoAndStop(1179); }; box_mc.options_btn.onRollOver = function () { over(); }; box_mc.options_btn.onRelease = function () { klik(); _root.cekOptions('map'); }; box_mc.battle_btn.onRollOver = function () { over(); }; box_mc.battle_btn.onRelease = function () { klik(); jenisMaen = 'tanding'; gotoAndStop(1195); }; if (mapKe < 2) { magre_btn.enabled = true; magre_btn.onRollOver = function () { over(); }; magre_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; jenisMaen = 'tanding'; if (mapKe == 1) { gotoAndPlay('satu'); } }; } else { if (mapKe < 4) { dogsa_btn.enabled = true; dogsa_btn.onRollOver = function () { over(); }; dogsa_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; jenisMaen = 'tanding'; if (mapKe == 2) { gotoAndPlay('dua'); } else { if (mapKe == 3) { gotoAndPlay('dua2'); } } }; } else { if (mapKe < 7 && lewatSini != true) { magna_btn.enabled = true; magna_btn.onRollOver = function () { over(); }; magna_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; jenisMaen = 'tanding'; if (mapKe == 4) { gotoAndPlay('dua4'); } else { if (mapKe == 5) { gotoAndPlay('dua6'); } else { if (mapKe == 6) { gotoAndPlay('dua8'); } } } }; } else { if (mapKe < 9 && lewatSini == true) { bizan_btn.enabled = true; bizan_btn.onRollOver = function () { over(); }; bizan_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; jenisMaen = 'tanding'; if (mapKe == 6) { gotoAndPlay('dua10'); } else { if (mapKe == 7) { gotoAndPlay('dua12'); } } }; } else { if (mapKe < 9 && lewatSini2 == true) { rixon_btn.enabled = true; rixon_btn.onRollOver = function () { over(); }; rixon_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; if (mapKe == 8) { gotoAndPlay('dua14'); } }; } else { if (mapKe < 10 && lewatSini3 == true) { rixon_btn.enabled = true; rixon_btn.onRollOver = function () { over(); }; rixon_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; if (mapKe == 8) { gotoAndPlay('dua16'); } else { if (mapKe == 9) { gotoAndPlay('dua18'); } } }; } else { if (mapKe < 12) { bluegreen_btn.enabled = true; bluegreen_btn.onRollOver = function () { over(); }; bluegreen_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; if (mapKe == 10) { gotoAndPlay('dua20'); } else { if (mapKe == 11) { gotoAndPlay('dua22'); } } }; } else { if (mapKe < 14) { bluediamond_btn.enabled = true; bluediamond_btn.onRollOver = function () { over(); }; bluediamond_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; if (mapKe == 12) { gotoAndPlay('dua24'); } else { if (mapKe == 13) { gotoAndPlay('dua26'); } } }; } else { if (mapKe < 15 && lewatSini4 == true) { diamondcity_btn.enabled = true; diamondcity_btn.onRollOver = function () { over(); }; diamondcity_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; if (mapKe == 14) { gotoAndPlay('dua28'); } }; } else { if (mapKe < 16 && lewatSini5 == false) { whiteshark_btn.enabled = true; whiteshark_btn.onRollOver = function () { over(); }; whiteshark_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; if (mapKe == 15) { gotoAndPlay('dua30'); } }; } else { if (mapKe < 17 && lewatSini5 == true) { whiteshark_btn.enabled = true; whiteshark_btn.onRollOver = function () { over(); }; whiteshark_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; if (mapKe == 16) { gotoAndPlay('dua32'); } }; } else { if (mapKe < 17 && keCaesar == true) { caesar_btn.enabled = true; caesar_btn.onRollOver = function () { over(); }; caesar_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; if (mapKe == 16) { gotoAndPlay('dua38'); } }; } else { if (mapKe < 17 && keCaesar == false) { gloria_btn.enabled = true; gloria_btn.onRollOver = function () { over(); }; gloria_btn.onRelease = function () { klik(); this.enabled = false; box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.options_btn.enabled = false; box_mc.save_btn.enabled = false; if (mapKe == 16) { gotoAndPlay('dua34'); } }; } } } } } } } } } } } } } if (mapKe >= 12) { lone_btn.enabled = false; magre_btn.enabled = false; cacte_btn.enabled = false; valley_btn.enabled = false; } } function xcekKemana() { if (mapKe == 1) { gotoAndStop('ysatu'); } else { if (mapKe == 2) { gotoAndStop('xsatu'); } else { if (mapKe == 3) { gotoAndStop('dua1'); } else { if (mapKe == 4) { gotoAndStop('dua3'); } else { if (mapKe == 5) { gotoAndStop('dua5'); } else { if (mapKe == 6 && lewatSini == false) { gotoAndStop('dua7'); } else { if (mapKe == 6 && lewatSini == true) { gotoAndStop('dua9'); } else { if (mapKe == 7) { gotoAndStop('dua11'); } else { if (mapKe == 8 && lewatSini2 == true) { gotoAndStop('dua13'); } else { if (mapKe == 8 && lewatSini2 == false) { gotoAndStop('dua15'); } else { if (mapKe == 9) { gotoAndStop('dua17'); } else { if (mapKe == 10) { gotoAndStop('dua19'); } else { if (mapKe == 11) { gotoAndStop('dua21'); } else { if (mapKe == 12) { gotoAndStop('dua23'); } else { if (mapKe == 13) { gotoAndStop('dua25'); } else { if (mapKe == 14) { gotoAndStop('dua27'); } else { if (mapKe == 15) { gotoAndStop('dua29'); } else { if (mapKe == 16 && keCaesar == true) { gotoAndStop('dua37'); } else { if (mapKe == 16 && lewatSini5 == true) { gotoAndStop('dua31'); } else { if (mapKe == 16 && lewatSini5 == false) { gotoAndStop('dua33'); } } } } } } } } } } } } } } } } } } } } } function initDalam() { panjang = 19; lebar = 19; dalam1 = 10; dalam2 = panjang * 3 * lebar + dalam1 + 100; dalamObjective = panjang * 6 * lebar + dalam1 + 1200; dalamCompleted = panjang * 6 * lebar + dalam1 + 1200; dalamStatus = panjang * 6 * lebar + dalam1 + 1300; dalamMsgBox = panjang * 6 * lebar + dalam1 + 1000; dalamMsgBox3 = panjang * 6 * lebar + dalam1 + 900; dalamInfo = panjang * 6 * lebar + dalam1 + 800; dalamActions = panjang * 6 * lebar + dalam1 + 500; dalamInfo2 = panjang * 6 * lebar + dalam1 + 1100; dalamOptions = panjang * 6 * lebar + dalam1 + 2000; dalamAngka1 = panjang * 6 * lebar + dalam1 + 600; dalamAngka2 = panjang * 6 * lebar + dalam1 + 650; dalamAngka3 = panjang * 6 * lebar + dalam1 + 700; dalamAngka4 = panjang * 6 * lebar + dalam1 + 750; dalamMeteor = panjang * 6 * lebar + dalam1 + 550; dalamStun = 1; dalamPoison = 2; dalamUncontrol = 3; dalamSlow = 4; dalamDarah = 10; } function cekOptions(indi) { xpause = true; options = attachMovie('options_mc', 'options_mc', dalamOptions); if (indi == 'map') { options.gotoAndStop(3); } else { options.gotoAndStop(1); } options._x = 400; options._y = 300; options.objective_btn.onRollOver = function () { over(); }; options.objective_btn.onRelease = function () { klik(); removeMovieClip(options_mc); objective = attachMovie('objective_mc', 'objective_mc', dalamObjective); objective._x = -50; objective._y = -50; if (jenisMaen == 'training') { objective.gotoAndStop(20); } else { objective.gotoAndStop(mapKe); } _root.onMouseDown = function () { xpause = false; removeMovieClip(objective); delete _root.onMouseDown; }; }; options.options_btn.onRollOver = function () { over(); }; options.options_btn.onRelease = function () { klik(); options.gotoAndStop(2); options.back_btn.onRelease = function () { xpause = false; removeMovieClip(options_mc); }; }; options.quit_btn.onRollOver = function () { over(); }; options.quit_btn.onRelease = function () { klik(); options.gotoAndStop(4); options.yes_btn.onRollOver = function () { over(); }; options.yes_btn.onRelease = function () { klik(); xpause = false; removeMovieClip(options_mc); delete _root.onMouseDown; clearSemua(); gotoAndStop(211); }; options.no_btn.onRollOver = function () { over(); }; options.no_btn.onRelease = function () { klik(); xpause = false; removeMovieClip(options_mc); }; }; options.back_btn.onRollOver = function () { over(); }; options.back_btn.onRelease = function () { klik(); xpause = false; removeMovieClip(options_mc); }; options.more_btn.onRollOver = function () { over(); }; options.more_btn.onRelease = function () { klik(); getURL('http://www.armorgames.com', '_blank'); }; options.gaming_btn.onRollOver = function () { over(); }; options.gaming_btn.onRelease = function () { klik(); getURL('http://www.armorblog.com', '_blank'); }; } function over() { mySound = new Sound(sound_mc); mySound.attachSound('over'); mySound.start(0, 1); mySound.setVolume(volum2); } function klik() { mySound = new Sound(sound_mc); mySound.attachSound('klik'); mySound.start(0, 1); mySound.setVolume(volum2); } function backLangkah() { mySound = new Sound(sound_mc); mySound.attachSound('backLangkah'); mySound.start(0, 99); mySound.setVolume(volum2); } function backJalan() { mySound = new Sound(sound_mc); mySound.attachSound('backJalan'); mySound.start(0, 1); mySound.setVolume(volum2); } function backPedang() { mySound = new Sound(sound_mc); mySound.attachSound('backPedang'); mySound.start(0, 1); mySound.setVolume(volum2); } function backPisau() { mySound = new Sound(sound_mc); mySound.attachSound('backPisau'); mySound.start(0, 1); mySound.setVolume(volum2); } function backGada() { mySound = new Sound(sound_mc); mySound.attachSound('backGada'); mySound.start(0, 1); mySound.setVolume(volum2); } function backSihir() { mySound = new Sound(sound_mc); mySound.attachSound('backSihir'); mySound.start(0, 1); mySound.setVolume(volum2); } function backPedang2() { mySound = new Sound(sound_mc); mySound.attachSound('backPedang2'); mySound.start(0, 1); mySound.setVolume(volum2); } function backMawar() { mySound = new Sound(sound_mc); mySound.attachSound('backMawar'); mySound.start(0, 1); } function backKapak() { mySound = new Sound(sound_mc); mySound.attachSound('backKapak'); mySound.start(0, 1); mySound.setVolume(volum2); } function backTombak() { mySound = new Sound(sound_mc); mySound.attachSound('backTombak'); mySound.start(0, 1); mySound.setVolume(volum2); } function backPanah() { mySound = new Sound(sound_mc); mySound.attachSound('backPanah'); mySound.start(0, 1); mySound.setVolume(volum2); } function backGolok() { mySound = new Sound(sound_mc); mySound.attachSound('backGolok'); mySound.start(0, 1); mySound.setVolume(volum2); } function backCambuk() { mySound = new Sound(sound_mc); mySound.attachSound('backCambuk'); mySound.start(0, 1); mySound.setVolume(volum2); } function backLive() { mySound = new Sound(sound_mc); mySound.attachSound('backLive'); mySound.start(0, 1); mySound.setVolume(volum2); } function backBreak() { mySound = new Sound(sound_mc); mySound.attachSound('backBreak'); mySound.start(0, 1); mySound.setVolume(volum2); } function backIce() { mySound = new Sound(sound_mc); mySound.attachSound('backIce'); mySound.start(0, 1); mySound.setVolume(volum2); } function backAntidote() { mySound = new Sound(sound_mc); mySound.attachSound('backAntidote'); mySound.start(0, 1); mySound.setVolume(volum2); } function backFast() { mySound = new Sound(sound_mc); mySound.attachSound('backFast'); mySound.start(0, 1); mySound.setVolume(volum2); } function backAware() { mySound = new Sound(sound_mc); mySound.attachSound('backAware'); mySound.start(0, 1); mySound.setVolume(volum2); } function backAura() { mySound = new Sound(sound_mc); mySound.attachSound('backAura'); mySound.start(0, 1); mySound.setVolume(volum2); } function backDouble() { mySound = new Sound(sound_mc); mySound.attachSound('backDouble'); mySound.start(0, 1); mySound.setVolume(volum2); } function backHealth() { mySound = new Sound(sound_mc); mySound.attachSound('backHealth'); mySound.start(0, 1); mySound.setVolume(volum2); } function backPoison() { mySound = new Sound(sound_mc); mySound.attachSound('backPoison'); mySound.start(0, 1); mySound.setVolume(volum2); } function backStun() { mySound = new Sound(sound_mc); mySound.attachSound('backStun'); mySound.start(0, 1); mySound.setVolume(volum2); } function backDoubleAttack() { mySound = new Sound(sound_mc); mySound.attachSound('backDoubleAttack'); mySound.start(0, 1); mySound.setVolume(volum2); } function backSmash() { mySound = new Sound(sound_mc); mySound.attachSound('backSmash'); mySound.start(0, 1); mySound.setVolume(volum2); } function backBurn() { mySound = new Sound(sound_mc); mySound.attachSound('backBurn'); mySound.start(0, 1); mySound.setVolume(volum2); } function backFlame() { mySound = new Sound(sound_mc); mySound.attachSound('backFlame'); mySound.start(0, 1); mySound.setVolume(volum2); } function backStrike() { mySound = new Sound(sound_mc); mySound.attachSound('backStrike'); mySound.start(0, 1); mySound.setVolume(volum2); } function backUncontrol() { mySound = new Sound(sound_mc); mySound.attachSound('backUncontrol'); mySound.start(0, 1); mySound.setVolume(volum2); } function backMeteor() { mySound = new Sound(sound_mc); mySound.attachSound('backMeteor'); mySound.start(0, 1); mySound.setVolume(volum2); } function backAllAttack() { mySound = new Sound(sound_mc); mySound.attachSound('backAllAttack'); mySound.start(0, 1); mySound.setVolume(volum2); } function backAuraBlast() { mySound = new Sound(sound_mc); mySound.attachSound('backAuraBlast'); mySound.start(0, 1); mySound.setVolume(volum2); } function backSlow() { mySound = new Sound(sound_mc); mySound.attachSound('backSlow'); mySound.start(0, 1); mySound.setVolume(volum2); } function backIceBelt() { mySound = new Sound(sound_mc); mySound.attachSound('backIceBelt'); mySound.start(0, 1); } function backMasterAttack() { mySound = new Sound(sound_mc); mySound.attachSound('backMasterAttack'); mySound.start(0, 1); mySound.setVolume(volum2); } function backFlood() { mySound = new Sound(sound_mc); mySound.attachSound('backFlood'); mySound.start(0, 1); mySound.setVolume(volum2); } function backFight() { mySound = new Sound(sound_mc); mySound.attachSound('backFight'); mySound.start(0, 1); mySound.setVolume(volum2); } function backMenang() { mySound = new Sound(sound_mc); mySound.attachSound('backMenang'); mySound.start(0, 1); mySound.setVolume(volum2); } function backWeapon() { mySound = new Sound(sound_mc); mySound.attachSound('backWeapon'); mySound.start(0, 1); mySound.setVolume(volum2); } function backOgreMati() { mySound = new Sound(sound_mc); mySound.attachSound('backOgreMati'); mySound.start(0, 1); mySound.setVolume(volum2); } function backOgreKena() { mySound = new Sound(sound_mc); mySound.attachSound('backOgreKena'); mySound.start(0, 1); mySound.setVolume(volum2); } function backOrangMati() { mySound = new Sound(sound_mc); mySound.attachSound('backOrangMati'); mySound.start(0, 1); mySound.setVolume(volum2); } function backOrangKena() { mySound = new Sound(sound_mc); mySound.attachSound('backOrangKena'); mySound.start(0, 1); mySound.setVolume(volum2); } function backAplaus() { mySound = new Sound(sound_mc); mySound.attachSound('backAplaus'); mySound.start(0, 1); mySound.setVolume(volum2); } function backSeas() { mySound2 = new Sound(sound_mc2); mySound2.attachSound('backSeas'); mySound2.start(0, 1); xvolume = volum3 / 3; mySound2.setVolume(xvolume); } function cekMusic(indi) { clearInterval(idMusic1); clearInterval(idMusic2); ygNaik = indi; i = 1; while (i <= 7) { if (i == ygNaik) { _root['xvolum' + i] = 0; } else { _root['xvolum' + i] = volum1; } ++i; } idMusic1 = setInterval(musikNaik, 200); idMusic2 = setInterval(musikTurun, 200); } function musicStory() { myMusic.stop(); myMusic = new Sound(music_mc); myMusic.attachSound('musicStory'); myMusic.start(0, 1); myMusic.setVolume(volum1); myMusic.onSoundComplete = function () { musicStory(); }; } function musicPeta() { myMusic.stop(); myMusic = new Sound(music_mc); myMusic.attachSound('musicPeta'); myMusic.start(0, 1); myMusic.setVolume(volum1); myMusic.onSoundComplete = function () { musicPeta(); }; } function musicIstana() { myMusic.stop(); myMusic = new Sound(music_mc); myMusic.attachSound('musicIstana'); myMusic.start(0, 1); myMusic.setVolume(volum1); myMusic.onSoundComplete = function () { musicIstana(); }; } function musicCombat1() { myMusic.stop(); myMusic = new Sound(music_mc); myMusic.attachSound('musicCombat1'); myMusic.start(0, 1); myMusic.setVolume(volum1); myMusic.onSoundComplete = function () { musicCombat1(); }; } function musicCombat2() { myMusic.stop(); myMusic = new Sound(music_mc); myMusic.attachSound('musicCombat2'); myMusic.start(0, 1); myMusic.setVolume(volum1); myMusic.onSoundComplete = function () { musicCombat2(); }; } function musicPedesaan() { myMusic.stop(); myMusic = new Sound(music_mc); myMusic.attachSound('musicPedesaan'); myMusic.start(0, 1); myMusic.setVolume(volum1); myMusic.onSoundComplete = function () { musicPedesaan(); }; } function musicHoror() { myMusic.stop(); myMusic = new Sound(music_mc); myMusic.attachSound('musicHoror'); myMusic.start(0, 1); myMusic.setVolume(volum1); myMusic.onSoundComplete = function () { musicHoror(); }; } Stage.showMenu = false; _quality = 'High'; fscommand('fullscreen', false); fscommand('showmenu', false); fscommand('alowscale', true); trans = attachMovie('trans_mc', 'trans_mc', 8); trans2 = attachMovie('trans_mc2', 'trans_mc2', 9); musik = attachMovie('sound_mc', 'music_mc', 7); sound = attachMovie('sound_mc', 'sound_mc', 6); sound2 = attachMovie('sound_mc', 'sound_mc2', 5); speedGame = 'NORMAL'; trans._x = -50; trans._y = -50; trans2._x = -50; trans2._y = -50; volum1 = 75; volum2 = 100; volum3 = 100; wwinitAwal(); ygDiSave(); simpanSemua = new Array('namaData', 'bykKarakter', 'mapKe', 'totalMoney', 'totalTurn', 'totalKilled', 'bisaTrain', 'lewatSini', 'naikLevel', 'lewatSini', 'lewatSini2', 'lewatSini3', 'lewatSini4', 'keCaesar', 'lewatSini5'); } frame 1 { stop(); _root.onEnterFrame = function () { sedang = _root.getBytesLoaded(); total = _root.getBytesTotal(); xpersen = Math.floor((sedang / total) * 100); persen = xpersen + ' %'; qbar_mc.gotoAndStop(xpersen); if (sedang == total) { delete this.onEnterFrame; gotoAndStop('completed'); } }; } movieClip 5161 { } movieClip 5164 { frame 1 { stop(); } } movieClip 5166 { } instance of movieClip 5166 { onClipEvent (release) { getURL('http://www.armorgames.com', '_blank'); } } movieClip 5168 { } frame 26 { stop(); } frame 30 { function aturSaja() { gotoAndStop(41); } stop(); start_btn.onRollOver = function () { over(); }; start_btn.onRelease = function () { klik(); trans_mc.gotoAndPlay(2); }; } instance of movieClip 5166 { onClipEvent (release) { getURL('http://www.armorgames.com', '_blank'); } } frame 41 { play(); } frame 55 { stop(); } movieClip 5185 { } button 5190 { on (press) { getURL('http://www.armorgames.com', '_blank'); } } movieClip 5193 { frame 1 { _root.stop(); gotoAndPlay(2); } frame 218 { _root.nextFrame(); } } frame 56 { play(); } frame 70 { gotoAndStop(71); } frame 71 { play(); } movieClip 5195 { } frame 210 { function aturSaja() { gotoAndStop(211); } stop(); trans_mc.gotoAndPlay(2); } frame 211 { function enabledAll(indi) { new_btn.enabled = indi; load_btn.enabled = indi; options_btn.enabled = indi; help_btn.enabled = indi; credits_btn.enabled = indi; more_btn.enabled = indi; gaming_btn.enabled = indi; } function aturSaja() { if (jenis == 'new') { gotoAndStop(1180); } else { if (jenis == 'help') { gotoAndStop(969); } else { if (jenis == 'load') { gotoAndStop(1179); } else { if (jenis == 'options') { gotoAndStop(213); } else { if (jenis == 'credits') { gotoAndStop(214); } else { if (jenis == 'langsung') { gotoAndStop(999); } } } } } } } stop(); msgBox_mc5._visible = false; msgBox_mc5.gotoAndStop(1); msgBox_mc5.xscroll.gotoAndStop(1); history_btn.onRollOver = function () { over(); }; history_btn.onRelease = function () { klik(); gotoAndStop('history'); }; new_btn.onRollOver = function () { over(); }; new_btn.onRelease = function () { wwinitAwal(); ygDiSave(); jenis = 'new'; trans_mc.gotoAndPlay(2); }; load_btn.onRollOver = function () { over(); }; load_btn.onRelease = function () { klik(); wwinitAwal(); ygDiSave(); trans_mc.gotoAndPlay(2); xjenisData = 'load'; jenis = 'load'; }; options_btn.onRollOver = function () { over(); }; options_btn.onRelease = function () { klik(); trans_mc.gotoAndPlay(2); jenis = 'options'; }; help_btn.onRollOver = function () { over(); }; help_btn.onRelease = function () { klik(); trans_mc.gotoAndPlay(2); jenis = 'help'; }; credits_btn.onRollOver = function () { over(); }; credits_btn.onRelease = function () { klik(); trans_mc.gotoAndPlay(2); jenis = 'credits'; }; more_btn.onRollOver = function () { over(); }; more_btn.onRelease = function () { klik(); getURL('http://www.armorgames.com', '_blank'); }; gaming_btn.onRollOver = function () { over(); }; gaming_btn.onRelease = function () { klik(); getURL('http://www.armorblog.com', '_blank'); }; chapter1_btn.onRollOver = function () { over(); }; chapter1_btn.onRelease = function () { getURL('http://armorgames.com/play/1524/dark-war-strategy-chapter-1', '_blank'); }; } instance of movieClip 5166 { onClipEvent (release) { getURL('http://www.armorgames.com', '_blank'); } } movieClip 5235 { frame 12 { stop(); } } movieClip 5240 { frame 10 { stop(); } } frame 212 { stop(); quit_btn.onRollOver = function () { over(); }; quit_btn.onRelease = function () { klik(); gotoAndStop('xmenu'); }; } frame 213 { function aturSaja() { if (jenis == 'credits') { gotoAndStop(214); } else { if (jenis == 'back') { gotoAndStop(211); } } } function cekSpeed() { if (speedGame == 'SLOW') { speed1.gotoAndStop(3); speed2.gotoAndStop(1); speed3.gotoAndStop(1); } else { if (speedGame == 'NORMAL') { speed1.gotoAndStop(1); speed2.gotoAndStop(3); speed3.gotoAndStop(1); } else { if (speedGame == 'FAST') { speed1.gotoAndStop(1); speed2.gotoAndStop(1); speed3.gotoAndStop(3); } } } } stop(); back_btn.onRollOver = function () { over(); }; back_btn.onRelease = function () { klik(); trans_mc.gotoAndPlay(2); jenis = 'back'; }; bar1_mc.bar_mc._x = Math.ceil(_root.volum1 / 0.4347826086956522 - 115); bar1_mc.bar_mc.onEnterFrame = function () { _root.volum1 = int(0.4347826086956522 * (this._x + 115)); _root.myMusic.setVolume(_root.volum1); bar1_mc.persen1 = _root.volum1 + ' %'; }; bar1_mc.indi_mc.onPress = function () { klik(); startDrag(bar1_mc.bar_mc, true, -115, 0, 115, 0); }; bar1_mc.bar_mc.onRollOver = function () { over(); }; 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.volum2 / 0.4347826086956522 - 115); bar2_mc.bar_mc.onEnterFrame = function () { _root.volum2 = int(0.4347826086956522 * (this._x + 115)); _root.volum3 = int(0.4347826086956522 * (this._x + 115)); _root.mySound.setVolume(_root.volum2); _root.mySound2.setVolume(_root.volum3); bar2_mc.persen2 = _root.volum2 + ' %'; }; bar2_mc.indi_mc.onPress = function () { klik(); startDrag(bar2_mc.bar_mc, true, -115, 0, 115, 0); }; bar2_mc.bar_mc.onRollOver = function () { over(); }; bar2_mc.indi_mc.onReleaseOutside = function () { over(); stopDrag(); }; bar2_mc.indi_mc.onRelease = bar2_mc.indi_mc.onReleaseOutside; bar3_mc.bar_mc._x = Math.ceil(_root.volum3 / 0.4347826086956522 - 115); bar3_mc.bar_mc.onEnterFrame = function () { _root.volum3 = int(0.4347826086956522 * (this._x + 115)); if (_root.volum3 >= 50) { } else {} bar2_mc.persen3 = _root.volum3 + ' %'; }; bar3_mc.indi_mc.onPress = function () { klik(); startDrag(bar3_mc.bar_mc, true, -115, 0, 115, 0); }; bar3_mc.bar_mc.onRollOver = function () { over(); }; bar3_mc.indi_mc.onReleaseOutside = function () { over(); stopDrag(); }; bar3_mc.indi_mc.onRelease = bar3_mc.indi_mc.onReleaseOutside; speed1.xdata = 'SLOW'; speed2.xdata = 'NORMAL'; speed3.xdata = 'FAST'; cekSpeed(); speed1.onRollOver = function () { over(); }; speed1.onRelease = function () { klik(); speedGame = 'SLOW'; cekSpeed(); }; speed2.onRollOver = function () { over(); }; speed2.onRelease = function () { klik(); speedGame = 'NORMAL'; cekSpeed(); }; speed3.onRollOver = function () { over(); }; speed3.onRelease = function () { klik(); speedGame = 'FAST'; cekSpeed(); }; } movieClip 5252 { frame 1 { stop(); } } frame 214 { function aturSaja() { gotoAndPlay(211); } play(); quit_btn.onRollOver = function () { over(); }; quit_btn.onRelease = function () { klik(); trans_mc.gotoAndPlay(2); }; } movieClip 5256 { instance of movieClip 5166 { onClipEvent (release) { getURL('http://www.armorgames.com', '_blank'); } } } movieClip 5259 { } frame 968 { gotoAndPlay('credit'); } frame 969 { function aturSaja() { gotoAndStop(211); } stop(); quit_btn.onRollOver = function () { over(); }; quit_btn.onRelease = function () { klik(); removeMovieClip(info_mc2); trans_mc.gotoAndPlay(2); }; next_btn.onRollOver = function () { over(); }; next_btn.onRelease = function () { klik(); _root.gotoAndStop(_root._currentframe + 1); }; } frame 970 { prev_btn.onRollOver = function () { over(); }; prev_btn.onRelease = function () { klik(); _root.gotoAndStop(_root._currentframe - 1); }; } frame 975 { next_btn.onRollOver = function () { over(); }; prev_btn.onRollOver = function () { over(); }; next_btn.onRelease = function () { klik(); _root.gotoAndStop(_root._currentframe + 1); }; prev_btn.onRelease = function () { klik(); _root.gotoAndStop(_root._currentframe - 1); }; } frame 976 { function aturSaja() { gotoAndStop(211); } function overItem() { over(); myStr = new String(this); if (myStr.length == 14) { pilihAbil = Number(myStr.substr(myStr.length - 1, 1)); } else { if (myStr.length == 15) { pilihAbil = Number(myStr.substr(myStr.length - 2, 2)); } else { if (myStr.length == 16) { pilihAbil = Number(myStr.substr(myStr.length - 1, 3)); } } } jedaInfo2 = 0; adaJedaInfo = true; info2.nama = ''; info2.informasi = ''; jenisOver = 'attack'; } function outItem() { adaJedaInfo = false; info2.nama = ''; info2.informasi = ''; info2._visible = false; info2._alpha = 0; } function enterInfo2() { if (adaJedaInfo == true) { ++jedaInfo2; if (jedaInfo2 >= 10) { info2._visible = true; if (info2._alpha <= 100) { info2._alpha += 30; } } } else { info2._visible = false; } info2._x = _root._xmouse + 130; info2._y = _root._ymouse; indi = pilihAbil; if (jenisOver == 'attack') { info2.nama = jenisAbility[indi]; info2.informasi = infoAbility[indi]; } else { if (jenisOver == 'item') { info2.nama = jenisItem[indi]; info2.informasi = infoItem[indi]; } } } stop(); quit_btn.onRollOver = function () { over(); }; next_btn.onRollOver = function () { over(); }; prev_btn.onRollOver = function () { over(); }; quit_btn.onRelease = function () { klik(); removeMovieClip(info_mc2); trans_mc.gotoAndPlay(2); }; next_btn.onRelease = function () { klik(); gotoAndStop('item'); }; prev_btn.onRelease = function () { klik(); _root.gotoAndStop(_root._currentframe - 1); }; i = 2; while (i <= 17) { _root['no' + i] = i - 1 + '.'; _root['nama' + i] = jenisAbility[i]; _root['element' + i] = element[elementAbility[i]]; _root['price' + i] = hargaAbility[i]; _root['aura' + i] = auraAbility[i]; _root['tanya' + i].onRollOver = overItem; _root['tanya' + i].onRollOut = outItem; _root['tanya' + i].onReleaseOutside = outItem; _root['tanya' + i]._visible = true; _root['icon' + i]._visible = true; _root['icon' + i].gotoAndStop(i); ++i; } info2 = attachMovie('info_mc2', 'info_mc2', dalamInfo2); info2._x = -500; info2._y = -500; info2._visible = false; info2.onEnterFrame = enterInfo2; } frame 977 { function aturSaja() { gotoAndStop(211); } function overItem() { over(); myStr = new String(this); if (myStr.length == 14) { pilihAbil = Number(myStr.substr(myStr.length - 1, 1)); } else { if (myStr.length == 15) { pilihAbil = Number(myStr.substr(myStr.length - 2, 2)); } else { if (myStr.length == 16) { pilihAbil = Number(myStr.substr(myStr.length - 1, 3)); } } } jedaInfo2 = 0; adaJedaInfo = true; info2.nama = ''; info2.informasi = ''; jenisOver = 'item'; } function outItem() { adaJedaInfo = false; info2.nama = ''; info2.informasi = ''; info2._visible = false; info2._alpha = 0; } function enterInfo2() { if (adaJedaInfo == true) { ++jedaInfo2; if (jedaInfo2 >= 10) { info2._visible = true; if (info2._alpha <= 100) { info2._alpha += 30; } } } else { info2._visible = false; } info2._x = _root._xmouse + 130; info2._y = _root._ymouse; indi = pilihAbil; if (jenisOver == 'attack') { info2.nama = jenisAbility[indi]; info2.informasi = infoAbility[indi]; } else { if (jenisOver == 'item') { info2.nama = jenisItem[indi]; info2.informasi = infoItem[indi]; } } } stop(); quit_btn.onRollOver = function () { over(); }; next_btn.onRollOver = function () { over(); }; prev_btn.onRollOver = function () { over(); }; quit_btn.onRelease = function () { klik(); removeMovieClip(info_mc2); trans_mc.gotoAndPlay(2); }; next_btn.onRelease = function () { klik(); gotoAndStop('weapon'); }; prev_btn.onRelease = function () { klik(); gotoAndStop('spell'); }; i = 1; while (i <= 16) { if (jenisItem[i] != undefined) { _root['no' + i] = i + '.'; _root['nama' + i] = jenisItem[i]; _root['element' + i] = element[elementItem[i]]; _root['price' + i] = hargaItem[i]; _root['aura' + i] = '-'; _root['tanya' + i].onRollOver = overItem; _root['tanya' + i].onRollOut = outItem; _root['tanya' + i].onReleaseOutside = outItem; _root['tanya' + i]._visible = true; _root['icon' + i]._visible = true; _root['icon' + i].gotoAndStop(i + 100); } else { _root['no' + i] = ''; _root['nama' + i] = ''; _root['element' + i] = ''; _root['price' + i] = ''; _root['aura' + i] = ''; _root['tanya' + i]._visible = false; _root['icon' + i]._visible = false; } ++i; } info2 = attachMovie('info_mc2', 'info_mc2', dalamInfo2); info2._x = -500; info2._y = -500; info2._visible = false; info2.onEnterFrame = enterInfo2; } frame 978 { function aturSaja() { gotoAndStop(211); } function overWeapon() { over(); myStr = new String(this); if (myStr.length == 14) { pilihAbil = Number(myStr.substr(myStr.length - 1, 1)); } else { if (myStr.length == 15) { pilihAbil = Number(myStr.substr(myStr.length - 2, 2)); } else { if (myStr.length == 16) { pilihAbil = Number(myStr.substr(myStr.length - 1, 3)); } } } jedaInfo2 = 0; adaJedaInfo = true; info2.nama = ''; info2.informasi = ''; jenisOver = 'weapon'; } function outWeapon() { adaJedaInfo = false; info2.nama = ''; info2.informasi = ''; info2._visible = false; info2._alpha = 0; } function enterInfo2() { if (adaJedaInfo == true) { ++jedaInfo2; if (jedaInfo2 >= 10) { info2._visible = true; if (info2._alpha <= 100) { info2._alpha += 30; } } } else { info2._visible = false; } info2._x = _root._xmouse + 130; info2._y = _root._ymouse; indi = pilihAbil; if (jenisOver == 'attack') { info2.nama = jenisAbility[indi]; info2.informasi = infoAbility[indi]; } else { if (jenisOver == 'item') { info2.nama = jenisItem[indi]; info2.informasi = infoItem[indi]; } else { if (jenisOver == 'weapon') { info2.nama = jenisWeapon[indi]; info2.informasi = infoWeapon[indi]; } } } } stop(); quit_btn.onRollOver = function () { over(); }; next_btn.onRollOver = function () { over(); }; prev_btn.onRollOver = function () { over(); }; quit_btn.onRelease = function () { klik(); removeMovieClip(info_mc2); trans_mc.gotoAndPlay(2); }; next_btn.onRelease = function () { klik(); _root.gotoAndStop(_root._currentframe + 1); }; prev_btn.onRelease = function () { klik(); gotoAndStop('item'); }; i = 1; while (i <= 16) { if (jenisWeapon[i] != undefined) { _root['no' + i] = i + '.'; _root['nama' + i] = jenisWeapon[i]; _root['element' + i] = element[elementWeapon[i]]; _root['price' + i] = '-'; _root['aura' + i] = '-'; _root['tanya' + i].onRollOver = overWeapon; _root['tanya' + i].onRollOut = outWeapon; _root['tanya' + i].onReleaseOutside = outWeapon; _root['tanya' + i]._visible = true; _root['icon' + i]._visible = true; _root['icon' + i].gotoAndStop(i + 200); } else { _root['no' + i] = ''; _root['nama' + i] = ''; _root['element' + i] = ''; _root['price' + i] = ''; _root['aura' + i] = ''; _root['tanya' + i]._visible = false; _root['icon' + i]._visible = false; } ++i; } info2 = attachMovie('info_mc2', 'info_mc2', dalamInfo2); info2._x = -500; info2._y = -500; info2._visible = false; info2.onEnterFrame = enterInfo2; } frame 979 { next_btn.onRollOver = function () { over(); }; prev_btn.onRollOver = function () { over(); }; next_btn.onRelease = function () { klik(); _root.gotoAndStop(_root._currentframe + 1); }; prev_btn.onRelease = function () { klik(); _root.gotoAndStop(_root._currentframe - 1); }; } frame 999 { stop(); if (sudahKePeta == true) { label_mc._visible = false; sudahKePeta = false; musicIstana(); box_mc._visible = true; msgBox_mc4.info = 'This is the main map, click on destination to proceed to the chosen city. You can purchase items in the market, view your troops status, and to train for combat. All in the North West screen.'; msgBox_mc4._visible = true; msgBox_mc4.gotoAndPlay(1); box_mc.shop_btn.enabled = false; box_mc.status_btn.enabled = false; box_mc.train_btn.enabled = false; box_mc.save_btn.enabled = false; box_mc.options_btn.enabled = false; } else { label_mc._visible = true; box_mc._visible = true; msgBox_mc4._visible = false; msgBox_mc4.gotoAndStop(1); box_mc.shop_btn.enabled = true; box_mc.status_btn.enabled = true; box_mc.train_btn.enabled = true; box_mc.save_btn.enabled = true; box_mc.options_btn.enabled = true; tombolAtas(); } msgBox_mc4.ok_btn.onRollOver = function () { over(); }; msgBox_mc4.ok_btn.onRelease = function () { klik(); label_mc._visible = true; msgBox_mc4._visible = false; box_mc.shop_btn.enabled = true; box_mc.status_btn.enabled = true; box_mc.train_btn.enabled = true; box_mc.save_btn.enabled = true; box_mc.options_btn.enabled = true; tombolAtas(); }; } movieClip 5575 { } movieClip 5577 { } movieClip 5579 { } movieClip 5581 { } movieClip 5583 { } movieClip 5585 { } movieClip 5587 { } movieClip 5589 { } movieClip 5591 { } movieClip 5593 { } movieClip 5595 { } movieClip 5614 { } movieClip 5617 { frame 1 { stop(); } } movieClip 5639 { frame 1 { stop(); } } movieClip 5640 { } movieClip 5643 { frame 10 { stop(); } } movieClip 5647 { } frame 1028 { function aturSaja() { gotoAndStop(1462); } stop(); trans_mc.gotoAndPlay(2); } frame 1029 { stop(); tombolAtas(); } frame 1038 { function zmulaiSerang() { gotoAndStop(1195); } stop(); } movieClip 5648 { frame 10 { _root.backFight(); } frame 35 { stop(); _root.zmulaiSerang(); } } frame 1039 { stop(); tombolAtas(); box_mc.shop_btn.enabled = false; box_mc.shop_btn._alpha = 50; } frame 1048 { function zmulaiSerang() { gotoAndStop(1195); } stop(); } frame 1049 { stop(); tombolAtas(); } frame 1058 { function aturSaja() { gotoAndStop(2157); } stop(); trans_mc.gotoAndPlay(2); } frame 1059 { stop(); tombolAtas(); box_mc.shop_btn.enabled = false; box_mc.shop_btn._alpha = 50; box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } frame 1067 { function zmulaiSerang() { gotoAndStop(1195); } stop(); lewatSini = false; } frame 1068 { stop(); tombolAtas(); box_mc.shop_btn.enabled = false; box_mc.shop_btn._alpha = 50; } frame 1069 { lewatSini = true; } frame 1078 { function aturSaja() { gotoAndStop(2187); } stop(); trans_mc.gotoAndPlay(2); } frame 1079 { stop(); tombolAtas(); box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } frame 1086 { function zmulaiSerang() { gotoAndStop(1195); } stop(); } frame 1087 { stop(); tombolAtas(); box_mc.shop_btn.enabled = false; box_mc.shop_btn._alpha = 50; box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } frame 1094 { function zmulaiSerang() { gotoAndStop(1195); } stop(); lewatSini = false; lewatSini2 = true; } frame 1095 { stop(); tombolAtas(); } frame 1096 { lewatSini2 = false; } frame 1102 { function aturSaja() { gotoAndStop(2332); } lewatSini3 = true; trans_mc.gotoAndPlay(2); } frame 1103 { stop(); tombolAtas(); box_mc.shop_btn.enabled = false; box_mc.shop_btn._alpha = 50; box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } frame 1111 { function zmulaiSerang() { gotoAndStop(1195); } stop(); jenisMaen = 'tanding'; } frame 1112 { stop(); tombolAtas(); box_mc.shop_btn.enabled = false; box_mc.shop_btn._alpha = 50; } frame 1122 { function aturSaja() { gotoAndStop(2382); } stop(); trans_mc.gotoAndPlay(2); } movieClip 5649 { frame 10 { _root.backOrangMati(); } frame 35 { stop(); _root.zmulaiSerang(); } } frame 1179 { function aturSaja() { gotoAndStop(211); } function initData() { msgBox_mc._visible = false; msgBox_mc.bar._visible = false; quit_btn.enabled = true; wi = 0; while (wi <= 9) { xloadData(wi); if (cnamaData == undefined) { cnamaData = 'Empty'; } _root['data' + wi].data = cnamaData; _root['data' + wi].onRollOver = overData; _root['data' + wi].onRollOut = outData; _root['data' + wi].onRelease = klikData; ++wi; } } function overData() { over(); kata = new String(this); indi = Number(kata.substr(kata.length - 1, 1)); xloadData(indi); cekData(); if (vmapKe == '-') { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } function cekData() { if (cmapKe == undefined) { vmapKe = '-'; } else { vmapKe = cmapKe; } if (cbykKarakter == undefined) { vbykKarakter = '-'; } else { vbykKarakter = cbykKarakter; } if (ctotalMoney == undefined) { vtotalMoney = '-'; } else { vtotalMoney = '$' + ctotalMoney; } if (ctotalTurn == undefined) { vtotalTurn = '-'; } else { vtotalTurn = ctotalTurn; } if (ctotalKilled == undefined) { vtotalKilled = '-'; } else { vtotalKilled = ctotalKilled; } } function outData() { this.gotoAndStop(1); vmapKe = '-'; vbykKarakter = '-'; vtotalMoney = '-'; vtotalTurn = '-'; vtotalKilled = '-'; } function outData2() { vmapKe = '-'; vbykKarakter = '-'; vtotalMoney = '-'; vtotalTurn = '-'; vtotalKilled = '-'; } function klikData() { klik(); kata = new String(this); zindi = Number(kata.substr(kata.length - 1, 1)); if (xjenisData == 'save') { wi = 0; while (wi <= 9) { delete _root['data' + wi].onRollOver; delete _root['data' + wi].onRollOut; delete _root['data' + wi].onRelease; ++wi; } quit_btn.enabled = false; msgBox_mc._visible = true; msgBox_mc.gotoAndStop(1); msgBox_mc.dataName = _root['data' + zindi].data; msgBox_mc.ok_btn._visible = true; msgBox_mc.cancel_btn._visible = true; msgBox_mc.bar._visible = false; Selection.setFocus(msgBox_mc.nama); msgBox_mc.ok_btn.onRollOver = function () { over(); }; msgBox_mc.cancel_btn.onRollOver = msgBox_mc.ok_btn.onRollOver; msgBox_mc.cancel_btn.onRelease = function () { klik(); initData(); }; msgBox_mc.ok_btn.onRelease = function () { klik(); msgBox_mc.ok_btn._visible = false; msgBox_mc.cancel_btn._visible = false; msgBox_mc.bar._visible = true; msgBox_mc.bar.tipe = 'Saving..'; namaData = msgBox_mc.dataName; simpanData(zindi); }; } else { if (xjenisData == 'load') { if (this._currentframe == 3) { wi = 0; while (wi <= 9) { delete _root['data' + wi].onRollOver; delete _root['data' + wi].onRollOut; delete _root['data' + wi].onRelease; ++wi; } quit_btn.enabled = false; msgBox_mc._visible = true; msgBox_mc.gotoAndStop(2); msgBox_mc.ok_btn._visible = false; msgBox_mc.cancel_btn._visible = false; msgBox_mc.bar._visible = true; msgBox_mc.bar.tipe = 'Loading..'; loadData(zindi); } } } this.gotoAndStop(1); } stop(); outData2(); initData(); if (xjenisData == 'save') { saveload.gotoAndStop(2); jenis_mc.gotoAndStop(1); quit_btn.enabled = true; quit_btn.onRollOver = function () { over(); }; quit_btn.onRelease = function () { xcekKemana(); }; } else { if (xjenisData == 'load') { saveload.gotoAndStop(1); jenis_mc.gotoAndStop(2); quit_btn.enabled = true; quit_btn.onRollOver = function () { over(); }; quit_btn.onRelease = function () { klik(); trans_mc.gotoAndPlay(2); }; } } } movieClip 5651 { frame 1 { stop(); } } movieClip 5654 { frame 1 { stop(); } } movieClip 5674 { frame 1 { stop(); } } movieClip 5675 { frame 1 { stop(); } } frame 1180 { function aturSaja() { gotoAndStop(1276); } stop(); musicStory(); _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 1195 { function xcekMaping1() { mapping = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; } frame 1195 { function xcekMaping2() { if (mapKe == 12) { if (jenisMaen == 'training') { mapping = [[1, 1, -3, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 84, 85, 85], [1, 1, 1, 1, 1, 1, 1, 1, 1, -3, 1, -3, 1, 10, 1, 1, 44, 86, -1, -1], [10, 1, 1, 1, 1, 1, -3, 10, 1, 1, 1, 1, 1, 1, -3, 1, 1, 86, -1, -1], [1, 1, -3, 9, 0, 9, 0, 9, 0, 9, 0, 9, 0, 9, 0, 9, 0, 86, -1, -1], [1, 10, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 44, 1, 1, 86, -1, -1], [1, 1, 7, 1, 1, 1, 1, 15, 1, 28, 1, 29, 1, 1, 1, 1, 1, 86, -1, -1], [1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 44, 1, 86, -1, -1], [1, -3, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 86, -1, -1], [1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 44, 86, -1, -1], [10, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 44, 1, 1, 86, -1, -1], [1, 1, 4, 1, 1, 1, 1, 1, 0, 11, 0, 0, 1, 1, 1, 1, 44, 86, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 86, -1, -1], [1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 44, 1, 1, 86, -1, -1], [1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 86, -1, -1], [-3, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 86, -1, -1], [1, 1, 0, 1, 1, 2, 1, 3, 1, 16, 1, 45, 1, 1, 1, 1, 44, 86, -1, -1], [10, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 44, 1, 1, 86, -1, -1], [1, 1, -3, 9, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 9, 0, 86, -1, -1], [1, 1, 1, 1, 1, 1, -3, 10, 1, 1, 1, 1, 1, 1, 10, 1, 1, 86, -1, -1], [1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 44, 86, -1, -1]]; } else { mapping = [[-5, -5, -5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1, 14], [-5, -5, -5, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 14, 14, 1], [-5, -5, -5, 1, 1, -3, 1, 38, 1, 1, 1, 38, 1, 1, 1, -3, 1, 1, 1, 14], [-5, -5, -5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 14, 1], [-5, -5, -5, -6, 1, 1, 1, 1, 1, 1, 1, -3, 1, 36, 1, 1, 1, -6, 1, 14], [-5, -5, -5, 1, 1, 4, 1, -6, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1], [-5, -5, -5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 14, 1, 14], [-5, -5, -5, 1, 1, 36, 1, 35, 1, 38, 1, 35, 1, 1, 1, 1, 1, -6, 14, 14], [-5, -5, -5, -6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -6, 1, 1, 14, 1, 1], [-5, -5, -5, 1, 1, 1, 1, 1, 1, 1, -6, 1, 1, 1, 1, 1, 1, 1, 14, 14], [-5, -5, -5, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1], [-5, -5, -5, -3, 1, 1, 1, 1, -3, 1, 1, -3, 1, 1, -6, 1, 1, 14, 1, 14], [-5, -5, -5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1], [-5, -5, -5, 1, 1, -6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 14, 14], [-5, -5, -5, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, -3, 14, 14], [-5, -5, -5, 1, 1, 1, 1, 1, 1, 1, 1, -6, 1, 1, 1, 1, 1, 14, 1, 1], [-5, -5, -5, -6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 14], [-5, -5, -5, 1, 1, 2, 28, 3, 29, 1, 1, 15, 45, 16, 1, -6, 1, 14, 14, 1], [-5, -5, -5, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1], [-5, -5, -5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1, 14]]; } } else { if (mapKe == 13) { if (jenisMaen == 'training') { mapping = [[-3, 1, 25, 0, 25, 0, 25, 0, 25, 0, 0, 0, 25, 0, 25, 0, 25, 0, 25, 0], [19, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -3, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 15, 1, 28, 1, 29, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, -3, 1, 1, 1, 1, 1, 1, 45, 1, 1, 1, 1, 1, 1, 1, 1, -3, 0], [-3, 0, 25, 0, 25, 0, 25, 0, 25, 0, 0, 0, 25, 0, 25, 0, 25, 0, 25, 0]]; } else { mapping = [[0, 0, 93, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 97, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 97, 1, 1, 1, 35, 1, 36, 1, 36, 1, 35, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 97, 1, 1, 1, 36, 1, 35, 1, 35, 1, 36, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 97, 1, 1, 4, 1, 4, 1, 5, 1, 5, 1, 1, 1, 1, 1, 1, 1], [0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 97, 1, 1, 38, 1, 38, 1, 38, 1, 38, 1, 1, 1, 1, 1, 1, 1], [0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 97, 1, 1, 2, 28, 3, 29, 1, 1, 15, 45, 16, 1, 1, 1, 1, 1, 1], [0, 0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 97, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; } } else { if (mapKe == 14) { if (jenisMaen == 'training') { mapping = [[-3, 1, 25, 0, 25, 0, 25, 0, 25, 0, 0, 0, 25, 0, 25, 0, 25, 0, 25, 0], [19, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -3, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 15, 1, 28, 1, 29, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, -3, 1, 1, 1, 1, 1, 1, 45, 1, 1, 1, 1, 1, 1, 1, 1, -3, 0], [-3, 0, 25, 0, 25, 0, 25, 0, 25, 0, 0, 0, 25, 0, 25, 0, 25, 0, 25, 0]]; } else { mapping = [[0, 0, 93, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 84, 85, 50, 85, 51], [0, 0, 0, 65, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 86, -1, -1, -1, -1], [0, 0, 0, 1, 1, 0, 94, 1, 1, 1, 1, 0, 94, 1, 1, 86, 96, -1, -1, -1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 67, 86, 95, -1, -1, -1], [0, 0, 0, 1, 1, 0, 0, 0, 1, 4, 1, 0, 0, 0, 1, 86, 96, -1, -1, -1], [0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 86, -1, -1, -1, -1], [0, 0, 0, 1, 4, 0, 94, 0, 1, 1, 1, 0, 94, 0, 38, 86, -1, -1, -1, -1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 52, 1, 1, 1, 1, 1, 86, 96, -1, -1, -1], [0, 0, 0, 66, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 86, 95, -1, -1, -1], [0, 0, 0, 1, 1, 0, 0, 0, 2, 28, 29, 0, 0, 0, 5, 86, 96, -1, -1, -1], [0, 0, 0, 1, 1, 0, 94, 0, 1, 45, 1, 0, 94, 0, 1, 86, -1, -1, -1, -1], [0, 0, 0, 1, 35, 1, 1, 1, 3, 15, 16, 1, 1, 1, 36, 86, 96, -1, -1, -1], [0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 66, 86, 95, -1, -1, -1], [0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 86, 96, -1, -1, -1], [0, 0, 0, 1, 36, 0, 94, 0, 35, 1, 1, 0, 94, 0, 1, 86, -1, -1, -1, -1], [0, 0, 0, 67, 1, 1, 1, 1, 1, 1, 38, 1, 1, 5, 1, 86, -1, -1, -1, -1], [0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 86, 96, -1, -1, -1], [0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 86, 95, -1, -1, -1], [0, 0, 0, 1, 1, 0, 94, 0, 1, 1, 1, 0, 94, 0, 65, 86, 96, -1, -1, -1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 86, -1, -1, -1, -1]]; } } else { if (mapKe == 15) { if (jenisMaen == 'training') { mapping = [[-3, 1, 25, 0, 25, 0, 25, 0, 25, 0, 0, 0, 25, 0, 25, 0, 25, 0, 25, 0], [19, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -3, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 15, 1, 28, 1, 29, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, -3, 1, 1, 1, 1, 1, 45, 1, 52, 1, 1, 1, 1, 1, 1, 1, -3, 0], [-3, 0, 25, 0, 25, 0, 25, 0, 25, 0, 0, 0, 25, 0, 25, 0, 25, 0, 25, 0]]; } else { mapping = [[1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, -9, 1, 1, 1, -3, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, -3, 1, -3, 1], [1, 1, 1, 1, 13, -3, 1, 36, -3, -3, -3, -3, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, -3, 1, -3, 1, 1, 1, 1, -3, -3, 1, 1, 13, -3, -3, 1, 1], [1, 1, 1, 1, 1, 1, 4, 1, -3, 1, 4, 1, -3, -3, -3, -3, -3, 1, 1, 1], [1, 1, -3, 1, 1, -3, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, -3, 1], [1, 1, 1, 1, 1, 1, -3, 1, 1, -3, 1, 1, 36, 1, 5, -3, 1, 1, 1, 1], [1, 1, 1, -3, 1, -3, 1, 1, -3, 1, 1, -3, -3, 1, 1, 1, 1, -3, 1, 1], [1, 1, 1, 1, 35, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, -3, 1, 1, 1, 1], [1, 1, -3, 1, 1, 1, 1, 1, -3, 5, 1, 1, 1, 1, 1, 1, 35, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, -3, 13, -3, 1, -3, 1, 1, -3, 1, -3, 1, -3, 1], [1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, -3, 13, 1, 1, 1, 1, 1], [1, -3, 1, 1, 1, 1, 1, 1, -3, 1, 1, -3, 1, 1, -3, -3, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1], [1, 1, 1, 1, -3, 1, 1, 1, 1, -3, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1], [1, 1, -3, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, -3, 1, -3, 1, 1], [1, 1, 1, 1, 1, -3, 1, 1, -3, 1, 1, 1, -3, 1, 1, 1, 1, 1, -3, 1], [1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 15, 1, 1, -3, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, -3, 16, 1, -3, 28, 1, -3, 29, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 45, 1, -3, 52, 1, 1, 1, 1, 1, 1, 1, 1]]; } } else { if (mapKe == 16) { if (jenisMaen == 'training') { mapping = [[1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, -3, 1, -3, 1], [1, 1, 1, 1, 1, -3, 1, 1, -3, -3, -3, -3, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, -3, 1, 15, 1, 28, 1, 29, -3, -3, 1, 1, 1, -3, -3, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, -3, -3, -3, -3, -3, 1, 1, 1], [1, 1, -3, 1, 1, -3, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, -3, 1], [1, 1, 1, 1, 1, 1, -3, 1, 1, -3, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1], [1, 1, 1, -3, 1, -3, 1, 1, -3, 1, 1, -3, -3, 1, 1, 1, 1, -3, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, -3, 1, 1, 1, 1], [1, 1, -3, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, -3, 1, -3, 1, -3, 1, 1, -3, 1, -3, 1, -3, 1], [1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1], [1, -3, 1, 1, 1, 1, 1, 1, -3, 1, 1, -3, 1, 1, -3, -3, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1], [1, 1, 1, 1, -3, 1, 1, 1, 1, -3, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1], [1, 1, -3, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, -3, 1, -3, 1, 1], [1, 1, 1, 1, 1, -3, 1, 1, -3, 1, 1, 1, -3, 1, 1, 1, 1, 1, -3, 1], [1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 16, 1, 1, 1, -3, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, -3, 45, 1, 52, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; } else { mapping = [[53, 53, 53, 78, 78, 53, 53, 78, -9, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 78, 78, 53, 78, 78, 78, 53, 78, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [78, 53, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8], [53, 78, 78, 53, 53, 78, 53, 53, 53, 78, 53, 78, 53, 78, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 78, 78, 53, 78, 78, 53, 78, 53, 78, 78, 53, 53, 53, 78, 53, 78], [53, 78, 78, 53, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, 53, 53, 78, 53, 53], [-8, -8, -8, -8, -8, 78, 53, 78, 78, 78, 53, 53, 53, 53, -8, -8, 53, 53, 53, 53], [53, 78, 78, 53, 53, 53, 78, 53, 78, 53, 78, 53, 78, 53, 78, 53, 53, 78, 53, 78], [53, 53, 53, 53, 53, 78, 53, 78, 78, 78, 53, 78, 78, 53, 53, 78, 53, 78, 53, 53], [78, 53, 78, 53, -8, -8, -8, -8, -8, -8, -8, -8, -8, 53, 53, 53, 53, 53, 78, 53], [53, 78, 78, 78, 78, 78, 78, 78, 78, 78, 53, 53, -8, 53, 53, 53, 53, 53, 53, 53], [53, 53, 78, 53, 78, 78, 53, 78, 53, 78, 53, 53, -8, -8, -8, -8, -8, 53, 53, 53], [53, 53, 78, 78, 78, 78, 53, 53, 53, 78, 53, 78, 53, 53, 53, 53, -8, -8, -8, 53], [-8, -8, -8, -8, -8, -8, -8, 53, 53, 53, 53, 53, 78, 53, 53, 53, 53, 78, -8, 53], [53, 53, 78, 78, 78, 53, -8, 53, 53, 53, 53, 53, 53, 53, 78, 53, 53, 53, -8, -8], [53, 53, 53, 78, 53, 53, -8, -8, -8, -8, 53, 53, 53, 53, 53, 53, 53, 78, 53, 53], [53, 53, 53, 53, 53, 78, 53, 53, 53, -8, -8, -8, -8, -8, -8, -8, 53, 53, 78, 53], [53, 53, 53, 53, 53, 53, 53, 2, 3, 15, 28, 78, 53, 78, 78, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 78, 45, 53, 52, 53, 29, 53, 53, 53, 78, 53, 78, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 78, 53, 53, 53, 53, 53, 53]]; } } else { if (mapKe == 17) { if (jenisMaen == 'training') { mapping = [[-3, 1, 25, 0, 25, 0, 25, 0, 25, 0, 0, 0, 25, 0, 25, 0, 25, 0, 25, 0], [19, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -3, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 15, 1, 28, 1, 29, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, -3, 1, 1, 1, 1, 1, 45, 1, 52, 1, 1, 1, 1, 1, 1, 1, -3, 0], [-3, 0, 25, 0, 25, 0, 25, 0, 25, 0, 0, 0, 25, 0, 25, 0, 25, 0, 25, 0]]; } else { mapping = [[53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 54, 53, 54, 53, 54, 53, 54, 53, 54, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 54, 53, 54, 53, 54, 53, 54, 53, 54, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 18, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 5, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 4, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 35, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 36, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 5, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 4, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 2, 3, 15, 28, 29, 53, 53, 53, 53, 53, 53, 53], [53, 53, 35, 53, 53, 53, 53, 53, 53, 45, 53, 52, 53, 53, 53, 53, 36, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 38, 53, 38, 53, 38, 53, 38, 53, 38, 53, 53, 53, 53, 53]]; } } else { if (mapKe == 18) { if (jenisMaen == 'training') { mapping = [[-3, 1, 25, 0, 25, 0, 25, 0, 25, 0, 0, 0, 25, 0, 25, 0, 25, 0, 25, 0], [19, 1, -3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -3, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 15, 1, 28, 1, 29, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [0, 1, -3, 1, 1, 1, 1, 1, 45, 1, 52, 1, 1, 1, 1, 1, 1, 1, -3, 0], [-3, 0, 25, 0, 25, 0, 25, 0, 25, 0, 0, 0, 25, 0, 25, 0, 25, 0, 25, 0]]; } else { mapping = [[53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, -8, 53, 53, 53, 53, 53, 53, 53, 53, 53, 55, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 55, -8, 53, 53, 55, 53, 53, 53, 55, 53, 53, 55, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 55, 53, 53, 53, -8, 53, 53, 53, 53, 53, -8, 53, 53], [53, 53, 53, 53, 53, 53, -8, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, -8, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, -8, 53, 53, 53, 53, 53, 53, 53, 53, 53, -8, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, -8, 53, 53, -8, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 55, 53, 53, 55, 53, 53, -8, 53, 53, 53, -8, 53, 53, 55, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 55, 53, 53, 53, 53], [53, 53, 53, 53, 53, -8, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 2, 3, 15, 28, 29, 53, 53, 53, 53, 53, 53, 53], [53, 53, 53, 53, 53, 53, 53, 53, 53, 45, 53, 52, 53, 53, 53, 53, 53, 53, -8, 53], [53, 53, 53, 53, 53, 53, -8, 53, 53, 53, 53, 53, -8, 53, 53, 53, 53, 53, 53, 53]]; } } } } } } } } } } frame 1195 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { function initMulai() { adaApiKehidupan = false; if (mapKe == 15 && jenisMaen != 'training') { adaApiKehidupan = true; } initAwal(); initKotak(); initChara(); initMsgBox2(); xcekMaping1(); xcekMaping2(); buatKotak(); if (jenisMaen == 'training') { initObjective(); } else { cekDialog(); } musicCombat1(); _quality = 'High'; } function saveChara() { xlevelJagoan = new Array(); xexpJagoan = new Array(); i = 0; while (i <= totChara) { xlevelJagoan[i] = levelJagoan[i]; xexpJagoan[i] = expJagoan[i]; ++i; } } function initAwal() { namaJagoan = new Array(); incLive = new Array(); incAttack = new Array(); incDefense = new Array(); incAura = new Array(); liveJagoan = new Array(); totLiveJagoan = new Array(); attackJagoan = new Array(); defenseJagoan = new Array(); auraJagoan = new Array(); totAuraJagoan = new Array(); maxJagoan = new Array(); accuracyJagoan = new Array(); speedJagoan = new Array(); rangeJagoan = new Array(); xrangeJagoan = new Array(); serangJagoan = new Array(); posJagoanI = new Array(); posJagoanJ = new Array(); undoJagoanI = new Array(); undoJagoanJ = new Array(); undoPosJagoan = new Array(); posMusuhI = new Array(); posMusuhJ = new Array(); moveJagoan = new Array(); actionJagoan = new Array(); jagoanType = new Array(); masihAktif = new Array(); musuhAktif = new Array(); moveMusuh = new Array(); actionMusuh = new Array(); poisonJagoan = new Array(); stunJagoan = new Array(); slowJagoan = new Array(); uncontrolJagoan = new Array(); poisonKeJagoan = new Array(); stunKeJagoan = new Array(); uncontrolKeJagoan = new Array(); slowKeJagoan = new Array(); attackDefenseIncJagoan = new Array(); dalamMusuh = new Array(); wwjenisMusuh = new Array(); bolehMati = new Array(); jenisJagoan = new Array(); jenisIblis = new Array(); hidupIblis = new Array(); turn = 1; money = 0; killed = 0; masihMain = true; } function initKotak() { panjang = 19; lebar = 19; if (mapKe == 1) { posAwalX = 450; posAwalY = 0; } else { if (mapKe == 2) { if (jenisMaen == 'training') { posAwalX = 450; posAwalY = -50; } else { posAwalX = 300; posAwalY = 0; } } else { if (mapKe == 3) { if (jenisMaen == 'training') { posAwalX = 400; posAwalY = 0; } else { posAwalX = 600; posAwalY = -100; } } else { if (mapKe == 4) { if (jenisMaen == 'training') { posAwalX = 650; posAwalY = -100; } else { posAwalX = 400; posAwalY = -100; } } else { if (mapKe == 5) { if (jenisMaen == 'training') { posAwalX = 650; posAwalY = -100; } else { posAwalX = 400; posAwalY = -100; } } else { if (mapKe == 6) { if (jenisMaen == 'training') { posAwalX = 650; posAwalY = -100; } else { posAwalX = 530; posAwalY = -100; } } else { if (mapKe == 7) { if (jenisMaen == 'training') { posAwalX = 650; posAwalY = -100; } else { posAwalX = 700; posAwalY = -100; } } else { if (mapKe == 8) { if (jenisMaen == 'training') { posAwalX = 650; posAwalY = -100; } else { posAwalX = 300; posAwalY = -100; } } else { if (mapKe == 9) { if (jenisMaen == 'training') { posAwalX = 650; posAwalY = -100; } else { posAwalX = 550; posAwalY = -100; } } else { if (mapKe == 10) { if (jenisMaen == 'training') { posAwalX = 650; posAwalY = -100; } else { posAwalX = 500; posAwalY = 0; } } else { if (mapKe == 11) { if (jenisMaen == 'training') { posAwalX = 650; posAwalY = -100; } else { posAwalX = 500; posAwalY = -100; } } else { if (mapKe == 15) { posAwalX = 500; posAwalY = -100; } else { if (mapKe >= 12) { posAwalX = 500; posAwalY = -100; } } } } } } } } } } } } } speedKotak = 15; pStage = 800; lStage = 600; pKotak = 90; lKotak = 80; lScroll = 25; bAwal = 0; bKotak = 40; scalaKotak = 145; scalaObyek = 17; posArrowJ = 9999; posArrowI = 9999; sudahHabis = 3; keKedip = 1; initDalam(); charaJagoan = 0; charaMusuh = 0; jalanKe = 0; jalanKomp = 0; increaseSpeed = 1; xnaik2 = 200; xpause = true; bisaKlik = true; sudahBallon = false; sekaliWaja = false; namaCharaJagoan = new Array(); namaCharaMusuh = new Array(); info = attachMovie('info_mc', 'info_mc', dalamInfo); info._x = 0; info._y = -35; info2 = attachMovie('info_mc2', 'info_mc2', dalamInfo2); info2._x = -500; info2._y = -500; info2._visible = false; info2.onEnterFrame = enterInfo2; } function initChara() { rangeMusuh = new Array(); xrangeMusuh = new Array(); serangMusuh = new Array(); xincLive = new Array(); xincAttack = new Array(); xincDefense = new Array(); xincAura = new Array(); namaMusuh = new Array(); liveMusuh = new Array(); totLiveMusuh = new Array(); attackMusuh = new Array(); defenseMusuh = new Array(); accuracyMusuh = new Array(); speedMusuh = new Array(); auraMusuh = new Array(); totAuraMusuh = new Array(); expMusuh = new Array(); maxMusuh = new Array(); poisonMusuh = new Array(); stunMusuh = new Array(); uncontrolMusuh = new Array(); slowMusuh = new Array(); stunKeMusuh = new Array(); poisonKeMusuh = new Array(); uncontrolKeMusuh = new Array(); slowKeMusuh = new Array(); attackDefenseIncMusuh = new Array(); musuhWeapon = new Array(); xmusuhWeapon = new Array(); jenisMusuh = new Array(); elementMusuh = new Array(); abilityMusuh = new Array(); xjenisRace = new Array(); itemMusuh = new Array(); xpunyaItem = new Array(); posMunculBaruI = new Array(); posMunculBaruJ = new Array(); posMunculBaru = 0; tipeAI = new Array(); tipeAir = new Array(); xtipeAir = new Array(); tipeUdara = new Array(); xtipeUdara = new Array(); bisaIlang = new Array(); xbisaIlang = new Array(); pemimpin1 = 99; pemimpin2 = 99; adaMusuhkah = true; if (mapKe != 1) break; if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { pemimpin = -99; diriJagoan = new Array(6, 6, 6, 6, 6, 6); diriMusuh = new Array(4, 4, 8, 2, 8, 2); levelMusuh = new Array(7, 7, 8, 7, 8, 7); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 120, 110, 110, 110, 110); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(2) + 9; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 1; itemMusuh[i][2] = 2; ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; ++i; } bykMusuh = diriMusuh.length; } cekPunya(); if (mapKe != 2) break; pemimpin = -99; if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { pemimpin = -99; diriJagoan = new Array(2, 2, 2, 2, 2, 2); diriMusuh = new Array(6, 6, 6, 6, 6, 6, 6, 6); levelMusuh = new Array(8, 7, 8, 7, 8, 8, 8, 8); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); rankMusuh = new Array('Ogrezantium Soldier', 'Commander', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); xagePlace = new Array(110, 120, 110, 110, 110, 110, 110, 110); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(2) + 10; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 1; itemMusuh[i][2] = 2; ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; ++i; } bykMusuh = diriMusuh.length; } cekPunya(); if (mapKe != 3) break; pemimpin = -99; if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { diriJagoan = new Array(2, 2, 2, 2, 2, 2, 6); diriMusuh = new Array(6, 6, 6, 2, 6, 2, 6, 2, 6, 6); levelMusuh = new Array(3, 4, 3, 3, 3, 3, 3, 4, 3, 3); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 120, 110, 110, 110, 110, 110, 120, 110, 110); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(3) + 11; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 1; itemMusuh[i][2] = 2; itemMusuh[i][3] = random(2) + 3; ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; ++i; } bykMusuh = diriMusuh.length; } cekPunya(); if (mapKe != 4) break; pemimpin = -99; if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { diriJagoan = new Array(2, 2, 2, 2, 2, 2); diriMusuh = new Array(6, 6, 6, 6, 6, 6, 6, 6, 6, 6); levelMusuh = new Array(3, 4, 3, 3, 3, 3, 3, 4, 3, 3); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 120, 110, 110, 110, 110, 110, 120, 110, 110); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(2) + 12; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 1; itemMusuh[i][2] = 2; itemMusuh[i][3] = random(2) + 3; ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; levelMusuh[i] += naikLevel; ++i; } i = 0; while (i <= diriMusuh.length) { j = 1; while (j <= 10) { if (abilityMusuh[i][j] == 11) { abilityMusuh[i][j] = 14; } ++j; } ++i; } bykMusuh = diriMusuh.length; } cekPunya(); if (mapKe != 5) break; pemimpin = -99; if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { diriJagoan = new Array(2, 2, 2, 2, 2, 2, '', '', '', '', '', '', '', '', '', 2, 2); diriMusuh = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2); levelMusuh = new Array(3, 4, 3, 3, 3, 3, 3, 4, 3, 3); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 120, 110, 110, 110, 110, 110, 120, 110, 110); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(3) + 10; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 1; itemMusuh[i][2] = 2; itemMusuh[i][3] = random(2) + 3; ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; ++i; } i = 0; while (i <= diriMusuh.length) { j = 1; while (j <= 10) { if (abilityMusuh[i][j] == 11) { abilityMusuh[i][j] = 14; } ++j; } ++i; } bykMusuh = diriMusuh.length; } cekPunya(); if (mapKe != 6) break; pemimpin = -99; if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { diriJagoan = new Array(2, 2, 2, 2, 2, 2, '', '', '', '', '', 2, 2); diriMusuh = new Array(6, 6, 6, 6, 6, 6, 6, 6, 2, 6, 2, 2); levelMusuh = new Array(3, 4, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 120, 110, 110, 110, 110, 110, 120, 110, 110, 110, 110); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(2) + 13; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 1; itemMusuh[i][2] = 2; itemMusuh[i][3] = random(2) + 3; ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; ++i; } i = 0; while (i <= diriMusuh.length) { j = 1; while (j <= 10) { if (abilityMusuh[i][j] == 11) { abilityMusuh[i][j] = 14; } ++j; } ++i; } bykMusuh = diriMusuh.length; } cekPunya(); if (mapKe == 7) { pemimpin = -99; if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { diriJagoan = new Array(2, 2, '', 2, 2, 2, '', '', '', '', '', 6, 6, 6, 6, '', '', 6, 6); diriMusuh = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2); levelMusuh = new Array(7, 8, 7, 7, 7, 7, 7, 9, 7, 7, 7, 7, 7, 7, 7, 7); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 120, 110, 110, 110, 110, 110, 120, 110, 110, 110, 110, 120, 120, 120, 120); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(3) + 13; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; ++i; } i = 0; while (i <= diriMusuh.length) { j = 1; while (j <= 10) { if (abilityMusuh[i][j] == 11) { abilityMusuh[i][j] = 14; } ++j; } ++i; } bykMusuh = diriMusuh.length; } cekPunya(); } else { if (mapKe == 8) { pemimpin = -99; if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { diriJagoan = new Array(2, 2, 2, 2, 2, 2, 2); diriMusuh = new Array(6, 6, 6, 6, 6, 6); levelMusuh = new Array(7, 8, 7, 7, 7, 7, 7, 9, 7, 7, 7, 7); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 120, 110, 110, 110, 110, 110, 120, 110, 110, 110, 110); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(4) + 20; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; rand = random(2); ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; abilityMusuh[i][7] = random(2) + 12; abilityMusuh[i][8] = 14; abilityMusuh[i][9] = 15; abilityMusuh[i][10] = 16; levelMusuh[i] += naikLevel; ++i; } i = 0; while (i <= diriMusuh.length) { j = 1; while (j <= 10) { if (abilityMusuh[i][j] == 11) { abilityMusuh[i][j] = 14; } ++j; } ++i; } bykMusuh = diriMusuh.length; } cekPunya(); } else { if (mapKe == 9) { pemimpin = -99; if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { pemimpin1 = 9; pemimpin2 = 11; diriJagoan = new Array(2, 2, '', '', '', '', '', 6, 6, 6, 6, '', '', 6, 6, '', '', 6, 6); diriMusuh = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 8, 2, 8); levelMusuh = new Array(7, 8, 7, 7, 7, 7, 7, 9, 7, 7, 7, 7); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 120, 110, 110, 110, 110, 110, 120, 110, 110, 110, 110); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(2) + 14; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; ++i; } i = 0; while (i <= diriMusuh.length) { if (i == 9) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = 2; abilityMusuh[i][3] = 4; abilityMusuh[i][4] = 5; abilityMusuh[i][5] = 6; abilityMusuh[i][6] = 8; abilityMusuh[i][7] = 9; abilityMusuh[i][8] = 12; abilityMusuh[i][9] = 13; abilityMusuh[i][10] = 14; } else { if (i == 11) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = 3; abilityMusuh[i][3] = 4; abilityMusuh[i][4] = 5; abilityMusuh[i][5] = 7; abilityMusuh[i][6] = 8; abilityMusuh[i][7] = 9; abilityMusuh[i][8] = 12; abilityMusuh[i][9] = 14; abilityMusuh[i][10] = 15; } else { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; } } ++i; } i = 0; while (i <= diriMusuh.length) { j = 1; while (j <= 10) { if (abilityMusuh[i][j] == 11) { abilityMusuh[i][j] = 14; } ++j; } ++i; } bykMusuh = diriMusuh.length; } cekPunya(); } else { if (mapKe == 10) { pemimpin = -99; if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { diriJagoan = new Array(2, 2, 2, 2, 2, 2, 2); diriMusuh = new Array(6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6); levelMusuh = new Array(9, 9, 9, 8, 8, 9, 8, 8, 8, 9, 9, 9, 8, 9, 9, 10); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 120, 110, 110, 110, 110, 110, 120, 110, 110, 110, 110, 110, 120, 110, 200); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ground Commander of Ogrezantium'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(2) + 14; ++i; } i = 0; while (i <= 15) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; itemMusuh[i][5] = 7; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; abilityMusuh[i][7] = random(2) + 12; ++i; } i = 0; while (i <= diriMusuh.length) { j = 1; while (j <= 10) { if (abilityMusuh[i][j] == 11) { abilityMusuh[i][j] = 14; } ++j; } ++i; } bykMusuh = diriMusuh.length; } cekPunya(); } else { if (mapKe == 11) { if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { diriJagoan = new Array(2, 2, 2, 2, 2, 2, 2, '', '', '', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 1); diriMusuh = new Array(6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6); levelMusuh = new Array(9, 9, 9, 8, 8, 9, 8, 8, 8, 9, 9, 9, 8, 9, 9, 10); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 120, 110, 110, 110, 110, 110, 120, 110, 110, 110, 110, 110, 120, 110, 200); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ground Commander of Ogrezantium'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(3) + 15; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; ++i; } i = 0; while (i <= diriMusuh.length) { j = 1; while (j <= 10) { if (abilityMusuh[i][j] == 11) { abilityMusuh[i][j] = 14; } ++j; } ++i; } bykMusuh = diriMusuh.length; } cekPunya(); } else { if (mapKe == 12) { if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { pemimpin = -99; diriJagoan = new Array(2, 2, 2, 2, 2, 2, 2); diriMusuh = new Array(6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6); levelMusuh = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 110, 200, 110, 110, 110, 110, 120, 110, 110, 110); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ground Commander of Ogrezantium', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(3) + 16; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; abilityMusuh[i][7] = random(2) + 12; abilityMusuh[i][8] = 14; ++i; } bykMusuh = diriMusuh.length; } cekPunya(); } else { if (mapKe == 13) { if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { pemimpin = -99; diriJagoan = new Array(2, 2, 2, 2, 2, 2, 2); diriMusuh = new Array(6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6); levelMusuh = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(210, 110, 100, 110, 110, 110, 110, 120, 110, 110, 110, 110, 110, 120, 110, 110, 110); rankMusuh = new Array('Ground Commander of Ogrezantium', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(3) + 17; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; rand = random(2); ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; abilityMusuh[i][7] = random(2) + 12; abilityMusuh[i][8] = 14; ++i; } bykMusuh = diriMusuh.length; } cekPunya(); } else { if (mapKe == 14) { if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { pemimpin1 = 3; pemimpin2 = 6; diriJagoan = new Array(2, 2, 2, 2, 2, 2, 2, 2); diriMusuh = new Array(6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6); levelMusuh = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(210, 110, 100, 110, 110, 110, 110, 120, 110, 110, 110, 110, 110, 120, 110, 110, 110); rankMusuh = new Array('Ground Commander of Ogrezantium', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(4) + 18; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; rand = random(2); ++i; } i = 0; while (i <= diriMusuh.length) { if (i == 3) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = 17; abilityMusuh[i][3] = 18; abilityMusuh[i][4] = 19; abilityMusuh[i][5] = 20; abilityMusuh[i][6] = 21; abilityMusuh[i][7] = 22; abilityMusuh[i][8] = 12; abilityMusuh[i][9] = 13; abilityMusuh[i][10] = 14; } else { if (i == 6) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = 17; abilityMusuh[i][3] = 18; abilityMusuh[i][4] = 19; abilityMusuh[i][5] = 20; abilityMusuh[i][6] = 21; abilityMusuh[i][7] = 22; abilityMusuh[i][8] = 9; abilityMusuh[i][9] = 14; abilityMusuh[i][10] = 15; } else { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; abilityMusuh[i][7] = random(2) + 12; abilityMusuh[i][8] = 14; abilityMusuh[i][9] = 15; } } ++i; } bykMusuh = diriMusuh.length; } cekPunya(); } else { if (mapKe == 15) { if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { pemimpin = -99; diriJagoan = new Array(2, 2, 2, 2, 2, 2, 2, 2); diriMusuh = new Array(6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6); levelMusuh = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(0, 110, 100, 110, 0, 200, 110, 120, 110, 110, 0, 0); rankMusuh = new Array('No Rank', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'No Rank', 'Ground Commander of Ogrezantium', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'No Rank', 'No Rank'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(4) + 19; ++i; } i = 0; while (i <= diriMusuh.length) { if (i != 0 && i != 4 && i != 10) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; rand = random(2); } ++i; } i = 0; while (i <= diriMusuh.length) { if (i != 0 && i != 4 && i != 10) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; abilityMusuh[i][7] = random(2) + 12; abilityMusuh[i][8] = 14; abilityMusuh[i][9] = 15; } ++i; } bykMusuh = diriMusuh.length; } cekPunya(); } else { if (mapKe == 16) { if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { adaMusuhkah = false; pemimpin = -99; diriJagoan = new Array(2, 2, '', 2, 2, 2, 2, 2); diriMusuh = new Array(); levelMusuh = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(0, 0, 200, 110, 120, 110, 110, 110, 110, 110, 120, 110, 110, 110, 110, 120, 120, 120, 120); rankMusuh = new Array('No Rank', 'No Rank', 'Ground Commander of Ogrezantium', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(5) + 20; ++i; } i = 0; while (i <= diriMusuh.length) { if (i != 0 && i != 1) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; } ++i; } i = 0; while (i <= diriMusuh.length) { if (i != 0 && i != 1) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; abilityMusuh[i][7] = random(2) + 12; abilityMusuh[i][8] = 14; abilityMusuh[i][9] = 15; abilityMusuh[i][10] = 16; } ++i; } bykMusuh = 0; } cekPunya(); } else { if (mapKe == 17) { if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { pemimpin = -99; diriJagoan = new Array(2, 2, '', 2, 2, 2, 2, 2); diriMusuh = new Array(6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6); levelMusuh = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 110, 100, 110, 120, 110, 110, 110, 100, 110, 120, 110, 110, 110, 100, 110, 120, 110, 110, 110, 100, 110, 120, 110); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(6) + 22; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; rand = random(2); if (rand == 0) { itemMusuh[i][5] = 7; } else { itemMusuh[i][5] = 11; } ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; abilityMusuh[i][7] = random(2) + 12; abilityMusuh[i][8] = 14; abilityMusuh[i][9] = 15; abilityMusuh[i][10] = 16; ++i; } bykMusuh = diriMusuh.length; } cekPunya(); } else { if (mapKe == 18) { if (jenisMaen == 'training') { diriJagoan = new Array(2, 2, 2, '', '', '', 2, 2); diriMusuh = new Array(6, 6, 6); levelMusuh = new Array(); musuhPlace = new Array(); xagePlace = new Array(); rankMusuh = new Array(); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= 2) { levelMusuh[i] = levelJagoan[i + 3]; musuhPlace[i] = jagoanPlace[i + 3]; xagePlace[i] = agePlace[i + 3]; rankMusuh[i] = rankJagoan[i + 3]; expMusuh[i] = expJagoan[i + 3]; z = 0; while (z <= abilityJagoan[i + 3].length) { abilityMusuh[i][z] = abilityJagoan[i + 3][z]; ++z; } z = 0; while (z <= itemJagoan[i + 3].length) { itemMusuh[i][z] = itemJagoan[i + 3][z]; xpunyaItem[i][z] = punyaItem[z]; ++z; } ++i; } bykMusuh = diriMusuh.length; } else { adaMusuhkah = false; pemimpin = 3; diriJagoan = new Array(2, 2, '', 2, 2, 2, 2, 2); diriMusuh = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2); levelMusuh = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10); musuhPlace = new Array('Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell', 'Hell'); xagePlace = new Array(110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110); rankMusuh = new Array('Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier', 'Ogrezantium Soldier'); i = 0; while (i <= diriMusuh.length) { abilityMusuh[i] = new Array(); itemMusuh[i] = new Array(); xpunyaItem[i] = new Array(); j = 1; while (j <= 10) { abilityMusuh[i][j] = 0; ++j; } j = 1; while (j <= 5) { itemMusuh[i][j] = 0; ++j; } j = 0; while (j <= jenisItem.length) { xpunyaItem[i][j] = 0; ++j; } ++i; } i = 0; while (i <= diriMusuh.length) { levelMusuh[i] = random(4) + 19; ++i; } i = 0; while (i <= diriMusuh.length) { itemMusuh[i][1] = 9; itemMusuh[i][2] = 10; itemMusuh[i][3] = random(2) + 3; itemMusuh[i][4] = random(2) + 5; rand = random(2); if (rand == 0) { itemMusuh[i][5] = 7; } else { itemMusuh[i][5] = 11; } ++i; } i = 0; while (i <= diriMusuh.length) { abilityMusuh[i][1] = 1; abilityMusuh[i][2] = random(2) + 2; abilityMusuh[i][3] = random(2) + 4; abilityMusuh[i][4] = random(2) + 6; abilityMusuh[i][5] = random(2) + 8; abilityMusuh[i][6] = random(2) + 10; abilityMusuh[i][7] = random(2) + 12; abilityMusuh[i][8] = 14; abilityMusuh[i][9] = 15; abilityMusuh[i][10] = 16; ++i; } bykMusuh = 0; } cekPunya(); } } } } } } } } } } } } } } } } } } } function cekPunya() { if (jenisMaen != 'training') { i = 0; while (i <= diriMusuh.length) { j = 1; while (j <= 5) { if (itemMusuh[i][j] == 1 || itemMusuh[i][j] == 9) { xpunyaItem[i][itemMusuh[i][j]] = 3 + random(2); } else { if (itemMusuh[i][j] == 2 || itemMusuh[i][j] == 10) { xpunyaItem[i][itemMusuh[i][j]] = 2 + random(2); } else { xpunyaItem[i][itemMusuh[i][j]] = 1; } } ++j; } ++i; } } } function initMsgBox2() { msgBox2 = attachMovie('msgBox_mc2', 'msgBox_mc2', dalamMsgBox); msgBox2.onEnterFrame = enterMsgBox; msgBox2._x = _root._xmouse; msgBox2._y = _root._ymouse; msgBox2._visible = false; } function initObjective() { objective = attachMovie('objective_mc', 'objective_mc', dalamObjective); objective._x = -50; objective._y = -50; if (jenisMaen == 'training') { objective.gotoAndStop(20); } else { objective.gotoAndStop(mapKe); } xpause = true; _root.onMouseDown = function () { xpause = false; removeMovieClip(objective); delete _root.onMouseDown; deleteMusuh(false); setBisa(1, true); giliranJagoan(jalanKe); }; } function cekDialog() { xpause = false; deleteMusuh(true); setBisa(3, false); if (mapKe <= 11 || mapKe == 15 || mapKe == 18) { delete _root.onMouseDown; ballon = attachMovie('ballon_mc', 'ballon_mc', dalamObjective); ballon._x = 0; ballon._y = 50; ballon.gotoAndStop('map' + mapKe); _root.onMouseDown = function () { ballon.gotoAndStop(ballon._currentframe + 1); }; } else { initObjective(); } } function mulaiLevel() { removeMovieClip(ballon_mc); delete _root.onMouseDown; initObjective(); } function giliranJagoan(indi) { if (masihMain == true) { if (bykMusuh <= 0 && adaMusuhkah == true) { cekLanjutLevel(); } else { if (uncontrolJagoan[indi] == true) { k = 0; while (k <= charaJagoan - 1) { namaChara = namaCharaJagoan[k]; _root[namaChara].klik_mc.enabled = false; ++k; } current = indi; xcurrent = indi; adaSerang = false; adaAksi = false; xdiSerangJ = undefined; xdiSerangI = undefined; charaAction('', indi); if (adaSerang == true && actionJagoan[indi] == false) { adaAksi = true; charaAction('muncul', indi); xj = xdiSerangJ; xi = xdiSerangI; ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; tipeSerangan = 1; pilihanAbil = elementAbility[tipeSerangan]; if (tipeSerangan == undefined || xdiSerangJ == undefined) { adaAksi = false; } else { cekSoundFX(indi); actionJagoan[indi] = true; adaAksi = true; klikKotak2(_root[namaBaru], 'jagoan', indi); } } else { if (moveJagoan[indi] == false && actionJagoan[indi] == false) { adaAksi = true; areamove = 'yes'; xpathFinding('jagoan'); jagoanAI(indi); xxStart = posJagoanI[indi]; yyStart = posJagoanJ[indi]; mapping[posJagoanJ[charaKe]][posJagoanI[charaKe]] = 0; if (posJagoanI[charaKe] != undefined) { moveJagoan[indi] = true; xxLast = posJagoanI[charaKe]; yyLast = posJagoanJ[charaKe]; mapping[posJagoanJ[indi]][posJagoanI[indi]] = 1; mapping[posJagoanJ[charaKe]][posJagoanI[charaKe]] = 0; areamove = 'no'; xpathFinding('jagoan'); if (xpos != 0) { moveJagoan[indi] = true; enabledMove(false); } else { adaAksi = true; mapping[posJagoanJ[indi]][posJagoanI[indi]] = 0; mapping[posJagoanJ[charaKe]][posJagoanI[charaKe]] = 1; xresetMove(); deleteMove(); bisaKlik = false; i = 0; while (i <= charaJagoan - 1) { setBisa3(3, true, i); ++i; } cekGiliran(); moveJagoan[indi] = true; actionJagoan[indi] = true; masihAktif[indi] = false; } } else { xresetMove(); deleteMove(); adaAksi = false; } } } if (posJagoanI[charaKe] == undefined) { bisaKlik = false; i = 0; while (i <= charaJagoan - 1) { setBisa3(3, true, i); ++i; } cekGiliran(); moveJagoan[indi] = true; actionJagoan[indi] = true; masihAktif[indi] = false; } else { if (adaAksi == false) { if (moveJagoan[indi] == true && actionJagoan[indi] == false) { moveJagoan[indi] = true; actionJagoan[indi] = true; masihAktif[indi] = false; gerakSemua = false; xgiliranJagoan(); if (gerakSemua == false) { bisaKlik = false; i = 0; while (i <= charaJagoan - 1) { setBisa3(3, true, i); ++i; } cekGiliran(); } } moveJagoan[indi] = true; actionJagoan[indi] = true; masihAktif[indi] = false; } } } else { if (jagoanType[indi] == 'musuh') { current = indi; xcurrent = indi; adaSerang = false; adaAksi = false; xdiSerangJ = undefined; xdiSerangI = undefined; charaAction2('', indi); if (adaSerang == true && actionJagoan[indi] == false) { adaAksi = true; charaAction2('muncul', indi); xj = xdiSerangJ; xi = xdiSerangI; ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; bykAda = 0; angka = new Array(); i = 1; while (i <= abilityJagoan[indi].length) { if (abilityJagoan[indi][i] > 1) { angka[bykAda] = i; ++bykAda; } ++i; } acak = random(angka.length); acak2 = angka[acak]; angka[acak] = null; angka.sort(); angka.pop(); ambilAbil = acak2; yyindi = abilityJagoan[indi][ambilAbil]; tipeSerangan = abilityJagoan[indi][ambilAbil]; if (auraJagoan[indi] < auraAbility[tipeSerangan]) { tipeSerangan = 1; } pilihanAbil = elementAbility[tipeSerangan]; if (tipeSerangan == undefined || xdiSerangJ == undefined) { adaAksi = false; } else { if (tipeSerangan != 1) { namaSerangan = jenisAbility[abilityJagoan[indi][ambilAbil]]; info_mc.gotoAndPlay('xmulai'); } actionJagoan[indi] = true; adaAksi = true; klikKotak2(_root[namaBaru], 'jagoan', indi); } } else { if (moveJagoan[indi] == false) { adaAksi = false; } } if (adaAksi == false) { moveJagoan[indi] = true; actionJagoan[indi] = true; masihAktif[indi] = false; xresetMove(); deleteMove(); bisaKlik = false; i = 0; while (i <= charaJagoan - 1) { setBisa3(3, true, i); ++i; } if (indi <= charaJagoan - 1) { cekGiliran(); } else { ++indi; giliranJagoan(indi); } } } else { k = 0; while (k <= charaJagoan - 1) { if (masihAktif[k] == true) { namaChara = namaCharaJagoan[k]; _root[namaChara].klik_mc.enabled = true; } ++k; } current = indi; actions = attachMovie('actions_mc', 'actions_mc', dalamActions); actions._x = _root[namaCharaJagoan[indi]]._x; actions._y = _root[namaCharaJagoan[indi]]._y; actions.gotoAndStop(1); k = 1; while (k <= 3) { actions['xmc' + k]._visible = false; ++k; } setKlik(indi); } } } } } function setBisa(indi1, indi2) { if (indi1 != '') { actions.gotoAndStop(indi1); k = 1; while (k <= 3) { actions['xmc' + k]._visible = false; ++k; } } k = 0; while (k <= charaJagoan - 1) { if (masihAktif[k] == true) { namaChara = namaCharaJagoan[k]; _root[namaChara].enabled = indi2; if (indi2 == false) { delete _root[namaChara].klik_mc.onRollOver; delete _root[namaChara].klik_mc.onRollOut; delete _root[namaChara].klik_mc.onReleaseOutside; delete _root[namaChara].klik_mc.onRelease; } else { if (indi2 == true) { _root[namaChara].klik_mc.onRollOver = overChara; _root[namaChara].klik_mc.onRollOut = outChara; _root[namaChara].klik_mc.onReleaseOutside = outChara; _root[namaChara].klik_mc.onRelease = klikChara; } } setKlik(k); } ++k; } } function setBisa2(indi1, indi2, indi3) { actions.gotoAndStop(indi1); k = 1; while (k <= 3) { actions['xmc' + k]._visible = false; ++k; } namaChara = namaCharaJagoan[indi3]; _root[namaChara].enabled = indi2; if (indi2 == false) { delete _root[namaChara].klik_mc.onRollOver; delete _root[namaChara].klik_mc.onRollOut; delete _root[namaChara].klik_mc.onReleaseOutside; delete _root[namaChara].klik_mc.onRelease; } else { if (indi2 == true) { _root[namaChara].klik_mc.onRollOver = overChara; _root[namaChara].klik_mc.onRollOut = outChara; _root[namaChara].klik_mc.onReleaseOutside = outChara; _root[namaChara].klik_mc.onRelease = klikChara; } } } function setBisa3(indi1, indi2, indi3) { actions.gotoAndStop(indi1); k = 1; while (k <= 3) { actions['xmc' + k]._visible = false; ++k; } namaChara = namaCharaJagoan[indi3]; _root[namaChara].enabled = indi2; if (indi2 == false) { delete _root[namaChara].klik_mc.onRollOver; delete _root[namaChara].klik_mc.onRollOut; delete _root[namaChara].klik_mc.onReleaseOutside; } else { if (indi2 == true) { _root[namaChara].klik_mc.onRollOver = overChara; _root[namaChara].klik_mc.onRollOut = outChara; _root[namaChara].klik_mc.onReleaseOutside = outChara; } } } function setBisa4(indi1, indi2, indi3) { namaChara = namaCharaJagoan[indi3]; _root[namaChara].enabled = indi2; if (indi2 == false) { delete _root[namaChara].klik_mc.onRollOver; delete _root[namaChara].klik_mc.onRollOut; delete _root[namaChara].klik_mc.onReleaseOutside; delete _root[namaChara].klik_mc.onRelease; } else { if (indi2 == true) { _root[namaChara].klik_mc.onRollOver = overChara; _root[namaChara].klik_mc.onRollOut = outChara; _root[namaChara].klik_mc.onReleaseOutside = outChara; _root[namaChara].klik_mc.onRelease = klikChara; } } } function setBisa5(indi1, indi2, indi3) { namaChara = namaCharaMusuh[indi3]; _root[namaChara].enabled = indi2; if (indi2 == false) { delete _root[namaChara].klik_mc.onRollOver; delete _root[namaChara].klik_mc.onRollOut; delete _root[namaChara].klik_mc.onReleaseOutside; delete _root[namaChara].klik_mc.onRelease; } else { if (indi2 == true) { _root[namaChara].klik_mc.onRollOver = overChara; _root[namaChara].klik_mc.onRollOut = outChara; _root[namaChara].klik_mc.onReleaseOutside = outChara; _root[namaChara].klik_mc.onRelease = klikChara; } } } function setKlik(indi) { if (indi == current) { if (moveJagoan[indi] == false) { actions.move_btn.enabled = true; actions.move_btn._alpha = 100; actions.move_btn.onRollOver = function () { over(); }; actions.move_btn.onRelease = charaMove; actions.tanda = 'move (A)'; } else { actions.move_btn.enabled = true; actions.move_btn._alpha = 100; actions.move_btn.onRollOver = function () { over(); }; actions.move_btn.onRelease = charaUndo; actions.tanda = 'undo (A)'; } if (actionJagoan[indi] == false) { actions.attack_btn.enabled = true; actions.attack_btn._alpha = 100; actions.xmc2._visible = false; actions.item_btn.enabled = true; actions.item_btn._alpha = 100; actions.xmc3._visible = false; actions.attack_btn.onRollOver = function () { over(); }; actions.item_btn.onRollOver = function () { over(); }; actions.attack_btn.onRelease = pilihAttack; actions.item_btn.onRelease = pilihItem; } else { actions.attack_btn.enabled = false; actions.attack_btn._alpha = 25; actions.xmc2._visible = true; actions.item_btn.enabled = false; actions.item_btn._alpha = 25; actions.xmc3._visible = true; } actions.wait_btn.onRollOver = function () { over(); }; actions.wait_btn.onRelease = charaWait; } } function charaUndo() { if (mapping[undoJagoanJ[current]][undoJagoanI[current]] == 1) { sekaliWaja = false; mapping[posJagoanJ[current]][posJagoanI[current]] = 1; posJagoanJ[current] = undoJagoanJ[current]; posJagoanI[current] = undoJagoanI[current]; mapping[posJagoanJ[current]][posJagoanI[current]] = 0; tj = posJagoanJ[current]; ti = posJagoanI[current]; ubahDalam('tj', 'ti', 'dalam'); namaBaru = 'rumput_mc' + dalam; ambilDalam = panjang * lebar * 3 + _root[namaBaru].getDepth() + 100; _root[namaCharaJagoan[current]].swapDepths(ambilDalam); _root[namaCharaJagoan[current]]._x = _root[namaBaru]._x + 50; _root[namaCharaJagoan[current]]._y = _root[namaBaru]._y - 20; _root[namaCharaJagoan[current]].gotoAndStop(undoPosJagoan[current]); if (wwair[posJagoanJ[current]][posJagoanI[current]] == 1 && elementJagoan[current] == 0) { _root[namaCharaJagoan[current]].anim.gotoAndStop(21); } else { _root[namaCharaJagoan[current]].anim.gotoAndStop(1); } setBisa(3, false); bisaTombolAction(false); idUndo = setInterval(xundo, 250); } else { actions.tanda = 'can\'t'; } } function xundo() { clearInterval(idUndo); moveJagoan[current] = false; deleteMusuh(false); setBisa(1, true); bisaTombolAction(true); giliranJagoan(current); } function charaWait() { sekaliWaja = false; undoPosJagoan[current] = _root[namaCharaJagoan[current]]._currentframe; actionJagoan[current] = true; moveJagoan[current] = true; setBisa2(3, false, current); masihAktif[current] = false; gerakSemua = false; xgiliranJagoan(); if (gerakSemua == false) { bisaKlik = false; i = 0; while (i <= charaJagoan - 1) { setBisa3(3, true, i); ++i; } if (mapKe >= 16) { if (jenisMaen != 'training') { cekMeteorMuncul(); } } else { cekGiliran(); } } } function cekMeteorMuncul() { ambilMeteor = 0; xambilMeteor = 41; ambilMeteorJ = new Array(); ambilMeteorI = new Array(); angkaI = new Array(); angkaJ = new Array(); angka = new Array(); i = 0; while (i <= panjang) { j = 0; while (j <= lebar) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; if (_root[namaBaru] != undefined) { angkaI[ambilMeteor] = j; angkaJ[ambilMeteor] = i; angka[ambilMeteor] = ambilMeteor; ++ambilMeteor; } ++j; } ++i; } if (ambilMeteor <= 0) { if (mapKe == 17) { cekGiliran(); } else { jalanKomp = 0; lanjutKomp(); } } else { backFlame(); wwi = 0; while (wwi <= 40) { acak = random(angka.length); acak2 = angka[acak]; angka[acak] = null; angka.sort(); angka.pop(); meteor = attachMovie('meteor2_mc', 'meteor_mc' + wwi, dalamMeteor + wwi); zj = angkaJ[acak2]; zi = angkaI[acak2]; ubahDalam('zj', 'zi', 'dalam'); namaBaru = 'rumput_mc' + dalam; meteor._yscale = random(50) + 75; meteor._xscale = meteor._yscale; meteor._x = _root[namaBaru]._x + 40; meteor._y = _root[namaBaru]._y - 600 - random(300); meteor.posJ = zj; meteor.posI = zi; meteor.kenaBawah = namaBaru; meteor.speed = random(21) + 5; meteor.ke = wwi; meteor.onEnterFrame = xenterMeteor; ++wwi; } } } function xenterMeteor() { this._y += this.speed; this.speed += 0.1; if (this.hitTest(_root[this.kenaBawah])) { if (this.posJ != posArrowJ && this.posI != posArrowI) { if (mapping[this.posJ][this.posI] == 1) { xzj = this.posJ; xzi = this.posI; ubahDalam('xzj', 'xzi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru]._visible = false; mapping[this.posJ][this.posI] = 1; wwjurang[this.posJ][this.posI] = 1; wwudara[this.posJ][this.posI] = 1; } else {} } --xambilMeteor; if (xambilMeteor == 0) { if (mapKe == 17) { cekGiliran(); } else { jalanKomp = 0; lanjutKomp(); } } removeMovieClip(this); } } function giliranMusuh(indi) { sekaliWaja = false; deleteMusuh(true); if (xrangeMusuh[indi] > 0) { adaAksi = false; adaStun = true; adaPoison = true; masihHidup = true; if (stunMusuh[indi] == false) { adaStun = false; } if (poisonMusuh[indi] == false) { adaPoison = false; } if (adaPoison == true) { elementSerang = 3; elementDiserang = elementMusuh[indi]; if (elementDiserang == kuatElement[elementSerang]) { increseSerang = 1.25; } else { if (elementDiserang == lemahElement[elementSerang]) { increseSerang = 0.75; } else { increseSerang = 1; } } berkurang = Math.floor(increseSerang * liveMusuh[indi] / 4); if (berkurang <= 0) { berkurang = random(6) + 5; } liveMusuh[indi] -= berkurang; posX = _root[namaCharaMusuh[indi]]._x; posY = _root[namaCharaMusuh[indi]]._y; cekAngka5(posX, posY, berkurang, indi); if (liveMusuh[indi] <= 0) { --jalanKomp; masihHidup = false; cekMati(_root[namaCharaMusuh[indi]], indi, 'komp'); } } if (adaStun == false && masihHidup == true) { adaItem = false; dipilih = undefined; werand = random(2); if (werand == 0) { if (xpunyaItem[indi][7] >= 1) { dipilih = 7; namaSerangan = jenisItem[itemMusuh[indi][dipilih]]; adaItem = true; } } if (auraMusuh[indi] <= totAuraMusuh[indi] / 2) { if (xpunyaItem[indi][10] >= 1) { dipilih = 10; namaSerangan = jenisItem[itemMusuh[indi][dipilih]]; adaItem = true; } } if (liveMusuh[indi] <= totLiveMusuh[indi] / 2) { if (xpunyaItem[indi][9] >= 1) { dipilih = 9; namaSerangan = jenisItem[itemMusuh[indi][dipilih]]; adaItem = true; } } if (auraMusuh[indi] <= totAuraMusuh[indi] / 2) { if (xpunyaItem[indi][2] >= 1) { dipilih = 2; namaSerangan = jenisItem[itemMusuh[indi][dipilih]]; adaItem = true; } } if (liveMusuh[indi] <= totLiveMusuh[indi] / 2) { if (xpunyaItem[indi][1] >= 1) { dipilih = 1; namaSerangan = jenisItem[itemMusuh[indi][dipilih]]; adaItem = true; } } if (stunMusuh[indi] == true) { if (xpunyaItem[indi][4] >= 1) { dipilih = 4; namaSerangan = jenisItem[itemMusuh[indi][dipilih]]; adaItem = true; } } if (uncontrolMusuh[indi] == true) { if (xpunyaItem[indi][5] >= 1) { dipilih = 5; namaSerangan = jenisItem[itemMusuh[indi][dipilih]]; adaItem = true; } } if (slowMusuh[indi] == true) { if (xpunyaItem[indi][6] >= 1) { dipilih = 6; namaSerangan = jenisItem[itemMusuh[indi][dipilih]]; adaItem = true; } } if (poisonMusuh[indi] == true) { if (xpunyaItem[indi][3] >= 1) { dipilih = 3; namaSerangan = jenisItem[itemMusuh[indi][dipilih]]; adaItem = true; } } bisaItem = false; yy = 1; while (yy <= 5) { if (itemMusuh[indi][yy] == dipilih) { bisaItem = true; } ++yy; } if (xpunyaItem[indi][dipilih] <= 0) { adaItem = false; } if (dipilih == undefined) { adaItem = false; } if (bisaItem == false) { adaItem = false; } if (adaItem == true && actionMusuh[indi] == false) { musuhItem(indi); xcurrentPath = 0; xPath = new Array(); yPath = new Array(); xPath[xcurrentPath] = posMusuhJ[indi]; yPath[xcurrentPath] = posMusuhI[indi]; adaAksi = true; actionMusuh[indi] = true; tipeItem = undefined; yy = 1; while (yy <= 5) { if (itemMusuh[indi][yy] == dipilih) { tipeItem = itemMusuh[indi][yy]; if (jenisMaen == 'training') { --punyaItem[tipeItem]; if (punyaItem[tipeItem] <= 0) { punyaItem[tipeItem] = 0; } } --xpunyaItem[indi][dipilih]; if (xpunyaItem[indi][dipilih] <= 0) { xpunyaItem[indi][dipilih] = 0; } namaSerangan = jenisItem[tipeItem]; info_mc.gotoAndPlay('xmulai'); yy = 5; } ++yy; } xnamaChara = namaCharaMusuh[indi]; zobyek = namaCharaMusuh[indi]; ygNyerang = xnamaChara; ygDiserang = zobyek; cekPosisi2('item'); enabledMove(false); deleteMusuh(true); } else { rand = 0; if (rand < 50) { bykAda = 0; angka = new Array(); i = 1; while (i <= abilityMusuh[indi].length) { if (abilityMusuh[indi][i] > 1) { angka[bykAda] = i; ++bykAda; } ++i; } acak = random(angka.length); acak2 = angka[acak]; angka[acak] = null; angka.sort(); angka.pop(); ambilAbil = acak2; tipeSerangan = abilityMusuh[indi][ambilAbil]; if (auraMusuh[indi] < auraAbility[tipeSerangan]) { tipeSerangan = 1; } if (tipeSerangan == undefined) { tipeSerangan = 1; } } else { tipeSerangan = 1; } } if (tipeSerangan == 11 && actionMusuh[indi] == false) { namaSerangan = jenisAbility[abilityMusuh[indi][ambilAbil]]; info_mc.gotoAndPlay('xmulai'); xcurrent = indi; current = indi; adaAksi = true; auraMusuh[indi] -= auraAbility[tipeSerangan]; actionMusuh[indi] = true; ambilAllJ = new Array(); ambilAllI = new Array(); ambilAll = 0; k = 0; while (k <= charaJagoan - 1) { if (posJagoanI[k] != undefined && posJagoanJ[k] != undefined && _root[namaCharaJagoan[k]].hidup == true) { zj = posJagoanJ[k]; zi = posJagoanI[k]; ubahDalam('zj', 'zi', 'dalam'); namaBaru = 'rumput_mc' + dalam; if (_root[namaBaru] != undefined) { ambilAllJ[ambilAll] = posJagoanJ[k]; ambilAllI[ambilAll] = posJagoanI[k]; ++ambilAll; } } ++k; } xi = 0; while (xi <= ambilAll - 1) { all = attachMovie('all_mc', 'all_mc' + xi, dalamMeteor + xi); zj = ambilAllJ[xi]; zi = ambilAllI[xi]; ubahDalam('zj', 'zi', 'dalam'); namaBaru = 'rumput_mc' + dalam; all._yscale = random(50) + 50; all._xscale = all._yscale; all._rotation = random(360); all._x = _root[namaCharaMusuh[indi]]._x; all._y = _root[namaCharaMusuh[indi]]._y; all.posJ = zj; all.posI = zi; all.kenaBawah = namaBaru; all.speed = 5; all.ke = xi; all.onEnterFrame = enterAll2; ++xi; } enabledMove(false); deleteMusuh(true); } else { musuhAction('', indi); if (adaSerang == true && actionMusuh[indi] == false) { musuhAction('muncul', indi); xj = xdiSerangJ; xi = xdiSerangI; ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; if (uncontrolMusuh[xcurrent] == true) { cekSoundFX(xcurrent); tipeSerangan = 1; } pilihanAbil = elementAbility[tipeSerangan]; if (tipeSerangan == undefined) { adaAksi = false; } else { if (tipeSerangan != 1) { auraMusuh[indi] -= auraAbility[tipeSerangan]; namaSerangan = jenisAbility[abilityMusuh[indi][ambilAbil]]; info_mc.gotoAndPlay('xmulai'); } adaAksi = true; klikKotak2(_root[namaBaru], 'komp', indi); } } else { if (moveMusuh[indi] == false && actionMusuh[indi] == false) { musuhMove(indi); adaAksi = true; } } } } } else { adaAksi = false; } if (adaAksi == false) { if (moveMusuh[indi] == false && actionMusuh[indi] == true && tipeAI[indi] == 2) { musuhMove(indi, 'jauh'); adaAksi = true; } else { moveMusuh[indi] = false; actionMusuh[indi] = false; musuhAktif[indi] = false; lanjutKomp(); } } } function musuhMove(indi, indi2) { xcurrent = indi; areamove = 'yes'; xpathFinding('komp'); if (indi2 == 'jauh') { kompAI3(); xxLast = charaKeI; yyLast = charaKeJ; } else { kompAI(); } musuhAktif[xcurrent] = false; mapping[posMusuhJ[xcurrent]][posMusuhI[xcurrent]] = 1; if (indi2 == 'jauh') { mapping[yyLast][xxLast] = 0; } xxStart = posMusuhI[xcurrent]; yyStart = posMusuhJ[xcurrent]; if (indi2 != 'jauh') { if (uncontrolMusuh[xcurrent] == false) { xxLast = posJagoanI[charaKe]; yyLast = posJagoanJ[charaKe]; } else { xxLast = posMusuhI[charaKe]; yyLast = posMusuhJ[charaKe]; } mapping[yyLast][xxLast] = 0; } areamove = 'no'; xpathFinding('komp'); if (xpos != 0) { moveMusuh[xcurrent] = true; enabledMove(false); } else { mapping[posMusuhJ[xcurrent]][posMusuhI[xcurrent]] = 0; mapping[yyLast][xxLast] = 1; } } function musuhAction(indi, indi2) { current = indi2; xcurrent = current; adaSerang = false; xdiSerangI = undefined; xdiSerangJ = undefined; xx = 0; if (uncontrolMusuh[xcurrent] == false) { if (serangMusuh[xcurrent] == 1) { i = posMusuhI[current] - serangMusuh[current]; while (i <= posMusuhI[current] + serangMusuh[current]) { j = posMusuhJ[current] - serangMusuh[current]; while (j <= posMusuhJ[current] + serangMusuh[current]) { if (i != posMusuhI[current] || j != posMusuhJ[current]) { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaMusuh - 1) { if (i == posMusuhI[l] && j == posMusuhJ[l]) { adaOrang = true; l = charaMusuh; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaJagoan - 1) { if (i == posJagoanI[k] && j == posJagoanJ[k]) { obyek = namaCharaJagoan[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaJagoan + 1; } } ++k; } } ++j; } ++i; } } else { i = posMusuhI[xcurrent] - serangMusuh[xcurrent]; while (i <= posMusuhI[xcurrent]) { j = posMusuhJ[xcurrent] - xx; while (j <= posMusuhJ[xcurrent] + xx) { if (posMusuhI[xcurrent] == i && posMusuhJ[xcurrent] == j) { } else { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaMusuh - 1) { if (i == posMusuhI[l] && j == posMusuhJ[l]) { adaOrang = true; l = charaMusuh; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaJagoan - 1) { if (i == posJagoanI[k] && j == posJagoanJ[k]) { obyek = namaCharaJagoan[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaJagoan + 1; } } ++k; } } ++j; } ++xx; ++i; } xx = serangMusuh[xcurrent]; i = posMusuhI[xcurrent]; while (i <= posMusuhI[xcurrent] + serangMusuh[xcurrent]) { j = posMusuhJ[xcurrent] - xx; while (j <= posMusuhJ[xcurrent] + xx) { if (posMusuhI[xcurrent] == i && posMusuhJ[xcurrent] == j) { } else { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaMusuh - 1) { if (i == posMusuhI[l] && j == posMusuhJ[l]) { adaOrang = true; l = charaMusuh; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaJagoan - 1) { if (i == posJagoanI[k] && j == posJagoanJ[k]) { obyek = namaCharaJagoan[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaJagoan + 1; } } ++k; } } ++j; } --xx; ++i; } } } else { if (serangMusuh[xcurrent] == 1) { i = posMusuhI[current] - serangMusuh[current]; while (i <= posMusuhI[current] + serangMusuh[current]) { j = posMusuhJ[current] - serangMusuh[current]; while (j <= posMusuhJ[current] + serangMusuh[current]) { if (i != posMusuhI[current] || j != posMusuhJ[current]) { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaJagoan - 1) { if (i == posJagoanI[l] && j == posJagoanJ[l]) { adaOrang = true; l = charaJagoan; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaMusuh - 1) { if (i == posMusuhI[k] && j == posMusuhJ[k]) { if (k != xcurrent) { obyek = namaCharaMusuh[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaMusuh + 1; } } } ++k; } } ++j; } ++i; } } else { i = posMusuhI[xcurrent] - serangMusuh[xcurrent]; while (i <= posMusuhI[xcurrent]) { j = posMusuhJ[xcurrent] - xx; while (j <= posMusuhJ[xcurrent] + xx) { if (posMusuhI[xcurrent] == i && posMusuhJ[xcurrent] == j) { } else { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaJagoan - 1) { if (i == posJagoanI[l] && j == posJagoanJ[l]) { adaOrang = true; l = charaJagoan; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaMusuh - 1) { if (i == posMusuhI[k] && j == posMusuhJ[k]) { if (k != xcurrent) { obyek = namaCharaMusuh[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaMusuh + 1; } } } ++k; } } ++j; } ++xx; ++i; } xx = serangMusuh[xcurrent]; i = posMusuhI[xcurrent]; while (i <= posMusuhI[xcurrent] + serangMusuh[xcurrent]) { j = posMusuhJ[xcurrent] - xx; while (j <= posMusuhJ[xcurrent] + xx) { if (posMusuhI[xcurrent] == i && posMusuhJ[xcurrent] == j) { } else { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaJagoan - 1) { if (i == posJagoanI[l] && j == posJagoanJ[l]) { adaOrang = true; l = charaJagoan; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaMusuh - 1) { if (i == posMusuhI[k] && j == posMusuhJ[k]) { if (k != xcurrent) { obyek = namaCharaMusuh[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaMusuh + 1; } } } ++k; } } ++j; } --xx; ++i; } } } } function charaMove() { deleteMusuh(true); setBisa(2, false); areamove = 'yes'; xpathFinding('jagoan'); actions.cancel_btn.onRollOver = function () { over(); }; actions.cancel_btn.onRelease = function () { klik(); deleteMusuh(false); setBisa(1, true); deleteMove(); xresetMove(); setKlik(current); }; } function pilihAttack() { setBisa(3, false); deleteMusuh(true); msgBox3 = attachMovie('msgBox_mc3', 'msgBox_mc3', dalamMsgBox3); msgBox3._x = 400; msgBox3._y = 300; msgBox3.gotoAndStop(1); msgBox3.choose = 'CHOOSE TYPE OF ATTACK (AURA = ' + auraJagoan[current] + ')'; i = 1; while (i <= 10) { msgBox3['attack' + i] = jenisAbility[abilityJagoan[current][i]]; kosong = jenisAbility[abilityJagoan[current][i]]; if (kosong == 'Empty') { msgBox3['attack_btn' + i].enabled = false; } else { msgBox3['attack_btn' + i].enabled = true; msgBox3['attack_btn' + i].onRelease = klikAttack; msgBox3['attack_btn' + i].onRollOver = overAttack; msgBox3['attack_btn' + i].onRollOut = outAttack; msgBox3['attack_btn' + i].onReleaseOutside = outAttack; } ++i; } msgBox3.quit_btn.onRollOver = function () { over(); }; msgBox3.quit_btn.onRelease = function () { klik(); removeMovieClip(msgBox_mc3); setBisa(1, true); deleteMove(); xresetMove(); deleteMusuh(false); setKlik(current); }; } function pilihItem() { setBisa(3, false); deleteMusuh(true); msgBox3 = attachMovie('msgBox_mc3', 'msgBox_mc3', dalamMsgBox3); msgBox3._x = 400; msgBox3._y = 300; msgBox3.gotoAndStop(2); msgBox3.choose = 'CHOOSE TYPE OF ITEM'; i = 1; while (i <= 5) { msgBox3['item' + i] = jenisItem[itemJagoan[current][i]] + ' (x' + punyaItem[itemJagoan[current][i]] + ')'; kosong = jenisItem[itemJagoan[current][i]]; if (kosong == 'Empty') { msgBox3['item' + i] = kosong; msgBox3['item_btn' + i].enabled = false; } else { if (itemJagoan[current][i] == 11) { delete msgBox3['item_btn' + i].onRelease; msgBox3['item_btn' + i].onRollOver = overItem; msgBox3['item_btn' + i].onRollOut = outItem; msgBox3['item_btn' + i].onReleaseOutside = outItem; } else { msgBox3['item_btn' + i].enabled = true; msgBox3['item_btn' + i].onRelease = klikItem; msgBox3['item_btn' + i].onRollOver = overItem; msgBox3['item_btn' + i].onRollOut = outItem; msgBox3['item_btn' + i].onReleaseOutside = outItem; } } ++i; } msgBox3.quit_btn.onRollOver = function () { over(); }; msgBox3.quit_btn.onRelease = function () { klik(); removeMovieClip(msgBox_mc3); setBisa(1, true); deleteMove(); xresetMove(); deleteMusuh(false); setKlik(current); }; } function overAttack() { over(); jedaInfo2 = 0; adaJedaInfo = true; info2.nama = ''; info2.informasi = ''; jenisOver = 'attack'; pilihAbil = this; } function outAttack() { adaJedaInfo = false; info2.nama = ''; info2.informasi = ''; info2._visible = false; info2._alpha = 0; } function overItem() { over(); jedaInfo2 = 0; adaJedaInfo = true; info2.nama = ''; info2.informasi = ''; jenisOver = 'item'; pilihAbil = this; } function outItem() { adaJedaInfo = false; info2.nama = ''; info2.informasi = ''; info2._visible = false; info2._alpha = 0; } function enterInfo2() { if (adaJedaInfo == true) { ++jedaInfo2; if (jedaInfo2 >= 10) { info2._visible = true; if (info2._alpha <= 100) { info2._alpha += 30; } } } else { info2._visible = false; } info2._x = _root._xmouse - 100; info2._y = _root._ymouse; myStr = new String(pilihAbil); if (jenisOver == 'attack') { if (myStr.length == 30) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } xinfo = infoAbility[abilityJagoan[current][indi]]; yindi = abilityJagoan[current][indi]; info2.nama = msgBox3['attack' + indi]; info2.informasi = 'Element ' + element[elementAbility[yindi]] + ' \n Need ' + auraAbility[yindi] + ' Aura \n\n ' + xinfo; } else { if (jenisOver == 'item') { indi = Number(myStr.substr(myStr.length - 1, 1)); xinfo = infoItem[itemJagoan[current][indi]]; yindi = itemJagoan[current][indi]; info2.nama = jenisItem[itemJagoan[current][indi]]; info2.informasi = 'Element ' + element[elementItem[yindi]] + '\n\n ' + xinfo; } } } function enterAll() { tj = this.posJ; ti = this.posI; ubahDalam('tj', 'ti', 'dalam'); namaBaru = 'rumput_mc' + dalam; aimX = _root[namaBaru]._x + 50; aimY = _root[namaBaru]._y - 20; deltaX = this._x - aimX; deltaY = this._y - aimY; angle = -Math.atan2(deltaX, deltaY) / 0.0174532925199433; if (Math.sqrt(deltaX * deltaX + deltaY * deltaY) > this.speed) { this.speed += 0.1; this._y -= this.speed * Math.cos(angle * 0.0174532925199433); this._x += this.speed * Math.sin(angle * 0.0174532925199433); } else { xnamaChara = namaCharaJagoan[current]; zztujuJ = this.posJ; zztujuI = this.posI; zobyek = undefined; zk = 0; while (zk <= charaMusuh - 1) { if (zztujuI == posMusuhI[zk] && zztujuJ == posMusuhJ[zk]) { zobyek = namaCharaMusuh[zk]; } ++zk; } ygNyerang = xnamaChara; ygDiserang = zobyek; indiNyerang = _root[ygNyerang].ke; indiDiserang = _root[ygDiserang].ke; if (indiNyerang != undefined && indiDiserang != undefined) { cekKurangJagoan(ygNyerang, ygDiserang, this.ke); } --ambilAll; if (ambilAll <= 0) { delete this.onEnterFrame; bertambahExp = random(11) + 10; expJagoan[indiNyerang] += bertambahExp; if (expJagoan[indiNyerang] >= maxJagoan[indiNyerang]) { ++levelJagoan[indiNyerang]; totLiveJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incLive[indiNyerang] * 25); attackJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAttack[indiNyerang] * 10); defenseJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incDefense[indiNyerang] * 5); totAuraJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAura[indiNyerang] * 10); expJagoan[indiNyerang] = 0; maxJagoan[indiNyerang] = levelJagoan[indiNyerang] * xnaik2; delay3(this.ke); } else { delay4(this.ke); } delay1(); } removeMovieClip(this); } } function enterAll2() { tj = this.posJ; ti = this.posI; ubahDalam('tj', 'ti', 'dalam'); namaBaru = 'rumput_mc' + dalam; aimX = _root[namaBaru]._x + 50; aimY = _root[namaBaru]._y - 20; deltaX = this._x - aimX; deltaY = this._y - aimY; angle = -Math.atan2(deltaX, deltaY) / 0.0174532925199433; if (Math.sqrt(deltaX * deltaX + deltaY * deltaY) > this.speed) { this.speed += 0.1; this._y -= this.speed * Math.cos(angle * 0.0174532925199433); this._x += this.speed * Math.sin(angle * 0.0174532925199433); } else { xnamaChara = namaCharaMusuh[xcurrent]; zztujuJ = this.posJ; zztujuI = this.posI; zobyek = undefined; zk = 0; while (zk <= charaJagoan - 1) { if (zztujuI == posJagoanI[zk] && zztujuJ == posJagoanJ[zk]) { zobyek = namaCharaJagoan[zk]; } ++zk; } ygNyerang = xnamaChara; ygDiserang = zobyek; indiNyerang = _root[ygNyerang].ke; indiDiserang = _root[ygDiserang].ke; if (indiNyerang != undefined && indiDiserang != undefined) { cekKurangMusuh(ygNyerang, ygDiserang, this.ke); } --ambilAll; if (ambilAll <= 0) { delete this.onEnterFrame; bertambahExp = random(11) + 10; expMusuh[indiNyerang] += bertambahExp; if (expMusuh[indiNyerang] >= maxMusuh[indiNyerang]) { ++levelMusuh[indiNyerang]; totLiveMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincLive[indiNyerang] * 25); attackMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAttack[indiNyerang] * 10); defenseMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincDefense[indiNyerang] * 5); totAuraMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAura[indiNyerang] * 10); expMusuh[indiNyerang] = 0; maxMusuh[indiNyerang] = levelMusuh[indiNyerang] * xnaik2; delay3(this.ke); } else { delay4(this.ke); } delay2(); } removeMovieClip(this); } } function klikAttack() { klik(); if (auraJagoan[current] >= auraAbility[yindi]) { info2._visible = false; myStr = new String(this); if (myStr.length == 30) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } tipeSerangan = abilityJagoan[current][indi]; pilihanAbil = elementAbility[abilityJagoan[current][indi]]; yyindi = abilityJagoan[current][indi]; namaSerangan = msgBox3['attack' + indi]; if (namaSerangan != 'Normal') { info_mc.gotoAndPlay('xmulai'); } deleteMusuh(false); adaJedaInfo = false; removeMovieClip(msgBox_mc3); if (tipeSerangan == 11) { auraJagoan[current] -= auraAbility[yyindi]; actions._visible = false; actionJagoan[current] = true; ambilAllJ = new Array(); ambilAllI = new Array(); ambilAll = 0; k = 0; while (k <= charaMusuh - 1) { if (posMusuhI[k] != undefined && posMusuhJ[k] != undefined && _root[namaCharaMusuh[k]].hidup == true) { zj = posMusuhJ[k]; zi = posMusuhI[k]; ubahDalam('zj', 'zi', 'dalam'); namaBaru = 'rumput_mc' + dalam; if (_root[namaBaru] != undefined) { ambilAllJ[ambilAll] = posMusuhJ[k]; ambilAllI[ambilAll] = posMusuhI[k]; ++ambilAll; } } ++k; } xi = 0; while (xi <= ambilAll - 1) { all = attachMovie('all_mc', 'all_mc' + xi, dalamMeteor + xi); zj = ambilAllJ[xi]; zi = ambilAllI[xi]; ubahDalam('zj', 'zi', 'dalam'); namaBaru = 'rumput_mc' + dalam; all._yscale = random(50) + 50; all._xscale = all._yscale; all._rotation = random(360); all._x = _root[namaCharaJagoan[current]]._x; all._y = _root[namaCharaJagoan[current]]._y; all.posJ = zj; all.posI = zi; all.kenaBawah = namaBaru; all.speed = 5; all.ke = xi; all.onEnterFrame = enterAll; ++xi; } enabledMove(false); deleteMusuh(true); } else { charaAction(); } } else { msgBox3.choose = 'NOT ENOUGH AURA (AURA = ' + auraJagoan[current] + ')'; } } function klikItem() { klik(); myStr = new String(this); zzindi = Number(myStr.substr(myStr.length - 1, 1)); tipeItem = itemJagoan[current][zzindi]; if (punyaItem[itemJagoan[current][zzindi]] >= 1) { info2._visible = false; namaSerangan = jenisItem[itemJagoan[current][zzindi]]; info_mc.gotoAndPlay('xmulai'); deleteMusuh(false); adaJedaInfo = false; removeMovieClip(msgBox_mc3); charaItem(); } else { msgBox3.choose = 'NOT ENOUGH ITEM'; } } function cekItem(j, i, indi, indi2) { xj = j; xi = i; ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = true; _root[namaBaru].gotoAndStop(indi); myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0xA7FF91'); if (indi2 != 'komp') { _root[namaBaru].onRelease = klikKotak3; _root[namaBaru].onRollOver = overKotak3; _root[namaBaru].onRollOut = outKotak3; _root[namaBaru].onReleaseOutside = outKotak3; } } function klikKotak3(indi, indi2, indi3) { klik(); k = 0; while (k <= charaJagoan - 1) { obyek = namaCharaJagoan[k]; if (_root[obyek].hidup == true) { _root[obyek].itemKlik = false; } ++k; } setBisa(3, false); adaJedaMsgBox2 = false; if (indi != undefined) { this = indi; } tujuan = this; kata = new String(this); tujuJ = Number(kata.substr(kata.length - 4, 2)); tujuI = Number(kata.substr(kata.length - 2, 2)); xcurrentPath = 0; xPath = new Array(); yPath = new Array(); xPath[xcurrentPath] = tujuJ; yPath[xcurrentPath] = tujuI; if (indi2 != 'komp') { actions._visible = false; actionJagoan[current] = true; xnamaChara = undefined; zobyek = undefined; xnamaChara = namaCharaJagoan[current]; k = 0; while (k <= charaJagoan - 1) { if (tujuI == posJagoanI[k] && tujuJ == posJagoanJ[k]) { zobyek = namaCharaJagoan[k]; indiDiserang = k; k = charaJagoan - 1; } ++k; } ygNyerang = xnamaChara; ygDiserang = zobyek; indiNyerang = _root[ygNyerang].ke; cekPosisi('item'); enabledMove(false); deleteMusuh(true); } else { current = indi3; actionMusuh[indi3] = true; xnamaChara = undefined; zobyek = undefined; xnamaChara = namaCharaMusuh[indi3]; k = 0; while (k <= charaJagoan - 1) { if (tujuI == posJagoanI[k] && tujuJ == posJagoanJ[k]) { zobyek = namaCharaJagoan[k]; } ++k; } ygNyerang = xnamaChara; ygDiserang = zobyek; cekPosisi2('serang'); } } function klikJagoan() { klik(); this = this._parent; if (this.itemKlik == true) { vj = posJagoanJ[this.ke]; vi = posJagoanI[this.ke]; ubahDalam('vj', 'vi', 'dalam'); namaBaru = 'rumput_mc' + dalam; klikKotak3(_root[namaBaru]); } } function overKotak3(indi) { over(); if (indi != undefined) { this = indi; } myColor = new Color(this.warna_mc); myColor.setRGB('0x166F00'); } function outKotak3(indi) { if (indi != undefined) { this = indi; } myColor = new Color(this.warna_mc); myColor.setRGB('0xA7FF91'); } function charaItem() { setBisa(2, false); if (elementJagoan[current] == 1) { xgrange = 5; } else { xgrange = 1; } i = posJagoanI[current] - xgrange; while (i <= posJagoanI[current] + xgrange) { j = posJagoanJ[current] - xgrange; while (j <= posJagoanJ[current] + xgrange) { adaOrang = false; l = 0; while (l <= charaMusuh - 1) { if (i == posMusuhI[l] && j == posMusuhJ[l]) { adaOrang = true; l = charaMusuh; } ++l; } if (adaOrang == false) { cekItem(j, i, 2); } k = 0; while (k <= charaJagoan - 1) { if (i == posJagoanI[k] && j == posJagoanJ[k]) { obyek = namaCharaJagoan[k]; if (_root[obyek].hidup == true) { _root[obyek].klik_mc.enabled = true; _root[obyek].itemKlik = true; _root[obyek].klik_mc.onRelease = klikJagoan; _root[obyek].klik_mc.onRollOver = overChara; _root[obyek].klik_mc.onRollOut = outChara; _root[obyek].klik_mc.onReleaseOutside = outChara; } } ++k; } ++j; } ++i; } actions.cancel_btn.onRollOver = function () { over(); }; actions.cancel_btn.onRelease = function () { klik(); k = 0; while (k <= charaJagoan - 1) { obyek = namaCharaJagoan[k]; if (_root[obyek].hidup == true) { _root[obyek].itemKlik = false; } ++k; } if (info_mc._currentframe > 3) { info_mc.gotoAndPlay('xselesai'); } else { info_mc.gotoAndStop(1); } setBisa(1, true); deleteMove(); xresetMove(); setKlik(current); }; } function musuhItem(current) { setBisa(3, false); i = posMusuhI[current] - 1; while (i <= posMusuhI[current] + 1) { j = posMusuhJ[current] - 1; while (j <= posMusuhJ[current] + 1) { adaOrang = false; l = 0; while (l <= charaJagoan - 1) { if (i == posJagoanI[l] && j == posJagoanJ[l]) { adaOrang = true; l = charaJagoan; } ++l; } if (adaOrang == false) { cekItem(j, i, 2, 'komp'); } ++j; } ++i; } } function setMuncul(indi) { k = 0; while (k <= charaMusuh - 1) { obyek = namaCharaMusuh[k]; _root[obyek].darah_mc._visible = indi; _root[obyek].aura_mc._visible = indi; scala1 = (liveMusuh[k] / totLiveMusuh[k]) * 100; scala2 = (auraMusuh[k] / totAuraMusuh[k]) * 100; _root[obyek].darah_mc.zbar._xscale = scala1; _root[obyek].aura_mc.zbar._xscale = scala2; ++k; } } function charaAction2(indi) { xx = 0; if (serangJagoan[current] == 1) { i = posJagoanI[current] - serangJagoan[current]; while (i <= posJagoanI[current] + serangJagoan[current]) { j = posJagoanJ[current] - serangJagoan[current]; while (j <= posJagoanJ[current] + serangJagoan[current]) { if (i != posJagoanI[current] || j != posJagoanJ[current]) { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaJagoan - 1) { if (i == posJagoanI[l] && j == posJagoanJ[l]) { adaOrang = true; l = charaJagoan; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaMusuh - 1) { if (i == posMusuhI[k] && j == posMusuhJ[k]) { if (k != current) { obyek = namaCharaMusuh[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaMusuh + 1; } } } ++k; } } ++j; } ++i; } } else { i = posJagoanI[xcurrent] - serangJagoan[xcurrent]; while (i <= posJagoanI[xcurrent]) { j = posJagoanJ[xcurrent] - xx; while (j <= posJagoanJ[xcurrent] + xx) { if (posJagoanI[xcurrent] == i && posJagoanJ[xcurrent] == j) { } else { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaJagoan - 1) { if (i == posJagoanI[l] && j == posJagoanJ[l]) { adaOrang = true; l = charaJagoan; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaMusuh - 1) { if (i == posMusuhI[k] && j == posMusuhJ[k]) { if (k != xcurrent) { obyek = namaCharaMusuh[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaMusuh + 1; } } } ++k; } } ++j; } ++xx; ++i; } xx = serangJagoan[xcurrent]; i = posJagoanI[xcurrent]; while (i <= posJagoanI[xcurrent] + serangJagoan[xcurrent]) { j = posJagoanJ[xcurrent] - xx; while (j <= posJagoanJ[xcurrent] + xx) { if (posJagoanI[xcurrent] == i && posJagoanJ[xcurrent] == j) { } else { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaJagoan - 1) { if (i == posJagoanI[l] && j == posJagoanJ[l]) { adaOrang = true; l = charaJagoan; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaMusuh - 1) { if (i == posMusuhI[k] && j == posMusuhJ[k]) { if (k != xcurrent) { obyek = namaCharaMusuh[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaMusuh + 1; } } } ++k; } } ++j; } --xx; ++i; } } } function charaAction(indi) { if (uncontrolJagoan[current] == false) { setBisa(2, false); setMuncul(true); } xx = 0; if (uncontrolJagoan[current] == false) { if (serangJagoan[current] == 1) { i = posJagoanI[current] - serangJagoan[current]; while (i <= posJagoanI[current] + serangJagoan[current]) { j = posJagoanJ[current] - serangJagoan[current]; while (j <= posJagoanJ[current] + serangJagoan[current]) { adaOrang = false; l = 0; while (l <= charaJagoan - 1) { if (i == posJagoanI[l] && j == posJagoanJ[l]) { adaOrang = true; l = charaJagoan; } ++l; } if (adaOrang == false) { cekAction(j, i, 2); } k = 0; while (k <= charaMusuh - 1) { if (i == posMusuhI[k] && j == posMusuhJ[k]) { obyek = namaCharaMusuh[k]; if (_root[obyek].hidup == true) { _root[obyek].klik_mc.onRelease = klikMusuh; } } ++k; } ++j; } ++i; } } else { i = posJagoanI[current] - serangJagoan[current]; while (i <= posJagoanI[current]) { j = posJagoanJ[current] - xx; while (j <= posJagoanJ[current] + xx) { if (posJagoanI[current] == i && posJagoanJ[current] == j) { } else { adaOrang = false; l = 0; while (l <= charaJagoan - 1) { if (i == posJagoanI[l] && j == posJagoanJ[l]) { adaOrang = true; l = charaJagoan; } ++l; } if (adaOrang == false) { cekAction(j, i, 2); } k = 0; while (k <= charaMusuh - 1) { if (i == posMusuhI[k] && j == posMusuhJ[k]) { obyek = namaCharaMusuh[k]; if (_root[obyek].hidup == true) { _root[obyek].klik_mc.onRelease = klikMusuh; } } ++k; } } ++j; } ++xx; ++i; } xx = serangJagoan[current]; i = posJagoanI[current]; while (i <= posJagoanI[current] + serangJagoan[current]) { j = posJagoanJ[current] - xx; while (j <= posJagoanJ[current] + xx) { if (posJagoanI[current] == i && posJagoanJ[current] == j) { } else { adaOrang = false; l = 0; while (l <= charaJagoan - 1) { if (i == posJagoanI[l] && j == posJagoanJ[l]) { adaOrang = true; l = charaJagoan; } ++l; } if (adaOrang == false) { cekAction(j, i, 2); } k = 0; while (k <= charaMusuh - 1) { if (i == posMusuhI[k] && j == posMusuhJ[k]) { obyek = namaCharaMusuh[k]; if (_root[obyek].hidup == true) { _root[obyek].klik_mc.onRelease = klikMusuh; } } ++k; } } ++j; } --xx; ++i; } } actions.cancel_btn.onRelease = function () { over(); }; actions.cancel_btn.onRelease = function () { klik(); if (info_mc._currentframe > 3) { info_mc.gotoAndPlay('xselesai'); } else { info_mc.gotoAndStop(1); } setBisa(1, true); deleteMove(); xresetMove(); setKlik(current); setMuncul(false); }; } else { if (serangJagoan[current] == 1) { i = posJagoanI[current] - serangJagoan[current]; while (i <= posJagoanI[current] + serangJagoan[current]) { j = posJagoanJ[current] - serangJagoan[current]; while (j <= posJagoanJ[current] + serangJagoan[current]) { if (i != posJagoanI[current] || j != posJagoanJ[current]) { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaMusuh - 1) { if (i == posMusuhI[l] && j == posMusuhJ[l]) { adaOrang = true; l = charaMusuh; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaJagoan - 1) { if (i == posJagoanI[k] && j == posJagoanJ[k]) { if (k != current) { obyek = namaCharaJagoan[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaJagoan + 1; } } } ++k; } } ++j; } ++i; } } else { i = posJagoanI[xcurrent] - serangJagoan[xcurrent]; while (i <= posJagoanI[xcurrent]) { j = posJagoanJ[xcurrent] - xx; while (j <= posJagoanJ[xcurrent] + xx) { if (posJagoanI[xcurrent] == i && posJagoanJ[xcurrent] == j) { } else { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaMusuh - 1) { if (i == posMusuhI[l] && j == posMusuhJ[l]) { adaOrang = true; l = charaMusuh; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaJagoan - 1) { if (i == posJagoanI[k] && j == posJagoanJ[k]) { if (k != xcurrent) { obyek = namaCharaJagoan[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaJagoan + 1; } } } ++k; } } ++j; } ++xx; ++i; } xx = serangJagoan[xcurrent]; i = posJagoanI[xcurrent]; while (i <= posJagoanI[xcurrent] + serangJagoan[xcurrent]) { j = posJagoanJ[xcurrent] - xx; while (j <= posJagoanJ[xcurrent] + xx) { if (posJagoanI[xcurrent] == i && posJagoanJ[xcurrent] == j) { } else { if (indi == 'muncul') { adaOrang = false; l = 0; while (l <= charaMusuh - 1) { if (i == posMusuhI[l] && j == posMusuhJ[l]) { adaOrang = true; l = charaMusuh; } ++l; } if (adaOrang == false) { cekAction(j, i, 2, 'komp'); } } k = 0; while (k <= charaJagoan - 1) { if (i == posJagoanI[k] && j == posJagoanJ[k]) { if (k != xcurrent) { obyek = namaCharaJagoan[k]; if (_root[obyek].hidup == true) { adaSerang = true; xdiSerangI = i; xdiSerangJ = j; k = charaJagoan + 1; } } } ++k; } } ++j; } --xx; ++i; } } } } function cekMove(j, i, indi, indi2) { ei = 0; while (ei <= charaJagoan - 1) { if (_root[namaCharaJagoan[ei]].hidup == true) { mapping[posJagoanJ[ei]][posJagoanI[ei]] = 0; } ++ei; } ej = 0; while (ej <= charaMusuh - 1) { if (_root[namaCharaMusuh[ej]].hidup == true) { mapping[posMusuhJ[ej]][posMusuhI[ej]] = 0; } ++ej; } xj = j; xi = i; if (mapping[xj][xi] == 1) { if (indi2 != 'komp') { if (wwair[xj][xi] == 1) { if (tipeAir[current] == 1) { ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = true; _root[namaBaru].gotoAndStop(indi); myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x9293FE'); if (indi2 != 'komp') { _root[namaBaru].onRelease = klikKotak; _root[namaBaru].onRollOver = overKotak; _root[namaBaru].onRollOut = outKotak; _root[namaBaru].onReleaseOutside = outKotak; } } else { if (tipeUdara[current] == 1) { ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = true; _root[namaBaru].gotoAndStop(indi); myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x9293FE'); if (indi2 != 'komp') { _root[namaBaru].onRelease = klikKotak; _root[namaBaru].onRollOver = overKotak; _root[namaBaru].onRollOut = outKotak; _root[namaBaru].onReleaseOutside = outKotak; } } } } else { if (wwudara[xj][xi] == 1) { if (tipeUdara[current] == 1) { ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = true; _root[namaBaru].gotoAndStop(indi); myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x9293FE'); if (indi2 != 'komp') { _root[namaBaru].onRelease = klikKotak; _root[namaBaru].onRollOver = overKotak; _root[namaBaru].onRollOut = outKotak; _root[namaBaru].onReleaseOutside = outKotak; } } } else { ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = true; _root[namaBaru].gotoAndStop(indi); myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x9293FE'); if (indi2 != 'komp') { _root[namaBaru].onRelease = klikKotak; _root[namaBaru].onRollOver = overKotak; _root[namaBaru].onRollOut = outKotak; _root[namaBaru].onReleaseOutside = outKotak; } } } } else { if (wwair[xj][xi] == 1) { if (xtipeAir[xcurrent] == 1) { ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = true; _root[namaBaru].gotoAndStop(indi); myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x9293FE'); if (indi2 != 'komp') { _root[namaBaru].onRelease = klikKotak; _root[namaBaru].onRollOver = overKotak; _root[namaBaru].onRollOut = outKotak; _root[namaBaru].onReleaseOutside = outKotak; } } else { if (xtipeUdara[xcurrent] == 1) { ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = true; _root[namaBaru].gotoAndStop(indi); myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x9293FE'); if (indi2 != 'komp') { _root[namaBaru].onRelease = klikKotak; _root[namaBaru].onRollOver = overKotak; _root[namaBaru].onRollOut = outKotak; _root[namaBaru].onReleaseOutside = outKotak; } } } } else { if (wwudara[xj][xi] == 1) { if (xtipeUdara[xcurrent] == 1) { ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = true; _root[namaBaru].gotoAndStop(indi); myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x9293FE'); if (indi2 != 'komp') { _root[namaBaru].onRelease = klikKotak; _root[namaBaru].onRollOver = overKotak; _root[namaBaru].onRollOut = outKotak; _root[namaBaru].onReleaseOutside = outKotak; } } } else { ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = true; _root[namaBaru].gotoAndStop(indi); myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x9293FE'); if (indi2 != 'komp') { _root[namaBaru].onRelease = klikKotak; _root[namaBaru].onRollOver = overKotak; _root[namaBaru].onRollOut = outKotak; _root[namaBaru].onReleaseOutside = outKotak; } } } } } } function jagoanAI(indi) { jarakYg = new Array(); ambilKeJ = new Array(); ambilKeI = new Array(); ambil = new Array(); xchara = new Array(); jarakKe = 0; charaKe = undefined; k = 0; while (k <= charaJagoan - 1) { if (_root[namaCharaJagoan[k]].hidup == true) { if (k != indi) { jarakYg[jarakKe] = Math.sqrt(Math.pow(posJagoanI[k] - posJagoanI[indi], 2) + Math.pow(posJagoanJ[k] - posJagoanJ[indi], 2)); xchara[jarakKe] = k; ambil[jarakKe] = jarakKe; ++jarakKe; } } ++k; } i = 0; while (i <= jarakKe - 1) { j = i + 1; while (j <= jarakKe - 1) { if (jarakYg[i] > jarakYg[j]) { xtemp = jarakYg[i]; jarakYg[i] = jarakYg[j]; jarakYg[j] = xtemp; ytemp = i; ambil[i] = ambil[j]; ambil[j] = ytemp; } ++j; } ++i; } xambil = ambil[0]; charaKe = xchara[xambil]; } function kompAI() { jarakYg = new Array(); ambilKeJ = new Array(); ambilKeI = new Array(); ambil = new Array(); xchara = new Array(); jarakKe = 0; charaKe = 0; if (uncontrolMusuh[xcurrent] == false) { k = 0; while (k <= charaJagoan - 1) { if (_root[namaCharaJagoan[k]].hidup == true) { jarakYg[jarakKe] = Math.sqrt(Math.pow(posJagoanI[k] - posMusuhI[xcurrent], 2) + Math.pow(posJagoanJ[k] - posMusuhJ[xcurrent], 2)); xchara[jarakKe] = k; ambil[jarakKe] = jarakKe; ++jarakKe; } ++k; } } else { k = 0; while (k <= charaMusuh - 1) { if (_root[namaCharaMusuh[k]].hidup == true) { if (k != xcurrent) { jarakYg[jarakKe] = Math.sqrt(Math.pow(posMusuhI[k] - posMusuhI[xcurrent], 2) + Math.pow(posMusuhJ[k] - posMusuhJ[xcurrent], 2)); xchara[jarakKe] = k; ambil[jarakKe] = jarakKe; ++jarakKe; } } ++k; } } i = 0; while (i <= jarakKe - 1) { j = i + 1; while (j <= jarakKe - 1) { if (jarakYg[i] > jarakYg[j]) { xtemp = jarakYg[i]; jarakYg[i] = jarakYg[j]; jarakYg[j] = xtemp; ytemp = i; ambil[i] = ambil[j]; ambil[j] = ytemp; } ++j; } ++i; } xambil = ambil[0]; charaKe = xchara[xambil]; } function kompAI3() { jarakYg = new Array(); ambilKeJ = new Array(); ambilKeI = new Array(); ambil = new Array(); xcharaI = new Array(); xcharaJ = new Array(); jarakKe = 0; charaKeI = 0; charaKeJ = 0; i = posMusuhI[xcurrent] - xrangeMusuh[xcurrent]; while (i <= posMusuhI[xcurrent] + xrangeMusuh[xcurrent]) { j = posMusuhJ[xcurrent] - xrangeMusuh[xcurrent]; while (j <= posMusuhJ[xcurrent] + xrangeMusuh[xcurrent]) { if (j != posMusuhJ[xcurrent] && i != posMusuhI[xcurrent]) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; if (_root[namaBaru]._currentframe > 1 && mapping[j][i] == 1) { jarakYg[jarakKe] = Math.sqrt(Math.pow(posJagoanI[indiDiserang] - i, 2) + Math.pow(posJagoanJ[indiDiserang] - j, 2)); xcharaI[jarakKe] = i; xcharaJ[jarakKe] = j; ambil[jarakKe] = jarakKe; ++jarakKe; } } ++j; } ++i; } i = 0; while (i <= jarakKe - 1) { j = i + 1; while (j <= jarakKe - 1) { if (jarakYg[i] < jarakYg[j]) { xtemp = jarakYg[i]; jarakYg[i] = jarakYg[j]; jarakYg[j] = xtemp; ytemp = i; ambil[i] = ambil[j]; ambil[j] = ytemp; } ++j; } ++i; } xambil = ambil[0]; charaKeI = xcharaI[xambil]; charaKeJ = xcharaJ[xambil]; } function cekAction(j, i, indi, indi2) { xj = j; xi = i; ubahDalam('xj', 'xi', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = true; _root[namaBaru].gotoAndStop(indi); myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0xFEABAB'); if (indi2 != 'komp') { _root[namaBaru].onRelease = klikKotak2; _root[namaBaru].onRollOver = overKotak2; _root[namaBaru].onRollOut = outKotak2; _root[namaBaru].onReleaseOutside = outKotak2; } } function klikKotak(indi, indi2) { klik(); adaJedaMsgBox2 = false; deleteMusuh(false); if (indi != undefined) { this = indi; } if (indi2 == 'komp') { musuhAktif[xcurrent] = false; kata = new String(this); tujuJ = Number(kata.substr(kata.length - 4, 2)); tujuI = Number(kata.substr(kata.length - 2, 2)); mapping[posMusuhJ[xcurrent]][posMusuhI[xcurrent]] = 1; mapping[tujuJ][tujuI] = 0; xxStart = posMusuhI[xcurrent]; yyStart = posMusuhJ[xcurrent]; xxLast = tujuI; yyLast = tujuJ; areamove = 'no'; xpathFinding('komp'); if (xpos != 0) { moveMusuh[xcurrent] = true; enabledMove(false); } else { mapping[posMusuhJ[xcurrent]][posMusuhI[xcurrent]] = 0; mapping[tujuJ][tujuI] = 1; } } else { kata = new String(this); tujuJ = Number(kata.substr(kata.length - 4, 2)); tujuI = Number(kata.substr(kata.length - 2, 2)); mapping[posJagoanJ[current]][posJagoanI[current]] = 1; mapping[tujuJ][tujuI] = 0; xxStart = posJagoanI[current]; yyStart = posJagoanJ[current]; xxLast = tujuI; yyLast = tujuJ; areamove = 'no'; xpathFinding('jagoan'); if (xpos != 0) { actions._visible = false; moveJagoan[current] = true; enabledMove(false); } else { mapping[posJagoanJ[current]][posJagoanI[current]] = 0; mapping[tujuJ][tujuI] = 1; } } } function enterMeteor() { this._y += this.speed; this.speed += 0.1; if (this.hitTest(_root[this.kenaBawah])) { xnamaChara = namaCharaJagoan[current]; zztujuJ = this.posJ; zztujuI = this.posI; zobyek = undefined; zk = 0; while (zk <= charaMusuh - 1) { if (zztujuI == posMusuhI[zk] && zztujuJ == posMusuhJ[zk]) { zobyek = namaCharaMusuh[zk]; } ++zk; } ygNyerang = xnamaChara; ygDiserang = zobyek; indiNyerang = _root[ygNyerang].ke; indiDiserang = _root[ygDiserang].ke; if (indiNyerang != undefined && indiDiserang != undefined) { cekKurangJagoan(ygNyerang, ygDiserang, this.ke); } --ambilMeteor; if (ambilMeteor <= 0) { delete this.onEnterFrame; bertambahExp = random(11) + 10; expJagoan[indiNyerang] += bertambahExp; if (expJagoan[indiNyerang] >= maxJagoan[indiNyerang]) { ++levelJagoan[indiNyerang]; totLiveJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incLive[indiNyerang] * 25); attackJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAttack[indiNyerang] * 10); defenseJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incDefense[indiNyerang] * 5); totAuraJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAura[indiNyerang] * 10); expJagoan[indiNyerang] = 0; maxJagoan[indiNyerang] = levelJagoan[indiNyerang] * xnaik2; delay3(this.ke); } else { delay4(this.ke); } delay1(); } removeMovieClip(this); } } function enterMeteor2() { this._y += this.speed; this.speed += 0.1; if (this.hitTest(_root[this.kenaBawah])) { xnamaChara = namaCharaMusuh[current]; zztujuJ = this.posJ; zztujuI = this.posI; zobyek = undefined; zk = 0; while (zk <= charaJagoan - 1) { if (zztujuI == posJagoanI[zk] && zztujuJ == posJagoanJ[zk]) { zobyek = namaCharaJagoan[zk]; } ++zk; } ygNyerang = xnamaChara; ygDiserang = zobyek; indiNyerang = _root[ygNyerang].ke; indiDiserang = _root[ygDiserang].ke; if (indiNyerang != undefined && indiDiserang != undefined) { cekKurangMusuh(ygNyerang, ygDiserang, this.ke); } --ambilMeteor; if (ambilMeteor <= 0) { _root[namaCharaMusuh[indiNyerang]].enabled = true; delete this.onEnterFrame; bertambahExp = random(11) + 10; expMusuh[indiNyerang] += bertambahExp; if (expMusuh[indiNyerang] >= maxMusuh[indiNyerang]) { ++levelMusuh[indiNyerang]; totLiveMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincLive[indiNyerang] * 25); attackMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAttack[indiNyerang] * 10); defenseMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincDefense[indiNyerang] * 5); totAuraMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAura[indiNyerang] * 10); expMusuh[indiNyerang] = 0; maxMusuh[indiNyerang] = levelMusuh[indiNyerang] * xnaik2; delay3(this.ke); } else { delay4(this.ke); } delay2(); } removeMovieClip(this); } } function klikKotak2(indi, indi2, indi3) { klik(); adaJedaMsgBox2 = false; if (indi != undefined) { this = indi; } tujuan = this; kata = new String(this); tujuJ = Number(kata.substr(kata.length - 4, 2)); tujuI = Number(kata.substr(kata.length - 2, 2)); xcurrentPath = 0; xPath = new Array(); yPath = new Array(); xPath[xcurrentPath] = tujuJ; yPath[xcurrentPath] = tujuI; if (indi2 != 'komp') { if (uncontrolJagoan[current] == false) { auraJagoan[current] -= auraAbility[yyindi]; actions._visible = false; actionJagoan[current] = true; if (tipeSerangan == 10) { xi = 0; while (xi <= ambilMeteor - 1) { meteor = attachMovie('meteor_mc', 'meteor_mc' + xi, dalamMeteor + xi); zj = ambilMeteorJ[xi]; zi = ambilMeteorI[xi]; ubahDalam('zj', 'zi', 'dalam'); namaBaru = 'rumput_mc' + dalam; meteor._yscale = random(50) + 75; meteor._xscale = meteor._yscale; meteor._rotation = random(360); meteor._x = _root[namaBaru]._x + 40; meteor._y = -10 - random(100); meteor.posJ = zj; meteor.posI = zi; meteor.kenaBawah = namaBaru; meteor.speed = random(21) + 5; meteor.ke = xi; meteor.onEnterFrame = enterMeteor; ++xi; } } else { xnamaChara = undefined; zobyek = undefined; xnamaChara = namaCharaJagoan[current]; k = 0; while (k <= charaMusuh - 1) { if (tujuI == posMusuhI[k] && tujuJ == posMusuhJ[k]) { zobyek = namaCharaMusuh[k]; indiDiserang = k; k = charaMusuh - 1; } ++k; } ygNyerang = xnamaChara; ygDiserang = zobyek; indiNyerang = _root[ygNyerang].ke; cekPosisi('serang'); } enabledMove(false); deleteMusuh(true); } else { actions._visible = false; actionJagoan[current] = true; xnamaChara = undefined; zobyek = undefined; xnamaChara = namaCharaJagoan[current]; k = 0; while (k <= charaJagoan - 1) { if (tujuI == posJagoanI[k] && tujuJ == posJagoanJ[k]) { zobyek = namaCharaJagoan[k]; indiDiserang = k; k = charaJagoan - 1; } ++k; } ygNyerang = xnamaChara; ygDiserang = zobyek; indiNyerang = _root[ygNyerang].ke; cekPosisi4('serang'); } } else { if (uncontrolMusuh[xcurrent] == false) { if (tipeSerangan == 10) { _root[namaCharaMusuh[xcurrent]].enabled = false; actionMusuh[xcurrent] = true; ambilMeteorJ = new Array(); ambilMeteorI = new Array(); ambilMeteor = 0; kata = new String(this); ztujuJ = Number(kata.substr(kata.length - 4, 2)); ztujuI = Number(kata.substr(kata.length - 2, 2)); zrange = 1; i = ztujuI - zrange; while (i <= ztujuI + zrange) { j = ztujuJ - zrange; while (j <= ztujuJ + zrange) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; if (_root[namaBaru]._currentframe == 2) { myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x6C0202'); ambilMeteorJ[ambilMeteor] = j; ambilMeteorI[ambilMeteor] = i; ++ambilMeteor; } ++j; } ++i; } xi = 0; while (xi <= ambilMeteor - 1) { meteor = attachMovie('meteor_mc', 'meteor_mc' + xi, dalamMeteor + xi); zj = ambilMeteorJ[xi]; zi = ambilMeteorI[xi]; ubahDalam('zj', 'zi', 'dalam'); namaBaru = 'rumput_mc' + dalam; meteor._yscale = random(50) + 75; meteor._xscale = meteor._yscale; meteor._rotation = random(360); meteor._x = _root[namaBaru]._x + 40; meteor._y = -10 - random(100); meteor.posJ = zj; meteor.posI = zi; meteor.kenaBawah = namaBaru; meteor.speed = random(21) + 5; meteor.ke = xi; meteor.onEnterFrame = enterMeteor2; ++xi; } } else { current = indi3; actionMusuh[indi3] = true; xnamaChara = undefined; zobyek = undefined; xnamaChara = namaCharaMusuh[indi3]; k = 0; while (k <= charaJagoan - 1) { if (tujuI == posJagoanI[k] && tujuJ == posJagoanJ[k]) { zobyek = namaCharaJagoan[k]; } ++k; } ygNyerang = xnamaChara; ygDiserang = zobyek; cekPosisi2('serang'); } } else { current = indi3; actionMusuh[indi3] = true; xnamaChara = undefined; zobyek = undefined; xnamaChara = namaCharaMusuh[indi3]; k = 0; while (k <= charaMusuh - 1) { if (tujuI == posMusuhI[k] && tujuJ == posMusuhJ[k]) { zobyek = namaCharaMusuh[k]; } ++k; } ygNyerang = xnamaChara; ygDiserang = zobyek; cekPosisi3('serang'); } } } function deleteMusuh(indi) { msgBox2._visible = false; k = 0; while (k <= charaMusuh - 1) { xobyek = namaCharaMusuh[k]; if (indi == true) { delete _root[xobyek].klik_mc.onRelease; delete _root[xobyek].klik_mc.onRollOver; delete _root[xobyek].klik_mc.onRollOut; delete _root[xobyek].klik_mc.onReleaseOutside; } else { if (indi == false) { _root[xobyek].klik_mc.onRollOver = overChara; _root[xobyek].klik_mc.onRollOut = outChara; _root[xobyek].klik_mc.onReleaseOutside = outChara; _root[xobyek].klik_mc.onRelease = klikChara2; } } ++k; } } function deleteMusuh2(indi) { msgBox2._visible = false; k = 0; while (k <= charaMusuh - 1) { xobyek = namaCharaMusuh[k]; xobyek.enabled = indi; ++k; } } function overKotak() { over(); myColor = new Color(this.warna_mc); myColor.setRGB('0x01016D'); } function outKotak() { myColor = new Color(this.warna_mc); myColor.setRGB('0x9293FE'); } function overKotak2(indi) { over(); if (indi != undefined) { this = indi; } ambilMeteorJ = new Array(); ambilMeteorI = new Array(); ambilMeteor = 0; if (tipeSerangan == 10) { kata = new String(this); ztujuJ = Number(kata.substr(kata.length - 4, 2)); ztujuI = Number(kata.substr(kata.length - 2, 2)); zrange = 1; i = ztujuI - zrange; while (i <= ztujuI + zrange) { j = ztujuJ - zrange; while (j <= ztujuJ + zrange) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; myColor2 = new Color(_root[namaBaru].warna_mc); if (_root[namaBaru]._currentframe == 2) { if (myColor2.getRGB() == '0xFEABAB') { myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x6C0202'); ambilMeteorJ[ambilMeteor] = j; ambilMeteorI[ambilMeteor] = i; ++ambilMeteor; } } ++j; } ++i; } } else { myColor = new Color(this.warna_mc); myColor.setRGB('0x6C0202'); } } function outKotak2(indi) { if (indi != undefined) { this = indi; } if (tipeSerangan == 10) { kata = new String(this); ztujuJ = Number(kata.substr(kata.length - 4, 2)); ztujuI = Number(kata.substr(kata.length - 2, 2)); zrange = 1; i = ztujuI - zrange; while (i <= ztujuI + zrange) { j = ztujuJ - zrange; while (j <= ztujuJ + zrange) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; myColor2 = new Color(_root[namaBaru].warna_mc); if (myColor2.getRGB() == '0x6C0202') { myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0xFEABAB'); } ++j; } ++i; } } else { myColor = new Color(this.warna_mc); myColor.setRGB('0xFEABAB'); } } function xresetMove() { i = 0; while (i <= panjang) { j = 0; while (j <= lebar) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].gotoAndStop(1); ++j; } ++i; } } function enabledMove(indi) { i = 0; while (i <= panjang) { j = 0; while (j <= lebar) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; _root[namaBaru].enabled = indi; ++j; } ++i; } } function deleteMove() { i = 0; while (i <= panjang) { j = 0; while (j <= lebar) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; delete _root[namaBaru].onRelease; delete _root[namaBaru].onRollOver; delete _root[namaBaru].onRollOut; delete _root[namaBaru].onReleaseOutside; ++j; } ++i; } } function enterMsgBox() { if (adaJedaMsgBox2 == true) { ++jedaMsgBox2; if (jedaMsgBox2 >= 10) { this._visible = true; if (this._alpha <= 100) { this._alpha += 30; } } } else { this._visible = false; } if (_root._xmouse > 400) { this._x = _root._xmouse - 200; this._y = _root._ymouse; } else { this._x = _root._xmouse + 50; this._y = _root._ymouse; } } function buatKotak() { wwjurang = new Array(); i = 0; while (i <= panjang) { wwjurang[i] = new Array(); j = 0; while (j <= lebar) { wwjurang[j][i] = 0; ++j; } ++i; } wwair = new Array(); i = 0; while (i <= panjang) { wwair[i] = new Array(); j = 0; while (j <= lebar) { wwair[j][i] = 0; ++j; } ++i; } wwudara = new Array(); i = 0; while (i <= panjang) { wwudara[i] = new Array(); j = 0; while (j <= lebar) { wwudara[j][i] = 0; ++j; } ++i; } adaRanjau = new Array(); i = 0; while (i <= panjang) { adaRanjau[i] = new Array(); j = 0; while (j <= lebar) { adaRanjau[j][i] = 0; ++j; } ++i; } kk = 0; while (kk <= panjang * 2) { j = 0; i = kk; while (i >= 0) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; namaBaru2 = 'obyek_mc' + dalam; if (mapping[j][i] != undefined) { if (mapKe >= 16) { if (mapping[j][i] == -8) { rumput = attachMovie('jalan_mc', namaBaru, dalam1); rumput._visible = false; mapping[j][i] = 1; wwjurang[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 55) { rumput = attachMovie('rumput_mc3', namaBaru, dalam1); } else { if (mapping[j][i] == 53) { rumput = attachMovie('rumput_mc4', namaBaru, dalam1); mapping[j][i] = 1; } else { if (jenisMaen == 'training') { rumput = attachMovie('rumput_mc2', namaBaru, dalam1); } else { rumput = attachMovie('rumput_mc4', namaBaru, dalam1); } } } } } else { if (mapping[j][i] == -1) { rumput = attachMovie('air_mc', namaBaru, dalam1); mapping[j][i] = 1; wwair[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 61 || mapping[j][i] == 95) { rumput = attachMovie('air_mc', namaBaru, dalam1); } else { if (mapping[j][i] == 62) { rumput = attachMovie('air_mc', namaBaru, dalam1); } else { if (mapping[j][i] == 69) { rumput = attachMovie('air_mc4', namaBaru, dalam1); } else { if (mapping[j][i] == 96) { rumput = attachMovie('air_mc', namaBaru, dalam1); mapping[j][i] = 0; } else { if (mapping[j][i] == 70) { rumput = attachMovie('air_mc', namaBaru, dalam1); mapping[j][i] = 1; } else { if (mapping[j][i] == 84) { rumput = attachMovie('air_mc3', namaBaru, dalam1); mapping[j][i] = 1; wwair[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 85) { rumput = attachMovie('air_mc4', namaBaru, dalam1); mapping[j][i] = 1; wwair[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 50 && mapKe == 14) { rumput = attachMovie('air_mc4', namaBaru, dalam1); wwair[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 51 && mapKe == 14) { rumput = attachMovie('air_mc4', namaBaru, dalam1); wwair[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 86) { rumput = attachMovie('air_mc5', namaBaru, dalam1); mapping[j][i] = 1; wwair[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 87) { rumput = attachMovie('air_mc6', namaBaru, dalam1); mapping[j][i] = 1; wwair[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 88) { rumput = attachMovie('air_mc7', namaBaru, dalam1); mapping[j][i] = 1; wwair[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 89) { rumput = attachMovie('air_mc8', namaBaru, dalam1); mapping[j][i] = 1; wwair[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 90) { rumput = attachMovie('air_mc4', namaBaru, dalam1); mapping[j][i] = 1; } else { if (mapping[j][i] == -4) { rumput = attachMovie('rumput_mc', namaBaru, dalam1); mapping[j][i] = 1; } else { if (mapping[j][i] == -5) { rumput = attachMovie('jalan_mc', namaBaru, dalam1); mapping[j][i] = 1; } else { if (mapping[j][i] == -8) { rumput = attachMovie('jalan_mc', namaBaru, dalam1); rumput._visible = false; mapping[j][i] = 1; wwjurang[j][i] = 1; wwudara[j][i] = 1; } else { if (mapping[j][i] == 8) { rumput = attachMovie('jalan2_mc', namaBaru, dalam1); mapping[j][i] = 1; } else { if (mapping[j][i] == 53) { rumput = attachMovie('rumput_mc4', namaBaru, dalam1); mapping[j][i] = 1; } else { if (jenisMaen == 'training') { if (mapKe == 2) { rumput = attachMovie('rumput_mc3', namaBaru, dalam1); } else { if (mapKe <= 4) { rumput = attachMovie('rumput_mc2', namaBaru, dalam1); } else { if (mapKe <= 7) { rumput = attachMovie('rumput_mc5', namaBaru, dalam1); } else { if (mapKe <= 9) { rumput = attachMovie('rumput_mc3', namaBaru, dalam1); } else { if (mapKe <= 11) { rumput = attachMovie('rumput_mc2', namaBaru, dalam1); } else { if (mapKe <= 15) { rumput = attachMovie('rumput_mc7', namaBaru, dalam1); } else { if (mapKe == 16) { rumput = attachMovie('rumput_mc2', namaBaru, dalam1); } } } } } } } } else { if (mapKe == 1 && jenisMaen != 'training') { rumput = attachMovie('rumput_mc3', namaBaru, dalam1); } else { if (mapKe == 4 || mapKe == 5 || mapKe == 6) { rumput = attachMovie('rumput_mc5', namaBaru, dalam1); } else { if (mapKe == 11 || mapKe == 12 || mapKe == 14 || mapKe == 15) { rumput = attachMovie('rumput_mc7', namaBaru, dalam1); } else { if (mapKe == 13) { rumput = attachMovie('rumput_mc6', namaBaru, dalam1); } else { if (mapKe >= 7 && mapKe <= 9) { rumput = attachMovie('rumput_mc3', namaBaru, dalam1); } else { if (mapKe >= 16) { rumput = attachMovie('rumput_mc4', namaBaru, dalam1); } else { rumput = attachMovie('rumput_mc2', namaBaru, dalam1); } } } } } } } } } } } } } } } } } } } } } } } } } } } } if (i == 0 && j == panjang) { batasKanan = 'rumput_mc' + dalam; } else { if (i == panjang && j == 0) { batasKiri = 'rumput_mc' + dalam; } else { if (i == 0 && j == 0) { batasBawah = 'rumput_mc' + dalam; } else { if (i == panjang && j == panjang) { batasAtas = 'rumput_mc' + dalam; } } } } posX = i * bKotak; posY = j * bKotak; rumput._x = posAwalX + (posX - posY); rumput._y = posAwalY + (posX + posY) / 2; rumput._xscale = scalaKotak; rumput._yscale = scalaKotak; cekObyek(j, i, dalam2); dalam1 += 2; dalam2 += 2; } ++j; --i; } ++kk; } charaJagoan = diriJagoan.length; charaMusuh = diriMusuh.length; } function cekObyek(indiJ, indiI, dalam2) { if (mapping[indiJ][indiI] == 2) { charaJagoan = 0; obyek = attachMovie('david_mc', namaBaru2, dalam2); obyek.jenis = 'jagoan'; obyek.zjenis = 1; obyek.yspeedChara = 5; cekAbility(charaJagoan); if (mapKe >= 5) { tipeAir[charaJagoan] = 1; } if (mapKe >= 10) { tipeUdara[charaJagoan] = 1; tipeAir[charaJagoan] = 1; } bolehMati[charaJagoan] = false; obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 3) { obyek = attachMovie('faith_mc', namaBaru2, dalam2); charaJagoan = 1; obyek.jenis = 'jagoan'; obyek.zjenis = 2; obyek.speedChara = 4; obyek.yspeedChara = 5; cekAbility(charaJagoan); bolehMati[charaJagoan] = false; obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 4) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('odarat_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 3; obyek.speedChara = 2.5; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Ground Ogre'; xincLive[charaMusuh] = 1.5; xincAttack[charaMusuh] = 2; xincDefense[charaMusuh] = 2; xincAura[charaMusuh] = 1.5; rangeMusuh[charaMusuh] = 4; xrangeMusuh[charaMusuh] = 4; serangMusuh[charaMusuh] = 1; accuracyMusuh[charaMusuh] = 75; elementMusuh[charaMusuh] = 3; jenisMusuh[charaMusuh] = 3; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Big Cudgel'; xmusuhWeapon[charaMusuh] = 8; xjenisRace[charaMusuh] = 4; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 5) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('osihir_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 4; obyek.speedChara = 2; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 2; namaMusuh[charaMusuh] = 'Witch Ogre'; xincLive[charaMusuh] = 1.5; xincAttack[charaMusuh] = 1.75; xincDefense[charaMusuh] = 1.5; xincAura[charaMusuh] = 2; rangeMusuh[charaMusuh] = 3; xrangeMusuh[charaMusuh] = 3; serangMusuh[charaMusuh] = 4; accuracyMusuh[charaMusuh] = 70; elementMusuh[charaMusuh] = 1; jenisMusuh[charaMusuh] = 4; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Magic Stick'; xmusuhWeapon[charaMusuh] = 9; xjenisRace[charaMusuh] = 4; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 6) { obyek = attachMovie('odarat_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.speedChara = 3; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Jombler'; rankMusuh[charaMusuh] = 'Ground Ogre Commander'; obyek.zjenis = 5; xincLive[charaMusuh] = 2; xincAttack[charaMusuh] = 2.5; xincDefense[charaMusuh] = 2.5; xincAura[charaMusuh] = 2; rangeMusuh[charaMusuh] = 5; xrangeMusuh[charaMusuh] = 5; serangMusuh[charaMusuh] = 2; accuracyMusuh[charaMusuh] = 90; elementMusuh[charaMusuh] = 3; jenisMusuh[charaMusuh] = 5; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Big Cudgel'; xmusuhWeapon[charaMusuh] = 8; xjenisRace[charaMusuh] = 4; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); obyek._xscale = scalaObyek + 5; obyek._yscale = scalaObyek + 5; } else { if (mapping[indiJ][indiI] == -2) { obyek = attachMovie('rumah_mc', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == -3) { rand = random(2); rand = 0; if (rand == 0) { obyek = attachMovie('pohon_mc', namaBaru2, dalam2); } else { obyek = attachMovie('pohon_mc2', namaBaru2, dalam2); } obyek._yscale = 80 + random(41); obyek._xscale = obyek._yscale; obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == -6) { rand = random(2); rand = 0; if (rand == 0) { obyek = attachMovie('semak_mc', namaBaru2, dalam2); } else { obyek = attachMovie('semak_mc2', namaBaru2, dalam2); } obyek._yscale = 90 + random(21); obyek._xscale = obyek._yscale; obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == -7) { obyek = attachMovie('danau_mc', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == -9) { obyek = attachMovie('arrow_mc', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; posArrowJ = indiJ; posArrowI = indiI; mapping[indiJ][indiI] = 1; } else { if (mapping[indiJ][indiI] == 7) { obyek = attachMovie('pagar_mc', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 9) { obyek = attachMovie('pagar_mc2', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 10) { rand = random(3); if (rand == 0) { obyek = attachMovie('kaktus_mc', namaBaru2, dalam2); } else { if (rand == 1) { obyek = attachMovie('kaktus_mc2', namaBaru2, dalam2); } else { if (rand == 2) { obyek = attachMovie('kaktus_mc3', namaBaru2, dalam2); } } } obyek._yscale = 80 + random(41); obyek._xscale = obyek._yscale; obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 11) { obyek = attachMovie('rumah_mc2', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 12) { obyek = attachMovie('rumah_mc3', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 13 || mapping[indiJ][indiI] == 55) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('api_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.ajenis = 'api'; obyek.zjenis = 6; obyek.speedChara = 3; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Fire Live'; xincLive[charaMusuh] = 3; xincAttack[charaMusuh] = 0; xincDefense[charaMusuh] = 2; xincAura[charaMusuh] = 0; rangeMusuh[charaMusuh] = 0; xrangeMusuh[charaMusuh] = 0; serangMusuh[charaMusuh] = 0; accuracyMusuh[charaMusuh] = 0; elementMusuh[charaMusuh] = 1; jenisMusuh[charaMusuh] = 6; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Empty'; xjenisRace[charaMusuh] = 4; xxx = 1; while (xxx <= 5) { if (itemMusuh[charaMusuh][xxx] == 11) { itemMusuh[charaMusuh][xxx] = 0; } ++xxx; } poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 14) { rand = random(5); if (rand == 0) { obyek = attachMovie('batu_mc', namaBaru2, dalam2); } else { if (rand == 1) { obyek = attachMovie('batu_mc2', namaBaru2, dalam2); } else { if (rand == 2) { obyek = attachMovie('batu_mc3', namaBaru2, dalam2); } else { if (rand == 3) { obyek = attachMovie('batu_mc4', namaBaru2, dalam2); } else { if (rand == 4) { obyek = attachMovie('batu_mc5', namaBaru2, dalam2); } } } } } obyek._yscale = 50 + random(11); obyek._xscale = obyek._yscale; obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 15) { obyek = attachMovie('devy_mc', namaBaru2, dalam2); if (jenisMaen == 'training') { charaMusuh = 0; obyek.jenis = 'musuh'; obyek.zjenis = 8; obyek.speedChara = 4; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Devy Carla'; xincLive[charaMusuh] = 3; xincAttack[charaMusuh] = 2.5; xincDefense[charaMusuh] = 2.5; xincAura[charaMusuh] = 4.5; xrangeMusuh[charaMusuh] = 5; serangMusuh[charaMusuh] = 6; accuracyMusuh[charaMusuh] = 85; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Black Rose'; xmusuhWeapon[charaMusuh] = 4; xjenisRace[charaMusuh] = 4; elementMusuh[charaMusuh] = 1; jenisMusuh[charaMusuh] = 8; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); } else { charaJagoan = 3; obyek.jenis = 'jagoan'; obyek.zjenis = 8; obyek.yspeedChara = 6; if (mapKe >= 10) { bisaIlang[charaJagoan] = 1; tipeUdara[charaJagoan] = 1; tipeAir[charaJagoan] = 1; } bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } } else { if (mapping[indiJ][indiI] == 16) { obyek = attachMovie('brunhill_mc', namaBaru2, dalam2); charaJagoan = 2; obyek.jenis = 'jagoan'; obyek.zjenis = 7; obyek.yspeedChara = 6; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 17) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('detro_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 9; obyek.speedChara = 4; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Detro Stone'; xincLive[charaMusuh] = 5; xincAttack[charaMusuh] = 5; xincDefense[charaMusuh] = 4; xincAura[charaMusuh] = 3; rangeMusuh[charaMusuh] = 5; xrangeMusuh[charaMusuh] = 5; serangMusuh[charaMusuh] = 1; accuracyMusuh[charaMusuh] = 95; elementMusuh[charaMusuh] = 3; jenisMusuh[charaMusuh] = 9; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Giant Dagger'; xmusuhWeapon[charaMusuh] = 10; xjenisRace[charaMusuh] = 4; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); obyek._xscale = scalaObyek + 1.5; obyek._yscale = scalaObyek + 1.5; } else { if (mapping[indiJ][indiI] == 18) { if (mapKe == 9) { obyek = attachMovie('guild_mc', namaBaru2, dalam2); charaJagoan = 10; obyek.jenis = 'jagoan'; obyek.zjenis = 10; obyek.yspeedChara = 5; bolehMati[charaJagoan] = true; cekAbility(charaJagoan, 'khusus'); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('guild_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 10; obyek.speedChara = 7; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 2; namaMusuh[charaMusuh] = 'Guild Made'; xincLive[charaMusuh] = 4.5; xincAttack[charaMusuh] = 4.5; xincDefense[charaMusuh] = 5; xincAura[charaMusuh] = 4.5; rangeMusuh[charaMusuh] = 6; xrangeMusuh[charaMusuh] = 6; serangMusuh[charaMusuh] = 3; accuracyMusuh[charaMusuh] = 99; elementMusuh[charaMusuh] = 3; jenisMusuh[charaMusuh] = 10; abilityMusuh[charaMusuh][1] = 1; abilityMusuh[charaMusuh][2] = 17; abilityMusuh[charaMusuh][3] = 18; abilityMusuh[charaMusuh][4] = 19; abilityMusuh[charaMusuh][5] = 20; abilityMusuh[charaMusuh][6] = 21; abilityMusuh[charaMusuh][7] = 22; abilityMusuh[charaMusuh][8] = 12; abilityMusuh[charaMusuh][9] = 13; abilityMusuh[charaMusuh][10] = 14; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Elite Whip Chain'; xmusuhWeapon[charaMusuh] = 11; xjenisRace[charaMusuh] = 5; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); } } else { if (mapping[indiJ][indiI] == 19) { obyek = attachMovie('pagar_mc3', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 20) { obyek = attachMovie('devy_diem', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; obyek._xscale = scalaObyek; obyek._yscale = scalaObyek; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 21) { obyek = attachMovie('faith_diem', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; obyek._xscale = scalaObyek; obyek._yscale = scalaObyek; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 22) { obyek = attachMovie('panther_diem', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; obyek._xscale = scalaObyek; obyek._yscale = scalaObyek; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 23) { obyek = attachMovie('white_diem', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; obyek._xscale = scalaObyek; obyek._yscale = scalaObyek; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 24) { obyek = attachMovie('hawk_diem', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; obyek._xscale = scalaObyek; obyek._yscale = scalaObyek; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 25) { obyek = attachMovie('pagar_mc4', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 26) { obyek = attachMovie('pohon_mc3', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 27) { obyek = attachMovie('semak_mc3', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 28) { obyek = attachMovie('andara_mc', namaBaru2, dalam2); if (jenisMaen == 'training') { charaMusuh = 2; obyek.jenis = 'musuh'; obyek.zjenis = 12; obyek.speedChara = 4; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Andara Pearly'; xincLive[charaMusuh] = 3; xincAttack[charaMusuh] = 2.5; xincDefense[charaMusuh] = 4.5; xincAura[charaMusuh] = 1.5; xrangeMusuh[charaMusuh] = 6; serangMusuh[charaMusuh] = 2; accuracyMusuh[charaMusuh] = 90; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Poseiden Spear'; xmusuhWeapon[charaMusuh] = 13; xjenisRace[charaMusuh] = 0; elementMusuh[charaMusuh] = 0; jenisMusuh[charaMusuh] = 12; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); } else { charaJagoan = 5; obyek.jenis = 'jagoan'; obyek.zjenis = 12; obyek.yspeedChara = 5; bolehMati[charaJagoan] = true; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; tipeAir[charaJagoan] = 1; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } } else { if (mapping[indiJ][indiI] == 29) { obyek = attachMovie('bertha_mc', namaBaru2, dalam2); if (jenisMaen == 'training') { charaMusuh = 1; obyek.jenis = 'musuh'; obyek.zjenis = 11; obyek.speedChara = 4; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Bertha'; xincLive[charaMusuh] = 2; xincAttack[charaMusuh] = 3.5; xincDefense[charaMusuh] = 4; xincAura[charaMusuh] = 5; xrangeMusuh[charaMusuh] = 3; serangMusuh[charaMusuh] = 6; accuracyMusuh[charaMusuh] = 90; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'White Stick'; xmusuhWeapon[charaMusuh] = 12; xjenisRace[charaMusuh] = 1; elementMusuh[charaMusuh] = 1; jenisMusuh[charaMusuh] = 11; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); } else { charaJagoan = 4; obyek.jenis = 'jagoan'; obyek.zjenis = 11; obyek.yspeedChara = 5; bolehMati[charaJagoan] = true; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } } else { if (mapping[indiJ][indiI] == 32) { obyek = attachMovie('rumah_mc4', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[j][i] == 33) { obyek = attachMovie('naik_mc1', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 34) { obyek = attachMovie('naik_mc2', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 35) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('olaut_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 13; obyek.speedChara = 3; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; xtipeAir[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Sea Ogre'; xincLive[charaMusuh] = 1.5; xincAttack[charaMusuh] = 1.5; xincDefense[charaMusuh] = 2.5; xincAura[charaMusuh] = 1.5; rangeMusuh[charaMusuh] = 5; xrangeMusuh[charaMusuh] = 5; serangMusuh[charaMusuh] = 2; accuracyMusuh[charaMusuh] = 75; elementMusuh[charaMusuh] = 0; jenisMusuh[charaMusuh] = 13; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Knife'; xmusuhWeapon[charaMusuh] = 14; xjenisRace[charaMusuh] = 4; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); } else { if (mapping[j][i] == 36) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('oudara_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 14; obyek.speedChara = 6; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 2; namaMusuh[charaMusuh] = 'Air Ogre'; xtipeUdara[charaMusuh] = 1; xtipeAir[charaMusuh] = 1; xincLive[charaMusuh] = 1.5; xincAttack[charaMusuh] = 2; xincDefense[charaMusuh] = 1.5; xincAura[charaMusuh] = 1.5; rangeMusuh[charaMusuh] = 6; xrangeMusuh[charaMusuh] = 5; serangMusuh[charaMusuh] = 5; accuracyMusuh[charaMusuh] = 80; elementMusuh[charaMusuh] = 2; jenisMusuh[charaMusuh] = 14; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Catapult'; xmusuhWeapon[charaMusuh] = 15; xjenisRace[charaMusuh] = 4; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); } else { if (mapping[j][i] == 37) { obyek = attachMovie('lohani_mc', namaBaru2, dalam2); charaJagoan = 6; jagoanType[charaJagoan] = 'musuh'; obyek.jenis = 'jagoan'; obyek.zjenis = 15; obyek.yspeedChara = 5; bolehMati[charaJagoan] = false; cekAbility(charaJagoan, 'khusus'); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[j][i] == 38) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('iblis_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 31; obyek.speedChara = 6; obyek.yspeedChara = 5; xbisaIlang[charaMusuh] = 1; xtipeUdara[charaMusuh] = 1; xtipeAir[charaMusuh] = 1; jenisIblis[charaMusuh] = 1; hidupIblis[charaMusuh] = 0; tipeAI[charaMusuh] = 2; xageMusuh[charaMusuh] = random(11) + 1000; namaMusuh[charaMusuh] = 'Blood Sucking Demon'; xincLive[charaMusuh] = 1.5; xincAttack[charaMusuh] = 5; xincDefense[charaMusuh] = 2.5; xincAura[charaMusuh] = 5.5; rangeMusuh[charaMusuh] = 7; xrangeMusuh[charaMusuh] = 7; serangMusuh[charaMusuh] = 6; accuracyMusuh[charaMusuh] = 90; elementMusuh[charaMusuh] = 1; jenisMusuh[charaMusuh] = 31; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Death Sickle'; xmusuhWeapon[charaMusuh] = 24; xjenisRace[charaMusuh] = 4; xxx = 1; while (xxx <= 5) { if (itemMusuh[charaMusuh][xxx] == 11) { itemMusuh[charaMusuh][xxx] = 0; } ++xxx; } poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); } else { if (mapping[j][i] == 39) { obyek = attachMovie('bendungan1', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 40) { obyek = attachMovie('bendungan2', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 41) { obyek = attachMovie('air_mc2', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 42) { obyek = attachMovie('tembok_mc', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 43) { obyek = attachMovie('bendungan3', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 44) { obyek = attachMovie('pohon_mc4', namaBaru2, dalam2); obyek._yscale = 80 + random(41); obyek._xscale = obyek._yscale; obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[j][i] == 45) { obyek = attachMovie('mah_mc', namaBaru2, dalam2); charaJagoan = 6; obyek.jenis = 'jagoan'; obyek.zjenis = 16; obyek.yspeedChara = 5; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 46) { obyek = attachMovie('panther_mc', namaBaru2, dalam2); charaJagoan = 7; obyek.jenis = 'jagoan'; obyek.zjenis = 17; obyek.yspeedChara = 5; bolehMati[charaJagoan] = true; cekAbility(charaJagoan, 'khusus'); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 47) { obyek = attachMovie('brave_mc', namaBaru2, dalam2); charaJagoan = 8; obyek.jenis = 'jagoan'; obyek.zjenis = 18; obyek.yspeedChara = 5; bolehMati[charaJagoan] = true; tipeUdara[charaJagoan] = 1; tipeAir[charaJagoan] = 1; cekAbility(charaJagoan, 'khusus'); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 48) { obyek = attachMovie('berthi_mc', namaBaru2, dalam2); charaJagoan = 9; obyek.jenis = 'jagoan'; obyek.zjenis = 19; obyek.yspeedChara = 5; bolehMati[charaJagoan] = true; cekAbility(charaJagoan, 'khusus'); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[j][i] == 49) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('deja_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 20; obyek.speedChara = 4; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 2; xtipeUdara[charaMusuh] = 1; xtipeAir[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Deja Flashgardon'; rankMusuh[charaMusuh] = 'Air Ogre Commander of Ogrezantium'; xincLive[charaMusuh] = 4; xincAttack[charaMusuh] = 6; xincDefense[charaMusuh] = 4; xincAura[charaMusuh] = 2; rangeMusuh[charaMusuh] = 7; xrangeMusuh[charaMusuh] = 7; serangMusuh[charaMusuh] = 5; accuracyMusuh[charaMusuh] = 95; elementMusuh[charaMusuh] = 2; jenisMusuh[charaMusuh] = 20; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Flash Arrow'; xmusuhWeapon[charaMusuh] = 19; xjenisRace[charaMusuh] = 4; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); obyek._xscale = scalaObyek + 1.5; obyek._yscale = scalaObyek + 1.5; } else { if (mapping[j][i] == 50) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('dark_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 21; obyek.speedChara = 6; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; xtipeUdara[charaMusuh] = 1; xtipeAir[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Dark Armor'; rankMusuh[charaMusuh] = 'Supreme Commander of Ogrezantium'; xincLive[charaMusuh] = 7; xincAttack[charaMusuh] = 8; xincDefense[charaMusuh] = 7; xincAura[charaMusuh] = 6; rangeMusuh[charaMusuh] = 8; xrangeMusuh[charaMusuh] = 8; serangMusuh[charaMusuh] = 4; accuracyMusuh[charaMusuh] = 99; elementMusuh[charaMusuh] = 1; jenisMusuh[charaMusuh] = 21; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Dragon Flame'; xmusuhWeapon[charaMusuh] = 20; xjenisRace[charaMusuh] = 4; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); obyek._xscale = scalaObyek - 1.5; obyek._yscale = scalaObyek - 1.5; } else { if (mapping[j][i] == 51) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('domo_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 22; obyek.speedChara = 4; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; xtipeAir[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Domo Lewatair'; rankMusuh[charaMusuh] = 'Water Ogre Commander of Ogrezantium'; xincLive[charaMusuh] = 4; xincAttack[charaMusuh] = 4; xincDefense[charaMusuh] = 6.5; xincAura[charaMusuh] = 2.5; rangeMusuh[charaMusuh] = 6; xrangeMusuh[charaMusuh] = 6; serangMusuh[charaMusuh] = 3; accuracyMusuh[charaMusuh] = 90; elementMusuh[charaMusuh] = 0; jenisMusuh[charaMusuh] = 22; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Dark Spear'; xmusuhWeapon[charaMusuh] = 21; xjenisRace[charaMusuh] = 4; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); obyek._xscale = scalaObyek + 1.5; obyek._yscale = scalaObyek + 1.5; } else { if (mapping[j][i] == 52) { obyek = attachMovie('black_mc', namaBaru2, dalam2); charaJagoan = 7; obyek.jenis = 'jagoan'; obyek.zjenis = 24; obyek.yspeedChara = 5; bolehMati[charaJagoan] = true; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[j][i] == 54) { dalamMusuh[charaMusuh] = dalam2; wwjenisMusuh[charaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[charaMusuh] = indiI; posMunculBaruJ[charaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('elite_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.zjenis = 23; obyek.speedChara = 4; obyek.yspeedChara = 5; tipeAI[charaMusuh] = 1; namaMusuh[charaMusuh] = 'Elite Soldier'; rankMusuh[charaMusuh] = 'Lonthar Solider'; xincLive[charaMusuh] = 2; xincAttack[charaMusuh] = 2; xincDefense[charaMusuh] = 1.5; xincAura[charaMusuh] = 2; rangeMusuh[charaMusuh] = 4; xrangeMusuh[charaMusuh] = 4; serangMusuh[charaMusuh] = 2; accuracyMusuh[charaMusuh] = 85; elementMusuh[charaMusuh] = 3; jenisMusuh[charaMusuh] = 23; speedMusuh[charaMusuh] = obyek.speedChara; musuhWeapon[charaMusuh] = 'Elite Sword'; xmusuhWeapon[charaMusuh] = 22; xjenisRace[charaMusuh] = 5; poisonMusuh[charaMusuh] = false; stunMusuh[charaMusuh] = false; uncontrolMusuh[charaMusuh] = false; slowMusuh[charaMusuh] = false; poisonKeMusuh[charaMusuh] = 3; uncontrolKeMusuh[charaMusuh] = 3; stunKeMusuh[charaMusuh] = 3; slowKeMusuh[charaMusuh] = 3; attackDefenseIncMusuh[charaMusuh] = 1; initObyek(indiJ, indiI); obyek._xscale = scalaObyek + 1.5; obyek._yscale = scalaObyek + 1.5; } else { if (mapping[indiJ][indiI] == 56) { obyek = attachMovie('rumah_mc6', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 57) { obyek = attachMovie('brunhill_mc', namaBaru2, dalam2); charaJagoan = 11; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 25; obyek.yspeedChara = 6; bolehMati[charaJagoan] = true; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 58) { obyek = attachMovie('brunhill_mc', namaBaru2, dalam2); charaJagoan = 12; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 26; obyek.yspeedChara = 6; bolehMati[charaJagoan] = true; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 59) { obyek = attachMovie('brunhill_mc2', namaBaru2, dalam2); charaJagoan = 13; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 27; obyek.yspeedChara = 6; bolehMati[charaJagoan] = true; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI, '', 'atas1'); } else { if (mapping[indiJ][indiI] == 60) { obyek = attachMovie('brunhill_mc2', namaBaru2, dalam2); charaJagoan = 14; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 28; obyek.yspeedChara = 6; bolehMati[charaJagoan] = true; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI, '', 'atas1'); } else { if (mapping[indiJ][indiI] == 61) { obyek = attachMovie('bendungan_mc', namaBaru2, dalam2); charaJagoan = 15; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 29; obyek.yspeedChara = 6; jenisJagoan[charaJagpan] = 'diem'; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 62) { obyek = attachMovie('bendungan_mc', namaBaru2, dalam2); charaJagoan = 16; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 30; obyek.yspeedChara = 6; jenisJagoan[charaJagpan] = 'diem'; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 63) { obyek = attachMovie('gate_mc', namaBaru2, dalam2); charaJagoan = 17; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 32; obyek.yspeedChara = 6; jenisJagoan[charaJagpan] = 'diem'; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 64) { obyek = attachMovie('gate_mc', namaBaru2, dalam2); charaJagoan = 18; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 33; obyek.yspeedChara = 6; jenisJagoan[charaJagpan] = 'diem'; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 65) { obyek = attachMovie('pohon_mc5', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 66) { obyek = attachMovie('pohon_mc6', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 67) { obyek = attachMovie('pohon_mc7', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 68) { obyek = attachMovie('pohon_mc8', namaBaru2, dalam2); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 69) { obyek = attachMovie('jembatan_mc', namaBaru2, dalam2 - 50); obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; mapping[indiJ][indiI] = 1; } else { if (mapping[j][i] == 72) { obyek = attachMovie('gate_mc1', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 73) { obyek = attachMovie('gate_mc2', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 74) { obyek = attachMovie('tembok_mc2', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 75) { obyek = attachMovie('tembok_mc3', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 76) { obyek = attachMovie('tembok_mc4', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 77) { obyek = attachMovie('tembok_mc5', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[j][i] = 0; } else { if (mapping[j][i] == 78) { adaRanjau[j][i] = 1; mapping[j][i] = 1; } else { if (mapping[indiJ][indiI] == 79) { obyek = attachMovie('wisatawan_mc', namaBaru2, dalam2); charaJagoan = 19; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 34; obyek.yspeedChara = 6; jenisJagoan[charaJagpan] = 'diem'; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 80) { obyek = attachMovie('wisatawan_mc', namaBaru2, dalam2); charaJagoan = 20; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 35; obyek.yspeedChara = 6; jenisJagoan[charaJagpan] = 'diem'; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 81) { obyek = attachMovie('wisatawan_mc', namaBaru2, dalam2); charaJagoan = 21; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 36; obyek.yspeedChara = 6; jenisJagoan[charaJagpan] = 'diem'; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 82) { obyek = attachMovie('wisatawan_mc', namaBaru2, dalam2); charaJagoan = 22; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 37; obyek.yspeedChara = 6; jenisJagoan[charaJagpan] = 'diem'; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 83) { obyek = attachMovie('wisatawan_mc', namaBaru2, dalam2); charaJagoan = 23; obyek.jenis = 'jagoan'; jagoanType[charaJagoan] = 'musuh'; obyek.zjenis = 38; obyek.yspeedChara = 6; jenisJagoan[charaJagpan] = 'diem'; bolehMati[charaJagoan] = false; cekAbility(charaJagoan); obyek.speedChara = speedJagoan[charaJagoan]; poisonJagoan[charaJagoan] = false; stunJagoan[charaJagoan] = false; uncontrolJagoan[charaJagoan] = false; slowJagoan[charaJagoan] = false; poisonKeJagoan[charaJagoan] = 3; uncontrolKeJagoan[charaJagoan] = 3; stunKeJagoan[charaJagoan] = 3; slowKeJagoan[charaJagoan] = 3; attackDefenseIncJagoan[charaJagoan] = 1; initObyek(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 91) { obyek = attachMovie('air_mc2x', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak - 30; obyek._yscale = scalaKotak - 30; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 92) { rand = random(4); if (rand == 0) { obyek = attachMovie('penjaga_mati', namaBaru2, dalam2); } else { if (rand == 1) { obyek = attachMovie('penjaga_mati2', namaBaru2, dalam2); } else { if (rand == 2) { obyek = attachMovie('penjaga_mati3', namaBaru2, dalam2); } else { if (rand == 3) { obyek = attachMovie('penjaga_mati4', namaBaru2, dalam2); } } } } obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak; obyek._yscale = scalaKotak; mapping[indiJ][indiI] = 0; } else { if (mapping[indiJ][indiI] == 93) { obyek = attachMovie('bluemount', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak - 20; obyek._yscale = scalaKotak - 20; mapping[j][i] = 0; } else { if (mapping[indiJ][indiI] == 94) { randPasar = random(6) + 1; obyek = attachMovie('pasar' + randPasar, namaBaru2, dalam2); obyek._x = rumput._x + 25; obyek._y = rumput._y - 25; obyek._xscale = scalaKotak - 40; obyek._yscale = scalaKotak - 40; mapping[j][i] = 0; } else { if (mapping[indiJ][indiI] == 95) { obyek = attachMovie('kapal2_mc', namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak - 40; obyek._yscale = scalaKotak - 40; mapping[j][i] = 0; } else { if (mapping[indiJ][indiI] == 97) { randRakyat = random(6) + 1; obyek = attachMovie('rakyat' + randRakyat, namaBaru2, dalam2); obyek._x = rumput._x; obyek._y = rumput._y; obyek._xscale = scalaKotak - 30; obyek._yscale = scalaKotak - 30; mapping[indiJ][indiI] = 0; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } function cekObyek2(xj, xi, dalam2, zcharaMusuh2) { indiJ = xj; indiI = xi; zcharaMusuh = zcharaMusuh2; ubahDalam('indiJ', 'indiI', 'dalam'); namaBaru = 'rumput_mc' + dalam; namaBaru2 = 'obyek_mc' + dalam; if (mapping[indiJ][indiI] == 4) { dalamMusuh[zcharaMusuh] = dalam2; wwjenisMusuh[zcharaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[zcharaMusuh] = indiI; posMunculBaruJ[zcharaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('odarat_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.speedChara = 2.5; obyek.yspeedChara = 5; obyek.zjenis = 3; namaMusuh[zcharaMusuh] = 'Ground Ogre'; xincLive[zcharaMusuh] = 1.5; xincAttack[zcharaMusuh] = 2; xincDefense[zcharaMusuh] = 2; xincAura[zcharaMusuh] = 1.5; rangeMusuh[zcharaMusuh] = 4; xrangeMusuh[zcharaMusuh] = 4; serangMusuh[zcharaMusuh] = 1; accuracyMusuh[zcharaMusuh] = 75; elementMusuh[zcharaMusuh] = 3; jenisMusuh[zcharaMusuh] = 3; speedMusuh[zcharaMusuh] = obyek.speedChara; musuhWeapon[zcharaMusuh] = 'Big Cudgel'; xjenisRace[zcharaMusuh] = 4; poisonMusuh[zcharaMusuh] = false; stunMusuh[zcharaMusuh] = false; uncontrolMusuh[zcharaMusuh] = false; slowMusuh[zcharaMusuh] = false; poisonKeMusuh[zcharaMusuh] = 3; uncontrolKeMusuh[zcharaMusuh] = 3; stunKeMusuh[zcharaMusuh] = 3; slowKeMusuh[zcharaMusuh] = 3; attackDefenseIncMusuh[zcharaMusuh] = 1; initObyek2(indiJ, indiI); } else { if (mapping[indiJ][indiI] == 5) { dalamMusuh[zcharaMusuh] = dalam2; wwjenisMusuh[zcharaMusuh] = mapping[indiJ][indiI]; posMunculBaruI[zcharaMusuh] = indiI; posMunculBaruJ[zcharaMusuh] = indiJ; ++posMunculBaru; obyek = attachMovie('osihir_mc', namaBaru2, dalam2); obyek.jenis = 'musuh'; obyek.speedChara = 2; obyek.yspeedChara = 5; obyek.zjenis = 4; namaMusuh[zcharaMusuh] = 'Witch Ogre'; xincLive[zcharaMusuh] = 1.5; xincAttack[zcharaMusuh] = 1.75; xincDefense[zcharaMusuh] = 1.5; xincAura[zcharaMusuh] = 2; rangeMusuh[zcharaMusuh] = 3; xrangeMusuh[zcharaMusuh] = 3; serangMusuh[zcharaMusuh] = 4; accuracyMusuh[zcharaMusuh] = 70; elementMusuh[zcharaMusuh] = 1; jenisMusuh[zcharaMusuh] = 4; speedMusuh[zcharaMusuh] = obyek.speedChara; musuhWeapon[zcharaMusuh] = 'Magic Stick'; xjenisRace[zcharaMusuh] = 4; poisonMusuh[zcharaMusuh] = false; stunMusuh[zcharaMusuh] = false; uncontrolMusuh[zcharaMusuh] = false; slowMusuh[zcharaMusuh] = false; poisonKeMusuh[zcharaMusuh] = 3; uncontrolKeMusuh[zcharaMusuh] = 3; stunKeMusuh[zcharaMusuh] = 3; slowKeMusuh[zcharaMusuh] = 3; attackDefenseIncMusuh[zcharaMusuh] = 1; initObyek2(indiJ, indiI); } } } function initObyek(indiJ, indiI, indi, indi2) { if (indi2 == 'atas1') { obyek._x = rumput._x + 50; obyek._y = rumput._y - 175; } else { obyek._x = rumput._x + 50; obyek._y = rumput._y - 20; } obyek._xscale = scalaObyek; obyek._yscale = scalaObyek; if (speedGame == 'SLOW') { obyek.speedChara *= 1; } else { if (speedGame == 'NORMAL') { obyek.speedChara *= 2; } else { if (speedGame == 'FAST') { obyek.speedChara *= 4; } } } if (obyek.jenis == 'jagoan') { obyek.indi = charaJagoan; obyek.pala = obyek.zjenis; obyek.ke = charaJagoan; obyek.hidup = true; posJagoanJ[charaJagoan] = indiJ; posJagoanI[charaJagoan] = indiI; undoJagoanJ[charaJagoan] = indiJ; undoJagoanI[charaJagoan] = indiI; namaCharaJagoan[charaJagoan] = namaBaru2; obyek.gotoAndStop(diriJagoan[charaJagoan]); obyek.klik_mc.onRollOver = overChara; obyek.klik_mc.onRollOut = outChara; obyek.klik_mc.onReleaseOutside = outChara; obyek.klik_mc.onRelease = klikChara; obyek.darah_mc._visible = false; obyek.aura_mc._visible = false; undoPosJagoan[charaJagoan] = obyek._currentframe; } else { if (obyek.jenis == 'musuh') { obyek.indi = charaMusuh; obyek.pala = obyek.zjenis; obyek.ke = charaMusuh; obyek.hidup = true; posMusuhJ[charaMusuh] = indiJ; posMusuhI[charaMusuh] = indiI; namaCharaMusuh[charaMusuh] = namaBaru2; obyek.gotoAndStop(diriMusuh[charaMusuh]); if (adaApiKehidupan == true) { obyek.anim.gotoAndStop(4); } obyek.klik_mc.onRollOver = overChara; obyek.klik_mc.onRollOut = outChara; obyek.klik_mc.onReleaseOutside = outChara; obyek.klik_mc.onRelease = klikChara2; obyek.darah_mc._visible = false; obyek.aura_mc._visible = false; ++charaMusuh; } } k = 0; while (k <= diriJagoan.length) { liveJagoan[k] = Math.ceil(levelJagoan[k] * incLive[k] * 25); totLiveJagoan[k] = liveJagoan[k]; attackJagoan[k] = Math.ceil(levelJagoan[k] * incAttack[k] * 10); defenseJagoan[k] = Math.ceil(levelJagoan[k] * incDefense[k] * 5); auraJagoan[k] = Math.ceil(levelJagoan[k] * incAura[k] * 10); totAuraJagoan[k] = auraJagoan[k]; if (jenisJagoan[k] == 'diem') { moveJagoan[k] = true; actionJagoan[k] = true; masihAktif[k] = true; } else { moveJagoan[k] = false; actionJagoan[k] = false; masihAktif[k] = true; } maxJagoan[k] = levelJagoan[k] * xnaik2; if (k == 11 || k == 12) { liveJagoan[k] *= 0.2; liveJagoan[k] = Math.ceil(liveJagoan[k]); } ++k; } k = 0; while (k <= diriMusuh.length) { liveMusuh[k] = Math.ceil(levelMusuh[k] * xincLive[k] * 25); totLiveMusuh[k] = liveMusuh[k]; attackMusuh[k] = Math.ceil(levelMusuh[k] * xincAttack[k] * 10); defenseMusuh[k] = Math.ceil(levelMusuh[k] * xincDefense[k] * 5); auraMusuh[k] = Math.ceil(levelMusuh[k] * xincAura[k] * 10); totAuraMusuh[k] = auraMusuh[k]; moveMusuh[k] = false; actionMusuh[k] = false; musuhAktif[k] = true; if (jenisMaen != 'training') { expMusuh[k] = levelMusuh[k] * 150; } maxMusuh[k] = levelMusuh[k] * xnaik2; ++k; } if (wwudara[indiJ][indiI] == 1) { mapping[indiJ][indiI] = 1; } else { mapping[indiJ][indiI] = 0; } } function initObyek2(indiJ, indiI) { obyek._x = _root[namaBaru]._x + 50; obyek._y = _root[namaBaru]._y - 20; obyek._xscale = scalaObyek; obyek._yscale = scalaObyek; obyek.indi = zcharaMusuh; obyek.pala = obyek.zjenis; obyek.ke = zcharaMusuh; obyek.hidup = true; posMusuhJ[zcharaMusuh] = indiJ; posMusuhI[zcharaMusuh] = indiI; namazcharaMusuh[zcharaMusuh] = namaBaru2; obyek.gotoAndStop(diriMusuh[zcharaMusuh]); obyek.klik_mc.onRollOver = overChara; obyek.klik_mc.onRollOut = outChara; obyek.klik_mc.onReleaseOutside = outChara; obyek.klik_mc.onRelease = klikChara2; obyek.darah_mc._visible = false; obyek.aura_mc._visible = false; k = zcharaMusuh; liveMusuh[k] = Math.ceil(levelMusuh[k] * xincLive[k] * 25); totLiveMusuh[k] = liveMusuh[k]; attackMusuh[k] = Math.ceil(levelMusuh[k] * xincAttack[k] * 10); defenseMusuh[k] = Math.ceil(levelMusuh[k] * xincDefense[k] * 5); auraMusuh[k] = Math.ceil(levelMusuh[k] * xincAura[k] * 10); totAuraMusuh[k] = auraMusuh[k]; moveMusuh[k] = false; actionMusuh[k] = false; musuhAktif[k] = true; if (jenisMaen != 'training') { expMusuh[k] = levelMusuh[k] * 150; } maxMusuh[k] = levelMusuh[k] * xnaik2; mapping[indiJ][indiI] = 0; } function klikChara() { klik(); this = this._parent; jalanKe = this.ke; if (jagoanType[jalanKe] != 'musuh') { lihatStatus = false; if (actions._x == _root[namaCharaJagoan[jalanKe]]._x && actions._y == _root[namaCharaJagoan[jalanKe]]._y) { if (bisaKlik == true) { deleteMusuh2(true); adaJedaInfo = false; adaJedaMsgBox2 = false; lihatStatus = true; xpause = true; jenisLihat = 'main'; lihatChara = 'jagoan'; indiPilih = jalanKe + 1; xstatus = attachMovie('status_mc', 'status_mc', dalamStatus); xstatus._x = 400; xstatus._y = 300; xstatus.gotoAndStop(2); } } giliranJagoan(jalanKe); if (lihatStatus == true) { bisaTombolAction(false); } } else { lihatStatus = false; deleteMusuh2(true); adaJedaInfo = false; adaJedaMsgBox2 = false; lihatStatus = true; xpause = true; jenisLihat = 'main'; lihatChara = 'jagoan'; indiPilih = jalanKe + 1; xstatus = attachMovie('status_mc', 'status_mc', dalamStatus); xstatus._x = 400; xstatus._y = 300; xstatus.gotoAndStop(2); if (lihatStatus == true) { bisaTombolAction(false); } } } function bisaTombolAction(indi) { actions.cancel_btn.enabled = indi; actions.wait_btn.enabled = indi; actions.move_btn.enabled = indi; actions.undo_btn.enabled = indi; if (actionJagoan[current] == false) { actions.attack_btn.enabled = indi; actions.item_btn.enabled = indi; } i = 0; while (i <= charaJagoan - 1) { if (masihAktif[i] == true) { _root[namaCharaJagoan[i]].enabled = indi; } ++i; } } function klikChara2() { klik(); this = this._parent; if (bisaKlik == true) { indiPilih = this.ke + 1; deleteMusuh2(true); bisaTombolAction(false); adaJedaInfo = false; adaJedaMsgBox2 = false; lihatStatus = true; xpause = true; jenisLihat = 'main'; lihatChara = 'musuh'; xstatus = attachMovie('status_mc', 'status_mc', dalamStatus); xstatus._x = 400; xstatus._y = 300; xstatus.gotoAndStop(2); } } function klikMusuh() { klik(); this = this._parent; delete this.onRelease; vj = posMusuhJ[this.indi]; vi = posMusuhI[this.indi]; ubahDalam('vj', 'vi', 'dalam'); namaBaru = 'rumput_mc' + dalam; klikKotak2(_root[namaBaru]); } function overChara() { over(); this = this._parent; adaJedaMsgBox2 = true; jedaMsgBox2 = 0; msgBox2._visible = false; msgBox2._alpha = 0; if (this.jenis == 'jagoan') { msgBox2.nama = namaJagoan[this.indi]; msgBox2.element = 'Element ' + element[elementJagoan[this.indi]]; msgBox2.level = 'Level ' + levelJagoan[this.indi]; msgBox2.live = 'Live ' + liveJagoan[this.indi] + '/' + totLiveJagoan[this.indi]; msgBox2.attack = 'Attack ' + attackJagoan[this.indi]; msgBox2.defense = 'Defense ' + defenseJagoan[this.indi]; msgBox2.aura = 'Aura ' + auraJagoan[this.indi] + '/' + totAuraJagoan[this.indi]; msgBox2.experiance = 'Exp ' + expJagoan[this.indi] + '/' + maxJagoan[this.indi]; msgBox2.element_mc.gotoAndStop(elementJagoan[this.indi] + 1); vj = posJagoanJ[this.ke]; vi = posJagoanI[this.ke]; obyek = msgBox2; scala1 = (liveJagoan[this.indi] / totLiveJagoan[this.indi]) * 100; scala2 = (auraJagoan[this.indi] / totAuraJagoan[this.indi]) * 100; obyek.darah_mc.zbar._xscale = scala1; obyek.aura_mc.zbar._xscale = scala2; ubahDalam('vj', 'vi', 'dalam'); namaBaru = 'rumput_mc' + dalam; overKotak3(_root[namaBaru]); msgBox2.pala_mc.gotoAndStop(_root.jenisChara[this.indi]); } else { if (this.jenis == 'musuh') { msgBox2.nama = namaMusuh[this.indi]; msgBox2.element = 'Element ' + element[elementMusuh[this.indi]]; msgBox2.level = 'Level ' + levelMusuh[this.indi]; msgBox2.live = 'Live ' + liveMusuh[this.indi] + '/' + totLiveMusuh[this.indi]; msgBox2.attack = 'Attack ' + attackMusuh[this.indi]; msgBox2.defense = 'Defense ' + defenseMusuh[this.indi]; msgBox2.aura = 'Aura ' + auraMusuh[this.indi] + '/' + totAuraMusuh[this.indi]; msgBox2.experiance = 'Exp ' + expMusuh[this.indi] + '/' + maxMusuh[this.indi]; msgBox2.element_mc.gotoAndStop(elementMusuh[this.indi] + 1); obyek = msgBox2; scala1 = (liveMusuh[this.indi] / totLiveMusuh[this.indi]) * 100; scala2 = (auraMusuh[this.indi] / totAuraMusuh[this.indi]) * 100; obyek.darah_mc.zbar._xscale = scala1; obyek.aura_mc.zbar._xscale = scala2; vj = posMusuhJ[this.indi]; vi = posMusuhI[this.indi]; ubahDalam('vj', 'vi', 'dalam'); namaBaru = 'rumput_mc' + dalam; overKotak2(_root[namaBaru]); msgBox2.pala_mc.gotoAndStop(this.zjenis); } } } function outChara() { this = this._parent; adaJedaMsgBox2 = false; jedaMsgBox2 = 0; msgBox2._visible = false; msgBox2._alpha = 0; if (this.jenis == 'musuh') { vj = posMusuhJ[this.indi]; vi = posMusuhI[this.indi]; ubahDalam('vj', 'vi', 'dalam'); namaBaru = 'rumput_mc' + dalam; outKotak2(_root[namaBaru]); } else { vj = posJagoanJ[this.ke]; vi = posJagoanI[this.ke]; ubahDalam('vj', 'vi', 'dalam'); namaBaru = 'rumput_mc' + dalam; outKotak3(_root[namaBaru]); } } function geserKotak(indi) { i = 0; while (i <= panjang) { j = 0; while (j <= lebar) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; namaBaru2 = 'obyek_mc' + dalam; namaBaru3 = 'xobyek_mc' + dalam; if (indi == 'kiri') { _root[namaBaru]._x -= speedKotak; _root[namaBaru2]._x -= speedKotak; } if (indi == 'kanan') { _root[namaBaru]._x += speedKotak; _root[namaBaru2]._x += speedKotak; } if (indi == 'atas') { _root[namaBaru]._y -= speedKotak; _root[namaBaru2]._y -= speedKotak; } if (indi == 'bawah') { _root[namaBaru]._y += speedKotak; _root[namaBaru2]._y += speedKotak; } ++j; } ++i; } if (indi == 'kiri') { actions._x -= speedKotak; wi = dalamAngka1; while (wi <= dalamAngka1 + 100) { if (_root['angka_mc' + wi] != undefined) { _root['angka_mc' + wi]._x -= speedKotak; } ++wi; } wi = dalamAngka2; while (wi <= dalamAngka2 + 100) { if (_root['angka_mc2' + wi] != undefined) { _root['angka_mc2' + wi]._x -= speedKotak; } ++wi; } wi = dalamAngka3; while (wi <= dalamAngka3 + 100) { if (_root['angka_mc3' + wi] != undefined) { _root['angka_mc3' + wi]._x -= speedKotak; } ++wi; } wi = dalamAngka4; while (wi <= dalamAngka4 + 100) { if (_root['angka_mc4' + wi] != undefined) { _root['angka_mc4' + wi]._x -= speedKotak; } ++wi; } xxi = 0; while (xxi <= 60) { _root['meteor_mc' + xxi]._x -= speedKotak; ++xxi; } xxi = 0; while (xxi <= charaMusuh) { _root['all_mc' + xxi]._x -= speedKotak; ++xxi; } i = 0; while (i <= 100) { _root['kedip_mc' + i]._x -= speedKotak; ++i; } } if (indi == 'kanan') { actions._x += speedKotak; wi = dalamAngka1; while (wi <= dalamAngka1 + 100) { if (_root['angka_mc' + wi] != undefined) { _root['angka_mc' + wi]._x += speedKotak; } ++wi; } wi = dalamAngka2; while (wi <= dalamAngka2 + 100) { if (_root['angka_mc2' + wi] != undefined) { _root['angka_mc2' + wi]._x += speedKotak; } ++wi; } wi = dalamAngka3; while (wi <= dalamAngka3 + 100) { if (_root['angka_mc3' + wi] != undefined) { _root['angka_mc3' + wi]._x += speedKotak; } ++wi; } wi = dalamAngka4; while (wi <= dalamAngka4 + 100) { if (_root['angka_mc4' + wi] != undefined) { _root['angka_mc4' + wi]._x += speedKotak; } ++wi; } xxi = 0; while (xxi <= 60) { _root['meteor_mc' + xxi]._x += speedKotak; ++xxi; } xxi = 0; while (xxi <= charaMusuh) { _root['all_mc' + xxi]._x += speedKotak; ++xxi; } i = 0; while (i <= 100) { _root['kedip_mc' + i]._x += speedKotak; ++i; } } if (indi == 'atas') { actions._y -= speedKotak; wi = dalamAngka1; while (wi <= dalamAngka1 + 100) { if (_root['angka_mc' + wi] != undefined) { _root['angka_mc' + wi]._y -= speedKotak; } ++wi; } wi = dalamAngka2; while (wi <= dalamAngka2 + 100) { if (_root['angka_mc2' + wi] != undefined) { _root['angka_mc2' + wi]._y -= speedKotak; } ++wi; } wi = dalamAngka3; while (wi <= dalamAngka3 + 100) { if (_root['angka_mc3' + wi] != undefined) { _root['angka_mc3' + wi]._y -= speedKotak; } ++wi; } wi = dalamAngka4; while (wi <= dalamAngka4 + 100) { if (_root['angka_mc4' + wi] != undefined) { _root['angka_mc4' + wi]._y -= speedKotak; } ++wi; } xxi = 0; while (xxi <= 60) { _root['meteor_mc' + xxi]._y -= speedKotak; ++xxi; } xxi = 0; while (xxi <= charaMusuh) { _root['all_mc' + xxi]._y -= speedKotak; ++xxi; } i = 0; while (i <= 100) { _root['kedip_mc' + i]._y -= speedKotak; ++i; } } if (indi == 'bawah') { actions._y += speedKotak; wi = dalamAngka1; while (wi <= dalamAngka1 + 100) { if (_root['angka_mc' + wi] != undefined) { _root['angka_mc' + wi]._y += speedKotak; } ++wi; } wi = dalamAngka2; while (wi <= dalamAngka2 + 100) { if (_root['angka_mc2' + wi] != undefined) { _root['angka_mc2' + wi]._y += speedKotak; } ++wi; } wi = dalamAngka3; while (wi <= dalamAngka3 + 100) { if (_root['angka_mc3' + wi] != undefined) { _root['angka_mc3' + wi]._y += speedKotak; } ++wi; } wi = dalamAngka4; while (wi <= dalamAngka4 + 100) { if (_root['angka_mc4' + wi] != undefined) { _root['angka_mc4' + wi]._y += speedKotak; } ++wi; } xxi = 0; while (xxi <= 60) { _root['meteor_mc' + xxi]._y += speedKotak; ++xxi; } xxi = 0; while (xxi <= charaMusuh) { _root['all_mc' + xxi]._y += speedKotak; ++xxi; } i = 0; while (i <= 100) { _root['kedip_mc' + i]._y += speedKotak; ++i; } } } function ubahDalam(j, i, dalam) { if (_root[j] < 10 && _root[i] < 10) { _root[dalam] = '0' + String(_root[j]) + '0' + String(_root[i]); } else { if (_root[j] < 10 && _root[i] >= 10) { _root[dalam] = '0' + String(_root[j]) + String(_root[i]); } else { if (_root[j] >= 10 && _root[i] < 10) { _root[dalam] = String(_root[j]) + '0' + String(_root[i]); } else { _root[dalam] = String(_root[j]) + String(_root[i]); } } } } function xpathFinding(indi) { initFirst(indi); initMap(indi); initPathFinding(); pathFinding(indi); aai = 0; while (aai <= panjang) { aaj = 0; while (aaj <= panjang) { if (wwair[aaj][aai] == 1) { mapping[aaj][aai] = 1; } if (wwudara[aaj][aai] == 1) { mapping[aaj][aai] = 1; } ++aaj; } ++aai; } } function initFirst(indi) { xlength = 19; xwidth = 19; path = (xlength + 1) * (xwidth + 1); depth = 0; speedMove = 25; if (areamove == 'yes') { if (indi == 'komp') { xStart = posMusuhJ[xcurrent]; yStart = posMusuhI[xcurrent]; if (slowMusuh[xcurrent] == false) { xLast = xStart + xrangeMusuh[xcurrent]; yLast = yStart + xrangeMusuh[xcurrent]; } else { xLast = xStart + 1; yLast = yStart + 1; } } else { xStart = posJagoanJ[current]; yStart = posJagoanI[current]; if (slowJagoan[current] == false) { xLast = xStart + xrangeJagoan[current]; yLast = yStart + xrangeJagoan[current]; } else { xLast = xStart + 1; yLast = yStart + 1; } } } else { xStart = yyStart; yStart = xxStart; xLast = yyLast; yLast = xxLast; } } function pathFinding(indi) { currentPath = 0; xpos = 0; i = 0; while (i <= path) { a = aa; aa = 0; getValue(); ++i; } if (areamove == 'yes') { if (indi == 'komp') { i = posMusuhI[xcurrent] - xrangeMusuh[xcurrent]; while (i <= posMusuhI[xcurrent] + xrangeMusuh[xcurrent]) { j = posMusuhJ[xcurrent] - xrangeMusuh[xcurrent]; while (j <= posMusuhJ[xcurrent] + xrangeMusuh[xcurrent]) { if (posMusuhI[xcurrent] == i && posMusuhJ[xcurrent] == j) { } else { if (mapValue[j][i] <= xrangeMusuh[xcurrent]) { if (mapValue[j][i] == xrangeMusuh[xcurrent] - 1) { tujuJ = j; tujuI = i; } cekMove(j, i, 2, 'komp'); } } ++j; } ++i; } } else { i = posJagoanI[current] - xrangeJagoan[current]; while (i <= posJagoanI[current] + xrangeJagoan[current]) { j = posJagoanJ[current] - xrangeJagoan[current]; while (j <= posJagoanJ[current] + xrangeJagoan[current]) { if (posJagoanI[current] == i && posJagoanJ[current] == j) { } else { if (mapValue[j][i] <= xrangeJagoan[current]) { cekMove(j, i, 2); } } ++j; } ++i; } } } else { getPath(); runPath(indi); } } function initPathFinding() { ax = new Array(); ay = new Array(); xPath = new Array(); yPath = new Array(); i = 0; while (i < path) { ax[i] = path; ay[i] = path; xPath[i] = path; yPath[i] = path; ++i; } xx = new Array(); yy = new Array(); i = 0; while (i < path) { xx[i] = new Array(); yy[i] = new Array(); j = 0; while (j < xlength) { xx[i][j] = path; yy[i][j] = path; ++j; } ++i; } ax[0] = xStart; ay[0] = yStart; xx[0][0] = xStart; yy[0][0] = yStart; aa = 0; } function initMap(indi) { mapValue = new Array(); i = 0; while (i <= xwidth) { mapValue[i] = new Array(); j = 0; while (j <= xlength) { mapValue[j][i] = 0; ++j; } ++i; } i = 0; while (i <= panjang) { j = 0; while (j <= panjang) { if (wwair[j][i] == 1) { if (indi == 'komp') { if (xtipeAir[xcurrent] == 1) { mapping[j][i] = 1; } else { mapping[j][i] = 0; } } else { if (tipeAir[current] == 1) { mapping[j][i] = 1; } else { mapping[j][i] = 0; } } qi = 0; while (qi <= charaJagoan - 1) { if (_root[namaCharaJagoan[qi]].hidup == true) { if (j == posJagoanJ[qi] && i == posJagoanI[qi]) { mapping[posJagoanJ[qi]][posJagoanI[qi]] = 0; } } ++qi; } qi = 0; while (qi <= charaMusuh - 1) { if (_root[namaCharaMusuh[qi]].hidup == true) { if (j == posMusuhJ[qi] && i == posMusuhI[qi]) { mapping[posMusuhJ[qi]][posMusuhI[qi]] = 0; } } ++qi; } } else { if (wwudara[j][i] == 1) { if (indi == 'komp') { if (xtipeUdara[xcurrent] == 1) { mapping[j][i] = 1; } else { mapping[j][i] = 0; } } else { if (tipeUdara[current] == 1) { mapping[j][i] = 1; } else { mapping[j][i] = 0; } } qi = 0; while (qi <= charaJagoan - 1) { if (_root[namaCharaJagoan[qi]].hidup == true) { if (j == posJagoanJ[qi] && i == posJagoanI[qi]) { mapping[posJagoanJ[qi]][posJagoanI[qi]] = 0; } } ++qi; } qi = 0; while (qi <= charaMusuh - 1) { if (_root[namaCharaMusuh[qi]].hidup == true) { if (j == posMusuhJ[qi] && i == posMusuhI[qi]) { mapping[posMusuhJ[qi]][posMusuhI[qi]] = 0; } } ++qi; } } } ++j; } ++i; } if (areamove == 'yes') { i = 0; while (i <= charaJagoan - 1) { if (_root[namaCharaJagoan[i]].hidup == true) { mapping[posJagoanJ[i]][posJagoanI[i]] = 0; } ++i; } i = 0; while (i <= charaMusuh - 1) { if (_root[namaCharaMusuh[i]].hidup == true) { mapping[posMusuhJ[i]][posMusuhI[i]] = 0; } ++i; } } i = 0; while (i <= xwidth) { j = 0; while (j <= xlength) { if (xLast == j && yLast == i) { mapValue[j][i] = path * 1; } else { mapValue[j][i] = path * mapping[j][i]; } ++j; } ++i; } } function getValue() { k = 0; while (k <= a) { ax[i] = xx[i][k]; ay[i] = yy[i][k]; if (mapValue[ax[i] - 1][ay[i] - 1] > i + 1) { getValue1(ax[i] - 1, ay[i] - 1); } if (mapValue[ax[i]][ay[i] - 1] > i + 1) { getValue1(ax[i], ay[i] - 1); } if (mapValue[ax[i] + 1][ay[i] - 1] > i + 1) { getValue1(ax[i] + 1, ay[i] - 1); } if (mapValue[ax[i] - 1][ay[i]] > i + 1) { getValue1(ax[i] - 1, ay[i]); } if (mapValue[ax[i] + 1][ay[i]] > i + 1) { getValue1(ax[i] + 1, ay[i]); } if (mapValue[ax[i] - 1][ay[i] + 1] > i + 1) { getValue1(ax[i] - 1, ay[i] + 1); } if (mapValue[ax[i]][ay[i] + 1] > i + 1) { getValue1(ax[i], ay[i] + 1); } if (mapValue[ax[i] + 1][ay[i] + 1] > i + 1) { getValue1(ax[i] + 1, ay[i] + 1); } ++k; } } function getValue1(xxx, yyy) { mapValue[xxx][yyy] = i + 1; xx[i + 1][aa] = xxx; yy[i + 1][aa] = yyy; ++aa; if (xxx == xLast & yyy == yLast) { xpos = 1; k = a; i = path; } } function getPath() { if (xpos == 1) { ii = mapValue[xLast][yLast] - 1; i = ii; while (i >= 0) { minimValue = mapValue[xLast][yLast]; ax[i] = xLast; ay[i] = yLast; xPath[i] = xLast; yPath[i] = yLast; if (mapValue[ax[i]][ay[i] + 1] < minimValue && mapValue[ax[i]][ay[i] + 1] != 0 && mapValue[ax[i]][ay[i] + 1] != undefined) { minimValue = mapValue[ax[i]][ay[i] + 1]; xLast = ax[i]; yLast = ay[i] + 1; } if (mapValue[ax[i] + 1][ay[i]] < minimValue && mapValue[ax[i] + 1][ay[i]] != 0 && mapValue[ax[i] + 1][ay[i]] != undefined) { minimValue = mapValue[ax[i] + 1][ay[i]]; xLast = ax[i] + 1; yLast = ay[i]; } if (mapValue[ax[i]][ay[i] - 1] < minimValue && mapValue[ax[i]][ay[i] - 1] != 0 && mapValue[ax[i]][ay[i] - 1] != undefined) { minimValue = mapValue[ax[i]][ay[i] - 1]; xLast = ax[i]; yLast = ay[i] - 1; } if (mapValue[ax[i] - 1][ay[i]] < minimValue && mapValue[ax[i] - 1][ay[i]] != 0 && mapValue[ax[i] - 1][ay[i]] != undefined) { minimValue = mapValue[ax[i] - 1][ay[i]]; xLast = ax[i] - 1; yLast = ay[i]; } if (mapValue[ax[i] - 1][ay[i] - 1] < minimValue && mapValue[ax[i] - 1][ay[i] - 1] != 0 && mapValue[ax[i] - 1][ay[i] - 1] != undefined) { minimValue = mapValue[ax[i] - 1][ay[i] - 1]; xLast -= 1; yLast -= 1; } if (mapValue[ax[i] + 1][ay[i] - 1] < minimValue && mapValue[ax[i] + 1][ay[i] - 1] != 0 && mapValue[ax[i] + 1][ay[i] - 1] != undefined) { minimValue = mapValue[ax[i] + 1][ay[i] - 1]; xLast = ax[i] + 1; yLast = ay[i] - 1; } if (mapValue[ax[i] - 1][ay[i] + 1] < minimValue && mapValue[ax[i] - 1][ay[i] + 1] != 0 && mapValue[ax[i] - 1][ay[i] + 1] != undefined) { minimValue = mapValue[ax[i] - 1][ay[i] + 1]; xLast = ax[i] - 1; yLast = ay[i] + 1; } if (mapValue[ax[i] + 1][ay[i] + 1] < minimValue && mapValue[ax[i] + 1][ay[i] + 1] != 0 && mapValue[ax[i] + 1][ay[i] + 1] != undefined) { minimValue = mapValue[ax[i] + 1][ay[i] + 1]; xLast = ax[i] + 1; yLast = ay[i] + 1; } --i; } } } function runPath(indi) { xcurrentPath = 0; increaseSpeed = 1; tipeAnim = 'jalan'; if (indi == 'komp') { if (xpos == 0) { delete _root[xnamaChara].onEnterFrame; lanjutKomp(); } else { current = xcurrent; xnamaChara = namaCharaMusuh[current]; cekPosisi2(); i = 0; while (i <= ii) { tj = xPath[i]; ti = yPath[i]; ubahDalam('tj', 'ti', 'dalam'); namaBaru = 'rumput_mc' + dalam; if (_root[namaBaru]._currentframe == 2) { _root[namaBaru].gotoAndStop(3); } else { ii = i - 1; mapping[xPath[ii]][yPath[ii]] = 0; } ++i; } if (xbisaIlang[_root[xnamaChara].ke] == 1) { backSlow(); } else { backJalan(); } _root[xnamaChara].onEnterFrame = enterMusuh; } } else { if (xpos == 0) { delete _root[xnamaChara].onEnterFrame; } else { xnamaChara = namaCharaJagoan[current]; cekPosisi(); i = 0; while (i <= ii) { tj = xPath[i]; ti = yPath[i]; ubahDalam('tj', 'ti', 'dalam'); namaBaru = 'rumput_mc' + dalam; if (_root[namaBaru]._currentframe == 2) { _root[namaBaru].gotoAndStop(3); } else { ii = i - 1; mapping[xPath[ii]][yPath[ii]] = 0; } ++i; } if (bisaIlang[_root[xnamaChara].ke] == 1) { backSlow(); } else { backLangkah(); } _root[xnamaChara].onEnterFrame = enterChara; } } } function cekPosisi(indi) { tipeAnim = 'normal'; if (indi == 'serang') { if (tipeSerangan == 5) { increaseSpeed = 10; } else { increaseSpeed = 1; } tipeAnim = 'serang'; } if (indi == 'item') { if (xPath[xcurrentPath] == posJagoanJ[current]) { if (yPath[xcurrentPath] <= Number(posJagoanI[current] - 1)) { _root[xnamaChara].gotoAndStop(8); } else { if (yPath[xcurrentPath] >= Number(posJagoanI[current] + 1)) { _root[xnamaChara].gotoAndStop(4); } } } else { if (yPath[xcurrentPath] == posJagoanI[current]) { if (xPath[xcurrentPath] <= Number(posJagoanJ[current] - 1)) { _root[xnamaChara].gotoAndStop(2); } else { if (xPath[xcurrentPath] >= Number(posJagoanJ[current] + 1)) { _root[xnamaChara].gotoAndStop(6); } } } else { if (xPath[xcurrentPath] <= Number(posJagoanJ[current] - 1)) { if (yPath[xcurrentPath] <= Number(posJagoanI[current] - 1)) { _root[xnamaChara].gotoAndStop(1); } else { if (yPath[xcurrentPath] >= Number(posJagoanI[current] + 1)) { _root[xnamaChara].gotoAndStop(3); } } } else { if (xPath[xcurrentPath] >= Number(posJagoanJ[current] + 1)) { if (yPath[xcurrentPath] <= Number(posJagoanI[current] - 1)) { _root[xnamaChara].gotoAndStop(7); } else { if (yPath[xcurrentPath] >= Number(posJagoanI[current] + 1)) { _root[xnamaChara].gotoAndStop(5); } } } } } } if (ygNyerang != undefined && ygDiserang != undefined) { indiNyerang = _root[ygNyerang].ke; indiDiserang = _root[ygDiserang].ke; efek = _root[namaCharaJagoan[indiDiserang]].attachMovie('it' + tipeItem, 'fx_mc', dalamDarah + 10); if (tipeItem == 2 || tipeItem == 10) { efek._x = random(10) - 20; efek._y = 250; } else { efek._x = random(10) - 20; efek._y = random(10) - 20; } efek._yscale = random(350) + 700; efek._xscale = efek._yscale; if (tipeItem == 1) { backHealth(); bertambah = 'HEALTH +100'; liveJagoan[indiDiserang] += 100; if (liveJagoan[indiDiserang] >= totLiveJagoan[indiDiserang]) { liveJagoan[indiDiserang] = totLiveJagoan[indiDiserang]; } } else { if (tipeItem == 2) { backAura(); bertambah = 'AURA +50'; auraJagoan[indiDiserang] += 50; if (auraJagoan[indiDiserang] >= totAuraJagoan[indiDiserang]) { auraJagoan[indiDiserang] = totAuraJagoan[indiDiserang]; } } else { if (tipeItem == 3) { backAntidote(); bertambah = 'POISON REMOVED'; poisonKeJagoan[indiDiserang] = 3; poisonJagoan[indiDiserang] = false; removeMovieClip(_root[namaCharaJagoan[indiDiserang]].poison_mc); } else { if (tipeItem == 4) { backBreak(); bertambah = 'STUN REMOVED'; stunKeJagoan[indiDiserang] = 3; stunJagoan[indiDiserang] = false; removeMovieClip(_root[namaCharaJagoan[indiDiserang]].stun_mc); setBisa2(3, true, indiDiserang); masihAktif[indiDiserang] = true; } else { if (tipeItem == 5) { backAware(); bertambah = 'UNCONTROL REMOVED'; uncontrolKeJagoan[indiDiserang] = 3; uncontrolJagoan[indiDiserang] = false; removeMovieClip(_root[namaCharaJagoan[indiDiserang]].uncontrol_mc); } else { if (tipeItem == 6) { backFast(); bertambah = 'SLOW REMOVED'; slowKeJagoan[indiDiserang] = 3; slowJagoan[indiDiserang] = false; removeMovieClip(_root[namaCharaJagoan[indiDiserang]].slow_mc); xrangeJagoan[indiDiserang] = rangeJagoan[indiDiserang]; } else { if (tipeItem == 7) { backIce(); bertambah = 'ICE SHIELD'; attackDefenseIncJagoan[indiDiserang] *= 1.025; attackJagoan[indiDiserang] = Math.ceil(attackJagoan[indiDiserang] * attackDefenseIncJagoan[indiDiserang]); defenseJagoan[indiDiserang] = Math.ceil(defenseJagoan[indiDiserang] * attackDefenseIncJagoan[indiDiserang]); } else { if (tipeItem == 8) { backDouble(); bertambah = 'DOUBLE TURN'; moveJagoan[indiDiserang] = false; actionJagoan[indiDiserang] = false; masihAktif[indiDiserang] = true; } else { if (tipeItem == 9) { backHealth(); backHealth(); bertambah = 'HEALTH +200'; liveJagoan[indiDiserang] += 200; if (liveJagoan[indiDiserang] >= totLiveJagoan[indiDiserang]) { liveJagoan[indiDiserang] = totLiveJagoan[indiDiserang]; } } else { if (tipeItem == 10) { backAura(); backAura(); bertambah = 'AURA +100'; auraJagoan[indiDiserang] += 100; if (auraJagoan[indiDiserang] >= totAuraJagoan[indiDiserang]) { auraJagoan[indiDiserang] = totAuraJagoan[indiDiserang]; } } else { if (tipeItem == 12) { backAntidote(); bertambah = 'ALL EFFECT REMOVED'; poisonKeJagoan[indiDiserang] = 3; poisonJagoan[indiDiserang] = false; removeMovieClip(_root[namaCharaJagoan[indiDiserang]].poison_mc); backBreak(); stunKeJagoan[indiDiserang] = 3; stunJagoan[indiDiserang] = false; removeMovieClip(_root[namaCharaJagoan[indiDiserang]].stun_mc); setBisa2(3, true, indiDiserang); masihAktif[indiDiserang] = true; backAware(); uncontrolKeJagoan[indiDiserang] = 3; uncontrolJagoan[indiDiserang] = false; removeMovieClip(_root[namaCharaJagoan[indiDiserang]].uncontrol_mc); backFast(); slowKeJagoan[indiDiserang] = 3; slowJagoan[indiDiserang] = false; removeMovieClip(_root[namaCharaJagoan[indiDiserang]].slow_mc); xrangeJagoan[indiDiserang] = rangeJagoan[indiDiserang]; } else { if (tipeItem == 13) { backHealth(); backHealth(); bertambah = 'HEALTH +800'; liveJagoan[indiDiserang] += 800; if (liveJagoan[indiDiserang] >= totLiveJagoan[indiDiserang]) { liveJagoan[indiDiserang] = totLiveJagoan[indiDiserang]; } } else { if (tipeItem == 14) { backAura(); backAura(); bertambah = 'AURA +400'; auraJagoan[indiDiserang] += 400; if (auraJagoan[indiDiserang] >= totAuraJagoan[indiDiserang]) { auraJagoan[indiDiserang] = totAuraJagoan[indiDiserang]; } } } } } } } } } } } } } } --punyaItem[itemJagoan[current][zzindi]]; if (punyaItem[itemJagoan[current][zzindi]] <= 0) { punyaItem[itemJagoan[current][zzindi]] = 0; } if (jenisMaen == 'training') { --xpunyaItem[0][zzindi]; --xpunyaItem[1][zzindi]; --xpunyaItem[2][zzindi]; if (xpunyaItem[0][zzindi] <= 0) { xpunyaItem[0][zzindi] = 0; } if (xpunyaItem[1][zzindi] <= 0) { xpunyaItem[1][zzindi] = 0; } if (xpunyaItem[2][zzindi] <= 0) { xpunyaItem[2][zzindi] = 0; } } posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y; cekAngka2(posX, posY, bertambah); idDelay1 = setInterval(delay1, 1000); } else { bertambah = 'Miss'; --punyaItem[itemJagoan[current][zzindi]]; if (punyaItem[itemJagoan[current][zzindi]] <= 0) { punyaItem[itemJagoan[current][zzindi]] = 0; } if (jenisMaen == 'training') { --xpunyaItem[0][zzindi]; --xpunyaItem[1][zzindi]; if (xpunyaItem[0][zzindi] <= 0) { xpunyaItem[0][zzindi] = 0; } if (xpunyaItem[1][zzindi] <= 0) { xpunyaItem[1][zzindi] = 0; } } posX = _root[ygNyerang]._x; posY = _root[ygNyerang]._y; cekAngka2(posX, posY, bertambah); idDelay1 = setInterval(delay1, 1000); } } else { if (tipeAnim == 'serang') { if (xPath[xcurrentPath] == posJagoanJ[current]) { if (yPath[xcurrentPath] <= Number(posJagoanI[current] - 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posMusuhJ[_root[ygDiserang].ke]; yPath[currentPath] = posMusuhI[_root[ygDiserang].ke] - 1; _root[xnamaChara].gotoAndStop(8); } else { if (yPath[xcurrentPath] >= Number(posJagoanI[current] + 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posMusuhJ[_root[ygDiserang].ke]; yPath[currentPath] = posMusuhI[_root[ygDiserang].ke] + 1; _root[xnamaChara].gotoAndStop(4); } } } else { if (yPath[xcurrentPath] == posJagoanI[current]) { if (xPath[xcurrentPath] <= Number(posJagoanJ[current] - 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posMusuhJ[_root[ygDiserang].ke] - 1; yPath[currentPath] = posMusuhI[_root[ygDiserang].ke]; _root[xnamaChara].gotoAndStop(2); } else { if (xPath[xcurrentPath] >= Number(posJagoanJ[current] + 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posMusuhJ[_root[ygDiserang].ke] + 1; yPath[currentPath] = posMusuhI[_root[ygDiserang].ke]; _root[xnamaChara].gotoAndStop(6); } } } else { if (xPath[xcurrentPath] <= Number(posJagoanJ[current] - 1)) { if (yPath[xcurrentPath] <= Number(posJagoanI[current] - 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posMusuhJ[_root[ygDiserang].ke] - 1; yPath[currentPath] = posMusuhI[_root[ygDiserang].ke] - 1; _root[xnamaChara].gotoAndStop(1); } else { if (yPath[xcurrentPath] >= Number(posJagoanI[current] + 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posMusuhJ[_root[ygDiserang].ke] - 1; yPath[currentPath] = posMusuhI[_root[ygDiserang].ke] + 1; _root[xnamaChara].gotoAndStop(3); } } } else { if (xPath[xcurrentPath] >= Number(posJagoanJ[current] + 1)) { if (yPath[xcurrentPath] <= Number(posJagoanI[current] - 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posMusuhJ[_root[ygDiserang].ke] + 1; yPath[currentPath] = posMusuhI[_root[ygDiserang].ke] - 1; _root[xnamaChara].gotoAndStop(7); } else { if (yPath[xcurrentPath] >= Number(posJagoanI[current] + 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posMusuhJ[_root[ygDiserang].ke] + 1; yPath[currentPath] = posMusuhI[_root[ygDiserang].ke] + 1; _root[xnamaChara].gotoAndStop(5); } } } } } } } else { if (xPath[xcurrentPath] == posJagoanJ[current]) { if (yPath[xcurrentPath] == Number(posJagoanI[current] - 1)) { _root[xnamaChara].gotoAndStop(8); } else { if (yPath[xcurrentPath] == Number(posJagoanI[current] + 1)) { _root[xnamaChara].gotoAndStop(4); } } } else { if (yPath[xcurrentPath] == posJagoanI[current]) { if (xPath[xcurrentPath] == Number(posJagoanJ[current] - 1)) { _root[xnamaChara].gotoAndStop(2); } else { if (xPath[xcurrentPath] == Number(posJagoanJ[current] + 1)) { _root[xnamaChara].gotoAndStop(6); } } } else { if (xPath[xcurrentPath] == Number(posJagoanJ[current] - 1)) { if (yPath[xcurrentPath] == Number(posJagoanI[current] - 1)) { _root[xnamaChara].gotoAndStop(1); } else { if (yPath[xcurrentPath] == Number(posJagoanI[current] + 1)) { _root[xnamaChara].gotoAndStop(3); } } } else { if (xPath[xcurrentPath] == Number(posJagoanJ[current] + 1)) { if (yPath[xcurrentPath] == Number(posJagoanI[current] - 1)) { _root[xnamaChara].gotoAndStop(7); } else { if (yPath[xcurrentPath] == Number(posJagoanI[current] + 1)) { _root[xnamaChara].gotoAndStop(5); } } } } } } } if (indi == 'serang') { if (ygNyerang != undefined && ygDiserang != undefined) { if (tipeSerangan == 5) { masukJurang = false; if (mapping[xPath[currentPath]][yPath[currentPath]] == 1 || wwjurang[xPath[currentPath]][yPath[currentPath]] == 1) { if (wwair[xPath[currentPath]][yPath[currentPath]] == 1) { if (xtipeAir[_root[ygDiserang].ke] != 1) { masukJurang = true; } else { masukJurang = false; } } else { if (wwjurang[xPath[currentPath]][yPath[currentPath]] == 1) { if (xtipeUdara[_root[ygDiserang].ke] != 1) { masukJurang = true; } else { masukJurang = false; } } else { masukJurang = false; } } mapping[posMusuhJ[_root[ygDiserang].ke]][posMusuhI[_root[ygDiserang].ke]] = 1; posMusuhJ[_root[ygDiserang].ke] = xPath[currentPath]; posMusuhI[_root[ygDiserang].ke] = yPath[currentPath]; mapping[xPath[currentPath]][yPath[currentPath]] = 0; _root[ygDiserang].onEnterFrame = enterMusuh; } } else { keGoyang = 1; idGoyang = setInterval(goyang, 10, _root[namaCharaMusuh[indiDiserang]]); } cekKurangJagoan(ygNyerang, ygDiserang); if (tipeSerangan == 4) { if (liveMusuh[indiDiserang] > 0) { idDelay5 = setInterval(delay5, 2500); } else { idDelay1 = setInterval(delay1, 2500); } } else { idDelay1 = setInterval(delay1, 2500); } } else { bertambah = 'Miss'; posX = tujuan._x + 50; posY = tujuan._y - 20; cekAngka2(posX, posY, bertambah); delay1(); } if (indiNyerang == 0) { if (jagoanWeapon[indiNyerang] == 1) { _root[xnamaChara].anim.gotoAndStop(3); } else { if (jagoanWeapon[indiNyerang] == 5) { _root[xnamaChara].anim.gotoAndStop(4); } else { if (jagoanWeapon[indiNyerang] == 6) { _root[xnamaChara].anim.gotoAndStop(5); } else { if (jagoanWeapon[indiNyerang] == 7) { _root[xnamaChara].anim.gotoAndStop(6); } } } } } else { if (wwair[posJagoanJ[current]][posJagoanI[current]] == 1 && elementJagoan[current] == 0) { _root[xnamaChara].anim.gotoAndStop(23); } else { _root[xnamaChara].anim.gotoAndStop(3); } } } else { if (wwair[posJagoanJ[current]][posJagoanI[current]] == 1 && elementJagoan[current] == 0) { if (_root[xnamaChara].anim._currentframe < 10) { if (sekaliWaja == false) { sekaliWaja = true; efek = _root[xnamaChara].attachMovie('splash_mc', 'fx_mc', dalamDarah + 10); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; } } _root[xnamaChara].anim.gotoAndStop(22); } else { if (_root[xnamaChara].anim._currentframe > 10) { if (sekaliWaja == false) { sekaliWaja = true; efek = _root[xnamaChara].attachMovie('splash_mc', 'fx_mc', dalamDarah + 10); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; } } _root[xnamaChara].anim.gotoAndStop(2); } } } } function cekPosisi3() { if (xPath[xcurrentPath] == posMusuhJ[current]) { if (yPath[xcurrentPath] <= Number(posMusuhI[current] - 1)) { _root[xnamaChara].gotoAndStop(8); } else { if (yPath[xcurrentPath] >= Number(posMusuhI[current] + 1)) { _root[xnamaChara].gotoAndStop(4); } } } else { if (yPath[xcurrentPath] == posMusuhI[current]) { if (xPath[xcurrentPath] <= Number(posMusuhJ[current] - 1)) { _root[xnamaChara].gotoAndStop(2); } else { if (xPath[xcurrentPath] >= Number(posMusuhJ[current] + 1)) { _root[xnamaChara].gotoAndStop(6); } } } else { if (xPath[xcurrentPath] <= Number(posMusuhJ[current] - 1)) { if (yPath[xcurrentPath] <= Number(posMusuhI[current] - 1)) { _root[xnamaChara].gotoAndStop(1); } else { if (yPath[xcurrentPath] >= Number(posMusuhI[current] + 1)) { _root[xnamaChara].gotoAndStop(3); } } } else { if (xPath[xcurrentPath] >= Number(posMusuhJ[current] + 1)) { if (yPath[xcurrentPath] <= Number(posMusuhI[current] - 1)) { _root[xnamaChara].gotoAndStop(7); } else { if (yPath[xcurrentPath] >= Number(posMusuhI[current] + 1)) { _root[xnamaChara].gotoAndStop(5); } } } } } } if (wwair[posMusuhJ[current]][posMusuhI[current]] == 1 && elementMusuh[current] == 0) { _root[xnamaChara].anim.gotoAndStop(31); } else { _root[xnamaChara].anim.gotoAndStop(3); } cekKurangMusuh2(ygNyerang, ygDiserang); idDelay2 = setInterval(delay2, 2500, current); vvj = posJagoanJ[indiDiserang]; vvi = posJagoanI[indiDiserang]; ubahDalam('vvj', 'vvi', 'dalam'); namaBaru = 'rumput_mc' + dalam; myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x6C0202'); _root[namaBaru].enabled = false; delete _root[namaBaru].onRollOver; delete _root[namaBaru].onRollOut; delete _root[namaBaru].onReleaseOutside; delete _root[namaBaru].onRelease; } function cekKurangMusuh2(ygNyerang, ygDiserang) { randAccuracy = random(100); indiNyerang = _root[ygNyerang].ke; indiDiserang = _root[ygDiserang].ke; increseSerang = 1; if (randAccuracy <= accuracyMusuh[indiNyerang]) { efek = _root[namaCharaMusuh[indiDiserang]].attachMovie('fx' + tipeSerangan, 'fx_mc', dalamDarah + 10); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; i = 0; while (i <= 5) { darah = _root[namaCharaMusuh[indiDiserang]].attachMovie('darah_mc', 'darah_mc' + i, dalamDarah + i); darah._yscale = random(350) + 700; darah._xscale = darah._yscale; darah._rotation = random(360); darah._x = random(10) - 20; darah._y = random(10) - 20; ++i; } elementSerang = elementMusuh[indiNyerang]; elementDiserang = elementMusuh[indiDiserang]; if (elementDiserang == kuatElement[elementSerang]) { increseSerang *= 1.25; } else { if (elementDiserang == lemahElement[elementSerang]) { increseSerang *= 0.75; } else { increseSerang *= 1; } } elementSerang = pilihanAbil; if (elementSerang == 4) { elementSerang = elementMusuh[indiNyerang]; } elementDiserang = elementMusuh[indiDiserang]; if (elementDiserang == kuatElement[elementSerang]) { increseSerang *= 1.25; } else { if (elementDiserang == lemahElement[elementSerang]) { increseSerang *= 0.75; } else { increseSerang *= 1; } } if (elementMusuh[indiNyerang] == elementSerang) { increseSerang *= 1; } berkurang = Math.ceil(attackMusuh[indiNyerang] * increseSerang - defenseMusuh[indiDiserang]); if (berkurang <= 0) { berkurang = random(6) + 5; } liveMusuh[indiDiserang] -= berkurang; if (liveMusuh[indiDiserang] <= 0) { bertambahExp = Math.ceil(maxMusuh[indiDiserang] / levelMusuh[indiNyerang] / 1) + random(10); } else { bertambahExp = Math.ceil(maxMusuh[indiDiserang] / levelMusuh[indiNyerang] / 2) + random(10); } expMusuh[indiNyerang] += bertambahExp; posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y; cekAngka(posX, posY, berkurang); if (expMusuh[indiNyerang] >= maxMusuh[indiNyerang]) { ++levelMusuh[indiNyerang]; totLiveMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincLive[indiNyerang] * 25); attackMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAttack[indiNyerang] * 10); defenseMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincDefense[indiNyerang] * 5); totAuraMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAura[indiNyerang] * 10); expMusuh[indiNyerang] = 0; maxMusuh[indiNyerang] = levelMusuh[indiNyerang] * xnaik2; idDelay3 = setInterval(delay3, 1000); } else { idDelay4 = setInterval(delay4, 1000); } if (liveMusuh[indiDiserang] <= 0) { cekMati(_root[ygDiserang], indiDiserang, 'komp'); } } else { posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y; cekAngka2(posX, posY, 'Miss'); bertambahExp = 10; expMusuh[indiNyerang] += bertambahExp; if (expMusuh[indiNyerang] >= maxMusuh[indiNyerang]) { ++levelMusuh[indiNyerang]; totLiveMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincLive[indiNyerang] * 25); attackMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAttack[indiNyerang] * 10); defenseMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincDefense[indiNyerang] * 5); totAuraMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAura[indiNyerang] * 10); expMusuh[indiNyerang] = 0; maxMusuh[indiNyerang] = levelMusuh[indiNyerang] * xnaik2; idDelay3 = setInterval(delay3, 1000); } else { idDelay4 = setInterval(delay4, 1000); } } } function cekPosisi4() { if (xPath[xcurrentPath] == posJagoanJ[current]) { if (yPath[xcurrentPath] <= Number(posJagoanI[current] - 1)) { _root[xnamaChara].gotoAndStop(8); } else { if (yPath[xcurrentPath] >= Number(posJagoanI[current] + 1)) { _root[xnamaChara].gotoAndStop(4); } } } else { if (yPath[xcurrentPath] == posJagoanI[current]) { if (xPath[xcurrentPath] <= Number(posJagoanJ[current] - 1)) { _root[xnamaChara].gotoAndStop(2); } else { if (xPath[xcurrentPath] >= Number(posJagoanJ[current] + 1)) { _root[xnamaChara].gotoAndStop(6); } } } else { if (xPath[xcurrentPath] <= Number(posJagoanJ[current] - 1)) { if (yPath[xcurrentPath] <= Number(posJagoanI[current] - 1)) { _root[xnamaChara].gotoAndStop(1); } else { if (yPath[xcurrentPath] >= Number(posJagoanI[current] + 1)) { _root[xnamaChara].gotoAndStop(3); } } } else { if (xPath[xcurrentPath] >= Number(posJagoanJ[current] + 1)) { if (yPath[xcurrentPath] <= Number(posJagoanI[current] - 1)) { _root[xnamaChara].gotoAndStop(7); } else { if (yPath[xcurrentPath] >= Number(posJagoanI[current] + 1)) { _root[xnamaChara].gotoAndStop(5); } } } } } } if (indiNyerang == 0) { if (jagoanWeapon[indiNyerang] == 1) { _root[xnamaChara].anim.gotoAndStop(3); } else { if (jagoanWeapon[indiNyerang] == 5) { _root[xnamaChara].anim.gotoAndStop(4); } else { if (jagoanWeapon[indiNyerang] == 6) { _root[xnamaChara].anim.gotoAndStop(5); } else { if (jagoanWeapon[indiNyerang] == 7) { _root[xnamaChara].anim.gotoAndStop(6); } } } } } else { if (wwair[posJagoanJ[current]][posJagoanI[current]] == 1 && elementJagoan[current] == 0) { _root[xnamaChara].anim.gotoAndStop(23); } else { _root[xnamaChara].anim.gotoAndStop(3); } } cekKurangJagoan3(ygNyerang, ygDiserang); idDelay1 = setInterval(delay1, 2500, current); vvj = posJagoanJ[indiDiserang]; vvi = posJagoanI[indiDiserang]; ubahDalam('vvj', 'vvi', 'dalam'); namaBaru = 'rumput_mc' + dalam; myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x6C0202'); _root[namaBaru].enabled = false; delete _root[namaBaru].onRollOver; delete _root[namaBaru].onRollOut; delete _root[namaBaru].onReleaseOutside; delete _root[namaBaru].onRelease; } function cekKurangJagoan3(ygNyerang, ygDiserang) { randAccuracy = random(100); indiNyerang = _root[ygNyerang].ke; indiDiserang = _root[ygDiserang].ke; increseSerang = 1; if (randAccuracy <= accuracyJagoan[indiNyerang]) { efek = _root[namaCharaJagoan[indiDiserang]].attachMovie('fx' + tipeSerangan, 'fx_mc', dalamDarah + 10); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; i = 0; while (i <= 5) { darah = _root[namaCharaJagoan[indiDiserang]].attachMovie('darah_mc', 'darah_mc' + i, dalamDarah + i); darah._yscale = random(350) + 700; darah._xscale = darah._yscale; darah._rotation = random(360); darah._x = random(10) - 20; darah._y = random(10) - 20; ++i; } elementSerang = elementJagoan[indiNyerang]; elementDiserang = elementJagoan[indiDiserang]; if (elementDiserang == kuatElement[elementSerang]) { increseSerang *= 1.25; } else { if (elementDiserang == lemahElement[elementSerang]) { increseSerang *= 0.75; } else { increseSerang *= 1; } } elementSerang = pilihanAbil; if (elementSerang == 4) { elementSerang = elementJagoan[indiNyerang]; } elementDiserang = elementJagoan[indiDiserang]; if (elementDiserang == kuatElement[elementSerang]) { increseSerang *= 1.25; } else { if (elementDiserang == lemahElement[elementSerang]) { increseSerang *= 0.75; } else { increseSerang *= 1; } } if (elementJagoan[indiNyerang] == elementSerang) { increseSerang *= 1; } berkurang = Math.ceil(attackJagoan[indiNyerang] * increseSerang - defenseJagoan[indiDiserang]); if (berkurang <= 0) { berkurang = random(6) + 5; } liveJagoan[indiDiserang] -= berkurang; if (liveJagoan[indiDiserang] <= 0) { bertambahExp = Math.ceil(maxJagoan[indiDiserang] / levelJagoan[indiNyerang] / 1) + random(10); } else { bertambahExp = Math.ceil(maxJagoan[indiDiserang] / levelJagoan[indiNyerang] / 2) + random(10); } expJagoan[indiNyerang] += bertambahExp; posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y; cekAngka(posX, posY, berkurang); if (expJagoan[indiNyerang] >= maxJagoan[indiNyerang]) { ++levelJagoan[indiNyerang]; totLiveJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incLive[indiNyerang] * 25); attackJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAttack[indiNyerang] * 10); defenseJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incDefense[indiNyerang] * 5); totAuraJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAura[indiNyerang] * 10); expJagoan[indiNyerang] = 0; maxJagoan[indiNyerang] = levelJagoan[indiNyerang] * xnaik2; idDelay3 = setInterval(delay3, 1000); } else { idDelay4 = setInterval(delay4, 1000); } if (liveJagoan[indiDiserang] <= 0) { cekMati(_root[ygDiserang], indiDiserang, 'jagoan'); } } else { posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y; cekAngka2(posX, posY, 'Miss'); bertambahExp = 10; expJagoan[indiNyerang] += bertambahExp; if (expJagoan[indiNyerang] >= maxJagoan[indiNyerang]) { ++levelJagoan[indiNyerang]; totLiveJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incLive[indiNyerang] * 25); attackJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAttack[indiNyerang] * 10); defenseJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incDefense[indiNyerang] * 5); totAuraJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAura[indiNyerang] * 10); expJagoan[indiNyerang] = 0; maxJagoan[indiNyerang] = levelJagoan[indiNyerang] * xnaik2; idDelay3 = setInterval(delay3, 1000); } else { idDelay4 = setInterval(delay4, 1000); } } } function goyang(indi) { if (keGoyang == 1) { ++keGoyang; indi._x += 10; } else { if (keGoyang == 2) { ++keGoyang; indi._y += 10; } else { if (keGoyang == 3) { ++keGoyang; indi._x -= 20; } else { if (keGoyang == 4) { ++keGoyang; indi._y -= 20; } else { if (keGoyang == 5) { ++keGoyang; indi._x += 10; } else { if (keGoyang == 6) { ++keGoyang; indi._y += 10; clearInterval(idGoyang); } } } } } } } function delay5() { clearInterval(idDelay5); if (wwair[posJagoanJ[current]][posJagoanI[current]] == 1 && elementJagoan[current] == 0) { _root[xnamaChara].anim.gotoAndStop(21); } else { _root[xnamaChara].anim.gotoAndStop(1); } if (indiNyerang == 0) { if (jagoanWeapon[indiNyerang] == 1) { _root[xnamaChara].anim.gotoAndStop(3); } else { if (jagoanWeapon[indiNyerang] == 5) { _root[xnamaChara].anim.gotoAndStop(4); } else { if (jagoanWeapon[indiNyerang] == 6) { _root[xnamaChara].anim.gotoAndStop(5); } else { if (jagoanWeapon[indiNyerang] == 7) { _root[xnamaChara].anim.gotoAndStop(6); } } } } } else { if (wwair[posJagoanJ[current]][posJagoanI[current]] == 1 && elementJagoan[current] == 0) { _root[xnamaChara].anim.gotoAndStop(23); } else { _root[xnamaChara].anim.gotoAndStop(3); } } cekKurangJagoan(ygNyerang, ygDiserang); idDelay1 = setInterval(delay1, 2500); } function delay6() { clearInterval(idDelay6); if (wwair[posMusuhJ[current]][posMusuhI[current]] == 1 && elementMusuh[current] == 0) { _root[xnamaChara].anim.gotoAndStop(21); _root[xnamaChara].anim.gotoAndStop(23); } else { _root[xnamaChara].anim.gotoAndStop(1); _root[xnamaChara].anim.gotoAndStop(3); } cekKurangMusuh(ygNyerang, ygDiserang); idDelay2 = setInterval(delay2, 2500, current); } function cekPosisi2(indi) { tipeAnim = 'normal'; if (indi == 'serang') { if (tipeSerangan == 5) { increaseSpeed = 10; } else { increaseSpeed = 1; } tipeAnim = 'serang'; } if (indi == 'item') { if (ygNyerang != undefined && ygDiserang != undefined && tipeItem != undefined) { indiNyerang = _root[ygNyerang].ke; indiDiserang = _root[ygDiserang].ke; vvj = posMusuhJ[indiDiserang]; vvi = posMusuhI[indiDiserang]; ubahDalam('vvj', 'vvi', 'dalam'); namaBaru = 'rumput_mc' + dalam; myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x6C0202'); _root[namaBaru].enabled = false; delete _root[namaBaru].onRollOver; delete _root[namaBaru].onRollOut; delete _root[namaBaru].onReleaseOutside; delete _root[namaBaru].onRelease; efek = _root[namaCharaMusuh[indiDiserang]].attachMovie('it' + tipeItem, 'fx_mc', dalamDarah + 10); if (tipeItem == 2 || tipeItem == 10) { efek._x = random(10) - 20; efek._y = 250; } else { efek._x = random(10) - 20; efek._y = random(10) - 20; } efek._yscale = random(350) + 700; efek._xscale = efek._yscale; if (tipeItem == 1) { backHealth(); bertambah = 'HEALTH +100'; liveMusuh[indiDiserang] += 100; if (liveMusuh[indiDiserang] >= totLiveMusuh[indiDiserang]) { liveMusuh[indiDiserang] = totLiveMusuh[indiDiserang]; } } else { if (tipeItem == 2) { backAura(); bertambah = 'AURA +50'; auraMusuh[indiDiserang] += 50; if (auraMusuh[indiDiserang] >= totAuraMusuh[indiDiserang]) { auraMusuh[indiDiserang] = totAuraMusuh[indiDiserang]; } } else { if (tipeItem == 3) { backAntidote(); bertambah = 'POISON REMOVED'; poisonKeMusuh[indiDiserang] = 3; poisonMusuh[indiDiserang] = false; removeMovieClip(_root[namaCharaMusuh[indiDiserang]].poison_mc); } else { if (tipeItem == 4) { backBreak(); bertambah = 'STUN REMOVED'; stunKeMusuh[indiDiserang] = 3; stunMusuh[indiDiserang] = false; removeMovieClip(_root[namaCharaMusuh[indiDiserang]].stun_mc); setBisa2(3, true, indiDiserang); masihAktif[indiDiserang] = true; } else { if (tipeItem == 5) { backAware(); bertambah = 'UNCONTROL REMOVED'; uncontrolKeMusuh[indiDiserang] = 3; uncontrolMusuh[indiDiserang] = false; removeMovieClip(_root[namaCharaMusuh[indiDiserang]].uncontrol_mc); } else { if (tipeItem == 6) { backFast(); bertambah = 'SLOW REMOVED'; slowKeMusuh[indiDiserang] = 3; slowMusuh[indiDiserang] = false; removeMovieClip(_root[namaCharaMusuh[indiDiserang]].slow_mc); xrangeMusuh[indiDiserang] = rangeMusuh[indiDiserang]; } else { if (tipeItem == 7) { backIce(); bertambah = 'ICE SHIELD'; attackDefenseIncMusuh[indiDiserang] *= 1.025; attackMusuh[indiDiserang] = Math.ceil(attackMusuh[indiDiserang] * attackDefenseIncMusuh[indiDiserang]); defenseMusuh[indiDiserang] = Math.ceil(defenseMusuh[indiDiserang] * attackDefenseIncMusuh[indiDiserang]); } else { if (tipeItem == 8) { backDouble(); bertambah = 'DOUBLE TURN'; moveMusuh[indiDiserang] = false; actionMusuh[indiDiserang] = false; musuhAktif[indiDiserang] = true; } else { if (tipeItem == 9) { backHealth(); backHealth(); bertambah = 'HEALTH +200'; liveMusuh[indiDiserang] += 200; if (liveMusuh[indiDiserang] >= totLiveMusuh[indiDiserang]) { liveMusuh[indiDiserang] = totLiveMusuh[indiDiserang]; } } else { if (tipeItem == 10) { backAura(); backAura(); bertambah = 'AURA +100'; auraMusuh[indiDiserang] += 100; if (auraMusuh[indiDiserang] >= totAuraMusuh[indiDiserang]) { auraMusuh[indiDiserang] = totAuraMusuh[indiDiserang]; } } else { if (tipeItem == 12) { backAntidote(); bertambah = 'POISON REMOVED'; poisonKeMusuh[indiDiserang] = 3; poisonMusuh[indiDiserang] = false; removeMovieClip(_root[namaCharaMusuh[indiDiserang]].poison_mc); backBreak(); bertambah = 'STUN REMOVED'; stunKeMusuh[indiDiserang] = 3; stunMusuh[indiDiserang] = false; removeMovieClip(_root[namaCharaMusuh[indiDiserang]].stun_mc); setBisa2(3, true, indiDiserang); masihAktif[indiDiserang] = true; backAware(); bertambah = 'UNCONTROL REMOVED'; uncontrolKeMusuh[indiDiserang] = 3; uncontrolMusuh[indiDiserang] = false; removeMovieClip(_root[namaCharaMusuh[indiDiserang]].uncontrol_mc); backFast(); bertambah = 'SLOW REMOVED'; slowKeMusuh[indiDiserang] = 3; slowMusuh[indiDiserang] = false; removeMovieClip(_root[namaCharaMusuh[indiDiserang]].slow_mc); xrangeMusuh[indiDiserang] = rangeMusuh[indiDiserang]; } else { if (tipeItem == 13) { backHealth(); backHealth(); bertambah = 'HEALTH +800'; liveMusuh[indiDiserang] += 800; if (liveMusuh[indiDiserang] >= totLiveMusuh[indiDiserang]) { liveMusuh[indiDiserang] = totLiveMusuh[indiDiserang]; } } else { if (tipeItem == 14) { backAura(); backAura(); bertambah = 'AURA +400'; auraMusuh[indiDiserang] += 400; if (auraMusuh[indiDiserang] >= totAuraMusuh[indiDiserang]) { auraMusuh[indiDiserang] = totAuraMusuh[indiDiserang]; } } } } } } } } } } } } } } posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y; cekAngka2(posX, posY, bertambah); idDelay2 = setInterval(delay2, 2000); } if (wwair[posJagoanJ[current]][posJagoanI[current]] == 1 && elementJagoan[current] == 0) { _root[xnamaChara].anim.gotoAndStop(22); } else { _root[xnamaChara].anim.gotoAndStop(2); } } else { if (tipeAnim == 'serang') { current = xcurrent; if (xPath[xcurrentPath] == posMusuhJ[current]) { if (yPath[xcurrentPath] <= Number(posMusuhI[current] - 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posJagoanJ[_root[ygDiserang].ke]; yPath[currentPath] = posJagoanI[_root[ygDiserang].ke] - 1; _root[xnamaChara].gotoAndStop(8); } else { if (yPath[xcurrentPath] >= Number(posMusuhI[current] + 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posJagoanJ[_root[ygDiserang].ke]; yPath[currentPath] = posJagoanI[_root[ygDiserang].ke] + 1; _root[xnamaChara].gotoAndStop(4); } } } else { if (yPath[xcurrentPath] == posMusuhI[current]) { if (xPath[xcurrentPath] <= Number(posMusuhJ[current] - 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posJagoanJ[_root[ygDiserang].ke] - 1; yPath[currentPath] = posJagoanI[_root[ygDiserang].ke]; _root[xnamaChara].gotoAndStop(2); } else { if (xPath[xcurrentPath] >= Number(posMusuhJ[current] + 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posJagoanJ[_root[ygDiserang].ke] + 1; yPath[currentPath] = posJagoanI[_root[ygDiserang].ke]; _root[xnamaChara].gotoAndStop(6); } } } else { if (xPath[xcurrentPath] <= Number(posMusuhJ[current] - 1)) { if (yPath[xcurrentPath] <= Number(posMusuhI[current] - 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posJagoanJ[_root[ygDiserang].ke] - 1; yPath[currentPath] = posJagoanI[_root[ygDiserang].ke] - 1; _root[xnamaChara].gotoAndStop(1); } else { if (yPath[xcurrentPath] >= Number(posMusuhI[current] + 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posJagoanJ[_root[ygDiserang].ke] - 1; yPath[currentPath] = posJagoanI[_root[ygDiserang].ke] + 1; _root[xnamaChara].gotoAndStop(3); } } } else { if (xPath[xcurrentPath] >= Number(posMusuhJ[current] + 1)) { if (yPath[xcurrentPath] <= Number(posMusuhI[current] - 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posJagoanJ[_root[ygDiserang].ke] + 1; yPath[currentPath] = posJagoanI[_root[ygDiserang].ke] - 1; _root[xnamaChara].gotoAndStop(7); } else { if (yPath[xcurrentPath] >= Number(posMusuhI[current] + 1)) { currentPath = 0; xPath = new Array(); yPath = new Array(); xPath[currentPath] = posJagoanJ[_root[ygDiserang].ke] + 1; yPath[currentPath] = posJagoanI[_root[ygDiserang].ke] + 1; _root[xnamaChara].gotoAndStop(5); } } } } } } } else { if (indi == 'serang') { if (xPath[xcurrentPath] == posMusuhJ[current]) { if (yPath[xcurrentPath] <= Number(posMusuhI[current] - 1)) { _root[xnamaChara].gotoAndStop(8); } else { if (yPath[xcurrentPath] >= Number(posMusuhI[current] + 1)) { _root[xnamaChara].gotoAndStop(4); } } } else { if (yPath[xcurrentPath] == posMusuhI[current]) { if (xPath[xcurrentPath] <= Number(posMusuhJ[current] - 1)) { _root[xnamaChara].gotoAndStop(2); } else { if (xPath[xcurrentPath] >= Number(posMusuhJ[current] + 1)) { _root[xnamaChara].gotoAndStop(6); } } } else { if (xPath[xcurrentPath] <= Number(posMusuhJ[current] - 1)) { if (yPath[xcurrentPath] <= Number(posMusuhI[current] - 1)) { _root[xnamaChara].gotoAndStop(1); } else { if (yPath[xcurrentPath] >= Number(posMusuhI[current] + 1)) { _root[xnamaChara].gotoAndStop(3); } } } else { if (xPath[xcurrentPath] >= Number(posMusuhJ[current] + 1)) { if (yPath[xcurrentPath] <= Number(posMusuhI[current] - 1)) { _root[xnamaChara].gotoAndStop(7); } else { if (yPath[xcurrentPath] >= Number(posMusuhI[current] + 1)) { _root[xnamaChara].gotoAndStop(5); } } } } } } } else { if (xPath[xcurrentPath] == posMusuhJ[current]) { if (yPath[xcurrentPath] == Number(posMusuhI[current] - 1)) { _root[xnamaChara].gotoAndStop(8); } else { if (yPath[xcurrentPath] == Number(posMusuhI[current] + 1)) { _root[xnamaChara].gotoAndStop(4); } } } else { if (yPath[xcurrentPath] == posMusuhI[current]) { if (xPath[xcurrentPath] == Number(posMusuhJ[current] - 1)) { _root[xnamaChara].gotoAndStop(2); } else { if (xPath[xcurrentPath] == Number(posMusuhJ[current] + 1)) { _root[xnamaChara].gotoAndStop(6); } } } else { if (xPath[xcurrentPath] == Number(posMusuhJ[current] - 1)) { if (yPath[xcurrentPath] == Number(posMusuhI[current] - 1)) { _root[xnamaChara].gotoAndStop(1); } else { if (yPath[xcurrentPath] == Number(posMusuhI[current] + 1)) { _root[xnamaChara].gotoAndStop(3); } } } else { if (xPath[xcurrentPath] == Number(posMusuhJ[current] + 1)) { if (yPath[xcurrentPath] == Number(posMusuhI[current] - 1)) { _root[xnamaChara].gotoAndStop(7); } else { if (yPath[xcurrentPath] == Number(posMusuhI[current] + 1)) { _root[xnamaChara].gotoAndStop(5); } } } } } } } } } if (indi == 'serang') { if (ygNyerang != undefined && ygDiserang != undefined) { indiNyerang = _root[ygNyerang].ke; indiDiserang = _root[ygDiserang].ke; if (tipeSerangan == 5) { masukJurang = false; if (mapping[xPath[currentPath]][yPath[currentPath]] == 1 || wwjurang[xPath[currentPath]][yPath[currentPath]] == 1) { if (wwair[xPath[currentPath]][yPath[currentPath]] == 1) { if (tipeAir[_root[ygDiserang].ke] != 1) { masukJurang = true; } else { masukJurang = false; } } else { if (wwjurang[xPath[currentPath]][yPath[currentPath]] == 1) { if (tipeUdara[_root[ygDiserang].ke] != 1) { masukJurang = true; } else { masukJurang = false; } } else { masukJurang = false; } } mapping[posJagoanJ[_root[ygDiserang].ke]][posJagoanI[_root[ygDiserang].ke]] = 1; posJagoanJ[_root[ygDiserang].ke] = xPath[currentPath]; posJagoanI[_root[ygDiserang].ke] = yPath[currentPath]; mapping[xPath[currentPath]][yPath[currentPath]] = 0; _root[ygDiserang].onEnterFrame = enterChara; } } else { keGoyang = 1; idGoyang = setInterval(goyang, 10, _root[namaCharaJagoan[indiDiserang]]); } cekKurangMusuh(ygNyerang, ygDiserang); if (tipeSerangan == 4) { if (liveJagoan[indiDiserang] > 0) { idDelay6 = setInterval(delay6, 2500, current); } else { idDelay2 = setInterval(delay2, 2500, current); } } else { idDelay2 = setInterval(delay2, 2500, current); } vvj = posJagoanJ[indiDiserang]; vvi = posJagoanI[indiDiserang]; ubahDalam('vvj', 'vvi', 'dalam'); namaBaru = 'rumput_mc' + dalam; myColor = new Color(_root[namaBaru].warna_mc); myColor.setRGB('0x6C0202'); _root[namaBaru].enabled = false; delete _root[namaBaru].onRollOver; delete _root[namaBaru].onRollOut; delete _root[namaBaru].onReleaseOutside; delete _root[namaBaru].onRelease; } else { delay2(current); } if (wwair[posMusuhJ[current]][posMusuhI[current]] == 1 && elementMusuh[current] == 0) { _root[xnamaChara].anim.gotoAndStop(23); } else { _root[xnamaChara].anim.gotoAndStop(3); } } else { if (wwair[posMusuhJ[current]][posMusuhI[current]] == 1 && elementMusuh[current] == 0) { if (_root[xnamaChara].anim._currentframe < 10) { if (sekaliWaja == false) { sekaliWaja = true; efek = _root[xnamaChara].attachMovie('splash_mc', 'fx_mc', dalamDarah + 10); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; } } _root[xnamaChara].anim.gotoAndStop(22); } else { if (_root[xnamaChara].anim._currentframe > 10) { if (sekaliWaja == false) { sekaliWaja = true; efek = _root[xnamaChara].attachMovie('splash_mc', 'fx_mc', dalamDarah + 10); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; } } _root[xnamaChara].anim.gotoAndStop(2); } } } function delay1() { clearInterval(idDelay1); if (info_mc._currentframe > 3) { info_mc.gotoAndPlay('xselesai'); } else { info_mc.gotoAndStop(1); } if (wwair[posJagoanJ[current]][posJagoanI[current]] == 1 && elementJagoan[current] == 0) { _root[xnamaChara].anim.gotoAndStop(21); } else { _root[xnamaChara].anim.gotoAndStop(1); } if (jagoanType[current] != 'musuh') { giliranJagoan(current); xresetMove(); deleteMove(); setBisa(1, true); deleteMusuh(false); setMuncul(false); if (moveJagoan[current] == true && actionJagoan[current] == true) { if (bykMusuh <= 0 && adaMusuhkah == true) { cekLanjutLevel(); } else { charaWait(); } } } else { adaAksi = false; z = 0; while (z <= charaJagoan - 1) { xnamaChara = namaCharaJagoan[z]; if (actionJagoan[z] == false && _root[xnamaChara].hidup == true) { adaAksi = true; giliranJagoan(z); z = charaJagoan + 1; } ++z; } if (adaAksi == false) { giliranJagoan(current); } } } function delay2() { clearInterval(idDelay2); if (info_mc._currentframe > 3) { info_mc.gotoAndPlay('xselesai'); } else { info_mc.gotoAndStop(1); } if (wwair[posMusuhJ[xcurrent]][posMusuhI[xcurrent]] == 1 && elementMusuh[xcurrent] == 0) { _root[xnamaChara].anim.gotoAndStop(21); } else { _root[xnamaChara].anim.gotoAndStop(1); } current = xcurrent; giliranMusuh(current); } function cekKedip(zindi, zelement) { indi = _root[zindi]; dalam2 = indi.getDepth() + 1; namaBaru2 = 'kedip_mc' + keKedip; ++keKedip; if (keKedip >= 100) { keKedip = 1; } wwpos = indi._currentframe; if (indi.zjenis == 1) { wwobyek = attachMovie('david_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 2) { wwobyek = attachMovie('faith_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 3) { wwobyek = attachMovie('odarat_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 4) { wwobyek = attachMovie('osihir_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 5) { wwobyek = attachMovie('odarat_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 6) { wwobyek = attachMovie('api_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 7) { wwobyek = attachMovie('brunhill_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 8) { wwobyek = attachMovie('devy_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 9) { wwobyek = attachMovie('detro_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 10) { wwobyek = attachMovie('guild_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 11) { wwobyek = attachMovie('bertha_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 12) { wwobyek = attachMovie('andara_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 13) { wwobyek = attachMovie('olaut_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 14) { wwobyek = attachMovie('oudara_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 15) { wwobyek = attachMovie('lohani_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 16) { wwobyek = attachMovie('mah_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 17) { wwobyek = attachMovie('panther_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 18) { wwobyek = attachMovie('brave_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 19) { wwobyek = attachMovie('berthi_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 20) { wwobyek = attachMovie('deja_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 21) { wwobyek = attachMovie('dark_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 22) { wwobyek = attachMovie('domo_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 23) { wwobyek = attachMovie('elite_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 24) { wwobyek = attachMovie('black_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 25) { wwobyek = attachMovie('brunhill_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 26) { wwobyek = attachMovie('brunhill_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 27) { wwobyek = attachMovie('brunhill_mc2', namaBaru2, dalam2); } else { if (indi.zjenis == 28) { wwobyek = attachMovie('brunhill_mc2', namaBaru2, dalam2); } else { if (indi.zjenis == 31) { wwobyek = attachMovie('iblis_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 34) { wwobyek = attachMovie('wisatawan_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 35) { wwobyek = attachMovie('wisatawan_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 36) { wwobyek = attachMovie('wisatawan_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 37) { wwobyek = attachMovie('wisatawan_mc', namaBaru2, dalam2); } else { if (indi.zjenis == 38) { wwobyek = attachMovie('wisatawan_mc', namaBaru2, dalam2); } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } wwobyek._x = indi._x; wwobyek._y = indi._y; wwobyek._xscale = indi._xscale; wwobyek._yscale = indi._yscale; wwobyek.gotoAndStop(wwpos); wwobyek.pos = 0; wwmyColor = new Color(wwobyek); if (zelement == 0) { wwmyColor.setRGB('0x759DF9'); } else { if (zelement == 1) { wwmyColor.setRGB('0xFF6F6F'); } else { if (zelement == 2) { wwmyColor.setRGB('0xFFF06F'); } else { if (zelement == 3) { wwmyColor.setRGB('0x6FFF8B'); } } } } wwobyek._alpha = 90; wwobyek.onEnterFrame = enterWW; } function enterWW() { this.pos += 1; if (this.pos == 1) { this._visible = false; } else { if (this.pos == 3) { this._visible = true; } else { if (this.pos == 5) { this._visible = false; } else { if (this.pos == 7) { this._visible = true; } else { if (this.pos == 8) { this._visible = false; } else { if (this.pos == 9) { this._visible = true; } else { if (this.pos == 10) { this._visible = false; } else { if (this.pos == 11) { this._visible = true; } else { if (this.pos == 12) { delete this.onEnterFrame; removeMovieClip(this); } } } } } } } } } } function cekSoundFX(indiNyerang) { if (tipeSerangan == 2) { backPoison(); } else { if (tipeSerangan == 3) { backStun(); } else { if (tipeSerangan == 4) { backDoubleAttack(); } else { if (tipeSerangan == 5) { backSmash(); } else { if (tipeSerangan == 6) { backBurn(); } else { if (tipeSerangan == 7) { backFlame(); } else { if (tipeSerangan == 8) { backStrike(); } else { if (tipeSerangan == 9) { backUncontrol(); } else { if (tipeSerangan == 10) { backMeteor(); } else { if (tipeSerangan == 11) { backAllAttack(); } else { if (tipeSerangan == 12) { backAuraBlast(); } else { if (tipeSerangan == 13) { backSlow(); } else { if (tipeSerangan == 14) { backIceBelt(); } else { if (tipeSerangan == 15) { backMasterAttack(); } else { if (tipeSerangan == 16) { backFlood(); } } } } } } } } } } } } } } } if (jagoanWeapon[indiNyerang] == 1) { backPedang(); } else { if (jagoanWeapon[indiNyerang] == 2) { backPisau(); } else { if (jagoanWeapon[indiNyerang] == 3) { backPedang2(); } else { if (jagoanWeapon[indiNyerang] == 4) { backMawar(); } else { if (jagoanWeapon[indiNyerang] == 5) { backKapak(); } else { if (jagoanWeapon[indiNyerang] == 6) { backTombak(); } else { if (jagoanWeapon[indiNyerang] == 7) { backPanah(); } else { if (jagoanWeapon[indiNyerang] == 8) { backGada(); } else { if (jagoanWeapon[indiNyerang] == 9) { backSihir(); } else { if (jagoanWeapon[indiNyerang] == 10) { backGolok(); } else { if (jagoanWeapon[indiNyerang] == 11) { backCambuk(); } } } } } } } } } } } if (jenisMaen == 'training' || mapKe == 11) { backOrangKena(); } else { backOgreKena(); } } function cekSoundFX2(indiNyerang) { if (tipeSerangan == 2) { backPoison(); } else { if (tipeSerangan == 3) { backStun(); } else { if (tipeSerangan == 4) { backDoubleAttack(); } else { if (tipeSerangan == 5) { backSmash(); } else { if (tipeSerangan == 6) { backBurn(); } else { if (tipeSerangan == 7) { backFlame(); } else { if (tipeSerangan == 8) { backStrike(); } else { if (tipeSerangan == 9) { backUncontrol(); } else { if (tipeSerangan == 10) { backMeteor(); } else { if (tipeSerangan == 11) { backAllAttack(); } else { if (tipeSerangan == 12) { backAuraBlast(); } else { if (tipeSerangan == 13) { backSlow(); } else { if (tipeSerangan == 14) { backIceBelt(); } else { if (tipeSerangan == 15) { backMasterAttack(); } else { if (tipeSerangan == 16) { backFlood(); } } } } } } } } } } } } } } } if (xmusuhWeapon[indiNyerang] == 1) { backPedang(); } else { if (xmusuh[indiNyerang] == 2) { backPisau(); } else { if (xmusuhWeapon[indiNyerang] == 3) { backPedang2(); } else { if (xmusuhWeapon[indiNyerang] == 4) { backMawar(); } else { if (xmusuhWeapon[indiNyerang] == 5) { backKapak(); } else { if (xmusuhWeapon[indiNyerang] == 6) { backTombak(); } else { if (xmusuhWeapon[indiNyerang] == 7) { backPanah(); } else { if (xmusuhWeapon[indiNyerang] == 8) { backGada(); } else { if (xmusuhWeapon[indiNyerang] == 9) { backSihir(); } else { if (xmusuhWeapon[indiNyerang] == 10) { backGolok(); } else { if (xmusuhWeapon[indiNyerang] == 11) { backCambuk(); } } } } } } } } } } } if (indiDiserang == 3) { backOrangKena(); } else { backOrangKena(); } } function cekKurangJagoan(ygNyerang, ygDiserang, bykAngka) { cekSoundFX(indiNyerang); if (tipeSerangan == 8 || tipeSerangan == 11) { randAccuracy = random(150); } else { if (tipeSerangan == 15) { randAccuracy = random(80); } else { randAccuracy = random(100); } } if (tipeSerangan == 10 || tipeSerangan == 11) { tipeSerangan2 = 'rame'; } else { tipeSerangan2 = 'orang'; } increseSerang = 1; if (randAccuracy <= accuracyJagoan[indiNyerang]) { efek = _root[namaCharaMusuh[indiDiserang]].attachMovie('fx' + tipeSerangan, 'fx_mc', dalamDarah + 10); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; i = 0; while (i <= 5) { darah = _root[namaCharaMusuh[indiDiserang]].attachMovie('darah_mc', 'darah_mc' + i, dalamDarah + i); darah._yscale = random(350) + 700; darah._xscale = darah._yscale; darah._rotation = random(360); darah._x = random(10) - 20; darah._y = random(10) - 20; myColor = new Color(darah); myColor.setRGB('0x000000'); ++i; } if (tipeSerangan == 2) { poisonMusuh[indiDiserang] = true; poisonKeMusuh[indiDiserang] = 3; poison = _root[namaCharaMusuh[indiDiserang]].attachMovie('poison_mc', 'poison_mc', dalamPoison); poison._xscale = 300; poison._yscale = 300; poison._alpha = 50; poison._x = 0; poison._y = 0; } else { if (tipeSerangan == 3) { stunMusuh[indiDiserang] = true; stunKeMusuh[indiDiserang] = 3; stun = _root[namaCharaMusuh[indiDiserang]].attachMovie('stun_mc', 'stun_mc', dalamStun); stun._xscale = 600; stun._yscale = 600; stun._alpha = 80; stun._x = 0; stun._y = 0; } else { if (tipeSerangan == 6) { api2 = _root[namaCharaMusuh[indiDiserang]].attachMovie('api_mc2', 'api_mc2', dalamDarah + 6); api2._yscale = 100; api2._xscale = 100; api2._x = 0; api2._y = 180; increseSerang *= 1.25; } else { if (tipeSerangan == 7) { flame2 = _root[namaCharaMusuh[indiDiserang]].attachMovie('flame_mc2', 'flame_mc2', dalamDarah + 6); flame2._yscale = 2000; flame2._xscale = 2000; flame2._x = 0; flame2._y = 100; increseSerang *= 1.5; } else { if (tipeSerangan == 8) { strike = _root[namaCharaMusuh[indiDiserang]].attachMovie('strike_mc', 'strike_mc', dalamDarah + 6); strike._yscale = 600; strike._xscale = 600; strike._x = 0; strike._y = 0; increseSerang *= 2.5; } else { if (tipeSerangan == 9) { uncontrolMusuh[indiDiserang] = true; uncontrolKeMusuh[indiDiserang] = 3; uncontrol = _root[namaCharaMusuh[indiDiserang]].attachMovie('uncontrol_mc', 'uncontrol_mc', dalamUncontrol); uncontrol._xscale = 500; uncontrol._yscale = 500; uncontrol._alpha = 90; uncontrol._x = 0; uncontrol._y = 0; } else { if (tipeSerangan == 11) { increseSerang *= 0.25; } else { if (tipeSerangan == 12) { berkurang2 = Math.ceil(auraMusuh[indiDiserang] * 0.5); berkurang3 = 'AURA -' + berkurang2; auraMusuh[indiDiserang] -= berkurang2; posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y - 25; cekAngka2(posX, posY, berkurang3, 2); } else { if (tipeSerangan == 13) { slowMusuh[indiDiserang] = true; slowKeMusuh[indiDiserang] = 3; slow = _root[namaCharaMusuh[indiDiserang]].attachMovie('slow_mc', 'slow_mc', dalamSlow); slow._xscale = 600; slow._yscale = 600; slow._alpha = 80; slow._x = 0; slow._y = 0; xrangeMusuh[indiDiserang] = 1; } else { if (tipeSerangan == 14) { attackDefenseIncMusuh[indiDiserang] *= 0.8; attackMusuh[indiDiserang] = Math.ceil(attackMusuh[indiDiserang] * attackDefenseIncMusuh[indiDiserang]); defenseMusuh[indiDiserang] = Math.ceil(defenseMusuh[indiDiserang] * attackDefenseIncMusuh[indiDiserang]); } else { if (tipeSerangan == 15) { master = _root[namaCharaMusuh[indiDiserang]].attachMovie('master_mc', 'master_mc', dalamDarah + 6); master._yscale = 600; master._xscale = 600; master._x = 0; master._y = 0; increseSerang *= 2; } else { if (tipeSerangan == 16) { flood = _root[namaCharaMusuh[indiDiserang]].attachMovie('flood_mc', 'flood_mc', dalamDarah + 6); flood._yscale = 600; flood._xscale = 600; flood._x = 0; flood._y = 0; increseSerang *= 1.5; } else { if (tipeSerangan == 17) { poisonMusuh[indiDiserang] = true; poisonKeMusuh[indiDiserang] = 3; poison = _root[namaCharaMusuh[indiDiserang]].attachMovie('poison_mc', 'poison_mc', dalamPoison); poison._xscale = 300; poison._yscale = 300; poison._alpha = 50; poison._x = 0; poison._y = 0; stunMusuh[indiDiserang] = true; stunKeMusuh[indiDiserang] = 3; stun = _root[namaCharaMusuh[indiDiserang]].attachMovie('stun_mc', 'stun_mc', dalamStun); stun._xscale = 600; stun._yscale = 600; stun._alpha = 80; stun._x = 0; stun._y = 0; } else { if (tipeSerangan == 18) { uncontrolMusuh[indiDiserang] = true; uncontrolKeMusuh[indiDiserang] = 3; uncontrol = _root[namaCharaMusuh[indiDiserang]].attachMovie('uncontrol_mc', 'uncontrol_mc', dalamUncontrol); uncontrol._xscale = 500; uncontrol._yscale = 500; uncontrol._alpha = 90; uncontrol._x = 0; uncontrol._y = 0; slowMusuh[indiDiserang] = true; slowKeMusuh[indiDiserang] = 3; slow = _root[namaCharaMusuh[indiDiserang]].attachMovie('slow_mc', 'slow_mc', dalamSlow); slow._xscale = 600; slow._yscale = 600; slow._alpha = 80; slow._x = 0; slow._y = 0; xrangeMusuh[indiDiserang] = 1; } else { if (tipeSerangan == 19) { poisonMusuh[indiDiserang] = true; poisonKeMusuh[indiDiserang] = 3; poison = _root[namaCharaMusuh[indiDiserang]].attachMovie('poison_mc', 'poison_mc', dalamPoison); poison._xscale = 300; poison._yscale = 300; poison._alpha = 50; poison._x = 0; poison._y = 0; slowMusuh[indiDiserang] = true; slowKeMusuh[indiDiserang] = 3; slow = _root[namaCharaMusuh[indiDiserang]].attachMovie('slow_mc', 'slow_mc', dalamSlow); slow._xscale = 600; slow._yscale = 600; slow._alpha = 80; slow._x = 0; slow._y = 0; xrangeMusuh[indiDiserang] = 1; } else { if (tipeSerangan == 20) { uncontrolMusuh[indiDiserang] = true; uncontrolKeMusuh[indiDiserang] = 3; uncontrol = _root[namaCharaMusuh[indiDiserang]].attachMovie('uncontrol_mc', 'uncontrol_mc', dalamUncontrol); uncontrol._xscale = 500; uncontrol._yscale = 500; uncontrol._alpha = 90; uncontrol._x = 0; uncontrol._y = 0; stunMusuh[indiDiserang] = true; stunKeMusuh[indiDiserang] = 3; stun = _root[namaCharaMusuh[indiDiserang]].attachMovie('stun_mc', 'stun_mc', dalamStun); stun._xscale = 600; stun._yscale = 600; stun._alpha = 80; stun._x = 0; stun._y = 0; } else { if (tipeSerangan == 21) { stunMusuh[indiDiserang] = true; stunKeMusuh[indiDiserang] = 3; stun = _root[namaCharaMusuh[indiDiserang]].attachMovie('stun_mc', 'stun_mc', dalamStun); stun._xscale = 600; stun._yscale = 600; stun._alpha = 80; stun._x = 0; stun._y = 0; slowMusuh[indiDiserang] = true; slowKeMusuh[indiDiserang] = 3; slow = _root[namaCharaMusuh[indiDiserang]].attachMovie('slow_mc', 'slow_mc', dalamSlow); slow._xscale = 600; slow._yscale = 600; slow._alpha = 80; slow._x = 0; slow._y = 0; xrangeMusuh[indiDiserang] = 1; } else { if (tipeSerangan == 22) { uncontrolMusuh[indiDiserang] = true; uncontrolKeMusuh[indiDiserang] = 3; uncontrol = _root[namaCharaMusuh[indiDiserang]].attachMovie('uncontrol_mc', 'uncontrol_mc', dalamUncontrol); uncontrol._xscale = 500; uncontrol._yscale = 500; uncontrol._alpha = 90; uncontrol._x = 0; uncontrol._y = 0; poisonMusuh[indiDiserang] = true; poisonKeMusuh[indiDiserang] = 3; poison = _root[namaCharaMusuh[indiDiserang]].attachMovie('poison_mc', 'poison_mc', dalamPoison); poison._xscale = 300; poison._yscale = 300; poison._alpha = 50; poison._x = 0; poison._y = 0; } } } } } } } } } } } } } } } } } } elementSerang = elementJagoan[indiNyerang]; elementDiserang = elementMusuh[indiDiserang]; if (elementDiserang == kuatElement[elementSerang]) { increseSerang *= 1.25; } else { if (elementDiserang == lemahElement[elementSerang]) { increseSerang *= 0.75; } else { increseSerang *= 1; } } elementSerang = pilihanAbil; if (elementSerang == 4) { elementSerang = elementJagoan[indiNyerang]; pilihanAbil = elementSerang; } elementDiserang = elementMusuh[indiDiserang]; if (elementDiserang == kuatElement[elementSerang]) { increseSerang *= 1.25; } else { if (elementDiserang == lemahElement[elementSerang]) { increseSerang *= 0.75; } else { increseSerang *= 1; } } if (elementJagoan[indiNyerang] == elementSerang) { increseSerang *= 1; } berkurang = Math.ceil(attackJagoan[indiNyerang] * increseSerang - defenseMusuh[indiDiserang]); if (berkurang <= 0) { berkurang = random(6) + 5; } liveMusuh[indiDiserang] -= berkurang; if (liveMusuh[indiDiserang] <= 0) { bertambahExp = Math.ceil(maxMusuh[indiDiserang] / levelJagoan[indiNyerang] / 1) + random(10); } else { bertambahExp = Math.ceil(maxMusuh[indiDiserang] / levelJagoan[indiNyerang] / 2) + random(10); } posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y; cekAngka(posX, posY, berkurang, bykAngka); if (tipeSerangan2 == 'orang') { expJagoan[indiNyerang] += bertambahExp; if (expJagoan[indiNyerang] >= maxJagoan[indiNyerang]) { ++levelJagoan[indiNyerang]; totLiveJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incLive[indiNyerang] * 25); attackJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAttack[indiNyerang] * 10); defenseJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incDefense[indiNyerang] * 5); totAuraJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAura[indiNyerang] * 10); expJagoan[indiNyerang] = 0; maxJagoan[indiNyerang] = levelJagoan[indiNyerang] * xnaik2; idDelay3 = setInterval(delay3, 1000, bykAngka); } else { idDelay4 = setInterval(delay4, 1000, bykAngka); } } if (liveMusuh[indiDiserang] <= 0) { cekMati(_root[ygDiserang], indiDiserang, 'komp'); } } else { posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y; cekAngka2(posX, posY, 'Miss', bykAngka); bertambahExp = random(11) + 10; if (tipeSerangan2 == 'orang') { expJagoan[indiNyerang] += bertambahExp; if (expJagoan[indiNyerang] >= maxJagoan[indiNyerang]) { ++levelJagoan[indiNyerang]; totLiveJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incLive[indiNyerang] * 25); attackJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAttack[indiNyerang] * 10); defenseJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incDefense[indiNyerang] * 5); totAuraJagoan[indiNyerang] = Math.ceil(levelJagoan[indiNyerang] * incAura[indiNyerang] * 10); expJagoan[indiNyerang] = 0; maxJagoan[indiNyerang] = levelJagoan[indiNyerang] * xnaik2; idDelay3 = setInterval(delay3, 1000, bykAngka); } else { idDelay4 = setInterval(delay4, 1000, bykAngka); } } } obyek = namaCharaMusuh[indiDiserang]; scala1 = (liveMusuh[indiDiserang] / totLiveMusuh[indiDiserang]) * 100; scala2 = (auraMusuh[indiDiserang] / totAuraMusuh[indiDiserang]) * 100; _root[obyek].darah_mc.zbar._xscale = scala1; _root[obyek].aura_mc.zbar._xscale = scala2; cekKedip(namaCharaMusuh[indiDiserang], pilihanAbil); } function cekKurangMusuh(ygNyerang, ygDiserang, bykAngka) { cekSoundFX2(indiNyerang); if (tipeSerangan == 8 || tipeSerangan == 11) { randAccuracy = random(150); } else { if (tipeSerangan == 15) { randAcurracy = random(80); } else { randAccuracy = random(100); } } if (tipeSerangan == 10 || tipeSerangan == 11) { tipeSerangan2 = 'rame'; } else { tipeSerangan2 = 'orang'; } indiNyerang = _root[ygNyerang].ke; indiDiserang = _root[ygDiserang].ke; increseSerang = 1; if (randAccuracy <= accuracyMusuh[indiNyerang]) { efek = _root[namaCharaJagoan[indiDiserang]].attachMovie('fx' + tipeSerangan, 'fx_mc', dalamDarah + 10); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; i = 0; while (i <= 5) { darah = _root[namaCharaJagoan[indiDiserang]].attachMovie('darah_mc', 'darah_mc' + i, dalamDarah + i); darah._yscale = random(350) + 700; darah._xscale = darah._yscale; darah._rotation = random(360); darah._x = random(10) - 20; darah._y = random(10) - 20; ++i; } if (tipeSerangan == 2) { poisonJagoan[indiDiserang] = true; poisonKeJagoan[indiDiserang] = 3; poison = _root[namaCharaJagoan[indiDiserang]].attachMovie('poison_mc', 'poison_mc', dalamPoison); poison._xscale = 300; poison._yscale = 300; poison._alpha = 50; poison._x = 0; poison._y = 0; } else { if (tipeSerangan == 3) { stunJagoan[indiDiserang] = true; stunKeJagoan[indiDiserang] = 3; stun = _root[namaCharaJagoan[indiDiserang]].attachMovie('stun_mc', 'stun_mc', dalamStun); stun._xscale = 600; stun._yscale = 600; stun._alpha = 80; stun._x = 0; stun._y = 0; } else { if (tipeSerangan == 6) { api2 = _root[namaCharaJagoan[indiDiserang]].attachMovie('api_mc2', 'api_mc2', dalamDarah + 6); api2._yscale = 100; api2._xscale = 100; api2._x = 0; api2._y = 180; increseSerang *= 1.25; } else { if (tipeSerangan == 7) { flame2 = _root[namaCharaJagoan[indiDiserang]].attachMovie('flame_mc2', 'flame_mc2', dalamDarah + 6); flame2._yscale = 2000; flame2._xscale = 2000; flame2._x = 0; flame2._y = 100; increseSerang *= 1.5; } else { if (tipeSerangan == 8) { strike = _root[namaCharaJagoan[indiDiserang]].attachMovie('strike_mc', 'strike_mc', dalamDarah + 6); strike._yscale = 600; strike._xscale = 600; strike._x = 0; strike._y = 0; increseSerang *= 2.5; } else { if (tipeSerangan == 9) { uncontrolJagoan[indiDiserang] = true; uncontrolKeJagoan[indiDiserang] = 3; uncontrol = _root[namaCharaJagoan[indiDiserang]].attachMovie('uncontrol_mc', 'uncontrol_mc', dalamUncontrol); uncontrol._xscale = 500; uncontrol._yscale = 500; uncontrol._alpha = 90; uncontrol._x = 0; uncontrol._y = 0; } else { if (tipeSerangan == 11) { increseSerang *= 0.25; } else { if (tipeSerangan == 12) { berkurang2 = Math.ceil(auraJagoan[indiDiserang] * 0.5); berkurang3 = 'AURA -' + berkurang2; auraJagoan[indiDiserang] -= berkurang2; posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y - 25; cekAngka2(posX, posY, berkurang3, 2); } else { if (tipeSerangan == 13) { slowJagoan[indiDiserang] = true; slowKeJagoan[indiDiserang] = 3; slow = _root[namaCharaJagoan[indiDiserang]].attachMovie('slow_mc', 'slow_mc', dalamSlow); slow._xscale = 600; slow._yscale = 600; slow._alpha = 80; slow._x = 0; slow._y = 0; xrangeJagoan[indiDiserang] = 1; } else { if (tipeSerangan == 14) { attackDefenseIncJagoan[indiDiserang] *= 0.8; attackJagoan[indiDiserang] = Math.ceil(attackJagoan[indiDiserang] * attackDefenseIncJagoan[indiDiserang]); defenseJagoan[indiDiserang] = Math.ceil(defenseJagoan[indiDiserang] * attackDefenseIncJagoan[indiDiserang]); } else { if (tipeSerangan == 15) { master = _root[namaCharaJagoan[indiDiserang]].attachMovie('master_mc', 'master_mc', dalamDarah + 6); master._yscale = 600; master._xscale = 600; master._x = 0; master._y = 0; increseSerang *= 2; } else { if (tipeSerangan == 16) { flood = _root[namaCharaJagoan[indiDiserang]].attachMovie('flood_mc', 'flood_mc', dalamDarah + 6); flood._yscale = 600; flood._xscale = 600; flood._x = 0; flood._y = 0; increseSerang *= 1.5; } else { if (tipeSerangan == 17) { poisonJagoan[indiDiserang] = true; poisonKeJagoan[indiDiserang] = 3; poison = _root[namaCharaJagoan[indiDiserang]].attachMovie('poison_mc', 'poison_mc', dalamPoison); poison._xscale = 300; poison._yscale = 300; poison._alpha = 50; poison._x = 0; poison._y = 0; stunJagoan[indiDiserang] = true; stunKeJagoan[indiDiserang] = 3; stun = _root[namaCharaJagoan[indiDiserang]].attachMovie('stun_mc', 'stun_mc', dalamStun); stun._xscale = 600; stun._yscale = 600; stun._alpha = 80; stun._x = 0; stun._y = 0; } else { if (tipeSerangan == 18) { uncontrolJagoan[indiDiserang] = true; uncontrolKeJagoan[indiDiserang] = 3; uncontrol = _root[namaCharaJagoan[indiDiserang]].attachMovie('uncontrol_mc', 'uncontrol_mc', dalamUncontrol); uncontrol._xscale = 500; uncontrol._yscale = 500; uncontrol._alpha = 90; uncontrol._x = 0; uncontrol._y = 0; slowJagoan[indiDiserang] = true; slowKeJagoan[indiDiserang] = 3; slow = _root[namaCharaJagoan[indiDiserang]].attachMovie('slow_mc', 'slow_mc', dalamSlow); slow._xscale = 600; slow._yscale = 600; slow._alpha = 80; slow._x = 0; slow._y = 0; xrangeJagoan[indiDiserang] = 1; } else { if (tipeSerangan == 19) { poisonJagoan[indiDiserang] = true; poisonKeJagoan[indiDiserang] = 3; poison = _root[namaCharaJagoan[indiDiserang]].attachMovie('poison_mc', 'poison_mc', dalamPoison); poison._xscale = 300; poison._yscale = 300; poison._alpha = 50; poison._x = 0; poison._y = 0; slowJagoan[indiDiserang] = true; slowKeJagoan[indiDiserang] = 3; slow = _root[namaCharaJagoan[indiDiserang]].attachMovie('slow_mc', 'slow_mc', dalamSlow); slow._xscale = 600; slow._yscale = 600; slow._alpha = 80; slow._x = 0; slow._y = 0; xrangeJagoan[indiDiserang] = 1; } else { if (tipeSerangan == 20) { uncontrolJagoan[indiDiserang] = true; uncontrolKeJagoan[indiDiserang] = 3; uncontrol = _root[namaCharaJagoan[indiDiserang]].attachMovie('uncontrol_mc', 'uncontrol_mc', dalamUncontrol); uncontrol._xscale = 500; uncontrol._yscale = 500; uncontrol._alpha = 90; uncontrol._x = 0; uncontrol._y = 0; stunJagoan[indiDiserang] = true; stunKeJagoan[indiDiserang] = 3; stun = _root[namaCharaJagoan[indiDiserang]].attachMovie('stun_mc', 'stun_mc', dalamStun); stun._xscale = 600; stun._yscale = 600; stun._alpha = 80; stun._x = 0; stun._y = 0; } else { if (tipeSerangan == 21) { stunJagoan[indiDiserang] = true; stunKeJagoan[indiDiserang] = 3; stun = _root[namaCharaJagoan[indiDiserang]].attachMovie('stun_mc', 'stun_mc', dalamStun); stun._xscale = 600; stun._yscale = 600; stun._alpha = 80; stun._x = 0; stun._y = 0; slowJagoan[indiDiserang] = true; slowKeJagoan[indiDiserang] = 3; slow = _root[namaCharaJagoan[indiDiserang]].attachMovie('slow_mc', 'slow_mc', dalamSlow); slow._xscale = 600; slow._yscale = 600; slow._alpha = 80; slow._x = 0; slow._y = 0; xrangeJagoan[indiDiserang] = 1; } else { if (tipeSerangan == 22) { uncontrolJagoan[indiDiserang] = true; uncontrolKeJagoan[indiDiserang] = 3; uncontrol = _root[namaCharaJagoan[indiDiserang]].attachMovie('uncontrol_mc', 'uncontrol_mc', dalamUncontrol); uncontrol._xscale = 500; uncontrol._yscale = 500; uncontrol._alpha = 90; uncontrol._x = 0; uncontrol._y = 0; poisonJagoan[indiDiserang] = true; poisonKeJagoan[indiDiserang] = 3; poison = _root[namaCharaJagoan[indiDiserang]].attachMovie('poison_mc', 'poison_mc', dalamPoison); poison._xscale = 300; poison._yscale = 300; poison._alpha = 50; poison._x = 0; poison._y = 0; } } } } } } } } } } } } } } } } } } elementSerang = elementMusuh[indiNyerang]; elementDiserang = elementJagoan[indiDiserang]; if (elementDiserang == kuatElement[elementSerang]) { increseSerang *= 1.25; } else { if (elementDiserang == lemahElement[elementSerang]) { increseSerang *= 0.75; } else { increseSerang *= 1; } } elementSerang = pilihanAbil; if (elementSerang == 4) { elementSerang = elementMusuh[indiNyerang]; pilihanAbil = elementSerang; } elementDiserang = elementJagoan[indiDiserang]; if (elementDiserang == kuatElement[elementSerang]) { increseSerang *= 1.25; } else { if (elementDiserang == lemahElement[elementSerang]) { increseSerang *= 0.75; } else { increseSerang *= 1; } } if (elementMusuh[indiNyerang] == elementSerang) { increseSerang *= 1; } berkurang = Math.ceil(attackMusuh[indiNyerang] * increseSerang - defenseJagoan[indiDiserang]); if (berkurang <= 0) { berkurang = random(6) + 5; } liveJagoan[indiDiserang] -= berkurang; if (liveJagoan[indiDiserang] <= 0) { bertambahExp = Math.ceil(maxJagoan[indiDiserang] / levelMusuh[indiNyerang] / 1) + random(10); } else { bertambahExp = Math.ceil(maxJagoan[indiDiserang] / levelMusuh[indiNyerang] / 2) + random(10); } posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y; cekAngka(posX, posY, berkurang, bykAngka); if (tipeSerangan2 == 'orang') { expMusuh[indiNyerang] += bertambahExp; if (expMusuh[indiNyerang] >= maxMusuh[indiNyerang]) { ++levelMusuh[indiNyerang]; totLiveMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincLive[indiNyerang] * 25); attackMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAttack[indiNyerang] * 10); defenseMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincDefense[indiNyerang] * 5); totAuraMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAura[indiNyerang] * 10); expMusuh[indiNyerang] = 0; maxMusuh[indiNyerang] = levelMusuh[indiNyerang] * xnaik2; idDelay3 = setInterval(delay3, 1000, bykAngka); } else { idDelay4 = setInterval(delay4, 1000, bykAngka); } } if (liveJagoan[indiDiserang] <= 0) { cekMati(_root[ygDiserang], indiDiserang, 'jagoan'); } } else { posX = _root[ygDiserang]._x; posY = _root[ygDiserang]._y; cekAngka2(posX, posY, 'Miss', bykAngka); bertambahExp = random(11) + 10; if (tipeSerangan2 == 'orang') { expMusuh[indiNyerang] += bertambahExp; if (expMusuh[indiNyerang] >= maxMusuh[indiNyerang]) { ++levelMusuh[indiNyerang]; totLiveMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincLive[indiNyerang] * 25); attackMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAttack[indiNyerang] * 10); defenseMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincDefense[indiNyerang] * 5); totAuraMusuh[indiNyerang] = Math.ceil(levelMusuh[indiNyerang] * xincAura[indiNyerang] * 10); expMusuh[indiNyerang] = 0; maxMusuh[indiNyerang] = levelMusuh[indiNyerang] * xnaik2; idDelay3 = setInterval(delay3, 1000, bykAngka); } else { idDelay4 = setInterval(delay4, 1000, bykAngka); } } } cekKedip(namaCharaJagoan[indiDiserang], pilihanAbil); } function delay3(indi) { clearInterval(idDelay3); posX = _root[ygNyerang]._x; posY = _root[ygNyerang]._y; cekAngka2(posX, posY, 'Level Up', indi); } function delay4(indi) { clearInterval(idDelay4); posX = _root[ygNyerang]._x; posY = _root[ygNyerang]._y; cekAngka3(posX, posY, bertambahExp, indi); } function cekAngka(xx, yy, zangka, xangka) { if (xangka == undefined) { xangka = 1; } qqdalam = dalamAngka1 + xangka; xangka = attachMovie('angka_mc', 'angka_mc' + qqdalam, qqdalam); xangka._x = xx; xangka._y = yy; xangka.yangka = '-' + zangka; } function cekAngka2(xx, yy, zangka, xangka) { if (xangka == undefined) { xangka = 1; } wwdalam = dalamAngka2 + xangka; xangka = attachMovie('angka_mc', 'angka_mc2' + wwdalam, wwdalam); xangka._x = xx; xangka._y = yy - 25; xangka.yangka = zangka; } function cekAngka3(xx, yy, zangka, xangka) { if (xangka == undefined) { xangka = 1; } ssdalam = dalamAngka3 + xangka; xangka = attachMovie('angka_mc', 'angka_mc3' + ssdalam, ssdalam); xangka._x = xx; xangka._y = yy - 25; xangka.yangka = 'EXP +' + zangka; } function cekAngka5(xx, yy, zangka, xangka) { if (xangka == undefined) { xangka = 1; } zzdalam = dalamAngka4 + xangka; xangka = attachMovie('angka_mc', 'angka_mc4' + zzdalam, zzdalam); xangka._x = xx; xangka._y = yy; xangka.yangka = '-' + zangka; } function cekMati(indi, indi2, indi3, indi4) { if (indi.hidup == true) { indi.hidup = false; indi.adaLive = false; if (indi3 == 'komp') { if (jenisMaen == 'training' || mapKe == 11) { backOrangMati(); } else { backOgreMati(); } if (adaApiKehidupan == true && jenisMaen != 'training' && indi.ajenis != 'api') { masihNyala = false; i = 0; while (i <= charaMusuh - 1) { if (accuracyMusuh[i] == 0) { if (posMusuhJ[i] != 999 && jenisIblis[i] != 1) { masihNyala = true; } } ++i; } if (masihNyala == false) { ++killed; --bykMusuh; liveMusuh[indi2] = 0; if (jenisIblis[indi2] != 1) { mapping[posMusuhJ[indi2]][posMusuhI[indi2]] = 1; posMusuhJ[indi2] = 999; posMusuhI[indi2] = 999; } else { mapping[posMusuhJ[indi2]][posMusuhI[indi2]] = 0; } if (indi2 == pemimpin) { cekLanjutLevel(); } else { if (_root[namaCharaJagoan[pemimpin1]].hidup == false && _root[namaCharaJagoan[pemimpin2]].hidup == false) { cekLanjutLevel(); } } } else { indi.hidup = true; k = indi2; ++levelMusuh[k]; liveMusuh[k] = Math.ceil(levelMusuh[k] * xincLive[k] * 25); totLiveMusuh[k] = liveMusuh[k]; attackMusuh[k] = Math.ceil(levelMusuh[k] * xincAttack[k] * 10); defenseMusuh[k] = Math.ceil(levelMusuh[k] * xincDefense[k] * 5); auraMusuh[k] = Math.ceil(levelMusuh[k] * xincAura[k] * 10); totAuraMusuh[k] = auraMusuh[k]; moveMusuh[k] = false; actionMusuh[k] = false; masihAktif[k] = true; maxMusuh[k] = levelMusuh[k] * xnaik2; } } else { i = 1; while (i <= 5) { if (itemMusuh[indi2][i] == 11) { if (xpunyaItem[indi2][itemMusuh[indi2][i]] >= 1) { --xpunyaItem[indi2][itemMusuh[indi2][i]]; indi.adaLive = true; } } ++i; } if (indi.adaLive == true && indi4 != 'jurang') { indi.hidup = true; k = indi2; ++levelMusuh[k]; liveMusuh[k] = Math.ceil(levelMusuh[k] * xincLive[k] * 25); totLiveMusuh[k] = liveMusuh[k]; attackMusuh[k] = Math.ceil(levelMusuh[k] * xincAttack[k] * 10); defenseMusuh[k] = Math.ceil(levelMusuh[k] * xincDefense[k] * 5); auraMusuh[k] = Math.ceil(levelMusuh[k] * xincAura[k] * 10); totAuraMusuh[k] = auraMusuh[k]; moveMusuh[k] = false; actionMusuh[k] = false; masihAktif[k] = true; maxMusuh[k] = levelMusuh[k] * xnaik2; } else { indi.adaLive = false; ++killed; --bykMusuh; liveMusuh[indi2] = 0; if (jenisIblis[indi2] != 1) { mapping[posMusuhJ[indi2]][posMusuhI[indi2]] = 1; posMusuhJ[indi2] = 999; posMusuhI[indi2] = 999; } else { mapping[posMusuhJ[indi2]][posMusuhI[indi2]] = 0; } if (indi2 == pemimpin) { cekLanjutLevel(); } else { if (_root[namaCharaJagoan[pemimpin1]].hidup == false && _root[namaCharaJagoan[pemimpin2]].hidup == false) { cekLanjutLevel(); } } } } } else { if (indi == 3) { } else { backOrangMati(); } i = 1; while (i <= 5) { if (itemJagoan[indi2][i] == 11) { if (punyaItem[11] >= 1) { --punyaItem[11]; indi.adaLive = true; } } ++i; } if (indi.adaLive == true && indi4 != 'jurang') { indi.hidup = true; k = indi2; ++levelJagoan[k]; liveJagoan[k] = Math.ceil(levelJagoan[k] * incLive[k] * 25); totLiveJagoan[k] = liveJagoan[k]; attackJagoan[k] = Math.ceil(levelJagoan[k] * incAttack[k] * 10); defenseJagoan[k] = Math.ceil(levelJagoan[k] * incDefense[k] * 5); auraJagoan[k] = Math.ceil(levelJagoan[k] * incAura[k] * 10); totAuraJagoan[k] = auraJagoan[k]; moveJagoan[k] = false; actionJagoan[k] = false; masihAktif[k] = true; maxJagoan[k] = levelJagoan[k] * xnaik2; } else { indi.adaLive = false; liveJagoan[indi2] = 0; mapping[posJagoanJ[indi2]][posJagoanI[indi2]] = 1; posJagoanJ[indi2] = 999; posJagoanI[indi2] = 999; } } if (indi4 == 'jurang') { if (indi3 == 'komp') { liveMusuh[indi2] = 0; } else { liveJagoan[indi2] = 0; } turunKebawah = true; } else { turunKebawah = false; } if (indi3 == 'komp') { indi.xindi2 = -99; } else { indi.xindi2 = indi2; } if (jenisIblis[indi2] == 1 && indi3 == 'komp') { if (hidupIblis[indi2] == 0) { hidupIblis[indi2] = 2; } indi.anim.gotoAndStop(9); } else { indi.onEnterFrame = enterIndi; } } } function enterIndi() { if (turunKebawah == true) { this._y += this.yspeedChara; ++this.yspeedChara; this._alpha -= 2.5; } else { this._alpha -= 10; } if (this._alpha <= -50) { if (this.xindi2 == -99 && adaApiKehidupan == true && jenisMaen != 'training' && this.ajenis != 'api') { masihNyala = false; i = 0; while (i <= charaMusuh - 1) { if (accuracyMusuh[i] == 0) { if (posMusuhJ[i] != 999 && jenisIblis[i] != 1) { masihNyala = true; } } ++i; } if (masihNyala == false) { removeMovieClip(this); } else { delete this.onEnterFrame; this.onEnterFrame = enterIndi2; } } else { if (this.adaLive == true) { delete this.onEnterFrame; this.onEnterFrame = enterIndi2; } else { if (jenisMaen == 'training') { wwbykJagoan = 0; i = 0; while (i <= charaJagoan - 1) { if (liveJagoan[i] == undefined || isNaN(liveJagoan[i])) { } else { ++wwbykJagoan; } ++i; } i = 0; while (i <= charaJagoan - 1) { if (liveJagoan[i] == undefined || isNaN(liveJagoan[i])) { } else { if (liveJagoan[i] <= 0) { --wwbykJagoan; } } ++i; } if (wwbykJagoan <= 0) { cekKalahLevel(); } } else { if (this.xindi2 != -99) { if (bolehMati[this.xindi2] == false) { cekKalahLevel(); } } } removeMovieClip(this); } } } } function enterIndi2() { this._alpha += 10; if (this._alpha >= 100) { backLive(); posX = this._x; posY = this._y; cekAngka2(posX, posY, 'Live Back', 99); delete this.onEnterFrame; } } function enterChara() { tj = xPath[currentPath]; ti = yPath[currentPath]; if (wwair[posJagoanJ[current]][posJagoanI[current]] == 1 && elementJagoan[current] == 0) { if (_root[xnamaChara].anim._currentframe < 10) { _root[xnamaChara].anim.gotoAndStop(_root[xnamaChara].anim._currentframe + 10); } } else { if (_root[xnamaChara].anim._currentframe > 10) { _root[xnamaChara].anim.gotoAndStop(_root[xnamaChara].anim._currentframe - 10); } } ubahDalam('tj', 'ti', 'dalam'); namaBaru = 'rumput_mc' + dalam; ambilDalam = panjang * lebar * 3 + _root[namaBaru].getDepth() + 100; ambilDalam2 = _root[namaBaru].getDepth() + 1; this.swapDepths(ambilDalam); aimX = _root[namaBaru]._x + 50; aimY = _root[namaBaru]._y - 20; deltaX = this._x - aimX; deltaY = this._y - aimY; angle = -Math.atan2(deltaX, deltaY) / 0.0174532925199433; if (Math.sqrt(deltaX * deltaX + deltaY * deltaY) > this.speedChara * increaseSpeed) { increaseSpeed -= 0.5; if (increaseSpeed <= 1) { increaseSpeed = 1; } this._y -= this.speedChara * increaseSpeed * Math.cos(angle * 0.0174532925199433); this._x += this.speedChara * increaseSpeed * Math.sin(angle * 0.0174532925199433); if (bisaIlang[this.ke] == 1) { if (this._alpha >= 0) { this._alpha -= 25; } } } else { if (tipeAnim == 'serang') { if (masukJurang == true) { this._x = aimX; this._y = aimY; this.swapDepths(ambilDalam2); delete this.onEnterFrame; cekMati(this, this.ke, 'jagoan', 'jurang'); } else { this._x = aimX; this._y = aimY; this.swapDepths(ambilDalam); delete this.onEnterFrame; } } else { this._x = aimX; this._y = aimY; ++currentPath; posJagoanJ[current] = xPath[currentPath - 1]; posJagoanI[current] = yPath[currentPath - 1]; ++xcurrentPath; cekPosisi(); this.swapDepths(ambilDalam); if (currentPath > ii) { mySound.stop(); posJagoanJ[current] = xPath[currentPath - 1]; posJagoanI[current] = yPath[currentPath - 1]; if (wwair[posJagoanJ[current]][posJagoanI[current]] == 1 && elementJagoan[current] == 0) { _root[xnamaChara].anim.gotoAndStop(21); } else { _root[xnamaChara].anim.gotoAndStop(1); } delete this.onEnterFrame; cekRanjau(this); if (posJagoanJ[current] == posArrowJ && posJagoanI[current] == posArrowI) { cekLanjutLevel(); } else { if (uncontrolJagoan[current] == true || jagoanType[current] == 'musuh') { xresetMove(); deleteMove(); j = posJagoanJ[current]; i = posJagoanI[current]; giliranJagoan(current); } else { giliranJagoan(current); xresetMove(); deleteMove(); setBisa(1, true); j = posJagoanJ[current]; i = posJagoanI[current]; if (moveJagoan[current] == true && actionJagoan[current] == true) { charaWait(); } } } if (bisaIlang[this.ke] == 1) { this.onEnterFrame = xenterChara2; } } } } } function xenterChara2() { if (this._alpha < 100) { this._alpha += 25; } else { this._alpha = 100; delete this.onEnterFrame; } } function cekRanjau(xxindi) { xindi = xxindi; if (adaRanjau[posJagoanJ[current]][posJagoanI[current]] == 1) { adaRanjau[posJagoanJ[current]][posJagoanI[current]] = 0; actionJagoan[current] = true; moveJagoan[current] = true; masihAktif[current] = false; berkurang = random(450) + 450; if (berkurang <= 0) { berkurang = random(6) + 5; } liveJagoan[xindi.ke] -= berkurang; posX = xindi._x; posY = xindi._y; cekAngka(posX, posY, berkurang, bykAngka); tipeSerangan = 6; cekSoundFX2(); efek = _root[namaCharaJagoan[xindi.ke]].attachMovie('fx' + tipeSerangan, 'fx_mc', dalamDarah + 10); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; tipeSerangan = 7; cekSoundFX2(); efek = _root[namaCharaJagoan[xindi.ke]].attachMovie('fx' + tipeSerangan, 'fx_mc', dalamDarah + 11); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; if (liveJagoan[xindi.ke] <= 0) { cekMati(xindi, xindi.ke, 'jagoan'); } } } function cekRanjau2(xxindi) { xindi = xxindi; if (adaRanjau[posMusuhJ[xcurrent]][posMusuhI[xcurrent]] == 1) { adaRanjau[posMusuhJ[xcurrent]][posMusuhI[xcurrent]] = 0; actionMusuh[xcurrent] = true; moveMusuh[xcurrent] = true; musuhAktif[xcurrent] = false; berkurang = random(450) + 450; if (berkurang <= 0) { berkurang = random(6) + 5; } liveMusuh[xindi.ke] -= berkurang; posX = xindi._x; posY = xindi._y; cekAngka(posX, posY, berkurang, bykAngka); tipeSerangan = 6; cekSoundFX(); efek = _root[namaCharaMusuh[xindi.ke]].attachMovie('fx' + tipeSerangan, 'fx_mc', dalamDarah + 10); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; tipeSerangan = 7; cekSoundFX(); efek = _root[namaCharaMusuh[xindi.ke]].attachMovie('fx' + tipeSerangan, 'fx_mc', dalamDarah + 11); efek._x = random(10) - 20; efek._y = random(10) - 20; efek._yscale = random(350) + 700; efek._xscale = efek._yscale; if (liveMusuh[xindi.ke] <= 0) { cekMati(xindi, xindi.ke, 'komp'); } } } function enterMusuh() { tj = xPath[currentPath]; ti = yPath[currentPath]; if (wwair[posMusuhJ[current]][posMusuhI[current]] == 1 && elementMusuh[current] == 0) { if (_root[xnamaChara].anim._currentframe < 10) { _root[xnamaChara].anim.gotoAndStop(_root[xnamaChara].anim._currentframe + 10); } } else { if (_root[xnamaChara].anim._currentframe > 10) { _root[xnamaChara].anim.gotoAndStop(_root[xnamaChara].anim._currentframe - 10); } } ubahDalam('tj', 'ti', 'dalam'); namaBaru = 'rumput_mc' + dalam; ambilDalam = panjang * lebar * 3 + _root[namaBaru].getDepth() + 100; ambilDalam2 = _root[namaBaru].getDepth() + 1; this.swapDepths(ambilDalam); aimX = _root[namaBaru]._x + 50; aimY = _root[namaBaru]._y - 20; deltaX = this._x - aimX; deltaY = this._y - aimY; angle = -Math.atan2(deltaX, deltaY) / 0.0174532925199433; if (Math.sqrt(deltaX * deltaX + deltaY * deltaY) > this.speedChara * increaseSpeed) { increaseSpeed -= 0.5; if (increaseSpeed <= 1) { increaseSpeed = 1; } this._y -= this.speedChara * increaseSpeed * Math.cos(angle * 0.0174532925199433); this._x += this.speedChara * increaseSpeed * Math.sin(angle * 0.0174532925199433); if (xbisaIlang[this.ke] == 1) { if (this._alpha >= 0) { this._alpha -= 25; } } } else { if (tipeAnim == 'serang') { if (masukJurang == true) { this._x = aimX; this._y = aimY; this.swapDepths(ambilDalam2); delete this.onEnterFrame; cekMati(this, this.ke, 'komp', 'jurang'); } else { this._x = aimX; this._y = aimY; this.swapDepths(ambilDalam); delete this.onEnterFrame; } } else { this._x = aimX; this._y = aimY; ++currentPath; posMusuhJ[current] = xPath[currentPath - 1]; posMusuhI[current] = yPath[currentPath - 1]; ++xcurrentPath; cekPosisi2(); this.swapDepths(ambilDalam); if (currentPath > ii) { mySound.stop(); posMusuhJ[current] = xPath[currentPath - 1]; posMusuhI[current] = yPath[currentPath - 1]; if (wwair[posMusuhJ[current]][posMusuhI[current]] == 1 && elementMusuh[current] == 0) { _root[xnamaChara].anim.gotoAndStop(21); } else { _root[xnamaChara].anim.gotoAndStop(1); } delete this.onEnterFrame; cekRanjau2(this); giliranMusuh(current); if (xbisaIlang[this.ke] == 1) { this.onEnterFrame = xenterMusuh2; } } } } } function xenterMusuh2() { if (this._alpha < 100) { this._alpha += 25; } else { this._alpha = 100; delete this.onEnterFrame; } } function zlanjutGame() { delete _root.onMouseDown; removeMovieClip(ballon_mc); } function cekMunculLagi() { if (bykMusuh <= 2) { if (jenisMaen != 'training') { --sudahHabis; i = 0; while (i <= charaMusuh) { if (_root[namaCharaMusuh[i]].hidup != true) { mappJ = posMunculBaruJ[i]; mappI = posMunculBaruI[i]; if (mapping[mappJ][mappI] == 1) { ++bykMusuh; mapping[mappJ][mappI] = wwjenisMusuh[i]; cekObyek2(mappJ, mappI, dalamMusuh[i], i); } } ++i; } delete _root.onMouseDown; ballon = attachMovie('ballon_mc', 'ballon_mc', dalamObjective); ballon._x = 0; ballon._y = 50; ballon.gotoAndStop('map' + mapKe); _root.onMouseDown = function () { ballon.gotoAndStop(ballon._currentframe + 1); }; } } } function lanjutKomp() { if (masihMain == true) { xresetMove(); deleteMove(); ++jalanKomp; if (jalanKomp >= bykMusuh) { i = 0; while (i <= charaMusuh - 1) { if (hidupIblis[i] > 0) { --hidupIblis[i]; if (hidupIblis[i] == 0) { hidupIblis[i] = 0; ++bykMusuh; _root[namaCharaMusuh[i]].hidup = true; _root[namaCharaMusuh[i]].anim.gotoAndStop(1); liveMusuh[i] = Math.ceil(levelMusuh[i] * xincLive[i] * 25); totLiveMusuh[i] = liveMusuh[i]; attackMusuh[i] = Math.ceil(levelMusuh[i] * xincAttack[i] * 10); defenseMusuh[i] = Math.ceil(levelMusuh[i] * xincDefense[i] * 5); auraMusuh[i] = Math.ceil(levelMusuh[i] * xincAura[i] * 10); totAuraMusuh[i] = auraMusuh[i]; moveMusuh[i] = false; actionMusuh[i] = false; masihAktif[i] = true; maxMusuh[i] = levelMusuh[i] * xnaik2; } } ++i; } deleteMusuh(false); zmasihMenang = true; if (jenisMaen != 'training') { i = 0; while (i <= charaJagoan - 1) { if (liveJagoan[i] == undefined || isNaN(liveJagoan[i])) { } else { if (liveJagoan[i] <= 0) { if (bolehMati[i] == false) { zmasihMenang = false; } } } ++i; } } else { wwbykJagoan = 0; i = 0; while (i <= charaJagoan - 1) { if (liveJagoan[i] == undefined || isNaN(liveJagoan[i])) { } else { ++wwbykJagoan; } ++i; } i = 0; while (i <= charaJagoan - 1) { if (liveJagoan[i] == undefined || isNaN(liveJagoan[i])) { } else { if (liveJagoan[i] <= 0) { --wwbykJagoan; } } ++i; } if (wwbykJagoan <= 0) { zmasihMenang = false; } } if (zmasihMenang == false) { cekKalahLevel(); } else { if (mapKe == 99) { if (sudahHabis >= 1) { cekMunculLagi(); } } bisaKlik = true; i = 0; while (i <= charaJagoan - 1) { if (_root[namaCharaJagoan[i]].hidup == true) { mapping[posJagoanJ[i]][posJagoanI[i]] = 0; } moveJagoan[i] = false; actionJagoan[i] = false; masihAktif[i] = true; undoJagoanJ[i] = posJagoanJ[i]; undoJagoanI[i] = posJagoanI[i]; if (poisonJagoan[i] == true && _root[namaCharaJagoan[i]].hidup == true) { elementSerang = 3; elementDiserang = elementJagoan[i]; if (elementDiserang == kuatElement[elementSerang]) { increseSerang = 1.25; } else { if (elementDiserang == lemahElement[elementSerang]) { increseSerang = 0.75; } else { increseSerang = 1; } } berkurang = Math.floor(increseSerang * liveJagoan[i] / 4); if (berkurang <= 0) { berkurang = random(6) + 5; } liveJagoan[i] -= berkurang; posX = _root[namaCharaJagoan[i]]._x; posY = _root[namaCharaJagoan[i]]._y; cekAngka5(posX, posY, berkurang, i); if (liveJagoan[i] <= 0) { cekMati(_root[namaCharaJagoan[i]], i, 'jagoan'); } } if (stunJagoan[i] == true) { --stunKeJagoan[i]; if (stunKeJagoan[i] == 0) { stunKeJagoan[i] = 3; stunJagoan[i] = false; removeMovieClip(_root[namaCharaJagoan[i]].stun_mc); } } if (poisonJagoan[i] == true) { --poisonKeJagoan[i]; if (poisonKeJagoan[i] == 0) { poisonKeJagoan[i] = 3; poisonJagoan[i] = false; removeMovieClip(_root[namaCharaJagoan[i]].poison_mc); } } if (uncontrolJagoan[i] == true) { --uncontrolKeJagoan[i]; if (uncontrolKeJagoan[i] <= 0) { uncontrolKeJagoan[i] = 3; uncontrolJagoan[i] = false; removeMovieClip(_root[namaCharaJagoan[i]].uncontrol_mc); } } if (slowJagoan[i] == true) { --slowKeJagoan[i]; if (slowKeJagoan[i] == 0) { slowKeJagoan[i] = 3; slowJagoan[i] = false; removeMovieClip(_root[namaCharaJagoan[i]].slow_mc); xrangeJagoan[i] = rangeJagoan[i]; } } ++i; } i = 0; while (i <= charaMusuh - 1) { if (_root[namaCharaMusuh[i]].hidup == true && jenisIblis[i] != 1) { mapping[posMusuhJ[i]][posMusuhI[i]] = 0; } moveMusuh[i] = false; actionMusuh[i] = false; musuhAktif[i] = true; if (stunMusuh[i] == true) { --stunKeMusuh[i]; if (stunKeMusuh[i] == 0) { stunKeMusuh[i] = 3; stunMusuh[i] = false; removeMovieClip(_root[namaCharaMusuh[i]].stun_mc); } } if (poisonMusuh[i] == true) { --poisonKeMusuh[i]; if (poisonKeMusuh[i] == 0) { poisonKeMusuh[i] = 3; poisonMusuh[i] = false; removeMovieClip(_root[namaCharaMusuh[i]].poison_mc); } } if (uncontrolMusuh[i] == true) { --uncontrolKeMusuh[i]; if (uncontrolKeMusuh[i] == 0) { uncontrolKeMusuh[i] = 3; uncontrolMusuh[i] = false; removeMovieClip(_root[namaCharaMusuh[i]].uncontrol_mc); } } if (slowMusuh[i] == true) { --slowKeMusuh[i]; if (slowKeMusuh[i] == 0) { slowKeMusuh[i] = 3; slowMusuh[i] = false; removeMovieClip(_root[namaCharaMusuh[i]].slow_mc); xrangeMusuh[i] = rangeMusuh[i]; } } ++i; } ++turn; if (mapKe == 16 && turn >= 3) { cekKalahLevel(); } else { if (mapKe == 18 && turn >= 12) { cekKalahLevel(); } else { jalanKomp = 0; jalanKe = 0; gerakSemua = false; xgiliranJagoan(); i = 0; while (i <= charaJagoan - 1) { if (uncontrolJagoan[i] == true || stunJagoan[i] == true) { setBisa4('', false, i); } else { setBisa4('', true, i); } ++i; } if (gerakSemua == false) { bisaKlik = false; i = 0; while (i <= charaJagoan - 1) { if (uncontrolJagoan[i] == true || stunJagoan[i] == true) { setBisa3(3, false, i); } else { setBisa3(3, true, i); } ++i; } cekGiliran(); } else { deleteMusuh(false); } } } } } else { cekGiliran(); } } } function xgiliranJagoan() { if (bykMusuh <= 0 && adaMusuhkah == true) { cekLanjutLevel(); } else { i = 0; while (i <= charaJagoan - 1) { if (stunJagoan[i] == true && masihAktif[i] == true) { setBisa2(3, false, i); masihAktif[i] = false; } ++i; } i = 0; while (i <= charaJagoan - 1) { if (masihAktif[i] == true && _root[namaCharaJagoan[i]].hidup == true) { if (stunJagoan[i] == false) { adaGerakan = true; gerakSemua = true; giliranJagoan(i); i = charaJagoan + 1; } else { setBisa2(3, false, i); masihAktif[i] = false; i = charaJagoan + 1; } } ++i; } } } function cekGiliran() { anehLewat = false; sekaliWaja = false; if (bykMusuh <= 0 && adaMusuhkah == true) { cekLanjutLevel(); } else { z = 0; while (z <= charaMusuh - 1) { xnamaChara = namaCharaMusuh[z]; if (musuhAktif[z] == true && _root[xnamaChara].hidup == true) { giliranMusuh(z); z = charaMusuh + 1; anehLewat = true; } ++z; } } if (anehLewat == false) { jalanKomp = bykMusuh; lanjutKomp(); } } function selesaiLevel() { delete _root.onMouseDown; masihMain = true; cekLanjutLevel(); } function selesaiLevel2() { delete _root.onMouseDown; indi = _root[namaCharaMusuh[pemimpin]]; indi.onEnterFrame = xenterIndi; } function xenterIndi() { this._alpha -= 10; if (this._alpha <= -50) { masihMain = true; cekLanjutLevel(); removeMovieClip(this); } } function cekLanjutLevel() { if (masihMain == true) { masihMain = false; z = 0; while (z <= charaJagoan - 1) { setBisa4('', false, z); ++z; } z = 0; while (z <= charaMusuh - 1) { setBisa5('', false, z); ++z; } bisaTombolAction(false); if (jenisMaen == 'training') { cekTrain(); } else { if ((mapKe == 4 || mapKe == 5 || mapKe == 8 || mapKe == 10 || mapKe == 13 || mapKe == 15 || mapKe == 17) && sudahBallon == false) { sudahBallon = true; delete _root.onMouseDown; ballon = attachMovie('ballon_mc', 'ballon_mc', dalamCompleted); ballon._x = 0; ballon._y = 50; ballon.gotoAndStop('map' + mapKe + 'a'); _root.onMouseDown = function () { ballon.gotoAndStop(ballon._currentframe + 1); }; } else { myMusic.stop(); backMenang(); xpause = true; setBisa(3, false); completed = attachMovie('completed_mc', 'completed_mc', dalamCompleted); completed._x = -50; completed._y = -50; i = 0; while (i <= charaJagoan - 1) { liveJagoan[i] = totLiveJagoan[i]; auraJagoan[i] = totAuraJagoan[i]; ++i; } if (mapKe >= 12) { money += 10 * Math.ceil(30000 / turn) + Math.ceil(5000 * (1 / mapKe)); } else { money += Math.ceil(30000 / turn) + Math.ceil(5000 * (1 / mapKe)); } totalTurn += turn; totalMoney += money; totalKilled += killed; completed.turn = 'TURN: ' + turn; completed.money = 'MONEY GAINED: ' + money; completed.killed = 'KILLED: ' + killed; completed.totalTurn = 'TOTAL TURN: ' + totalTurn; completed.totalMoney = 'TOTAL MONEY: ' + totalMoney; completed.totalKilled = 'TOTAL KILLED: ' + totalKilled; _root.onMouseDown = function () { delete _root.onMouseDown; completed.gotoAndStop(2); pasItem('completed_mc'); itemShow = false; itemShow2 = false; tambahanItem = new Array(); banyakTambahan = new Array(); if (mapKe <= 2) { tambahanItem = new Array('', 1, 2); } else { if (mapKe <= 4) { tambahanItem = new Array('', 1, 2, 3); } else { if (mapKe <= 6) { tambahanItem = new Array('', 1, 2, 3, 4); } else { if (mapKe <= 8) { tambahanItem = new Array('', 1, 2, 3, 4, 5); } else { if (mapKe <= 10) { tambahanItem = new Array('', 1, 2, 3, 4, 5, 6); } else { if (mapKe <= 12) { tambahanItem = new Array('', 1, 2, 3, 4, 5, 6, 7); } else { if (mapKe <= 14) { tambahanItem = new Array('', 1, 2, 3, 4, 5, 6, 7, 8); } else { if (mapKe <= 16) { tambahanItem = new Array('', 1, 2, 3, 4, 5, 6, 7, 8, 9); } else { if (mapKe <= 18) { tambahanItem = new Array('', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10); } } } } } } } } } if (mapKe == 4 || mapKe == 5) { if (mapKe == 4) { itemShow2 = true; punyaWeapon2[25] = 1; } else { if (mapKe == 5) { punyaWeapon3[26] = 1; } } itemShow = true; } i = 1; while (i <= tambahanItem.length - 1) { banyakTambahan[i] = random(3) + 1; ++i; } i = 1; while (i <= 10) { if (tambahanItem[i] != undefined) { completed_mc['slot' + i].xnama = jenisItem[tambahanItem[i]]; completed_mc['slot' + i].xjumlah = 'x' + banyakTambahan[i]; completed_mc['slot' + i].onRelease = klikCompleted; completed_mc['slot' + i].onRollOver = overCompleted; completed_mc['slot' + i].onRollOut = outCompleted; completed_mc['slot' + i].onReleaseOutside = outCompleted; } else { completed_mc['slot' + i].xnama = ''; completed_mc['slot' + i].xjumlah = ''; } ++i; } completed.next_btn.onRollOver = function () { over(); }; completed.next_btn.onRelease = function () { klik(); if (itemShow == true) { backWeapon(); completed.gotoAndStop(3); if (mapKe == 4) { completed.weapon.gotoAndStop(1); } else { if (mapKe == 5) { completed.weapon.gotoAndStop(2); } } itemShow = false; } else { if (itemShow2 == true) { backWeapon(); completed.gotoAndStop(4); completed.item.gotoAndStop(1); itemShow2 = false; } else { removeMovieClip(completed_mc); bisaTrain = true; if (mapKe < 7) { bykKarakter = 6; } else { if (mapKe < 14) { bykKarakter = 7; } else { bykKarakter = 8; } } if (mapKe == 1) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(1512); ++mapKe; } else { if (mapKe == 2) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(1522); ++mapKe; } else { if (mapKe == 3) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(1937); ++mapKe; } else { if (mapKe == 4) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop('dua5'); ++mapKe; } else { if (mapKe == 5) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop('dua7'); ++mapKe; } else { if (mapKe == 6 && lewatSini == false) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop('dua9'); ++mapKe; } else { if (mapKe == 6 && lewatSini == true) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(2217); ++mapKe; } else { if (mapKe == 7) { totalMoney += 100000; musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(2232); ++mapKe; } else { if (mapKe == 8) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop('dua17'); ++mapKe; } else { if (mapKe == 9) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(2582); ++mapKe; } else { if (mapKe == 10) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop('dua21'); ++mapKe; } else { if (mapKe == 11) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(2707); ++mapKe; } else { if (mapKe == 12) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop('dua25'); ++mapKe; } else { if (mapKe == 13) { totalMoney -= 10000; if (totalMoney <= 0) { totalMoney = 0; } musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(2767); ++mapKe; } else { if (mapKe == 14) { totalMoney += 50000; musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(2917); ++mapKe; } else { if (mapKe == 15) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop('dua31'); ++mapKe; } else { if (mapKe == 16) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(3303); ++mapKe; } else { if (mapKe == 17) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(3353); ++mapKe; } else { if (mapKe == 18) { musicIstana(); sudahKePeta = true; clearSemua(); gotoAndStop(3418); ++mapKe; } } } } } } } } } } } } } } } } } } } } } }; }; } } } else {} } function cekTrain() { musicIstana(); keMusuh = 2; j = 0; while (j <= charaJagoan - 1) { liveJagoan[j] = totLiveJagoan[j]; auraJagoan[j] = totAuraJagoan[j]; ++j; } i = 0; while (i <= keMusuh) { levelJagoan[i + 3] = levelMusuh[i]; expJagoan[i + 3] = expMusuh[i]; liveJagoan[i + 3] = Math.ceil(levelMusuh[i] * xincLive[i] * 25); totLiveJagoan[i + 3] = liveJagoan[i + 1]; attackJagoan[i + 3] = Math.ceil(levelMusuh[i] * xincAttack[i] * 10); defenseJagoan[i + 3] = Math.ceil(levelMusuh[i] * xincDefense[i] * 5); auraJagoan[i + 3] = Math.ceil(levelMusuh[i] * xincAura[i] * 10); totAuraJagoan[i + 3] = auraJagoan[i + 1]; maxJagoan[i + 3] = levelMusuh[i] * xnaik2; rangeJagoan[i + 3] = rangeMusuh[i]; xrangeJagoan[i + 3] = xrangeMusuh[i]; serangJagoan[i + 3] = serangMusuh[i]; accuracyJagoan[i + 3] = accuracyMusuh[i]; speedJagoan[i + 3] = speedMusuh[i]; namaJagoan[i + 3] = namaJagoan[i]; ++i; } sudahKePeta = false; clearSemua(); xcekKemana(); } function cekKalahLevel() { masihMain = false; z = 0; while (z <= charaJagoan - 1) { setBisa4('', false, z); ++z; } z = 0; while (z <= charaMusuh - 1) { setBisa5('', false, z); ++z; } bisaTombolAction(false); if (jenisMaen == 'training') { cekTrain(); } else { xpause = true; setBisa(3, false); failed = attachMovie('failed_mc', 'failed_mc', dalamCompleted); failed._x = -50; failed._y = -50; i = 0; while (i <= charaJagoan - 1) { liveJagoan[i] = totLiveJagoan[i]; auraJagoan[i] = totAuraJagoan[i]; ++i; } money += 0; totalTurn += turn; totalMoney += money; totalKilled += killed; failed.turn = 'TURN: ' + turn; failed.money = 'MONEY GAINED: ' + money; failed.killed = 'KILLED: ' + killed; failed.totalTurn = 'TOTAL TURN: ' + totalTurn; failed.totalMoney = 'TOTAL MONEY: ' + totalMoney; failed.totalKilled = 'TOTAL KILLED: ' + totalKilled; failed.more_btn.onRollOver = function () { over(); }; failed.more_btn.onRelease = function () { klik(); getURL('http://www.armorgames.com', '_blank'); }; failed.gaming_btn.onRollOver = function () { over(); }; failed.gaming_btn.onRelease = function () { klik(); getURL('http://www.armorblog.com', '_blank'); }; failed.quit_btn.onRollOver = function () { over(); }; failed.quit_btn.onRelease = function () { klik(); delete _root.onMouseDown; removeMovieClip(failed_mc); clearSemua(); gotoAndStop(211); }; failed.replay_btn.onRollOver = function () { over(); }; failed.replay_btn.onRelease = function () { klik(); delete _root.onMouseDown; removeMovieClip(failed_mc); _root.clearSemua(); _root.cekReplay(); }; } } function cekReplay() { i = 0; while (i <= totChara) { levelJagoan[i] = xlevelJagoan[i]; expJagoan[i] = xexpJagoan[i]; ++i; } initMulai(); xlistener(); } function klikCompleted() { klik(); this._visible = false; myStr = new String(this); if (myStr.length == 26) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } punyaItem[tambahanItem[indi]] += banyakTambahan[indi]; pasItem('completed_mc'); } function overCompleted() { over(); this.gotoAndStop(2); } function outCompleted() { this.gotoAndStop(1); } function pasItem(indi) { i = 1; while (i <= 50) { if (punyaItem[i] > 0 && punyaItem[i] != undefined) { _root[indi].slot_mc['slot' + i].xnama = jenisItem[i]; _root[indi].slot_mc['slot' + i].xjumlah = 'x' + punyaItem[i]; } else { _root[indi].slot_mc['slot' + i].xnama = ''; _root[indi].slot_mc['slot' + i].xjumlah = ''; } ++i; } } function clearSemua() { adaJedaInfo = false; adaJedaMsgBox2 = false; mySound.stop(); delete myListener2.onKeyDown; removeListener(myListener2); clearInterval(idDelay1); clearInterval(idDelay2); removeMovieClip(ballon_mc); removeMovieClip(msgBox_mc2); removeMovieClip(actions_mc); removeMovieClip(angka_mc); removeMovieClip(angka_mc2); removeMovieClip(angka_mc3); removeMovieClip(info_mc); removeMovieClip(info_mc2); wi = dalamAngka1; while (wi <= dalamAngka1 + 100) { removeMovieClip(_root['angka_mc' + wi]); ++wi; } wi = dalamAngka2; while (wi <= dalamAngka2 + 100) { removeMovieClip(_root['angka_mc2' + wi]); ++wi; } wi = dalamAngka3; while (wi <= dalamAngka3 + 100) { removeMovieClip(_root['angka_mc3' + wi]); ++wi; } wi = dalamAngka4; while (wi <= dalamAngka4 + 100) { removeMovieClip(_root['angka_mc4' + wi]); ++wi; } i = 0; while (i <= panjang) { j = 0; while (j <= lebar) { ubahDalam('j', 'i', 'dalam'); namaBaru = 'rumput_mc' + dalam; namaBaru2 = 'obyek_mc' + dalam; removeMovieClip(_root[namaBaru]); removeMovieClip(_root[namaBaru2]); ++j; } ++i; } } function xlistener() { myListener2 = new Object(); myListener2.onKeyDown = function () { if (Key.getCode() == 80) { if (xpause == false) { cekOptions(); } } if (Key.getCode() == 65) { if (actions_mc._visible == true && actions_mc._currentframe == 1) { if (moveJagoan[current] == false) { charaMove(); } else { charaUndo(); } } } if (Key.getCode() == 87) { if (actions_mc._visible == true && actions_mc._currentframe == 1) { if (actionJagoan[current] == false) { pilihAttack(); } } } if (Key.getCode() == 68) { if (actions_mc._visible == true && actions_mc._currentframe == 1) { if (actionJagoan[current] == false) { pilihItem(); } } } if (Key.getCode() == 83) { if (actions_mc._visible == true && actions_mc._currentframe == 1) { charaWait(); } } }; Key.addListener(myListener2); } stop(); saveChara(); initMulai(); xlistener(); _root.onEnterFrame = function () { if (xpause == false) { if (_root._xmouse < lScroll) { if (_root[batasKanan]._x < bAwal + pKotak) { geserKotak('kanan'); } } if (_root._xmouse > pStage - lScroll) { if (_root[batasKiri]._x > pStage - pKotak * 2) { geserKotak('kiri'); } } if (_root._ymouse < lScroll) { if (_root[batasBawah]._y < bAwal + lKotak * 1.5) { geserKotak('bawah'); } } if (_root._ymouse > lStage - lScroll) { if (_root[batasAtas]._y > lStage - lKotak) { geserKotak('atas'); } } } }; stop(); } frame 1204 { stop(); } frame 1205 { play(); backLangkah(); } movieClip 5681 { } frame 1249 { stop(); jalan.stop(); mySound.stop(); _root.onMouseDown = function () { delete this.onMouseDown; _root.gotoAndStop(_root._currentframe + 1); }; } frame 1250 { function cekJenis() { totMoney = 'Total Money: ' + totalMoney; if (jenisShop == 1) { item_mc.gotoAndStop(2); item_mc.enabled = false; spell_mc.gotoAndStop(1); spell_mc.enabled = true; i = 1; while (i <= 9) { if (namaItem[i] != undefined) { _root['nama' + i] = jenisItem[namaItem[i]]; _root['element' + i] = element[elementItem[namaItem[i]]]; _root['price' + i] = hargaItem[namaItem[i]]; _root['owned' + i] = punyaItem[namaItem[i]]; _root['xicon' + i]._visible = true; _root['xicon' + i].gotoAndStop(100 + namaItem[i]); _root['buy' + i]._visible = true; _root['sell' + i]._visible = true; _root['tanya' + i]._visible = true; _root['sell' + i]._alpha = 100; _root['sell' + i].enabled = true; _root['buy' + i]._alpha = 100; _root['buy' + i].enabled = true; _root['buy' + i].onRelease = klikBuyItem; _root['buy' + i].onRollOver = overItem; _root['buy' + i].onRollOut = outItem; _root['sell' + i].onRelease = klikSellItem; _root['sell' + i].onRollOver = overItem; _root['sell' + i].onRollOut = outItem; _root['tanya' + i].onRollOver = overTanya; _root['tanya' + i].onRollOut = outTanya; _root['tanya' + i].onReleaseOutside = outTanya; } else { _root['nama' + i] = ''; _root['element' + i] = ''; _root['price' + i] = ''; _root['owned' + i] = ''; _root['buy' + i]._visible = false; _root['sell' + i]._visible = false; _root['tanya' + i]._visible = false; _root['xicon' + i]._visible = false; } ++i; } } else { if (jenisShop == 2) { spell_mc.gotoAndStop(2); spell_mc.enabled = false; item_mc.gotoAndStop(1); item_mc.enabled = true; i = 1; while (i <= 9) { if (namaSpell[i] != undefined) { _root['nama' + i] = jenisAbility[namaSpell[i]]; _root['element' + i] = element[elementAbility[namaSpell[i]]]; _root['price' + i] = hargaAbility[namaSpell[i]]; _root['xicon' + i]._visible = true; _root['xicon' + i].gotoAndStop(namaSpell[i]); _root['buy' + i]._visible = true; _root['tanya' + i]._visible = true; _root['sell' + i]._visible = true; if (punyaAbility[namaSpell[i]] == 1) { _root['owned' + i] = 'Yes'; _root['buy' + i]._alpha = 50; _root['buy' + i].enabled = false; } else { _root['owned' + i] = 'No'; _root['buy' + i].onRelease = klikBuySpell; _root['buy' + i].onRollOver = overItem; _root['buy' + i].onRollOut = outItem; } _root['tanya' + i].onRollOver = overTanya; _root['tanya' + i].onRollOut = outTanya; _root['tanya' + i].onReleaseOutside = outTanya; _root['sell' + i]._alpha = 50; _root['sell' + i].enabled = false; } else { _root['nama' + i] = ''; _root['element' + i] = ''; _root['price' + i] = ''; _root['owned' + i] = ''; _root['buy' + i]._visible = false; _root['sell' + i]._visible = false; _root['tanya' + i]._visible = false; _root['xicon' + i]._visible = false; } ++i; } } } } function klikBuySpell() { klik(); myStr = new String(this); if (myStr.length == 12) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } if (totalMoney >= _root['price' + indi]) { totalMoney -= _root['price' + indi]; ++punyaAbility[namaSpell[indi]]; infor = 'SHOP KEEPER GIRL: THANKS TO BUY'; cekJenis(); } else { infor = 'SHOP KEEPER GIRL: SORRY, NOT ENOUGH FUNDS'; } } function klikBuyItem() { klik(); myStr = new String(this); if (myStr.length == 12) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } if (totalMoney >= _root['price' + indi]) { totalMoney -= _root['price' + indi]; ++punyaItem[namaItem[indi]]; infor = 'SHOP KEEPER GIRL: THANKS TO BUY'; cekJenis(); } else { infor = 'SHOP KEEPER GIRL: SORRY, NOT ENOUGH FUNDS'; } } function klikSellItem() { klik(); myStr = new String(this); if (myStr.length == 13) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } if (punyaItem[namaItem[indi]] > 0) { totalMoney += Math.ceil(_root['price' + indi] / 2); --punyaItem[namaItem[indi]]; infor = 'SHOP KEEPER GIRL: THANKS TO SELL'; cekJenis(); } else { infor = 'SHOP KEEPER GIRL: SORRY, NOT MORE ITEMS'; } } function overItem() { over(); this.gotoAndStop(2); } function outItem() { this.gotoAndStop(1); } function overTanya() { over(); myStr = new String(this); if (myStr.length == 14) { pilihAbil = Number(myStr.substr(myStr.length - 1, 1)); } else { if (myStr.length == 15) { pilihAbil = Number(myStr.substr(myStr.length - 2, 2)); } else { if (myStr.length == 16) { pilihAbil = Number(myStr.substr(myStr.length - 1, 3)); } } } jedaInfo2 = 0; adaJedaInfo = true; info2.nama = ''; info2.informasi = ''; if (jenisShop == 1) { jenisOver = 'item'; } else { if (jenisShop == 2) { jenisOver = 'attack'; } } } function outTanya() { adaJedaInfo = false; info2.nama = ''; info2.informasi = ''; info2._visible = false; info2._alpha = 0; } function enterInfo2() { if (adaJedaInfo == true) { ++jedaInfo2; if (jedaInfo2 >= 10) { info2._visible = true; if (info2._alpha <= 100) { info2._alpha += 30; } } } else { info2._visible = false; } info2._x = _root._xmouse - 100; info2._y = _root._ymouse; indi = pilihAbil; if (jenisOver == 'attack') { info2.nama = jenisAbility[namaSpell[indi]]; xinfo = infoAbility[namaSpell[indi]]; info2.informasi = 'Element ' + element[elementAbility[namaSpell[indi]]] + ' \n Need ' + auraAbility[namaSpell[indi]] + ' Aura \n\n ' + xinfo; } else { if (jenisOver == 'item') { info2.nama = jenisItem[namaItem[indi]]; info2.informasi = infoItem[namaItem[indi]]; } } } stop(); quit_btn.onRollOver = function () { over(); }; quit_btn.onRelease = function () { klik(); xcekKemana(); }; if (mapKe <= 3) { namaItem = new Array('', 1, 2, 3, 4); namaSpell = new Array('', 6, 7, 8, 9, 10); } else { if (mapKe <= 6) { namaItem = new Array('', 1, 2, 3, 4, 5); namaSpell = new Array('', 6, 7, 8, 9, 10, 11, 12, 13); } else { if (mapKe <= 9) { namaItem = new Array('', 1, 2, 3, 4, 5, 6, 7); namaSpell = new Array('', 8, 9, 10, 11, 12, 13, 14, 15, 16); } else { if (mapKe <= 12) { namaItem = new Array('', 2, 3, 4, 5, 6, 7, 8, 9, 10); namaSpell = new Array('', 10, 11, 12, 13, 14, 15, 16, 17, 18); } else { if (mapKe <= 15) { namaItem = new Array('', 4, 5, 6, 7, 8, 9, 10, 11, 12); namaSpell = new Array('', 12, 13, 14, 15, 16, 17, 18, 19, 20); } else { if (mapKe <= 18) { namaItem = new Array('', 6, 7, 8, 9, 10, 11, 12, 13, 14); namaSpell = new Array('', 14, 15, 16, 17, 18, 19, 20, 21, 22); } } } } } } spell_mc.onRelease = function () { klik(); jenisShop = 2; cekJenis(); }; spell_mc.onRollOver = function () { over(); this.gotoAndStop(3); }; spell_mc.onRollOut = function () { this.gotoAndStop(1); }; item_mc.onRelease = function () { klik(); jenisShop = 1; cekJenis(); }; item_mc.onRollOver = function () { over(); this.gotoAndStop(3); }; item_mc.onRollOut = function () { this.gotoAndStop(1); }; jenisShop = 1; cekJenis(); infor = ''; info2 = attachMovie('info_mc2', 'info_mc2', dalamInfo2); info2._x = -500; info2._y = -500; info2._visible = false; info2.onEnterFrame = enterInfo2; } movieClip 5695 { frame 1 { stop(); } } movieClip 5697 { frame 1 { stop(); } } movieClip 5699 { frame 1 { stop(); } } movieClip 5701 { frame 1 { stop(); } } frame 1275 { function munculChangeItem(indi1, indi2) { xitem = indi1; xchara = indi2; xchange = attachMovie('change_mc', 'change_mc', dalamStatus + 1); xchange._x = 400; xchange._y = 300; xchange.cancel_btn.onRollOver = function () { over(); }; xchange.cancel_btn.onRelease = function () { klik(); removeMovieClip(change_mc); _root.status_mc.back_btn.enabled = true; }; xchange.empty_btn.onRollOver = function () { over(); }; xchange.empty_btn.onRelease = function () { klik(); itemJagoan[xchara - 1][xitem] = 0; removeMovieClip(change_mc); _root.status_mc.ubahSemua(indiPilih); _root.status_mc.back_btn.enabled = true; }; i = 1; while (i <= 50) { if (_root.punyaItem[i] > 0 && _root.punyaItem[i] != undefined) { abil = _root.jenisItem[i]; adaSama = false; j = 1; while (j <= 5) { if (abil == _root.jenisItem[_root.itemJagoan[xchara - 1][j]]) { adaSama = true; } ++j; } if (adaSama == false) { change_mc['slot' + i].xnama = jenisItem[i]; change_mc['slot' + i].xjumlah = 'x' + punyaItem[i]; change_mc['slot' + i].onRelease = klikSlot; change_mc['slot' + i].onRollOver = overSlot; change_mc['slot' + i].onRollOut = outSlot; } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } ++i; } } function klikSlot() { klik(); myStr = new String(this); if (myStr.length == 23) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } itemJagoan[xchara - 1][xitem] = indi; removeMovieClip(change_mc); _root.status_mc.ubahSemua(indiPilih); _root.status_mc.back_btn.enabled = true; } function overSlot() { over(); this.gotoAndStop(2); } function outSlot() { this.gotoAndStop(1); } function munculChangeSpell(indi1, indi2) { xability = indi1; xchara = indi2; xchange = attachMovie('change_mc', 'change_mc', dalamStatus + 1); xchange._x = 400; xchange._y = 300; xchange.cancel_btn.onRollOver = function () { over(); }; xchange.cancel_btn.onRelease = function () { klik(); removeMovieClip(change_mc); _root.status_mc.back_btn.enabled = true; }; xchange.empty_btn.onRollOver = function () { over(); }; xchange.empty_btn.onRelease = function () { klik(); abilityJagoan[xchara - 1][xability] = 0; removeMovieClip(change_mc); _root.status_mc.ubahSemua(indiPilih); _root.status_mc.back_btn.enabled = true; }; i = 1; while (i <= 50) { if (_root.punyaAbility[i] > 0 && _root.punyaAbility[i] != undefined) { abil = _root.jenisAbility[i]; adaSama = false; j = 1; while (j <= 10) { if (abil == _root.jenisAbility[_root.abilityJagoan[xchara - 1][j]]) { adaSama = true; } ++j; } if (adaSama == false) { change_mc['slot' + i].xnama = jenisAbility[i]; change_mc['slot' + i].xjumlah = ''; change_mc['slot' + i].onRelease = klikSlot2; change_mc['slot' + i].onRollOver = overSlot2; change_mc['slot' + i].onRollOut = outSlot2; } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } ++i; } } function klikSlot2() { klik(); myStr = new String(this); if (myStr.length == 23) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } abilityJagoan[xchara - 1][xability] = indi; removeMovieClip(change_mc); _root.status_mc.ubahSemua(indiPilih); _root.status_mc.back_btn.enabled = true; } function overSlot2() { over(); this.gotoAndStop(2); } function outSlot2() { this.gotoAndStop(1); } function munculChangeWeapon(indi2) { xchara = indi2; xchange = attachMovie('change_mc', 'change_mc', dalamStatus + 1); xchange._x = 400; xchange._y = 300; xchange.cancel_btn.onRollOver = function () { over(); }; xchange.cancel_btn.onRelease = function () { klik(); removeMovieClip(change_mc); _root.status_mc.back_btn.enabled = true; }; xchange.empty_btn.enabled = false; if (xchara == 1) { i = 1; while (i <= 50) { if (_root.punyaWeapon[i] > 0 && _root.punyaWeapon[i] != undefined) { abil = i; adaSama = false; if (abil == _root.jagoanWeapon[xchara - 1]) { adaSama = true; } if (adaSama == false) { change_mc['slot' + i].xnama = jenisWeapon[i]; change_mc['slot' + i].xjumlah = ''; change_mc['slot' + i].onRelease = klikSlot3; change_mc['slot' + i].onRollOver = overSlot3; change_mc['slot' + i].onRollOut = outSlot3; } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } ++i; } } else { if (xchara == 2) { i = 1; while (i <= 50) { if (_root.punyaWeapon2[i] > 0 && _root.punyaWeapon2[i] != undefined) { abil = i; adaSama = false; if (abil == _root.jagoanWeapon[xchara - 1]) { adaSama = true; } if (adaSama == false) { change_mc['slot' + i].xnama = jenisWeapon[i]; change_mc['slot' + i].xjumlah = ''; change_mc['slot' + i].onRelease = klikSlot3; change_mc['slot' + i].onRollOver = overSlot3; change_mc['slot' + i].onRollOut = outSlot3; } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } ++i; } } else { if (xchara == 6) { i = 1; while (i <= 50) { if (_root.punyaWeapon3[i] > 0 && _root.punyaWeapon3[i] != undefined) { abil = i; adaSama = false; if (abil == _root.jagoanWeapon[xchara - 1]) { adaSama = true; } if (adaSama == false) { change_mc['slot' + i].xnama = jenisWeapon[i]; change_mc['slot' + i].xjumlah = ''; change_mc['slot' + i].onRelease = klikSlot3; change_mc['slot' + i].onRollOver = overSlot3; change_mc['slot' + i].onRollOut = outSlot3; } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } ++i; } } else { i = 1; while (i <= 50) { if (_root.punyaWeapon3[i] > 0 && _root.punyaWeapon3[i] != undefined) { abil = i; adaSama = false; if (abil == _root.jagoanWeapon[xchara - 1]) { adaSama = true; } adaSama = true; if (adaSama == false) { change_mc['slot' + i].xnama = jenisWeapon[i]; change_mc['slot' + i].xjumlah = ''; change_mc['slot' + i].onRelease = klikSlot3; change_mc['slot' + i].onRollOver = overSlot3; change_mc['slot' + i].onRollOut = outSlot3; } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } } else { change_mc['slot' + i].xnama = ''; change_mc['slot' + i].xjumlah = ''; } ++i; } } } } } function klikSlot3() { klik(); myStr = new String(this); if (myStr.length == 23) { indi = Number(myStr.substr(myStr.length - 1, 1)); } else { indi = Number(myStr.substr(myStr.length - 2, 2)); } _root.jagoanWeapon[xchara - 1] = indi; _root.cekAbility(xchara - 1); removeMovieClip(change_mc); _root.status_mc.ubahSemua(indiPilih); _root.status_mc.back_btn.enabled = true; } function overSlot3() { over(); this.gotoAndStop(2); } function outSlot3() { this.gotoAndStop(1); } stop(); initDalam(); liveJagoan = new Array(); totLiveJagoan = new Array(); attackJagoan = new Array(); defenseJagoan = new Array(); auraJagoan = new Array(); totAuraJagoan = new Array(); maxJagoan = new Array(); namaJagoan = new Array(); incLive = new Array(); incAttack = new Array(); incDefense = new Array(); incAura = new Array(); rangeJagoan = new Array(); xrangeJagoan = new Array(); serangJagoan = new Array(); accuracyJagoan = new Array(); speedJagoan = new Array(); i = 0; while (i <= totChara) { poisonJagoan[i] = false; stunJagoan[i] = false; uncontrolJagoan[i] = false; slowJagoan[i] = false; cekAbility(i); ++i; } jenisLihat = 'peta'; xstatus = attachMovie('status_mc', 'status_mc', dalamStatus); xstatus._x = 400; xstatus._y = 300; } frame 1276 { stop(); musicIstana(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 1287 { function aturSaja() { gotoAndStop(1307); } stop(); _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 1307 { play(); } frame 1431 { function aturSaja() { gotoAndStop(1432); } stop(); trans_mc.gotoAndPlay(2); } frame 1432 { stop(); musicPedesaan(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 1443 { function aturSaja() { gotoAndStop(999); } stop(); _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 1462 { stop(); musicIstana(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 5800 { } movieClip 5807 { } movieClip 5813 { } movieClip 5815 { } frame 1468 { delete _root.onMouseDown; backLangkah(); play(); } movieClip 5820 { } frame 1489 { stop(); mySound.stop(); musicHoror(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 1490 { function aturSaja() { gotoAndStop(1195); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } movieClip 5826 { } frame 1512 { stop(); musicIstana(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 1514 { function aturSaja() { gotoAndStop('xsatu'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 1522 { stop(); musicPedesaan(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 1527 { function aturSaja() { gotoAndStop(1562); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 1531 { stop(); musicPedesaan(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 1533 { function aturSaja() { gotoAndStop('dua1'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 1562 { stop(); musicCombat1(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 5848 { } movieClip 5851 { } movieClip 5854 { } movieClip 5857 { } movieClip 5860 { } movieClip 5863 { } movieClip 5874 { } frame 1572 { function aturSaja() { gotoAndStop('hasil'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 1577 { stop(); musicCombat1(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 5896 { } frame 1580 { function aturSaja() { gotoAndStop('hasil2'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 1591 { play(); } frame 1666 { function zmulaiSerang() { gotoAndStop(1195); } stop(); jenisMaen = 'tanding'; } movieClip 5905 { frame 10 { _root.backFight(); } frame 35 { stop(); _root.zmulaiSerang(); } } frame 1676 { play(); } frame 1751 { function aturSaja() { gotoAndStop('hasil3'); } stop(); trans_mc.gotoAndPlay(2); } frame 1777 { stop(); tombolAtas(); } frame 1787 { function zmulaiSerang() { gotoAndStop(1195); } stop(); jenisMaen = 'tanding'; } frame 1788 { stop(); tombolAtas(); box_mc.shop_btn.enabled = false; box_mc.shop_btn._alpha = 50; } frame 1800 { function zmulaiSerang() { gotoAndStop(1195); } stop(); jenisMaen = 'tanding'; } frame 1801 { stop(); tombolAtas(); box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } frame 1816 { function zmulaiSerang() { gotoAndStop(1195); } stop(); jenisMaen = 'tanding'; } frame 1817 { stop(); tombolAtas(); box_mc.shop_btn.enabled = false; box_mc.shop_btn._alpha = 50; box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } frame 1831 { function aturSaja() { gotoAndStop(2727); } stop(); lewatSini4 = true; trans_mc.gotoAndPlay(2); } frame 1832 { stop(); tombolAtas(); box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } frame 1833 { lewatSini4 = false; } frame 1846 { function aturSaja() { gotoAndStop(2827); } stop(); lewatSini4 = true; lewatSini5 = false; trans_mc.gotoAndPlay(2); } frame 1847 { stop(); tombolAtas(); } frame 1848 { lewatSini4 = false; } frame 1856 { function zmulaiSerang() { gotoAndStop(1195); } stop(); lewatSini5 = true; jenisMaen = 'tanding'; } frame 1857 { stop(); tombolAtas(); box_mc.shop_btn.enabled = false; box_mc.shop_btn._alpha = 50; } frame 1858 { lewatSini5 = false; } frame 1866 { function aturSaja() { gotoAndStop(2947); } stop(); keCaesar = false; trans_mc.gotoAndPlay(2); } frame 1867 { stop(); tombolAtas(); box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } frame 1881 { function aturSaja() { gotoAndStop(3022); } stop(); trans_mc.gotoAndPlay(2); } frame 1882 { stop(); tombolAtas(); box_mc.shop_btn.enabled = false; box_mc.shop_btn._alpha = 50; box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } frame 1937 { stop(); musicPedesaan(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 5916 { } frame 1939 { function aturSaja() { gotoAndStop('lohani2'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 1956 { play(); } movieClip 5922 { } movieClip 5925 { } movieClip 5934 { } movieClip 5941 { } movieClip 5946 { } movieClip 5947 { frame 1 { gotoAndPlay(random(50) + 1); } } movieClip 5949 { } frame 1971 { stop(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 1975 { _root.onMouseDown = function () { delete _root.onMouseDown; gotoAndStop('lohani3'); }; } frame 2001 { play(); } movieClip 5956 { } frame 2019 { stop(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2025 { _root.onMouseDown = function () { delete _root.onMouseDown; gotoAndStop('lohani4'); }; } frame 2041 { play(); } movieClip 5964 { } frame 2060 { stop(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2072 { function aturSaja() { gotoAndStop('lohani5'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2081 { stop(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2088 { backWeapon(); } frame 2092 { backWeapon(); } frame 2096 { backWeapon(); } frame 2101 { backWeapon(); } frame 2106 { function aturSaja() { gotoAndStop('dua3'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2157 { stop(); musicPedesaan(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2159 { musicHoror(); backOrangKena(); backOrangMati(); } movieClip 6026 { } movieClip 6027 { frame 1 { gotoAndPlay(random(25) + 1); } } frame 2160 { function aturSaja() { gotoAndStop(1195); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2187 { stop(); musicIstana(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2196 { function aturSaja() { gotoAndStop('dua9'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2217 { stop(); musicStory(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2220 { function aturSaja() { gotoAndStop('dua11'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2232 { stop(); musicIstana(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6058 { } movieClip 6064 { } movieClip 6088 { } frame 2258 { function aturSaja() { gotoAndStop('lapor'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2266 { function aturSaja() { gotoAndStop('lapor2'); } stop(); _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2267 { play(); } frame 2329 { stop(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2330 { function aturSaja() { gotoAndStop('dua13'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2332 { stop(); musicPedesaan(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2333 { function aturSaja() { gotoAndStop('salt2'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2341 { stop(); musicStory(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6111 { } movieClip 6115 { } frame 2354 { function aturSaja() { gotoAndStop('dua15'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2382 { stop(); musicIstana(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2386 { stop(); _root.onMouseDown = function () { delete _root.onMouseDown; _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6139 { } frame 2387 { play(); } movieClip 6141 { } frame 2408 { stop(); musicCombat(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6150 { } frame 2414 { function aturSaja() { gotoAndStop(1577); } musicHoror(); _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2431 { stop(); musicHoror(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2439 { function aturSaja() { gotoAndStop('transport'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2446 { musicCombat1(); play(); } frame 2501 { function aturSaja() { gotoAndStop('pindah'); } stop(); trans_mc.gotoAndPlay(2); } frame 2516 { stop(); musicPedesaan(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2521 { function aturSaja() { gotoAndStop('akhir'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2531 { function aturSaja() { _root.gotoAndStop(_root._currentframe + 1); } stop(); _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2532 { stop(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2543 { function aturSaja() { gotoAndStop('dua19'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2582 { stop(); cekAbility(6); musicIstana(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6199 { } movieClip 6203 { } frame 2587 { stop(); _root.onMouseDown = function () { delete _root.onMouseDown; _root.gotoAndStop(_root._currentframe + 1); }; } frame 2588 { play(); } movieClip 6218 { } movieClip 6225 { } frame 2605 { stop(); backWeapon(); _root.onMouseDown = function () { delete _root.onMouseDown; _root.gotoAndStop(_root._currentframe + 1); }; } frame 2606 { stop(); _root.onMouseDown = function () { delete _root.onMouseDown; _root.gotoAndStop(_root._currentframe + 1); }; } frame 2607 { stop(); _root.onMouseDown = function () { delete _root.onMouseDown; _root.gotoAndStop(_root._currentframe + 1); }; } frame 2608 { function aturSaja() { gotoAndStop('transport2'); } stop(); trans_mc.gotoAndPlay(2); } frame 2621 { play(); musicCombat1(); } frame 2706 { function aturSaja() { gotoAndStop('pindah2'); } stop(); trans_mc.gotoAndPlay(2); } frame 2707 { stop(); musicIstana(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6248 { } movieClip 6253 { } frame 2713 { function aturSaja() { gotoAndStop('dua23'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2727 { stop(); musicStory(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6270 { } movieClip 6279 { } movieClip 6288 { } movieClip 6297 { } movieClip 6306 { frame 13 { _root.backPedang(); } } movieClip 6315 { frame 13 { _root.backPedang(); } } frame 2731 { function aturSaja() { gotoAndStop(1195); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2767 { stop(); musicStory(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6335 { } frame 2773 { function aturSaja() { gotoAndStop(2807); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2807 { stop(); musicHoror(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6342 { } movieClip 6349 { } frame 2819 { function aturSaja() { gotoAndStop('dua27'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2827 { stop(); musicPedesaan(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6370 { } movieClip 6374 { } movieClip 6381 { } movieClip 6387 { } movieClip 6395 { } movieClip 6401 { } movieClip 6408 { } movieClip 6414 { } movieClip 6422 { } frame 2834 { function aturSaja() { gotoAndStop('black'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2846 { stop(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 2861 { function aturSaja() { gotoAndStop(1195); } stop(); musicHoror(); _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } movieClip 6466 { } frame 2917 { stop(); musicIstana(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6477 { } movieClip 6483 { } frame 2922 { function aturSaja() { gotoAndStop('dua29'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2947 { function aturSaja() { gotoAndStop('bolo1'); } stop(); musicPedesaan(); _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } movieClip 6497 { } movieClip 6503 { } movieClip 6507 { } movieClip 6512 { } movieClip 6519 { } movieClip 6526 { } movieClip 6530 { } frame 2951 { stop(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6548 { } movieClip 6559 { } frame 2959 { function aturSaja() { gotoAndStop('bolo2'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2972 { stop(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6570 { } frame 2979 { function aturSaja() { gotoAndStop(2992); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 2992 { stop(); musicPedesaan(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 3000 { function aturSaja() { gotoAndStop('dua33'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 3022 { stop(); musicPedesaan(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6598 { } movieClip 6601 { } movieClip 6607 { } frame 3026 { totalMoney -= 30000; if (totalMoney <= 0) { totalMoney = 0; } } frame 3027 { function aturSaja() { gotoAndStop('dua37'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 3043 { stop(); keCaesar = true; tombolAtas(); box_mc.train_btn.enabled = false; box_mc.train_btn._alpha = 50; } movieClip 6617 { } frame 3082 { function aturSaja() { gotoAndStop(3093); } stop(); trans_mc.gotoAndPlay(2); } frame 3093 { play(); backSeas(); myMusic.stop(); } movieClip 6619 { } frame 3272 { function aturSaja() { gotoAndStop(3273); } stop(); trans_mc.gotoAndPlay(2); } frame 3273 { stop(); musicStory(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 3279 { function aturSaja() { jenisMaen = 'tanding'; gotoAndStop(1195); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 3303 { stop(); musicCombat1(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 3304 { stop(); _root.onMouseDown = function () { delete _root.onMouseDown; _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6635 { } frame 3305 { play(); musicHoror(); } frame 3338 { stop(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 3341 { function aturSaja() { gotoAndStop(1195); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 3353 { stop(); musicStory(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 3357 { function aturSaja() { gotoAndStop(3393); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 3362 { stop(); musicStory(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 3363 { function aturSaja() { gotoAndStop(1195); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 3393 { stop(); musicCombat1(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } movieClip 6658 { } frame 3398 { function aturSaja() { gotoAndStop('hasil5'); } _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } frame 3418 { stop(); musicCombat1(); _root.onMouseDown = function () { _root.gotoAndStop(_root._currentframe + 1); }; } frame 3419 { function aturSaja() { gotoAndStop('glory'); } stop(); _root.onMouseDown = function () { delete _root.onMouseDown; trans_mc.gotoAndPlay(2); }; } movieClip 6670 { } frame 3432 { play(); } frame 3717 { function aturSaja() { gotoAndStop(3718); } stop(); trans_mc.gotoAndPlay(2); } frame 3718 { function aturSaja() { musicIstana(); sudahKePeta = true; gotoAndPlay(211); } play(); musicStory(); quit_btn.onRollOver = function () { over(); }; quit_btn.onRelease = function () { klik(); trans_mc.gotoAndPlay(2); }; } frame 4772 { function aturSaja() { musicIstana(); sudahKePeta = true; gotoAndStop(211); } stop(); trans_mc.gotoAndPlay(2); }




http://swfchan.com/28/136303/info.shtml
Created: 9/2 -2019 05:38:31 Last modified: 9/2 -2019 05:38:31 Server time: 22/12 -2024 06:58:59