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

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

Isaac_WotL_1.666_Eternal Edition.swf

This is the info page for
Flash #237163

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


ActionScript [AS1/AS2]
Combined Code
movieClip 338 { } movieClip 339 b501 { } movieClip 342 { } movieClip 344 { } movieClip 345 { } movieClip 420 { } movieClip 421 { } movieClip 444 { } movieClip 445 b98 { } movieClip 460 { } movieClip 461 b497 { } movieClip 464 { } movieClip 465 b222 { } movieClip 467 { } movieClip 468 { } movieClip 471 { } movieClip 486 b499 { frame 1 { stop(); } } movieClip 490 { } movieClip 491 bloodsplash-teleport { frame 19 { done = true; } } movieClip 493 { } movieClip 494 b502 { } movieClip 529 { } movieClip 536 b500 { frame 1 { stop(); } frame 18 { done = true; } } movieClip 539 { } movieClip 555 { } movieClip 556 { } movieClip 557 b96 { frame 1 { stop(); } } movieClip 565 { } movieClip 566 { } movieClip 568 { } movieClip 569 b94- { frame 1 { stop(); } } movieClip 578 { } movieClip 579 { } movieClip 580 b80- { frame 1 { stop(); } } movieClip 581 soundz { } movieClip 584 p0 { frame 19 { done = true; } } movieClip 586 necksegment2 { frame 1 { _visible = false; } } movieClip 589 { } movieClip 594 { frame 4 { stop(); } } movieClip 598 { } movieClip 600 { } // unknown tag 88 length 63 movieClip 609 { frame 4 { stop(); } } movieClip 610 { frame 1 { stop(); } } movieClip 638 { frame 1 { stop(); } } movieClip 720 { frame 1 { stop(); } } movieClip 736 { } movieClip 782 { frame 1 { stop(); } } movieClip 785 { } movieClip 793 { } movieClip 794 { frame 8 { stop(); } } movieClip 802 { } movieClip 804 { } movieClip 806 { } movieClip 808 { } movieClip 809 { } movieClip 813 { } movieClip 815 { } movieClip 818 { } movieClip 820 { } movieClip 828 { } movieClip 847 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } button 850 { on (release, keyPress '<Space>') { _root.a.unpause = true; } } button 853 { on (release, keyPress '<Escape>') { gotoAndStop(6); } } button 856 { on (rollOver) { _root.showoff = _currentframe; } } movieClip 1052 { } button 1056 { on (release, keyPress '<Enter>') { gotoAndStop(5); } } movieClip 1063 { } movieClip 1071 { frame 1 { gotoAndStop(_root.skiner + 1); } } movieClip 1168 { } movieClip 1179 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } button 1182 { on (release) { _root.levz = undefined; _root.a.moveon(); _root.door = undefined; _root.gotoAndStop('menu'); } } button 1185 { on (release, keyPress '<Space>') { _root.a.moveon(); _root.levz = undefined; _root.door = undefined; _root.a.newstart(true); _root.gotoAndStop('reset'); } } movieClip 1299 { frame 1 { gotoAndStop(_root.unlll); } } movieClip 1300 { frame 1 { stop(); gogo = true; } frame 87 { nogo = false; } } button 1305 { on (release) { gotoAndStop(8); } } button 1308 { on (release, keyPress '<Escape>') { if (_root._currentframe == 2) { gotoAndStop(2); } else { gotoAndStop(1); _root.men.men.pos = -1; _root.men.men.fire = 30; } } } button 1312 { on (release) { _root.doit(this); _root.showit(); } } button 1316 { on (release) { _root.doit(this); _root.showit(); } } movieClip 1317 { } button 1322 { on (release) { _root.qua('HIGH'); } } movieClip 1323 { } button 1328 { on (release) { _root.qua('MEDIUM'); } } movieClip 1329 { } button 1334 { on (release) { _root.qua('AUTO'); } } movieClip 1335 { } button 1340 { on (release) { _root.qua('LOW'); } } movieClip 1341 { } movieClip 1343 { } // unknown tag 88 length 78 button 1347 { on (release) { _root.reser(_currentframe); } } movieClip 1355 { } button 1359 { on (release) { _root.wiq(2); } } movieClip 1360 { } button 1361 { on (release) { _root.wiq(true); } } movieClip 1362 { } button 1366 { on (release) { _root.wiq(false); } } movieClip 1367 { } button 1370 { on (release) { _root.a.unpause = true; } } button 1371 { on (release) { _root.levz = undefined; _root.a.moveon(); _root.door = undefined; _root.gotoAndStop('menu'); } } button 1376 { on (release, keyPress '<Enter>') { _root.levz = undefined; _root.a.moveon(); _root.door = undefined; _root.gotoAndStop('menu'); } } button 1379 { on (release, keyPress '<Escape>') { gotoAndStop(2); } } button 1382 { on (release) { so = SharedObject.getLocal('so', '/'); so.clear(); so.flush(); var myAppPath = mdm.Application.path; mdm.FileSystem.deleteFile(myAppPath + 'serial.txt'); _root.soz(); _parent.prevFrame(); } } button 1383 { on (release, keyPress '<Escape>') { _parent.prevFrame(); } } movieClip 1384 { } button 1386 { on (release, keyPress '<Escape>') { gotoAndStop(5); } } button 1390 { on (release) { _parent.chal(this); } } movieClip 1393 { } movieClip 1396 { } movieClip 1399 { } movieClip 1402 { } movieClip 1405 { } movieClip 1408 { } movieClip 1411 { } movieClip 1414 { } movieClip 1417 { } movieClip 1420 { } button 1421 { on (release, keyPress '<Escape>') { if (_root._currentframe == 2) { gotoAndStop(5); } else { gotoAndStop(1); _root.men.men.pos = -1; _root.men.men.fire = 30; } } } movieClip 1422 { frame 1 { function itit() { f2 = true; f3 = true; i = 0; while (i < 20) { trg = this['i' + i]; f1 = _root.cols[i]; if (f1 > 0) { trg.gotoAndStop(f1); } else { if (_root.colit > 0 && f2) { f2 = false; trg.gotoAndStop(_root.colit); } else { if (_root.it == 11 && f3) { f3 = false; if (_root.pilc >= 7) { trg.gotoAndStop(61); } else { trg.gotoAndStop(43); } } else { trg._visible = false; } } } ++i; } } stop(); } frame 2 { itit(); } frame 3 { itit(); _root.unl.gogo = true; } frame 5 { _root.qshow(); itit(); _root.showit(); } frame 6 { itit(); } frame 8 { _root.qshow(); itit(); _root.showit(); } frame 9 { function chal(trg) { _root.tex = men.cha.skiner; _root.skiner = 0; _root.men.men.cha.skiner = 0; _root.chala = trg.e; _root.darky(150); } _root.lox = [0, 76, 78, 77, 79, 81, 80, 82, 83, 84, 86]; lox = 4; if (_root.locker[4]) { lox = 9; } if (_root.so.data.icer > 0) { lox = 11; } e = 0; while (e < 11) { trg = this['c' + e]; trg.e = e; if (lox < e) { trg.gotoAndStop(3); } else { if (_root.locker[_root.lox[e]]) { trg.gotoAndStop(2); } else { trg.gotoAndStop(1); } } ++e; } _root.chala = 0; } } movieClip 1424 { } movieClip 1427 { } movieClip 1429 { frame 9 { _parent.prevFrame(); } } movieClip 1430 { frame 7 { _parent.nextFrame(); } } movieClip 1431 { } movieClip 1432 { } movieClip 1434 { } movieClip 1437 { } movieClip 1440 { frame 83 { stop(); _visible = false; } } movieClip 1441 hud { frame 1 { _visible = false; } } movieClip 1445 { } movieClip 1447 { } movieClip 1448 hearter { } movieClip 1450 { } movieClip 1451 { } movieClip 1453 { } movieClip 1454 { frame 41 { _parent.nextFrame(); } } movieClip 1455 fireblock { frame 1 { stop(); fire = true; } } movieClip 1456 emptyz { } movieClip 1458 { frame 1 { stop(); } } movieClip 1459 bullet1 { } movieClip 1465 { } movieClip 1466 { } movieClip 1467 { frame 23 { stop(); } } movieClip 1469 { } movieClip 1470 { frame 19 { _parent.gotoAndStop(1); } } movieClip 1471 breakblock { frame 1 { stop(); } } movieClip 1488 bloodsplash { frame 17 { done = true; } } movieClip 1493 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 1494 bloo { frame 141 { done = true; } } movieClip 1496 { } movieClip 1497 batter { } movieClip 1514 { } movieClip 1515 { } movieClip 1516 { } movieClip 1517 b13 { frame 1 { stop(); } } movieClip 1529 { } movieClip 1530 { frame 1 { stop(); } } movieClip 1539 { } movieClip 1544 { } movieClip 1545 { frame 1 { stop(); } } movieClip 1557 { } movieClip 1561 { } movieClip 1573 { } movieClip 1574 { frame 1 { stop(); h.stop(); } } movieClip 1591 { } movieClip 1593 { frame 1 { stop(); } } movieClip 1606 { } movieClip 1620 { } movieClip 1621 { frame 1 { stop(); } } movieClip 1635 { } movieClip 1636 { frame 1 { stop(); } } movieClip 1650 { } movieClip 1651 { frame 1 { stop(); } } movieClip 1654 { } movieClip 1664 { } movieClip 1665 { frame 1 { stop(); } } movieClip 1689 { } movieClip 1691 { } movieClip 1693 { } movieClip 1694 { frame 26 { stop(); } } movieClip 1697 { } movieClip 1698 { } movieClip 1699 { frame 1 { stop(); } } movieClip 1701 { } movieClip 1705 { frame 1 { stop(); } } movieClip 1708 { frame 1 { stop(); } } movieClip 1709 { } movieClip 1712 { frame 1 { stop(); } } movieClip 1715 { frame 1 { stop(); } } movieClip 1716 { } movieClip 1731 { } movieClip 1732 { } movieClip 1735 { frame 1 { _root.a.gish(this); } } movieClip 1738 { frame 1 { _root.a.gish(this); } } movieClip 1741 { frame 1 { _root.a.gish(this); } } movieClip 1743 { frame 1 { _root.a.gish(this); } } movieClip 1744 { frame 1 { gotoAndStop(_parent._parent._parent.stomps + 1); } } movieClip 1769 { } movieClip 1787 { } movieClip 1788 b3 { frame 1 { stop(); } frame 22 { cacheAsBitmap = true; } frame 33 { cacheAsBitmap = true; } frame 39 { cacheAsBitmap = true; } frame 40 { cacheAsBitmap = false; } frame 51 { cacheAsBitmap = true; } frame 52 { cacheAsBitmap = false; } frame 74 { cacheAsBitmap = true; } frame 75 { cacheAsBitmap = false; } frame 77 { cacheAsBitmap = true; } frame 94 { cacheAsBitmap = true; } frame 95 { cacheAsBitmap = false; } frame 97 { cacheAsBitmap = true; } frame 126 { cacheAsBitmap = true; } frame 127 { cacheAsBitmap = false; } frame 130 { cacheAsBitmap = true; } frame 132 { cacheAsBitmap = true; } frame 134 { cacheAsBitmap = true; } frame 135 { cacheAsBitmap = false; } frame 148 { cacheAsBitmap = true; } frame 149 { cacheAsBitmap = false; } } movieClip 1838 b2 { frame 1 { stop(); } frame 18 { done = true; } } movieClip 1840 { } movieClip 1841 { frame 192 { done = true; } } movieClip 1843 { } movieClip 1845 { } movieClip 1846 { } movieClip 1847 ball { } movieClip 1850 { } movieClip 1851 b9 { frame 1 { stop(); } frame 18 { done = true; } } movieClip 1855 gibs-red { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 1856 { } movieClip 1865 b8 { frame 1 { stop(); } frame 18 { done = true; } } movieClip 1867 { } movieClip 1869 { } movieClip 1871 { } movieClip 1873 { } movieClip 1875 { } movieClip 1877 { } movieClip 1879 { } movieClip 1880 { } movieClip 1882 { } movieClip 1883 { } movieClip 1884 { frame 15 { _parent.nextFrame(); } } movieClip 1885 { } movieClip 1887 { } movieClip 1889 { } movieClip 1891 { } movieClip 1892 { } movieClip 1893 { } movieClip 1894 { } movieClip 1895 { } movieClip 1897 { } movieClip 1899 { } movieClip 1900 { } movieClip 1901 { } movieClip 1902 { } movieClip 1903 { } movieClip 1904 { } movieClip 1905 { } movieClip 1906 b74 { frame 1 { stop(); h.stop(); } } movieClip 1910 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 1911 b7 { frame 1 { stop(); } frame 18 { done = true; } } movieClip 1914 { } movieClip 1916 { } movieClip 1919 { } movieClip 1920 { } movieClip 1921 { } movieClip 1922 b54 { frame 1 { stop(); } } movieClip 1927 { frame 1 { stop(); } } movieClip 1928 { } movieClip 1929 { } movieClip 1945 { } movieClip 1946 { frame 35 { _parent.gotoAndStop(1); } } movieClip 1947 { } movieClip 1952 { frame 1 { stop(); } } movieClip 1959 { } movieClip 1975 { } movieClip 1976 { frame 35 { _parent.gotoAndStop(1); } } movieClip 1977 { } movieClip 1980 { } movieClip 1981 { } movieClip 1983 { } movieClip 1984 { frame 1 { stop(); } } movieClip 1985 { } movieClip 2001 { } movieClip 2002 { frame 35 { _parent.gotoAndStop(1); } } movieClip 2003 { } movieClip 2011 { frame 1 { if (_parent._parent._parent._parent.s != 4) { _visible = false; } } } movieClip 2014 { } movieClip 2015 { } movieClip 2018 { } movieClip 2019 { } movieClip 2021 { frame 1 { stop(); } } movieClip 2037 { } movieClip 2038 { frame 26 { _root.soundy('Fetus_Land_1.wav', 100); } frame 35 { _parent.gotoAndStop(1); } } movieClip 2039 { frame 59 { _parent._parent.dones = true; _parent.gotoAndStop(3); } } movieClip 2040 { } movieClip 2041 { } movieClip 2043 { } movieClip 2065 { frame 20 { stop(); } } movieClip 2068 { } movieClip 2072 { frame 22 { _parent.gotoAndStop(1); } } movieClip 2075 { } movieClip 2083 { frame 20 { stop(); } } movieClip 2088 { frame 22 { _parent.gotoAndStop(5); } } movieClip 2090 { } movieClip 2113 { frame 20 { stop(); } } movieClip 2125 { frame 19 { _parent.gotoAndStop(1); } } movieClip 2127 { } movieClip 2139 { } movieClip 2140 { } movieClip 2156 { } movieClip 2157 { frame 35 { _parent.gotoAndStop(1); } } movieClip 2158 { } movieClip 2161 { } movieClip 2163 { } movieClip 2165 { } movieClip 2168 { frame 1 { _root.a.sloter(this); } } movieClip 2172 { frame 1 { _root.a.sloter(this); } } movieClip 2175 { frame 1 { _root.a.sloter(this); } } movieClip 2177 { } movieClip 2179 { } movieClip 2181 { } movieClip 2183 { } movieClip 2184 { } movieClip 2186 { } movieClip 2188 { } movieClip 2189 { } movieClip 2190 { } movieClip 2192 { } movieClip 2193 { } movieClip 2194 { } movieClip 2196 { } movieClip 2197 { } movieClip 2199 { } movieClip 2200 { } movieClip 2201 { } movieClip 2202 { } movieClip 2203 { } movieClip 2206 { frame 1 { _root.a.sloter(this); } } movieClip 2207 { frame 41 { stop(); } } movieClip 2213 { } movieClip 2215 { } movieClip 2217 { } movieClip 2218 { } movieClip 2220 { } movieClip 2221 { frame 37 { stop(); } } movieClip 2225 { frame 1 { stop(); } } movieClip 2226 { } movieClip 2229 { } movieClip 2232 { frame 1 { stop(); } } movieClip 2233 { } movieClip 2234 { } movieClip 2235 { } movieClip 2236 { frame 61 { _parent._parent._parent.done = true; } } movieClip 2239 { frame 1 { stop(); } } movieClip 2241 { } movieClip 2242 { } movieClip 2243 { } movieClip 2244 { } movieClip 2245 { } movieClip 2246 { frame 1 { stop(); } } movieClip 2248 { } movieClip 2250 { } movieClip 2261 { frame 1 { stop(); } } movieClip 2266 { } movieClip 2271 { } movieClip 2276 { } movieClip 2281 { } movieClip 2286 { } movieClip 2292 { } movieClip 2297 { } movieClip 2302 { frame 1 { stop(); } } movieClip 2307 { frame 1 { stop(); } } movieClip 2312 { frame 1 { stop(); } } movieClip 2317 { } movieClip 2319 { } movieClip 2320 { } movieClip 2325 { } movieClip 2330 { } movieClip 2334 { } movieClip 2338 { } movieClip 2343 { } movieClip 2348 { } movieClip 2353 { } movieClip 2358 { } movieClip 2363 { } movieClip 2367 { } movieClip 2373 { } movieClip 2374 { } movieClip 2379 { } movieClip 2384 { } movieClip 2388 { } movieClip 2393 { } movieClip 2396 { } movieClip 2400 { } movieClip 2404 { frame 1 { stop(); } } movieClip 2409 { } movieClip 2412 { } movieClip 2417 { } movieClip 2424 { } movieClip 2433 { } movieClip 2442 { frame 1 { stop(); } } movieClip 2444 { } movieClip 2445 { } movieClip 2450 { } movieClip 2459 { frame 1 { stop(); } frame 1 { stop(); } } movieClip 2468 { frame 1 { stop(); } } movieClip 2477 { } movieClip 2486 { } movieClip 2493 { } movieClip 2497 { } movieClip 2504 { } movieClip 2507 { } movieClip 2516 { } movieClip 2523 { } movieClip 2526 { } movieClip 2535 { } movieClip 2542 { } movieClip 2545 { } movieClip 2551 { } movieClip 2555 { } movieClip 2562 { } movieClip 2568 { } movieClip 2569 { } movieClip 2574 { } movieClip 2583 { } movieClip 2592 { } movieClip 2593 { frame 1 { stop(); } } movieClip 2598 { } movieClip 2606 { frame 1 { stop(); } } movieClip 2615 { frame 1 { stop(); } } movieClip 2624 { frame 1 { stop(); } } movieClip 2633 { frame 1 { stop(); } } movieClip 2642 { frame 1 { stop(); } } movieClip 2651 { frame 1 { stop(); } } movieClip 2660 { frame 1 { stop(); } } movieClip 2663 { } movieClip 2666 { } movieClip 2669 { } movieClip 2670 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 2683 { } movieClip 2687 { frame 1 { stop(); } } movieClip 2696 { frame 1 { stop(); } } movieClip 2705 { frame 1 { stop(); } } movieClip 2714 { frame 1 { stop(); } } movieClip 2719 { } movieClip 2722 { } movieClip 2727 { } movieClip 2731 { frame 1 { stop(); } } movieClip 2734 { } movieClip 2737 { } movieClip 2738 { } movieClip 2741 { frame 1 { stop(); } } movieClip 2750 { frame 1 { stop(); } } movieClip 2759 { frame 1 { stop(); } } movieClip 2766 { } movieClip 2773 { } movieClip 2780 { } movieClip 2785 { frame 1 { stop(); } } movieClip 2794 { frame 1 { stop(); } } movieClip 2803 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 2812 { frame 1 { stop(); } } movieClip 2821 { frame 1 { stop(); } } movieClip 2830 { frame 1 { stop(); } } movieClip 2836 { } movieClip 2839 { } movieClip 2842 { } movieClip 2845 { } movieClip 2850 { frame 1 { stop(); } } movieClip 2859 { frame 1 { stop(); } } movieClip 2868 { frame 1 { stop(); } } movieClip 2881 { frame 1 { stop(); } } movieClip 2894 { frame 1 { stop(); } } movieClip 2903 { frame 1 { stop(); } } movieClip 2912 { frame 1 { stop(); } } movieClip 2919 { } movieClip 2920 { } movieClip 2921 { } movieClip 2928 { } movieClip 2929 { } movieClip 2930 { } movieClip 2937 { } movieClip 2938 { } movieClip 2939 { } movieClip 2945 { } movieClip 2951 { frame 1 { stop(); } } movieClip 2957 { } movieClip 2959 { } movieClip 2960 { frame 1 { stop(); } } movieClip 2969 { frame 1 { stop(); } } movieClip 2978 { frame 1 { stop(); } } movieClip 2987 { frame 1 { stop(); } } movieClip 2996 { frame 1 { stop(); } } movieClip 3005 { frame 1 { stop(); } } movieClip 3014 { frame 1 { stop(); } } movieClip 3023 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 3032 { frame 1 { stop(); } } movieClip 3041 { frame 1 { stop(); } } movieClip 3050 { frame 1 { stop(); } } movieClip 3059 { frame 1 { stop(); } } movieClip 3068 { frame 1 { stop(); } } movieClip 3069 { frame 1 { stop(); } } movieClip 3070 { } movieClip 3077 { frame 1 { _root.a.gish(this, 2); } } movieClip 3084 { } movieClip 3087 { frame 1 { _root.a.gish(this, 2); } } movieClip 3092 { } movieClip 3095 { } movieClip 3100 { } movieClip 3103 { } movieClip 3108 { } movieClip 3121 { } movieClip 3134 { } movieClip 3147 { } movieClip 3157 { frame 1 { stop(); } } movieClip 3162 { } movieClip 3163 { frame 1 { gotoAndStop(Math.min(8, _root.a.sk)); } } movieClip 3164 { frame 1 { stop(); } frame 56 { _root.a.nextcha(); } } movieClip 3168 { frame 1 { stop(); } } movieClip 3226 { } movieClip 3239 { } movieClip 3354 { } movieClip 3355 { frame 20 { gotoAndPlay(1); } frame 21 { stop(); } } movieClip 3356 { } movieClip 3368 { } movieClip 3370 { } movieClip 3371 { frame 49 { _parent.gotoAndStop(1); } } movieClip 3373 { } movieClip 3374 { frame 17 { stop(); } } movieClip 3375 { } movieClip 3376 b5 { } movieClip 3378 { } movieClip 3380 { } movieClip 3382 { } movieClip 3384 { } movieClip 3386 { } movieClip 3387 { } movieClip 3389 { } movieClip 3390 { } movieClip 3392 { } movieClip 3393 { } movieClip 3395 { } movieClip 3396 { } movieClip 3399 { } movieClip 3400 { } movieClip 3401 b45 { } movieClip 3402 { } movieClip 3404 { } movieClip 3405 { } movieClip 3406 { frame 93 { _parent.gotoAndStop(6); _parent._parent.dones = true; } } movieClip 3407 b4 { frame 1 { stop(); } } movieClip 3409 { } movieClip 3411 { } movieClip 3413 { } movieClip 3415 { } movieClip 3416 { } movieClip 3418 { } movieClip 3419 { } movieClip 3420 { } movieClip 3422 { } movieClip 3423 { } movieClip 3424 { frame 9 { now = true; } } movieClip 3426 { } movieClip 3428 { } movieClip 3430 { } movieClip 3431 { frame 16 { now = true; } } movieClip 3432 { frame 16 { now = true; } } movieClip 3433 { frame 16 { now = true; } } movieClip 3434 { frame 5 { now = true; } frame 8 { if (_root.a.ball.length < 15) { now = true; } } } movieClip 3435 { frame 18 { now = true; } } movieClip 3436 b36 { } movieClip 3438 { } movieClip 3440 { } movieClip 3442 { } movieClip 3444 { } movieClip 3446 { } movieClip 3448 { } movieClip 3450 { } movieClip 3452 { } movieClip 3454 { } movieClip 3455 { } movieClip 3456 { } movieClip 3457 { } movieClip 3458 { } movieClip 3459 { } movieClip 3460 { } movieClip 3461 { } movieClip 3462 b20 { frame 1 { stop(); h.stop(); } } movieClip 3465 { } movieClip 3466 { } movieClip 3467 b17 { frame 1 { stop(); } } movieClip 3481 { } movieClip 3482 { } movieClip 3483 b11 { frame 1 { stop(); } } movieClip 3485 { } movieClip 3487 { } movieClip 3492 { } movieClip 3493 { } movieClip 3494 { } movieClip 3495 b90 { frame 1 { stop(); h.stop(); } } movieClip 3497 { } movieClip 3498 { } movieClip 3500 { } movieClip 3502 { } movieClip 3503 { frame 1 { stop(); } } movieClip 3504 { } movieClip 3505 b91 { frame 1 { stop(); } } movieClip 3507 { } movieClip 3508 { } movieClip 3509 { } movieClip 3510 b92 { frame 1 { stop(); } } movieClip 3512 { } movieClip 3513 { } movieClip 3515 { } movieClip 3517 { } movieClip 3519 { } movieClip 3520 b93 { frame 1 { stop(); } } movieClip 3522 { } movieClip 3524 { } movieClip 3525 { } movieClip 3527 { } movieClip 3528 { } movieClip 3530 { } movieClip 3532 { } movieClip 3533 { } movieClip 3534 b89 { } movieClip 3537 { } movieClip 3540 { } movieClip 3543 { } movieClip 3544 { } movieClip 3557 { } movieClip 3570 { } movieClip 3583 { } movieClip 3584 { } movieClip 3585 { } movieClip 3599 { frame 1 { stop(); } } movieClip 3613 { frame 1 { stop(); } } movieClip 3628 { frame 1 { stop(); } } movieClip 3629 { } movieClip 3630 { } movieClip 3631 b88 { } movieClip 3640 { frame 1 { stop(); } } movieClip 3641 { } movieClip 3643 { } movieClip 3644 { } movieClip 3645 b86 { frame 1 { stop(); h.stop(); } } movieClip 3651 { } movieClip 3657 { } movieClip 3658 { } movieClip 3659 b94 { frame 1 { stop(); } } movieClip 3668 { } movieClip 3669 { } movieClip 3670 b85 { frame 1 { stop(); } } movieClip 3672 { frame 1 { _root.a.gish(this); } } movieClip 3675 { frame 1 { _root.a.gish(this); } } movieClip 3676 { } movieClip 3677 { } movieClip 3680 { frame 1 { _root.a.gish(this); } } movieClip 3683 { frame 1 { _root.a.gish(this); } } movieClip 3684 { } movieClip 3687 { frame 1 { _root.a.gish(this); } } movieClip 3688 { } movieClip 3691 { frame 1 { _root.a.gish(this); } } movieClip 3692 { } movieClip 3693 { } movieClip 3694 b101 { frame 1 { stop(); h.stop(); } } movieClip 3697 { frame 1 { _root.a.gish(this); } } movieClip 3698 { } movieClip 3699 { } movieClip 3702 { frame 1 { _root.a.gish(this); } } movieClip 3705 { frame 1 { _root.a.gish(this); } } movieClip 3708 { frame 1 { _root.a.gish(this); } } movieClip 3709 b97 { } movieClip 3711 { } movieClip 3712 { } movieClip 3713 { } movieClip 3714 { } movieClip 3715 { } movieClip 3716 { } movieClip 3717 { } movieClip 3718 { } movieClip 3719 { } movieClip 3720 b99 { } movieClip 3723 { } movieClip 3725 { } movieClip 3727 { } movieClip 3729 { frame 1 { stop(); if (_root.altsat && _root.lev != _root.bossl) { gotoAndStop(2); } } } movieClip 3731 { } movieClip 3733 { } movieClip 3734 { } movieClip 3740 { } movieClip 3742 { } movieClip 3744 { } movieClip 3746 { } movieClip 3748 { } movieClip 3750 { } movieClip 3752 { } movieClip 3753 { } movieClip 3755 { } movieClip 3756 { } movieClip 3757 { } movieClip 3759 { } movieClip 3761 { } movieClip 3763 { } movieClip 3765 { } movieClip 3767 { } movieClip 3768 { } movieClip 3769 { } movieClip 3771 { } movieClip 3772 { } movieClip 3775 { } movieClip 3777 { } movieClip 3781 { } movieClip 3782 { } movieClip 3783 b84 { } movieClip 3785 { } movieClip 3788 { frame 1 { if (_root.locker[45]) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 3789 { } movieClip 3791 { } movieClip 3792 { frame 9 { stop(); } } movieClip 3793 { } movieClip 3794 { } movieClip 3795 { } movieClip 3796 { frame 1 { _parent.veins.gotoAndPlay(1); } } movieClip 3797 { frame 7 { _parent.veins.gotoAndPlay(1); } frame 14 { stop(); } } movieClip 3798 b78 { } movieClip 3812 { } movieClip 3825 { } movieClip 3826 { } movieClip 3835 { frame 1 { stop(); } } movieClip 3836 { } movieClip 3838 { } movieClip 3840 { } movieClip 3842 { } movieClip 3846 { } movieClip 3847 { } movieClip 3849 { } movieClip 3851 { } movieClip 3852 { } movieClip 3853 b52 { frame 1 { stop(); h.stop(); } } movieClip 3855 { } movieClip 3861 { } movieClip 3863 { } movieClip 3865 { } movieClip 3868 { } movieClip 3869 { } movieClip 3870 { } movieClip 3871 { } movieClip 3874 { } movieClip 3877 { } movieClip 3878 { } movieClip 3882 { } movieClip 3886 { } movieClip 3887 { } movieClip 3889 { } movieClip 3890 { frame 15 { _parent.nextFrame(); } } movieClip 3891 { } movieClip 3892 { } movieClip 3893 b81 { } movieClip 3895 { } movieClip 3897 { } movieClip 3899 { } movieClip 3901 { } movieClip 3903 { } movieClip 3906 { frame 1 { _root.a.horsch(this); } } movieClip 3907 { } movieClip 3908 { } movieClip 3909 { } movieClip 3911 { } movieClip 3912 { } movieClip 3913 b82 { } movieClip 3915 { } movieClip 3917 { } movieClip 3919 { } movieClip 3920 { } movieClip 3922 { } movieClip 3924 { } movieClip 3925 { } movieClip 3927 { } movieClip 3928 { } movieClip 3929 { } movieClip 3930 { } movieClip 3931 { } movieClip 3933 { } movieClip 3935 { } movieClip 3936 { } movieClip 3937 b64 { } movieClip 3940 { frame 1 { _root.a.gish(this); } } movieClip 3942 { } movieClip 3945 { frame 1 { _root.a.gish(this); } } movieClip 3948 { frame 1 { _root.a.gish(this); } } movieClip 3951 { frame 1 { _root.a.gish(this); } } movieClip 3954 { frame 1 { _root.a.gish(this); } } movieClip 3957 { frame 1 { _root.a.gish(this); } } movieClip 3958 { } movieClip 3959 { } movieClip 3960 { } movieClip 3963 { frame 1 { _root.a.gish(this); } } movieClip 3964 { } movieClip 3967 { frame 1 { _root.a.gish(this); } } movieClip 3968 { frame 37 { gotoAndStop(_currentframe - 2); } } movieClip 3971 { frame 1 { _root.a.gish(this); } } movieClip 3972 { frame 27 { _parent.nextFrame(); } } movieClip 3973 { } movieClip 3987 { } movieClip 3988 { } movieClip 3993 { frame 1 { _root.a.gish(this); } } movieClip 3996 { } movieClip 3997 b65 { } movieClip 3999 { } movieClip 4001 { } movieClip 4003 { } movieClip 4005 { } movieClip 4007 { } movieClip 4009 { } movieClip 4010 { } movieClip 4011 { } movieClip 4012 { } movieClip 4014 { } movieClip 4016 { } movieClip 4017 { } movieClip 4019 { } movieClip 4020 { } movieClip 4021 { } movieClip 4022 { frame 33 { _parent.gotoAndStop(11); } } movieClip 4023 { } movieClip 4024 { } movieClip 4025 { } movieClip 4026 { } movieClip 4028 { } movieClip 4029 { } movieClip 4030 { } movieClip 4031 { } movieClip 4032 b66 { } movieClip 4034 { } movieClip 4036 { } movieClip 4038 { } movieClip 4040 { } movieClip 4041 { } movieClip 4042 { } movieClip 4043 { } movieClip 4045 { } movieClip 4046 { } movieClip 4048 { } movieClip 4049 { frame 27 { _parent.nextFrame(); } } movieClip 4050 { } movieClip 4051 { } movieClip 4052 { } movieClip 4054 { } movieClip 4055 { } movieClip 4056 b63 { } movieClip 4059 { frame 1 { _root.a.gish(this); } } movieClip 4062 { frame 1 { _root.a.gish(this); } } movieClip 4065 { frame 1 { _root.a.gish(this); } } movieClip 4066 { } movieClip 4069 { frame 1 { _root.a.gish(this); } } movieClip 4072 { frame 1 { _root.a.gish(this); } } movieClip 4073 { } movieClip 4076 { frame 1 { _root.a.gish(this); } } movieClip 4079 { frame 1 { _root.a.gish(this); } } movieClip 4080 { } movieClip 4081 { } movieClip 4084 { frame 1 { _root.a.gish(this); } } movieClip 4085 { } movieClip 4086 { } movieClip 4087 { } movieClip 4088 b43 { frame 1 { stop(); h.stop(); } } movieClip 4090 { } movieClip 4091 { } movieClip 4092 { } movieClip 4094 { } movieClip 4095 { } movieClip 4096 { frame 24 { _parent.nextFrame(); } } movieClip 4098 { } movieClip 4099 { } movieClip 4100 b83 { } movieClip 4103 { frame 1 { _root.a.gish(this); } } movieClip 4106 { frame 1 { _root.a.gish(this); } } movieClip 4110 { frame 1 { _root.a.gish(this); } } movieClip 4111 { frame 1 { function onEnterFrame() { if (_root.slugeye < 1) { gotoAndStop(10 - _root.slugeye); } else { gotoAndStop(_root.slugeye); } } if (_root.slugeye < 1) { gotoAndStop(10 - _root.slugeye); } else { gotoAndStop(_root.slugeye); } } } movieClip 4113 { frame 1 { _root.a.gish(this); } } movieClip 4114 { } movieClip 4115 { } movieClip 4118 { frame 1 { _root.a.gish(this); } } movieClip 4121 { frame 1 { _root.a.gish(this); } } movieClip 4122 { } movieClip 4123 { } movieClip 4126 { frame 1 { _root.a.gish(this); } } movieClip 4129 { frame 1 { _root.a.gish(this); } } movieClip 4130 { } movieClip 4131 { } movieClip 4132 { } movieClip 4134 { } movieClip 4135 { } movieClip 4136 { frame 33 { _parent.nextFrame(); } } movieClip 4137 { } movieClip 4138 { } movieClip 4139 { } movieClip 4140 b68 { frame 1 { stop(); h.stop(); } } movieClip 4142 { frame 1 { _root.a.gish(this); } } movieClip 4147 { frame 1 { _root.a.gish(this); } } movieClip 4148 { } movieClip 4149 { } movieClip 4150 { } movieClip 4154 { frame 1 { _root.a.gish(this); } } movieClip 4159 { frame 1 { _root.a.gish(this); } } movieClip 4160 { } movieClip 4165 { frame 1 { _root.a.gish(this); } } movieClip 4166 { } movieClip 4167 { } movieClip 4168 b67 { frame 1 { stop(); h.stop(); } } movieClip 4171 { } movieClip 4172 { } movieClip 4173 { } movieClip 4174 { } movieClip 4177 { } movieClip 4179 { } movieClip 4180 b51 { frame 1 { stop(); h.stop(); } } movieClip 4182 { frame 1 { _root.a.gish(this); } } movieClip 4185 { frame 1 { _root.a.gish(this); } } movieClip 4188 { frame 1 { _root.a.gish(this); } } movieClip 4191 { frame 1 { _root.a.gish(this); } } movieClip 4192 { } movieClip 4193 { } movieClip 4194 { } movieClip 4197 { frame 1 { _root.a.gish(this); } } movieClip 4200 { frame 1 { _root.a.gish(this); } } movieClip 4201 { } movieClip 4202 { } movieClip 4203 { } movieClip 4206 { frame 1 { _root.a.gish(this); } } movieClip 4207 { } movieClip 4210 { frame 1 { _root.a.gish(this); } } movieClip 4211 { } movieClip 4212 b69 { frame 1 { stop(); } } movieClip 4215 { frame 1 { _root.a.gish(this); } } movieClip 4216 { } movieClip 4217 { } movieClip 4220 { frame 1 { _root.a.gish(this); } } movieClip 4221 { } movieClip 4222 { } movieClip 4225 { frame 1 { _root.a.gish(this); } } movieClip 4226 { } movieClip 4227 b71 { frame 1 { stop(); h.stop(); } } movieClip 4229 { } movieClip 4232 { } movieClip 4233 { frame 1 { stop(); } } movieClip 4234 { } movieClip 4235 { frame 9 { doit = true; } } movieClip 4236 { frame 8 { doit = true; } frame 10 { doit = true; } frame 13 { doit = true; } frame 15 { doit = true; } frame 17 { doit = true; } frame 19 { doit = true; } frame 21 { doit = true; } frame 23 { doit = true; } } movieClip 4237 { } movieClip 4238 b60 { frame 1 { stop(); } } movieClip 4240 { } movieClip 4242 { } movieClip 4244 { } movieClip 4246 { } movieClip 4248 { } movieClip 4250 { } movieClip 4252 { } movieClip 4253 { } movieClip 4254 { } movieClip 4255 { } movieClip 4256 { } movieClip 4257 { } movieClip 4259 { } movieClip 4260 { } movieClip 4261 b59 { frame 1 { stop(); } } movieClip 4264 { } movieClip 4265 { } movieClip 4268 { } movieClip 4269 { } movieClip 4270 b56 { frame 1 { stop(); } } movieClip 4278 { } movieClip 4280 { } movieClip 4289 { frame 1 { stop(); } } movieClip 4290 { } movieClip 4292 { } movieClip 4293 { } movieClip 4294 b53 { frame 1 { stop(); h.stop(); } } movieClip 4307 { } movieClip 4308 { frame 1 { stop(); } } movieClip 4312 { frame 1 { _root.a.gish(this); } } movieClip 4316 { frame 1 { _root.a.gish(this); } } movieClip 4320 { frame 1 { _root.a.gish(this); } } movieClip 4324 { frame 1 { _root.a.gish(this); } } movieClip 4325 { } movieClip 4329 { frame 1 { _root.a.gish(this); } } movieClip 4330 { } movieClip 4333 { frame 1 { _root.a.gish(this); } } movieClip 4336 { frame 1 { _root.a.gish(this); } } movieClip 4337 { } movieClip 4341 { frame 1 { _root.a.gish(this); } } movieClip 4350 { } movieClip 4352 { frame 1 { _root.a.gish(this, true); } } movieClip 4353 { } movieClip 4357 { frame 1 { _root.a.gish(this); } } movieClip 4361 { frame 1 { _root.a.gish(this); } } movieClip 4362 { } movieClip 4363 { frame 18 { _parent.nextFrame(); } } movieClip 4364 { } movieClip 4365 { } movieClip 4366 b79 { } movieClip 4373 { } movieClip 4374 { } movieClip 4375 { } movieClip 4377 { } movieClip 4379 { } movieClip 4380 { } movieClip 4381 { } movieClip 4382 b58 { frame 1 { stop(); } } movieClip 4385 { } movieClip 4387 { } movieClip 4388 { } movieClip 4389 { } movieClip 4390 { } movieClip 4391 b57 { frame 1 { stop(); } } movieClip 4395 { frame 1 { _root.a.gish(this); } } movieClip 4399 { frame 1 { _root.a.gish(this); } } movieClip 4403 { frame 1 { _root.a.gish(this); } } movieClip 4407 { frame 1 { _root.a.gish(this); } } movieClip 4411 { frame 1 { _root.a.gish(this); } } movieClip 4415 { frame 1 { _root.a.gish(this); } } movieClip 4419 { frame 1 { _root.a.gish(this); } } movieClip 4423 { frame 1 { _root.a.gish(this); } } movieClip 4427 { frame 1 { _root.a.gish(this); } } movieClip 4431 { frame 1 { _root.a.gish(this); } } movieClip 4435 { frame 1 { _root.a.gish(this); } } movieClip 4439 { frame 1 { _root.a.gish(this); } } movieClip 4443 { frame 1 { _root.a.gish(this); } } movieClip 4447 { frame 1 { _root.a.gish(this); } } movieClip 4451 { frame 1 { _root.a.gish(this); } } movieClip 4452 { frame 1 { stop(); } } movieClip 4456 { frame 1 { _root.a.gish(this); } } movieClip 4460 { frame 1 { _root.a.gish(this); } } movieClip 4462 { } movieClip 4466 { frame 1 { _root.a.gish(this); } } movieClip 4467 { frame 22 { _parent.gotoAndStop(1); } } movieClip 4468 { frame 22 { _parent.gotoAndStop(1); } } movieClip 4469 { frame 22 { _parent.gotoAndStop(1); } } movieClip 4470 { } movieClip 4471 { } movieClip 4472 { } movieClip 4473 { } movieClip 4474 { } movieClip 4475 { } movieClip 4476 { } movieClip 4477 { } movieClip 4478 { } movieClip 4479 { } movieClip 4480 b28 { } movieClip 4483 { frame 1 { stop(); h.stop(); } } movieClip 4484 { } movieClip 4485 b44 { frame 1 { stop(); h.stop(); } } movieClip 4490 { } movieClip 4495 { } movieClip 4500 { } movieClip 4501 { } movieClip 4506 { } movieClip 4511 { } movieClip 4516 { } movieClip 4517 { } movieClip 4518 { } movieClip 4523 { } movieClip 4528 { } movieClip 4533 { } movieClip 4534 { } movieClip 4535 b55 { frame 1 { stop(); } } movieClip 4541 { } movieClip 4542 { } movieClip 4555 { } movieClip 4557 { } movieClip 4562 { } movieClip 4566 { } movieClip 4569 { } movieClip 4573 { } movieClip 4577 { } movieClip 4580 { } movieClip 4584 { } movieClip 4588 { } movieClip 4589 { } movieClip 4592 { } movieClip 4595 { } movieClip 4596 { } movieClip 4599 { } movieClip 4602 { } movieClip 4603 { } movieClip 4604 b39 { frame 1 { stop(); h.stop(); } } movieClip 4606 { } movieClip 4607 { } movieClip 4608 { } movieClip 4609 { } movieClip 4610 b40 { frame 1 { stop(); } } movieClip 4613 { } movieClip 4614 { frame 26 { _parent.nextFrame(); } } movieClip 4615 locktile { frame 1 { stop(); } } movieClip 4620 { } movieClip 4621 { } movieClip 4622 { } movieClip 4623 b32 { frame 1 { stop(); } } movieClip 4624 { } movieClip 4625 { } movieClip 4626 { } movieClip 4627 b30 { } movieClip 4629 necksegment { frame 1 { _visible = false; } } movieClip 4633 { } movieClip 4636 { } movieClip 4639 { } movieClip 4640 { frame 1 { stop(); } } movieClip 4652 { } movieClip 4654 { } movieClip 4655 b35 { frame 1 { stop(); h.stop(); } } movieClip 4668 { } movieClip 4681 { } movieClip 4682 { } movieClip 4686 { } movieClip 4689 { } movieClip 4690 { frame 1 { stop(); } } movieClip 4695 { frame 1 { stop(); } } movieClip 4696 { } movieClip 4698 { } movieClip 4699 b41 { frame 1 { stop(); h.stop(); } } movieClip 4701 { } movieClip 4702 { } movieClip 4704 { } movieClip 4705 { } movieClip 4707 { } movieClip 4708 { } movieClip 4709 { } movieClip 4710 b34 { frame 1 { stop(); } } movieClip 4714 { frame 1 { stop(); } } movieClip 4716 { } movieClip 4718 { } movieClip 4728 { frame 50 { _root.soundy('death_reverse.wav'); } frame 74 { _parent.hp += 15; _parent.outway = false; } } movieClip 4732 { } movieClip 4738 { frame 50 { _root.soundy('death_reverse.wav'); } frame 74 { _parent.hp += 15; _parent.outway = false; } } movieClip 4739 b24 { frame 1 { stop(); h.stop(); } } movieClip 4742 { } movieClip 4754 { } movieClip 4755 { } movieClip 4763 { } movieClip 4764 b87 { frame 1 { stop(); h.stop(); } } movieClip 4767 { } movieClip 4770 { } movieClip 4771 { } movieClip 4772 { } movieClip 4773 b25 { frame 1 { stop(); } } movieClip 4775 { } movieClip 4776 { } movieClip 4778 { } movieClip 4779 { } movieClip 4780 { } movieClip 4782 { } movieClip 4783 { } movieClip 4785 { } movieClip 4786 { } movieClip 4788 { } movieClip 4789 { } movieClip 4790 { } movieClip 4791 b31 { frame 1 { stop(); } } movieClip 4792 { } movieClip 4801 { } movieClip 4802 b26 { frame 1 { stop(); } } movieClip 4804 { } movieClip 4806 { frame 1 { _visible = false; } } movieClip 4807 { } movieClip 4808 { frame 9 { open = true; } frame 55 { open = false; } frame 62 { _parent.gotoAndStop(1); } } movieClip 4809 { frame 9 { open = true; } frame 55 { open = false; } frame 62 { _parent.gotoAndStop(1); } } movieClip 4810 b27 { frame 1 { stop(); } } movieClip 4812 { } movieClip 4813 { } movieClip 4815 { } movieClip 4816 { } movieClip 4817 { } movieClip 4819 { } movieClip 4820 { } movieClip 4823 { } movieClip 4826 { } movieClip 4829 { } movieClip 4831 { } movieClip 4832 { frame 6 { stop(); } } movieClip 4833 b23 { frame 1 { stop(); } } movieClip 4838 { } movieClip 4839 egg { frame 1 { stop(); egg = true; } } movieClip 4841 { } movieClip 4842 { } movieClip 4844 { } movieClip 4845 { } movieClip 4846 { } movieClip 4847 b21 { frame 1 { stop(); } } movieClip 4851 { frame 1 { stop(); } } movieClip 4852 { } movieClip 4853 { } movieClip 4854 { } movieClip 4857 { frame 1 { stop(); } } movieClip 4858 { } movieClip 4859 b22 { frame 1 { stop(); } } movieClip 4864 { } movieClip 4869 { } movieClip 4870 { } movieClip 4871 { } movieClip 4872 b61 { frame 1 { stop(); } } movieClip 4876 { } movieClip 4877 { } movieClip 4881 { } movieClip 4885 { } movieClip 4889 { } movieClip 4893 { } movieClip 4894 { } movieClip 4895 { } movieClip 4899 { } movieClip 4900 { } movieClip 4901 { } movieClip 4902 b15 { } movieClip 4903 { } movieClip 4904 b80 { frame 1 { stop(); } } movieClip 4913 { } movieClip 4914 { } movieClip 4917 { } movieClip 4918 { frame 1 { stop(); } } movieClip 4922 { } movieClip 4923 { } movieClip 4927 { } movieClip 4929 { } movieClip 4930 { } movieClip 4931 { } movieClip 4932 b16 { frame 1 { stop(); } } movieClip 4933 { } movieClip 4934 { } movieClip 4935 b29 { frame 1 { stop(); } } movieClip 4938 { } movieClip 4941 { } movieClip 4944 { } movieClip 4945 { } movieClip 4948 { } movieClip 4949 { } movieClip 4959 { } movieClip 4975 { } movieClip 4988 { } movieClip 4989 { } movieClip 4990 b14 { frame 1 { stop(); } } movieClip 4994 { } movieClip 5013 { } movieClip 5023 { } movieClip 5024 b12 { frame 1 { stop(); } } movieClip 5043 { frame 1 { stop(); } } movieClip 5048 { } movieClip 5050 { } movieClip 5051 b10 { frame 1 { stop(); h.stop(); } } movieClip 5052 { } movieClip 5053 b18 { frame 1 { stop(); } } movieClip 5060 { } movieClip 5062 { } movieClip 5069 { } movieClip 5070 b46 { frame 1 { stop(); h.stop(); } } movieClip 5071 { } movieClip 5072 { } movieClip 5076 { } movieClip 5077 { } movieClip 5078 { } movieClip 5079 { } movieClip 5080 b38 { frame 1 { stop(); } } movieClip 5083 { frame 1 { _root.a.gish(this); } } movieClip 5084 { } movieClip 5087 { frame 1 { _root.a.gish(this); } } movieClip 5088 { } movieClip 5091 { frame 1 { _root.a.gish(this); } } movieClip 5094 { frame 1 { _root.a.gish(this); } } movieClip 5097 { } movieClip 5100 { } movieClip 5101 { } movieClip 5102 { } movieClip 5105 { frame 1 { _root.a.gish(this); } } movieClip 5108 { frame 1 { _root.a.gish(this); } } movieClip 5111 { frame 1 { _root.a.gish(this); } } movieClip 5114 { frame 1 { _root.a.gish(this); } } movieClip 5115 { } movieClip 5126 { } movieClip 5127 { } movieClip 5130 { frame 1 { _root.a.gish(this); } } movieClip 5131 { frame 1 { _root.a.gish(this); } } movieClip 5132 { frame 17 { stop(); } } movieClip 5133 b62 { } movieClip 5135 { } movieClip 5136 { } movieClip 5139 { } movieClip 5140 { frame 1 { _root.a.gish(this); } } movieClip 5141 { } movieClip 5145 { } movieClip 5148 { } movieClip 5151 { frame 1 { _root.a.gish(this); } } movieClip 5154 { frame 1 { _root.a.gish(this); } } movieClip 5156 { } movieClip 5159 { frame 1 { _root.a.gish(this); } } movieClip 5160 { } movieClip 5161 { } movieClip 5164 { frame 1 { _root.a.gish(this); } } movieClip 5165 { } movieClip 5166 { } movieClip 5169 { frame 1 { _root.a.gish(this, true); } } movieClip 5170 { } movieClip 5171 { } movieClip 5172 { } movieClip 5173 { } movieClip 5174 b102 { } movieClip 5177 { frame 1 { _root.a.gish(this); } } movieClip 5180 { frame 1 { _root.a.gish(this); } } movieClip 5183 { frame 1 { _root.a.gish(this); } } movieClip 5186 { frame 1 { _root.a.gish(this); } } movieClip 5189 { frame 1 { _root.a.gish(this); } } movieClip 5190 { } movieClip 5191 { } movieClip 5194 { frame 1 { _root.a.gish(this); } } movieClip 5195 { } movieClip 5196 { } movieClip 5199 { frame 1 { _root.a.gish(this); } } movieClip 5200 { } movieClip 5203 { frame 1 { _root.a.gish(this); } } movieClip 5204 { } movieClip 5207 { frame 1 { _root.a.gish(this); } } movieClip 5208 { } movieClip 5209 b100 { frame 1 { stop(); h.stop(); } } movieClip 5218 { frame 1 { stop(); } } movieClip 5219 { } movieClip 5228 { frame 1 { stop(); } } movieClip 5229 { frame 7 { if (_root.a.altboss) { d.gotoAndStop(5); } } } movieClip 5230 { } movieClip 5231 { frame 7 { if (_root.a.altboss) { d.d.gotoAndStop(5); } } } movieClip 5232 b19 { frame 1 { stop(); h.stop(); } } movieClip 5237 { } movieClip 5242 { frame 23 { stop(); } } movieClip 5243 breakblock4 { frame 1 { stop(); } } movieClip 5252 { frame 1 { stop(); } } movieClip 5261 { frame 1 { stop(); } } movieClip 5262 { } movieClip 5264 { } movieClip 5265 { } movieClip 5268 { } movieClip 5269 b50 { frame 1 { stop(); h.stop(); } } movieClip 5274 { frame 1 { stop(); } } movieClip 5275 { } movieClip 5277 { } movieClip 5278 { } movieClip 5279 { } movieClip 5280 b48 { frame 1 { stop(); h.stop(); } } movieClip 5286 { frame 1 { stop(); } } movieClip 5287 { } movieClip 5299 { } movieClip 5300 { } movieClip 5301 { } movieClip 5302 b47 { frame 1 { stop(); h.stop(); } } movieClip 5303 { } movieClip 5306 { } movieClip 5307 { } movieClip 5310 { } movieClip 5312 { } movieClip 5313 b49 { frame 1 { stop(); h.stop(); } } movieClip 5314 toothhit { } movieClip 5316 { } movieClip 5320 { } movieClip 5322 { } movieClip 5323 { } movieClip 5325 { } movieClip 5329 { } movieClip 5330 { } movieClip 5343 { } movieClip 5356 { } movieClip 5357 { } movieClip 5360 { } movieClip 5361 { } movieClip 5365 { } movieClip 5366 { } movieClip 5368 { } movieClip 5369 { } movieClip 5373 { } movieClip 5374 { } movieClip 5388 { } movieClip 5389 { } movieClip 5391 { } movieClip 5404 { } movieClip 5417 { } movieClip 5418 { frame 1 { stop(); } } movieClip 5430 { } movieClip 5443 { } movieClip 5444 { frame 1 { stop(); } } movieClip 5451 { } movieClip 5453 { } movieClip 5466 { } movieClip 5467 { frame 1 { stop(); } } movieClip 5469 { } movieClip 5470 { } movieClip 5473 { } movieClip 5485 { } movieClip 5486 { } movieClip 5488 { } movieClip 5489 { } movieClip 5496 { } movieClip 5497 { } movieClip 5499 { } movieClip 5501 { } movieClip 5503 { } movieClip 5506 { frame 1 { _root.a.horsch(this); } } movieClip 5507 { frame 1 { stop(); } } movieClip 5510 { frame 1 { stop(); } } movieClip 5514 { frame 1 { stop(); } } movieClip 5516 { } movieClip 5517 { } movieClip 5521 { } movieClip 5522 { } movieClip 5524 { } movieClip 5525 { } movieClip 5527 { } movieClip 5531 { } movieClip 5532 { } movieClip 5535 { } movieClip 5547 { } movieClip 5550 { } movieClip 5562 { } movieClip 5563 { } movieClip 5572 { } movieClip 5573 { } movieClip 5574 { } movieClip 5577 { } movieClip 5579 { } movieClip 5580 { } movieClip 5582 { } movieClip 5588 { } movieClip 5589 { } movieClip 5590 { frame 1 { stop(); } } movieClip 5591 { frame 1 { stop(); } } movieClip 5592 { } movieClip 5595 { frame 1 { _root.a.horsch(this); } } movieClip 5596 { } movieClip 5607 { } movieClip 5608 { } movieClip 5610 { } movieClip 5612 { } movieClip 5614 { } movieClip 5619 { } movieClip 5623 { } movieClip 5625 { } movieClip 5626 { } movieClip 5627 { } movieClip 5628 { } movieClip 5629 { } movieClip 5630 { } movieClip 5631 { } movieClip 5632 { } movieClip 5635 { } movieClip 5637 { } movieClip 5638 { } movieClip 5639 { frame 42 { stop(); } } movieClip 5640 { } movieClip 5641 { frame 42 { stop(); } } movieClip 5642 { frame 42 { stop(); } } movieClip 5643 { frame 42 { stop(); } } movieClip 5645 { } movieClip 5646 { frame 42 { stop(); } } movieClip 5647 { frame 42 { stop(); } } movieClip 5649 { } movieClip 5650 { frame 42 { stop(); } } movieClip 5651 { frame 42 { stop(); } } movieClip 5652 { } movieClip 5656 { } movieClip 5657 { } movieClip 5658 { } movieClip 5659 { } movieClip 5660 { } movieClip 5661 { } movieClip 5662 { } movieClip 5663 { } movieClip 5664 { } movieClip 5665 { } movieClip 5668 { } movieClip 5672 { } movieClip 5673 { } movieClip 5674 { } movieClip 5675 { } movieClip 5677 { } movieClip 5679 { } movieClip 5680 { } movieClip 5682 { } movieClip 5683 { frame 78 { stop(); } } movieClip 5685 { } movieClip 5686 { } movieClip 5687 { frame 78 { stop(); } } movieClip 5689 { } movieClip 5690 { } movieClip 5691 { frame 78 { stop(); } } movieClip 5693 { } movieClip 5694 { } movieClip 5695 { frame 78 { stop(); } } movieClip 5697 { } movieClip 5698 { } movieClip 5699 { frame 78 { stop(); } } movieClip 5701 { } movieClip 5702 { } movieClip 5703 { frame 78 { stop(); } } movieClip 5705 { } movieClip 5706 { } movieClip 5707 { frame 78 { stop(); } } movieClip 5708 { } movieClip 5709 { frame 78 { stop(); } } movieClip 5710 { } movieClip 5712 { } movieClip 5713 { } movieClip 5714 { } movieClip 5719 { } movieClip 5721 { } movieClip 5726 { } movieClip 5734 { } movieClip 5742 { } movieClip 5750 { } movieClip 5761 { } movieClip 5769 { } movieClip 5777 { } movieClip 5785 { } movieClip 5786 { } movieClip 5787 { } movieClip 5788 { } movieClip 5790 { } movieClip 5791 { } movieClip 5793 { } movieClip 5794 { } movieClip 5799 { } movieClip 5802 { } movieClip 5803 { } movieClip 5808 { } movieClip 5811 { } movieClip 5813 { } movieClip 5814 { } movieClip 5815 { } movieClip 5816 { frame 20 { stop(); } } movieClip 5817 { frame 20 { stop(); } } movieClip 5818 { frame 21 { stop(); } } movieClip 5819 { frame 20 { stop(); } } movieClip 5820 { frame 20 { stop(); } } movieClip 5821 { frame 20 { stop(); } } movieClip 5822 { frame 21 { stop(); } } movieClip 5823 { frame 20 { stop(); } } movieClip 5824 { } movieClip 5825 b1 { frame 1 { stop(); } } movieClip 5831 { } movieClip 5832 { frame 23 { stop(); } } movieClip 5834 { } movieClip 5835 { frame 19 { _parent.gotoAndStop(1); } } movieClip 5836 breakblock2 { frame 1 { stop(); } } movieClip 5842 { } movieClip 5843 { frame 23 { stop(); } } movieClip 5844 breakblock3 { frame 1 { stop(); } } movieClip 5845 { frame 1 { stop(); fire = true; } } movieClip 5846 fireblock2 { } movieClip 5848 { } movieClip 5849 { } movieClip 5851 { } movieClip 5852 { frame 18 { stop(); } } movieClip 5853 { } movieClip 5854 b42 { } frame 1 { function nooo() { if (!linx) { mdm.Application.exit(); } else { fscommand('quit'); } } function ffss1(f0) { if (f0 == true) { f0 = 1; } if (f0 <= 0) { f0 = 0; } return f0; } function add(v1) { if (v1.length > 0) { f1 += ',' + ffss1(v1[0]); z = 1; while (z < v1.length) { f1 += '\'' + ffss1(v1[z]); ++z; } } else { if (v1 == undefined or !v1 or v1 == 'false') { v1 = 0; } f1 += ',' + v1; } } function sub(f3) { ++f1; var v1 = checker2[f1]; if (f3) { v1 = v1.split('\''); for (z in v1) { v1[z] *= 1; if (v1[z] <= 0) { v1[z] = 0; } } return v1; } else { if (v1 * 1 > 0) { v1 *= 1; } if (v1 == 'undefined') { v1 = undefined; } if (v1 == 'true') { v1 = true; } if (v1 == 'false') { v1 = false; } if (v1 == '0') { v1 = 0; } return v1; } } function aloc() { checker1 = new Array(400); e = 0; while (e < 400) { checker1[e] = checker[e]; ++e; } for (e in locker) { if (e > 0) { if (locker[e]) { f1 = e * 2 + 11; checker1[f1] += e % 4 + 1; if (checker1[f1] > 9) { checker1[f1] -= 9; } } } } f1 = ''; e = 0; while (e < 400) { f1 += checker1[e]; ++e; } add(so.data.frog); add(so.data.left); add(so.data.frog); add(so.data.wins); add(so.data.shits); add(so.data.pill); add(so.data.dde); add(so.data.gams); add(so.data.bomb); add(so.data.deads); add(so.data.rocks); add(so.data.cols); add(so.data.boss); add(so.data.lcomp); add(so.data.mwin); add(so.data.rox); add(so.data.icer); saverr = f1; } function aloc2() { if (!linx) { var v3 = mdm.Application.path; var v2 = mdm.FileSystem.loadFile(v3 + 'serial.txt'); checker2 = v2.split(','); f1 = 0; if (!so.data.cocks) { if (so.data.deads > 5) { so.data.cocks = true; } if (checker2.length > 10) { so.data.cocks = true; so.data.frog = sub(); so.data.left = sub(); so.data.frog = sub(); so.data.wins = sub(); so.data.shits = sub(); so.data.pill = sub(); so.data.dde = sub(); so.data.gams = sub(); so.data.bomb = sub(); so.data.deads = sub(); so.data.rocks = sub(); so.data.cols = sub(true); so.data.boss = sub(true); so.data.lcomp = sub(true); so.data.mwin = sub(true); so.data.rox = sub(); so.data.icer = sub(); } } checker1 = checker2[0].split(''); e = 0; while (e < 400) { if (!locker[e]) { f1 = e * 2 + 11; f2 = checker[f1] * 1 + (e % 4) * 1 + 1; if (f2 > 9) { f2 -= 9; } if (f2 == checker1[f1]) { ulocker[e] = true; locker[e] = ulocker[e]; _root.lockor.unshift(e); } } ++e; } } } function soundy(nam, vol, xxasda) { lastn = nam; if (_root.soundonce[nam] == undefined or xxasda) { _root.soundonce[nam] = true; if (!so.data.soff or xxasda) { mpp = nam.indexOf('.mp3') <= 0; if (nam.indexOf('.mp') > 0 && mpp) { nam += '3'; } mpp = true; if (vol == undefined) { vol = 100; } vol *= _root.soundvol; v0 = _root.sz.length; f1 = false; f2 = f1; if (_root.bossl == _root.lev or _root.bossl2 == _root.lev) { if (nam == 'bossintro.mp3' && _root.chaps == 6) { f1 = true; nam = 'm10-0.mp3'; _root.bossmusic = true; } else { if (nam == 'bossintro.mp3' && _root.chaps == 8) { f1 = true; nam = 'm8-0.mp3'; _root.bossmusic = true; } else { if (nam == 'bossintro.mp3' && _root.chaps == 9 && !_root.altchap) { f1 = true; nam = 'm20-0.mp3'; _root.bossmusic = true; } } } } ++_root.szz; _root.sz[v0] = _root.attachMovie('soundz', 'sz' + _root.szz, _root.szz + 2000000000); _root.sz[v0].nam = nam; _root.sz[v0].s = new Sound(_root.sz[v0]); if (mpp) { _root.sz[v0].s.attachSound(nam); } else { _root.sz[v0].s.loadSound(nam, false); } z = 0; while (z < 40) { if (nam == 'm' + z + '-1.mp3') { f1 = true; f2 = true; if (z == 19) { vol = 0; } } if (nam == 'm' + z + '-0.mp3') { f1 = true; } ++z; } if (f1 or nam == 'bossintro.mp3' or nam == 'isaacbosswin.mp3' or nam == 'ambushwin.mp3' or nam == 'levelbumper.mp3' or nam == 'm1-2.mp3' or nam == bosm or nam == 'm-b0.mp3' or nam == 'm-b1.mp3' or nam == 'isaactitleloop.mp3' or nam == 'credits1-0.mp3' or nam == 'credits1-1.mp3') { if (nam == 'bossintro.mp3') { _root.bossmusic = true; } if (_root.musc != undefined) { _root.fade = true; } if (nam == 'isaacbosswin.mp3' or nam == 'ambushwin.mp3') { _root.sz[v0].wining = true; } if (_root.amusc == undefined) { if (f2 or nam == 'm-b1.mp3' or nam == 'isaactitleloop.mp3') { _root.sz[v0].looper = true; _root.sz[v0].s.start(lop, 0); } else { _root.sz[v0].s.start(0, 0); } _root.amusc = _root.sz[v0]; vol = mvol; } _root.sz[v0].s.setVolume(vol); return _root.sz[v0]; } if (nam.indexOf('loop') > 0) { _root.sz[v0].s.start(0, 999999); _root.sz[v0].looper2 = true; } else { _root.sz[v0].s.start(0, 0); } if (nam.indexOf('Lightning_Zap') > 0) { light.dones = true; light = _root.sz[v0]; } _root.sz[v0].s.setVolume(vol); return _root.sz[v0]; } } } function soz() { so = SharedObject.getLocal('so', '/'); if (so.data.qqal == undefined) { qua('MEDIUM'); } else { qua(so.data.qqal); } _root.musicoff = so.data.moff; _root.hardmode = so.data.hard; if (so.data.wins == undefined) { so.data.wins = 0; } if (so.data.rox == undefined) { so.data.rox = 0; } if (so.data.icer <= 0) { so.data.icer = 0; } if (so.data.shits == undefined) { so.data.shits = 0; } if (so.data.pill == undefined) { so.data.pill = 0; } if (so.data.dde == undefined) { so.data.dde = 0; } if (so.data.gams == undefined) { so.data.gams = 0; } if (so.data.bomb == undefined) { so.data.bomb = 0; } if (so.data.deads == undefined) { so.data.deads = 0; } if (so.data.rocks <= 0) { so.data.rocks = 0; } if (so.data.cols == undefined) { so.data.cols = []; } if (so.data.lock == undefined) { so.data.lock = []; } if (so.data.lockor == undefined) { so.data.lockor = []; } if (so.data.ulock == undefined) { so.data.ulock = []; } if (so.data.boss == undefined) { so.data.boss = []; } if (so.data.lcomp == undefined) { so.data.lcomp = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } if (so.data.mwin == undefined) { so.data.mwin = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } _root.minwin = so.data.mwin; f1 = []; e = 0; while (e < 200) { f1[e] = so.data.lock[e]; ++e; } so.data.lock = []; e = 0; while (e < 200) { so.data.lock[e] = f1[e]; ++e; } _root.locker = so.data.lock; _root.lockor = so.data.lockor; _root.ulocker = so.data.ulock; _root.res = so.data.res; if (so.data.wind == undefined) { _root.hdd = true; } else { _root.hdd = so.data.wind; } aloc2(); aloc(); if (so.data.cols == undefined) { so.data.cols = []; } if (so.data.lock == undefined) { so.data.lock = []; } if (so.data.lockor == undefined) { so.data.lockor = []; } if (so.data.ulock == undefined) { so.data.ulock = []; } if (so.data.boss == undefined) { so.data.boss = []; } if (so.data.lcomp == undefined) { so.data.lcomp = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } if (so.data.mwin == undefined) { so.data.mwin = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } _root.colss = so.data.cols; _root.bossk = so.data.boss; _root.lcomp = so.data.lcomp; } function unlos() { --loslol; if (loslol < 0) { _root.unl.gogo = false; f1 = 0; f3 = 1000; for (z in _root.locker) { if (_root.locker[z] && !_root.ulocker[z]) { f4 = z; if (f4 < f3) { f3 = f4; f1 = z; } } } if (f1 == 0) { } else { _root.unl.nogo = true; _root.unl.gotoAndPlay(4); _root.ulocker[f1] = true; _root.lockor.unshift(f1); _root.unlll = f3; _root.unl.gotoAndPlay(2); _root.soundy('Choir_unlock.wav', 100); loslol = 90; if (acnam[f1] != 0) { callit(acnam[f1]); } } } if (_root._currentframe > 2) { _root.winners = so.data.wins; if (_root.winners >= 2) { _root.locker[8] = true; } if (_root.winners >= 3) { _root.locker[9] = true; } if (_root.winners >= 4) { _root.locker[10] = true; } if (_root.winners >= 5) { _root.locker[11] = true; } if (_root.winners >= 6) { _root.locker[42] = true; } if (_root.winners >= 7) { _root.locker[43] = true; } if (_root.winners >= 8) { _root.locker[44] = true; } if (_root.winners >= 9) { _root.locker[45] = true; } if (_root.winners >= 10) { _root.locker[12] = true; _root.locker[41] = true; } z = 0; while (z < 3) { _root.locker[z + 15] = _root.locker[z + 1]; ++z; } if (_root.locker[54]) { _root.locker[56] = true; _root.locker[57] = true; } } } function soundfra() { _root.soundonce = []; if (Key.isDown(77)) { if (nomute) { nomute = false; _root.musicoff = !_root.musicoff; } } else { nomute = true; } if (_root.musc == undefined) { _root.musc = _root.amusc; _root.amusc = undefined; } so.data.moff = _root.musicoff; if (_root.musc.nam == 'bossintro.mp3' && _root.musc.s.position > 4000) { fade = true; } if (_root.a.flyshut > 0) { if (_root.flyss == undefined) { _root.flyss = _root.soundy('insect_swarm_loop.wav', 100); } _root.flyss.s.setVolume(Math.min(150, _root.a.flyshut * 30 + 30)); } else { _root.flyss.dones = true; _root.flyss = undefined; } if (_root.dmusic && (_root.a.player.hp > 0 or _root._currentframe != 2)) { _root.dmusic = false; _root.fade = true; } if (_root.amas && !_root.amusic) { _root.amas = false; _root.fade = true; } if (_currentframe == 2 && _root.musc.nam == 'm1-2.mp3') { _root.fade = false; } if (_root.musicoff or _root.fade) { f1 = _root.musc.s.getVolume(); if (f1 > 5) { _root.musc.s.setVolume(f1 - 5); } else { _root.musc.done = true; _root.musc = undefined; _root.fade = false; if (introz or intro == 2) { introz = false; } else { intro = true; } } } else { if (_currentframe != 1 && _root._currentframe <= 5 or _currentframe == 20 or _currentframe == 21 or _currentframe == 24 or _currentframe == 41) { f10 = _root._currentframe == 2 && _root.lev == _root.lib or _root._currentframe == 24; f9 = _root._currentframe == 2 && _root.lev == _root.hide2; f5 = _root._currentframe == 2 && _root.lev == _root.gamb; f6 = _root._currentframe == 2 && _root.lev == _root.shopl && _root.lev != _root.minb; f7 = _root._currentframe == 2 && _root.lev == 166 && _root.kramper != _root.chaps; f11 = _root._currentframe == 2 && _root.lev == 166 && _root.altsat; f8 = _root._currentframe == 2 && _root.lev == _root.hide && _root.lev != _root.minb; if (_root.musc == undefined && _root.amusc == undefined) { --menubeen; if (f10) { if (intro) { soundy('m30-0.mp3'); intro = false; } else { soundy('m30-1.mp3'); } } else { if (f9) { if (intro) { soundy('m28-0.mp3'); intro = false; } else { soundy('m28-1.mp3'); } } else { if (f9) { if (intro) { soundy('m25-0.mp3'); intro = false; } else { soundy('m25-1.mp3'); } } else { if (f8) { if (intro) { soundy('m15-0.mp3'); intro = false; } else { soundy('m15-1.mp3'); } } else { if (f7) { if (intro) { soundy('m14-0.mp3'); intro = false; } else { soundy('m14-1.mp3'); } } else { if (f6) { if (intro) { soundy('m13-0.mp3'); intro = false; } else { soundy('m13-1.mp3'); } } else { if (f5) { if (intro) { soundy('m12-0.mp3'); intro = false; } else { soundy('m12-1.mp3'); } } else { if (_root._currentframe == 20 or _root._currentframe == 21) { if (so.data.wins > 9) { if (intro) { soundy('m11-0.mp3'); intro = false; } else { soundy('m11-1.mp3'); } } else { if (intro) { soundy('credits1-0.mp3'); intro = false; } else { soundy('credits1-1.mp3'); } } } else { if (_root._currentframe == 5) { soundy('isaactitleloop.mp3'); } else { if (_root.bossmusic && !_root.dmusic) { if (_root.a.ashut > 0.9 or _root._currentframe == 4) { f1 = _root.lev == _root.bossl or _root.bossl2 == _root.lev; if (_root.chaps == 11 or _root.chaps == 9 && _root.altchap) { if (_root.intro) { soundy('m29-0.mp3'); _root.intro = false; } else { soundy('m29-1.mp3'); } } else { if (_root.chaps == 6 && f1) { soundy('m10-1.mp3'); } else { if (_root.chaps == 8 && f1) { soundy('m8-1.mp3'); } else { if (_root.chaps == 9 && f1 && !_root.altchap) { soundy('m20-1.mp3'); } else { if (_root.altchap) { if (_root.intro) { soundy('m26-0.mp3'); _root.intro = false; } else { soundy('m26-1.mp3'); } } else { if (_root.intro) { soundy('m-b0.mp3'); _root.intro = false; } else { soundy('m-b1.mp3'); } } } } } } bosm = lastn; } else { if (_currentframe == 24) { if (_root.intro) { soundy('m30-0.mp3'); intro = false; } else { soundy('m30-1.mp3'); } } else { if (_root.intro == 2) { soundy('m9-1.mp3'); } else { if (_root.intro) { if (_root.a.fra > 50) { if (_root.lev == _root.bossl or _root.bossl2 == _root.lev) { soundy('isaacbosswin.mp3', 35); } else { soundy('ambushwin.mp3', 85); } } _root.intro = 2; } else { soundy('m9-1.mp3'); } } } } } else { f1 = Math.min(Math.round(_root.chaps / 2), 4); if (f1 <= 0) { f1 = 1; } if (_root.altchap && f1 != 4) { f1 += 20; } if (_root.chaps == 9) { if (_root.altchap) { f1 = 25; } else { f1 = 19; } } if (_root.dmusic) { _root.bossmusic = false; f1 = 7; } else { if (_root.amusic) { f1 = 6; if (_root.lev == _root.chamb && _root.altch or (_root.lev == _root.shopl or _root.lev == _root.minb) && _root.altm) { f1 = 27; } if (_root.lev != chamb) { _root.amas = true; } } } if (_root.chaps == 11) { if (intro) { soundy('m-b0.mp3'); intro = false; } else { soundy('m-b1.mp3'); } _root.bossmusic = false; } else { if (intro) { soundy('m' + f1 + '-0.mp3'); intro = false; } else { soundy('m' + f1 + '-1.mp3'); } } } } } } } } } } } } } else { if (_root.mmus == undefined && _root.musc.s.getVolume() < mvol) { if (!_root.musc.wait) { f11 = Math.min(_root.musc.s.getVolume() + 1, mvol); _root.musc.s.setVolume(f11); } } } if (_root.musc.nam != undefined && !fader) { if (_root.bossmusic) { if (_root.lev != _root.bossl && _root.bossl2 != _root.lev && _root.lev != _root.gamb && (_root.lev != 166 or _root.kramper != _root.chaps) && _root.lev != _root.minb && _root.lev != _root.chamb && _root._currentframe != 4) { _root.bossmusic = false; fade = true; } if (_root.a.ashut == 0 && _root.musc.nam != 'm9-0.mp3' && _root.musc.nam != 'm9-1.mp3' && _root.a.fra > 20 && _root.bossmusic != 2) { _root.bossmusic = 2; fade = true; } } if (_currentframe != 5 && _root.musc.nam == 'isaactitleloop.mp3') { _root.fade = true; } if (_currentframe == 5 && _root.musc.nam != 'isaactitleloop.mp3') { _root.fade = true; } if (f5 && _root.musc.nam != 'm12-1.mp3' && _root.musc.nam != 'm12-0.mp3') { _root.fade = true; } if (!f5 && (_root.musc.nam == 'm12-1.mp3' or _root.musc.nam == 'm12-0.mp3')) { _root.fade = true; } if (f6 && _root.musc.nam != 'm13-0.mp3' && _root.musc.nam != 'm13-1.mp3') { _root.fade = true; } if (!f6 && (_root.musc.nam == 'm13-0.mp3' or _root.musc.nam == 'm13-1.mp3')) { _root.fade = true; introz = true; } if (f7 && _root.musc.nam != 'm14-0.mp3' && _root.musc.nam != 'm14-1.mp3') { _root.fade = true; } if (!f7 && (_root.musc.nam == 'm14-0.mp3' or _root.musc.nam == 'm14-1.mp3')) { _root.fade = true; } if (f8 && _root.musc.nam != 'm15-0.mp3' && _root.musc.nam != 'm15-1.mp3') { _root.fade = true; } if (!f8 && (_root.musc.nam == 'm15-0.mp3' or _root.musc.nam == 'm15-1.mp3')) { _root.fade = true; introz = true; } if (f9 && _root.musc.nam != 'm28-0.mp3' && _root.musc.nam != 'm28-1.mp3') { _root.fade = true; } if (!f9 && (_root.musc.nam == 'm28-0.mp3' or _root.musc.nam == 'm28-1.mp3')) { _root.fade = true; introz = true; } if (f10 && _root.musc.nam != 'm30-0.mp3' && _root.musc.nam != 'm30-1.mp3') { _root.fade = true; } if (!f10 && (_root.musc.nam == 'm30-0.mp3' or _root.musc.nam == 'm30-1.mp3')) { _root.fade = true; introz = true; } if (_currentframe != 20 && _currentframe != 21 && (_root.musc.nam == 'credits1-0.mp3' or _root.musc.nam == 'credits1-1.mp3' or _root.musc.nam == 'm11-0.mp3' or _root.musc.nam == 'm11-1.mp3')) { _root.fade = true; } if ((_currentframe == 20 or _currentframe == 21) && (_root.musc.nam != 'credits1-0.mp3' && _root.musc.nam != 'credits1-1.mp3' && _root.musc.nam != 'm11-0.mp3' && _root.musc.nam != 'm11-1.mp3')) { _root.fade = true; } } } else { fade = true; } } for (e in sz) { trg = sz[e]; if (trg.dones) { f1 = trg.s.getVolume() - 20; trg.s.setVolume(f1); if (f1 < 20) { trg.done = true; } } if (trg.looper && trg.s.duration - lop2 < trg.s.position) { trg.s.stop(); trg.s.start(lop, 0); } if (_root.musc == trg && trg.s.duration - lop2 < trg.s.position) { trg.s.stop(); trg.done = true; _root.musc = undefined; } if (_root.musc == trg && trg.wining && trg.s.duration - 2500 < trg.s.position) { _root.musc = undefined; } if (_root.mmus == trg && trg.s.duration - 1000 < trg.s.position) { _root.mmus = undefined; } if (trg.s.duration == trg.s.position && !trg.looper && !trg.looper2 or trg.done) { if (_root.mmus == trg) { _root.mmus = undefined; } if (_root.musc == trg) { _root.musc = undefined; } trg.s.stop(); trg.swapDepths(100); removeMovieClip(trg); sz.splice(e, 1); } } if (random(1000) == 0) { f1 = []; e = 0; while (e < sz.length) { f1[e] = sz[e]; ++e; } sz = []; e = 0; while (e < f1.length) { sz[e] = f1[e]; ++e; } } if (_root.mmus != undefined) { _root.musc.s.setVolume(Math.max(5, _root.musc.s.getVolume() - 7)); } } function prelod() { lod = _root.getBytesLoaded(); tot = _root.getBytesTotal(); v1 = Math.round((lod / tot) * 100); v2 = (v1 - cent) * 0.5; v3 = 100; if (Key.isDown(65)) { v3 += 5; } cent += Math.min(v3, v2); if (_currentframe != 1) { prelod = undefined; } if (cent > 99.5) { v1 = passw.toLowerCase(); _root.gotoAndStop('intro'); } else {} } function fullf(f1) { if (linx) { hdd = true; _root._xscale = 125; _root._yscale = 125; _root.a.mapd(); _root._x = (1 - _root._xscale / 125) * 800 / 2; _root._y = (1 - _root._yscale / 125) * 600 / 2; } else { if (win || macVersion != undefined) { lasf = fra; if (f1) { so.data.full = !so.data.full; } fscommand('allowscale', 'false'); if (_root.res <= 0 or !win) { if (!wider) { if (wid > 1000) { _root.res = 6; } else { _root.res = 1; } } else { if (wid > 1200) { if (wider == 2) { _root.res = 5; } else { _root.res = 4; } } else { _root.res = 2; } } } if (so.data.full) { f2 = refs[_root.res][0]; f3 = refs[_root.res][1]; mdm.Forms.thisForm.showFullScreen(true); if (win) { mdm.System.DirectX.enable(f2, f3, colz); mdm.Forms.thisForm.hideCaption(true); } if (f2 >= 1000 && f3 >= 800) { _root._xscale = 166.7; } else { if (f2 >= 800 && f3 >= 700) { _root._xscale = 154; } else { if (f2 >= 720 && f3 >= 600) { _root._xscale = 125; } else { _root._xscale = 100; } } } } else { mdm.Forms.thisForm.showFullScreen(false); mdm.Application.restore(); if (win) { mdm.System.DirectX.disable(); mdm.Forms.thisForm.hideCaption(false); } if (hdd == 2) { mdm.Forms.thisForm.width = 1024; mdm.Forms.thisForm.height = 800; _root._xscale = 163.5; } else { if (hdd) { mdm.Forms.thisForm.width = 800; mdm.Forms.thisForm.height = 620; _root._xscale = 125; } else { mdm.Forms.thisForm.width = 640; mdm.Forms.thisForm.height = 510; _root._xscale = 100; } } if (win) { mdm.System.DirectX.enable(); } } _root._yscale = _root._xscale; _root.a.mapd(); _root._x = (1 - _root._xscale / 125) * 800 / 2; _root._y = (1 - _root._yscale / 125) * 600 / 2; if (!so.data.full) { f1 = mdm.System.getResolution(); mdm.Forms.thisForm.x = (f1[0] - mdm.Forms.thisForm.width) / 2 - 2; mdm.Forms.thisForm.y = (f1[1] - mdm.Forms.thisForm.height) / 2 - 20; } } else { _root._xscale = 125; _root._yscale = 125; nozinc = true; } } } function callit(f1) { if (!linx) { var v2 = mdm.Application.path; if (win) { var v3 = mdm.Process.create('My App', 0, 0, 500, 600, '', v2 + 'FlashAchievements.exe ' + f1, v2, 2, 4); } else { if (fuk) { mdm.Process.setParams(f1); f1 = ''; } else { f1 = ' ' + f1; } fuk = !fuk; var v3 = mdm.Process.create('My App', 0, 0, 500, 600, '', v2 + 'FlashAchievements ' + f1, v2, 2, 4); } } } function doit(trg) { switch (trg._name) { case 'b4': so.data.frog = !so.data.frog; break; case 'b3': so.data.left = !so.data.left; break; case 'b0': fullf(true); break; case 'b1': so.data.soff = !so.data.soff; break; case 'b2': _root.musicoff = !_root.musicoff; break; case 'b5': _root.hardmode = !_root.hardmode; so.data.hard = _root.hardmode; } } function wiq(f1) { _root.hdd = f1; so.data.wind = _root.hdd; showit(); fullf(); } function reser(f1) { if (win) { f2 = refs[f1]; _root.res = f1; so.data.res = _root.res; showit(); if (so.data.full) { fullf(); } } } function showit() { trg = _root.paus; _root.paus.b0.gotoAndStop(1); _root.paus.b1.gotoAndStop(1); _root.paus.b2.gotoAndStop(1); _root.paus.b3.gotoAndStop(1); _root.paus.b4.gotoAndStop(1); _root.men.men.b5.gotoAndStop(2); trg.wq0.gotoAndStop(2); trg.wq1.gotoAndStop(2); trg.wq2.gotoAndStop(2); if (_root.hdd == 2) { trg.wq0.gotoAndStop(1); } else { if (_root.hdd) { trg.wq1.gotoAndStop(1); } else { trg.wq2.gotoAndStop(1); } } if (!so.data.full) { _root.paus.b0.gotoAndStop(2); } if (!so.data.soff) { _root.paus.b1.gotoAndStop(2); } if (!so.data.frog) { _root.paus.b4.gotoAndStop(2); } if (!so.data.left) { _root.paus.b3.gotoAndStop(2); } if (_root.musicoff) { _root.paus.b2.gotoAndStop(2); } if (_root.hardmode) { _root.men.men.b5.gotoAndStop(1); } trg.r0.gotoAndStop(_root.res); e = 1; while (e < 8) { trg2 = trg['r' + e]; trg2.gotoAndStop(e); trg2.as._visible = e == _root.res; ++e; } } function qshow() { f1 = ['HIGH', 'MEDIUM', 'LOW', 'AUTO']; z = 0; while (z < 4) { trg = _root.paus['bq' + z]; if (f1[z] == qqua or z == 3 && qqua == undefined) { trg.gotoAndStop(1); } else { trg.gotoAndStop(2); } ++z; } } function qua(f1) { qqua = so.data.qqal; if (f1) { qqua = f1; } else { if (qqua == 'AUTO') { qqua = 'HIGH'; } else { if (qqua == 'MEDIUM') { qqua = 'LOW'; } else { if (qqua == 'LOW') { qqua = 'AUTO'; } else { qqua = 'MEDIUM'; } } } } if (qqua == 'AUTO') { _quality = 'MEDIUM'; } else { _quality = qqua; } _root.a.st22(qqua); so.data.qqal = qqua; qshow(); } function goblack() { if (_currentframe >= 3 && _currentframe < 10) { f1 = _currentframe; } else { f1 = 0; } if (ala != f1) { ala = f1; overlay2._alpha = 100; _root.hud._visible = false; } } function colorit(trg, f1, f2, f3, f4, f5, f6) { var v1 = new flash.geom.ColorTransform(); v1.redMultiplier = f1; v1.greenMultiplier = f2; v1.blueMultiplier = f3; v1.redOffset = f4; v1.greenOffset = f5; v1.blueOffset = f6; var v2 = new flash.geom.Transform(trg); v2.colorTransform = v1; } function uncolera() { trg2 = hud.it; if (itb >= 0) { if (itb % 5 == 0) { if (itb % 10 == 0) { } else {} } } --itb; } function darky(f1) { if (f1 != 150) { if (f1 > 0) { dark = f1; } } else { dark = 5; _root.men.men.pos = 4; fader = true; _root.musc.done = true; if (!_root.musicoff) { _root.soundy('m1-2.mp3'); } _root.intro = true; _root.fade = false; _root.chaps = 1; } if (dark > 0 or undark) { f1 = 2.5; f1 = getTimer() - dda; f1 /= 15; if (f1 > 15 or f1 <= 0) { f5 = 15; } if (fader) { dark += f1 * 2; if (dark > 160) { fader = false; _root.gotoAndStop('game'); } } dark -= f1; undark = dark > 0; f1 = 1 - dark / 100; if (_root.chaps == 9 && _root.altchap) { f2 = 255 * (1 - f1); } else { f2 = 0; } colo = new flash.geom.ColorTransform(); colo.redMultiplier = f1; colo.greenMultiplier = f1; colo.blueMultiplier = f1; colo.redOffset = f2; colo.greenOffset = f2; colo.blueOffset = f2; var v4 = new flash.geom.Transform(this); v4.colorTransform = colo; } else { if (_root.a.fra < 50) { colo = new flash.geom.ColorTransform(); var v4 = new flash.geom.Transform(this); v4.colorTransform = colo; } } dda = getTimer(); } function onEnterFrame() { if (_currentframe == 2) { if (_root.paus != _root.hud.paus) { _root.paus = _root.hud.paus; aloc(); } } else { if (_root.paus != _root.pauss) { aloc(); _root.paus = _root.pauss; } } ++fra; ++nosave; if (nosave > 100 && _currentframe != 2 || gosave) { nosave = 0; gosave = false; if (!linx) { var v2 = mdm.Application.path; mdm.FileSystem.saveFile(v2 + 'myFile.txt', '10'); v2 = mdm.Application.path; mdm.FileSystem.saveFile(v2 + 'serial.txt', saverr); } } darky(); soundfra(); uncolera(); if (overlay2._alpha > 0) { overlay2._alpha -= 7; } else { overlay2._alpha = 0; } if (Key.isDown(32) && (_currentframe == 3 && d._currentframe > 5 or _currentframe == 4 && d._currentframe > 21)) { _root.gotoAndStop('game'); _root.fade = true; } if (Key.isDown(32) && _currentframe == 6) { _root.gotoAndStop(7); ffs1 = true; } if (Key.isDown(32) && (_currentframe == 21 or _currentframe == 7 or _root.creskip && _currentframe == 20) && !ffs1) { _root.creskip = false; _root.gotoAndStop('menu'); } if (Key.isDown(32) && _currentframe == 9 && !ffs1) { _root.gotoAndStop(20); ffs1 = true; } if (Key.isDown(32) && (_currentframe > 9 && _currentframe < 20 or _currentframe == 22 or _currentframe == 23) && !ffs1) { _root.gotoAndStop(21); ffs1 = true; } if (!Key.isDown(32)) { ffs1 = false; } unlos(); prelod(); if (Key.isDown(73)) { if (unqua) { qua(); unqua = false; _root.soundy('butt'); } } else { unqua = true; } if (Key.isDown(72)) { if (unff2) { if (hdd == 2) { hdd = true; } else { if (hdd) { hdd = false; } else { hdd = 2; } } fullf(); unff2 = false; so.data.wind = hdd; } } else { unff2 = true; } if (Key.isDown(70)) { if (unff) { if (!_root.a.unpause) { fullf(true); unff = false; } } } else { unff = true; } if (Key.isDown(90)) { } } linx = false; st1 = [0, 'The Sad Onion', 'The Inner Eye', 'Spoon Bender', 'Max\'s Head', 'My Reflection', 'Number one', 'Blood of the Martyr', 'Brother Bobby', 'Skatole', 'Halo of Flies', '1up!', 'Magic Mushroom', 'The Virus', 'Roid Rage', '<3', 'Raw Liver', 'Skeleton Key', 'A dollar!', 'Boom!', 'Transcendence', 'The Compass', 'Lunch', 'Dinner', 'Dessert', 'Breakfast', 'Rotten Meat ', 'Wooden Spoon', 'The Belt', 'Moms Underwear', 'Moms Heels ', 'Moms Lipstick', 'Wire Coat hanger!', 'The Bible', 'The Book of Belial', 'The Necronomicon', 'The Poop!', 'Mr. Boom!', 'Tammys Head', 'Moms Bra', 'kamikaze!', 'Moms Pad ', 'Bobs Rotten Head', 'Pills here!', 'Teleport!', 'Yum Heart', 'Lucky Foot', 'Doctors Remote', 'Cupids arrow', 'Shoop da Whoop!', 'Steven', 'Pentagram', 'Dr Fetus', 'Magneto', 'Treasure Map', 'Moms Eye', 'Lemon Mishap', 'Distant Admiration', 'Book of shadows', 'Wiggle Worm', 'The Ladder', 'Tarot Card', 'Charm of the vampire', 'The Battery', 'Steam Sale', 'Anarchist Cookbook', 'The Hourglass', 'Sister Maggy', 'Technology', 'Chocolate Milk', 'Growth Hormones', 'Mini Mush', 'Rosary', 'Cube of Meat', 'A Quarter', 'PHD', 'Xray-Vision', 'My little Unicorn', 'Book of Revelations', 'The Mark', 'The Pact', 'Dead Cat', 'Lord of the Pit', 'the Nail', 'We need to go deeper!', 'Deck of Cards', 'Monstros Tooth', 'Lokis Horns', 'Lil Chubby', 'Spider Bite', 'The Small Rock', 'Spelunker Hat', 'Super Bandage', 'The Gamekid', 'Sack of pennies', 'Robo-Baby', 'Little Chad', 'The Book of Sin', 'The Relic', 'Little Gish', 'Little Steve', 'The Halo', 'Moms Bottle of Pills', 'The common cold', 'The Parasite', 'The Dice', 'Mr. Mega', 'The Pinking Shears', 'The Wafer', 'Money = Power', 'Moms Contacts', 'The Bean', 'Guardian Angel', 'Demon Baby', 'Moms Knife', 'Ouija Board', '9 Volt', 'Dead Bird', 'Brimstone', 'Blood Bag', 'Odd Mushroom', 'Odd Mushroom', 'Whore of Babylon', 'Monster Manuel', 'Dead Sea Scrolls', 'Bobby - Bomb', 'Razor Blade', 'Forget Me Now', 'Forever alone', 'Bucket of Lard', 'A Pony', 'Bomb Bag', 'A Lump of Coal', 'Guppys Paw', 'Guppys Tail', 'IV Bag', 'Best Friend', 'Remote Detonator', 'Stigmata', 'Moms Purse', 'Bobs Curse', 'Pageant Boy', 'Scapular', 'Speed Ball', 'Bum friend', 'Guppys Head', 'Prayer Card', 'Notched Axe', 'Infestation', 'Ipecac', 'Tough love', 'The Mulligan', 'Technology 2', 'Mutant Spider', 'Chemical peel', 'The Peeper!', 'Habit', 'Bloody Lust', 'Crystal Ball', 'Spirit of the night', 'Crack the Sky', 'Ankh', 'Celtic cross', 'Ghost Baby', 'The Candle', 'Cat-o-nine-tails', 'D20', 'Harlequin baby', 'Epic Fetus', 'Polyphemus', 'Daddy longlegs', 'Spider Butt', 'Sacrificial Dagger', 'Mitre', 'Rainbow Baby', 'Dads Key', 'Stem cells', 'Portable Slot!', 'Holy Water', 'Fate', 'The Black Bean', 'White Pony', 'Sacred Heart', 'Tooth Picks', 'Holy Grail', 'Dead Dove', 'Blood Rights', 'Guppys Hairball', 'Abel', 'SMB Super Fan!', 'Pyro', '3 Dollar bill', 'Telepathy for Dummies', 'MEAT!', 'Magic 8 ball', 'Moms coin purse', 'Squeezy', 'Jesus Juice', 'BOX']; st2x = [0, 'Tears up!', 'Triple Shot', 'Homing shots', 'Dmg up!', 0, 'Tears up!', 'Dmg up!', 0, 'Fly Love', 0, '1up!', 'All stats up!', 'Poison touch', 'Speed & Range up!', 'HP up!', 'HP up!', 0, '$$$', 0, 0, 0, 'HP up!', 'HP up!', 'HP up!', 'HP up!', 'HP up!', 'Speed up!', 'Speed up!', 'Range up!', 'Range up!', 'Range up!', 'Tears up!', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 0, 'SPACE to use', 'Piercing shots', 'SPACE to use', 'Damage Up', 'Damage Up', '???', 'Item snatcher', 0, 'Extra Tears', 'SPACE to use', 'Attack Fly', 'SPACE to use', 'SSSSS! ', 'Building Bridges', 0, 'kills heal', 'items recharge', '50% off', 'Space to Use', 0, 0, 'Laser Tears', 'Charge Shots', 'Speed + Dmg', 'Speed + Range', 'Faith Up!', 0, '+25 coins', 'better Pills!', 'Ive seen everything!', 'SPACE to use', 'SPACE to use', 'Dmg + Speed!', 'Dmg + Tears!', '9 lives', 'Deamon wings!', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'Extra Tears', 0, 'Slow Effect', 'Dmg Up + Tears', 'see thru doors', '+2 hearts', 'SPACE to use', 'Gives Money', 0, 'Gives Hearts', 'SPACE to use', 0, 0, 0, 'all stats up', 'SPACE to use', 'Poison dmg', 'Split Shot', 'SPACE to use', 'Blast dmg', 'SPACE to use', 'dmg resistence', '$$$ = Damage', 'freeze effect', 'SPACE to use', 'Faith up', 0, 'Stab Stab Stab!', 'Spectral Tears', 'Quicker charge', 0, 0, 'HP Up', 'Tears + Speed', 'Dmg + HP + Range', 'Curse Up', 'SPACE to use', 'SPACE to use', 'Homing Bombs', 'SPACE to use', 'SPACE to use', 'Attack Fly', 'HP Up', 'SPACE to use', 'Gives Bombs', 'My Xmas Present', 'SPACE to use', 'Cursed?', 'Portable blood bank', 'Friends till the end!', 'SPACE to Detonate!', 'Dmg + Health +', 'more trinket room!', '+5 Poison Bombs', '', 'you have been blessed', 'Speed + Shot Speed +', 'hes greedy!', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'They grow inside!', 'explosive shots!', 'tooth shot!', 'They grow inside!', 'laser!', 'Quad shot', 'Dmg up!', 'plop', 'Item Martyr ', 'RAGE!', 'SPACE to use', 'scary', 'SPACE to use', 'eternal life?', 'you feel blessed', '', 'SPACE to use', 'shot speed up!', 'SPACE to use', '', '', '', 'Daddys love', 'SPACE to use', '', 'you feel blessed', '', 'SPACE to use', 'HP + Shot Speed', 'SPACE to use', 'Don\'t spill it', '', 'Panic Farts', 'SPACE to Use', 'Dmg + Homing', 'Shot Speed Up', 'Hp Up', 'Spectral Shots', 'SPACE to Use', 'Yuck!', '', 'All Stats Up', '', 'Random Tears', 'SPACE to use', 'Dmg + HP Up', 'Shot Speed up', '', 'Tears Up', 'Dmg Up + Range', '', '', '', 0]; acnam = [0, 'Maggy', 'Cain', 'Judas', 'Killed_Mom', 0, 0, 0, 'The_Noose', 'The_Nail', 'The_Quarter', 'The_Fetus', 0, 'The_Spider', 'The_Spelunker', 0, 0, 0, 'The_Rock', 'Monstros_Tooth', 'Lil_Chubby', 'Lokis_Horns', 0, 0, 0, 'The_Bandage', 'The_Cross', 'The_Bag', 'The_Robo-Baby', 'Book_of_Sin', 'Gish', 'Steven', 'Chad', 'The_Gamekid', 'The_Halo', 'Mr_Mega', 'Pill_Bottle', 'Common_Cold', 'The_D6', 'The_Shears', 'The_Parasite', 'Baby', 'Terrible', 'The_Wafer', 'Money_Power', 'It_Lives', 'The_Bean', 'Moms_Contact', 'The_Necronomicon', 'Basement_Boy', 'Cave_Boy', 'Depths_Boy', 'Womb_Boy', 'Golden_God', 'Eve', 'Moms_Knife', 0, 0, 'The_Razor_Blade', 'The_Guardian_Angel', 'bombs', 'The_Demon_Baby', 'Forget_Me_Now', 'The_Monster_Manual', 'a_gift_from_krampus']; acnam.push('_d20', '_cross', '_abel', '_horn', '_knife2', '_rainbow', '_bloodlust', '_bloodpenny', '_bloodrights', '_polaroid', '_dadskey', '_toe', '_candle', '_burntpenny', '_tail', '_megafetus', '_fish', '_superfan', '_spiderbutt', '_counterfeit', '_hairball', '_eggsack', 0, '_samson', 0, '_platinum'); acnam.push('_head', '_faith', '_eye', '_tongue', '_birdfoot', '_soul', '_lock', '_hand'); acnam.push('emom', 'esatan', 'eisaac', 'eheart', 'hardgame', 'ppers', 'egod', 'pisaac', 'pjudas', 'pmaggy', 'pcain', 'peve', 'psam', 'pblue', 'elife'); fscommand('showmenu', 'false'); fscommand('trapallkeys', 'true'); stop(); cent = 0; _root.sz = []; _root.szz = 0; _root.soundonce = []; _root.soundvol = 0.7; mvol = 35; dark = 0; lop = 0.03; checker = new Array(400); f1 = 5; f2 = 6; e = 0; while (e < 400) { checker[e] = 0; ++e; } e = 0; while (e < 1000) { f1 += f2; ++f2; if (f2 > 5) { f2 = 2; } if (f1 >= 200) { f1 -= 200; } checker[f1] += e % 5; if (checker[f1] >= 9) { checker[f1] -= 9; } checker[f1 + 201] = checker[f1]; ++e; } _root.colss = []; soz(); loslol = 0; intro = true; menubeen = 0; lop2 = 30; gof = 0; prelod(); currUrl = _url.toLowerCase(); pass = true; trg = _root.createEmptyMovieClip('olda', 299); old = new flash.display.BitmapData(640, 480, true, 0); trg.attachBitmap(_root.old, 1); trg = createEmptyMovieClip('mapa', 301); map = new flash.display.BitmapData(450, 150, true, 0); trg.attachBitmap(map, 1, true, false); trg._x = -45; overlay.swapDepths(500); if (!linx) { f1 = mdm.System.getResolution(); } wid = f1[0]; wider = f1[0] / f1[1]; colz = f1[2]; if (colz <= 10) { colz = 32; } if (wider <= 1.5) { wider = false; } else { if (wider > 1.7) { wider = 2; } } if (linx) { win = false; } else { macVersion = mdm.System.macVerString; _root.tex = macVersion; winVersion = mdm.System.winVerString; win = (macVersion + ' ').indexOf('type Function') > 0 || winVersion > 0; _root.tex = win + ' ' + winVersion; mdm.Application.onAppChangeFocus = function (myObject) { if (myObject.focus == 'true') { } else { if (lasf + 100 < fra) { if (so.data.full) { so.data.full = false; fullf(); } } } }; } lasf = 0; refs = [0, [800, 600], [720, 480], [640, 480], [1280, 800], [1280, 720], [1024, 768]]; overlay2._alpha = 0; ala = 0; attachMovie('hud', 'hud', 300); fullf(); fra = 0; nosave = 0; f1 = ''; f3 = false; for (e in _root.locker) { if (_root.locker[e]) { if (acnam[e]) { if (f3) { f1 += ' '; } f1 += acnam[e]; f3 = true; } } } _root.tex = f1; if (f3) { callit(f1); if (!win) { callit(f1); } } var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; } movieClip 5857 { } movieClip 5861 { } movieClip 5866 { } movieClip 5869 { } movieClip 5872 { } movieClip 5875 { } movieClip 5878 { } movieClip 5881 { } movieClip 5884 { } movieClip 5887 { } movieClip 5890 { } movieClip 5893 { } movieClip 5896 { } movieClip 5899 { } movieClip 5902 { } movieClip 5905 { } movieClip 5908 { } movieClip 5909 { frame 1 { if (_root.locker[105]) { gotoAndStop(16); } else { if (_root.locker[90]) { gotoAndStop(14); } else { if (_root.so.data.wins > 200) { gotoAndStop(15); } else { if (_root.locker[75]) { gotoAndStop(13); } else { if (_root.locker[53]) { gotoAndStop(7); } else { if (_root.so.data.icer > 0) { gotoAndStop(Math.min(12, 7 + _root.so.data.icer)); } else { if (_root.locker[41]) { gotoAndStop(6); } else { if (_root.locker[45]) { gotoAndStop(5); } else { if (_root.locker[42]) { gotoAndStop(4); } else { if (_root.locker[3]) { gotoAndStop(3); } else { if (_root.locker[4]) { gotoAndStop(2); } else { gotoAndStop(1); } } } } } } } } } } } } } movieClip 5915 { } movieClip 5917 { } movieClip 5947 { } movieClip 5961 { } movieClip 6011 { } movieClip 6013 { } movieClip 6014 { } movieClip 6015 { } movieClip 6023 { frame 1 { gotoAndStop(_root.skiner + 1); } } movieClip 6026 { } movieClip 6047 { frame 1766 { _root.gotoAndStop('menu'); } } movieClip 6082 { frame 1079 { if (_root.so.data.wins < 1) { } } frame 2457 { if (_root.so.data.wins < 1) { } } frame 2940 { _root.gotoAndStop('menu'); } } movieClip 6086 { } movieClip 6088 { } movieClip 6090 { } movieClip 6092 { } movieClip 6094 { } movieClip 6096 { } movieClip 6099 { } movieClip 6102 { } movieClip 6105 { } movieClip 6108 { } movieClip 6111 { } movieClip 6114 { } movieClip 6117 { } movieClip 6120 { } movieClip 6122 { } movieClip 6125 { } movieClip 6127 { } movieClip 6130 { } movieClip 6133 { } movieClip 6135 { } movieClip 6138 { } movieClip 6140 { } movieClip 6159 { } movieClip 6161 { } movieClip 6163 { } movieClip 6165 { } movieClip 6167 { } movieClip 6169 { } movieClip 6170 { } movieClip 6174 { frame 1 { gotoAndStop(_root.bosss); } } // unknown tag 88 length 148 movieClip 6218 { frame 1 { gotoAndStop(_root.bosss); } } movieClip 6221 { } frame 2 { _root.goblack(); } frame 2 { stop(); } movieClip 6243 { } movieClip 6251 { frame 1 { gotoAndStop((_root.lev + _root.lev * _root.lev + _root.lev * _root.lev * _root.lev) % _totalframes + 1); } } movieClip 6259 { frame 1 { gotoAndStop((_root.lev + _root.lev * _root.lev + _root.lev * _root.lev * _root.lev) % _totalframes + 1); } } movieClip 6262 { } movieClip 6265 { } movieClip 6267 { } movieClip 6269 { } movieClip 6271 { } movieClip 6273 { } movieClip 6281 { frame 1 { gotoAndStop((_root.lev + _root.lev * _root.lev + _root.lev * _root.lev * _root.lev) % _totalframes + 1); } } movieClip 6283 { } movieClip 6285 { } movieClip 6287 { } movieClip 6289 { } movieClip 6291 { } movieClip 6293 { } movieClip 6295 { } movieClip 6297 { frame 1 { gotoAndStop((_root.lev + _root.lev * _root.lev + _root.lev * _root.lev * _root.lev) % _totalframes + 1); } } movieClip 6299 { frame 1 { gotoAndStop((_root.lev + _root.lev * _root.lev + _root.lev * _root.lev * _root.lev) % _totalframes + 1); } } movieClip 6303 { frame 1 { gotoAndStop((_root.lev + _root.lev * _root.lev + _root.lev * _root.lev * _root.lev) % _totalframes + 1); } } movieClip 6309 { } movieClip 6312 { } movieClip 6314 { frame 1 { stop(); } } movieClip 6318 { } movieClip 6320 { } movieClip 6322 { } movieClip 6325 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 6329 { } movieClip 6336 { frame 1 { stop(); } } movieClip 6341 { frame 1 { stop(); } } movieClip 6346 { } movieClip 6349 { } movieClip 6351 { } movieClip 6353 { } movieClip 6356 { } movieClip 6358 { } movieClip 6360 { } movieClip 6365 { frame 1 { stop(); } } movieClip 6369 { } movieClip 6371 { } movieClip 6375 { frame 1 { stop(); } } movieClip 6377 { } movieClip 6378 { } movieClip 6381 { } movieClip 6383 { } movieClip 6385 { } movieClip 6387 { } movieClip 6389 { } movieClip 6391 { } movieClip 6392 { } movieClip 6394 { } movieClip 6396 { } movieClip 6399 { } movieClip 6400 { frame 1 { stop(); } } movieClip 6405 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 6408 { } movieClip 6410 { } movieClip 6417 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 6422 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 6427 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 6430 { } movieClip 6432 { } movieClip 6434 { } movieClip 6436 { } movieClip 6438 { } movieClip 6440 { } movieClip 6446 { } movieClip 6456 { } movieClip 6458 { } movieClip 6459 { } movieClip 6462 { } movieClip 6465 { } movieClip 6466 { frame 1 { stop(); } } movieClip 6468 { } movieClip 6470 { } movieClip 6471 { frame 9 { stop(); } } movieClip 6472 { frame 14 { _root.soundy('Door_Heavy_Close.mp', 100); } frame 23 { stop(); } } movieClip 6474 { } movieClip 6476 { } movieClip 6477 { frame 8 { stop(); } } movieClip 6479 { } movieClip 6480 { frame 20 { stop(); } } movieClip 6481 { frame 1 { k._rotation = -_parent._rotation - 90; } frame 27 { stop(); } } movieClip 6482 { frame 11 { stop(); } } movieClip 6484 { } movieClip 6486 { } movieClip 6488 { } movieClip 6490 { } movieClip 6492 { } movieClip 6493 { frame 19 { stop(); } } movieClip 6494 { frame 11 { stop(); } } movieClip 6496 { } movieClip 6498 { } movieClip 6499 { frame 42 { _parent.nextFrame(); } } movieClip 6501 { } movieClip 6503 { } movieClip 6514 { } movieClip 6515 { frame 22 { stop(); } } movieClip 6516 { } movieClip 6518 { } movieClip 6520 { } movieClip 6522 { } movieClip 6526 { } movieClip 6528 { } movieClip 6531 { } movieClip 6532 { } movieClip 6533 { frame 1 { if (_root.altch == 2) { gotoAndStop(3); } else { if (_root.altch) { gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 6534 { frame 7 { _root.soundy('Door_Heavy_Open.mp', 100); } frame 21 { stop(); } } movieClip 6535 { frame 5 { _root.soundy('Door_Heavy_Close.mp', 100); } frame 11 { stop(); } } movieClip 6537 { } movieClip 6539 { } movieClip 6540 { frame 1 { k._rotation = -_parent._rotation - 90; } frame 27 { stop(); } } movieClip 6541 { frame 14 { _root.soundy('Door_Heavy_Close.mp', 100); } frame 23 { stop(); } } movieClip 6542 { frame 9 { stop(); } } movieClip 6544 { } movieClip 6545 { frame 9 { stop(); } } movieClip 6546 { frame 14 { _root.soundy('Door_Heavy_Close.mp', 100); } frame 23 { stop(); } } movieClip 6548 { } movieClip 6549 { frame 42 { _parent.nextFrame(); } } movieClip 6550 { frame 1 { stop(); } } movieClip 6562 { } movieClip 6565 { } movieClip 6580 { } movieClip 6581 { } movieClip 6584 { } // unknown tag 88 length 63 movieClip 6589 { frame 1 { _root.a.spawnb(this, -9); } } movieClip 6591 { frame 1 { e = 0; while (e < 100) { if (_name == 'a' + e) { _root.a.spawnb(this, e / 100); e = 101; } ++e; } } } movieClip 6593 { frame 1 { _root.a.spawnb(this, 1); } } movieClip 6595 { frame 1 { _root.a.spawnb(this, 1.5); } } movieClip 6597 { frame 1 { _root.a.spawnb(this, -1); } } movieClip 6599 { frame 1 { _root.a.spawnb(this, -3); } } movieClip 6601 { frame 1 { _root.a.spawnb(this, -4); } } movieClip 6603 { frame 1 { _root.a.spawnb(this, -5); } } movieClip 6605 { frame 1 { e = 0; while (e < 50) { if (_name == 'a' + e) { f1 = true; _root.a.spawnb(this, -e * 0.01); } ++e; } if (!f1) { _root.a.spawnb(this, -0.01); } } } movieClip 6608 { } movieClip 6609 { frame 1 { stop(); } } movieClip 6610 { frame 1 { _root.a.spawnb(this, -2); } } movieClip 6611 { frame 1 { _root.a.spawnb(this, 1.4); } } movieClip 6612 { frame 1 { _root.a.spawnb(this, -20); } } movieClip 6613 { frame 1 { _root.a.spawnb(this, -68); } } movieClip 6615 { frame 1 { _root.a.spawnb(this, -7); } } movieClip 6616 { frame 1 { _root.a.spawnb(this, -71); } } movieClip 6618 { frame 1 { _root.a.spawnb(this, -6); } } movieClip 6619 { frame 1 { _root.a.spawnb(this, -52); } } movieClip 6621 { frame 1 { _root.a.spawnb(this, -10); } } movieClip 6622 { } movieClip 6625 { frame 1 { _root.a.spawnb(this, -13); } } movieClip 6626 { frame 1 { _root.a.spawnb(this, -12); } } movieClip 6628 { frame 1 { e = 0; while (e < 20) { if (_name == 'a' + e) { f1 = true; _root.a.spawnb(this, -e * 0.01); } ++e; } if (!f1) { _root.a.spawnb(this, 3); } } } movieClip 6630 { frame 1 { _root.a.spawnb(this, 1.3); } } movieClip 6631 { frame 1 { _root.a.spawnb(this, -14); } } movieClip 6632 { frame 1 { _root.a.spawnb(this, -18); } } movieClip 6633 { frame 1 { _root.a.spawnb(this, -17); } } movieClip 6634 { frame 1 { _root.a.spawnb(this, -22); } } movieClip 6635 { frame 1 { _root.a.spawnb(this, -16); } } movieClip 6636 { frame 1 { _root.a.spawnb(this, -64); } } movieClip 6637 { frame 1 { _root.a.spawnb(this, -78); } } movieClip 6638 { frame 1 { _root.a.spawnb(this, -15); } } movieClip 6639 { frame 1 { _root.a.spawnb(this, -25); } } movieClip 6640 { frame 1 { _root.a.spawnb(this, -32); } } movieClip 6641 { frame 1 { _root.a.spawnb(this, -63); } } movieClip 6643 { frame 1 { e = 0; while (e < 20) { if (_name == 'a' + e) { f1 = true; _root.a.spawnb(this, -e * 0.01); } ++e; } if (!f1) { _root.a.spawnb(this, 1.93); } } } movieClip 6644 { frame 1 { _root.a.spawnb(this, -26); } } movieClip 6645 { } movieClip 6647 { frame 1 { _root.a.spawnb(this, -21); } } movieClip 6648 { frame 1 { _root.a.spawnb(this, -23); } } movieClip 6649 { frame 1 { _root.a.spawnb(this, -33); } } movieClip 6650 { frame 1 { _root.a.spawnb(this, 4); } } movieClip 6651 { frame 1 { _root.a.spawnb(this, -31); } } movieClip 6652 { frame 1 { _root.a.spawnb(this, -30); } } movieClip 6653 { frame 1 { _root.a.spawnb(this, -67); } } movieClip 6654 { frame 1 { _root.a.spawnb(this, -46); } } movieClip 6655 { frame 1 { _root.a.spawnb(this, -29); } } movieClip 6656 { frame 1 { _root.a.spawnb(this, -35); } } movieClip 6658 { frame 1 { _root.a.spawnb(this, -19); } } movieClip 6659 { frame 1 { _root.a.spawnb(this, -48); } } movieClip 6660 { } movieClip 6662 { frame 1 { _root.a.spawnb(this, -49); } } movieClip 6664 { frame 1 { _root.a.spawnb(this, -11); } } movieClip 6665 { frame 1 { _root.a.spawnb(this, -70); } } movieClip 6666 { frame 1 { _root.a.spawnb(this, -44); } } movieClip 6667 { frame 1 { _root.a.spawnb(this, -47); } } movieClip 6668 { frame 1 { _root.a.spawnb(this, -50); } } movieClip 6669 { frame 1 { _root.a.spawnb(this, -51); } } movieClip 6670 { frame 1 { _root.a.spawnb(this, -62); } } movieClip 6671 { frame 1 { _root.a.spawnb(this, -66); } } movieClip 6672 { frame 1 { _root.a.spawnb(this, -40); } } movieClip 6673 { frame 1 { _root.a.spawnb(this, -37); } } movieClip 6674 { frame 1 { _root.a.spawnb(this, -38); } } movieClip 6675 { frame 1 { _root.a.spawnb(this, -39); } } movieClip 6676 { frame 1 { _root.a.spawnb(this, -60); } } movieClip 6677 { frame 1 { _root.a.spawnb(this, -42); } } movieClip 6678 { frame 1 { _root.a.spawnb(this, -58); } } movieClip 6679 { frame 1 { _root.a.spawnb(this, -59); } } movieClip 6680 { } movieClip 6682 { frame 1 { _root.a.spawnb(this, -41); } } movieClip 6683 { frame 1 { _root.a.spawnb(this, -74); } } movieClip 6685 { frame 1 { _root.a.spawnb(this, -34); } } movieClip 6686 { frame 1 { _root.a.spawnb(this, -54); } } movieClip 6687 { frame 1 { _root.a.spawnb(this, -57); } } movieClip 6688 { frame 1 { _root.a.spawnb(this, -56); } } movieClip 6689 { frame 1 { _root.a.spawnb(this, -55); } } movieClip 6690 { frame 1 { _root.a.spawnb(this, -73); } } movieClip 6691 { frame 1 { _root.a.spawnb(this, -72); } } movieClip 6692 { } movieClip 6694 { frame 1 { _root.a.spawnb(this, -43); } } movieClip 6696 { frame 1 { _root.a.spawnb(this, -27); } } movieClip 6698 { frame 1 { _root.a.spawnb(this, -36); } } movieClip 6699 { frame 1 { _root.a.spawnb(this, -53); } } movieClip 6700 { frame 1 { _root.a.spawnb(this, -69); } } movieClip 6701 { frame 1 { _root.a.spawnb(this, -75); } } movieClip 6702 { frame 1 { _root.a.spawnb(this, -65); } } movieClip 6704 { } movieClip 6711 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 6718 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 6726 { } movieClip 6727 { frame 1 { _root.a.spawnb(this, -90); } } movieClip 6728 { frame 1 { _root.a.spawnb(this, -91); } } movieClip 6729 { frame 1 { _root.a.spawnb(this, -88); } } movieClip 6730 { frame 1 { _root.a.spawnb(this, -93); } } movieClip 6731 { frame 1 { _root.a.spawnb(this, -92); } } movieClip 6732 { } movieClip 6734 { frame 1 { _root.a.spawnb(this, -76); } } movieClip 6736 { frame 1 { _root.a.spawnb(this, 1.94); } } movieClip 6737 { frame 1 { _root.a.spawnb(this, -85); } } movieClip 6738 { frame 1 { _root.a.spawnb(this, 1.41); } } movieClip 6739 { } movieClip 6741 { frame 1 { _root.a.spawnb(this, -77); } } movieClip 6743 { frame 1 { _root.a.spawnb(this, 1.495); } } movieClip 6744 { frame 1 { _root.a.spawnb(this, -79); } } movieClip 6745 { frame 1 { _root.a.spawnb(this, -80); } } movieClip 6746 { } movieClip 6748 { frame 1 { _root.a.spawnb(this, -84); } } movieClip 6749 { frame 1 { _root.a.spawnb(this, -83); } } movieClip 6750 { frame 1 { _root.a.spawnb(this, -82); } } movieClip 6751 { frame 1 { _root.a.spawnb(this, -81); } } movieClip 6752 { } movieClip 6754 { } movieClip 6756 { } movieClip 6759 { frame 1 { _root.a.spawnb(this, 1.49); } } movieClip 6760 { } movieClip 6762 { frame 1 { _root.a.spawnb(this, 1.4955); } } movieClip 6764 { frame 1 { _root.a.spawnb(this, -10); } } movieClip 6765 { frame 1 { function levzz(f1) { if (trg.s > 10) { if ((door[0].blo == f1 || door[1].blo == f1 || door[2].blo == f1 || door[3].blo == f1) && f1 > 0) { return 2; } return levz[f1]; } else { return levz[f1]; } } function horsch(trg) { if (_root.it == 141) { trg.gotoAndStop(2); } else { trg.gotoAndStop(1); } } function sloter(trg) { trg.gotoAndStop(1); trg2 = trg._parent._parent._parent; if (trg2.s != 5) { trg2 = trg._parent._parent._parent._parent; } if (trg2.col == 41) { trg.gotoAndStop(2); } } function pffx(f1) { var v3 = _root.levz[f1 + 1] + _root.levz[f1 - 1] + _root.levz[f1 + 10] + _root.levz[f1 - 10]; if (_root.levz[f1] == 0 && v3 < 2 && f5 < f6 || f1 == 35) { _root.levz[f1] = 1; acts2.push(f1); ++f8; if (f1 != 35) { ++f5; } } } function hat(f1) { var v2 = 0; _root.hat[f1] = true; switch (f1) { case 10: case 11: case 12: case 31: case 37: case 40: v2 = 2; break; case 4: case 6: case 7: case 9: case 16: case 19: case 21: case 23: case 28: case 29: case 32: case 41: case 42: case 48: case 50: case 54: v2 = 5; break; case 2: case 5: case 20: case 30: case 34: case 52: case 53: case 58: v2 = 3; break; case 3: case 8: case 22: case 36: case 45: case 56: case 60: case 61: v2 = 4; break; case 26: case 24: case 27: case 33: case 35: case 39: case 42: case 44: case 51: case 55: case 58: v2 = 1; break; case 13: case 14: case 15: case 17: case 18: case 25: case 46: case 47: case 49: case 59: v2 = 0; } _root.hatmode[v2] = f1; } function gish(trg, f1) { if (f1 == 2) { if (trg._parent._parent == player || trg._parent._parent._parent == player || trg._parent._parent._parent._parent == player || trg._parent._parent._parent._parent._parent == player) { f1 = 3; } } if (f1 == 3) { trg.gotoAndStop(1); } else { if (f1) { if (altboss == 2) { trg.gotoAndStop(2); } else { trg.gotoAndStop(1); } } else { if (altboss == 2) { trg.gotoAndStop(3); } else { if (altboss) { trg.gotoAndStop(2); } else { trg.gotoAndStop(1); } } } } } function dmgdo() { var v2 = 0; if (doub) { v2 += 0.75; } if (ups[7]) { ++v2; } if (_root.etol) { v2 += 3; } if (ups[90]) { ++v2; } if (ups[109]) { v2 += _root.coins * 0.04; } if (ups[122] > 0) { v2 += ups[122] * ups[122] * 1.5; } v2 += ups[50] + ups[51] + ups[70] + ups[79] + (ups[80] + ups[4] + ups[197]) * 0.5 + (ups[12] + ups[101] + ups[121] + ups[138] + ups[193] + ups[189]) * 0.3 + (ups[176] + ups[184] + ups[165]) * 0.08; if (ups[120]) { v2 *= 0.95; v2 -= 0.4; } if (demon > 0) { v2 += 0.7; } if (rage != 1) { v2 += rage - 1; } if (ups[154]) { if (sob == -1 || _root.hat[11] && random(2) == 0) { v2 += 2; } } if (ups[69] && !ups[118] && chaf > 0) { chal = Math.max(1, Math.min(5, 1 + (fra - chaf) / 10) * 1.8 - 2); v2 += (chal - 1) * 1.3; } v2 += razor * 0.6; v2 = 3.5 * Math.sqrt(1 + v2 * 1.2); if (ups[169]) { if (ups[2] == 1 || ups[153] || ups[182] || true) { v2 += 6.6; } else { v2 += 4; v2 *= 2; } } var v3 = [0, 0, 0.2, 0.35, 0.05, -0.23, 0]; if (ups[122]) { v3[5] = -0.1; } v2 *= 1 + v3[_root.skiner]; _root.firrb = v2; if (trixx(35)) { v2 += 2; } if (trixx(62)) { v2 += 1; } if (ups[182]) { v2 *= 1.3; v2 += 4; } if (ups[152]) { v2 *= 0.65; } if (_root.it == 83) { v2 += 0.5; } if (_root.hardmode) { var v5 = v2; var v4 = 1 + Math.max(0, 12 - _root.firra) * 0.1; v2 *= v4; if (v2 > 5) { v2 = 5 + (v2 - 5) * 0.95; } if (v2 > 10) { v2 = 10 + (v2 - 10) * 0.85; } if (v2 > 15) { v2 = 15 + (v2 - 15) * 0.85; } if (v2 > 20) { v2 = 20 + (v2 - 20) * 0.85; } if (v2 > 30) { v2 = 25 + (v2 - 25) * 0.85; } v2 /= v4; } return v2; } function omgz(f1) { if (random(3) != 0) { _root.ittt.push(f1); } else { _root.ittt7.push(f1); } } function itemzz() { _root.junxx = [30, 31, 32, 33, 34, 36, 37, 38, 39, 40, 41, 43, 44, 45, 46, 48, 51, 53]; if (_root.locker[68]) { _root.junxx.push(35); } if (_root.locker[74]) { _root.junxx.push(47); } if (_root.locker[72]) { _root.junxx.push(49); } if (_root.locker[77]) { _root.junxx.push(50); } if (_root.locker[78]) { _root.junxx.push(42); } if (_root.locker[81]) { _root.junxx.push(29); } if (_root.locker[84]) { } if (_root.locker[91]) { _root.junxx.push(54); } if (_root.locker[92]) { _root.junxx.push(55); } if (_root.locker[93]) { _root.junxx.push(56); } if (_root.locker[94]) { _root.junxx.push(57); } if (_root.locker[95]) { _root.junxx.push(58); } if (_root.locker[96]) { _root.junxx.push(59); } if (_root.locker[97]) { _root.junxx.push(60); } if (_root.locker[98]) { _root.junxx.push(61); } if (random(4) == 0) { _root.junxx.push(62); } _root.ittt = [1, 1, 2, 3, 4, 5, 6, 7, 8, 8, 10, 12, 13, 14, 15, 19, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 37, 38, 39, 40, 41, 44, 47, 48, 49, 50, 51, 53, 54, 55, 56, 57, 58, 59, 60, 62, 65, 66, 67, 69, 70, 71, 72, 75, 76, 77, 85, 115, 120, 121, 124, 125, 128, 129]; _root.ittt.push(136, 137, 138, 140, 142, 143, 144, 147, 148, 149, 150, 151, 152, 153, 154, 155, 157, 160, 163, 167, 169, 173, 177, 178, 180, 183, 191, 192); _root.ittt2 = [22, 23, 24, 25, 26, 27 + random(2), 29 + random(3), 29 + random(3), 32, 51, 141, 165, 176, 193, 194, 195, 196, 197, 198]; _root.ittt3 = [11, 16, 42, 77, 161]; _root.ittt4 = [54, 54, 60, 60, 64, 21, 21, 139, 156, 147, 195]; _root.ittt6 = [38, 27 + random(2), 29 + random(3), 26, 1, 50]; _root.ittt7 = [8, 67, 79, 80, 81, 115, 133, 159]; _root.ittt8 = [26, 17, 19, 21, 44, 70, 14, 13]; _root.ittt9 = [58, 65, 192]; _root.ittt10 = [7, 33, 101, 146, 142, 173, 182, 184, 185]; if (random(4) == 0 || !_root.hardmode) { _root.ittt7.push(118); } if (random(2) == 0) { _root.ittt3.push(11, 77); } if (random(2) == 0) { _root.ittt10.push(184); _root.ittt4.push(144); } else { _root.ittt4.push(177); } if (random(2) == 0) { _root.ittt6.push(179); _root.ittt3.push(190); } if (_root.locker[65]) { _root.ittt.push(166); } if (_root.locker[66]) { _root.ittt.push(162); } if (_root.locker[67]) { _root.ittt.push(188); } if (_root.locker[69]) { _root.ittt.push(172); } if (_root.locker[70]) { _root.ittt.push(174); } if (_root.locker[71]) { _root.ittt7.push(157); } if (_root.locker[73]) { _root.ittt.push(186); } if (_root.locker[75]) { _root.ittt3.push(175); } if (_root.locker[76]) { _root.ittt4.push(164); } if (random(5) != 0 || !_root.locker[79]) { _root.ittt7.push(145); if (_root.locker[79] && random(10) != 0) { _root.ittt7.push(134); } } else { if (_root.locker[79]) { _root.ittt7.push(134); } } if (_root.locker[80] && (!_root.hardmode || random(3) == 0)) { _root.ittt3.push(168); } if (_root.locker[82]) { _root.ittt.push(189); } if (_root.locker[83]) { _root.ittt.push(171); } if (_root.locker[86]) { _root.ittt.push(170); } if (_root.locker[85]) { _root.ittt.push(187); } if (random(2) == 0) { _root.ittt.push(17); } if (random(3) != 0 && _root.locker[48]) { if (random(3) == 0) { _root.ittt7.push(35); } else { _root.ittt.push(35); } _root.ittt9.push(35); } if (random(2) == 0) { _root.ittt4.push(116); } if (random(2) == 0) { _root.ittt4.push(63); } if (random(5) == 0) { _root.ittt7.push(68); } else { _root.ittt.push(68); } if (random(3) == 0) { _root.ittt7.push(82); } if (random(3) == 0) { _root.ittt7.push(84); } else { if (random(2) == 0) { _root.ittt3.push(84); } } if (_root.locker[3] && _root.skiner != 3) { if (random(3) == 0) { _root.ittt.push(34); } else { if (random(2) == 0) { _root.ittt3.push(34); } else { _root.ittt7.push(34); } } _root.ittt9.push(34); } if (_root.locker[1]) { _root.ittt.push(45); } if (_root.locker[2]) { if (random(3) != 0) { _root.ittt.push(46); } else { _root.ittt7.push(46); } } if (_root.locker[7]) { _root.ittt4.push(78); _root.ittt9.push(78); } if (_root.locker[8] && random(3) != 0) { _root.ittt3.push(20); } if (_root.locker[9] && random(3) != 0) { _root.ittt7.push(83); } if (_root.locker[10]) { if (random(3) != 0) { _root.ittt.push(74); } else { _root.ittt7.push(74); } } if (_root.locker[11] && (!_root.hardmode || random(3) != 0)) { _root.ittt.push(52); } if (_root.locker[12]) { _root.ittt.push(36); } if (_root.locker[13]) { _root.ittt3.push(89); } if (_root.locker[14]) { _root.ittt.push(91); } if (_root.locker[18]) { } if (_root.locker[19]) { _root.ittt.push(86); } if (_root.locker[20]) { _root.ittt.push(87); } if (_root.locker[21]) { _root.ittt.push(88); } if (_root.locker[25] && random(3) != 0) { _root.ittt2.push(92); } if (_root.locker[26]) { _root.ittt.push(98); _root.ittt10.push(98); } if (_root.locker[27]) { _root.ittt.push(94); } if (_root.locker[28]) { _root.ittt.push(95); } if (_root.locker[33]) { _root.ittt.push(93); } if (_root.locker[29]) { if (random(3) != 0) { _root.ittt.push(97); } else { _root.ittt7.push(97); } _root.ittt9.push(97); } if (_root.locker[30]) { _root.ittt.push(99); } if (_root.locker[31]) { _root.ittt.push(100); } if (_root.locker[32]) { _root.ittt.push(96); } if (_root.locker[34]) { _root.ittt.push(101); } if (_root.locker[36]) { _root.ittt.push(102); } if (_root.locker[37]) { if (random(3) != 0) { _root.ittt.push(103); } else { _root.ittt7.push(103); } } if (_root.locker[40]) { if (random(3) != 0) { _root.ittt.push(104); } else { _root.ittt7.push(104); } } if (_root.locker[38]) { _root.ittt.push(105); } if (_root.locker[35]) { _root.ittt.push(106); } if (_root.locker[39]) { _root.ittt.push(107); } if (_root.locker[43]) { _root.ittt.push(108); } if (_root.locker[44]) { if (random(3) != 0) { _root.ittt.push(109); } else { _root.ittt7.push(109); } } if (_root.locker[47]) { _root.ittt.push(110); } if (_root.locker[46]) { _root.ittt.push(111); } if (_root.locker[55]) { omgz(114); } if (_root.locker[56]) { _root.ittt.push(117); } if (_root.locker[57] && _root.skiner != 5) { omgz(122); } if (_root.locker[58]) { omgz(126); } if (_root.locker[59]) { _root.ittt.push(112); _root.ittt10.push(112); } if (_root.locker[60]) { _root.ittt.push(131); } if (_root.locker[61]) { omgz(113); } if (_root.locker[62]) { omgz(127); } if (_root.locker[63]) { omgz(123); _root.ittt9.push(123); } for (z in _root.ittt2) { i = 0; while (i < _root.ittt.length) { if (_root.ittt2[z] == _root.ittt[i]) { _root.ittt.splice(i, 1); break; } ++i; } } for (z in _root.ittt4) { i = 0; while (i < _root.ittt.length) { if (_root.ittt4[z] == _root.ittt[i]) { _root.ittt.splice(i, 1); break; } ++i; } } for (z in _root.ittt6) { i = 0; while (i < _root.ittt.length) { if (_root.ittt6[z] == _root.ittt[i]) { _root.ittt.splice(i, 1); break; } ++i; } } } function picc(f2) { if (random(2) == 0) { _root.picers[random(6)] = f2; } } function newstats() { _root.picers = [1, 2, 3, 4, 5, 6]; picc(101); picc(102); picc(103); _root.noff = false; _root.noff2 = false; _root.noff3 = false; _root.alof = random(3); _root.darky(120); _root.door = undefined; _root.playcol = [1, 1, 1]; _root.pillfirst = true; _root.bombnext = false; _root.notch = false; _root.lastkeeps = 0; _root.armor = 0; _root.pilc = undefined; _root.trix = undefined; _root.atrix = undefined; _root.vamp = 0; _root.monbb = 0; if (_root.chaps > 2) { _root.fade = true; } _root.chaps = 1; _root.horsedown = 0; _root.it = 0; _root.fmode = 1; _root.hmode = 1; _root.bmode = 1; _root.demonz = 0; _root.bookster = false; _root.hatmode = [1, 1, 1, 1, 1]; _root.wtfuuz = false; _root.hat = []; if (_root.skiner > 0 && _root.skiner < 4) { hat(_root.skiner + 9); _root.classit = true; } _root.keys = 0; _root.bombs = 0; _root.coins = 0; _root.lastdev = undefined; _root.minz = [0, 1, 2, 3, 5, 6]; _root.sk = _root.skiner + 1; _root.eto = 0; _root.etol = false; switch (_root.skiner) { case 0: ++_root.bombs; break; case 1: _root.sk = 3; break; case 2: _root.sk = 2; ++_root.keys; break; case 3: _root.sk = 4; _root.coins += 3; break; case 4: _root.sk = 5; hat(31); _root.classit = true; break; case 5: _root.sk = 6; hat(37); _root.classit = true; break; case 6: _root.sk = 8; hat(40); _root.classit = true; _root.armor = 1; } _root.hp = 1000; _root.wiptz = 0; if (_root.skiner == 6) { _root.wiptz = -1.5; } if (_root.skiner == 5) { _root.wiptz = -0.75; } _root.cols = []; _root.colit = 0; _root.piller = []; _root.kramper = false; _root.nohead = false; _root.nodmg = true; _root.evs = 0; _root.firra = 10; _root.firrr = 23; _root.bluf = 0; _root.luck = 0; _root.eterns = 0; if (_root.hardmode) { _root.eterns = 3; } if (_root.chala == 2) { _root.luck = -4; } _root.altb3 = false; if (_root.skiner == 2) { _root.firrr -= 5; } if (_root.skiner == 2) { _root.firrr -= 5; _root.firra -= 2; } var v2 = [0, 0, 0.2, 0.35, 0.05, -0.25, 0]; v1 = 1 + v2[_root.skiner]; _root.firrb = 3.5 * v1; _root.ups = [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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.samer = 0; _root.catlives = 0; _root.shitpenny = false; _root.us = false; _root.whatstart = true; _root.whatstart2 = true; itemzz(); if (_root.chaps > 1) { _root.bombs += _root.chaps; _root.keys += _root.chaps; _root.ups[50] = (_root.chaps - 1) * 0.8; ups[50] = _root.ups[50]; _root.ups[1] = (_root.chaps - 1) * 0.8; ups[1] = _root.ups[1]; _root.ups[15] = Math.round((_root.chaps - 1) * 1.4); ups[15] = _root.ups[15]; if (_root.hardmode) { _root.eterns += 0.4 * _root.chaps; } } } function ender() { var v1 = random(endrooms.length); f2 = endrooms[v1]; endrooms.splice(v1, 1); return f2; } function nch(f5) { if (_root.levz[f5]) { f12 = true; } else { f12 = 2; f4 = false; } if (f5 == _root.bossl || f5 == _root.bossl2 || f5 == _root.hide2) { f12 = false; f4 = false; } if (f12 && f12 != 2) { for (z in endrooms) { if (endrooms[z] == f5) { f12 = false; } } } if (f5 == _root.hide) { f12 = false; f4 = false; } return f12; } function ncheck1(f5) { return nch(f5 + 1) && nch(f5 - 1) && nch(f5 + 10) && nch(f5 - 10); } function nxx(f1) { if (_root.levz[f1] > 0) { return 1; } else { return 0; } } function ncheck(f5) { return nxx(f5 + 1) + nxx(f5 - 1) + nxx(f5 + 10) + nxx(f5 - 10); } function bosschoose() { if (_root.chaps % 2 == 0) { _root.altb3 = true; } if (_root.chaps % 2 == 1) { _root.horsem = _root.locker[5]; _root.altb = true; _root.altb2 = _root.chaps < 4; _root.switchero = _root.chaps < 4 && random(2); _root.swww = _root.chaps + 1; } f1 = 'b' + Math.min(8, _root.chaps) + '-' + random(5); _root.bosss = _root.chaps; _root.horse = false; _root.altboss = false; altb = [0, 34, 37, 29, 26, 30 + random(2) * 5, 30, 31, 8]; if (_root.chaps != 6 && _root.chaps != 8) { if (_root.chaps == 11) { _root.bosss = 40; } else { if (_root.bosss > 25) { } else { if (_root.chaps > 8) { _root.chaps = 9; if (_root.altchap) { _root.bosss = 39; } else { _root.bosss = 24; f1 = 'stan'; } } else { if (_root.horsem && random(5) == 0) { _root.horse = true; _root.horsem = false; f1 = Math.round(_root.chaps / 2); _root.bosss = f1 + 8; if (random(10) == 0) { f1 = 5; _root.bosss = 22; } f1 = 'h' + f1; } else { if (_root.locker[88] && _root.chaps == 7 && random(3) == 0) { if (random(2) == 0) { _root.bosss = 38; } else { _root.bosss = 41; } } else { if (_root.demonz == 1 && random(10) == 0) { _root.demonz = 2; _root.bosss = 23; f1 = 'demon'; } else { if (_root.chaps == 7 && random(3) == 0) { f1 = [30, 33]; _root.bosss = f1[random(f1.length)]; } else { if (_root.altb3 && _root.altchap && random(4) == 0 && _root.chaps < 6) { _root.altb3 = false; f1 = Math.round(_root.chaps / 2 - 1.5); if (random(2) == 0) { f2 = [28, 36]; } else { f2 = [32, 27]; } _root.bosss = f2[f1]; } else { if (_root.altb && random(5) == 0) { _root.altb = false; f1 = Math.round(_root.chaps / 2); _root.bosss = f1 + 12; f1 = 'a' + f1 + '-' + random(3); if (_root.altchap && _root.chaps == 1) { } } else { if (_root.altb2 && random(4) == 0 && (_root.chap > 2 || !_root.altchap)) { _root.altb2 = false; f1 = Math.round(_root.chaps / 2) + 4; _root.bosss = f1 + 12; f1 = 'a' + f1 + '-' + random(3); } else { if (_root.switchero) { f1 = _root.swww; _root.bosss = f1; if (_root.altchap) { _root.bosss = altb[_root.bosss]; } f1 = 'b' + Math.min(8, f1) + '-' + random(5); } else { _root.bosss = _root.chaps; if (_root.altchap) { _root.bosss = altb[_root.bosss]; } f1 = 'b' + Math.min(8, _root.bosss) + '-' + random(5); } } } } } } } } } } } } if (_root.bosss > 25) { f6 = [26, 27, 29, 30, 31, 32, 33, 36, 37, 38, 40, 42]; f7 = [2, 3, 13, 14, 15, 17, 18, 34, 7, 11, 39, 41]; f1 = 'b' + _root.bosss + '-' + random(4); for (e in f6) { if (_root.bosss == f6[e]) { _root.altboss = true; if (_root.bosss == 32 || _root.bosss == 27) { _root.altboss = 2; } if (_root.bosss == 38) { f1 = 'h3'; } } } } if (random(2) == 0) { if (_root.bosss == 17 && _root.locker[22] || _root.bosss == 3 && _root.locker[23] || _root.bosss == 5 && _root.locker[24] || _root.bosss == 41 && _root.locker[89]) { _root.altboss = true; switch (_root.bosss) { case 17: _root.bosss = 20; break; case 3: _root.bosss = 21; break; case 5: _root.bosss = 19; break; case 41: _root.bosss = 42; } } } if (_root.bosss == 8 && _root.locker[45]) { _root.bosss = 25; } _root.swww = _root.chaps; } function sams() { if (_root.beenlev[_root.boner] != 2 && _root.chaps != 1 && _root.boner != undefined) { ++_root.samer; } if (_root.beenlev[_root.boner2] != 2 && _root.double && _root.chaps != 1 && _root.boner2 != undefined) { ++_root.samer; } } function hider() { if (!_root.hider) { _root.mmus = _root.soundy('secret room find.mp', 100); _root.hider = true; } } function hider2() { if (!_root.hider2) { _root.mmus = _root.soundy('isaacxpsecretroomreveal2.mp3', 100); _root.hider2 = true; } } function itmc() { if (_root.levcol[e] > 0) { mpiece.itmc.gotoAndStop(_root.levcol[e]); } else { mpiece.itmc.gotoAndStop('empty'); } } function mapd() { qq = _root._quality; if (qq != 'high') { _root._quality = 'high'; } _root.map.fillRect(_root.map.rectangle, 0); maxxx = undefined; if (satan || error || _root.darks) { e = 35; f1 = (e % 10) * 25 + 15; f2 = Math.round(e / 10 - 0.5) * 10 + 7; maxx = new flash.geom.Matrix(); maxx.translate(f1, f2); maxx.scale(_root._xscale / 100, _root._yscale / 100); mpiece.gotoAndStop(7); _root.map.draw(mpiece, maxx); minx = f1; maxxx = f1; miny = f2; maxy = f2; } else { for (e in _root.levz) { if (e < 110) { if (_root.levz[e] != 0 && (_root.seenlev[e] || ups[54]) && (_root.hide != e && _root.hide2 != e || _root.beenlev[e] && (e != _root.chamb || _root.chama))) { maxx = new flash.geom.Matrix(); f1 = (e % 10) * 25 + 15; f2 = Math.round(e / 10 - 0.5) * 10 + 7; if (f1 > 0) { if (maxxx == undefined) { maxxx = f1; minx = maxxx; maxy = f2; miny = maxy; } else { minx = Math.min(f1, minx); maxxx = Math.max(f1, maxxx); miny = Math.min(f2, miny); maxy = Math.max(f2, maxy); } maxx.translate(f1, f2); if (_root.lev == e) { mpiece.gotoAndStop(3); } else { if (_root.beenlev[e]) { mpiece.gotoAndStop(2); } else { mpiece.gotoAndStop(1); } } itmc(); maxx.scale(_root._xscale / 100, _root._yscale / 100); _root.map.draw(mpiece, maxx); } } } } e = 0; while (e < _root.levz.length) { if (_root.levz[e] != 0 && e < 110) { maxx = new flash.geom.Matrix(); f1 = (e % 10) * 25 + 15; f2 = Math.round(e / 10 - 0.5) * 10 + 7; maxx.translate(f1, f2); maxx.scale(_root._xscale / 100, _root._yscale / 100); mpiece.gotoAndStop(1); if (_root.shopl == e && (_root.shopaz || ups[21])) { mpiece.gotoAndStop(4); } else { if (_root.boner == e && (ups[21] || _root.treasd) || _root.boner2 == e && (ups[21] || _root.treasd2)) { mpiece.gotoAndStop(5); } else { if ((_root.bossl == e && (!_root.double || _root.bosss == _root.bosss2) || _root.bossl2 == e && _root.bosss != _root.bosss2) && (ups[21] || _root.bossd || ups[194])) { mpiece.gotoAndStop(6); } else { if (_root.hide == e && (ups[54] || _root.hider || _root.hiderr)) { mpiece.gotoAndStop(7); } else { if (_root.hide2 == e && (_root.hider2 || _root.hiderr2)) { mpiece.gotoAndStop(16); } else { if (_root.minb == e && (ups[21] || _root.minbb)) { mpiece.gotoAndStop(8); } else { if (_root.gamb == e && (ups[21] || _root.gambb)) { mpiece.gotoAndStop(9); } else { if (_root.cus == e && (ups[21] || _root.cusb)) { mpiece.gotoAndStop(14); } else { if (_root.chamb == e && (ups[21] || _root.chambb)) { if (_root.altch == 2) { mpiece.gotoAndStop(17); } else { if (_root.altch) { mpiece.gotoAndStop(11); } else { mpiece.gotoAndStop(10); } } } else { if (_root.lib == e && (ups[21] || _root.libb)) { mpiece.gotoAndStop(12); } else { if (_root.sac == e && (ups[21] || _root.sacb)) { mpiece.gotoAndStop(13); } } } } } } } } } } } if (mpiece._currentframe > 1) { itmc(); _root.map.draw(mpiece, maxx); minx = Math.min(f1, minx); maxxx = Math.max(f1, maxxx); miny = Math.min(f2, miny); maxy = Math.max(f2, maxy); } } ++e; } } _root.mapa._yscale = 10000 / _root._xscale; _root.mapa._xscale = _root.mapa._yscale; _root.mapa._x = 130 - (maxxx + minx) / 2; _root.mapa._y = 40 - (maxy + miny) / 2; if (qq != 'high') { _root._quality = qq; } } function outgrid(f1) { var v1 = f1 % rowz; var v2 = Math.round(f1 / rowz - 0.5); xenf = v1 * roxx; yenf = v2 * roxx; } function ingrid(f1, f2, f3) { if (f3) { f1 = Math.min(560, Math.max(80, f1)); f2 = Math.min(400, Math.max(160, f2)); f1 /= roxx; f2 /= roxx; f1 = Math.round(f1); f2 = Math.round(f2); f1 = Math.max(0, Math.min(rowz - 1, f1)); f2 = Math.max(0, f2); return f1 + rowz * f2; } f1 = Math.min(620, Math.max(20, f1)); f2 = Math.min(447, Math.max(110, f2)); f1 /= roxx; f2 /= roxx; f1 = Math.round(f1); f2 = Math.round(f2); f1 = Math.max(0, Math.min(rowz - 1, f1)); f2 = Math.max(0, f2); return f1 + rowz * f2; } function gridp(f1, f2, f3, f4) { f1 -= gridx; f2 -= gridy; if (f3 == undefined) { return [int(f1 / gridv + 1) * gridmax + 1, int(f2 / gridv) + 1]; } else { return [int(f1 / gridv + 1 + f3) * gridmax + 1, int(f2 / gridv + f4) + 1]; } } function gridput(f5, f6) { a = 0; for (;;) { if (!(grid.getPixel(f5[0], f5[1]) != 0 && a < gridmax)) break; ++f5[0]; ++a; } grid.setPixel(f5[0], f5[1], f6); } function gridput2(f5, f6) { a = 0; for (;;) { if (!(grid2.getPixel(f5[0], f5[1]) != 0 && a < gridmax)) break; ++f5[0]; ++a; } grid2.setPixel(f5[0], f5[1], f6); } function topz(cap) { timer[cap] = getTimer(); } function tip(cap) { alltimer[cap] += (getTimer() - timer[cap]) / 25; } function crand(f1) { if (cra1 == undefined) { cra1 = Math.random() * Math.PI * 2; cra2 = f1; return Math.cos(cra1) * f1; } else { f1 = cra1; cra1 = undefined; return Math.sin(f1) * cra2; } } function itzz(f1) { var v2 = f1 != 114 && f1 != 118 && f1 != 138 && f1 != 150 && f1 != 151 && f1 != 152 && f1 != 153 && f1 != 154 && f1 != 157 && f1 != 159 && f1 != 168 && f1 != 169 && f1 != 182 && f1 != 184 && f1 != 185 && f1 != 189 && f1 != 190 && f1 != 191 && f1 != 193 && f1 != 196 && f1 != 197; return f1 > 7 && f1 != 12 && f1 != 16 && f1 != 48 && f1 != 50 && f1 != 51 && f1 != 52 && f1 != 68 && f1 != 70 && f1 != 79 && f1 != 80 && f1 != 88 && f1 != 89 && f1 != 90 && f1 != 99 && f1 != 101 && f1 != 103 && f1 != 108 && f1 != 109 && f1 != 110 && v2 || f1 == 5; } function itz(f1) { if ((f1 == 79 || f1 == 80 || f1 == 82 || f1 == 83 || f1 == 81 || f1 == 113 || f1 == 122 || f1 == 118 || f1 == 157 || f1 == 159 || f1 == 145) && satan && !trixx(56)) { _root.trg.d.d.gotoAndStop(10); } else { if (satan && _root.trg.d.d._currentframe == 10) { _root.trg.d.d.gotoAndStop(9); } } if (_root.skiner == 4 && satan) { _root.trg.d.d.gotoAndStop(11); } var v2 = [8, 67, 95, 99, 100, 113, 163, 167, 174, 188]; var v4 = false; for (o in v2) { if (v2[o] == f1) { v4 = true; } } var v5 = 0; if (v4) { for (o in v2) { v5 += _root.ups[v2[o]]; } } wtftex = _root.wiptz; var v6 = 1.2 + _root.wiptz * 3; if (_root.hardmode && _root.wiptz > 0) { v6 *= 0.6; v6 += _root.wiptz * _root.wiptz * 0.2; } if (v4 && v5 > 2) { return 0; } else { if (_root.ups[f1] || _root.colss[f1] && random(5) == 0) { return 0; } else { if (itzz(f1)) { return f1; } else { if (1 / Math.max(0.2, v6) > Math.random()) { return f1; } else { return 0; } } } } } function giveit() { var v2 = 0; var v4 = 0; while (v2 == 0) { ++v4; if (v4 > 100) { var v3 = random(_root.ittt.length); v2 = itz(_root.ittt[v3]); if (v2 > 0) { _root.ittt.splice(v3, 1); } if (_root.ittt.length <= 5) { itemzz(); } } else { if (_root.lev == _root.lib) { var v3 = random(_root.ittt9.length); v2 = itz(_root.ittt9[v3]); if (v2 > 0) { if (lib == v3) { v2 = -1; lib = v3; } } } else { if (_root.ittt8.length > 0 && _root.lev == _root.chamb && !_root.altch) { var v3 = random(_root.ittt8.length); v2 = itz(_root.ittt8[v3]); if (v2 > 0) { _root.ittt8.splice(v3, 1); } } else { if ((_root.ittt7.length > 0 && !_root.altsat || _root.ittt10.length > 0 && _root.altsat) && (satan || bummer == 2 || _root.lev == _root.cus) || _root.lev == _root.chamb && _root.altch == 2 && _root.ittt10.length > 0) { bummer = false; if (_root.altsat || _root.lev == _root.chamb) { var v3 = random(_root.ittt10.length); v2 = itz(_root.ittt10[v3]); } else { var v3 = random(_root.ittt7.length); v2 = itz(_root.ittt7[v3]); if (v2 > 0) { _root.ittt7.splice(v3, 1); } } } else { if (_root.ittt6.length > 0 && treas && _root.chaps != 11) { var v3 = random(_root.ittt6.length); v2 = itz(_root.ittt6[v3]); if (v2 > 0) { _root.ittt6.splice(v3, 1); } } else { if ((_root.lev == _root.shopl || bummer) && _root.ittt4.length > 1) { bummer = false; var v3 = random(_root.ittt4.length); v2 = itz(_root.ittt4[v3]); if (v2 > 0) { _root.ittt4.splice(v3, 1); } } else { if ((_root.lev == _root.boner || _root.lev == _root.boner2) && random(2) == 0 && _root.ittt5.length > 1) { var v3 = random(_root.ittt5.length); v2 = itz(_root.ittt5[v3]); if (v2 > 0) { _root.ittt5.splice(v3, 1); } } else { if (_root.lev == _root.hide) { var v3 = random(_root.ittt3.length); v2 = itz(_root.ittt3[v3]); if (v2 > 0) { _root.ittt3.splice(v3, 1); } } else { if (_root.lev == _root.chamb && _root.altch) { var v3 = random(_root.ittt2.length); v2 = itz(_root.ittt2[v3]); if (v2 > 0) { _root.ittt2.splice(v3, 1); } } else { if (_root.lev == _root.bossl || _root.lev == _root.bossl2) { if (_root.chaps == 6 && _root.locker[74] && random(3) != 0 && !ups[139]) { v2 = 139; } else { if (_root.bosss == 23 && _root.ittt7.length > 0) { e = 0; while (e < 100) { var v3 = _root.ittt7[random(_root.ittt7.length)]; if (!ups[v3]) { v2 = v3; e = 1000; } ++e; } } else { if (_root.bosss == 38 && !ups[181]) { v2 = 181; } else { if (_root.bosss == 22 && !ups[130]) { _root.locker[32] = true; v2 = 130; } else { if (_root.bosss == 21 && !ups[96]) { _root.locker[32] = true; v2 = 96; } else { if (_root.bosss == 19 && !ups[99]) { _root.locker[30] = true; v2 = 99; } else { if (_root.bosss == 20 && (!ups[100] || !ups[50])) { _root.locker[31] = true; if (ups[100] || random(6) == 0) { v2 = 50; } else { v2 = 100; } } else { if (_root.bosss > 8 && _root.bosss < 13) { _root.locker[7] = true; v2 = 73; } else { var v3 = random(_root.ittt2.length); v2 = itz(_root.ittt2[v3]); if (v2 > 0) { _root.ittt2.splice(v3, 1); } } } } } } } } } } else { var v3 = random(_root.ittt.length); v2 = itz(_root.ittt[v3]); if (v2 > 0) { _root.ittt.splice(v3, 1); } } } } } } } } } } } } return v2; } function speco(trg, b1) { trg.uncol = 200 + fra; if (trg.specoz) { var v2 = trg.specoz; if (trg.specoz == 23) { switch (trg.s) { case 94: case 85: case 80: case 18: colorit(trg, 1, 1, 1, 0, 0, 0); break; case 81: case 10: case 54: case 101: colorit(trg, 15, 15, 15, 0, 0, 0); break; case 46: case 55: colorit(trg, 15, 15, 15, 0, 0, 0); break; case 78: colorit(trg, 7, 7, 7, 0, 0, 0); break; case 36: case 74: case 75: case 76: colorit(trg, 5.5, 5.5, 5.5, 0, 0, 0); break; case 99: colorit(trg, 5.2, 5.2, 5.2, 0, 0, 0); break; case 45: case 52: colorit(trg, 2, 2, 2, 0, 0, 0); break; case 25: colorit(trg, 5, 5, 5, 0, 0, 0); break; case 61: colorit(trg, 7, 7, 7, 0, 0, 0); break; case 65: case 24: colorit(trg, 5, 8, 8, 0, 0, 0); break; case 69: colorit(trg, 5, 15, 15, 0, 0, 0); break; case 15: if (trg.alter == 2) { colorit(trg, 5.5, 5.5, 5.5, 0, 0, 0); } else { colorit(trg, 3, 6, 6, 0, 0, 0); } break; case 100: if (altboss) { colorit(trg, 7.5, 7.5, 7.5, 0, 0, 0); } else { colorit(trg, 3, 3, 3, 0, 0, 0); } break; case 64: colorit(trg, 5, 3, 5, 0, 0, 0); break; case 27: if (trg.alter == 2) { colorit(trg, 6, 6, 6, 0, 0, 0); } else { colorit(trg, 3, 3, 3, 0, 0, 0); } break; case 28: if (altboss == 1) { colorit(trg, 65, 65, 65, 0, 0, 0); } else { colorit(trg, 1.5, 1.5, 1.5, 0, 0, 0); } break; case 30: case 88: if (trg.alter == 2 || trg.alter == 3) { colorit(trg, 3, 3, 3, 0, 0, 0); } else { colorit(trg, 6, 6, 6, 0, 0, 0); } break; case 71: case 72: case 73: if (altboss) { colorit(trg, 10, 10, 10, 0, 0, 0); } else { colorit(trg, 3, 3, 3, 0, 0, 0); } break; case 43: colorit(trg, 7, 7, 7, 0, 0, 0); break; case 87: case 84: colorit(trg, 4.5, 4.5, 4.5, 0, 0, 0); break; case 62: if (altboss) { colorit(trg, 3, 3, 3, 0, 0, 0); } else { colorit(trg, 3, 4.5, 4.5, 0, 0, 0); } break; case 79: if (altboss == 1) { colorit(trg, 3, 3, 3, 160, 160, 160); } else { colorit(trg, 3, 3, 3, 0, 0, 0); } break; case 102: colorit(trg, 2, 2, 2, 0, 0, 0); break; default: colorit(trg, 3, 3, 3, 0, 0, 0); } } else { if (specol2[v2].length > 4) { colorit(trg, specol2[v2][0], specol2[v2][1], specol2[v2][2], specol2[v2][3], specol2[v2][4], specol2[v2][5]); } else { colorit(trg, specol2[v2][0], specol2[v2][1], specol2[v2][2], 0, 0, 0); } } } else { if (trg.special || trg.specozz) { var v2 = trg.specol; colorit(trg, specol[v2][0], specol[v2][1], specol[v2][2], 0, 0, 0); } else { colorit(trg, 1, 1, 1, 0, 0, 0); } } if (!b1) { if (pacman) { trg.uncol = unic + fra + 1; colorit(trg, trg.colo.redMultiplier * 0.6, trg.colo.greenMultiplier * 0.7, trg.colo.blueMultiplier * 1.3, trg.colo.redOffset * 0.6, trg.colo.greenOffset * 0.6, trg.colo.blueOffset * 0.6); } else { if (trg.frezz > 0) { trg.uncol = trg.frezz + fra + 2; colorit(trg, trg.colo.redMultiplier * 0.52, trg.colo.greenMultiplier * 0.52, trg.colo.blueMultiplier * 0.52, 60 + trg.colo.redOffset * 0.6, 60 + trg.colo.greenOffset * 0.6, 60 + trg.colo.blueOffset * 0.6); } else { if (trg.poiss > 0 && trg.s != 64 && trg.s != 46) { var v2 = Math.max(0.6, (200 - trg.poiss) / 200 - 0.1); if (trg.specoz == 23) { trg.colo.blueMultiplier *= v2; trg.colo.redMultiplier *= v2; } colorit(trg, trg.colo.redMultiplier * (v2 * 0.25 + 0.75), trg.colo.greenMultiplier * 0.9 + 0.2 * (1 - v2), trg.colo.blueMultiplier * (v2 * 0.25 + 0.75), trg.colo.redOffset * 0.6, trg.colo.greenOffset * 0.6 + 20 + (1 - v2) * 90, trg.colo.blueOffset * 0.6); } else { if (trg.alter == 2 && trg.s == 42) { colorit(trg, 0.66, 1, 0.74, 0, 0, 0); } else { if (trg.spid > 0) { if (trg.spida == 2) { colorit(trg, 0.5, 0.5, 0.5, -100, -100, -100); } else { colorit(trg, trg.colo.redMultiplier * 0.5, trg.colo.greenMultiplier * 0.5, trg.colo.blueMultiplier * 0.5, 150 + trg.colo.redOffset * 0.45, 150 + trg.colo.greenOffset * 0.45, 150 + trg.colo.blueOffset * 0.45); } trg.uncol = fra + 10; } else {} } } } } } } function momlo() { if (trrisss + 45 + random(120) <= fra) { trrisss = fra; _root.soundy('Mom_Vox_Isaac_' + random(3) + '.mp'); } mome = random(4); if (mome >= 2) { ++mome; } moml = fra + 30; mom[mome].d.gotoAndStop(2); } function atta(f7) { return (f7 >= 7 || f7 <= 2 || f7 == 4 || f7 == 5 || f7 == 3) && f7 != 37 && f7 != 33; } function trgdy(f1) { if (f1) { var v1 = Math.max(0, 8.5 + trg.dy); trg.d._y = trg.dy * 0.5 - 15 + v1 * v1; if (trg.ba) { trg.d._y += 5; } } else { trg.d._y = trg.dy; } if (trg.d._xscale == 100) { trg.d.sh._y = -trg.d._y; } else { trg.d.sh._y = (-trg.d._y / trg.d._xscale) * 100; } } function attach(trg, f7) { if (atta(f7)) { trg.gotoAndStop(1); if (f7 == 72 || f7 == 73) { f7 = 71; } if (f7 == 75 || f7 == 76 || f7 == 77) { f7 = 74; } if (f7 == 7 && _root.chaps > 6 && _root.chaps != 9) { f7 = 'gibs-red'; } else { f7 = 'b' + f7; } trg.attachMovie(f7, 'd', 30); } else { trg.gotoAndStop(f7); } } function abr() { if (fra2) { return 'A'; } else { return 'B'; } } function efly(trg) { var v1 = create(trg.xp + 0.2, trg.yp + 0.2, 0, 0, 0, 0, 96); v1.efly = true; v1.trg2 = trg; v1.outway = true; v1.wtf = flyer++; return v1; } function create(f1, f2, f3, f4, f5, f6, f7, f9) { var v5 = f7; ++ballz; var v13 = 'b' + ballz; var v11 = ball.length; var v8 = 0; if (v11 == 0) { v8 = ballz + 20000; } else { v8 = ballz + 10000; } f18 = false; if (f7 == 33.1) { f7 == 33; f18 = true; v8 = 323; } else { if (f7 == 33) { v8 = 322; } } f7 = Math.round(f7); v5 -= f7; var v10 = atta(f7); namer2 = 'ball'; if (f7 == 9) { namer2 = 'bullet1'; v10 = false; } if (v10) { namer2 = 'emptyz'; } ball[v11] = attachMovie(namer2, v13, v8); var v2 = ball[v11]; if (f18) { v2.holi = true; } if (f7 > 9 && f7 != 33) { ++spuz; v2.spuz = spuz; } v2.hp = hps[f7]; v2.mhp = v2.hp; if (f7 == 5 && v5 > 0.04) { for (;;) { if (!(enfcheckx(f1, f2, 320, 280, 1000) && !enfcheck(f1 * 0.5 + 160, f2, 320, 280, 100))) break; posw(f1, f2, 20); f1 = xenf; f2 = yenf; } } v2.e = ballz; v2.xp = f1; v2.yp = f2; v2.rp = f3; v2.ma = masses[f7]; v2.sss = f9; switch (f9) { case 42: _root.soundy('stoneshoot' + random(3) + '.wav'); break; case 12: case 26: if (v2.alter != 3) { _root.soundy('Shakey_Kid_Roar_' + random(3) + '.mp', 100); } else { case 19: case 31: case 30: case 14: case 11: case 34: case 49: case 62: case 79: case 88: case 86: case 90: case 99: case 98: case 92: case 100: case 102: _root.soundy('bloodshoot' + random(3) + '.wav'); break; case 56: _root.soundy('meatheadshoot' + fra % 3 + '.wav'); break; case 69: _root.soundy('Cute_Grunt_' + random(3) + '.mp', 100); break; case 63: case 64: case 65: case 66: _root.soundy('Monster_Grunt_0_' + abr() + '.mp', 100); break; case 38: } } v2.xbew = f4 + Math.random() * 0.01; v2.xb = v2.xbew; v2.ybew = f5 + Math.random() * 0.01; v2.xb = v2.ybew; v2.s = f7; v2.e = ballz; if (v10) { attach(v2, Math.round(f7)); } else { v2.gotoAndStop(f7); if (v2.holi) { v2.gotoAndStop(32); } } v2.sca = 1; v2.fra = fra; refl = []; v2.spl = 0; v2.bh = true; v2.rr = 1; if (v2.s == 49) { v2.alter = 1; } v2.apf = v2.s <= 5 || v2.s == 19 || v2.s == 20 || v2.s == 33 || v2.s == 36 || v2.s == 43 || v2.s == 28 || v2.s == 45 || v2.s == 53 || v2.s == 62 || v2.s >= 72 && v2.s <= 77 || v2.s == 78 || v2.s == 84 || v2.s == 101; v2.minb = v2.s > 45 && v2.s < 53; if (_root.specol[_root.lev][v2.spuz] < 23 && _root.specol[_root.lev][v2.spuz] > -1) { v2.special = _root.specol[_root.lev][v2.spuz]; v2.specol = _root.specol[_root.lev][v2.spuz]; } if (!_root.beenlev2[_root.lev] && !gospo) { if (f7 > 9 && f7 != 13 && f7 != 18 && f7 != 20 && f7 != 28 && f7 != 33 && f7 != 35 && f7 != 36 && f7 != 37 && f7 != 42 && f7 != 19 && f7 != 43 && f7 != 44 && f7 != 45 && fra < 10 && !v2.minb && f7 < 62) { v2.special = random(20) == 0; _root.specol[_root.lev][v2.spuz] = v2.special; } } var v9 = v2.minb; f2 = f7 == 15 || f7 == 29 || f7 == 61 || f7 == 38 || f7 == 35 || f7 == 88 || f7 == 44 || f7 == 39 || f7 == 57 || f7 == 42 || f7 == 30 || v9; f1 = f7 == 41 || f7 == 55 || f7 == 60 || f7 == 53; if (v5 && f7 == 28) { altboss = 2; } if (v5 && (f7 == 100 || f7 == 67 || f7 == 68 || f7 == 62 || f7 == 19)) { altboss = 1; } if (_root.alto[_root.lev][v2.spuz] == 2) { v5 = 0.1; } else { if (_root.alto[_root.lev][v2.spuz] == 3) { v5 = 0.2; } } if (f7 == 16 || f7 == 27 || f7 == 25 || f7 == 26 || f7 == 24 || f7 == 14 || f2 || f1) { if ((v5 > 0.15 || random(100) == 0 && !gospo) && (f7 == 26 || f7 == 15 || f7 == 30 || f7 == 88 || f7 == 16 || f7 == 39 || f7 == 55)) { v2.alter = 3; if (f7 == 26 || f7 == 55) { trg2 = efly(v2); } } else { if ((v5 || random(21) == 0 && !gospo && !f1 || random(25) == 0 && !f2 || random(100) == 0 && !v9) && f7 != 15) { if (f7 == 46 && flox.s == 38) { flox.minb = 3; v2.minb = 3; flox.alter = 3; v2.alter = 3; v2._xscale *= 1.6; v2._yscale *= 1.6; if (flox.special) { flox._xscale = 133; flox._yscale = 133; flox.special = undefined; speco(flox); } else { flox._xscale *= 1.33; flox._yscale *= 1.33; } v2.hp *= 2; v2.mhp = v2.hp; flox.hp *= 1.5; if (flox.eternal) { flox.hp *= 0.6; } flox.mhp = flox.hp; } else { v2.alter = 2; if (v9) { v2.minb = 2; v2._xscale *= 1.25; v2._yscale *= 1.25; f1 = 1.5; switch (v2.s) { case 48: f1 = 1.3; break; case 49: f1 = 1.6; break; case 51: if (fra < 30) { v2.specol = 8; v2.specozz = true; speco(v2); } f1 = 1; break; case 52: v2.specol = 9; v2.specozz = true; speco(v2); f1 = 1; } v2.hp *= f1; v2.mhp = v2.hp; } } } else { v2.alter = 1; } } if ((f7 == 38 || f7 == 14) && v2.alter == 2) { v2.hp *= 1.5; v2.mhp = v2.hp; } if (f7 == 57 && v2.alter == 2 || v2.s == 55 && v2.alter == 3) { v2.hp *= 1.25; v2.mhp = v2.hp; } if (f7 == 29 && v2.alter == 2) { v2.hp *= 1.5; v2.mhp = v2.hp; v2.wait = 0; } if (f1 && v2.alter == 2) { v2.hp *= 1.25; v2.mhp = v2.hp; if (_root.chaps < 9) { v2.hallo = true; } } } _root.alto[_root.lev][v2.spuz] = v2.alter; if (f7 == 90) { v2.alter = random(4) + 1; efly(v2); } if (f7 == 15 && v2.alter != 3) { if (altboss == 2 || v5 > 0.15) { v2.alter = 3; } else { if (altboss || v5) { v2.alter = 2; } else { v2.alter = 1; } } } if (f7 == 81) { if (v5) { v2.alter = 2; v2.hp *= 1.1; v2.mhp = v2.hp; f4 = ['Isaac', 'Magdalene', 'Cain', 'Judas', '???', 'Eve', 'Samson']; st11(f4[_root.skiner] + ' vs ' + 'Krampus'); } else { v2.alter = 1; } } if ((fra < 30 || _root.lev == _root.chamb) && _root.lev != _root.bossl && _root.lev != _root.bossl2 && !gospo || mheart && spezz == 23 || allets || _root.specol[_root.lev][v2.spuz] == 23 || _root.specol[_root.lev][v2.spuz] == 23.1) { if (f7 == 10 || f7 == 11 || f7 == 14 || f7 == 12 || f7 == 15 || f7 == 16 || f7 == 21 || f7 == 22 || f7 == 23 || f7 == 24 || f7 == 25 || f7 == 26 || f7 == 27 || f7 == 29 || f7 == 31 || f7 == 30 || f7 == 32 || f7 == 34 || f7 == 38 || f7 == 39 || f7 == 40 || f7 == 41 || f7 == 46 || f7 == 47 || f7 == 48 || f7 == 49 || f7 == 50 || f7 == 51 || f7 == 52 || f7 == 54 || f7 == 55 && v2.alter == 2 || f7 == 56 || f7 == 57 || f7 == 58 || f7 == 59 || f7 == 60 || f7 == 61 || f7 == 80 || f7 == 86 || f7 == 87 || f7 == 88 || f7 == 89 || f7 == 90 || f7 == 91 || f7 == 92 || f7 == 94 || f7 == 77 && fra < 20) { f1 = 0; if (f7 == 80 || f7 == 30 || f7 == 57) { f1 = 1; } if ((random(4) + random(4) + f1 < _root.eterns * 0.48 - thistern && spezz != 23 || mheart && spezz == 23 || allets || _root.specol[_root.lev][v2.spuz] == 23 || _root.specol[_root.lev][v2.spuz] == 23.1) && !noet && (v2.s != 77 || random(30) == 0)) { if (f7 == 14 || f7 == 80 || f7 == 12 || f7 == 31 || f7 == 40 || f7 == 56 || f7 == 61 || f7 == 89) { f1 = 0.25; } else { f1 = 0.5; } if (f7 == 26 && v2.alter == 3) { trg3 = efly(v2); trg4 = efly(v2); trg2.wtf *= 1.5; trg3.wtf *= 1.5; trg4.wtf *= 1.5; } if (f7 == 60) { if (v2.alter > 1) { v2.alter = 1; } v2.hp *= 1.1; } if (!gospo) { if (_root.lev != _root.chamb || _root.altch != 2) { _root.eterns -= f1; } if (f7 == 30 || f7 == 57) { f1 *= 2.2; } thistern += f1 * 4; } if (f7 == 40) { v2.fire = 10; } b1 = random(5) == 0 && f7 == 22; if (b1 && _root.specol[_root.lev][v2.spuz] != 23 || _root.specol[_root.lev][v2.spuz] == 23.1) { _root.specol[_root.lev][v2.spuz] == 23.1; v2.specoz = 23; v2.eternal = 2; v2.bossheart = true; v2.showbar = true; } else { v2.specoz = 23; _root.specol[_root.lev][v2.spuz] = 23; v2.eternal = true; } v2.etdrop = !mheart && (_root.lev != _root.chamb || _root.altch != 2); speco(v2); if (_root.chaps < 3) { v2.hp += 3.25; v2.hp *= 1.275; v2.mhp = v2.hp; } else { v2.hp += 2; v2.hp *= 2.1; v2.mhp = v2.hp; } if (v2.minb) { if (_root.chaps < 3) { v2.hp *= 0.75; v2.mhp = v2.hp; } v2.specol = undefined; v2.specozz = undefined; speco(v2); if (v2.alter == 2) { v2._yscale *= 1.3; v2._xscale = v2._yscale; } else { v2._yscale *= 1.2; v2._xscale = v2._yscale; } if (v2.minb == 3) { v2.hp *= 0.4; v2.mhp = v2.hp; } } switch (f7) { case 80: attach(v2, '80-'); v2.etdrop = false; break; case 25: v2._yscale *= 1.4; v2._xscale = v2._yscale; break; case 27: if (v2.alter != 2) { v2._yscale *= 0.8; v2._xscale = v2._yscale; v2.hp *= 0.6; v2.mhp = v2.hp; } break; case 34: case 29: case 54: v2.hp *= 1.4; v2.mhp = v2.hp; break; case 16: v2.hp *= 2; v2.mhp = v2.hp; break; case 94: attach(v2, '94-'); v2._yscale *= 1.7; v2._xscale = v2._yscale; break; case 10: v2._yscale *= 0.9; v2._xscale = v2._yscale; break; case 14: if (v2.alter == 2) { v2._yscale *= 1.3; v2._xscale = v2._yscale; } else { v2._yscale *= 1.4; v2._xscale = v2._yscale; } v2.hp *= 2.2; v2.mhp = v2.hp; break; case 58: v2._yscale *= 1.4; v2._xscale = v2._yscale; v2.hp *= 2.2; v2.mhp = v2.hp; break; case 77: v2.bossheart = true; sizes[v2.s] = 18; v2._yscale *= 3; v2._xscale = v2._yscale; v2.hp *= 1.8; v2.mhp = v2.hp; break; case 24: v2.rest = 0; break; case 56: v2._yscale *= 1.15; v2._xscale = v2._yscale; break; case 89: v2.mhp = v2.hp * 5; v2._yscale *= 1.3; v2._xscale = v2._yscale; break; case 22: if (v2.eternal == 2) { v2.hp *= 1.7; v2.mhp = v2.hp; v2._yscale *= 1.3; v2._xscale = v2._yscale; trg2 = efly(v2); trg3 = efly(v2); trg2.wtf *= 6; trg3.wtf *= 6; } else { v2._yscale *= 0.9; v2._xscale = v2._yscale; } break; case 61: v2.hp *= 0.4; v2.mhp = v2.hp; case 15: case 16: case 30: case 55: v2._yscale *= 1.3; v2._xscale = v2._yscale; } } } } if (f7 == 54) { v2.alter = 1; } f1 = []; if (_root.locker[3] || _root.lev % 4 == 0 || _root.hardmode) { if (altboss) { switch (f7) { case 67: f1 = [16, 19]; break; case 19: if (f155 == undefined) { f155 = random(3) == 0; } if (!wtfe || spezz) { wtfe = true; f1 = [16, 3]; if (f155) { f1 = [21]; } } break; case 28: if ((!wtfe || spezz) && altboss == 2) { wtfe = true; f1 = [22]; } break; case 68: f1 = [3]; break; case 62: if (!wtfe || spezz) { wtfe = true; f1 = [16]; } } } else { switch (f7) { case 98: f1 = [18]; break; case 99: f1 = [21, 7]; break; case 100: f1 = [18, 20]; break; case 45: if (!wtfe || spezz) { wtfe = true; f1 = [19, 7]; } break; case 63: f1 = [7]; break; case 64: f1 = [17]; break; case 65: f1 = [16]; break; case 66: if (!wtfe || spezz) { wtfe = true; f1 = [18]; } break; case 71: case 72: case 73: if (!wtfe || spezz) { wtfe = true; f1 = [15]; } break; case 43: if (!altboss) { f1 = [14]; } break; case 68: f1 = [12, 13]; break; case 36: f1 = [11]; break; case 28: if ((!wtfe || spezz) && !altboss) { wtfe = true; f1 = [8, 9]; } break; case 19: if (!wtfe || spezz) { wtfe = true; f1 = [3, 7]; } break; case 67: f1 = [5, 6]; break; case 79: if ((i == 0 || spezz) && !altboss) { f1 = [3, 4]; } break; case 20: f1 = [1, 2]; } } gobo = false; if (((spezz == 23 || !noetern && !spezz && _root.hardmode) && (!gospo || fra > 10) || allets) && (_root.hardmode || _root.locker[42])) { if (v2.s == 81 || v2.s == 82 || v2.s == 83 || v2.s == 69 || v2.s == 64 || v2.s == 65 || v2.s == 66 || v2.s == 63 || v2.s == 100 || v2.s == 20 || v2.s == 68 || v2.s == 67 || v2.s == 97 || v2.s == 98 || f7 == 71 || f7 == 19 || f7 == 28 || f7 == 36 || f7 == 43 || f7 == 45 || f7 == 62 || f7 == 74 || f7 == 78 || f7 == 84 || f7 == 79 || f7 == 99 || f7 > 99) { gobo = true; if ((random(6) + random(2) < _root.eterns * 0.7 && (random(3) != 0 || _root.lev == _root.bossl || _root.lev == _root.bossl2) || f7 == 45) && fra < 10 || spezz == 23 || (_root.chaps == 6 || _root.chaps > 7) && _root.lev == _root.bossl || allets) { if (spezz != 23) { if (!gospo) { if (_root.lev != _root.chamb || _root.altch != 2) { --_root.eterns; } thistern += 3; } } f1.unshift(23); spezz = 23; v2.eternal = true; } noetern = true; } if (f7 == 28 && spezz != 23) { noetern = true; } } if (f1.length > 0 && (fra < 40 || spezz) && !gospo) { if (spezz) { if (f1[0] == spezz || f1[1] == spezz || f1[2] == spezz || f1[3] == spezz || f1[4] == spezz) { v2.specoz = spezz; } } else { if (i == 0) { if (_root.locker[42]) { f2 = random(5); } else { f2 = random(10); } if (v2.s == 19) { f2 += random(5); } if (f2 <= f1.length) { v2.specoz = f1[f2]; spezz = v2.specoz; } } } } if (!gospo) { if (gobo) { _root.specol[_root.lev][v2.spuz] = -v2.specoz; } } else { if (!gobo) { if (_root.specol[_root.lev][v2.spuz] < 0) { v2.specoz = -_root.specol[_root.lev][v2.spuz]; if (spezz == undefined) { spezz = v2.specoz; } } } } } if (f7 == 102 && v2.specoz == 23) { v2._yscale *= 1.1; v2._xscale = v2._yscale; } if (v2.s == 84 && v2.specoz == 23 && !groso) { groso = true; hps[84] *= 2.5; v2.hp = hps[84]; v2.mhp = v2.hp; } if (v2.s == 99 && v2.specoz == 23 && _root.chaps < 3) { hps[99] *= 0.8; v2.hp = hps[99]; v2.mhp = v2.hp; } if (v2.s == 42) { speco(v2); } if (v2.specoz) { speco(v2); v2.special = false; if (v2.s == 45) { if (v2.specoz == 7) { v2.mhp *= 0.85; v2.hp *= 0.85; } } else { specoo(v2); } } if (v2.special) { if (v2.specol == undefined) { v2.specol = random(specol.length); _root.specol[_root.lev][v2.spuz] = v2.specol; } speco(v2); v2.hp *= 2; v2._xscale *= 1.15; v2._yscale *= 1.15; } if (f7 == 38) { flox = v2; } if (f7 == 28) { nomag = 0; } v2.imba = v2.s == 42 || v2.s == 44; switch (f7) { case 102: v2.state = 0; v2.xpp = v2.xp; v2.ypp = v2.yp; break; case 89: v2.lar = 0; break; case 19: if (altboss) { f1 = 1.3; v2.hp *= f1; v2.mhp *= f1; } v2.lar = 0; break; case 67: if (v2.specoz == 23) { trg2 = efly(v2); trg3 = efly(v2); trg4 = efly(v2); trg2.wtf *= 4; trg3.wtf *= 4; trg4.wtf *= 4; if (altboss) { trg2 = efly(v2); trg3 = efly(v2); trg4 = efly(v2); trg2.wtf *= 4; trg3.wtf *= 4; trg4.wtf *= 4; } } case 65: if (altboss) { f1 = 1.3; v2.hp *= f1; v2.mhp *= f1; } break; case 101: v2.d._xscale *= 1.15; v2.d._yscale *= 1.15; v2.dfr = true; v2.xpp = v2.xp; v2.ypp = v2.yp; v2.d.gotoAndStop(1); v2.stomps = 0; break; case 100: boils = 0; if (altboss) { f1 = 0.85; } else { f1 = 0.52; } v2.hp *= f1; v2.mhp *= f1; break; case 91: v2.flyby = true; break; case 99: case 63: v2.fire = 0; break; case 69: if (altboss) { v2.hp *= 0.5; v2.mhp *= 0.5; if (!swag) { swag = true; spaw(v2.xp, v2.yp, 100, 69); } } break; case 74: case 75: case 76: if (v2.specoz == 23) { v2._yscale *= 1.3; v2._xscale = v2._yscale; v2.hp *= 1.5; v2.mhp = v2.hp; } sizes[74] = 63; break; case 71: case 72: case 73: case 67: v2.flyby = 2; if (altboss) { v2.hp *= 1.8; v2.mhp *= 1.8; } break; case 79: v2.fire = 0; break; case 97: altboss = false; trg2 = spaw(v2.xp, v2.yp, 40, 98); v2.trg2 = trg2; v2.imba = true; v2.xbeww = v2.xbew; v2.ybeww = v2.ybew; break; case 92: hearts.push(v2); break; case 93: v2.trg2 = masks.length; masks.push(v2); v2.imba = true; v2.xbeww = v2.xbew; v2.ybeww = v2.ybew; break; case 44: v2.xp = xenf; v2.xppp = v2.xp; v2.yp = yenf; v2.yppp = v2.yp; case 89: f1 = ingrid(v2.xp, v2.yp); outgrid(f1); break; case 85: if (fra > 20) { v2.hp *= 0.65; v2.mhp *= 0.65; } case 94: v2.outway = true; v2.wait = 0; break; case 46: v2.spl = 30; break; case 68: _root.slugeye = 1; if (v2.specoz == 23) { _root.slugeye = -3; v2.ploo = 0; } break; case 51: v2.tier = 0; break; case 72: v2.d.gotoAndStop(7); break; case 73: v2.d.gotoAndStop(10); break; case 64: v2.spl = 30; v2.outway = true; break; case 62: if (altboss) { v2.hp *= 0.35; v2.mhp *= 0.35; } else { v2.hp *= 1.35; v2.mhp *= 1.35; } v2.dy = v2.d._y; v2.worm = 1; v2.outway = true; break; case 78: _root.soundy('Mom_Vox_Filtered_Isaac_' + random(3) + '.mp'); player.xp = 320; player.yp = 370; v2.d.gotoAndStop(4); v2.downbro = 100; v2.wave = 0; v2.fire = 0; case 59: case 60: case 56: v2.xpp = v2.xp; v2.ypp = v2.yp; break; case 55: case 90: v2.flyby = true; case 31: case 23: case 21: v2.pbh = true; break; case 45: v2.alter = 1; if (_root.pilc != 25) { player.xp = 320; player.yp = 370; } v2.spl = 0; v2.outway = true; v2.d.gotoAndStop(1); break; case 42: v2.xpp = v2.xp; v2.ypp = v2.yp; v2.til = ingrid(v2.xp, v2.yp); levz[v2.til] = 3; break; case 40: v2.outway = true; break; case 38: v2.telp = 0; v2.flyby = true; break; case 37: v2.bh = false; break; case 36: v2.yp += 25; v2.xpp = v2.xp; v2.ypp = v2.yp; player.xp = 320; player.yp = 400; if (v2.specoz == 23) { v2._xscale *= 0.85; v2._yscale = v2._xscale; } break; case 32: v2.pbh = true; v2.rrr = random(4) * 0.06 + 0.9; break; case 33: v2.ggh = true; v2.nod = true; v2.bh = false; break; case 30: v2.hppp = 0; if (v2.specoz == 23) { v2.mhp = hps[v2.s]; v2.hp = v2.mhp; } else { if (!v5) { v2.hp = hps[v2.s] * Math.random(); } } v2.xpp = v2.xp; v2.ypp = v2.yp; break; case 25: v2.flyby = true; break; case 3: v2.lfra = 0; break; case 28: if (altboss == 2) { chubber = 0; if (v2.specoz != 23) { v2.hp *= 0.5; v2.mhp *= 0.5; } } v2.fail2 = 0; v2.beenx = [v2.xp]; v2.beeny = [v2.yp]; break; case 4: v2.lfra = fra; v2.spl = -10; break; case 16: v2.noco = 0; break; case 5: v2.ph = true; v2.bh = false; v2.d.gotoAndStop(Math.max(1, Math.round(v5 * 100 - 0.499))); if (v2.d._currentframe > 10 && v2.d._currentframe < 15 || v2.d._currentframe > 15 && v2.d._currentframe < 20) { v2.d.prevFrame(); } if (v2.d._currentframe != 7) { f1 = Math.round(v5 * 1000000000) - Math.round(v5 * 10000000) * 100; } else { f1 = Math.round(v5 * 1000000000) - Math.round(v2.d._currentframe * 100000) * 100; } if (fra > 10) { switch (v2.d._currentframe) { if (v2.d._currentframe !== 6) { } else { case 5: _root.soundy('Chest_Drop.mp', 100); } } } if (v2.d._currentframe == 8 || v2.d._currentframe == 38) { if (random(3) == 0 && !firsttime || v2.d._currentframe == 38 || _root.lev == _root.hide2) { v2.col = 41; } } if (v2.d._currentframe == 31) { v2.d.gotoAndStop(8); v2.col = 1; } if (v2.d._currentframe == 32 || v2.d._currentframe == 37) { v2.d.gotoAndStop(8); v2.col = 2; if (random(3) == 0 && !firsttime || v2.d._currentframe == 37) { v2.col = 31; } } if (v2.d._currentframe == 33) { v2.d.gotoAndStop(8); v2.col = 10; } if (f1 > 0) { v2.col = f1; if (f1 == 2 && v2.d._currentframe == 5) { v2.c2 = true; } } else { if (v2.d._currentframe == 7) { v2.col = random(6) + 1; } if (v2.d._currentframe == 3) { v2.col = 1; if (random(50) == 1) { v2.col = 2; } } if (v2.d._currentframe == 30) { v2.d.gotoAndStop(7); v5 = 0; v2.col = tater(); } if (v2.d._currentframe == 35) { v2.d.gotoAndStop(7); v5 = 0; v2.col = junx(); } if (v2.d._currentframe == 36 || (v2.d._currentframe == 5 || trixx(61) && v2.d._currentframe == 6) && ((trixx(61) || random(20) == 0) && !firsttime || _root.lev == _root.cus || _root.lev == _root.hide2)) { v2.d.gotoAndStop(5); v5 = 0; v2.col = 2; v2.c2 = true; } if (v2.d._currentframe == 2 || v2.d._currentframe == 1 || v2.d._currentframe == 4) { f1 = [0, 2, 20, 0, 7]; if (random(f1[v2.d._currentframe]) == 0) { v2.col = 2; } else { v2.col = 1; } if (v2.d._currentframe == 4 && random(50) == 0) { v2.col = 5; } if (v2.d._currentframe == 2 && random(Math.max(50, 100 - _root.luck * 20)) == 0) { v2.col = 3; } if (v2.d._currentframe == 1 && random(Math.max(20, 50 - _root.luck * 10)) == 0) { v2.col = 4; } if (v2.d._currentframe == 4 && random(10) == 0) { v2.col = 3; } if (v2.d._currentframe == 1 && (random(10) == 0 || random(16) == 0 && _root.skiner == 5 || trixx(38) && random(10) == 0 || ups[173] && random(2) == 0)) { v2.col = 3; } if (v2.d._currentframe == 1 && _root.lev == _root.hide2) { if (_root.hid2 == 0) { v2.col = 1; } if (_root.hid2 == 1) { v2.col = 4; } } } } if (v2.d._currentframe != 8) { if (v2.c2) { v2.d.d.gotoAndStop(7); } else { v2.d.d.gotoAndStop(3); } } if (v2.d._currentframe == 34) { if (_root.heaven && _root.chaps != 11) { v2.d.d.gotoAndStop(5); } else { v2.d.d.gotoAndStop(3); } } it1[4] = false; if (Math.round(v5 * 100) >= 15 && Math.round(v5 * 100) < 20) { if (v5 > 0.1500000001) { v2.d.d.gotoAndStop(Math.round((v5 - 0.1500499) * 1000)); } else { if (satan) { if (random(5) == 0) { v2.d.d.gotoAndStop(11); } else { v2.d.d.gotoAndStop(9 + random(2)); } } else { f1 = -1; while (!it1[f1]) { f1 = random(7); } if (f1 == 4 || f1 == 3) { watz = -100; } else { ++watz; } if (watz > 1 || watz == 1 && random(3) == 0) { f1 = 3; watz = -100; } it1[f1] = false; if (f1 == 4) { f1 = 3; } else { if (f1 > 4) { f1 += 6; } } v2.d.d.gotoAndStop(f1 + 1); v2.may = true; if (v2.d.d._currentframe == 3) { v2.col = random(15) + 1; } if (v2.d.d._currentframe == 13) { v2.col = 3; } } } if (v2.may && random(5) == 0 && !salefail && (v2.d.d._currentframe < 5 || v2.d.d._currentframe == 12 || v2.d.d._currentframe == 13)) { salefail = true; v2.d.d.gotoAndStop(v2.d.d._currentframe + 4); } if (v2.d.d._currentframe == 3 || v2.d.d._currentframe == 7) { v2.d.d.d.gotoAndStop(v2.col); } if (v2.d.d._currentframe == 13 || v2.d.d._currentframe == 17) { v2.d.d.d.d.d.gotoAndStop(3); } if (v2.d.d._currentframe == 4 || v2.d.d._currentframe >= 8 && v2.d.d._currentframe < 12) { _root.trg = v2; if (v5 >= 0.1504 && v5 < 0.4) { v2.it = Math.round((v5 - 0.15 - v2.d.d._currentframe * 0.001) * 1000000); } else { v2.it = giveit(); } v2.d.d.d.gotoAndStop(v2.it); } } else { if (v5 > 0.09 && v5 < 0.2) { if (v5 > 0.1 && v5 < 0.4) { v2.it = Math.round((v5 - 0.1) * 10000); } else { v2.it = giveit(); } v2.d.d.d.d.gotoAndStop(v2.it); } } v2.xpp = v2.xp; v2.ypp = v2.yp; if (v2.d._currentframe == 8 && v2.col != 41) { if (v2.col == 10) { v2.d.d.gotoAndStop(41); } else { if (v2.col == 1) { v2.d.d.gotoAndStop(32); } else { if (v2.col > 1) { v2.d.d.gotoAndStop(36); } } } } break; case 61: case 13: case 14: case 18: case 80: v2.flyai = true; v2.d.d.d.gotoAndPlay(random(2) + 1); v2.ybb = 0; v2.xbb = 0; break; break; case 12: case 7: case 8: if (f7 == 8) { var v12 = new flash.geom.Transform(v2); v12.colorTransform = bloc; } v2.ypp = v2.ybew; v2.bh = false; v2.d._rotation = random(360); v2.fd = 1.3; if (f7 == 7) { v2.spl = 10; } else { v2.spl = 0; } v2.dm = -random(30) + 5; v2.dy = -23; 75; break; case 9: v2.dy = -23; 75; v2.shot = true; v2.ph = true; v2.spl = 0; v2.dm = rand() * 0.2; break; case 2: if (ups[143] || ups[165] || ups[110] || ups[16] || ups[108] || ups[159] || ups[153] || ups[169] || ups[183] || ups[176] || ups[182] || ups[194] || _root.skiner == 6) { var v7 = 1 - (ups[110] + ups[108]) * 0.25 - 0.17 * (ups[153] + ups[16] + ups[159] + ups[169]) + ups[143] * 0.2 + ups[165] * 0.23 + ups[176] * 0.16 + (ups[183] + ups[194]) * 0.16 - ups[182] * 0.25; if (_root.skiner == 6) { v7 += 0.31; } v7 = Math.max(0.6, Math.min(v7, 1.42)); v2.xbew *= v7; v2.ybew *= v7; } v2.dy = -23; 75; v2.spl = 10; v2.dm = rand() * 0.2; if (babymode) { v2.ba = babymode; v2.dmg = 3.5; if (babymode == 10) { v2.ics = true; } else { if (babymode == 6) { v2._alpha = 50; } else { if (babymode == 7) { v2.dmg = 4; attach(v2, 500); v2.d._xscale = 90; v2.d._yscale = v2.d._xscale; v2.spl = 0; } else { if (babymode == 5) { v2.dmg = 3; attach(v2, 500); v2.d._xscale = 80; if (_root.hardmode) { v2.d._xscale = 115; v2.dmg = 5; } v2.d._yscale = v2.d._xscale; v2.spl = 0; v2.dm = 1.2; } else { if (babymode == 2) { v2.dmg = 5; attach(v2, 500); v2.d._xscale = 106; v2.d._yscale = v2.d._xscale; v2.spl = 0; } else { if (babymode == 3) { colorit(v2, 0.95, 0.8, 0.6, -150, -150, -150); } else { if (babymode == 4 || babymode == 11) { colorit(v2, 0.4, 0.15, 0.38, 71, 0, 116); if (babymode == 11) { v2._alpha = 50; } v2.dm -= 3; } } } } } } } babymode = undefined; } else { v2.dmg = dmgdo(); if (trixx(30)) { if (random(10) == 0) { v2.trixer = 1; } } if (trixx(31)) { if (random(10) == 0) { v2.trixer = 2; } } if (trixx(62)) { if (random(10) == 0) { v2.trixer = 3; } } if (ups[150] && random(Math.max(1, 10 - _root.luck)) == 0) { v2.dmg *= 3.2; attach(v2, 499); if (v2.xbew < 0) { v2.d.d._xscale *= -1; } if (v2.trixer == 2) { colorit(v2, 1.5, 2, 2, 0, 0, 0); } v2.spl = 0; v2.spll = true; v2.tooth = true; v2.d._xscale = 70; v2.d._yscale = v2.d._xscale; } else { if (ups[182]) { colorit(v2, 1.5, 2, 2, 0, 0, 0); } else { if (!ups[149] && (ups[189] || ups[7] || ups[183] || doub || demon > 0 || v2.dmg > 5.5 && (!ups[169] || v2.dmg > 15) && !ups[69] || ups[122] || sob == -1 && ups[155])) { attach(v2, 500); v2.d._xscale = 90; v2.d._yscale = v2.d._xscale; v2.spl = 0; } else { if (ups[115]) { colorit(v2, 1.5, 2, 2, 0, 0, 0); } else { if (ups[132]) { colorit(v2, 0.2, 0.09, 0.065, 0, 0, 0); } else { if (ups[103]) { v2.spl = 30; colorit(v2, 0.5, 0.97, 0.5, 0, 0, 0); } else { if (ups[104]) { colorit(v2, 0.9, 0.3, 0.08, 0, 0, 0); } else { if (ups[90]) { colorit(v2, 0.4, 0.4, 0.4, 50, 50, 50); } else { if (ups[110]) { v2.spl = 0; colorit(v2, 1.25, 0.05, 0.15, 0, 0, 0); } else { if (ups[89]) { colorit(v2, 2, 2, 2, 50, 50, 50); } else { if (ups[69]) { colorit(v2, 0.33, 0.18, 0.18, 66, 40, 40); v2.d._xscale *= 1 + (chal - 1) * 0.05; } else { if (ups[6]) { colorit(v2, 1, 1, 0, 45, 15, 0); v2.spl = 20; v2.piss = true; } else { if (ups[3]) { colorit(v2, 0.4, 0.15, 0.38, 71, 0, 116); } } } } } } } } } } } } } if (ups[150] && random(Math.max(1, 10 - _root.luck)) == 0) { } else { if (v2.trixer == 3) { colorit(v2, 0.95, 0.8, 0.6, -150, -150, -150); } else { if (v2.trixer == 2) { colorit(v2, 1.5, 2, 2, 0, 0, 0); } else { if (v2.trixer == 1) { v2.spl = 30; colorit(v2, 0.5, 0.97, 0.5, 0, 0, 0); } } } } if (ups[132]) { v2.gro = 0; v2.d._xscale -= 15; v2.d._yscale -= 15; } if (ups[115] || v2.trixer == 2) { v2._alpha = 50; } if (ups[6]) { v2.dy += 13; } else { if (_root.skiner == 2) { v2.dy += 6; } else { if (_root.skiner == 6) { v2.dy += 5; } } } } v2.nuts = 0.2; v2.dir = Math.abs(v2.xbew) < Math.abs(v2.ybew); v2.hh = []; v2.shot = true; if (!v2.ba) { if (ups[5]) { v2.xbew *= 1.4; v2.ybew *= 1.4; } v2.dy -= (ups[12] - ups[71] + ups[30] + ups[31] + ups[29]) * 5; if (ups[4] || doub || ups[7] || ups[12]) { v2.dmg *= 1.15; } f1 = ups[12] + ups[30] + ups[31] + ups[29] + ups[71] * 3 + ups[101] + ups[110] + ups[121] + ups[182] * 1.5 + ups[197] + ups[14] + ups[189]; f1 *= 0.5; v2.dm -= f1; v2.dy -= f1 * 0.5; _root.firrr = -v2.dm * 5 - v2.dy; } f1 = 0.7 + v2.dmg * 0.04 + Math.sqrt(v2.dmg) * 0.15; v2.d._xscale *= f1; v2.d._yscale = v2.d._xscale; break; case 11: v2.bnuts = !v5; break; case 10: v2.gonuts = !v5; v2.bnuts = random(3) == 0; if (v2.specoz == 23 || v2.eternal) { v2.bnuts = true; } } if (trixx(53) && v2.hp > 60) { v2.hp *= 0.85; } if (f7 == 45) { v2.d.gotoAndStop(1); } if (mheart.eternal || v2.s == 19 && !altboss && spezz == 23) { v2.hp *= 0.85; v2.mhp = v2.hp; } if (mheart.eternal && v2.s == 56) { v2.hp *= 0.7; v2.mhp = v2.hp; v2._yscale *= 0.8; v2._xscale = v2._yscale; } return v2; } function specoo(trg) { speco(trg); switch (trg.specoz) { case 23: if (trg.s != 78) { trg._yscale *= 1.2; trg._xscale = trg._yscale; } else { trg.fra = -100; } if (_root.chaps == 1) { if (trg.s != 19) { trg.mhp *= 1.125; trg.hp *= 1.125; } } else { trg.mhp *= 1.25; trg.hp *= 1.25; } break; case 19: if (trg.s == 67) { trg._yscale = 80; trg._xscale = 70; } break; case 14: trg._yscale = 80; trg._xscale = 80; break; case 12: trg._yscale = 85; trg._xscale = 85; break; case 9: trg.mhp *= 0.85; trg.hp *= 0.85; trg._yscale = 85; trg._xscale = 85; break; case 5: trg.spl = 30; break; case 3: trg.spl = 30; break; case 1: if (!wtfe) { --i; wtfe = true; } trg._yscale = 75; trg._xscale = 75; if (trg.s == 20) { sizes[20] = 21; } trg.mhp *= 0.45; trg.hp *= 0.45; break; case 11: trg._yscale = 111; trg._xscale = 111; break; case 21: case 18: case 2: case 6: case 4: case 8: case 15: case 16: if (trg.s != 100) { trg.mhp *= 1.25; trg.hp *= 1.25; if (trg.s == 67) { trg.mhp *= 1.25; trg.hp *= 1.25; } trg._yscale = 115; trg._xscale = 115; } break; case 7: if (trg.s == 99) { trg.mhp *= 0.55; trg.hp *= 0.55; trg._yscale = 58; trg._xscale = 58; if (!wtfe) { --i; wtfe = true; } } else { if (trg.s != 63) { trg.mhp *= 1.45; trg.hp *= 1.45; trg._yscale = 115; trg._xscale = 115; } } break; case 22: trg.mhp *= 2; trg.hp *= 2; case 20: trg._yscale = 75; trg._xscale = 75; } } function parc(f1, f2, f3, f4, f5, f6) { dang = true; ++parz; namer = 'p' + parz; f0 = par.length; if (f6 == undefined) { f6 = parz + 100000; } if (f1 == 'bloo') { par[f0] = blorz.attachMovie(f1, namer, f6); } else { par[f0] = attachMovie(f1, namer, f6); } par[f0]._x = f2; par[f0]._y = f3; if (f4) { par[f0]._rotation = f4; } if (f5) { par[f0]._yscale = f5; par[f0]._xscale = par[f0]._yscale; } par[f0].stop(); return par[f0]; } function rotc(f0) { return f0; } function rand() { return Math.random() - 0.5; } function rotrund(f1) { while (f1 > 180) { f1 -= 360; } while (f1 < -180) { f1 += 360; } return f1; } function rotget2(f1, f2) { f0 = (Math.atan(-f1 / f2) / Math.PI) * 180 + 90; if (f2 >= 0) { f0 += 180; } return f0; } function rotget(f1, f2) { f0 = (Math.atan(-f1 / f2) / Math.PI) * 180 + 90; return f0; } function absmax(f1, f2) { if (f1 > f2) { f1 = f2; return f1; } if (f1 < -f2) { f1 = -f2; } return f1; } function enfget(f1, f2) { f1 = f1 * f1 + f2 * f2; if (f1 > 0) { f1 = Math.sqrt(f1); return f1; } f1 = 0.001; return f1; } function enfcheckx(f1, f2, f3, f4, siz) { xenf = f1 - f3; yenf = f2 - f4; if (Math.abs(xenf) < roxx2 || Math.abs(yenf) < roxx2) { enf = enfget(xenf, yenf); if (enf < siz) { return enf; } } } function enfcheck(f1, f2, f3, f4, siz) { xenf = f1 - f3; if (Math.abs(xenf) < siz) { yenf = f2 - f4; if (Math.abs(yenf) < siz) { enf = enfget(xenf, yenf); if (enf < siz) { return enf; } } } } function t3d(f1, f2) { f2 += f1._rotation; f2 += 45; while (f2 > 360) { f2 -= 360; } while (f2 < 0) { f2 += 360; } f1.gotoAndStop(Math.round((f2 / 360) * 72) + 1); } function pff(f1, f2) { if (trg.gridder[f1] >= 0 && trg.gridder[f1] < 1) { if (trg.gridder[f1] == 0) { --f2; } else { f2 -= 7; } trg.gridder[f1] = f2; acts2.push(f1); } } function pff1(f1, f2) { if (trg.gridder[f1] + f2 * 3 > v3 && trg.gridder[f1] < 0) { v3 = trg.gridder[f1]; v4 = f1; } } function pff2(f1) { if (levzz(f1) != 0) { outgrid(f1); if (Math.abs(xenf) > 0 && Math.abs(yenf) > 0) { if (Math.abs(xenf - trg.xp) < roxx * 0.8 && Math.abs(yenf - trg.yp) < roxx * 0.8) { if (xenf < trg.xp) { minx = xenf + roxx * 0.8; } else { maxx = xenf - roxx * 0.8; } if (yenf < trg.xp) { miny = yenf + roxx * 0.8; } else { maxy = yenf - roxx * 0.8; } } } } } function momkill() { if (momdown != 100) { for (z in ball) { momdown = 100; if (_root.chaps == 6) { _root.soundy('Mom_Vox_Death_' + random(2) + '.mp'); } else { if (_root.chaps == 9) { } else { _root.soundy('Mom_Vox_Filtered_Death_1.mp'); } } if (trg.s != 78) { hurt(ball[z], 100); } fra = Math.max(fra, 100); } } mheart._visible = false; } function hurtcol(trg) { var v2 = trg.uncol; if (trg.s == 78) { v2 = fra + 2; } speco(trg, true); if (trg.spid > 0) { if (trg.spida == 2) { colorit(trg, 0.45, 0.5, 0.5, 300, -100, -100); } else { colorit(trg, trg.colo.redMultiplier * 0.5, trg.colo.greenMultiplier * 0.5, trg.colo.blueMultiplier * 0.5, 250 + trg.colo.redOffset * 0.45, 50 + trg.colo.greenOffset * 0.45, 50 + trg.colo.blueOffset * 0.45); } v2 = fra + 2; } else { if (trg.s == 36) { colorit(trg, 0.1 + trg.colo.redMultiplier * 0.6, 0.1 + trg.colo.greenMultiplier * 0.6, 0.1 + trg.colo.blueMultiplier * 0.6, 70 + trg.colo.redOffset * 0.7, trg.colo.greenOffset * 0.7, trg.colo.blueOffset * 0.7); } else { colorit(trg, trg.colo.redMultiplier * 0.4, trg.colo.greenMultiplier * 0.5, trg.colo.blueMultiplier * 0.5, 200 + trg.colo.redOffset * 0.45, trg.colo.greenOffset * 0.45, trg.colo.blueOffset * 0.45); } } trg.uncol = v2; } function hurt(trg, f1) { if (_root.chaps > 1) { f1 *= 1 + (_root.chaps - 1) * 0.0015; } if (trg != rply) { if (trg == mheart) { mheart.downbro -= 3; } if (trg.s == 30 && trg.eternal) { if (trg.boss) { f1 *= 0.75; } else { f1 *= 0.45; } } if (trg.s == 60) { if (trg.spinny) { f1 *= 0.5; } } if (trg.s == 62 && trg.specoz == 23 && altboss) { if (f1 > 10) { f1 = 10; } } if (trg.s == 41 && trg.eternal) { if (f1 > 2) { trg.bloo = 20; } } if (trg.s == 19 && trg.specoz == 23) { if (_root.chaps > 2) { f1 *= Math.random(); } else { f1 *= 0.4 + Math.random() * 0.6; } } if (trg.specoz == 23 || trg.eternal) { var v4 = 1; if (fra > 1666) { v4 = 1 + Math.random() * 0.175; } else { if (fra > 666) { v4 = 1 + Math.random() * 0.125; } else { if (fra > 430) { v4 = 1 + Math.random() * 0.75; } else { if (fra > 200) { v4 = 1 + Math.random() * 0.05; } } } } if (hitcc < fra) { ++hitc; if (hitcc < fra + 7) { ++hitc; } if (hitcc < fra + 14) { ++hitc; } hitcc = fra + 7; } if (hitc > 300) { v4 += 0.2; } else { if (hitc > 150) { v4 += 0.15; } else { if (hitc > 50) { v4 += 0.08; } else { if (hitc > 20) { v4 += 0.05; } else { if (hitc > 10) { v4 += 0.03; } } } } } f1 *= v4 + hitc * 0.005; } if (trg.s == 45) { if (f1 > 10 + random(20)) { if (trriss + 25 + random(30) <= fra) { trriss = fra; _root.soundy('Mom_Vox_Hurt_' + random(4) + '.mp'); } } } if (trg.s == 102 || (trg.s == 21 || trg.s == 23) && trg.eternal) { trg.hurt = true; } if (trg == mheart) { if (f1 > 10 + random(20)) { if (trriss + 25 + random(30) <= fra) { trriss = fra; _root.soundy('Mom_Vox_Filtered_Hurt_' + random(4) + '.mp'); } } } if (trg.randd + 2 > fra && random(5) == 0) { trg.xpp = trg.xp; trg.ypp = trg.yp; } if (!trg.dones) { if (trg.s == 30) { trg.hppp = 0; } if (trg.s == 38) { trg.telp = 20; } if (trg.imba) { f1 = 0; } if (trg.s == 62) { if (trg.worm == 1 && trg.d._currentframe == 8 || altboss) { trg = worm[6]; } else { if (trg.worm != 6) { f1 = 0; lows.dones = false; } else { f1 *= 5; } } } if (trg.s == 27 && trg.alter != 2) { trg.fire = Math.min(10, trg.fire + f1); if (f1 > 10) { trg.d.t._visible = true; trg.d.t.t.gotoAndPlay(1); } } if (f1 > 0 && trg.mhp > 0 && trg != player && (trg.d.d.open || trg.s != 27 || trg.alter == 2 || lows.meat > 2 || lows.bird)) { if (trg.s == 19) { if (!trg.whop) { } } else { if (trg.s == 21) { trg.xpp = undefined; } } if (trg.s == 45) { for (z in mom) { mom[z].hp -= f1; } } else { if (trg.s == 28) { trg.mags[1].hp -= f1; trg.mags[2].hp -= f1; trg.mags[3].hp -= f1; } else { trg.hp -= f1; } } if (trg.hp < 0) { if (trg.s == 99 && trg.hp < 0) { _root.soundy('Monster_Roar_2.mp', 120); } if (pacman) { if (!paccer) { player.hp += 0.5; } paccer = !paccer; } if (trg.poiss > 0) { trg.spl = 30; } if (trg == mheart) { momkill(); } if (trg.s == 84 && trg.pow > 3) { momkill(); } if (ups[157]) { rage = Math.min(3.3, rage + 0.28); rag = rage * 0.32 + 0.6800000000000001; } if (trixx(58) && random(15) == 0) { rage = Math.min(3.3, rage + 0.5); rag = rage * 0.32 + 0.6800000000000001; } if (trixx(60) && random(20) == 0) { if (!dbird && ashut > 1) { dbird = 2; } } if (!trg.flyai && ups[62] && trg.s >= 10) { if (_root.vamp++ >= 12 && player.mhp > 0) { _root.vamp = 0; player.hp += 0.5; parc('hearter', player.xp, player.yp - 20, 0, 100, player.dpppp + 5000); _root.soundy('Vamp_Gulp.mp'); } } if (trg.s == 62) { for (z in worm) { worm[z].dones = true; } } else { if (trg.s == 45) { for (z in mom) { mom[z].dones = true; mom[z]._visible = false; } momkill(); } else { if (trg.s == 28) { _root.soundy('Monster_Roar_2.mp', 50); trg.mags[1].dones = true; trg.mags[2].dones = true; trg.mags[3].dones = true; } } } if (trg.s == 89) { trg.trg3.frei = true; trg.trg2.frei = true; trg.frei = true; } if (trg.s == 74) { trg.d.gotoAndStop(6); } else { if (trg.s == 75) { trg.d.gotoAndStop(9); } else { if (trg.s == 15 && random(2) == 0 && !blackout == 2) { trg.gosplash = true; trg.s = 17; attach(trg, 17); trg.hp = hps[trg.s]; trg.ypp = 0; trg.xpp = 0; } else { if (trg.s == 10 && (random(2) == 0 && trg.hp > -25 || trg.specoz == 23)) { trg.gosplash = true; if (trg.eternal && random(5) == 0) { attach(trg, 12); trg.s = 12; trg.mhp *= 2 + _root.chaps * 0.1; trg._yscale *= 1.05; trg._xscale = trg._yscale; speco(trg); trg.outway = true; } else { attach(trg, 11); trg.s = 11; if (trg.specoz == 23) { trg.mhp *= 2 + _root.chaps * 0.1; trg._yscale *= 1.05; trg._xscale = trg._yscale; speco(trg); } trg.outway = true; } trg.hp = trg.mhp; splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.6); } else { if (trg.s == 24 && trg.d._currentframe < 3) { trg.gosplash = true; if (trg.alter == 2) { trg.d.gotoAndStop(6); } else { trg.d.gotoAndStop(5); } trg.outway = true; trg.hp = 10; if (trg.eternal) { if (trg.rest++ < 5) { trg.hp += 15; } } if (trg.special) { trg.hp += 2; } splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.6); } else { if (trg.s == 84) { ++trg.pow; if (trg.pow == 4) { trg.hp = trg.mhp; trg.d.gotoAndStop(8); trg.bh = false; } } else { trg.dones = true; } } } } } } } else { trg.uncol = Math.round(fra + Math.min(6, f1 / 1.5)); hurtcol(trg); if (trg.hbar) { _root.hud.bar.bar.gotoAndPlay(1); } if (trg.s == 62) { trg.uncol = Math.round(fra + Math.min(6, f1 / 1.5)); for (z in worm) { if (worm[z].bh && worm[z] != trg) { worm[z].uncol = trg.uncol; hurtcol(worm[z]); } } } else { if (trg.s == 45) { trg.uncol = Math.round(fra + 1); for (z in mom) { if (mom[z].bh || mom[z].mom == 3) { if (trg != mom[z]) { hurtcol(mom[z]); mom[z].uncol = trg.uncol; } } } trg.uncol = Math.round(fra + Math.min(6, f1 / 1.5)); } else { if (trg.s == 28) { if (trg.mags[1] != trg) { trg.mags[1].uncol = trg.uncol; hurtcol(trg.mags[1]); } if (trg.mags[2] != trg) { trg.mags[2].uncol = trg.uncol; hurtcol(trg.mags[2]); } if (trg.mags[3] != trg) { trg.mags[3].uncol = trg.uncol; hurtcol(trg.mags[3]); } } } } } } } } } function colorit(trg, f1, f2, f3, f4, f5, f6) { var v1 = new flash.geom.ColorTransform(); v1.redMultiplier = f1; v1.greenMultiplier = f2; v1.blueMultiplier = f3; v1.redOffset = f4; v1.greenOffset = f5; v1.blueOffset = f6; var v2 = new flash.geom.Transform(trg); trg.colo = v1; v2.colorTransform = v1; } function pilcol(f1, f2, f3) { colorit(player, 0.3, 0.3, 0.3, f1 * 1.3, f2 * 1.3, f3 * 1.3); pillef = fra + 30; _root.playcol[0] *= 0.4; _root.playcol[1] *= 0.4; _root.playcol[2] *= 0.4; _root.playcol[0] += f1 / 160; _root.playcol[1] += f2 / 160; _root.playcol[2] += f3 / 160; } function playcol(f1) { if (pillef > fra) { player._alpha = 100; } else { if (unic > 30 && !pacman) { if (unic % 4 == 0 && player.d._currentframe < 4) { v1 = 50; v2 = 70; if (roll(6)) { colorit(player, 1, 0, 0, v1, v1, v1); } else { if (roll()) { colorit(player, 0, 1, 0, v1, v1, v1); } else { if (roll()) { colorit(player, 0, 0, 1, v1, v1, v1); } else { if (roll()) { colorit(player, 1, 1, 0, v2, v2, v2); } else { if (roll()) { colorit(player, 0, 1, 1, v2, v2, v2); } else { if (roll()) { colorit(player, 1, 0, 1, v2, v2, v2); } } } } } } } } else { if (f1) { player._alpha = 0; } else { if (!trg.free) { player._alpha = 100; if (rage != 1) { colorit(player, _root.playcol[0] * rag, _root.playcol[1] / rag, _root.playcol[2] / rag, 0, 0, 0); } else { colorit(player, _root.playcol[0], _root.playcol[1], _root.playcol[2], 0, 0, 0); } } } } } } function teller() { if (_root.lev != _root.chamb || _root.altch != 2) { player.d.gotoAndStop(7); telf = fra + player.d.d._totalframes - 3; _root.soundy('hell_portal2.wav'); } } function trixx(f111) { return _root.trix == f111 || _root.atrix == f111; } function playerhurt(f1, f2, f3) { player.hp = Math.min(player.hp, player.mhp); if (_root.chaps > 6) { f1 = Math.max(f1, 1); } if (ups[108]) { f1 = 0.5; } if (f2 == 45) { if (trrisx + 50 + random(130) <= fra) { trrisx = fra; _root.soundy('Mom_Vox_EvilLaugh.mp'); } } if (_root.chaps == 9 && _root.lev == _root.bossl) { plh = true; } if (mhheart) { if (trrisx + 50 + random(130) <= fra) { trrisx = fra; _root.soundy('Mom_Vox_Filtered_EvilLaugh.mp'); } } if (lasth - fra < 0 && player._visible && telf == undefined && playsave < 0 && unic < 0 && player._currentframe != 6 && horse <= 0 && dec <= 0) { if (f1 > 0) { if (healo) { if (healo.hp > 1) { healo.hp = Math.min(healo.hp + 40, healo.mhp); parc('hearter', healo.xp, healo.yp - 40, 0, 100, healo.dpppp + 5000); _root.soundy('Vamp_Gulp.mp'); } } lastk = f2; plah = true; if (f2 <= 200) { _root.nodmg = false; } if (_root.armor > 0) { _root.armor -= f1; if (_root.armor <= 0) { _root.armor = 0; } } else { if (_root.eta) { _root.eta = false; player.hp += 0.5; } _root.armor = 0; player.hp -= f1; if (_root.devil != 2 && _root.devil != 3 && f2 <= 200) { _root.devil = false; } if (f2 <= 200) { bossdmg = false; } } if (ups[148]) { bluf += 1 + random(3); } if (trixx(29)) { ++bluf; } if (player.hp == 0 && _root.armor == 0.5 || player.hp < 1 && player.hp > 0 && _root.armor <= 0) { if (trixx(33)) { ++ups[100]; } if (ups[142]) { ++_root.armor; ups[142] = 0; } } if (holz != undefined) { trg3 = create(player.xp * 0.6 + holz.xp * 0.4, player.yp * 0.6 + holz.yp * 0.4, 0, 0, 0, 0, 33.1); colorit(trg3.d.d, 0.45, 0.7, 1, 0, 0, 70); _root.soundy('BGascan_pour.wav', 100); holz.stopi = true; holz.d.gotoAndStop(127); holz = undefined; } if (bluf > 1) { blufer = highs; } if (trixx(40) && random(5) == 0) { razor += 3; } if (trixx(48) && random(20) == 1) { _root.over.gotoAndStop(3); _root.soundy('Death_Card.mp', 100); for (e in ball) { trg2 = ball[e]; hurt(trg2, 40); } } if (ups[156] && _root.itc != 1) { f0 = itc[_root.it]; _root.itc += Math.min(1 / f0, 0.5); _root.soundy('batterycharge.mp'); parc('batter', player.xp, player.yp - 20, 0, 100, player.dpppp + 5000); } lasth = fra + f1 * 60; if (_root.ups[122] && !ups[122] && player.hp > 0 && player.hp < 1) { ups[122] = 1.2; curs(); lasth = fra + 90; } else { if (ups[117]) { ups[117] = 0.55; } } if (ups[162] && random(5) == 0) { playsave = 200; } if (demon > 0) { _root.soundy('Monster_Grunt_' + random(2) + '_B.mp'); } else { _root.soundy('Isaac_Hurt_Grunt' + random(3) + '.mp'); } if (ups[180]) { farter = true; } if ((player.hp <= 0 && _root.armor <= 0 && !_root.eta || !(player.mhp > 0 || _root.armor > 0 || _root.eta)) && !f3) { player.d.gotoAndStop(6); player.d.d.gotoAndStop(sk); player.dones = true; return true; } if (f3 && player.hp <= 0) { player.hp = 0.5; } player.d.gotoAndStop(2); if (player.hp <= 0.5 || !(player.mhp > 0 || _root.armor > 0)) { if (trixx(47)) { playsave = 150; } if (trixx(43) && _root.lev != _root.bossl && _root.lev != _root.bossl2 && (_root.armor < 0.5 || trg.mhp < 0 && _root.armor < 1)) { teller(); tar = _root.lastl; if (_root.lev <= 0) { tar = 35; _root.lastl = 35; } } } return true; } } } function splater(f1, f2, f3, f4) { if (f3 >= 1) { blood.gotoAndStop(f3); v1 = f4; if (random(2) == 0) { v2 = -v1; } else { v2 = v1; } maxx = new flash.geom.Matrix(); maxx.scale(v1, v2); maxx.translate(f1 + crand(5), f2 + crand(5) - 5); maxx.scale(hdx, hdx); splat.draw(blood, maxx, bloc); } } function shadow(f1, f2) { poi.x = f1; poi.y = f2; shad.copyPixels(org, org.rectangle, poi, undefined, undefined, true); maxx = new flash.geom.Matrix(); maxx.translate(f1, f2); shad.draw(shaz, maxx); } function turd(f1, e, cent) { if (fra > 10 && levzz(e) < 0.9300000000000001) { levz[e] = 1.5; clevc[e] = 1.5; } if (levzz(e) > 1.1) { var v6 = _root.levsav[_root.lev][savv]; outgrid(e); f2 = 'de' + e * 1; if (f1 == 'fireblock2') { var v3 = attachMovie(f1, 'de' + f2, Math.round(e + 501), {'_x': xenf, '_y': yenf}); v3.gotoAndStop(1); this[f2] = v3.d; v3 = v3.d; ref.push(v3); v3.fra = 0; } else { var v3 = attachMovie(f1, f2, Math.round(e + 501), {'_x': xenf, '_y': yenf}); } if (f1 == 'breakblock2' || f1 == 'fireblock' || f1 == 'fireblock2') { v3.fire = true; } v3.xp = xenf; v3.yp = yenf; v3.cent = cent; v3.savv = savv; v3.nam = f1; v3.til = e; if (v6 > 0 && v3.nam != 'breakblock2') { v3.gotoAndStop(v6); if (levzz(e) == 4) { levz[e] = 0; } else { levz[e] -= 0.13 * (v6 - 1); } } if (fra < 10) { v3.p.gotoAndStop(v3.p._totalframes); } if (fra > 10) { v3.gotoAndStop(6); } if (f1 == 'locktile' && v6 > 1) { v3.gotoAndStop(3); } ++savv; return v3; } } function upa() { ups = _root.ups.slice(0, -1); if (_root.ceye) { ups[21] = true; } if (_root.world) { ups[54] = true; ups[21] = ups[54]; } if (ups[69] && ups[52]) { ups[69] = 0; } if (ups[168]) { ups[69] = 0; ups[118] = 0; ups[114] = 0; } if (ups[114]) { ups[118] = 0; } if (ups[191]) { f1 = [1, 2, 3, 5, 6, 46, 53, 110, 115, 143, 150]; ups[f1[random(f1.length)]] = 1; } if (_root.ups[122]) { if (player.hp < 1) { ups[122] = 1; sk = 7; cus = true; } else { ups[122] = 0; } } if (trixx(32) && random(4) == 0) { f1 = [21, 71, 120, 121]; ups[f1[random(f1.length)]] = 1; } } function curs() { sk = 7; _root.mmus = _root.soundy('isaacsatanitemget.mp', 100); _root.over.gotoAndStop(13); player.d.gotoAndStop(11); player.it = 122; } function cloo() { clevc = levz.slice(0, -1); e = 0; while (e < levz.length) { if (clevc[e] == 2 || clevc[e] == 0.99 || clevc[e] == 3.6) { clevc[e] = 0; } if (clevc[e] >= 1 && clevc[e] < 2 || clevc[e] == 3) { clevc[e] = 1; } else { clevc[e] = 0; } ++e; } e = 0; while (e < levz.length) { var v2 = clevc[e] + ' ' + clevc[e + rowz + 1]; var v1 = clevc[e + 1] + ' ' + clevc[e + rowz]; if (v2 == '0 0' && v1 == '1 1') { clevc[e] = 1; clevc[e + rowz + 1] = 1; } if (v2 == '1 1' && v1 == '0 0') { clevc[e + 1] = 1; clevc[e + rowz] = 1; } ++e; } for (e in clevc) { if (clevc[e] == 2) { clevc[e] = 1; } } } function golev() { if (_root.ups[122]) { if (player.hp < 1) { ups[122] = 1; cus = true; } else { ups[122] = 0; } } if (_root.skiner > 0 && _root.classit) { _root.classit = false; f10 = [0, 45, 46, 34, 36, 117, 157]; highs = player; player.it = f10[_root.skiner]; powerlevel(); if (_root.skiner == 5) { _root.ups[122] = 1; _root.cols.push(122); } } if (_root.chala != 0) { if (!_root.wtfuuz) { _root.wtfuuz = true; f1 = [0, 0, 0, 0, [81], [151, 148], [52, 47], [73, 73, 73, 73], [153, 89], [101, 184]]; f2 = f1[_root.chala]; gofind = true; for (e in f2) { lastcra = -100; player.empty = false; highs = player; player.it = f2[e]; powerlevel(); } gofind = undefined; } } if (!_root.wtfuuz && _root.locker[38] && _root.skiner == 0 && _root.chala == 0) { player.empty = false; lastcra = -100; _root.wtfuuz = true; highs = player; player.it = 105; powerlevel(); _root.wiptz += 1; } player.d.gotoAndStop(1); if (_root.shroom) { player.d.gotoAndStop(4); if (_root.shroom == 4) { player.it = 161; } else { if (_root.shroom == 3) { player.it = 127; } else { if (_root.shroom == 2) { player.it = 81; } else { player.it = 11; _root.soundy('1up.wav'); } } } _root.shroom = false; } for (e in _root.bomf[_root.lev]) { maxx = new flash.geom.Matrix(); maxx.translate(_root.bomf[_root.lev][e][0], _root.bomf[_root.lev][e][1]); maxx.scale(hdx, hdx); splat.draw(crater, maxx); } savv = 0; if (_root.levsav[_root.lev] == undefined) { _root.levsav[_root.lev] = []; } if (_root.bomf[_root.lev] == undefined) { _root.bomf[_root.lev] = []; } if (_root.levblow[_root.lev] == undefined) { _root.levblow[_root.lev] = []; } else { for (e in _root.levblow[_root.lev]) { f1 = _root.levblow[_root.lev][e]; levz[f1] = 0; } } player.xp = _root.playerx; player.yp = _root.playery; if (!nomore && _root.donelev[_root.lev] && _root.chesttype[_root.lev] != 4) { _root.m.nextFrame(); } qq = _root._quality; if (qq != 'high') { _root._quality = 'high'; } if (!error) { maxx = new flash.geom.Matrix(); maxx.translate(b._x, b._y - bggg._y); maxx.scale(hdx, hdx); bgg.draw(b, maxx); f1 = 18; b.w1.gotoAndStop(f1); b.w2.gotoAndStop(f1); b.w3.gotoAndStop(f1); b.w4.gotoAndStop(f1); b.bg.gotoAndStop(f1); b._visible = false; } v1 = e + a; trg = createEmptyMovieClip('dblockx', 489); dblock = new flash.display.BitmapData(gridxs, gridys, true, 0); maxx = new flash.geom.Matrix(); maxx.translate(0, 0); trg.attachBitmap(dblock, 1); trg._xscale = 100 / hdx; trg._yscale = trg._xscale; e = 0; while (e < levz.length) { if (levzz(e) > 0 && levzz(e) <= 1 || levzz(e) == 1.9 || levzz(e) == 1.94 || levzz(e) == 1.93 || levzz(e) == 3) { outgrid(e); if (levzz(e) == 1.93 || levzz(e) == 1.94) { if (levzz(e) == 1.94) { webs[e] = random(3) + 1; tiles.gotoAndStop(158 + webs[e]); } else { if (_root.chaps >= 7 && _root.chaps != 9) { tiles.gotoAndStop(70); } else { tiles.gotoAndStop(21); } } levz[e] = 0.99; } else { if (levzz(e) == 3) { v1 = [levzz(e + 1) == 3, levzz(e + rowz) == 3, levzz(e - 1) == 3, levzz(e - rowz) == 3]; v2 = random(2) - 1; if (v1[0]) { v2 = 1; } if (v1[1]) { v2 = 2; } if (v1[2]) { v2 = 3; } if (v1[3]) { v2 = 4; } if (v1[2] && v1[0]) { v2 = 5; } if (v1[3] && v1[1]) { v2 = 6; } if (v1[0] && v1[1]) { v2 = 7; } if (v1[1] && v1[2]) { v2 = 8; } if (v1[2] && v1[3]) { v2 = 9; } if (v1[3] && v1[0]) { v2 = 10; } if (v1[0] && v1[1] && v1[2]) { v2 = 11; } if (v1[1] && v1[2] && v1[3]) { v2 = 12; } if (v1[2] && v1[3] && v1[0]) { v2 = 13; } if (v1[3] && v1[0] && v1[1]) { v2 = 14; } if (v1[0] && v1[1] && v1[2] && v1[3]) { v2 = 15; } tiles.gotoAndStop(23 + v2); } else { if (levzz(e) == 1.9) { levz[e] = 1.8; tiles.gotoAndStop(random(4) + 11); } else { if (levzz(e) == 1) { if (_root.chaps >= 7 && _root.chaps != 9) { tiles.gotoAndStop(80 + random(3)); } else { if (_root.rarer[_root.lev] == e) { tiles.gotoAndStop(15); } else { tiles.gotoAndStop(random(10) + 1); } } } else { tiles.gotoAndStop(94 + random(5) + _root.chaps * 5); levz[e] = 0; clevc[e] = 0; } } } } maxx = new flash.geom.Matrix(); maxx.translate(xenf, yenf); maxx.scale(hdx, hdx); dblock.draw(tiles, maxx); } ++e; } yyo = 1; e = 0; while (e < levz.length) { switch (levzz(e)) { case 4: turd('locktile', e); break; case 1.3: turd('egg', e); break; case 1.4: if (random(40) != 0 || firsttime) { turd('fireblock', e); } else { case 1.41: levz[e] = 1.4; turd('fireblock2', e); break; case 1.5: if (random(40) != 0 || firsttime) { turd('breakblock', e); } else { case 1.495: if (random(20) != 0 || firsttime) { trg = turd('breakblock3', e); if (trg) { if (levzz(e) > 1) { efly(trg); } } trg.shit = true; } else { case 1.4955: trg = turd('breakblock4', e); trg.gold = true; break; case 1.49: levz[e] = 1.5; turd('breakblock2', e); } } } } ++e; } if (qq != 'high') { _root._quality = qq; } e = 0; while (e < 700) { levz[ingrid(40 + e, 130)] = 1.9; e += 10; } e = 0; while (e < 700) { levz[ingrid(40 + e, 450)] = 1.9; e += 10; } e = 0; while (e < 300) { levz[ingrid(40, 130 + e)] = 1.9; e += 10; } e = 0; while (e < 300) { levz[ingrid(600, 130 + e)] = 1.9; e += 10; } e = 0; while (e < levz.length) { if (levzz(e) < 0) { f1 = 9 - levzz(e); if (!firsttime || f1 == 44.2 || f1 == 42.2 || f1 == 44.1 || f1 == 42.1 || f1 == 42) { outgrid(e); if (f1 < 10) { f1 = 5 - levzz(e); } f2 = 1; if (Math.round(f1) == 62) { f2 = 7; } if (!_root.beenlev2[_root.lev] || f1 > 6) { i = 0; while (i < f2) { create(xenf, yenf + 10 + i, 0, 0, 0, 0, f1); if (spezz == 23 && Math.round(f1) == 62) { f2 = 9; } ++i; } } levz[e] = 0; } } if (Math.abs(levzz(e)) <= 0) { levz[e] = 0; } ++e; } if (firsttime) { e = 0; while (e < levz.length) { if (levzz(e) < 0) { levz[e] = 0; } if (Math.abs(levzz(e)) <= 0) { levz[e] = 0; } ++e; } } cloo(); if (_root.lev == _root.boner) { _root.treasd = true; } if (_root.lev == _root.boner2) { _root.treasd2 = true; } if (_root.lev == _root.sac) { _root.sacb = true; } for (e in door) { trg = door[e]; trg.gotoAndStop(4); if (error) { trg._visible = false; } else { if (_root.lev == _root.bossl && !trg._visible && (Math.abs(e - _root.door) == 2 || e == _root.door || _root.door <= 0) && !sat) { sat = true; trg._visible = true; trg.gol = 166; } else { if (satan) { trg._visible = false; if ((Math.abs(e - _root.door) == 2 || _root.door <= 0) && !sat) { sat = true; trg.gol = _root.lastl; if (trg.gol == 166 || trg.gol <= 0) { trg.gol = 35; } trg._visible = true; } } } } if (trg._visible || trg.govo) { trg.blo = ingrid(trg._x, trg._y); _root.seenlev[trg.gol] = true; if (ups[91]) { if (trg.gol == _root.sac) { _root.sacb = true; } if (trg.gol == _root.boner) { _root.treasd = true; } if (trg.gol == _root.boner2) { _root.treasd2 = true; } if (trg.gol == _root.hide) { hider(); } if (trg.gol == _root.hide2) { hider2(); } if (trg.gol == _root.minb) { _root.minbb = true; } } if (_root.lev == _root.hide && (_root.lastl == undefined || _root.lastl == _root.lev) && trg.gol != _root.bossl && trg.gol != _root.bossl2) { _root.lastl = trg.gol; } if (trg.gol == _root.cus || _root.lev == _root.cus) { _root.cusb = true; trg.cus = true; trg.gotoAndStop(36); } else { if (_root.lev == _root.hide && (_root.lastl == trg.gol || ups[76]) || ups[76] && trg.gol == _root.hide && _root.lev != _root.bossl2 && _root.lev != _root.bossl && _root.lev != _root.minb && _root.lev != _root.chamb) { trg._visible = true; trg.hide = true; trg.gotoAndStop(17); levz[trg.blo] = 0; if (trg.govo && ups[76]) { hider(); } } else { if (_root.lev == _root.hide2 && (_root.hide != trg.gol || ups[76]) || ups[76] && trg.gol == _root.hide2 && _root.lev != _root.bossl2 && _root.lev != _root.bossl && _root.lev != _root.minb) { trg.hide2 = true; trg._visible = trg.govo; if (trg.govo && ups[76]) { hider2(); } trg.gotoAndStop(17); levz[trg.blo] = 0; } else { if ((trg.gol == _root.hide || _root.lev == _root.hide) && !satan) { trg.hide = true; trg._visible = trg.govo; trg.gotoAndStop(10); levz[trg.blo] = 1.85; if (_root.lev == _root.bossl || _root.lev == _root.bossl2 || _root.lev == _root.bossl || _root.lev == _root.bossl2 || _root.lev == _root.minb || _root.lev == _root.chamb) { levz[trg.blo] = 2; } } else { if ((trg.gol == _root.hide2 || _root.lev == _root.hide2) && !satan) { trg.hide2 = true; trg._visible = true; trg.gotoAndStop(10); levz[trg.blo] = 1.85; if (trg.gol == _root.bossl || trg.gol == _root.bossl2 || _root.lev == _root.bossl || _root.lev == _root.bossl2 || _root.lev == _root.minb || _root.lev == _root.chamb) { levz[trg.blo] = 2; } } else { if (satan || trg.gol == 166) { trg.sat = true; trg.gotoAndStop(12); } else { if (trg.gol == _root.bossl || _root.lev == _root.bossl || trg.gol == _root.bossl2 || _root.lev == _root.bossl2) { trg.boss = true; _root.bossd = true; trg.gotoAndStop(16); } else { if (trg.gol == _root.chamb || _root.lev == _root.chamb) { chama = 1; _root.chambb = true; trg.chamb = true; trg.gotoAndStop(27); } else { if (trg.gol == _root.gamb) { _root.gambb = true; trg.gamb = true; trg.gotoAndStop(20); } else { if (trg.gol == _root.boner2 || _root.lev == _root.boner2) { _root.treasd2 = true; trg.boner2 = true; if (_root.bona2) { trg.gotoAndStop(32); } else { trg.gotoAndStop(30); } } else { if (trg.gol == _root.boner || _root.lev == _root.boner) { _root.treasd = true; trg.boner = true; if (_root.bona) { trg.gotoAndStop(32); } else { trg.gotoAndStop(30); } } else { if (trg.gol == _root.shopl) { _root.shopaz = true; trg.shop = true; trg.gotoAndStop(9); } else { if (trg.gol == _root.lib) { _root.libb = true; trg.lib = true; trg.gotoAndStop(9); } else { levz[trg.blo] = 1.85; } } } } } } } } } } } } } if (_root.chaps == 11 && !trg.hide && !trg.hide2) { levz[trg.blo] = 2; } } f2 = 28; f1 = ((trg._rotation - 90) / 180) * Math.PI; trg.xp = trg._x - Math.sin(f1) * f2; trg.yp = trg._y + Math.cos(f1) * f2; if (_root.levz[trg.gol] == 0 || _root.levz[trg.gol] == undefined) { trg._visible = false; } } mapd(); for (e in _root.levit[_root.lev]) { create(_root.levit[_root.lev][e][1], _root.levit[_root.lev][e][2], 0, 0, 0, 0, 5 + _root.levit[_root.lev][e][0] * 0.01); } if (gopill) { create(320, 240, 0, 0, 0, 0, 5.07); } if (_root.whatstart2) { _root.whatstart2 = false; e = 0; while (e < 10) { ++e; } e = 0; while (e < 18) { ++e; } } if (inem) { inl.gotoAndStop('empty'); inl.swapDepths(33901); } else { gotoAndStop('empty'); } lads.swapDepths(491); _root.beenlev2[_root.lev] = true; } function spawnb(f1, f2) { if (levz.length <= 1) { levz = new Array(200); } if (f1._alpha < 30) { if (f2 < -0.5 || f2 > 0) { f2 -= 0.2; } } else { if (f1._alpha < 75) { if (f2 == 1) { f2 = 1.9; } else { if (f2 < -0.5 || f2 > 0) { f2 -= 0.1; } } } } var v3 = ingrid(f1._x, f1._y); levz[v3] = f2; } function sideflip(f1, trg2) { if (trg2 == undefined) { if (trg.sf2 == undefined) { trg2 = trg.d; } else { trg2 = trg.sf2; } } trg.sf2 = trg2; trg.sf = true; if (f1 * trg2._xscale < -100) { trg2._xscale *= -1; } } function pathfind(trg, f1, f2, f3) { if (trg.speed == undefined) { trg.speed = 1; } if (trg.s == 35) { f3 *= 1.1; } if ((trg.xp != f1 || trg.yp != f2) && fra > 5) { v1 = ingrid(f1, f2); outgrid(v1); xpp = xenf; ypp = yenf; v2 = ingrid(trg.xp, trg.yp); outgrid(v2); xppp = xenf; yppp = yenf; trg.tiler = v2; trg.tiletimer = 2 / Math.max(0.2, f3); if (fra % 3 == 1) { v2 = 40 / enfget(trg.xbew, trg.ybew); v2 = levzz(ingrid(trg.xp + trg.xbew * v2, trg.yp + trg.ybew * v2)); if (v2 > 0 && v2 < 1) { trg.speed = 0.7; } else { trg.speed = 1; } } v2 = trg.tiler; if (levzz(trg.tiler) < 0.99 && trg.s != 16 && trg.s != 47) { if (trg.s == 58) { levz[trg.tiler] = 0.2; } else { levz[trg.tiler] = 0.9; } } if (f3 == undefined) { f3 = 1; } f3 *= trg.speed; nogo = true; if ((fra + trg.e) % 6 == 1) { if (trg.see) { v5 = linecheckxx(xppp, yppp, xpp, ypp); trg.lastv = v5; } else { v5 = linecheck(xppp, yppp, xpp, ypp); trg.lastv = v5; } if (trg.lastv && trg.firss + 40 <= fra && random(3) == 0 && gochar) { trg.firss = fra; _root.soundy('Zombie_Walker_Kid.mp', 100); } } else { v5 = trg.lastv; } trg.d.h.stop(); if (!trg.gonuts) { f3 *= 0.83; } if (trg.d.h._currentframe > 2) { f3 *= 1.2; trg.d.h.nextFrame(); } else { if (trg.gonuts) { trg.d.h.gotoAndStop(2); } } if (v5 && enf > 0 || v1 == v2) { if (trg.gonuts) { trg.d.h.nextFrame(); f3 *= 1.1; } trg.tiletimer -= 5; trg.gridtime -= 10; xenf = f1; yenf = f2; nogo = false; } else { if (levzz(v1) != 1 || true) { if ((trg.gridder == undefined || trg.gridtime < 0) && nogridyet) { nogo = true; nogridyet = false; trg.gridder = levz.slice(0, -1); trg.gridder[ingrid(trg.xp, trg.yp)] = 0; trg.gridder[v1] = 0; acts = []; acts2 = []; z = -1; for (;;) { if (!(z > -100 && trg.gridder[v2] >= 0)) break; if (z == -1) { pff(v1, -1); } else { for (e in acts) { v1 = trg.gridder[acts[e]]; if (v1 < z) { acts2.push(acts[e]); } else { outgrid(acts[e]); pff(ingrid(xenf, yenf + roxx), v1); pff(ingrid(xenf + roxx, yenf), v1); pff(ingrid(xenf - roxx, yenf), v1); pff(ingrid(xenf, yenf - roxx), v1); } } } acts2[acts2.length] = 0; acts = acts2.slice(0, -1); acts2 = []; --z; } if (z < -99) { trg.gridder = 0; } trg.gridtime = Math.min(20, -z) + ball.length * 2 + 7; } trg.gridtime * 0.9; trg.gridtime -= f3 * 3; if (trg.gridder != undefined && trg.gridder != 0) { outgrid(v2); v3 = -100; testarr = [ingrid(xenf + roxx, yenf), ingrid(xenf - roxx, yenf + roxx), ingrid(xenf - roxx, yenf), ingrid(xenf - roxx, yenf - roxx), ingrid(xenf, yenf - roxx), ingrid(xenf + roxx, yenf - roxx), ingrid(xenf, yenf + roxx), ingrid(xenf + roxx, yenf + roxx)]; for (e in testarr) { if (testarr[e] > 0) { f1 = e + 1; if (f1 + 1 > testarr.length) { f1 = 0; } if (e == 0 || e == 2 || e == 4 || e == 6) { b1 = true; } else { b1 = levz[testarr[e - 1]] == 0 || levz[testarr[f1]] == 0; } if (e == 0 || e == 2 || e == 4 || e == 6) { pff1(testarr[e], 0); } } } if (v3 < 0) { outgrid(v4); nogo = false; } } } else {} } if (!nogo && enf > 0.1) { var v6 = xenf - trg.xp; var v7 = yenf - trg.yp; xenf = v6; yenf = v7; enf = enfget(xenf, yenf); if (enf > 1) { enf = (Math.min(enf * 0.1, 2) / enf) * f3; trg.xbew *= 0.7; trg.ybew *= 0.7; trg.xbew += xenf * enf; trg.ybew += yenf * enf; } } else { yenf = 0; xenf = 0; trg.xbew *= 0.5; trg.ybew *= 0.5; } } else { yenf = 0; xenf = 0; trg.xbew *= 0.85; trg.ybew *= 0.85; } gochar = false; } function mhity(f1, f2) { if (f1 > 20 && f1 < 620 && f2 > 110 && f2 < 447) { f33 = ingrid(f1, f2); f1 = levzz(f33); if (f1 >= 1 && f1 != 3) { return true; } } else { return true; } } function mhitx(f1, f2) { if (f1 > 20 && f1 < 620 && f2 > 110 && f2 < 447) { f1 = levzz(ingrid(f1, f2)); if (f1 > 1.8 && f1 != 3) { return true; } } else { return true; } } function mhix() { f3 = false; for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhity(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } f3 = true; if (Math.abs(f5) > 0 || Math.abs(f6) > 0 || trg.gh) { for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhity(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } } } function shit(f1, f2) { return blorz.hitTest(f1 + _x, f2 + _y, true); } function mhit(f1, f2) { if (f1 > 20 && f1 < 620 && f2 > 110 && f2 < 447) { f1 = levzz(ingrid(f1, f2)); if (f1 >= 1) { return true; } } else { return true; } } function pff3(f4) { f4 = levzz(f4); if (f4 != 0.99 && grox != f4) { if (f4 >= 1) { f5 = -1; } else { if (f4 > 0.3) { f5 -= 0.1; } } } } function pff3x1(f4) { f4 = levzz(f4); if (f4 != 3 && grox != f4) { if (f4 >= 1) { f5 = -1; } else { if (f4 > 0.3) { f5 -= 0.1; } } } } function linecheckxx(f1, f2, f3, f4) { var v5 = f1 - f3; var v6 = f2 - f4; var v7 = enfget(v5, v6); var v8 = 2.5; grox = ingrid(f1, f2); if (v7 > 0) { v5 /= v7; v6 /= v7; v5 *= 10; v6 *= 10; var v2 = 0; while (v2 < v7) { f1 -= v5; f2 -= v6; f3 = ingrid(f1, f2); if (levzz(f3) >= 1.8 && levzz(f3) != 1.85 && levzz(f3) != 3 && f3 != gro) { v8 = -1; } v2 += 10; } } grox = undefined; return v8 > 0; } function linecheckx(f1, f2, f3, f4) { var v5 = f1 - f3; var v6 = f2 - f4; var v4 = enfget(v5, v6); f5 = 2.5; f6 = 5; grox = ingrid(f1, f2); if (v4 > 0) { v5 /= v4; v6 /= v4; v5 *= 10; v6 *= 10; var v1 = 0; while (v1 < v4) { f1 -= v5; f2 -= v6; pff3(ingrid(f1, f2)); v1 += 10; } } grox = undefined; return f5 > 0; } function linecheck(f1, f2, f3, f4) { grox = ingrid(f1, f2); var v5 = f1 - f3; var v6 = f2 - f4; var v4 = enfget(v5, v6); f5 = 2.5; f6 = 5; if (v4 > 0) { v5 /= v4; v6 /= v4; v5 *= 6; v6 *= 6; var v3 = 0; while (v3 < v4) { f1 -= v5; f2 -= v6; pff3(ingrid(f1 + f6, f2 + f6)); pff3(ingrid(f1 - f6, f2 + f6)); pff3(ingrid(f1 - f6, f2 - f6)); pff3(ingrid(f1 + f6, f2 - f6)); v3 += 6; } } grox = undefined; return f5 > 0; } function linechecky(f1, f2, f3, f4) { var v5 = f1 - f3; var v6 = f2 - f4; var v4 = enfget(v5, v6); f3 = ingrid(f1, f2); grox = f3; f5 = 2.5; f6 = 2; if (v4 > 0) { v5 /= v4; v6 /= v4; v5 *= 10; v6 *= 10; var v3 = 0; while (v3 < v4) { f1 -= v5; f2 -= v6; pff3x1(ingrid(f1 + f6, f2 + f6)); pff3x1(ingrid(f1 - f6, f2 + f6)); pff3x1(ingrid(f1 - f6, f2 - f6)); pff3x1(ingrid(f1 + f6, f2 - f6)); v3 += 10; } } return f5 > 0; } function st11(f1) { _root.hud.st1.tex = f1; _root.hud.st1.gotoAndPlay(1); _root.hud.st1._visible = true; } function itn2(f1) { if (f1 >= 18 || f1 == 16) { return 40; } else { return 32; } } function itn(f1) { if (f1 < 55) { return 32; } else { return 40; } } function powerlevel() { _root.beenlev[_root.lev] = 2; var v3 = _root.fmode; if (!highs.empty) { if (fra - lastcraf > 30) { lastcraf = fra; if (_root.lev == 35 && _root.chaps == 1 && fra < 15) { } else { if (highs.it == 12 || highs.it == 11 || highs.it == 71) { _root.soundy('1up.wav'); } else { if (highs.it == 92) { _root.soundy('band aid pick up.wav', 50); } else { if (_root.lev == _root.bossl || _root.lev == _root.minb) { _root.soundy('Powerup2.mp', 50); } else { if (_root.lev == _root.boner || _root.lev == _root.boner2) { _root.soundy('Powerup1.mp', 50); } else { if (_root.lev == _root.shopl) { _root.soundy('Powerup3.mp', 50); } else { _root.soundy('Choir_unlock.wav', 50); } } } } } } } } maxp = true; if (!highs.empty && fra - lastcra >= 30) { if (chama == 1 && _root.lev == _root.chamb) { chama = 2; } st11(_root.st1[highs.it]); st22(_root.st2x[highs.it]); if (highs.d._currentframe == 10) { var v2 = highs.d.d; } else { var v2 = highs.d; } highs.empty = true; for (i in _root.ittt9) { if (highs.it == _root.ittt9[i]) { _root.bookster = true; } } if (highs.it == 22 || highs.it == 23 || highs.it == 24 || highs.it == 25 || highs.it == 26) { ++player.hp; } else { if (highs.it == 12 || highs.it == 15 || highs.it == 16) { player.hp = 1000; if (highs.it == 15) { hat(25); } } } ++_root.ups[highs.it]; if (highs.it == 54 || highs.it == 21) { mapd(); } if (!gofind) { _root.colss[highs.it] = true; } if (highs != player) { highs.d.d.d.gotoAndPlay(21); } player.d.gotoAndStop(4); player.it = highs.it; player.d.d.d.gotoAndPlay(1); if (highs.it == 7) { _root.fmode = 8; hat(7); } else { if (highs.it < 8) { _root.fmode = 1 + highs.it; _root.hmode = _root.fmode; } } if (highs.it == 27) { hat(27); } if (highs.it == 81) { if (_root.skiner == 4) { _root.armor = 1; } else { _root.ups[23] += 1 - player.mhp; player.hp = 1; } ups[23] = _root.ups[23]; } if (highs.it == 52) { _root.ittt.push(125, 125, 125, 125, 125, 125, 106, 106, 106, 106, 106, 106); } if (highs.it == 179) { eta(); } if (highs.it == 137) { if (_root.ups[137] == 1) { _root.bombs += 5; } } else { if (highs.it == 189) { _root.hmode = 42; _root.bmode = 27; ++player.hp; } else { if (highs.it == 190) { hat(58); _root.bombs = 99; } else { if (highs.it == 191) { _root.hmode = 44; } else { if (highs.it == 193) { hat(55); ++player.hp; } else { if (highs.it == 194) { kogs = [5.3]; hat(60); } else { if (highs.it == 195) { kogs = [5.07, 5.07, 5.07, 5.07]; hat(59); } else { if (highs.it == 196) { hat(56); kogs = [5.010000003, 5.010000003]; } else { if (highs.it == 197) { hat(57); } else { if (highs.it == 198) { _root.bmode = 26; kogs = [5.35, 5.07, 5.02, 5.010000003, 5.3, 5.03, 5.04]; } else { if (highs.it == 182) { ups[3] = 1; _root.ups[3] = 1; _root.hmode = 41; ++_root.armor; player.hp += 15; } else { if (highs.it == 183) { hat(53); } else { if (highs.it == 180) { _root.bmode = 24; } else { if (highs.it == 149) { if (!ups[2]) { _root.ups[2] = 0.5; ups[2] = 0.5; } } else { if (highs.it == 168) { hat(50); } else { if (highs.it == 139) { _root.bmode = 20; } else { if (highs.it == 169) { _root.hmode = 40; if (!ups[2]) { _root.ups[2] = 0.3; ups[2] = 0.3; } _root.fmode = 20; } else { if (highs.it == 155) { hat(47); } else { if (highs.it == 156) { hat(48); } else { if (highs.it == 161) { hat(49); } else { if (highs.it == 153) { hat(46); if (!ups[2]) { _root.ups[2] = 0.4; ups[2] = 0.4; } _root.fmode = 23; } else { if (highs.it == 165) { hat(51); } else { if (highs.it == 176) { hat(52); player.hp += 1.5; } else { if (highs.it == 154) { _root.hmode = 38; } else { if (highs.it == 143) { _root.hmode = 35; } else { if (highs.it == 159) { _root.sk = 7; sk = 7; _root.hmode = 39; _root.bmode = 22; ups[115] = 1; _root.ups[115] = 1; } else { if (highs.it == 157) { hat(41); } else { if (highs.it == 150) { _root.fmode = 24; hat(44); } else { if (highs.it == 151) { _root.hmode = 37; _root.fmode = 21; } else { if (highs.it == 148) { _root.bmode = 21; pilcol(40, 100, 40); } else { if (highs.it == 138) { hat(42); ++player.hp; } else { if (highs.it == 140) { _root.hmode = 34; _root.bombs += 5; } else { if (highs.it == 141) { hat(43); cowss = 7; } else { if (highs.it == 125) { _root.bombs += 5; } else { if (highs.it == 134) { _root.bmode = 19; } else { if (highs.it == 118) { _root.sk = 7; sk = 7; } else { if (highs.it == 114) { _root.bmode = 15; } else { if (highs.it == 122) { ups[122] = false; } else { if (highs.it == 116) { _root.itc = 1; hat(36); } else { if (highs.it == 132) { hat(39); } else { if (highs.it == 119) { player.hp += 5; hat(35); } else { if (highs.it == 129) { player.hp += 0.5; _root.bmode = 14; } else { if (highs.it == 115 || highs.it == 185) { _root.hmode = 32; ups[115] = 1; _root.ups[115] = 1; _root.fmode = 18; } else { if (highs.it == 110) { hat(33); } else { if (highs.it == 109) { hat(34); } else { if (highs.it == 103) { _root.hmode = 26; _root.fmode = 15; } else { if (highs.it == 104) { _root.fmode = 16; hat(32); } else { if (highs.it == 106) { _root.hmode = 9; _root.bombs += 5; } else { if (highs.it == 101) { ++player.hp; hat(29); } else { if (highs.it == 59) { _root.hmode = 24; } else { if (highs.it == 29) { _root.bmode = 10; } else { if (highs.it == 46) { _root.bmode = 11; } else { if (highs.it == 64) { hat(26); } else { if (highs.it == 63) { hat(24); } else { if (highs.it == 92) { _root.armor += 2; ++player.hp; hat(23); } else { if (highs.it == 86) { } else { if (highs.it == 87) { hat(22); } else { if (highs.it == 88) { } else { if (highs.it == 89) { hat(20); _root.fmode = 14; } else { if (highs.it == 90) { hat(21); } else { if (highs.it == 91) { hat(19); } else { if (highs.it == 81) { _root.ups[81] = 8; ups[81] = 8; _root.catlives = 1; } else { if (highs.it == 82) { _root.hmode = 22; _root.sk = 7; sk = 7; } else { if (highs.it == 72) { _root.armor += 3; _root.ittt4.push(33, 33, 33); _root.bmode = 6; } else { if (highs.it == 79) { _root.armor += 1; hat(17); } else { if (highs.it == 80) { _root.armor += 2; _root.bmode = 8; _root.hmode = 20; _root.sk = 7; sk = 7; } else { if (highs.it == 20) { _root.bmode = 3; } else { if (highs.it == 13) { _root.bmode = 4; _root.hmode = 12; } else { if (highs.it == 14) { _root.hmode = 11; } else { if (highs.it == 59) { _root.fmode = 11; } else { if (highs.it == 31) { _root.hmode = 13; } else { if (highs.it == 30) { _root.bmode = 5; } else { if (highs.it == 21 || highs.it == 54) { mapd(); } else { if (highs.it == 9) { hat(9); } else { if (highs.it == 69) { _root.hmode = 17; } else { if (highs.it == 55) { _root.hmode = 18; } else { if (highs.it == 76) { hat(13); } else { if (highs.it == 75) { player.hp += 2; hat(15); } else { if (highs.it == 32) { hat(16); } else { if (highs.it == 28) { _root.bmode = 7; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } if (highs.it == 48) { _root.fmode = 10; } if (highs.it >= 33 && highs.it != 46 && highs.it != 48 && highs.it < 50 || highs.it == 56 || highs.it == 58 || highs.it == 65 || highs.it == 66 || highs.it == 77 || highs.it == 78 || highs.it == 83 || highs.it == 84 || highs.it == 85 || highs.it == 86 || highs.it == 93 || highs.it == 97 || highs.it == 102 || highs.it == 105 || highs.it == 107 || highs.it == 111 || highs.it == 123 || highs.it == 124 || highs.it == 126 || highs.it == 127 || highs.it == 130 || highs.it == 133 || highs.it == 135 || highs.it == 136 || highs.it == 137 || highs.it == 145 || highs.it == 146 || highs.it == 147 || highs.it == 158 || highs.it == 164 || highs.it == 160 || highs.it == 166 || highs.it == 171 || highs.it == 175 || highs.it == 177 || highs.it == 181 || highs.it == 186 || highs.it == 192 || highs.it == 177) { _root.ups[highs.it] = 1; itb = 15; _root.hud.it.gotoAndStop(8); _root.colit = highs.it; _root.iter[_root.it] = _root.itc; if (_root.it > 0) { if (_root.it == 90) { player.flyby = false; } highs.d.gotoAndStop(10); v2 = highs.d.d; v2.d.gotoAndPlay(1); f11 = _root.it + itn2(_root.it); v2.d.d.gotoAndStop(f1); _root.it = highs.it - itn(highs.it); highs.it = f11; highs.empty = false; highs.done = false; highs.dones = false; highs.d.d.d.d.gotoAndStop(highs.it); } else { _root.it = highs.it - itn(highs.it); } if (_root.it != 11) { _root.itc = _root.iter[_root.it]; if (ups[116]) { _root.itc = Math.max(0.334, _root.itc); } } } else { if (highs.d._currentframe != 10 && highs.s == 5) { highs.d.gotoAndStop(11); } _root.cols.push(highs.it); if (!itzz(highs.it) && !satan) { ++_root.wiptz; } if (highs.it == 165 || highs.it == 183 || highs.it == 143 || highs.it == 194) { _root.wiptz -= 0.75; } if (highs.it == 114 || highs.it == 168 || highs.it == 182 || highs.it == 52 || highs.it == 118) { _root.wiptz += 0.3; } } if (highs.it >= 50 && highs.it < 54) { hat(highs.it - 48); } else { switch (highs.it) { case 19: _root.bombs += 10; hat(30); break; case 17: _root.keys = 99; hat(14); break; case 18: _root.coins = 99; break; case 74: _root.coins += 25; } } if (highs.it == 48) { hat(6); } if (highs.it == 70) { hat(8); } if (highs.it == 62) { _root.hmode = 15; } if (highs.it == 69) { _root.fmode = 13; } lastcra = fra; if (highs != player) { if (highs.d._currentframe == 10) { highs.dones = false; } else { highs.done = true; } } if (_root.ups[4] + _root.ups[38] + _root.ups[42] + Math.max(0, _root.ups[81]) >= 1.1) { _root.locker[40] = true; } if (_root.ups[13] + _root.ups[14] + _root.ups[70] >= 2) { _root.locker[37] = true; } if (_root.ups[55] && _root.ups[31] + _root.ups[30] + _root.ups[39] + _root.ups[41] + _root.ups[102] + _root.ups[114] + _root.ups[139] + _root.ups[165] >= 1) { _root.locker[47] = true; } } else { highs.dones = false; } nohit = false; if (_root.fmode != v3) { } ups[highs.it] = _root.ups[highs.it]; if (highs.it == 54 || highs.it == 21) { mapd(); } } function invp() { player._visible = false; for (e in ball) { trg2 = ball[e]; if (trg2.s <= 3) { trg2._visible = false; } } } function st22(f1) { if (f1 != 0) { _root.st2._visible = f1 != 0; _root.st2.gotoAndPlay(1); _root.st2.tex = f1; f1 = f1.split(''); _root.st2._x = 620 - f1.length * 10; } } function frez(trg) { if (trg.frezz < 0 || !trg.frezz) { trg.frezz = 70; if (trg.s == 102) { trg.frezz = 25; } trg.uncol = Math.round(fra + trg.freez + 1); speco(trg); } } function spida(f1, trg) { if (f1) { trg.spida = 2; } else { trg.spida = 1; } if (f1 == undefined) { trg.spid = 120; } else { trg.spid = 60; } trg.uncol = Math.round(fra + trg.spid); speco(trg); } function spidcol(trg) { if (ups[110] && !lows.ba && random(5) == 0 && !trg.mom && trg.s != 84) { if (trg.mag) { for (z in trg.mags) { frez(trg.mags[z]); } } if (trg.worm == 6) { for (z in worm) { frez(worm[z]); } } else { if (!trg.worm) { frez(trg); } } if (trg.s == 19) { trg2 = trg; while (trg2.trg2) { trg2 = trg2.trg2; frez(trg2); } trg2 = trg; while (trg2.trg3) { trg2 = trg2.trg3; frez(trg2); } } } if (ups[151] || purr) { if (!lows.ba && random(6) == 0 || purr && bluf < 1 && ball.length < 30 && (random(3) == 0 || !ups[152])) { if (Math.random() * ablub < 5 || random(3) == 0) { ++bluf; } } } blufer = trg; if (ups[103] && !lows.ba && random(4) == 0 || lows.trixer == 1) { if (trg.poiss > 20) { trg.poiss += 40; } else { trg.poiss = 60; } if (lows.trixer == 1) { trg.poisd = 4; } else { trg.poisd = 2; } trg.uncol = Math.round(fra + 60); speco(trg); } if (ups[89] && random(4) == 0 || lows.ba == 3 && random(2) == 0 || lows.trixer == 3) { spida(lows.ba == 3 || lows.trixer == 3, trg); } } function eta() { _root.soundy('superholy.wav', 100); _root.eta = !_root.eta; if (!_root.eta) { ++player.hp; ++ups[22]; ++_root.eto; _root.over.gotoAndStop(16); _root.ups[22] = ups[22]; } } function junx() { if (_root.junxx.length > 0) { if (poli) { poli = false; return 47; } else { if (trg.gold) { return 52; } else { f1 = random(_root.junxx.length); var v2 = _root.junxx[f1] * 1; _root.junxx.splice(f1, 1); return v2; } } } else { return tater(); } } function tater() { if (random(5) != 0) { return random(22) + 7; } else { return random(5) + 70; } } function pillc(trg) { var v3 = false; if (trg > 7) { f2 = trg; } else { if (trg == 4) { f2 = random(6) + 1; } else { if (trg == 3) { f2 = tater(); } else { f2 = trg.col; } } } f1 = _root.pilc > 0; f3 = f2 > 28 && f2 < 69; if (f3) { if (!trixx(f2) && (!trixx(53) || ups[139])) { player.pilc = pic(f2); f1 = ['Fish Head', 'Pinky Eye', 'Push Pin', 'Liberty Cap', 'Umbilical Cord', 'Childs Heart', 'Curved Horn', 'Rusted Key', 'Goat Hoof', 'Moms Pearl', 'Cancer', 'Red Patch', 'Match Stick', 'Lucky Toe', 'Cursed Skull', 'Safety Cap', 'Ace of Spades', 'Isaacs Fork', 'The Polaroid', 'A Missing Page', 'Bloody Penny', 'Burnt Penny', 'Flat Penny', 'Counterfeit Penny', 'Tick', 'Isaacs Head', 'Maggys Faith', 'Judas\' Tongue', '???\'s Soul', 'Samsons Lock', 'Cains Eye', 'Eves Bird Foot', 'The Left Hand', 'Game Squid']; f1 = f1[Math.max(0, f2 - 29)]; st11(f1); _root.atrixer = _root.trixer; _root.trixer = f1; _root.soundy('shellgame' + random(2) + '.wav'); if (ups[139]) { f1 = _root.atrix > 0; } else { f1 = _root.trix > 0; } if (f2 == 53) { hat(61); } } else { v3 = true; trg.dones = false; trg.fra = fra + 10; } } else { if (f2 < 7) { player.pilc = pic(f2); st11('Pills here!'); _root.soundy('shellgame' + random(2) + '.wav'); _root.colss[43] = true; } else { player.pilc = pic(f2); _root.colss[61] = true; tart(f2); _root.soundy('Book Page Turn 12.wav', 100); } } if (!v3) { if (f1) { if (!f3) { f1 = _root.pilc; _root.pilc = f2; } else { if (!ups[139]) { f1 = _root.trix; _root.trix = f2; } else { f1 = _root.atrix; _root.atrix = _root.trix; _root.trix = f2; } } if (trg == 3 || trg == 4) { trg = spaw(player.xp, player.yp, 0, 5.3); } trg.d.gotoAndStop(7); trg.col = f1; trg.dones = false; trg.done = false; trg.fra = fra + 10; trg.d.d.gotoAndStop(3); if (highs.yp > 0) { trg.ybew -= -Math.min(player.yp - highs.yp, 0) * 0.5; } } else { if (trg == 3 || trg == 4) { pilll = true; } else {} if (f3) { if (ups[139]) { _root.atrix = _root.trix; } _root.trix = f2; } else { _root.pilc = f2; } trg.d.d.gotoAndStop(2); } if (_root.atrix == 53) { _root.atrix = _root.trix; _root.trix = 53; _root.atrixer = _root.trixer; _root.trixer = 'Tick'; } if (!f3) { _root.hud.pilll.gotoAndStop(2); } else { _root.hud.plix.gotoAndStop(2); } player.d.gotoAndStop(4); player.it = 43; player.d.d.d.gotoAndPlay(1); } } function coincol(trg) { if (trg.col == 1) { _root.soundy('pennypickup.mp'); return 1; } else { if (trg.col == 2) { st22('a Nickel'); _root.soundy('nickelpickup.mp'); return 5; } else { st22('a Dime'); _root.soundy('dimepickup.wav'); return 10; } } } function ader(f1) { var v2 = false; if (_root.chaps > 6 && player.hp < 1 && _root.armor > 0 && player.mhp > 0) { _root.armor -= 0.5; player.hp += 0.5; v2 = true; } if (player.hp > 0.5 || _root.armor <= 0) { f11 = _root.armor; _root.armor = 0; playerhurt(0.5, 201, f11 > 0); _root.armor = f11; } else { playerhurt(0.5, 201); } if (v2 && player.hp >= 1) { _root.armor += 0.5; player.hp -= 0.5; } ++_root.so.data.pill; if (_root.so.data.pill > 20) { _root.locker[36] = true; } if (!f1) { _root.soundy('bloodbank touched.wav', 90); } } function coinzz(b1) { if (lasth - fra < 0 && player._visible && telf == undefined && playsave < 0 && unic < 0 && player._currentframe != 6 && horse <= 0 && dec <= 0) { if (b1 && random(3) != 0) { coinl = 3 + random(2); } else { coinl = true; } } } function balljunk() { if (highs.s == 51) { if (lows.s == 51) { if (lows.tier == highs.tier && !highs.done && !lows.done && lows.tier > 0) { if (lows.fra < fra - 125 || highs.fra < fra - 125) { if (lows.eternal) { f1 = highs; highs = lows; lows = f1; } if (highs.eternal) { if (combis++ < 20) { --highs.tier; highs.hp += lows.hp + 50; highs.xp = (highs.xp + lows.xp) / 2; highs.yp = (highs.yp + lows.yp) / 2; if (highs.tier == 0) { highs.d.gotoAndStop(1); } else { highs.d.gotoAndStop(4 + highs.tier); } lows.done = true; } } } } } } if ((lows.s == 14 || lows.s == 18) && highs.s == 36) { nohit = true; lows.xbew += xenf * 0.01; lows.ybew += yenf * 0.01; } if (highs.s == 4) { if (lows.fly || lows.ang || lows.meat < 3) { nohit = true; } } if (lows.s == 30 && highs.s == 30) { highs.dones = true; nohit = true; } if (lows.s == 30 && highs.s == 36) { nohit = true; } if (lows.fly || lows.meat || lows.bird || lows.charge || lows.ang) { switch (highs.s) { if (highs.s !== 18) { } else { case 9: case 13: case 14: highs.dones = true; if (!_root.hardmode) break; if (lows.hpo <= -1) break; if (lows.hpo-- >= 1) break; lows.done = true; } } } else { if (lows == player && !nohit) { dodo = false; switch (highs.s) { case 53: nohit = true; break; case 33: nohit = true; case 31: case 32: case 24: case 28: case 45: case 46: case 47: case 48: case 49: case 50: case 52: case 68: case 57: case 62: case 63: case 64: case 65: case 66: case 69: case 71: case 74: case 75: case 76: case 55: case 58: case 59: case 57: case 81: case 82: case 83: case 84: if (freez <= 0) { dodo = true; } if (highs.s == 62 && altboss) { dodo = false; } if (highs.s == 62 && highs.dy < -30) { nohit = true; } else { case 78: if (!highs.eternal && highs.s == 78) { } else { case 10: case 11: case 12: case 15: case 17: case 18: case 19: case 20: case 21: case 25: case 23: case 26: case 29: case 34: case 35: case 36: case 26.5: case 38: case 39: case 40: case 41: case 43: case 44: case 51: case 54: case 56: case 60: case 61: case 67: case 72: case 73: case 75: case 76: case 77: case 79: case 80: case 96: case 86: case 85: case 94: case 87: case 88: case 93: case 89: case 97: case 98: case 99: case 100: case 101: case 102: if (highs.s == 85 || highs.s == 94) { highs.xpp = undefined; highs.still = fra + 10; } if (highs.s == 86 || highs.s == 50 || highs.s == 90) { coinzz(highs.eternal); } if (highs.s == 9 && highs.doub) { dodo = true; } if (highs.s == 85 || highs.s == 94) { highs.ypp = undefined; highs.xpp = highs.ypp; highs.xbew *= 0.6; highs.ybew *= 0.6; } if (highs.s == 99) { pub = true; } dodo = dodo || highs.special || trg.specoz == 7 || trg.specoz == 2; if (freez <= 0 && horse <= 0) { if (dodo) { playerhurt(1, highs.s); } else { playerhurt(0.5, highs.s); } } if (highs.sss == 100 || highs.sss == 101 && altboss) { playslow = 20; } if (highs.die) { highs.dones = true; } case 13: case 14: case 27: case 30: case 16: if ((ups[13] || unic > 0 || demon > 0 || horse > 0) && highs.aidsdone <= fra) { highs.aidsdone = fra + 30; if (horse > 0) { nohit = true; } if (ups[13]) { highs.poiss = 60; highs.poisd = 3.5; hurt(highs, 30); } else { hurt(highs, 40); } } } } } } } if (highs.s == 4) { if (fra - highs.lfra < 4) { nohit = true; highs.lfra = fra; } else { highs.xbew += lows.xbew * 0.4; highs.ybew += lows.ybew * 0.4; } } if (lows.s == 4 && highs.s != 62) { if (!lows.flir) { lows.xbew *= 0.5; lows.ybew *= 0.5; } highs.xbew *= 0.2; highs.ybew *= 0.2; if (highs.s == 85 || highs.s == 94) { highs.dones = true; } } if (highs.s == 44 && lows.s != 44) { if (highs.s != 69) { hurt(lows, 20); } } if (highs.s == 66 && highs.horse && lows.s != 66 && lows.s != 27) { hurt(lows, 20); } if (highs.s == 66 && lows.s == 66) { if (highs.horse && lows.sic) { hurt(lows, 20); } else { if (lows.horse && highs.sic) { hurt(highs, 20); } } } if (highs.s == 65 && highs.d._currentframe == 8 && lows.s != 65) { if (fra - lows.fra > 10) { hurt(lows, 20); hurt(lows, 20); } else { nohit = true; } } if (highs.s == 45 && lows.s != 45 && fra - lows.fra > 10) { hurt(lows, 20); } if (lows.s == 44 && highs.s != 44) { hurt(highs, 20); } if (highs.s == 63 && highs.d._currentframe == 7) { hurt(lows, 20); } if (highs.s == 99 && highs.d._currentframe > 7) { if (lows.s == 14 || lows.s == 85) { hurt(lows, 20); } } if (highs.s == 28 && highs.mags[1].mode == 2) { if (lows.s == 23 || lows.s == 85) { hurt(lows, 20); } if (highs.mag == 1 && lows.s == 4) { _root.soundy('SMB_large_chews_4.wav'); lows.done = true; highs.mode = 4; highs.bomb = 0; nohit = true; } } if (lows == player && highs.s == 5 && !highs.dones) { if (_root.keys >= 1 || _root.kep || highs.d._currentframe != 6) { nohit = true; if (_root.hardmode) { if (random(Math.max(10 + _root.luck, 1)) == 0) { if (highs.d._currentframe == 4 && (highs.col == 1 || highs.col == 2)) { highs.dones = false; highs.d.d.d.d.d.gotoAndStop(3); if (highs.col == 2) { highs._yscale *= 0.75; highs._xscale = highs._yscale; _root.bombs += 1; } highs.col = 3; nohit = false; } } } if (highs.d._currentframe < 7 && (highs.col != 3 && highs.col != 5 || highs.d._currentframe != 4)) { if (highs.c2) { highs.d.d.gotoAndStop(6); } else { highs.d.d.gotoAndStop(2); } } highs.dones = true; switch (highs.d._currentframe) { case 34: if (_root.chaps == 9 && _root.altchap && trixx(47)) { if (beamer <= 0) { beamer = 1; _root.chaps = 11; } } else { if (_root.heaven && _root.chaps != 11) { if (beamer <= 0) { _root.heaven = 2; beamer = 1; } } else { _root.levz = undefined; moveon(); _root.door = undefined; if (_root.chaps == 11) { f1 = 24; } else { if (_root.chaps == 9 && _root.altchap) { f1 = 23; } else { f1 = Math.min(9 + _root.so.data.wins, 21); if (f1 == 20) { f1 = 21; } if (_root.chaps == 9) { f1 = 22; } } } _root.gotoAndStop(f1); highs.dones = false; nohit = false; } } break; case 1: if (highs.col == 4) { eta(); } else { if (highs.col == 3) { ++_root.armor; } else { if (player.hp < player.mhp) { if (highs.col != 2) { ++player.hp; red = 7; } else { player.hp += 0.5; red = 5; } } else { nohit = false; highs.dones = false; highs.d.d.gotoAndStop(1); } } } if (highs.col == 4) { _root.soundy('superholy.wav', 100); } else { if (highs.col == 3) { _root.soundy('Holy.mp', 100); } else { if (nohit) { _root.soundy('boss2_bubbles' + random(2) + '.wav', 100); } } } break; case 2: _root.coins += coincol(highs); if (trixx(49) && random(2) == 0) { kogs.push(5.010000002); } if (trixx(50) && random(2) == 0) { kogs.push(5.040000001); } if (trixx(51) && random(2) == 0) { kogs.push(5.03); } if (trixx(52) && random(2) == 0) { ++_root.coins; } break; case 3: if (highs.col == 2) { _root.kep = true; _root.soundy('goldenkey.wav', 100); } else { ++_root.keys; _root.soundy('KeyPickup_Gauntlet.wav', 85); } break; case 4: if (highs.col == 3 || highs.col == 5) { nohit = false; highs.dones = false; if (!highs.troll) { highs.troll = true; st22('Trolololol'); } } else { if (highs.col != 2) { ++_root.bombs; } else { _root.bombs += 2; st22('1 + 1 free'); } } if (nohit) { _root.soundy('fetus_feet' + random(2) + '.wav', 100); } break; case 5: if (!highs.empty && chestopen == undefined) { _root.soundy('Chest_Open.mp', 100); chestopen = highs; } nohit = false; highs.dones = false; break; case 6: if ((_root.keys >= 1 || _root.kep) && !highs.empty && chestopen == undefined) { _root.soundy('Unlock00.wav', 100); if (!_root.kep) { --_root.keys; } chestopen = highs; _root.soundy('Chest_Open.mp', 100); } nohit = false; highs.dones = false; break; case 7: if (fra - highs.fra > 0) { pillc(highs); } else { highs.dones = false; highs.fra = fra + 10; } break; case 8: if (highs.col == 31) { if (!highs.spin && !highs.busted) { ader(); highs.d.d.gotoAndStop(37); highs.spin = true; lastspin = fra + 100; highs.wtf = false; } } else { if (highs.col == 1) { if (!highs.spin && !highs.busted) { ader(); highs.d.d.gotoAndStop(33); highs.d.d.d.gotoAndPlay(1); highs.spin = true; lastspin = fra + 100; highs.wtf = false; } } else { if (highs.col == 10) { if (highs.spin && highs.d.d.d._currentframe > 110) { if (Math.abs(xenf) < 13) { highs.d.d.gotoAndStop(44); } else { if (highs.xp > lows.xp) { highs.d.d.gotoAndStop(43); } else { highs.d.d.gotoAndStop(45); } } highs.wtf = false; lastspin = fra + 15; } } if (_root.coins >= 1 && !highs.spin && !highs.busted && (highs.col != 10 || highs.yp - lows.yp < 0)) { --_root.coins; if (highs.col == 10) { highs.d.d.gotoAndStop(42); highs.itt = random(4); if (random(13) == 0 && !ups[9]) { highs.itt = 5; } } else { if (highs.col > 1 && highs.col < 10) { highs.d.d.gotoAndStop(37); } else { _root.soundy('Coin_Slot.mp', 100); highs.d.d.gotoAndStop(2); } } highs.spin = true; lastspin = fra + 100; } } } highs.dones = false; nohit = false; break; case 9: if (highs.d.d._currentframe > 10 && highs.d.d._currentframe < 24 && highs.open) { player._visible = false; plxxx = highs.xp; plyyx = highs.yp; highs.d.d.gotoAndPlay(25); } highs.dones = false; break; case 15: f1 = [0, 3, 5, 5, 15, 2, 3, 3, 7, 1, 2, 3, 5, 5, 0, 0, 3, 3]; f1 = f1[highs.d.d._currentframe]; if (_root.coins >= f1 && !satan || satan && (_root.armor >= 3 || highs.d.d._currentframe != 11)) { if (satan) { ++_root.evs; if (_root.evs > 1) { _root.locker[54] = true; } if (f1 == 3) { lasth = -100; _root.armor += 0.5; playerhurt(3, 200); _root.armor -= 0.5; player.d.gotoAndStop(4); } else { _root.armor += 1; playerhurt(1, 200); _root.ups[22] -= f1; ups[22] = _root.ups[22]; lasth = -100; player.mhp -= f1; player.d.gotoAndStop(4); if (player.mhp < 0 && highs.it != 81) { _root.armor = 0; playerhurt(100, 200); } } lastcra = -100; _root.mmus = _root.soundy('isaacsatanitemget.mp', 100); plffff = player.d._currentframe; } else { _root.coins -= f1; } highs.done = true; switch (highs.d.d._currentframe) { case 12: case 16: ++_root.keys; _root.soundy('KeyPickup_Gauntlet.wav', 85); player.d.gotoAndStop(4); player.it = 202; break; case 13: case 17: ++_root.armor; _root.soundy('Holy.mp', 100); player.d.gotoAndStop(4); player.it = 203; break; case 1: case 5: _root.soundy('boss2_bubbles' + random(2) + '.wav', 100); ++player.hp; player.d.gotoAndStop(4); player.it = 200; break; case 3: case 7: pillc(highs); break; case 2: case 6: ++_root.bombs; _root.soundy('fetus_feet' + random(2) + '.wav', 100); player.d.gotoAndStop(4); player.it = 201; break; case 4: case 8: case 9: case 10: case 11: powerlevel(); } if (satan && player.hp <= 0) { player.d.gotoAndStop(plffff); } } else { highs.dones = false; } break; case 10: powerlevel(); if (_root.chamb == _root.lev && highs.empty) { highs.dones = true; } } } } } function ballhit(e, a) { trg = ball[e]; trg2 = ball[a]; if (trg.s != 2 || trg2.s != 2) { f1 = Math.max(e, a); f2 = Math.min(e, a); if (tests.getPixel(f1, f2) == 0) { tests.setPixel(f1, f2, 1); nohit = false; if (trg.s > trg2.s) { lows = trg2; highs = trg; } else { lows = trg; highs = trg2; } if (highs.s == 28 && lows.s == 28) { nohit = true; } if (lows.s == 5 && highs.s != 5) { nohit = true; } if (highs.s < 4) { nohit = true; } if (highs.s == 5 && lows != player) { nohit = true; } if (lows.s == 9 || highs.s == 9 && (lows != player && !lows.fly && !lows.meat && !lows.ang && !lows.bird || lows.ni)) { nohit = true; } if (lows.outway || highs.outway && lows != player && lows.s != 2 && !lows.damger && lows.s != 4) { nohit = true; } if (lows.s == 44 && highs.outway || highs.s == 44 && lows.outway) { nohit = false; } if (lows.s == 44 && highs.s == 69) { nohit = true; } if (lows.s == 20 && highs.s == 45) { nohit = true; } if (trg.fra == fra || trg2.fra == fra) { nohit = true; } if ((lows.fly || lows.meat || lows.ang || lows.bird || lows.ni || lows.bird || lows.bum || lows.ba) && highs.s == 4) { nohit = true; } if (highs.flir || lows.flir) { nohit = true; } if (!nohit && !trg.dones && !trg2.dones) { xenf = trg2.xp - trg.xp; siz = sizes[Math.round(trg.s)] + sizes[Math.round(trg2.s)]; siz2 = siz; if (highs.s == 5 && (highs.col == 10 && highs.d._currentframe == 8 || highs.d._currentframe == 34)) { if (highs.d._currentframe == 34) { siz2 += 17; } else { siz2 += 28; } siz = siz2; } if (Math.abs(xenf) < siz) { yenf = trg2.yp - trg.yp; if (Math.abs(yenf) < siz) { enf = xenf * xenf + yenf * yenf; if (enf > 0 && enf < siz * siz && (!lows.hh[highs.e] || lows.s != 2)) { balljunk(); if (!nohit) { v6 = lows.damger; if (lows.s == 2 || v6) { if (lows.charge) { nohit = true; } nohit = highs.s == 23 || highs.s == 41 || highs.s == 32 || highs.s == 25 || highs.s == 55 || highs.s == 62 || highs.s != 4 && (lows.bluf || lows.hairb || lows.meat || lows.eye || lows.charge || ups[48]); if (lows.meat > 2) { nohit = false; } if (!lows.hh[highs.e]) { lows.hh[highs.e] = true; v1 = lows.dmg; if (lows.d._yscale == 135.5) { v1 += 25; } if (highs.s == 41 && !ups[48]) { if (highs.d.hx.h._currentframe == 1 && lows.ybew < 0) { v1 = 0; } if (highs.d.hx.h._currentframe == 2 && lows.xbew < 0) { v1 = 0; } if (highs.d.hx.h._currentframe == 3 && lows.ybew > 0) { v1 = 0; } if (highs.d.hx.h._currentframe == 4 && lows.xbew > 0) { v1 = 0; } } if (highs.s == 97 && !ups[48]) { if (highs.d._currentframe == 1 && lows.ybew < 0) { v1 = 0; } if (highs.d._currentframe == 6 && lows.xbew > 0) { v1 = 0; } if (highs.d._currentframe == 5 && lows.ybew > 0) { v1 = 0; } if (highs.d._currentframe == 7 && lows.xbew < 0) { v1 = 0; } } hurt(highs, v1); if (highs.eternal) { b1 = false; if (highs.s == 62) { if (highs.worm == 1 && highs.d._currentframe == 8 || altboss) { } else { if (highs.worm != 6) { b1 = true; } } } if ((highs.s == 41 && v1 == 0 || !highs.d.d.open && highs.alter != 2 && highs.s == 27 || highs.s == 93 || b1 || highs.refl) && !lows.meat && !lows.bird && !lows.knife && !lows.fly && !lows.hairb && !lows.eye && !lows.sac && !lows.bombo) { lows.done = true; lows.dones = true; if (trg.s == 41) { f9 = 0.95; } else { f9 = 0.8; } refl.push(lows.xp, lows.yp, -lows.xbew * f9 + highs.xbew * 0.8, -lows.ybew * f9 + highs.ybew * 0.8); nohit = true; _root.soundy('pennydrop.mp', 15); } } if (lows.s == 2) { spidcol(highs); } if (highs.hp < 0 && lows.hairb && _root.hairb < 6 && random(_root.hairb) == 0) { lows.d.gotoAndStop(149); lows.d.d.gotoAndStop(1); ++_root.hairb; } } else { nohit = true; } if (ups[48] && !lows.ba || lows.ics || v6 || lows.knife || lows.trixer == 2) { nohit = true; } else { if (ups[169] && !lows.ba && lows.dmg > 10 && highs.hp < -6) { lows.dmg *= 0.5; lows.d._xscale *= 0.75; lows.d._yscale *= 0.75; nohit = true; } else { lows.dones = true; lows.xp += lows.xbew * 0.8; lows.yp += lows.ybew * 0.8; } } if (lows.bluf && random(2) == 1) { lows.dones = true; lows.d = lows.d.d; } if (highs.s == 91) { nohit = true; } } else { if (highs.s != 28 && (lows != player || highs.s != 41 && highs.s != 23)) { trg.gh = 2; trg2.gh = 2; } } if (!nohit) { if (fra2) { if (trg.randy && trg2.s > 10) { f1 = -100; if (Math.abs(xenf) > Math.abs(yenf)) { if (xenf > 0) { trg.xpp = f1; trg.ypp = 0; } else { trg.xpp = -f1; trg.ypp = 0; } } else { if (yenf > 0) { trg.ypp = f1; trg.xpp = 0; } else { trg.ypp = -f1; trg.xpp = 0; } } trg.xpp += trg.xp; trg.ypp += trg.yp; trg.gogo = false; } if (trg2.randy && trg.s > 10) { f1 = 100; if (Math.abs(xenf) > Math.abs(yenf)) { if (xenf > 0) { trg2.xpp = f1; trg2.ypp = 0; } else { trg2.xpp = -f1; trg2.ypp = 0; } } else { if (yenf > 0) { trg2.ypp = f1; trg2.xpp = 0; } else { trg2.ypp = -f1; trg2.xpp = 0; } } trg2.xpp += trg2.xp; trg2.ypp += trg2.yp; trg2.gogo = false; } } if (highs.s == 9 && lows == player) { highs.dones = true; if (highs.sss == 50 || highs.sss == 86 || highs.sss == 90) { coinzz(highs.etgreed); } if (highs.d._xscale > 115) { playerhurt(1, highs.sss); } else { playerhurt(0.5, highs.sss); } } v = trg.ma / (trg.ma + trg2.ma); vv = 1 - v; enf = Math.sqrt(enf); f1 = (siz - enf) / enf; if (trg.bhh) { if (trg2.bhh) { if (trg.bhh == 2 || trg2.bhh == 2) { yenf *= 0.1; yenf *= 0.1; } } } if (lows.s != 2 && !lows.dones) { if (highs.s == 4) { f1 *= 0.5; if (lows.ba) { f1 *= 0.5; } } trg.xp -= xenf * vv * f1; trg.yp -= yenf * vv * f1; trg2.xp += xenf * v * f1; trg2.yp += yenf * v * f1; } else { highs.xp += lows.xbew * 0.18; highs.yp += lows.ybew * 0.18; } xbewenf = trg2.xbew - trg.xbew; ybewenf = trg2.ybew - trg.ybew; bewenf = xbewenf * xbewenf + ybewenf * ybewenf; if (bewenf > 0) { bewenf = Math.sqrt(bewenf); } else { bewenf = 0; } enf = bewenf / enf; if (bewenf > 2.5) { soundy('bh'); } if (maxp) { enf += 0.5; } xenf *= enf; yenf *= enf; trg.xb -= xenf * vv; trg.yb -= yenf * vv; trg2.xb += xenf * v; trg2.yb += yenf * v; if (maxp) { highs.xb *= 0.5; highs.yb *= 0.5; } if (lows.s == 2 && (highs.s == 18 || highs.s == 14)) { highs.xbew *= 0.5; highs.ybew *= 0.5; f1 = lows.xbew * lows.xbew + lows.ybew * lows.ybew; if (f1 > 0) { f1 = Math.sqrt(f1) * 0.12 + 0.2; lows.xbew /= f1; lows.xbew /= f1; highs.xbew += lows.xbew; highs.ybew += lows.ybew; } } if (pub) { f1 = trg; trg = player; if (bord()) { } trg = f1; pub = false; } } } } } else { if (lows == player && !decer) { if (highs.s == 9) { if (Math.abs(yenf) > siz + 70) { highs.noneed = true; highs.noned = 8; } } } } } else { if (lows == player && !decer) { if (highs.s == 9) { if (Math.abs(xenf) > siz + 70) { highs.noneed = true; highs.noned = 8; } } } } } } } maxp = false; } function nextcha() { newstart(false); } function pull(f1, f2, f3, f4, f5) { if (f1 == 0) { v = 0.8; } else { v = 1.2; } v = 1; f1 = ball[f1]; f2 = ball[f2]; f5 = leg[f5]; f5._x = f1._x; f5._y = f1._y; xenf = f1._x - f2._x; yenf = f1._y - f2._y; f5._rotation = (Math.atan(-xenf / yenf) / Math.PI) * 180 + 90; if (yenf >= 0) { f5._rotation += 180; } enf = Math.sqrt(xenf * xenf + yenf * yenf); f5._xscale = enf; f5._yscale = 50; xenf = f1._x + f1.xbew - f2._x - f2.xbew; yenf = f1._y + f1.ybew - f2._y - f2.ybew; enf = Math.sqrt(xenf * xenf + yenf * yenf); if (enf != 0) { enf = (f3 - enf) / enf; xenf *= enf * f4; yenf *= enf * f4; f1.xbew += xenf * v; f1.ybew += yenf * v; f2.xbew -= xenf / v; f2.ybew -= yenf / v; } } function trgnextd(trg2, f2) { if (trg2 == undefined) { trg2 = trg.d.d; } if (!trg.free || slow <= 0 || fra2) { trg2.nextFrame(); } if (trg2._currentframe == trg2._totalframes) { var v2 = trg2._parent._currentframe; if (!f2) { trg2._parent.gotoAndStop(1); } return v2; } } function walkframe(f1) { trg.wf = true; if (f1 <= 0) { f1 = 1; } if (trg.d._currentframe < 3) { if (enfget(trg.xbew, trg.ybew) * f1 > 2) { trg.d.gotoAndStop(2); } else { trg.d.gotoAndStop(1); } } } function randrunc() { if (trg.xpp == undefined || trg.randd < fra - 10) { trg.d.gotoAndStop(1); if (trg.wait++ > 13) { if (linecheck(player.xp, player.yp, trg.xp, trg.yp) && enfcheck(trg.xp, trg.yp, player.xp, player.yp, 100 + random(100))) { trg.xpp = player.xp + player.xbew * 5; trg.ypp = player.yp + player.ybew * 5; } else { f1 = 70 + random(40); if (random(10) == 0) { f1 *= 0.2; } f1 = trg.xp + crand(f1); f2 = trg.yp + crand(); if (random(3) == 0) { f1 = Math.min(580, Math.max(60, f1)); f2 = Math.min(410, Math.max(150, f2)); } else { f1 = Math.min(540, Math.max(120, f1)); f2 = Math.min(360, Math.max(210, f2)); } f3 = ingrid(f1, f2); if (levzz(f3) < 1) { f4 = linecheck(f1, f2, trg.xp, trg.yp); if (f4) { trg.xpp = f1; trg.ypp = f2; trg.wait = 15; } } } } } if (trg.xpp != undefined) { --trg.wait; trg.d.gotoAndStop(2); xenf = trg.xp - trg.xpp; yenf = trg.yp - trg.ypp; enf = enfget(xenf, yenf); if (enf < 14 || enfget(trg.xbew, trg.ybew) < 3 && trg.wait < 0) { trg.mode = 1; trg.xpp = undefined; trg.wait = 0; } enf = 6 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; sideflip(-xenf); } trg.xbew *= 0.6; trg.ybew *= 0.6; trg.randd = fra; } function randrun() { if (trg.xpp == undefined || trg.randd < fra - 10) { f1 = 40; if (trg.s == 68) { f1 = 80; } f1 = trg.xp + crand(f1); f2 = trg.yp + crand(); if (trg.s == 68 || random(2) != 0) { f1 = Math.min(540, Math.max(120, f1)); f2 = Math.min(360, Math.max(210, f2)); } f1 = ingrid(f1, f2); if (levzz(f1) < 1) { outgrid(f1); trg.xpp = xenf; trg.ypp = yenf; } } if (trg.xpp != undefined) { if (trg.s != 64 && (trg.s != 66 || trg.d._currentframe < 7) && trg.s != 77 && trg.s != 76 && trg.s != 79) { trg.d.gotoAndStop(2); } xenf = trg.xp - trg.xpp; yenf = trg.yp - trg.ypp; enf = enfget(xenf, yenf); if (enf < 3 || enfget(trg.xbew, trg.ybew) < 0.2 && random(10) == 0) { trg.mode = 1; trg.xpp = undefined; } enf = 0.5 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; if (trg.s != 68) { sideflip(-xenf); } } trg.randd = fra; } function randruny() { if (trg.d.d._currentframe == 19) { _root.soundy('Meat_impacts_' + random(3) + '.wav'); if (trg.eternal) { quadf(trg.xp, trg.yp, 9); if (trg.alter == 2 && trg.s == 29) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 3; trg2._yscale = trg2._xscale; colorit(trg2, 0, 0, 0, 255, 255, 255); spidboss = true; } } } if (fra < 60 && trg.eternal) { trg.xbew *= 0.8; trg.ybew *= 0.8; } else { if (trg.xpp == undefined) { if (trg.s == 86) { if (trg.d._currentframe > 2) { trgnextd(); } firemode(180, 20, true); trg.ggh = true; } if ((trg.s != 86 || trg.d._currentframe < 3) && (trg.alter != 2 || trg.wait++ > 15)) { trg.d.d.gotoAndStop(1); if (trg.alter == 2 || trg.eternal) { f1 = random(50) + random(70); } else { if (trg.s == 54) { f1 = random(50); } else { f1 = 0; } } trg.f1 = f1; if (enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 2, player.yp + player.ybew * 2, 130 + f1 * 1.3)) { f2 = player.yp - yenf * f1 / 200; f1 = player.xp - xenf * f1 / 200; if (trg.s == 54) { f1 += player.xbew * 5; f2 += player.ybew * 5; } } else { if (trg.eternal) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000); f0 = random(80) + 100 + f1; f1 = trg.xp - (xenf / enf) * f0 + crand(30); f2 = trg.yp - (yenf / enf) * f0 + crand(30); } else { f1 = trg.xp + crand(95 + f1); f2 = trg.yp + crand(); } if (trg.s == 34) { if (trg.xpp == undefined && random(7) == 0) { trg.flyby = true; } } } if (trg.eternal && random(17) == 0 && trg.s == 34) { trg.flyby = true; } f1 = Math.min(620, Math.max(20, f1)); f2 = Math.min(447, Math.max(110, f2)); f1 = ingrid(f1, f2); if (levzz(f1) < 1) { outgrid(f1); trg.xpp = xenf + crand(3); trg.ypp = yenf + crand(3); } } } } trg.bhh = 1; if (trg.xpp != undefined) { trg.wait = 0; trg.d.gotoAndStop(2); trg.d.d.nextFrame(); xenf = trg.xp - trg.xpp; yenf = trg.yp - trg.ypp; enf = enfget(xenf, yenf); if (trg.s == 54 || trg.alter == 2 && trg.s == 29) { f1 = enf * 0.22 - trg.d.d._currentframe; } else { f1 = enf * 0.17 - trg.d.d._currentframe; } speed = enfget(trg.xbew + trg.ybew); if (trg.d.d._currentframe + 6 > trg.d.d._totalframes) { trg.xbew *= 0.4; trg.ybew *= 0.4; xenf = 0; yenf = 0; trgnextd(); if (trg.d.d._currentframe + 7 > trg.d.d._totalframes || trg.eternal) { trg.xpp = undefined; } } else { if (trg.d.d._currentframe < 5) { xenf *= 0.1; yenf *= 0.1; } else { trg.bhh = 2; if (speed < 0.75) { } else { if (f1 > 10 && trg.d.d._currentframe > 13 && trg.d.d._currentframe + 9 < trg.d.d._totalframes) { trg.d.d.prevFrame(); if (f1 > 25) { trg.d.d.prevFrame(); } } } } } if (enf < 10 || speed < 0.75 && random(10) == 0) { if (trg.d.d._currentframe == trg.d.d._totalframes) { trg.xpp = undefined; } } enf = Math.min(3 + trg.f1 * 0.075, enf * 0.1) / enf; if (trg.f1) { f1 = 1 - trg.f1 / 500; trg.xbew *= f1; trg.ybew *= f1; } trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; if (Math.abs(xenf) > 8) { sideflip(-xenf); } } } function markhere(trg) { var v2 = ingrid(trg.xp, trg.yp); if (trg != undefined) { trg.til = v2; } if (trg.mags.length < 2 || trg.s == 28) { if (levzz(v2) < 0.99) { levz[v2] = 0.9; } } } function borderliner(f0) { if (f0 == undefined) { f0 = 1; } f9 = [0, 1, 1, 0, 0, -1, -1, 0, 0, 1]; if (trg.dir == undefined) { trg.dir = 0; f2 = 0; while (f2 < 4) { ++f2; f1 = trg.dir * 2; f3 = ingrid(trg.xp + f9[f1] * roxx, trg.yp + f9[f1 + 1] * roxx); if (levzz(f3) < 0.95) { ++trg.dir; } else { f2 = 10; } } if (f2 != 10) { trg.dir = random(4); } } trg.xbew *= 0.6; trg.ybew *= 0.6; if (trg.xpp == undefined) { f1 = trg.dir * 2; f3 = ingrid(trg.xp + trg.xbew + (-f9[f1] - f9[f1 + 1]) * roxx, trg.yp + trg.ybew + (-f9[f1 + 1] + f9[f1]) * roxx, true); f4 = ingrid(trg.xp + trg.xbew - f9[f1 + 1] * roxx, trg.yp + trg.ybew + f9[f1] * roxx, true); if (levzz(f3) > 0.95 && levzz(f4) < 0.95 && !trg.lastdd) { --trg.dir; trg.lastdd = true; } else { f3 = ingrid(trg.xp + f9[f1] * roxx, trg.yp + f9[f1 + 1] * roxx); if (levzz(f3) < 0.9) { outgrid(f3); trg.xpp = xenf; trg.ypp = yenf; trg.lastdd = false; } else { ++trg.dir; } } } if (trg.dir > 3) { trg.dir -= 4; } if (trg.dir < 0) { trg.dir += 4; } if (trg.xpp != undefined) { enfcheck(trg.xp + trg.xbew, trg.yp + trg.ybew, trg.xpp, trg.ypp, 1000); if (enf < 7) { trg.xpp = undefined; } else { if (enf < 13) { enfcheck(trg.xp + trg.xbew * 2, trg.yp + trg.ybew * 2, trg.xpp, trg.ypp, 1000); if (enf < 7) { trg.xpp = undefined; } } } enf = f0 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; if (trg.xpp != undefined) { if (Math.abs(xenf) < Math.abs(yenf)) { trg.xbew *= 0.6; trg.xbew += (trg.xpp - trg.xp) * 0.4; xenf = 0; } else { trg.ybew *= 0.6; trg.ybew += (trg.ypp - trg.yp) * 0.4; yenf = 0; } } } } function newxx() { f9 = [0, 1, 1, 0, 0, -1, -1, 0]; f10 = 0; var v1 = trg.s == 41 || trg.s == 44 || trg.s == 93 || trg.s == 97; for (;;) { if (!(trg.xpp == undefined && f10++ < 20)) break; trg.tiler = ingrid(trg.xp, trg.yp); f8 = []; a = 0; while (a < 4) { xenf = f9[a * 2] * roxx; yenf = f9[a * 2 + 1] * roxx; f4 = random(12); f1 = trg.xp + xenf * f4; f2 = trg.yp + yenf * f4; if (f1 > 620 || f1 < 20) { f1 = false; } if (f2 > 447 || f2 < 110) { f1 = false; } if (f1) { i = 0; while (i < f4) { f1 = trg.xp + xenf * i; f2 = trg.yp + yenf * i; f3 = ingrid(f1, f2); if (f10 < 9) { f5 = 0.2; } else { f5 = 0.99; } if (levzz(f3) > f5 && f3 != trg.tiler && (!trg.flyby || trg.s == 19 || trg.s == 89)) { --i; break; } ++i; } f1 = trg.xp + xenf * i + yenf; f2 = trg.yp + yenf * i - xenf; f3 = ingrid(f1, f2, true); f1 = trg.xp + xenf * i - yenf; f2 = trg.yp + yenf * i + xenf; f4 = ingrid(f1, f2, true); f1 = trg.xp + xenf; f2 = trg.yp + yenf; f5 = ingrid(f1, f2, true); if (trg.flyby && trg.s != 19 && trg.s != 89 || levzz(f5) < 0.2 && (levzz(f3) < 0.2 || levzz(f4) < 0.2 || random(8) == 0)) { f8[a] = i; } } else { f8[a] = -1; } ++a; } f7 = 1.8; if (v1 || random(10) != 0) { f7 = -1; } f6 = -1; for (a in f8) { if (f8[a] > f7) { f7 = f8[a]; f1 = Math.abs(trg.lasta - a); f2 = Math.abs(trg.lastaa - a); f1 = f1 != 2 && f2 != 2 || random(100) == 0; if (f1) { f6 = a; } } } if (f7 < 2 && random(4) != 0) { f6 = -1; } if (f6 > -1) { if (f6 != trg.lasta) { if (trg.lastaa != trg.lasta) { trg.lastaa = trg.lasta; } } trg.lasta = f6; xenf = f9[f6 * 2] * roxx; yenf = f9[f6 * 2 + 1] * roxx; f3 = Math.abs(xenf) > Math.abs(yenf); f1 = trg.xp + xenf * f7; f2 = trg.yp + yenf * f7; f1 = ingrid(f1, f2); if (levzz(f1) < 1) { outgrid(f1); trg.xpp = xenf; trg.ypp = yenf; } if (f3) { trg.ybew = 0; } else { trg.xbew = 0; } } trg.fail = 0; } } function randrunx(f0) { if (trg.xpp == undefined || random(4) == 0 || trg.xbew * trg.xbew + trg.ybew * trg.ybew < 1 && !trg.tried) { newxx(); } if (trg.s == 19 || trg.s == 89) { trg.tried = false; if (trg.knownot) { trg.knownot = false; if (trg.xpp == undefined) { newxx(); } if (!lofo) { lofo = true; if (trg.xpp == undefined) { newxx(); } } } } else { trg.tried = !trg.tried; } if (trg.xpp != undefined) { trg.tried = false; trg.knownot = true; trg.xpp = Math.min(620, Math.max(20, trg.xpp)); trg.ypp = Math.min(447, Math.max(110, trg.ypp)); xenf = trg.xp + trg.xbew - trg.xpp; yenf = trg.yp + trg.ybew - trg.ypp; enf = enfget(xenf, yenf); if (enf < 5) { trg.mode = 1; trg.xp = trg.xpp; trg.yp = trg.ypp; trg.xpp = undefined; } else { if (enfget(trg.xbew, trg.ybew) < 0.6) { if (trg.fail++ > 10) { trg.xpp = undefined; } } } enf = f0 / enf; xenf *= enf; yenf *= enf; trg.xbew -= xenf; trg.ybew -= yenf; if (trg.s == 97 || trg.s == 93) { trg.xbeww -= xenf * 3; trg.ybeww -= yenf * 3; } f1 = enfget(trg.xbew, trg.ybew); enf = roxx / f1; xenf = trg.xbew * enf; yenf = trg.ybew * enf; trg.nextl = ingrid(trg.xp + xenf, trg.yp + yenf); if (levzz(trg.nextl) > 0.7 && f1 > 3 || f1 < 1) { if (trg.fail++ > 2) { trg.xpp = undefined; } } if (trg.xpp == undefined) { newxx(); } } } function cirf(f1, f2, f3, f4, f5) { if (f5 == undefined) { f5 = Math.random() * Math.PI; } if (trg.eternal && trg.s == 102) { xxenf = f1 - player.xp; yyenf = f2 - player.yp; var v5 = true; } var v4 = (Math.PI / f4) * 2; var v1 = 0; while (v1 < f4) { f5 += v4; f6 = Math.sin(f5) * f3; f7 = Math.cos(f5) * f3; if (f6 * xxenf + f7 * yyenf <= 1000 || !v5) { ffmo(f1, f2, 0, f6, f7, 0, 9, trg.s, true); } ++v1; } } function quadf(f1, f2, f3, f4) { gibb += 10; if (f4 != 2) { ffmo(f1, f2, 0, f3, 0, 0, 9, trg.s, true); ffmo(f1, f2, 0, -f3, 0, 0, 9, trg.s, true); ffmo(f1, f2, 0, 0, f3, 0, 9, trg.s, true); ffmo(f1, f2, 0, 0, -f3, 0, 9, trg.s, true); } f3 /= Math.SQRT2; if (f4) { ffmo(f1, f2, 0, f3, f3, 0, 9, trg.s, true); ffmo(f1, f2, 0, -f3, f3, 0, 9, trg.s, true); ffmo(f1, f2, 0, f3, -f3, 0, 9, trg.s, true); ffmo(f1, f2, 0, -f3, -f3, 0, 9, trg.s, true); } } function ffmo(f1, f2, f3, f4, f5, f6, f7, f8) { var v1 = create(f1, f2, f3, f4, f5, f6, f7, trg.s); if (trg.spid > 0) { v1.xbew *= 0.5; v1.ybew *= 0.5; } if (trg.s == 68 && !altboss) { colorit(v1, 0.6, 1.2, 0.2, 50, 60, 0); } v1.ggh = false; if (!f8) { v1.dm = -3; v1.fd = 0.1; } if (trg.s == 26 && trg.alter == 3 || trg.s == 65 && altboss || trg.s == 102 && (trg.state > 0 || altboss && random(5) == 0 && !noho) || trg.minb == 3 && trg.specoz != 23 || trg.s == 98 && trg.specoz == 18 || (trg.s == 57 && trg.alter != 2 || trg.s == 32) && trg.specoz == 23 || (trg.s == 50 || trg.s == 90) && trg.eternal) { v1.hom = true; colorit(v1, 0.8, 1, 2.5, 0, 0, 0); v1._xscale *= 1.5; v1._yscale *= 1.5; if (trg.s == 26 && trg.eternal) { v1.longshot = 2; trg.hp *= 0.99; v1.dm += 1; } if (trg.s == 50 || trg.s == 90) { v1.longshot = true; if (trg.s == 90) { v1.dm += 3; } } } else { if (trg.s == 102) { var v2 = new flash.geom.Transform(v1); v2.colorTransform = bull; } } if (trg == mheart && trg.eternal) { v1._xscale *= 1.3; v1._yscale *= 1.3; } if (v3 && (trg.specoz != 23 || trg.s == 81)) { v1.dm -= 1; v1.xbew *= 1.2; v1.ybew *= 1.2; v1.xbew += trg.xbew * 0.4; v1.ybew += trg.ybew * 0.4; } if (trg.s == 79) { v1.dm += 3; v1.dy -= 15; v1.xbew *= 1.2; v1.ybew *= 1.2; } else { if (trg.s == 36) { v1.fd *= 0.4; } else { if (trg.s == 42) { v1.dm -= 3; v1.dy = -10; v1.ggh = true; v1.nog = 15; } } } if (trg.s == 59) { v1.dy += 15; } if (trg.special || trg.s == 59 || trg.s == 57 && (trg.alter == 2 || !trg.eternal) || trg.s == 53 || trg.s == 43 || trg.s == 75 || trg.s == 76 || trg.s == 84) { v1.doub = true; v1.d._yscale = 140; v1.d._xscale = 140; } if (trg.s == 42 || trg.s == 38 || trg.s == 27) { v1.fd -= 0.05; v1.xbew *= 1.07; v1.ybew *= 1.07; } if (trg.s == 57) { if (trg.eternal) { v1.dm -= 2; } else { v1.dy += 15; v1.dm -= 0.2; } } if (trg.s == 90) { v1.dy -= 20; v1.dm += 2; } if (trg.s == 84) { v1.fd -= 0.07000000000000001; } if (trg.s == 65) { v1.dy -= 45; v1.dm += 7; } if (trg.s == 62) { v1.dy -= 50; v1.fd = 0.3; v1.xbew -= worm[1].xbew * 0.4; v1.ybew -= worm[1].ybew * 0.4; } if (trg.s == 100 && trg.specoz != 23 || trg.s == 101 && altboss) { if (trg.specoz == 18) { colorit(v1, 0.2, 0.2, 0.2, 0, 0, 0); } else { colorit(v1, 0.3, 0.8, 0.8, 140, 140, 140); } } if ((trg.s == 14 || trg.s == 26) && trg.eternal) { v1.dy -= 16; } if (trg.s == 14 && trg.alter == 3) { v1.dy += 16; v1.dm -= 3; } if (trg.s == 26 && trg.alter == 3) { if (trg.eternal) { v1.dy += 6; } v1.dy -= 10; v1.dm += 3; } if (trg.s == 25) { if (trg.eternal) { v1.dy -= 7; } } if (trg.s == 31) { v1.dy = -14; v1.fd = 0; } if (trg.s == 55) { if (trg.eternal) { v1.dy -= 14; } } if (trg.s == 56) { if (trg.eternal) { v1.longshot = true; v1.xbew *= 1.2; v1.ybew *= 1.2; } } if (trg.s == 59) { if (trg.eternal) { v1.longshot = true; } } if ((trg.s == 86 || trg.s == 50 || trg.s == 90) && trg.eternal) { v1.etgreed = true; } if (trg.s == 77) { v1.breaker = true; } return v1; } function shots(v1, v2, xenf, yenf, v3) { if (trg.s == 38) { _root.soundy('Floaty_Baby_Roar_' + random(3) + '.mp', 85); } if (trg.s == 26 && trg.alter != 2 && trg.alter != 3 && trg.eternal || (trg.s == 36 || trg.s == 46) && trg.specoz == 23 || v3 == 23) { f5 = -(rotget2(xenf, yenf) + 90) * Math.PI / 180; var v6 = 8; if (trg.s == 36) { v6 = 16; } else { if (trg.s == 46) { v6 = 12; } } f5 -= v6 * 0.05; f3 = 7; if (trg.s >= 49) { f7 = 9; } z = 0; while (z < v6) { f6 = Math.sin(f5) * f3; f7 = Math.cos(f5) * f3; trg2 = ffmo(v1, v2, 0, f6, f7, 0, 9); f5 += 0.1; if (trg.s >= 49) { trg2.dm -= 2; } if (trg.s == 46) { trg2.dy -= 16; trg2.dm += 3; trg2.longshot = true; ++z; f5 += 0.1; } ++z; } } else { if (trg.s == 12 && trg.eternal) { ffmo(v1, v2, 0, xenf, yenf, 0, 9); ffmo(v1, v2, 0, yenf, -xenf, 0, 9); ffmo(v1, v2, 0, -yenf, xenf, 0, 9); ffmo(v1, v2, 0, (xenf + yenf) / 1.41, (yenf - xenf) / 1.41, 0, 9); ffmo(v1, v2, 0, (xenf - yenf) / 1.41, (yenf + xenf) / 1.41, 0, 9); } else { if (trg.s == 63 && trg.d.d._currentframe == 24) { ffmo(v1, v2, 0, xenf * 0.8 - yenf * 0.25, yenf * 0.8 + xenf * 0.25, 0, 9); ffmo(v1, v2, 0, xenf * 0.8 + yenf * 0.25, yenf * 0.8 - xenf * 0.25, 0, 9); } else { if (trg.s == 14 && trg.alter > 1 || trg.s == 86 || (trg.s == 79 || trg.s == 31) && trg.eternal) { trg3 = ffmo(v1, v2, 0, xenf * 0.8 - yenf * 0.2, yenf * 0.8 + xenf * 0.2, 0, 9); trg4 = ffmo(v1, v2, 0, xenf * 0.8 + yenf * 0.2, yenf * 0.8 - xenf * 0.2, 0, 9); if (trg.three && trg.s == 14 || trg.s == 31 || trg.s == 86 && trg.eternal || trg.s == 79) { trg2 = ffmo(v1, v2, 0, xenf, yenf, 0, 9); if (trg.s == 50) { trg3.xbew -= yenf * 3; trg3.ybew += xenf * 3; trg4.xbew += yenf * 3; trg4.ybew -= xenf * 3; } } } else { if (v3 == 2) { if (trg.s == 50 && trg.eternal) { ffmo(v1, v2, 0, xenf * 0.9 - yenf * 0.4, yenf * 0.9 + xenf * 0.4, 0, 9); ffmo(v1, v2, 0, xenf * 0.9 + yenf * 0.4, yenf * 0.9 - xenf * 0.4, 0, 9); ffmo(v1, v2, 0, xenf * 0.7 - yenf * 1, yenf * 0.7 + xenf * 1, 0, 9); ffmo(v1, v2, 0, xenf * 0.7 + yenf * 1, yenf * 0.7 - xenf * 1, 0, 9); } else { ffmo(v1, v2, 0, xenf * 0.9 - yenf * 0.1, yenf * 0.9 + xenf * 0.1, 0, 9); ffmo(v1, v2, 0, xenf * 0.9 + yenf * 0.1, yenf * 0.9 - xenf * 0.1, 0, 9); ffmo(v1, v2, 0, xenf * 0.7 - yenf * 0.3, yenf * 0.7 + xenf * 0.3, 0, 9); ffmo(v1, v2, 0, xenf * 0.7 + yenf * 0.3, yenf * 0.7 - xenf * 0.3, 0, 9); } } else { trg2 = ffmo(v1, v2, 0, xenf, yenf, 0, 9); if (v3 || trg.s == 38 && trg.alter == 2) { ffmo(v1, v2, 0, xenf * 0.8 - yenf * 0.2, yenf * 0.8 + xenf * 0.2, 0, 9); ffmo(v1, v2, 0, xenf * 0.8 + yenf * 0.2, yenf * 0.8 - xenf * 0.2, 0, 9); } if (trg.s == 27 && trg.eternal) { ffmo(v1, v2, 0, xenf * 0.9 - yenf * 0.1, yenf * 0.9 + xenf * 0.1, 0, 9); ffmo(v1, v2, 0, xenf * 0.9 + yenf * 0.1, yenf * 0.9 - xenf * 0.1, 0, 9); } if (trg.s == 36 || trg.s == 56 || trg.s == 27 && trg.alter == 2 || trg.s == 84) { ffmo(v1, v2, 0, xenf * 0.6800000000000001 - yenf * 0.42, yenf * 0.58 + xenf * 0.42, 0, 9); ffmo(v1, v2, 0, xenf * 0.6800000000000001 + yenf * 0.42, yenf * 0.58 - xenf * 0.42, 0, 9); if (!trg.eternal || trg.s != 27) { trg2.xbew *= 0.85; trg2.ybew *= 0.9; } } } } } } } } function firemode(siz, f1, f2) { if (trg.s == 56 || trg.s == 90) { siz += 60; } else { if (trg.s == 42 || trg.s == 38 || trg.s == 27) { if (trg.s == 38 && trg.eternal) { siz += 65; } siz += 40; } } if (trg.s == 56) { f1 += 5; } if (trg.s == 90) { f1 += 2 + random(2); } b1 = false; if (trg.eternal && trg.s == 32) { b1 = random(3) != 0; } if (((fra + trg.e) % 7 == 0 || f2) && !b1) { if (trg.fire <= 0) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, siz); if (enf) { if (linechecky(trg.xp, trg.yp, player.xp, player.yp)) { if (trg.s == 42) { trg.d.gotoAndStop(2); } else { if (trg.s == 86) { sideflip(-xenf); } else { sideflip(xenf); } if (trg.s == 32) { } else { if (trg.s == 79) { trg.d.gotoAndStop(8); } else { if (trg.s == 63) { trg.d.gotoAndStop(9); } else { trg.d.gotoAndStop(5); } } } if (trg.s == 14 && trg.eternal) { trg.rep = 2; f1 += 4; } } trg.fire = f1; trg.fir = -7; if (trg.s == 27) { trg.fir = -25; trg.fire += 6; } if (trg.s == 32) { trg.fire += 10; } } else { if (trg.s == 14) { if (trg.eternal) { enf = 0.3 / enf; } else { enf = 0.1 / enf; } xenf *= enf; yenf *= enf; trg.xbb -= xenf; trg.ybb -= yenf; } } } } if (!trg.free || slow <= 0 || fra2) { --trg.fire; } } if (trg.s == 14 && trg.eternal) { if (trg.d.hx.d._currentframe == 11 && trg.d._currentframe == 5) { if (trg.rep-- > 0) { trg.fir = -7; trg.d.hx.d.gotoAndStop(1); if (trg.alter == 3) { --trg.rep; } } } } if (trg.s == 38 && trg.eternal && trg.alter == 3) { if (trg.d._currentframe == 5) { if (trg.d.d._currentframe >= 13 && trg.d.d._currentframe < 31) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 8, player.yp + player.ybew * 8, 10000); enf = enfget(xenf, yenf); enf = -9.199999999999999 / enf; xenf *= enf; yenf *= enf; if (trg.d.d._currentframe == 13) { _root.soundy('Blood_Laser' + random(2) + '.mp'); } else { xenf *= 0.15; yenf *= 0.15; xenf += trg.xo * 0.85; yenf += trg.yo * 0.85; } trg.xo = xenf; trg.yo = yenf; f1 = xenf; f2 = fra / 2; xenf -= Math.sin(f2) * yenf * 0.1; yenf += Math.cos(f2) * f1 * 0.1; trg2 = ffmo(trg.xp - xenf * 0.5, trg.yp - yenf * 0.5 + 5, 0, xenf * 1.4, yenf * 1.4, 0, 9, trg.s, true); trg2.dy -= 20; } } } else { if (trg.fir++ > 0 && (trg.s != 79 || trg.d.d._currentframe == 17) && (trg.s != 63 || trg.d.d._currentframe == 19 || trg.d.d._currentframe == 24 && trg.specoz == 23) && (trg.s != 27 || trg.d._currentframe == 5) && trg.s != 56 || trg.s == 56 && trg.d.d._currentframe == 33) { if (trg.s == 63 || trg.s == 79 || trg.s == 14 && trg.eternal) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); } else { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); } if (trg.s == 86) { sideflip(-xenf); } else { sideflip(xenf); } trg.fir = undefined; enf = enfget(xenf, yenf); enf = -7 / enf; xenf *= enf; yenf *= enf; if (trg.s == 63) { xenf *= 1.3; yenf *= 1.3; } if (trg.s == 42 && trg.alter == 2) { trg2 = green(); trg2.dm -= 3; trg2.dy = -10; trg2.ggh = true; trg2.nog = 15; } else { if (trg.s == 63 && trg.specoz == 7) { bossfire(10, true); } else { if (trg.s == 63 && trg.specoz == 23 && trg.d.d._currentframe == 19) { trg.fir = 2; } if (trg.s == 32) { xenf *= 0.44; yenf *= 0.44; } shots(trg.xp, trg.yp, xenf, yenf, trg.s == 27 || trg.s == 63 || trg.s == 90); } } } } } function firewalk() { if (trg.fire <= 0) { var v3 = trg.xp; var v2 = trg.yp; var v4 = true; enf = enfget(trg.xbew, trg.ybew); enf = -5 / enf; if (trg.s == 19) { enf *= 1.5; if (!linecheckx(trg.xp - trg.xbew * 5, trg.yp - trg.ybew * 5, trg.xp + trg.xbew * 10, trg.yp + trg.ybew * 10)) { v4 = false; } } if (v4) { if (trg.s == 11 && trg.specoz == 23) { enf *= 2; } trg.fire = 40 + random(20); var v1 = create(v3, v2, 0, -trg.xbew * enf, -trg.ybew * enf, 0, 9, trg.s); v1.fd = 0.3; v1.dm = -5; if (trg.s == 19 && altboss) { v1 = create(v3, v2, 0, (-trg.xbew - trg.ybew * 0.2) * enf, (trg.xbew * 0.2 - trg.ybew) * enf, 0, 9, trg.s); v1.fd = 0.3; v1.dm = -5; v1 = create(v3, v2, 0, (-trg.xbew + trg.ybew * 0.2) * enf, (-trg.xbew * 0.2 - trg.ybew) * enf, 0, 9, trg.s); v1.fd = 0.3; v1.dm = -5; } } } --trg.fire; } function angstfind(v1, v2) { if (v1 == undefined) { v1 = player.xp; v2 = player.yp; } if (trg.failfind <= 0) { trg.failfind = 0; } trg.failfind = Math.min(trg.failfind, 20); topz(8); if ((trg.e + fra) % 14 == 1) { f13 = linecheckx(trg.xp, trg.yp, v1, v2); if (f13) { siz = 250; if (trris + 45 + random(100) <= fra && random(4) == 0 && trg.s < 90) { trris = fra; _root.soundy('Scared_Whimper_' + random(3) + '.mp', 100); } } else { siz = 170; } if (enfcheck(trg.xp, trg.yp, v1, v2, siz)) { if (trg.needmove <= 0) { trg.ypp = undefined; trg.xpp = trg.ypp; } trg.needmove = 3; } else { --trg.needmove; } } if ((trg.e + fra) % 30 == 0) { trg.checked = []; } if (trg.needmove > 0) { if (trg.rpx) { trg.rpx = undefined; trg.xpp = undefined; } f0 = enfcheck(trg.xp, trg.yp, v1, v2, 500); if (trg.xpp == undefined || trg.failfind > 20) { if (f0 > 0) { f1 = 1.5 / f0; trg.xbew += xenf * f1; trg.ybew += yenf * f1; enf = 30 / f0; var v4 = xenf * enf + trg.xp; var v5 = yenf * enf + trg.yp; } else { var v4 = trg.xp; var v5 = trg.yp; } i = 0; for (;;) { if (!(trg.xpp == undefined && i < 7 - trg.failfind * 0.3)) break; f10 = 450 * Math.random() + 30; if (random(2) == 0) { if (Math.abs(xenf) > Math.abs(yenf)) { yenf = 0; } else { xenf = 0; } } xenf = v4 + crand(f10); yenf = v5 + crand() * 0.5; f1 = ingrid(xenf, yenf); if (trg.checked[f1]) { i -= 0.7; } else { outgrid(f1); trg.checked[f1] = true; if (!mhit(xenf, yenf)) { if (linecheckx(trg.xp, trg.yp, xenf, yenf)) { f13 = !linecheckx(v1, v2, xenf, yenf); if (f13 || trg.failfind >= 20) { f7 = xenf; f8 = yenf; if (enfcheck(v1, v2, trg.xpp, trg.ypp, 100 + f0 + f10 / 3 + trg.failfind - trg.noco * 10)) { ++trg.noco; } else { trg.xpp = f7; trg.ypp = f8; i = 100; if (f13) { trg.failfind /= 2; } } } else { trg.failfind += 0.35; } } } } ++i; } } if (trg.xpp != undefined) { if ((trg.e + fra) % 10 == 1) { f13 = enfcheck(v1, v2, trg.xpp, trg.ypp, 200); if (linecheckx(v1, v2, trg.xpp, trg.ypp) && trg.failfind < 20 || f13 || Math.abs(xenf) < 20 || Math.abs(yenf) < 20) { trg.ypp = undefined; trg.xpp = trg.ypp; } } pathfind(trg, trg.xpp, trg.ypp, 1.3); } } else { trg.failfind *= 0.9; trg.rpx = true; trg.noco = 0; randrun(); trg.xbew *= 0.9; trg.ybew *= 0.9; } tip(8); } function pffy(f1, f2) { if (trg.s != 54) { f1 = ingrid(f1, f2); f3 = levzz(f1) == 0.99 && (!f44 && !webs[f1]) && (!trg.flyby || _root.lev == _root.sac || _root.lev == _root.cus) && !trg.flyai; if (f3) { f55 = f1; } if (levzz(f1) > 1 && levzz(f1) < 2 || f3) { var v4 = this['de' + f1]; if (v4.fire && trg.s != 28 || f3) { relf = f3; if (trg.s == 27) { trg.dones = true; } outgrid(f1); enf = enfcheck(trg.xp, trg.yp, xenf, yenf, siz); if (f3) { enf += 20; } if (trg.s == 29 && trg.alter != 2 && v4.fire) { trg.s = 54; attach(trg, 54); trg.hp += 20; } if (enf < siz) { if (!f3 && trg.firs + 10 <= fra) { trg.firs = fra; _root.soundy('Firedeath_hiss.wav', Math.min(100, 50 + trg.hp * 5)); } siz = enf; f4 = xenf; f5 = yenf; f6 = enf; f7 = f3; return true; } } } } } function firecheck(trg) { trg3 = 0; siz = 38; var v3 = 20; relf = true; var v4 = pffy(trg.xp + v3, trg.yp + v3) || pffy(trg.xp - v3, trg.yp + v3) || pffy(trg.xp + v3, trg.yp - v3) || pffy(trg.xp - v3, trg.yp - v3); if (v4) { if (!f7) { xenf = f4; yenf = f5; enf = f6; enf = 4 / enf; trg.xbew += xenf * enf; trg.ybew += yenf * enf; } } if (dang) { if (trg == player && (!trg.flyby || _root.lev == _root.sac || _root.lev == _root.cus)) { if (shit(trg.xp, trg.yp)) { if (blackout == 2 || spidboss) { if (trg == player) { playslow = 10; } } else { v4 = true; relf = 2; } } } } if (dang2 && !trg.flyby && !trg.flyai) { if (trg != player) { if (dang2.hitTest(trg.xp, trg.yp, true)) { v4 = true; } } } return v4; } function breakfloor(f1) { if (levzz(f1) < 0.99) { var v1 = true; for (i in brr) { v1 = v1 && f1 != brr[i]; } for (i in brr2) { v1 = v1 && f1 != brr2[i]; } if (v1) { v1 = [levzz(f1 + 1) == 3, levzz(f1 + rowz) == 3, levzz(f1 - 1) == 3, levzz(f1 - rowz) == 3]; if (v1[0] && v1[2] || v1[1] && v1[3]) { brr.push(f1); } else { brr2.push(f1); } } } } function breakall() { f1 = false; for (i in brr) { f1 = brr[i]; outgrid(f1); tiles.gotoAndStop(67); maxx = new flash.geom.Matrix(); maxx.translate(xenf, yenf); maxx.scale(hdx, hdx); dblock.draw(tiles, maxx); } } function pathcheck(trg, v2, v3) { v1 = ingrid(trg.xp, trg.yp); trg.gridder = levz.slice(0, -1); z = 0; for (z in v3) { trg.gridder[v3[z]] = 1; } trg.gridder[v2] = 0; acts = []; acts2 = []; z = -1; for (;;) { if (!(z > -100 && trg.gridder[v2] >= 0)) break; if (z == -1) { pff(v1, -1); } else { for (i in acts) { v1 = trg.gridder[acts[i]]; if (v1 < z) { acts2.push(acts[i]); } else { outgrid(acts[i]); pff(ingrid(xenf, yenf + roxx), v1); pff(ingrid(xenf + roxx, yenf), v1); pff(ingrid(xenf - roxx, yenf), v1); pff(ingrid(xenf, yenf - roxx), v1); } } } acts2[acts2.length] = 0; acts = acts2.slice(0, -1); acts2 = []; --z; } if (z < -99) { trg.gridder = 0; return false; } else { return z; } } function bloww(v2, f5, f6) { _root.levblow[_root.lev].push(v2, f5, f6); outgrid(v2); dblock.fillRect(new flash.geom.Rectangle((xenf - roxx2 - 2) * hdx, (yenf - roxx2 - 2) * hdx, (roxx + 4) * hdx, (roxx + 4) * hdx), 0); if (levz[v2] == 0.99 && webs[v2]) { tiles.gotoAndStop(161 + webs[v2]); maxx = new flash.geom.Matrix(); maxx.translate(xenf, yenf); maxx.scale(hdx, hdx); dblock.draw(tiles, maxx); webs[v2] = false; levz[v2] = 0; } else { if (levz[v2] == 1) { gibs(xenf, yenf); ++_root.so.data.rocks; if (_root.so.data.rocks > 49) { _root.locker[18] = true; } if (_root.chaps < 7 || _root.chaps == 9) { _root.soundy('Rock_crumble ' + random(3) + '.wav', 100); tiles.gotoAndStop(60 + random(5)); } else { _root.soundy('Meaty_Deaths_' + random(6) + '.mp', 100); tiles.gotoAndStop(85 + random(5)); } maxx = new flash.geom.Matrix(); maxx.translate(xenf, yenf); maxx.scale(hdx, hdx); dblock.draw(tiles, maxx); if (Math.abs(f5) > Math.abs(f6)) { f6 = 0; if (f5 > 0) { f5 = roxx; } else { f5 = -roxx; } } else { f5 = 0; if (f6 > 0) { f6 = roxx; } else { f6 = -roxx; } } f1 = ingrid(xenf + f5, yenf + f6); if (levz[f1] == 3) { _root.levblow[_root.lev].push(f1); levz[f1] = 0; outgrid(f1); tiles.gotoAndStop(66); maxx = new flash.geom.Matrix(); maxx.translate(xenf, yenf); maxx.scale(hdx, hdx); dblock.draw(tiles, maxx); } if (_root.rarer[_root.lev] == v2) { levz[v2] = 0; outgrid(v2); chestox = xenf; chestoy = yenf; chestopen = 2; _root.rarer[_root.lev] = -100; if (_root.so.data.rox++ > 30) { _root.locker[87] = true; } } } } levz[v2] = 0; cloo(); } function gosplash() { if (trg.s == 24) { if (trg.eternal) { quadf(trg.xp, trg.yp, 8, 1); } } if (trg.s == 4 || (trg.s == 45 || trg.s == 101 || trg.s == 84) && !trg.dones) { if (!trg.dsound && trg.s != 101) { trg.dsound = true; _root.soundy('boss1_explosions' + random(3) + '.wav', 100); } if (trg.pois) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 3; trg2._yscale = trg2._xscale; splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() + 0.8); if (trg.pois == 4) { } else { if (blackout != 2) { colorit(trg2, 0, 2, 0, 0, 40, 0); } else { colorit(trg2, 0, 0, 0, 0, 0, 0); } } } else { _root.bomf[_root.lev].push([trg.xp, trg.yp]); } f4 = 60; if (trg.dmg > 25 && trg.s != 45 && trg.s != 101) { f4 = 90; } if (trg.dmg >= 45 && trg.s != 45 && trg.s != 101) { f4 = 105; } if (trg.s == 101 || trg.s == 45) { f4 = 44; } f11 = []; z = 0; while (z < 150) { var v2 = Math.random() * f4; f5 = crand(v2); f6 = crand(); f1 = trg.xp + f5; f2 = trg.yp + f6; v2 = ingrid(f1, f2); if (levz[v2] >= 1.9 && f4 < 90 && _root.lev != _root.bossl && _root.lev != _root.bossl2) { f4 = 90; } outgrid(v2); if (!f11[v2]) { f11[v2] = true; if (levz[v2] > 0.9) { if (linecheckxx(trg.xp, trg.yp, xenf, yenf)) { if (levz[v2] == 1 || levz[v2] == 1.85 || webs[v2]) { bloww(v2, f5, f6); } else { killshit(v2, 10); } if (v2 < 40) { breakfloor(v2); } } } } ++z; } for (z in ball) { trg2 = ball[z]; siz = 85 + sizes[Math.round(trg2.s)]; if (trg.s == 45 && trg2 == player) { siz = 40; } if (trg.huge) { siz *= 1.75; } if (trg.s == 101 && trg.d._currentframe != 5) { siz = 48.5; } if (trg.bombo && trg2 == player) { siz = 55; } enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, siz); if (enf < siz && !trg2.dones && (trg.s == 4 || trg.s == 45 || trg.s == 101 && trg2 != player || trg2.s == 7) && trg2.bh && !trg2.shot) { f1 = false; if (trg2.s == 5 && trg2.d._currentframe == 8 && chestopen == undefined) { if (trg2.col == 41) { trg2.d.d.gotoAndStop(30); } else { if (trg2.col == 1) { trg2.d.d.gotoAndStop(34); } else { if (trg2.col > 1) { trg2.d.d.gotoAndStop(39); trg2.dones = true; _root.bumkill = true; } else { trg2.d.d.gotoAndStop(30); } } } trg2.spin = false; trg2.busted = true; chestopen = trg2; f1 = true; } if (trg2.s != 5 || fra - trg2.fra > 30 || f1) { enf = Math.min(siz - enf, 15) / enf; f1 = trg2.s == 7 || trg2.s == 8 || trg2.s == 45 || trg2.s == 101; f2 = true; if (!f1) { f2 = linecheckxx(trg.xp, trg.yp, trg2.xp, trg2.yp); } if (f2) { if (enf > 0 && trg2.s != 101) { if (f1 || trg2.s > 61) { enf *= 0.015; } if (trg2.s == 59) { enf = 0; } trg2.xbew *= 0.5; trg2.ybew *= 0.5; trg2.xbew -= xenf * enf; trg2.ybew -= yenf * enf; } if ((trg2.specoz == 23 && trg.s != 101 || trg2.s == 46 || trg2.s == 68 || trg2.s == 87 && trg.pois != 10 || trg2.s == 67 || trg2.s == 30 && trg.s != 101 || trg2.s == 88 || trg2.s == 59 || trg2.s == 64 || trg2.s == 78 || trg2.s == 82 || trg2.s == 83 || trg2.s == 101) && trg.dfr && !trg.bombo || trg2.s == 45 && trg.s == 45 || trg2.s == 52 && !trg.playbomb && (trg.col == 3 || trg.col == 5)) { } else { if (trg2.s == 48 || trg2.bomber) { if (trg.man) { hurt(trg2, 10); } else { hurt(trg2, 100); } } else { if (trg2.s == 28 || trg2.s == 87 && trg.pois == 10) { hurt(trg2, 18); } else { if (trg.dmg > 0 || trg.playbomb || trg.bombo) { hurt(trg2, 50 + trg.dmg); } else { hurt(trg2, 40); } } if (trg.header) { trg2.poiss = trg.header; trg2.poisd = 7; if (trg.bombo) { trg2.poisd = 3; } } } } if (trg2 == player && !trg.friend) { if (trg.mug) { playerhurt(0.5, 4); } else { playerhurt(1, 4); } } } } } trg2 = undefined; } if (trg.s != 45 && trg.s != 84 && trg.s != 101) { if (blackout == 2) { z = 0; while (z < 5) { splater(trg.xp + crand(), trg.yp + crand(random(10)), 1 + random(10), Math.random() + 1); ++z; } } else { if (!trg.pois) { maxx = new flash.geom.Matrix(); if (f4 > 100) { maxx.scale(1.5, 1.5); } if (trg.huge) { maxx.scale(2.75, 2.75); } maxx.translate(trg.xp, trg.yp); maxx.scale(hdx, hdx); splat.draw(crater, maxx); } if (trg.header) { gibs(); z = 0; while (z < 20) { f1 = z * 3; splater(trg.xp + crand(f1), trg.yp + crand(f1), 31 + random(10), Math.random() * 0.5 + 1.2 - z / 20); ++z; } } } } } big = 0; if (trg.s != 13 && trg.s != 14 && trg.s != 5 && trg.s != 18 && trg.s != 45 && trg.s != 80 && trg.s != 4.5 && trg.s != 85 && trg.s != 101 && !trg.fart) { gibs(); } if (trg.frezz > 0) { _root.soundy('Rock_crumble ' + random(3) + '.wav', 100); } else { if (trg.s == 38 || trg.s == 59 || trg.s == 77) { _root.soundy('goodeath' + random(3) + '.wav', 180); } else { switch (big) { case 0: if (!trg.flyai && trg.s != 85) { } else { case 1: _root.soundy('Death_Burst_Small_' + random(3) + '.mp', 100); break; case 2: case 3: if (trg.lasts || !trg.aboss) { _root.soundy('Death_Burst_Large_' + random(2) + '.mp', 80 + random(40)); } else { _root.soundy('Rocket_Blast_Death_1.wav'); } } } } } } function flya() { if (trg.specoz == 23) { f1 = [14.1, 18, 18, 18]; } else { f1 = [13, 13, 13, 13, 13, 13, 13, 14, 18, 18, 18]; } i = 0; while (i < 4 / (1 + ashut * 0.2)) { f0 = Math.random() * 6; create(trg.xp + crand(f0), trg.yp + crand(f0), 0, 0, 0, 0, f1[random(f1.length)]); if (trg.s == 67) { i -= 0.5; } if (trg.specoz == 23) { i -= 0.25; } ++i; } f1 = 8; } function gibs(v1, v2) { big = 1; f10 = 0; f1 = 10; if (trg.s == 25 && !trg.nobomb || trg.s == 55 && trg.alter != 1) { if (trg.eternal) { bomf.push([trg.xp, trg.yp, 6]); } else { bomf.push([trg.xp, trg.yp]); } } if (trg.s == 4 || trg.s == 45 || trg.s == 84) { f2 = 7; f1 = -1; } else { f2 = 8; } if (v1 > 0 && v2 > 0) { f1 = 5; } if (v1 <= 0 || v2 <= 0) { v1 = trg.xp; v2 = trg.yp; } f1 /= 1 + gibb * 0.1; i = 0; while (i < f1) { ++gibb; f10 = Math.random() * 4; f11 = trg.s == 100 || trg.s == 97 || trg.s == 98 || trg.s == 99 || trg.s == 20 || trg.s == 43 || trg.s == 36 || trg.s == 28 || trg.s == 49 || trg.s >= 62 && !trg.sic && trg.s != 73 && trg.s != 71 && trg.s != 77 && trg.s != 74 && trg.s < 85 || trg.s == 57 || trg.special || trg.minb; if (f11) { f10 *= 1.7; big = 2; } if (trg.s == 36 || trg.s == 19 || trg.s == 71 || trg.s == 74 || trg.s > 100) { big = 3; f10 *= 1.3; } var v1 = create(v1, v2, 0, crand(f10), crand(f10) * 0.5, 0, f2); if (f11 || trg.s == 19) { v1.ybew *= 1.4; v1.d._yscale = 100 + random(70); v1.d._xscale = v1.d._yscale; } else { if (trg.s == 36 || trg.s == 71 || trg.s == 74) { v1.d._yscale = 140 + random(80); v1.d._xscale = v1.d._yscale; } } if (trg.frezz > 0) { colorit(v1, 0.18, 0.22, 0.22, 60, 60, 60); } else { if (trg.poiss > 0 || trg.spl == 30) { colorit(v1, 0.2, 1, 0.2, 0, 70, 17); v1.spl = 30; } else { if (trg.specol) { f1 = trg.specol; colorit(v1, specol[f1][0], specol[f1][1], specol[f1][2], 0, 0, 0); } } } ++i; } } function bombfail(f1, f2, f3, f4) { var v1 = create(f1, f2, 0, 0, 0, 0, 4); v1.pois = f4; v1.dones = true; if (f3 == 6) { v1.dmg = 60; v1._yscale = 200; v1._xscale = 200; v1.d.gotoAndStop(2); v1.huge = true; return v1; } if (f3 == 5) { trg.mager = true; return v1; } if (f3 == 4) { v1.dmg = 30; v1._yscale = 113; v1._xscale = 113; v1.d.gotoAndStop(2); return v1; } if (f3) { v1.dfr = true; if (f4 == 4) { v1.d.gotoAndStop(6); } else { v1.d.gotoAndStop(5); } if (blackout == 2) { colorit(v1, 0, 0, 0, 0, 0, 0); } return v1; } v1.d.gotoAndStop(2); return v1; } function bomb(f1) { if (fra - lastbo >= 30 || f1) { if (f1) { if (f1 != 2) { } } else { if (_root.bombs > 0) { --_root.bombs; } else { return false; } } lastbo = fra; _root.soundy('Fetus_Land_' + random(2) + '.wav', 100); trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 4); trg2.dmg = 10; if (f1 == 4) { trg2.d.gotoAndStop(7); trg2.dec = true; } if (f1 && f1 != 2 || ups[106]) { trg2.dmg += 50; trg2._yscale = 123; trg2._xscale = 123; trg2.col = 4; if (ups[140]) { } } if (ups[140]) { trg2.header = 130; trg2.col = 6; } ++_root.so.data.bomb; return trg2; } } function killshit(v2, v3) { if (levz[v2] > 1 && levz[v2] < 1.8) { trg2 = this['de' + v2]; if (!trg2.gold || random(3) == 0) { levz[v2] -= 0.13; if (trg2._currentframe == 6) { trg2.gotoAndStop(2); } else { trg2.nextFrame(); } if (v3 && levz[v2] > 1 && !trg2.gold) { levz[v2] -= 0.13; trg2.nextFrame(); } if ((random(3) == 0 || v3 > 5) && !trg2.gold) { levz[v2] -= 0.13; trg2.nextFrame(); } if (trg2.nam == 'breakblock' && random(3) == 0 || v3 > 7) { levz[v2] -= 0.13; trg2.nextFrame(); } if (trg2._currentframe == 6 && levz[v2] < 1.1) { trg2.gotoAndStop(5); } if (levz[v2] <= 1) { trg2.dones = true; switch (trg2.nam) { case 'locktile': trg2.gotoAndStop(2); break; case 'breakblock': case 'breakblock2': case 'breakblock3': if (!trg2.cent) { ++_root.so.data.shits; if (_root.so.data.shits > 50) { _root.locker[46] = true; } } _root.soundy('plop.wav', 100); trg2.gotoAndStop(5); break; case 'fireblock': case 'fireblock2': _root.soundy('steam_halfsec.wav', 85); trg2.gotoAndStop(5); } if (trg2.xp == undefined) { trg2.xp = trg2._x; trg2.yp = trg2._y; } if (trg2.gold) { chestopen = trg2; } else { if (trg2.nam == 'breakblock2') { trg2.fra = fra + 120; shiz.push(trg2); } else { if (Math.random() < 0.1 && (!trg2.cent || random(5) == 0) && !trg2.egg && !v3) { if (Math.random() < 0.25 || trg2.cent) { f0 = 5; } else { f0 = 5.02; } create(trg2.xp, trg2.yp, 0, 0, 0, 0, f0); } } } levz[v2] = 0.9; clevc[v2] = 0; if (trg2.egg) { bomf.push([trg2.xp, trg2.yp]); } cloo(); } _root.levsav[_root.lev][trg2.savv] = trg2._currentframe; cloo(); return true; } } else { return false; } } function moveon() { if (_root.chaps == 11 && _root.lev == _root.bossl) { } _root.aloc(); _root.lastl = _root.lev; _root.mapa._visible = false; _root.hud._visible = false; onEnterFrame = undefined; } function getf() { if (Math.abs(xenf) > Math.abs(yenf)) { if (xenf > 0) { f1 = 2; } else { f1 = 1; } } else { if (yenf < 0) { f1 = 4; } else { f1 = 3; } } if (altboss && trg.s == 19) { f1 += 4; } } function bosssp() { if (!trg.firsttx && !nobob) { nobob = true; trg.firsttx = true; if (_root.chaps == 6 && _root.lev != _root.bossl2) { sams(); if (_root.samer > 1) { _root.locker[88] = true; } } if ((_root.chaps < 8 || _root.chaps == 8 && _root.double && _root.lev == _root.bossl2) && (_root.chaps != 6 || _root.locker[4] && (_root.chala > 4 || _root.chala == 0))) { if (_root.lev != _root.bossl2) { create(320, 200, 0, 0, 0, 0, 5.09); } create(320, 360, 0, 0, 0, 0, 5.1); f1 = ingrid(320, 200); bloww(f1); f1 = ingrid(320, 360); bloww(f1); } else { if (_root.chaps == 9 || _root.chala < 9) { f1 = _root.lox[_root.chala]; if (f1 > 0) { _root.locker[f1] = true; } } if (_root.chaps == 6) { } else { if (_root.chaps == 11) { f10 = [91, 92, 96, 93, 97, 94, 95]; _root.locker[f10[_root.skiner]] = true; _root.locker[75] = true; if (_root.hardmode) { _root.locker[103] = true; f10 = [106, 108, 109, 107, 112, 110, 111]; _root.locker[f10[_root.skiner]] = true; if (_root.locker[106] && _root.locker[107] && _root.locker[108] && _root.locker[109] && _root.locker[110] && _root.locker[111] && _root.locker[112]) { _root.locker[104] = true; } } } else { if (_root.chaps == 9) { if (_root.altchap) { f10 = [65, 66, 67, 68, 70, 69, 72]; _root.locker[f10[_root.skiner]] = true; if (_root.so.data.icer++ >= 5) { _root.locker[74] = true; } if (trixx(47)) { } if (_root.hardmode) { _root.locker[101] = true; } } else { if (_root.hardmode) { _root.locker[100] = true; } f10 = [55, 59, 60, 63, 62, 61, 73]; _root.locker[f10[_root.skiner]] = true; } } else { if (_root.lev != _root.bossl2) { if (_root.hardmode) { _root.locker[102] = true; } _root.locker[3] = true; if (_root.skiner == 5) { _root.locker[58] = true; } else { if (_root.skiner == 4) { _root.locker[38] = true; } else { if (_root.skiner == 6) { _root.locker[71] = true; } else { if (_root.skiner >= 1) { _root.locker[25 + _root.skiner] = true; } } } } } } } if (_root.lev != _root.bossl2) { ++_root.so.data.wins; if (_root.so.data.wins > 10 && _root.chaps < 9) { if (_root.chala == 9) { create(320, 280, 0, 0, 0, 0, 5.09); } else { if (_root.chala == 10) { create(320, 280, 0, 0, 0, 0, 5.34); } else { create(280, 280, 0, 0, 0, 0, 5.09); create(360, 280, 0, 0, 0, 0, 5.34); } } } else { create(320, 280, 0, 0, 0, 0, 5.34); } if (_root.so.data.wins > 15) { _root.locker[89] = true; } } } } if (_root.lev == _root.bossl) { if (_root.chaps == 2 || _root.chaps == 4 || _root.chaps == 6 || _root.chaps == 8) { if (_root.nodmg) { _root.locker[48 + _root.chaps / 2] = true; } _root.nodmg = true; if (_root.chaps == 6 && _root.locker[74]) { poli = true; create(200, 300, 0, 0, 0, 0, 5.35); } } } ++_root.lcomp[_root.chaps]; _root.bossk[_root.bosss] = true; if (_root.bosss >= 9 && _root.bosss <= 12 || _root.bosss == 22) { ++_root.horsedown; } if (_root.bossk[1] && _root.bossk[2] && _root.bossk[13] && _root.bossk[17]) { _root.locker[19] = true; } if (_root.bossk[3] && _root.bossk[4] && _root.bossk[14] && _root.bossk[18]) { _root.locker[20] = true; } if (_root.bossk[5] && _root.bossk[6] && _root.bossk[15]) { _root.locker[21] = true; } if (_root.bossk[9] && _root.bossk[10] && _root.bossk[11] && _root.bossk[12] && _root.horsedown >= 4) { _root.locker[25] = true; } if (_root.chaps == 2) { _root.locker[13] = true; } if (_root.chaps == 4) { _root.locker[14] = true; } if (_root.lcomp[2] >= 25) { _root.locker[22] = true; } if (_root.lcomp[4] >= 20) { _root.locker[23] = true; } if (_root.lcomp[6] >= 15) { _root.locker[24] = true; } } } function firr(trg) { var v3 = ups[6] * 1.5 + (ups[32] + ups[80] + ups[1] + ups[120]) * 0.7 + (ups[196] + ups[59] - ups[182] * 2.3) * 0.4 + (ups[101] + ups[90] + ups[189]) * 0.2; if (ups[120]) { ++v3; } if (_root.skiner == 6) { v3 -= 0.25; } f1 = Math.sqrt(Math.max(0, 1 + v3 * 1.3)); trg.fire = Math.max(5, 16 - f1 * 6 - Math.min(v3, 0) * 6); if (ups[69]) { trg.fire *= 0.8; } if (ups[2]) { trg.fire *= 2.1; trg.fire += 3; } if (trixx(39)) { trg.fire -= 2; } if (trg == player) { _root.firra = trg.fire; } } function bossfire(f10, f9, f11, f12, f13) { f1 = trg.xp; f2 = trg.yp; f3 = 10; if (f11 <= 0) { f11 = 0; } if (helpss > 1 && trg.s == 20) { f10 *= 0.6; } if (helpss > 2 && trg.s == 20) { f10 *= 0.8; } if (trg.specoz == 23 && trg.s == 20) { f10 *= 0.7; } i = 0; while (i < f10) { if (f9) { yenf = 0; xenf = 0; if (f12 != 0 || f12 == undefined) { xenf = trg.xp - player.xp; } if (f13 != 0 || f13 == undefined) { yenf = trg.yp - player.yp; } if (f13) { if (f13 * yenf > 0) { yenf = 0; } yenf *= Math.abs(f13); } if (f12) { if (f12 * xenf > 0) { xenf = 0; } xenf *= Math.abs(f12); } enf = enfget(xenf, yenf); enf = -7 / enf; xenf *= enf; yenf *= enf; f14 = Math.random() * 3.5; if (trg.worm && f10 == 1) { f14 *= 3; } xenf += crand(f14); yenf += crand(); } else { xenf = crand(7); yenf = crand(); } f0 = Math.random() * 6; trg2 = create(trg.xp, trg.yp, 0, xenf, yenf, 0, 9, trg.s); trg2.fd = 0.32 + f11 * 0.1; trg2.dm = -random(30) * 0.8 + 5 - f11; trg2.d._yscale = 90 + random(2) * 40 + Math.random() * 5; trg2.d._xscale = trg2.d._yscale; if (trg.s == 62) { trg2.dy -= 50; } if (trg.s == 102) { if (trg.state == 2) { trg2.dy -= 40; } } if (trg.s == 102 || trg.minb == 3) { if (random(10) == 0 && altboss || trg.minb == 3) { trg2.hom = true; colorit(trg2, 0.8, 1, 2.5, 0, 0, 0); trg2._xscale *= 1.2; trg2._yscale *= 1.2; if (trg.minb == 3) { trg.fd -= 1; } if (trg.s == 46 && trg.specoz == 23) { trg2.longshot = true; trg2.fd = 0.32; trg2.dm = -4; } } else { var v3 = new flash.geom.Transform(trg2); v3.colorTransform = bull; } } ++i; } return trg2; } function newstart(f1, f22) { if (f1) { _root.hp = 100; newstats(); _root.newstartt = true; } else { _root.getup = true; if (_root.chaps != 11) { ++_root.chaps; } if (!f22) { _root.cuts = true; } } _root.levz = undefined; _root.door = -1; _root.playery = 0; _root.playerx = 0; moveon(); _root.gotoAndStop('reset'); } function plff() { plox = Math.max(7, plox); if (ups[69] || ups[118] && (xenf != 0 || yenf != 0)) { chax = xenf; chay = yenf; if (chaf == undefined) { chaf = fra + Math.max(0, _root.firra - 10) * 4; lchaf = chaf; } } if (xenf != 0 || yenf != 0) { xxenf = xenf; yyenf = yenf; } if (ups[152]) { trg.xpp = xenf; trg.ypp = yenf; b1 = fra % 3 == 0; lasershow(trg, 5, b1); if (b1) { trg.lass = lass; trg.lfrr = fra; llss = true; xenf = trg.xpp; yenf = trg.ypp; secol *= 0.8; secol += 0.2; } } if (ups[152] && (sob == -1 || _root.hat[11]) && trg.fire < 0) { secol += 1; firr(trg); sob = 1; } if (trg.fire < 0 && (!ups[69] && !ups[118] || chaz || _root.bombnext) && unic <= 0 && (xenf != 0 || yenf != 0)) { firr(trg); if (ups[118] && !_root.bombnext) { trg.fire = 20; f11 = true; trg.xpp = xenf; trg.ypp = yenf; trg.xbew *= 0.7; trg.ybew *= 0.7; } else { f11 = ups[68] && !_root.bombnext && !ups[52]; if (f11) { trg.xpp = xenf; trg.ypp = yenf; trg.d.d.d.d.d.gotoAndStop(plo); lasershow(trg, true); _root.soundy('RedLightning_Zap_' + random(3) + '.mp', 60); llss = true; xenf = trg.xpp; yenf = trg.ypp; } else { llss = false; } } enf = enfget(xenf, yenf); enf = 10 / enf; xenf *= enf; yenf *= enf; xxenf = xenf; yyenf = yenf; xenf += trg.xbew * 0.6; yenf += trg.ybew * 0.6; enf = enfget(xenf, yenf); if (enf < 10) { enf = 10 / enf; xenf *= enf; yenf *= enf; } if (sob == 1 && !_root.hat[11]) { sob = -1; } else { sob = 1; } v1 = 0.3 + Math.random() * 0.2; if (ups[2]) { v1 = 0.8; sob = 1; } f1 = trg.xp - yenf * sob * v1; f2 = trg.yp + xenf * sob * v1; if (!llss) { _root.soundy('Tears_Fire_' + random(3) + '.mp'); } if (ups[55] && (random(2) == 0 || ups[2]) || ups[87] && random(8) == 0) { var v4 = trg.xp; var v3 = trg.yp; create(v4, v3, 0, -xxenf, -yyenf, 0, 2); if (ups[87]) { create(v4, v3, 0, -yyenf, xxenf, 0, 2); create(v4, v3, 0, yyenf, -xxenf, 0, 2); } } if (ups[168] && !_root.bombnext) { trg.fire = -1; if (bombdrop <= 0) { bombdrop = 30; drop = create(player.xp, player.yp, 0, 0, 0, 0, 37); drop.d.gotoAndStop(70); } } else { if (!f11) { var v2 = create(f1, f2, 0, xenf, yenf, 0, 2); if (ups[52] && !_root.bombnext) { trg.fire *= 3; trg.fire += 10; enf = 14 / enfget(v2.xbew, v2.ybew); v2.xbew *= enf; v2.ybew *= enf; v2.s = 4; attach(v2, 4); v2.d.d.gotoAndPlay(30); v2.lfra = fra; v2.spl = -10; v2.flyby = false; v2.dmg *= 4; v2.playbomb = true; if (ups[106]) { v2.dmg += 50; v2._yscale = 123; v2._xscale = 123; if (ups[106]) { v2.col = 5; } } v2.dmg -= 40; } else { if (_root.bombnext) { if (v2 != player) { if (_root.bombnext == 2) { v2.flir = true; attach(v2, 497); enf = 14 / enfget(v2.xbew, v2.ybew); v2.xbew *= enf; v2.ybew *= enf; v2.s = 4; v2.spl = -10; v2.flyby = false; colorit(v2, 1, 1, 1, 0, 0, 0); } else { v2.bomb = true; attach(v2, 2); colorit(v2, 1, 1, 1, 0, 0, 0); v2.d.gotoAndStop('head'); v2.dy -= 10; v2.dm += 1.2; trg.d.d.d.gotoAndStop(29); } _root.bombnext = false; _root.itc = false; } } else { if (ups[2] || ups[149]) { if (ups[169] && ups[2] != 1 && !ups[153] || ups[149]) { v2.xp = player.xp; v2.yp = player.yp; if (ups[149]) { trg.fire * 2; trg.fire += 10; v2.bomb = true; v2.bombo = true; v2.d._yscale = 160; v2.d._xscale = 160; f1 = Math.random() * 0.2 + 0.7; v2.xbew *= f1; v2.ybew *= f1; v2.fd = 0.6; v2.dm *= 0.7; v2.dm -= 13; v2.dmg *= 2.5; v2.dmg -= 35; colorit(v2, 0.5, 0.9, 0.4, 0, 0, 0); if (ups[115]) { v2._alpha = 50; } } } else { if (ups[153]) { v2 = 0.07000000000000001; } else { v2 = 0.05; } v2.xbew -= yenf * v2; v2.ybew += xenf * v2; f1 = trg.xp + yenf * sob * v1; f2 = trg.yp - xenf * sob * v1; trg3 = create(f1, f2, 0, xenf + yenf * v2, yenf - xenf * v2, 0, 2); trg3.sot = v2; f1 = trg.xp + xenf; f2 = trg.yp + yenf; if (ups[153]) { v1 = 0.02; v2 = 0.32; trg3 = create(f1 + yenf * v2 * 1.5, f2 - xenf * v2, 0, xenf + yenf * v1, yenf - xenf * v1, 0, 2); trg3.sot = v2; trg3 = create(f1 - yenf * v2 * 1.5, f2 + xenf * v2, 0, xenf - yenf * v1, yenf + xenf * v1, 0, 2); trg3.sot = v2; } else { trg3 = create(f1, f2, 0, xenf, yenf, 0, 2); trg3.sot = v2; } } } } } } } plox = 7 + trg.fire * 0.45; if (ups[118]) { if (v2.bomb) { plo = 1; plox = 1; trg.d.d.d.d.gotoAndStop(1); } else { plox = 24; } } chaf = undefined; chaz = chaf; } else { if (trg.fire1 < 0) { trg.fire1 = 10; xenf = xxenf; yenf = yyenf; enf = enfget(xenf, yenf); enf = 10 / enf; xenf *= enf; yenf *= enf; xxenf = xenf; yyenf = yenf; xenf += trg.xbew * 0.6; yenf += trg.ybew * 0.6; enf = enfget(xenf, yenf); if (enf < 10) { enf = 10 / enf; xenf *= enf; yenf *= enf; } v1 = 0.3 + Math.random() * 0.2; if (ups[2]) { v1 = 0.8; sob = 1; } f1 = trg.xp; f2 = trg.yp; e = 0; while (e < folz.length) { var v2 = folz[e]; if (fra - v2.lfra > trg.fire1 + 3 && !v2.cat && !v2.mon && !v2.hol && !v2.ni && !v2.bum) { if (v2.maga) { v2.outway = false; v2.charge = true; v2.xbew = xenf; v2.ybew = yenf; v2.xp = player.xp; v2.yp = player.yp; if (Math.abs(xenf) > Math.abs(yenf)) { sideflip(xenf, v2.d); v2.d.gotoAndStop(35); } else { if (yenf < 0) { v2.d.gotoAndStop(36); } else { v2.d.gotoAndStop(37); } } v2.lfra = fra + 80; v2.dmg = 3.5; } else { if (v2.baa != 5) { v2.d.gotoAndStop(plo + 4); v2.lfra = fra; if (v2.laser) { v2.d.gotoAndStop(plo + 45); f1 = 1 / enfget(xenf, yenf); v2.xpp = xenf * f1; v2.ypp = yenf * f1; lassd = 3; lasershow(v2, 2); _root.soundy('RedLightning_Zap_' + random(3) + '.mp', 60); } else { if (!llss) { _root.soundy('Tears_Fire_' + random(3) + '.mp'); } if (v2.dou) { babymode = 2; } else { if (v2.baa > 1) { babymode = v2.baa; } else { babymode = 1; } } if (babymode == 8) { f1 = [1, 2, 3, 4, 5, 6, 7]; babymode = f1[random(f1.length)]; } f1 = v2.xp; f2 = v2.yp; f10 = doub; doub = v2.dou; if (babymode == 7) { f3 = 0.2; var trg3 = create(f1, f2, 0, xenf + yenf * f3, yenf - xenf * f3, 0, 2); trg3.d._xscale *= 0.8; trg3.d._yscale *= 0.8; babymode = 7; f3 = -f3; trg3 = create(f1, f2, 0, xenf + yenf * f3, yenf - xenf * f3, 0, 2); trg3.d._xscale *= 0.8; trg3.d._yscale *= 0.8; } else { var trg3 = create(f1, f2, 0, xenf, yenf, 0, 2); trg3.d._xscale *= 0.8; trg3.d._yscale *= 0.8; if (v2.baa == 9) { trg3.xbew *= -1; trg3.ybew *= -1; } } if (v2.baa == 11) { v2.d.gotoAndStop(plo + 156); } else { if (v2.baa == 10) { v2.d.gotoAndStop(plo + 165); } else { if (v2.baa == 9) { v2.d.gotoAndStop(plo + 142); } else { if (v2.baa == 8) { v2.d.gotoAndStop(plo + 120); } else { if (v2.baa == 7) { v2.d.gotoAndStop(plo + 111); } else { if (v2.baa == 6) { v2.d.gotoAndStop(plo + 102); } else { if (v2.baa == 4) { v2.d.gotoAndStop(plo + 68); } else { if (v2.baa == 3) { v2.d.gotoAndStop(plo + 59); } else { if (v2.meat) { v2.d.gotoAndStop(plo + 27); } else { if (v2.dou) { v2.d.gotoAndStop(plo + 13); } } } } } } } } } } doub = f10; } if (!ups[52]) { ++e; } } } } ++e; } plox1 = 7 + trg.fire1 * 0.45; } } if (plox > 8 || _root.fmode == 7 && !ups[68] && !ups[118]) { if (ups[68] && ups[59]) { trg.d.d.d.d.gotoAndStop(plo + 8); } else { trg.d.d.d.d.gotoAndStop(plo + 4); } } else { trg.d.d.d.d.gotoAndStop(plo); } } function chaxx() { f1 = 1; if (Math.abs(xenf) > Math.abs(yenf)) { yenf = 0; if (xenf < 0) { xenf = f1; } else { xenf = -f1; } trg.xpp = xenf; trg.ypp = yenf; return true; } xenf = 0; if (yenf < 0) { yenf = f1; trg.xpp = xenf; trg.ypp = yenf; return true; } yenf = -f1; trg.xpp = xenf; trg.ypp = yenf; return true; } function chaxy() { outgrid(trg.til); f3 = xenf; f4 = yenf; f5 = random(8); f1 = player.xp + player.xbew * f5; f2 = player.yp + player.ybew * f5; } function chaa(f9) { chaxy(); if (enfcheckx(f3, f4, f1, f2, 200)) { if (f9 == 2) { f3 = true; } else { if (!f9) { f3 = linecheck(f3, f4, f1, f2); } else { f3 = linecheckxx(f3, f4, f1, f2); } } if (f3) { return chaxx(); } } } function eyefly() { trg.xbew *= 0.7; trg.ybew *= 0.7; v1 = 1; if (trg.xbew > 0) { trg.xbew += v1; } else { trg.xbew -= v1; } if (trg.ybew > 0) { trg.ybew += v1; } else { trg.ybew -= v1; } v1 = 3; if (trg.xp > 580) { trg.xbew -= v1; } if (trg.xp < 60) { trg.xbew += v1; } if (trg.yp > 410) { trg.ybew -= v1; } if (trg.yp < 170) { trg.ybew += v1; } } function friends() { trg.damger = trg.s == 3 && (trg.alt && trg.fly || trg.meat || trg.charge || trg.ang || trg.bird || trg.bluf || trg.eye || trg.ni || trg.hairb || trg.dad); trg.ggh = true; colorit(trg, 1, 1, 1, 0, 0, 0); trg.dou = false; if (trg.meat && trg.meat != 5) { if (trg.me2) { trg.meat = Math.min(4, ups[73] - 4); } else { trg.meat = Math.min(4, ups[73]); } } if (trg.stopi) { } else { if (trg.hairb) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000); f1 = 15 + _root.hairb * 2; enf = (Math.min(1.4, f1 - enf) / enf) * 0.07000000000000001; trg.xbew += xenf * enf; trg.ybew += yenf * enf; f1 = 0.87 + _root.hairb * 0.01; if (trg.d._currentframe != 149 || trg.d.d._currentframe == trg.d.d._totalframes) { trg.d.gotoAndStop(148); trg.d.d.gotoAndStop(_root.hairb); } else { trg.d.d.nextFrame(); trg.d.d.d.gotoAndStop(_root.hairb); } trg.xbew *= f1; trg.ybew *= f1; trg.dmg = 3 + _root.hairb * 2; if (fra % 14 == 0) { trg.hh = []; } } else { if (trg.eye) { if (random(4) == 0) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.3 + 0.1); } trg.dmg = 8; if (fra % 14 == 0) { trg.hh = []; } trg.d.gotoAndStop(130); eyefly(); } else { if (trg.meat > 2 || trg.bird || trg.bluf || trg.bum && ashut == 0 || trg.dad) { if (trg.bluf && trg.trg2 == undefined) { trg.trg2 = player; } if (random(4) == 0 && !trg.bird && !trg.bluf && !trg.bum && !trg.dad) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.3 + 0.1); } trg.ggh = false; if (fra % 14 == 0) { trg.hh = []; } if (trg.bird || trg.meat > 2) { if (trg.trg2 == player) { if (ablufer && random(3) == 0) { trg.trg2 = ablufer; } } } if (trg.bum) { if (trg.d._currentframe != 135) { trg.d.gotoAndStop(134); } } else { if (trg.bluf) { trg.ggh = true; if (fra10 || trg.bluf != 2) { trg.bluf = 2; trg.dmg = 1.2 * dmgdo() + 3; } f12 = fra * 0.03; if (ups[112]) { f12 *= 2; } f11 = (f12 + (blub / Math.max(1, ablub)) * 2) * Math.PI; if (trg.trg2.xp <= -100 || trg2.s < 10) { trg.trg2 = player; } if (trg.trg2 == player && f11 > -100) { if (fra2) { f1 = 1; if (ablub > 4) { f1 = 1 + (ablub - 4) * 0.1; } trg.xpp = player.xp + Math.sin(f11) * 35 * f1; trg.ypp = player.yp + Math.cos(f11) * 30 * f1; } if (ablufer && random(3) == 0) { trg.trg2 = ablufer; } } else { if (trg.trg2 != undefined) { trg2 = trg.trg2; trg.xpp = trg2.xp; trg.ypp = trg2.yp; } else { trg.xpp = trg.xp; trg.ypp = trg.yp; } } if (trg.trg2 == undefined) { trg.trg2 = player; } else {} ++blub; ++blufb; trg.d.gotoAndStop(128); } else { if (trg.dad) { trg.ggh = true; trg.dmg = 20; trg.d.gotoAndStop(151); if (trg.d.d._currentframe != 1) { trg.d.d.nextFrame(); } if (trg.d.d._currentframe >= 37) { trg.d.d.gotoAndStop(1); } trg.bh = trg.d.d._currentframe > 10 && trg.d.d._currentframe < 33; if (trg.bh) { trg.fire = 100; } } else { if (trg.bird) { trg.ggh = true; trg.dmg = 2; if (trg.bird == 2) { trg.d.gotoAndStop(171); } else { trg.d.gotoAndStop(83); } } else { if (trg.meat == 5) { trg.dmg = 7; if (sk == 5) { trg.d.gotoAndStop(80); } else { if (sk == 7) { trg.d.gotoAndStop(81); } else { trg.d.gotoAndStop(79); } } trg.sp = _root.playsp * 2; } else { if (trg.meat > 3) { trg._yscale = 143; trg._xscale = 143; trg.dmg = 5.5; trg.sp = 2.2; trg.d.gotoAndStop(54); } else { trg.dmg = 3.5; trg.sp = 1.8; trg.d.gotoAndStop(54); } } } } } } trg.outway = false; if (trg.trg2.dones) { trg.trg2 = player; trg.fire = 50 - trg.dmg * 5; } if (trg.trg2 == undefined || trg.trg2 == mheart && !trg.trg2.bh) { trg.trg2 = player; trg.fire = 5; } trg2 = trg.trg2; if (trg2 == player) { f1 = 80; } else { f1 = 20; } --trg.fire; if (trg.bluf) { trg.bh = fra3; if (fra2) { if (trg.bluf) { xenf = trg.xpp - trg.xp; yenf = trg.ypp - trg.yp; } enf = enfget(xenf, yenf); enf = (Math.min(2, enf * 0.15) / enf) * 2; xenf *= enf; yenf *= enf; trg.xbew += xenf; trg.ybew += yenf; } } else { if (fra % 3 == 0 || trg.whaf == undefined) { trg.whaf = !enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, f1) && trg.fire <= 0; } if (trg.whaf) { if (trg.bird || trg.bum || trg.dad) { xenf = trg2.xp - trg.xp; yenf = trg2.yp - trg.yp; enf = enfget(xenf, yenf); if (trg.dad && enf < 30 && trg2 != player) { if (trg.d.d._currentframe == 1) { trg.d.d.nextFrame(); trg.stomps = random(3) + 1; } } if (trg.dad) { xenf += trg2.xbew * 5 - trg.xbew * 5; yenf += trg2.ybew * 5 - trg.ybew * 5; enf = enfget(xenf, yenf); } enf = 1 / enf; xenf *= enf; yenf *= enf; trg.xbew += xenf; trg.ybew += yenf; } else { pathfind(trg, trg2.xp, trg2.yp, trg.sp); } } } if (!trg.bluf && !trg.dad && trg.d._currentframe != 135) { if (enfget(trg.xbew, trg.ybew) > 2) { trg.d.d.gotoAndStop(2); sideflip(trg.xbew, trg); trg.d.d.he.gotoAndStop(5); } else { trg.d.d.he.gotoAndStop(1); trg.d.d.gotoAndStop(1); } } if (trg.d._currentframe == 135) { trg.d.d.nextFrame(); if (trg.d.d._currentframe == 10) { emo(); _root.ups[144] -= 3 + random(2); f2 = 5.1022 + random(5) * 0.0001; if (random(2) == 0) { if (random(3) == 0) { f2 = 5; } else { f2 = 5.03 + random(2) * 0.01; } } else { if (random(3) != 0) { if (random(2) == 0) { f2 = 5.07; } else { f2 = 5.3; } } else { f2 = 5.35; } } spaw(trg.xp * 0.5 + player.xp * 0.5, trg.yp * 0.5 + player.yp * 0.5, 0, f2); } if (trg.d.d._currentframe == trg.d.d._totalframes) { trg.d.gotoAndStop(134); } } if (trg.bum) { if (fra5) { f13 = 200; f6 = trg.xp; f7 = trg.yp; f2 = 0; for (z in ball) { trg2 = ball[z]; if (trg2.s == 5) { if (!trg2.dones && trg2.d._currentframe == 2) { f12 = enfcheck(trg2.xp, trg2.yp, f6, f7, f13); if (f12 < f13) { f13 = f12; f2 = trg2; } } } } if (f13 == 200 || f2.s != 5) { trg.trg2 = player; } if (f2 && trg.trg2 != f2) { trg.fire = 5; trg.trg2 = f2; } if (f13 < 30 && trg2 != trg) { trg2 = trg.trg2; _root.ups[144] += coincol(trg2); trg2.d.d.gotoAndStop(2); trg2.dones = true; } if (trg2 == player) { f12 = enfcheck(trg2.xp, trg2.yp, f6, f7, 100); if (f12 < 80) { if (_root.ups[144] > 5) { trg.d.gotoAndStop(135); } } } } } else { if (fra10 || !trg.bluf && fra2) { if (ashut > 0 && (trg2 == player || trg.fire < 200) && (fra + trg.e) % 13 == 0) { f2 = false; if (random(2) == 0) { f6 = player.xp; f7 = player.yp; } else { f6 = trg.xp; f7 = trg.yp; } f13 = 225 + trg.dmg * 25; if (trg.bluf) { f13 = 300; } for (z in ball) { trg2 = ball[z]; if (trg2.s > 9 && !trg2.dones) { if (enfcheck(trg2.xp, trg2.yp, f6, f7, f13)) { if (trg2.pow >= 3 || trg2.bh) { f2 = trg2; blufer = f2; } } } } if (f2 && trg.trg2 != f2) { trg.fire = 5; trg.trg2 = f2; } } } } if (trg.dad && trg.bh) { trg.xbew *= 0.5; trg.ybew *= 0.5; } else { if (trg.bird || trg.dad) { trg.xbew *= 0.9; trg.ybew *= 0.9; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } } } else { if (trg.maga && trg.charge) { if (mhity(trg.xp + trg.xbew, trg.yp + trg.ybew) || trg.charge > 1) { killshit(ingrid(trg.xp, trg.yp)); if (trg.charge > 1) { ++trg.charge; } else { trg.charge = 2; } trg.xbew *= 0.5; trg.ybew *= 0.5; if (trg.charge > 10) { trg.charge = false; } } } else { if (trg.fly || trg.meat || trg.ang || trg.ni) { f1 = player.xp - 2; f2 = player.yp - 4; if (trg.alt) { if (fra2) { trg.hh = []; } if (trg.alt == 2) { trg.d.gotoAndStop(128); trg.dmg = 2; f11 = fra * 0.013 * Math.PI; if (ups[112]) { f11 *= 1.5; } trg.xp = f1 + Math.sin(f11) * 110; trg.yp = f2 + Math.cos(f11) * 90; } else { trg.d.gotoAndStop(21); trg.dmg = 5; f11 = -fra * 0.02 * Math.PI; if (ups[112]) { f11 *= 1.5; } trg.xp = f1 + Math.sin(f11) * 60; trg.yp = f2 + Math.cos(f11) * 45; } } else { if (trg.ni) { trg.d.gotoAndStop(132); trg.dmg = 15; if (fra % 6 == 0) { trg.hh = []; } } else { if (trg.ang) { trg.dmg = 7; if (fra % 18 == 0) { trg.hh = []; } trg.d.gotoAndStop(97); } else { if (trg.meat) { trg.dmg = 7; if (fra % 18 == 0) { trg.hh = []; } if (trg.meat <= 1) { trg.d.gotoAndStop(22); } else { f11 += 11; trg.dou = true; if (trg.lfra + 4 < fra) { trg.d.gotoAndStop(plo + 23); } folz.push(trg); } } else { trg.d.gotoAndStop(20); } } } flys.push(e); f12 = fra * 0.03; if (ups[112]) { f12 *= 2; } f11 = (f12 + ffly * fll) * Math.PI; trg.xp = f1 + Math.sin(f11) * 25; trg.yp = f2 + Math.cos(f11) * 20; if (trg.fly) { lff = trg; } if (trg.bluf) { } else { ++ffly; if (ffly > 3) { lff.done = true; } } } trg.xbew *= 0.8; trg.ybew *= 0.8; } else { trg.outway = true; f1 = (follow == player || follow.maga || follow.dou || follow.ba || follow.hol || follow.ggho) && !trg.maga && !trg.bum && !trg.hol && !trg.cat && !trg.mon; trg.baa = 0; if (f1) { trg.baa = 0; var f11 = lastbb; if (trg.ggho && trg.ggho != 2 && lastbbb != 11 && lastbb != 11) { trg.baa = 11; lastbb = 11; } else { if (trg.ggho == 2 && trg.ggho != true && lastbbb != 10 && lastbb != 10) { trg.baa = 10; lastbb = 10; } else { if (ups[188] && lastbbb != 9 && lastbb != 9) { trg.baa = 9; lastbb = 9; } else { if (ups[95] && lastbbb != 2 && lastbb != 2) { trg.baa = 2; lastbb = 2; } else { if (ups[67] && lastbbb != 1 && lastbb != 1) { trg.baa = 1; lastbb = 1; } else { if (ups[163] && lastbbb != 6 && lastbb != 6) { trg.baa = 6; lastbb = 6; } else { if (ups[167] && lastbbb != 7 && lastbb != 7) { trg.baa = 7; lastbb = 7; } else { if (ups[174] && lastbbb != 8 && lastbb != 8) { trg.baa = 8; lastbb = 8; } else { if (ups[99] && lastbbb != 3 && lastbb != 3) { trg.baa = 3; lastbb = 3; } else { if (ups[113] && lastbbb != 5 && lastbb != 5) { trg.baa = 5; lastbb = 5; } else { if (ups[100] && lastbbb != 4 && lastbb != 4) { trg.baa = 4; lastbb = 4; } } } } } } } } } } } lastbbb = f11; } trg.laser = trg.baa == 2; trg.dou = trg.baa == 1; f1 = follow.xp; f2 = follow.yp; if (trg.baa == 9) { f1 = 640 - player.xp; f2 = 580 - player.yp; } if (trg.baa == 11) { eyefly(); } else { enfcheck(trg.xp, trg.yp, f1, f2, 100000); f1 = 20; f2 = enf < 75; if (enf > f1) { enf = ((enf - f1) / enf) * 0.1; trg.xp -= xenf * enf; trg.yp -= yenf * enf; } } if (!trg.maga || f2) { folz.push(trg); } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } if (trg.baa != 9) { trg2 = follow; follow = trg; } if (trg.bum) { if (trg.d._currentframe != 135) { trg.d.gotoAndStop(134); } sideflip(trg2.xp - trg.xp); } else { if (trg.hol) { trg.d.gotoAndStop(126); } else { if (trg.maga) { trg.d.gotoAndStop(34); } else { if (trg.cat) { if (trg.cat == 2) { trg.d.gotoAndStop(77); } else { trg.d.gotoAndStop(33); } } else { if (trg.mon) { if (trg.mon == 4) { trg.d.gotoAndStop(95); } else { if (trg.mon == 3) { trg.d.gotoAndStop(75); } else { if (trg.mon == 2) { trg.d.gotoAndStop(52); } else { trg.d.gotoAndStop(40); } } } if (trg.d.d._currentframe > 1 || _root.monbb >= 1) { trg.d.d.nextFrame(); if (trg.d.d._currentframe == 4) { _root.monbb = 0; switch (trg.mon) { case 4: f1 = 5.04; break; case 3: f1 = 5.010000003; break; case 2: f1 = 5.010000002; _root.soundy('kiss_lips1.wav'); break; case 1: f1 = 5.02; } trg2 = spaw(trg.xp, trg.yp, 0, f1); if (trg.mon > 1 && trg.mon < 4) { trg2.col = trg.mon; } } } } else { trg.ba = true; if (trg.lfra + 4 < fra) { if (trg.baa == 5) { if (trg.plo == undefined) { trg.plo = 1; } trg.d.gotoAndStop(trg.plo + 84); if (fra % 10 == 0) { f2 = false; for (z in ball) { trg2 = ball[z]; if (trg2.s > 9 && !trg2.dones) { if (enfcheck(trg2.xp, trg2.yp, trg.xp, trg.yp, 150)) { if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { if (trg2.bh) { f2 = trg2; } } } } } if (f2 && trg.trg2 != f2) { trg.trg2 = f2; trg2 = trg.trg2; } else { trg2 = trg.trg2; } if (trg2 == player || trg2.dones) { trg.trg2 = undefined; trg2 = trg.trg2; } if (!f2) { if (!linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { trg.trg2 = undefined; trg2 = trg.trg2; } } if (trg2) { xenf = trg.xp - trg2.xp; yenf = trg.yp - trg2.yp; enf = enfget(xenf, yenf); enf = 8 / enf; xenf *= enf; yenf *= enf; babymode = 5; if (Math.abs(xenf) > Math.abs(yenf)) { if (xenf < 0) { trg.plo = 2; } else { trg.plo = 4; } } else { if (yenf > 0) { trg.plo = 3; } else { trg.plo = 1; } } trg.d.gotoAndStop(trg.plo + 88); trg2 = create(trg.xp, trg.yp, 0, -xenf, -yenf, 0, 2); } else { trg.plo = 1; } } } else { if (trg.baa == 11) { trg.d.gotoAndStop(plo + 152); } else { if (trg.baa == 10) { trg.d.gotoAndStop(plo + 161); } else { if (trg.baa == 9) { trg.d.gotoAndStop(plo + 138); } else { if (trg.baa == 8) { trg.d.gotoAndStop(plo + 116); } else { if (trg.baa == 7) { trg.d.gotoAndStop(plo + 107); } else { if (trg.baa == 6) { trg.d.gotoAndStop(plo + 98); } else { if (trg.baa == 4) { trg.d.gotoAndStop(plo + 64); } else { if (trg.baa == 3) { trg.d.gotoAndStop(plo + 55); } else { if (trg.laser) { trg.d.gotoAndStop(plo + 41); } else { if (trg.dou) { trg.d.gotoAndStop(plo + 9); } else { trg.d.gotoAndStop(plo); } } } } } } } } } } } } } } } } } trg.xbew *= 0.8; trg.ybew *= 0.8; } } } } } } } function slotf() { var v1 = 0; if (ups[46]) { v1 = 3 + random(18); } else { v1 = 3 + random(21); } if (v1 >= 9 && (random(10) != 0 || sloto)) { ++v1; } if (v1 == 7 && random(3) == 0) { v1 = 10; } return v1; } function sloty(f1) { switch (f1) { case 3: if (random(3) == 0) { _root.ups[10] += 0.5; ups[10] = _root.ups[10]; st22('Pretty Fly'); emo(); } else { f2 = 13; emo(true); } break; case 4: f2 = 5.04; break; case 5: case 6: f2 = 5; break; case 10: case 11: case 12: f2 = 5.02; f12 = Math.max(1, random(3)); break; case 7: f2 = 5.03; break; case 8: f2 = 5.07; break; case 9: enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, f1); if (enf < f1) { enf = ((f1 - enf) / enf) * 0.4; player.xbew -= xenf * enf; player.ybew -= yenf * enf; } f2 = 5.1; trg.done = true; _root.soundy('boss1_explosions' + random(3) + '.wav', 80); break; default: if (sloto) { emo(true); } } } function actions2() { f2 = 0; f3 = fra % 3; if (f3 == 0) { f1 = 0.45; } else { if (f3 == 1) { f1 = 1; } else { f1 = 1.85; } } if (blackout == 2) { if (f1 == 1) { f2 = 30; } f1 *= 0.7; f1 -= 0.5; } bull = new flash.geom.ColorTransform(); bull.redMultiplier = f1; bull.greenMultiplier = f1; bull.blueMultiplier = f1; bull.redOffset = f2; bull.greenOffset = f2; bull.blueOffset = f2; if (isaaaac) { f1 = (f1 - 1) * 0.1; bull.redMultiplier = f1 + 0.8; bull.greenMultiplier = f1 + 6; bull.blueMultiplier = f1 + 7.4; bull.redOffset = f2 + 20; bull.greenOffset = f2 + 20; bull.blueOffset = f2 + 20; } bull2 = new flash.geom.ColorTransform(); if (fra2) { f3 = (fra % 6) / 2; if (f3 == 0) { f1 = 0.45; } else { if (f3 == 1) { f1 = 1; } else { f1 = 1.85; } } f1 = f1 * 0.2 + 0.85; if (blackout == 2) { f1 = 1; } bull2.redMultiplier = f1; bull2.greenMultiplier = f1; bull2.blueMultiplier = f1; bull2.redOffset = f2; bull2.greenOffset = f2; bull2.blueOffset = f2; } var v2 = new flash.geom.Transform(blorz); v2.colorTransform = bull2; magget = 0; momet = 0; wormet = 0; if (fra % 3 == 0) { for (e in levz) { if (levz[e] > 0 && levz[e] < 0.99) { levz[e] -= 0.1; if (levz[e] < 0) { levz[e] = 0; } } } } if (fra > 10) { _root.levit[_root.lev] = []; } ashut = shutdoor; shutdoor = 0; if (fra > 10) { _root.levcol[_root.lev] = 0; } follow = player; folz = []; ffly = 0; ablub = blub; blub = 0; _root.bluf = Math.min(blufb, 10); blufb = 0; if (fra > 40) { for (e in ref) { trg = ref[e]; if (trg._currentframe < 5) { if (trg._parent._currentframe == 1) { if (random(5) == 0) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 160); if (enf) { f1 = 20 / enf; if (linechecky(trg.xp - xenf * f1, trg.yp - yenf * f1, player.xp, player.yp)) { if (fiz++ > 5) { if (random(5) == 0) { trg._parent.nextFrame(); fiz = 0; } } } } } } else { trg._parent.nextFrame(); } if (trg._parent._currentframe == trg._parent._totalframes) { trg._parent.gotoAndStop(1); } } else { trg._parent.gotoAndStop(1); } if (trg._parent._currentframe == 3) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = enfget(xenf, yenf); enf = -5 / enf; xenf *= enf; yenf *= enf; create(trg.xp + xenf * 5, trg.yp + yenf * 5, 0, xenf, yenf, 0, 9); } } } if (anarch-- > 0) { if (anarch % 5 == 0) { trg2 = spaw(320, 280, random(300), 5.04); trg2.col = 3; if (analt == 5) { trg2.col = 5; trg2.dmg = 0; } else { if (analt) { attach(trg2, 502); trg2.s = 4; trg2.bolt = true; trg2.bh = false; if (analt >= 2) { trg2.friend = true; if (random(2) == 0 && analt == 2) { trg3 = ball[random(ball.length)]; if (trg3.s > 10) { trg2.xp = trg3.xp; trg2.yp = trg3.yp; } } } } } } } else { analt = false; } if (killa) { for (z in levz) { if (killshit(z)) { killshit(z); killshit(z); killshit(z); killshit(z); } } killa = false; } splaz = false; if (beamer++ > 0) { f2 = Math.max(0, 20 - beamer) / 20; f3 = (1 - f2) * 255; colorit(_root, f2, f2, f2, f3, f3, f3); if (beamer > 25) { _root.fade = true; colorit(_root, 1, 1, 1, 0, 0, 0); newstart(false, true); } } if (momdown-- > 0) { if (_root.chaps == 6) { f1 = Math.max(0, 1 - Math.abs(momdown - 50) / 40); f2 = 1 - f1; f3 = 150 * f1; colorit(_root, f2, f2, f2, f3, 0, 0); if (momdown == 50 && (!_root.locker[4] || _root.chala > 0 && _root.chala < 5) && _root.chaps != 7) { _root.locker[4] = true; _root.locker[5] = true; _root.locker[6] = true; colorit(_root, 1, 1, 1, 0, 0, 0); _root.levz = undefined; moveon(); _root.door = undefined; _root.gotoAndStop(9); } if (_root.hardmode) { _root.locker[99] = true; } } splaz = true; } if (sacri-- > 0) { splaz = true; } if (splaz) { while (random(2) != 0) { f10 = random(15) + 2; xenf = crand(f10); yenf = crand(f10); trg2 = create(320 - xenf * 100, 280 - yenf * 100, 0, xenf, yenf, 0, 8); trg2.d._yscale = 140 + random(80); trg2.d._xscale = trg2.d._yscale; trg2.md -= random(20); trg2.fd += 0.5; } } helpss = helps; helps = 0; help = 0; for (e in ball) { trg = ball[e]; b1 = (trg.minb || trg.minboh) && trg.eternal || trg.bossheart; if ((trg.bosser || b1) && trg.dones) { if (!b1) { trg.bosser = false; --bosser; } if ((bosser == 0 || b1) && (!bossheart || trg.minb == 3) && !trg.boso) { trg.boso = true; trg.minboh = false; bossheart = true; f0 = 5.01; if (trg.s == 45 || trg.s == 78) { f1 = 320; f2 = 280; } else { f1 = trg.xp; f2 = trg.yp; } if (_root.bossl == _root.lev || b1 && trg.s != 51) { create(f1, f2, 0, crand(7), crand(7), 0, f0); if (_root.so.data.wins < 6 && !b1) { create(f1, f2, 0, crand(7), crand(7), 0, f0); } } if (spezz || b1) { trg2 = create(f1, f2, 0, crand(7), crand(7), 0, 5.01); if (spezz == 4 || spezz == 7) { trg2.col = 3; } if ((spezz == 23 || b1) && etux++ < 2) { trg2.col = 4; } } } } } bosser = 0; lastbb = -1; lastbbb = -1; topz(1); if (decer.s == 4) { rply = player; player = decer; } } function deathscripts() { if ((hps[trg.s] / mux > 199 && !trg.goner && trg.s != 62 && trg.s != 96 && trg.s != 18 && trg.pow != 5 || trg.s == 19 || trg.s == 20 || trg.s == 79 && (!trg.alt || altboss != 2) || trg.s == 82 || trg.s == 83 || trg.minb || trg.worm == 6 || trg.s == 67 || trg.s >= 71 && trg.s <= 77) && trg.s > 0 && !trg.dones && !trg.nobar && !trg.sic && !trg.horse && !trg.weap && !mheart || trg == mheart || trg.s == 97 || trg.s == 98 || trg.showbar) { ++bosser; trg.bosser = !trg.minb; trg.aboss = trg.bosser; if (trg.hp > trg.mhp) { trg.mhp = trg.hp; } help += trg.hp / trg.mhp; ++helps; f1 = 0; if (trg.s == 74) { f1 = 10; } if (trg.s == 75) { f1 = 4; } if (trg.s == 76) { f1 = 1; } if (trg.s == 71 && altboss) { f1 = 18; } else { if (trg.s == 71) { f1 = 12; } } if (trg.s == 72) { f1 = 2; } help += f1; helps += f1; bosser += f1; trg.hbar = true; mins = trg.minb || _root.lev != _root.bossl && _root.lev != _root.bossl2 && _root.lev != 166; } if ((trg.flyai || trg.s == 25 && !trg.alt) && !trg.dones) { ++flyshut; } if (trg.gosplash) { gosplash(); trg.gosplash = false; } if ((trg.s == 61 || trg.s == 26 && trg.alter == 2 || trg.s == 92 && trg.eternal || trg.s == 22 && trg.eternal == 2) && trg.dones && !trg.wtfsto) { trg.wtfsto = true; if (trg.alter == 2 && trg.s == 61) { green(); if (trg.eternal) { green(false, true); green(false, true); green(false, true); } } else { quadf(trg.xp, trg.yp, 8, trg.s == 26 && trg.alter == 2 && trg.eternal || (trg.s == 61 || trg.s == 22) && trg.eternal); if (trg.s == 22) { boil(); boil(); boil(false, 2); boil(false, 2); boil(false, 2); } } } if (trg.s == 81 && trg.alter == 2) { if (trg.dones) { trg.alter = 0; _root.locker[64] = true; f0 = 5.1132; spaw(trg.xp, trg.yp, 0, f0); } } if (trg.s == 98 && trg.eternal && !trg.sploooz && trg.dones) { trg.sploooz = true; trg2 = create(trg.xp, trg.yp - 20, 0, 0, 0, 0, 92); trg3 = create(trg.xp, trg.yp - 20, 0, 0, 0, 0, 92); trg2.specoz = 23; trg3.specoz = 23; trg2._yscale *= 1.3; trg2._xscale = trg2._yscale; trg3._yscale *= 1.3; trg3._xscale = trg3._yscale; speco(trg3); speco(trg2); } if (trg.minb) { if (!fonter) { fonter = true; f4 = ['Isaac', 'Magdalene', 'Cain', 'Judas', '???', 'Eve', 'Samson']; f2 = ['Sloth', 'Lust', 'Wrath', 'Gluttony', 'Greed', 'Envy', 'Pride', 'Krampus']; f0 = trg.s - 46; f1 = ' vs '; if (trg.eternal || flox.eternal) { f1 += 'Eternal '; } if (trg.alter == 3) { f1 += 'Ultra Pride'; } else { if (trg.alter == 2) { f1 += 'Super ' + f2[f0]; } else { f1 += f2[f0]; } } st11(f4[_root.skiner] + f1); } if (trg.dones && helpss == 0 && !minsber && _root.lev != _root.chamb) { minsber = true; if (trg.minb == 2) { f1 = 74; if (!_root.locker[10]) { f1 = 64; } f1 = [5.3, 140, 5.07, 45, 5.04, 106, 5.01, 129, 5.02, f1, 5.04, 128, 5.3, 81]; } else { f1 = [5.3, 42, 5.07, 13, 5.04, 37, 5.01, 15, 5.02, 64, 5.04, 49, 5.3, 65]; } if (trg.bomber) { trg.s = 48; } f0 = trg.s - 46; _root.minwin[f0] = true; if (_root.minwin[0] && _root.minwin[1] && _root.minwin[2] && _root.minwin[3] && _root.minwin[4] && _root.minwin[5] && _root.minwin[6]) { _root.locker[29] = true; } if (trg.minb == 3) { f0 = 5.07; trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, f0); if (trg == flox) { trg2.col = 62; } else { trg2.col = 61; } _root.locker[98] = true; } else { f0 *= 2; f2 = false; if (random(4) == 0 || trg.minb == 2 && random(7) == 0) { f2 = true; } if (f2 && !_root.ups[f1[f0 + 1]]) { f0 = f1[f0 + 1]; f0 = 5.1 + f0 / 10000; } else { f0 = f1[f0]; } if (f0 == 5.04 && trg.s == 51) { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, f0); trg2.col = 3; } else { if (f0 == 5.02) { f3 = 4 + random(5); z = 0; while (z < f3) { f4 = random(5) + 2; create(trg.xp, trg.yp, 0, crand(f4), crand(f4), 0, f0); ++z; } } else { if (f0 == 5.01 || f0 == 5.04) { f1 = crand(5); f2 = crand(); create(trg.xp, trg.yp, 0, f1, f2, 0, f0); create(trg.xp, trg.yp, 0, -f1, -f2, 0, f0); } else { spaw(trg.xp, trg.yp, 0, f0); } } } } trg.minb = false; trg.minboh = true; } } else { if (trg.special || trg.hallo || trg.etdrop) { if (trg.dones && !_root.dropo[_root.lev][trg.trg.spuz]) { _root.dropo[_root.lev][trg.trg.spuz] = true; trg.special = false; trg.hallo = false; if (trg.etdrop) { f1 = 7 + random(3); trg.etdrop = false; } else { f1 = 10; } if (!_root.hardmode || random(Math.max(f1 - _root.luck, 1)) < 3) { f1 = Math.random(); if (f1 < 0.4) { f0 = 5.02; } else { if (f1 < 0.6) { f0 = 5.01; } else { if (f1 < 0.76 - _root.chaps * 0.01) { f0 = 5.03; } else { if (f1 < 0.8) { if (random(2) == 0) { f0 = 5.3; } else { f0 = 5.07; } } else { if (f1 < 0.95) { f0 = 5.04; } else { f0 = 5.05; } } } } } spaw(trg.xp, trg.yp, 0, f0); } } } } if (trg.s == 51 && trg.tier <= 2 && trg.dones && !trg.wtfst) { ++helpss; helps = 1; trg.wtfst = true; f1 = crand(10); f2 = crand(); trg2 = []; f3 = trg.s; if (trg.alter == 2) { f3 += 0.1; } trg2.push(create(trg.xp + f1, trg.yp + f2, 0, f1 * 0.4, f2 * 0.4, 0, f3)); trg2.push(create(trg.xp - f1, trg.yp - f2, 0, -f1 * 0.4, -f2 * 0.4, 0, f3)); if (trg.alter == 2 && trg.tier < 1 + random(2) && (!trg.eternal || !trg.cop)) { trg2.push(create(trg.xp - f1, trg.yp - f2, 0, -f2 * 0.4, f1 * 0.4, 0, f3)); } for (z in trg2) { trg2[z].fra = fra - 100; trg2[z].tier = trg.tier + 1; trg2[z].hp /= trg.tier + 2; trg2[z].cop = true; if (trg.eternal) { trg2[z]._yscale = 130; trg2[z]._xscale = 130; } else { trg2[z]._yscale = 100; trg2[z]._xscale = 100; } trg2[z].d.gotoAndStop(5 + trg.tier); trg2[z].specoz = trg.specoz; trg2[z].specol = trg.specol; trg2[z].specozz = trg.specozz; trg2[z].eternal = trg.eternal; speco(trg2[z]); } if (trg.eternal) { quadf(trg.xp, trg.yp, 10, trg.alter == 2); } } if (trg.s == 76 && trg.dones && !trg.wtfst) { trg.wtfst = true; if (trg.eternal && random(3) == 0) { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 38.1); } else { var v2 = allets; allets = false; trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 77); allets = v2; trg2.fra = -100; } if (trg.eternal) { trg2.specoz = 23; speco(trg2); } } if (trg.s == 77 && trg.dones && !trg.wtfst && trg.eternal && Math.abs(trg._xscale) > 30) { trg.wtfst = true; trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 77); trg3 = create(trg.xp, trg.yp, 0, 0, 0, 0, 77); sizes[77] = 13; trg2.mhp = trg.mhp * 0.75; trg3.mhp = trg2.mhp; trg2.hp = trg2.mhp * 0.75; trg3.hp = trg2.hp; trg3._yscale = Math.abs(trg._xscale) * 0.6; trg3._xscale = trg3._yscale; trg2._yscale = trg3._yscale; trg2._xscale = trg3._yscale; trg2.d.gotoAndStop(13); trg3.d.gotoAndStop(13); trg2.eternal = true; trg3.eternal = true; trg2.specoz = 23; trg3.specoz = 23; speco(trg2); speco(trg3); } if (trg.s == 71 || trg.s == 72 || trg.s == 73) { if (trg.dones && !trg.wtfsss) { trg.wtfsss = true; if (trg.specoz == 23) { if (altboss) { boil(false, 2); boil(false, 2); } else { quadf(trg.xp, trg.yp, 8.5, 1); } } } } if (trg.s == 73 && trg.dones && !trg.wtfst) { trg.wtfst = true; f33 = ingrid(trg.xp, trg.yp); f1 = levzz(f33); if (altboss || f1 != 3) { f1 = 23; if (trg.specoz == 15) { f1 = 25; } if (trg.specoz == 23 && !altboss) { f1 = 31; } if (altboss) { boil(true); boil(false); if (trg.specoz == 23 && random(3) == 0) { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 94); } } else { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, f1); if (f1 == 31) { trg2.specoz = 23; speco(trg2); trg2.eternal = true; trg2.hp += 20; } } _root.soundy('summonsound.wav', 80); trg2.hp *= 0.75; } } if ((trg.s == 71 || trg.s == 72) && trg.dones && !trg.wtfst) { trg.wtfst = true; f1 = crand(20); f2 = crand(); trg2 = []; f3 = trg.s + 1; trg2.push(create(trg.xp + f1, trg.yp + f2, 0, f1 * 0.2, f2 * 0.2, 0, f3)); trg2.push(create(trg.xp - f1, trg.yp - f2, 0, -f1 * 0.2, -f2 * 0.2, 0, f3)); if (trg.s == 71) { if (trg.specoz == 15 || altboss) { trg2.push(create(trg.xp + f2, trg.yp - f1, 0, 0, 0, 0, f3)); } else { trg2.push(create(trg.xp + f2, trg.yp - f1, 0, f2 * 0.2, -f1 * 0.2, 0, f3)); trg2.push(create(trg.xp - f2, trg.yp + f1, 0, -f2 * 0.2, f1 * 0.2, 0, f3)); } } for (z in trg2) { trg2[z].fra = -100; trg2[z].d.gotoAndStop(2 + (f3 - 71) * 3); if (trg.specoz == 23) { trg2[z].specoz = 23; speco(trg2[z]); } if (random(2) == 0) { trg2[z].d._xscale *= -1; } } } if (trg.s == 57 && trg.dones && !trg.wtfst) { trg.wtfst = true; f1 = crand(10); f2 = crand(); if (trg.alter == 2) { f3 = 40; } else { f3 = 32; } trg2 = []; if (trg.eternal) { f1 *= 3; f2 *= 3; } trg2.push(create(trg.xp + f1, trg.yp + f2, 0, 0, 0, 0, f3)); trg2.push(create(trg.xp - f1, trg.yp - f2, 0, 0, 0, 0, f3)); if (trg.eternal) { if (trg.alter == 2) { f3 = 15; } else { trg2.push(create(trg.xp - f2, trg.yp + f1, 0, 0, 0, 0, f3)); } trg2.push(create(trg.xp + f2, trg.yp - f1, 0, 0, 0, 0, f3)); if (trg.alter == 2) { trg2[2].hp *= 3; } } for (z in trg2) { trg2[z].specoz = trg.specoz; speco(trg2[z]); if (trg.eternal) { if (trg2[z].s == 40) { trg2[z].hp *= 2.3; trg2[z].mhp = trg2[z].hp; } else { trg2[z].hp *= 4.2; trg2[z].mhp = trg2[z].hp; trg2[z]._yscale *= 1.2; trg2[z]._xscale = trg2[z]._yscale; } trg2[z].eternal = true; } } } if (trg.s == 79 && altboss && !trg.wtfst && trg.dones) { trg.wtfst = true; quadf(trg.xp, trg.yp, 10, true); } if ((trg.s == 80 || trg.s == 94) && !trg.wtfst && trg.dones && trg.hp > -20) { trg.wtfst = true; f1 = player.yp - trg.yp; f2 = trg.xp - player.xp; enf = enfget(f1, f2); if (enf > 0) { enf = 10 / enf; f1 *= enf; f2 *= enf; } else { f1 = crand(10); f2 = crand(10); } if (trg.s == 94) { f3 = 85; } else { f3 = 18; } trg2 = create(trg.xp + f1, trg.yp + f2, 0, f1, f2, 0, f3); trg3 = create(trg.xp - f1, trg.yp - f2, 0, -f1, -f2, 0, f3); trg2.fra = -10; trg3.fra = -10; if (trg.specoz == 23 && trg.s == 94) { trg2.specoz = 23; speco(trg2); trg3.specoz = 23; speco(trg3); boil(); boil(); boil(); boil(); boil(); boil(); boil(); boil(); } if (trg.specoz == 23 && trg.s == 80) { trg2.hp *= 1.5; trg2.mhp = trg2.hp; trg3.hp *= 1.5; trg3.mhp = trg3.hp; trg2.specoz = 23; speco(trg2); trg3.specoz = 23; speco(trg3); trg2 = create(trg.xp - f2, trg.yp + f1, 0, -f2 * 0.5, f1 * 0.5, 0, f3); trg3 = create(trg.xp + f2, trg.yp - f1, 0, f2, -f1, 0, f3); trg2.hp *= 1.5; trg2.mhp = trg2.hp; trg3.hp *= 1.5; trg3.mhp = trg3.hp; trg2.fra = -10; trg3.fra = -10; trg2.specoz = 23; speco(trg2); trg3.specoz = 23; speco(trg3); } } } function deathscripts2() { if (trg.s == 2 && trg.dones && !trg.wtfst) { trg.wtfst = true; if (ups[104] && !trg.ba) { if (slugsp <= fra) { slugsp = fra + 5; xenf = trg.ybb; yenf = -trg.xbb; enf = enfget(xenf, yenf); f1 = trg.xp; f2 = trg.yp; if (mhity(f1, f2)) { f1 = trg.xpp; trg.xp = f1; f2 = trg.ypp; trg.yp = f2; } if (enf > 0) { enf = 8.5 / enf; xenf *= enf; yenf *= enf; trg2 = create(f1, f2, 0, xenf, yenf, 0, 2); trg3 = create(f1, f2, 0, -xenf, -yenf, 0, 2); trg2.wtfst = true; trg3.wtfst = true; trg2.bh = false; trg3.bh = false; trg3.dy = trg.dy; trg2.dy = trg.dy; trg3.dm = 1.2; trg2.dm = 1.2; trg2.d._xscale = trg.d._xscale; trg3.d._xscale = trg2.d._xscale; trg2.d._yscale = trg.d._yscale; trg3.d._yscale = trg2.d._yscale; trg2.dmg = trg.dmg; trg3.dmg = trg2.dmg; var v1 = 0; while (v1 < ballz) { if (trg.hh[v1]) { trg2.hh[v1] = true; trg3.hh[v1] = true; } else { trg2.hh[v1] = false; trg3.hh[v1] = false; } ++v1; } trg3.sot = trg2; if (ups[132]) { trg2.gro = trg.gro; trg3.gro = trg2.gro; } } } } } else { if (trg.s == 2 && !trg.dones) { trg.xbb = trg.xbew; trg.ybb = trg.ybew; trg.xpp = trg.xp; trg.ypp = trg.yp; } } if (trg.s == 25 && trg.alter == 2 && !trg.wtfst && trg.dones) { trg.wtfst = true; if (trg.eternal) { f1 = 20; } else { f1 = 6; } cirf(trg.xp, trg.yp, 8, f1); } if (trg.s == 55 && trg.eternal && trg.dones && !trg.dobol) { trg.dobol = true; quadf(trg.xp, trg.yp, 8, true); } if ((trg.s == 16 || trg.s == 22 || trg.s == 67) && trg.dones && !trg.wtfst) { if (trg.s == 22 && trg.specoz == 23) { boil(false, 2); } trg.wtfst = true; if (trg.alter == 3) { trg = bombfail(trg.xp, trg.yp); trg.mug = true; } else { if (trg.alter == 2) { quadf(trg.xp, trg.yp, 8, 2); trg2 = spaw(trg.xp, trg.yp, 0, 5.04); trg2.col = 3; } else { if (trg.hp > -20) { flya(); } } } if (trg.s == 67 && altboss && trg.specoz && trg.specoz != 23) { if (trg.specoz == 16) { f1 = 25; } else { if (trg.specoz) { f1 = 25.1; } } spaw(trg.xp, trg.yp, 20, f1); spaw(trg.xp, trg.yp, 20, f1); } } if (trg.s == 19 && altboss && trg.specoz && !trg.wtfst && trg.dones) { trg.wtfst = true; if (trg.specoz == 23) { flya(); } else { if (trg.specoz == 3) { f1 = 23; } else { if (trg.specoz == 16) { f1 = 25; } else { f1 = 5.02; } } spaw(trg.xp, trg.yp, 0, f1); } } if (trg.s == 100 && altboss && trg.dones && !trg.wtfst) { trg.wtfst = true; boil(); boil(); boil(); } if (trg.s == 101 && trg.dones && !trg.wtfst) { trg.wtfst = true; trg.done = true; momdown = 100; } if (trg.s == 91 && trg.dones && !trg.wtfst) { trg.wtfst = true; if (trg.eternal) { f1 = crand(f1); f2 = crand(); f3 = 0.3; trg2 = create(trg.xp + f1, trg.yp + f2, 0, f1 * f3, f2 * f3, 0, 91); trg3 = create(trg.xp - f1, trg.yp - f2, 0, -f1 * f3, -f2 * f3, 0, 91); f1 = crand(f1); f2 = crand(); f3 = 0.3; trg4 = create(trg.xp - f1, trg.yp - f2, 0, -f1 * f3, -f2 * f3, 0, 91); trg2.fra = -100; trg3.fra = -100; trg4.fra = -100; trg4.specoz = 23; trg3.specoz = 23; trg2.specoz = 23; speco(trg2); speco(trg3); speco(trg4); } else { trg2 = spaw(trg.xp, trg.yp, 0, 25); } } if (trg.frezz > 0) { --trg.frezz; trg.free = true; } else { if (trg.frezz < 1) { trg.free = false; } } if (trg.poiss > 0) { --trg.poiss; if (trg.poiss % 20 == 1) { if (trg.s != 28 || altboss != 2) { hurt(trg, trg.poisd); } } } } function alive() { if (fra - trg.fra < 10 && !trg.dones && trg.s != 84 && trg.s != 101) { trg.d.gotoAndStop(4); } if (firecheck(trg)) { if (fra - trg.lastfir >= 10) { trg.lastfir = fra; hurt(trg, 8); } } if (trg.s != 42 && trg.s != 44 && !trg.dones && trg.s != 33 && trg.s != 37 && !trg.weap && !trg.goner && trg.s != 96 && !trg.efly && ((_root.lev == _root.chamb || trg.s != 18) && trg.s != 85 || justnow < 10)) { ++shutdoor; } if (trg.d._currentframe == 4 && !trg.apf && !trg.dones) { trg.xbew *= 0.45; trg.ybew *= 0.45; trgnextd(); if (trg.s == 10) { if (trg.gonuts) { trg.d.d.h.gotoAndStop(2); } } if (trg.s == 30) { f1 = trg.hp / hps[trg.s]; trg.d.d.h.d.gotoAndStop(Math.max(1, 14 - Math.round(f1 * 13))); } if (trg.s == 11) { if (trg.specoz == 23 || trg.eternal) { trg.bnuts = true; } if (!trg.bnuts) { trg.d.bb._visible = false; trg.d.d.bb._visible = false; } } } if (trg.s == 30) { trg.xp = trg.xpp; trg.yp = trg.ypp; } if (fra < 5) { if (trg.s > 9) { speco(trg); } } if ((trg.d._currentframe != 4 || trg.apf) && !trg.dones) { if (freez > 0 || trg.frezz > 0 || trg.s < 4 && sloww) { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.free = true; } else { if (trg.flyai) { switch (trg.s) { case 14: bord(); if (trgnextd(trg.d.hx.d)) { trg.d.gotoAndStop(1); } if (!ups[9]) { firemode(200, 4); } if (trg.fire > 0) { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xbb *= 0.7; trg.ybb *= 0.7; } case 80: case 18: if (trg.duke) { ++dukes; if (duke.dones || duke.send) { trg.duke = false; if (enfcheck(trg.xp, trg.yp, duke.xp, duke.yp, 260)) { f1 = 18 / enf; trg.xbew += xenf * f1; trg.ybew += yenf * f1; } } else { if (fra % 3 == 1) { if (enfcheck(trg.xp, trg.yp, duke.xp, duke.yp, 260)) { f3 = duked; f1 = (absmax(enf - f3, 5) / enf) * 0.5; f2 = 0.2 / (2 + Math.abs(f3 - enf)); trg.xbew -= xenf * f1; trg.ybew -= yenf * f1; trg.xbew += yenf * f2; trg.ybew -= xenf * f2; trg.xbew += duke.xbew * 0.4; trg.ybew += duke.ybew * 0.4; } } } } case 13: case 61: if (trg.eternal && trg.s == 61) { if (fra % 20 == 0) { if (trg.alter == 2) { f1 = 2; } else { f1 = 0; } quadf(trg.xp, trg.yp, 8, f1); } } trg.outway = fra2; if (fra % 3 == 0) { if (ups[9] && trg.s == 18 && !trg.duke) { trg.s = 13; attach(trg, 13); trg.ggh = true; } if (ups[9] && trg.s == 80) { trg.s = 13; } if (!trg.duke) { if (trg.s == 18 || trg.s == 61 || ups[9] || trg.s == 80) { trg.goshit = 1; } else { f1 = trg.xp + crand(Math.random() * Math.random() * 240); f2 = trg.yp + crand(); f3 = ingrid(f1, f2); v1 = levzz(f3); if (v1 > 1 && v1 < 1.8) { trg.goshit = f3; } } } } if (trg.goshit > 0 && fra2) { outgrid(trg.goshit); v1 = 30; if (trg.s == 18 || trg.s == 61 || trg.s == 80 || ups[9] || trg.s == 14 && trg.eternal) { xenf = player.xp; yenf = player.yp; v1 = 25; } if (trg.s == 61 || trg.d._xscale > 110) { v1 = 15; } xenf = trg.xp - xenf; yenf = (trg.yp - yenf) / 2; enf = enfget(xenf, yenf); if (enf > v1) { v1 = Math.min(0.6, (enf - v1) * 0.04) * 2; } else { if (random(1000) == 0) { if (killshit(trg.goshit)) { trg.s = 14; trg.alter = 1; if (random(3) == 0) { trg.alter = 2; } attach(trg, 14); } } v1 = 0; } enf = v1 / enf; if (trg.s != 18 && trg.s != 61 && trg.s != 80) { trg.xbb *= 0.7; trg.ybb *= 0.7; } if (trg.die) { trg.xbew *= 0.9; trg.ybew *= 0.9; } trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } if (trg.s == 18) { f0 = 0.3; } else { f0 = 0.17; } if (fra % 4 == 1) { trg.xbb += crand(f0 * 2); trg.ybb += crand(); trg.xbb *= 0.8; trg.ybb *= 0.8; f1 = levzz(ingrid(trg.xp, trg.yp)); f1 = f1 >= 1 && f1 != 3; f2 = levzz(ingrid(trg.xp + trg.xbb * 16, trg.yp + trg.ybb * 16)); f2 = f2 >= 1 && f2 != 3; if ((f1 || f2) && !(f1 && f2)) { trg.xbb *= 0.5; trg.ybb *= 0.5; } else { if (f1 && !f2) { trg.xbb *= 1.3; trg.ybb *= 1.3; } } } trg.ph = fra % 3 == 2; if (trg.ph) { if (!trg.duke) { v1 = 0.06; if (trg.yp < 210) { trg.ybb += v1; } if (trg.yp > 420) { trg.ybb -= v1; } if (trg.xp > 540) { trg.xbb -= v1; } if (trg.xp < 80) { trg.xbb += v1; } } trg.xbew += trg.xbb * 2; trg.ybew += trg.ybb * 2; trg.xbew *= 0.6; trg.ybew *= 0.6; } } } else { smarts(); } } } if (trg.s == 30) { if (trg.d._currentframe == 4) { f1 = trg.hp / hps[trg.s]; trg.d.d.hx.d.gotoAndStop(Math.max(1, 14 - Math.round(f1 * 13))); } } } function aicol() { if (trg.d.d.d._currentframe == 25 && trg.d.d._currentframe == 3 && fra > 35) { switch (trg.d._currentframe) { case 1: _root.soundy('Meat_Feet_slow0.wav'); break; case 2: if (trg.col == 3) { _root.soundy('dimedrop.wav'); } else { if (trg.col == 1) { _root.soundy('pennydrop.mp'); } else { _root.soundy('nickeldrop.mp'); } } break; case 3: _root.soundy('Key_drop0.wav'); break; case 7: if (trg.col < 7) { _root.soundy('Fetus_Jump_' + random(2) + '.wav'); } else { _root.soundy('scamper' + random(2) + '.wav'); } } } if (fra % 30 == 0) { if (trg.d._currentframe == 8) { for (a in ball) { trg2 = ball[a]; if (trg != trg2 && trg2.s == 5 && trg2.d._currentframe < 8) { enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 40); if (enf) { if (enfget(trg2.xbew, trg2.ybew) < 0.2) { if (enf == 0) { xenf = crand(1); yenf = crand(1); enf = 1; } enf = 2 / enf; trg2.xbew -= xenf * enf; trg2.ybew -= yenf * enf; } } } } } } if (trg.col == 10 && trg.d._currentframe == 8) { trg.xbew = 0; trg.ybew = 0; } if (trg.d._currentframe == 15) { if (ups[64] && (trg.d.d._currentframe < 5 || trg.d.d._currentframe == 12 || trg.d.d._currentframe == 13)) { f1 = trg.d.d.d._currentframe; trg.d.d.gotoAndStop(trg.d.d._currentframe + 4); trg.d.d.d.gotoAndStop(f1); } } if (trg.spin) { if (trg.d.d._currentframe == 2 && trg.d.d.d._currentframe == 17) { _root.soundy('slot touched.wav'); } if (trg.d.d._currentframe == 42 && trg.d.d.d._currentframe == 35) { _root.soundy('shellgame' + random(2) + '.wav'); } if (trg.d.d._currentframe == 42 && trg.d.d.d._currentframe == 35) { _root.soundy('shellgame' + random(2) + '.wav'); } if (trg.d.d._currentframe >= 42 && trg.d.d.d._currentframe == 65) { _root.soundy('shell game.wav'); } if (trg.d.d._currentframe == 40 && trg.d.d.d._currentframe == 20) { _root.soundy('bum shoot off.wav'); } f1 = trgnextd(trg.d.d.d, true); if (trg.d.d._currentframe == 42) { trg.d.d.d.it.gotoAndStop(trg.itt + 1); } if (f1 == 43 || f1 == 44 || f1 == 45) { trg.spin = false; } else { if (f1 == 42) { lastspin = fra + 50; trg.wtf = false; } else { if (f1 == 37) { if (trg.col == 31) { if (random(4 - ups[46]) == 0) { trg.d.d.gotoAndStop(38); } else { trg.d.d.gotoAndStop(36); trg.spin = false; } trg.wtf = false; } else { if (trg.col++ > random(2) + random(4) + random(4)) { if (ups[46]) { ++trg.col; } trg.col = 2 + random(2); trg.d.d.gotoAndStop(38); } else { trg.d.d.gotoAndStop(36); trg.spin = false; } trg.col = Math.min(9, trg.col); trg.wtf = false; } } else { if (f1 == 2) { if (random(50) == 0 && chestopen == undefined) { chestopen = trg; trg.d.d.gotoAndStop(30); trg.spin = false; trg.busted = true; _root.soundy('boss1_explosions' + random(3) + '.wav', 80); } else { trg.d.d.gotoAndStop(slotf()); trg.wtf = false; } } else { if (f1 > 2 && (trg.col == 41 || trg.col <= 1)) { trg.spin = false; } } } } } if (trg.d.d.d._currentframe > 15 && trg.d.d._currentframe > 2 && !trg.wtf) { if (trg.col != 1 || trg.d.d.d._currentframe > 36) { lastspin = fra + 12; trg.wtf = true; f1 = trg.d.d._currentframe; f2 = 0; f12 = 1; if (trg.col == 41 && f1 > 2 && f1 < 24) { f1 = 0.65 - ups[46]; if (Math.random() < f1) { f1 = ['Look to la Luna', 'Don\'t Leave The House Today', 'We will all die one day', 'You are throwing your life away', 'Go outside!', 'Give Up!', 'You will die alone', 'Ask again later', 'WAKE UP', 'you are worshiping a sun god', 'Stay asleep', 'Marry and Reproduce', 'Question authority', 'think for yourself', 'Steven lives', 'Bring him the photo']; st11(f1[random(f1.length)]); } else { if (random(20) == 0) { chestopen = trg; trg.d.d.gotoAndStop(30); trg.spin = false; trg.busted = true; _root.soundy('boss1_explosions' + random(3) + '.wav', 80); } else { if (random(30) == 0) { f2 = 5.1; } else { if (random(3) == 0) { f2 = 5.3; } else { if (random(3) == 0) { f2 = 5.010000003; } else { f2 = 5.35; } } } } } } else { sloty(f1); switch (f1) { case 43: case 44: case 45: if (random(3) == 0 || random(3) == 0 && ups[46]) { f2 = 5.01 + trg.itt * 0.01; if (f2 == 5.02) { f12 = 2 + random(2); } else { f12 = Math.max(random(3), 2); } if (trg.itt == 5) { f2 = 5.1009; } } else { f2 = 18; _root.soundy('boss2intro_errorbuzz.wav'); } break; break; case 42: case 38: if (trg == flox && trg.minb != 3) { flox = undefined; } trg.spin = false; if (trg.col == 31) { if (random(2) == 0) { if (random(2) == 0) { f2 = 5.07; } else { f2 = 5.3; } } else { if (random(4) == 0) { f2 = 5.35; } else { f2 = 5.1; } } } else { f2 = 5.1022 + random(5) * 0.0001; if (random(2) == 0) { if (random(3) == 0) { f2 = 5; } else { f2 = 5.03 + random(2) * 0.01; } } else { if (random(2) == 0) { if (random(2) == 0) { f2 = 5.1022 + random(5) * 0.0001; } else { f2 = 5.3; } } else { f2 = 5.1; } } } trg.d.d.gotoAndStop(36); break; case 33: if (random(15) == 0) { f2 = 5.1; trg.done = true; _root.soundy('boss1_explosions' + random(3) + '.wav', 80); } else { f2 = 5.02; f12 = Math.max(1, random(3)); if (ups[75]) { ++f12; } _root.soundy('bloodbank spawn' + random(2) + '.wav', 90); } break; case 3: case 4: break; case 5: case 6: case 10: case 11: case 12: case 7: case 8: case 9: case 37: break; default: emo(true); } } if (f2 > 0) { if (f1 < 33) { emosound = false; } if (f2 < 7 && f1 != 33) { emo(); } emosound = true; if (f1 < 33) { _root.soundy('slotspawn' + random(3) + '.wav'); } if (f2 >= 5.1 && trg.col > 1 && trg.col != 41 && f2 < 5.3) { bummer = true; if (trg.col == 31) { bummer = 2; } trg2 = spaw(trg.xp, trg.yp + 80, 0, f2); if (trg.col == 41) { trg.empty = true; trg.d.d.gotoAndStop(30); trg2.it = 158; } else { trg.empty = true; trg.dones = true; trg.d.d.gotoAndStop(40); } } else { i = 0; while (i < f12) { f13 = 0; while (f13++ < 10) { if (f1 >= 43 && f1 <= 45) { yenf = 4 + crand(2); xenf = (f1 - 44) * 4 + crand(2); f14 = xenf * 5; f15 = 5; } else { xenf = crand(5); yenf = crand(5) * 0.2 + 3; f14 = 0; f15 = 0; } if (linecheckx(trg.xp + f14, trg.yp + f15, trg.xp + xenf * 7, trg.yp + yenf * 7)) { f13 = 1000; } } var trg2 = create(trg.xp + f14, trg.yp, 0, xenf, yenf, 0, f2); trg2.alt = 2; if (f2 == 18) { trg2.fra = -10; trg2.xp += xenf * 4; } if (f2 == 5.1) { if (trg.col == 41) { trg2.d.col = 41; trg2.it = 158; trg.done = true; } else { if (trg.col == 1) { trg2.it = 119; if (random(2) == 0 && !ups[135]) { trg2.it = 135; } trg2.alt = 3; } else { trg2.it = 18; } } trg2.fra -= 15; trg2.d.d.gotoAndStop(44); } ++i; } } } } } } if (trg.alt) { if (trg.alt > 4) { trg.d.d.al.gotoAndStop(trg.alt); } else { if (trg.alt == 3) { trg.d.d.al.gotoAndStop(4); } else { if (trg.alt == 2) { trg.d.d.al.gotoAndStop(3); } else { trg.d.d.al.gotoAndStop(2); } } } } if (fra - trg.fra > 25) { trg.bh = true; } if (trg.it > 0) { f1 = trg.it / 100; } else { f1 = 0; } if (trg.d._currentframe == 4) { if (trg.fail == undefined) { trg.fail = 0; } if ((trg.col == 3 || trg.col == 5) && trg.fail++ > 60) { trg.done = true; trg2 = bombfail(trg.xp, trg.yp); trg2.col = trg.col; } } if (trg.d._currentframe == 9) { trg.nod = true; trg.swapDepths(300 + e); if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 50) && !trg.open) { trg.d.d.gotoAndStop(1); } else { trg.open = true; if (trg.d.d._currentframe != 23) { trg.d.d.nextFrame(); } } } else { if (trg.d._currentframe == 10) { trg.d.d.nextFrame(); trg.d.d.d.d.gotoAndStop(trg.it); if (trg.empty) { trg.d.d.d.gotoAndStop(21); } } else { if (trg.d._currentframe == 15) { f1 = trg.d.d._currentframe / 10 + f1 / 100; trg.d.d.d.gotoAndStop(trg.it); } } } if (trg.col) { f1 += trg.col / 10000000; } f1 = trg.d._currentframe + f1; if (!trg.empty || trg.spin) { _root.levit[_root.lev].push([f1, trg.xp, trg.yp]); } if (trg.d._currentframe >= 5 && trg.d._curretnframe != 7) { trg.xbew *= 0.8; trg.ybew *= 0.8; } if (trg.d._currentframe >= 8 && !trg.busted && (trg.d._currentframe != 10 || !trg.alt)) { if (trg.d._currentframe == 10) { if (enfcheck(trg.xp, trg.yp, trg.xpp, trg.ypp, 30)) { trg.xp = trg.xp * 0.3 + trg.xpp * 0.7; trg.yp = trg.yp * 0.3 + trg.ypp * 0.7; if (levzz(ingrid(trg.xp, trg.yp)) < 1) { trg.xpp = trg.xp; trg.ypp = trg.yp; } } } trg.xp = trg.xpp; trg.yp = trg.ypp; } trg.xbew *= 0.965; trg.ybew *= 0.965; if (!trg.empty) { f1 = trg.d._currentframe; if (f1 == 7) { if (trg.col < 7) { f1 = 8; } } else { if (f1 == 8) { f1 = 9; } else { if (f1 == 9) { f1 = 0; } } } f2 = _root.levcol[_root.lev]; if (f1 == 1 && f2 < 5) { f2 = 0; } if (f2 == 1 && f1 < 5) { f1 = 0; } _root.levcol[_root.lev] = Math.max(f2, f1); } } function aistuff() { for (e in ball) { trg = ball[e]; deathscripts(); deathscripts2(); if (trg.uncol < fra) { speco(trg); } if (trg.s <= 9) { if (!trg.dones) { switch (trg.s) { case 3: friends(); break; case 2: if (ups[48] && !trg.ba) { if (fra % 30 == 0) { trg.hh = []; } } if (trg.fra + 2 < fra) { trg.bh = true; } if (trg.bombo) { trg.bh = trg.dy > -68; trg.ggh = trg.dy <= -50; if (trg.yp < 150 || trg.yp > 420 || trg.xp > 580 || trg.xp < 60) { trg.ggh = false; trg.death = true; } else { trg.death = false; } } if (ups[5] && !trg.ba) { if (fra - trg.fra > _root.firrr / 3 - 4) { trg2 = player; enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 500); enf = 0.6 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trg.xbew *= 0.98; trg.ybew *= 0.98; if (!ups[149]) { trg.fd = -0.045; } } } if (ups[132] && !trg.ba && !ups[114]) { if (trg.gro++ < 150) { trg.dmg += 0.14; trg.d._xscale += 1; trg.d._yscale += 1; } } if (ups[3] && !trg.ba || trg.ba == 4 || trg.ba == 11) { if (trg.trg2 == undefined || trg.trg2.dones || trg.trg2.xp <= 0 || !trg.trg2._visible) { if ((fra + trg.e) % 6 == 0) { f1 = trg.xp + trg.xbew * 4; f2 = trg.yp + trg.ybew * 4; siz = 150; for (i in ball) { trg2 = ball[i]; if (trg2.s > 9 && !trg2.dones && !trg.hh[trg2.e]) { enf = enfcheck(f1, f2, trg2.xp, trg2.yp, siz); if (enf) { f3 = xenf * trg.xbew + yenf * trg.ybew; if (trg2.pos >= 3 && trg2.bh && f3 < 0) { siz = enf; trg.trg2 = trg2; } } } } if (trg.trg2 != undefined) { trg2 = trg.trg2; if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { trg.gonuts = true; } else { trg.trg2 = undefined; } } } } else { if (trg.trg2 != undefined) { trg2 = trg.trg2; if ((fra + trg.e) % 5 == 0) { if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { trg.gonuts = true; } } if (trg2.dones || trg.hh[trg.trg2.e]) { trg.trg2 = undefined; trg.gonuts = false; } else { if (trg.gonuts && random(2) == 0) { f1 = trg2.xp; f2 = trg2.yp; if (trg.xbew > -100) { f1 += trg.xbew * 3; } if (trg.ybew > -100) { f2 += trg.ybew * 3; } enf = enfcheck(trg.xp, trg.yp, f1, f2, 200); if (enf > 0) { trg.dm *= 0.75; enf = 3 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; if (ups[182] && !trg.ba) { trg.xbew *= 0.65; trg.ybew *= 0.65; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } } } } } } } if (ups[59] && trg.trg2 == undefined && !trg.ba) { if (trg.sot) { trg.xppx = trg.sot.xppx; trg.yppx = trg.sot.yppx; } else { if (fra5) { f1 = enfget(trg.xbew, trg.ybew); if (f1) { f1 = Math.sin(fra / 3 + trg.fra * 3) * 2.5 / f1; trg.xppx = trg.ybew * f1; trg.yppx = -trg.xbew * f1; } } } if (trg.xppx) { trg.xp += trg.xppx; trg.yp += trg.yppx; } } case 9: if (trg.s == 9 && (!trg.bomb || blackout == 2) && trg.sss != 68 && !trg.hom && trg.sss != 100 && (trg.sss != 101 || !altboss)) { var v2 = new flash.geom.Transform(trg); v2.colorTransform = bull; if (isaaaac) { trg.colo = bull; trg.spl = 10; } } if (random(16) == 0 || trg.spll) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.3 + 0.1); } if (trg.hom) { f1 = 100; if (trg.sss == 57 || trg.sss == 32 || trg.sss == 50 || trg.hom == 2 || trg.hom == 3) { f1 = 1000; } enf = enfcheck(trg.xp + trg.xbew * 5, trg.yp + trg.ybew * 5, player.xp, player.yp, f1); if (enf > 0) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000 + f1); enf += enf * enf * 0.001; enf = 1.4 / enf; if (trg.sss == 32) { enf *= 1.2; } if (trg.sss == 50) { enf *= 0.75; } if (trg.hom == 3) { enf *= 0.6; } trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; if (enf > 300) { trg.xbew *= 0.97; trg.ybew *= 0.97; } else { trg.xbew *= 0.92; trg.ybew *= 0.92; } } } case 8: if (trg.s == 8) { if (random(3) == 0) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), (Math.random() * 0.3 + 0.1) * trg.d._xscale / 100); } } case 7: if (!trg.knife) { if (trg.longshot == 2) { trg.dm *= 0.95; trg.dm += 0.05; if (trg.fd) { trg.dm += trg.fd * 0.5; } trg.dy += trg.dm * 0.5; } else { if (trg.longshot) { trg.dm *= 0.975; trg.dm += 0.025; if (trg.fd) { trg.dm += trg.fd * 0.25; } trg.dy += trg.dm * 0.25; } else { trg.dm *= 0.9; trg.dm += 0.1; if (trg.fd) { trg.dm += trg.fd; } trg.dy += trg.dm; } } trg.d._y = trg.dy; if (trg.dy > -5) { if (trg.s == 2) { trg.wtfst = true; } if ((trg.s == 8 || trg.s == 7) && !mhit(trg.xp, trg.yp)) { maxx = new flash.geom.Matrix(); maxx.translate(trg.xp, trg.yp); maxx.scale(hdx, hdx); if (trg.colo) { gut.draw(trg, maxx, trg.colo); } else { if (trg.s == 8) { gut.draw(trg, maxx, bloc); } else { gut.draw(trg, maxx); } } trg._visible = false; } if (random(2) == 0) { _root.soundy('splatter0' + random(3) + '.wav'); } trg.d.gotoAndStop('groundhit'); trg.dones = true; } } if (trg.s == 9) { if (trg.nog-- <= 0) { if (trg.dy < -50) { trg.bh = false; trg.ggh = true; } else { trg.ggh = false; trg.bh = true; } } } break; case 5: aicol(); break; case 4: if (trg.bolt) { if (trgnextd(trg.d, true)) { trg.done = true; } if (trg.d._currentframe > 12 && trg.d._currentframe < 35) { if (fra % 3 == trg.e % 3) { for (a in ball) { trg2 = ball[a]; if (trg2.s == 1 || trg2.s > 10) { if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 30)) { if (trg2 == player) { if (!trg.friend) { playerhurt(1, 65); } } else { if (trg2.s != 102) { if (trg.friend) { hurt(trg2, 20); } else { hurt(trg2, 2); } } } } } } } } } else { if (trg.flir) { if (trgnextd(trg.d, false)) { trg.done = true; } else { nofun = true; for (a in ball) { trg2 = ball[a]; if ((fra + trg2.e) % 5 == 0 && trg2.s > 8 && trg2.bh) { if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 43)) { hurt(trg2, 23); if (!f3 && trg2.firs + 10 <= fra) { trg2.firs = fra; _root.soundy('Firedeath_hiss.wav', Math.min(100, 50 + trg.hp * 5)); } } } } } trg.xbew *= 0.95; trg.ybew *= 0.95; } else { if (trg.dec) { dec = undefined; if (trg.d._currentframe != 7) { trg.dones = true; } } if (_root.it == 97) { if (trg.d._currentframe == 1) { if (trg.d.d._currentframe == 10) { trg.d.d.gotoAndStop(1); } } } if (ups[125] || ups[52] && ups[3]) { if (trg.trg2 == undefined || trg.trg2.dones || trg.trg2.xp <= 0) { if (fra % 3 == 0) { f1 = trg.xp + trg.xbew * 5; f2 = trg.yp + trg.ybew * 5; siz = 150; for (i in ball) { trg2 = ball[i]; if (trg2.s > 9 && !trg2.dones && !trg.hh[trg2.e]) { enf = enfcheck(f1, f2, trg2.xp, trg2.yp, siz); if (enf) { siz = enf; trg.trg2 = trg2; } } } if (trg.trg2 != undefined) { trg2 = trg.trg2; if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { trg.gonuts = true; } } } } else { if (trg.trg2 != undefined) { trg2 = trg.trg2; if ((fra + trg.e) % 5 == 0) { if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { trg.gonuts = true; } } if (trg2.dones || trg.hh[trg.trg2.e]) { trg.trg2 = undefined; trg.gonuts = false; } else { if (trg.gonuts) { enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 100); if (enf > 0) { enf = 0.5 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trg.xbew *= 0.95; trg.ybew *= 0.95; } } } } } } if (trg.d._currentframe == 1) { trg.d.d.nextFrame(); } if (fra - trg.fra > 30) { trg.ph = false; } if (fra - trg.fra > 15) { trg.bh = true; } if (fra - trg.lfra > 3 && !trg.nex) { trg.nex = true; nextbo = true; } if (!trg.empty) { _root.levit[_root.lev].push([-100, trg.xp, trg.yp]); } trg.xbew *= 0.95; trg.ybew *= 0.95; trg.d.d.p.gotoAndStop(trg.col); } } } } } else { alive(); } } } function actions1() { actions2(); aistuff(); while (refl.length > 0) { trg2 = create(refl.pop(), refl.pop(), 0, refl.pop(), refl.pop(), 0, 9, 27); trg2.dy = -20; } refl = []; if (rply) { player = rply; rply = undefined; } tip(1); if (helps >= 1) { mhelps = Math.max(helps, mhelps); if (sati.pow == 1 || sati.pow == 2) { --mhelps; help -= 1; } help /= mhelps; _root.hud.bar.bar._xscale = help * 98 + 2; _root.hud.bar._visible = true; if (mins) { _root.hud.bar.gotoAndStop(3); _root.hud.bar.bar._xscale = 87 * help + 13; _root.hud.bar.bar._xscale *= 0.5600000000000001; } else { _root.hud.bar.gotoAndStop(1); } if (gurdy) { _root.hud.bar._y = 70; } } else { _root.hud.bar.gotoAndStop(2); _root.hud.bar._visible = false; } } function green(f11, f12) { trg2 = bossfire(1, !f12, 10); trg2.bomb = true; trg2.d._yscale = 160; trg2.d._xscale = 160; if (trg.s != 43) { trg2.xbew *= 0.55; trg2.ybew *= 0.55; } if (f12) { f1 = Math.random() + 0.6; trg2.xbew *= f1; trg2.ybew *= f1; } trg2.fd -= 0.3; trg2.dm *= 0.7; trg2.dm -= 13; if (trg.s == 87) { trg2.fd -= 0.3; trg2.dm += 10; } if (trg.s == 64 || trg.s == 43 || trg.s == 82) { trg2.xp -= trg.d._xscale * 0.2; trg2.pois = true; trg2.spl = 30; if (trg.d._currentframe < 7 || trg.s == 82) { trg2.dy -= 27; } } if (trg.s == 82 || trg.s == 78 || trg.specoz == 23 && trg.s != 64 && trg.s != 88 && trg.s != 30 && trg.s != 43 && trg.s != 46 && trg.s != 61 && trg.s != 87) { trg2.pois = 4; trg2.spl = 0; } else { if (f11 == 2) { colorit(trg2, 0.2, 0.2, 0.2, 0, 0, 0); } else { if (!f11) { colorit(trg2, 0.4, 2, 0.5, 0, 0, 0); } } } if (trg.s == 62) { trg2.dy -= 40; } if (trg.s == 46 && trg.minb != 3 && trg.eternal) { f1 = Math.random() * 2 + 0.4; trg2.xbew *= f1; trg2.ybew *= f1; } return trg2; } function boiler(f1, f2) { if (f1) { if (!trg.boss && !trg.s == 88 || random(50) == 0) { if ((enfcheck(trg.xp, trg.yp, player.xp, player.yp, 230) || random(4) == 0) && (trg.alter != 3 || ashut < 10 && random(ashut) == 0 || trg.eternal)) { trg.d.gotoAndStop(5); } else { trg.d.gotoAndStop(2); } } else { trg.d.d.gotoAndStop(1); } trg.fire = 0; } else { if (f2) { if (trg.fire++ == 10) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 250 - Math.random() * 20) && !trg.boss) { boil(true); } else { boil(false); } if (trg.specoz == 23 && (trg.alter != 3 || _root.chaps > 2)) { boil(trg.alter == 2); if (trg.alter != 3) { boil(trg.alter == 2); } } } } } } function boil(f1, f2) { if ((trg.alter == 3 || trg.c2 || trg.col == 31 || trg.s == 67 || trg.s == 73 || trg.s == 28 || trg.s == 64 || trg.s >= 100 || trg.s == 46 || trg.s == 94) && trg.s != 15 && f2 != 1 && f2 != 0 || f2 == 2) { if (trg.s == 88 || trg.s == 30) { _root.soundy('boil hatch.wav'); } if (bigone) { f8 = 94; } else { f8 = 85; } spispaw = true; if (trg.s == 28) { trg2 = spaw(xenf, yenf, 10, f8); } else { if (!f1) { trg2 = spaw(trg.xp, trg.yp, 100, f8); } else { trg2 = spaw(player.xp * 0.5 + trg.xp * 0.5, player.yp * 0.5 + trg.yp * 0.5, 70, f8); } } spispaw = undefined; trg2.xpp = trg2.xp; trg2.ypp = trg2.yp; trg2.xp = trg.xp; trg2.yp = trg.yp; xenf = trg2.xpp - trg2.xp; yenf = trg2.ypp - trg2.yp; f1 = enfget(xenf, yenf); f1 = f2 / f1; f1 = 0.04; trg2.xbew = xenf * f1; trg2.f1 = trg2.xbew; trg2.ybew = yenf * f1; trg2.f2 = trg2.ybew; trg2.fra = 0; trg2.d.gotoAndStop(5); trg2.apf = false; trg2.df = -8; trg2.bh = false; trg.fire = -100; if (trg.specoz == 23 && trg.s == 100) { trg2.hp -= 3; trg.hp -= 5; } if (trg.specoz == 23 && trg.s == 94) { trg2.specoz = 23; speco(trg2); } } else { if ((trg.alter == 2 || f2 == 1) && trg.s != 15 && f2 != 0 || f2 == 1) { trg.fire = -50; green(false, f1); _root.soundy('heartout.wav', 70); } else { bossfire(3 + random(2), f1, 10); } } } function braz() { for (z in ball) { trg2 = ball[z]; if (trg2.s > 10 && trg2 != trg) { if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 60)) { hurt(trg2, 100); } } } } function spih() { var v1 = spaw(player.xp, player.yp, 50, 29.3); v1.fra = 0; v1.xpp = v1.xp; v1.ypp = v1.yp; v1.xp = trg.xp; v1.yp = trg.yp; v1.d.gotoAndStop(2); v1.d.d.gotoAndStop(5); tgr2.apf = true; v1.f1 = 100; } function bawssmart2() { switch (trg.s) { case 94: case 85: bord(); f1 = trg.d._currentframe == 5 && trg.s != 94; trg.bh = !f1; trg.ggh = f1; if (f1) { trg.xbew = trg.f1; trg.ybew = trg.f2; trg.df += 0.7; trg.d.d._y += trg.df; if (trg.d.d._y > -13 && trg.xpp != undefined) { trg.d.gotoAndStop(1); trg.xp = trg.xpp; trg.yp = trg.ypp; trg.xpp = undefined; } } else { if (trg.still > fra) { trg.xbew *= 0.9; trg.ybew *= 0.9; trg.d.gotoAndStop(1); } else { randrunc(); } } break; case 96: trg2 = trg.trg2; if (trg2 == undefined || trg2.dones) { trg.s = 18; trg.trg2 = undefined; trg.mhp = 20; trg.hp = 20; trg.flyai = true; trg.ybb = 0; trg.xbb = 0; trg.imba = false; trg.d._yscale = 118; trg.d._xscale = 118; } else { if (trg2.xp > 10) { if (trg2.s == 90 || trg2.shit || trg2.s == 67) { f11 = -(fra * 0.02) * Math.PI + trg.wtf / 2; if (trg.wtf % 2 == 0) { f11 *= -1; } trg.xpp = trg2.xp + Math.sin(f11) * 60; trg.ypp = trg2.yp + Math.cos(f11) * 50; } else { if (trg.wtf % 2 == 0) { f11 *= -1; } f11 = fra * 0.04 * Math.PI + trg.wtf / 2; f1 = 1; if (trg2.s == 26 && trg2.eternal) { f1 = 1.1; } else { if (trg2.s == 22 && trg2.eternal) { f1 = 1.6; } } trg.xpp = trg2.xp + Math.sin(f11) * 25 * f1; trg.ypp = trg2.yp + Math.cos(f11) * 20 * f1; } trg.imba = true; trg.xp += trg.xpp; trg.yp += trg.ypp; trg.xp *= 0.5; trg.yp *= 0.5; trg.xbew *= 0.9; trg.ybew *= 0.9; } } break; case 74: case 75: case 76: if (trris + 45 + random(100) <= fra && random(100) == 0) { trris = fra; _root.soundy('boss2_bubbles' + random(2) + '.wav', 100); } case 77: f1 = trg.s - 74; f2 = [5, 17, 16, 15]; f3 = [1, 7, 10, 13]; f2 = f2[f1]; f3 = f3[f1]; trg.xbew *= 0.8; trg.ybew *= 0.8; if (fra - trg.fra < 10) { trg.d.gotoAndStop(f2); } if (trg.d._currentframe == f2) { trg.xbew *= 0.45; trg.ybew *= 0.45; } trgnextd(); if (trg.d._currentframe == 1) { trg.d.gotoAndStop(f3); } if (trg.d._currentframe == 13 && trg.d.d._currentframe == 17) { if (trg.eternal && Math.abs(trg._xscale) > 120) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 80); cirf(trg.xp, trg.yp + 20, 8, Math.round(4 + Math.abs(trg._xscale) / 40)); } else { if (trriss + 5 + random(20) <= fra) { trriss = fra; _root.soundy('gooattach0' + random(2) + '.wav', 40 + random(30)); } } } if (trg.d._currentframe == 10 && trg.d.d._currentframe == 18) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 60); } if ((trg.d._currentframe == 2 || trg.d._currentframe == 7 || trg.d._currentframe == 8) && trg.d.d._currentframe == 22) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 80); } if (trg.d._currentframe == 3 && trg.d.d._currentframe == 24) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 100); } if (trg.d._currentframe == 5 && trg.d.d._currentframe == 22) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 120); } trg.bh = (trg.d._currentframe != 4 || trg.d.d._currentframe < 11) && (trg.d._currentframe != 5 || trg.d.d._currentframe > 21); switch (trg.d._currentframe) { case 10: if (trg.d.d._currentframe == 1) { if (random(2) == 0) { trg.d.gotoAndStop(11); } else { trg.xpp = undefined; } } else { randrun(); } if (trg.d.d._currentframe > 19) { trg.xbew *= 0.6; trg.ybew *= 0.6; } break; case 11: if (trg.d.d._currentframe == 21) { quadf(trg.xp, trg.yp, 8); _root.soundy('heartout.wav'); } break; case 7: if (trg.d.d._currentframe == 1) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1500); f1 = 0; if (enf < 250) { if (random(2) == 0) { trg.d.gotoAndStop(8); f1 = 0.4; } else { f1 = 1.5; } } else { f1 = 1.5; xenf = crand(10); yenf = crand(); enf = 10; } f1 /= enf; trg.xpp = -xenf * f1; trg.ypp = -yenf * f1; } case 8: if (trg.d.d._currentframe < 23 && trg.d.d._currentframe > 4) { if (trg.xpp != undefined) { trg.xbew += trg.xpp; trg.ybew += trg.ypp; } } else { trg.xbew *= 0.9; trg.ybew *= 0.9; } if (trg.d.d._currentframe == 23 && trg.d._currentframe == 8) { quadf(trg.xp, trg.yp, 10, random(2) * 2); } break; case 1: if (trg.s == 74) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1500); f1 = 0; if (enf < 250) { if (random(2) == 0) { trg.d.gotoAndStop(3); f1 = 0.4; } else { trg.d.gotoAndStop(2); f1 = 1.5; } } else { f1 = 3; trg.d.gotoAndStop(4); } f1 /= enf; trg.xpp = -xenf * f1; trg.ypp = -yenf * f1; } break; case 5: if (trg.eternal) { if ((trg.d.d._currentframe == 26 || trg.d.d._currentframe == 29) && fra > 60) { quadf(trg.xp, trg.yp + 25, 10, true); } } case 3: if (trg.d.d._currentframe == 23 && fra > 60) { if (trg.d._currentframe == 5) { quadf(trg.xp, trg.yp + 25, 10, true); } else { bossfire(8, false); if (trg.eternal) { bossfire(16, false); } } } case 2: if (trg.d.d._currentframe < 23 && trg.d.d._currentframe > 4) { if (trg.xpp != undefined) { trg.xbew += trg.xpp; trg.ybew += trg.ypp; } } else { trg.xbew *= 0.9; trg.ybew *= 0.9; } break; case 6: case 9: if (trg.s == 75 && trg.d.d._currentframe == 19 || trg.s == 74 && trg.d.d._currentframe == 30) { if (trg.s == 74) { f1 = 30; } else { f1 = 20; } f1 = crand(f1); f2 = crand(); f3 = 0.3; trg2 = create(trg.xp + f1, trg.yp + f2, 0, f1 * f3, f2 * f3, 0, trg.s + 1); trg3 = create(trg.xp - f1, trg.yp - f2, 0, -f1 * f3, -f2 * f3, 0, trg.s + 1); trg2.fra = -100; trg3.fra = -100; if (trg.eternal) { trg4 = create(trg.xp + f2, trg.yp - f1, 0, f2 * f3, -f1 * f3, 0, trg.s + 1); trg4.fra = -100; trg4.specoz = 23; trg3.specoz = 23; trg2.specoz = 23; trg4.eternal = true; trg3.eternal = trg4.eternal; trg2.eternal = trg4.eternal; speco(trg2); speco(trg3); speco(trg4); if (trg.s == 74) { f1 = 1.3; } else { f1 = 1.2; } trg4._yscale *= f1; trg4._xscale = trg4._yscale; trg3._yscale = trg4._yscale; trg3._xscale = trg4._yscale; trg2._yscale = trg4._yscale; trg2._xscale = trg4._yscale; } trg.dones = true; trg.dfr = true; } break; case 13: randrun(); if (trg.d.d._currentframe == 1) { trg.xpp = undefined; } if (trg.d.d._currentframe > 19) { trg.xbew *= 0.6; trg.ybew *= 0.6; } } break; case 73: trg.outway = true; case 72: case 71: if (fra < 30 && altboss) { speco(trg); } if (trg.specoz == 15) { trg.xbew *= 0.9; trg.ybew *= 0.9; } f1 = trg.s - 71; if (fra - trg.fra < 10) { trg.d.gotoAndStop(4 + f1 * 3); } if (trg.d._currentframe == 4 + f1 * 3) { trgnextd(); trg.xbew *= 0.45; trg.ybew *= 0.45; } if (trg.d._currentframe != 4 + f1 * 3) { trg.d.gotoAndStop(2 + f1 * 3); f2 = 0.2 + f1 * 0.18; if (trg.xbew > 0) { xenf = f2; } else { xenf = -f2; } if (trg.ybew > 0) { yenf = f2; } else { yenf = -f2; } trg.xbew *= 0.9; trg.ybew *= 0.9; trg.xbew += xenf; trg.ybew += yenf; } break; case 57: if (trg.d._currentframe == 5) { if (trg.d.d._currentframe == 26) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 80); } } trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); switch (trg.d._currentframe) { case 1: case 2: randrun(); if (random(30) == 0) { trg.d.gotoAndStop(5); } break; case 5: if (trg.eternal && trg.alter == 2) { if (trg.d.d._currentframe == 4) { trg.reps = 2; } if (trg.d.d._currentframe == 33) { if (trg.reps-- > 0) { trg.d.d.gotoAndStop(16); } } } if (trg.d.d._currentframe == 30) { quadf(trg.xp, trg.yp, 10, true); } } sideflip(100); } } function splush() { if (trg.firee <= 0) { trg.firee = 0; } trg.firee += 0.45; f1 = 10.5; xenf = Math.sin(trg.firee) * f1; yenf = Math.cos(trg.firee) * f1; noho = true; xxenf = trg.xp - player.xp; yyenf = trg.yp - player.yp; var v1 = 0; while (v1 < 4) { var v2 = xenf; xenf = yenf; yenf = -v2; if (xenf * xxenf + yenf * yyenf <= 1000) { trg2 = ffmo(trg.xp + xenf * 2, trg.yp + yenf * 2, 0, xenf + trg.xbew, yenf * 0.8 + trg.ybew, 0, 9, trg.s, true); trg2.dm -= 1.3; } ++v1; } noho = false; } function bawssmart() { switch (trg.s) { case 32: bord(); if (trg.eternal) { firemode(300, 5); } if (fra % 3 == 0) { splater(trg.xp, trg.yp + 8, 1 + random(10), Math.random() * 0.5 + 0.2); } markhere(trg); if (!trg.gogo) { randrunx(0.75); trg.xbew *= 0.85; trg.ybew *= 0.8; if ((fra + trg.e) % 7 == 0) { trg.gogo = chaa(); } } else { if (trg.gh) { trg.gogo = false; trg.ypp = undefined; trg.xpp = trg.ypp; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xbew += trg.xpp; trg.ybew += trg.ypp; outgrid(trg.til); if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.yp *= 0.9; trg.yp += yenf * 0.1; } else { trg.xp *= 0.9; trg.xp += xenf * 0.1; } } } if (ashut < 5) { f11 = (fra + trg.e) % 12 == 0; f2 = (fra + trg.e) % 12 == 6; } else { if (ashut < 10) { f11 = (fra + trg.e) % 18 == 0; f2 = (fra + trg.e) % 18 == 9; } else { f11 = (fra + trg.e) % 24 == 0; f2 = (fra + trg.e) % 24 == 12; } } if (f11 || enfget(trg.xbew, trg.ybew) > 3 && f2) { trg2 = parc('bloo', trg.xp, trg.yp, 0, 123); if (trg.special) { trg2.specol = trg.specol; trg2.special = true; speco(trg2); } else { colorit(trg2, trg.rrr, trg.rrr, trg.rrr, 0, 0, 0); } } break; case 88: trg.xbew *= 0.75; trg.ybew *= 0.75; if (trg.d._currentframe < 3) { randrun(); walkframe(2); sideflip(trg.xbew); boiler(true); } else { trgnextd(); boiler(false, true); } break; case 30: trg.xbew *= 0.8; trg.ybew *= 0.8; f1 = trg.hp / hps[trg.s]; if (f1 >= 1) { trgnextd(); boiler(trg.d._currentframe == 1, trg.d._currentframe == 5); if (f1 < 1.2) { trg.hp += 0.06 / (1 + fra * 0.001); } } else { trg.fire = 0; trg.hp += trg.hppp * 1.2; if (trg.boss) { trg.hppp += 0.01; } else { trg.hppp += 0.02; } if (trg.alter == 3) { trg.hppp *= 0.8; } trg.hppp *= 0.9; trg.d.gotoAndStop(1); trg.d.hx.gotoAndStop(trg.alter); trg.d.hx.d.gotoAndStop(Math.max(1, 14 - Math.round(f1 * 13))); } break; case 91: if (trg.hpp == undefined) { trg.hpp = 0; trg.hppp = 0; } if (trg.specoz == 23) { trg.xbew *= 0.85; trg.ybew *= 0.85; } else { trg.xbew *= 0.77; trg.ybew *= 0.77; } if (fra5) { v1 = (1 - trg.hp / trg.mhp) * 10; if (trg.hpp < v1) { ++trg.hpp; trg.d.b.sh._yscale = trg.d.b.d._yscale + 30; trg.d.b.sh._xscale = trg.d.b.d._yscale * 2.5 + 50; sideflip(player.xp - trg.xp); trg.d.d.play(); if (trg.d.d._currentframe == 1) { _root.soundy('Wheezy_Cough_' + random(3) + '.mp', 100); } } if (trg.eternal) { v1 -= 7; } trg.d.b.d._xscale = 100 - v1 * 4; trg.d.b.d._yscale = trg.d.b.d._xscale; } else { if (trg.d.d._currentframe == 1 && trg.d._currentframe == 1) { sideflip(trg.xbew * 5); } else { if (trg.d.d._currentframe == 9 && trg.d._currentframe == 1) { while (trg.hpp > trg.hppp) { trg.hppp += 1 + Math.random(); if (ashut < 7) { ++ashut; xenf = (player.xp - trg.xp) * 0.1 + crand(10); yenf = (player.yp - trg.yp) * 0.1 + crand(10); create(trg.xp, trg.yp, 0, xenf, yenf, 0, 14); } } } } } if ((random(100) == 0 || trg.eternal && random(30) == 0 && ashut < 5) && ashut < 10) { xenf = crand(10); yenf = crand(10); if (ashut < 10) { trg2 = create(trg.xp, trg.yp, 0, xenf, yenf, 0, 18); if (trg.specoz == 23) { trg2.hp = 20; attach(trg2, 96); } } } case 25: if (trg.duke) { ++dukes; } if (trg.alt) { trg.nobomb = true; trg.d.gotoAndStop(9); splater(trg.xp, trg.yp, 1 + random(10), Math.random() * 0.3 + 0.3); if (trg.alt != 2) { if (helpss <= 0 || slug == undefined) { trg.dones = true; } } } if (trg.alter == 2) { trg.nobomb = true; } if (ups[9]) { f1 = 0.25; } else { f1 = 0.45; } if (trg.ybew > 0) { f2 = f1; } else { f2 = -f1; } if (trg.xbew > 0) { f1 = f1; } else { f1 = -f1; } trg.xbew *= 0.9; trg.ybew *= 0.9; trg.xbew += f1; trg.ybew += f2; break; case 102: if (trg.eternal) { bord(560, 80, 390, 190); trg.xpp = undefined; trg.hp += 400 / (800 + fra * 4); trg._xscale = trg._xscale * 0.7 + 39; trg._yscale = trg._xscale * 0.5 + 65; if (random(40) == 0) { if (trrisp + 25 + random(100) <= fra) { trrisp = fra; f0 = 0; for (;;) { if (!(trg.xpp == undefined && f0 < 100)) break; telpx(); ++f0; } if (trg.xpp > 0) { parc('bloodsplash-teleport', trg.xp, trg.yp, 0, 200, trg.dpppp + 123); trg.xp = trg.xpp; trg.yp = trg.ypp; trg._xscale = 30; trg._yscale = 60; trg.xpp = undefined; _root.soundy('hell_portal2.wav'); } } } } if (trris + 45 + random(100) <= fra && random(20) == 0 && trg.state == 0) { trris = fra; _root.soundy('Scared_Whimper_' + random(3) + '.mp', 100); } isaaaac = true; f1 = Math.round(((trg.mhp - trg.hp) / trg.mhp) * 3 - 0.5); if (trgnextd(undefined, true)) { if (trg.d._currentframe == 4) { trg.d.gotoAndStop(7); } else { trg.d.gotoAndStop(1); } } if (trg.d._currentframe == 1) { if (trg.state < f1) { trg.state = f1; f2 = [0, 10, 7, 3]; trg.d.gotoAndStop(f2[f1]); } else { f2 = [1, 5, 8]; trg.d.gotoAndStop(f2[f1]); } } if (!trg.eternal) { trg.xp = trg.xpp; trg.yp = trg.ypp; } trg.xbew *= 0.6; trg.ybew *= 0.6; if (trg.hurt && trg.state != 2) { trg.hurt = false; bossfire(1, true); } if (trg.eternal) { if (altboss) { } else { if (random(20) == 0) { bossfire(1, true); if (random(3) == 0) { bossfire(1, true); } } } } if (altboss && random(60) == 0 && ashut < 20) { trg2 = create(trg.xp, trg.yp, 0, crand(10), crand(10), 0, 18); trg2.die = true; trg2.outway = true; trg2.fra = -20; } if (trg.state == 2) { if (trg.fire-- < 0) { if (random(10) == 0) { anarch = 10; analt = true; trg.fire = 40; } else { if (random(10) == 0 && ashut < 4) { trg.fire = 320; trg2 = spaw(trg.xp, trg.yp, 100, 38.1); trg2.hp *= 0.5; if (ashut < 2 || trg.eternal && random(3) == 0) { trg2 = spaw(trg.xp, trg.yp, 100, 38.1); trg2.hp *= 0.5; } } } } } switch (trg.d._currentframe) { case 7: if (trg.d.d._currentframe == 17) { _root.soundy('superholy.wav'); } break; case 10: if (trg.d.d._currentframe == 20) { _root.soundy('Holy.mp'); } break; case 1: case 5: case 8: if (random(60) == 0) { f2 = [2, 6, 9]; trg.fire = 40; trg.d.gotoAndStop(f2[trg.state]); } break; case 2: if (trg.eternal && altboss) { if (trg.d.d._currentframe >= 3 && trg.d.d._currentframe < 6) { splush(); } } if (trg.d.d._currentframe == 3) { if (!trg.eternal || !altboss) { cirf(trg.xp, trg.yp + 20, 10, 12); } _root.soundy('thumbs down.wav', 50); } break; case 6: if (trg.eternal && altboss) { if (trg.d.d._currentframe >= 6 && trg.d.d._currentframe < 9) { splush(); } } if (trg.d.d._currentframe == 6) { if (!trg.eternal || !altboss) { cirf(trg.xp, trg.yp, 10, trg.d._currentframe * 0.666); } _root.soundy('thumbsup.wav'); } break; case 9: if (trg.eternal && altboss) { if (trg.d.d._currentframe >= 19 && trg.d.d._currentframe <= 22) { splush(); } } if (trg.d.d._currentframe == 17) { _root.soundy('Powerup2.mp3'); } if (trg.d.d._currentframe == 19) { if (!trg.eternal || !altboss) { cirf(trg.xp, trg.yp, 10, trg.d._currentframe * 0.666); } } } if (trg.eternal) { trg.d.s._visible = false; trg.d.d.s._visible = false; trg.d.d.d.s._visible = false; } break; case 101: if (altboss) { spidboss = true; if (trg.eternal) { trg.hp -= 0.02; } } if (trgnextd(undefined, true) || trg.d._currentframe < 3) { f4 = 3; if (altboss) { --f4; } if (trg.d._currentframe == 7) { if (trg.goner) { trg.done = true; } else { if (trg.stomps++ < f4 || random(7) == 0) { trg.d.d.gotoAndStop(1); } else { trg.d.gotoAndStop(5); } } } else { if (trg.d._currentframe == 4) { trg.d.gotoAndStop(7); } else { trg.d.gotoAndStop(1); } } } trg.bh = (trg.d._currentframe != 4 || trg.d.d._currentframe < 21) && (trg.d._currentframe != 5 || trg.d.d._currentframe > 6) && (trg.d._currentframe != 7 || trg.d.d._currentframe > 16 && trg.d.d._currentframe < 37) && (trg.d._currentframe != 6 || trg.d.d._currentframe < 6 && trg.d.d._currentframe > 73); if (trg.d._currentframe == 5 && trg.d.d._currentframe == 9 || trg.d._currentframe == 7 && trg.d.d._currentframe == 15) { trg.dmg = 300; gosplash(); if (trg.d._currentframe == 5) { _root.soundy('Hellboss_Groundpound_' + random(2) + '.wav', 70); } else { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 100); } if (trg.d._currentframe == 5 || trg.eternal && !altboss) { if (trg.goner) { f0 = 6; } else { f0 = 10; } quadf(trg.xp, trg.yp, f0, true); } if (altboss) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 2; trg2._yscale = trg2._xscale; colorit(trg2, 0, 0, 0, 255, 255, 255); } if (trg.eternal) { if (egggs > 0) { if (fra > 300) { egggs *= 0.92; } else { egggs *= 0.85; } egggs -= 0.01; } else { egggs = 0; } } if (trg.eternal && (ashut < 7 && egggs < 0.3 + random(2) || trg.d._currentframe == 5) && altboss) { ++egggs; trg2 = create(trg.xp, trg.yp - 10, 0, 0, 0, 0, 30.2); if (trg.d._currentframe == 5) { trg2.eternal = true; trg2.specoz = 23; trg2._yscale *= 1.4; trg2._xscale = trg2._yscale; speco(trg2); trg2.hp *= 1.3; trg2.mhp = trg2.hp; } trg2.outway = true; } } trg.xbew *= 0.8; trg.ybew *= 0.8; switch (trg.d._currentframe) { case 3: if (trg.d.d._currentframe == 18) { if (altboss) { spih(); } } if (trg.d.d._currentframe == 20) { trg.yp += 15; if (!altboss) { boil(); boil(); if (random(2) == 0) { boil(); } if (trg.eternal) { boil(); boil(); boil(); } } _root.soundy('Boss_Spit_Blob_Barf.mp', 100); trg.yp -= 15; } break; case 1: if (random(20) == 0) { f2 = [4, 6, 6]; if (ashut < 4) { f2.push(3, 3); } f1 = f2[random(f2.length)]; trg.stomps = 0; trg.d.gotoAndStop(f1); } break; case 6: f1 = trg.d.d._currentframe; f2 = f1 - 16; f3 = 10; f2 %= f3; if (f2 == 0 && f1 < f3 * 4) { if (trg.stomps != 3 || !altboss) { trg2 = spaw(trg.xp, trg.yp, random(300) + 60, 101); trg2.goner = true; trg2.d.gotoAndStop(7); trg2.stomps = trg.stomps++; } } break; case 5: if (altboss) { f1 = trg.d.d._currentframe; if (f1 > 5 && f1 < 29) { f2 = 50 + 2 * f1; trg2 = parc('bloo', trg.xp + crand(f2), trg.yp + crand(f2)); trg2._xscale *= 1 + f1 * 0.05; trg2._yscale = trg2._xscale; colorit(trg2, 0, 0, 0, 255, 255, 255); } } if (trg.d.d._currentframe == 1) { trg.xp = player.xp; trg.yp = trg.ypp; sizes[101] = 30; } break; case 7: if (trg.d.d._currentframe == 1) { trg.xp = player.xp; trg.yp = player.yp; sizes[101] = 15; } } break; case 100: if (altboss && trg.eternal) { trg.hp += 10 / (50 + fra); } spidboss = true; trg.outway = true; trgnextd(); if (trg.specoz == 20 && fra2 && (trg.d.d._currentframe != 9 || trg.d._currentframe != 7)) { trgnextd(); } f1 = 0.8; if (f1 != 1) { trg.xbew *= f1; trg.ybew *= f1; } trg.bh = true; trg.ggh = false; switch (trg.d._currentframe) { case 5: if (trg.d.d._currentframe == 7) { _root.soundy('Boss_Lite_Roar.mp', 100); } if (trg.d.d._currentframe > 5 && trg.d.d._currentframe < 23) { trg.bh = false; trg.xbew += trg.xpp; trg.ybew += trg.ypp; } if (trg.d.d._currentframe == 23) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 100); braz(); if (trg.specoz == 23) { if (altboss) { f1 = true; } else { f1 = 2; } quadf(trg.xp + trg.xbew * 2, trg.yp + trg.ybew * 2, 10, f1); enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); if (enf > 110 && trg.fire-- > 0) { enf = 3 / enf; trg.xbew *= 0.7; trg.ybew *= 0.7; trg.xpp = -xenf * enf; trg.ypp = -yenf * enf; trg.d.d.gotoAndStop(2); } } } trg.xbew *= 0.9; trg.ybew *= 0.9; break; case 1: f1 = random(2); ++trg.fire; enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); if (random(3) == 0 && enf > 100 || !altboss && ashut > 5 || trg.nextjump) { f1 = 5; trg.nextjump = false; enf = 4 / enf; trg.xbew *= 0.7; trg.ybew *= 0.7; trg.xpp = -xenf * enf; trg.ypp = -yenf * enf; trg.runs = 0; if (trg.specoz == 23) { trg.fire = 4; } } else { if (altboss) { f2 = [2, 6]; if (ashut < 6) { f2.push(7); } } else { if (trg.specoz == 23) { if (ashut < 4 + random(4)) { f2 = [2, 6, 7]; } else { f2 = [2, 6]; } } else { f2 = [2, 6, 7]; } } f1 = f2[random(f2.length)]; } trg.d.gotoAndStop(f1); break; case 7: if (trg.d.d._currentframe == 3) { _root.soundy('Wheezy_Cough_' + random(3) + '.mp', 160); } if (trg.d.d._currentframe == 9) { if (altboss) { if (random(3) == 0) { spih(); } else { if (random(2) == 0 && ashut < 5) { boil(); boil(); if (trg.eternal && ashut < 9) { boil(); if (random(2) == 0) { boil(); } } } else { bigone = true; boil(); bigone = undefined; if (trg.eternal) { boil(); if (random(2) == 0) { boil(); } } } } } else { if (trg.specoz == 20) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = -13 / enf; xenf *= enf; yenf *= enf; trg2 = create(trg.xp, trg.yp, 0, xenf + yenf * 0.4, yenf + xenf * 0.4, 0, 18); trg3 = create(trg.xp, trg.yp, 0, xenf - yenf * 0.4, yenf - xenf * 0.4, 0, 18); trg2.fra -= 20; trg2.die = true; trg2.pbh = true; trg3.fra -= 20; trg3.die = true; trg3.pbh = true; } else { if (trg.specoz < 20) { cirf(trg.xp, trg.yp - 15, 8, 6); } else { boil(); if (trg.specoz == 23) { boil(); boil(); } } } } } break; case 6: f1 = trg.d.d._currentframe - 18; if (f1 > 0 && f1 < 17 && (altboss || f1 < 8)) { trg2 = parc('bloo', trg.xp + crand(f1 * 3), trg.yp + crand(f1 * 3)); trg2._xscale *= 1 + f1 * 0.2; trg2._yscale = trg2._xscale; if (trg.specoz < 20) { colorit(trg2, 0, 0, 0, 0, 0, 0); } else { colorit(trg2, 0, 0, 0, 255, 255, 255); } if (fra2) { _root.soundy('boss2_bubbles' + random(2) + '.wav', 150); } } if (altboss) { if (trg.d.d._currentframe == 18) { quadf(trg.xp, trg.yp, 10, true); } } else { if (boils < 2) { if (trg.d.d._currentframe == 18) { if (trg.specoz == 20) { f1 = 30; } else { if (trg.specoz < 20) { f1 = 94; } else { f1 = 30.3; } } trg.trg2 = create(trg.xp, trg.yp + 30, 0, 0, 0, 0, f1); if (f1 != 94) { ++boils; } trg.nextjump = true; trg.trg2.hp = 10; } } if (trg.d.d._currentframe == 25) { trg.trg2.d.d.hx.gotoAndStop(3); trg.trg2.d.d.hx.d.gotoAndStop(8); } } } break; case 99: if (trg.eternal) { f1 = 100 / (200 + fra); if (trg.hp < trg.mhp && _root.chaps > 2) { trg.hp += f1; } breakdance(trg.s); } if ((fra + trg.e) % 5 == 0 && fra > 10) { f1 = Math.random() * 2; f2 = 20 - f1 * 10; splater(trg.xp + crand(f2), trg.yp + crand(f1), 1 + random(10), (f1 + 0.4) * trg._xscale / 100); } if (trgnextd(undefined, true)) { if (trg.d._currentframe == 8) { if (enfget(trg.xbew, trg.ybew) > 2 && trg.runs++ < 10) { trg.d.d.gotoAndStop(1); } else { trg.d.nextFrame(); } } else { if (trg.d._currentframe == 7) { trg.d.nextFrame(); } else { trg.d.gotoAndStop(1); } } } f1 = 1; if (trg.d._currentframe < 7) { f1 = 0.8; } else { if (fra5) { f1 = 0.97; } } if (f1 != 1) { trg.xbew *= f1; trg.ybew *= f1; } switch (trg.d._currentframe) { case 8: if (trg.eternal) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.4 / enf; trg.xbew *= 0.96; trg.ybew *= 0.96; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } break; case 7: if (trg.d.d._currentframe == 3) { _root.soundy('Monster_Roar_1.mp', 100); } trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xbew += trg.xpp; trg.ybew += trg.ypp; break; case 1: f1 = random(2); ++trg.fire; if (trg.fire >= 3 || trg.hp < 100) { f1 = 7; trg.fire = 0; enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 4 / enf; trg.xbew *= 0.7; trg.ybew *= 0.7; if (trg.specoz == 7) { enf *= 0.7; } trg.xpp = -xenf * enf; trg.ypp = -yenf * enf; trg.runs = 0; } else { f2 = [2, 6]; if (ashut < 6) { f2.push(5); } if (trg.specoz == 21) { f2.splice(1, 1); } f1 = f2[random(f2.length)]; if (trg.specoz == 7) { f1 = 1; } } trg.d.gotoAndStop(f1); break; case 5: if (trg.d.d._currentframe == 13) { _root.soundy('summonsound.wav', 110); f1 = 14; if (trg.specoz == 21) { f1 += 0.1; } trg2 = create(trg.xp - 30, trg.yp - 30, 0, 0, -10, 0, f1); if (trg.eternal) { trg2.eternal = true; trg2.specoz = 23; speco(trg2); trg2._yscale *= 1.4; trg2._xscale = trg2._yscale; trg2.mhp *= 2; trg2.hp = trg2.mhp; } trg2.fra = 0; trg2.outway = true; } break; case 6: if (trg.d.d._currentframe == 7) { _root.soundy('Boss_Lite_Roar.mp', 100); } if (trg.d.d._currentframe == 18) { if (trg.eternal) { cirf(trg.xp, trg.yp - trg._yscale * 0.2, 11, 12); } else { quadf(trg.xp, trg.yp, 10, true); } _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 100); } } } } function smarts3() { switch (trg.s) { if (trg.s !== 20) { } else { case 43: if (altboss && trg.s == 43) { blackout = 2; } if (trg.specoz == 23 && trg.s == 20) { if (trg.hp < trg.mhp * 0.25 && trg._yscale > 70 || trg.hp < trg.mhp * 0.5 && trg._yscale >= 110) { sizes[20] = 24; xenf = 20; trg2 = create(trg.xp, trg.yp - 20, 0, 0, 0, 0, 20); trg3 = create(trg.xp, trg.yp - 20, 0, 0, 0, 0, 20); trg2._yscale = trg._yscale * 0.66; trg2._xscale = trg2._yscale; trg3._yscale = trg._yscale * 0.66; trg3._xscale = trg3._yscale; trg3.splity = true; trg2.splity = trg3.splity; if (trg._yscale < 110) { trg2.hp *= 0.35; trg3.hp *= 0.35; } else { trg2.hp *= 0.5; trg3.hp *= 0.5; } _root.soundy('summonsound.wav', trg._yscale); trg.done = true; } } trg.bh = (trg.d._currentframe != 6 || trg.d.d._currentframe > 22 || trg.d.d._currentframe < 8) && (trg.d._currentframe != 2 || trg.d.d._currentframe < 8) && (trg.d._currentframe != 3 || trg.d.d._currentframe > 33) && trg.d._currentframe != 5; whuf = (trg.s == 43 && fra2 && trg.specoz == 14 || trg.specoz == 23 && trg.s == 20 && fra2 && trg.d.currentframe != 4 && !trg.splity) && !trg.weap; if (trg.weap) { trgnextd(); if (whuf) { trgnextd(); } trg.xbew *= 0.8; trg.ybew *= 0.8; switch (trg.d._currentframe) { case 2: if (trg.d.d._currentframe == 16) { trg.done = true; } break; case 3: if (!trg.bh) { trg2 = trg.trg2; if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 1000) > 0) { trg.xbew -= xenf * 0.01; trg.ybew -= yenf * 0.01; } } if (trg.d.d._currentframe == 32) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 80); if (trg.specoz == 23 && !altboss && trg.s == 43) { quadf(trg.xp, trg.yp, 10, random(1) * 2); } for (z in ball) { trg2 = ball[z]; if (trg2.s > 9 && trg != trg2) { if (enfcheck(trg2.xp, trg2.yp, trg.xp, trg.yp, 80)) { hurt(trg2, 120); } } } } else { if (trg.d.d._currentframe == 72) { trg.d.gotoAndStop(2); } } } } else { trg.ggh = !trg.bh; trg.flyby = !trg.bh; if ((fra + trg.e) % 5 == 0 && fra > 10) { splater(trg.xp, trg.yp, 1 + random(10), (Math.random() + 1) * trg._xscale / 100); } trg.xbew *= 0.9; trg.ybew *= 0.9; switch (trg.mode) { case 10: trg.d.gotoAndStop(7); if (whuf) { trgnextd(); } trgnextd(); if (trg.d._currentframe == 1) { trg.mode = undefined; } break; default: if (trg.fra + 10 > fra) { trg.mode = 10; trg.d.gotoAndStop(7); } else { trg.modedone = false; trg.xpp = undefined; trg.d.gotoAndStop(1); if (trg.s == 43 && !altboss) { yenf = trg.yp - player.yp; if (Math.abs(yenf) < 20 + Math.random() * 50) { trg.mode = 1; } else { if (random(2) == 0) { trg.mode = 2; } else { trg.mode = 0; } } } else { trg.mode = random(3); if ((trg.specoz == 2 || trg.specoz == 23 && trg._yscale < 70) && trg.mode == 2 && trg.s == 20) { trg.mode = 1; } } if (trg.mode == 2) { _root.soundy('Boss_Lite_Roar.mp', 100); } if (trg.mode == 0) { _root.soundy('Boss_Lite_Roar.mp', 50); } if (trg.mode == 1) { sideflip(trg.xp - player.xp); trg.xpp = trg.xp - player.xp; } } goto 330358; case 1: //Invalid switch } trgnextd(); if (trg.d._currentframe == 1 && trg.modedone) { trg.mode = undefined; } else { if (altboss && trg.s == 43) { trg.d.gotoAndStop(8); sideflip(trg.xp - player.xp); } else { trg.d.gotoAndStop(4); } if (trg.s == 43) { if (trg.d.d._currentframe > 27 && trg.d.d._currentframe < 60) { if (altboss) { if (trg.d.d._currentframe == 29) { green(true); _root.soundy('Boss_Spit_Blob_Barf.mp', 100); if (trg.specoz == 23) { green(true); green(false); } } trg.modedone = true; } else { trg.ypp = 0; trg.xpp = -trg.d._xscale; lasershow(trg); trg.modedone = true; if (trg.specoz == 23) { if (trg.d.d._currentframe % 10 == 0) { f10 = 20; if (trg.alter == 2) { f10 *= 2; } z = 0; while (z < f10) { f0 = Math.random() * 5; if (trg.alter == 2) { if (random(2) == 0) { f0 = -f0; } } f1 = trg.xp + trg.xpp * f0 + crand(10); f2 = trg.yp + trg.ypp * f0 + crand(10); if (f1 > 60 && f1 < 580) { if (f2 > 150 && f2 < 410) { trg2 = parc('bloo', f1, f2, 0, 123); colorit(trg2, 4, 4, 4, 0, 0, 0); trg2.longstay = 130; } } ++z; } } } } } } else { if (trg.specoz == 23 && !trg.splity && trg.s == 20) { if (trg.d.d._currentframe > 23 && trg.d.d._currentframe < 45) { f1 = 1; if (!trg.modedone) { _root.soundy('Boss_Spit_Blob_Barf.mp', 100); f1 = 5; } bossfire(f1, true); trg.modedone = true; } } else { if (trg.d.d._currentframe > 23 && !trg.modedone) { _root.soundy('Boss_Spit_Blob_Barf.mp', 100); bossfire(13, true); trg.modedone = true; } } } } goto 330358; case 10: trg.d.gotoAndStop(6); trgnextd(); if (whuf) { trgnextd(); } if (trg.xpp == undefined) { f1 = player.xp; f2 = player.yp; f1 = ingrid(f1, f2); if (levzz(f1) < 1) { outgrid(f1); trg.xpp = xenf; trg.ypp = yenf; } } if (trg.d.d._currentframe == 23) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 50); if (trg.s == 43) { if (trg.specoz == 23 && !altboss) { quadf(trg.xp, trg.yp, 10, false); } f1 = trg.xp; f2 = trg.yp; for (a in ball) { trg2 = ball[a]; if (trg2.flyai) { if (enfcheck(f1, f2, trg2.xp, trg2.yp, 60)) { hurt(trg2, 30); } } } } } if (trg.xpp != undefined && trg.d._currentframe == 1) { if (random(2) == 0) { trg.xpp = undefined; trg.mode = trg.xpp; } else { _root.soundy('Boss_Lite_Roar.mp', 40); trg.xpp = undefined; } } else { if (trg.xpp != undefined && trg.d.d._currentframe < 24) { xenf = trg.xp - trg.xpp; yenf = trg.yp - trg.ypp; enf = enfget(xenf, yenf); enf = 1.2 / enf; if (trg.specoz == 14) { enf *= 1.5; } trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trg.xbew *= 0.9; trg.ybew *= 0.9; sideflip(xenf); } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } } goto 330358; case 1: trg.d.gotoAndStop(2); trgnextd(); if (whuf) { trgnextd(); } if (trg.d._currentframe == 1) { trg.d.gotoAndStop(3); trg.mode = 3; trg.modedone = false; trg.xpp = undefined; } else {} goto 330358; case 0: if (whuf) { trgnextd(); } trgnextd(); if (trg.d._currentframe == 1) { bossrep = !bossrep; if (!bossrep || trg.s != 43) { trg.mode = undefined; trg.xpp = undefined; } else { trg.mode = 2; trg.xpp = undefined; } } if (trg.xpp == undefined) { f1 = player.xp; f2 = player.yp; f1 = ingrid(f1, f2); if (levzz(f1) < 1) { outgrid(f1); trg.xpp = xenf; trg.ypp = yenf; } } if (trg.d.d._currentframe == 33 || trg.d.d._currentframe == 34 && whuf) { f3 = 5; if (trg.s == 43) { f1 = trg.xp; f2 = trg.yp; f3 = 20; for (a in ball) { trg2 = ball[a]; if (trg2.flyai) { if (enfcheck(f1, f2, trg2.xp, trg2.yp, 70)) { hurt(trg2, 30); } } } if (bossrep || trg.specoz == 23 && altboss) { if (altboss) { if (ashut < 4) { trg2 = []; trg2[0] = create(f1, f2, 0, f3, 0, 0, 15); if (trg.specoz != 23) { trg2[0].hp -= 20; } else { trg2[0].specoz = 23; speco(trg2[0]); } if (ashut < 2) { trg2[1] = create(f1, f2, 0, -f3, 0, 0, 15); if (trg.specoz != 23) { trg2[1].hp -= 20; } else { trg2[1].specoz = 23; speco(trg2[1]); } _root.soundy('summonsound.wav', 150); } else { _root.soundy('summonsound.wav', 100); } } if (trg.specoz == 23) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 3; trg2._yscale = trg2._xscale; colorit(trg2, 0, 0, 0, 0, 0, 0); } } else { trg2 = []; noet = true; trg2[0] = create(f1, f2, 0, f3, 0, 0, 61); trg2[2] = create(f1, f2, 0, 0, f3, 0, 61); trg2[0].die = true; trg2[2].die = true; if (trg.specoz != 14) { trg2[1] = create(f1, f2, 0, -f3, 0, 0, 61); trg2[3] = create(f1, f2, 0, 0, -f3, 0, 61); trg2[1].die = true; trg2[3].die = true; _root.soundy('summonsound.wav', 150); } else { _root.soundy('summonsound.wav', 100); } quadf(trg.xp, trg.yp, 10, true); noet = false; } } else { if (altboss) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 3; trg2._yscale = trg2._xscale; if (trg.specoz != 23) { trg2.perm = true; } colorit(trg2, 0, 0, 0, 0, 0, 0); } else { quadf(trg.xp, trg.yp, 10, true); } } } else { bossfire(18); } _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 100); } if (trg.xpp != undefined && trg.d.d._currentframe < 32) { xenf = trg.xp - trg.xpp; yenf = trg.yp - trg.ypp; enf = enfget(xenf, yenf); enf = (0.3 + enf * 0.006) / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } } label 330358: } //Invalid switch } } function smarts4() { switch (trg.s) { case 98: case 92: if (trg.d._currentframe < 3) { angstfind(); walkframe(2); trg.xbew *= 0.8; trg.ybew *= 0.8; if (fra % 3 == 0) { if (enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 100) || trg.specoz == 23 && random(70) == 0) { trg.d.gotoAndStop(5); } } } else { trg.xbew *= 0.7; trg.ybew *= 0.7; trgnextd(); if (trg.s == 98) { if (trg.d._currentframe == 5) { if (trg.d.d._currentframe < 5 && trg.specoz == 23) { trg.rep = 2; } if (trg.d.d._currentframe == 19) { f1 = true; if (trg.specoz == 18) { f1 = false; } quadf(trg.xp, trg.yp, 8, f1); splater(trg.xp, trg.yp + 12, 1 + random(10), Math.random() + 0.6); splater(trg.xp + crand(10), trg.yp + 12 + crand(10), 1 + random(10), Math.random() * 0.5 + 0.6); } if (trg.d.d._currentframe == 30 && trg.specoz == 23) { if (trg.rep-- > 0) { trg.d.d.gotoAndStop(13); } } } } else { if (trg.d._currentframe == 5) { if (trg.d.d._currentframe < 4 && trg.specoz == 23) { trg.rep = 2; } if (trg.d.d._currentframe == 22 && trg.specoz == 23) { if (trg.rep-- > 0) { trg.d.d.gotoAndStop(5); } } if (trg.d.d._currentframe == 13) { quadf(trg.xp, trg.yp, 8, trg.eternal); } } } } break; case 93: if (trg.eternal || trg.specoz == 23) { trg.flyby = true; } trg.randy = true; if (!trg.finder) { trg.finder = true; trg.trg2 = hearts[trg.trg2]; } trg2 = trg.trg2; if (trg2.specoz == 23) { if (trg.specoz != 23) { trg.specoz = 23; speco(trg); trg._yscale *= 1.1; trg._yscale = trg._yscale; trg.eternal = true; trg.help = 0.75; } if (!trg2.dones) { if (trg2.hp < trg2.mhp * trg.help) { xenf = trg2.xp - player.xp; yenf = trg2.yp - player.yp; enf = enfget(xenf, yenf); if (enf > 0) { xenf /= -enf; yenf /= -enf; parc('bloodsplash-teleport', trg.xp, trg.yp, 0, 100, trg.dpppp + 123); trg.xp = trg2.xp + xenf * 20; trg.yp = trg2.yp + yenf * 20; if (Math.abs(xenf) > Math.abs(yenf)) { yenf = 0; } else { xenf = 0; } xenf = -xenf; yenf = -yenf; trg.xbew = xenf * 3; trg.xbeww = trg.xbew; trg.ybew = yenf * 3; trg.ybeww = trg.ybew; trg.help -= 0.3; _root.soundy('hell_portal2.wav'); chaxx(); trg.gogo = true; trg.xpp *= 2; trg.ypp *= 2; trg.outway = true; } else { case 97: f2 = false; if (trg.trg2.hp <= 0) { if (trg.s == 97) { if (!altboss) { altboss = true; trg.imba = false; trg.hp = trg.mhp; trg.d.gotoAndStop(1); f2 = true; } } else { trg.dones = true; } } if (trg.s == 97) { if (!altboss) { f1 = trg.trg2.hp; if (f1 != trg.mhp && f1 < trg.hp) { trg.hp = f1; f2 = true; } } else {} if (f2 && random(2) == 0) { chaxy(); enf = enfcheck(f3, f4, f1, f2, 1000); chaxx(); trg.gogo = 2; f1 = 1.6; trg.xpp *= f1; trg.ypp *= f1; } } trg.ggh = fra2; markhere(trg); if (Math.abs(trg.xbeww) > Math.abs(trg.ybeww)) { if (trg.xbeww > 0) { f1 = 7; } else { f1 = 6; } } else { if (trg.ybeww > 0) { f1 = 1; } else { f1 = 5; } } trg.xbeww += trg.xbew; trg.ybeww += trg.ybew; trg.xbeww *= 0.35; trg.ybeww *= 0.35; if (trg.xpp != undefined) { trg.d.gotoAndStop(f1); } if (!trg.gogo || trg.gogo == 2) { if ((fra + trg.e) % 4 == 0) { if (chaa()) { if (trris2 + 20 <= fra && trg.s != 93 && trg.s != 97) { trris2 = fra; _root.soundy('maggotcharge' + random(2) + '.wav'); } trg.xpp *= 2; trg.ypp *= 2; trg.gogo = true; } } } if (!trg.gogo) { if (altboss && trg.s == 97) { randrunx(1.5); } else { randrunx(0.85); } trg.xbew *= 0.85; trg.ybew *= 0.78; } else { if (trg.gh) { trg.gogo = false; trg.ypp = undefined; trg.xpp = trg.ypp; } else { trg.xbew *= 0.82; trg.ybew *= 0.82; trg.xbew += trg.xpp; trg.ybew += trg.ypp; trg.xbeww += trg.xpp * 3; trg.ybeww += trg.ypp * 3; outgrid(trg.til); if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.yp *= 0.9; trg.yp += yenf * 0.1; } else { trg.xp *= 0.9; trg.xp += xenf * 0.1; } trg.d.gotoAndStop(f1); } } break; case 55: if (trg.hp < trg.mhp * 0.65 && !trg.eyeout && trg.eternal) { trg.eyeout = true; trg.alter = 1; _root.soundy('plop.wav'); trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 25); trg2.alt = 2; trg2.hp *= 3; trg2.fra = -100; trg2.d.gotoAndStop(9); } if (trg.eternal) { if (trg.firer <= 0) { trg.firer = 1; } f1 = trg.xbew; f2 = trg.ybew; f3 = Math.sqrt(f1 * f1 + f2 * f2); trg.firer += f3 + 0.1; if (trg.firer > 45) { trg.firer = 0; f3 = 7 / f3; f1 *= f3; f2 *= f3; ffmo(trg.xp, trg.yp, 0, -f2 * 0.6 - f1 * 0.5, f1 * 0.8 - f2 * 0.5, 0, 9, trg.s, true, false); ffmo(trg.xp, trg.yp, 0, f2 * 0.6 - f1 * 0.5, -f1 * 0.8 - f2 * 0.5, 0, 9, trg.s, true, false); } } case 31: case 23: case 21: if (trg.s == 21 || trg.s == 23) { if (trg.eternal) { if (!trg.d._currentframe != 9 && trg.coon <= 0) { if (fra % 4 == 0 || fra % 2 == 0 && trg.gogo) { trg2 = parc('bloo', trg.xp + crand(), trg.yp + crand(Math.random() * 8)); trg2._yscale *= 0.7; trg2._xscale = trg2._yscale; colorit(trg2, 0, 0, 0, 0, 50, 0); } if (random(100) == 0 && !trg.gogo) { trg.coon = 1; trg.ggh = true; trg.hurt = false; } } } } if ((trg.s == 23 || trg.s == 21) && (trg.d._currentframe == 9 || trg.coon > 0)) { bord(); trg.xbew *= 0.8; trg.ybew *= 0.8; if (trg.coon++ > 15) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 100) <= 0) { trg.d.gotoAndStop(9); trg.fire = 0; trg.specoz = 0; speco(trg); trg.s = 23; } trg.coon = undefined; } else { if (trg.fire++ > 80) { trg.s = 14; trg.fire = 0; attach(trg, 14); trg.specoz = 23; trg.mhp *= 1.3; trg.hp = trg.mhp; trg.alter = 2; trg.three = true; trg._yscale = 160; trg._xscale = 160; trg.d.gotoAndStop(4); trg.fra = fra; trg.ybb = 0; trg.xbb = 0; trg.flyai = true; speco(trg); _root.soundy('boil hatch.wav'); trg.ggh = false; } } if (trg.hurt && trg.fire > 5) { trg.hurt = false; trg.fire -= 45; } trg.hp += 0.02; } else { trg.ggh = fra2; trg.gonuts = trg.s == 23 || trg.s == 55; markhere(trg); if (trg.fire-- > 0) { trg.xbew *= 0.85; trg.ybew *= 0.85; trg.d.d.nextFrame(); if (trg.d.d._currentframe == trg.d.d._totalframes) { trg.fire = 0; } if (trg.d.d._currentframe == 8) { f1 = 8; if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { trg.ypp = 0; if (trg.xpp > 0) { trg.xpp = f1; } else { trg.xpp = -f1; } } else { trg.xpp = 0; if (trg.ypp > 0) { trg.ypp = f1; } else { trg.ypp = -f1; } } if (!trg.eternal) { trg2 = create(trg.xp, trg.yp, 0, trg.xpp, trg.ypp, 0, 9, trg.s); trg2.dy = -14; trg2.fd = -0.08; } else { shots(trg.xp + trg.xpp, trg.yp + trg.ypp, trg.xpp, trg.ypp, false); } trg.xpp = undefined; } } else { if (!trg.gogo) { if (trg.s == 21) { randrunx(0.75); } else { if (trg.s == 55) { randrunx(0.85); } else { if (trg.s == 31) { if (trg.specoz == 23) { randrunx(1); } else { randrunx(0.72); } } else { randrunx(0.6); } } } trg.xbew *= 0.85; trg.ybew *= 0.7; if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { f1 = 1; sideflip(-trg.xbew); } else { if (trg.ybew > 0) { f1 = 2; } else { f1 = 5; } } trg.d.gotoAndStop(f1); if (trg.gonuts && (fra + trg.e) % 4 == 0) { trg.gogo = chaa(trg.s == 55); if (trg.gogo) { if (trg.s == 55) { if (trris + 20 <= fra) { trris = fra; _root.soundy('leech' + random(3) + '.wav'); } trg.xpp *= 1.55; trg.ypp *= 1.55; } else { if (trris2 + 20 <= fra) { trris2 = fra; _root.soundy('maggotcharge' + random(2) + '.wav'); } trg.xpp *= 1.3; trg.ypp *= 1.3; } } } else { if (random(35) == 0 && trg.s == 31) { if (trg.xbew * trg.xbew + trg.ybew * trg.ybew > 0.5) { trg.d.gotoAndStop(trg.d._currentframe + 5); trg.xpp = trg.xbew; trg.ypp = trg.ybew; sideflip(-trg.xbew * 10); trg.fire = 50; } } } } else { if (trg.gh) { trg.gogo = false; trg.ypp = undefined; trg.xpp = trg.ypp; } else { if (trg.s == 23) { trg.xbew *= 0.8; trg.ybew *= 0.8; } else { trg.xbew *= 0.9; trg.ybew *= 0.9; } trg.xbew += trg.xpp; trg.ybew += trg.ypp; outgrid(trg.til); if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { f1 = 7; sideflip(-trg.xbew); trg.yp *= 0.9; trg.yp += yenf * 0.1; } else { if (trg.ybew > 0) { f1 = 6; } else { f1 = 8; } trg.xp *= 0.9; trg.xp += xenf * 0.1; } if (trg.s == 55) { if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { f1 = 1; } else { if (trg.ybew > 0) { f1 = 2; } else { f1 = 5; } } } trg.d.gotoAndStop(f1); } } } } tip(0); } } } } } } function smarts5() { switch (trg.s) { case 34: if (random(7) == 0) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.12); } case 54: case 29: case 86: if (trg.flyby) { if (trg.d._currentframe < 5) { trgnextd(); trg.d.gotoAndStop(5); trg.xpp = player.xp; trg.ypp = player.yp; trg.f1 = 0; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; if (trg.d._currentframe == 5 && trg.d.d._currentframe > 6 || trg.d._currentframe == 6 && trg.d.d._currentframe < 18) { trg.f1 += 0.02; trg.xp = trg.xpp * trg.f1 + trg.xp * (1 - trg.f1); trg.yp = trg.ypp * trg.f1 + trg.yp * (1 - trg.f1); trg.bh = false; } else { trg.bh = true; } if (trg.d._currentframe == 5) { trgnextd(); if (trg.d._currentframe == 1) { trg.d.gotoAndStop(6); } } else { trgnextd(); if (trg.d.d._currentframe == 19) { _root.soundy('Meat_impacts_' + random(3) + '.wav', 200); if (trg.s == 34 && trg.eternal) { quadf(trg.xp, trg.yp, 9, 1); } else { quadf(trg.xp, trg.yp, 9); } } if (trg.d._currentframe == 1) { trg.flyby = false; trg.xpp = undefined; } } } } else { randruny(); trg.xbew *= 0.7; trg.ybew *= 0.7; } break; case 28: if (trg.specoz == 23 && altboss == 1 && trg.hp > trg.mhp * 0.4) { trg.hp += 20 / (100 + fra); } if (altboss && altboss != 2) { f1 = trg.hp / hps[trg.s]; trg._yscale = 70 + f1 * 35; trg._xscale = trg._yscale; trg.xbew *= 1.1 - f1 * 0.14; } ++magget; trg.mag = magget; if (trg.mag == 3) { --magss; } mags[magget] = trg; if (!firstmag) { firstmag = true; } else { if (magget >= 4) { trg.mag -= 3; trg.mags = [0, mags[4], mags[5], mags[6]]; } else { trg.mags = [0, mags[1], mags[2], mags[3]]; } if (fra - 20 < trg.fra) { trg.d.gotoAndStop(trg.mag + 9); } if (altboss == 2) { if (trg.mag < 3) { trg.imba = true; if (trg.eternal) { trg.refl = true; } } } if (trg.d._currentframe >= 10) { trgnextd(); trg.xbew = 0; trg.ybew = 0; if (trg.mag == 3 && !trg.wtfu) { trg.wtfu = true; trg.xp *= 0.65; trg.yp *= 0.65; trg.xp += trg.mags[2].xp * 0.35; trg.yp += trg.mags[2].yp * 0.35; } } if (trg.d._currentframe < 10) { trg.d.gotoAndStop(trg.mag); if (Math.abs(trg.xbew) > 0.2 || Math.abs(trg.ybew) > 0.2) { markhere(trg); } if (trg.mag != 1) { trg2 = trg.mags[trg.mag - 1]; if (trg2.beenx.length > 0) { f10 = true; while (f10) { f2 = 2; if (trg.specoz == 9) { f1 = 15; } else { if (trg.specoz == 23) { f1 = 20; } else { if (trg.specoz > 18) { f1 = 16; } else { f1 = 17; } } } f1 -= trg.mag * f2; f0 = Math.min(f1, trg2.beenx.length - 1); enf = enfcheck(trg.xp, trg.yp, trg2.beenx[f0], trg2.beeny[f0], 1000); f2 = 10; if (enf < f2 && f0 == f1) { trg.xp = trg2.beenx[f0]; trg.yp = trg2.beeny[f0]; f10 = false; } else { enf = f2 / enf; xenf *= enf; yenf *= enf; trg.xp -= xenf; trg.yp -= yenf; trg2.beenx.push(trg2.beenx[f0] + xenf); trg2.beeny.push(trg2.beeny[f0] + yenf); } } } } else { trg.d.gotoAndStop(1); killshit(trg.nextl); switch (trg.mode) { if (altboss == 2 && trg.hp / trg.mhp < 0.3 && !trg.specoz) { if (trg.xbew > 0) { xenf = 1; } else { xenf = -1; } if (trg.ybew >= 0.1) { yenf = 1; } else { yenf = -1; } trg.xbew += xenf * 2; trg.ybew += yenf * 2; } else { randrunx(1.5); if (trg.charf + 50 <= fra) { if (chaa()) { trg.charf = fra; trg.mode = 2; _root.soundy('Monster_Roar_0.mp', 100); } } f1 = altboss == 2 && (!trg.specoz || trg.specoz == 23); if (trg.specoz == 23) { f2 = 6 + random(4); } else { f2 = 5; } if (trg.mode != 2 && random(100 - nomag) == 0 && (ashut < f2 && !f1 || f1 && chubber < 5 && fra >= lastpoop) && (trg.specoz != 8 || ashut < 4 || random(4) == 0)) { _root.soundy('Monster_Roar_1.mp', 100); lastpoop = fra + 100; trg.mode = 3; magss = 10; nomag = 0; } ++nomag; nomag *= 0.99; } f2 = 0; case 4: f2 = 12; ++trg.bomb; if (trg.bomb == 3) { } if (trg.bomb > 35) { trg.bomb = undefined; trg.mode = 0; trg.d.d.gotoAndStop(1); hurt(trg, 20); bombfail(trg.xp, trg.yp, 5); trg.xpp = undefined; f2 = 0; _root.soundy('Monster_Roar_2.mp', 50); } break; case 2: if (trg.gh) { trg.mode = 1; trg.ypp = undefined; trg.xpp = trg.ypp; } else { trg.xbew *= 0.9; trg.ybew *= 0.9; trg.xbew += trg.xpp * 3.7; trg.ybew += trg.ypp * 3.7; } f2 = 6; break; case 3: if (f1 < 0) { f2 = 9; } else { f2 = 3; } if (magss < -20) { trg.mode = 1; } } if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { sideflip(-trg.xbew); f1 = 2; } else { if (trg.ybew > 0) { f1 = 1; } else { f1 = 3; } } if (trg.d.d._currentframe <= 12) { trg.d.d.gotoAndStop(f1 + f2); } } enf = enfcheck(trg.xp, trg.yp, trg.beenx[0], trg.beeny[0], 1000); while (enf > 2) { enf = 2 / enf; trg.beenx.unshift(trg.beenx[0] + xenf * enf); trg.beeny.unshift(trg.beeny[0] + yenf * enf); enf = enfcheck(trg.xp, trg.yp, trg.beenx[0], trg.beeny[0], 1000); } if (trg.beenx.length > 40) { f2 = []; f3 = []; a = 0; while (a < 30) { f2[a] = trg.beenx[a]; f3[a] = trg.beeny[a]; ++a; } trg.beenx = new Array(30); trg.beeny = new Array(30); a = 0; while (a < 30) { trg.beenx[a] = f2[a]; trg.beeny[a] = f3[a]; ++a; } } if (trg.specoz == 8) { trg.xbew *= 0.75; trg.ybew *= 0.75; } else { if (trg.specoz == 9) { trg.xbew *= 0.86; trg.ybew *= 0.86; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } } if (trg.mag == 3 && (trg.specoz == 22 || trg.specoz == 23)) { for (i in hearts) { trg2 = hearts[i]; if (trg2.hp <= -10 || trg2.dones) { _root.soundy('Monster_Roar_2.mp', 50); hurt(trg, 40); hearts.splice(i, 1); } } } if (fra > 8 && magss == 0 && trg.mag == 3) { f1 = 5; f2 = ingrid(trg.beenx[f1], trg.beeny[f1]); outgrid(f2); if (altboss == 2) { if (trg.specoz) { trg2 = create(trg.xp + crand(1), trg.yp + crand(1), 0, 0, 0, 0, 92); if (trg.specoz == 23) { trg2.hp *= 1.3; trg2.specoz = 23; trg2.eternal = true; speco(trg2); } else { trg2._yscale = 50; trg2._xscale = 50; trg2.hp *= 0.7; } } else { turd('breakblock2', f2, true); ++chubber; } } else { if (altboss) { f1 = 61; } else { if (trg.specoz == 8) { f1 = 30; } else { if (trg.specoz == 9) { f1 = 31; } else { f1 = 23; } } } if (f1 != 30) { trg3 = create(trg.xp + crand(30), trg.yp + crand(30), 0, 0, 0, 0, f1); _root.soundy('summonsound.wav', 100); } else { _root.soundy('summonsound.wav', 70); } trg2 = create(trg.xp + crand(1), trg.yp + crand(1), 0, 0, 0, 0, f1); if (trg.specoz == 23) { if (altboss) { quadf(trg.xp, trg.yp, 8, true); } else { if (random(3) == 0 && etols < 3 + Math.min(4, fra * 0.001)) { ++etols; trg2.eternal = true; trg2.specoz = 23; trg2._yscale *= 1.2; trg2._xscale = trg2._yscale; speco(trg2); if (mheart) { trg3.eternal = false; trg3.specoz = undefined; speco(trg3); } } else { if (mheart) { trg2.eternal = false; trg2.specoz = undefined; speco(trg2); trg3.eternal = false; trg3.specoz = undefined; speco(trg3); } } } } } if (f1 > 0) { if (f1 == 30) { trg2.spl = 30; trg2.specoz = 10; trg2.outway = true; speco(trg2); } xenf -= trg.xp; yenf -= trg.yp; trg2.xbew += xenf * 0.1; trg2.ybew += yenf * 0.1; trg2.d.d.gotoAndStop(1); f1 = 0; if (enfget(trg.xbew, trg.ybew) > 2) { if (Math.abs(xenf) > Math.abs(yenf)) { sideflip(xenf); f1 = 2; } else { if (yenf > 0) { f1 = 3; } else { f1 = 4; } } trg.d.d.gotoAndStop(f1); } } } } } } } function smartsx() { bawssmart(); bawssmart2(); smarts3(); smarts4(); smarts5(); } function breakdance(f0) { if (enfget(trg.xbew, trg.ybew) > 1 || f0 == 79) { trg.s = 4; f3 = Math.random() * 15; var v1 = 3; if (f0 == 79) { v1 = 3; f3 *= 1.35; } if (f0 == 99) { v1 = 6; f3 *= 3; } f3 = ingrid(Math.max(60, Math.min(560, trg.xp + trg.xbew * v1 + crand(f3))), Math.max(170, Math.min(410, trg.yp + trg.ybew * v1 + crand(f3)))); outgrid(f3); if (levzz(f3) >= 1 && levzz(f3) < 2) { bloww(f3, trg.xbew, trg.ybew); } else { killshit(f3); } trg.s = f0; } } function ssmarts() { switch (trg.s) { case 45: if (trg.d._currentframe == 5) { if (trg.d.d._currentframe == 5) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 150); if (_root.hardmode) { quadf(trg.xp * 0.8 + 80, trg.yp * 0.8 + 64, 10, true); } } } if (trg.specoz == 19) { if (trg.d._currentframe == 5) { if (trg.d.d._currentframe == 20) { trg.d.d.gotoAndStop(38); } } if (trg.d._currentframe == 2) { if (trg.d.d._currentframe == 3 && fra > 60) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000); enf = -10 / enf; xenf *= enf; yenf *= enf; shots(trg.xp + xenf, trg.yp + yenf, xenf, yenf, true); } } if (trg.d._currentframe == 20) { if (trg.d.d._currentframe == 48) { trg.d.d.gotoAndStop(58); } if (trg.d.d._currentframe < 20 || trg.d.d._currentframe > 65) { trg.d.d.nextFrame(); } } } trg.bh = trg.d._currentframe == 20 && trg.d.d._currentframe > 27 && trg.d.d._currentframe < 62 || trg.d._currentframe == 19; if (trg.d._currentframe == 20 && trg.d.d._currentframe == 26 || trg.whu == 3) { trg.whu = 0; trg.dmg = 300; gosplash(); _root.soundy('Hellboss_Groundpound_' + random(2) + '.wav'); } if (trg.weap) { if (trg.d._currentframe == 20) { if (trg.d.d._currentframe < 24) { trg2 = trg.trg2; if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 1000) > 0) { trg.xbew -= xenf * 0.03; trg.ybew -= yenf * 0.03; } } if (trg.d.d._currentframe == 74) { trg.done = true; } } trg.xbew *= 0.8; trg.ybew *= 0.8; } else { mom[momet] = trg; ++momet; trg.mom = momet; if (trg.xpp > 0) { trg.xp = trg.xpp; trg.yp = trg.ypp; trg.xbew *= 0.8; trg.ybew *= 0.8; } if (fra < 20) { if (trg.mom == mome) { trg.d.gotoAndStop(2); } else { trg.d.gotoAndStop(1); } if (mome == undefined && trg.mom == 5) { momlo(); } oldm = 3; } if (trg.d._currentframe != 19) { trgnextd(); } if (trg.mom == 3) { if (moml - fra < 0) { f1 = random(3); if (fra < 50) { f1 = 0; } mome = -1; if (trg.specoz == 19) { f1 = 0; if (random(4) == 0 && oldm != 2) { f1 = 2; } oldm = -1; } if (oldm != f1) { switch (f1) { case 0: _root.soundy('Mom_Vox_Grunt_' + random(4) + '.mp'); moml = fra + 80; if (trg.specoz == 19) { moml -= 30; } for (i in mom) { if (i != 2) { trg2 = mom[i]; if (enfcheckx(trg2.xp, trg2.yp, player.xp, player.yp, 100) || enfcheck(trg2.xp, trg2.yp, player.xp, player.yp, 75)) { mome = i; } } } if (mome > -1 && fra > 50) { if (random(2) == 0) { mom[mome].d.gotoAndStop(5); } else { mom[mome].d.gotoAndStop(3); } } else { trg.d.gotoAndStop(20); trg.d.d.gotoAndStop(1); trg._visible = true; if (fra < 50) { trg.xpp = trg.xp; trg.ypp = trg.yp; } else { trg.xpp = player.xp; trg.ypp = player.yp; } } break; case 1: if (ashut < 8) { moml = fra + 45; z = 0; for (;;) { if (!(z < random(3) + 2 && ashut < 8 + random(2))) break; i = random(5); if (i != 2) { ++z; ++ashut; mom[i].d.gotoAndStop(random(2) + 3); } undefined; } } break; case 2: momlo(); } oldm = f1; } } if (trg.d._currentframe < 20) { trg._visible = false; } } else { if (trg.d._currentframe == 3 || trg.d._currentframe == 4) { if (trg.d.d._currentframe == 3) { f0 = false; if (trg.specoz == 23) { if (randrom(3) == 0) { f1 = [85, -16, -14, 38, -12]; } else { f1 = [10, 12, 14, 15, 16, 18, 20, 21, 23, 24, 25.5, 26]; } } else { if (trg.specoz) { f1 = [85, 94, 89, 86, 29.1]; } else { f1 = [10, 11, 12, 14, 15, 16, 18, 21, 23, 24, 25.5, 26]; } } xenf = trg.xp - 320; yenf = trg.yp - 280; enf = enfget(xenf, yenf); enf = 18 / enf; xenf *= enf; yenf *= enf; f2 = random(f1.length); f1 = f1[f2]; if (f1 < 0) { f1 = -f1; f0 = true; } if (f1 == 85) { boil(false, 2); } else { trg2 = create(trg.xp - xenf, trg.yp - yenf, 0, -xenf, -yenf, 0, f1); if (f0) { trg2.specoz = 23; trg2.eternal = true; speco(trg2); trg2._yscale *= 1.1; trg2._xscale = trg2._yscale; if (f1 == 14) { trg2._yscale *= 2; trg2._xscale = trg2._yscale; trg2.hp *= 2; } } if (f1 == 20) { trg2._yscale = 50; trg2._xscale = 50; trg2.splity = true; sizes[20] = 24; trg2.xbew *= 0.2; trg2.ybew *= 0.2; trg2.hp *= 0.3; trg2.nobar = true; } } _root.soundy('summonsound.wav', f2 * 5 + 80); } } if (trg.d._currentframe == 5) { trg2 = mom[2]; if (trg.d.d._currentframe > 45) { trg2.d.gotoAndStop(18); } else { if (trg.d.d._currentframe > 3) { trg2.whu = trg.d.d._currentframe; trg2.d.gotoAndStop(19); xenf = trg.xp - 320; yenf = trg.yp - 280; enf = enfget(xenf, yenf); enf = 60 / enf; trg2.xpp = trg.xp - xenf * enf; trg2.xp = trg2.xpp; trg2.ypp = trg.yp - yenf * enf; trg2.yp = trg2.ypp; } } } trg.bh = trg.d._currentframe != 1; if (trg.xpp <= 0) { for (a in door) { trg2 = door[a]; if (enfcheck(trg2._x, trg2._y, trg.xp, trg.yp, 50)) { trg.xpp = trg2._x; trg.ypp = trg2._y; trg.d._rotation = trg2._rotation + 90; trg2._visible = false; } } } } } break; case 33: trg.d.nextFrame(); if (trg.holi) { } dang2 = trg; break; case 41: trg.randy = true; if (trg.eternal) { if (trg.bloo-- > 0) { if (fra2) { trg2 = parc('bloo', trg.xp + crand(10), trg.yp + crand(10)); } } } sideflip(trg.xbew, trg.d.d); if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { if (trg.xbew > 0) { f1 = 2; } else { f1 = 4; } trg.d.d.gotoAndStop(2); } else { if (trg.ybew > 0) { f1 = 1; } else { f1 = 3; } trg.d.d.gotoAndStop(1); } trg.d.hx.h.gotoAndStop(f1); case 44: if (trg.s == 44 && ashut == 0 && fra > 80 && trg.alter != 2) { trg.dones = true; } markhere(trg); if (!trg.gogo) { f2 = true; if (trg.s == 44) { if (trg.alter == 1) { randrunx(1); } else { enf = enfcheck(trg.xp, trg.yp, trg.xppp, trg.yppp, 1000); f1 = Math.min(enf / 10, 1.8); f2 = f1 < 0.4; f1 /= enf; trg.xbew -= xenf * f1; trg.ybew -= yenf * f1; } } else { randrunx(0.75 + trg.alter * 0.25); } trg.xbew *= 0.8; trg.ybew *= 0.8; if ((fra + trg.e) % 3 == 0 && f2) { trg.gogo = chaa(); if (trg.alter == 2 && trg.gogo) { trg.xpp *= 1.65; trg.ypp *= 1.65; } if (trg.alter == 2 && trg.s == 44 && trg.gogo) { trg.xpp *= 1.65; trg.ypp *= 1.65; } } } if (trg.gogo) { if (trg.gh) { trg.gogo = false; trg.ypp = undefined; trg.xpp = trg.ypp; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xbew += trg.xpp; trg.ybew += trg.ypp; outgrid(trg.til); if (trg.s == 44) { f1 = 5; if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { trg.yp *= 0.5; trg.yp += yenf * 0.5; if (trg.s == 44) { trg.ybew *= 0.5; } } else { trg.xp *= 0.5; trg.xp += xenf * 0.5; if (trg.s == 44) { trg.xbew *= 0.5; } } } else { if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.yp *= 0.9; trg.yp += yenf * 0.1; } else { trg.xp *= 0.9; trg.xp += xenf * 0.1; } } } } break; case 40: if (trg.eternal) { borderliner(5); } else { borderliner(3); } trg.d.d._rotation += enfget(trg.xbew, trg.ybew) * 4; trg.d.sh.d._rotation = trg.d.d._rotation; if ((fra + trg.e) % 5 == 0) { splater(trg.xp, trg.yp + 5, 1 + random(10), Math.random() * 0.7); } if (trg.eternal) { trg.fire += Math.random(); if (trg.fire > 40) { trg.fire = 0; quadf(trg.xp + trg.xbew * 3, trg.yp + trg.ybew * 3, 10, true); } } break; case 47: if (trg.alter == 2) { if (trg.bomber) { trg.xbew *= 0.9; trg.ybew *= 0.9; } if (fra % 7 == 0) { if (trg.bomber) { if (enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 300)) { trg.d.gotoAndStop(7); enf = -10 / enf; xenf *= enf; yenf *= enf; shots(trg.xp, trg.yp, xenf, yenf, true); } trg.bobo = !trg.bobo; if (trg.bobo) { if (random(2) == 0) { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 4); trg2.man = true; trg2.outway = true; } else {} } } else { trg2 = parc('bloo', trg.xp, trg.yp, 0, 123); } } trg.xbew *= 0.95; trg.ybew *= 0.95; } else { trg.xbew *= 0.95; trg.ybew *= 0.95; } sideflip(trg.xbew); if (trg.d._currentframe < 3 || !trg.bomber) { walkframe(); } else { trgnextd(); } if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(2); } else { trg.d.bo.gotoAndStop(3); } if (trg.nohead) { firewalk(); } else { if (trg.alter != 2) { if (trg.eternal) { if (trg.hp < trg.mhp / 2) { trg.nohead = true; trg.gosplash = true; trg.hp = trg.mhp; attach(trg, 11); trg.fast = true; trg.outway = true; splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.6); trg2 = create(trg.xp, trg.yp, 0, 0, -5, 0, 26); trg2.alter = undefined; trg2.specoz = 23; speco(trg2); trg2.hp *= 2; trg2.mhp = trg2.hp; trg2._yscale *= 1.35; trg2._xscale = trg2._yscale; trg2.eternal = true; trg2.minb = true; } } } if (trg.eternal) { breakdance(trg.s); } } if (trg.alter == 2) { if (trg.eternal && !trg.bomber) { trg.hp -= 0.1; if (trg.fire == undefined) { trg.fire = 0; } if (trg.fire++ > 70) { trg.xbew *= 0.2; trg.ybew *= 0.2; trg.fire = 0; if (ashut > 5) { f0 = 1; } else { f0 = 1 + random(3); } while (f0-- > 0) { f1 = 18; var trg2 = create(trg.xp, trg.yp, 0, crand(25), crand(25), 0, f1); trg2.fra -= 20; trg2.die = true; trg2.pbh = true; } _root.soundy('Boss_Lite_HIss.mp', 100); } } } if (enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 10000)) { if (linecheck(trg.xp, trg.yp, player.xp, player.yp)) { enf = 0.65 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } else { pathfind(trg, playx, playy, 1.2); } } trg.tiletimer -= 30; trg.gridimer -= 30; break; case 46: trg.xbew *= 0.75; trg.ybew *= 0.75; walkframe(); trgnextd(); if (trg.d._currentframe < 3) { sideflip(trg.xbew); randrunx(1); if (random(50) == 0) { if (random(2) == 0 && ashut < 4 || Math.abs(trg.yp - player.yp) > 60 && trg.minb == 3) { trg.d.gotoAndStop(6); if (trg.eternal && trg.minb != 3 && trg.alter == 2) { trg.repss = 1; } } else { trg.d.gotoAndStop(5); if (trg.eternal && trg.minb != 3) { if (trg.alter == 2) { trg.repss = 1; } else { trg.repss = 2; } } } } } else { if (trg.d.d._currentframe < 5) { sideflip(player.xp - trg.xp); } if (trg.alter == 3) { if (trg.d.d._currentframe > 5 && trg.d.d._currentframe < 15 && trg.d._currentframe != 6) { z = trg.d.d._currentframe - 5; trg2 = parc('bloo', trg.xp + trg.d._xscale * z / 4, trg.yp); trg2._xscale *= 1.6 + z * 0.07000000000000001; trg2._yscale = trg2._xscale; colorit(trg2, 0, 2, 0, 0, 40, 0); } } if (trg.d.d._currentframe == 16) { if (trg.repss-- > 0) { trg.d.d.gotoAndStop(3); if (trg.d.d._currentframe < 3) { sideflip(player.xp - trg.xp); } } } if (trg.d.d._currentframe == 5) { if (trg.d._currentframe == 6) { if (trg.alter == 3) { bossfire(3, true, 10); _root.soundy('heartout.wav', 70); } else { if (trg.alter == 2) { if (trg.specoz != 23 || random(2) == 0) { boil(true); boil(true); _root.soundy('Boss_Lite_Roar.mp', 100); } else { xenf = trg.xp - player.xp; yenf = trg.yp - player.yp; enf = enfget(xenf, yenf); sideflip(-xenf); enf = -25 / enf; xenf *= enf; yenf *= enf; f0 = 3 + random(2); while (f0-- > 0) { var trg2 = create(trg.xp, trg.yp, 0, xenf, yenf, 0, 18); trg2.fra -= 20; trg2.die = true; trg2.pbh = true; if (f0 != 0) { trg2.xbew += crand(5); trg2.ybew += crand(5); } } _root.soundy('Boss_Lite_HIss.mp', 100); } } else { trg2 = create(trg.xp + trg.d._xscale * 0.3, trg.yp, 0, 0, 0, 0, 23); _root.soundy('summonsound.wav', 80); _root.soundy('Monster_Grunt_2_' + abr() + '.mp', 100); trg2.apf = true; trg2.gogo = true; trg2.xpp = trg.d._xscale / 100; trg2.ypp = 0; trg.outway = true; if (trg.eternal) { trg2.eternal = true; trg2.specoz = 23; speco(trg2); trg2.hp *= 1 + _root.chaps * 0.15; trg2.mhp = trg2.hp; } } } } else { if (trg.alter == 3) { } else { if (trg.specoz == 23 && trg.alter == 2) { xenf = trg.xp - player.xp; yenf = trg.yp - player.yp; enf = enfget(xenf, yenf); sideflip(-xenf); enf = -10 / enf; xenf *= enf; yenf *= enf; shots(trg.xp, trg.yp, xenf, yenf, true); } else { green(); if (trg.alter == 2) { green(); } } } _root.soundy('heartout.wav', 70); } } } break; case 53: trg.alt = Math.abs(player.xp - 320) > Math.abs(player.yp - 280) * 0.65; trg.xbew *= 0.75; trg.ybew *= 0.75; if (trg.alter == 2) { trg.flyby = true; } if (enfget(trg.xbew, trg.ybew) > 2) { if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { if (trg.alter == 2) { trg.d.hx.bo.gotoAndStop(1); } else { trg.d.hx.bo.gotoAndStop(2); } } else { if (trg.alter == 2) { trg.d.hx.bo.gotoAndStop(2); } else { trg.d.hx.bo.gotoAndStop(3); } } } else { trg.d.hx.bo.gotoAndStop(1); } f1 = plo; f2 = f1 == 3 || f1 == 1; if (!trg.alt && f2 || trg.alt && !f2) { f1 += 2; if (f1 > 4) { f1 -= 4; } } --trg.fire; if (player.fire > lpf) { if (trg.fire <= 0) { f3 = 10; yenf = 0; xenf = 0; switch (f1) { case 1: xenf = 0; yenf = f3; break; case 3: xenf = 0; yenf = -f3; break; case 2: xenf = f3; yenf = 0; break; case 4: xenf = -f3; yenf = 0; } if (trg.alter == 2) { trg.fire = 30; shots(trg.xp, trg.yp, xenf, yenf, true); } else { shots(trg.xp, trg.yp, xenf, yenf); } } } lpf = player.fire; if (plox > 8) { f1 += 4; } trg.d.hx.h.gotoAndStop(f1); if (trg.d.hx.bo != undefined) { sideflip(trg.xbew, trg.d.hx.bo); } trgnextd(); trg.xpp = trg.xp; trg.ypp = trg.yp; trg.xp = 640 - player.xp; trg.yp = 580 - player.yp; trg.xbew = -player.xbew; trg.ybew = -player.ybew; break; case 51: f1 = 0.25 + trg.tier * 0.1; if (tier == 3) { f1 = 0.35; } if (trg.ybew > 0) { f2 = f1; } else { f2 = -f1; } if (trg.xbew > 0) { f1 = f1; } else { f1 = -f1; } trg.xbew *= 0.9; trg.ybew *= 0.9; trg.xbew += f1; trg.ybew += f2; if (trg.eternal && trg.tier == 0) { if (fra5) { if (trg.fire <= 0) { trg.fire = 0; } trg.fire += 0.5; f1 = 7; xenf = Math.sin(trg.fire) * f1; yenf = Math.cos(trg.fire) * f1; trg2 = ffmo(trg.xp, trg.yp, 0, xenf + trg.xbew, yenf * 0.8 + trg.ybew, 0, 9, trg.s, true); if (trg.alter == 2) { trg2.dm -= 3.5; } else { trg2.dm -= 1; } sideflip(xenf); } } else { sideflip(trg.xbew); } break; case 52: trg.xbew *= 0.75; trg.ybew *= 0.75; if (enfget(trg.xbew, trg.ybew) < 1) { trg.d.bo.gotoAndStop(1); } else { if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(2); } else { trg.d.bo.gotoAndStop(3); } } sideflip(-trg.xbew); trgnextd(); if (trg.d._currentframe < 3) { randrunx(1); if (random(50) == 0) { if (random(2) == 0) { trg.d.gotoAndStop(6); } else { trg.d.gotoAndStop(5); } } } else { if (trg.d._currentframe == 5) { if (trg.d.d._currentframe >= 20 && trg.d.d._currentframe <= 37) { lasershowx((0.25 + 0.5 * (fra % 4)) * Math.PI); } if (trg.eternal) { if (trg.d.d._currentframe >= 20 && trg.d.d._currentframe <= 37) { if (trg.fire <= 0) { trg.fire = 0; } trg.fire += 0.5; if (trg.alter == 2) { f1 = 9; } else { f1 = 7; } xenf = Math.sin(trg.fire) * f1; yenf = Math.cos(trg.fire) * f1; trg2 = ffmo(trg.xp, trg.yp, 0, xenf + trg.xbew, yenf * 0.8 + trg.ybew, 0, 9, trg.s, true); trg3 = ffmo(trg.xp, trg.yp, 0, -xenf + trg.xbew, -yenf * 0.8 + trg.ybew, 0, 9, trg.s, true); if (trg.alter == 2) { trg2.dm -= 3.5; trg3.dm -= 3.5; } else { trg2.dm -= 1; trg3.dm -= 1; } } } else { if (trg.alter == 2 && trg.d.d._currentframe == 20) { cirf(trg.xp, trg.yp - trg._yscale * 0.2, 8, 6); } } } if (trg.d.d._currentframe == 5) { if (trg.d._currentframe == 6) { anarch = 20; if (trg.alter == 2) { anarch = 10; analt = 5; } } } } break; case 50: trg.f3 = 1; trg.xbew *= 0.75; trg.ybew *= 0.75; walkframe(); if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(1); } else { trg.d.bo.gotoAndStop(2); } sideflip(-trg.xbew); trgnextd(); if (trg.d._currentframe < 3) { randrunx(1); if (random(50) == 0) { if (random(3) == 0 && ashut < 3) { trg.d.gotoAndStop(6); } else { trg.d.gotoAndStop(5); } } } else { if (trg.d._currentframe == 5) { sideflip(100); f1 = 10; xenf = trg.xp - player.xp; yenf = trg.yp - player.yp; if (Math.abs(xenf) > Math.abs(yenf)) { yenf = 0; if (xenf > 0) { xenf = f1; f3 = 2; } else { xenf = -f1; f3 = 4; } } else { xenf = 0; if (yenf > 0) { f3 = 3; yenf = f1; } else { f3 = 1; yenf = -f1; } } if (trg.d.d._currentframe < 6) { trg.d.d.h.gotoAndStop(f3); trg.f3 = f3; } else { trg.d.d.h.gotoAndStop(f3 + 4); trg.f3 = f3 + 4; } } if (trg.d.d._currentframe == 5) { if (trg.d._currentframe == 6) { f1 = 29; if (trg.alter == 2) { f1 = 86; } if (ashut == 1) { trg2 = spaw(trg.xp - 50, trg.yp, 0, f1); trg3 = spaw(trg.xp + 50, trg.yp, 0, f1); } else { trg2 = spaw(trg.xp, trg.yp - 50, 0, f1); trg3 = spaw(trg.xp, trg.yp + 50, 0, f1); } _root.soundy('summonsound.wav', 120); } else { if (trg.alter == 1) { shots(trg.xp, trg.yp, -xenf, -yenf, true); } else { shots(trg.xp, trg.yp, -xenf, -yenf, 2); } } } } break; case 48: if (trg.eternal && trg.alter == 2) { trg.s = 47; trg.bomber = true; } else { trg.xbew *= 0.85; trg.ybew *= 0.85; walkframe(); if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(1); } else { trg.d.bo.gotoAndStop(2); } sideflip(trg.xbew); trgnextd(); if (trg.d._currentframe < 3) { if (trg.gogo) { if (trg.gh) { trg.gogo = false; trg.ypp = undefined; trg.xpp = trg.ypp; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xbew += trg.xpp * 1.5; trg.ybew += trg.ypp * 1.5; outgrid(trg.til); if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.yp *= 0.9; trg.yp += yenf * 0.1; } else { trg.xp *= 0.9; trg.xp += xenf * 0.1; } } } else { if (trg.trg2.s > 0) { trg2 = trg.trg2; if (trg2.dones) { trg.trg2 = undefined; trg.xpp = undefined; } siz = 130; if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, siz)) { enf = (Math.min(1, siz - enf) / enf) * 0; trg.xbew += xenf * enf; trg.ybew += yenf * enf; randrunx(1); trg2 = trg.trg2; f1 = (trg.xp - trg.xpp) * (trg.xp - trg2.xp); f2 = (trg.yp - trg.ypp) * (trg.yp - trg2.yp); if (f1 > 50 || f2 > 50) { trg.xbew *= 0.5; trg.ybew *= 0.5; trg.xpp = undefined; } } } else { randrunx(1); if (random(Math.max(60, enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000))) == 0) { trg.d.gotoAndStop(5); trg.xpp = 0; trg.ypp = 0; } else { trg.til = ingrid(trg.xp, trg.yp); if (chaa()) { if (levzz(ingrid(trg.xp + trg.xpp * 3, trg.yp + trg.ypp * 3)) < 0.9) { if (random(2) == 0) { trg.d.gotoAndStop(5); if (trg.eternal && trg.alter != 2) { trg.reps = 1 + random(3); } } else { if (trg.eternal) { trg.xpp *= 1.85; trg.ypp *= 1.85; } trg.gogo = true; } } } } if (trg.d._currentframe == 5) { trg.xppp = trg.xpp; trg.yppp = trg.ypp; } } } } else { if (trg.reps > 0) { if (trg.d._currentframe == 5 && trg.d.d._currentframe == 10) { trg.d.d.gotoAndStop(1); --trg.reps; } } if (trg.d._currentframe == 5 && trg.d.d._currentframe == 5) { outgrid(ingrid(trg.xp, trg.yp)); f1 = 4; if (trg.alter == 2) { f1 = 5.040000005; } f2 = 1; if (trg.trg2 != undefined) { f2 = trg.trg2.d.d._currentframe + 6; if (f2 > 50) { f2 = 1; } } trg.trg2 = create(trg.xp, trg.yp, 0, trg.xppp * 10, trg.yppp * 10, 0, f1); trg.trg2.d.d.gotoAndStop(f2); if (trg.xpp != 0 || trg.ypp != 0) { trg.trg2.ph = true; } else { trg.trg2.bh = false; } trg.xpp = undefined; trg.trg2.man = true; trg.trg2.outway = true; } } break; case 222: ++trg.fra; trg._visible = true; f1 = 1 - trg.fra / 21; trg.xbew = trg.xppp * f1; trg.ybew = trg.yppp * f1; if (trg.fra > 42) { trg.done = true; } if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 20)) { playerhurt(1, 39); } if (trg.f222) { trg.d.gotoAndStop(1); if (trg.xbew * trg.d._xscale < 0) { trg.d._xscale *= -1; } } else { if (trg.ybew < 0) { trg.d.gotoAndStop(2); } else { trg.d.gotoAndStop(3); } } } } smux(); } function smux() { switch (trg.s) { case 39: if ((fra + trg.e) % 5 == 0) { splater(trg.xp, trg.yp + 5, 1 + random(10), Math.random() * 0.7); } case 49: markhere(trg); if (trg.d._currentframe < 3) { if (trg.pathy) { pathfind(trg, playx, playy, 1.3); if (fra5) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 60) > 0) { trg.pathy = false; } } } else { randrunx(0.7); } walkframe(); sideflip(trg.xbew); if ((fra + trg.e) % 3 == 0) { f1 = true; if (trg.s == 49) { f1 = random(10) == 0; if (random(7) == 0) { f1 = true; if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 70 + random(130))) { f1 = false; trg.d.gotoAndStop(11); sideflip(-xenf); } } } if (f1) { if (!trg.eternal || trg.s != 49 || random(3) == 0) { if (enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 400)) { if (Math.abs(xenf) > Math.abs(yenf)) { sideflip(-xenf); f1 = 5; } else { if (yenf > 0) { f1 = 7; } else { f1 = 6; } } trg.f1 = f1; f1 += trg.alter * 3 - 3; trg.d.gotoAndStop(f1); trg.xpp = -xenf; trg.ypp = -yenf; } } } } if (trg.eternal && trg.s == 49) { if (fra5) { if (random(3) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 70 + random(130)) <= 0) { trg.pathy = true; } } } } } else { trgnextd(); if (trg.d._currentframe == 11 && trg.s != 39) { trg.d.d.d.gotoAndStop(1); if (trg.d.d._currentframe == 14) { if (trg.eternal) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); enf = -8.199999999999999 / enf; xenf *= enf; yenf *= enf; shots(trg.xp, trg.yp, xenf, yenf, 23); } else { quadf(trg.xp, trg.yp, 8, true); } if (trg.alter == 2) { bossfire(5, true); } } } else { if (trg.alter == 3) { if (trg.d.d._currentframe == 18) { f2 = Math.abs(trg.xpp) > Math.abs(trg.ypp); if (f2) { trg.ypp = 0; } else { trg.xpp = 0; } f1 = 16 / enfget(trg.xpp, trg.ypp); xenf = trg.xpp * f1 * 1.4; yenf = trg.ypp * f1; trg2 = create(trg.xp, trg.yp, 0, xenf, yenf, 0, 222, trg.s); trg.trg2 = trg2; trg2.chu = true; trg2.bh = false; trg2.ggh = true; trg2.apf = true; trg2.fra = -1; trg2.f222 = f2; trg2.trg2 = trg; trg2.xppp = xenf; trg2.yppp = yenf; trg2._visible = true; if (trg.eternal) { trg2.specoz = 23; trg2._yscale = trg._yscale; trg2._xscale = trg2._yscale; speco(trg2); } } if (trg.trg2 != null && trg.eternal) { trg2 = parc('bloo', trg.trg2.xp + crand(10), trg.trg2.yp + crand(10), 0, 123); } } else { if (trg.d.d._currentframe > 29 && trg.d.d._currentframe < 70) { if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { if (trg.xpp > 0) { trg.xpp = 1000; trg.ypp = 0; } else { trg.xpp = -1000; trg.ypp = 0; } } else { if (trg.ypp > 0) { trg.xpp = 0; trg.ypp = 1000; } else { trg.xpp = 0; trg.ypp = -1000; } } if (trg.eternal) { if (trg.d.d._currentframe % 10 == 0) { f10 = 20; if (trg.alter == 2) { f10 *= 2; } z = 0; while (z < f10) { f0 = Math.random() * 0.5; if (trg.alter == 2) { if (random(2) == 0) { f0 = -f0; } } f1 = trg.xp + trg.xpp * f0 + crand(10); f2 = trg.yp + trg.ypp * f0 + crand(10); if (f1 > 60 && f1 < 580) { if (f2 > 150 && f2 < 410) { trg2 = parc('bloo', f1, f2, 0, 123); if (trg.s == 49) { if (trg.alter == 2) { trg2.longstay = 170; } else { trg2.longstay = 450; } } } } ++z; } } } lasershow(trg); } } } if (trg.alter == 2) { trg.xpp = -trg.xpp; trg.ypp = -trg.ypp; } if (trg.d._currentframe < 3) { trg.xpp = undefined; } } trg.xbew *= 0.8; trg.ybew *= 0.8; break; case 36: gurdy = true; for (a in ball) { trg2 = ball[a]; if (trg2.flyai) { siz = 80; if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, siz)) { enf = -(siz - enf) * 0.03 / enf; trg2.xbew += xenf * enf; trg2.ybew += yenf * enf; } } } trgnextd(); if (trg.d._currentframe == 1) { trg.idle = !trg.idle; if (trg.idle) { if (plah) { trg.d.gotoAndStop(5); plah = false; } else { trg.d.gotoAndStop(6 + random(2)); } } else { if (random(3) != 0 && player.yp > 200 && ashut < 8 && trg.specoz != 11) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000); if (Math.abs(xenf) > Math.abs(yenf) || yenf > 0) { if (xenf > 0) { f1 = 10; } else { f1 = 11; } } else { f1 = 9; } trg.d.gotoAndStop(f1); } else { if (ashut < 14) { f1 = [8, 12, 13]; trg.d.gotoAndStop(f1[random(f1.length)]); if (ashut > 15) { trg.d.gotoAndStop(13); } if (Math.abs(trg.xp - player.xp) < 70 && player.yp < trg.yp) { trg.d.gotoAndStop(12); } } else { trg.idle = true; } } } } if (trg.d.d.now) { switch (trg.d._currentframe) { case 8: create(trg.xp + 60, trg.yp - 25, 0, 10, 0, 0, 14); _root.soundy('summonsound.wav', 70); _root.soundy('Boss_Bug_Hiss.mp', 100); break; case 12: trg2 = create(trg.xp + 40, trg.yp - 65, 0, 0, -20, 0, 18); trg3 = create(trg.xp - 40, trg.yp - 65, 0, 0, -20, 0, 18); _root.soundy('summonsound.wav', 100); _root.soundy('Boss_Lite_HIss.mp', 100); trg2.die = true; trg3.die = true; trg2.hp -= 2; trg3.hp -= 2; if (Math.abs(trg.xp - player.xp) < 70 && player.yp < trg.yp) { trg2 = create(trg.xp + 40, trg.yp - 90, 0, 0, -20, 0, 18); trg3 = create(trg.xp - 40, trg.yp - 90, 0, 0, -20, 0, 18); _root.soundy('summonsound.wav', 100); _root.soundy('Boss_Lite_HIss.mp', 100); trg2.die = true; trg3.die = true; trg2.hp -= 2; trg3.hp -= 2; } break; case 13: trg2 = create(trg.xp + 42, trg.yp + 45, 0, 0, 0, 0, 30); trg3 = create(trg.xp - 42, trg.yp + 45, 0, 0, 0, 0, 30); _root.soundy('summonsound.wav', 120); trg2.boss = true; trg3.boss = true; if (trg.specoz == 23) { trg2.hp = trg2.mhp; trg3.hp = trg3.mhp; trg2.specoz = 23; trg3.specoz = 23; speco(trg2); speco(trg3); trg2._yscale *= 1.3; trg2._xscale = trg2._yscale; trg3._yscale *= 1.3; trg3._xscale = trg3._yscale; trg2.eternal = true; trg3.eternal = true; } break; case 9: shots(trg.xp + rand() * 30, trg.yp - 20, rand() * 3, 10, true); _root.soundy('Boss_Lite_Gurgle.mp', 100); break; case 10: shots(trg.xp + 13, trg.yp - 18 - rand() * 30, -10, 1 + rand() * 3, true); _root.soundy('Boss_Gurgle_Roar.mp', 100); break; case 11: shots(trg.xp - 13, trg.yp - 18 - rand() * 30, 10, 1 + rand() * 3, true); _root.soundy('Boss_Gurgle_Roar.mp', 100); } trg.d.d.now = false; } trg.xp = trg.xpp; trg.yp = trg.ypp; trg.xbew *= 0.8; trg.ybew *= 0.8; } } function telpx(f3) { if (f3 == 2) { f2 = 120 + Math.random() * 120; } else { f2 = 220 * Math.random() + 120; } f1 = trg.xp + crand(f2); f2 = trg.yp + crand(); if (f3 == 2) { f3 = enfcheck(f1, f2, player.xp, player.yp, 700); if (f3) { f3 = f3 > 180; } } else { if (!f3) { if (trg.alter != 2 || trg.s != 38) { f3 = !enfcheckx(f1, f2, player.xp, player.yp, 400) && enfcheck(f1, f2, player.xp, player.yp, 10000) > 200; } else { f3 = enfcheck(f1, f2, player.xp, player.yp, 10000); f4 = f3; f3 = f3 > 100 && f3 < 230; } } else { f3 = enfcheck(f1, f2, player.xp, player.yp, 10000); f3 = f3 > 130 && f3 < 1000; } } if (f3) { f3 = ingrid(f1, f2); if (levzz(f3) < 0.5) { outgrid(f3); trg.xpp = xenf; trg.ypp = yenf; } } } function smartd() { if (trg.s !== 79) { } else { trg.xbew *= 0.8; trg.ybew *= 0.8; if (trg.specoz) { trg.xbew *= 0.92; trg.ybew *= 0.92; if (trg.alt) { } } if (trg.alt) { trg.ggh = true; trg2 = trg.trg2; i = 0; while (i < ball.length) { trg3 = ball[i]; if (trg.s == trg3.s && trg3.alt && !trg3.dones) { if (trg3 != trg && trg3) { enf = enfcheck(trg.xp, trg.yp, trg3.xp, trg3.yp, 100); if (enf > 0) { enf = ((100 - enf) / enf) * 0.01; xenf *= enf; yenf *= enf; trg.xbew += xenf; trg.ybew += yenf; trg3.xbew -= xenf; trg3.ybew -= yenf; } } } ++i; } trg3 = trg2.trg3; trg.xbew += crand(0.01); trg.ybew += crand(0.01); if (altboss == 2) { if (trg2.s != 79) { trg.dones = true; } trg.imba = true; bord(580, 60, 410, 170); if (trg.d._currentframe == 12) { if (trgnextd()) { trg.d.gotoAndStop(7); trg.fire = 60; trg.ypp = 0; trg.xpp = 0; } if (trg.d.d._currentframe > 15 && trg.d.d._currentframe < 50) { lasershow(trg); } } else { if (trg.fire > -100) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 300)) { enf = 0.65 / enf; trg.xbew += xenf * enf; trg.ybew += yenf * enf * 0.9; } } else { f1 = player.yp - trg.yp; trg.ybew += absmax(f1 * 0.01, 0.2); } --trg.fire; if (trg.fire < 0) { if (random(30) == 0 && trg.fire > -100) { trg.fire = -101; trg.ypp = 0; trg.xpp = 0; } } else { if (random(40) == 0 && trg.fire < -180) { trg.fire = 60; } } trg.d.gotoAndStop(7); trg.onown = true; sideflip(-trg.xbew); markhere(trg); if (random(10) == 0 && trg.fire < 0) { chaa(2); if (trg.xpp != 0 && trg.ypp == 0) { trg.d.gotoAndStop(12); sideflip(-trg.xpp * 10); } } } } else { if (trg2.dones || altboss && trg2.trg3 != trg && trg2.hp < 60 || trg.onown) { bord(580, 60, 410, 170); if (!trg.onown) { trg.onown = true; _root.soundy('Cute_Grunt_' + random(3) + '.mp', 100); } if (trg2.trg3 == trg) { f0 = 1; } else { f0 = 0; } i = 0; while (i < 19) { trg3 = trg2['n' + i + ' ' + f0]; trg3._visible = false; ++i; } if (trg.d._currentframe <= 9) { trg.d.gotoAndStop(9); trg.ma = 8; } trg.xbew /= 0.85; trg.ybew /= 0.85; enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.5 / enf; if (trg.eternal) { enf *= 1.5; } trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; sideflip(-trg.xbew); } else { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.25 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trgnextd(); if (trg.d._currentframe <= 6) { trg.d.gotoAndStop(7); } firemode(300, 5); } } } else { b1 = false; if (trg.eternal) { breakdance(trg.s); if (trg.sp > 0) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 10000); if (enf) { if (linecheck(trg.xp, trg.yp, player.xp, player.yp)) { enf = trg.sp / enf; trg.xbew *= 0.94; trg.ybew *= 0.94; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; b1 = true; trg.gridtime -= 20; } } } } if (trg.trg2 == undefined && !trg.gemsp) { trg.gemsp = true; trg.fire = 0; f0 = 1; if (trg.specoz == 23) { f0 = 2; } while (f0 > 0) { --f0; trg2 = create(trg.xp + f0 * 10, trg.yp - 8, 0, 0, 0, 0, trg.s); if (f0 == 0) { trg.trg2 = trg2; } else { trg.trg3 = trg2; } trg2.fra = -100; trg2.alt = true; trg2.outway = true; trg2.specoz = trg.specoz; speco(trg2); trg2.trg2 = trg; if (!altboss && trg.specoz != 3) { i = 0; while (i < 17) { trg3 = trg.attachMovie('necksegment2', 'n' + i + ' ' + f0, i + 2001312 + f0 * 20); trg3.ballz = ballz; ++i; } } } } if (trg.fire == 0) { trg.sp = 1.4; if (random(60) == 0 && (altboss != 2 || random(4) == 0)) { ++trg.fire; _root.soundy('Monster_Yell_B_' + random(2) + '.mp', 100); } trg.d.gotoAndStop(1); } else { ++trg.fire; if (trg.fire > 0) { trg.d.gotoAndStop(2); trg.sp += 0.04; trg.sp *= 0.98; if (trg.fire > 100) { trg.fire = -100; } } else { if (altboss == 2) { trg.d.gotoAndStop(1); trg.fire = 0; } else { trg.d.gotoAndStop(5); trg.sp = 0; } } } if (altboss == 2) { trg.sp += 0.2; if (fra % 7 == 0) { trg2 = parc('bloo', trg.xp, trg.yp, 0, 123); } } if (!b1) { pathfind(trg, playx, playy, trg.sp); } if (altboss == 2) { trg.sp -= 0.2; } f1 = 0; if (altboss == 2) { f1 = 6; } else { if (altboss) { f1 = 3; } } if (enfget(trg.xbew, trg.ybew) > 3) { if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(3 + f1); } else { trg.d.bo.gotoAndStop(2 + f1); } sideflip(trg.xbew); } else { trg.d.bo.gotoAndStop(1 + f1); } } } smux2(); } function gem(trg2, f0) { if (trg.s == trg2.s && trg.specoz != 3 && !trg2.dones) { if (trg.eternal) { f1 = 20 / (240 + fra); if (trg.hp < trg.mhp) { trg.hp += f1; } if (trg2.hp < trg2.mhp) { trg2.hp += f1 * 2; } } enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 1000); if (xenf != 0) { } f3 = 76; if (altboss) { if (enf > 0 && !trg2.onown) { f2 = ((enf - 20) / enf) * 0.1; trg2.xbew += xenf * f2; trg2.ybew += yenf * f2; } } else { if (enf > f3) { f2 = ((enf - f3) / enf) * 0.01; trg2.xbew += xenf * f2; trg2.ybew += yenf * f2; } } f3 += 120; i = 0; while (i < 19) { var v2 = trg['n' + i + ' ' + f0]; f1 = (16 - i) / 17; v2._x = -xenf * f1 - 6; f2 = Math.abs(i - 9) * 0.5; f2 = 16 - f2 * f2; f2 *= Math.max(0, f3 - enf) / f3; v2._y = -yenf * f1 - 35 + f2 * 1.5 + i * 0.8; v2._x /= Math.abs(trg._xscale / 100); v2._y /= Math.abs(trg._yscale / 100); v2._visible = true; if (yenf < 0) { v2.swapDepths(80 - i - f0 * 20); } else { v2.swapDepths(3 + i + f0 * 20); } if (i == 18) { v2._visible = false; } ++i; } } else { i = 0; while (i < 19) { var v2 = trg['n' + i + ' ' + f0]; v2._visible = false; ++i; } } } function smux2() { switch (trg.s) { case 78: if (trg.eternal) { if (lars < 5) { lars = 5; } if (trg.hp < trg.mhp && fra > 10) { f1 = 0.5; if (_root.locker[45]) { f1 = 0.75; } trg.hp += ((300 + (trg.mhp - trg.hp) * f1) / (fra + 330)) * 0.5; trg.hp = Math.min(trg.mhp, trg.hp); } } mheart = trg; trg.outway = true; trg.ggh = true; if (trg.eternal) { sizes[trg.s] = 20; if (trg.d._currentframe == 4 && trg.d.d._currentframe > 19) { trg.d.gotoAndStop(1); } if (!_root.locker[45]) { if (trg.d._currentframe == 2 && trg.d.d._currentframe == 7) { } } if (trg.d._currentframe < 4 && fra > 30) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 100000); enf = -0.5 / enf; xenf *= enf; yenf *= enf; trg.xbew += xenf; trg.ybew += yenf; } trg.xbew *= 0.9; trg.ybew *= 0.9; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xp = trg.xpp; trg.yp = trg.ypp; } f3 = Math.min(3, 4 - Math.round((trg.hp / trg.mhp) * 3 + 0.45)); if (momstate == 3) { splater(trg.xp + crand() * 2, trg.yp + crand(Math.random() * Math.random() * 200) + 8, 1 + random(10), Math.random() * 0.5 + 0.2); } if (momstate != f3) { momstate = f3; } if (trg.d._currentframe != 5 && (trg.d._currentframe != 4 || trg.d.d._currentframe > 30)) { trg.d.gotoAndStop(momstate); if (trg.downbro-- < 0 && momstate != 3) { if (!trg.eternal) { trg.d.gotoAndStop(5); _root.soundy('heartin.wav'); } } } else { if (trg.d._currentframe == 5) { if (trg.fire < 40 || momstate == 3) { trg.downbro = 100; trg.d.gotoAndStop(4); _root.soundy('heartout.wav'); _root.soundy('Mom_Vox_Filtered_Isaac_' + random(3) + '.mp'); } } } trg.bh = trg.d._currentframe != 5 && (trg.d._currentframe != 4 || trg.d.d._currentframe > 5); if (ashut < 2) { --trg.fire; } if (trg.eternal && ashut < 4 && !_root.locker[45]) { trg.fire -= 0.05; } if (trg.eternal && ashut < 7) { trg.fire -= 0.04; } if (momstate !== 3) { } else { if (random(2) == 0 && fra % 23 == 0) { green(true, true); } } if (trg.fire < 0) { if (lmo != momstate) { trg.wave = 0; } f5 = _root.locker[45]; if (f5) { switch (momstate) { case 1: f2 = [60, 55, 20, 19]; if (trg.eternal) { f2[1] = 56; } break; case 2: f2 = [41, 59, 67, 28]; break; case 3: f2 = [61, 24, 14, 23]; } } else { switch (momstate) { case 1: f2 = [60, 59, 24]; break; case 2: f2 = [55, 24, 27.4]; if (trg.eternal) { f2[0] = 56; } break; case 3: f2 = [25.5, 61, 14]; } } f2 = f2[trg.wave]; if (f2 == 60 && fra < 100) { f1 = 180; } else { f1 = 40; } trg.fire = 75; ++trg.wave; lmo = momstate; _root.soundy('summonsound.wav', 100 + momstate * 10); create(trg.xp + f1, trg.yp, 0, 0, 0, 0, f2); if (f2 != 20 && f2 != 67 && (f2 != 59 || !trg.eternal)) { create(trg.xp - f1, trg.yp, 0, 0, 0, 0, f2); if (f2 == 19) { create(trg.xp + f1, trg.yp + 30, 0, 0, 0, 0, f2); create(trg.xp - f1, trg.yp + 30, 0, 0, 0, 0, f2); create(trg.xp + f1, trg.yp + 60, 0, 0, 0, 0, f2); create(trg.xp - f1, trg.yp + 60, 0, 0, 0, 0, f2); } else { if (f2 != 60 && f2 != 59 && f2 != 24 && f2 != 27.4 && f2 != 25.5 && f2 != 56) { f1 *= 0.8; if (f2 != 28) { create(trg.xp, trg.yp + f1, 0, 0, 0, 0, f2); } create(trg.xp, trg.yp - f1, 0, 0, 0, 0, f2); } } } if (trg.wave > 2 && !f5 || trg.wave > 3 && f5) { trg.wave = 0; } } if (trg.eternal) { if (trg.d._currentframe > 3) { trg.d.d._yscale = 73.75; trg.d.d._xscale = 73.75; } else { trg.d.d._yscale = 59; trg.d.d._xscale = 59; } } break; case 69: if (trg.specoz == 23) { healo = trg; } trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); switch (trg.d._currentframe) { case 1: case 2: randrun(); if (random(40) == 0 && enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 300)) { trg.d.gotoAndStop(5); } else { if (random(140) == 0) { trg.d.gotoAndStop(9); } else { if (random(100) == 0) { trg.d.gotoAndStop(7); } else { if ((random(50) == 0 && trg.specoz == 23 || random(50) == 0) && ashut < 3 + random(2) && (random(3) == 0 || !altboss)) { trg.d.gotoAndStop(8); } } } } break; case 5: if (trg.d.d._currentframe == trg.d.d._totalframes - 1) { trg.d.gotoAndStop(6); if (trg.xpp > 0) { trg.xp = trg.xpp; trg.yp = trg.ypp; } } else { telpx(); } break; case 8: if (trg.d.d._currentframe == 22) { if (trg.specoz == 23) { if (random(10) == 0) { f1 = 37.9; } else { f1 = 38; } } else { f1 = 25; } noet = true; trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, f1); noet = false; _root.soundy('summonsound.wav'); trg2.outway = true; if (altboss && !trg.eternal) { trg2.alter = 2; } if (trg.specoz == 23) { trg2.specoz = 23; speco(trg2); } } break; case 9: if (trg.d.d._currentframe == 26) { quadf(trg.xp, trg.yp, 10, true); } if (trg.specoz == 23) { if (trg.d.d._currentframe == 3) { trg.fire = 3; } if (trg.d.d._currentframe == 46) { if (trg.fire-- > 0) { trg.d.d.gotoAndStop(55); } } if (trg.d.d._currentframe == 60) { if (trg.fire > 0) { trg.d.d.gotoAndStop(16); } } } break; case 7: if (trg.d.d._currentframe == 28) { quadf(trg.xp, trg.yp, 10); } if (trg.d.d._currentframe == 51) { quadf(trg.xp, trg.yp, 10, 2); } if (trg.d.d._currentframe == 77) { quadf(trg.xp, trg.yp, 10); } if (trg.specoz == 23) { if (trg.d.d._currentframe == 3) { trg.fire = 2; } if (trg.d.d._currentframe == 90) { if (trg.fire-- > 0) { trg.d.d.gotoAndStop(28); } } if (trg.d.d._currentframe > 36 && trg.d.d._currentframe < 49 || trg.d.d._currentframe > 60 && trg.d.d._currentframe < 75) { trg.d.d.nextFrame(); trg.d.d.nextFrame(); } } } if (altboss) { sideflip((0.5 - trg.e % 2) * 10); } break; case 68: trgnextd(); slug = trg; if (trg.specoz == 12 && fra % 13 == 0) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 1.6; trg2._yscale = trg2._xscale; colorit(trg2, 0.6, 1.5, 0.2, 100, 120, 0); } switch (trg.d._currentframe) { case 1: case 2: randrun(); if (trg.specoz != 12 || random(3) == 0) { if (random(23) == 0) { trg.d.gotoAndStop(10); } if (random(20) == 0) { trg.d.gotoAndStop(5 + random(2)); } if (altboss) { if (Math.abs(trg.yp - 20 - player.yp - player.ybew * 5) < 20) { trg.d.gotoAndStop(12); } if (Math.abs(trg.xp - player.xp - player.xbew * 5) < 40 && trg.yp < player.yp) { trg.d.gotoAndStop(13); } } } break; case 13: if (trg.d.d._currentframe > 10 && trg.d.d._currentframe < 50) { if (trg.d.d._currentframe == 12) { ++trg.ploo; } f8 = 15 - random(2) * 30; trg.yp -= 20; trg.xp -= f8; lasershow(trg); trg.yp += 20; trg.xp += f8; trg.xpp = 0; trg.ypp = 1; } break; case 12: if (trg.d.d._currentframe > 10 && trg.d.d._currentframe < 50) { if (trg.d.d._currentframe == 12) { ++trg.ploo; } trg.yp -= 20; lasershow(trg); trg.yp += 20; trg.xpp = 1 - random(2) * 2; trg.ypp = 0; } break; case 11: if (trg.d.d._currentframe == 28) { if (altboss) { z = 0; while (z < 10) { f1 = crand(random(100)); f2 = crand(); trg2 = parc('bloo', trg.xp + f1, trg.yp + f2); trg2._xscale *= 2; trg2._yscale = trg2._xscale; ++z; } if (trg.specoz) { green(false, false); green(false, true); green(false, true); ++trg.ploo; } else { quadf(trg.xp, trg.yp, 10, 1); } } else { cirf(trg.xp, trg.yp, 10, 12); } _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 100); } break; case 5: if (trg.d.d._currentframe == 38) { if (altboss) { if (trg.specoz) { green(false, true); green(false, true); ++trg.ploo; } else { quadf(trg.xp, trg.yp, 10, 1); } } else { cirf(trg.xp, trg.yp, 10, 8); } _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 80); } break; case 6: if (trg.d.d._currentframe > 30 && trg.d.d._currentframe < 40) { if (trg.d.d._currentframe == 31) { _root.soundy('Sink Drain Gurgle.wav', 100); if (trg.specoz == 3) { spaw(trg.xp, trg.yp, 50, 23); spaw(trg.xp, trg.yp, 50, 23); } } f1 = crand(random(100)); f2 = crand(); if (altboss) { f1 *= 1.5; f2 *= 1.5; } trg2 = parc('bloo', trg.xp + f1, trg.yp + f2); trg2._xscale *= 2; trg2._yscale = trg2._xscale; if (!altboss) { colorit(trg2, 0.6, 1.5, 0.2, 100, 120, 0); } else { trg2._xscale *= 1.3; trg2._yscale *= 1.3; } } break; case 10: if (trg.d.d._currentframe == 30) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000); if (enf > 0) { enf = 0.03333333333333333; trg.xbew = -xenf * enf; trg.ybew = -yenf * enf; } } } trg.bh = (trg.d._currentframe != 10 || trg.d.d._currentframe < 29) && (trg.d._currentframe != 11 || trg.d.d._currentframe > 27); if (trg.bh) { if (trg.specoz == 12) { trg.xbew *= 0.8; trg.ybew *= 0.8; } else { trg.xbew *= 0.6; trg.ybew *= 0.6; } } trg.flyby = !trg.bh; f3 = Math.min(3, 4 - Math.round((trg.hp / hps[trg.s]) * 3 + 0.45)); if (trg.specoz == 23) { f3 = Math.min(3, 4 - Math.round((trg.hp / hps[trg.s]) * 5 + 0.45)); if (altboss) { if (ashut < 5 && _root.slugeye > 2) { --_root.slugeye; --trg.ploo; } f3 = -3 + trg.ploo; } } if (altboss) { f1 = random(10); } else { f1 = 21 + random(10); } splater(trg.xp + crand() * 2, trg.yp + crand(random(20)) + 8, f1, Math.random() * 0.5 + 0.2); if ((_root.slugeye < f3 && fra > 30 && trg.specoz != 13 && (!altboss || trg.specoz == 23) || (trg.specoz == 13 || altboss && trg.specoz != 23)) && _root.slugeye < 3) { ++_root.slugeye; f1 = crand(30); f2 = crand(); _root.soundy('plop.wav'); noet = true; trg2 = create(trg.xp + f1, trg.yp + f2, 0, f1 * 0.4, f2 * 0.4, 0, 25); noet = false; trg2.alt = true; trg2.fra = -100; trg2.d.gotoAndStop(9); if (trg.specoz == 23) { trg2.hp *= 5; } else { trg2.imba = true; } } if (altboss) { z = 0; while (z < 15) { trg2 = trg.d.d['s' + z]; colorit(trg2, 0.7, 0.1, 0.1, 30, 0, 0); ++z; } } break; case 67: trg.ggh = true; duked = 65 + Math.sin(fra * 0.02) * 5; trg.xp = Math.min(580, Math.max(60, trg.xp)); if (trg.xp == 580) { trg.xbew = -1; } if (trg.xp == 60) { trg.xbew = 1; } trg.yp = Math.min(410, Math.max(180, trg.yp)); if (trg.yp == 410) { trg.ybew = -1; } if (trg.yp == 180) { trg.ybew = 1; } duke = trg; trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if (trg.xbew > 0) { xenf = 1; } else { xenf = -1; } if (trg.ybew >= 0.1) { yenf = 1; } else { yenf = -1; } if (altboss) { f1 = 0.8; if (trg.specoz == 19) { f1 = 1.1; } else { if (trg.specoz) { f1 = 0.5; } else { f1 = 0.8; } } } else { f1 = 0.4; } trg.xbew += xenf * f1; trg.ybew += yenf * f1; if (trg.specoz == 6) { trg.xbew *= 0.9; trg.ybew *= 0.9; } switch (trg.d._currentframe) { case 1: case 2: if (random(40) == 0 && dukes + ashut < 9 && trg.specoz != 19) { trg.d.gotoAndStop(5); } else { if (random(70) == 0 && ashut - dukes * 0.5 < 5 && trg.specoz != 19) { trg.d.gotoAndStop(6); } else { if (random(45) == 0 && dukes > 4 && ashut - dukes < 5 && trg.specoz != 5 || (trg.specoz == 5 || altboss) && random(70) == 0 || trg.specoz == 19 && random(20) == 0) { trg.d.gotoAndStop(7); } } } break; case 5: if (trg.d.d._currentframe == 20) { _root.soundy('Monster_Grunt_2_' + abr() + '.mp', 100); trg2 = []; f1 = 5; if (trg.specoz == 16) { trg2 = create(trg.xp, trg.yp + 20, 0, 0, 0, 0, 25); trg2.duke = true; } else { trg2.push(create(trg.xp + f1 * 2, trg.yp + 20, 0, 0, 0, 0, 18)); trg2.push(create(trg.xp, trg.yp + 20, 0, 0, 0, 0, 18)); if (altboss) { if (random(2) == 0) { boil(true); } } else { trg2.push(create(trg.xp - f1 * 2, trg.yp + 20, 0, 0, 0, 0, 18)); } for (z in trg2) { trg2[z].die = true; trg2[z].duke = true; trg2[z].fra = -20; } } } break; case 6: if (trg.d.d._currentframe == 18) { _root.soundy('Monster_Grunt_1_' + abr() + '.mp', 100); trg2 = []; f5 = 5; if (altboss) { bossfire(10, true); } else { if (trg.specoz == 6) { trg2.push(create(trg.xp, trg.yp + 20, 0, 0, 0, 0, 61)); } else { if (trg.specoz == 5) { trg2.push(create(trg.xp, trg.yp + 20, 0, 0, 0, 0, 80)); } else { trg2.push(create(trg.xp, trg.yp + 20, 0, 0, 0, 0, 18)); } } for (z in trg2) { trg2[z].fra = -20; trg2[z].die = true; if (!trg.specoz) { trg2[z].d._yscale = 125; trg2[z].d._xscale = 125; trg2[z].hp *= 1.8; } } } } break; case 7: trg.send = trg.d.d._currentframe == 17; if (trg.send) { if (trg.specoz == 5) { cirf(trg.xp, trg.yp, 7, 8); trg.send = false; } else { if (altboss) { cirf(trg.xp, trg.yp, 8, 8); } } _root.soundy('Monster_Grunt_4_' + abr() + '.mp', 100); } } dukes = 0; } } function devl() { trg._visible = trg.d._currentframe != 1; if (trg.d._currentframe < 8) { trg.d.gotoAndStop(9); trg.xp = player.xp; trg.yp = player.yp; trg2 = trg.trg2; siz = 111; if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, siz)) { enf = (siz - enf) / enf; xenf *= enf; yenf *= enf; trg.xp += xenf; trg.yp += yenf; } if (ashut < 4 && random(2) == 0) { f1 = 55.1; if (trg.eternal) { if (lars++ > 2) { lars = 0; f1 = 81; } } trg2 = spaw(player.xp, player.yp, 200, f1); if (trg.eternal && f1 == 81) { trg2._yscale = 70; trg2._xscale = 70; trg2.hp *= 0.3; trg2.mhp = trg2.hp; trg2.nobar = true; } } if (random(2) == 0) { _root.soundy('satan stomp ' + random(3) + '.mp3'); } } if (trg.trg3 != undefined) { if (trg.hp < trg.mhp) { trg.trg3.hp -= trg.mhp - trg.hp; trg.hp = trg.mhp; if (trg.trg3.hp < 0) { trg.trg3.done = true; trg.done = true; momkill(); } } } else {} trg.bh = trg.d._currentframe == 9 && trg.d.d._currentframe > 27 && trg.d.d._currentframe < 62; if (trg.d._currentframe == 9 && trg.d.d._currentframe == 26) { trg.dmg = 300; gosplash(); _root.soundy('Hellboss_Groundpound_' + random(2) + '.wav'); } } function smarties() { switch (trg.s) { case 84: if (trg.eternal) { } if (!trg.app) { trg.app = true; _root.soundy('satan appear.mp'); } if (trg.d._currentframe == 3 && trg.d.d._currentframe == 17) { _root.soundy('satan blast.mp', 50); } if (trg.d._currentframe == 8 && trg.d.d._currentframe == 83) { _root.soundy('satan grow.mp', 50); } trg.ybew *= 0.8; trg.xbew *= 0.8; trgnextd(); trg.alter = 2; if (trg.pow == 5) { devl(); } else { if (trg.pow == undefined) { trg.pow = 1; trg.fire = 0; if (trg.pow < 3) { trg.bh = false; trg.d.gotoAndStop(1); trg.til = ingrid(trg.xp, trg.yp + 80); levz[trg.til] = 1; } } sati = trg; switch (trg.pow) { case 1: levz[trg.til] = 2; if (trg.fire++ > 130) { trg.fire = 0; ++trg.pow; xenf = 50; yenf = 110; create(trg.xp, trg.yp + yenf, 0, 0, 0, 0, 81); create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 55.1); create(trg.xp - xenf, trg.yp + yenf, 0, 0, 0, 0, 55.1); _root.soundy('satan blast.mp'); _root.soundy('summonsound.wav', 200); } if (plh) { plh = false; trg.d.gotoAndStop(2); } break; case 2: if (helps == 1) { if (trg.fire++ > 25) { if (trg.d._currentframe != 3) { _root.soundy('satan rise up.mp'); trg.d.gotoAndStop(3); } if (trg.d.d._currentframe > 54) { ++trg.pow; } } } levz[trg.til] = 1; break; case 3: mhelps = 1; trg.bh = true; levz[trg.til] = 0; if (trg.d._currentframe < 4) { trg.d.gotoAndStop(4); } trg.yp = Math.max(165, trg.yp); switch (trg.d._currentframe) { case 4: yenf = Math.max(305, player.yp * 0.9300000000000001) - trg.yp - 140; xenf = player.xp - trg.xp; xenf1 = player.xp + player.xbew * 25 - trg.xp; if (xenf * xenf1 < 0 && yenf > -70 && (trg.llo != 6 || random(10) == 0) || trg.llo == 7 && Math.abs(xenf) < 40 && random(3) == 0) { trg.d.gotoAndStop(6); _root.soundy('satan charge up.mp'); trg.llo = 6; } else { if (random(15) == 0 || random(3) == 0 && (trg.llo == 7 || trg.llo == 6)) { trg.d.gotoAndStop(5); trg.llo = 5; } else { if (Math.abs(xenf) > 100 || yenf < 0) { trg.xbew += absmax(xenf, 15) * 0.1; trg.ybew += absmax(yenf, 7) * 0.1; } else { if (Math.abs(xenf) > 40 && Math.abs(xenf1) < 200 && yenf >= 0) { trg.d.gotoAndStop(7); _root.soundy('satan charge up.mp', 50); trg.llo = 7; } } } } break; case 5: if (trg.eternal) { yenf = Math.max(305, player.yp * 0.9300000000000001) - trg.yp - 140; xenf = player.xp - trg.xp; trg.xbew += absmax(xenf, 15) * 0.03; trg.ybew += absmax(yenf, 7) * 0.03; } if (trg.d.d._currentframe == 56) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); if (enf > 300 && random(3) != 0) { trg.d.d.gotoAndStop(12); } } if (trg.d.d._currentframe == 15 || trg.d.d._currentframe == 36) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); if (trg.d.d._currentframe == 15) { f1 = true; _root.soundy('satan spit.mp', 100); } else { f1 = 2; _root.soundy('satan spit 2.mp', 100); } if (enf > 300) { enf = -10 / enf; } else { enf = -8.199999999999999 / enf; } xenf *= enf; yenf *= enf; shots(trg.xp, trg.yp, xenf, yenf, f1); } break; case 6: if (trg.d.d._currentframe > 20 && trg.d.d._currentframe < 48) { trg.xpp = 0; trg.ypp = 1; v1 = 20; lasershow(trg); trg.xp -= v1; lasershow(trg); trg.xp += v1 + v1; lasershow(trg); trg.xp -= v1; } break; case 7: if (trg.d.d._currentframe > 18 && trg.d.d._currentframe < 46) { trg.xpp = 0; trg.ypp = 1; v1 = 85; trg.xp -= v1; lasershow(trg); trg.xp += v1 + v1; lasershow(trg); trg.xp -= v1; } } break; case 4: if (trg.app != 2) { trg.app = 2; _root.soundy('satan hurt.mp'); } devl(); if (trg.trg2 == undefined && trg.d.d._currentframe == 50 && trg.d._currentframe == 9) { trg.trg2 = create(player.xp, player.yp, 0, 0, 0, 0, 84); trg2 = trg.trg2; trg2.pow = 5; trg2._visible = false; trg2.trg3 = trg; trg2.trg2 = trg2.trg3; } } } break; case 83: if (fra % 3 == 0 && trg.specoz == 23 && (trg.greeny || trg.hp < trg.mhp * 0.5) && random(4) != 0) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 1.2; trg2._yscale = trg2._xscale; trg2.gotoAndStop(20); if (trg.greeny) { colorit(trg2, 0, 2, 0, 0, 40, 0); } else { trg2.gotoAndStop(90); } } trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if (trg.specoz == 23 && !trg.greeny) { trg.hp += 0.03 / (1 + fra * 0.001); } switch (trg.d._currentframe) { case 1: case 2: trg.xp = Math.min(580, Math.max(60, trg.xp)); randrun(); sideflip(trg.xbew); f1 = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); if (random(30) == 0 && f1 < 200 || trg.specoz == 23 && !trg.greeny && random(50) == 0) { trg.d.gotoAndStop(7); if (trg.specoz == 23 && !trg.greeny) { trg.xo = 0; trg.yo = 0; } } else { if (random(120) == 0 || Math.abs(yenf) < 20 && random(80) == 0) { _root.soundy('Monster_Yell_A_' + random(3) + '.mp', 100); sideflip(player.xp - trg.xp); trg.d.gotoAndStop(5); trg.xpp = trg.xp; trg.ypp = trg.yp; trg.gogo = 3; trg.bh = true; trg._visible = trg.bh; } } break; case 7: if (trg.specoz == 23 && !trg.greeny) { if (trg.d.d._currentframe >= 13 && trg.d.d._currentframe < 31) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 8, player.yp + player.ybew * 8, 10000); f1 = true; enf = enfget(xenf, yenf); enf = -9.199999999999999 / enf; xenf *= enf; yenf *= enf; if (trg.d.d._currentframe == 13) { _root.soundy('Blood_Laser' + random(2) + '.mp'); } else { xenf *= 0.3; yenf *= 0.3; xenf += trg.xo * 0.7; yenf += trg.yo * 0.7; } trg.xo = xenf; trg.yo = yenf; ffmo(trg.xp, trg.yp + 5, 0, xenf * 1.4, yenf * 1.4, 0, 9, trg.s, true); } } else { if (trg.d.d._currentframe == 13) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); f1 = true; _root.soundy('Monster_Grunt_2_' + abr() + '.mp', 100); enf = enfget(xenf, yenf); enf = -9.199999999999999 / enf; xenf *= enf; yenf *= enf; shots(trg.xp, trg.yp, xenf, yenf, f1); } } break; case 6: trg.xbew = trg.d._xscale * 0.18; if (trg.specoz == 23 && !trg.greeny && random(100) == 0) { --trg.gogo; } if (trg.gogo > 0) { f1 = false; if (trg.xp > 619) { trg.xp = 10; f1 = true; } else { if (trg.xp < 21) { trg.xp = 630; f1 = true; } } if (f1) { f1 = 95; trg.yp += f1; if (trg.yp > 430) { trg.yp -= f1 * 3; } --trg.gogo; } } else { if ((trg.xp - trg.ypp) * trg.xbew > 0) { trg.d.gotoAndStop(1); } } } break; case 82: trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); switch (trg.d._currentframe) { case 1: case 2: randrunx(1); sideflip(trg.xbew); walkframe(3); if (random(40) == 0) { trg.d.gotoAndStop(5); } break; case 5: if (trg.d.d._currentframe == 9) { green(); _root.soundy('heartout.wav', 100); } } break; case 64: b1 = allets; allets = false; trg.xp = Math.min(580, Math.max(60, trg.xp)); if (trg.specoz == 17) { spidboss = true; } if (trg.specoz == 23 && !trg.whut) { trg.hp += 50 / (100 + fra); } if (fra % 3 == 0 && trg.specoz != 17) { splater(trg.xp + crand(), trg.yp + crand(random(20)), trg.spl + 1 + random(10), Math.random() * 0.5 + 0.4); } trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if (trg.specoz == 23) { f1 = 0.65; } else { f1 = 0.5; } if ((trg.whut || trg.hp / trg.mhp < f1) && trg.d._currentframe < 7) { if (!trg.whut) { trg.gosplash = true; trg.whut = true; if (trg.specoz == 23) { trg2 = spaw(trg.xp, trg.yp, 0, 83); trg2.specoz = 23; trg2.greeny = true; trg2.hp = trg.hp * 0.65; trg2.mhp = trg.mhp; speco(trg2); } } trg.d.gotoAndStop(7); } if (fra % 7 == 0) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 2; trg2._yscale = trg2._xscale; if (trg.specoz == 17) { colorit(trg2, 0, 0, 0, 235, 235, 235); } else { colorit(trg2, 0, 2, 0, 0, 40, 0); } } trg.f10 = false; switch (trg.d._currentframe) { case 7: trg.xp = Math.min(580, Math.max(60, trg.xp)); randrun(); if (random(40) == 0 && ashut < 4) { trg.d.gotoAndStop(9); } else { if (random(20) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 230)) { sideflip(player.xp - trg.xp); trg.d.gotoAndStop(8); } } } break; case 1: case 2: randrunx(1); sideflip(trg.xbew); walkframe(3); if (random(40) == 0 && ashut < 4) { trg.d.gotoAndStop(6); } else { if (random(20) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 230)) { sideflip(player.xp - trg.xp); trg.d.gotoAndStop(5); } } } break; case 6: if (trg.d.d._currentframe == 25) { _root.soundy('Monster_Grunt_5.mp', 100); xenf = crand(10); yenf = crand(); if (trg.specoz == 17) { create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 29.1); } else { trg2 = create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 23 + random(2) * 8); trg3 = create(trg.xp - xenf, trg.yp - yenf, 0, 0, 0, 0, 23 + random(2) * 8); if (trg.specoz == 23) { } } _root.soundy('summonsound.wav', 120); } break; case 9: if (trg.specoz == 17) { if (trg.d.d._currentframe == 19) { boil(); _root.soundy('Wheezy_Cough_' + random(3) + '.mp', 100); } } else { if (trg.d.d._currentframe == 25) { _root.soundy('Wheezy_Cough_' + random(3) + '.mp', 100); xenf = crand(10); yenf = crand(); trg2 = create(trg.xp + trg.d._xscale * 0.4 + xenf, trg.yp + yenf, 0, 0, 0, 0, 18); trg3 = create(trg.xp + trg.d._xscale * 0.4 - xenf, trg.yp - yenf, 0, 0, 0, 0, 18); trg3.die = true; trg2.die = trg3.die; trg3.fra = -20; trg2.fra = -20; } } break; case 5: if (trg.d.d._currentframe == 22) { trg.f10 = true; } if (trg.specoz == 23) { if (trg.d.d._currentframe == 30) { if (trg.firee-- > 0) { trg.d.d.gotoAndStop(16); } } if (trg.d.d._currentframe == 3) { trg.firee = 4; } } break; case 8: if (trg.d.d._currentframe == 9) { trg.f10 = true; } if (trg.specoz == 23) { if (trg.d.d._currentframe == 23) { if (trg.firee-- > 0) { trg.d.d.gotoAndStop(7); } } if (trg.d.d._currentframe == 3) { trg.firee = 1; } } } if (trg.f10) { if (trg.specoz == 17) { trg.s = 11; cirf(trg.xp, trg.yp - 50, 8, 6); trg.s = 64; } else { green(); } } allets = b1; break; case 63: trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if ((trg.whut || trg.hp / trg.mhp < 0.3) && trg.d._currentframe < 8) { if (!trg.whut) { trg.gosplash = true; trg.whut = true; trg.fire = 0; } trg.d.gotoAndStop(8); } switch (trg.d._currentframe) { case 8: case 9: firemode(300, 8); splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.6 + 0.6); if (trg.fire <= 0) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.5 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } break; case 1: case 2: randrun(); if ((random(40) == 0 || Math.abs(trg.yp - player.yp) < 20 && ashut < 3 && trg.specoz == 23) && (ashut < 3 || trg.specoz)) { trg.d.gotoAndStop(5); } else { if ((Math.abs(trg.yp - player.yp) < 20 && (Math.abs(trg.xp - player.xp) > 100 || trg.specoz != 23) || trg.specoz == 7 && random(4) == 0) && random(5) == 0 && trg.speczo != 23) { _root.soundy('Monster_Yell_A_' + random(3) + '.mp', 100); sideflip(player.xp - trg.xp); trg.d.gotoAndStop(6); if (trg.specoz == 23) { trg.xpp = player.xp; trg.ypp = player.yp; if (player.xp < trg.xp) { trg.xpp -= 100; } else { trg.xpp += 100; } trg.xpp = Math.min(480, Math.max(200, trg.xpp)); trg.gogo = true; } else { trg.xpp = trg.xp; trg.ypp = trg.yp; trg.gogo = true; } } } break; case 5: if (trg.specoz == 23) { if (trg.d.d._currentframe == 5) { trg.fire = 0; if (ashut > 1 + random(2)) { trg.fire = 1 + random(30); } } if (trg.d.d._currentframe == 25 || (trg.d.d._currentframe == 27 || trg.d.d._currentframe == 29) && trg.fire != 0) { _root.soundy('Monster_Grunt_5.mp', 100); if (trg.fire != 0) { trg.s = 11; cirf(trg.xp, trg.yp - 33, 8, 3, (trg.fire + trg.d.d._currentframe) * 0.2); trg.s = 63; } else { xenf = crand(50); yenf = crand(); b1 = allets; allets = false; trg2 = create(trg.xp + xenf, trg.yp + yenf, 0, xenf * 0.2, yenf * 0.2, 0, 14); trg2.fra -= 20; trg2.specoz = 23; speco(trg2); trg2.hp -= 3; trg3 = create(trg.xp + yenf, trg.yp - xenf, 0, yenf * 0.2, -xenf * 0.2, 0, 14.1); trg3.fra -= 20; trg3.specoz = 23; trg3.hp -= 3; speco(trg3); if (ashut < 3) { trg4 = create(trg.xp - xenf, trg.yp - yenf, 0, -xenf * 0.2, -yenf * 0.2, 0, 14); trg4.fra -= 20; trg4.specoz = 23; speco(trg4); trg4.hp -= 3; if (ashut < 2) { trg5 = create(trg.xp - yenf, trg.yp + xenf, 0, -yenf * 0.2, xenf * 0.2, 0, 14 + random(2) * 0.1); trg5.fra -= 20; trg5.specoz = 23; speco(trg5); trg5.hp -= 3; } } allets = b1; _root.soundy('summonsound.wav', 80); } } } else { if (trg.d.d._currentframe == 25) { _root.soundy('Monster_Grunt_5.mp', 100); if (trg.specoz == 7) { trg.s = 11; cirf(trg.xp, trg.yp - 33, 8, 6); trg.s = 63; } else { xenf = crand(50); yenf = crand(); create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 14); _root.soundy('summonsound.wav', 80); } } } break; case 7: if (trg.specoz) { trg.ybew -= absmax((trg.yp - player.yp) / 100, 0.4); } trg.xbew = trg.d._xscale * 0.18; if (!trg.gogo || trg.specoz == 23) { if ((trg.xp - trg.xpp) * trg.xbew > 0) { if (trg.xp < 520 && trg.xp > 150) { if (trg.specoz == 23) { trg.d.gotoAndStop(5); trg.d.d.gotoAndStop(19); trg.fire = random(50) + 1; } else { trg.d.gotoAndStop(1); } } else { if (trg.fire-- < 0) { trg.fire = 10; trg.gogo = true; trg.xpp = 300; } } } } if (trg.gogo) { if (trg.xp > 619) { trg.xp = 0; trg.gogo = false; } else { if (trg.xp < 21) { trg.xp = 640; trg.gogo = false; } } } } break; case 62: f14 = 33; if (altboss) { if (trg.d._currentframe == 6 || trg.d._currentframe == 10) { trg.d._yscale = 85; trg.d._xscale = 85; } else { trg.d._yscale = 65; trg.d._xscale = 65; } f14 = 26; } ++wormet; trg.worm = wormet; worm[wormet] = trg; if (trg.worm == 1) { if (trg.d._currentframe == 8 || trg.d._currentframe == 9) { trg.xppp = 0; trgnextd(); trg.bh = true; if (trg.d._currentframe == 8 && trg.d.d._currentframe > 88 || trg.d._currentframe == 9 && trg.d.d._currentframe > 55) { trg.bh = false; } trg._visible = true; trg.ybew = 0; trg.xbew = 0; trg.dy = 0; if (trg.d._currentframe == 1) { trg.gogo = 3; trg._visible = false; } if (trg.d.d._currentframe == 46 && trg.d._currentframe == 8) { _root.soundy('Boss_Lite_HIss.mp', 100); bossfire(15, true); } else { if (trg.d._currentframe == 9) { if (trg.d.d._currentframe == 23) { if (!altboss) { _root.soundy('Monster_Roar_2.mp', 100); } else { _root.soundy('Cute_Grunt_2.mp', 80); } } if (trg.d.d._currentframe == 23 || (trg.d.d._currentframe == 24 && trg.specoz != 23 || trg.d.d._currentframe == 25) && !altboss) { if (trg.specoz == 16) { cirf(trg.xp, trg.yp - 20, 8, 6); } else { if (trg.specoz == 23) { if (trg.d.d._currentframe == 25 || altboss) { if (trg.fire == undefined) { trg.fire = 0; } ++trg.fire; if (altboss) { f1 = 5; } else { f1 = 2; } if (trg.fire < f1) { trg.d.d.gotoAndStop(18); } else { trg.fire = 0; } } green(true, true); } else { green(); } } } } } } else { if (!trg.whut) { trg.beenx = [trg.xp]; trg.beeny = [trg.yp]; trg.beenf = [35]; trg.xpp = 320 - trg.xp; trg.ypp = 280 - trg.yp; trg.gogo = true; trg.whut = true; } if (trg.ybew < -0.5) { trg.d.gotoAndStop(2); } else { trg.d.gotoAndStop(1); } if (!enfcheck(trg.xp, trg.yp, trg.beenx[0], trg.beeny[0], 3) || trg.dy > 10) { trg.beenx.unshift(trg.xp); trg.beeny.unshift(trg.yp); trg.beenf.unshift(trg.dy); } if (trg.beenx.length > 80) { f2 = []; f3 = []; f4 = []; a = 0; while (a < 50) { f2[a] = trg.beenx[a]; f3[a] = trg.beeny[a]; f4[a] = trg.beenf[a]; ++a; } trg.beenx = new Array(50); trg.beeny = new Array(50); trg.beenf = new Array(50); a = 0; while (a < 50) { trg.beenx[a] = f2[a]; trg.beeny[a] = f3[a]; trg.beenf[a] = f4[a]; ++a; } } if (trg.gogo && trg.gogo != 2) { if (random(2) == 0 && fra > 100 && trg.gogo != 3 && (!altboss || random(2) == 0)) { trg.gogo = false; if (random(2) == 0 && !altboss) { trg.d.gotoAndStop(8); } else { trg.d.gotoAndStop(9); } } else { enf = enfget(trg.xpp, trg.ypp); trg.zp = -2 - enf * 0.02; enf = 8 / enf; trg.xpp *= enf; trg.ypp *= enf; trg.xppp = trg.xp; trg.yppp = trg.yp; trg.lasx = fra; trg.dy = 10; trg.gogo = false; trg.rem = true; trg.xbew = trg.xpp; trg.ybew = trg.ypp; f1 = 100; if (altboss) { f1 = 70; } _root.soundy('Maggot_Burst_Out_' + random(2) + '.wav', f1); } } trg.dy += trg.zp; trg.zp += 0.4; if (trg.dy < f14) { trg.bh = true; if (trg.dy > 10 && trg.rem && trg.zp > 0) { trg.rem = false; trg.xppp = trg.xp; trg.yppp = trg.yp; trg.lasx = fra + 5; f1 = 100; if (altboss) { f1 = 70; } _root.soundy('Maggot_Enter_Ground_' + random(2) + '.wav', f1); } trg.gogo = 2; trg._visible = trg.dy < 23; } else { trg._visible = false; trg.bh = false; trg.dy = f14; enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000); f1 = enf; trg.xbew *= 0.95; trg.ybew *= 0.95; enf = ((250 - enf) / enf) * 0.003; trg.xbew += xenf * enf; trg.ybew += yenf * enf; enfcheck(trg.xp, trg.yp, 320, 280, 10000); enf = (Math.min(200, enf) / enf) * 0.002; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; if (trg.zp - f1 / 20 > 15 && trg.gogo == 2 && f1 > 100) { trg.xpp = player.xp; trg.ypp = player.yp; trg.xpp -= trg.xp; trg.ypp -= trg.yp; trg.gogo = true; } } } } else { if (trg.worm == 7 && trg.specoz != 23 || trg.specoz == 23 && trg.worm == 9) { trg.bh = false; f1 = worm[1].xppp; if (f1 > 0) { trg.ybew = 0; trg.xbew = 0; trg2 = worm[1]; if (trg2.lasx + 15 > fra) { trg.d.gotoAndStop(6); } else { trg.d.gotoAndStop(10); } trg.xp = trg2.xppp; trg.yp = trg2.yppp; trg._visible = true; } else { trg._visible = false; } } else { trg.xbew *= 0.8; trg.ybew *= 0.8; f1 = [0, 0, 4, 2, 4, 4, 5]; if (altboss) { if (trg.specoz == 23) { f1 = [0, 0, 2, 2, 2, 2, 2, 2, 2, 2]; } else { f1 = [0, 0, 2, 2, 2, 2, 2, 2]; } } trg.d.gotoAndStop(f1[trg.worm]); if (altboss) { if (trg.specoz == 23) { f1 = 100; f1 = [0, f1, f1, f1 * 1.1, f1 * 1.2, f1 * 1.2, f1 * 1.1, f1, f1 * 0.85]; f2 = [0, 0, 2, 5, 8, 11, 14, 17, 20]; } else { f1 = 100; f1 = [0, f1, f1, f1, f1, f1, f1]; f2 = [0, 0, 2, 5, 8, 11, 14]; } } else { f1 = [0, 0, 100, 100, 92, 85, 100]; f2 = [0, 0, 3, 7, 11, 15, 18]; } trg.d.d._yscale = f1[trg.worm]; trg.d.d._xscale = trg.d.d._yscale; trg2 = worm[1]; f2 = Math.min(trg2.beenx.length - 1, f2[trg.worm]); if (f2 > 0) { trg.xp = trg2.beenx[f2]; trg.yp = trg2.beeny[f2]; trg.dy = trg2.beenf[f2]; if (trg.dy < f14) { trg.bh = true; trg._visible = trg.dy < f14 - 8; if (altboss) { if (trg.specoz == 23) { if (fra % 7 == 0 && trg.worm == 4) { f1 = trg2.beenx[f2] - trg2.beenx[f2 - 1]; f2 = trg2.beeny[f2] - trg2.beeny[f2 - 1]; f3 = 7 / Math.sqrt(f1 * f1 + f2 * f2); f1 *= f3; f2 *= f3; ffmo(trg.xp, trg.yp, 0, -f2 * 0.6 - f1 * 0.5, f1 * 0.8 - f2 * 0.5, 0, 9, trg.s, true, false); ffmo(trg.xp, trg.yp, 0, f2 * 0.6 - f1 * 0.5, -f1 * 0.8 - f2 * 0.5, 0, 9, trg.s, true, false); } } else { if (wormet == 6) { if (random(2) == 0 && trg.dy < -30 && wormfo <= fra) { wormfo = fra + 30; quadf(trg.xp, trg.yp, 5, 2); } } } } } else { trg._visible = false; trg.bh = false; trg.dy = 33; } } else { trg._visible = false; trg.bh = false; } } } trg.d.sh._y = -trg.dy; trg.d._y = trg.dy; if (altboss) { trg.d._y = trg.dy * 0.8 - 14; } } } function smartb() { smartd(); smarties(); switch (trg.s) { case 66: blackout = trg.specoz != 23; if (!trg.sic) { trg.xbew *= 0.8; trg.ybew *= 0.8; } trgnextd(); if (trg.sic) { if (!trg.whut) { sideflip(player.xp - trg.xp); trg.whut = true; if (trg.specoz == 23) { trg.d.gotoAndStop(12); } else { trg.d.gotoAndStop(13); } trg.ffa = fra - enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000) * 0.1 + 80; } else { if (trg.d._currentframe < 11) { trg.d.gotoAndStop(13); } } } else { if (trg.horse) { trg.d.gotoAndStop(8); if (trg.hp + 40 > death.hp) { --trg.hp; } } else { if ((trg.whut || trg.hp / hps[trg.s] < 0.5) && trg.d._currentframe < 7) { trg.xp = Math.min(580, Math.max(60, trg.xp)); death = trg; if (!trg.whut) { sideflip(player.xp - trg.xp); trg.whut = true; trg.d.gotoAndStop(7); if (trg.specoz == 23) { } } else { trg.d.gotoAndStop(9); } } } } switch (trg.d._currentframe) { case 13: trg.xbew *= 0.975; trg.ybew *= 0.975; if (trg.alt) { if (trg.ffa < fra - 180) { trg.done = true; } if (trg.ffa > fra) { yenf = 0; xenf = 0; trg.d.d.gotoAndStop(1); } else { if (!trg.whuzz) { trg.whuzz = true; enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.75 / enf; xenf *= enf; yenf *= enf; trg.xpp = xenf; trg.ypp = yenf; } else { xenf = trg.xpp; yenf = trg.ypp; } } } else { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.5 / enf; xenf *= enf; yenf *= enf; } trg.xbew -= xenf; trg.ybew -= yenf; break; case 10: if (trg.d.d._currentframe == 16) { xenf = crand(10); yenf = crand(); if (trg.specoz == 23) { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 66); trg2.sic = true; trg2.apf = true; trg2.d.gotoAndStop(12); trg2.hp = 60; trg2._yscale = 150; trg2._xscale = 150; trg2.outway = true; trg.outway = true; trg2.specoz = 23; speco(trg2); } else { if (trg.specoz) { f1 = 26.1; } else { f1 = 41; } create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, f1); create(trg.xp - xenf, trg.yp - yenf, 0, 0, 0, 0, f1); } _root.soundy('summonsound.wav', 120); _root.soundy('Monster_Grunt_5.mp', 100); } break; case 9: randrun(); if (random(90) == 0 && (ashut < 3 && trg.specoz != 23 || (ashut < 3 || !trg.nogrow) && trg.specoz == 23)) { trg.nogrow = true; trg.d.gotoAndStop(10); } break; case 1: case 2: randrun(); f1 = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); if (random(90) == 0 && (ashut < 2 + random(2) && trg.specoz != 23 || ashut < 7 && trg.specoz == 23 && trg.lastdd != 5)) { trg.d.gotoAndStop(5); trg.lastdd = 5; } else { if (random(180) == 0 && sloww <= -100 && trg.specoz != 18) { trg.d.gotoAndStop(6); trg.lastdd = 6; } else { if (random(100) == 0 && (ashut < 5 && trg.specoz != 23 || ashut < 7 && trg.specoz == 23 && trg.lastdd != 14)) { trg.d.gotoAndStop(14); trg.lastdd = 14; } } } break; case 5: if (trg.d.d._currentframe == 20) { _root.soundy('Monster_Grunt_5.mp', 100); _root.soundy('summonsound.wav', 120); if (trg.specoz == 18) { xenf = crand(50); yenf = crand(); trg2 = create(trg.xp + xenf * 1.5, trg.yp + yenf * 1.5, 0, 0, 0, 0, 55.1); trg3 = create(trg.xp - xenf * 1.5, trg.yp - yenf * 1.5, 0, 0, 0, 0, 55.1); } else { if (trg.specoz == 23) { i = 0; while (i < 3) { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 66); if (i > 2) { trg2.xp += 20; } else { trg2.xp -= 20; } if (i == 1 || i == 3) { trg2.yp += 20; } else { trg2.yp -= 20; } trg2.sic = true; trg2.apf = true; trg2.d.gotoAndStop(12); trg2.hp = 15; trg.outway = true; trg2.specoz = 23; speco(trg2); ++i; } } else { i = 0; while (i < 1.9) { trg2 = spaw(trg.xp, trg.yp, 250 + random(100), 66); if (enfcheck(trg2.xp, trg2.yp, player.xp, player.yp, 150)) { trg2.done = true; trg2.sic = true; trg2._visible = false; trg2.bh = false; trg.outway = true; i -= 0.95; } else { trg2.sic = true; trg2.apf = true; trg2.d.gotoAndStop(12); trg2.hp = 15; } trg.outway = true; ++i; } } } } break; case 6: if (trg.d.d._currentframe == 22) { sloww = 100; _root.over.gotoAndStop(7); } break; case 14: if (trg.d.d._currentframe == 18) { if (trg.specoz == 23) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); if (enf) { xenf *= 40 / enf; yenf *= 40 / enf; trg2 = create(trg.xp - xenf, trg.yp - yenf, 0, 0, 0, 0, 27); trg2.hp += 13; } } else { trg2 = []; trg2.push(create(20, trg.yp, 0, 0, 0, 0, 66)); trg2.push(create(620, trg.yp, 0, 0, 0, 0, 66)); trg2.push(create(trg.xp, 120, 0, 0, 0, 0, 66)); trg2.push(create(trg.xp, 460, 0, 0, 0, 0, 66)); _root.soundy('summonsound.wav', 150); _root.soundy('Monster_Grunt_0_' + abr() + '.mp', 100); for (z in trg2) { trg2[z].sic = true; trg2[z].apf = true; trg2[z].d.gotoAndStop(12); trg2[z].hp = 15; trg2[z].outway = true; trg2[z].alt = true; if (enfcheck(trg2[z].xp, trg2[z].yp, player.xp, player.yp, 80)) { trg2[z].dones = true; trg2[z].done = true; } } } } break; case 11: if (!trg.whuuu) { _root.soundy('Monster_Yell_A_' + random(3) + '.mp', 100); trg.whuuu = true; trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 66); _root.soundy('summonsound.wav', 150); trg2.d.gotoAndStop(8); trg2.horse = true; trg2.gogo = true; if (trg.specoz == 23) { trg2.specoz = 23; speco(trg2); } trg2.d._xscale = trg.d._xscale; trg2.d._yscale = trg.d._yscale; trg2.apf = true; trg.outway = true; } break; case 8: trg.xbew = trg.d._xscale * 0.18; if (trg.gogo) { f1 = false; if (trg.xp > 750) { trg.xp = 10; f1 = true; } else { if (trg.xp < -150) { trg.xp = 630; f1 = true; } } if (f1) { f1 = 95; trg.yp += f1; if (trg.yp > 430) { trg.yp -= f1 * 3; } } } } break; case 65: trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if (trg.specoz == 23) { f1 = 0.25; } else { f1 = 0.5; } if ((trg.whut || trg.hp / trg.mhp < f1) && trg.d._currentframe < 9 && !altboss) { bord(); trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.bh = true; trg._visible = trg.bh; if (!trg.whut) { trg.gosplash = true; trg.whut = true; trg.d.gotoAndStop(10); } else { trg.d.gotoAndStop(9); } } switch (trg.d._currentframe) { case 9: trg.sp += 0.1; trg.sp *= 0.955; f1 = 1 + trg.sp * 0.1; trg.xbew *= f1; trg.ybew *= f1; pathfind(trg, playx, playy, trg.sp * 0.55 + 0.5); trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.yp = Math.min(410, Math.max(180, trg.yp)); if (mhit(trg.xp, trg.yp)) { trg.xp += crand(5); trg.yp += crand(5); } sideflip(trg.xbew); if (trg.ffra + 10 > fra) { trg.hpp = trg.hp; } if (trg.hp + 85 - trg.sp * 5 < trg.hpp) { trg.d.gotoAndStop(10); trg.bh = true; trg._visible = trg.bh; } if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(3); } else { trg.d.bo.gotoAndStop(2); } break; case 10: if (trg.d.d._currentframe == 3 && trg.specoz == 16) { cirf(trg.xp, trg.yp - 50, 8, 6); } trg.ffra = fra; trg.hpp = trg.hp; trg.sp = 0.5; break; case 1: case 2: randrun(); f1 = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); if (random(90) == 0 && f1 < 200) { trg.d.gotoAndStop(5); } else { if (f1 > 150 && random(200) == 0 || Math.abs(yenf) < 20 && random(30) == 0) { _root.soundy('Monster_Yell_A_' + random(3) + '.mp', 100); sideflip(player.xp - trg.xp); trg.d.gotoAndStop(7); trg.xpp = trg.xp; trg.ypp = trg.yp; trg.gogo = 3; trg.bh = true; trg._visible = trg.bh; } else { if (random(180) == 0 || ashut > 5 && trg.specoz == 23 && random(30) == 0) { trg.d.gotoAndStop(6); _root.soundy('Monster_Roar_' + random(4) + '.mp'); } } } break; case 5: if (trg.d.d._currentframe == 5) { quadf(trg.xp, trg.yp, 10, !altboss); } break; case 6: if (trg.d.d._currentframe == 30) { trg.bh = false; anarch = 25; analt = altboss; if (analt) { anarch = 50; } if (trg.specoz == 16) { anarch = 10; analt = 5; } } else { if (!trg.bh && anarch < -80) { trg.bh = true; trg.d.gotoAndStop(8); trg.xpp = trg.xp; trg.ypp = trg.yp; if (player.xp > 320) { trg.xp = 10; sideflip(100); } else { sideflip(-100); trg.xp = 630; } trg._visible = true; } } if (trg.d.d._currentframe == 33) { trg._visible = false; } break; case 8: if (trg.specoz) { noet = true; if ((fra % 45 == 0 || fra % 15 == 0 && trg.specoz == 23 && !altboss) && (anarch <= -80 && trg.loap && trg.specoz != 23 || trg.specoz == 23 && trg.loap)) { if (trg.specoz == 23) { if (altboss || true) { if (ashut < 7) { if (altboss) { f1 = 24.1; } else { f1 = 24; } trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, f1); trg.hp -= 5; } else { trg.loap = false; } } else { trg.loap = false; trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 5.04); trg2.col = 3; } } } noet = false; } if (altboss && trg.gogo < 3 && trg.gogo > 1 && !trg.goner && fra % 8 == 0) { trg.gogo -= 0.4; noet = true; trg2 = create(trg.xpp, random(300) + 150, 0, trg.xbew, 0, 0, 65); noet = false; _root.soundy('Monster_Yell_A_' + random(3) + '.mp3', 60); trg2.goner = true; trg2.fra = 0; trg2.d._xscale = trg.d._xscale; trg2.d.gotoAndStop(trg.d._currentframe); if (trg.specoz) { trg2.specoz = trg.specoz; speco(trg2); } } trg.xbew = trg.d._xscale * 0.18; if (trg.gogo > 0) { f1 = false; if (trg.xp > 619) { trg.xp = 10; trg.xpp = 10; f1 = true; } else { if (trg.xp < 21) { trg.xp = 630; trg.xpp = 630; f1 = true; } } if (f1) { trg.loap = true; if (altboss) { if (trg.goner) { trg.done = true; } } else { f1 = 95; trg.yp += f1; if (trg.yp > 430) { trg.yp -= f1 * 3; } } --trg.gogo; } } else { if ((trg.xp - trg.ypp) * trg.xbew > 0) { trg.d.gotoAndStop(1); } } } break; case 81: trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if ((trg.whut || trg.hp / hps[trg.s] < 0.5) && trg._xscale > 90 && trg.alter == 1) { if (!trg.whut) { trg.gosplash = true; trg.whut = true; _root.soundy('Monster_Roar_2.mp', 100); } trg.d.gotoAndStop(9); } switch (trg.d._currentframe) { case 1: case 2: randrunx(1); sideflip(trg.xbew); walkframe(3); if (random(3) == 0 || trg._xscale > 90) { if (random(140 - trg.alter * 60) == 0 && (trg.alter == 1 || enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 400))) { if (trg.alter == 1) { trg.d.gotoAndStop(7); } else { trg.d.gotoAndStop(6); } _root.soundy('Monster_Yell_B_0.mp3', 100); } else { if (random(20) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 230)) { sideflip(player.xp - trg.xp); trg.d.gotoAndStop(5); } } } } break; case 9: trg.bh = false; if (trg.d.d._currentframe == 25) { _root.soundy('summonsound.wav', 200); xenf = 30; trg2 = create(trg.xp, trg.yp - 20, 0, 0, 0, 0, 81); trg3 = create(trg.xp, trg.yp - 20, 0, 0, 0, 0, 81); if (trg.specoz == 23) { trg4 = create(trg.xp, trg.yp + 10, 0, 0, 0, 0, 81); trg4.hp *= 0.7; trg4.mhp = trg4.hp; trg4._yscale = 85; trg4._xscale = 85; trg3._yscale = 70; trg2._xscale = 70; trg2._yscale = 70; trg3._xscale = 70; } else { trg3._yscale = 75; trg2._xscale = 75; trg2._yscale = 75; trg3._xscale = 75; } trg2.hp *= 0.5; trg2.mhp = trg2.hp; trg3.hp *= 0.5; trg2.mhp = trg3.hp; } if (trg.d.d._currentframe == 65) { trg.done = true; } break; case 5: if (trg.d.d._currentframe == 20 || trg.d.d._currentframe == 34) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); if (trg.d.d._currentframe == 20) { f1 = true; _root.soundy('Monster_Grunt_2_' + abr() + '.mp', 100); } else { f1 = 2; _root.soundy('Monster_Grunt_1_' + abr() + '.mp', 100); } enf = enfget(xenf, yenf); enf = -8.199999999999999 / enf; xenf *= enf; yenf *= enf; shots(trg.xp, trg.yp, xenf, yenf, f1); } if (trg.specoz == 23) { if (trg.d.d._currentframe == 44) { if (trg.fire-- > 0) { if (Math.abs(trg._xscale) > 80) { trg.d.d.gotoAndStop(16); sideflip(player.xp - trg.xp); } } } if (trg.d.d._currentframe == 3) { if (Math.abs(trg._xscale) > 100) { trg.fire = 3; } else { trg.fire = 1; } } } break; case 7: if (trg.d.d._currentframe < 7) { } else { trg.whup = trg.hp; case 8: enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); if (trg.specoz == 23) { if (enf < 90 && random(20) == 0) { if (random(2) == 0) { trg.d.gotoAndStop(6); } else { sideflip(player.xp - trg.xp); trg.d.gotoAndStop(5); } } } enf = 1.4 / enf; xenf *= enf; yenf *= enf; trg.xbew -= xenf; trg.ybew -= yenf; sideflip(player.xp - trg.xp); if (trg.whup > trg.hp + trg.mhp / 8) { trg.d.gotoAndStop(6); } break; case 6: if (trg.d.d._currentframe > 20 && trg.d.d._currentframe < 50) { trg.ypp = 0; trg.xpp = random(2) - 0.5; lasershow(trg); trg.xpp = 0; trg.ypp = random(2) - 0.5; lasershow(trg); trg.ypp = undefined; trg.xpp = trg.ypp; } } } } } function bord(f1, f2, f3, f4) { if (f1 == undefined) { f1 = 575; f2 = 60; f3 = 410; f4 = 150; } trg.xp = Math.min(f1, Math.max(f2, trg.xp)); trg.yp = Math.min(f3, Math.max(f4, trg.yp)); f5 = trg.xp == f1 || trg.xp == f2; f6 = trg.yp == f3 || trg.yp == f4; if (trg.s == 19 && altboss) { if (f5) { trg.xbew *= -1; } if (f6) { trg.ybew *= -1; } } f5 = f5 || f6; return f5; } function cetf() { trg.dx = trg._rotation * 0.3; } function smarts() { smartsx(); ssmarts(); smartb(); switch (trg.s) { case 89: case 19: if (trg.eternal && trg.s == 89) { if (fra10) { trg2 = parc('bloo', trg.xp, trg.yp, 0, 123); } } trg2 = undefined; if (trg.specoz == 7) { trg.xbew *= 0.96; trg.ybew *= 0.96; } trg.outway = true; trg.ggh = true; markhere(); if (levzz(trg.til) > 1.8) { } if (!altboss) { bord(); } if (trg.specoz == 23 && trg.s == 19) { if (trg.trg2 && trg.whop) { trg._yscale = 162; trg._xscale = 162; } else { if (!trg.whop && trg.trg2) { trg._yscale = 130; trg._xscale = 130; } else { trg._yscale = 155; trg._xscale = 155; } } if (!altboss) { trg._yscale += 20; trg._yscale *= 0.65; trg._xscale = trg._yscale; } } if (!trg.donelook) { trg.d.gotoAndStop(7); trg.fail2 = 0; trg.donelook = true; for (a in ball) { trg2 = ball[a]; if (trg2.s == 19 || trg2.s == 89) { if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, roxx + 2) && trg2.trg2 != trg && trg2 != trg) { while (trg2.whop) { if (trg2.dones || trg2.hp < 0) { break; } trg2 = trg2.trg3; } if (trg.trg3 != trg2 && trg.trg3.trg3 != trg2 && trg.trg3.trg3.trg3 != trg2 && trg.trg3.trg3.trg3.trg3 != trg2 && trg.trg3.trg3.trg3.trg3.trg3 != trg2) { trg.trg2 = trg2; trg.lar = trg2.lar + 1; trg2.trg3 = trg; trg2.whop = true; trg2 = trg.trg3; if (trg.s != 89) { if (!trg2.specoz) { trg.specoz = trg.trg2.specoz; specoo(trg); } if (trg.specoz) { for (;;) { if (!(!trg2.specoz && trg2)) break; trg2.specoz = trg.specoz; trg2 = trg2.trg2; specoo(trg2); } } } break; } } } } trg.beenx = []; trg.beeny = []; trg.beenf = []; f1 = 1; } else { if (fra - trg.fra < 25) { if (trg.trg2.s == 19) { trg.d.gotoAndStop(4); } else { trg.d.gotoAndStop(9); } } else { if (trg.trg2.s == 19 || trg.trg2.s == 89) { trg.flyby = true; trg.ggh = true; if (trg.s == 89 && trg.eternal) { trg.hp += trg.mhp * 0.005; trg.hp *= 0.995; } trg2 = trg.trg2; for (;;) { if (!(trg2.trg3 != undefined && trg2.trg3 != trg)) break; trg2 = trg2.trg3; } trg2.trg3 = trg; trg.lar = trg2.lar + 1; if (trg.specoz == 7) { if (Math.abs(trg2.hp - trg.hp) > 1) { f1 = (trg2.hp - trg.hp) / 2; trg2.hp -= f1; trg.hp += f1; } } if (trg.s == 19) { trg.d.gotoAndStop(7); } if (trg2.dones && trg.s == 19) { trg.trg2 = undefined; } else { if ((trg2.dones || trg2.frei || trg.frei || trg.trg3.frei) && trg.s != 19) { trg.trg3.frei = true; trg.trg2 = undefined; if (trg.s == 89) { trg.frei = true; } f1 = -1; } else { if (trg2.beenx.length > 0) { if (trg.specoz == 7) { f0 = 6; } else { f0 = 4; } if (trg.s == 89) { --f0; } if (trg.s == 89 && trg2.trg2 == undefined) { --f0; } if (altboss && trg.s == 19) { --f0; } if (trg2.eternal) { if (trg2.s == 89) { f0 += 2; } } if (trg.eternal) { if (trg.s == 89) { f0 += 2; } else { if (trg.whop) { ++f0; } } } f0 = Math.min(f0, trg2.beenx.length - 1); enf = enfcheck(trg.xp, trg.yp, trg2.beenx[f0], trg2.beeny[f0], 1000); f2 = 10; if (enf < f2) { f3 = trg2.beenx[f0]; f4 = trg2.beeny[f0]; if (altboss && trg.s == 19) { if (f4 != trg.yp || f3 != trg.xp) { if (f3 > trg.xp) { f1 = 1; } else { f1 = -1; } if (f4 > trg.yp) { f2 = 1; } else { f2 = -1; } trg._rotation = 15 * f2 * f1; cetf(); } } trg.xp = f3; trg.yp = f4; f1 = trg2.beenf[f0]; } else { enf = f2 / enf; xenf *= enf; yenf *= enf; trg.xp -= xenf; trg.yp -= yenf; getf(); trg2.beenx.push(trg2.beenx[f0] + xenf); trg2.beeny.push(trg2.beeny[f0] + yenf); trg2.beenf.push(f1); } trg2.whop = true; } } } } else { if (trg.s != 19 || !altboss) { trg.flyby = false; trg.ggh = false; } f1 = ingrid(trg.xp, trg.yp); if (levzz(f1) > 1) { trg.xbew += crand(2); trg.ybew += crand(2); } trg.lar = 0; if (!trg.whop && trg.s != 89 && trg.specoz != 23) { getf(); if (trg.fail2++ > 10) { trg.dones = true; } } else { if (!trg.hpu) { trg.hpu = true; if (trg.specoz != 7) { if (trg.s != 89) { trg.hp += 25; if (trg.specoz == 23 && trg.s == 19) { } } } } else { if (trg.fire <= 30) { if (trg.s == 19) { trg.d.gotoAndStop(1); } if (altboss && trg.s == 19) { if (enfget(trg.xbew, trg.ybew) < 0.4) { trg.xbew += crand(0.1); trg.ybew += crand(0.1); } if (trg.xbew > 0) { f1 = 1; } else { f1 = -1; } if (trg.ybew > 0) { f2 = 1; } else { f2 = -1; } if (Math.abs(trg.ybew) > Math.abs(trg.xbew)) { trg._rotation = 0; } else { trg._rotation = 15 * f2 * f1; } cetf(); if (trg.specoz == 23) { if (bord()) { trg.xbew *= 0.5; trg.ybew *= 0.5; } enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 300); if (enf) { if (linecheck(trg.xp, trg.yp, player.xp, player.yp)) { trg.xbew *= 0.92; trg.ybew *= 0.92; if (enf > 0) { if (enf < 130) { enf *= 0.8; } enf *= 2.5; trg.xbew -= xenf / enf; trg.ybew -= yenf / enf; if (trg.whop) { enf = enfcheck(trg.xp, trg.yp, lastlarx, lastlary, 100); if (enf) { trg2 = lastlar; trg.xbew += xenf / enf; trg.ybew += yenf / enf; trg2.xbew -= xenf / enf; trg2.ybew -= yenf / enf; } lastlarx = trg.xp; lastlary = trg.yp; lastlar = trg; } } } } f1 = Math.sqrt(trg.xbew * trg.xbew + trg.ybew * trg.ybew * 0.6); f1 = Math.min(10, f1 + 2) / f1; trg.xbew *= f1; trg.ybew *= f1; if (!trg.whop) { trg.xbew *= 0.6; trg.ybew *= 0.6; if (fra10) { trg2 = parc('bloo', trg.xp, trg.yp, 0, 123); } } } else { trg.xbew *= 0.85; trg.ybew *= 0.85; if (trg.gor) { trg.xbew += f1 * 3; trg.ybew += f2 * 1.6; } else { trg.xbew += f1 * 1.8; trg.ybew += f2 * 3; } if (bord() && random(10) == 0) { trg.gor = random(2) == 0; } } } else { if (trg.s == 89 && trg.eternal) { pathfind(trg, playx, playy, 1.7); } else { randrunx(2); } trg.ggh = false; } killshit(trg.nextl); xenf = trg.xbew; yenf = trg.ybew; getf(); if (trg.specoz == 3 && random(3) == 0) { firewalk(); } if (!trg.whop && trg.s == 19) { trg.xbew *= 0.8; trg.ybew *= 0.8; if (fra10) { trg2 = parc('bloo', trg.xp, trg.yp, 0, 123); } } } else { --trg.fire; f1 = -1; } } } } if (!enfcheck(trg.xp, trg.yp, trg.beenx[0], trg.beeny[0], 3)) { trg.beenx.unshift(trg.xp); trg.beeny.unshift(trg.yp); trg.beenf.unshift(f1); } } } if (trg.s == 19) { if (trg.trg2.s != 19 || trg2.dones) { } if (f1 > 0) { trg.d.d.d.gotoAndStop(f1); } } else { if (trg2.s == 89) { enfcheck(trg2.xp, trg2.yp, trg.xp, trg.yp, 1000); getf(); } f2 = [0, 2, 6, 1, 5]; trg.d.gotoAndStop(f2[f1]); } if (trg.beenx.length > 12) { f2 = []; f3 = []; f4 = []; a = 0; while (a < 9) { f2[a] = trg.beenx[a]; f3[a] = trg.beeny[a]; f4[a] = trg.beenf[a]; ++a; } trg.beenx = new Array(9); trg.beeny = new Array(9); trg.beenf = new Array(9); a = 0; while (a < 9) { trg.beenx[a] = f2[a]; trg.beeny[a] = f3[a]; trg.beenf[a] = f4[a]; ++a; } } trg.xbew *= 0.8; trg.ybew *= 0.8; if (random(16) == 0 && trg.s == 19) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.6 + 0.6); } if (trg.s == 19 && !altboss) { if (trg.whop > 0) { } else { if ((_root.lev != _root.chamb || trg.eternal) && fra > 20 && (random(100) == 0 || random(20) == 0 && trg.whop < 0)) { f1 = 5; f2 = ingrid(trg.beenx[f1], trg.beeny[f1]); if (!trg.trg3) { f1 = 1 + Math.round(ashut * 0.2 - 0.2); if (trg.specoz == 23) { if (random(Math.round(f1 + lars)) == 0) { if (lars++ < 7 + _root.chaps * 0.5) { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 19); trg2.specoz = 23; speco(trg2); trg2.donelook = true; _root.soundy('summonsound.wav', 80); trg2.fra = -100; trg2.d.gotoAndStop(7); trg2.fail2 = 0; trg3 = trg; trg2.trg2 = trg3; trg3.trg3 = trg2; trg3.whop = true; trg2.beenx = []; trg2.beeny = []; trg2.beenf = []; trg2.lar = trg3.lar + 1; trg2.hp *= 0.5; trg.hp *= 0.5; } } } else { if (trg.specoz != 7) { turd('breakblock', f2, true); } } } } } } trg.whop = false; break; case 22: trg.pbh = fra2; if (trg.d._currentframe < 3) { angstfind(); sideflip(trg.xbew); walkframe(2); trg.xbew *= 0.8; trg.ybew *= 0.8; } else { trgnextd(); } if (trg.needmove > 0 && trg.fire-- <= 0 && ashut < random(5) + 4) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 300); if (enf) { if (linecheckxx(trg.xp, trg.yp, player.xp, player.yp)) { _root.soundy('Wheezy_Cough_' + random(3) + '.mp', 100); trg.fire = 75; trg.d.gotoAndStop(5); sideflip(-xenf); f1 = trg.xp; f2 = trg.yp; enf = -7 / enf; xenf *= enf; yenf *= enf; if (trg.specoz == 23 && trg.eternal != 2) { f0 = 2; } else { f0 = 1; } while (f0-- > 0) { var trg2 = create(f1, f2, 0, xenf, yenf, 0, 18); trg2.fra -= 20; trg2.die = true; trg2.pbh = true; if (f0 != 0) { trg2.xbew += crand(5); trg2.ybew += crand(5); } if (trg.eternal == 2) { attach(trg2, 96); trg2.hp += 20; } } } else { trg.fire = 7; } } else { trg.fire = 3; } } break; case 16: trg.pbh = fra2; if (trg.d._currentframe < 3) { if (trg.alter == 3) { pathfind(trg, playx, playy, 1.2); if (fra5 && !trg.eternal) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 40)) { trg.dones = true; } } trg.xbew *= 0.9; trg.ybew *= 0.9; } else { angstfind(); trg.xbew *= 0.8; trg.ybew *= 0.8; } sideflip(trg.xbew); walkframe(2); if (trg.needmove > 0) { trg.d.hx.gotoAndStop(2); trg.d.d.hx.gotoAndStop(2); } else { trg.d.hx.gotoAndStop(1); trg.d.d.hx.gotoAndStop(1); } if (trg.eternal) { if (enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 400) && trg.alter == 1) { trg.d.gotoAndStop(6); } if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 100) && trg.alter == 3) { trg.d.gotoAndStop(6); } if ((enfcheck(trg.xp, trg.yp, player.xp, player.yp, 100) || random(100) == 0) && trg.alter == 2 && ashut < 6) { trg.d.gotoAndStop(6); } } else { if (trg.gh && random(300) == 0) { if (trg.alter == 3) { } else { trg.d.gotoAndStop(5); } } } } else { trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if (trg.d.d._currentframe > 20 && trg.d._currentframe == 5) { trg.dones = true; if (trg.alter != 3) { quadf(trg.xp, trg.yp, 7); } } if (trg.d._currentframe == 6) { if (trg.d.d._currentframe == 14) { if (trg.alter == 3) { boil(false, 1); boil(true, 1); } else { if (trg.alter == 2) { boil(false, 2); if (ashut < 6 && _root.chaps > 2) { boil(false, 2); } } else { quadf(trg.xp, trg.yp, 13.5); } } } } } break; case 17: randrun(); if ((fra + trg.e) % 3 == 0) { splater(trg.xp, trg.yp, 1 + random(10), Math.random() * 0.9 + 0.5); } trg.xbew *= 0.6; trg.ybew *= 0.6; break; case 15: trg.pbh = fra2; trgnextd(); if (trg.alter == 2) { blackout = 2; } if ((fra + trg.e) % 5 == 0) { splater(trg.xp, trg.yp, 1 + random(10), Math.random() * 0.7 + 0.5); } trg.xbew *= 0.9; trg.ybew *= 0.9; switch (trg.mode) { trg.modedone = false; trg.mode = random(2) + 1; trg.mof = fra; if (trg.eternal) { trg.rep = 2; } case 1: if (trg.d._currentframe == 1 && trg.modedone || random(30) == 0 && fra - trg.mof > 30) { trg.mode = 2; trg.modedone = false; } else { if (trg.eternal) { trg.d.gotoAndStop(6); } else { trg.d.gotoAndStop(5); } if (trg.d.d._currentframe > 10 && !trg.modedone || trg.d._currentframe == 6 && (trg.d.d._currentframe == 11 || trg.d.d._currentframe == 18 || trg.d.d._currentframe == 27)) { if (trg.alter == 3) { quadf(trg.xp, trg.yp, 7, true); } else { if (trg.alter == 2) { quadf(trg.xp, trg.yp, 7, 2); } else { quadf(trg.xp, trg.yp, 7); } } if (trg.eternal) { boil(); if (trg.hp < trg.mhp + 10) { ++trg.hp; } } trg.modedone = true; _root.soundy('animal_squish' + random(3) + '.wav', 100); } } break; case 2: if (trg.eternal) { trg.rep = 2; } trg.mof = fra; if (trg.eternal) { pathfind(trg, playx, playy, 0.7); trg.d.gotoAndStop(2); sideflip(trg.xbew * 3); if (random(40) == 0) { trg.modedone = false; trg.mode = 1; } } else { randrun(); } } break; break; case 38: bord(); markhere(trg); trg.xbew *= 0.7; trg.ybew *= 0.7; if (trg.d._currentframe <= 5 || trg.d._currentframe == 5 && trg.d.d._currentframe > 17 && trg.eternal) { if (random(10) == 0) { splater(trg.xp, trg.yp, random(10), Math.random() * 0.3 + 0.2); } trgnextd(); firemode(200, 5); if (enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 400) || trg.telp > 20) { ++trg.telp; } trg.telp += Math.random() * 0.1; if (trg.telp > 20) { z = 0; while (z < 10) { if (trg.xpp == undefined) { telpx(); } else { break; } ++z; } if ((trg.d._currentframe == 1 || trg.d._currentframe == 5 && trg.d.d._currentframe > 17 && trg.eternal) && (trg.telp > 40 || trg.eternal && trg.telp > 28) && trg.xpp != undefined) { trg.d.gotoAndStop(6); } } trg.bh = true; } else { trg.bh = false; trgnextd(); if (trg.eternal) { if (trg.d._currentframe == 6 && trg.d.d._currentframe == 5) { quadf(trg.xp, trg.yp + 10, 7, trg.alter - 1); _root.soundy('bloodshoot' + random(3) + '.wav'); } } if (trg.d._currentframe == 1 && trg.xpp != undefined) { trg.d.gotoAndStop(7); if (enfcheck(trg, xpp, trg.ypp, player.xp, player.yp, 810000) <= 80) { trg.xpp = undefined; z = 0; while (z < 100) { if (trg.xpp == undefined) { telpx(); } else { break; } ++z; } } if (trg.xpp > 0 && trg.ypp > 0) { trg.xp = trg.xpp; trg.yp = trg.ypp; } trg.xpp = undefined; trg.telp = 0; } } if (trg.fire <= 0) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.33 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } break; case 59: markhere(trg); trg.xbew *= 0.65; trg.ybew *= 0.65; f1 = false; f2 = trgnextd(); if (f2 == 2 || f2 == 5) { trg.d.gotoAndStop(6); } if ((trg.d._currentframe == 2 || trg.d._currentframe == 5) && trg.d.d._currentframe == 29 || trg.d._currentframe == 6 && trg.d.d._currentframe == 5) { _root.soundy('Meat_jumps' + random(5) + '.wav'); } if (trg.d._currentframe == 1) { f1 = true; if (random(30) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 200)) { trg.d.gotoAndStop(8); } } if (random(20) == 0) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 100 / enf; posw(trg.xp - xenf * enf, trg.yp - yenf * enf, 0); trg.xpp = xenf; trg.ypp = yenf; if (trg.yp > trg.ypp) { trg.d.gotoAndStop(2); } else { trg.d.gotoAndStop(5); } trg.f1 = 0; f1 = false; } } else { if (trg.d._currentframe == 2 || trg.d._currentframe == 5) { if (trg.d.d._currentframe > 4) { trg.bh = trg.d.d._currentframe < 27; if (trg.d.d._currentframe > 27) { if (trg.d.d._currentframe == 29) { f1 = 2; if (trg.eternal) { f1 = true; } quadf(trg.xp, trg.yp + 10, 7, f1); _root.soundy('meatheadshoot' + fra % 3 + '.wav'); } telpx(true); } else { trg.f1 = Math.min(1, trg.f1 * 1.07 + 0.005); trg.xp = trg.xpp * trg.f1 + trg.xp * (1 - trg.f1); trg.yp = trg.ypp * trg.f1 + trg.yp * (1 - trg.f1); } } f1 = false; } else { if (trg.d._currentframe == 6) { f1 = true; } else { if (trg.d._currentframe == 8) { if (trg.d.d._currentframe == 9) { _root.soundy('heartout.wav', 70); trg2 = green(); if (trg.eternal) { trg2.hom = 3; colorit(trg2, 0.8, 1, 2.5, 0, 0, 0); trg2.longshot = 2; trg2.dm = -26; trg2.d._yscale = 240; trg2.d._xscale = 240; } } f1 = true; } } } } if (f1) { trg.bh = trg.d._currentframe != 2 && trg.d._currentframe != 5 || trg.d.d._currentframe < 30; trg.xp = trg.xpp; trg.yp = trg.ypp; } break; case 60: if (trg.d._currentframe != 5) { trg.d.gotoAndStop(1); } trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xp = trg.xpp; trg.yp = trg.ypp; if (trg.d._currentframe == 1) { if (trg.spinny > 0) { if (trg.spinny++ > 250) { trg.spinny = undefined; } else { if (trg.spinny > 125) { f1 = 25 - trg.spinny * 0.1; } else { f1 = trg.spinny * 0.1; } f1 += 1; f1 = Math.min(15, f1) * 1.4; trg.firer += Math.min(6, 2 + f1 * 0.3); if (trg.revers) { f1 = -f1; } trg.rp += f1; if (trg.firer > 10) { trg.firer = 0; f2 = (-trg.rp / 180) * Math.PI; f1 = 8; xenf = Math.sin(f2) * f1; yenf = Math.cos(f2) * f1; trg2 = ffmo(trg.xp + xenf * 3, trg.yp + yenf * 3, 0, xenf, yenf, 0, 9, trg.s, true); if (trg.alter == 2) { trg2.dm -= 3.5; } else { trg2.dm -= 1; } } } } else { f1 = rotget2(trg.xp - player.xp - player.xbew * 1, trg.yp - player.yp - player.xbew * 1) - 90; f1 -= trg.rp; enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); f2 = 3 + trg.alter * 3 - enf / 330; f1 = absmax(rotrund(f1), f2); if (Math.abs(f1) < f2 / 2) { if (random(10) == 0) { trg.d.gotoAndStop(5); } } else { if (trg.eternal) { if (random(50) == 0) { if (!mheart || random(5) == 0) { trg.spinny = 1; trg.revers = f1 < 0; trg.firer = -10; } } } } trg.rp += f1; } } else { if (trg.d._currentframe == 5) { if (trgnextd(trg.d.d.d)) { trg.d.gotoAndStop(1); } if (trg.d.d.d.doit) { trg.d.d.d.doit = false; lasershowx(trg.rp * p180); } trg.d.d.d._rotation = trg.rp; } } trg.d.hx._rotation = trg.rp; break; case 90: bord(580, 60, 410, 170); if (fra % 3 == 0) { i = 0; while (i < ball.length) { trg3 = ball[i]; if (trg.s == trg3.s && !trg3.dones) { if (trg3 != trg && trg3) { enf = enfcheck(trg.xp, trg.yp, trg3.xp, trg3.yp, 100); if (enf > 0) { enf = ((100 - enf) / enf) * 0.0003; xenf *= enf; yenf *= enf; trg.xbew += xenf; trg.ybew += yenf; trg3.xbew -= xenf; trg3.ybew -= yenf; } } } ++i; } } case 26: if (trg.s == 26) { bord(580, 60, 410, 170); } trg.outway = false; if (random(10) == 0) { splater(trg.xp, trg.yp, random(10), Math.random() * 0.5 + 0.4); } if (trg.fire <= 0 || trg.s == 90 && trg.d._currentframe < 3) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.13 / enf; if (trg.alter == 2 && trg.s == 26) { enf *= 3; } trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } trg.xbew *= 0.9300000000000001; trg.ybew *= 0.9300000000000001; case 56: case 12: case 27: case 42: if (trg.s == 27) { if ((trg.d._currentframe == 5 || trg.d._currentframe == 6) && (trg.d.d._currentframe == 9 || trg.d.d._currentframe == 55)) { _root.soundy('animal_squish' + random(3) + '.wav', 100); } if (trg.eternal) { if (trg.d._currentframe < 3) { if (random(100) == 0) { trg.d.gotoAndStop(6); } } if (trg.d._currentframe == 6 && trg.d.d._currentframe == 17) { trg.d.d.gotoAndStop(52); } if (trg.d._currentframe == 6 && trg.d.d._currentframe == 55) { quadf(trg.xp, trg.yp, 8, 1); } if (trg.d._currentframe == 5 && trg.d.d._currentframe == 11) { trg.reps = 2; } if (trg.d._currentframe == 5 && trg.d.d._currentframe == 41 && trg.alter == 2) { if (trg.reps-- > 0) { trg.d.d.gotoAndStop(23); trg.fir = -1; } else { trg.fir = undefined; } } if (trg.d._currentframe == 5 && trg.d.d._currentframe == 39) { } } } f1 = 4; if (trg.s == 42) { trg.xp = trg.xpp; trg.yp = trg.ypp; f1 = 12; levz[trg.til] = 3; } if (justnow > 30 && trg.s == 42) { trg.d.gotoAndStop(3); } else { if (trg.s != 26 && trg.s != 90) { trg.xbew *= 0.7; trg.ybew *= 0.7; } if (trg.s != 56 || trg.d.d._currentframe != 22 || trg.fire > 0) { trgnextd(); } else { if (random(50) == 0) { trg.d.gotoAndStop(5); trg.d.d.gotoAndStop(49); } } if (trg.alter == 2 && trg.s == 26) { if (trg.eternal) { if (fra % 4 == 0) { trg2 = parc('bloo', trg.xp + crand(), trg.yp + crand(Math.random() * 8)); } } } else { if (trg.s != 27 || trg.d._currentframe != 6) { firemode(200, f1); } } } if (trg.s == 56) { markhere(trg); if (trg.whuz) { if (trg.d._currentframe < 3) { trg.d.gotoAndStop(2); trg.bh = false; telpx(); if (random(20) == 0) { trg.d.gotoAndStop(5); } } else { trg.bh = true; } } else { trg.whuz = true; trg.d.gotoAndStop(5); trg.d.d.gotoAndStop(21); } trg.bh = trg.d._currentframe != 5 || trg.d.d._currentframe > 11 && trg.d.d._currentframe < 54; if (trg.d._currentframe == 5 && (trg.d.d._currentframe == 11 || trg.d.d._currentframe == 54)) { _root.soundy('Meat_jumps' + random(5) + '.wav'); } if (trg.d._currentframe == 5 && trg.eternal && trg.d.d._currentframe == 3) { trg.reps = 2; } if (trg.d._currentframe == 5 && trg.eternal && trg.d.d._currentframe == 43) { if (trg.reps-- > 0) { trg.d.d.gotoAndStop(31); } } } if (trg.s == 56) { trg.xp = trg.xpp; trg.yp = trg.ypp; } if (trg.s == 42) { levz[trg.til] = 2; } break; case 26.5: trg.s = 26; trg._visible = true; trg.bh = true; if (random(10) == 0 && trg._visible) { splater(trg.xp, trg.yp, random(10), Math.random() * 0.5 + 0.2); } break; case 11: if (trg.specoz == 23) { if (trg.fast) { f1 = 1.1; } else { f1 = 0.6; } pathfind(trg, playx, playy, f1); firewalk(); --trg.fire; } else { if (!trg.bnuts) { trg.d.bb._visible = false; } else { firewalk(); } trg.xbew *= 0.75; trg.ybew *= 0.75; randrun(); } if (random(10) == 0) { splater(trg.xp, trg.yp, random(10), Math.random() * 0.5 + 0.4); } walkframe(2); sideflip(trg.xbew); break; case 35: trg.phb = true; if (trg.trg2 == undefined) { trg.trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 26); trg2 = trg.trg2; trg.trg2.outway = true; trg2.trg2 = trg; if (trg2.eternal) { trg.eternal = true; trg.specoz = 23; trg._yscale = trg2._yscale; trg._xscale = trg._yscale; trg.hp += 20; speco(trg); } } else { trg2 = trg.trg2; if (trg2.hp <= 0 || random(1000) == 0) { trg.gosplash = true; attach(trg, 11); trg.s = 11; trg.see = false; trg.outway = true; trg.hp = hps[trg.s]; splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.6); if (trg.eternal) { trg.hp += 15; } } else { trg2.d._xscale = trg.d._xscale; trg2.d.gotoAndStop(6); trg2.fra = -100; trg2.s = 26.5; trg2.pbh = true; trg2.alter = 1; --trg.fire; if (trg.d._currentframe < 3) { trg2.xp = trg.xp; trg2.yp = trg.yp; trg2.ybew = 0; trg2.xbew = 0; trg2._visible = false; trg2.bh = false; if (fra % 4 == 0) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 1.5, player.yp + player.ybew * 1.5, 130); if (enf) { trg.see = true; if (trg.lastv) { enf = 14 / enf; trg2.xbew = -xenf * enf; trg2.ybew = -yenf * enf; trg.d.gotoAndStop(6); trg.fire = 30; _root.soundy('meatheadshoot' + random(3) + '.wav'); if (trg.eternal) { quadf(trg.xp, trg.yp, 9, 1); } } } else { trg.see = false; } } } if (trg.d._currentframe >= 3) { enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 30000); if (enf < 5 && trg.fire < 15) { trg.d.gotoAndStop(1); } else { if (trg.d._xscale < 0) { xenf = -xenf; } i = 0; while (i < 9) { trg3 = trg.d['n' + i]; f1 = (7 - i) / 8; trg3._x = -xenf * f1; f2 = Math.abs(i - 4); f2 = 16 - f2 * f2; f3 = 100; f2 *= Math.max(0, f3 - enf) / f3; trg3._y = -yenf * f1 - 25 + f2 + i - 6; trg3._visible = true; ++i; } if (trg.d._xscale < 0) { xenf = -xenf; } enf = 0.7 / enf; trg2.xbew += xenf * enf; trg2.ybew += yenf * enf; f1 = 0.9 + trg.fire * 0.0028; trg2.xbew *= f1; trg2.ybew *= f1; trg2._visible = true; trg2.bh = true; } } } } case 87: case 58: case 24: case 10: if (trg.s == 87 && trg.eternal) { if (fra10 && random(3) != 0) { trg2 = parc('bloo', trg.xp + crand(4), trg.yp + crand(4)); trg2._xscale *= 1.2; trg2._yscale = trg2._xscale; if (random(3) == 0) { splater(trg.xp + crand(4), trg.yp + crand(4), 31 + random(10), Math.random() + 0.2); } colorit(trg2, 0, 2, 0, 0, 40, 0); } } if (trg.s == 24 && trg.eternal) { if (trg.d._currentframe != 5) { if (enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 300) && random(100) == 0 || enfcheck(trg.xp, trg.yp, player.xp, player.yp, 80) > 0 && random(1000) == 0) { trg.gosplash = true; if (trg.alter == 2) { trg.d.gotoAndStop(6); } else { trg.d.gotoAndStop(5); } trg.outway = true; trg.hp = Math.max(20, trg.hp + 5); splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.6); } } } gochar = trg.s != 58; if (trg.s != 35) { f1 = trgnextd(); if (trg.d._currentframe == 6 && trg.s == 58) { telpx(true); } if (f1 == 6 && trg.s == 58) { i = 0; for (;;) { if (!(i < 100 && trg.xpp == undefined)) break; telpx(true); ++i; } if (trg.xpp != undefined) { trg.xp = trg.xpp; trg.yp = trg.ypp; } trg.d.gotoAndStop(5); trg.xpp = undefined; } } if (trg.s == 58) { trg.bh = (trg.d._currentframe != 5 || trg.d.d._currentframe > 3) && (trg.d._currentframe != 6 || trg.d.d._currentframe < 7); if (trg.d._currentframe == 5 && trg.d.d._currentframe == 3 || trg.d._currentframe == 6 && trg.d.d._currentframe == 7) { _root.soundy('Meat_jumps' + random(5) + '.wav'); } } if (trg.d._currentframe < 3) { if (random(10) == 0 && trg.s != 10) { if (trg.s == 87) { splater(trg.xp, trg.yp, random(10) + 31, Math.random() * 0.5 + 0.2); } else { splater(trg.xp, trg.yp, random(10), Math.random() * 0.5 + 0.2); } } walkframe(); if (trg.s == 58) { if (!trg.eternal) { pathfind(trg, playx, playy, 0.8); } else { trg.xbew *= 0.7; trg.ybew *= 0.7; ++trg.spoo; if (trg.spoo > 0) { if (trg.spoo == 10 || trg.spoo == 20 && fra < 5000 || trg.spoo == 30 && fra < 2500) { b1 = allets; allets = false; enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = -15 / enf; xenf *= enf; yenf *= enf; trg.hp -= 4; trg2 = create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 58); trg2.specoz = 23; trg2.fra = -100; trg2.hp *= 0.666; trg2._yscale *= 0.82; trg2._xscale = trg2._yscale; speco(trg2); _root.soundy('summonsound.wav', 80); sideflip(xenf); allets = b1; } if (trg.spoo > 50) { trg.spoo = -100; } } else { if (trg.spoo == 0) { trg.spoo = undefined; } else { if (linecheck(player.xp, player.yp, trg.xp, trg.yp)) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 130)) { if (ashut < 5) { trg.spoo = 1; } } } sideflip(-trg.xp + player.xp); } } } } else { if (trg.s == 24) { pathfind(trg, playx, playy, 0.4 + trg.alter * 0.35); } else { pathfind(trg, playx, playy, 0.6); } } sideflip(trg.xbew); if (trg.s == 87) { if (random(60) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 130)) { trg.d.gotoAndStop(5); sideflip(-xenf); } } } if (trg.s == 58) { if (random(30) == 0 && !trg.lastv && trg.spoo <= 0) { trg.d.gotoAndStop(6); } } } else { if (trg.s == 87 && trg.d._currentframe == 5 && trg.d.d._currentframe == 5) { trg2 = green(); _root.soundy('heartout.wav', 70); if (trg.eternal) { trg2.hom = 3; colorit(trg2, 0.8, 1, 2.5, 0, 0, 0); trg2.longshot = 2; trg2.dm = -26; trg2.d._yscale = 240; trg2.d._xscale = 240; trg2.pois = 10; } } if (trg.alter == 2 && trg.s != 35) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 200)) { enf = 0.5 / enf; trg.xbew += xenf * enf; trg.ybew += yenf * enf; } trg.xbew *= 0.83; trg.ybew *= 0.83; } else { trg.xbew *= 0.7; trg.ybew *= 0.7; } } } } function physix() { for (e in ball) { trg = ball[e]; f1 = 1; if (trg.s < 5) { if (sloww > -40) { f1 = Math.max(0.75, 0.5 - sloww / 80); if (sloww > 0) { trg.free = true; } } else { f1 = 1; } } else { if (slow > -40) { f1 = Math.max(0.5, 0.5 - slow / 80); if (slow > 0) { trg.free = true; } } else { if (trg.spid > 0) { --trg.spid; trg.xbew *= 0.7; trg.ybew *= 0.7; } } } if (trg.s == 7 || trg.s == 8) { if (Math.abs(trg.ybew) <= 0) { trg.ybew = trg.ypp * 0.7; } } if (trg.frezz <= 0 || scare > 0) { if (f1 == 1) { trg.xp += trg.xbew; trg.yp += trg.ybew; } else { trg.xp += trg.xbew * f1; trg.yp += trg.ybew * f1; } } trg.rr = 0; trg.yb = 0; trg.xb = 0; } for (e in ball) { trg = ball[e]; if (trg.dones) { trg.ybew = 0; trg.xbew = 0; trg2 = undefined; if (trg.s == 9) { if (trg.bomb) { bomf.push([trg.xp, trg.yp, true, trg.pois]); } else { trg2 = parc('bloodsplash', trg.xp, trg.yp + trg.d._y, random(360), trg.d._xscale, trg.dpppp + 123); if (trg.colo) { var v3 = new flash.geom.Transform(trg2); v3.colorTransform = trg.colo; } if (blackout == 2) { colorit(trg2, 0, 0, 0, 0, 0, 0); } } trg.done = true; } switch (trg.s) { case 1: break; case 43: case 20: trg.d.gotoAndStop(5); trg2 = trg.d.d; if (trg2._currentframe < 66 && fra % 10 == 0) { trg.lasts = trg2._currentframe < 55; gosplash(); } break; case 5: trg2 = trg.d.d.d; break; case 2: if (trg.bomb) { trg.spl = 30; if (trg.bombo) { trg.header = 100; } else { trg.header = 300; } trg.dfr = true; trg.s = 4; attach(trg, 4); trg.d.gotoAndStop(5); trg2 = undefined; } else { case 9: if (!trg.dsound) { trg.dsound = true; _root.soundy('TearImpacts' + random(3) + '.mp', 85); } case 7: case 8: if (trg.s != 4) { if ((random(30) == 0 || trg.spll) && (!trg.firstt || !trg.tooth)) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.8 + 0.1); } if (!trg.firstt) { trg.firstt = true; if (trg.tooth) { trg.d._rotation = random(60) - 30; if (random(2) == 0) { trg.d._xscale *= -1; } } else { trg.d._rotation = random(360); } } trg2 = trg.d; } break; case 19: if (_root.levz[_root.lev] <= 0) { f1 = true; for (a in ball) { trg2 = ball[a]; if (trg2.s == 19 && !trg2.dones) { f1 = false; } } if (f1) { trg.bossd = true; } } default: if (trg.s == 77) { trg.d.gotoAndStop(14); } else { if (trg.s == 76) { trg.d.gotoAndStop(12); } else { if (trg.s == 73) { trg.d.gotoAndStop(9); } else { if (trg.s == 72) { trg.d.gotoAndStop(6); } else { if (trg.s == 28) { trg.d.gotoAndStop(trg.mag + 6); } else { if (!trg.dfr) { trg.d.gotoAndStop(3); } } } } } } trg2 = trg.d.d; if (trg.s == 102) { if (trg2._currentframe == 17) { _root.soundy('superholy.wav', 200); } } else { if (trg.s == 100) { if (trg2._currentframe == 66 || trg2._currentframe == 15 || trg2._currentframe == 18 || trg2._currentframe == 21 || trg2._currentframe == 24 || trg2._currentframe == 28 || trg2._currentframe == 32 || trg2._currentframe == 38 || trg2._currentframe == 44 || trg2._currentframe == 51 || trg2._currentframe == 75) { trg.lasts = trg2._currentframe < 70; splater(trg.xp, trg.yp, random(10) + 1 + trg.spl, 1 + Math.random() * 2); gosplash(); } } else { if (trg.s == 99) { if (trg2._currentframe == 66 || trg2._currentframe == 3 || trg2._currentframe == 6 || trg2._currentframe == 9 || trg2._currentframe == 12 || trg2._currentframe == 15 || trg2._currentframe == 19 || trg2._currentframe == 35) { trg.lasts = trg2._currentframe < 60; splater(trg.xp, trg.yp, random(10) + 1 + trg.spl, 1 + Math.random() * 2); gosplash(); } } else { if (trg.s == 28) { if (trg2._currentframe > 70 - trg.mag * 18 && trg2._currentframe < 84 - trg.mag * 21 && fra5) { splater(trg.xp, trg.yp, random(10) + 1 + trg.spl, 1 + Math.random() * 2); gosplash(); } } else { if (trg.s == 36) { if (trg2._currentframe < 80 && fra % 7 == 0) { splater(trg.xp, trg.yp, random(10) + 1 + trg.spl, 1 + Math.random() * 3.5); gosplash(); } } else { if (!trg.firsttx) { trg.firsttx = true; gosplash(); } } } } } } f1 = Math.random() * 0.7 + 0.4; if (trg.s == 14) { f1 *= 0.7; } if (trg2._currentframe <= 3) { splater(trg.xp, trg.yp, random(10) + 1 + trg.spl, f1); } } } if (trg2._currentframe == trg2._totalframes && trg2._alpha) { trg.done = true; } else { trg2.nextFrame(); } trg.sh._visible = false; } } e = 0; while (e < ball.length) { trg = ball[e]; if (trg.d.done || trg.done || trg.s <= -10) { if (trg.s == 4) { if (_root.so.data.bomb > 100) { _root.locker[35] = true; } } if (trg.s == 30) { --boils; } ball.splice(e, 1); removeMovieClip(trg); trg.swapDepths(87); } ++e; } e = 0; while (e < ball.length) { trg = ball[e]; trg.gh = false; ++e; } topz(3); grid.fillRect(grid.rectangle, 0); grid2.fillRect(grid2.rectangle, 0); tests.fillRect(tests.rectangle, 0); e = 0; bollocks = []; bollocks2 = []; while (e < ball.length) { trg = ball[e]; if (trg == player) { ea = e; } ++e; if (trg.s > 3 && !trg.noneed) { if ((trg.pbh || trg.outway) && trg.bh && !trg.dones) { f1 = gridp(trg.xp, trg.yp, -0.5, -0.5); gridput2([int(f1[0] + gridmax), int(f1[1])], e); gridput2([int(f1[0] + gridmax), int(f1[1] + 1)], e); gridput2([int(f1[0]), int(f1[1])], e); gridput2([int(f1[0]), int(f1[1] + 1)], e); } else { if (trg.ph && trg.bh && !trg.dones) { bollocks.push(e - 1); } else { if (trg.bh && !trg.dones) { f1 = gridp(trg.xp, trg.yp, -0.5, -0.5); gridput([int(f1[0] + gridmax), int(f1[1])], e); gridput([int(f1[0] + gridmax), int(f1[1] + 1)], e); gridput([int(f1[0]), int(f1[1])], e); gridput([int(f1[0]), int(f1[1] + 1)], e); } } } } else { if (trg.noneed) { if (trg.noned-- < 0) { trg.noneed = false; } } } } i = 1; while (i < 300) { tests.setPixel(i, i, 1); ++i; } gxee = gxe * gridmax; i = 1; while (i < gxee) { o = 1; while (o < gye) { z = 0; for (;;) { if (!(z < gridmax && grid.getPixel(i + z, o) != 0)) break; e = grid.getPixel(i + z, o) - 1; c = z + 1; for (;;) { if (!(c < gridmax && grid.getPixel(i + c, o) != 0)) break; a = grid.getPixel(i + c, o) - 1; ballhit(e, a); ++c; } ++z; } ++o; } i += gridmax; } bollocks3 = []; for (e in ball) { trg = ball[e]; if (trg.bh && !trg.outway) { if (trg.s < 5 || trg.s == 44 || trg.s == 28) { f1 = gridp(trg.xp, trg.yp); i = f1[0]; o = f1[1]; z = 0; for (;;) { if (!(z < gridmax && grid2.getPixel(i + z, o) != 0)) break; a = grid2.getPixel(i + z, o) - 1; ballhit(e, a); ++z; } if (trg.s < 5) { z = 0; for (;;) { if (!(z < gridmax && grid.getPixel(i + z, o) != 0)) break; a = grid.getPixel(i + z, o) - 1; ballhit(e, a); ++z; } } } } } for (i in bollocks) { a = bollocks[i]; e = ea; ballhit(e, a); for (z in flys) { e = flys[z]; ballhit(e, a); } } tip(3); if (flys.length > 2) { fll = 0.6666666666666666; } else { fll = 1; } flys = []; for (e in ball) { trg = ball[e]; trg.xbew += trg.xb; trg.ybew += trg.yb; trg.rr = 0; trg.yb = 0; trg.xb = 0; } topz(4); for (e in ball) { trg = ball[e]; if (!trg.ggh && !trg.dones) { f1 = trg.s > 2; if (trg == player || trg.s == 23 || trg.s == 55 || trg.s == 32 || trg.s == 44) { f1 = !enfcheckx(trg.xp, trg.yp, 320, 280, 1000) || hhorse > 0; } if (trg.s == 84) { trg.xp = Math.min(580, Math.max(60, trg.xp)); } else { if (trg.s < 67 && trg.s > 62 || trg.s == 83) { trg.yp = Math.min(410, Math.max(170, trg.yp)); } else { if (trg.flyai) { trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.yp = Math.min(410, Math.max(180, trg.yp)); } else { if (f1 && !trg.sic && !trg.horse && trg.s != 9 && !(trg.s >= 63 && trg.s <= 66)) { trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.yp = Math.min(420, Math.max(150, trg.yp)); if (trg == player) { if (trg.xp == 580 || trg.xp == 60 || trg.yp == 420 || trg.yp == 150) { if (horse < 90) { horse = undefined; trg.xbew *= 0.6; trg.ybew *= 0.6; } f1 = ingrid(trg.xp, trg.yp); if (levzz(f1) > 1 && hhorse <= 0) { turdb = f1; } } } } } } } if (trg == player) { if (turdb) { outgrid(turdb); if (enfcheck(xenf, yenf, trg.xp, trg.yp, 35)) { turdz = levz[turdb]; levz[turdb] = 0; } else { turdb = undefined; } } } f1 = trg.xp; f2 = trg.yp; f6 = 0; f5 = 0; siz = sizes[trg.s] + 2; v1 = trg.s; if (trg == player) { if (ladder != undefined) { if (levz[ladder] == 3) { levz[ladder] = 0; } } } if (trg.shot) { if (trg._alpha > 50 && trg.sss != 84 && !trg.knife || trg.death) { if (mhity(f1, f2)) { mhix(); } else { if (levzz(f33) == 0.99) { if (webs[f33] && !trg.slowed) { trg.slowed = true; trg.xbew *= 0.64; trg.ybew *= 0.64; } } } } else { if (random(Math.max(7 - _root.luck, 1)) == 0 || trg.knife) { killshit(ingrid(trg.xp, trg.yp)); } } } else { if (trg.flyby == 2) { mhix(); } else { if (trg.flyby) { f3 = false; for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhitx(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } f3 = true; if (Math.abs(f5) > 0 || Math.abs(f6) > 0 || trg.gh) { for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhitx(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } } } else { f3 = false; for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhit(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } f3 = true; if (Math.abs(f5) > 0 || Math.abs(f6) > 0 || trg.gh) { for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhit(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } } } } } if (Math.abs(f5) > 0 || Math.abs(f6) > 0) { if (trg.s == 9) { trg.dones = true; } if (trg.breaker) { f1 = ingrid(trg.xp, trg.yp); var v2 = true; i = 0; while (i < door.length) { trg = door[i]; if (trg.blo == f1) { v2 = false; } ++i; } if (v2) { bloww(f1, trg.xbew, trg.ybew); } } if (trg == player && fra > 20) { if (horse < 90) { horse = undefined; trg.xbew *= 0.6; trg.ybew *= 0.6; } f1 = f6 * trg.ybew + f5 * trg.xbew; trg.xbew *= 0.88; trg.ybew *= 0.88; if (f1 > 0 || lastf1 > fra) { if (f1 > 0) { lastf1 = fra + 4; } trg.ghhh = true; if (lastf2 <= fra) { lastf2 = fra + 10; if (Math.abs(f5) > Math.abs(f6)) { lastxx = 0; lastxy = 1; } else { lastxy = 0; lastxx = 1; } } } } if (trg.s == 2 && !trg.dones) { trg.dones = true; v2 = 10 / enfget(trg.xbew, trg.ybew); v2 = ingrid(trg.xp + trg.xbew * v2, trg.yp + trg.ybew * v2); v1 = trg.dmg > 5; if (!killshit(v2, v1)) { if (!killshit(ingrid(trg.xp + 10, trg.yp), v1)) { if (!killshit(ingrid(trg.xp, trg.yp + 10), v1)) { if (!killshit(ingrid(trg.xp - 10, trg.yp), v1)) { killshit(ingrid(trg.xp, trg.yp - 10, v1)); } } } } } roty = sizes[trg.s] * Math.PI / 180; f7 = Math.sqrt(f5 * f5 + f6 * f6); f5 /= f7; f6 /= f7; if (trg.rotn != undefined) { trg.roty = (Math.atan(-f5 / f6) / Math.PI) * 180; if (f6 >= 0) { trg.roty += 180; } trg.rotn = 3; } f8 = -f5 * trg.xbew - f6 * trg.ybew; if (f8 < 0) { ++trg.rr; trg.gh = true; if (trg.s == 99 && trg.fraz <= fra) { trg.fraz = fra + 5; _root.soundy('Death_Burst_Large_1.mp', f8 * 5); } f9 = f8 * 1.8 - 0.1; if (f9 < -10) { soundy('mh'); } if (trg.s == 99) { f9 *= 1.4; } trg.xbew += f5 * f9; trg.ybew += f6 * f9; siz = Math.sqrt(trg.xbew * trg.xbew + trg.ybew * trg.ybew); siz2 = sizes[trg.s]; if (siz > 0 && f8 < 0) { f1 = trg.xp; f2 = trg.yp; if (trg.shot) { if (trg.s == 14 || trg.s == 13) { siz2 = 5; } v2 = siz2 - 10; for (;;) { if (!(!mhity(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 4; } v2 -= 4; for (;;) { if (!(!mhity(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 0.5; } } else { if (trg.flyby) { v2 = siz2 - 10; for (;;) { if (!(!mhitx(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 4; } v2 -= 4; for (;;) { if (!(!mhitx(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 0.5; } } else { v2 = siz2 - 10; for (;;) { if (!(!mhit(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 4; } v2 -= 4; for (;;) { if (!(!mhit(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 0.5; } } } v2 -= siz2; if (v2 > 0) { v2 = 0; } else { v2 *= Math.max(0.2 - v2 * 0.05, 1); } trg.xp += f5 * v2; trg.yp += f6 * v2; f8 = -f8 / siz; f8 = 1 - f8 * 0.5; trg.xbew *= f8; trg.ybew *= f8; } } } if (turdz) { levz[turdb] = turdz; turdz = undefined; } if (trg.rr > 0) { trg.xbew += trg.xb / trg.rr; trg.ybew += trg.yb / trg.rr; } if (trg == player) { if (ladder != undefined) { if (levz[ladder] == 0) { levz[ladder] = 3; } } } } } e = 0; while (e < ball.length) { trg = ball[e]; if (trg.laser) { trg2 = trg.d.l; if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { f1 = lass; } else { f1 = lass; } trg2._yscale = f1; trg2._xscale = lassd * 30; } if (trg == player) { if (ashut > 0 || Math.abs(trg.xp - 320) > 25 && Math.abs(trg.yp - 280) > 25) { if (levz[ingrid(trg.xp + trg.xbew, trg.yp + trg.ybew)] > 1) { bord(568, 60, 410, 150); } } } trg._x = trg.xp; trg._y = trg.yp; if (trg.s == 79) { if (!trg.dones) { if (!trg.alt) { trg2 = trg.trg2; trg3 = trg.trg3; if (trg2) { gem(trg2, 0); } if (trg3) { gem(trg3, 1); } } } } if (mheart == trg) { trg.d.veins._x = -trg._x + 320; trg.d.veins._y = -trg._y + 100; } if (trg.s == 19) { if (trg.dx) { trg._x -= trg.dx; } } if (trg.s == 19 && !altboss && false) { } else { if (trg.s == 26.5) { } if (trg.worm) { if (trg.d._y > 10) { trg2 = worm[1]; trg._y = Math.min(trg._y, trg2.yppp); } } if (trg.s == 2) { trgdy(!trg.piss && !ups[149]); } else { if (trg.s == 7 || trg.s == 8 || trg.s == 9) { trgdy(); } } if (!trg.nod) { trg.dpppp = Math.max(e, Math.round(trg.yp) * 100 + 10030 + e); if (trg.s == 28) { trg.dpppp += 2500 - trg.mag * 1000; } if (trg.s == 19 || trg.s == 89) { if (trg.lar > 0) { trg.dpppp -= trg.lar * 100; } } if (trg.s == 5 && trg.d._currentframe == 9) { trg.dpppp -= 2500; } if (trg.s == 26.5) { trg.dpppp += 2500; } if (trg.worm) { if (trg.worm == wormet) { trg.dpppp += 1000; } else { trg.dpppp -= Math.max(-30, trg.d._y) * 200; } } if (trg.s == 1 && trg.dones) { trg.dpppp += 100000000; } if (trg.flyai && gurdy) { trg.dpppp += 6000; } trg.swapDepths(trg.dpppp); } if (trg.col) { f1 = trg.col; if (trg.s == 5 && trg.d._currentframe == 7) { f1 = pic(f1); } trg.d.d.d.d.d.p.gotoAndStop(f1); trg.d.d.d.d.p.gotoAndStop(f1); trg.d.d.d.p.gotoAndStop(f1); trg.d.d.p.gotoAndStop(f1); } if (trg.s == 5) { if (trg.d.d._currentframe > 35 && trg.d.d._currentframe < 41) { if (trg.col == 31) { f1 = 2; } else { f1 = 1; } trg2 = trg.d.d.d; trg2.p.gotoAndStop(f1); trg2.p0.gotoAndStop(f1); trg2.p1.gotoAndStop(f1); trg2.p2.gotoAndStop(f1); trg2.p3.gotoAndStop(f1); trg2.p4.gotoAndStop(f1); } } } ++e; } tip(4); } function emo(f1) { if (f1) { if (emosound) { _root.soundy('thumbs down.wav'); } player.d.gotoAndStop(10); } else { if (emosound) { _root.soundy('thumbsup.wav'); } player.d.gotoAndStop(9); } } function lsou() { if (trg.ris + 27 <= fra) { if (trg.s == 84) { _root.soundy('hand lasers.mp'); } else { if (trg.s == 1 || trg.s == 43 || trg.s == 49) { _root.soundy('Blood_Laser_Large.mp'); } else { if (trg.s == 60) { _root.soundy('RedLightning_Zap_' + random(3) + '.mp'); } else { _root.soundy('Blood_Laser' + random(2) + '.mp'); } } } } trg.ris = fra; } function linearcut(f1, f2, f3, f4, f5, f6) { return (f1 * f6 - f2 * f5) / (f3 * f6 - f5 * f4); } function lasershowx(f1) { lsou(); xenf = Math.cos(f1); yenf = Math.sin(f1); for (a in ball) { trg2 = ball[a]; if (trg2.s != trg.s && !trg2.dones && (trg2.bh || trg2.s == 19) && trg2.s != 78 && !trg2.shot) { f4 = trg.xp - trg2.xp; f5 = trg.yp - trg2.yp; if (trg.s == 52) { f5 -= (trg._yscale - 100) * 0.2; } f2 = linearcut(f4, f5, xenf, yenf, -yenf, xenf); if (Math.abs(f2) < sizes[trg2.s] + 5) { if (linearcut(f4, f5, -yenf, xenf, xenf, yenf) < 0) { if (trg2 == player) { playerhurt(1, trg.s); } else { if (trg == player || !trg2.bosser) { hurt(trg2, 22); } } } } } } } function lasershow(trg, f50, b2) { if (!f50) { lsou(); } var v7; if ((fra + trg.e) % 2 == 0 || trg == player && ups[118] || f50) { if (f50) { f1 = trg.xp; f2 = trg.yp; lass = 700; var v4 = 0; v7 = Math.abs(trg.ypp) > Math.abs(trg.xpp); if (v7) { v4 = (f2 + 20) % roxx - 20; if (trg.ypp < 0) { v4 = -v4; } } else { v4 = (f1 + 20) % roxx - 20; if (trg.xpp < 0) { v4 = -v4; } } var v5 = !ups[115]; i = 1; while (i < 700) { f1 += trg.xpp * roxx; f2 += trg.ypp * roxx; f3 = levzz(ingrid(f1, f2)); if (f3 >= 1 && f3 != 3 && v5 || f2 < 140 || f2 > 440 || f1 > 615 || f1 < 40) { lass = i; i = 1000; } i += roxx; } lass -= v4 - 7; lasx = trg.xp; lasy = trg.yp; } if (f50 != 2) { lassd = dmgdo(); if (ups[2]) { lassd *= 3; } if (ups[132]) { lassd += 2; } if (brim) { lass = 10000; lassd *= 3; if (ups[69]) { v111 = Math.max(0.1, Math.min(1, (fra - lchaf) / 60)); lassd *= v111; } } _root.firrb = lassd; } if (b2 || b2 == undefined) { if (f50 == 5) { lassd *= secol * 0.2; } for (a in ball) { trg2 = ball[a]; if (trg2.s != trg.s && (trg.s != 3 || trg2 != player) && !trg2.dones && trg2.bh && !trg2.shot) { if (hps[trg2.s] > 0) { f1 = false; xenf = trg.xp - trg2.xp; yenf = trg.yp - trg2.yp; if (f50) { f2 = 5; } else { f2 = 25; } if (trg2 == player) { f2 = 10; } f2 += sizes[trg2.s]; if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { if (Math.abs(yenf) < f2) { if (xenf * trg.xpp < 0) { f1 = true; } } } else { if (Math.abs(xenf) < f2) { if (yenf * trg.ypp < 0) { f1 = true; } } } if (f1) { if (trg2 == player) { playerhurt(0.5, trg.s); } else { if (f50 || !f50 && trg == player && ups[118]) { if (enfget(xenf, yenf) - 20 < lass) { hurt(trg2, lassd); spidcol(trg2); } } else { if (trg.s != 39 && (trg2.s != 84 || trg == player)) { hurt(trg2, 22); } } } } } } } f1 = 1000; if (f50) { f1 = lass + random(31); } a = 0; while (a < f1) { killshit(ingrid(trg.xp + trg.xpp * a, trg.yp + trg.ypp * a), f50 && lassd > 5); a += 10; } } } } function laps() { keyhole = false; if (keypoww > 0) { keypoww -= 0.2; } if (_root.keys > 0 || _root.kep || ups[60] || demon > 0 || _root.coins > 0 || unic > 0 || _root.notch) { f1 = roxx / enfget(player.xbew, player.ybew); f3 = ingrid(player.xp + player.xbew * f1, player.yp + player.ybew * f1); outgrid(f3); trg.s = 4; f10 = false; if (levz[f3] == 1 && (demon > 0 || _root.notch)) { bloww(f3, trg.xbew, trg.ybew); f10 = true; } else { if (demon > 0 || unic > 0 || _root.notch) { if (killshit(f3, demon > 0 || _root.notch)) { if (_root.notch) { killshit(f3, true); killshit(f3, true); } f10 = true; } } } if (_root.notch && f10) { _root.notch = false; _root.itc = 0; player.d.gotoAndStop(11); player.it = 147; player.d.d.d.it.d.gotoAndStop(player.it); player.d.d.d.it.d.p.gotoAndStop(player.pilc); } trg.s = 1; if (_root.keys > 0 || _root.kep || _root.coins > 0) { keyhole = f3; } if (levzz(f3) == 4 && (_root.kep || _root.keys > 0)) { if (f3 != keypow) { keypow = f3; keypoww = 0; } else { if (keypoww++ > 2.8 && !player.flyby) { _root.soundy('Unlock00.wav', 100); if (!_root.kep) { --_root.keys; } levz[f3] = 1.01; killshit(f3); _root.soundy('metal_blockbreak' + random(2) + '.wav', 100); } } } if (levzz(f3) == 3 && ups[60]) { if (ladder != ingrid(player.xp, player.yp)) { if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { if (f3 != alad) { if (trg.ybew < 0) { lads._rotation = 0; } else { lads._rotation = 180; } } if (levzz(f3 + rowz) == 3 || levzz(f3 - rowz) == 3) { f3 = 0; } } else { if (f3 != alad) { if (trg.xbew > 0) { lads._rotation = 90; } else { lads._rotation = -90; } } if (levzz(f3 + 1) == 3 || levzz(f3 - 1) == 3) { f3 = 0; } } if (f3 > 0) { ladder = f3; alad = ladder; outgrid(ladder); lads._x = xenf; lads._y = yenf; lads._visible = true; } } } } if (ladder != undefined) { outgrid(ladder); if (!enfcheck(xenf, yenf, player.xp, player.yp, 100)) { ladder = undefined; lads._x = -10000; lads._visible = false; } else { outgrid(ladder); lads._x = xenf; lads._y = yenf; lads._visible = true; } } } function roll(f1) { if (f1) { roller = f1 - 1; } --roller; return random(roller + 1) == 0; } function tart(f1, f3) { var v1 = ['X Wheel of fortune', 'XV The Devil', 'XIII Death', 'XI Strength', '0 The Fool', 'I The Magician', 'IX The hermit', 'XVIII The Moon', 'XII The hanged Man', 'XX Judgement', 'VII The Chariot', 'VI The Lovers', 'XXI The World', 'VIII Justice', 'XVI Temperance', 'IV The Emperor', 'XVI The Tower', 'V The Hierophant', 'II The High Priestess', 'III The Empress', 'XIX The Sun', 'XVII The Stars']; v1[63] = '2 of Spades'; v1[64] = '2 of Clubs'; v1[65] = '2 of Hearts'; v1[66] = '2 of Diamonds'; v1[67] = 'The Joker'; v1 = v1[f1 - 7]; if (!f3) { st11(v1); } else { return v1; } } function goodpill() { _root.soundy('Powerup_spewer.wav', 100); } function fart() { var v2 = create(player.xp, player.yp, 0, 0, 0, 0, 4); v2.dones = true; v2._yscale = 70; v2._xscale = 70; v2.d.gotoAndStop(5); v2.fart = true; v2.s = 4.5; v2.dfr = true; showit = false; for (z in ball) { v2 = ball[z]; siz = 85 + sizes[Math.round(v2.s)]; enf = enfcheck(player.xp, player.yp, v2.xp, v2.yp, siz); if (enf < siz && !v2.dones && v2.s > 9 && v2.bh && !v2.shot) { v2.poiss = 200; v2.poisd = 3.5; hurt(v2, 5); } } _root.soundy('fart.mp'); } function horss(f1) { if (horse == 100 || hfff == fra) { if (f1) { xenf = -xenf; yenf = -yenf; } if (xenf != 0 || yenf != 0) { horsx = xenf; horsy = yenf; if (xenf != 0 && yenf != 0) { if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { horsy = 0; } else { horsx = 0; } } horse = 99; hfff = fra; } if (f1) { xenf = -xenf; yenf = -yenf; } } } function piller() { f10 = !ups[46] && !ups[75]; f1 = _root.piller[_root.pilc]; while (f1 == undefined) { if (f1 == undefined || f1 == 3 && ups[75] || f1 == 6 && (!f10 || player.hp < 1)) { if ((player.hp < player.mhp || _root.skiner == 4 && _root.armor < 3) && random(10) == 0) { f1 = 1; } else { if (random(13) == 0) { f1 = 12; } else { if (random(17) == 0) { f1 = 13; } else { if (random(17) == 0) { f1 = 14 + random(2) * 0.2; } else { if (random(15) == 0 && !ups[75]) { f1 = 2; } else { if (random(15) == 0 && !ups[75]) { f1 = 3; } else { if (random(10) == 0) { f1 = 4; } else { if (random(20) == 0) { f1 = 5; } else { if (random(9) == 0 && player.hp + _root.armor > 1 && f10) { f1 = 6; } else { if (random(7) == 0) { f1 = 7 + random(2) * 0.2; } else { if (random(6) == 0 && (_root.bombs > 0 || _root.keys > 0)) { f1 = 8; } else { if (random(5) == 0 || random(4) == 0 && ups) { f1 = 9 + random(2) * 0.2; } else { if (random(3) == 0) { f1 = 10 + random(2) * 0.2; } else { if (random(3) == 0 || ups[75]) { f1 = 11 + random(2) * 0.2; } else { if (random(3) == 0) { f1 = 17 + random(2) * 0.2; } else { f1 = 126; } } } } } } } } } } } } } } } for (z in _root.piller) { if (f1 == _root.piller[z]) { f1 = undefined; } } _root.piller[_root.pilc] = f1; } } f1 = Math.round(_root.piller[_root.pilc]); if (f1 != _root.piller[_root.pilc]) { f2 = true; } else { f2 = false; } if (!f10) { f2 = true; } } function toot(f1) { return Math.max(f1 * 2, 2); } function spaceitem() { --nospo; if (spac && fra > 10 && player._visible && nospo <= 0) { if (!nosp) { nosp = true; if (_root.it > 0 && _root.itc >= 1) { doit = true; showit = true; pacman = false; if (_root.it == 84) { f1 = [2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 16, 17, 18, 25, 26, 37, 38, 43, 44, 45, 46, 53, 57, 62, 67]; if (f1.length > 0) { f1 = f1[random(f1.length)]; _root.it = f1; f1 += itn2(f1); st22(_root.st1[f1]); } _root.over.gotoAndStop(14); goper = true; } switch (_root.it) { case 152: ++ups[3]; if (random(2) == 0) { } ups[1] += 0.75; break; case 146: ader(); lasth = 0; if (_root.chaps < 7) { ader(true); } if (player.hp < 0.5) { showit = false; } _root.soundy('Death_Card.mp', 100); for (e in ball) { trg2 = ball[e]; hurt(trg2, 40); } sacri = 20; break; case 120: anarch = 30; analt = 2; break; case 124: _root.bombnext = 2; break; case 135: keyd = true; break; case 126: for (e in ball) { trg2 = ball[e]; if (trg2.s == 5) { if (trg2.d._currentframe < 8) { trg2.done = true; f1 = 5.01 + random(6) * 0.01; if (f1 == 5.06 && random(2) == 0) { f1 = 5.01; } if (f1 == 5.05 && random(3) == 0) { f1 = 5.02; } if (random(10) == 0) { f1 = 5.03 + random(2) * 0.01; } if (random(15) == 0) { f1 = 5.3; } if (random(15) == 0) { f1 = 5.07; } if (random(20) == 0) { f1 = 5.35; } create(trg2.xp, trg2.yp, 0, 0, 0, 0, f1); } } } break; case 131: _root.soundy('Death_Card.mp', 100); for (e in ball) { trg2 = ball[e]; hurt(trg2, 10); spida(undefined, trg2); } break; case 137: if (_root.coins > 0 && sloto == undefined) { --_root.coins; sloto = 25; } else { showit = false; } break; case 107: _root.notch = !_root.notch; doit = false; showit = false; break; case 118: ups[54] = true; ups[21] = ups[54]; _root.world = true; _root.darks = false; mapd(); if (random(2) == 0) { spaw(trg.xp, trg.yp, 40, 5.3); } else { trg2 = spaw(trg.xp, trg.yp, 40, 5.01); trg2.col = 3; } break; case 105: bluf += 2 + random(3); break; case 96: dec = 0; break; case 106: eta(); break; case 97: for (e in ball) { trg = ball[e]; if (trg.s == 4) { trg.d.gotoAndStop(3); trg.dones = true; } } break; case 95: ader(); f12 = Math.max(1, random(3)); if (ups[75]) { ++f12; } f11 = 0; while (f11 < f12) { spaw(trg.xp, trg.yp, 40, 5.02); ++f11; } showit = player.hp > 0; break; case 93: if (player.mhp > 0) { if (_root.hardmode) { _root.armor += 2; } else { _root.armor += 3; } --_root.ups[22]; player.hp = Math.max(player.hp - 1, 0.5); --ups[22]; _root.soundy('Vamp_Gulp.mp'); } else { showit = false; } break; case 141: anarch = 20; analt = 3; case 90: showit = false; horse = 100; break; case 83: _root.soundy('satan grow.mp', 70); f1 = [8, 73, 10, 57, 67, 88, 95, 99, 100, 112, 113, 128]; for (e in f1) { if (ups[f1[e]]) { f1.splice(e, 1); } } if (f1.length > 0) { f1 = f1[random(f1.length)]; ups[f1] = 1; } if (f1 == 73) { ups[f1] = random(2) + 2; } st22(_root.st1[f1]); _root.over.gotoAndStop(12); break; break; case 84: case 87: _root.beenlev[_root.lev] = false; _root.shroom = 3; _root.it = 0; _root.door = undefined; _root.playerx = 320; _root.playery = 400; _root.getup = true; _root.swww = _root.chaps; --_root.chaps; if (_root.double) { --_root.chaps; } _root.switchero = false; newstart(false); _root.gotoAndStop('reset'); break; case 86: razor += 2; if (player.hp > 0.5 || _root.armor <= 0) { f11 = _root.armor; _root.armor = 0; playerhurt(0.5, 202); _root.armor = f11; } else { playerhurt(0.5, 202); } lasth = 0; if (player.hp > 0.5 || _root.armor <= 0) { f11 = _root.armor; _root.armor = 0; playerhurt(0.5, 202); _root.armor = f11; } else { playerhurt(0.5, 202); } showit = false; break; case 71: fart(); break; case 67: ++ups[20]; bodd = true; _root.soundy('bloodbank spawn1.wav', 300); break; case 65: for (a in ball) { trg2 = ball[a]; if (trg2.s == 5 && trg2.it && !trg2.empty) { if (_root.hardmode && random(Math.max(2, 5 + _root.luck)) == 0) { trg2.empty = true; if (_root.chamb == _root.lev) { trg2.done = true; } trg2.it = 199; if (trg2.d._currentframe == 10) { trg2.d.d.gotoAndPlay(1); } if (trg2.d._currentframe == 15) { trg2.done = true; } } else { trg2.it = giveit(); if (trg2.d._currentframe == 10) { trg2.d.d.gotoAndPlay(1); } } } } break; case 62: pillc(4); showit = false; break; case 57: f1 = [5.010000001, 5.010000003, 5.040000001, 5.03, 5.07, 5.3, 5.02]; f1 = f1[random(f1.length)]; spaw(trg.xp, trg.yp, 40, f1); break; case 38: if (_root.horsem && _root.lev != _root.bossl && _root.chaps < 8 && _root.chaps != 6 && !_root.double) { _root.horse = true; _root.horsem = false; f1 = Math.round(_root.chaps / 2); _root.bosss = f1 + 8; if (random(10) == 0 && !_root.nohead) { _root.nohead = true; f1 = 5; _root.bosss = 22; } _root.levz[_root.bossl] = 'h' + f1; } ++_root.armor; break; case 43: demon = 200; _root.soundy('Monster_Yell_A_0.mp'); ++_root.armor; break; case 44: if (_root.chaps < 9) { spaw(trg.xp, trg.yp, 0, 5.09); } else { showit = false; doit = false; } break; case 45: pillc(3); showit = false; break; case 53: _root.mmus = _root.soundy('isaacunicorn.mp', 100); unic = 200; pacman = true; scare = 180; for (z in ball) { trg2 = ball[z]; trg2.uncol = fra + 2; } break; case 46: f1 = 0; f2 = 4; for (z in ball) { trg2 = ball[z]; if (trg2.s > 9 && trg2.s != 20) { if (trg2.hp > f2) { if (!enfcheck(trg2.xp, trg2.yp, player.xp, player.yp, 40)) { f2 = trg2.hp; f1 = z; } } } } if (f1 > 0) { trg3 = ball[f1]; trg2 = create(trg3.xp, trg3.yp, 0, 0, 0, 0, 20); trg2.weap = true; trg2.ggh = true; trg2.d.gotoAndStop(3); trg2.trg2 = trg3; trg2.bh = false; trg2.fra = -100; } else { showit = false; doit = false; } break; case 1: if (_root.chaps == 9 && _root.lev == _root.bossl) { _root.armor = 0; playerhurt(1000, 200); } else { if ((mom.length > 3 || mheart != undefined) && !bibs && (_root.chaps == 6 || _root.chaps == 8) && _root.lev == _root.bossl) { bibs = true; mheart.dones = true; for (z in mom) { mom[z].dones = true; mom[z]._visible = false; } momkill(); _root.locker[34] = true; } } bible = true; _root.over.gotoAndStop(8); _root.soundy('Book Page Turn 12.wav', 100); break; case 37: unic = 180; _root.mmus = _root.soundy('isaacunicorn.mp', 100); break; case 18: playsave = 300; break; case 16: create(trg.xp, trg.yp, 0, 0, 0, 0, 33); _root.soundy('BGascan_pour.wav', 100); break; case 2: doub = true; _root.over.gotoAndStop(2); _root.soundy('Devil_Card.mp', 100); break; case 3: _root.over.gotoAndStop(3); _root.soundy('Death_Card.mp', 100); for (e in ball) { trg2 = ball[e]; hurt(trg2, 40); } break; case 4: showit = false; f1 = ingrid(trg.xp, trg.yp); outgrid(f1); turd('breakblock', f1); _root.soundy('fart.mp'); turdb = f1; break; case 11: doit = false; showit = false; break; case 10: doit = false; _root.bombnext = true; break; case 15: if (bombdrop <= 0) { bombdrop = 100; drop = create(player.xp, player.yp, 0, 0, 0, 0, 37); } else { doit = false; } break; case 7: _root.over.gotoAndStop(4); freez = 220; bra = true; break; case 9: _root.over.gotoAndStop(5); scare = 180; freez = 160; break; case 8: showit = false; if (fra - lastbo >= 30) { lasth = 0; lastbo = fra; bombfail(trg.xp, trg.yp); } break; case 5: showit = false; bomb(true); break; case 6: e = 0; while (e < 10) { trg2 = create(trg.xp, trg.yp, 0, Math.sin((e / 5) * Math.PI) * 10, Math.cos((e / 5) * Math.PI) * 10, 0, 2); trg2.d._xscale = 135.5; trg2.d._yscale = 135.5; ++e; } break; case 12: showit = false; f1 = random(15); if (_root.chaps < 9) { if (f1 == 0) { tar = 169; } else { if (f1 == 0 && _root.chaps != 1) { tar = 166; } } } teller(); break; case 13: ++player.hp; _root.soundy('Vamp_Gulp.mp'); break; case 17: showit = false; laser = 1; break; case 25: _root.over.gotoAndStop(6); _root.soundy('Book Page Turn 12.wav', 100); anarch = 30; break; case 26: _root.over.gotoAndStop(7); slow = 230; } if (showit) { player.d.gotoAndStop(11); player.it = _root.colit; player.d.d.d.it.d.gotoAndStop(player.it); player.d.d.d.it.d.p.gotoAndStop(player.pilc); } if (itc[_root.it] > 0 && doit) { if (ups[116]) { _root.itc = 0.334; } else { _root.itc = 0; } nocharge = 10; } if (goper) { goper = false; _root.it = 84; } } } } else { nosp = false; } } function playc() { trg = player; f2 = trg.xp; f3 = trg.yp; if (decer.s == 4) { f2 = decer.xp; f3 = decer.yp; } f1 = levzz(ingrid(f2, f3)); if (f1 < 1) { playx = f2; playy = f3; } if (fra < 10 && (player.hp < 1 && _root.skiner != 4 || _root.armor < 1 && _root.skiner == 4)) { if (_root.skiner == 5) { splater(trg.xp, trg.yp, random(10) + 1, 0.3 + Math.random() * 0.5); } else { splater(trg.xp, trg.yp, random(10) + 20, 0.3 + Math.random() * 0.5); } } if (coinl) { if (coinl == 3 && _root.keys > 0) { f1 = 5.03; f6 = _root.keys; } else { if (coinl == 4 && _root.bombs > 0) { f1 = 5.04; f6 = _root.bombs; } else { f1 = 5.02; f6 = _root.coins; coinl = 1; } } f5 = 0; if (f6 > 0) { ++f5; f3 = Math.min(f6 - 1, random(4) + 1); var v3 = 0; while (v3 < f3) { ++f5; f4 = random(5) + 2; trg2 = create(player.xp, player.yp, 0, crand(f4), crand(f4), 0, f1); trg2.col = 1; ++v3; } } if (coinl == 4) { _root.bombs -= f5; } else { if (coinl == 3) { _root.keys -= f5; } else { _root.coins -= f5; } } coinl = false; } if (bombdrop-- > 0) { drop.d.gotoAndStop(Math.max(1, Math.round(100 - bombdrop))); if (bombdrop == 2) { bomf.push([drop.xp, drop.yp, 4]); drop.done = true; } if (ups[168]) { player.fire = 10; } } trg2 = player; if (random(4) == 0 && ups[189]) { splater(trg2.xp, trg2.yp + 5, 1 + random(10), Math.random() * 0.5 + 0.3); } for (a in ball) { trg = ball[a]; siz = 270; if (trg.s == 5) { if (ups[53] || trg.d._currentframe == 4 && trg.col == 5) { if (!trg.empty && trg.d._currentframe <= 4 && trg.bh && (trg.d._currentframe != 1 || trg.col == 3 || player.hp < player.mhp)) { if (enfcheck(trg2.xp, trg2.yp, trg.xp, trg.yp, siz)) { enf = 0.5 / enf; if (trg.d._currentframe == 4 && trg.col == 5) { enf *= 3; } trg.xbew += xenf * enf; trg.ybew += yenf * enf; trg.xbew *= 0.8; trg.ybew *= 0.8; trg.ggh = true; } } else { trg.ggh = false; } } } } if (scare > 0) { for (a in ball) { trg = ball[a]; siz = 270; if (trg.s > 9 && (!trg.flyai || trg.s == 18)) { trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.yp = Math.min(410, Math.max(170, trg.yp)); if (enfcheck(trg2.xp, trg2.yp, trg.xp, trg.yp, siz)) { enf = ((siz - enf) / enf) * 0.007; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trg.xbew *= 0.85; trg.ybew *= 0.85; if (trg.sf) { sideflip(trg.xbew); } if (trg.wf) { walkframe(); } } } } } else { if (slow > 0 || sloww > 0) { for (a in ball) { trg = ball[a]; if (trg.free) { colorit(trg, 1, 1, 1.3, 40, 40, 40); } } } else { if (freez > 0) { for (a in ball) { trg = ball[a]; if (trg.free) { trg.frezz = freez + 1; colorit(trg, 0.22, 0.22, 0.22, 40, 40, 40); } } } else { if (freez == 0 || slow == 0 || sloww == 0) { for (a in ball) { trg = ball[a]; if (trg.free) { trg.free = undefined; speco(trg); } } } } } } trg = player; if (playslow-- > 0) { trg.xbew *= 0.7; trg.ybew *= 0.7; } trg = player; trg = player; if (trg.dones) { unpause = false; trg.xbew *= 0.8; trg.ybew *= 0.8; playcol(); } else { f55 = 0; f44 = false; if (firecheck(player)) { if (!relf) { playerhurt(0.5, 6); } else { if (relf == 2) { playerhurt(1, 5); } else { for (i in door) { trg = door[i]; if (f55 == trg.blo) { f55 = 1.1; } } if (_root.lev == _root.sac && !_root.sacer && lasth - fra < 0) { if (random(5) == 0 || player.hp < 2 && _root.armor <= 0) { _root.sacer = true; create(320, 340, 0, 0, 0, 0, 5.05 + random(2) * 0.01); } } if (f55 == 1.1) { playerhurt(0.5, 7); } else { playerhurt(1, 7); } } } } f1 = ingrid(trg.xp, trg.yp); if (levzz(f1) == 0.99) { if (webs[f1]) { playslow = 4; } } f1 = lasth - fra; _root.lasth = f1 > 6; if (f1 > 6 || unic > 0 && (!pacman || unic < 30)) { if (f1 % 3 == 0 || unic > 0) { if (f1 % 2 == 0) { playcol(true); } else { playcol(); } } } else { playcol(); } for (e in door) { trg = door[e]; if (trg._visible && player._visible && lastspin <= fra && !(hhorse > 0 && ashut > 0) && (trg.blown || ashut <= 0)) { v1 = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 35); if (v1 < 25 && trg.nod && fra > 30) { if (shutdoor != 0) { _root.beenlev[_root.lev] = false; } _root.door = e; if (e == 0 || e == 2) { _root.playerx = 610 - trg._x * 0.9; _root.playery = 280; } else { _root.playerx = 320; _root.playery = 530 - trg._y * 0.9; } invp(); _root.old.fillRect(_root.old.rectangle, 0); _root.old.draw(this); _root.olda._x = 0; _root.olda._y = 0; _root.olda._visible = true; moveon(); _root.lev = trg.gol; _root.gotoAndStop('reset'); } if (!v1) { trg.nod = true; } } } trg = player; if (_root.bombnext || _root.notch) { if (trg.d._currentframe == 11) { if (trg.d.d.d._currentframe > 9) { trg.d.d.d.gotoAndStop(10); } } else { trg.d.gotoAndStop(11); if (_root.bombnext == 2) { trg.it = 164; } else { if (_root.notch) { trg.it = 147; } else { trg.it = 42; } } } } if (farter) { farter = false; fart(); } spac = Key.isDown(32) || Key.isDown(90) && !_root.so.data.frog; if (spac) { if (_root.notch || _root.bombnext) { if (!nosp) { nosp = true; _root.notch = false; _root.bombnext = false; } } } else { nosp = false; } if (trg.d._currentframe >= 3) { if (!_root.bombnext) { trg.fire = 5; } trg.xbew *= 0.8; trg.ybew *= 0.8; } else { if (Key.isDown(69)) { bomb(); } bomberfail -= 0.024; if (bomberfail > 0 && nextbo) { --bomberfail; lastbo = 0; bomb(2); nextbo = false; } if ((Key.isDown(81) && !_root.so.data.frog || Key.isDown(65) && _root.so.data.frog) && fra > 30 && _root.pilc != undefined) { _root.hud.pilll.gotoAndStop(3); player.d.gotoAndStop(11); player.it = 43; player.d.d.d.it.d.gotoAndStop(player.it); player.d.d.d.it.d.p.gotoAndStop(pic(_root.pilc)); if (_root.pilc >= 7) { tart(_root.pilc); switch (_root.pilc) { case 70: _root.keys = toot(_root.keys); break; case 71: _root.bombs = toot(_root.bombs); break; case 72: player.hp = toot(player.hp); break; case 73: _root.coins = toot(_root.coins); break; case 74: tar = 166; teller(); break; case 28: teller(); tar = _root.boner; _root.bona = true; break; case 27: _root.over.gotoAndStop(15); if (_root.hardmode) { player.hp += 7; } else { player.hp = 1000; } ups[54] = true; ups[21] = ups[54]; _root.world = true; _root.darks = false; mapd(); for (e in ball) { trg2 = ball[e]; hurt(trg2, 100); } break; case 26: curs(); ups[122] = 1.5; break; case 25: f1 = 0; f2 = 4; for (v3 in ball) { trg2 = ball[v3]; if (trg2.s > 9 && trg2.s != 45 || trg2 == player) { if (trg2.hp > f2 && trg2.pow != 1 && trg2.pow != 2) { f2 = trg2.hp; f1 = v3; } } } trg3 = ball[f1]; trg2 = create(trg3.xp, trg3.yp, 0, 0, 0, 0, 45); trg2.weap = true; trg2.ggh = true; trg2.d.gotoAndStop(20); trg2.trg2 = trg3; trg2.bh = false; trg2.fra = -100; trg2.specoz = undefined; trg2.eternal = false; trg2.boso = true; speco(trg2); break; case 20: spaw(player.xp, player.yp, 45, 5.01); spaw(player.xp, player.yp, 45, 5.02); spaw(player.xp, player.yp, 45, 5.03); spaw(player.xp, player.yp, 45, 5.04); break; case 19: ups[54] = true; ups[21] = ups[54]; _root.world = true; _root.darks = false; mapd(); break; case 18: f1 = 40; trg2 = spaw(player.xp + f1, player.yp, 0, 5.01); trg3 = spaw(player.xp - f1, player.yp, 0, 5.01); trg2.col = 1; trg3.col = 1; break; case 24: f1 = 40; trg2 = spaw(player.xp + f1, player.yp, 0, 5.01); trg3 = spaw(player.xp - f1, player.yp, 0, 5.01); trg2.col = 3; trg3.col = 3; break; case 17: player.it = 77; unic = 180; _root.mmus = _root.soundy('isaacunicorn.mp', 100); break; case 23: anarch = 30; break; case 21: spaw(player.xp, player.yp, 45, 5.31); _root.soundy('summonsound.wav', 120); break; case 22: teller(); tar = _root.bossl; break; case 16: spaw(player.xp, player.yp, 45, 5.32); _root.soundy('summonsound.wav', 120); break; case 7: spaw(player.xp, player.yp, 45, 5.08); _root.soundy('summonsound.wav', 120); break; case 8: doub = true; _root.over.gotoAndStop(2); _root.soundy('Devil_Card.mp', 100); break; case 9: _root.over.gotoAndStop(11); _root.soundy('Death_Card.mp', 100); for (e in ball) { trg2 = ball[e]; hurt(trg2, 60); } ++_root.so.data.dde; if (_root.so.data.dde > 4) { _root.locker[48] = true; } break; case 10: ++player.hp; ++ups[12]; break; case 11: teller(); tar = 35; break; case 12: ++ups[3]; if (random(2) == 0) { } ups[1] += 0.75; break; case 13: teller(); tar = _root.shopl; _root.shopa = true; break; case 14: teller(); tar = _root.hide; break; case 15: ++ups[20]; } } else { piller(); switch (Math.round(f1)) { case 14: if (f2) { ++_root.luck; st22('Luck Up'); goodpill(); emo(); pilcol(50, 100, 50); } else { st22('Luck Down'); --_root.luck; emo(true); } break; case 13: bluf += 3; st22('Friends till the end!'); break; case 6: if (player.hp + _root.armor > 1) { lasth = 0; playerhurt(1, 201); st22('Bad Trip!'); } else { case 1: if (_root.skiner == 4) { if (_root.armor < 3) { _root.armor = 3; } } else { if (player.mhp > 0) { if (_root.hardmode) { player.hp += 5; } else { player.hp = player.mhp; } } } if (_root.hardmode) { st22('Full Health?'); } else { st22('Full Health'); } goodpill(); emo(); break; case 2: if (random(2) == 0) { hat(54); st11('Puberty'); } else { _root.hmode = 16; st11('I found Pills'); st22('And ate them!'); _root.soundy('derp.mp'); } break; case 3: bomberfail = 5.5; st22('Oh no!'); emo(true); _root.soundy('fart.mp'); break; case 4: _root.armor += 2; st22('Balls of Steel'); goodpill(); emo(); break; case 5: _root.ups[10] += 0.5; ups[10] = _root.ups[10]; st22('Pretty Fly'); goodpill(); emo(); break; case 7: if (_root.skiner != 4) { f13 = player.mhp; } else { f13 = _root.armor; } if (f13 <= 1 || f2) { st22('Health Up'); if (_root.skiner == 4) { ++_root.armor; } else { ++_root.ups[15]; } pilcol(100, 50, 50); goodpill(); emo(); } else { if (_root.skiner == 4) { --_root.armor; } else { --_root.ups[15]; } st22('Health Down'); emo(true); } ups[15] = _root.ups[15]; break; case 8: f1 = _root.bombs; _root.bombs = _root.keys; _root.keys = f1; st22('Bombs are Key'); emo(); break; case 9: if (f2) { _root.ups[32] += 0.5; st22('Tears Up'); pilcol(80, 80, 100); goodpill(); emo(); } else { _root.ups[32] -= 0.4; st22('Tears Down'); emo(true); } ups[32] = _root.ups[32]; break; case 10: if (f2 || ups[6] && _root.chaps < 8) { _root.ups[31] += 0.5; st22('Range Up'); pilcol(50, 100, 100); emo(); goodpill(); } else { _root.ups[31] -= 0.4; st22('Range Down'); emo(true); } ups[31] = _root.ups[31]; break; case 11: if (f2) { ++_root.ups[27]; st22('Speed Up'); pilcol(100, 100, 50); goodpill(); emo(); } else { _root.ups[27] -= 0.8; st22('Speed Down'); emo(true); } ups[27] = _root.ups[27]; break; case 17: if (f2) { ++_root.ups[165]; st22('Shot Speed Up'); goodpill(); emo(); } else { pilcol(50, 50, 50); _root.ups[165] -= 1.4; st22('Shot Speed Down'); emo(true); } ups[165] = _root.ups[165]; break; case 12: fart(); st22('Bad Gas'); break; case 126: f1 = random(15); if (_root.chaps < 9) { if (f1 == 0) { tar = 169; } else { if (f1 == 0 && _root.chaps != 1) { tar = 166; } } } st22('TelePills'); teller(); } } } player.pilc = _root.pilc; _root.pilc = undefined; } spaceitem(); } f1 = _root.bmode; if (demon > 0 || ups[122]) { sk = 7; } else { sk = _root.sk; } if (ups[20]) { f1 = 3; trg.flyby = true; } if (ups[82]) { f1 = 9; trg.flyby = true; } if (bible || _root.etol || ups[179] || ups[184]) { f1 = 12; trg.flyby = true; } if (ups[185]) { f1 = 23; trg.flyby = true; } if (sk == 7) { if (trg.flyby) { f1 = 9; } else { f1 = 8; } } else { if (sk == 5) { _root.hmode = 25; _root.bmode = 13; } } if (_root.it == 8 && !ups[20]) { f1 = 2; } if (ups[159]) { f1 = 22; trg.flyby = true; } if (_root.it == 90 || _root.it == 141) { f1 = 16; trg.flyby = true; if (sk == 7) { f1 = 18; } else { if (sk == 5) { f1 = 17; } } } if (razor > 0 || ups[189]) { if (trg.flyby) { f1 = 3; } else { f1 = 27; } } if (purr) { f1 = 25; trg.flyby = true; } trg.d.bo.gotoAndStop(f1); if (enfget(trg.xbew, trg.ybew) < 2) { if (_root.it != 90 || fra < 3) { trg.d.bo.d.gotoAndStop(1); } } else { f1 = Math.abs(trg.xbew) > Math.abs(trg.ybew); if (_root.it == 9) { f1 = Math.abs(trg.xbew) * 0.5 > Math.abs(trg.ybew); } if (f1) { trg.d.bo.d.gotoAndStop(3); if (trg.xbew * trg.d.bo._xscale < -100) { trg.d.bo._xscale *= -1; } } else { if (_root.it == 90 || _root.it == 141) { if (trg.ybew > 0) { trg.d.bo.d.gotoAndStop(1); } else { trg.d.bo.d.gotoAndStop(2); } } else { trg.d.bo.d.gotoAndStop(2); } if (_root.it == 90 || _root.it == 141) { if (trg.xbew * trg.d.bo._xscale < -100) { trg.d.bo._xscale *= -1; } } } } if (_root.eto >= 7) { _root.etol = true; _root.locker[113] = true; _root.playcol[0] = 5; _root.playcol[1] = 5; _root.playcol[2] = 5; } dirkey(true); horss(true); if (xenf == 0) { lastx = fra; } if (yenf == 0) { lasty = fra; } if (md) { xenf = _xmouse - trg.xp; yenf = _ymouse - trg.yp + 10; if (Math.abs(xenf) < Math.abs(yenf)) { xenf = 0; } else { yenf = 0; } } if (ups[114]) { xxenf = xenf; yyenf = yenf; } if (nomove && !_root.bombnext && !chaf) { yenf = 0; xenf = 0; } if (bombdrop > 0) { drop.xbew *= 0.5; drop.ybew *= 0.5; if (!md) { drop.xbew += xenf * 8; drop.ybew += yenf * 8; } else { enfcheck(drop.xp, drop.yp, _xmouse, _ymouse, 10000); enf = (Math.min(enf / 3, 4) / enf) * 2; drop.xbew -= xenf * enf; drop.ybew -= yenf * enf; } yenf = 0; xenf = 0; } else { if (xenf != 0 && yenf != 0) { if (lasty > lastx) { xenf = 0; } else { yenf = 0; } } } v1 = plo; if (laser <= 1) { if (xenf != 0 || yenf != 0) { if (plox <= 8 && (!ups[118] || trg.fire <= 0 || chaf == undefined || _root.bombnext)) { if (Math.abs(xenf) > Math.abs(yenf)) { yenf = 0; if (xenf > 0) { xenf = 1; plo = 2; } else { plo = 4; xenf = -1; } } else { xenf = 0; if (yenf < 0) { plo = 3; yenf = -1; } else { yenf = 1; plo = 1; } } } if (laser == 1) { trg.xpp = xenf; trg.ypp = yenf; yenf = 0; xenf = 0; } ++laser; } } if (ups[68] && plox > 8) { plo = v1; } if (laser > 1) { trg.d.gotoAndStop(1); ++laser; trg.xbew *= 0.9; trg.ybew *= 0.9; if (laser > 21 && laser < 32 && fra % 3 != 0) { lasershow(trg); } if (laser > 40) { laser = undefined; } yenf = 0; xenf = 0; } if (ups[114] && !_root.bombnext) { if (knil == undefined) { knil = 23; knill = 0; knife.xppp = trg.xp; knife.yppp = trg.yp; knife.xbew = trg.xbew; knife.ybew = trg.ybew; } if (_root.knif == undefined) { _root.knif = 0; } if (ups[114]) { f1 = xxenf; f2 = yyenf; xxenf = xenf; yyenf = yenf; xenf = f1; yenf = f2; } else { xxenf = xenf; yyenf = yenf; } if (xenf != 0 || yenf != 0) { f1 = rotget2(xenf, yenf) + 180; _root.knir = f1; } else { f1 = _root.knir; } knife.dmg = dmgdo() * (2 + Math.min(Math.max(knill, 0), 4)); knil += knill; knill -= 1.4; f1 -= knife.d.z._rotation; f1 = absmax(rotrund(f1), Math.max(0, 40 - knil)); knife.d.z._rotation += f1 * 0.7; _root.knif *= 0.98; if (knil < 23) { knil = 23; if ((xenf != 0 || yenf != 0) && Math.abs(f1) < 5) { firr(trg); _root.knif += Math.max(0.2, Math.min(0.35, (0.2 / trg.fire) * 10)); } if (_root.knif > 0.35 && xenf == 0 && yenf == 0 && !kkk) { knill = Math.min(20, Math.max(10, _root.firrr * 0.51) * (0.3 + _root.knif * 0.2)); _root.knif = 0; } knife.xppp = trg.xp; knife.yppp = trg.yp; knife.xbew = trg.xbew; knife.ybew = trg.ybew; } else { if (knill < 0) { knife.xppp *= 0.5; knife.yppp *= 0.5; knife.xppp += trg.xp * 0.5; knife.yppp += trg.yp * 0.5; } else { knife.xppp *= 0.8; knife.yppp *= 0.8; knife.xppp += trg.xp * 0.2; knife.yppp += trg.yp * 0.2; } } f1 = (knife.d.z._rotation / 180) * Math.PI; if (knife.d.z._rotation < -90 || knife.d.z._rotation > 90) { knife.d.z._yscale = -100; } else { knife.d.z._yscale = 100; } if (fra > 3) { knife.xp = knife.xppp + Math.cos(f1) * knil; knife.yp = knife.yppp + Math.sin(f1) * knil * 0.8 - Math.cos(f1) * 3; knife.xppp += knife.xbew; knife.yppp += knife.ybew; knife.xbew *= 0.8; knife.ybew *= 0.8; } if (fra % 3 == 0) { knife.hh = []; } yenf = 0; xenf = 0; } if (ups[118] && trg.d.d.d.d._currentframe > 4) { trg.d.d.d.d.z.nextFrame(); if (trg.d.d.d.d.z._currentframe == 4 || trg.d.d.d.d.z._currentframe == 11) { brim = true; lasershow(trg); yenf = 0; xenf = 0; brim = false; } } f1 = _root.fmode; f2 = _root.hmode; nohat = false; if (doub) { f1 = 8; f2 = 8; } if (ups[3] && !_root.ups[3]) { f1 = 4; f2 = 4; } if (sk != 5 && ups[69]) { f2 = 17; } if (ups[122]) { f2 = 30; } else { if (sk == 7) { if (ups[159]) { f2 = 39; } else { if (ups[80]) { f2 = 20; } else { f2 = 22; } } } } if (ups[149]) { f2 = 36; } if (razor > 0) { f2 = 29; } if (ups[189]) { f2 = 42; } if (purr) { f2 = 43; } if (demon > 0) { f2 = 21; } if (ups[68]) { if (sk == 5) { f2 = 28; } else { if (sk == 7) { f2 = 27; } else { f2 = 10; } } f1 = 12; } if (ups[118]) { f2 = 31; } if (laser) { f2 = 14; } if (unic > 0) { if (pacman) { f2 = 23; } else { f2 = 19; } nohat = true; } facer = f2; if (trg.d._currentframe == 1 || _root.bombnext) { _root.hud.weap.gotoAndStop(f1); if (Math.abs(xenf) < 0.5 && Math.abs(yenf) < 0.5 && !kkk && (ups[69] || ups[118]) && !_root.bombnext) { if (chaf > -1000 && Math.abs(chax) + Math.abs(chay) > 0) { if (chaaf > 4.7 || ups[69]) { chaz = true; xenf = chax; yenf = chay; } else { chay = 0; chax = 0; chaf = undefined; plo = 1; } } } if (pacman) { if (trg.d.d.d.d._xscale * trg.xbew < -300) { trg.d.d.d.d._xscale *= -1; if (trg.d.d.d.d._xscale < 0) { trg.d.d.d.d._x = 40.7; } else { trg.d.d.d.d._x = 0; } } } else { if (pacoo) { pacoo = false; trg.d.d.d.d._xscale = 100; trg.d.d.d.d._x = plxx; } else { plxx = trg.d.d.d.d._x; } if (Math.abs(xenf) > 0.5 || Math.abs(yenf) > 0.5 || ups[114] && (xxenf != 0 || yyenf != 0)) { plff(); } else { if (plox < 0 && laser <= 1 && !ups[118]) { plo = 1; } if (!ups[118] || trg.fire < 4) { trg.d.d.d.d.gotoAndStop(plo); } } } if (trg.d._currentframe == 1) { if (laser > 1) { trg.d.d.d.d.d.gotoAndStop(laser); } if (chaaf > 0) { trg.d.d.d.d.gotoAndStop(plo); if (trg.d.d.d.d._currentframe < 5) { trg.d.d.d.d.d.gotoAndStop(chaaf); } } else { if (_root.hmode == 17 || ups[118]) { if (plox > 8) { trg.d.d.d.d.gotoAndStop(plo + 4); } } } if (ups[68]) { ups[103] = _root.ups[103]; if (trixx(30)) { if (random(10) == 0) { ups[103] = 0; } } trg2 = player.d.d.d.d.l; if (ups[115]) { colorit(trg2, 1.5, 2, 2, 0, 0, 0); trg2._alpha = 50; } else { if (ups[103]) { colorit(trg2, 0.4, 0.97, 0.5, 0, 150, 0); } else { if (ups[104]) { colorit(trg2, 1, 0.4, 0.13, 30, 0, 0); } else { if (ups[89]) { colorit(trg2, 3, 3, 3, 150, 150, 150); } else { if (ups[90]) { colorit(trg2, 0.4, 0.4, 0.4, 100, 100, 100); } else { if (ups[69]) { colorit(trg2, 0.33, 0.18, 0.18, 66, 40, 40); } else { if (ups[6]) { colorit(trg2, 0.2, 1, 0, 255, 255, 0); } else { if (ups[3]) { colorit(trg2, 0.4, 0.15, 0.38, 90, 0, 180); } } } } } } } } if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { f1 = (lass / trg.d.d._xscale / trg._xscale) * 10000 + (trg2._x - 6) * trg.xpp; } else { f1 = (lass / trg.d.d._xscale / trg._xscale) * 10000 + (trg2._y + 20) * trg.ypp; } trg2._yscale = f1; trg2._xscale = lassd * 30; trg2._x -= trg.xp - lasx; trg2._y -= trg.yp - lasy; lasx = trg.xp; lasy = trg.yp; } } } chaaf = 0; --plox; --plox1; --trg.fire; --trg.fire1; dirkey(false); if (horse > 0) { if (horse == 100) { horss(); } else { --horse; xenf = horsx * 4.5; yenf = horsy * 4.5; trg.xbew *= 0.7; trg.ybew *= 0.7; if (horse % 6 < 3) { colorit(player, 1.2, 1.2, 1.2, 55, 55, 55); } } hhorse = 10; } else { if (horse == undefined) { --hhorse; } else { horse = undefined; } } f1 = 100 + (ups[12] - ups[71] + ups[122]) * 25; if (demon > 0) { f1 += 25; } if (ups[157]) { f1 += (rag - 1) * 14; } trg._yscale = f1; trg._xscale = trg._yscale; if (trg.d._currentframe == 1) { f1 = 100 + (ups[121] - ups[120]) * 20; trg.d.d._yscale = f1; trg.d.d._xscale = trg.d.d._yscale; } f10 = [0, -0.15, 0.3, 0, 0.1, 0.23, 0.1]; f1 = 1; _root.playsp = 1 + Math.min(1, (ups[119] + ups[27] + ups[28] + ups[12] + ups[71] + ups[101] + ups[122] + ups[120] + ups[143] + ups[189]) * 0.3 + Math.min(1, ups[14]) * 0.6 - Math.min(1, ups[13] + ups[121]) * 0.1 + f10[_root.skiner] + ups[70] * 0.4 + ups[79] * 0.2 + ups[82] * 0.3) - (ups[90] + ups[129] + ups[118] + ups[182]) * 0.2; if (_root.it == 16) { _root.playersp += 0.4; } if (unic > 0) { _root.playsp += 0.28; } if (trixx(37)) { _root.playsp += 0.15; } if (demon > 0) { _root.playsp -= 0.18; } if (_root.it == 90 || _root.it == 141) { _root.playsp = Math.max(1.5, _root.playsp); } f1 = _root.playsp; xenf *= 0.75 + f1 * 0.25; yenf *= 0.75 + f1 * 0.25; nomove = trg.d._currentframe >= 3 && trg.d._currentframe < 9 && (trg.d._currentframe != 4 || trg.d.d.d._currentframe < 38) || fra < 20; if (trg.d._currentframe == 4) { if (xenf != 0 || yenf != 0) { if (trg.d.d.d._currentframe > 11 && trg.d.d.d._currentframe < 35) { trg.d.d.d.gotoAndPlay(35); } } } if (trg.d._currentframe == 9 || trg.d._currentframe == 10) { if (xenf != 0 || yenf != 0) { trg.d.d.d.gotoAndPlay(trg.d.d.d._totalframes - 1); } } if (nomove) { yenf = 0; xenf = 0; } if (xenf == 0) { lastxx = fra; } if (yenf == 0) { lastxy = fra; } if (trg.ghhh) { if (xenf != 0 && yenf != 0) { if (lastxy > lastxx) { xenf = 0; } else { yenf = 0; } } } else { if (xenf != 0 && yenf != 0) { xenf /= Math.SQRT2; yenf /= Math.SQRT2; } } trg.ghhh = false; v1 = 0; if (xenf != 0 && yenf == 0) { v1 = Math.abs(trg.ybew); trg.ybew *= 0.5; } else { if (yenf != 0 && xenf == 0) { v1 = Math.abs(trg.xbew); trg.xbew *= 0.5; } } v1 *= 0.3; v2 = xenf * trg.xbew + trg.ybew * yenf; v1 = v1 * 0.1 + Math.max(0, v2 * 0.2); v1 = 3 + v1 / _root.playsp; v1 *= 0.8; trg.xbew -= xenf * v1; trg.ybew -= yenf * v1; trg.xbew *= 0.7 + _root.playsp * 0.075; trg.ybew *= 0.7 + _root.playsp * 0.075; } laps(); } function posw(f1, f2, f3, b2) { var v1 = -100; var v2 = -100; var v7 = true; for (;;) { if (!(mhit(v1, v2) || levzz(ingrid(v1, v2)) >= 0.2)) break; v7 = true; if (f3 > 500) { f3 = 0; } f3 += 5; v1 = f1 + crand(f3); v2 = f2 + crand(); if (trg.s == 101 || b2) { var v3 = 0; while (v3 < ball.length) { var v5 = ball[v3]; var v6 = 50; if (v5 == player && b2) { v6 = 150; } if (enfcheck(v1, v2, v5.xp, v5.yp, v6) > 0) { v7 = false; v1 = -100; v2 = -100; } ++v3; } } if (v7) { outgrid(ingrid(v1, v2)); v1 = xenf; v2 = yenf; if (random(100) != 0) { for (z in ball) { var v4 = ball[z]; if (v4.s == 5) { if (Math.abs(v4.xp - v1) < 20) { if (Math.abs(v4.yp - v2) < 20) { v1 = -100; } } } } } } } } function spaw(f1, f2, f3, f0) { posw(f1, f2, f3, f0 > 9 && _root.lev == _root.chamb); levz[ingrid(xenf, yenf)] = 0.9; if (spispaw) { xenf += crand(random(10)); yenf += crand(); } return create(xenf, yenf, 0, 0, 0, 0, f0); } function scerf() { if (bgg2 == undefined) { trg = createEmptyMovieClip('bggg2', 35670000); bgg2 = new flash.display.BitmapData(gridxs, gridys - f1, true, 0); trg.attachBitmap(bgg2, 1); trg._xscale = 100 / hdx; trg._yscale = trg._xscale; maxx = new flash.geom.Matrix(); maxx.scale(hdx, hdx); bgg2.draw(this, maxx); } } function dirkey(f1) { enf = 0; yenf = 0; xenf = 0; kkk = false; if (_root.so.data.left) { f1 = !f1; } if (!f1) { if (_root.so.data.frog) { if (Key.isDown(81)) { kkk = true; ++xenf; } if (Key.isDown(90)) { kkk = true; ++yenf; } } else { if (Key.isDown(65)) { kkk = true; ++xenf; } if (Key.isDown(87)) { kkk = true; ++yenf; } } if (Key.isDown(68)) { kkk = true; --xenf; } if (Key.isDown(83)) { kkk = true; --yenf; } } else { if (Key.isDown(39)) { kkk = true; ++xenf; } if (Key.isDown(37)) { kkk = true; --xenf; } if (Key.isDown(38)) { kkk = true; --yenf; } if (Key.isDown(40)) { kkk = true; ++yenf; } } if (_root.so.data.left) { xenf *= -1; yenf *= -1; } } function xox(f3) { return random(7) == 0 || f3 && random(2) == 0; } function trixies(f3) { if (trixx(34) || trixx(36) || trixx(41) || trixx(44) || trixx(45)) { if (xox(f3) && trixx(45)) { f2 = 5.3; } else { if (xox(f3) && trixx(44)) { f2 = 5.07; } else { if (xox(f3) && trixx(41)) { f2 = 5.04; } else { if ((xox(f3) || random(17) == 0 && !f3) && trixx(36)) { if (random(2) == 0) { f2 = 5.06; } else { f2 = 5.03; } } else { if (xox(f3) && trixx(34)) { f2 = 5.01; } } } } } } } function picc(f2) { if (random(2) == 0) { _root.picers[random(6)] = f2; } } function pic(f1) { if (f1 < 7) { f1 = _root.picers[f1 - 1]; } return f1; } function cspawn(f0, f12) { i = 0; while (i < f12) { f13 = 0; while (f13++ < 10) { xenf = crand(5); yenf = crand(5); if (_root.lev == _root.chamb) { xenf *= 0.4; yenf *= 0.4; } if (linecheckx(chestox, chestoy, trg.xp + xenf * 7, trg.yp + yenf * 7)) { f13 = 1000; } } if (f0 == 5.05 || f0 == 5.06) { xenf = 0; yenf = 0; if (trg != 2) { chestoy += 10; } } var v2 = create(chestox, chestoy, 0, xenf, yenf, 0, f0); v2.alt = true; if (f0 == 5.1) { v2.fra -= 15; trg.done = true; if (trg == 2 && _root.locker[18] && !ups[90]) { v2.alt = false; v2.it = 90; } } if (f0 == 5 && trg == 2) { v2.col = 3; } if (f0 == 5.05 || f0 == 5.06) { if (trg != 2) { v2._xscale = trg._xscale * 0.8; v2._yscale = v2._xscale; } } if (f10 < 0) { break; } ++i; } } function onEnterFrame() { _root.tex = ''; for (e in shiz) { trg = shiz[e]; if (trg.fra < fra) { trg.gotoAndStop(6); levz[trg.til] = 1.5; shiz.splice(e, 1); } } if (bluf == undefined) { bluf = _root.bluf; } if (fra == 14 && curss) { st11(curss); } if (ups[114]) { ups[118] = 0; ups[69] = 0; } if (playfirst) { player.d.gotoAndStop(1); playfirst = false; } _root.chaf = chaf != undefined; if (player.dones) { if (gameover == 2) { ++_root.so.data.deads; if (_root.so.data.deads >= 100) { _root.locker[39] = true; } } if (gameover > 1) { if (!_root.ups[11] && _root.ups[81] <= 0 && !_root.ups[161]) { if (!_root.dmusic) { _root.dmusic = true; _root.fade = true; } } if (_root.prsk) { _root.sk = _root.prsk; _root.skiner = _root.prsk2; _root.prsk = undefined; _root.prsk2 = undefined; } } if (gameover++ > 50) { if (_root.ups[11] || _root.ups[81] > 0 || _root.ups[161]) { _root.armor = 0; if (ashut > 0) { _root.beenlev[_root.lev] = false; } else { if (_root.bossl == _root.lev || _root.bossl2 == _root.lev) { if (!nobob) { bosssp(); killa = true; if (_root.lev == _root.bossl2 && _root.double) { _root.bosss = _root.bosss2; } } } } _root.shroom = true; if (!_root.ups[11]) { if (_root.skiner == 4) { _root.armor = 1; _root.ups[23] += -player.mhp; } else { _root.ups[23] += 1 - player.mhp; } if (!_root.ups[161]) { _root.shroom = 2; --_root.ups[81]; } else { _root.shroom = 4; _root.ups[161] = 0; if (_root.skiner != 4) { --_root.ups[23]; hat(31); _root.prsk = _root.sk; _root.prsk2 = _root.skiner; _root.skiner = 4; _root.sk = 5; } _root.armor = 3; } } else { if (_root.skiner == 4) { _root.armor = 3; } } _root.ups[11] = 0; _root.door = _root.door * 1 + 2; if (_root.door >= 4) { _root.door -= 4; } _root.playerx = 320; _root.playery = 400; invp(); _root.old.fillRect(_root.old.rectangle, 0); _root.old.draw(this); _root.olda._x = 0; _root.olda._y = 0; _root.olda._visible = true; _root.lev = _root.lastl; if (_root.lev <= 0) { _root.lev = 35; _root.lastl = 35; } _root.hp = 1000; _root.getup = true; moveon(); _root.gotoAndStop('reset'); } else { _root.map.fillRect(_root.map.rectangle, 0); _root.hud.paus.gotoAndStop(3); if (lastk <= 0) { lastk = 1; } _root.hud.paus.kill.gotoAndStop(Math.round(lastk)); _root.hud.paus.nam.gotoAndStop(Math.max(1, _root.skiner)); _root.hud.paus.loco.gotoAndStop(Math.max(1, _root.chaps)); onEnterFrame = undefined; } } } if (_root.catlives + ups[145] + ups[134] + ups[133] + ups[187] > 2) { _root.locker[85] = true; purr = true; } player.d.bub2._visible = ups[108] || ups[162] || ups[173] || ups[142] || ups[184]; if (ups[184]) { player.d.bub2.gotoAndStop(5); } else { if (ups[142]) { player.d.bub2.gotoAndStop(2); } else { if (ups[173]) { player.d.bub2.gotoAndStop(3); } else { if (ups[108]) { player.d.bub2.gotoAndStop(1); } else { player.d.bub2.gotoAndStop(4); } } } } player.d.bub._visible = playsave > 0; if (player.d.bub._visible) { if (playsave < 50) { if (playsave % 5 == 0) { co = !co; if (co) { player.d.bub._alpha = 100; } else { player.d.bub._alpha = 0; } } } } if (fra == telf) { _root.door = undefined; _root.soundy('hell_portal1.wav'); if (shutdoor != 0) { _root.beenlev[_root.lev] = false; } invp(); _root.old.fillRect(_root.old.rectangle, 0); _root.old.draw(this); _root.olda._x = 0; _root.olda._y = 0; _root.olda._visible = true; moveon(); if (tar && (tar != 166 && tar != 169 || _root.chaps < 9)) { _root.lev = tar; } else { for (;;) { if (!(_root.lev == _root.lastl || !_root.levz[_root.lev] || _root.lev > 150)) break; _root.lev = random(_root.levz.length) + 1; } } if (_root.lev == _root.bossl && _root.double && _root.bosss != _root.bosss2) { _root.lev = _root.bossl2; } _root.tell = true; _root.door = undefined; _root.lastl = undefined; _root.gotoAndStop('reset'); } if (fra % 3 == 0) { for (e in bomf) { bombfail(bomf[e][0], bomf[e][1], bomf[e][2], bomf[e][3]); } bomf = []; } if (ups[144] && !bumz) { bumz = true; trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg2.bum = true; trg2.flyby = true; } if (ups[114] && knife == undefined && player.d._currentframe < 3) { trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 2); knife = trg; attach(trg, 501); trg.dy = undefined; trg.knife = true; } if (ups[81] && !cats && player.d._currentframe < 3) { cats = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.cat = true; } if (ups[11] && !catss && player.d._currentframe < 3) { catss = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.cat = 2; } if (ups[94] && !monb && player.d._currentframe < 3) { monb = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.mon = 1; } if (ups[96] && !monb2 && player.d._currentframe < 3) { monb2 = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.mon = 2; } if (ups[98] && !monb3 && player.d._currentframe < 3) { monb3 = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.mon = 3; } if (ups[131] && !monb4 && player.d._currentframe < 3) { monb4 = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.mon = 4; } if (ups[73] && !meats && player.d._currentframe < 3) { meats = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.meat = true; if (ups[73] < 3) { trg.hpo = 5; } } if (ups[73] > 4 && !meats2 && player.d._currentframe < 3) { meats2 = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.meat = true; trg.me2 = true; } if (Math.min(2, ups[112]) > flyby4 && player.d._currentframe < 3) { ++flyby4; trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg2.ang = true; trg2.hpo = 20; } for (;;) { if (!(Math.min(3, ups[8] + ups[67] + ups[95] + ups[99] + ups[100] + ups[113] + ups[163] + ups[167] + ups[174] + ups[188]) > minions && player.d._currentframe < 3)) break; ++minions; create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); } if (ups[155] && player.d._currentframe < 3 && !eyepie) { eyepie = true; trg2 = create(player.xp, player.yp - 10, 0, crand(10), crand(10), 0, 3); trg2.eye = true; } if (ups[187] && player.d._currentframe < 3 && !hairb) { hairb = true; trg2 = create(player.xp, player.yp - 10, 0, crand(10), crand(10), 0, 3); trg2.hairb = true; } if (ups[178] && player.d._currentframe < 3 && !holp) { holp = true; trg2 = create(player.xp, player.yp - 10, 0, crand(10), crand(10), 0, 3); trg2.hol = true; holz = trg2; } if (ups[172] && player.d._currentframe < 3 && !knip) { knip = true; trg2 = create(player.xp, player.yp - 10, 0, crand(10), crand(10), 0, 3); trg2.ni = true; } if (ups[117] == 0.55) { ups[117] = 0; trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg2.bird = true; } if (dbird == 2) { dbird = 1; trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg2.bird = 2; } if (trixx(57) && ggho == undefined && player.d._currentframe < 3) { trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); ggho = trg2; trg2.ggho = true; } if (!trixx(57) && ggho) { ggho.done = true; ggho = undefined; } if (trixx(54) && ggho2 == undefined && player.d._currentframe < 3) { trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); ggho2 = trg2; trg2.ggho = 2; } if (!trixx(54) && ggho2) { ggho2.done = true; ggho2 = undefined; } if (ups[170] && !dad) { dad = true; trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg2.dad = true; trg2.d.gotoAndStop(151); trg2.d.d.gotoAndStop(1); } if (bodd && player.d._currentframe < 3) { bodd = false; trg2 = spaw(trg.xp, trg.yp, 0, 3); trg2.meat = 5; colorit(trg2, _root.playcol[0], _root.playcol[1], _root.playcol[2], 0, 0, 0); } if (Math.min(3, ups[10] * 2) > flyby && player.d._currentframe < 3) { ++flyby; trg = create(player.xp, player.yp, 0, 0, 0, 0, 3); trg.fly = true; trg.hpo = 2 + ups[9] * 5; } if (Math.min(1, ups[57]) > flyby2 && player.d._currentframe < 3) { ++flyby2; trg = create(player.xp, player.yp, 0, 0, 0, 0, 3); trg.fly = true; trg.alt = true; } if (Math.min(1, ups[128]) > flyby3 && player.d._currentframe < 3) { ++flyby3; trg = create(player.xp, player.yp, 0, 0, 0, 0, 3); trg.fly = true; trg.alt = 2; } if (ups[88] && !magsss && player.d._currentframe < 3) { magsss = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.maga = true; } if (bluf > 0) { if (player.d._currentframe < 3) { --bluf; trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg2.bluf = true; trg2.fly = true; if (blufer != undefined) { trg2.trg2 = blufer; trg2.xbew += crand(10); trg2.ybew += crand(10); } } } else { bluf = 0; } ablufer = blufer; blufer = undefined; gibb += ball.length * 0.1 - 0.4; gibb *= 0.9; for (e in door) { trg = door[e]; if ((trg._visible || trg.govo) && levz[trg.blo] == 0 && (justnow < 10 || trg.hide || trg.hide2)) { trg.blown = true; trg._visible = true; if (trg.hide || trg.hide2) { if (trg.hide2) { hider2(); } else { hider(); } trg.gotoAndStop(17); mapd(); } else { if (!keyo) { if (mom.length > 4 || _root.lev == _root.minb) { levz[trg.blo] = 1; trg.blown = false; } else { trg.gotoAndStop(5); } } } } if (trg.blown && levz[trg.blo] < 1) { levz[trg.blo] = 0.9; } } if (ups[75] && random(150) == 0) { piller(); } f1 = _root.it; if (f1 < 1) { f1 = 'empty'; _root.itc = 1; _root.hud.it.gotoAndStop(7); _root.hud.it.d.gotoAndStop(20); } f10 = [3, 4, 2, 1, 3, 2, 1]; if (_root.hardmode) { f11 = 16; } else { f11 = 12; } if (_root.skiner == 4) { f11 = 0; } player.mhp = f10[_root.skiner] + ups[22] + ups[23] + ups[121] + ups[24] + ups[25] + ups[26] + ups[12] + ups[101] + ups[15] + ups[92] + ups[119] + ups[16] * 2 + ups[129] * 2 + ups[176] + ups[184] + ups[193] + ups[189] + ups[138]; if (player.mhp > f11) { if (ups[22] == _root.ups[22]) { --_root.ups[22]; ups[22] = _root.ups[22]; ++_root.armor; } player.mhp = f11; } if (player.mhp >= 7) { _root.locker[1] = true; } if (player.hp > mhpp) { if (fra > 10) { if (player.hp - mhpp > 0.55) { red = 7; } else { red = 4; } } } mhpp = player.hp; if (_root.armor > ahpp) { if (fra > 10) { blue = 7; } } if (player.hp > 0) { player.hp = Math.max(0.5, Math.min(player.mhp, player.hp)); } if (_root.itc >= 0.9) { _root.itc = 1; if (_root.hud.it._currentframe <= 14) { _root.hud.it.nextFrame(); } else { if (itb-- < 0) { _root.hud.it.gotoAndStop(15); } } } else { if (itb-- > 0) { _root.hud.it.gotoAndStop(16); } else { hudder = _root.hud.it._currentframe; _root.hud.it.gotoAndStop(Math.round(_root.itc * 6 - 0.5) + 1); } } _root.hud.extra2._visible = _root.trix != undefined; if (_root.hud.extra2._visible) { _root.hud.extra2.d.gotoAndStop(11); _root.hud.extra2.d.p.gotoAndStop(_root.trix); _root.hud.tex2 = _root.trixer; f11 = _root.hud.tex2.split(''); _root.hud.black._xscale = f11.length * 7 + 20; _root.hud.extra2.d._alpha = 100; if (_root.hud.plix._currentframe > 2) { _root.hud.plix.gotoAndStop(1); } } else { if (_root.hud.plix._currentframe < 3) { _root.hud.plix.gotoAndStop(4); } _root.hud.extra2.d._alpha = 0; _root.hud.tex2 = ''; _root.hud.black._xscale = 0.1; } _root.hud.extra3._visible = _root.atrix != undefined; if (_root.hud.extra3._visible) { _root.hud.extra3.d.gotoAndStop(11); _root.hud.extra3.d.p.gotoAndStop(_root.atrix); _root.hud.tex3 = _root.atrixer; f11 = _root.hud.tex3.split(''); _root.hud.black2._xscale = f11.length * 7 + 20; _root.hud.extra3.d._alpha = 100; if (_root.hud.plix2._currentframe > 2) { _root.hud.plix2.gotoAndStop(1); } } else { if (_root.hud.plix2._currentframe < 3) { _root.hud.plix2.gotoAndStop(4); } _root.hud.extra3.d._alpha = 0; _root.hud.tex3 = ''; _root.hud.black2._xscale = 0.1; } _root.hud.extra._visible = _root.pilc != undefined; if (_root.hud.extra._visible) { f1 = _root.it; _root.hud.extra.d.gotoAndStop(11); _root.hud.extra.d.p.gotoAndStop(pic(_root.pilc)); if (_root.pilc > 6) { _root.hud.pilll.tex = tart(_root.pilc, true); } else { f10 = !ups[46] && !ups[75]; f11 = Math.round(_root.piller[_root.pilc]); if (f11 != _root.piller[_root.pilc]) { f2 = true; } else { f2 = false; } if (!f10) { f2 = true; } if (!_root.piller[_root.pilc]) { f11 = '???'; } else { switch (Math.round(f11)) { case 14: if (f2) { f11 = 'Luck Up'; } else { f11 = 'Luck Down'; } break; case 13: f11 = 'Friends till the end!'; break; case 6: if (player.hp + _root.armor > 1) { f11 = 'Bad Trip!'; } else { case 1: if (_root.hardmode) { f11 = 'Full Health?'; } else { f11 = 'Full Health'; } break; case 2: f11 = 'I found Pills'; break; case 3: f11 = 'Explosive Diarrhea!'; break; case 4: f11 = 'Balls of Steel'; break; case 5: f11 = 'Pretty Fly'; break; case 7: if (_root.skiner != 4) { f13 = player.mhp; } else { f13 = _root.armor; } if (f13 <= 1 || f2) { f11 = 'Health Up'; } else { f11 = 'Health Down'; } break; case 8: f11 = 'Bombs are Key'; break; case 9: if (f2) { f11 = 'Tears Up'; } else { f11 = 'Tears Down'; } break; case 10: if (f2 || ups[6] && _root.chaps < 8) { f11 = 'Range Up'; } else { f11 = 'Range Down'; } break; case 11: if (f2) { f11 = 'Speed Up'; } else { f11 = 'Speed Down'; } break; case 17: if (f2) { f11 = 'Shot Speed Up'; } else { f11 = 'Shot Speed Down'; } break; case 12: f11 = 'Bad Gas'; break; case 126: f11 = 'TelePills'; } } } _root.hud.pilll.tex = f11; } f11 = _root.hud.pilll.tex.split(''); _root.hud.pilll.black._xscale = f11.length * 7 + 20; _root.hud.extra.d._alpha = 100; if (_root.hud.pilll._currentframe > 2) { _root.hud.pilll.gotoAndStop(1); } } else { if (_root.hud.pilll._currentframe < 3) { _root.hud.pilll.gotoAndStop(4); } _root.hud.it.d._alpha = 100; } if (_root.kep) { _root.hud.kep.gotoAndStop(2); } else { _root.hud.kep.gotoAndStop(1); } if (f1 > 0 || f1 == 'empty') { _root.hud.it.d.gotoAndStop(f1); } _root.keys = Math.min(99, _root.keys); _root.coins = Math.min(99, _root.coins); _root.bombs = Math.min(99, _root.bombs); if (_root.coins >= 55) { _root.locker[2] = true; } _root.hud.coins = _root.coins; _root.hud.bombs = _root.bombs; _root.hud.keys = _root.keys; f1 = 1; if (ups[11]) { ++f1; } if (ups[81]) { f1 += ups[81]; } if (f1 > 1) { _root.hud.ups = 'x' + f1; } else { _root.hud.ups = ''; } _root.hud.chaps = levn[_root.chaps]; if (_root.altchap) { _root.hud.chaps = levn2[_root.chaps]; } if (_root.double) { _root.hud.chaps = (_root.hud.chaps.split(' 2')).join(''); _root.hud.chaps += ' XL'; } f11 = _root.hud.chaps.split(''); _root.hud.boxx._xscale = f11.length * 8.6 + 15.3; if (_root.hud.keys < 10) { _root.hud.keys = '0' + _root.hud.keys; } if (_root.hud.bombs < 10) { _root.hud.bombs = '0' + _root.hud.bombs; } if (_root.hud.coins < 10) { _root.hud.coins = '0' + _root.hud.coins; } _root.mhp = player.mhp; _root.hp = player.hp; if (fra % 7 == 0) { if (blackout == 2) { bloc = new flash.geom.ColorTransform(); bloc.redMultiplier = 0; bloc.greenMultiplier = 0; bloc.blueMultiplier = 0; } else { if (blackout) { bloc = new flash.geom.ColorTransform(); bloc.redMultiplier = 0.15 + Math.random() * 0.15; bloc.greenMultiplier = 0.15 + Math.random() * 0.15; bloc.blueMultiplier = 0.15 + Math.random() * 0.15; } else { bloc = new flash.geom.ColorTransform(); bloc.redMultiplier = 0.85 + Math.random() * 0.15; bloc.greenMultiplier = 0.85 + Math.random() * 0.15; bloc.blueMultiplier = 0.85 + Math.random() * 0.15; } } } trg = _root.hud.lif; f1 = _root.armor; f2 = red-- > 0; f3 = blue-- > 0; ahpp = _root.armor; if (_root.eta) { ++f1; ++ahpp; f4 = true; } else { f4 = false; } f0 = player.mhp + f1; if (f0 < 12.5) { f0 = 12; trg.gotoAndStop(1); } else { if (f0 < 24.5) { f0 = 24; trg.gotoAndStop(2); } else { f0 = 48; trg.gotoAndStop(3); } } e = 0; while (e < f0) { trg2 = trg['h' + e]; if (e > 2) { trg2.cacheAsBitmap = true; } if (e >= player.mhp) { if (f1-- > 0) { trg2._visible = true; if (f4) { f4 = false; trg2.gotoAndStop(8); } else { if (f1 > -0.5) { trg2.gotoAndStop(5); } else { trg2.gotoAndStop(6); } } if (f3) { colorit(trg2, 1.6, 1.6, 2, 20, 20, 60); } else { colorit(trg2, 1, 1, 1, 0, 0, 0); } } else { trg2._visible = false; } } else { trg2._visible = true; trg2.gotoAndStop(Math.max(1, Math.min(3, (e - player.hp) * 2 + 3))); if (f2 && trg2._currentframe != 3) { colorit(trg2, 2, 1.6, 1.6, 100, 0, 0); } else { colorit(trg2, 1, 1, 1, 0, 0, 0); } } ++e; } trg2 = trg.h0; if (!f2) { if (player.hp < 1 && player.mhp >= 1) { if (fra % 10 == 0) { if (fra % 20 == 0) { colorit(trg2, 2, 1.6, 1.6, 100, 0, 0); } else { colorit(trg2, 1, 1, 1, 0, 0, 0); } } } else { colorit(trg2, 1, 1, 1, 0, 0, 0); } } if (enfget(_x, _y) < 2) { _root.olda._visible = false; _y = 0; _x = 0; } else { if (_root.door != undefined) { v1 = 0.5 + Math.min(enfget(_x, _y) * 0.004, 0.22); _x = _x * v1; _y = _y * v1; _root.olda._x = _x - olfx; _root.olda._y = _y - olfy; _root.olda._visible = true; } } f1 = 40; if (olfy > 0) { _root.olda._y += f1; } else { if (olfy < 0) { _root.olda._y -= f1; } } if (Key.isDown(82)) { if (resee++ > 30) { _root.fade = true; newstart(true); } } else { resee = 0; } if (Key.isDown(78)) { } if (Key.isDown(79)) { unpause = false; _root.hud.paus.gotoAndStop(5); } if (Key.isDown(73)) { } nogridyet = true; if (!sadfa) { sadfa = true; if (_root.lev == 80) { boss.swapDepths(1002088); for (e in levz) { outgrid(e); if (xenf > 440) { levz[e] = 1; } } } golev(); _root.black.prevFrame(); mapd(); } else { _root.fullhp = player.hp + _root.armor >= player.mhp; if (chama) { f1 = (_root.chama || (_root.fullhp && !_root.altch || _root.altch && player.hp < 1.5 || _root.altch == 2 || _root.lev == _root.chamb) && chama == 1) && shutdoor == 0 || keyd; for (e in door) { trg = door[e]; if (trg.chamb) { if (!f1) { v1 = trg.blo; levz[v1] = 2; clevc[v1] = 2; trg.gotoAndStop(26); } else { v1 = trg.blo; levz[v1] = 0; clevc[v1] = 0; if (trg._currentframe != 27 && trg._currentframe != 25) { trg.gotoAndStop(25); } } } } if (chama > 1 && !_root.chama) { if (!_root.amusic) { _root.amusic = true; _root.fade = true; _root.mmus.dones = true; } if (shutdoor == 0) { if (chamb == 3) { if (_root.altch == 2) { if (!souldrop) { souldrop = true; f1 = 40; trg2 = spaw(player.xp + f1, player.yp, 0, 5.01); trg3 = spaw(player.xp - f1, player.yp, 0, 5.01); trg2.col = 3; if (_root.chaps > 4) { trg2 = spaw(player.xp, player.yp, 40, 5.01); trg2.col = 1; } } } } if (chamb++ > 50) { mhelps = 0; f1 = _root.switchero; if (_root.chaps % 2 == 1) { f1 = !f1; } if (_root.altch) { if (_root.altch == 2) { hitc = 0; bossheart = false; allets = true; if (_root.chaps < 3) { if (f1) { f0 = [62.1, 1, 63, 1, 38.3, 2]; } else { f0 = [20, 1, 79, 1, 16.3, 3]; } } else { if (_root.chaps < 5) { if (random(3) == 0 && chama == 1 && _root.noff != -1 || _root.noff == _root.chaps) { _root.noff = _root.chaps; f0 = [71, 1, 49, 2]; } else { if (f1) { f0 = [23, 4, 68, 1, 26, 3]; _root.noff = -1; } else { f0 = [31, 5, 64, 1, 27, 3]; _root.noff = -1; } } } else { if (_root.chaps < 7) { if (_root.chaps == 6 && random(3) != 0 && _root.noff2 != -1 || _root.noff2 == _root.chaps) { _root.noff2 = _root.chaps; f0 = [58, 2, 49, 1, 98, 2]; } else { if (f1) { f0 = [65, 1, 39, 5]; _root.noff2 = -1; } else { f0 = [69, 1, 43, 1]; _root.noff2 = -1; } } } else { if (_root.chaps == 8 && random(3) != 0 && _root.noff3 != -1 || _root.noff3 == _root.chaps) { _root.noff3 = _root.chaps; f0 = [48.1, 1, 99.09999999999999, 1, 38, 7]; } else { if (f1) { f0 = [19, 3, 68.09999999999999, 1, 40, 3]; _root.noff3 = -1; } else { f0 = [57, 1, 51, 2, 41, 4]; _root.noff3 = -1; } } } } } } else { if (_root.chaps < 5) { f0 = [20, 1, 19, 3]; } else { if (_root.chaps < 7) { f0 = [28, 4, 68, 1]; } else { f0 = [69, 1, 43, 1]; } } } } else { if (_root.chaps < 3) { if (f1) { f0 = [18, 5, 14, 5, 10, 4]; } else { f0 = [29, 3, 12, 3, 15, 2]; } } else { if (_root.chaps < 5) { if (f1) { f0 = [23, 5, 24, 4, 26, 4]; } else { f0 = [31, 5, 22, 3, 27, 3]; } } else { if (_root.chaps < 7) { if (f1) { f0 = [38, 4, 29, 5, 41, 4]; } else { f0 = [39, 3, 34, 4, 24.4, 4]; } } else { if (f1) { f0 = [19, 3, 28, 4, 20, 2]; } else { f0 = [71, 1, 69, 1, 28, 1]; } } } } } f1 = f0[(chama - 2) * 2]; f2 = f0[(chama - 2) * 2 + 1]; f3 = 0; f6 = (Math.PI / f2) * 2; e = 0; while (e < f2) { f4 = Math.sin(f3) * 200 + 320; f5 = Math.cos(f3) * 180 + 250; if (enfcheck(f4, f5, player.xp, player.yp, 100)) { f3 += f6 / 12; --e; } else { f3 += f6; _root.soundy('summonsound.wav', 150); if (f1 == 62.1) { spaw(f4, f5, 0, f1); spaw(f4, f5, 0, f1); spaw(f4, f5, 0, f1); spaw(f4, f5, 0, f1); spaw(f4, f5, 0, f1); spaw(f4, f5, 0, f1); spaw(f4, f5, 0, f1); spaw(f4, f5, 0, f1); spaw(f4, f5, 0, f1); } else { if (f1 == 19 || f1 == 28) { trg = spaw(f4 + 10, f5, 0, f1); trg2 = spaw(f4, f5, 0, f1); if (f1 == 28 || _root.altch) { trg3 = spaw(f4 - 10, f5, 0, f1); } trg.xp = trg2.xp + 20; trg3.xp = trg2.xp - 20; trg.yp = trg2.yp; trg3.yp = trg2.yp; if (f1 == 28 && f2 > 2) { f1 = 23; } } else { spaw(f4, f5, 0, f1); } } } ++e; } ++chama; if (chama > 4) { justnow = 7; _root.chama = true; } chamb = 10; } } } } if ((keyd && !keyo || shutdoor == 0) && unpause) { if (shutdoor == 0) { ++justnow; } if (justnow == 10 || keyd && !keyo) { keyo = true; if (fra > 20) { _root.soundy('Door_Heavy_Open.mp'); } for (e in door) { trg = door[e]; nohit = false; if (!trg.blown) { if (trg.cus) { trg.gotoAndStop(37); } else { if (trg.hide || trg.hide2) { nohit = true; } else { if (trg.boner2) { if (_root.bona2) { trg.gotoAndStop(33); } else { nohit = true; } } else { if (trg.boner) { if (_root.bona) { trg.gotoAndStop(33); } else { nohit = true; } } else { if (trg.shop || trg.lib) { if (_root.shopa && trg.shop || _root.liba && trg.lib) { trg.gotoAndStop(1); } else { nohit = true; } } else { if (trg.gamb) { if (_root.gama) { trg.gotoAndStop(21); } else { nohit = true; } } else { if (trg.chamb) { if (fra < 15) { trg.gotoAndStop(27); } } else { if (trg.sat) { if (satan) { if (_root.altsat) { trg.gotoAndStop(41); } else { trg.gotoAndStop(19); } } else { f1 = Math.min(0.3, ups[51] * 0.2) + 0.01; if (_root.it == 2) { f1 += 0.25; } if (_root.it == 38) { f1 += 0.35; } if (_root.bumkill) { f1 += 0.35; } if (bossdmg) { f1 += 0.35; } if (_root.devil) { f1 += 0.99; } if (_root.lastdev + 3 > _root.chaps) { f1 *= 0.5; } if (_root.lastdev + 2 > _root.chaps) { f1 *= 0.5; } if ((Math.random() < f1 || satan) && _root.devil != 3 && _root.chaps != 1 && _root.chaps < 9) { _root.devil = 2; _root.lastdev = _root.chaps; if (_root.demonz == 0) { _root.demonz = 1; } if (_root.altsat) { if (fra < 30) { trg.gotoAndStop(41); } else { trg.gotoAndStop(40); } _root.mmus = _root.soundy('isaacxpholyroomreveal.mp3', 100); } else { if (fra < 30) { trg.gotoAndStop(19); } else { trg.gotoAndStop(18); } } } else { _root.devil = 3; nohit = true; } } } else { if (trg.boss) { if (fra < 30) { trg.gotoAndStop(13); } else { trg.gotoAndStop(15); } } else { trg.gotoAndStop(3); if (fra < 30) { trg.p.gotoAndStop(trg.p._totalframes); } } } } } } } } } } if (trg._visible && !nohit) { v1 = trg.blo; levz[v1] = 0; clevc[v1] = 0; if (trg.cus) { levz[v1] = 0.99; } } } } if (fra > 7 && shutdoor == 0) { if (_root.hardmode) { _root.eterns += Math.max(0.1, 0.2 - _root.luck * 0.01 + _root.chaps * 0.02); _root.eterns *= 0.999; } if (ups[94] || ups[96] || ups[98] || ups[131]) { f1 = ups[94] + (ups[96] + ups[98] * 2 + ups[131]) * 1.1; _root.monbb += 0.5 / f1; } f1 = itc[_root.it]; if (_root.itc < 1) { _root.itc += 1 / f1; itb = 5; if (_root.itc < 1) { _root.soundy('beep.wav'); } else { _root.soundy('itemrecharge.wav'); } } if (_root.bossl == _root.lev || _root.bossl2 == _root.lev) { bosssp(); killa = true; if (_root.lev == _root.bossl2 && _root.double) { _root.bosss = _root.bosss2; } } else { if (_root.amusic && !cock) { cock = true; _root.musc.done = true; _root.bossmusic = true; } f1 = Math.random(); if (ups[46]) { f1 = f1 * 0.9 + 0.1; } if (_root.luck > 0) { f1 = f1 * 0.9 + 0.1; } if (_root.luck < 0) { f1 += _root.luck * 0.1; } f2 = 0; trixies(false); if (trixx(42)) { if (ups[46] && _root.luck > 0) { f1 = f1 * 0.98 + 0.02; } else { f1 = f1 * 0.9 + 0.1; } } if (ups[134]) { if (random(3) == 0) { f1 = 1; f2 = 5.05 + random(2) * 0.01; } else { if (random(3) == 0) { f1 = 0; } } } if (trixx(46)) { if (random(10) == 0) { if (player.mhp > 0) { player.hp += 0.5; parc('hearter', player.xp, player.yp - 20, 0, 100, player.dpppp + 5000); _root.soundy('Vamp_Gulp.mp'); } } } if (_root.hardmode) { if (random(Math.max(1, 6 + _root.luck)) == 0) { f1 = 0; } if (random(Math.max(1, 6 - _root.luck)) == 0 && player.mhp > 0) { f1 = 0.59; } } if (f1 > 0.22) { if (f1 < 0.3) { if (random(3) == 0) { f0 = 5.3; } else { if (random(2) == 0) { f0 = 5.35; } else { f0 = 5.07; } } } else { if (f1 < 0.45 + _root.chaps * 0.03 * _root.luck) { f0 = 5.02; } else { if (f1 < 0.58 || random(30 - _root.luck * 2) == 0 && player.hp < player.mhp - 1) { f0 = 5.01; if (_root.luck > 0 && random(30 - _root.luck * 2) == 0 || player.mhp < 1 && random(Math.max(20, 40 - _root.luck * 5)) == 0 && _root.hardmode) { f0 = 5.010000003; } } else { if (f1 < 0.76 - _root.chaps * 0.007 + _root.luck * 0.02 - Math.min(10, _root.keys) * 0.01) { f0 = 5.03; } else { if (f1 < 0.95) { f0 = 5.04; } else { f0 = 5.05; } } } } } if (f2 > 0) { f0 = f2; } spaw(320, 280, 0, f0); } } } } openss = true; } else { if (!openss) { justnow = 0; } } } for (e in drawer) { drawer[e].clear(); } if (!Key.isDown(80) && !Key.isDown(27)) { unspace = true; } if (_root.unl._currentframe != 1 || _root.over._currentframe != 1) { unlo = true; unpause = false; } flyshut = 0; if (Key.isDown(32) && !apau) { nospo = 15; } apau = unpause; if (!unpause) { if (unlo) { unpause = true; unlo = false; if ((player.d._currentframe != 4 || player.d.d.d._currentframe > 9) && (player.d._currentframe != 11 || player.d.d.d._currentframe > 9)) { scerf(); } } else { if (gameover == 0 && _root.hud.paus._currentframe == 1) { _root.hud.paus.gotoAndStop(2); scerf(); } } if (Key.isDown(80) && unspace) { unpause = true; unspace = false; } _root.hud.paus.st0.gotoAndStop(Math.min(1 + Math.max(1, Math.round((_root.playsp - 0.8) * 4)), 8)); _root.hud.paus.st1.gotoAndStop(Math.min(Math.max(1, Math.round(12 - _root.firra)), 8)); _root.hud.paus.st2.gotoAndStop(Math.max(1, Math.min(1 + Math.round((_root.firrb - 2.4) * 1.1), 8))); _root.hud.paus.st3.gotoAndStop(Math.max(1, Math.min(1 + Math.round((_root.firrr - 20) / 4), 8))); } else { if (bgg2 != undefined) { bgg2 = undefined; bggg2.swapDepths(100); removeMovieClip(bggg2); } topz(0); --freez; --slow; --sloww; --scare; --playsave; --unic; if (unic < -1) { pacman = false; } if (_root.it == 124 || _root.it == 71 && fra2) { if (nofun) { nofun = false; } else { _root.itc += 0.01; } } if (ups[63] && shutdoor != 0 && _root.itc - 0.5 < tictic && _root.itc < 1 && _root.lev != _root.gamb) { tictic = Math.min(_root.itc, tictic); _root.itc += 0.0005; if (hudder != _root.hud.it._currentframe && _root.hud.it._currentframe < 15) { if (_root.itc < 1) { } else {} _root.soundy('batterycharge.mp'); parc('batter', player.xp, player.yp - 20, 0, 100, player.dpppp + 5000); } } _root.hud.paus.gotoAndStop(1); ++fra; if (etogo) { --etogo; if (etogo < 1) { _root.over.gotoAndStop(16); etogo = undefined; } } fra2 = fra % 2 == 0; fra3 = fra % 3 == 0; fra5 = fra % 5 == 0; fra10 = fra5 && fra2; lofo = false; lastlary = undefined; lastlarx = lastlary; if (fra10) { if (_root.locker[90] && _root.locker[99] && _root.locker[100] && _root.locker[101] && _root.locker[102] && _root.locker[103] && _root.locker[104] && _root.locker[106] && _root.locker[107] && _root.locker[108] && _root.locker[109] && _root.locker[110] && _root.locker[111] && _root.locker[112] && _root.locker[113]) { _root.locker[105] = true; } } if (justnow > 10) { for (e in door) { trg = door[e]; if ((_root.kep || _root.keys > 0) && enfcheck(trg._x, trg._y, player.xp + player.xbew * 2, player.yp + player.ybew * 2, 40) && keyhole == trg.blo) { if (trg.shop || trg.boner2 || trg.boner || trg.lib) { v1 = trg.blo; levz[v1] = 0; clevc[v1] = 0; if (player.xbew * player.xbew + player.ybew * player.ybew > 1) { if (!_root.liba && trg.lib) { trg.gotoAndStop(8); if (!_root.kep) { --_root.keys; } _root.liba = true; _root.soundy('Unlock00.wav', 100); } if (!_root.shopa && trg.shop) { trg.gotoAndStop(8); if (!_root.kep) { --_root.keys; } _root.shopa = true; _root.soundy('Unlock00.wav', 100); } if (!_root.bona && trg.boner) { trg.gotoAndStop(31); if (!_root.kep) { --_root.keys; } _root.bona = true; _root.soundy('Unlock00.wav', 100); } if (!_root.bona2 && trg.boner2) { trg.gotoAndStop(31); if (!_root.kep) { --_root.keys; } _root.bona2 = true; _root.soundy('Unlock00.wav', 100); } } } } if (trg.gamb && _root.coins > 0 && enfcheck(trg._x, trg._y, player.xp, player.yp, 40) && keyhole == trg.blo) { v1 = trg.blo; levz[v1] = 0; clevc[v1] = 0; if (!_root.gama) { trg.gotoAndStop(22); --_root.coins; _root.gama = true; _root.soundy('Coin_Slot.mp', 100); } } } } _root.p.gotoAndStop(1); if ((Key.isDown(27) || Key.isDown(80)) && unspace) { _root.p.gotoAndStop(_root.pinfo); unpause = false; unspace = false; } topz(1); f0 = fra % 2 + 1; for (e in par) { trg = par[e]; if (trg.done) { removeMovieClip(par[e]); par.splice(e, 1); } else { if (trg.longstay) { if (ashut > 0) { --trg.longstay; trg.prevFrame(); } } if (trg.perm && ashut > 0) { trg.stop(); } else { trg.nextFrame(); } } } actions1(); if (brr.length > 0) { breakall(); brr = []; brr2 = []; } topz(2); physix(); tip(2); v = 0.7; if (fra % 1000 == 999) { f1 = new Array(); for (e in levz) { f1[e] = levz[e]; } levz = new Array(f1.length); for (e in f1) { levz[e] = f1[e]; } } v1 = _root.tex; _root.tex = ' '; e = 0; while (e < alltimer.length) { alltimer[e] *= 0.96; ++e; } f1 = getTimer(); if (fra > 35 || _root.lev != 35) { wtfps *= 0.9; wtfps += Math.max(1, (1000 / (f1 - wtfps2)) * 0.1); } qqua = _root.so.data.qqal == 'AUTO' || _root.so.data.qqal == undefined; if (qqua) { if (wtfps < 14) { if (_quality == 'MEDIUM') { _quality = 'LOW'; } } if (wtfps < 26) { if (_quality == 'HIGH') { _quality = 'MEDIUM'; } } if (wtfps > 29.4 && _quality == 'MEDIUM' || wtfps > 25 && _quality == 'LOW') { if (wtff++ > 100) { wtff = 0; if (_quality == 'MEDIUM') { _quality = 'HIGH'; } else { if (_quality == 'LOW') { _quality = 'MEDIUM'; } } } } else { wtff = 0; } } wtfps2 = f1; if (chestopen != undefined) { trg = chestopen; chestopen = undefined; if (trg != 2) { chestox = trg.xp; chestoy = trg.yp; } if (!trg.empty) { if (chama == 1 && _root.lev == _root.chamb) { chama = 2; } trg.empty = true; if (trg.col == 31) { boil(false); boil(true); } else { if (trg.c2) { f10 = 2; f1 = [81, 134, 133, 145]; if (_root.locker[79]) { f1.push(134); } f1 = f1[random(f1.length)]; if (!ups[f1] && random(10) == 0) { var trg2 = create(chestox, chestoy, 0, 0, 0, 0, 5.1); trg2.alt = true; trg2.fra -= 15; trg.done = true; trg2.alt = 5; trg2.it = f1; f1 = 70; enf = enfcheck(chestox, chestoy, player.xp, player.yp, f1); if (enf < f1) { enf = ((f1 - enf) / enf) * 0.4; player.xbew -= xenf * enf; player.ybew -= yenf * enf; } } else { if (random(18) == 0) { tar = 166; teller(); } else { if (random(5) == 0) { boil(false); boil(true); } else { if (random(5) == 0) { spaw(trg.xp, trg.yp, 20, 5.040000005); } else { if (random(5) == 0) { bluf += 3; } else { f1 = [5.010000003, 5.040000003, 5.07]; f1 = f1[random(f1.length)]; if (f1 == 5.010000003 && random(2) == 0) { cspawn(f1, 1); } else { cspawn(f1, 2); } } } } } } } else { if (trg.d._currentframe == 8 && trg.col == 1) { f10 = 1 + random(2); } else { if (trg.d._currentframe == 6) { f10 = Math.max(2, random(8) - 1); } else { f10 = Math.max(2, random(4) - 1); } } f2 = 0; if (random(3) != 0) { trixies(true); if (trixx(42) || f2 > 0) { ++f10; } } if (trg.gold) { if (random(3) == 0 && _root.locker[84] && !_root.shitpenny) { _root.shitpenny = true; create(trg.xp, trg.yp, 0, 0, 0, 0, 5.35); } else { cspawn(5.02, 5 + random(3)); } } else { z = 0; for (;;) { if (!(z < f10 && !trg.done)) break; f12 = 1; f1 = Math.random(); if (f2 > 0) { f0 = f2; f2 = 0; } else { if ((_root.locker[18] && random(10) == 0 && trg == 2 || random(5) == 0 && trg.d._currentframe == 6) && z == 0 && (trg != 2 || !ups[90]) || _root.chaps == 11) { f1 = 70; enf = enfcheck(chestox, chestoy, player.xp, player.yp, f1); if (enf < f1) { enf = ((f1 - enf) / enf) * 0.4; player.xbew -= xenf * enf; player.ybew -= yenf * enf; } f0 = 5.1; trg.done = true; treas = true; } else { if (random(5) == 0 && z == 0 && trg != 2) { f1 = 70; enf = enfcheck(chestox, chestoy, player.xp, player.yp, f1); if (enf < f1) { enf = ((f1 - enf) / enf) * 0.4; player.xbew -= xenf * enf; player.ybew -= yenf * enf; } if (trg.d._currentframe == 6) { f0 = 5.3; } else { f0 = 5.07; } if (random(2) == 0) { f0 = 5.35; } f10 = -100; } else { if (f1 < 0.35 && trg != 2) { f0 = 5.02; f12 = random(3) + 1; } else { if (f1 < 0.55 || f1 < 0.6 && trg == 2) { f0 = 5; if (random(2) == 0) { --f10; } } else { if (f1 < 0.7) { f0 = 5.03; if (trg == 2) { f10 = -100; } } else { if (f1 < 0.71 && z == 0) { f0 = 5.05; f10 = -100; } else { if ((f1 < 0.72 || trg == 2 && f1 < 0.9) && z == 0) { f0 = 5.06; f10 = -100; } else { f0 = 5.04; } } } } } } } } if (trg.d._currentframe == 8 && trg.col == 1) { if (random(2) == 0) { f0 = 5.02; f12 = random(4) + 1; } else { f0 = 5; } } cspawn(f0, f12); ++z; } } } } treas = false; } } tip(0); } for (e in ball) { trg = ball[e]; if (trg.s == 4) { if (trg.d._currentframe == 3 && ups[140]) { trg.dfr = true; trg.d.gotoAndStop(5); } } if (trg.alter) { f1 = trg.alter; if (trg.s == 16) { trg.d.hx.d.gotoAndStop(f1); trg.d.d.hx.d.gotoAndStop(f1); trg.d.d.d.hx.d.gotoAndStop(f1); trg.d.d.hxx.gotoAndStop(f1); trg.d.d.d.hxx.gotoAndStop(f1); } else { if (trg.s == 46 && trg.alter == 3 && trg.minb == 3) { trg.d.he.gotoAndStop(f1); trg.d.d.he.gotoAndStop(f1); trg.d.d.d.he.gotoAndStop(f1); } trg.d.hx.gotoAndStop(f1); trg.d.d.hx.gotoAndStop(f1); trg.d.d.d.hx.gotoAndStop(f1); trg.d.d.d.d.hx.gotoAndStop(f1); if (trg.s == 50) { trg.d.d.hx.h.gotoAndStop(trg.f3); } if (trg.s == 60) { if (trg.d._currentframe == 5) { trg.d.d.gotoAndStop(f1); } trg.d.hxx.gotoAndStop(f1); trg.d.d.hxx.gotoAndStop(f1); trg.d.d.d.hxx.gotoAndStop(f1); } } } } if (fra % 50 == 0) { f1 = []; f2 = []; a = 0; while (a < ball.length) { f1[a] = ball[a]; ++a; } a = 0; while (a < par.length) { f2[a] = par[a]; ++a; } ball = new Array(f1.length); par = new Array(f2.length); a = 0; while (a < ball.length) { ball[a] = f1[a]; ++a; } a = 0; while (a < par.length) { par[a] = f2[a]; ++a; } } if (wtftex) { _root.tex = wtftex; } trg = player; if (trg.d._currentframe != 1) { if (trg.d._currentframe == 7 || trg.d._currentframe == 8) { trgnextd(); } else { trg.d.d.gotoAndStop(sk); if (bgg2 == undefined) { if (trgnextd(trg.d.d.d, true) && trg.d._currentframe != 6) { playfirst = true; } } if (trg.d.d.d._currentframe == 32 && trg.d._currentframe == 6) { _root.soundy('isaacdies.wav'); if (gameover <= 0) { gameover = 1; } } } } else { if (demon > 0) { sk = 7; } } trg.d.d.d.it.d.gotoAndStop(trg.it); trg.d.d.d.it.d.p.gotoAndStop(player.pilc); trg.d.d.d.it.d._yscale = 10000 / player._xscale; trg.d.d.d.it.d._xscale = trg.d.d.d.it.d._yscale; trg.d.hs._visible = (trg.d.bo._currentframe == 16 || trg.d.bo._currentframe == 17 || trg.d.bo._currentframe == 18) && trg.d.bo.d._currentframe != 2; if (trg.d.hs._visible) { if (trg.d.bo.d._currentframe == 1) { trg.d.hs.gotoAndStop(1); } else { trg.d.hs.gotoAndStop(2); } trg.d.hs._xscale = trg.d.bo._xscale; } if (fra > 2 && fra < 15) { player._visible = true; } if (plxxx > 0) { player.fire = 1000; player.xp = plxxx; player.yp = plyyx; player.xbew = 0; player.ybew = 0; } for (e in ball) { trg = ball[e]; if (trg.s == 42) { trg.xp = trg.xpp; trg.yp = trg.ypp; trg.xbew = 0; trg.ybew = 0; } } trg = player; if (unpause) { playc(); } ++dec; if (dec == 15) { decer = bomb(4); decer.dmg += 100; } if (cowss > 0) { --cowss; spaw(player.xp, player.yp, 40, 5.02); } if (kogs.length > 0) { spaw(player.xp, player.yp, 40, kogs.pop()); } if (sloto != undefined) { --sloto; if (sloto < 0) { f2 = 0; f12 = 1; sloty(slotf()); if (f2 > 0) { if (f2 < 7) { emo(); } if (f1 < 33) { _root.soundy('slotspawn' + random(3) + '.wav'); } i = 0; while (i < f12) { var trg2 = spaw(player.xp, player.yp, 40, f2); ++i; } } sloto = undefined; } } if (trg.d._currentframe == 1 || _root.bombnext) { f2 = facer; if (trg.d._currentframe == 1) { trg.d.d.d.gotoAndStop(f2); if (f2 == 17 || f2 == 31) { f0 = Math.round((fra - chaf) / 8); if (plox <= 8 && chaf == undefined) { f0 = 0; if (f2 == 31) { trg.d.d.d.gotoAndStop(33); } else { trg.d.d.d.gotoAndStop(1); } plo = 1; } else { chaaf = Math.max(1, Math.min(6, f0)); } } z = 0; while (z < 6) { f4 = false; trg2 = trg.d.d.d['hat' + z]; f3 = _root.hatmode[z]; if (_root.colit == 86 && z == 0) { f3 = 18; } if (_root.ups[161] && z == 0) { } if (z == 4) { if (ups[117]) { f3 = 38; } if (bra && freez > 0) { f3 = 28; } } if (_root.ups[152] && z == 4) { f3 = 45; f4 = true; trg2.d.gotoAndStop(9); } if (f3 > 0 && !nohat) { trg2.gotoAndStop(f3); trg2.d.stop(); if (z != 0) { trg2._x = trg.d.d.d.hat0._x; trg2._y = trg.d.d.d.hat0._y; } if (trg2.d._totalframes > 4 && plox > 8) { trg2.d.gotoAndStop(plo + 4); } else { trg2.d.gotoAndStop(plo); } } else { trg2.gotoAndStop(1); } if (f4) { trg2 = trg2.d.l; if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { f1 = (lass / trg.d.d._xscale / trg._xscale) * 10000 + (trg2._x - 6) * trg.xpp - 13; } else { f1 = (lass / trg.d.d._xscale / trg._xscale) * 10000 + (trg2._y + 20) * trg.ypp; } if (trg.lfrr - fra > -3) { trg2.gotoAndStop(fra % 3 + 1); trg2._yscale = f1; trg2 = undefined; } else { trg2._visible = false; } } ++z; } } } } llev = [2, 117, 57, 186, 2, 113, 61, 173, 2, 101, 53, 152, 2, 90, 46, 135, 2, 80, 0, 0, 6, 34]; llev2 = [2, 117, 57, 183, 2, 115, 60, 171, 2, 103, 53, 153, 2, 91, 46, 135, 2, 90, 0, 0, 6, 34]; specol = [[1, 0.1, 0.1], [0.5, 0.5, 0], [0.2, 0.5, 0.4], [1, 0.5, 0.5], [0.7, 0.45, 0.4], [0.1, 0.8, 0.2], [0.1, 1, 0.5], [0, 0.15, 0.15], [0.55, 0.55, 1.35], [1.6, 0.7, 1]]; specol2 = [0, [1, 0.6, 0.6], [0.6, 0.6, 0.6], [0.6, 1, 0.6], [0.6, 1, 1], [0.5, 0.7, 0.5], [1, 0.7, 0.5], [0.5, 0.7, 1], [0.5, 0.7, 0.7], [1, 0.7, 0.5], [0, 1.7, 1.1], [0.6, 0.7, 0.6], [1, 1, 0.5], [0.3, 0.7, 0.6], [1, 0.6, 0.6], [0.5, 0.5, 0.6], [0.44, 0.44, 0.44], [0.5, 0.5, 0.5, 50, 50, 50], [0.24, 0.24, 0.24], [1.2, 0.7, 0.7], [2.5, 1.2, 1.5], [1, 1, 1, 20, -50, -222], [1.5, 1, 1.15], [1.2, 1.2, 1.2, 50, 50, 50]]; levn = [0, 'Basement 1', 'Basement 2', 'Caves 1', 'Caves 2', 'The Depths 1', 'The Depths 2', 'The Womb 1', 'The Womb 2', 'Sheol', 0, 'The Chest']; levn2 = [0, 'Cellar 1', 'Cellar 2', 'Catacombs 1', 'Catacombs 2', 'Necropolis 1', 'Necropolis 2', 'Utero 1', 'Utero 2', 'Cathedral', 0, 'The Chest']; _root.tex = undefined; if (_root.chala <= 0) { _root.chala = 0; } if (_root.lev == _root.bossl2) { altboss = _root.altboss2; } if (_root.lev == _root.bossl) { altboss = _root.altboss; if (_root.chaps == 8 || _root.chaps == 6 && !_root.locker[3]) { _root.unl.gotoAndStop(1); _root.unl.nogo = true; } } gridx = 0; gridy = 0; if (_root._xscale < 110) { gridxs = 640; gridys = 480; hdx = 1; } else { if (_root._xscale < 135) { gridxs = 800; gridys = 620; hdd = true; hdx = 1.25; } else { gridxs = 1100; gridys = 800; hdd = true; hdx = 1.667; } } if (_root.nozinc) { hdx = 4; gridxs = 640 * hdx; gridys = 480 * hdx; } gridv = 100; gridmax = 10; tiles._visible = false; razor = 0; etols = 0; rage = 1; if (_root.chaps < 3) { lars = 4; } else { lars = 0; } combis = 0; lusts = 0; rag = 1; thistern = 0; if (_root.levz.length <= 1) { _root.chaps = Math.max(1, _root.chaps); f1 = getTimer() % 100; e = 0; while (e < f1) { f2 = random(random(10)) * Math.random(); ++e; } _root.darky(120); if (_root.newstartt || _root.it == undefined) { _root.newstartt = false; newstats(); _root.eta = false; } _root.big = false; _root.darks = false; f1 = 80; if (_root.locker[4]) { f1 = 60; } if (_root.locker[42]) { f1 = 25; } if (_root.locker[65] || _root.locker[66] || _root.locker[67] || _root.locker[68] || _root.locker[70] || _root.locker[69] || _root.locker[72]) { f1 = 15; } sams(); _root.altm = random(f1) == 0 && _root.chaps != 1 && (_root.chaps != 2 || !_root.double); _root.big = false; _root.double = false; _root.darks = false; if (_root.chaps == 11) { } else { if (random(f1) == 0 && _root.chaps % 2 == 1 && _root.chaps < 8) { _root.double = true; } else { _root.double = false; if (random(f1 * 2) == 0) { _root.big = true; } else { if (random(f1 * 2) == 0) { _root.darks = true; } } } } if (_root.chala == 1) { _root.big = false; _root.double = false; _root.darks = true; } if (_root.chala == 3) { _root.big = false; _root.double = true; _root.darks = false; } if (_root.double) { ++_root.chaps; curss = 'Curse of the Labyrinth'; } else { if (_root.big) { curss = 'Curse of the Lost'; } else { if (_root.darks) { curss = 'Curse of Darkness'; } } } _root.rax00 = random(5); _root.rax01 = random(5); _root.rax02 = random(5); _root.rax03 = random(5); _root.rax04 = random(5); _root.rax10 = random(5); _root.rax11 = random(5); _root.rax12 = random(5); _root.rax13 = random(5); _root.rax14 = random(5); _root.rax20 = random(5); _root.rax21 = random(5); _root.rax22 = random(5); _root.rax23 = random(5); _root.rax24 = random(5); _root.kep = false; _root.mapsize = 0; f6 = Math.min(20, random(2) + 5 + _root.chaps * 2.6); _root.rarer = []; _root.levblow = []; _root.levsav = []; _root.levit = []; _root.beenlev = []; _root.specol = []; _root.alto = []; _root.dropo = []; _root.beenlev2 = []; _root.seenlev = []; _root.bomf = []; _root.shopa = false; _root.liba = false; _root.bona = _root.chaps == 1 || _root.chaps == 2 && _root.double; _root.bona2 = false; _root.hiderr = false; _root.hider = _root.hiderr; _root.hiderr2 = false; _root.hider2 = _root.hiderr2; _root.hid2 = random(5); _root.minbb = false; _root.gama = false; _root.gambb = false; _root.chambb = false; _root.chama = false; _root.shopaz = false; _root.bossd = false; _root.treasd = false; _root.treasd2 = false; _root.gamaaa = false; _root.levcol = []; _root.world = false; _root.altsat = random(2) == 0 && _root.evs == 0 && _root.lastdev > 0; _root.iter = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; _root.devil = _root.chaps != 1; _root.bumkill = false; _root.altch = _root.chaps % 2 == 0 && random(2) == 0; if (_root.hardmode) { if (_root.chaps % 3 == _root.alof && random(2) == 0) { _root.altch = 2; } } _root.ceye = false; if (trixx(59) && random(4) == 0) { ups[21] = true; _root.ceye = ups[21]; } _root.altchap = 0; if (random(2) == 0 && _root.chaps < 9 || _root.heaven == 2) { _root.altchap = 9; } fuckup = 0; if (_root.chaps == 1 || _root.chaps == 3 || _root.chaps == 5 || _root.chaps == 7) { _root.nodmg = true; } if (_root.hairb > 1) { _root.hairb = Math.round(_root.hairb * 0.5 + 0.5); } else { _root.hairb = 1; } if (_root.double) { f6 *= 1.8; f6 = Math.min(30, f6); } else { if (_root.big) { f6 += 4; } if (random(12) == 0) { } f6 = Math.min(30, f6); } for (;;) { if (!((_root.mapsize * 1.25 < f6 || _root.levz.length <= 1 || _root.bossl == 45 || _root.hide == undefined && _root.chaps < 3 || _root.bossl == 25 || _root.bossl == 36 || _root.bossl == 34) && fuckup++ < 1000)) break; endrooms = []; _root.levz = new Array(80); e = 0; while (e < 80) { _root.levz[e] = 0; ++e; } acts = []; acts2 = []; pffx(35); f3 = random(4); f5 = 0; if (_root.double) { f6 -= 1; } v3 = 0; e = 0; while (e < 300) { acts2[acts2.length] = 0; acts = acts2.slice(0, -1); acts2 = []; if (f6 > 15) { pffx(35); } for (a in acts) { v1 = acts[a]; if (v1 > 0) { v3 = v1; } f8 = 0; f2 = 2; if (e > 3 + random(3 - fuckup) && f5 + random(2) < f6 && fuckup > 4 + random(4)) { f2 = 1; } if (random(f2) == 0 && v1 % 10 < 9) { pffx(v1 + 1); } if (random(f2) == 0 && v1 % 10 > 1) { pffx(v1 - 1); } if (random(f2) == 0 && v1 < 70) { pffx(v1 + 10); } if (random(f2) == 0 && v1 > 10) { pffx(v1 - 10); } if (f8 == 0 && v1 != 35) { endrooms.push(v1); } } if (acts2.length < 2) { e -= 0.5; } ++e; } if (_root.double) { f6 += 1; } _root.lastl = _root.lev; _root.lev = 35; _root.lastl = 35; _root.mapsize = f5; _root.bossl = endrooms[endrooms.length - 1]; _root.shopl = _root.bossl; _root.boner = _root.bossl; endrooms.splice(endrooms.length - 1, 1); if (_root.double) { f1 = -1; if (ncheck(_root.bossl + 1) == 1 && _root.bossl % 10 < 9) { f1 = _root.bossl + 1; } if (ncheck(_root.bossl - 1) == 1 && _root.bossl % 10 > 1) { f1 = _root.bossl - 1; } if (ncheck(_root.bossl + 10) == 1 && _root.bosslv1 < 70) { f1 = _root.bossl + 10; } if (ncheck(_root.bossl - 10) == 1 && _root.bossl > 10) { f1 = _root.bossl - 10; } if (f1 > 0) { _root.bossl2 = _root.bossl; _root.bossl = f1; } else { _root.bossl = 34; } } else { _root.bossl2 = undefined; } _root.hide = undefined; _root.hide2 = undefined; _root.beenlev = []; _root.hide2 = ender(); if (_root.mapsize * 2 > f6 && _root.bossl != 34) { if (_root.double) { endrooms.splice(0, Math.max(0, endrooms.length - 6)); } e = 0; while (e < 3000) { f1 = random(_root.levz.length); f2 = f1 % 10; if (!_root.levz[f1] && f2 < 9 && f2 > 1) { f2 = ncheck(f1); f4 = true; if (f2 > 0) { f3 = ncheck1(f1); if (_root.double) { } else {} } else { f3 = false; } if ((f2 > 2 && f3 || (f2 > 2 || f2 > 1.9 && (e > 600 || f3)) && e > 300 && f4) && _root.hide == undefined) { _root.levz[f1] = 'hide' + random(5); _root.hide = f1; } else { if (_root.mapsize < f6 + random(10) + _root.chaps * 2 && _root.double && f1 != _root.hide && f1 != _root.hide2) { if (f3 && (f2 > 1 || f2 == 1 && random(2) == 0) && f1 + 10 != _root.hide && f1 - 10 != _root.hide && f1 - 1 != _root.hide && f1 + 1 != _root.hide && f1 + 10 != _root.hide2 && f1 - 10 != _root.hide2 && f1 - 1 != _root.hide2 && f1 + 1 != _root.hide2) { _root.levz[f1] = 0.75; ++_root.mapsize; } } else { if (_root.hide != undefined) { e += 100000; } } } } ++e; } } _root.minb = undefined; _root.gamb = undefined; _root.chamb = undefined; _root.sacb = undefined; _root.libb = undefined; _root.cusb = undefined; _root.cus = undefined; _root.sac = undefined; _root.sacer = false; _root.lib = undefined; _root.boner2 = undefined; _root.boner = _root.boner2; if ((endrooms.length >= 4 || _root.chaps == 1 && endrooms.length >= 3) && _root.bossl != _root.lev && _root.bossl > 0) { _root.shopl = ender(); if (_root.chaps != 11) { if (_root.chala < 5 && (_root.chala != 2 || random(3) != 1)) { _root.boner = ender(); } if (_root.double && _root.chala < 5) { _root.boner2 = ender(); } if (endrooms.length > 0 && (random(7) == 0 || random(4) == 0 && _root.fullhp)) { _root.sac = ender(); } if (endrooms.length > 0 && (random(20) == 0 || _root.bookster && random(4) == 0)) { _root.lib = ender(); } if (endrooms.length > 0 && (random(2) == 0 || _root.lastdev && random(4) == 0)) { _root.cus = ender(); } if (endrooms.length > 0 && (random(4) == 0 || _root.chaps == 1 && random(3) == 0) && _root.minz.length > 0) { _root.minb = ender(); } if (endrooms.length > 0 && _root.fullhp && _root.chaps > 1 && (random(2) == 0 || _root.chaps > 2)) { _root.chamb = ender(); } if (endrooms.length > 0 && _root.coins >= 5 && _root.chaps % 2 == 0) { _root.gamb = ender(); } } } else { _root.levz = []; _root.mapsize = 0; } if (_root.chaps > 6) { _root.boner = undefined; _root.boner2 = undefined; if (random(5) != 0 || !ups[64] && random(5) != 0) { _root.shopl = undefined; } } } if (fuckup >= 399) { _root.levz = undefined; if (_root.double) { --_root.chaps; } _root.cuts = true; moveon(); _root.gotoAndStop('reset'); } if (!_root.altchap) { f13 = Math.min(llev.length - 2, _root.chaps * 2 - 2); f15 = Math.min(llev.length - 2, _root.chaps * 2 - 4); } else { f13 = Math.min(llev2.length - 2, _root.chaps * 2 - 2); f15 = Math.min(llev2.length - 2, _root.chaps * 2 - 4); } f14 = true; for (e in _root.levz) { if (random(2) == 0 && _root.double) { f14 = f15; } else { f14 = f13; } if (_root.levz[e] > 0) { if (_root.altchap) { _root.levz[e] = random(llev2[f14 + 1] - llev2[f14]) + llev2[f14] + 2; } else { _root.levz[e] = random(llev[f14 + 1] - llev[f14]) + llev[f14] + 2; } _root.rarer[e] = random(115) + 65; } } if (_root.double) { --_root.chaps; } bosschoose(); if (_root.double) { _root.levz[_root.bossl2] = f1; _root.bosss2 = _root.bosss; _root.altboss2 = _root.altboss; ++_root.chaps; while (_root.bosss2 == _root.bosss) { bosschoose(); } _root.levz[_root.bossl] = f1; f1 = _root.bosss2; _root.bosss2 = _root.bosss; _root.bosss = f1; } else { _root.levz[_root.bossl] = f1; } _root.levz[35] = 2; _root.levz[166] = 'satan'; if (_root.altsat) { _root.levz[166] = 'sata'; } else { if (!_root.kramper && (random(10) == 0 || random(3) == 0 && _root.evs > 0)) { _root.levz[166] = 'krampus'; _root.kramper = _root.chaps; } } if (_root.chaps == 8) { _root.levz[166] = 'satan1'; } if (_root.chaps < 9) { _root.levz[169] = 'error' + random(4); } _root.levz[_root.shopl] = 'shop' + (random(6) + 1) * 1; _root.levz[_root.sac] = 'sac'; _root.levz[_root.lib] = 'lib'; _root.levz[_root.cus] = 'c'; _root.levz[_root.hide2] = 'hi' + _root.hid2; if (random(3) == 0) { _root.levz[_root.cus] = 'c' + random(2); if (random(4) == 0) { _root.levz[_root.cus] = 'c2'; } } _root.levz[_root.boner] = 't' + random(6); _root.levz[_root.boner2] = 't' + random(6); f1 = random(_root.minz.length); f2 = 'min'; if (_root.altm) { f2 = 'mi'; } f3 = f2; f2 += _root.minz[f1]; if (_root.chaps > 2 && !_root.us && random(10) == 0) { f2 = 'us'; _root.us = true; } _root.levz[_root.minb] = f2; _root.levz[_root.gamb] = 'gam' + random(6); _root.levz[_root.chamb] = 'cha' + random(6); if (_root.chaps == 11) { _root.levz[35] = 5; } if (_root.altch) { _root.levz[_root.chamb] = 'cha5'; } if (_root.chaps > 3 && _root.minb == undefined) { if (_root.chaps > 4) { if (random(3) == 0 && _root.chaps - 1 > _root.lastkeeps) { _root.levz[_root.hide] = f3 + 4; _root.minb = _root.hide; } } if (_root.levz[_root.hide] == f3 + 4) { _root.lastkeeps = _root.chaps; } if (random(6 - Math.min(_root.chaps, 5)) == 0 && _root.chaps - 1 > _root.lastkeeps) { _root.minb = _root.shopl; _root.levz[_root.shopl] = f3 + 4; _root.lastkeeps = _root.chaps; } } _root.minz.splice(f1, 1); if (_root.eta) { etogo = 4; _root.eta = false; ++_root.hp; ++ups[22]; ++_root.ups[22]; ++_root.eto; } if (trixx(55)) { eta(); } } _root.amusic = false; if (!_root.beenlev[_root.lev]) { if (_root.lev == _root.boner || _root.lev == _root.boner2) { _root.mmus = _root.soundy('treasure room enter.mp', 100); } else { if (_root.lev == _root.bossl || _root.lev == _root.bossl2) { _root.soundy('castleportcullis.wav', 100); } else { if (_root.lev == _root.chamb) { _root.mmus = _root.soundy('weapon room.mp', 100); } else { if (_root.lev == 166) { if (_root.kramper == _root.chaps) { _root.bossmusic = true; _root.soundy('bossintro.mp3'); } else { _root.mmus = _root.soundy('Satan find.mp', 100); } } else { if (_root.lev == _root.minb) { _root.mmus = _root.soundy('miniboss.mp', 100); _root.amusic = true; _root.fade = true; } } } } } } firsttime = _root.beenlev[_root.lev]; if (firsttime != 2) { _root.beenlev[_root.lev] = true; } if (_root.lev == _root.hide) { hider(); } if (_root.lev == _root.hide2) { hider2(); } if (_root.lev == _root.minb) { _root.minbb = true; } if (_root.lev == _root.gamb) { _root.gambb = true; _root.gama = true; if (!_root.gamaaa) { _root.gamaaa = true; ++_root.so.data.gams; if (_root.so.data.gams > 10) { _root.locker[33] = true; } } } _root.seenlev[_root.lev] = true; door = [d1, d2, d3, d4]; v1 = _root.lev; if (v1 % 10 < 9) { door[2].gol = v1 + 1; } if (v1 % 10 > 1) { door[0].gol = v1 - 1; } if (v1 < 70) { door[1].gol = v1 + 10; } if (v1 > 10) { door[3].gol = v1 - 10; } for (e in door) { trg = door[e]; trg.swapDepths(int(291 + e)); trg.govo = false; if (trg.gol > -1 && _root.levz[trg.gol] != 0) { if (trg.gol == _root.hide || trg.gol == _root.hide2 || (_root.lev == _root.hide || _root.lev == _root.hide2)) { trg.govo = true; trg.visible = false; } } else { trg._visible = false; } } rowz = 16; roxx = 40; roxx2 = roxx / 2; f1 = _root.levz[_root.lev]; if (f1 == 2) { gotoAndStop(2); } else { if (f1 * 1 > 1) { if (_root.chaps == 11) { f15 = 15; } else { f15 = Math.round(_root.chaps / 2 + _root.altchap); } gotoAndStop('levs' + f15); inl.gotoAndStop(f1 - 2); } else { gotoAndStop('levs6'); inl.gotoAndStop(f1); inl.shop.swapDepths(33901); inem = true; } } error = false; if (_root.lev == _root.chamb) { f1 = 19; if (_root.altch == 2) { f1 = 26; } } else { if (_root.lev == _root.gamb) { f1 = 15; } else { if (_root.lev == 166 || _root.lev == _root.cus) { f1 = 19; if (_root.lev == 166) { satan = true; _root.devil = 2; if (_root.door <= -1) { _root.door = random(4); } if (_root.altsat) { f1 = 26; } } } else { if (_root.lev == 169) { error = true; f1 = 40; } else { if (_root.chaps > 8) { if (_root.altchap) { f1 = 26; } else { f1 = 45; } } else { altgo = true; f1 = 1 + Math.round(_root.chaps / 2 - 1) * 3; } } } } } if (_root.shopl == _root.lev) { f1 = 2; } else { if ((_root.bossl == _root.lev || _root.bossl2 == _root.lev) && _root.chaps != 9) { f1 += 2; } else { if (_root.hide == _root.lev) { f1 = 20; } else { if (_root.hide2 == _root.lev) { f1 = [10, 26, 19, 23, 21]; f1 = f1[_root.hid2]; } else { if (altgo && _root.altchap != 0 && _root.chaps != 7 && _root.chaps != 8) { f1 = 21 + Math.round(_root.chaps / 2 - 1); } } } } } f2 = f1; if (_root.lev == 35 && !satan && _root.chaps == 1) { f2 = 50; } if (_root.lev == _root.sac) { f1 = 24; f2 = 24; } if (_root.lev == _root.lib) { f1 = 25; f2 = 25; } if (_root.chaps == 11) { f1 = 27; f2 = 27; } b.w1.gotoAndStop(f1); b.w2.gotoAndStop(f1); b.w3.gotoAndStop(f1); b.w4.gotoAndStop(f1); b.bg.gotoAndStop(f2); b.bg.d.gotoAndStop((_root.rax00 + _root.lev + _root.lev * _root.lev * (_root.rax20 + _root.lev) + (_root.rax10 + _root.lev) * _root.lev * _root.lev) % b.bg.d._totalframes + 1); b.w1.d.gotoAndStop((_root.rax01 + _root.lev + _root.lev * _root.lev * (_root.rax21 + _root.lev) + (_root.rax11 + _root.lev) * _root.lev * _root.lev) % b.w1.d._totalframes + 1); b.w2.d.gotoAndStop((_root.rax02 + _root.lev + _root.lev * _root.lev * (_root.rax22 + _root.lev) + (_root.rax12 + _root.lev) * _root.lev * _root.lev) % b.w2.d._totalframes + 1); b.w3.d.gotoAndStop((_root.rax03 + _root.lev + _root.lev * _root.lev * (_root.rax23 + _root.lev) + (_root.rax13 + _root.lev) * _root.lev * _root.lev) % b.w3.d._totalframes + 1); b.w4.d.gotoAndStop((_root.rax04 + _root.lev + _root.lev * _root.lev * (_root.rax24 + _root.lev) + (_root.rax14 + _root.lev) * _root.lev * _root.lev) % b.w4.d._totalframes + 1); xenf = Math.round((gridxs - gridx) / gridv + 1.5); yenf = Math.round((gridys - gridy) / gridv + 1.5); gxe = xenf; gye = yenf; xenf *= gridmax; var grid = new flash.display.BitmapData(xenf, yenf, false, 0); var grid2 = new flash.display.BitmapData(xenf, yenf, false, 0); var tests = new flash.display.BitmapData(300, 300, false, 0); _root.g.gotoAndPlay(60); timer = []; alltimer = [0, 0, 0, 0, 0, 0, 0, 0, 0]; ballz = 0; ball = []; if (_root.chaps >= 5) { mux = 1.25; } else { mux = 1; } v1 = 13; v2 = 60 + 15 * Math.min(10, _root.chaps); v2 /= mux; p180 = 0.0174532925199433; p10 = 0.5235987755982988; v3 = 17; sizes = [5, 10, 8, v1, 16, 12, 0, v1, v1, 5, v1, v1, v1, v3, v3, v1, v1, v1, v3, 20, 40, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, 50, 0, v1, v1, v1, v1, v1, 35, v1, 35, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, 25, 25, 25, 25, 35, 27, 20, 0, 40, 25, v1, 40, 30, 20, v1, 35, v1, v1, 20, 20, 16, 55, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, 20, 30, 35, 35, 40, 25]; masses = [0, 5, 8 + _root.ups[4] * 2, 0, 6, 3, 0, 6, 6, 8, 5, 3, 3, 3, 4, 10, 6, 6, 3, 50, 50, 7, 7, 7, 10, 7, 7, 15, 20, 10, 10, 10, 10, 1, 10, 10, 70, 1, 10, 10, 10, 10, 20, 50, 15, 70, 30, 30, 30, 30, 30, 30, 30, 10, 10, 10, 30, 30, 10, 10, 10, 7, 30, 30, 30, 30, 30, 30, 40, 20, 0, 40, 30, 20, 30, 20, 10, 3, 100, 20, 3, 50, 30, 30, 100, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 5, 30, 30, 80, 38, 80, 100]; hps = [0, 10, 0, 0, 0, 0, 0, 0, 0, 10, 10, 10, 10, 3, 8, 15, 13, 13, 5, 22, 250, 15, 20, 20, 33, 20, 20, 15, 350, 10, 20, 10, 20, 0, 25, 25, 700, 0, 25, 25, 25, 20, 20, 550, 100, 530, v2, v2, v2 * 1.6, v2, v2, v2 * 0.5, v2, 20, 20, 25, 30, 40, 35, 20, 20, 10, 300, 240, 280, 400, 450, 110, 450, 350, 0, 60, 15, 8, 190, 75, 30, 12, 950, 140, 10, v2 * 3, v2 * 2, 100, 600, 10, 40, 40, 40, 40, 40, 40, 40, 40, 20, 40, 300, 200, 200, 250, 250, 300, 1000]; hard = [1.570796326794897, 0.1570796326794897, p10 * 5, p10, p10, p10 * 2, 0, 0, 0, p10 * 5, p10, p10, p10, 0, 0, p10, p10, p10, 0, 0, p10, p10, p10, p10, p10, p10, 0, p10, p10, 0, p10, p10, p10, 0, 0, p10, p10, 0, p10, p10, p10, p10, 0, p10, p10, 0, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, 0, p10, 0, 0, 0, 0, p10, p10, p10, 0, p10, p10, p10, p10, p10, p10, p10, 0, p10, 0, 0, 0, 0, 0, 0, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, 0, p10, p10, p10, p10, p10]; hard[85] = p10; hard[54] = 0; hps[88] = 20; hps[62] *= 1.5; hps[43] *= 1.15; hps[65] *= 1.25; hps[57] *= 1.55; hps[45] *= 1.22; hps[36] *= 0.85; hps[89] = 20; hps[85] *= 0.65; hps[86] *= 0.475; hps[102] *= 2; hps[92] *= 0.7; if (_root.hardmode) { hps[78] *= 1.45; } if (_root.chaps < 3) { hps[83] *= 0.75; hps[82] *= 0.75; } masses[21] = masses[23]; if (_root.locker[45]) { hps[78] *= 1.25; } for (e in hops) { hps[e] *= mux; } wb = []; sizes[61] = v3; sizes[80] = v3; hardx = []; hardy = []; for (e in hard) { v1 = hard[e]; siz = sizes[e]; if (e == 14 || e == 13) { siz = 5; } if (v1 > 0) { hardx[e] = []; hardy[e] = []; a = 0; while (a < 6.283185307179586) { hardx[e][hardx[e].length] = Math.sin(a) * siz; hardy[e][hardy[e].length] = Math.cos(a) * siz; a += v1; } } } sizes[28] = 18; it1 = [true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true]; watz = 0; flyer = 0; hearts = []; masks = []; if (_root.chaps != 9 && (_root.chala <= 0 || _root.chala == 10)) { _root.heaven = _root.so.data.wins >= 10; } else { _root.heaven = false; } noetern = false; spuz = 0; if (_root.specol[_root.lev] && _root.lev != _root.chamb && (_root.lev != _root.bossl || _root.chaps != 6 && _root.chaps < 8)) { gospo = true; if (!_root.beenlev2[_root.lev]) { _root.specol[_root.lev] = []; _root.alto[_root.lev] = []; } } else { _root.specol[_root.lev] = []; _root.alto[_root.lev] = []; } parz = 0; par = []; createEmptyMovieClip('blorz', 297); hitc = 0; hitcc = 0; lasth = 0; bossdmg = true; org = new flash.display.BitmapData(40, 40, true, 13421772); v3 = 1; v2 = 20; v1.scale(v3, v3); v1.translate(v2, v2); org.draw(shaz, v1); f1 = 75; trg = createEmptyMovieClip('bggg', 290); bgg = new flash.display.BitmapData(gridxs, gridys - f1, true, 0); trg.attachBitmap(bgg, 1); trg._xscale = 100 / hdx; trg._yscale = trg._xscale; trg._y = f1; trg = createEmptyMovieClip('splala', 296); splat = new flash.display.BitmapData(gridxs, gridys, true, 0); trg.attachBitmap(splat, 1); trg._xscale = 100 / hdx; trg._yscale = trg._xscale; trg._alpha = 70; trg = createEmptyMovieClip('guta', 298); gut = new flash.display.BitmapData(gridxs, gridys, true, 0); trg.attachBitmap(gut, 1); trg._xscale = 100 / hdx; trg._yscale = trg._xscale; poi = new flash.geom.Point(0, 0); ref = []; mapd(); sk = _root.sk; webs = []; upa(); mapd(); if (levz.length <= 1) { levz = new Array(200); if (_root.whatstart) { _root.whatstart = false; } } kogs = []; itb = 0; lastcraf = -30; if (_root.playerx <= 0 || _root.newstartt) { _root.playerx = 320; _root.playery = 400; } player = create(_root.playerx, _root.playery, 0, 0, 0, 0, 1); trg = player; if (_root.eto >= 7) { _root.etol = true; _root.playcol[0] = 5; _root.playcol[1] = 5; _root.playcol[2] = 5; _root.locker[113] = true; } if (_root.getup) { _root.getup = false; player.d.gotoAndStop(5); } if (_root.tell) { _root.tell = false; player.d.gotoAndStop(8); } player.mhp = _root.mhp; player.hp = _root.hp; if (_root.lev == _root.bossl && !firsttime) { if (trixx(53)) { ++player.hp; } } Mouse.removeListener(); if (mouseListener == undefined) { mouseListener = new Object(); mouseListener.onMouseDown = function () { md = true; }; mouseListener.onMouseUp = function () { md = false; }; } Mouse.addListener(mouseListener); unpause = true; _root.pinfo = 2; fra = 0; player.fire = 0; player.fire1 = 0; ayenf = 0; axenf = 0; sob = 1; _root.st2._visible = false; _root.hud.st1._visible = _root.st2._visible; olfy = 0; olfx = 0; f1 = 440; switch (_root.door * 1) { case 0: olfx = -640; break; case 2: olfx = 640; break; case 1: olfy = f1; break; case 3: olfy = -f1; } _x = olfx; _y = olfy; shutdoor = 1; brr = []; brr2 = []; gibb = 0; if (_root.tex != undefined) { wtftex = _root.tex; } gameover = 0; justnow = 9; itc = [0, 6, 3, 6, 1, 2, 1, 3, 0, 3, 3, 0, 2, 4, 0, 3, 2, 3, 3, 0, 0, 0, 0, 0, 0, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 6, 6, 6, 3, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 0, 6, 0, 0, 3, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 4]; itc[96] = 3; itc[106] = 6; itc[105] = 1; itc[107] = 1; itc[118] = 6; itc[131] = 2; itc[126] = 6; itc[120] = 4; itc[135] = 2; itc[141] = 6; itc[152] = 2; wtfps2 = getTimer(); wtfps = 35; wtfpsh = true; wtff = 60; _root.mapa._visible = true; _root.hud._visible = true; if (_root.shopl == _root.lev) { _root.shopa = true; } if (_root.lib == _root.lev) { _root.liba = true; } if (_root.boner == _root.lev) { _root.bona = true; } if (_root.boner2 == _root.lev) { _root.bona2 = true; } secol = 0; minions = 0; flyby = 0; mom = []; worm = mom; mags = worm; mhelps = 0; if (random(2) == 0) { } ffly = 0; fiz = 0; etux = 0; _root.hud.hardon._visible = _root.hardmode; _root.hud.hardon.cacheAsBitmap = true; _root.hud.weap.cacheAsBitmap = true; _root.hud.cacher.cacheAsBitmap = true; f; nextbo = true; emosound = true; if (_root.lasth) { lasth = 50; } nospo = -10; flyby2 = 0; flyby3 = 0; flyby4 = 0; playsave = -1; unic = -1; demon = -1; plo = 1; lastxy = 0; lastxx = 0; if (_root.chaf) { player.fire = -10; chaf = -20; } tictic = _root.itc; nocharge = 0; chamb = 0; mhpp = 0; ahpp = 0; red = 0; blue = 0; shiz = []; if (_root.ups[122] && player.hp < 1) { player._visible = false; } } } movieClip 6767 { } movieClip 6769 { } movieClip 6770 { } movieClip 6771 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6773 { } movieClip 6774 { } movieClip 6775 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6777 { } movieClip 6778 { } movieClip 6779 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6781 { } movieClip 6782 { } movieClip 6783 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6785 { } movieClip 6786 { } movieClip 6787 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6789 { } movieClip 6790 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6792 { } movieClip 6793 { } movieClip 6794 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6796 { } movieClip 6797 { } movieClip 6798 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6800 { } movieClip 6801 { } movieClip 6802 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6804 { } movieClip 6805 { } movieClip 6806 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6817 { } movieClip 6818 { frame 34 { _parent.gotoAndStop(1); } } movieClip 6820 { } movieClip 6821 { } movieClip 6822 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6824 { } movieClip 6825 { } movieClip 6826 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6828 { } movieClip 6830 { } movieClip 6831 { frame 32 { _parent.gotoAndStop(1); } } movieClip 6832 { frame 1 { stop(); } } movieClip 6834 { frame 124 { stop(); _visible = false; } } frame 3 { _root.goblack(); } movieClip 6840 { frame 1 { f1 = Math.round(_root.chaps / 2); _root.tex = f1; gotoAndStop(f1); } } movieClip 6842 { } movieClip 6844 { } movieClip 6846 { } movieClip 6849 { } movieClip 6852 { } movieClip 6853 { frame 1 { gotoAndStop(_root.skiner + 1); } } movieClip 6855 { } movieClip 6858 { } movieClip 6867 { } movieClip 6870 { } movieClip 6872 { } movieClip 6874 { } movieClip 6878 { } movieClip 6880 { } movieClip 6881 { } movieClip 6883 { } movieClip 6884 { } movieClip 6886 { } movieClip 6888 { } movieClip 6890 { } movieClip 6892 { } movieClip 6894 { } movieClip 6896 { } movieClip 6898 { } movieClip 6899 { } movieClip 6901 { } movieClip 6903 { } movieClip 6905 { } movieClip 6907 { } movieClip 6908 { } movieClip 6912 { } movieClip 6918 { } movieClip 6919 { } movieClip 6930 { } movieClip 6933 { } movieClip 6935 { } movieClip 6940 { } movieClip 6948 { } movieClip 6950 { } movieClip 6991 { } movieClip 7001 { } movieClip 7028 { } movieClip 7033 { } movieClip 7040 { } movieClip 7041 { } movieClip 7062 { } movieClip 7063 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 7064 { frame 1 { _root.soundy('levelbumper.mp3', 100); } frame 2 { if (_root.locker[4]) { f1.gotoAndStop(2); } else { f1.gotoAndStop(1); } f2.gotoAndStop(_root.chaps); f1.d.gotoAndStop(_root.chaps); } frame 224 { _root.gotoAndStop('game'); } } frame 4 { goblack(); _root.olda._visible = false; _root.door = undefined; } movieClip 7066 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 7068 { frame 1 { gotoAndStop(_root.skiner + 1); } } movieClip 7070 { } movieClip 7071 { frame 20 { _root.soundy('bossintro.mp3', 100); } frame 158 { _root.gotoAndStop('game'); } } frame 5 { _root.goblack(); } frame 5 { _root.newstartt = true; } movieClip 7075 { } movieClip 7077 { } movieClip 7078 { } movieClip 7079 { } button 7084 { on (release, keyPress '<Space>') { if (pos == 4) { } else { if (pos == 1) { achsh(); } else { if (_parent.ex._currentframe == 2) { _root.nooo(); } else { if (xp > 0) { pos = undefined; } else { if (xp == 0) { pos = 3; } else { if (_root.skiner == 0 or _root.locker[_root.skiner] && _root.skiner < 5 or _root.skiner == 5 && _root.locker[54] or _root.skiner == 6 && _root.locker[88]) { _root.chala = undefined; _root.darky(150); } } } } } } } } movieClip 7091 { } movieClip 7092 { } button 7096 { on (release) { pos = 2; } } button 7099 { on (release) { pos = 1; } } button 7100 { on (release) { pos = 5; } } button 7104 { on (release) { _root.soundy('character_select_right.wav'); gotoAndStop(3); } } button 7105 { on (release) { _root.soundy('character_select_right.wav'); gotoAndStop(1); } } movieClip 7106 { frame 1 { stop(); _parent.itz(); } frame 3 { _parent.itz(); } } movieClip 7112 { } movieClip 7115 { } movieClip 7118 { } button 7119 { on (release) { if (_parent.pos == 3) { --skiner; _root.soundy('character_select_left.wav'); } } } button 7120 { on (release) { if (_parent.pos == 3) { ++skiner; _root.soundy('character_select_right.wav'); } } } movieClip 7123 { } movieClip 7125 { } movieClip 7127 { frame 1 { if (_root.locker[38]) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 7130 { } movieClip 7133 { } movieClip 7136 { } movieClip 7139 { } movieClip 7141 { } movieClip 7144 { } movieClip 7145 { frame 1 { stop(); } } movieClip 7147 { } movieClip 7150 { } movieClip 7153 { } button 7157 { on (release) { rander(); } } movieClip 7159 { } movieClip 7160 { frame 1 { function rander() { if (!done) { done = true; f2 = skiner; if (rand.length > 1) { f1 = rand[random(rand.length)]; skiner = f1; _parent.pos = 3; _root.chala = undefined; _root.darky(150); _root.tex = rand + ' ' + skiner; } } } function onEnterFrame() { if (Key.isDown(82)) { if (nor) { rander(); nor = false; } } else { nor = true; } if (!_root.locker[41]) { chars = 6; } else { chars = 7; } if (chars == 6) { while (skiner > 5) { skiner -= 6; } while (skiner < 0) { skiner += 6; } } else { while (skiner > 6) { skiner -= 7; } while (skiner < 0) { skiner += 7; } } f2 = 360 / chars; _root.skiner = skiner; if (skiner == 5) { if (chars == 6) { _root.skiner = 6; } else { _root.skiner = 4; } } else { if (skiner == 4) { _root.skiner = 5; } } xenf = rp + rbew * 3 - skiner * f2; while (xenf >= 180) { xenf -= 360; } while (xenf >= 180) { xenf -= 360; } while (rp < 180) { rp += 360; } rbew -= xenf * 0.1; rbew *= 0.8; rp += rbew; inc.gotoAndStop(skiner + 1); f1 = _root.locker[skiner] && skiner != 4 or skiner == 4 && _root.locker[54]; if (_root.skiner == 6) { inc.gotoAndStop(7); f1 = _root.locker[88]; } if (f1) { inc.d.gotoAndStop(1); } else { inc.d.gotoAndStop(2); } rand = [0]; e = 0; while (e < chars) { trg = this['i' + e]; if (e == 5) { if (chars == 6) { trg = i6; } else { trg = i4; } } else { if (e == 4) { trg = i5; } } if (chars == 6) { f1 = [0, 3, 2, 1, 4, 5]; o = -f1[e]; } else { o = e; f1 = [0, 3, 2, 1, 4, 5, 6]; o = -f1[e]; } f1 = ((rp + o * f2) / 180) * Math.PI; trg._x = -Math.sin(f1) * 100 + 100; f1 = Math.cos(f1) * 25 + 65; trg._y = f1; trg._yscale = f1; trg._xscale = trg._yscale; trg._alpha = trg._yscale; trg._alpha += 20; trg.swapDepths(Math.round(trg._y) * 10 + e); if (chars == 6) { f1 = [0, 3, 2, 1, 54, 88]; } else { f1 = [0, 3, 2, 1, 54, 41, 88]; } if (_root.locker[f1[e]]) { trg.gotoAndStop(1); rand.push(-o); } else { trg.gotoAndStop(2); } ++e; } } rp = 360; skiner = 0; rbew = 0; } } button 7164 { on (release) { if (pos == 3) { if (_root.skiner == 0 or _root.locker[_root.skiner] && _root.skiner < 5 or _root.skiner == 5 && _root.locker[54] or _root.skiner == 6 && _root.locker[88]) { _root.chala = undefined; _root.darky(150); } } } } button 7167 { on (release) { if (pos == 0) { _root.creskip = true; if (_root.so.data.wins > 0) { _root.gotoAndStop(21); } else { _root.gotoAndStop(20); } } else { pos = 0; } } } button 7168 { on (release) { pos = undefined; } } button 7174 { on (release) { _root.gotoAndStop(22); } } movieClip 7175 { } button 7180 { on (release) { _root.gotoAndStop(23); } } movieClip 7181 { } button 7186 { on (release) { _root.gotoAndStop(24); } } movieClip 7187 { } button 7191 { on (release) { _root.gotoAndStop(9); } } button 7195 { on (release) { _root.gotoAndStop(10); } } button 7199 { on (release) { _root.gotoAndStop(11); } } button 7203 { on (release) { _root.gotoAndStop(12); } } button 7207 { on (release) { _root.gotoAndStop(13); } } button 7211 { on (release) { _root.gotoAndStop(14); } } button 7215 { on (release) { _root.gotoAndStop(15); } } button 7219 { on (release) { _root.gotoAndStop(16); } } button 7223 { on (release) { _root.gotoAndStop(17); } } button 7227 { on (release) { _root.gotoAndStop(18); } } button 7231 { on (release) { _root.gotoAndStop(19); } } movieClip 7232 { frame 1 { stop(); } } movieClip 7244 { } movieClip 7245 { } movieClip 7246 { } movieClip 7247 { } movieClip 7248 { } button 7252 { on (release) { if (_root.linx) { _parent.ex.gotoAndStop(3); } else { _parent.ex.nextFrame(); } } } movieClip 7254 { } movieClip 7256 { } button 7261 { on (release) { nextFrame(); } } movieClip 7262 { frame 1 { stop(); } } button 7266 { on (release) { achsh(); }




http://swfchan.com/48/237163/info.shtml
Created: 20/9 -2020 02:51:24 Last modified: 20/9 -2020 02:51:24 Server time: 22/12 -2024 03:35:54