Skip to content

Instantly share code, notes, and snippets.

@elucidater
Created October 15, 2014 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elucidater/7e479b286c676bd85f4e to your computer and use it in GitHub Desktop.
Save elucidater/7e479b286c676bd85f4e to your computer and use it in GitHub Desktop.
Latest remix code 15/10/2014
This file has been truncated, but you can view the full file.
// Action script...
// [Action in Frame 1]
function horsch(trg)
{
if (_root.it == 141)
{
trg.gotoAndStop(2);
}
else
{
trg.gotoAndStop(1);
} // end else if
} // End of the function
function sloter(trg)
{
trg.gotoAndStop(1);
trg2 = trg._parent._parent._parent;
if (trg2.s != 5)
{
trg2 = trg._parent._parent._parent._parent;
} // end if
if (trg2.col == 41)
{
trg.gotoAndStop(2);
} // end if
} // End of the function
function pffx(f1)
{
f2 = _root.levz[f1 + 1] + _root.levz[f1 - 1] + _root.levz[f1 + 10] + _root.levz[f1 - 10];
if (_root.levz[f1] == 0 && f2 < 2 && f5 < f6 || f1 == 35)
{
_root.levz[f1] = 1;
acts2.push(f1);
++f8;
if (f1 != 35)
{
++f5;
} // end if
} // end if
} // End of the function
function hat(f1)
{
var _loc2 = 0;
_root.hat[f1] = true;
switch (f1)
{
case 10:
case 11:
case 12:
case 31:
case 37:
case 40:
{
_loc2 = 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:
{
_loc2 = 5;
break;
}
case 2:
case 5:
case 20:
case 30:
case 34:
case 52:
case 53:
case 58:
{
_loc2 = 3;
break;
}
case 3:
case 8:
case 22:
case 36:
case 45:
case 56:
case 60:
case 61:
{
_loc2 = 4;
break;
}
case 26:
case 24:
case 27:
case 33:
case 35:
case 39:
case 42:
case 44:
case 51:
case 55:
case 58:
{
_loc2 = 1;
break;
}
case 13:
case 14:
case 15:
case 17:
case 18:
case 25:
case 46:
case 47:
case 49:
case 59:
{
_loc2 = 0;
break;
}
} // End of switch
_root.hatmode[_loc2] = f1;
} // End of the function
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;
} // end if
} // end if
if (f1 == 3)
{
trg.gotoAndStop(1);
}
else if (f1)
{
if (altboss == 2)
{
trg.gotoAndStop(2);
}
else
{
trg.gotoAndStop(1);
} // end else if
}
else if (altboss == 2)
{
trg.gotoAndStop(3);
}
else if (altboss)
{
trg.gotoAndStop(2);
}
else
{
trg.gotoAndStop(1);
} // end else if
} // End of the function
function dmgdo()
{
var _loc2 = 0;
if (doub)
{
_loc2 = _loc2 + 2;
} // end if
if (ups[7])
{
++_loc2;
} // end if
if (ups[90])
{
++_loc2;
} // end if
if (ups[109])
{
_loc2 = _loc2 + _root.coins * 0.040000;
} // end if
if (ups[231])
{
_loc2 = _loc2 + _root.playsp * 0.300000;
} // end if
if (ups[212])
{
_loc2 = _loc2 + 1.800000;
} // end if
if (ups[212])
{
_loc2 = _loc2 - _root.hp * 0.170000;
} // end if
if (ups[122] > 0)
{
_loc2 = _loc2 + ups[122] * ups[122] * 1.500000;
} // end if
_loc2 = _loc2 + (ups[50] + ups[51] + ups[70] + ups[79] + (ups[80] + ups[4] + ups[197]) * 0.500000 + (ups[12] + ups[101] + ups[121] + ups[138] + ups[193] + ups[183] + ups[221] + ups[189]) * 0.300000);
if (ups[120])
{
_loc2 = _loc2 * 0.900000;
_loc2 = _loc2 - 0.400000;
} // end if
if (demon > 0)
{
_loc2 = _loc2 + 0.700000;
} // end if
if (rage != 1)
{
_loc2 = _loc2 + (rage - 1);
} // end if
if (ups[154])
{
if (sob == -1 || _root.hat[11] && random(2) == 0)
{
_loc2 = _loc2 + 2;
} // end if
} // end if
if (ups[69] && !ups[118])
{
chal = Math.max(1, Math.min(5, 1 + (fra - chaf) / 10) * 1.800000 - 2);
_loc2 = _loc2 + (chal - 1) * 1.300000;
} // end if
_loc2 = _loc2 + razor * 0.600000;
_loc2 = 3.500000 * Math.sqrt(1 + _loc2 * 1.200000);
if (ups[169])
{
if (ups[2] == 1 || ups[153])
{
_loc2 = _loc2 + 5;
}
else
{
_loc2 = _loc2 + 4;
_loc2 = _loc2 * 2;
} // end if
} // end else if
var _loc3 = [0, 0, 0.200000, 0.350000, 0.050000, -0.250000, 0, 0];
_loc2 = _loc2 * (1 + _loc3[_root.skiner]);
_root.firrb = _loc2;
if (trixx(35))
{
_loc2 = _loc2 + 2;
} // end if
if (ups[182])
{
_loc2 = _loc2 * 2.300000;
++_loc2;
} // end if
if (_root.it == 192)
{
if (_root.apple == 1)
{
_loc2 = _loc2 * 1.500000;
} // end if
} // end if
if (_root.it == 192)
{
if (_root.apple == 0)
{
_loc2 = _loc2 * 0.700000;
} // end if
} // end if
if (ups[209])
{
_loc2 = _loc2 * 1.300000;
++_loc2;
} // end if
if (ups[152])
{
_loc2 = _loc2 * 0.650000;
} // end if
return (_loc2);
} // End of the function
function omgz(f1)
{
if (_root.IntRndFn(10, 3) != 0)
{
_root.ittt.push(f1);
}
else
{
_root.ittt7.push(f1);
} // end else if
} // End of the function
function itemzz()
{
_root.junxx = [65, 64, 63, 62, 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);
} // end if
if (_root.locker[74])
{
_root.junxx.push(47);
} // end if
if (_root.locker[72])
{
_root.junxx.push(49);
} // end if
if (_root.locker[77])
{
_root.junxx.push(50);
} // end if
if (_root.locker[78])
{
_root.junxx.push(42);
} // end if
if (_root.locker[81])
{
_root.junxx.push(29);
} // end if
if (_root.locker[84])
{
} // end if
if (_root.locker[91])
{
_root.junxx.push(54);
} // end if
if (_root.locker[92])
{
_root.junxx.push(55);
} // end if
if (_root.locker[93])
{
_root.junxx.push(56);
} // end if
if (_root.locker[94])
{
_root.junxx.push(57);
} // end if
if (_root.locker[95])
{
_root.junxx.push(58);
} // end if
if (_root.locker[96])
{
_root.junxx.push(59);
} // end if
if (_root.locker[97])
{
_root.junxx.push(60);
} // end if
if (_root.locker[98])
{
_root.junxx.push(61);
} // end if
_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, 213, 207];
_root.ittt.push(222, 216, 209, 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, 210, 224, 225, 228);
_root.ittt2 = [22, 23, 24, 25, 26, 27 + _root.IntRndFn(10, 2), 29 + _root.IntRndFn(10, 3), 29 + _root.IntRndFn(10, 3), 32, 51, 141, 165, 176, 193, 194, 195, 196, 197, 198, 219];
_root.ittt3 = [217, 204, 205, 11, 16, 42, 77, 161, 227];
_root.ittt4 = [221, 54, 54, 60, 60, 64, 21, 21, 139, 156, 147, 195];
_root.ittt6 = [38, 27 + _root.IntRndFn(10, 2), 29 + _root.IntRndFn(10, 3), 26, 1, 50];
_root.ittt7 = [214, 8, 67, 79, 80, 81, 115, 118, 133, 145, 159, 212, 226];
_root.ittt8 = [26, 17, 19, 21, 44, 70, 14, 13];
_root.ittt9 = [218, 58, 65, 192];
_root.ittt10 = [223, 7, 33, 101, 146, 142, 173, 182, 184, 185, 208, 211, 38, 215, 229];
if (_root.IntRndFn(10, 2) == 0)
{
_root.ittt3.push(11, 77);
} // end if
if (_root.IntRndFn(10, 2) == 0)
{
_root.ittt10.push(184);
_root.ittt4.push(144);
}
else
{
_root.ittt4.push(177);
} // end else if
_root.ittt6.push(211);
_root.ittt6.push(208);
if (_root.IntRndFn(10, 2) == 0)
{
_root.ittt6.push(179);
_root.ittt3.push(190);
} // end if
if (_root.locker[65])
{
_root.ittt.push(166);
} // end if
if (_root.locker[66])
{
_root.ittt.push(162);
} // end if
if (_root.locker[67])
{
_root.ittt.push(188);
} // end if
if (_root.locker[69])
{
_root.ittt.push(172);
} // end if
if (_root.locker[70])
{
_root.ittt.push(174);
} // end if
if (_root.locker[71])
{
_root.ittt7.push(157);
} // end if
if (_root.locker[73])
{
_root.ittt.push(186);
} // end if
if (_root.locker[75])
{
_root.ittt3.push(175);
} // end if
if (_root.locker[76])
{
_root.ittt4.push(164);
} // end if
if (_root.locker[79])
{
_root.ittt7.push(134);
} // end if
if (_root.locker[80])
{
_root.ittt3.push(168);
} // end if
if (_root.locker[82])
{
_root.ittt.push(189);
} // end if
if (_root.locker[83])
{
_root.ittt.push(171);
} // end if
if (_root.locker[86])
{
_root.ittt.push(170);
} // end if
if (_root.locker[85])
{
_root.ittt.push(187);
} // end if
if (_root.IntRndFn(10, 2) == 0)
{
_root.ittt.push(17);
} // end if
if (_root.IntRndFn(10, 3) != 0 && _root.locker[48])
{
if (_root.IntRndFn(10, 3) == 0)
{
_root.ittt7.push(35);
}
else
{
_root.ittt.push(35);
} // end else if
_root.ittt9.push(35);
} // end if
if (_root.IntRndFn(10, 2) == 0)
{
_root.ittt4.push(116);
} // end if
if (_root.IntRndFn(10, 2) == 0)
{
_root.ittt4.push(63);
} // end if
if (_root.IntRndFn(10, 5) == 0)
{
_root.ittt7.push(68);
}
else
{
_root.ittt.push(68);
} // end else if
if (_root.IntRndFn(10, 3) == 0)
{
_root.ittt7.push(82);
} // end if
if (_root.IntRndFn(10, 3) == 0)
{
_root.ittt7.push(84);
}
else if (_root.IntRndFn(10, 2) == 0)
{
_root.ittt3.push(84);
} // end else if
if (_root.locker[3] && _root.skiner != 3)
{
if (_root.IntRndFn(10, 3) == 0)
{
_root.ittt.push(34);
}
else if (_root.IntRndFn(10, 2) == 0)
{
_root.ittt3.push(34);
}
else
{
_root.ittt7.push(34);
} // end else if
_root.ittt9.push(34);
} // end if
if (_root.locker[1])
{
_root.ittt.push(45);
} // end if
if (_root.locker[2])
{
if (_root.IntRndFn(10, 3) != 0)
{
_root.ittt.push(46);
}
else
{
_root.ittt7.push(46);
} // end if
} // end else if
if (_root.locker[7])
{
_root.ittt4.push(78);
_root.ittt9.push(78);
} // end if
if (_root.locker[8] && _root.IntRndFn(10, 3) != 0)
{
_root.ittt3.push(20);
} // end if
if (_root.locker[9] && _root.IntRndFn(10, 3) != 0)
{
_root.ittt7.push(83);
} // end if
if (_root.locker[10])
{
if (_root.IntRndFn(10, 3) != 0)
{
_root.ittt.push(74);
}
else
{
_root.ittt7.push(74);
} // end if
} // end else if
if (_root.locker[11])
{
_root.ittt.push(52);
} // end if
if (_root.locker[12])
{
_root.ittt.push(36);
} // end if
if (_root.locker[13])
{
_root.ittt3.push(89);
} // end if
if (_root.locker[14])
{
_root.ittt.push(91);
} // end if
if (_root.locker[18])
{
} // end if
if (_root.locker[19])
{
_root.ittt.push(86);
} // end if
if (_root.locker[20])
{
_root.ittt.push(87);
} // end if
if (_root.locker[21])
{
_root.ittt.push(88);
} // end if
if (_root.locker[25] && _root.IntRndFn(10, 3) != 0)
{
_root.ittt2.push(92);
} // end if
if (_root.locker[26])
{
_root.ittt.push(98);
_root.ittt10.push(98);
} // end if
if (_root.locker[27])
{
_root.ittt.push(94);
} // end if
if (_root.locker[28])
{
_root.ittt.push(95);
} // end if
if (_root.locker[33])
{
_root.ittt.push(93);
} // end if
if (_root.locker[29])
{
if (_root.IntRndFn(10, 3) != 0)
{
_root.ittt.push(97);
}
else
{
_root.ittt7.push(97);
} // end else if
_root.ittt9.push(97);
} // end if
if (_root.locker[30])
{
_root.ittt.push(99);
} // end if
if (_root.locker[31])
{
_root.ittt.push(100);
} // end if
if (_root.locker[32])
{
_root.ittt.push(96);
} // end if
if (_root.locker[34])
{
_root.ittt.push(101);
} // end if
if (_root.locker[36])
{
_root.ittt.push(102);
} // end if
if (_root.locker[37])
{
if (_root.IntRndFn(10, 3) != 0)
{
_root.ittt.push(103);
}
else
{
_root.ittt7.push(103);
} // end if
} // end else if
if (_root.locker[40])
{
if (_root.IntRndFn(10, 3) != 0)
{
_root.ittt.push(104);
}
else
{
_root.ittt7.push(104);
} // end if
} // end else if
if (_root.locker[38])
{
_root.ittt.push(105);
} // end if
if (_root.locker[35])
{
_root.ittt.push(106);
} // end if
if (_root.locker[39])
{
_root.ittt.push(107);
} // end if
if (_root.locker[43])
{
_root.ittt.push(108);
} // end if
if (_root.locker[44])
{
if (_root.IntRndFn(10, 3) != 0)
{
_root.ittt.push(109);
}
else
{
_root.ittt7.push(109);
} // end if
} // end else if
if (_root.locker[47])
{
_root.ittt.push(110);
} // end if
if (_root.locker[46])
{
_root.ittt.push(111);
} // end if
if (_root.locker[55])
{
omgz(114);
} // end if
if (_root.locker[56])
{
_root.ittt.push(117);
} // end if
if (_root.locker[57])
{
omgz(122);
} // end if
if (_root.locker[58])
{
omgz(126);
} // end if
if (_root.locker[59])
{
_root.ittt.push(112);
_root.ittt10.push(112);
} // end if
if (_root.locker[60])
{
_root.ittt.push(131);
} // end if
if (_root.locker[61])
{
omgz(113);
} // end if
if (_root.locker[62])
{
omgz(127);
} // end if
if (_root.locker[63])
{
omgz(123);
_root.ittt9.push(123);
} // end if
for (z in _root.ittt2)
{
for (i = 0; i < _root.ittt.length; i++)
{
if (_root.ittt2[z] == _root.ittt[i])
{
_root.ittt.splice(i, 1);
break;
} // end if
} // end of for
} // end of for...in
for (z in _root.ittt4)
{
for (i = 0; i < _root.ittt.length; i++)
{
if (_root.ittt4[z] == _root.ittt[i])
{
_root.ittt.splice(i, 1);
break;
} // end if
} // end of for
} // end of for...in
for (z in _root.ittt6)
{
for (i = 0; i < _root.ittt.length; i++)
{
if (_root.ittt6[z] == _root.ittt[i])
{
_root.ittt.splice(i, 1);
break;
} // end if
} // end of for
} // end of for...in
} // End of the function
function picc(f2)
{
if (_root.IntRndFn(1151, 2) == 0)
{
_root.picers[_root.IntRndFn(1151, 6)] = f2;
} // end if
} // End of the function
function newstats()
{
_root.picers = [1, 2, 3, 4, 5, 6];
picc(101);
picc(102);
picc(103);
_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;
} // end if
_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;
} // end if
_root.coins = _root.bombs = _root.keys = 0;
_root.minz = [0, 1, 2, 3, 5, 6];
_root.sk = _root.skiner + 1;
if (_root.skiner == 7)
{
_root.classit = true;
hat(64);
_root.sk = 1;
} // end if
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 = _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;
break;
}
} // End of switch
_root.hp = 1000;
_root.wiptz = 0;
_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;
if (_root.chala == 2)
{
_root.luck = -2;
} // end if
_root.altb3 = false;
if (_root.skiner == 2)
{
_root.firrr = _root.firrr - 5;
} // end if
if (_root.skiner == 2)
{
_root.firrr = _root.firrr - 5;
_root.firra = _root.firra - 2;
} // end if
var _loc2 = [0, 0, 0.200000, 0.350000, 0.050000, -0.250000, 0];
v1 = 1 + _loc2[_root.skiner];
_root.firrb = 3.500000 * 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.maxish = 0;
_root.Lokiii = 0;
_root.Purrr = 0;
_root.shitpenny = false;
_root.us = false;
itemzz();
} // End of the function
function ender()
{
var _loc1 = random(endrooms.length);
f2 = endrooms[_loc1];
endrooms.splice(_loc1, 1);
return (f2);
} // End of the function
function nch(f5)
{
if (_root.levz[f5])
{
f12 = true;
}
else
{
f12 = 2;
f4 = false;
} // end else if
if (f5 == _root.bossl || f5 == _root.bossl2 || f5 == _root.hide2)
{
f12 = false;
f4 = false;
} // end if
if (f12 && f12 != 2)
{
for (z in endrooms)
{
if (endrooms[z] == f5)
{
f12 = false;
} // end if
} // end of for...in
} // end if
if (f5 == _root.hide)
{
f12 = false;
f4 = false;
} // end if
return (f12);
} // End of the function
function ncheck1(f5)
{
return (nch(f5 + 1) && nch(f5 - 1) && nch(f5 + 10) && nch(f5 - 10));
} // End of the function
function nxx(f1)
{
if (_root.levz[f1] > 0)
{
return (1);
}
else
{
return (0);
} // end else if
} // End of the function
function ncheck(f5)
{
return (nxx(f5 + 1) + nxx(f5 - 1) + nxx(f5 + 10) + nxx(f5 - 10));
} // End of the function
function bosschoose()
{
if (_root.chaps % 2 == 0)
{
_root.altb3 = true;
} // end if
if (_root.chaps % 2 == 1)
{
_root.horsem = _root.locker[5];
_root.altb = true;
_root.altb2 = _root.chaps < 4;
_root.switchero = _root.chaps < 4 && _root.IntRndFn(1, 2);
_root.swww = _root.chaps + 1;
} // end if
f1 = "b" + Math.min(8, _root.chaps) + "-" + _root.IntRndFn(1, 5);
_root.bosss = _root.chaps;
_root.horse = false;
_root.altboss = false;
altb = [0, 34, 37, 29, 26, 30 + _root.IntRndFn(1, 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";
} // end else if
}
else if (_root.horsem && _root.IntRndFn(1, 5) == 0)
{
_root.horse = true;
_root.horsem = false;
f1 = Math.round(_root.chaps / 2);
_root.bosss = f1 + 8;
if (_root.IntRndFn(1, 10) == 0)
{
f1 = 5;
_root.bosss = 22;
} // end if
f1 = "h" + f1;
}
else if (_root.locker[88] && _root.chaps == 7 && _root.IntRndFn(1, 3) == 0)
{
if (_root.IntRndFn(1, 2) == 0)
{
_root.bosss = 38;
}
else
{
_root.bosss = 41;
} // end else if
}
else if (_root.demonz == 1 && _root.IntRndFn(1, 10) == 0)
{
_root.demonz = 2;
_root.bosss = 23;
f1 = "demon";
}
else if (_root.chaps == 7 && _root.IntRndFn(1, 3) == 0)
{
f1 = [30, 33];
_root.bosss = f1[_root.IntRndFn(1, f1.length)];
}
else if (_root.altb3 && _root.altchap && _root.IntRndFn(1, 4) == 0 && _root.chaps < 6)
{
_root.altb3 = false;
f1 = Math.round(_root.chaps / 2 - 1.500000);
if (_root.IntRndFn(1, 2) == 0)
{
f2 = [28, 36];
}
else
{
f2 = [32, 27];
} // end else if
_root.bosss = f2[f1];
}
else if (_root.altb && _root.IntRndFn(1, 5) == 0)
{
_root.altb = false;
f1 = Math.round(_root.chaps / 2);
_root.bosss = f1 + 12;
f1 = "a" + f1 + "-" + _root.IntRndFn(1, 3);
if (_root.altchap && _root.chaps == 1)
{
} // end if
}
else if (_root.altb2 && _root.IntRndFn(1, 4) == 0 && (_root.chap > 2 || !_root.altchap))
{
_root.altb2 = false;
f1 = Math.round(_root.chaps / 2) + 4;
_root.bosss = f1 + 12;
f1 = "a" + f1 + "-" + _root.IntRndFn(1, 3);
}
else if (_root.switchero)
{
f1 = _root.swww;
_root.bosss = f1;
if (_root.altchap)
{
_root.bosss = altb[_root.bosss];
} // end if
f1 = "b" + Math.min(8, f1) + "-" + _root.IntRndFn(1, 5);
}
else
{
_root.bosss = _root.chaps;
if (_root.altchap)
{
_root.bosss = altb[_root.bosss];
} // end if
f1 = "b" + Math.min(8, _root.bosss) + "-" + _root.IntRndFn(1, 5);
} // end else if
} // end else if
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 + "-" + _root.IntRndFn(1, 4);
for (e in f6)
{
if (_root.bosss == f6[e])
{
_root.altboss = true;
if (_root.bosss == 32 || _root.bosss == 27)
{
_root.altboss = 2;
} // end if
if (_root.bosss == 38)
{
f1 = "h3";
} // end if
} // end if
} // end of for...in
} // end if
if (_root.IntRndFn(1, 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;
break;
}
} // End of switch
} // end if
} // end if
if (_root.bosss == 8 && _root.locker[45])
{
_root.bosss = 25;
} // end if
_root.swww = _root.chaps;
} // End of the function
function sams()
{
if (_root.beenlev[_root.boner] != 2 && _root.chaps != 1 && _root.boner != undefined)
{
++_root.samer;
} // end if
if (_root.beenlev[_root.boner2] != 2 && _root.double && _root.chaps != 1 && _root.boner2 != undefined)
{
++_root.samer;
} // end if
} // End of the function
function hider()
{
if (!_root.hider)
{
_root.mmus = _root.soundy("secret room find.mp", 100);
_root.hider = true;
} // end if
} // End of the function
function hider2()
{
if (!_root.hider2)
{
_root.mmus = _root.soundy("isaacxpsecretroomreveal2.mp3", 100);
_root.hider2 = true;
} // end if
} // End of the function
function itmc()
{
if (_root.levcol[e] > 0)
{
mpiece.itmc.gotoAndStop(_root.levcol[e]);
}
else
{
mpiece.itmc.gotoAndStop("empty");
} // end else if
} // End of the function
function mapd()
{
qq = _root._quality;
if (qq != "high")
{
_root._quality = "high";
} // end if
_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.500000) * 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.500000) * 10 + 7;
if (f1 > 0)
{
if (maxxx == undefined)
{
minx = maxxx = f1;
miny = maxy = f2;
}
else
{
minx = Math.min(f1, minx);
maxxx = Math.max(f1, maxxx);
miny = Math.min(f2, miny);
maxy = Math.max(f2, maxy);
} // end else if
maxx.translate(f1, f2);
if (_root.lev == e)
{
mpiece.gotoAndStop(3);
}
else if (_root.beenlev[e])
{
mpiece.gotoAndStop(2);
}
else
{
mpiece.gotoAndStop(1);
} // end else if
itmc();
maxx.scale(_root._xscale / 100, _root._yscale / 100);
_root.map.draw(mpiece, maxx);
} // end if
} // end if
} // end if
} // end of for...in
for (e = 0; e < _root.levz.length; e++)
{
if (_root.levz[e] != 0 && e < 110)
{
maxx = new flash.geom.Matrix();
f1 = e % 10 * 25 + 15;
f2 = Math.round(e / 10 - 0.500000) * 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))
{
mpiece.gotoAndStop(6);
}
else if (_root.hide == e && (ups[54] || _root.hider))
{
mpiece.gotoAndStop(7);
}
else if (_root.hide2 == e && _root.hider2)
{
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)
{
mpiece.gotoAndStop(11);
}
else
{
mpiece.gotoAndStop(10);
} // end else if
}
else if (_root.lib == e && (ups[21] || _root.libb))
{
mpiece.gotoAndStop(12);
}
else if (_root.sac == e && (ups[21] || _root.sacb))
{
mpiece.gotoAndStop(13);
} // end else if
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);
} // end if
} // end if
} // end of for
} // end else if
_root.mapa._xscale = _root.mapa._yscale = 10000 / _root._xscale;
_root.mapa._x = 130 - (maxxx + minx) / 2;
_root.mapa._y = 40 - (maxy + miny) / 2;
if (qq != "high")
{
_root._quality = qq;
} // end if
} // End of the function
function outgrid(f1)
{
var _loc1 = f1 % rowz;
var _loc2 = Math.round(f1 / rowz - 0.500000);
xenf = _loc1 * roxx;
yenf = _loc2 * roxx;
} // End of the function
function ingrid(f1, f2, f3)
{
if (f3)
{
f1 = Math.min(560, Math.max(80, f1));
f2 = Math.min(400, Math.max(160, f2));
}
else
{
f1 = Math.min(620, Math.max(20, f1));
f2 = Math.min(447, Math.max(110, f2));
} // end else if
f1 = f1 / roxx;
f2 = 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);
} // End of the function
function gridp(f1, f2, f3, f4)
{
f1 = f1 - gridx;
f2 = 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]);
} // end else if
} // End of the function
function gridput(f5, f6)
{
for (a = 0; grid.getPixel(f5[0], f5[1]) != 0 && a < gridmax; a++)
{
++f5[0];
} // end of for
grid.setPixel(f5[0], f5[1], f6);
} // End of the function
function gridput2(f5, f6)
{
for (a = 0; grid2.getPixel(f5[0], f5[1]) != 0 && a < gridmax; a++)
{
++f5[0];
} // end of for
grid2.setPixel(f5[0], f5[1], f6);
} // End of the function
function topz(cap)
{
timer[cap] = getTimer();
} // End of the function
function tip(cap)
{
alltimer[cap] = alltimer[cap] + (getTimer() - timer[cap]) / 25;
} // End of the function
function crand(f1)
{
if (cra1 == undefined)
{
cra1 = Math.random() * 3.141593 * 2;
cra2 = f1;
return (Math.cos(cra1) * f1);
}
else
{
f1 = cra1;
cra1 = undefined;
return (Math.sin(f1) * cra2);
} // end else if
} // End of the function
function itzz(f1)
{
var _loc2 = f1 != 115 && f1 != 138 && f1 != 143 && f1 != 146 && f1 != 169 && f1 != 118 && f1 != 216 && f1 != 217 && f1 != 149 && f1 != 150 && f1 != 151 && f1 != 152 && f1 != 154 && f1 != 168 && f1 != 170 && f1 != 179 && f1 != 180 && f1 != 182 && f1 != 184 && f1 != 185 && f1 != 187 && f1 != 189 && f1 != 190 && f1 != 191 && f1 != 197;
return (f1 > 8 && f1 != 12 && f1 != 16 && f1 != 48 && f1 != 50 && f1 != 51 && f1 != 55 && f1 != 57 && f1 != 52 && f1 != 59 && f1 != 67 && f1 != 68 && f1 != 70 && f1 != 87 && f1 != 89 && f1 != 88 && f1 != 90 && f1 != 92 && f1 != 95 && f1 != 99 && f1 != 100 && f1 != 101 && f1 != 103 && f1 != 104 && f1 != 108 && f1 != 109 && f1 != 110 && _loc2);
} // End of the function
function itz(sess, 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);
} // end else if
if (_root.skiner == 4 && satan)
{
_root.trg.d.d.gotoAndStop(11);
} // end if
var _loc2 = [8, 67, 95, 99, 100, 113, 163, 167, 174, 188];
var _loc4 = false;
for (o in _loc2)
{
if (_loc2[o] == f1)
{
_loc4 = true;
} // end if
} // end of for...in
var _loc5 = 0;
if (_loc4)
{
for (o in _loc2)
{
_loc5 = _loc5 + _root.ups[_loc2[o]];
} // end of for...in
} // end if
if (_loc4 && _loc5 > 2)
{
return (0);
}
else if (_root.ups[f1] || _root.colss[f1] && _root.IntRndFn(sess, 5) == 0)
{
return (0);
}
else if (itzz(f1))
{
return (f1);
}
else if (1 / (1.200000 + _root.wiptz * 3) > _root.FloatRndFn(sess))
{
return (f1);
}
else
{
return (0);
} // end else if
} // End of the function
function giveit()
{
var _loc2 = 0;
var _loc4 = 0;
while (_loc2 == 0)
{
fixLast = 10;
++_loc4;
if (_loc4 > 100)
{
var _loc3 = _root.IntRndFn(11, _root.ittt.length);
fixLast = 11;
_loc2 = itz(11, _root.ittt[_loc3]);
if (_loc2 > 0)
{
_root.ittt.splice(_loc3, 1);
} // end if
if (_root.ittt.length <= 15)
{
itemzz();
} // end if
continue;
} // end if
if (_root.lev == _root.lib)
{
_loc3 = _root.IntRndFn(12, _root.ittt9.length);
fixLast = 12;
_loc2 = itz(12, _root.ittt9[_loc3]);
if (_loc2 > 0)
{
if (lib == _loc3)
{
_loc2 = -1;
lib = _loc3;
} // end if
} // end if
continue;
} // end if
if (_root.ittt8.length > 0 && _root.lev == _root.chamb && !_root.altch)
{
_loc3 = _root.IntRndFn(13, _root.ittt8.length);
fixLast = 13;
_loc2 = itz(13, _root.ittt8[_loc3]);
if (_loc2 > 0)
{
_root.ittt8.splice(_loc3, 1);
} // end if
continue;
} // end if
if (_root.ittt7.length > 0 && (satan || bummer == 2 || _root.lev == _root.cus))
{
bummer = false;
if (_root.altsat)
{
_loc3 = _root.IntRndFn(14, _root.ittt10.length);
fixLast = 14;
_loc2 = itz(14, _root.ittt10[_loc3]);
}
else
{
_loc3 = _root.IntRndFn(14, _root.ittt7.length);
fixLast = 14;
_loc2 = itz(14, _root.ittt7[_loc3]);
if (_loc2 > 0)
{
_root.ittt7.splice(_loc3, 1);
} // end if
} // end else if
continue;
} // end if
if (_root.ittt6.length > 0 && treas && _root.chaps != 11)
{
_loc3 = _root.IntRndFn(15, _root.ittt6.length);
fixLast = 15;
_loc2 = itz(15, _root.ittt6[_loc3]);
if (_loc2 > 0)
{
_root.ittt6.splice(_loc3, 1);
} // end if
continue;
} // end if
if ((_root.lev == _root.shopl || bummer) && _root.ittt4.length > 1)
{
bummer = false;
_loc3 = _root.IntRndFn(16, _root.ittt4.length);
fixLast = 16;
_loc2 = itz(16, _root.ittt4[_loc3]);
if (_loc2 > 0)
{
_root.ittt4.splice(_loc3, 1);
} // end if
continue;
} // end if
fixLast = 17;
if ((_root.lev == _root.boner || _root.lev == _root.boner2) && _root.IntRndFn(17, 2) == 0 && _root.ittt5.length > 1)
{
_loc3 = _root.IntRndFn(17, _root.ittt5.length);
fixLast = 17;
_loc2 = itz(17, _root.ittt5[_loc3]);
if (_loc2 > 0)
{
_root.ittt5.splice(_loc3, 1);
} // end if
continue;
} // end if
if (_root.lev == _root.hide)
{
_loc3 = _root.IntRndFn(18, _root.ittt3.length);
fixLast = 18;
_loc2 = itz(18, _root.ittt3[_loc3]);
if (_loc2 > 0)
{
_root.ittt3.splice(_loc3, 1);
} // end if
continue;
} // end if
if (_root.lev == _root.chamb && _root.altch)
{
_loc3 = _root.IntRndFn(19, _root.ittt2.length);
fixLast = 19;
_loc2 = itz(19, _root.ittt2[_loc3]);
if (_loc2 > 0)
{
_root.ittt2.splice(_loc3, 1);
} // end if
continue;
} // end if
if (_root.lev == _root.bossl || _root.lev == _root.bossl2)
{
if (_root.bosss == 23 && _root.ittt7.length > 0)
{
for (e = 0; e < 100; e++)
{
_loc3 = _root.ittt7[_root.IntRndFn(20, _root.ittt7.length)];
fixLast = 20;
if (!ups[_loc3])
{
_loc2 = _loc3;
e = 1000;
} // end if
} // end of for
}
else if (_root.bosss == 38 && !ups[181])
{
_loc2 = 181;
}
else if (_root.bosss == 22 && !ups[130])
{
_root.locker[32] = true;
_loc2 = 130;
}
else
{
if (_root.bosss == 6 && !ups[59])
{
if (random(4) == 0)
{
_loc2 = 59;
} // end if
} // end if
if (_root.bosss == 21 && !ups[96])
{
_root.locker[32] = true;
_loc2 = 96;
}
else if (_root.bosss == 19 && !ups[99])
{
_root.locker[30] = true;
_loc2 = 99;
}
else if (_root.bosss == 20 && (!ups[100] || !ups[50]))
{
_root.locker[31] = true;
fixLast = 20;
if (ups[100] || _root.IntRndFn(20, 6) == 0)
{
_loc2 = 50;
}
else
{
_loc2 = 100;
} // end else if
}
else if (_root.bosss > 8 && _root.bosss < 13)
{
_root.locker[7] = true;
_loc2 = 73;
}
else
{
_loc3 = _root.IntRndFn(20, _root.ittt2.length);
fixLast = 20;
_loc2 = itz(20, _root.ittt2[_loc3]);
if (_loc2 > 0)
{
_root.ittt2.splice(_loc3, 1);
} // end else if
} // end else if
} // end else if
continue;
} // end if
_loc3 = _root.IntRndFn(fixLast, _root.ittt.length);
_loc2 = itz(fixLast, _root.ittt[_loc3]);
if (_loc2 > 0)
{
_root.ittt.splice(_loc3, 1);
} // end if
} // end while
return (_loc2);
} // End of the function
function speco(trg)
{
trg.uncol = 200 + fra;
if (pacman)
{
trg.uncol = unic + fra + 1;
colorit(trg, 0.300000, 0.500000, 1.200000, 0, 0, 0);
}
else if (trg.frezz > 0)
{
colorit(trg, 0.220000, 0.220000, 0.220000, 40, 40, 40);
trg.uncol = trg.frezz + fra + 2;
}
else if (trg.poiss > 0 && trg.s != 64 && trg.s != 46)
{
f1 = Math.max(0.600000, (200 - trg.poiss) / 200 - 0.100000);
colorit(trg, f1, 1, f1, 0, (1 - f1) * 90, 0);
}
else if (trg.elect > 0 && trg.s != 64 && trg.s != 46)
{
colorit(trg, 0.440000, 0.440000, 0.440000, 160, 160, 0);
}
else if (trg.alter == 2 && trg.s == 42)
{
colorit(trg, 0.660000, 1, 0.740000, 0, 0, 0);
}
else if (trg.special || trg.specozz)
{
if (trg.specol == undefined)
{
trg.specol = random(specol.length);
} // end if
var f1 = trg.specol;
colorit(trg, specol[f1][0], specol[f1][1], specol[f1][2], 0, 0, 0);
}
else if (trg.spid > 0)
{
if (trg.spida == 2)
{
colorit(trg, 0.500000, 0.500000, 0.500000, -100, -100, -100);
}
else
{
colorit(trg, 0.500000, 0.500000, 0.500000, 150, 150, 150);
} // end else if
trg.uncol = fra + 10;
}
else if (trg.specoz)
{
var f1 = trg.specoz;
if (specol2[f1].length > 4)
{
colorit(trg, specol2[f1][0], specol2[f1][1], specol2[f1][2], specol2[f1][3], specol2[f1][4], specol2[f1][5]);
}
else
{
colorit(trg, specol2[f1][0], specol2[f1][1], specol2[f1][2], 0, 0, 0);
} // end else if
}
else
{
colorit(trg, 1, 1, 1, 0, 0, 0);
} // end else if
} // End of the function
function momlo()
{
if (trrisss + 45 + random(120) <= fra)
{
trrisss = fra;
_root.soundy("Mom_Vox_Isaac_" + random(3) + ".mp");
} // end if
mome = random(4);
if (mome >= 2)
{
++mome;
} // end if
moml = fra + 30;
mom[mome].d.gotoAndStop(2);
} // End of the function
function atta(f7)
{
return ((f7 >= 7 || f7 <= 2 || f7 == 4 || f7 == 5 || f7 == 3) && f7 != 37 && f7 != 33);
} // End of the function
function trgdy(f1)
{
if (f1)
{
var _loc1 = Math.max(0, 8.500000 + trg.dy);
trg.d._y = trg.dy * 0.500000 - 15 + _loc1 * _loc1;
if (trg.ba)
{
trg.d._y = trg.d._y + 5;
} // end if
}
else
{
trg.d._y = trg.dy;
} // end else if
if (trg.d._xscale == 100)
{
trg.d.sh._y = -trg.d._y;
}
else
{
trg.d.sh._y = -trg.d._y / trg.d._xscale * 100;
} // end else if
} // End of the function
function attach(trg, f7)
{
if (atta(f7))
{
trg.gotoAndStop(1);
if (f7 == 72 || f7 == 73)
{
f7 = 71;
} // end if
if (f7 == 75 || f7 == 76 || f7 == 77)
{
f7 = 74;
} // end if
if (f7 == 7 && _root.chaps > 6 && _root.chaps != 9)
{
f7 = "gibs-red";
}
else
{
f7 = "b" + f7;
} // end else if
trg.attachMovie(f7, "d", 30);
}
else
{
trg.gotoAndStop(f7);
} // end else if
} // End of the function
function abr()
{
if (fra % 2 == 0)
{
return ("A");
}
else
{
return ("B");
} // end else if
} // End of the function
function efly(trg)
{
var _loc1 = create(trg.xp + 0.200000, trg.yp + 0.200000, 0, 0, 0, 0, 96);
_loc1.efly = true;
_loc1.trg2 = trg;
_loc1.outway = true;
_loc1.wtf = flyer++;
} // End of the function
function create(f1, f2, f3, f4, f5, f6, f7, f9)
{
var _loc5 = f7;
++ballz;
var _loc13 = "b" + ballz;
var _loc11 = ball.length;
var _loc8 = 0;
if (_loc11 == 0)
{
_loc8 = ballz + 20000;
}
else
{
_loc8 = ballz + 10000;
} // end else if
f18 = false;
if (f7 == 33.100000)
{
f7 == 33;
f18 = true;
_loc8 = 323;
}
else if (f7 == 33)
{
_loc8 = 322;
} // end else if
f7 = Math.round(f7);
_loc5 = _loc5 - f7;
var _loc10 = atta(f7);
namer2 = "ball";
if (f7 == 9)
{
namer2 = "bullet1";
_loc10 = false;
} // end if
if (_loc10)
{
namer2 = "emptyz";
} // end if
ball[_loc11] = attachMovie(namer2, _loc13, _loc8);
var _loc2 = ball[_loc11];
if (f18)
{
_loc2.holi = true;
} // end if
_loc2.mhp = _loc2.hp = hps[f7];
if (f7 == 5 && _loc5 > 0.040000)
{
while (enfcheckx(f1, f2, 320, 280, 1000) && !enfcheck(f1 * 0.500000 + 160, f2, 320, 280, 100))
{
posw(f1, f2, 20);
f1 = xenf;
f2 = yenf;
} // end while
} // end if
_loc2.e = ballz;
_loc2.xp = f1;
_loc2.yp = f2;
_loc2.rp = f3;
_loc2.ma = masses[f7];
_loc2.sss = f9;
switch (f9)
{
case 42:
{
_root.soundy("stoneshoot" + random(3) + ".wav");
break;
}
case 12:
case 26:
{
if (_loc2.alter != 3)
{
_root.soundy("Shakey_Kid_Roar_" + random(3) + ".mp", 100);
break;
} // end if
}
case 19:
case 31:
case 30:
case 14:
case 11:
case 34:
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:
{
_root.soundy("Floaty_Baby_Roar_" + random(3) + ".mp", 85);
break;
}
} // End of switch
_loc2.xb = _loc2.xbew = f4 + Math.random() * 0.010000;
_loc2.xb = _loc2.ybew = f5 + Math.random() * 0.010000;
_loc2.s = f7;
_loc2.e = ballz;
if (_loc10)
{
attach(_loc2, Math.round(f7));
}
else
{
_loc2.gotoAndStop(f7);
if (_loc2.holi)
{
_loc2.gotoAndStop(32);
} // end if
} // end else if
_loc2.sca = 1;
_loc2.fra = fra;
_loc2.spl = 0;
_loc2.bh = true;
_loc2.rr = 1;
if (_loc2.s == 49)
{
_loc2.alter = 1;
} // end if
_loc2.apf = _loc2.s <= 5 || _loc2.s == 19 || _loc2.s == 20 || _loc2.s == 33 || _loc2.s == 36 || _loc2.s == 43 || _loc2.s == 28 || _loc2.s == 45 || _loc2.s == 53 || _loc2.s == 62 || _loc2.s >= 72 && _loc2.s <= 77 || _loc2.s == 78 || _loc2.s == 84 || _loc2.s == 101;
_loc2.minb = _loc2.s > 45 && _loc2.s < 53;
if (!_root.beenlev2[_root.lev])
{
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 && !_loc2.minb && f7 < 62)
{
if (ups[221])
{
_loc2.special = random(3) == 0;
}
else
{
_loc2.special = random(20) == 0;
} // end if
} // end if
} // end else if
var _loc9 = _loc2.minb;
f2 = f7 == 15 || f7 == 29 || f7 == 61 || f7 == 38 || f7 == 35 || f7 == 88 || f7 == 44 || f7 == 39 || f7 == 57 || f7 == 42 || f7 == 30 || _loc9;
f1 = f7 == 41 || f7 == 55 || f7 == 60 || f7 == 53;
if (_loc5 && f7 == 28)
{
altboss = 2;
} // end if
if (_loc5 && (f7 == 100 || f7 == 67 || f7 == 68 || f7 == 62 || f7 == 19))
{
altboss = 1;
} // end if
if (f7 == 16 || f7 == 27 || f7 == 25 || f7 == 26 || f7 == 24 || f7 == 14 || f2 || f1)
{
if ((_loc5 > 0.150000 || random(100) == 0) && (f7 == 26 || f7 == 15 || f7 == 30 || f7 == 88 || f7 == 16 || f7 == 39 || f7 == 55))
{
_loc2.alter = 3;
if (f7 == 26 || f7 == 55)
{
efly(_loc2);
} // end if
}
else if ((_loc5 || random(21) == 0 && !f1 || random(25) == 0 && !f2 || random(100) == 0 && !_loc9) && f7 != 15)
{
if (f7 == 46 && flox.s == 38)
{
flox.minb = 3;
_loc2.minb = 3;
flox.alter = 3;
_loc2.alter = 3;
_loc2._xscale = _loc2._xscale * 1.600000;
_loc2._yscale = _loc2._yscale * 1.600000;
flox._xscale = flox._xscale * 1.330000;
flox._yscale = flox._yscale * 1.330000;
_loc2.hp = _loc2.hp * 2;
_loc2.mhp = _loc2.hp;
flox.hp = flox.hp * 1.500000;
flox.mhp = flox.hp;
}
else
{
_loc2.alter = 2;
if (_loc9)
{
_loc2.minb = 2;
_loc2._xscale = _loc2._xscale * 1.250000;
_loc2._yscale = _loc2._yscale * 1.250000;
f1 = 1.500000;
switch (_loc2.s)
{
case 48:
{
f1 = 1.300000;
break;
}
case 49:
{
f1 = 1.600000;
break;
}
case 51:
{
_loc2.specol = 8;
_loc2.specozz = true;
speco(_loc2);
f1 = 1;
break;
}
case 52:
{
_loc2.specol = 9;
_loc2.specozz = true;
speco(_loc2);
f1 = 1;
break;
}
} // End of switch
_loc2.hp = _loc2.hp * f1;
_loc2.mhp = _loc2.hp;
} // end if
} // end else if
}
else
{
_loc2.alter = 1;
} // end else if
if ((f7 == 38 || f7 == 14) && _loc2.alter == 2)
{
_loc2.hp = _loc2.hp * 1.500000;
_loc2.mhp = _loc2.hp;
} // end if
if (f7 == 57 && _loc2.alter == 2 || _loc2.s == 55 && _loc2.alter == 3)
{
_loc2.hp = _loc2.hp * 1.250000;
_loc2.mhp = _loc2.hp;
} // end if
if (f7 == 29 && _loc2.alter == 2)
{
_loc2.hp = _loc2.hp * 1.500000;
_loc2.mhp = _loc2.hp;
_loc2.wait = 0;
} // end if
if (f1 && _loc2.alter == 2)
{
_loc2.hp = _loc2.hp * 1.250000;
_loc2.mhp = _loc2.hp;
if (_root.chaps < 9)
{
_loc2.hallo = true;
} // end if
} // end if
} // end if
if (f7 == 90)
{
_loc2.alter = random(4) + 1;
efly(_loc2);
} // end if
if (f7 == 15 && _loc2.alter != 3)
{
if (altboss == 2 || _loc5 > 0.150000)
{
_loc2.alter = 3;
}
else if (altboss || _loc5)
{
_loc2.alter = 2;
}
else
{
_loc2.alter = 1;
} // end else if
} // end else if
if (f7 == 81)
{
if (_loc5)
{
_loc2.alter = 2;
_loc2.hp = _loc2.hp * 1.100000;
_loc2.mhp = _loc2.hp;
f4 = ["Isaac", "Magdalena", "Cain", "Judas", "???", "Eve", "Samson", "Adam"];
st11(f4[_root.skiner] + " vs " + "Krampus");
}
else
{
_loc2.alter = 1;
} // end if
} // end else if
f1 = [];
if (_root.locker[3] || _root.lev % 4 == 0)
{
if (altboss)
{
switch (f7)
{
case 67:
{
f1 = [16, 19];
break;
}
case 19:
{
if (f155 == undefined)
{
f155 = random(3) == 0;
} // end if
if (!wtfe || spezz)
{
wtfe = true;
f1 = [16, 3];
if (f155)
{
f1 = [21];
} // end if
} // end if
break;
}
case 28:
{
if ((!wtfe || spezz) && altboss == 2)
{
wtfe = true;
f1 = [22];
} // end if
break;
}
case 68:
{
f1 = [3];
break;
}
case 62:
{
if (!wtfe || spezz)
{
wtfe = true;
f1 = [16];
} // end if
break;
}
} // End of switch
}
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];
} // end if
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];
} // end if
break;
}
case 71:
case 72:
case 73:
{
if (!wtfe || spezz)
{
wtfe = true;
f1 = [15];
} // end if
break;
}
case 43:
{
if (!altboss)
{
f1 = [14];
} // end if
break;
}
case 68:
{
f1 = [12, 13];
break;
}
case 36:
{
f1 = [11];
break;
}
case 28:
{
if ((!wtfe || spezz) && !altboss)
{
wtfe = true;
f1 = [8, 9];
} // end if
break;
}
case 19:
{
if (!wtfe || spezz)
{
wtfe = true;
f1 = [3, 7];
} // end if
break;
}
case 67:
{
f1 = [5, 6];
break;
}
case 79:
{
if ((i == 0 || spezz) && !altboss)
{
f1 = [3, 4];
} // end if
break;
}
case 20:
{
f1 = [1, 2];
break;
}
} // End of switch
} // end if
} // end else if
if (f1.length > 0 && (fra < 40 || spezz))
{
if (spezz)
{
if (f1[0] == spezz || f1[1] == spezz)
{
_loc2.specoz = spezz;
} // end if
}
else
{
if (_root.locker[42])
{
f2 = random(5);
}
else
{
f2 = random(10);
} // end else if
if (f2 <= f1.length)
{
spezz = _loc2.specoz = f1[f2];
} // end if
} // end if
} // end else if
if (_loc2.s == 42)
{
speco(_loc2);
} // end if
if (_loc2.specoz)
{
speco(_loc2);
_loc2.special = false;
if (_loc2.s == 45)
{
if (_loc2.specoz == 7)
{
_loc2.mhp = _loc2.mhp * 0.850000;
_loc2.hp = _loc2.hp * 0.850000;
} // end if
}
else
{
switch (_loc2.specoz)
{
case 19:
{
if (_loc2.s == 67)
{
_loc2._yscale = 80;
_loc2._xscale = 70;
} // end if
break;
}
case 14:
{
_loc2._xscale = _loc2._yscale = 80;
break;
}
case 12:
{
_loc2._xscale = _loc2._yscale = 85;
break;
}
case 9:
{
_loc2.mhp = _loc2.mhp * 0.850000;
_loc2.hp = _loc2.hp * 0.850000;
_loc2._xscale = _loc2._yscale = 85;
break;
}
case 5:
{
_loc2.spl = 30;
break;
}
case 3:
{
_loc2.spl = 30;
break;
}
case 1:
{
if (!wtfe)
{
--i;
wtfe = true;
} // end if
_loc2._xscale = _loc2._yscale = 75;
_loc2.mhp = _loc2.mhp * 0.450000;
_loc2.hp = _loc2.hp * 0.450000;
break;
}
case 11:
{
_loc2._xscale = _loc2._yscale = 111;
break;
}
case 21:
case 18:
case 2:
case 6:
case 4:
case 8:
case 15:
case 16:
{
if (_loc2.s != 100)
{
_loc2.mhp = _loc2.mhp * 1.250000;
_loc2.hp = _loc2.hp * 1.250000;
if (_loc2.s == 67)
{
_loc2.mhp = _loc2.mhp * 1.250000;
_loc2.hp = _loc2.hp * 1.250000;
} // end if
_loc2._xscale = _loc2._yscale = 115;
} // end if
break;
}
case 7:
{
if (_loc2.s == 99)
{
_loc2.mhp = _loc2.mhp * 0.550000;
_loc2.hp = _loc2.hp * 0.550000;
_loc2._xscale = _loc2._yscale = 58;
if (!wtfe)
{
--i;
wtfe = true;
} // end if
}
else if (_loc2.s != 63)
{
_loc2.mhp = _loc2.mhp * 1.450000;
_loc2.hp = _loc2.hp * 1.450000;
_loc2._xscale = _loc2._yscale = 115;
} // end else if
break;
}
case 22:
{
_loc2.mhp = _loc2.mhp * 2;
_loc2.hp = _loc2.hp * 2;
}
case 20:
{
_loc2._xscale = _loc2._yscale = 75;
break;
}
} // End of switch
} // end if
} // end else if
if (_loc2.special)
{
speco(_loc2);
_loc2.hp = _loc2.hp * 2;
_loc2._xscale = _loc2._xscale * 1.150000;
_loc2._yscale = _loc2._yscale * 1.150000;
} // end if
if (f7 == 38)
{
flox = _loc2;
} // end if
_loc2.imba = _loc2.s == 42 || _loc2.s == 44;
switch (f7)
{
case 102:
{
_loc2.state = 0;
_loc2.xpp = _loc2.xp;
_loc2.ypp = _loc2.yp;
break;
}
case 19:
{
if (altboss)
{
f1 = 1.300000;
_loc2.hp = _loc2.hp * f1;
_loc2.mhp = _loc2.mhp * f1;
} // end if
break;
}
case 67:
case 65:
{
if (altboss)
{
f1 = 1.300000;
_loc2.hp = _loc2.hp * f1;
_loc2.mhp = _loc2.mhp * f1;
} // end if
break;
}
case 101:
{
_loc2.d._xscale = _loc2.d._xscale * 1.150000;
_loc2.d._yscale = _loc2.d._yscale * 1.150000;
_loc2.dfr = true;
_loc2.xpp = _loc2.xp;
_loc2.ypp = _loc2.yp;
_loc2.d.gotoAndStop(1);
_loc2.stomps = 0;
break;
}
case 100:
{
boils = 0;
if (altboss)
{
f1 = 0.850000;
}
else
{
f1 = 0.520000;
} // end else if
_loc2.hp = _loc2.hp * f1;
_loc2.mhp = _loc2.mhp * f1;
break;
}
case 91:
{
_loc2.flyby = true;
break;
}
case 99:
{
_loc2.fire = 0;
break;
}
case 69:
{
if (altboss)
{
_loc2.hp = _loc2.hp * 0.500000;
_loc2.mhp = _loc2.mhp * 0.500000;
if (!swag)
{
swag = true;
spaw(_loc2.xp, _loc2.yp, 100, 69);
} // end if
} // end if
break;
}
case 71:
case 72:
case 73:
case 67:
{
_loc2.flyby = 2;
if (altboss)
{
_loc2.hp = _loc2.hp * 1.800000;
_loc2.mhp = _loc2.mhp * 1.800000;
} // end if
break;
}
case 79:
{
_loc2.fire = 0;
break;
}
case 97:
{
altboss = false;
trg2 = spaw(_loc2.xp, _loc2.yp, 40, 98);
_loc2.trg2 = trg2;
_loc2.imba = true;
_loc2.xbeww = _loc2.xbew;
_loc2.ybeww = _loc2.ybew;
break;
}
case 92:
{
hearts.push(_loc2);
break;
}
case 93:
{
_loc2.trg2 = masks.length;
masks.push(_loc2);
_loc2.imba = true;
_loc2.xbeww = _loc2.xbew;
_loc2.ybeww = _loc2.ybew;
break;
}
case 44:
{
_loc2.xppp = _loc2.xp = xenf;
_loc2.yppp = _loc2.yp = yenf;
}
case 89:
{
f1 = ingrid(_loc2.xp, _loc2.yp);
outgrid(f1);
break;
}
case 85:
{
if (fra > 20)
{
_loc2.hp = _loc2.hp * 0.650000;
_loc2.mhp = _loc2.mhp * 0.650000;
} // end if
}
case 94:
{
_loc2.outway = true;
_loc2.wait = 0;
break;
}
case 46:
{
_loc2.spl = 30;
break;
}
case 68:
{
_root.slugeye = 1;
break;
}
case 51:
{
_loc2.tier = 0;
break;
}
case 72:
{
_loc2.d.gotoAndStop(7);
break;
}
case 73:
{
_loc2.d.gotoAndStop(10);
break;
}
case 64:
{
_loc2.spl = 30;
_loc2.outway = true;
break;
}
case 62:
{
if (altboss)
{
_loc2.hp = _loc2.hp * 0.350000;
_loc2.mhp = _loc2.mhp * 0.350000;
}
else
{
_loc2.hp = _loc2.hp * 1.350000;
_loc2.mhp = _loc2.mhp * 1.350000;
} // end else if
_loc2.dy = _loc2.d._y;
_loc2.worm = 1;
_loc2.outway = true;
break;
}
case 78:
{
_root.soundy("Mom_Vox_Filtered_Isaac_" + random(3) + ".mp");
player.xp = 320;
player.yp = 370;
_loc2.d.gotoAndStop(4);
_loc2.downbro = 100;
_loc2.wave = 0;
_loc2.fire = 0;
}
case 59:
case 60:
case 56:
{
_loc2.xpp = _loc2.xp;
_loc2.ypp = _loc2.yp;
break;
}
case 55:
case 90:
{
_loc2.flyby = true;
}
case 31:
case 23:
case 21:
{
_loc2.pbh = true;
break;
}
case 45:
{
_loc2.alter = 1;
if (_root.pilc != 25)
{
player.xp = 320;
player.yp = 370;
} // end if
_loc2.spl = 0;
_loc2.outway = true;
_loc2.d.gotoAndStop(1);
break;
}
case 42:
{
_loc2.xpp = _loc2.xp;
_loc2.ypp = _loc2.yp;
_loc2.til = ingrid(_loc2.xp, _loc2.yp);
levz[_loc2.til] = 3;
break;
}
case 40:
{
_loc2.outway = true;
break;
}
case 38:
{
_loc2.telp = 0;
_loc2.flyby = true;
break;
}
case 37:
{
_loc2.bh = false;
break;
}
case 36:
{
_loc2.yp = _loc2.yp + 25;
_loc2.xpp = _loc2.xp;
_loc2.ypp = _loc2.yp;
player.xp = 320;
player.yp = 400;
break;
}
case 32:
{
_loc2.pbh = true;
_loc2.rrr = random(4) * 0.060000 + 0.900000;
break;
}
case 33:
{
_loc2.ggh = true;
_loc2.nod = true;
_loc2.bh = false;
break;
}
case 30:
{
_loc2.hppp = 0;
if (!_loc5)
{
_loc2.hp = 7;
} // end if
_loc2.xpp = _loc2.xp;
_loc2.ypp = _loc2.yp;
break;
}
case 25:
{
_loc2.flyby = true;
break;
}
case 3:
{
_loc2.lfra = 0;
break;
}
case 28:
{
if (altboss == 2)
{
chubber = 0;
_loc2.hp = _loc2.hp * 0.500000;
_loc2.mhp = _loc2.mhp * 0.500000;
} // end if
_loc2.fail2 = 0;
_loc2.beenx = [_loc2.xp];
_loc2.beeny = [_loc2.yp];
break;
}
case 4:
{
_loc2.lfra = fra;
_loc2.spl = -10;
break;
}
case 16:
{
_loc2.noco = 0;
break;
}
case 5:
{
_loc2.ph = true;
_loc2.bh = false;
_loc2.d.gotoAndStop(Math.max(1, Math.round(_loc5 * 100 - 0.499000)));
if (_loc2.d._currentframe == 11 || _loc2.d._currentframe == 16)
{
_loc2.d.prevFrame();
} // end if
if (_loc2.d._currentframe == 12)
{
_loc2.d.prevFrame();
_loc2.d.prevFrame();
} // end if
if (_loc2.d._currentframe != 7)
{
f1 = Math.round(_loc5 * 1000000000) - Math.round(_loc5 * 10000000) * 100;
}
else
{
f1 = Math.round(_loc5 * 1000000000) - Math.round(_loc2.d._currentframe * 100000) * 100;
} // end else if
if (fra > 10)
{
switch (_loc2.d._currentframe)
{
case 5:
case 6:
{
_root.soundy("Chest_Drop.mp", 100);
}
} // End of switch
} // end if
if (_loc2.d._currentframe == 8 || _loc2.d._currentframe == 38)
{
if (_root.IntRndFn(1156, 3) == 0 && !firsttime || _loc2.d._currentframe == 38 || _root.lev == _root.hide2)
{
_loc2.col = 41;
} // end if
} // end if
if (_loc2.d._currentframe == 31)
{
_loc2.d.gotoAndStop(8);
_loc2.col = 1;
} // end if
if (_loc2.d._currentframe == 32 || _loc2.d._currentframe == 37)
{
_loc2.d.gotoAndStop(8);
_loc2.col = 2;
if (_root.IntRndFn(45, 3) == 0 && !firsttime || _loc2.d._currentframe == 37)
{
_loc2.col = 32;
} // end if
if (_root.IntRndFn(45, 3) == 0 && !firsttime || _loc2.d._currentframe == 37)
{
_loc2.col = 22;
} // end if
if (_root.IntRndFn(45, 3) == 0 && !firsttime || _loc2.d._currentframe == 37)
{
_loc2.col = 31;
} // end if
} // end if
if (_root.lev == _root.shopl && !firsttime || _loc2.d._currentframe == 37)
{
_loc2.col = 23;
} // end if
if (_loc2.d._currentframe == 33)
{
_loc2.d.gotoAndStop(8);
_loc2.col = 10;
} // end if
if (f1 > 0)
{
_loc2.col = f1;
if (f1 == 2 && _loc2.d._currentframe == 5)
{
_loc2.c2 = true;
} // end if
}
else
{
if (_loc2.d._currentframe == 7)
{
_loc2.col = _root.IntRndFn(1152, 6) + 1;
} // end if
if (_loc2.d._currentframe == 3)
{
_loc2.col = 1;
if (_root.IntRndFn(1154, 50) == 1)
{
_loc2.col = 2;
} // end if
} // end if
if (_loc2.d._currentframe == 3)
{
if (_root.IntRndFn(1154, 14) == 1)
{
} // end if
if (_root.IntRndFn(1154, 7) == 1)
{
} // end if
} // end if
if (_loc2.d._currentframe == 30)
{
_loc2.d.gotoAndStop(7);
_loc5 = 0;
if (!dontRandomPill)
{
_loc2.col = tater();
}
else
{
_loc2.col = 1;
dontRandomPill = false;
} // end if
} // end else if
if (_loc2.d._currentframe == 35)
{
_loc2.d.gotoAndStop(7);
_loc5 = 0;
_loc2.col = junx();
} // end if
if (_loc2.d._currentframe == 36 || (_loc2.d._currentframe == 5 || trixx(61) && _loc2.d._currentframe == 6) && ((trixx(61) || random(20) == 0) && !firsttime || _root.lev == _root.cus || _root.lev == _root.hide2))
{
_loc2.d.gotoAndStop(5);
_loc5 = 0;
_loc2.col = 2;
_loc2.c2 = true;
} // end if
if (_loc2.d._currentframe == 2 || _loc2.d._currentframe == 1 || _loc2.d._currentframe == 4)
{
f1 = [0, 2, 20, 0, 7];
if (_root.IntRndFn(1161, f1[_loc2.d._currentframe]) == 0)
{
_loc2.col = 2;
}
else
{
_loc2.col = 1;
} // end else if
if (_loc2.d._currentframe == 4 && _root.IntRndFn(1157, 50) == 0)
{
_loc2.col = 5;
} // end if
if (_loc2.d._currentframe == 2 && _root.IntRndFn(1159, 100) == 0)
{
_loc2.col = 3;
} // end if
if (_loc2.d._currentframe == 1 && _root.IntRndFn(1158, 50) == 0)
{
_loc2.col = 4;
} // end if
if (_loc2.d._currentframe == 1 && _root.IntRndFn(1158, 9) == 0)
{
if (_root.armor > 0)
{
_loc2.col = 5;
} // end if
} // end if
if (_loc2.d._currentframe == 1 && (_root.IntRndFn(1158, 13) == 0 || _root.IntRndFn(1158, 2) == 0 && ups[211]))
{
if (player.hp == player.mhp)
{
_loc2.col = 8;
} // end if
} // end if
if (_loc2.d._currentframe == 1 && _root.IntRndFn(1158, 10) == 0)
{
if (_root.armor > 0)
{
_loc2.col = 7;
} // end if
} // end if
if (_loc2.d._currentframe == 1 && _root.IntRndFn(1158, 107) == 0)
{
_loc2.col = 6;
} // end if
if (_loc2.d._currentframe == 4 && _root.IntRndFn(1157, 10) == 0)
{
_loc2.col = 3;
} // end if
if (_loc2.d._currentframe == 1 && (_root.IntRndFn(1158, 10) == 0 || _root.IntRndFn(1158, 16) == 0 && _root.skiner == 5 || trixx(38) && _root.IntRndFn(1158, 10) == 0 || ups[173] && _root.IntRndFn(1158, 2) == 0))
{
_loc2.col = 3;
} // end if
if (_loc2.d._currentframe == 1 && _root.lev == _root.hide2)
{
if (_root.hid2 == 0)
{
_loc2.col = 1;
} // end if
if (_root.hid2 == 1)
{
_loc2.col = 4;
} // end if
} // end if
} // end if
} // end else if
if (_loc2.d._currentframe != 8)
{
if (_loc2.c2)
{
_loc2.d.d.gotoAndStop(7);
}
else
{
_loc2.d.d.gotoAndStop(3);
} // end if
} // end else if
if (_loc2.d._currentframe == 34)
{
if (_root.heaven && _root.chaps != 11)
{
_loc2.d.d.gotoAndStop(5);
}
else
{
_loc2.d.d.gotoAndStop(3);
} // end if
} // end else if
it1[4] = false;
if (Math.round(_loc5 * 100) >= 15 && Math.round(_loc5 * 100) < 20)
{
if (_loc5 > 0.150000)
{
_loc2.d.d.gotoAndStop(Math.round((_loc5 - 0.150050) * 1000));
}
else if (satan)
{
if (random(5) == 0)
{
_loc2.d.d.gotoAndStop(11);
}
else
{
_loc2.d.d.gotoAndStop(9 + random(2));
} // end else if
}
else
{
for (var f1 = -1; !it1[f1]; f1 = random(7))
{
} // end of for
if (f1 == 4 || f1 == 3)
{
watz = -100;
}
else
{
++watz;
} // end else if
if (watz > 1 || watz == 1 && random(3) == 0)
{
f1 = 3;
watz = -100;
} // end if
it1[f1] = false;
if (f1 == 4)
{
f1 = 3;
}
else if (f1 > 4)
{
f1 = f1 + 6;
} // end else if
_loc2.d.d.gotoAndStop(f1 + 1);
_loc2.may = true;
if (_loc2.d.d._currentframe == 3)
{
_loc2.col = random(15) + 1;
} // end if
if (_loc2.d.d._currentframe == 13)
{
_loc2.col = 3;
} // end else if
} // end else if
if (_loc2.may && random(5) == 0 && !salefail && (_loc2.d.d._currentframe < 5 || _loc2.d.d._currentframe == 12 || _loc2.d.d._currentframe == 13))
{
salefail = true;
_loc2.d.d.gotoAndStop(_loc2.d.d._currentframe + 4);
} // end if
if (_loc2.d.d._currentframe == 3 || _loc2.d.d._currentframe == 7)
{
_loc2.d.d.d.gotoAndStop(_loc2.col);
} // end if
if (_loc2.d.d._currentframe == 13 || _loc2.d.d._currentframe == 17)
{
_loc2.d.d.d.d.d.gotoAndStop(3);
} // end if
if (_loc2.d.d._currentframe == 4 || _loc2.d.d._currentframe >= 8 && _loc2.d.d._currentframe < 12)
{
_root.trg = _loc2;
if (_loc5 >= 0.150400 && _loc5 < 0.400000)
{
_loc2.it = Math.round((_loc5 - 0.150000 - _loc2.d.d._currentframe * 0.001000) * 1000000);
}
else
{
_loc2.it = giveit();
} // end else if
_loc2.d.d.d.gotoAndStop(_loc2.it);
} // end if
}
else if (_loc5 > 0.090000 && _loc5 < 0.200000)
{
if (_loc5 > 0.100000 && _loc5 < 0.400000)
{
_loc2.it = Math.round((_loc5 - 0.100000) * 10000);
}
else
{
_loc2.it = giveit();
} // end else if
_loc2.d.d.d.d.gotoAndStop(_loc2.it);
} // end else if
_loc2.xpp = _loc2.xp;
_loc2.ypp = _loc2.yp;
if (_loc2.d._currentframe == 8 && _loc2.col != 41)
{
if (_loc2.col == 10)
{
_loc2.d.d.gotoAndStop(41);
}
else if (_loc2.col == 1)
{
_loc2.d.d.gotoAndStop(32);
}
else if (_loc2.col > 1)
{
_loc2.d.d.gotoAndStop(36);
} // end else if
} // end else if
break;
}
case 61:
case 13:
case 14:
case 18:
case 80:
{
_loc2.flyai = true;
_loc2.d.d.d.gotoAndPlay(random(2) + 1);
_loc2.xbb = _loc2.ybb = 0;
break;
}
case 12:
{
break;
}
case 7:
case 8:
{
if (f7 == 8)
{
var _loc12 = new flash.geom.Transform(_loc2);
_loc12.colorTransform = bloc;
} // end if
_loc2.ypp = _loc2.ybew;
_loc2.bh = false;
_loc2.d._rotation = random(360);
_loc2.fd = 1.300000;
if (f7 == 7)
{
_loc2.spl = 10;
}
else
{
_loc2.spl = 0;
} // end else if
_loc2.dm = -random(30) + 5;
(_loc2.dy = -23);
75;
break;
}
case 9:
{
(_loc2.dy = -23);
75;
_loc2.shot = true;
_loc2.ph = true;
_loc2.spl = 0;
_loc2.dm = rand() * 0.200000;
break;
}
case 2:
{
if (ups[143] || ups[165] || ups[183] || ups[176] || ups[219] || ups[182] || ups[194] || _root.skiner == 1)
{
var _loc7 = 1 + ups[143] * 0.200000 + ups[165] * 0.230000 + ups[176] * 0.160000 + ups[219] * 0.160000 + (ups[183] + ups[194]) * 0.160000 - ups[182] * 0.250000;
if (_root.skiner == 1)
{
_loc7 = _loc7 - 0.310000;
} // end if
_loc7 = Math.min(_loc7, 1.400000);
_loc2.xbew = _loc2.xbew * _loc7;
_loc2.ybew = _loc2.ybew * _loc7;
} // end if
(_loc2.dy = -23);
75;
_loc2.spl = 10;
_loc2.dm = rand() * 0.200000;
if (babymode)
{
_loc2.ba = babymode;
if (ups[214])
{
_loc2.dmg = 4;
}
else
{
_loc2.dmg = 3.500000;
} // end else if
if (babymode == 10)
{
_loc2.ics = true;
}
else if (babymode == 6)
{
_loc2._alpha = 50;
}
else if (babymode == 7)
{
_loc2.dmg = 4;
attach(_loc2, 500);
_loc2.d._xscale = 90;
_loc2.d._yscale = _loc2.d._xscale;
_loc2.spl = 0;
}
else if (babymode == 5)
{
_loc2.dmg = 3;
attach(_loc2, 500);
_loc2.d._xscale = 80;
_loc2.d._yscale = _loc2.d._xscale;
_loc2.spl = 0;
_loc2.dm = 1.200000;
}
else if (babymode == 89)
{
_loc2.dmg = 3.500000;
_loc2.d._xscale = 80;
_loc2.d._yscale = _loc2.d._xscale;
_loc2.spl = 0;
_loc2.dm = 1.200000;
}
else if (babymode == 2)
{
_loc2.dmg = 5;
attach(_loc2, 500);
_loc2.d._xscale = 106;
_loc2.d._yscale = _loc2.d._xscale;
_loc2.spl = 0;
}
else if (babymode == 3)
{
colorit(_loc2, 0.950000, 0.800000, 0.600000, -150, -150, -150);
}
else if (babymode == 4 || babymode == 11)
{
colorit(_loc2, 0.400000, 0.150000, 0.380000, 71, 0, 116);
if (babymode == 11)
{
_loc2._alpha = 50;
} // end if
_loc2.dm = _loc2.dm - 3;
} // end else if
babymode = undefined;
}
else
{
_loc2.dmg = dmgdo();
if (trixx(30))
{
if (random(10) == 0)
{
_loc2.trixer = 1;
} // end if
} // end if
if (ups[228])
{
f2 = random(3);
if (f2 == 0)
{
_loc2.trixer = 47;
} // end if
if (f2 == 1)
{
_loc2.trixer = 45;
} // end if
if (f2 == 2)
{
_loc2.trixer = 46;
} // end if
} // end if
if (trixx(31))
{
if (random(10) == 0)
{
_loc2.trixer = 2;
} // end if
} // end if
if (ups[150] && random(10 - _root.luck) == 0)
{
_loc2.dmg = _loc2.dmg * 3.200000;
attach(_loc2, 499);
if (_loc2.xbew < 0)
{
_loc2.d.d._xscale = _loc2.d.d._xscale * -1;
} // end if
if (_loc2.trixer == 2)
{
colorit(_loc2, 1.500000, 2, 2, 0, 0, 0);
} // end if
_loc2.spl = 0;
_loc2.spll = true;
_loc2.tooth = true;
_loc2.d._xscale = 70;
_loc2.d._yscale = _loc2.d._xscale;
}
else if (_loc2.trixer == 2)
{
colorit(_loc2, 1.500000, 2, 2, 0, 0, 0);
}
else if (_loc2.trixer == 63)
{
colorit(_loc2, 0.060000, 0.060000, 0.050000, 0, 0, 0);
}
else if (_loc2.trixer == 1)
{
_loc2.spl = 30;
colorit(_loc2, 0.500000, 0.970000, 0.500000, 0, 0, 0);
}
else if (_loc2.trixer == 47)
{
colorit(_loc2, 0.500000, 0.970000, 0.500000, 0, 0, 0);
}
else if (_loc2.trixer == 45)
{
colorit(_loc2, 1.250000, 0.050000, 0.150000, 0, 0, 0);
}
else if (_loc2.trixer == 46)
{
colorit(_loc2, 0.400000, 0.150000, 0.380000, 71, 0, 116);
}
else if (ups[182])
{
colorit(_loc2, 1.500000, 2, 2, 0, 0, 0);
}
else if (!ups[149] && (ups[189] || ups[7] || ups[183] || doub || demon > 0 || _loc2.dmg > 5.500000 && (!ups[169] || _loc2.dmg > 15) && !ups[69] || ups[122] || sob == -1 && ups[155]))
{
attach(_loc2, 500);
_loc2.d._xscale = 90;
_loc2.d._yscale = _loc2.d._xscale;
_loc2.spl = 0;
}
else if (ups[115])
{
colorit(_loc2, 1.500000, 2, 2, 0, 0, 0);
}
else if (ups[132])
{
colorit(_loc2, 0.200000, 0.090000, 0.065000, 0, 0, 0);
}
else if (ups[103])
{
_loc2.spl = 30;
colorit(_loc2, 0.500000, 0.970000, 0.500000, 0, 0, 0);
}
else if (ups[104])
{
colorit(_loc2, 0.900000, 0.300000, 0.080000, 0, 0, 0);
}
else if (ups[90])
{
colorit(_loc2, 0.400000, 0.400000, 0.400000, 50, 50, 50);
}
else if (ups[110])
{
_loc2.spl = 0;
colorit(_loc2, 1.250000, 0.050000, 0.150000, 0, 0, 0);
}
else if (ups[89])
{
colorit(_loc2, 2, 2, 2, 50, 50, 50);
}
else if (ups[69])
{
colorit(_loc2, 0.330000, 0.180000, 0.180000, 66, 40, 40);
_loc2.d._xscale = _loc2.d._xscale * (1 + (chal - 1) * 0.050000);
}
else if (ups[6])
{
colorit(_loc2, 1, 1, 0, 45, 15, 0);
_loc2.spl = 20;
_loc2.piss = true;
}
else
{
if (ups[207])
{
colorit(_loc2, 1, 1, 0, 150, 30, 0);
} // end if
if (ups[3])
{
colorit(_loc2, 0.400000, 0.150000, 0.380000, 71, 0, 116);
} // end else if
} // end else if
if (ups[132])
{
_loc2.gro = 0;
_loc2.d._xscale = _loc2.d._xscale - 15;
_loc2.d._yscale = _loc2.d._yscale - 15;
} // end if
if (ups[115] || _loc2.trixer == 2)
{
_loc2._alpha = 50;
} // end if
if (ups[6])
{
_loc2.dy = _loc2.dy + 13;
}
else if (_root.skiner == 2)
{
_loc2.dy = _loc2.dy + 6;
}
else if (_root.skiner == 6)
{
_loc2.dy = _loc2.dy + 5;
} // end else if
} // end else if
_loc2.nuts = 0.200000;
_loc2.dir = Math.abs(_loc2.xbew) < Math.abs(_loc2.ybew);
_loc2.hh = [];
_loc2.shot = true;
if (!_loc2.ba)
{
if (ups[5])
{
_loc2.xbew = _loc2.xbew * 1.600000;
_loc2.ybew = _loc2.ybew * 1.600000;
} // end if
_loc2.dy = _loc2.dy - (ups[12] - ups[71] + ups[30] + ups[31] + ups[29]) * 5;
if (ups[4] || doub && ups[7] || ups[12])
{
_loc2.dmg = _loc2.dmg * 1.500000;
} // end if
if (maxxy)
{
_loc2.dmg = _loc2.dmg * 1.500000;
} // end if
f1 = ups[12] + ups[30] + ups[31] + ups[205] + ups[29] + ups[71] * 3 + ups[225] * 15 + ups[101] + ups[110] + ups[121] + ups[182] * 1.500000 + ups[197];
f1 = f1 * 0.500000;
_loc2.dm = _loc2.dm - f1;
_loc2.dy = _loc2.dy - f1 * 0.500000;
_root.firrr = -_loc2.dm * 5 - _loc2.dy;
} // end if
f1 = 0.700000 + _loc2.dmg * 0.040000 + Math.sqrt(_loc2.dmg) * 0.150000;
_loc2.d._xscale = _loc2.d._xscale * f1;
_loc2.d._yscale = _loc2.d._xscale;
break;
}
case 11:
{
_loc2.bnuts = !_loc5;
break;
}
case 10:
{
_loc2.gonuts = !_loc5;
_loc2.bnuts = random(3) == 0;
break;
}
} // End of switch
if (trixx(53) && _loc2.hp > 60)
{
_loc2.hp = _loc2.hp * 0.850000;
} // end if
if (f7 == 45)
{
_loc2.d.gotoAndStop(1);
} // end if
return (_loc2);
} // End of the function
function parc2(f1, f2, f3, f4, f5, f6)
{
++parz;
namer = "p" + parz;
f0 = par.length;
if (f6 == undefined)
{
f6 = parz + 100000;
} // end if
if (f1 == "bloo")
{
par[f0] = blorz.attachMovie(f1, namer, f6);
}
else
{
par[f0] = attachMovie(f1, namer, f6);
} // end else if
par[f0]._x = f2;
par[f0]._y = f3;
if (f4)
{
par[f0]._rotation = f4;
} // end if
if (f5)
{
par[f0]._xscale = par[f0]._yscale = f5;
} // end if
par[f0].stop();
return (par[f0]);
} // End of the function
function parc(f1, f2, f3, f4, f5, f6)
{
dang = true;
++parz;
namer = "p" + parz;
f0 = par.length;
if (f6 == undefined)
{
f6 = parz + 100000;
} // end if
if (f1 == "bloo")
{
par[f0] = blorz.attachMovie(f1, namer, f6);
}
else
{
par[f0] = attachMovie(f1, namer, f6);
} // end else if
par[f0]._x = f2;
par[f0]._y = f3;
if (f4)
{
par[f0]._rotation = f4;
} // end if
if (f5)
{
par[f0]._xscale = par[f0]._yscale = f5;
} // end if
par[f0].stop();
return (par[f0]);
} // End of the function
function rotc(f0)
{
return (f0);
} // End of the function
function rand()
{
return (Math.random() - 0.500000);
} // End of the function
function rotrund(f1)
{
while (f1 > 180)
{
f1 = f1 - 360;
} // end while
while (f1 < -180)
{
f1 = f1 + 360;
} // end while
return (f1);
} // End of the function
function rotget(f1, f2)
{
f0 = Math.atan(-f1 / f2) / 3.141593 * 180 + 90;
if (f2 >= 0)
{
f0 = f0 + 180;
} // end if
return (f0);
} // End of the function
function linearcut(f1, f2, f3, f4, f5, f6)
{
return ((f1 * f6 - f2 * f5) / (f3 * f6 - f5 * f4));
} // End of the function
function absmax(f1, f2)
{
if (f1 > f2)
{
f1 = f2;
}
else if (f1 < -f2)
{
f1 = -f2;
} // end else if
return (f1);
} // End of the function
function enfget(f1, f2)
{
f1 = f1 * f1 + f2 * f2;
if (f1 > 0)
{
f1 = Math.sqrt(f1);
}
else
{
f1 = 0.001000;
} // end else if
return (f1);
} // End of the function
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);
} // end if
} // end if
} // End of the function
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);
} // end if
} // end if
} // end if
} // End of the function
function t3d(f1, f2)
{
f2 = f2 + f1._rotation;
for (var f2 = f2 + 45; f2 > 360; f2 = f2 - 360)
{
} // end of for
while (f2 < 0)
{
f2 = f2 + 360;
} // end while
f1.gotoAndStop(Math.round(f2 / 360 * 72) + 1);
} // End of the function
function pff(f1, f2)
{
if (trg.gridder[f1] >= 0 && trg.gridder[f1] < 1)
{
if (trg.gridder[f1] == 0)
{
--f2;
}
else
{
f2 = f2 - 7;
} // end else if
trg.gridder[f1] = f2;
acts2.push(f1);
} // end if
} // End of the function
function pff1(f1, f2)
{
if (trg.gridder[f1] + f2 * 3 > v3 && trg.gridder[f1] < 0)
{
v3 = trg.gridder[f1];
v4 = f1;
} // end if
} // End of the function
function pff2(f1)
{
if (levz[f1] != 0)
{
outgrid(f1);
if (Math.abs(xenf) > 0 && Math.abs(yenf) > 0)
{
if (Math.abs(xenf - trg.xp) < roxx * 0.800000 && Math.abs(yenf - trg.yp) < roxx * 0.800000)
{
if (xenf < trg.xp)
{
minx = xenf + roxx * 0.800000;
}
else
{
maxx = xenf - roxx * 0.800000;
} // end else if
if (yenf < trg.xp)
{
miny = yenf + roxx * 0.800000;
}
else
{
maxy = yenf - roxx * 0.800000;
} // end if
} // end if
} // end if
} // end else if
} // End of the function
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");
} // end else if
if (trg.s != 78)
{
hurt(ball[z], 100);
} // end if
} // end of for...in
} // end if
mheart._visible = false;
} // End of the function
function hurt(trg, f1)
{
if (trg == mheart)
{
mheart.downbro = mheart.downbro - 3;
} // end if
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");
} // end if
} // end if
} // end if
if (trg.s == 102)
{
trg.hurt = true;
} // end if
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");
} // end if
} // end if
} // end if
if (trg.randd + 2 > fra && random(5) == 0)
{
trg.xpp = trg.xp;
trg.ypp = trg.yp;
} // end if
if (!trg.dones)
{
if (trg.s == 30)
{
trg.hppp = 0;
} // end if
if (trg.s == 38)
{
trg.telp = 20;
} // end if
if (trg.imba)
{
f1 = 0;
} // end if
if (trg.s == 62)
{
if (trg.worm == 1 && trg.d._currentframe == 8 || altboss)
{
trg = worm[6];
}
else if (trg.worm != 6)
{
f1 = 0;
}
else
{
f1 = f1 * 5;
} // end else if
} // end else if
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);
} // end if
} // end if
if (f1 > 0 && trg.mhp > 0 && trg != player && (trg.d.d.open || trg.s != 27 || trg.alter == 2 || lows.meat > 2 || lows.bird))
{
mdm.hurtReport(f1, trg);
if (trg.s == 19)
{
if (!trg.whop)
{
trg.whop = -1;
} // end if
}
else if (trg.s == 21)
{
trg.xpp = undefined;
} // end else if
if (trg.s == 45)
{
for (z in mom)
{
mom[z].hp = mom[z].hp - f1;
} // end of for...in
}
else if (trg.s == 28)
{
trg.mags[1].hp = trg.mags[1].hp - f1;
trg.mags[2].hp = trg.mags[2].hp - f1;
trg.mags[3].hp = trg.mags[3].hp - f1;
}
else
{
trg.hp = trg.hp - f1;
} // end else if
if (trg.hp < 0)
{
if (trg.s == 99 && trg.hp < 0)
{
_root.soundy("Monster_Roar_2.mp", 120);
} // end if
if (pacman)
{
if (!paccer)
{
player.hp = player.hp + 0.500000;
} // end if
paccer = !paccer;
} // end if
if (trg.poiss > 0)
{
trg.spl = 30;
} // end if
if (trg == mheart)
{
momkill();
} // end if
if (trg.s == 84 && trg.pow > 3)
{
momkill();
} // end if
if (ups[157] || lows.trixer == 45)
{
if (trixx(58))
{
rage = Math.min(6.600000, rage + 0.500000);
rag = rage * 0.320000 + 0.680000;
if (_root.skiner == 6)
{
rage = Math.min(8, rage + 0.500000);
rag = rage * 0.320000 + 0.680000;
} // end if
}
else
{
rage = Math.min(3.300000, rage + 0.280000);
rag = rage * 0.320000 + 0.680000;
} // end if
} // end else if
if (trixx(58) && random(15) == 0)
{
rage = Math.min(3.300000, rage + 0.500000);
rag = rage * 0.320000 + 0.680000;
} // end if
if (ups[226])
{
if (random(10) == 0)
{
scare = 160;
} // end if
} // end if
if (ups[224])
{
if (random(11) == 0)
{
To_lazy_to_do_this_right();
} // end if
} // end if
if (trixx(60) && random(20) == 0)
{
if (!dbird && ashut > 1)
{
dbird = 2;
} // end if
} // end if
if (!trg.flyai && ups[62] && trg.s >= 10)
{
if (_root.vamp++ >= 12 && player.mhp > 0)
{
_root.vamp = 0;
player.hp = player.hp + 0.500000;
parc("hearter", player.xp, player.yp - 20, 0, 100, player.dpppp + 5000);
_root.soundy("Vamp_Gulp.mp");
} // end if
} // end if
if (trg.s == 62)
{
for (z in worm)
{
worm[z].dones = true;
} // end of for...in
}
else if (trg.s == 45)
{
for (z in mom)
{
mom[z].dones = true;
mom[z]._visible = false;
} // end of for...in
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;
} // end else if
if (trg.s == 89)
{
trg.trg3.frei = true;
trg.trg2.frei = true;
trg.frei = true;
} // end if
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.xpp = trg.ypp = 0;
}
else if (trg.s == 10 && random(2) == 0 && trg.hp > -25)
{
trg.gosplash = true;
attach(trg, 11);
trg.s = 11;
trg.outway = true;
trg.hp = hps[trg.s];
splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.600000);
}
else if (trg.s == 24 && trg.d._currentframe < 3)
{
trg.gosplash = true;
trg.d.gotoAndStop(5);
trg.outway = true;
trg.hp = 10;
splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.600000);
}
else if (trg.s == 84)
{
++trg.pow;
if (trg.pow == 4)
{
trg.hp = trg.mhp;
trg.d.gotoAndStop(8);
trg.bh = false;
} // end if
}
else
{
trg.dones = true;
} // end else if
}
else
{
colorit(trg, 0.500000, 0.500000, 0.500000, 200, 0, 0);
trg.uncol = Math.round(fra + Math.min(6, f1 / 1.500000));
if (trg.hbar)
{
_root.hud.bar.bar.gotoAndPlay(1);
} // end if
if (trg.s == 62)
{
trg.uncol = Math.round(fra + Math.min(6, f1 / 1.500000));
for (z in worm)
{
if (worm[z].bh)
{
colorit(worm[z], 0.500000, 0.500000, 0.500000, 200, 0, 0);
worm[z].uncol = trg.uncol;
} // end if
} // end of for...in
}
else if (trg.s == 45)
{
trg.uncol = Math.round(fra + 1);
for (z in mom)
{
if (mom[z].bh || mom[z].mom == 3)
{
colorit(mom[z], 0.500000, 0.500000, 0.500000, 200, 0, 0);
mom[z].uncol = trg.uncol;
} // end if
} // end of for...in
trg.uncol = Math.round(fra + Math.min(6, f1 / 1.500000));
}
else if (trg.s == 28)
{
colorit(trg.mags[1], 0.500000, 0.500000, 0.500000, 200, 0, 0);
trg.mags[1].uncol = trg.uncol;
colorit(trg.mags[2], 0.500000, 0.500000, 0.500000, 200, 0, 0);
trg.mags[2].uncol = trg.uncol;
colorit(trg.mags[3], 0.500000, 0.500000, 0.500000, 200, 0, 0);
trg.mags[3].uncol = trg.uncol;
} // end if
} // end else if
} // end else if
} // end else if
} // End of the function
function colorit(trg, f1, f2, f3, f4, f5, f6)
{
var _loc1 = new flash.geom.ColorTransform();
_loc1.redMultiplier = f1;
_loc1.greenMultiplier = f2;
_loc1.blueMultiplier = f3;
_loc1.redOffset = f4;
_loc1.greenOffset = f5;
_loc1.blueOffset = f6;
var _loc3 = new flash.geom.Transform(trg);
if (trg.s == 9 || trg.s == 8)
{
trg.colo = _loc1;
} // end if
_loc3.colorTransform = _loc1;
} // End of the function
function pilcol(f1, f2, f3)
{
colorit(player, 0.300000, 0.300000, 0.300000, f1 * 1.300000, f2 * 1.300000, f3 * 1.300000);
pillef = fra + 30;
_root.playcol[0] = _root.playcol[0] * 0.400000;
_root.playcol[1] = _root.playcol[1] * 0.400000;
_root.playcol[2] = _root.playcol[2] * 0.400000;
_root.playcol[0] = _root.playcol[0] + f1 / 160;
_root.playcol[1] = _root.playcol[1] + f2 / 160;
_root.playcol[2] = _root.playcol[2] + f3 / 160;
} // End of the function
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);
} // end else if
} // end else if
}
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);
} // end else if
} // end else if
} // End of the function
function teller()
{
player.d.gotoAndStop(7);
telf = fra + player.d.d._totalframes - 3;
_root.soundy("hell_portal2.wav");
} // End of the function
function trixx(f111)
{
return (_root.trix == f111 || _root.atrix == f111);
} // End of the function
function playerhurt(f1, f2, f3)
{
if (_root.Insane == 1)
{
f1 = Math.max(f1, 1);
} // end if
if (_root.chaps > 6)
{
f1 = Math.max(f1, 1);
} // end if
if (ups[108])
{
f1 = 0.500000;
} // end if
if (f2 == 45)
{
if (trrisx + 50 + random(130) <= fra)
{
trrisx = fra;
_root.soundy("Mom_Vox_EvilLaugh.mp");
} // end if
} // end if
if (_root.chaps == 9 && _root.lev == _root.bossl)
{
plh = true;
} // end if
if (mhheart)
{
if (trrisx + 50 + random(130) <= fra)
{
trrisx = fra;
_root.soundy("Mom_Vox_Filtered_EvilLaugh.mp");
} // end if
} // end if
if (lasth - fra < 0 && player._visible && telf == undefined && playsave < 0 && unic < 0 && player._currentframe != 6 && horse <= 0 && dec <= 0)
{
if (f1 > 0)
{
flash.external.ExternalInterface.call("Hurt", f1);
lastk = f2;
plah = true;
if (f2 <= 200)
{
_root.nodmg = false;
} // end if
if (_root.armor > 0)
{
_root.armor = _root.armor - f1;
if (_root.armor <= 0)
{
_root.armor = 0;
} // end if
}
else
{
if (_root.eta)
{
_root.eta = false;
player.hp = player.hp + 0.500000;
} // end if
_root.armor = 0;
player.hp = player.hp - f1;
if (_root.devil != 2 && _root.devil != 3 && f2 <= 200)
{
_root.devil = false;
} // end if
if (f2 <= 200)
{
bossdmg = false;
} // end if
} // end else if
if (ups[148])
{
bluf = bluf + (1 + random(3));
} // end if
if (ups[215])
{
anarch = 5;
analt = 2;
} // end if
if (trixx(29))
{
++bluf;
} // end if
if (player.hp == 0 && _root.armor == 0.500000 || player.hp == 0.500000 && _root.armor <= 0)
{
if (trixx(33))
{
++ups[100];
} // end if
if (ups[142])
{
++_root.armor;
ups[142] = 0;
} // end if
} // end if
if (holz != undefined)
{
trg3 = create(player.xp * 0.600000 + holz.xp * 0.400000, player.yp * 0.600000 + holz.yp * 0.400000, 0, 0, 0, 0, 33.100000);
colorit(trg3.d.d, 0.450000, 0.700000, 1, 0, 0, 70);
_root.soundy("BGascan_pour.wav", 100);
holz.stopi = true;
holz.d.gotoAndStop(127);
holz = undefined;
} // end if
if (bluf > 1)
{
blufer = highs;
} // end if
if (trixx(40) && random(5) == 0)
{
razor = razor + 3;
} // end if
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);
} // end of for...in
} // end if
if (ups[156] && _root.itc != 1)
{
if (!_root.fixHabit)
{
_root.itc = _root.itc + 0.500000;
}
else
{
f1 = itc[_root.it];
_root.itc = _root.itc + 1 / f1;
} // end else if
_root.soundy("batterycharge.mp");
parc("batter", player.xp, player.yp - 20, 0, 100, player.dpppp + 5000);
} // end if
lasth = fra + f1 * 60;
if (_root.ups[122] && !ups[122] && player.hp > 0 && player.hp < 1)
{
ups[122] = 1.200000;
curs();
lasth = fra + 90;
}
else if (ups[117])
{
ups[117] = 0.550000;
} // end else if
if (ups[162] && random(5) == 0)
{
playsave = 200;
} // end if
if (demon > 0)
{
_root.soundy("Monster_Grunt_" + random(2) + "_B.mp");
}
else
{
_root.soundy("Isaac_Hurt_Grunt" + random(3) + ".mp");
} // end else if
if (ups[180])
{
farter = true;
} // end if
if ((player.hp <= 0 && _root.armor <= 0 || !(player.mhp > 0 || _root.armor > 0)) && !f3)
{
player.d.gotoAndStop(6);
player.d.d.gotoAndStop(sk);
player.dones = true;
}
else
{
if (f3 && player.hp <= 0)
{
player.hp = 0.500000;
} // end if
player.d.gotoAndStop(2);
if (player.hp <= 0.500000 || !(player.mhp > 0 || _root.armor > 0))
{
if (ups[59])
{
playsave = 150;
} // end if
if (trixx(43))
{
teller();
tar = _root.lastl;
if (_root.lev <= 0)
{
_root.lastl = tar = 35;
} // end if
} // end if
} // end if
} // end else if
return (true);
} // end if
} // end if
} // End of the function
function splater(f1, f2, f3, f4)
{
if (f3 >= 1)
{
blood.gotoAndStop(f3);
v1 = f4;
if (random(2) == 0)
{
v2 = -v1;
}
else
{
v2 = v1;
} // end else if
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);
} // end if
} // End of the function
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);
} // End of the function
function turd(f1, e, cent)
{
if (fra > 10 && levz[e] < 0.930000)
{
levz[e] = 1.500000;
clevzc[e] = 1.500000;
} // end if
if (levz[e] > 1.100000)
{
var _loc6 = _root.levsav[_root.lev][savv];
outgrid(e);
f2 = "de" + e * 1;
if (f1 == "fireblock2")
{
var _loc3 = attachMovie(f1, "de" + f2, Math.round(e + 501), {_x: xenf, _y: yenf});
_loc3.gotoAndStop(1);
this[f2] = _loc3.d;
_loc3 = _loc3.d;
ref.push(_loc3);
_loc3.fra = 0;
}
else
{
_loc3 = attachMovie(f1, f2, Math.round(e + 501), {_x: xenf, _y: yenf});
} // end else if
if (f1 == "breakblock2" || f1 == "fireblock" || f1 == "fireblock2")
{
_loc3.fire = true;
} // end if
_loc3.xp = xenf;
_loc3.yp = yenf;
_loc3.cent = cent;
_loc3.savv = savv;
_loc3.nam = f1;
_loc3.til = e;
if (_loc6 > 0 && _loc3.nam != "breakblock2")
{
_loc3.gotoAndStop(_loc6);
if (levz[e] == 4)
{
levz[e] = 0;
}
else
{
levz[e] = levz[e] - 0.130000 * (_loc6 - 1);
} // end if
} // end else if
if (fra < 10)
{
_loc3.p.gotoAndStop(_loc3.p._totalframes);
} // end if
if (fra > 10)
{
_loc3.gotoAndStop(6);
} // end if
if (f1 == "locktile" && _loc6 > 1)
{
_loc3.gotoAndStop(3);
} // end if
++savv;
return (_loc3);
} // end if
} // End of the function
function upa()
{
ups = _root.ups.slice(0, -1);
if (_root.ceye)
{
ups[21] = true;
} // end if
if (_root.world)
{
ups[21] = ups[54] = true;
} // end if
if (ups[69] && ups[52])
{
ups[69] = 0;
} // end if
if (ups[168])
{
ups[216] = ups[205] = ups[69] = 0;
} // end if
if (ups[216])
{
ups[118] = ups[69] = 0;
} // end if
if (ups[205])
{
ups[118] = 0;
} // end if
if (ups[114])
{
ups[118] = 0;
ups[205] = 0;
} // end if
if (ups[191])
{
f1 = [1, 2, 3, 5, 6, 46, 53, 110, 115, 143, 150];
ups[f1[random(f1.length)]] = 1;
} // end if
if (ups[210])
{
f1 = [140, 106, 125];
ups[f1[random(f1.length)]] = 1;
} // end if
if (_root.ups[122])
{
if (player.hp < 1)
{
ups[122] = 1;
sk = 7;
cus = true;
}
else
{
ups[122] = 0;
} // end if
} // end else if
if (trixx(32) && random(4) == 0)
{
f1 = [21, 71, 120, 121];
ups[f1[random(f1.length)]] = 1;
} // end if
if (trixx(64) && random(4) == 0)
{
f1 = [54, 13, 143, 70, 14];
ups[f1[random(f1.length)]] = 1;
} // end if
if (trixx(62))
{
f1 = [150];
ups[f1[random(f1.length)]] = 1;
} // end if
} // End of the function
function curs()
{
sk = 7;
_root.mmus = _root.soundy("isaacsatanitemget.mp", 100);
_root.over.gotoAndStop(13);
player.d.gotoAndStop(11);
player.it = 122;
} // End of the function
function golev()
{
upa();
if (_root.ups[122])
{
if (player.hp < 1)
{
ups[122] = 1;
cus = true;
}
else
{
ups[122] = 0;
} // end if
} // end else if
if (_root.skiner > 0 && _root.classit)
{
_root.classit = false;
f10 = [0, 45, 46, 34, 36, 117, 205, 232];
highs = player;
player.it = f10[_root.skiner];
powerlevel();
if (_root.skiner == 5)
{
_root.ups[122] = 1;
_root.cols.push(122);
} // end if
if (_root.skiner == 6)
{
_root.ups[157] = 1;
_root.cols.push(157);
} // end if
} // end if
addSpdItems = _root.wtfuuz;
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();
} // end of for...in
gofind = undefined;
} // end if
} // end if
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();
} // end if
if (!addSpdItems)
{
_root.wtfuuz = true;
f2_fix = flash.external.ExternalInterface.call("getStartupItems", "null");
gofind = true;
for (e_fix in f2_fix)
{
lastcra = -100;
player.empty = false;
highs = player;
player.it = f2_fix[e_fix];
powerlevel();
} // end of for...in
gofind = undefined;
} // end if
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");
} // end else if
_root.shroom = false;
} // end if
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);
} // end of for...in
savv = 0;
if (_root.levsav[_root.lev] == undefined)
{
_root.levsav[_root.lev] = [];
} // end if
if (_root.bomf[_root.lev] == undefined)
{
_root.bomf[_root.lev] = [];
} // end if
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;
} // end of for...in
} // end else if
player.xp = _root.playerx;
player.yp = _root.playery;
if (!nomore && _root.donelev[_root.lev] && _root.chesttype[_root.lev] != 4)
{
_root.m.nextFrame();
} // end if
qq = _root._quality;
if (qq != "high")
{
_root._quality = "high";
} // end if
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;
} // end if
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._yscale = trg._xscale = 100 / hdx;
for (e = 0; e < levz.length; e++)
{
if (levz[e] > 0 && levz[e] <= 1 || levz[e] == 1.900000 || levz[e] == 1.940000 || levz[e] == 1.930000 || levz[e] == 3)
{
outgrid(e);
if (levz[e] == 1.930000 || levz[e] == 1.940000)
{
if (levz[e] == 1.940000)
{
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);
} // end else if
levz[e] = 0.990000;
}
else if (levz[e] == 3)
{
v1 = [levz[e + 1] == 3, levz[e + rowz] == 3, levz[e - 1] == 3, levz[e - rowz] == 3];
v2 = random(2) - 1;
if (v1[0])
{
v2 = 1;
} // end if
if (v1[1])
{
v2 = 2;
} // end if
if (v1[2])
{
v2 = 3;
} // end if
if (v1[3])
{
v2 = 4;
} // end if
if (v1[2] && v1[0])
{
v2 = 5;
} // end if
if (v1[3] && v1[1])
{
v2 = 6;
} // end if
if (v1[0] && v1[1])
{
v2 = 7;
} // end if
if (v1[1] && v1[2])
{
v2 = 8;
} // end if
if (v1[2] && v1[3])
{
v2 = 9;
} // end if
if (v1[3] && v1[0])
{
v2 = 10;
} // end if
if (v1[0] && v1[1] && v1[2])
{
v2 = 11;
} // end if
if (v1[1] && v1[2] && v1[3])
{
v2 = 12;
} // end if
if (v1[2] && v1[3] && v1[0])
{
v2 = 13;
} // end if
if (v1[3] && v1[0] && v1[1])
{
v2 = 14;
} // end if
if (v1[0] && v1[1] && v1[2] && v1[3])
{
v2 = 15;
} // end if
tiles.gotoAndStop(23 + v2);
}
else if (levz[e] == 1.900000)
{
levz[e] = 1.800000;
tiles.gotoAndStop(random(4) + 11);
}
else if (levz[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);
} // end else if
}
else
{
tiles.gotoAndStop(94 + random(5) + _root.chaps * 5);
clevc[e] = levz[e] = 0;
} // end else if
maxx = new flash.geom.Matrix();
maxx.translate(xenf, yenf);
maxx.scale(hdx, hdx);
dblock.draw(tiles, maxx);
} // end if
} // end of for
yyo = 1;
for (e = 0; e < levz.length; e++)
{
switch (levz[e])
{
case 4:
{
turd("locktile", e);
break;
}
case 1.300000:
{
turd("egg", e);
break;
}
case 1.400000:
{
if (random(40) != 0 || firsttime)
{
turd("fireblock", e);
break;
} // end if
}
case 1.410000:
{
levz[e] = 1.400000;
turd("fireblock2", e);
break;
}
case 1.500000:
{
if (random(40) != 0 || firsttime)
{
turd("breakblock", e);
break;
} // end if
}
case 1.495000:
{
if (random(20) != 0 || firsttime)
{
if (trg = turd("breakblock3", e))
{
if (levz[e] > 1)
{
efly(trg);
} // end if
} // end if
trg.shit = true;
break;
} // end if
}
case 1.495500:
{
trg = turd("breakblock4", e);
trg.gold = true;
break;
}
case 1.490000:
{
levz[e] = 1.500000;
turd("breakblock2", e);
break;
}
} // End of switch
} // end of for
if (qq != "high")
{
_root._quality = qq;
} // end if
for (e = 0; e < 700; e = e + 10)
{
levz[ingrid(40 + e, 130)] = 1.900000;
} // end of for
for (e = 0; e < 700; e = e + 10)
{
levz[ingrid(40 + e, 450)] = 1.900000;
} // end of for
for (e = 0; e < 300; e = e + 10)
{
levz[ingrid(40, 130 + e)] = 1.900000;
} // end of for
for (e = 0; e < 300; e = e + 10)
{
levz[ingrid(600, 130 + e)] = 1.900000;
} // end of for
for (e = 0; e < levz.length; e++)
{
if (levz[e] < 0)
{
f1 = 9 - levz[e];
if (!firsttime || f1 == 44.200000 || f1 == 42.200000 || f1 == 44.100000 || f1 == 42.100000 || f1 == 42)
{
outgrid(e);
if (f1 < 10)
{
f1 = 5 - levz[e];
} // end if
f2 = 1;
if (Math.round(f1) == 62)
{
f2 = 7;
} // end if
if (!_root.beenlev2[_root.lev] || f1 > 6)
{
for (i = 0; i < f2; i++)
{
create(xenf, yenf + 10 + i, 0, 0, 0, 0, f1);
} // end of for
} // end if
levz[e] = 0;
} // end if
} // end if
if (Math.abs(levz[e]) <= 0)
{
levz[e] = 0;
} // end if
} // end of for
if (firsttime)
{
for (e = 0; e < levz.length; e++)
{
if (levz[e] < 0)
{
levz[e] = 0;
} // end if
if (Math.abs(levz[e]) <= 0)
{
levz[e] = 0;
} // end if
} // end of for
} // end if
clevc = levz.slice(0, -1);
for (e = 0; e < levz.length; e++)
{
if (clevc[e] == 2 || clevc[e] == 0.990000 || clevc[e] == 3.600000)
{
clevc[e] = 0;
} // end if
if (clevc[e] > 1 && clevc[e] < 2 || clevc[e] == 3)
{
clevc[e] = 1;
} // end if
} // end of for
for (e = 0; e < levz.length; e++)
{
f2 = clevc[e] + " " + clevc[e + rowz + 1];
f3 = clevc[e + 1] + " " + clevc[e + rowz];
if (f2 == "0 0" && f3 == "1 1")
{
clevc[e] = 2;
clevc[e + rowz + 1] = 2;
} // end if
if (f2 == "1 1" && f3 == "0 0")
{
clevc[e + 1] = 2;
clevc[e + rowz] = 2;
} // end if
} // end of for
for (e in clevc)
{
if (clevc[e] == 2)
{
clevc[e] = 1;
} // end if
} // end of for...in
for (e = 0; e < levz.length; e++)
{
f2 = clevc[e] + " " + clevc[e + 1];
f4 = levz[e] + " " + levz[e + 1];
f3 = clevc[e] + " " + clevc[e + rowz];
f5 = levz[e] + " " + levz[e + rowz];
if (f2 == "1 1" && f4 == "0 0")
{
clevc[e] = 0;
clevc[e + 1] = 0;
} // end if
if (f3 == "1 1" && f5 == "0 0")
{
clevc[e + 1] = 0;
clevc[e + rowz] = 0;
} // end if
} // end of for
if (_root.lev == _root.boner)
{
_root.treasd = true;
} // end if
if (_root.lev == _root.boner2)
{
_root.treasd2 = true;
} // end if
if (_root.lev == _root.sac)
{
_root.sacb = true;
} // end if
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;
} // end if
trg._visible = true;
} // end else if
} // end else if
if (trg._visible)
{
trg.blo = ingrid(trg._x, trg._y);
_root.seenlev[trg.gol] = true;
if (ups[91])
{
if (trg.gol == _root.sac)
{
_root.sacb = true;
} // end if
if (trg.gol == _root.boner)
{
_root.treasd = true;
} // end if
if (trg.gol == _root.boner2)
{
_root.treasd2 = true;
} // end if
if (trg.gol == _root.hide)
{
hider();
} // end if
if (trg.gol == _root.hide2)
{
hider2();
} // end if
if (trg.gol == _root.minb)
{
_root.minbb = true;
} // end if
} // end if
if (_root.lev == _root.hide && (_root.lastl == undefined || _root.lastl == _root.lev) && trg.gol != _root.bossl && trg.gol != _root.bossl2)
{
_root.lastl = trg.gol;
} // end if
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)
{
trg.hide = true;
trg.gotoAndStop(17);
levz[trg.blo] = 0;
}
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.gotoAndStop(17);
levz[trg.blo] = 0;
}
else if ((trg.gol == _root.hide || _root.lev == _root.hide) && !satan)
{
trg.hide = true;
trg.gotoAndStop(10);
levz[trg.blo] = 1.850000;
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;
} // end if
}
else if ((trg.gol == _root.hide2 || _root.lev == _root.hide2) && !satan)
{
trg.hide2 = true;
trg.gotoAndStop(10);
levz[trg.blo] = 1.850000;
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;
} // end if
}
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);
} // end else if
}
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);
} // end else if
}
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.850000;
} // end else if
if (_root.chaps == 11 && !trg.hide && !trg.hide2)
{
levz[trg.blo] = 2;
} // end if
} // end if
f2 = 28;
f1 = (trg._rotation - 90) / 180 * 3.141593;
trg.xp = trg._x - Math.sin(f1) * f2;
trg.yp = trg._y + Math.cos(f1) * f2;
} // end of for...in
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.010000);
} // end of for...in
if (gopill)
{
create(320, 240, 0, 0, 0, 0, 5.070000);
} // end if
if (inem)
{
inl.gotoAndStop("empty");
inl.swapDepths(33901);
}
else
{
gotoAndStop("empty");
} // end else if
lads.swapDepths(491);
_root.beenlev2[_root.lev] = true;
} // End of the function
function spawnb(f1, f2)
{
if (levz.length <= 1)
{
levz = new Array(200);
} // end if
if (f1._alpha < 30)
{
if (f2 < -0.500000 || f2 > 0)
{
f2 = f2 - 0.200000;
} // end if
}
else if (f1._alpha < 75)
{
if (f2 == 1)
{
f2 = 1.900000;
}
else if (f2 < -0.500000 || f2 > 0)
{
f2 = f2 - 0.100000;
} // end else if
} // end else if
var _loc3 = ingrid(f1._x, f1._y);
levz[_loc3] = f2;
} // End of the function
function sideflip(f1, trg2)
{
trg.sf2 = trg2;
if (trg2 == undefined)
{
if (trg.sf2 == undefined)
{
trg2 = trg.d;
}
else
{
trg2 = trg.sf2;
} // end if
} // end else if
trg.sf = true;
if (f1 * trg2._xscale < -100)
{
trg2._xscale = trg2._xscale * -1;
} // end if
} // End of the function
function pathfind(trg, f1, f2, f3)
{
if (trg.speed == undefined)
{
trg.speed = 1;
} // end if
if (trg.s == 35)
{
f3 = f3 * 1.100000;
} // end if
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;
if (v2 != trg.tiler)
{
--trg.tiletimer;
if (trg.tiler == undefined || trg.tiletimer < 0 || trg == player)
{
trg.tiler = v2;
trg.tiletimer = 2 / Math.max(0.200000, f3);
} // end if
} // end if
if (fra % 3 == 1)
{
v2 = 40 / enfget(trg.xbew, trg.ybew);
v2 = levz[ingrid(trg.xp + trg.xbew * v2, trg.yp + trg.ybew * v2)];
if (v2 > 0 && v2 < 1)
{
trg.speed = 0.700000;
}
else
{
trg.speed = 1;
} // end if
} // end else if
v2 = trg.tiler;
if (levz[trg.tiler] < 0.990000 && trg.s != 16)
{
if (trg.s == 58)
{
levz[trg.tiler] = 0.200000;
}
else
{
levz[trg.tiler] = 0.900000;
} // end if
} // end else if
if (f3 == undefined)
{
f3 = 1;
} // end if
f3 = f3 * trg.speed;
nogo = true;
if ((fra + trg.e) % 10 == 1)
{
if (trg.see)
{
trg.lastv = v5 = linecheckxx(xppp, yppp, xpp, ypp);
}
else
{
trg.lastv = v5 = linecheck(xppp, yppp, xpp, ypp);
} // end else if
if (trg.lastv && trg.firss + 40 <= fra && random(3) == 0 && gochar)
{
trg.firss = fra;
_root.soundy("Zombie_Walker_Kid.mp", 100);
} // end if
}
else
{
v5 = trg.lastv;
} // end else if
trg.d.h.stop();
if (!trg.gonuts)
{
f3 = f3 * 0.830000;
} // end if
if (trg.d.h._currentframe > 2)
{
f3 = f3 * 1.200000;
trg.d.h.nextFrame();
}
else if (trg.gonuts)
{
trg.d.h.gotoAndStop(2);
} // end else if
if (v5 && (enf = enfcheck(trg.xp, trg.yp, f1, f2, 750, true)) || v1 == v2)
{
if (trg.gonuts)
{
trg.d.h.nextFrame();
f3 = f3 * 1.100000;
} // end if
trg.tiletimer = trg.tiletimer - 5;
trg.gridtime = trg.gridtime - 10;
xenf = f1;
yenf = f2;
nogo = false;
}
else if (levz[v1] != 1)
{
if ((trg.gridder == undefined || trg.gridtime < 0) && nogridyet)
{
nogridyet = false;
trg.gridder = levz.slice(0, -1);
acts = [];
acts2 = [];
for (z = -1; z > -100 && trg.gridder[v2] >= 0; z--)
{
if (z == -1)
{
pff(v1, -1);
}
else
{
for (e in acts)
{
v1 = trg.gridder[acts[e]];
if (v1 < z)
{
acts2.push(acts[e]);
continue;
} // end if
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);
} // end of for...in
} // end else if
acts2[acts2.length] = 0;
acts = acts2.slice(0, -1);
acts2 = [];
} // end of for
if (z < -99)
{
trg.gridder = 0;
} // end if
trg.gridtime = Math.min(20, -z) + ball.length * 2 + 7;
} // end if
trg.gridtime * 0.900000;
trg.gridtime = 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)];
arrr = [0, 0, 0, 0, 0, 0, 0, 0];
arrrr = [0, 0, 0, 0, 0, 0, 0, 0];
for (e in testarr)
{
if (levz[testarr[e]] != 0)
{
arrr[e] = 1;
} // end if
} // end of for...in
for (e in testarr)
{
if (arrr[e] == 1)
{
arrrr[e] = -1;
arrrr[e + 1] = -1;
arrrr[e - 1] = -1;
if (e == 0 || e == 7)
{
arrrr[7] = -1;
arrrr[0] = -1;
} // end if
} // end if
} // end of for...in
for (e in testarr)
{
if (clevc[testarr[e]] == 0)
{
pff1(testarr[e], 0);
} // end if
} // end of for...in
if (v3 < 0)
{
outgrid(v4);
nogo = false;
} // end if
} // end if
} // end else if
if (!nogo && (enf = enfget(xenf, yenf)) > 0.100000)
{
var _loc6 = xenf - trg.xp;
var _loc7 = yenf - trg.yp;
xenf = _loc6;
yenf = _loc7;
enf = enfget(xenf, yenf);
if (enf > 1)
{
enf = Math.min(enf * 0.100000, 2) / enf * f3;
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
trg.xbew = trg.xbew + xenf * enf;
trg.ybew = trg.ybew + yenf * enf;
} // end if
}
else
{
xenf = yenf = 0;
trg.xbew = trg.xbew * 0.500000;
trg.ybew = trg.ybew * 0.500000;
} // end else if
}
else
{
xenf = yenf = 0;
trg.xbew = trg.xbew * 0.850000;
trg.ybew = trg.ybew * 0.850000;
} // end else if
gochar = false;
} // End of the function
function mhity(f1, f2)
{
if (f1 > 20 && f1 < 620 && f2 > 110 && f2 < 447)
{
f33 = ingrid(f1, f2);
f1 = levz[f33];
if (f1 >= 1 && f1 != 3)
{
return (true);
} // end if
}
else
{
return (true);
} // end else if
} // End of the function
function mhitx(f1, f2)
{
if (f1 > 20 && f1 < 620 && f2 > 110 && f2 < 447)
{
f1 = levz[ingrid(f1, f2)];
if (f1 > 1.800000 && f1 != 3)
{
return (true);
} // end if
}
else
{
return (true);
} // end else if
} // End of the function
function mhix()
{
f3 = false;
for (i in hardx[v1])
{
f3 = !f3;
if (f3)
{
if (mhity(f1 + hardx[v1][i], f2 + hardy[v1][i]))
{
f5 = f5 + hardx[v1][i];
f6 = f6 + hardy[v1][i];
} // end if
} // end if
} // end of for...in
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 = f5 + hardx[v1][i];
f6 = f6 + hardy[v1][i];
} // end if
} // end if
} // end of for...in
} // end if
} // End of the function
function shit(f1, f2)
{
return (blorz.hitTest(f1 + _x, f2 + _y, true));
} // End of the function
function mhit(f1, f2)
{
if (f1 > 20 && f1 < 620 && f2 > 110 && f2 < 447)
{
f1 = levz[ingrid(f1, f2)];
if (f1 >= 1)
{
return (true);
} // end if
}
else
{
return (true);
} // end else if
} // End of the function
function pff3(f4)
{
f4 = levz[f4];
if (f4 != 0.990000)
{
if (f4 >= 1)
{
f5 = -1;
}
else if (f4 > 0)
{
f5 = f5 - 0.300000;
} // end if
} // end else if
} // End of the function
function pff3x1(f4)
{
f4 = levz[f4];
if (f4 != 3)
{
if (f4 >= 1)
{
f5 = -1;
}
else if (f4 > 0)
{
f5 = f5 - 0.300000;
} // end if
} // end else if
} // End of the function
function linecheckxx(f1, f2, f3, f4)
{
var _loc5 = f1 - f3;
var _loc6 = f2 - f4;
var _loc7 = enfget(_loc5, _loc6);
var _loc8 = 2.500000;
if (_loc7 > 0)
{
_loc5 = _loc5 / _loc7;
_loc6 = _loc6 / _loc7;
_loc5 = _loc5 * 10;
_loc6 = _loc6 * 10;
for (var _loc2 = 0; _loc2 < _loc7; _loc2 = _loc2 + 10)
{
f1 = f1 - _loc5;
f2 = f2 - _loc6;
f3 = ingrid(f1, f2);
if (levz[f3] >= 1.800000 && levz[f3] != 1.850000 && levz[f3] != 3)
{
_loc8 = -1;
} // end if
} // end of for
} // end if
return (_loc8 > 0);
} // End of the function
function linecheckx(f1, f2, f3, f4)
{
var _loc5 = f1 - f3;
var _loc6 = f2 - f4;
var _loc4 = enfget(_loc5, _loc6);
f5 = 2.500000;
f6 = 5;
if (_loc4 > 0)
{
_loc5 = _loc5 / _loc4;
_loc6 = _loc6 / _loc4;
_loc5 = _loc5 * 10;
_loc6 = _loc6 * 10;
for (var _loc1 = 0; _loc1 < _loc4; _loc1 = _loc1 + 10)
{
f1 = f1 - _loc5;
f2 = f2 - _loc6;
pff3(ingrid(f1, f2));
} // end of for
} // end if
return (f5 > 0);
} // End of the function
function linecheck(f1, f2, f3, f4)
{
var _loc5 = f1 - f3;
var _loc6 = f2 - f4;
var _loc4 = enfget(_loc5, _loc6);
f5 = 2.500000;
f6 = 5;
if (_loc4 > 0)
{
_loc5 = _loc5 / _loc4;
_loc6 = _loc6 / _loc4;
_loc5 = _loc5 * 10;
_loc6 = _loc6 * 10;
for (var _loc3 = 0; _loc3 < _loc4; _loc3 = _loc3 + 10)
{
f1 = f1 - _loc5;
f2 = f2 - _loc6;
pff3(ingrid(f1 + f6, f2 + f6));
pff3(ingrid(f1 - f6, f2 + f6));
pff3(ingrid(f1 - f6, f2 - f6));
pff3(ingrid(f1 + f6, f2 - f6));
} // end of for
} // end if
return (f5 > 0);
} // End of the function
function linechecky(f1, f2, f3, f4)
{
var _loc5 = f1 - f3;
var _loc6 = f2 - f4;
var _loc4 = enfget(_loc5, _loc6);
f5 = 2.500000;
f6 = 2;
if (_loc4 > 0)
{
_loc5 = _loc5 / _loc4;
_loc6 = _loc6 / _loc4;
_loc5 = _loc5 * 10;
_loc6 = _loc6 * 10;
for (var _loc3 = 0; _loc3 < _loc4; _loc3 = _loc3 + 10)
{
f1 = f1 - _loc5;
f2 = f2 - _loc6;
pff3x1(ingrid(f1 + f6, f2 + f6));
pff3x1(ingrid(f1 - f6, f2 + f6));
pff3x1(ingrid(f1 - f6, f2 - f6));
pff3x1(ingrid(f1 + f6, f2 - f6));
} // end of for
} // end if
return (f5 > 0);
} // End of the function
function st11(f1)
{
_root.hud.st1.tex = f1;
_root.hud.st1.gotoAndPlay(1);
_root.hud.st1._visible = true;
} // End of the function
function itn2(f1)
{
if (f1 >= 18 || f1 == 16)
{
return (40);
}
else
{
return (32);
} // end else if
} // End of the function
function itn(f1)
{
if (f1 < 55)
{
return (32);
}
else
{
return (40);
} // end else if
} // End of the function
function powerlevel()
{
_root.beenlev[_root.lev] = 2;
var _loc3 = _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);
} // end else if
} // end else if
} // end else if
maxp = true;
if (!highs.empty && fra - lastcra >= 30)
{
if (chama == 1 && _root.lev == _root.chamb)
{
chama = 2;
} // end if
st11(_root.st1[highs.it]);
st22(_root.st2x[highs.it]);
if (highs.d._currentframe == 10)
{
var _loc2 = highs.d.d;
}
else
{
_loc2 = highs.d;
} // end else if
highs.empty = true;
for (i in _root.ittt9)
{
if (highs.it == _root.ittt9[i])
{
_root.bookster = true;
} // end if
} // end of for...in
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);
} // end if
} // end else if
++_root.ups[highs.it];
if (!gofind)
{
_root.colss[highs.it] = true;
} // end if
if (highs != player)
{
highs.d.d.d.gotoAndPlay(21);
} // end if
player.d.gotoAndStop(4);
player.it = highs.it;
if (highs.it == 7)
{
_root.fmode = 8;
hat(7);
}
else if (highs.it < 8)
{
_root.hmode = _root.fmode = 1 + highs.it;
} // end else if
if (highs.it == 27)
{
hat(27);
} // end if
if (highs.it == 81)
{
if (_root.skiner == 4)
{
_root.armor = 1;
}
else
{
_root.ups[23] = _root.ups[23] + (1 - player.mhp);
} // end else if
ups[23] = _root.ups[23];
} // end if
if (highs.it == 52)
{
_root.ittt.push(125, 125, 125, 125, 125, 125, 106, 106, 106, 106, 106, 106);
} // end if
if (highs.it == undefined)
{
st11("Nam was here!");
} // end if
if (highs.it == 179)
{
eta();
} // end if
if (highs.it == 137)
{
if (_root.ups[137] == 1)
{
_root.bombs = _root.bombs + 5;
} // end if
}
else if (highs.it == 189)
{
_root.hmode = 42;
_root.bmode = 27;
++player.hp;
}
else if (highs.it == 209)
{
_root.hmode = 46;
}
else if (highs.it == 216)
{
_root.hmode = 48;
}
else if (highs.it == 190)
{
hat(58);
_root.bombs = 99;
}
else if (highs.it == 211)
{
hat(62);
_root.purrr = 1;
}
else if (highs.it == 222)
{
hat(63);
}
else if (highs.it == 191)
{
_root.hmode = 44;
}
else if (highs.it == 193)
{
hat(55);
++player.hp;
}
else if (highs.it == 194)
{
kogs = [5.300000];
hat(60);
}
else if (highs.it == 195)
{
kogs = [5.070000, 5.070000, 5.070000, 5.070000];
hat(59);
}
else if (highs.it == 196)
{
hat(56);
kogs = [5.010000, 5.010000];
}
else if (highs.it == 197)
{
hat(57);
}
else if (highs.it == 198)
{
_root.bmode = 26;
kogs = [5.350000, 5.070000, 5.020000, 5.010000, 5.300000, 5.030000, 5.040000];
}
else if (highs.it == 207)
{
_root.bmode = 26;
}
else if (highs.it == 182)
{
_root.ups[3] = ups[3] = 1;
_root.hmode = 41;
++_root.armor;
player.hp = 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])
{
ups[2] = _root.ups[2] = 0.500000;
} // end if
}
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])
{
ups[2] = _root.ups[2] = 0.300000;
} // end if
_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])
{
ups[2] = _root.ups[2] = 0.400000;
} // end if
_root.fmode = 23;
}
else if (highs.it == 165)
{
hat(51);
}
else if (highs.it == 176)
{
hat(52);
player.hp = player.hp + 1.500000;
}
else if (highs.it == 154)
{
_root.hmode = 38;
}
else if (highs.it == 143)
{
_root.hmode = 35;
}
else if (highs.it == 159)
{
sk = _root.sk = 7;
_root.hmode = 39;
_root.bmode = 22;
_root.ups[115] = 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 = _root.bombs + 5;
}
else if (highs.it == 141)
{
hat(43);
cowss = 7;
}
else if (highs.it == 125)
{
_root.bombs = _root.bombs + 5;
}
else if (highs.it == 210)
{
_root.bombs = _root.bombs + 5;
}
else if (highs.it == 134)
{
_root.bmode = 19;
}
else if (highs.it == 221)
{
_root.bmode = 30;
}
else if (highs.it == 118)
{
sk = _root.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 = player.hp + 5;
hat(35);
}
else if (highs.it == 129)
{
player.hp = player.hp + 0.500000;
_root.bmode = 14;
}
else if (highs.it == 115 || highs.it == 185)
{
_root.hmode = 32;
_root.ups[115] = ups[115] = 1;
_root.fmode = 18;
}
else if (highs.it == 225)
{
_root.ups[115] = ups[115] = 1;
}
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 = _root.bombs + 5;
}
else if (highs.it == 101)
{
++player.hp;
hat(29);
}
else if (highs.it == 59)
{
}
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 = _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 == 4)
{
_root.maxish = 1;
}
else if (highs.it == 81)
{
ups[81] = _root.ups[81] = 8;
_root.catlives = 1;
}
else if (highs.it == 82)
{
_root.hmode = 22;
sk = _root.sk = 7;
}
else if (highs.it == 72)
{
_root.armor = _root.armor + 3;
_root.ittt4.push(33, 33, 33, 33, 33, 33, 33);
_root.bmode = 6;
}
else if (highs.it == 79)
{
_root.armor = _root.armor + 1;
hat(17);
_root.Lokiii = 1;
}
else if (highs.it == 80)
{
_root.armor = _root.armor + 2;
_root.bmode = 8;
_root.hmode = 20;
sk = _root.sk = 7;
}
else
{
if (highs.it == 229)
{
if (_root.skiner == 2)
{
_root.luck = 3;
} // end if
} // end if
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)
{
}
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 = player.hp + 2;
hat(15);
}
else if (highs.it == 32)
{
hat(16);
}
else if (highs.it == 28)
{
_root.bmode = 7;
} // end else if
} // end else if
if (highs.it == 48)
{
_root.fmode = 10;
} // end if
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 == 208 || highs.it == 223 || highs.it == 227 || highs.it == 204 || highs.it == 213 || highs.it == 214 || highs.it == 232 || highs.it == 230 || highs.it == 218 || highs.it == 220 || 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 == 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;
} // end if
highs.d.gotoAndStop(10);
_loc2 = highs.d.d;
_loc2.d.gotoAndPlay(1);
f11 = _root.it + itn2(_root.it);
_loc2.d.d.gotoAndStop(f1);
_root.it = highs.it - itn(highs.it);
highs.it = f11;
highs.empty = false;
highs.done = false;
highs.d.d.d.d.gotoAndStop(highs.it);
}
else
{
_root.it = highs.it - itn(highs.it);
} // end else if
if (_root.it != 11)
{
_root.itc = _root.iter[_root.it];
if (ups[116])
{
_root.itc = Math.max(0.334000, _root.itc);
} // end if
} // end if
}
else
{
if (highs.d._currentframe != 10 && highs.s == 5)
{
highs.d.gotoAndStop(11);
} // end if
_root.cols.push(highs.it);
if (!itzz(highs.it) && !satan)
{
if (highs.it == 5)
{
_root.wiptz = _root.wiptz + 0.200000;
}
else
{
++_root.wiptz;
} // end if
} // end else if
} // end else if
if (highs.it >= 50 && highs.it < 54)
{
hat(highs.it - 48);
}
else
{
switch (highs.it)
{
case 19:
{
_root.bombs = _root.bombs + 10;
hat(30);
break;
}
case 17:
{
_root.keys = 99;
hat(14);
break;
}
case 18:
{
_root.coins = 99;
break;
}
case 74:
{
_root.coins = 99;
break;
}
case 206:
{
_root.coins = _root.coins + 25;
break;
}
} // End of switch
} // end else if
if (highs.it == 48)
{
hat(6);
} // end if
if (highs.it == 70)
{
hat(8);
} // end if
if (highs.it == 62)
{
_root.hmode = 15;
} // end if
if (highs.it == 69)
{
_root.fmode = 13;
} // end if
lastcra = fra;
if (highs != player)
{
if (highs.d._currentframe == 10)
{
}
else
{
highs.done = true;
} // end if
} // end else if
if (_root.ups[4] + _root.ups[38] + _root.ups[42] + Math.max(0, _root.ups[81]) >= 1.100000)
{
_root.locker[40] = true;
} // end if
if (_root.ups[13] + _root.ups[14] + _root.ups[70] >= 2)
{
_root.locker[37] = true;
} // end if
if (_root.ups[55] && _root.ups[31] + _root.ups[30] + _root.ups[39] + _root.ups[41] >= 1)
{
_root.locker[47] = true;
} // end if
}
else
{
} // end else if
nohit = false;
if (_root.fmode != _loc3)
{
} // end if
ups[highs.it] = _root.ups[highs.it];
} // End of the function
function externalCallBackFunction(msg)
{
_root.classit = false;
player.empty = false;
highs = player;
player.it = msg;
powerlevel();
return (true);
} // End of the function
function externalCallBackTrinkets(msg)
{
pillc(msg);
return (true);
} // End of the function
function externalCallBackReroll()
{
for (a in ball)
{
trg2 = ball[a];
if (trg2.s == 5 && trg2.it && !trg2.empty)
{
trg2.it = giveit();
if (trg2.d._currentframe == 10)
{
trg2.d.d.gotoAndPlay(1);
} // end if
} // end if
} // end of for...in
return (true);
} // End of the function
function externalCallBackRerolld20()
{
for (e in ball)
{
trg2 = ball[e];
if (trg2.s == 5)
{
if (trg2.d._currentframe < 8)
{
trg2.done = true;
f1 = 5.010000 + random(6) * 0.010000;
if (f1 == 5.060000 && random(2) == 0)
{
f1 = 5.010000;
} // end if
if (f1 == 5.050000 && random(3) == 0)
{
f1 = 5.020000;
} // end if
if (random(10) == 0)
{
f1 = 5.030000 + random(2) * 0.010000;
} // end if
if (random(15) == 0)
{
f1 = 5.300000;
} // end if
if (random(15) == 0)
{
f1 = 5.070000;
} // end if
if (random(20) == 0)
{
f1 = 5.350000;
} // end if
create(trg2.xp, trg2.yp, 0, 0, 0, 0, f1);
} // end if
} // end if
} // end of for...in
return (true);
} // End of the function
function externalCallBackGetBallItems()
{
retballs = [];
for (e in ball)
{
tmptrg = ball[e];
if (tmptrg.it != undefined)
{
if (e != 0)
{
retballs.push(tmptrg.it);
} // end if
} // end if
} // end of for...in
return (retballs);
} // End of the function
function externalCallBackRoomTeleport(msg)
{
tar = msg;
teller();
return (true);
} // End of the function
function externalCallBackSetColor(f1, f2, f3)
{
_root.playcol[0] = f1;
_root.playcol[1] = f2;
_root.playcol[2] = f3;
return (true);
} // End of the function
function externalCallBackFloorTeleport(msg)
{
_root.beenlev[_root.lev] = false;
_root.shroom = 0;
_root.door = undefined;
_root.playerx = 320;
_root.playery = 400;
_root.getup = true;
_root.chaps = msg;
newstart(false);
_root.gotoAndStop("reset");
return (true);
} // End of the function
function externalCallBackGetDmgDo(msg)
{
sob = msg;
chaf = fra - 100;
return (dmgdo());
} // End of the function
function externalCallBackGetPool(msg)
{
if (msg !== 1)
{
}
else
{
} // end else if
return (msg === 10 ? (// Jump to 11162, _root.ittt10) : (// Jump to 11162, // Jump to 11162, // Jump to 11162, // Jump to 11162, // Jump to 11162, // Jump to 11162, // Jump to 11162, // Jump to 11162, // Jump to 11162, _root.ittt9));
} // End of the function
function externalCallBackSetPool(msg, newpool)
{
switch (msg)
{
case 1:
{
_root.ittt = newpool;
break;
}
case 2:
{
_root.ittt2 = newpool;
break;
}
case 3:
{
_root.ittt3 = newpool;
break;
}
case 4:
{
_root.ittt4 = newpool;
break;
}
case 5:
{
_root.ittt5 = newpool;
break;
}
case 6:
{
_root.ittt6 = newpool;
break;
}
case 7:
{
_root.ittt7 = newpool;
break;
}
case 8:
{
_root.ittt8 = newpool;
break;
}
case 9:
{
_root.ittt9 = newpool;
break;
}
case 10:
{
_root.ittt10 = newpool;
break;
}
} // End of switch
return (true);
} // End of the function
function externalCallBackSetUps(newspdups)
{
_root.ups = newspdups;
ups = newspdups;
return (true);
} // End of the function
function externalCallBackSpaw(spaw_id)
{
spaw(player.xp, player.yp, 40, spaw_id);
return (true);
} // End of the function
function externalCallBackSetFloorLayout(newlvlz, specroomz)
{
_root.levz = newlvlz;
_root.seenlev = [];
_root.seenlev[35] = true;
_root.beenlev2 = [];
_root.beenlev2[35] = true;
_root.beenlev = [];
_root.beenlev[35] = true;
var _loc6 = _root.lev;
var _loc5 = _root.levcol[_root.lev];
_root.levcol = [];
_root.levcol[_loc6] = _loc5;
_root.levit = [];
_root.levsav = [];
_root.levblow = [];
_root.levz[166] = specroomz[0];
_root.levz[169] = specroomz[1];
_root.bossl = specroomz[2];
_root.bossl2 = specroomz[3];
_root.boner = specroomz[4];
_root.boner2 = specroomz[5];
_root.sac = specroomz[6];
_root.lib = specroomz[7];
_root.cus = specroomz[8];
_root.minb = specroomz[9];
_root.gamb = specroomz[10];
_root.shopl = specroomz[11];
_root.hide = specroomz[12];
_root.hide2 = specroomz[13];
_root.chamb = specroomz[14];
_root.altch = specroomz[15];
_root.altsat = specroomz[16];
_root.double = specroomz[17];
_root.altchap = specroomz[18];
_root.altboss = specroomz[19];
_root.altboss2 = specroomz[20];
_root.bosss = specroomz[21];
_root.bosss2 = specroomz[22];
return (true);
} // End of the function
function externalCallBackStats(command, amount)
{
switch (command)
{
case 1:
{
_root.armor = amount;
break;
}
case 2:
{
_root.ups[15] = amount;
ups[15] = _root.ups[15];
break;
}
case 3:
{
_root.luck = amount;
break;
}
case 4:
{
_root.ups[32] = amount;
ups[32] = _root.ups[32];
break;
}
case 5:
{
_root.ups[31] = amount;
ups[31] = _root.ups[31];
break;
}
case 6:
{
_root.ups[27] = amount;
ups[27] = _root.ups[27];
break;
}
} // End of switch
return (true);
} // End of the function
function invp()
{
player._visible = false;
for (e in ball)
{
trg2 = ball[e];
if (trg2.s <= 3)
{
trg2._visible = false;
} // end if
} // end of for...in
} // End of the function
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;
} // end if
} // End of the function
function frez(trg)
{
if (trg.frezz < 0 || !trg.frezz)
{
trg.frezz = 70;
trg.uncol = Math.round(fra + trg.freez + 1);
speco(trg);
} // end if
} // End of the function
function frezzz(trg)
{
if (trg.frezz < 0 || !trg.frezz)
{
trg.frezz = 200;
trg.uncol = Math.round(fra + trg.freez + 1);
speco(trg);
} // end if
} // End of the function
function spida(f1, trg)
{
if (f1)
{
colorit(trg, 0.500000, 0.500000, 0.500000, -100, -100, -100);
trg.spida = 2;
}
else
{
colorit(trg, 0.500000, 0.500000, 0.500000, 150, 150, 150);
trg.spida = 1;
} // end else if
if (f1 == undefined)
{
trg.spid = 240;
}
else
{
trg.spid = 60;
} // end else if
trg.uncol = Math.round(fra + trg.spid);
} // End of the function
function spidas(f1, trg)
{
if (f1)
{
colorit(trg, 0.500000, 0.500000, 0.500000, -100, -100, -100);
trg.spida = 2;
}
else
{
colorit(trg, 0.500000, 0.500000, 0.500000, -100, -100, -100);
trg.spida = 1;
} // end else if
if (f1 == undefined)
{
trg.spid = 240;
}
else
{
trg.spid = 60;
} // end else if
trg.uncol = Math.round(fra + trg.spid);
} // End of the function
function spidcol(trg, f1, f2, f3)
{
if (ups[110] && !lows.ba && random(5 - _root.luck) == 0 && !trg.mom && trg.s != 84)
{
if (trg.mag)
{
for (z in trg.mags)
{
frez(trg.mags[z]);
} // end of for...in
} // end if
if (trg.worm == 6)
{
for (z in worm)
{
frez(worm[z]);
} // end of for...in
}
else if (!trg.worm)
{
frez(trg);
} // end else if
if (trg.s == 19)
{
trg2 = trg;
while (trg2.trg2)
{
trg2 = trg2.trg2;
frez(trg2);
} // end while
trg2 = trg;
while (trg2.trg3)
{
trg2 = trg2.trg3;
frez(trg2);
} // end while
} // end if
} // end if
if (ups[151] || purr)
{
if (!lows.ba && random(6 - _root.luck) == 0 || purr && bluf < 1 && ball.length < 30 && (random(3) == 0 || !ups[152]))
{
++bluf;
blufer = trg;
} // end if
} // end if
if (ups[103] && !lows.ba && random(4 - _root.luck) == 0 || lows.trixer == 1)
{
if (trg.poiss > 20)
{
trg.poiss = trg.poiss + 40;
}
else
{
trg.poiss = 60;
} // end else if
if (lows.trixer == 1)
{
trg.poisd = 4;
}
else
{
trg.poisd = 2;
} // end else if
trg.uncol = Math.round(fra + 60);
speco(trg);
} // end if
if (ups[207] && !lows.ba && random(8 - _root.luck) == 0 || lows.trixer == 1)
{
if (trg.elect > 20)
{
trg.elect = trg.elect + 40;
}
else
{
trg.elect = 30;
if (ups[63])
{
trg.elect = 100;
}
else
{
trg.elect = 30;
} // end else if
} // end else if
if (lows.trixer == 1)
{
trg.electd = 1.300000 * dmgdo();
}
else if (ups[116])
{
trg.electd = 1.500000 * dmgdo();
}
else
{
trg.electd = 1.300000 * dmgdo();
} // end else if
trg.uncol = Math.round(fra + 60);
speco(trg);
} // end if
if (ups[89] && random(4) == 0 || lows.ba == 3 && random(2) == 0)
{
spida(lows.ba == 3, trg);
} // end if
if (lows.trixer == 63)
{
spidas(lows.ba == 3, trg);
} // end if
} // End of the function
function eta()
{
_root.soundy("superholy.wav", 100);
_root.eta = !_root.eta;
if (!_root.eta)
{
++player.hp;
++ups[22];
_root.over.gotoAndStop(16);
_root.ups[22] = ups[22];
} // end if
} // End of the function
function junx()
{
if (_root.junxx.length > 0)
{
if (poli)
{
poli = false;
}
else if (trg.gold)
{
return (52);
}
else
{
f1 = _root.IntRndFn(1155, _root.junxx.length);
var _loc2 = _root.junxx[f1] * 1;
_root.junxx.splice(f1, 1);
return (_loc2);
} // end else if
}
else
{
return (tater());
} // end else if
} // End of the function
function tater()
{
if (_root.IntRndFn(1153, 5) != 0)
{
return (_root.IntRndFn(1153, 22) + 7);
}
else
{
return (_root.IntRndFn(1153, 13) + 104);
} // end else if
} // End of the function
function pillc(trg)
{
var _loc3 = false;
if (trg > 6)
{
f2 = trg;
}
else if (trg == 4)
{
f2 = _root.IntRndFn(1152, 6) + 1;
}
else if (trg == 3)
{
f2 = tater();
}
else
{
f2 = trg.col;
} // end else if
player.pilc = pic(f2);
f1 = _root.pilc > 0;
f3 = f2 > 28 && f2 < 69;
if (f3)
{
if (!trixx(f2) && (!trixx(53) || ups[139]))
{
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", "Wiggle Worm", "A Missing Page", "Bloody Penny", "Burnt Penny", "Flat Penny", "Counterfeit Penny", "Tick", "Isaacs Head", "Maggys Faith", "Judas\' Tongue", "Aggromidget\'s soul", "Samsons Lock", "Cains Eye", "Eves Bird Foot", "The Left Hand", "The Jaw Breaker", "The Pen", "The broken syringe", "Soul Penny"];
null[null] = null;
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;
} // end else if
if (f2 == 53)
{
hat(61);
} // end if
}
else
{
_loc3 = true;
trg.fra = fra + 10;
} // end else if
}
else if (f2 < 7)
{
st11("Pills here!");
_root.soundy("shellgame" + random(2) + ".wav");
_root.colss[43] = true;
}
else
{
_root.colss[61] = true;
tart(f2);
_root.soundy("Book Page Turn 12.wav", 100);
} // end else if
if (!_loc3)
{
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;
} // end else if
if (trg == 3 || trg == 4)
{
dontRandomPill = true;
trg = spaw(player.xp, player.yp, 0, 5.300000);
} // end if
trg.d.gotoAndStop(7);
trg.col = f1;
trg.done = false;
trg.fra = fra + 10;
trg.d.d.gotoAndStop(3);
if (highs.yp > 0)
{
trg.ybew = trg.ybew - -Math.min(player.yp - highs.yp, 0) * 0.500000;
} // end if
}
else
{
if (trg == 3 || trg == 4)
{
pilll = true;
} // end if
if (f3)
{
if (ups[139])
{
_root.atrix = _root.trix;
} // end if
_root.trix = f2;
}
else
{
_root.pilc = f2;
} // end else if
trg.d.d.gotoAndStop(2);
} // end else if
if (_root.atrix == 53)
{
_root.atrix = _root.trix;
_root.trix = 53;
_root.atrixer = _root.trixer;
_root.trixer = "Tick";
} // end if
if (!f3)
{
_root.hud.pilll.gotoAndStop(2);
}
else
{
_root.hud.plix.gotoAndStop(2);
} // end else if
player.d.gotoAndStop(4);
player.it = 43;
} // end if
} // End of the function
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);
} // end else if
} // End of the function
function ader(f1)
{
if (_root.chaps > 6 && player.hp < 1 && _root.armor > 0 && player.mhp > 0)
{
_root.armor = _root.armor - 0.500000;
player.hp = player.hp + 0.500000;
} // end if
if (player.hp > 0.500000 || _root.armor <= 0)
{
f11 = _root.armor;
_root.armor = 0;
playerhurt(0.500000, 201, f11 > 0);
_root.armor = f11;
}
else
{
playerhurt(0.500000, 201);
} // end else if
++_root.so.data.pill;
if (_root.so.data.pill > 20)
{
_root.locker[36] = true;
} // end if
if (!f1)
{
_root.soundy("bloodbank touched.wav", 90);
} // end if
} // End of the function
function coinzz()
{
if (lasth - fra < 0 && player._visible && telf == undefined && playsave < 0 && unic < 0 && player._currentframe != 6 && horse <= 0 && dec <= 0)
{
coinl = true;
} // end if
} // End of the function
function balljunk()
{
if ((lows.s == 14 || lows.s == 18) && highs.s == 36)
{
nohit = true;
lows.xbew = lows.xbew + xenf * 0.010000;
lows.ybew = lows.ybew + yenf * 0.010000;
} // end if
if (highs.s == 4)
{
if (lows.fly || lows.ang || lows.meat < 3)
{
nohit = true;
} // end if
} // end if
if (lows.s == 30 && highs.s == 30)
{
highs.dones = true;
nohit = true;
} // end if
if (lows.s == 30 && highs.s == 36)
{
nohit = true;
} // end if
if (lows.fly || lows.meat || lows.bird || lows.charge || lows.ang)
{
switch (highs.s)
{
case 9:
case 13:
case 14:
case 18:
{
highs.dones = true;
}
} // End of switch
}
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;
} // end if
if (highs.s == 62 && altboss)
{
dodo = false;
} // end if
if (highs.s == 62 && highs.dy < -30)
{
nohit = true;
break;
} // end if
}
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.500000:
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 == 86 || highs.s == 50 || highs.s == 90)
{
coinzz();
} // end if
if (highs.s == 9 && highs.doub)
{
dodo = true;
} // end if
if (highs.s == 85 || highs.s == 94)
{
highs.xpp = highs.ypp = undefined;
highs.xbew = highs.xbew * 0.600000;
highs.ybew = highs.ybew * 0.600000;
} // end if
if (highs.s == 99)
{
pub = true;
} // end if
dodo = dodo || highs.special || trg.specoz == 7 || trg.specoz == 2;
if (freez <= 0 && horse <= 0)
{
if (dodo)
{
playerhurt(1, highs.s);
}
else
{
playerhurt(0.500000, highs.s);
} // end if
} // end else if
if (highs.sss == 100 || highs.sss == 101 && altboss)
{
playslow = 20;
} // end if
if (highs.die)
{
highs.dones = true;
} // end if
}
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;
} // end if
if (ups[13])
{
highs.poiss = 60;
highs.poisd = 3.500000;
hurt(highs, 30);
}
else
{
hurt(highs, 40);
} // end if
} // end else if
break;
}
} // End of switch
} // end else if
if (highs.s == 4)
{
if (fra - highs.lfra < 4)
{
nohit = true;
highs.lfra = fra;
}
else
{
highs.xbew = highs.xbew + lows.xbew * 0.400000;
highs.ybew = highs.ybew + lows.ybew * 0.400000;
} // end if
} // end else if
if (lows.s == 4 && highs.s != 62)
{
if (!lows.flir)
{
lows.xbew = lows.xbew * 0.500000;
lows.ybew = lows.ybew * 0.500000;
} // end if
highs.xbew = highs.xbew * 0.200000;
highs.ybew = highs.ybew * 0.200000;
if (highs.s == 85 || highs.s == 94)
{
highs.dones = true;
} // end if
} // end if
if (highs.s == 44 && lows.s != 44)
{
if (highs.s != 69)
{
hurt(lows, 20);
} // end if
} // end if
if (highs.s == 66 && highs.horse && lows.s != 66)
{
hurt(lows, 20);
} // end if
if (highs.s == 45 && lows.s != 45 && fra - lows.fra > 10)
{
hurt(lows, 20);
} // end if
if (lows.s == 44 && highs.s != 44)
{
hurt(highs, 20);
} // end if
if (highs.s == 63 && highs.d._currentframe == 7)
{
hurt(lows, 20);
} // end if
if (highs.s == 99 && highs.d._currentframe > 7)
{
if (lows.s == 14 || lows.s == 85)
{
hurt(lows, 20);
} // end if
} // end if
if (highs.s == 28 && highs.mags[1].mode == 2)
{
if (lows.s == 23 || lows.s == 85)
{
hurt(lows, 20);
} // end if
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;
} // end if
} // end if
if (lows == player && highs.s == 5 && !highs.dones)
{
if (_root.keys >= 1 || _root.kep || highs.d._currentframe != 6)
{
nohit = true;
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);
} // end if
} // end else if
highs.dones = true;
switch (highs.d._currentframe)
{
case 34:
{
if (_root.chaps == 9 && _root.altchap)
{
if (beamer <= 0)
{
beamer = 1;
--_root.chaps;
} // end if
}
else if (_root.chaps == 9 && !_root.altchap)
{
if (beamer <= 0)
{
beamer = 1;
_root.chaps = 11;
} // end if
}
else if (_root.heaven && _root.chaps != 11)
{
if (beamer <= 0)
{
_root.heaven = 2;
beamer = 1;
} // end if
}
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;
} // end if
if (_root.chaps == 9)
{
f1 = 22;
} // end else if
} // end else if
_root.gotoAndStop(f1);
nohit = false;
} // end else if
break;
}
case 1:
{
if (highs.col == 4)
{
eta();
}
else if (highs.col == 3)
{
++_root.armor;
}
else if (highs.col == 5)
{
_root.armor = _root.armor + 0.500000;
}
else if (highs.col == 6)
{
_root.armor = _root.armor + 0.500000;
eta();
}
else if (player.hp < player.mhp)
{
if (highs.col == 7)
{
player.hp = player.hp - 0.500000;
red = 5;
_root.armor = _root.armor + 0.500000;
} // end if
if (highs.col == 8)
{
player.hp = player.hp + 1;
red = 5;
st22("1 + 1 free");
} // end if
if (highs.col != 2)
{
++player.hp;
red = 7;
}
else
{
player.hp = player.hp + 0.500000;
red = 5;
} // end else if
}
else if (highs.col == 7)
{
kogs = [5.010000];
_root.armor = _root.armor + 0.500000;
}
else
{
nohit = false;
highs.d.d.gotoAndStop(1);
} // end else if
if (highs.col == 4)
{
_root.soundy("superholy.wav", 100);
}
else if (highs.col == 6)
{
_root.soundy("superholy.wav", 100);
}
else if (highs.col == 3)
{
_root.soundy("Holy.mp", 100);
}
else if (highs.col == 3)
{
_root.soundy("Holy.mp", 100);
}
else if (highs.col == 5)
{
_root.soundy("Holy.mp", 100);
}
else if (nohit)
{
_root.soundy("boss2_bubbles" + random(2) + ".wav", 100);
} // end else if
break;
}
case 2:
{
_root.coins = _root.coins + coincol(highs);
if (trixx(49) && random(2) == 0)
{
kogs.push(5.010000);
} // end if
if (trixx(65) && random(4) == 0)
{
kogs.push(5.010000);
} // end if
if (trixx(50) && random(2) == 0)
{
kogs.push(5.040000);
} // end if
if (trixx(51) && random(2) == 0)
{
kogs.push(5.030000);
} // end if
if (trixx(52) && random(2) == 0)
{
++_root.coins;
} // end if
if (ups[229] && random(4) == 0)
{
if (_root.skiner == 2)
{
++_root.coins;
} // end if
} // end if
break;
}
case 3:
{
if (highs.col == 2)
{
_root.kep = true;
_root.soundy("goldenkey.wav", 100);
} // end if
if (highs.col == 1)
{
++_root.keys;
_root.soundy("KeyPickup_Gauntlet.wav", 85);
} // end if
if (highs.col == 3)
{
_root.keys = _root.keys + 2;
_root.soundy("KeyPickup_Gauntlet.wav", 85);
st22("1 + 1 free");
} // end if
break;
}
case 4:
{
if (highs.col == 3 || highs.col == 5)
{
nohit = false;
if (!highs.troll)
{
highs.troll = true;
st22("Trolololol");
} // end if
}
else if (highs.col != 2)
{
++_root.bombs;
}
else
{
_root.bombs = _root.bombs + 2;
st22("1 + 1 free");
} // end else if
if (nohit)
{
_root.soundy("fetus_feet" + random(2) + ".wav", 100);
} // end if
break;
}
case 5:
{
if (!highs.empty && chestopen == undefined)
{
_root.soundy("Chest_Open.mp", 100);
chestopen = highs;
} // end if
nohit = false;
break;
}
case 6:
{
if ((_root.keys >= 1 || _root.kep) && !highs.empty && chestopen == undefined)
{
_root.soundy("Unlock00.wav", 100);
if (!_root.kep)
{
--_root.keys;
} // end if
chestopen = highs;
_root.soundy("Chest_Open.mp", 100);
} // end if
nohit = false;
break;
}
case 42:
{
if ((_root.keys >= 1 || _root.kep) && !highs.empty && chestopen == undefined)
{
_root.soundy("Unlock00.wav", 100);
if (!_root.kep)
{
--_root.keys;
} // end if
chestopen = highs;
_root.soundy("Chest_Open.mp", 100);
} // end if
nohit = false;
break;
}
case 7:
{
if (fra - highs.fra > 0)
{
pillc(highs);
}
else
{
highs.fra = fra + 10;
} // end else if
break;
}
case 8:
{
if (highs.col == 32)
{
if (!highs.spin && !highs.busted)
{
if (_root.keys > 0)
{
--_root.keys;
highs.d.d.gotoAndStop(37);
highs.spin = true;
lastspin = fra + 100;
highs.wtf = false;
} // end if
} // end if
}
else if (highs.col == 22)
{
if (!highs.spin && !highs.busted)
{
if (_root.bombs > 0)
{
--_root.bombs;
highs.d.d.gotoAndStop(37);
highs.spin = true;
lastspin = fra + 100;
highs.wtf = false;
} // end if
} // end if
}
else if (highs.col == 23)
{
if (!highs.spin && !highs.busted)
{
if (_root.coins > 0)
{
--_root.coins;
highs.d.d.gotoAndStop(37);
highs.spin = true;
lastspin = fra + 100;
highs.wtf = false;
} // end if
} // end if
}
else if (highs.col == 31)
{
if (!highs.spin && !highs.busted)
{
ader();
highs.d.d.gotoAndStop(37);
highs.spin = true;
lastspin = fra + 100;
highs.wtf = false;
} // end if
}
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;
} // end if
}
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);
} // end else if
highs.wtf = false;
lastspin = fra + 15;
} // end if
} // end if
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;
} // end if
}
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);
} // end else if
highs.spin = true;
lastspin = fra + 100;
} // end else if
} // end else if
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);
} // end if
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;
} // end if
if (f1 == 3)
{
lasth = -100;
if (_root.armor >= 3)
{
playerhurt(3, 200);
}
else
{
playerhurt(3, 200);
} // end else if
}
else
{
_root.ups[22] = _root.ups[22] - f1;
ups[22] = _root.ups[22];
lasth = -100;
f11 = _root.armor;
f2 = f1 - player.mhp + player.hp;
player.mhp = player.mhp - f1;
playerhurt(Math.max(0, f2), 200, f11 > 0);
if (player.mhp > 0 || f11 > 0 && player.mhp >= 0)
{
_root.armor = f11;
}
else
{
f11 = 0;
_root.armor = 0;
playerhurt(10, 200);
} // end else if
} // end else if
_root.mmus = _root.soundy("isaacsatanitemget.mp", 100);
plffff = player.d._currentframe;
}
else
{
_root.coins = _root.coins - f1;
} // end else if
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();
break;
}
} // End of switch
if (satan && player.hp <= 0)
{
player.d.gotoAndStop(plffff);
} // end if
}
else
{
} // end else if
break;
}
case 10:
{
powerlevel();
break;
}
} // End of switch
} // end if
} // end if
} // End of the function
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;
} // end else if
if (highs.s == 28 && lows.s == 28)
{
nohit = true;
} // end if
if (lows.s == 5 && highs.s != 5)
{
nohit = true;
} // end if
if (highs.s < 4)
{
nohit = true;
} // end if
if (highs.s == 5 && lows != player)
{
nohit = true;
} // end if
if (lows.s == 9 || highs.s == 9 && (lows != player && !lows.fly && !lows.meat && !lows.ang && !lows.bird || lows.ni))
{
nohit = true;
} // end if
if (lows.outway || highs.outway && lows != player && lows.s != 2 && !lows.damger)
{
nohit = true;
} // end if
if (lows.s == 44 && highs.outway || highs.s == 44 && lows.outway)
{
nohit = false;
} // end if
if (lows.s == 44 && highs.s == 69)
{
nohit = true;
} // end if
if (trg.fra == fra || trg2.fra == fra)
{
nohit = true;
} // end if
if (lows.bird && highs.s == 4)
{
nohit = true;
} // end if
if (highs.flir || lows.flir)
{
nohit = true;
} // end if
if (!nohit && !trg.dones && !trg2.dones)
{
xenf = trg2.xp - trg.xp;
siz2 = siz = sizes[Math.round(trg.s)] + sizes[Math.round(trg2.s)];
if (highs.s == 5 && (highs.col == 10 && highs.d._currentframe == 8 || highs.d._currentframe == 34))
{
if (highs.d._currentframe == 34)
{
siz2 = siz2 + 17;
}
else
{
siz2 = siz2 + 28;
} // end else if
siz = siz2;
} // end if
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)
{
balljunk();
if (!nohit)
{
v6 = lows.damger;
if (lows.s == 2 || v6)
{
if (lows.charge)
{
nohit = true;
} // end if
nohit = highs.s == 23 || highs.s == 41 || highs.s == 32 || highs.s == 25 || highs.s == 55 || highs.s == 62;
if (lows.meat > 2)
{
nohit = false;
} // end if
if (!lows.hh[highs.e])
{
lows.hh[highs.e] = true;
v1 = lows.dmg;
if (lows.d._yscale == 135.500000)
{
v1 = v1 + 25;
} // end if
if (highs.s == 41 && !ups[48])
{
if (highs.d.hx.h._currentframe == 1 && lows.ybew < 0)
{
v1 = 0;
} // end if
if (highs.d.hx.h._currentframe == 2 && lows.xbew < 0)
{
v1 = 0;
} // end if
if (highs.d.hx.h._currentframe == 3 && lows.ybew > 0)
{
v1 = 0;
} // end if
if (highs.d.hx.h._currentframe == 4 && lows.xbew > 0)
{
v1 = 0;
} // end if
} // end if
if (highs.s == 97 && !ups[48])
{
if (highs.d._currentframe == 1 && lows.ybew < 0)
{
v1 = 0;
} // end if
if (highs.d._currentframe == 6 && lows.xbew > 0)
{
v1 = 0;
} // end if
if (highs.d._currentframe == 5 && lows.ybew > 0)
{
v1 = 0;
} // end if
if (highs.d._currentframe == 7 && lows.xbew < 0)
{
v1 = 0;
} // end if
} // end if
hurt(highs, v1);
if (lows.s == 2)
{
spidcol(highs);
} // end if
if (highs.hp < 0 && lows.hairb && _root.hairb < 6 && random(_root.hairb) == 0)
{
lows.d.gotoAndStop(149);
lows.d.d.gotoAndStop(1);
++_root.hairb;
} // end if
} // end if
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 = lows.dmg * 0.500000;
lows.d._xscale = lows.d._xscale * 0.750000;
lows.d._yscale = lows.d._yscale * 0.750000;
nohit = true;
}
else
{
lows.dones = true;
lows.xp = lows.xp + lows.xbew * 0.800000;
lows.yp = lows.yp + lows.ybew * 0.800000;
} // end else if
if (lows.bluf && random(2) == 1)
{
lows.dones = true;
lows.d = lows.d.d;
} // end if
if (highs.s == 91)
{
nohit = true;
} // end if
}
else if (highs.s != 28 && (lows != player || highs.s != 41 && highs.s != 23))
{
trg.gh = 2;
trg2.gh = 2;
} // end else if
if (!nohit)
{
if (highs.s == 9 && lows == player)
{
highs.dones = true;
if (highs.sss == 50 || highs.sss == 86 || highs.sss == 90)
{
coinzz();
} // end if
if (highs.d._xscale > 115)
{
playerhurt(1, highs.sss);
}
else
{
playerhurt(0.500000, highs.sss);
} // end if
} // end else if
v = trg.ma / (trg.ma + trg2.ma);
vv = 1 - v;
enf = Math.sqrt(enf);
f1 = (siz - enf) / enf;
trg.xp = trg.xp - xenf * vv * f1;
trg.yp = trg.yp - yenf * vv * f1;
trg2.xp = trg2.xp + xenf * v * f1;
trg2.yp = trg2.yp + yenf * v * f1;
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;
} // end else if
enf = bewenf / enf;
if (bewenf > 2.500000)
{
soundy("bh");
} // end if
if (maxp)
{
enf = enf + 0.500000;
} // end if
xenf = xenf * enf;
yenf = yenf * enf;
trg.xb = trg.xb - xenf * vv;
trg.yb = trg.yb - yenf * vv;
trg2.xb = trg2.xb + xenf * v;
trg2.yb = trg2.yb + yenf * v;
if (maxp)
{
highs.xb = highs.xb * 0.500000;
highs.yb = highs.yb * 0.500000;
} // end if
if (lows.s == 2 && (highs.s == 18 || highs.s == 14))
{
highs.xbew = highs.xbew * 0.500000;
highs.ybew = highs.ybew * 0.500000;
highs.xbew = highs.xbew + lows.xbew * 0.500000;
highs.ybew = highs.ybew + lows.ybew * 0.500000;
} // end if
if (pub)
{
f1 = trg;
trg = player;
if (bord())
{
} // end if
trg = f1;
pub = false;
} // end if
} // end if
} // end if
} // end if
} // end if
} // end if
} // end if
} // end if
} // end if
maxp = false;
} // End of the function
function nextcha()
{
newstart(false);
} // End of the function
function pull(f1, f2, f3, f4, f5)
{
if (f1 == 0)
{
v = 0.800000;
}
else
{
v = 1.200000;
} // end else if
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) / 3.141593 * 180 + 90;
if (yenf >= 0)
{
f5._rotation = f5._rotation + 180;
} // end if
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 = xenf * (enf * f4);
yenf = yenf * (enf * f4);
f1.xbew = f1.xbew + xenf * v;
f1.ybew = f1.ybew + yenf * v;
f2.xbew = f2.xbew - xenf / v;
f2.ybew = f2.ybew - yenf / v;
} // end if
} // End of the function
function trgnextd(trg2, f2)
{
if (trg2 == undefined)
{
trg2 = trg.d.d;
} // end if
if (!trg.free || slow <= 0 || fra % 2 == 0)
{
trg2.nextFrame();
} // end if
if (trg2._currentframe == trg2._totalframes)
{
var _loc2 = trg2._parent._currentframe;
if (!f2)
{
trg2._parent.gotoAndStop(1);
} // end if
return (_loc2);
} // end if
} // End of the function
function walkframe(f1)
{
trg.wf = true;
if (f1 <= 0)
{
f1 = 1;
} // end if
if (trg.d._currentframe < 3)
{
if (enfget(trg.xbew, trg.ybew) * f1 > 2)
{
trg.d.gotoAndStop(2);
}
else
{
trg.d.gotoAndStop(1);
} // end if
} // end else if
} // End of the function
function randrunc()
{
trg.randd = fra;
if (trg.xpp == undefined)
{
trg.d.gotoAndStop(1);
if (trg.wait++ > 13)
{
if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 100 + random(100)) && linecheckx(player.xp, player.yp, trg.xp, trg.yp))
{
trg.xpp = player.xp + player.xbew * 5;
trg.ypp = player.yp + player.ybew * 5;
}
else
{
f1 = 70 + random(40);
f1 = trg.xp + crand(f1);
f2 = trg.yp + crand();
f1 = Math.min(540, Math.max(120, f1));
f2 = Math.min(360, Math.max(210, f2));
f3 = ingrid(f1, f2);
if (levz[f3] < 1)
{
f4 = linecheck(f1, f2, trg.xp, trg.yp);
if (!f4 && random(20) == 0)
{
f4 = linecheckx(f1 * 0.900000 + trg.xp * 0.100000, f2 * 0.900000 + trg.yp * 0.100000, f1 * 0.100000 + trg.xp * 0.900000, f2 * 0.100000 + trg.yp * 0.900000);
} // end if
if (f4)
{
trg.xpp = f1;
trg.ypp = f2;
trg.wait = 15;
} // end if
} // end if
} // end if
} // end if
} // end else if
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;
} // end if
enf = 6 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
sideflip(-xenf);
} // end if
trg.xbew = trg.xbew * 0.600000;
trg.ybew = trg.ybew * 0.600000;
} // End of the function
function randrun()
{
trg.randd = fra;
if (trg.xpp == undefined)
{
f1 = 40;
if (trg.s == 68)
{
f1 = 80;
} // end if
f1 = trg.xp + crand(f1);
f2 = trg.yp + crand();
if (trg.s == 68)
{
f1 = Math.min(540, Math.max(120, f1));
f2 = Math.min(360, Math.max(210, f2));
} // end if
f1 = ingrid(f1, f2);
if (levz[f1] < 1)
{
outgrid(f1);
trg.xpp = xenf;
trg.ypp = yenf;
} // end if
} // end if
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);
} // end if
xenf = trg.xp - trg.xpp;
yenf = trg.yp - trg.ypp;
enf = enfget(xenf, yenf);
if (enf < 3 || enfget(trg.xbew, trg.ybew) < 0.200000 && random(10) == 0)
{
trg.mode = 1;
trg.xpp = undefined;
} // end if
enf = 0.500000 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
if (trg.s != 68)
{
sideflip(-xenf);
} // end if
} // end if
} // End of the function
function randruny()
{
if (trg.d.d._currentframe == 19)
{
_root.soundy("Meat_impacts_" + random(3) + ".wav");
} // end if
if (trg.xpp == undefined)
{
if (trg.s == 86)
{
trgnextd();
firemode(180, 20, true);
} // end if
if ((trg.s != 86 || trg.d._currentframe < 3) && (trg.alter != 2 || trg.wait++ > 15))
{
trg.d.d.gotoAndStop(1);
if (trg.alter == 2)
{
f1 = random(50) + random(70);
}
else if (trg.s == 54)
{
f1 = random(50);
}
else
{
f1 = 0;
} // end else if
trg.f1 = f1;
if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 130 + f1 * 1.300000))
{
f2 = player.yp - yenf * f1 / 200;
f1 = player.xp - xenf * f1 / 200;
if (trg.s == 54)
{
f1 = f1 + player.xbew * 5;
f2 = f2 + player.ybew * 5;
} // end if
}
else
{
f1 = trg.xp + crand(95 + f1);
f2 = trg.yp + crand();
} // end else if
f1 = Math.min(620, Math.max(20, f1));
f2 = Math.min(447, Math.max(110, f2));
f1 = ingrid(f1, f2);
if (levz[f1] < 1)
{
outgrid(f1);
trg.xpp = xenf;
trg.ypp = yenf;
} // end if
} // end if
} // end if
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)
{
f1 = trg.d.d._currentframe - enf * 0.600000;
}
else
{
f1 = trg.d.d._currentframe - enf * 0.300000;
} // end else if
if (trg.d.d._currentframe < 5)
{
xenf = xenf * 0.100000;
yenf = yenf * 0.100000;
}
else if (f1 > 30)
{
trg.d.d.prevFrame();
if (f1 > 45)
{
trg.d.d.prevFrame();
} // end if
} // end else if
if (enf < 10 || enfget(trg.xbew + trg.ybew) < 0.750000 && random(10) == 0)
{
if (trg.d.d._currentframe == trg.d.d._totalframes)
{
trg.xpp = undefined;
} // end if
} // end if
enf = Math.min(3 + trg.f1 * 0.075000, enf * 0.100000) / enf;
if (trg.f1)
{
f1 = 1 - trg.f1 / 500;
trg.xbew = trg.xbew * f1;
trg.ybew = trg.ybew * f1;
} // end if
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
if (Math.abs(xenf) > 8)
{
sideflip(-xenf);
} // end if
} // end if
} // End of the function
function markhere(trg)
{
var _loc2 = ingrid(trg.xp, trg.yp);
if (trg != undefined)
{
trg.til = _loc2;
} // end if
if (trg.mags.length < 2 || trg.s == 28)
{
if (levz[_loc2] < 0.990000)
{
levz[_loc2] = 0.900000;
} // end if
} // end if
} // End of the function
function borderliner(f0)
{
if (f0 == undefined)
{
f0 = 1;
} // end if
f9 = [0, 1, 1, 0, 0, -1, -1, 0, 0, 1];
if (trg.dir == undefined)
{
trg.dir = 0;
for (f2 = 0; f2 < 4; f2 = 10)
{
++f2;
f1 = trg.dir * 2;
f3 = ingrid(trg.xp + f9[f1] * roxx, trg.yp + f9[f1 + 1] * roxx);
if (levz[f3] < 0.950000)
{
++trg.dir;
continue;
} // end if
} // end of for
if (f2 != 10)
{
trg.dir = random(4);
} // end if
} // end if
trg.xbew = trg.xbew * 0.600000;
trg.ybew = trg.ybew * 0.600000;
if (trg.xpp == undefined)
{
f1 = trg.dir * 2;
f3 = ingrid(trg.xp + (-f9[f1] - f9[f1 + 1]) * roxx, trg.yp + (-f9[f1 + 1] + f9[f1]) * roxx, true);
f4 = ingrid(trg.xp - f9[f1 + 1] * roxx, trg.yp + f9[f1] * roxx, true);
if (levz[f3] > 0.950000 && levz[f4] < 0.950000 && !trg.lastdd)
{
--trg.dir;
trg.lastdd = true;
}
else
{
f3 = ingrid(trg.xp + f9[f1] * roxx, trg.yp + f9[f1 + 1] * roxx);
if (levz[f3] < 0.900000)
{
outgrid(f3);
trg.xpp = xenf;
trg.ypp = yenf;
trg.lastdd = false;
}
else
{
++trg.dir;
} // end if
} // end else if
} // end else if
if (trg.dir > 3)
{
trg.dir = trg.dir - 4;
} // end if
if (trg.dir < 0)
{
trg.dir = trg.dir + 4;
} // end if
if (trg.xpp != undefined)
{
enfcheck(trg.xp, trg.yp, trg.xpp, trg.ypp, 1000);
if (enf < 5)
{
trg.xpp = undefined;
} // end if
enf = f0 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
if (trg.xpp != undefined)
{
if (Math.abs(xenf) < Math.abs(yenf))
{
trg.xbew = trg.xbew * 0.600000;
trg.xbew = trg.xbew + (trg.xpp - trg.xp) * 0.400000;
xenf = 0;
}
else
{
trg.ybew = trg.ybew * 0.600000;
trg.ybew = trg.ybew + (trg.ypp - trg.yp) * 0.400000;
yenf = 0;
} // end if
} // end if
} // end else if
} // End of the function
function newxx()
{
f9 = [0, 1, 1, 0, 0, -1, -1, 0];
f10 = 0;
var _loc1 = trg.s == 41 || trg.s == 44 || trg.s == 93 || trg.s == 97;
while (trg.xpp == undefined && f10++ < 10)
{
f8 = [];
for (a = 0; a < 4; a++)
{
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;
} // end if
if (f2 > 447 || f2 < 110)
{
f1 = false;
} // end if
if (f1)
{
for (i = 1; i < f4; i++)
{
f1 = trg.xp + xenf * i;
f2 = trg.yp + yenf * i;
f3 = ingrid(f1, f2);
if (levz[f3] > 0.300000 && (f10 < 9 || levz[f3] > 1))
{
--i;
break;
} // end if
} // end of for
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);
if (levz[f3] < 0.200000 || levz[f4] < 0.200000 || random(10) == 0)
{
f8[a] = i;
} // end if
continue;
} // end if
f8[a] = 0;
} // end of for
f7 = 1.800000;
if (_loc1 && random(10) != 0)
{
f7 = 0.800000;
} // end if
f6 = -1;
for (a in f8)
{
if (f8[a] > f7 && f1)
{
f7 = f8[a];
f6 = a;
} // end if
} // end of for...in
if (f7 < 2 && random(10) == 0)
{
f6 = -1;
} // end if
f1 = Math.abs(trg.lasta - f6);
f1 = f1 != 2 || random(5) == 0;
if (!f1)
{
f6 = -1;
} // end if
if (f6 > -1)
{
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 (levz[f1] < 1)
{
outgrid(f1);
trg.xpp = xenf;
trg.ypp = yenf;
} // end if
if (f3)
{
trg.ybew = 0;
}
else
{
trg.xbew = 0;
} // end if
} // end else if
trg.fail = 0;
} // end while
} // End of the function
function randrunx(f0)
{
newxx();
if (trg.xpp != undefined)
{
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.600000)
{
if (trg.fail++ > 10)
{
trg.xpp = undefined;
} // end if
} // end else if
enf = f0 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
trg.xbew = trg.xbew - xenf;
trg.ybew = trg.ybew - yenf;
if (trg.s == 97 || trg.s == 93)
{
trg.xbeww = trg.xbeww - xenf * 3;
trg.ybeww = trg.ybeww - yenf * 3;
} // end if
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 (levz[trg.nextl] > 0.700000 && f1 > 3)
{
if (trg.fail++ > 2)
{
trg.xpp = undefined;
} // end if
} // end if
if (trg.xpp == undefined)
{
newxx();
newxx();
} // end if
} // end if
} // End of the function
function cirf(f1, f2, f3, f4)
{
var _loc1 = Math.random() * 3.141593;
var _loc3 = 3.141593 / f4 * 2;
for (z = 0; z < f4; z++)
{
_loc1 = _loc1 + _loc3;
f6 = Math.sin(_loc1) * f3;
f7 = Math.cos(_loc1) * f3;
ffmo(f1, f2, 0, f6, f7, 0, 9, trg.s, true);
} // end of for
} // End of the function
function quadf(f1, f2, f3, f4)
{
gibb = 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);
} // end if
f3 = f3 / 1.414214;
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);
} // end if
} // End of the function
function ffmo(f1, f2, f3, f4, f5, f6, f7, f8)
{
var _loc1 = create(f1, f2, f3, f4, f5, f6, f7, trg.s);
if (trg.spid > 0)
{
_loc1.xbew = _loc1.xbew * 0.500000;
_loc1.ybew = _loc1.ybew * 0.500000;
} // end if
if (trg.s == 68 && !altboss)
{
colorit(_loc1, 0.600000, 1.200000, 0.200000, 50, 60, 0);
} // end if
_loc1.ggh = false;
if (!f8)
{
_loc1.dm = -3;
_loc1.fd = 0.100000;
} // end if
if (trg.s == 26 && trg.alter == 3 || trg.s == 65 && altboss || trg.s == 102 && (trg.state > 0 || altboss && random(5) == 0) || trg.minb == 3 || trg.s == 98 && trg.specoz)
{
_loc1.hom = true;
colorit(_loc1, 0.800000, 1, 2.500000, 0, 0, 0);
_loc1._xscale = _loc1._xscale * 1.500000;
_loc1._yscale = _loc1._yscale * 1.500000;
}
else if (trg.s == 102)
{
var _loc2 = new flash.geom.Transform(_loc1);
_loc2.colorTransform = bull;
} // end else if
if (v3)
{
_loc1.dm = _loc1.dm - 1;
_loc1.xbew = _loc1.xbew * 1.200000;
_loc1.ybew = _loc1.ybew * 1.200000;
_loc1.xbew = _loc1.xbew + trg.xbew * 0.400000;
_loc1.ybew = _loc1.ybew + trg.ybew * 0.400000;
} // end if
if (trg.s == 79)
{
_loc1.dm = _loc1.dm + 3;
_loc1.dy = _loc1.dy - 15;
_loc1.xbew = _loc1.xbew * 1.200000;
_loc1.ybew = _loc1.ybew * 1.200000;
}
else if (trg.s == 36)
{
_loc1.fd = _loc1.fd * 0.400000;
}
else if (trg.s == 42)
{
_loc1.dm = _loc1.dm - 3;
_loc1.dy = -10;
_loc1.ggh = true;
_loc1.nog = 15;
} // end else if
if (trg.s == 59)
{
_loc1.dy = _loc1.dy + 15;
} // end if
if (trg.special || trg.s == 59 || trg.s == 57 || trg.s == 53 || trg.s == 43 || trg.s == 75 || trg.s == 76 || trg.s == 84)
{
_loc1.doub = true;
_loc1.d._xscale = _loc1.d._yscale = 140;
} // end if
if (trg.s == 42 || trg.s == 38 || trg.s == 27)
{
_loc1.fd = _loc1.fd - 0.050000;
_loc1.xbew = _loc1.xbew * 1.070000;
_loc1.ybew = _loc1.ybew * 1.070000;
} // end if
if (trg.s == 57)
{
_loc1.dy = _loc1.dy + 15;
_loc1.dm = _loc1.dm - 0.200000;
} // end if
if (trg.s == 90)
{
_loc1.dy = _loc1.dy - 20;
_loc1.dm = _loc1.dm + 2;
} // end if
if (trg.s == 84)
{
_loc1.fd = _loc1.fd - 0.070000;
} // end if
if (trg.s == 65)
{
_loc1.dy = _loc1.dy - 45;
_loc1.dm = _loc1.dm + 7;
} // end if
if (trg.s == 62)
{
_loc1.dy = _loc1.dy - 50;
_loc1.fd = 0.300000;
_loc1.xbew = _loc1.xbew - worm[1].xbew * 0.400000;
_loc1.ybew = _loc1.ybew - worm[1].ybew * 0.400000;
} // end if
if (trg.s == 100 || trg.s == 101 && altboss)
{
if (trg.specoz == 18)
{
colorit(_loc1, 0.200000, 0.200000, 0.200000, 0, 0, 0);
}
else
{
colorit(_loc1, 0.300000, 0.800000, 0.800000, 140, 140, 140);
} // end if
} // end else if
return (_loc1);
} // End of the function
function shots(v1, v2, xenf, yenf, v3)
{
if (trg.s == 14 && trg.alter == 2 || trg.s == 86)
{
ffmo(v1, v2, 0, xenf * 0.800000 - yenf * 0.200000, yenf * 0.800000 + xenf * 0.200000, 0, 9);
ffmo(v1, v2, 0, xenf * 0.800000 + yenf * 0.200000, yenf * 0.800000 - xenf * 0.200000, 0, 9);
}
else if (v3 == 2)
{
if (v3)
{
ffmo(v1, v2, 0, xenf * 0.900000 - yenf * 0.100000, yenf * 0.900000 + xenf * 0.100000, 0, 9);
ffmo(v1, v2, 0, xenf * 0.900000 + yenf * 0.100000, yenf * 0.900000 - xenf * 0.100000, 0, 9);
ffmo(v1, v2, 0, xenf * 0.700000 - yenf * 0.300000, yenf * 0.700000 + xenf * 0.300000, 0, 9);
ffmo(v1, v2, 0, xenf * 0.700000 + yenf * 0.300000, yenf * 0.700000 - xenf * 0.300000, 0, 9);
} // end if
}
else
{
trg2 = ffmo(v1, v2, 0, xenf, yenf, 0, 9);
if (v3 || trg.s == 38 && trg.alter == 2)
{
ffmo(v1, v2, 0, xenf * 0.800000 - yenf * 0.200000, yenf * 0.800000 + xenf * 0.200000, 0, 9);
ffmo(v1, v2, 0, xenf * 0.800000 + yenf * 0.200000, yenf * 0.800000 - xenf * 0.200000, 0, 9);
} // end if
if (trg.s == 36 || trg.s == 56 || trg.s == 27 && trg.alter == 2 || trg.s == 84)
{
ffmo(v1, v2, 0, xenf * 0.680000 - yenf * 0.420000, yenf * 0.580000 + xenf * 0.420000, 0, 9);
ffmo(v1, v2, 0, xenf * 0.680000 + yenf * 0.420000, yenf * 0.580000 - xenf * 0.420000, 0, 9);
trg2.xbew = trg2.xbew * 0.850000;
trg2.ybew = trg2.ybew * 0.900000;
} // end else if
} // end else if
} // End of the function
function firemode(siz, f1, f2)
{
if (trg.s == 56 || trg.s == 90)
{
siz = siz + 60;
}
else if (trg.s == 42 || trg.s == 38 || trg.s == 27)
{
siz = siz + 40;
} // end else if
if (trg.s == 56)
{
f1 = f1 + 5;
} // end if
if (trg.s == 90)
{
f1 = f1 + (2 + random(2));
} // end if
if ((fra + trg.e) % 7 == 0 || f2)
{
if (trg.fire <= 0)
{
if (enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, siz))
{
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);
} // end else if
if (trg.s == 79)
{
trg.d.gotoAndStop(8);
}
else if (trg.s == 63)
{
trg.d.gotoAndStop(9);
}
else
{
trg.d.gotoAndStop(5);
} // end else if
} // end else if
trg.fire = f1;
trg.fir = -7;
if (trg.s == 27)
{
trg.fir = -25;
trg.fire = trg.fire + 6;
} // end if
} // end if
} // end if
} // end if
if (!trg.free || slow <= 0 || fra % 2 == 0)
{
--trg.fire;
} // end if
} // end if
if (trg.fir++ > 0 && (trg.s != 79 || trg.d.d._currentframe == 17) && (trg.s != 56 || trg.d.d._currentframe == 33) && (trg.s != 63 || trg.d.d._currentframe == 19))
{
if (trg.s == 63 || trg.s == 79)
{
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);
} // end else if
if (trg.s == 86)
{
sideflip(-xenf);
}
else
{
sideflip(xenf);
} // end else if
trg.fir = undefined;
enf = enfget(xenf, yenf);
enf = -7 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
if (trg.s == 63)
{
xenf = xenf * 1.300000;
yenf = yenf * 1.300000;
} // end if
if (trg.s == 42 && trg.alter == 2)
{
trg2 = green();
trg2.dm = trg2.dm - 3;
trg2.dy = -10;
trg2.ggh = true;
trg2.nog = 15;
}
else if (trg.s == 63 && trg.specoz)
{
bossfire(10, true);
}
else
{
shots(trg.xp, trg.yp, xenf, yenf, trg.s == 27 || trg.s == 63 || trg.s == 90);
} // end else if
} // end else if
} // End of the function
function firewalk()
{
if (trg.fire <= 0)
{
f1 = trg.xp;
f2 = trg.yp;
enf = enfget(trg.xbew, trg.ybew);
enf = -5 / enf;
if (trg.s == 19)
{
enf = enf * 1.500000;
} // end if
trg.fire = 40 + random(20);
var _loc1 = create(f1, f2, 0, -trg.xbew * enf, -trg.ybew * enf, 0, 9, trg.s);
_loc1.fd = 0.300000;
_loc1.dm = -5;
if (trg.s == 19 && altboss)
{
_loc1 = create(f1, f2, 0, (-trg.xbew - trg.ybew * 0.200000) * enf, (trg.xbew * 0.200000 - trg.ybew) * enf, 0, 9, trg.s);
_loc1.fd = 0.300000;
_loc1.dm = -5;
_loc1 = create(f1, f2, 0, (-trg.xbew + trg.ybew * 0.200000) * enf, (-trg.xbew * 0.200000 - trg.ybew) * enf, 0, 9, trg.s);
_loc1.fd = 0.300000;
_loc1.dm = -5;
} // end if
} // end if
--trg.fire;
} // End of the function
function angstfind(v1, v2)
{
if (v1 == undefined)
{
v1 = player.xp;
v2 = player.yp;
} // end if
if (trg.failfind <= 0)
{
trg.failfind = 0;
} // end if
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);
} // end if
}
else
{
siz = 170;
} // end else if
if (enfcheck(trg.xp, trg.yp, v1, v2, siz))
{
if (trg.needmove <= 0)
{
trg.xpp = trg.ypp = undefined;
} // end if
trg.needmove = 3;
}
else
{
--trg.needmove;
} // end if
} // end else if
if ((trg.e + fra) % 30 == 0)
{
trg.checked = [];
} // end if
if (trg.needmove > 0)
{
if (trg.rpx)
{
trg.rpx = undefined;
trg.xpp = undefined;
} // end if
f0 = enfcheck(trg.xp, trg.yp, v1, v2, 500);
if (trg.xpp == undefined || trg.failfind > 20)
{
if (f0 > 0)
{
f1 = 1.500000 / f0;
trg.xbew = trg.xbew + xenf * f1;
trg.ybew = trg.ybew + yenf * f1;
enf = 30 / f0;
var _loc4 = xenf * enf + trg.xp;
var _loc5 = yenf * enf + trg.yp;
}
else
{
_loc4 = trg.xp;
_loc5 = trg.yp;
} // end else if
for (i = 0; trg.xpp == undefined && i < 7 - trg.failfind * 0.300000; i++)
{
f10 = 450 * Math.random() + 30;
if (random(2) == 0)
{
if (Math.abs(xenf) > Math.abs(yenf))
{
yenf = 0;
}
else
{
xenf = 0;
} // end if
} // end else if
xenf = _loc4 + crand(f10);
yenf = _loc5 + crand() * 0.500000;
f1 = ingrid(xenf, yenf);
if (trg.checked[f1])
{
i = i - 0.700000;
continue;
} // end if
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 = trg.failfind / 2;
} // end if
} // end else if
continue;
} // end if
trg.failfind = trg.failfind + 0.350000;
} // end if
} // end if
} // end of for
} // end if
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.xpp = trg.ypp = undefined;
} // end if
} // end if
pathfind(trg, trg.xpp, trg.ypp, 1.300000);
} // end if
}
else
{
trg.failfind = trg.failfind * 0.900000;
trg.rpx = true;
trg.noco = 0;
randrun();
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
} // end else if
tip(8);
} // End of the function
function pffy(f1, f2)
{
if (trg.s != 54)
{
f1 = ingrid(f1, f2);
if (levz[f1] == 0.990000)
{
f44 = webs[f1] && trg == player;
} // end if
f3 = levz[f1] == 0.990000 && (!f44 && !webs[f1]) && (!trg.flyby || _root.lev == _root.sac || _root.lev == _root.cus) && !trg.flyai;
if (f3)
{
f55 = f1;
} // end if
if (levz[f1] > 1 && levz[f1] < 2 || f3)
{
var _loc4 = this["de" + f1];
if (_loc4.fire && trg.s != 28 || f3)
{
relf = f3;
if (trg.s == 27)
{
trg.dones = true;
} // end if
outgrid(f1);
enf = enfcheck(trg.xp, trg.yp, xenf, yenf, siz);
if (f3)
{
enf = enf + 20;
} // end if
if (trg.s == 29 && trg.alter != 2 && _loc4.fire)
{
trg.s = 54;
attach(trg, 54);
trg.hp = trg.hp + 20;
} // end if
if (enf < siz)
{
if (!f3 && trg.firs + 10 <= fra)
{
trg.firs = fra;
_root.soundy("Firedeath_hiss.wav", Math.min(100, 50 + trg.hp * 5));
} // end if
siz = enf;
f4 = xenf;
f5 = yenf;
f6 = enf;
f7 = f3;
return (true);
} // end if
} // end if
} // end if
} // end if
} // End of the function
function firecheck(trg)
{
trg3 = 0;
siz = 38;
var _loc3 = 20;
relf = true;
var _loc4 = pffy(trg.xp + _loc3, trg.yp + _loc3) || pffy(trg.xp - _loc3, trg.yp + _loc3) || pffy(trg.xp + _loc3, trg.yp - _loc3) || pffy(trg.xp - _loc3, trg.yp - _loc3);
if (_loc4)
{
if (!f7)
{
xenf = f4;
yenf = f5;
enf = f6;
enf = 4 / enf;
trg.xbew = trg.xbew + xenf * enf;
trg.ybew = trg.ybew + yenf * enf;
} // end if
} // end if
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;
} // end if
}
else
{
_loc4 = true;
relf = 2;
} // end if
} // end if
} // end if
} // end else if
if (dang2 && !trg.flyby && !trg.flyai)
{
if (trg != player)
{
if (dang2.hitTest(trg.xp, trg.yp, true))
{
_loc4 = true;
} // end if
} // end if
} // end if
return (_loc4);
} // End of the function
function breakfloor(f1)
{
if (levz[f1] < 0.990000)
{
var _loc1 = true;
for (i in brr)
{
_loc1 = _loc1 && f1 != brr[i];
} // end of for...in
for (i in brr2)
{
_loc1 = _loc1 && f1 != brr2[i];
} // end of for...in
if (_loc1)
{
v1 = [levz[f1 + 1] == 3, levz[f1 + rowz] == 3, levz[f1 - 1] == 3, levz[f1 - rowz] == 3];
if (v1[0] && v1[2] || v1[1] && v1[3])
{
brr.push(f1);
}
else
{
brr2.push(f1);
} // end if
} // end if
} // end else if
} // End of the function
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);
} // end of for...in
} // End of the function
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;
} // end of for...in
trg.gridder[v2] = 0;
acts = [];
acts2 = [];
for (z = -1; z > -100 && trg.gridder[v2] >= 0; z--)
{
if (z == -1)
{
pff(v1, -1);
}
else
{
for (i in acts)
{
v1 = trg.gridder[acts[i]];
if (v1 < z)
{
acts2.push(acts[i]);
continue;
} // end if
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);
} // end of for...in
} // end else if
acts2[acts2.length] = 0;
acts = acts2.slice(0, -1);
acts2 = [];
} // end of for
if (z < -99)
{
trg.gridder = 0;
return (false);
}
else
{
return (z);
} // end else if
} // End of the function
function bloww(v2)
{
_root.levblow[_root.lev].push(v2, f5, f6);
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.990000 && 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;
} // end if
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));
} // end else if
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;
} // end else if
}
else
{
f5 = 0;
if (f6 > 0)
{
f6 = roxx;
}
else
{
f6 = -roxx;
} // end else if
} // end else if
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);
} // end if
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;
} // end if
} // end if
} // end else if
levz[v2] = 0;
} // End of the function
function gosplash()
{
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);
} // end if
if (trg.pois)
{
trg2 = parc("bloo", trg.xp, trg.yp);
trg2._xscale = trg2._xscale * 3;
trg2._yscale = trg2._xscale;
splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() + 0.800000);
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);
} // end else if
}
else
{
_root.bomf[_root.lev].push([trg.xp, trg.yp]);
} // end else if
f4 = 60;
if (trg.dmg > 25 && trg.s != 45 && trg.s != 101)
{
f4 = 90;
} // end if
if (trg.dmg >= 45 && trg.s != 45 && trg.s != 101)
{
f4 = 105;
} // end if
if (trg.s == 101 || trg.s == 45)
{
f4 = 44;
} // end if
f11 = [];
for (z = 0; z < 150; z++)
{
var _loc2 = Math.random() * f4;
f5 = crand(_loc2);
f6 = crand();
f1 = trg.xp + f5;
f2 = trg.yp + f6;
v2 = ingrid(f1, f2);
if (levz[v2] >= 1.900000 && f4 < 90 && _root.lev != _root.bossl && _root.lev != _root.bossl2)
{
f4 = 90;
} // end if
outgrid(v2);
if (!f11[v2])
{
f11[v2] = true;
if (levz[v2] > 0.900000)
{
if (linecheckxx(trg.xp, trg.yp, xenf, yenf))
{
if (levz[v2] == 1 || levz[v2] == 1.850000 || webs[v2])
{
bloww(v2, f5, f6);
}
else
{
killshit(v2, 10);
} // end else if
if (_loc2 < 40)
{
breakfloor(v2);
} // end if
} // end if
} // end if
} // end if
} // end of for
for (z in ball)
{
trg2 = ball[z];
siz = 85 + sizes[Math.round(trg2.s)];
if (trg.s == 45 && trg2 == player)
{
siz = 40;
} // end if
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);
} // end else if
trg2.spin = false;
trg2.busted = true;
chestopen = trg2;
f1 = true;
} // end if
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);
} // end if
if (f2)
{
if (enf > 0)
{
if (f1 || trg2.s > 61)
{
enf = enf * 0.015000;
} // end if
if (trg2.s == 59)
{
enf = 0;
} // end if
trg2.xbew = trg2.xbew * 0.500000;
trg2.ybew = trg2.ybew * 0.500000;
trg2.xbew = trg2.xbew - xenf * enf;
trg2.ybew = trg2.ybew - yenf * enf;
} // end if
if ((trg2.s == 46 || trg2.s == 68 || trg2.s == 87 || trg2.s == 67 || trg2.s == 30 || 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.col == 3 || trg.col == 5))
{
}
else if (trg2.s == 48)
{
if (trg.man)
{
hurt(trg2, 10);
}
else
{
hurt(trg2, 100);
} // end else if
}
else
{
if (trg2.s == 28)
{
hurt(trg2, 18);
}
else if (trg.dmg > 0)
{
hurt(trg2, 50 + trg.dmg);
}
else
{
hurt(trg2, 40);
} // end else if
if (trg.header)
{
trg2.poiss = trg.header;
trg2.poisd = 7;
} // end else if
} // end else if
if (trg2 == player && !trg.friend)
{
if (trg.mug)
{
playerhurt(0.500000, 4);
}
else
{
playerhurt(1, 4);
} // end if
} // end if
} // end if
} // end if
} // end else if
trg2 = undefined;
} // end of for...in
if (trg.s != 45 && trg.s != 84 && trg.s != 101)
{
if (blackout == 2)
{
for (z = 0; z < 5; z++)
{
splater(trg.xp + crand(), trg.yp + crand(random(10)), 1 + random(10), Math.random() + 1);
} // end of for
}
else
{
if (!trg.pois)
{
maxx = new flash.geom.Matrix();
if (f4 > 100)
{
maxx.scale(1.500000, 1.500000);
} // end if
maxx.translate(trg.xp, trg.yp);
maxx.scale(hdx, hdx);
splat.draw(crater, maxx);
} // end if
if (trg.header)
{
gibs();
for (z = 0; z < 20; z++)
{
f1 = z * 3;
splater(trg.xp + crand(f1), trg.yp + crand(f1), 31 + random(10), Math.random() * 0.500000 + 1.200000 - z / 20);
} // end of for
} // end if
} // end if
} // end if
} // end else if
big = 0;
if (trg.s != 13 && trg.s != 14 && trg.s != 5 && trg.s != 18 && trg.s != 45 && trg.s != 80 && trg.s != 4.500000 && trg.s != 85 && trg.s != 101 && !trg.fart)
{
gibs();
} // end if
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)
{
break;
} // end if
}
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");
} // end else if
break;
}
} // End of switch
} // end else if
} // End of the function
function flya()
{
f1 = [13, 13, 13, 13, 13, 13, 13, 14, 18, 18, 18];
for (i = 0; i < 4 / (1 + ashut * 0.200000); i++)
{
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 = i - 0.500000;
} // end if
} // end of for
f1 = 8;
} // End of the function
function gibs(v1, v2)
{
big = 1;
f10 = 0;
f1 = 10;
if (trg.s == 25 && !trg.nobomb || trg.s == 55 && trg.alter != 1)
{
bomf.push([trg.xp, trg.yp]);
} // end if
if (trg.s == 4 || trg.s == 45 || trg.s == 84)
{
f2 = 7;
f1 = -1;
}
else
{
f2 = 8;
} // end else if
if (v1 > 0 && v2 > 0)
{
f1 = 5;
} // end if
if (v1 <= 0 || v2 <= 0)
{
v1 = trg.xp;
v2 = trg.yp;
} // end if
f1 = f1 / (1 + gibb * 0.100000);
for (i = 0; i < f1; i++)
{
++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 = f10 * 1.700000;
big = 2;
} // end if
if (trg.s == 36 || trg.s == 19 || trg.s == 71 || trg.s == 74 || trg.s > 100)
{
big = 3;
f10 = f10 * 1.300000;
} // end if
var _loc1 = create(v1, v2, 0, crand(f10), crand(f10) * 0.500000, 0, f2);
if (f11 || trg.s == 19)
{
_loc1.ybew = _loc1.ybew * 1.400000;
_loc1.d._xscale = _loc1.d._yscale = 100 + random(70);
}
else if (trg.s == 36 || trg.s == 71 || trg.s == 74)
{
_loc1.d._xscale = _loc1.d._yscale = 140 + random(80);
} // end else if
if (trg.frezz > 0)
{
colorit(_loc1, 0.180000, 0.220000, 0.220000, 60, 60, 60);
continue;
} // end if
if (trg.poiss > 0 || trg.spl == 30)
{
colorit(_loc1, 0.200000, 1, 0.200000, 0, 70, 17);
_loc1.spl = 30;
continue;
} // end if
if (trg.specol)
{
f1 = trg.specol;
colorit(_loc1, specol[f1][0], specol[f1][1], specol[f1][2], 0, 0, 0);
} // end if
} // end of for
} // End of the function
function bombfail(f1, f2, f3, f4)
{
var _loc1 = create(f1, f2, 0, 0, 0, 0, 4);
_loc1.pois = f4;
_loc1.dones = true;
if (f3 == 5)
{
trg.mager = true;
}
else if (f3 == 4)
{
_loc1.dmg = 30;
_loc1._xscale = _loc1._yscale = 113;
_loc1.d.gotoAndStop(2);
}
else if (f3)
{
_loc1.dfr = true;
if (f4 == 4)
{
_loc1.d.gotoAndStop(6);
}
else
{
_loc1.d.gotoAndStop(5);
} // end else if
if (blackout == 2)
{
colorit(_loc1, 0, 0, 0, 0, 0, 0);
} // end if
}
else
{
_loc1.d.gotoAndStop(2);
} // end else if
return (_loc1);
} // End of the function
function bomb(f1)
{
if (fra - lastbo >= 30 || f1)
{
if (f1)
{
switch (f1)
{
case 2:
} // End of switch
}
else if (_root.bombs > 0)
{
--_root.bombs;
}
else
{
return (false);
} // end else if
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;
} // end if
if (f1 && f1 != 2 || ups[106])
{
trg2.dmg = trg2.dmg + 50;
trg2._xscale = trg2._yscale = 123;
trg2.col = 4;
if (ups[140])
{
} // end if
} // end if
if (ups[140])
{
trg2.header = 130;
trg2.col = 6;
} // end if
++_root.so.data.bomb;
return (trg2);
} // end if
} // End of the function
function killshit(v2, v3)
{
if (levz[v2] > 1 && levz[v2] < 1.800000)
{
trg2 = this["de" + v2];
if (!trg2.gold || random(3) == 0)
{
levz[v2] = levz[v2] - 0.130000;
if (trg2._currentframe == 6)
{
trg2.gotoAndStop(2);
}
else
{
trg2.nextFrame();
} // end else if
if (v3 && levz[v2] > 1 && !trg2.gold)
{
levz[v2] = levz[v2] - 0.130000;
trg2.nextFrame();
} // end if
if ((random(3) == 0 || v3 > 5) && !trg2.gold)
{
levz[v2] = levz[v2] - 0.130000;
trg2.nextFrame();
} // end if
if (trg2.nam == "breakblock" && random(3) == 0 || v3 > 7)
{
levz[v2] = levz[v2] - 0.130000;
trg2.nextFrame();
} // end if
if (trg2._currentframe == 6 && levz[v2] < 1.100000)
{
trg2.gotoAndStop(5);
} // end if
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;
} // end if
} // end if
_root.soundy("plop.wav", 100);
trg2.gotoAndStop(5);
break;
}
case "fireblock":
case "fireblock2":
{
_root.soundy("steam_halfsec.wav", 85);
trg2.gotoAndStop(5);
break;
}
} // End of switch
if (trg2.xp == undefined)
{
trg2.xp = trg2._x;
trg2.yp = trg2._y;
} // end if
if (trg2.gold)
{
chestopen = trg2;
}
else if (trg2.nam == "breakblock2")
{
trg2.fra = fra + 120;
shiz.push(trg2);
}
else if (Math.random() < 0.100000 && (!trg2.cent || random(5) == 0) && !trg2.egg && !v3)
{
if (Math.random() < 0.250000 || trg2.cent)
{
f0 = 5;
}
else
{
f0 = 5.020000;
} // end else if
create(trg2.xp, trg2.yp, 0, 0, 0, 0, f0);
} // end else if
levz[v2] = 0.900000;
clevc[v2] = 0;
if (trg2.egg)
{
bomf.push([trg2.xp, trg2.yp]);
} // end if
} // end if
_root.levsav[_root.lev][trg2.savv] = trg2._currentframe;
return (true);
} // end if
}
else
{
return (false);
} // end else if
} // End of the function
function moveon()
{
if (_root.chaps == 11 && _root.lev == _root.bossl)
{
} // end if
_root.aloc();
_root.lastl = _root.lev;
_root.mapa._visible = false;
_root.hud._visible = false;
onEnterFrame = undefined;
} // End of the function
function getf()
{
if (Math.abs(xenf) > Math.abs(yenf))
{
if (xenf > 0)
{
f1 = 2;
}
else
{
f1 = 1;
} // end else if
}
else if (yenf < 0)
{
f1 = 4;
}
else
{
f1 = 3;
} // end else if
if (altboss && trg.s == 19)
{
f1 = f1 + 4;
} // end if
} // End of the function
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;
} // end if
} // end if
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.090000);
} // end if
if (_root.Insane == 1)
{
if (random(3) == 0)
{
create(320, 360, 0, 0, 0, 0, 5.100000);
} // end if
}
else
{
create(320, 360, 0, 0, 0, 0, 5.100000);
} // end else if
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;
} // end if
} // end if
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;
}
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;
} // end if
if (trixx(47))
{
} // end if
}
else
{
f10 = [55, 59, 60, 63, 62, 61, 73];
_root.locker[f10[_root.skiner]] = true;
} // end else if
}
else if (_root.lev != _root.bossl2)
{
_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;
} // end else if
} // end else if
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.090000);
}
else if (_root.chala == 10)
{
create(320, 280, 0, 0, 0, 0, 5.340000);
}
else
{
create(360, 280, 0, 0, 0, 0, 5.340000);
} // end else if
}
else
{
create(320, 280, 0, 0, 0, 0, 5.340000);
} // end else if
if (_root.so.data.wins > 15)
{
_root.locker[89] = true;
} // end if
} // end if
} // end else if
} // end else if
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;
} // end if
_root.nodmg = true;
if (_root.chaps == 6 && _root.locker[74])
{
} // end if
} // end if
} // end if
++_root.lcomp[_root.chaps];
_root.bossk[_root.bosss] = true;
if (_root.bosss >= 9 && _root.bosss <= 12 || _root.bosss == 22)
{
++_root.horsedown;
} // end if
if (_root.bossk[1] && _root.bossk[2] && _root.bossk[13] && _root.bossk[17])
{
_root.locker[19] = true;
} // end if
if (_root.bossk[3] && _root.bossk[4] && _root.bossk[14] && _root.bossk[18])
{
_root.locker[20] = true;
} // end if
if (_root.bossk[5] && _root.bossk[6] && _root.bossk[15])
{
_root.locker[21] = true;
} // end if
if (_root.bossk[9] && _root.bossk[10] && _root.bossk[11] && _root.bossk[12] && _root.horsedown >= 4)
{
_root.locker[25] = true;
} // end if
if (_root.chaps == 2)
{
_root.locker[13] = true;
} // end if
if (_root.chaps == 4)
{
_root.locker[14] = true;
} // end if
if (_root.lcomp[2] >= 25)
{
_root.locker[22] = true;
} // end if
if (_root.lcomp[4] >= 20)
{
_root.locker[23] = true;
} // end if
if (_root.lcomp[6] >= 15)
{
_root.locker[24] = true;
} // end if
} // end if
} // End of the function
function firr(trg)
{
var _loc3 = ups[6] * 1.500000 + (ups[32] + ups[80] + ups[1] + ups[120]) * 0.700000 + (ups[196] + ups[0] - ups[182]) * 0.400000 + (ups[101] + ups[90] + ups[219] + ups[189] + ups[183]) * 0.200000;
if (ups[120])
{
++_loc3;
} // end if
if (_root.it == 192)
{
if (_root.apple == 0)
{
_loc3 = _loc3 + 0.800000;
} // end if
} // end if
if (_root.it == 192)
{
if (_root.apple == 1)
{
_loc3 = _loc3 - 0.400000;
} // end if
} // end if
if (_root.skiner == 6)
{
_loc3 = _loc3 + 1.250000;
} // end if
f1 = Math.sqrt(Math.max(0, 1 + _loc3 * 1.300000));
trg.fire = Math.max(5, 16 - f1 * 6 - Math.min(_loc3, 0) * 6);
if (ups[69])
{
trg.fire = trg.fire * 0.800000;
} // end if
if (ups[211])
{
trg.fire = trg.fire - 1.050000;
} // end if
if (ups[2])
{
trg.fire = trg.fire * 2.100000;
trg.fire = trg.fire + 3;
} // end if
if (trixx(39))
{
trg.fire = trg.fire - 2;
} // end if
if (Purer)
{
trg.fire = trg.fire - 1.500000;
} // end if
if (trg == player)
{
_root.firra = trg.fire;
} // end if
} // End of the function
function bossfire(f10, f9, f11, f12, f13)
{
f1 = trg.xp;
f2 = trg.yp;
f3 = 10;
if (f11 <= 0)
{
f11 = 0;
} // end if
if (helpss > 1 && trg.s == 20)
{
f10 = f10 * 0.600000;
} // end if
if (helpss > 2 && trg.s == 20)
{
f10 = f10 * 0.800000;
} // end if
for (i = 0; i < f10; i++)
{
if (f9)
{
xenf = yenf = 0;
if (f12 != 0 || f12 == undefined)
{
xenf = trg.xp - player.xp;
} // end if
if (f13 != 0 || f13 == undefined)
{
yenf = trg.yp - player.yp;
} // end if
if (f13)
{
if (f13 * yenf > 0)
{
yenf = 0;
} // end if
yenf = yenf * Math.abs(f13);
} // end if
if (f12)
{
if (f12 * xenf > 0)
{
xenf = 0;
} // end if
xenf = xenf * Math.abs(f12);
} // end if
enf = enfget(xenf, yenf);
enf = -7 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
f14 = Math.random() * 3.500000;
if (trg.worm && f10 == 1)
{
f14 = f14 * 3;
} // end if
xenf = xenf + crand(f14);
yenf = yenf + crand();
}
else
{
xenf = crand(7);
yenf = crand();
} // end else if
f0 = Math.random() * 6;
trg2 = create(trg.xp, trg.yp, 0, xenf, yenf, 0, 9, trg.s);
trg2.fd = 0.320000 + f11 * 0.100000;
trg2.dm = -random(30) * 0.800000 + 5 - f11;
trg2.d._xscale = trg2.d._yscale = 90 + random(2) * 40 + Math.random() * 5;
if (trg.s == 62)
{
trg2.dy = trg2.dy - 50;
} // end if
if (trg.s == 102 || trg.minb == 3)
{
if (random(10) == 0 && altboss || trg.minb == 3)
{
trg2.hom = true;
colorit(trg2, 0.800000, 1, 2.500000, 0, 0, 0);
trg2._xscale = trg2._xscale * 1.200000;
trg2._yscale = trg2._yscale * 1.200000;
if (trg.minb == 3)
{
trg.fd = trg.fd - 1;
} // end if
continue;
} // end if
var _loc3 = new flash.geom.Transform(trg2);
_loc3.colorTransform = bull;
} // end if
} // end of for
return (trg2);
} // End of the function
function newstart(f1, f22)
{
if (f1)
{
_root.hp = 100;
newstats();
_root.newstartt = true;
}
else
{
flash.external.ExternalInterface.call("NewStart", false);
_root.getup = true;
if (_root.chaps != 11)
{
++_root.chaps;
} // end if
if (!f22)
{
_root.cuts = true;
} // end if
} // end else if
_root.levz = undefined;
_root.door = -1;
_root.playerx = _root.playery = 0;
moveon();
_root.gotoAndStop("reset");
} // End of the function
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;
} // end if
} // end if
if (xenf != 0 || yenf != 0)
{
xxenf = xenf;
yyenf = yenf;
} // end if
if (ups[152] && fra % 3 == 0)
{
trg.xpp = xenf;
trg.ypp = yenf;
lasershow(trg, 5);
trg.lass = lass;
trg.lfrr = fra;
llss = true;
xenf = trg.xpp;
yenf = trg.ypp;
secol = secol * 0.800000;
secol = secol + 0.200000;
} // end if
if (ups[152] && (sob == -1 || _root.hat[11]) && trg.fire < 0)
{
secol = secol + 1;
firr(trg);
sob = 1;
} // end if
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 = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
}
else if (f11 = ups[68] && !_root.bombnext && !ups[52])
{
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;
} // end else if
enf = enfget(xenf, yenf);
enf = 10 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
xxenf = xenf;
yyenf = yenf;
xenf = xenf + trg.xbew * 0.600000;
yenf = yenf + trg.ybew * 0.600000;
enf = enfget(xenf, yenf);
if (enf < 10)
{
enf = 10 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
} // end if
if (sob == 1 && !_root.hat[11])
{
sob = -1;
}
else
{
sob = 1;
} // end else if
v1 = 0.300000 + Math.random() * 0.200000;
if (ups[2])
{
v1 = 0.800000;
sob = 1;
} // end if
f1 = trg.xp - yenf * sob * v1;
f2 = trg.yp + xenf * sob * v1;
if (!llss)
{
_root.soundy("Tears_Fire_" + random(3) + ".mp");
null;
if (null || random(12) == 0 || lokii)
{
if (Purer)
{
e = 0;
trg2 = create(trg.xp, trg.yp, 0, Math.sin(e / 5 * 3.141593) * 10, Math.cos(e / 5 * 3.141593) * 10, 0, 2);
++e;
} // end if
} // end if
} // end if
trg2.d;
if (random(2) == 0)
{
if (ups[222])
{
e = random(10);
et = random(10);
null;
if (random(2) == 0)
{
if (et < 10)
{
trg2 = create(trg.xp, trg.yp, 0, Math.sin(e / 5 * 3.141593) * 10, Math.cos(et / 5 * 3.141593) * 10, 0, 2);
et = ++eval("2");
} // end if
} // end if
if (e < 10)
{
trg2 = create(trg.xp, trg.yp, 0, Math.sin(e / 5 * 3.141593) * 10, Math.cos(e / 5 * 3.141593) * 10, 0, 2);
e = ++eval("2");
} // end if
} // end if
} // end if
if (ups[55] && (random(2) == 0 || ups[2]) || ups[87] && (random(8) == 0 || lokii))
{
f1 = trg.xp;
f2 = trg.yp;
create(f1, f2, 0, -xxenf, -yyenf, 0, 2);
if (ups[87] || lokii)
{
create(f1, f2, 0, -yyenf, xxenf, 0, 2);
create(f1, f2, 0, yyenf, -xxenf, 0, 2);
} // end if
} // end if
if (ups[216])
{
trg.fire = -1;
if (TearNext <= 0)
{
if (!ups[118])
{
TearNext = 10;
}
else
{
TearNext = 10;
drop = 80;
} // end else if
if (ups[118])
{
_root.soundy("Blood_Laser_Large.mp");
} // end if
if (ups[114])
{
} // end if
Lodo = create(player.xp, player.yp, 0, 0, 0, 0, 49969);
Lodo.d.gotoAndStop(70);
} // end if
}
else 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);
} // end if
}
else if (!f11)
{
var _loc2 = create(f1, f2, 0, xenf, yenf, 0, 2);
if (ups[52] && !_root.bombnext)
{
trg.fire = trg.fire * 3;
trg.fire = trg.fire + 10;
enf = 14 / enfget(_loc2.xbew, _loc2.ybew);
_loc2.xbew = _loc2.xbew * enf;
_loc2.ybew = _loc2.ybew * enf;
_loc2.s = 4;
attach(_loc2, 4);
_loc2.d.d.gotoAndPlay(30);
_loc2.lfra = fra;
_loc2.spl = -10;
_loc2.flyby = false;
_loc2.dmg = _loc2.dmg * 3;
if (ups[106])
{
_loc2.dmg = _loc2.dmg + 50;
_loc2._xscale = _loc2._yscale = 123;
if (ups[106])
{
_loc2.col = 5;
} // end if
} // end if
}
else if (_root.bombnext)
{
if (_loc2 != player)
{
if (_root.bombnext == 2)
{
_loc2.flir = true;
attach(_loc2, 6589);
enf = 14 / enfget(_loc2.xbew, _loc2.ybew);
_loc2.xbew = _loc2.xbew * enf;
_loc2.ybew = _loc2.ybew * enf;
_loc2.s = 4;
_loc2.spl = -10;
_loc2.flyby = false;
colorit(_loc2, 1, 1, 1, 0, 0, 0);
}
else
{
_loc2.bomb = true;
attach(_loc2, 2);
colorit(_loc2, 1, 1, 1, 0, 0, 0);
_loc2.d.gotoAndStop("head");
_loc2.dy = _loc2.dy - 10;
_loc2.dm = _loc2.dm + 1.200000;
trg.d.d.d.gotoAndStop(29);
} // end else if
_root.bombnext = false;
_root.itc = false;
} // end if
}
else if (ups[2])
{
if (ups[169] && ups[2] != 1 && !ups[153] || ups[149])
{
_loc2.xp = player.xp;
_loc2.yp = player.yp;
if (ups[149])
{
trg.fire * 2;
trg.fire = trg.fire + 10;
_loc2.bomb = true;
_loc2.bombo = true;
_loc2.d._xscale = _loc2.d._yscale = 160;
f1 = Math.random() * 0.200000 + 0.700000;
_loc2.xbew = _loc2.xbew * f1;
_loc2.ybew = _loc2.ybew * f1;
_loc2.fd = 0.600000;
_loc2.dm = _loc2.dm * 0.700000;
_loc2.dm = _loc2.dm - 13;
colorit(_loc2, 0.500000, 0.900000, 0.400000, 0, 0, 0);
} // end if
}
else
{
if (ups[153])
{
v2 = 0.070000;
}
else
{
v2 = 0.050000;
} // end else if
_loc2.xbew = _loc2.xbew - yenf * v2;
_loc2.ybew = _loc2.ybew + xenf * v2;
f1 = trg.xp + yenf * sob * v1;
f2 = trg.yp - xenf * sob * v1;
create(f1, f2, 0, xenf + yenf * v2, yenf - xenf * v2, 0, 2);
f1 = trg.xp + xenf;
f2 = trg.yp + yenf;
if (ups[153])
{
v1 = 0.020000;
v2 = 0.320000;
create(f1 + yenf * v2 * 1.500000, f2 - xenf * v2, 0, xenf + yenf * v1, yenf - xenf * v1, 0, 2);
create(f1 - yenf * v2 * 1.500000, f2 + xenf * v2, 0, xenf - yenf * v1, yenf + xenf * v1, 0, 2);
}
else
{
create(f1, f2, 0, xenf, yenf, 0, 2);
} // end else if
} // end else if
} // end else if
} // end else if
plox = 7 + trg.fire * 0.450000;
if (ups[118])
{
if (_loc2.bomb)
{
plo = 1;
plox = 1;
trg.d.d.d.d.gotoAndStop(1);
}
else
{
plox = 24;
} // end if
} // end else if
chaz = chaf = undefined;
}
else if (trg.fire1 < 0)
{
trg.fire1 = 10;
xenf = xxenf;
yenf = yyenf;
enf = enfget(xenf, yenf);
enf = 10 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
xxenf = xenf;
yyenf = yenf;
xenf = xenf + trg.xbew * 0.600000;
yenf = yenf + trg.ybew * 0.600000;
enf = enfget(xenf, yenf);
if (enf < 10)
{
enf = 10 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
} // end if
v1 = 0.300000 + Math.random() * 0.200000;
if (ups[2])
{
v1 = 0.800000;
sob = 1;
} // end if
f1 = trg.xp;
f2 = trg.yp;
for (e = 0; e < folz.length; e++)
{
_loc2 = folz[e];
if (fra - _loc2.lfra > trg.fire1 + 3 && !_loc2.cat && !_loc2.mon && !_loc2.hol && !_loc2.ni && !_loc2.bum)
{
if (_loc2.maga)
{
_loc2.outway = false;
_loc2.charge = true;
_loc2.xbew = xenf;
_loc2.ybew = yenf;
_loc2.xp = player.xp;
_loc2.yp = player.yp;
if (Math.abs(xenf) > Math.abs(yenf))
{
sideflip(xenf, _loc2.d);
_loc2.d.gotoAndStop(35);
}
else if (yenf < 0)
{
_loc2.d.gotoAndStop(36);
}
else
{
_loc2.d.gotoAndStop(37);
} // end else if
_loc2.lfra = fra + 80;
_loc2.dmg = 3.500000;
continue;
} // end if
if (_loc2.baa != 5)
{
_loc2.d.gotoAndStop(plo + 4);
_loc2.lfra = fra;
if (_loc2.laser)
{
_loc2.d.gotoAndStop(plo + 45);
f1 = 1 / enfget(xenf, yenf);
_loc2.xpp = xenf * f1;
_loc2.ypp = yenf * f1;
lassd = 3;
lasershow(_loc2, 2);
_root.soundy("RedLightning_Zap_" + random(3) + ".mp", 60);
}
else
{
if (!llss)
{
_root.soundy("Tears_Fire_" + random(3) + ".mp");
} // end if
if (_loc2.dou)
{
babymode = 2;
}
else if (_loc2.baa > 1)
{
babymode = _loc2.baa;
}
else
{
babymode = 1;
} // end else if
if (babymode == 8)
{
f1 = [1, 2, 3, 4, 5, 6, 7];
babymode = f1[random(f1.length)];
} // end if
f1 = _loc2.xp;
f2 = _loc2.yp;
f10 = doub;
doub = _loc2.dou;
if (babymode == 7)
{
f3 = 0.200000;
var _loc3 = create(f1, f2, 0, xenf + yenf * f3, yenf - xenf * f3, 0, 2);
_loc3.d._xscale = _loc3.d._xscale * 0.800000;
_loc3.d._yscale = _loc3.d._yscale * 0.800000;
babymode = 7;
f3 = -f3;
_loc3 = create(f1, f2, 0, xenf + yenf * f3, yenf - xenf * f3, 0, 2);
_loc3.d._xscale = _loc3.d._xscale * 0.800000;
_loc3.d._yscale = _loc3.d._yscale * 0.800000;
}
else
{
_loc3 = create(f1, f2, 0, xenf, yenf, 0, 2);
_loc3.d._xscale = _loc3.d._xscale * 0.800000;
_loc3.d._yscale = _loc3.d._yscale * 0.800000;
if (_loc2.baa == 9)
{
_loc3.xbew = _loc3.xbew * -1;
_loc3.ybew = _loc3.ybew * -1;
} // end if
} // end else if
if (_loc2.baa == 11)
{
_loc2.d.gotoAndStop(plo + 156);
}
else if (_loc2.baa == 10)
{
_loc2.d.gotoAndStop(plo + 165);
}
else if (_loc2.baa == 9)
{
_loc2.d.gotoAndStop(plo + 142);
}
else if (_loc2.baa == 8)
{
_loc2.d.gotoAndStop(plo + 120);
}
else if (_loc2.baa == 7)
{
_loc2.d.gotoAndStop(plo + 111);
}
else if (_loc2.baa == 6)
{
_loc2.d.gotoAndStop(plo + 102);
}
else if (_loc2.baa == 4)
{
_loc2.d.gotoAndStop(plo + 68);
}
else if (_loc2.baa == 3)
{
_loc2.d.gotoAndStop(plo + 59);
}
else if (_loc2.meat)
{
_loc2.d.gotoAndStop(plo + 27);
}
else if (_loc2.dou)
{
_loc2.d.gotoAndStop(plo + 13);
} // end else if
doub = f10;
} // end else if
if (!ups[52])
{
++e;
} // end if
} // end if
} // end if
} // end of for
plox1 = 7 + trg.fire1 * 0.450000;
} // end else if
if (plox > 8 || _root.fmode == 7 && !ups[68] && !ups[118])
{
if (ups[68])
{
} // end if
if (trixx(47))
{
trg.d.d.d.d.gotoAndStop(plo + 8);
}
else
{
trg.d.d.d.d.gotoAndStop(plo + 4);
} // end else if
}
else
{
trg.d.d.d.d.gotoAndStop(plo);
} // end else if
} // End of the function
function chaxx()
{
f1 = 1;
if (Math.abs(xenf) > Math.abs(yenf))
{
yenf = 0;
if (xenf < 0)
{
xenf = f1;
}
else
{
xenf = -f1;
} // end else if
}
else
{
xenf = 0;
if (yenf < 0)
{
yenf = f1;
}
else
{
yenf = -f1;
} // end else if
} // end else if
trg.xpp = xenf;
trg.ypp = yenf;
return (true);
} // End of the function
function chaxy()
{
outgrid(trg.til);
f3 = xenf;
f4 = yenf;
f5 = random(8);
f1 = player.xp + player.xbew * f5;
f2 = player.yp + player.ybew * f5;
} // End of the function
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);
} // end else if
if (f3)
{
return (chaxx());
} // end if
} // end if
} // End of the function
function eyefly()
{
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
v1 = 1;
if (trg.xbew > 0)
{
trg.xbew = trg.xbew + v1;
}
else
{
trg.xbew = trg.xbew - v1;
} // end else if
if (trg.ybew > 0)
{
trg.ybew = trg.ybew + v1;
}
else
{
trg.ybew = trg.ybew - v1;
} // end else if
v1 = 3;
if (trg.xp > 580)
{
trg.xbew = trg.xbew - v1;
} // end if
if (trg.xp < 60)
{
trg.xbew = trg.xbew + v1;
} // end if
if (trg.yp > 410)
{
trg.ybew = trg.ybew - v1;
} // end if
if (trg.yp < 170)
{
trg.ybew = trg.ybew + v1;
} // end if
} // End of the function
function friends()
{
trg.damger = trg.s == 3 && (trg.alt && trg.fly || trg.meat || trg.charge || trg.ang || trg.bird || trg.bluf || trg.eye || trg.bloated || 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]);
} // end if
} // end else if
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.400000, f1 - enf) / enf * 0.070000;
trg.xbew = trg.xbew + xenf * enf;
trg.ybew = trg.ybew + yenf * enf;
f1 = 0.870000 + _root.hairb * 0.010000;
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);
} // end else if
trg.xbew = trg.xbew * f1;
trg.ybew = trg.ybew * f1;
trg.dmg = 3 + _root.hairb * 2;
if (fra % 14 == 0)
{
trg.hh = [];
} // end if
}
else if (trg.bloated)
{
trg.dmg = 8;
if (fra % 14 == 0)
{
trg.hh = [];
} // end if
}
else if (trg.eye)
{
if (random(4) == 0)
{
splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.300000 + 0.100000);
} // end if
trg.dmg = 8;
if (fra % 14 == 0)
{
trg.hh = [];
} // end if
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;
} // end if
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.300000 + 0.100000);
} // end if
trg.ggh = false;
if (fra % 14 == 0)
{
trg.hh = [];
} // end if
if (trg.bum)
{
if (trg.d._currentframe != 135)
{
trg.d.gotoAndStop(134);
} // end if
}
else if (trg.bluf)
{
trg.ggh = true;
trg.dmg = 2 * dmgdo();
f12 = fra * 0.030000;
if (ups[112])
{
f12 = f12 * 2;
} // end if
f11 = (f12 + blub / Math.max(1, ablub) * 2) * 3.141593;
if (trg.trg2 == player && f11 > -100)
{
trg.xpp = player.xp + Math.sin(f11) * 35;
trg.ypp = player.yp + Math.cos(f11) * 30;
}
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;
} // end else if
if (trg.trg2 == undefined)
{
} // end if
++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();
} // end if
if (trg.d.d._currentframe >= 37)
{
trg.d.d.gotoAndStop(1);
} // end if
if (trg.bh = trg.d.d._currentframe > 10 && trg.d.d._currentframe < 33)
{
trg.fire = 100;
} // end if
}
else if (trg.bird)
{
trg.ggh = true;
trg.dmg = 2;
if (trg.bird == 2)
{
trg.d.gotoAndStop(171);
}
else
{
trg.d.gotoAndStop(83);
} // end else if
}
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);
} // end else if
trg.sp = _root.playsp * 2;
}
else if (trg.meat > 3)
{
trg._xscale = trg._yscale = 143;
trg.dmg = 5.500000;
trg.sp = 2.200000;
trg.d.gotoAndStop(54);
}
else
{
trg.dmg = 3.500000;
trg.sp = 1.800000;
trg.d.gotoAndStop(54);
} // end else if
trg.outway = false;
if (trg.trg2.dones)
{
trg.trg2 = player;
trg.fire = 50 - trg.dmg * 5;
} // end if
if (trg.trg2 == undefined || trg.trg2 == mheart && !trg.trg2.bh)
{
trg.trg2 = player;
trg.fire = 5;
} // end if
trg2 = trg.trg2;
if (trg2 == player)
{
f1 = 80;
}
else
{
f1 = 20;
} // end else if
--trg.fire;
if (trg.bluf)
{
if (trg.bluf)
{
xenf = trg.xpp - trg.xp;
yenf = trg.ypp - trg.yp;
} // end if
enf = enfget(xenf, yenf);
enf = Math.min(2, enf * 0.150000) / enf;
xenf = xenf * enf;
yenf = yenf * enf;
trg.xbew = trg.xbew + xenf;
trg.ybew = 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;
} // end if
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;
} // end if
} // end if
if (trg.dad)
{
xenf = xenf + (trg2.xbew * 5 - trg.xbew * 5);
yenf = yenf + (trg2.ybew * 5 - trg.ybew * 5);
enf = enfget(xenf, yenf);
} // end if
enf = 1 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
trg.xbew = trg.xbew + xenf;
trg.ybew = trg.ybew + yenf;
}
else
{
pathfind(trg, trg2.xp, trg2.yp, trg.sp);
} // end if
} // end else if
} // end else if
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);
} // end if
} // end else if
if (trg.d._currentframe == 135)
{
trg.d.d.nextFrame();
_root.tex = trg.d.d._currentframe;
if (trg.d.d._currentframe == 10)
{
emo();
_root.ups[144] = _root.ups[144] - (3 + random(2));
f2 = 5.102200 + random(5) * 0.000100;
if (random(2) == 0)
{
if (random(3) == 0)
{
f2 = 5;
}
else
{
f2 = 5.030000 + random(2) * 0.010000;
} // end else if
}
else if (random(3) != 0)
{
if (random(2) == 0)
{
f2 = 5.070000;
}
else
{
f2 = 5.300000;
} // end else if
}
else
{
f2 = 5.350000;
} // end else if
spaw(trg.xp * 0.500000 + player.xp * 0.500000, trg.yp * 0.500000 + player.yp * 0.500000, 0, f2);
} // end if
if (trg.d.d._currentframe == trg.d.d._totalframes)
{
trg.d.gotoAndStop(134);
} // end if
} // end if
if (trg.bum)
{
if (fra % 5 == 0)
{
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;
} // end if
} // end if
} // end if
} // end of for...in
if (f13 == 200 || f2.s != 5)
{
trg.trg2 = player;
} // end if
if (f2 && trg.trg2 != f2)
{
trg.fire = 5;
trg.trg2 = f2;
} // end if
if (f13 < 30 && trg2 != trg)
{
trg2 = trg.trg2;
_root.ups[144] = _root.ups[144] + coincol(trg2);
trg2.d.d.gotoAndStop(2);
trg2.dones = true;
} // end if
if (trg2 == player)
{
f12 = enfcheck(trg2.xp, trg2.yp, f6, f7, 100);
if (f12 < 80)
{
if (_root.ups[144] > 5)
{
trg.d.gotoAndStop(135);
} // end if
} // end if
} // end if
} // end if
}
else if (random(3) == 0 || !trg.bluf)
{
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;
} // end else if
f13 = 65 + trg.dmg * 15;
if (trg.bluf)
{
f13 = 200;
} // end if
for (z in ball)
{
trg2 = ball[z];
if (trg2.s > 9 && !trg2.dones)
{
if (enfcheck(trg2.xp, trg2.yp, f6, f7, f13))
{
if (trg2 != mheart && !trg2.mom && trg2.pow >= 3 || trg2.bh)
{
f2 = trg2;
} // end if
} // end if
} // end if
} // end of for...in
if (f2 && trg.trg2 != f2)
{
trg.fire = 5;
trg.trg2 = f2;
} // end if
} // end if
} // end else if
if (trg.dad && trg.bh)
{
trg.xbew = trg.xbew * 0.500000;
trg.ybew = trg.ybew * 0.500000;
}
else if (trg.bird || trg.dad)
{
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
}
else
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
} // end else if
}
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;
} // end else if
trg.xbew = trg.xbew * 0.500000;
trg.ybew = trg.ybew * 0.500000;
if (trg.charge > 10)
{
trg.charge = false;
} // end if
} // end if
}
else if (trg.fly || trg.meat || trg.ang || trg.ni)
{
f1 = player.xp - 2;
f2 = player.yp - 4;
if (trg.alt)
{
if (fra % 2 == 0)
{
trg.hh = [];
} // end if
if (trg.alt == 2)
{
trg.d.gotoAndStop(128);
trg.dmg = 2;
f11 = fra * 0.013000 * 3.141593;
if (ups[112])
{
f11 = f11 * 1.500000;
} // end if
if (ups[222])
{
f11 = f11 * 0.500000;
} // end if
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.020000 * 3.141593;
if (ups[112])
{
f11 = f11 * 1.500000;
} // end if
if (ups[222])
{
f11 = f11 * 0.500000;
} // end if
trg.xp = f1 + Math.sin(f11) * 60;
trg.yp = f2 + Math.cos(f11) * 45;
} // end else if
}
else
{
if (trg.ni)
{
trg.d.gotoAndStop(132);
trg.dmg = 15;
if (fra % 6 == 0)
{
trg.hh = [];
} // end if
}
else if (trg.ang)
{
trg.dmg = 7;
if (fra % 18 == 0)
{
trg.hh = [];
} // end if
trg.d.gotoAndStop(97);
}
else if (trg.meat)
{
trg.dmg = 7;
if (fra % 18 == 0)
{
trg.hh = [];
} // end if
if (trg.meat <= 1)
{
trg.d.gotoAndStop(22);
}
else
{
f11 = f11 + 11;
trg.dou = true;
if (trg.lfra + 4 < fra)
{
trg.d.gotoAndStop(plo + 23);
} // end if
folz.push(trg);
} // end else if
}
else
{
trg.d.gotoAndStop(20);
} // end else if
flys.push(e);
f12 = fra * 0.030000;
if (ups[112])
{
f12 = f12 * 2;
} // end if
if (ups[222])
{
f11 = f11 * 0.500000;
} // end if
f11 = (f12 + ffly * fll) * 3.141593;
trg.xp = f1 + Math.sin(f11) * 25;
trg.yp = f2 + Math.cos(f11) * 20;
if (trg.fly)
{
lff = trg;
} // end if
if (trg.bluf)
{
}
else
{
++ffly;
if (ffly > 3)
{
lff.done = true;
} // end if
} // end else if
} // end else if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
}
else
{
trg.outway = true;
f1 = (follow == player || follow.maga || follow.dou || follow.ba) && !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)
{
lastbb = trg.baa = 11;
}
else if (trg.ggho == 2 && trg.ggho != true && lastbbb != 10 && lastbb != 10)
{
lastbb = trg.baa = 10;
}
else if (ups[188] && lastbbb != 9 && lastbb != 9)
{
lastbb = trg.baa = 9;
}
else if (ups[95] && lastbbb != 2 && lastbb != 2)
{
lastbb = trg.baa = 2;
}
else if (ups[67] && lastbbb != 1 && lastbb != 1)
{
lastbb = trg.baa = 1;
}
else if (ups[163] && lastbbb != 6 && lastbb != 6)
{
lastbb = trg.baa = 6;
}
else if (ups[167] && lastbbb != 7 && lastbb != 7)
{
lastbb = trg.baa = 7;
}
else if (ups[174] && lastbbb != 8 && lastbb != 8)
{
lastbb = trg.baa = 8;
}
else if (ups[99] && lastbbb != 3 && lastbb != 3)
{
lastbb = trg.baa = 3;
}
else if (ups[113] && lastbbb != 5 && lastbb != 5)
{
lastbb = trg.baa = 5;
}
else if (ups[100] && lastbbb != 4 && lastbb != 4)
{
lastbb = trg.baa = 4;
} // end else if
lastbbb = f11;
} // end if
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;
} // end if
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.100000;
trg.xp = trg.xp - xenf * enf;
trg.yp = trg.yp - yenf * enf;
} // end if
} // end else if
if (!trg.maga || f2)
{
folz.push(trg);
}
else
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
} // end else if
if (trg.baa != 9)
{
trg2 = follow;
follow = trg;
} // end if
if (trg.bum)
{
if (trg.d._currentframe != 135)
{
trg.d.gotoAndStop(134);
} // end if
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);
} // end else if
}
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);
} // end else if
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.040000;
break;
}
case 3:
{
f1 = 5.010000;
break;
}
case 2:
{
f1 = 5.010000;
_root.soundy("kiss_lips1.wav");
break;
}
case 1:
{
f1 = 5.020000;
break;
}
} // End of switch
trg2 = spaw(trg.xp, trg.yp, 0, f1);
if (trg.mon > 1 && trg.mon < 4)
{
trg2.col = trg.mon;
} // end if
} // end if
} // end if
}
else
{
trg.ba = true;
if (trg.lfra + 4 < fra)
{
if (trg.baa == 5)
{
if (trg.plo == undefined)
{
trg.plo = 1;
} // end if
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;
} // end if
} // end if
} // end if
} // end if
} // end of for...in
if (f2 && trg.trg2 != f2)
{
trg2 = trg.trg2 = f2;
}
else
{
trg2 = trg.trg2;
} // end else if
if (trg2 == player || trg2.dones)
{
trg2 = trg.trg2 = undefined;
} // end if
if (!f2)
{
if (!linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp))
{
trg2 = trg.trg2 = undefined;
} // end if
} // end if
if (trg2)
{
xenf = trg.xp - trg2.xp;
yenf = trg.yp - trg2.yp;
enf = enfget(xenf, yenf);
enf = 8 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
babymode = 5;
if (Math.abs(xenf) > Math.abs(yenf))
{
if (xenf < 0)
{
trg.plo = 2;
}
else
{
trg.plo = 4;
} // end else if
}
else if (yenf > 0)
{
trg.plo = 3;
}
else
{
trg.plo = 1;
} // end else if
trg.d.gotoAndStop(trg.plo + 88);
trg2 = create(trg.xp, trg.yp, 0, -xenf, -yenf, 0, 2);
}
else
{
trg.plo = 1;
} // end if
} // end else if
}
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);
} // end else if
} // end else if
} // end else if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
} // end else if
} // End of the function
function orbit()
{
var _loc4 = 1;
if (trg.e % 2 == 0)
{
_loc4 = -1;
} // end if
f1 = player.xp - 2;
f2 = player.yp - 4;
f11 = (fra - trg.fra) * -0.030000 * (3.141593 * _loc4);
trg.xp = f1 + Math.cos(f11) * 110;
trg.yp = f2 + Math.sin(f11) * 110;
} // End of the function
function cander()
{
for (a in ball)
{
trg2 = ball[a];
if (fra + trg2.e == 0 && trg2.s > 8)
{
if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 43))
{
hurt(trg2, 23);
} // end if
} // end if
} // end of for...in
} // End of the function
function slotf(rndParam)
{
var _loc1 = 0;
if (ups[46])
{
_loc1 = 3 + _root.IntRndFn(rndParam, 15);
}
else
{
_loc1 = 3 + _root.IntRndFn(rndParam, 21);
} // end else if
if (_loc1 >= 9 && (_root.IntRndFn(rndParam, 10) != 0 || sloto))
{
++_loc1;
} // end if
if (_loc1 == 7 && _root.IntRndFn(rndParam, 3) == 0)
{
_loc1 = 10;
} // end if
return (_loc1);
} // End of the function
function sloty(f1)
{
switch (f1)
{
case 3:
{
if (_root.IntRndFn(33, 3) == 0)
{
_root.ups[10] = _root.ups[10] + 0.500000;
ups[10] = _root.ups[10];
st22("Pretty Fly");
emo();
}
else
{
f2 = 13;
emo(true);
} // end else if
break;
}
case 4:
{
f2 = 5.040000;
break;
}
case 5:
case 6:
{
f2 = 5;
break;
}
case 10:
case 11:
case 12:
{
f2 = 5.020000;
f12 = Math.max(1, _root.IntRndFn(33, 3));
break;
}
case 7:
{
f2 = 5.030000;
break;
}
case 8:
{
f2 = 5.070000;
break;
}
case 9:
{
enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, f1);
if (enf < f1)
{
enf = (f1 - enf) / enf * 0.400000;
player.xbew = player.xbew - xenf * enf;
player.ybew = player.ybew - yenf * enf;
} // end if
f2 = 5.100000;
trg.done = true;
_root.soundy("boss1_explosions" + random(3) + ".wav", 80);
break;
}
default:
{
if (sloto)
{
emo(true);
} // end if
break;
}
} // End of switch
} // End of the function
function actions2()
{
f2 = 0;
f3 = fra % 3;
if (f3 == 0)
{
f1 = 0.450000;
}
else if (f3 == 1)
{
f1 = 1;
}
else
{
f1 = 1.850000;
} // end else if
if (blackout == 2)
{
if (f1 == 1)
{
f2 = 30;
} // end if
f1 = f1 * 0.700000;
f1 = f1 - 0.500000;
} // end if
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.100000;
bull.redMultiplier = f1 + 0.800000;
bull.greenMultiplier = f1 + 6;
bull.blueMultiplier = f1 + 7.400000;
bull.redOffset = f2 + 20;
bull.greenOffset = f2 + 20;
bull.blueOffset = f2 + 20;
} // end if
bull2 = new flash.geom.ColorTransform();
if (fra % 2 == 0)
{
f3 = fra % 6 / 2;
if (f3 == 0)
{
f1 = 0.450000;
}
else if (f3 == 1)
{
f1 = 1;
}
else
{
f1 = 1.850000;
} // end else if
f1 = f1 * 0.200000 + 0.850000;
if (blackout == 2)
{
f1 = 1;
} // end if
bull2.redMultiplier = f1;
bull2.greenMultiplier = f1;
bull2.blueMultiplier = f1;
bull2.redOffset = f2;
bull2.greenOffset = f2;
bull2.blueOffset = f2;
} // end if
var _loc2 = new flash.geom.Transform(blorz);
_loc2.colorTransform = bull2;
wormet = momet = magget = 0;
if (fra % 3 == 0)
{
for (e in levz)
{
if (levz[e] > 0 && levz[e] < 0.990000)
{
levz[e] = levz[e] - 0.100000;
if (levz[e] < 0)
{
levz[e] = 0;
} // end if
} // end if
} // end of for...in
} // end if
if (fra > 10)
{
_root.levit[_root.lev] = [];
} // end if
ashut = shutdoor;
shutdoor = 0;
if (fra > 10)
{
_root.levcol[_root.lev] = 0;
} // end if
follow = player;
folz = [];
ffly = 0;
ablub = blub;
blub = 0;
_root.bluf = Math.min(blufb, 5);
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)
{
if (enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 160))
{
_root.tex = 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;
} // end if
} // end if
} // end if
} // end if
} // end if
}
else
{
trg._parent.nextFrame();
} // end else if
if (trg._parent._currentframe == trg._parent._totalframes)
{
trg._parent.gotoAndStop(1);
} // end if
}
else
{
trg._parent.gotoAndStop(1);
} // end else if
if (trg._parent._currentframe == 3)
{
_root.tex = trg._parent._currentframe;
enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000);
enf = enfget(xenf, yenf);
enf = -5 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
create(trg.xp + xenf * 5, trg.yp + yenf * 5, 0, xenf, yenf, 0, 9);
} // end if
} // end of for...in
} // end if
if (anarch-- > 0)
{
if (anarch % 5 == 0)
{
trg2 = spaw(320, 280, random(300), 5.040000);
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;
} // end if
} // end if
} // end if
} // end if
} // end else if
}
else
{
analt = false;
} // end else if
if (killa)
{
for (z in levz)
{
if (killshit(z))
{
killshit(z);
killshit(z);
killshit(z);
killshit(z);
} // end if
} // end of for...in
killa = false;
} // end if
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);
} // end if
} // end if
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);
} // end if
} // end if
splaz = true;
} // end if
if (sacri-- > 0)
{
splaz = true;
} // end if
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._xscale = trg2.d._yscale = 140 + random(80);
trg2.md = trg2.md - random(20);
trg2.fd = trg2.fd + 0.500000;
} // end while
} // end if
helpss = helps;
helps = 0;
help = 0;
for (e in ball)
{
trg = ball[e];
if (trg.bosser && trg.dones)
{
trg.bosser = false;
--bosser;
if (bosser == 0 && !bossheart)
{
bossheart = true;
f0 = 5.010000;
if (trg.s == 45 || trg.s == 78)
{
f1 = 320;
f2 = 280;
}
else
{
f1 = trg.xp;
f2 = trg.yp;
} // end else if
if (_root.bossl == _root.lev)
{
create(f1, f2, 0, crand(7), crand(7), 0, f0);
if (_root.so.data.wins < 6)
{
create(f1, f2, 0, crand(7), crand(7), 0, f0);
} // end if
} // end if
if (spezz)
{
trg2 = create(f1, f2, 0, crand(7), crand(7), 0, 5.010000);
if (spezz == 4 || spezz == 7)
{
trg2.col = 3;
} // end if
} // end if
} // end if
} // end if
} // end of for...in
bosser = 0;
lastbbb = lastbb = -1;
topz(1);
if (decer.s == 4)
{
rply = player;
player = decer;
} // end if
} // End of the function
function deathscripts()
{
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))
{
trg.xp = f1 = trg.xpp;
trg.yp = f2 = trg.ypp;
} // end if
if (enf > 0)
{
enf = 8.500000 / enf;
xenf = xenf * enf;
yenf = 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.200000;
trg2.dm = 1.200000;
trg3.d._xscale = trg2.d._xscale = trg.d._xscale;
trg3.d._yscale = trg2.d._yscale = trg.d._yscale;
trg3.dmg = trg2.dmg = trg.dmg;
if (ups[132])
{
trg3.gro = trg2.gro = trg.gro;
} // end if
} // end if
} // end if
} // end if
}
else if (trg.s == 2 && !trg.dones)
{
trg.xbb = trg.xbew;
trg.ybb = trg.ybew;
trg.xpp = trg.xp;
trg.ypp = trg.yp;
} // end else if
if (trg.s == 25 && trg.alter == 2 && !trg.wtfst && trg.dones)
{
trg.wtfst = true;
cirf(trg.xp, trg.yp, 8, 6);
} // end if
if ((trg.s == 16 || trg.s == 22 || trg.s == 67) && trg.dones && !trg.wtfst)
{
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.040000);
trg2.col = 3;
}
else if (trg.hp > -20)
{
flya();
} // end else if
if (trg.s == 67 && altboss && trg.specoz)
{
if (trg.specoz == 16)
{
f1 = 25;
}
else if (trg.specoz)
{
f1 = 25.100000;
} // end else if
spaw(trg.xp, trg.yp, 20, f1);
spaw(trg.xp, trg.yp, 20, f1);
} // end if
} // end if
if (trg.s == 19 && altboss && trg.specoz && !trg.wtfst && trg.dones)
{
trg.wtfst = true;
if (trg.specoz == 3)
{
f1 = 23;
}
else if (trg.specoz == 16)
{
f1 = 25;
}
else
{
f1 = 5.020000;
} // end else if
spaw(trg.xp, trg.yp, 0, f1);
} // end if
if (trg.s == 100 && altboss && trg.dones && !trg.wtfst)
{
trg.wtfst = true;
boil();
boil();
boil();
} // end if
if (trg.s == 101 && trg.dones && !trg.wtfst)
{
trg.wtfst = true;
trg.done = true;
momdown = 100;
} // end if
if (trg.s == 91 && trg.dones && !trg.wtfst)
{
trg.wtfst = true;
trg2 = spaw(trg.xp, trg.yp, 0, 25);
} // end if
if (trg.frezz > 0)
{
--trg.frezz;
trg.free = true;
}
else if (trg.frezz < 1)
{
trg.free = false;
} // end else if
if (trg.poiss > 0)
{
--trg.poiss;
if (trg.poiss % 20 == 1)
{
if (trg.s != 28 || altboss != 2)
{
hurt(trg, trg.poisd);
} // end if
} // end if
} // end if
if (trg.elect > 0)
{
--trg.elect;
if (trg.elect % 20 == 1)
{
if (trg.s != 28 || altboss != 2)
{
hurt(trg, trg.electd);
} // end if
} // end if
} // end if
} // End of the function
function running()
{
if (trg == flox && trg.minb != 3)
{
flox = undefined;
} // end if
trg.spin = false;
if (trg.col == 31 || trg.col == 23)
{
if (trg.col == 23)
{
++_root.dcoins;
if (_root.dcoins > 0)
{
st22(_root.dcoins + " coins donated");
} // end if
if (_root.dcoins > 5)
{
if (random(5) == 0)
{
f1 = random(5);
if (f1 == 0)
{
_root.ittt4.push(33);
} // end if
if (f1 == 1)
{
_root.ittt4.push(156);
} // end if
if (f1 == 2)
{
_root.ittt4.push(21);
} // end if
if (f1 == 3)
{
_root.ittt4.push(54);
} // end if
if (f1 == 4)
{
_root.ittt4.push(116);
} // end if
} // end if
} // end if
if (_root.dcoins > 15)
{
if (random(15) == 0)
{
_root.ups[64] = ups[64] = 1;
} // end if
} // end if
if (_root.dcoins > 20)
{
if (random(25) == 0)
{
create(trg.xp, trg.yp, 0, 0, 0, 0, 33);
} // end if
} // end if
}
else if (_root.IntRndFn(41, 2) == 0)
{
if (_root.IntRndFn(41, 2) == 0)
{
f2 = 5.070000;
}
else
{
f2 = 5.300000;
} // end else if
}
else if (_root.IntRndFn(41, 4) == 0)
{
f2 = 5.350000;
}
else
{
f2 = 5.100000;
} // end else if
}
else
{
f2 = 5.102200 + _root.IntRndFn(41, 5) * 0.000100;
if (_root.IntRndFn(41, 2) == 0)
{
if (_root.IntRndFn(41, 3) == 0)
{
f2 = 5;
}
else
{
f2 = 5.030000 + _root.IntRndFn(41, 2) * 0.010000;
} // end else if
}
else if (_root.IntRndFn(41, 2) == 0)
{
if (_root.IntRndFn(41, 2) == 0)
{
f2 = 5.102200 + _root.IntRndFn(41, 5) * 0.000100;
}
else
{
f2 = 5.300000;
} // end else if
}
else
{
f2 = 5.100000;
} // end else if
} // end else if
trg.d.d.gotoAndStop(36);
} // End of the function
function actions1()
{
actions2();
for (e in ball)
{
trg = ball[e];
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.dones && !trg.sic && !trg.horse && !trg.weap && !mheart || trg == mheart)
{
++bosser;
trg.aboss = trg.bosser = !trg.minb;
if (trg.hp > trg.mhp)
{
trg.mhp = trg.hp;
} // end if
help = help + trg.hp / trg.mhp;
++helps;
f1 = 0;
if (trg.s == 74)
{
f1 = 10;
} // end if
if (trg.s == 75)
{
f1 = 4;
} // end if
if (trg.s == 76)
{
f1 = 1;
} // end if
if (trg.s == 71 && altboss)
{
f1 = 18;
}
else if (trg.s == 71)
{
f1 = 12;
} // end else if
if (trg.s == 72)
{
f1 = 2;
} // end if
help = help + f1;
helps = helps + f1;
bosser = bosser + f1;
trg.hbar = true;
mins = trg.minb || _root.lev != _root.bossl && _root.lev != _root.bossl2 && _root.lev != 166;
} // end if
if ((trg.flyai || trg.s == 25 && !trg.alt) && !trg.dones)
{
++flyshut;
} // end if
if (trg.gosplash)
{
gosplash();
trg.gosplash = false;
} // end if
if ((trg.s == 61 || trg.s == 26 && trg.alter == 2) && trg.dones && !trg.wtfst)
{
trg.wtfst = true;
if (trg.alter == 2 && trg.s == 61)
{
green();
}
else
{
quadf(trg.xp, trg.yp, 8);
} // end if
} // end else if
if (trg.s == 81 && trg.alter == 2)
{
if (trg.dones)
{
null;
if (random(8) == 0)
{
trg.alter = 0;
_root.locker[64] = true;
f0 = 5.120600;
spaw(trg.xp, trg.yp, 0, f0);
}
else
{
trg.alter = 0;
_root.locker[64] = true;
f0 = 5.113200;
spaw(trg.xp, trg.yp, 0, f0);
} // end if
} // end if
} // end else if
if (trg.minb)
{
if (!fonter)
{
fonter = true;
f4 = ["Isaac", "Magdalena", "Cain", "Judas", "???", "Eve", "Samson", "Adam"];
f1 = ["Sloth", "Lust", "Wrath", "Gluttony", "Greed", "Envy", "Oldbob12", "Krampus"];
f0 = trg.s - 46;
if (trg.alter == 3)
{
f1 = " vs Ultra Oldbob12";
}
else if (trg.alter == 2)
{
f1 = " vs Super " + f1[f0];
}
else
{
f1 = " vs " + f1[f0];
} // end else if
st11(f4[_root.skiner] + f1);
} // end if
if (trg.dones && helpss == 0 && !minsber)
{
minsber = true;
if (trg.minb == 2)
{
f1 = 74;
if (!_root.locker[10])
{
f1 = 64;
} // end if
f1 = [5.300000, 140, 5.070000, 45, 5.040000, 106, 5.010000, 129, 5.020000, f1, 5.040000, 128, 5.300000, 81];
}
else
{
f1 = [5.300000, 42, 5.070000, 13, 5.040000, 37, 5.010000, 15, 5.020000, 64, 5.040000, 49, 5.300000, 65];
} // end else if
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;
} // end if
if (trg.minb == 3)
{
f0 = 5.070000;
trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, f0);
trg2.col = 61;
_root.locker[98] = true;
}
else
{
f0 = f0 * 2;
f2 = false;
if (random(4) == 0 || trg.minb == 2 && random(7) == 0)
{
f2 = true;
} // end if
if (f2 && !_root.ups[f1[f0 + 1]])
{
f0 = f1[f0 + 1];
f0 = 5.100000 + f0 / 10000;
}
else
{
f0 = f1[f0];
} // end else if
if (f0 == 5.040000 && trg.s == 51)
{
trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, f0);
trg2.col = 3;
}
else if (f0 == 5.020000)
{
f3 = 4 + random(5);
for (z = 0; z < f3; z++)
{
f4 = random(5) + 2;
create(trg.xp, trg.yp, 0, crand(f4), crand(f4), 0, f0);
} // end of for
}
else if (f0 == 5.010000 || f0 == 5.040000)
{
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);
} // end else if
} // end else if
trg.minb = false;
} // end if
}
else if (trg.special || trg.hallo)
{
if (trg.dones)
{
trg.special = false;
trg.hallo = false;
f1 = Math.random();
if (f1 < 0.400000)
{
f0 = 5.020000;
}
else if (f1 < 0.600000)
{
f0 = 5.010000;
}
else if (f1 < 0.760000 - _root.chaps * 0.010000)
{
f0 = 5.030000;
}
else if (f1 < 0.800000)
{
if (random(2) == 0)
{
f0 = 5.300000;
}
else
{
f0 = 5.070000;
} // end else if
}
else if (f1 < 0.950000)
{
f0 = 5.040000;
}
else
{
f0 = 5.050000;
} // end else if
spaw(trg.xp, trg.yp, 0, f0);
} // end if
} // end else if
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 = f3 + 0.100000;
} // end if
trg2.push(create(trg.xp + f1, trg.yp + f2, 0, f1 * 0.400000, f2 * 0.400000, 0, f3));
trg2.push(create(trg.xp - f1, trg.yp - f2, 0, -f1 * 0.400000, -f2 * 0.400000, 0, f3));
if (trg.alter == 2 && trg.tier < 1 + random(2))
{
trg2.push(create(trg.xp - f1, trg.yp - f2, 0, -f2 * 0.400000, f1 * 0.400000, 0, f3));
} // end if
for (z in trg2)
{
trg2[z].fra = -100;
trg2[z].tier = trg.tier + 1;
trg2[z].hp = trg2[z].hp / (trg.tier + 2);
trg2[z]._xscale = trg2[z]._yscale = 100;
trg2[z].d.gotoAndStop(5 + trg.tier);
} // end of for...in
} // end if
if (trg.s == 76 && trg.dones && !trg.wtfst)
{
trg.wtfst = true;
trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 77);
trg2.fra = -100;
} // end if
if (trg.s == 73 && trg.dones && !trg.wtfst)
{
trg.wtfst = true;
f33 = ingrid(trg.xp, trg.yp);
f1 = levz[f33];
if (altboss || f1 != 3)
{
f1 = 23;
if (trg.specoz == 15)
{
f1 = 25;
} // end if
if (altboss)
{
boil(true);
boil(false);
}
else
{
trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, f1);
} // end else if
_root.soundy("summonsound.wav", 80);
trg2.hp = trg2.hp * 0.750000;
} // end if
} // end if
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.200000, f2 * 0.200000, 0, f3));
trg2.push(create(trg.xp - f1, trg.yp - f2, 0, -f1 * 0.200000, -f2 * 0.200000, 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.200000, -f1 * 0.200000, 0, f3));
trg2.push(create(trg.xp - f2, trg.yp + f1, 0, -f2 * 0.200000, f1 * 0.200000, 0, f3));
} // end if
} // end else if
for (z in trg2)
{
trg2[z].fra = -100;
trg2[z].d.gotoAndStop(2 + (f3 - 71) * 3);
} // end of for...in
} // end if
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;
} // end else if
create(trg.xp + f1, trg.yp + f2, 0, 0, 0, 0, f3);
create(trg.xp - f1, trg.yp - f2, 0, 0, 0, 0, f3);
} // end if
if (trg.s == 79 && altboss && !trg.wtfst && trg.dones)
{
trg.wtfst = true;
quadf(trg.xp, trg.yp, 10, true);
} // end if
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 = f1 * enf;
f2 = f2 * enf;
}
else
{
f1 = crand(10);
f2 = crand(10);
} // end else if
if (trg.s == 94)
{
f3 = 85;
}
else
{
f3 = 18;
} // end else if
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;
} // end if
deathscripts();
if (trg.uncol < fra)
{
speco(trg);
} // end if
if (trg.s <= 9)
{
if (!trg.dones)
{
switch (trg.s)
{
case 3:
{
friends();
break;
}
case 2:
{
if (trg.fra + 2 < fra)
{
trg.bh = true;
} // end if
if (trg.bombo)
{
trg.bh = trg.ggh = trg.dy > -50;
trg.ggh = !trg.ggh;
if (trg.yp < 230)
{
trg.ggh = false;
} // end if
if (trg.yp > 420)
{
trg.ggh = false;
} // end if
if (trg.xp > 540)
{
trg.ggh = false;
} // end if
if (trg.xp < 80)
{
trg.ggh = false;
} // end if
} // end if
if (ups[225] && !trg.ba)
{
orbit();
} // end if
if (ups[5] && !trg.ba)
{
trg2 = player;
enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 500);
enf = 0.600000 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
trg.xbew = trg.xbew * 0.980000;
trg.ybew = trg.ybew * 0.980000;
trg.fd = -0.045000;
} // end if
if (ups[132] && !trg.ba && !ups[114] && !ups[205])
{
if (trg.gro++ < 150)
{
trg.dmg = trg.dmg + 0.140000;
trg.d._xscale = trg.d._xscale + 1;
trg.d._yscale = trg.d._yscale + 1;
} // end if
} // end if
if (lows.trixer == 46)
{
if (trg.trg2 == undefined || trg.trg2.dones || trg.trg2.xp <= 0)
{
if ((fra + trg.e) % 9 == 0)
{
f1 = trg.xp + trg.xbew * 5;
f2 = trg.yp + trg.ybew * 5;
siz = 100;
for (i in ball)
{
trg2 = ball[i];
if (trg2.s > 9 && !trg2.dones && !trg.hh[trg2.e])
{
if (enf = enfcheck(f1, f2, trg2.xp, trg2.yp, siz))
{
if (trg2.pos >= 3 && (trg2 != mheart || trg2.bh))
{
siz = enf;
trg.trg2 = trg2;
} // end if
} // end if
} // end if
} // end of for...in
if (trg.trg2 != undefined)
{
trg2 = trg.trg2;
if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp))
{
trg.gonuts = true;
} // end if
} // end if
} // end if
}
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;
} // end if
} // end if
if (trg2.dones || trg.hh[trg.trg2.e])
{
trg.trg2 = undefined;
trg.gonuts = false;
}
else if (trg.gonuts && random(2) == 0)
{
enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 100);
if (enf > 0)
{
enf = 2 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
if (ups[182] && !trg.ba)
{
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
}
else
{
trg.xbew = trg.xbew * 0.850000;
trg.ybew = trg.ybew * 0.850000;
} // end if
} // end if
} // end else if
} // end else if
} // end else if
if (ups[3] && !trg.ba || trg.ba == 4 || trg.ba == 11)
{
if (trg.trg2 == undefined || trg.trg2.dones || trg.trg2.xp <= 0)
{
if ((fra + trg.e) % 9 == 0)
{
f1 = trg.xp + trg.xbew * 5;
f2 = trg.yp + trg.ybew * 5;
siz = 100;
for (i in ball)
{
trg2 = ball[i];
if (trg2.s > 9 && !trg2.dones && !trg.hh[trg2.e])
{
if (enf = enfcheck(f1, f2, trg2.xp, trg2.yp, siz))
{
if (trg2.pos >= 3 && (trg2 != mheart || trg2.bh))
{
siz = enf;
trg.trg2 = trg2;
} // end if
} // end if
} // end if
} // end of for...in
if (trg.trg2 != undefined)
{
trg2 = trg.trg2;
if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp))
{
trg.gonuts = true;
} // end if
} // end if
} // end if
}
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;
} // end if
} // end if
if (trg2.dones || trg.hh[trg.trg2.e])
{
trg.trg2 = undefined;
trg.gonuts = false;
}
else if (trg.gonuts && random(2) == 0)
{
enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 100);
if (enf > 0)
{
enf = 2 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
if (ups[182] && !trg.ba)
{
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
}
else
{
trg.xbew = trg.xbew * 0.850000;
trg.ybew = trg.ybew * 0.850000;
} // end if
} // end if
} // end else if
} // end else if
} // end else if
if (trixx(47))
{
ups[0] && trg.trg2 == undefined;
} // end if
if (trg.trg2 == undefined && !trg.ba)
{
outgrid(ingrid(trg.xp, trg.yp));
trg.nuts = trg.nuts * 0.500000;
if (trg.dir)
{
trg.nuts = trg.nuts + Math.abs(trg.xbew) * 0.020000;
trg.xbew = trg.xbew / (0.800000 + trg.nuts);
trg.xbew = trg.xbew + (xenf - trg.xp) * 0.300000;
}
else
{
trg.nuts = trg.nuts + Math.abs(trg.ybew) * 0.020000;
trg.ybew = trg.ybew / (0.800000 + trg.nuts);
trg.ybew = trg.ybew + (yenf - trg.yp) * 0.300000;
} // end if
} // end else if
}
case 9:
{
if (trg.s == 9 && (!trg.bomb || blackout == 2) && trg.sss != 68 && !trg.hom && trg.sss != 100 && (trg.sss != 101 || !altboss))
{
var _loc2 = new flash.geom.Transform(trg);
_loc2.colorTransform = bull;
if (isaaaac)
{
trg.colo = bull;
trg.spl = 10;
} // end if
} // end if
if (random(16) == 0 || trg.spll)
{
splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.300000 + 0.100000);
} // end if
if (trg.hom)
{
enf = enfcheck(trg.xp + trg.xbew * 5, trg.yp + trg.ybew * 5, player.xp, player.yp, 100);
if (enf > 0)
{
enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000);
enf = 1.400000 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
trg.xbew = trg.xbew * 0.920000;
trg.ybew = trg.ybew * 0.920000;
} // end if
} // end if
}
case 8:
{
if (trg.s == 8)
{
if (random(3) == 0)
{
splater(trg.xp, trg.yp, trg.spl + 1 + random(10), (Math.random() * 0.300000 + 0.100000) * trg.d._xscale / 100);
} // end if
} // end if
}
case 7:
{
if (!trg.knife)
{
trg.dm = trg.dm * 0.900000;
trg.dm = trg.dm + 0.100000;
if (trg.fd)
{
trg.dm = trg.dm + trg.fd;
} // end if
trg.dy = trg.dy + trg.dm;
trg.d._y = trg.dy;
if (trg.dy > -5)
{
if (trg.s == 2)
{
trg.wtfst = true;
} // end if
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);
} // end else if
trg._visible = false;
} // end if
if (random(2) == 0)
{
_root.soundy("splatter0" + random(3) + ".wav");
} // end if
trg.d.gotoAndStop("groundhit");
trg.dones = true;
} // end if
} // end if
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;
} // end if
} // end if
} // end else if
break;
}
case 5:
{
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");
} // end else if
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");
} // end else if
break;
}
} // End of switch
} // end if
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)
{
if (enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 40))
{
if (enfget(trg2.xbew, trg2.ybew) < 0.200000)
{
if (enf == 0)
{
xenf = crand(1);
yenf = crand(1);
enf = 1;
} // end if
enf = 2 / enf;
trg2.xbew = trg2.xbew - xenf * enf;
trg2.ybew = trg2.ybew - yenf * enf;
} // end if
} // end if
} // end if
} // end of for...in
} // end if
} // end if
if (trg.col == 10 && trg.d._currentframe == 8)
{
trg.xbew = 0;
trg.ybew = 0;
} // end if
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);
} // end if
} // end if
if (trg.spin)
{
if (trg.d.d._currentframe == 2 && trg.d.d.d._currentframe == 17)
{
_root.soundy("slot touched.wav");
} // end if
if (trg.d.d._currentframe == 42 && trg.d.d.d._currentframe == 35)
{
_root.soundy("shellgame" + random(2) + ".wav");
} // end if
if (trg.d.d._currentframe == 42 && trg.d.d.d._currentframe == 35)
{
_root.soundy("shellgame" + random(2) + ".wav");
} // end if
if (trg.d.d._currentframe >= 42 && trg.d.d.d._currentframe == 65)
{
_root.soundy("shell game.wav");
} // end if
if (trg.d.d._currentframe == 40 && trg.d.d.d._currentframe == 20)
{
_root.soundy("bum shoot off.wav");
} // end if
f1 = trgnextd(trg.d.d.d, true);
if (trg.d.d._currentframe == 42)
{
trg.d.d.d.it.gotoAndStop(trg.itt + 1);
} // end if
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 == 32)
{
if (_root.IntRndFn(34, 4 - ups[46]) == 0)
{
trg.d.d.gotoAndStop(38);
}
else
{
trg.d.d.gotoAndStop(36);
trg.spin = false;
} // end else if
trg.wtf = false;
}
else if (trg.col == 22)
{
if (_root.IntRndFn(34, 4 - ups[46]) == 0)
{
trg.d.d.gotoAndStop(38);
}
else
{
trg.d.d.gotoAndStop(36);
trg.spin = false;
} // end else if
trg.wtf = false;
}
else if (trg.col == 23)
{
trg.d.d.gotoAndStop(38);
trg.wtf = false;
}
else if (trg.col == 5)
{
if (_root.IntRndFn(34, 4 - ups[46]) == 0)
{
trg.d.d.gotoAndStop(38);
}
else
{
trg.d.d.gotoAndStop(36);
trg.spin = false;
} // end else if
trg.wtf = false;
}
else if (trg.col == 31)
{
if (_root.IntRndFn(34, 4 - ups[46]) == 0)
{
trg.d.d.gotoAndStop(38);
}
else
{
trg.d.d.gotoAndStop(36);
trg.spin = false;
} // end else if
trg.wtf = false;
}
else
{
if (trg.col++ > _root.IntRndFn(35, 2) + _root.IntRndFn(35, 4) + _root.IntRndFn(35, 4))
{
if (ups[46])
{
++trg.col;
} // end if
trg.col = 2 + _root.IntRndFn(35, 2);
trg.d.d.gotoAndStop(38);
}
else
{
trg.d.d.gotoAndStop(36);
trg.spin = false;
} // end else if
trg.col = Math.min(9, trg.col);
trg.wtf = false;
} // end else if
}
else if (f1 == 2)
{
if (_root.IntRndFn(36, 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
{
if (trg.col == 41)
{
trg.d.d.gotoAndStop(slotf(43));
}
else
{
trg.d.d.gotoAndStop(slotf(44));
} // end else if
trg.wtf = false;
} // end else if
}
else if (f1 > 2 && (trg.col == 41 || trg.col <= 1))
{
trg.spin = false;
} // end else if
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.650000 - ups[46];
if (_root.FloatRndFn(37) < f1)
{
f1 = ["You are what you eat", "Look behind you", "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 (_root.IntRndFn(38, 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 (_root.IntRndFn(38, 30) == 0)
{
f2 = 5.100000;
}
else if (_root.IntRndFn(38, 3) == 0)
{
f2 = 5.300000;
}
else if (_root.IntRndFn(38, 3) == 0)
{
f2 = 5.010000;
}
else
{
f2 = 5.350000;
} // end else if
}
else
{
sloty(f1);
switch (f1)
{
case 43:
case 44:
case 45:
{
if (_root.IntRndFn(39, 3) == 0 || _root.IntRndFn(39, 3) == 0 && ups[46])
{
f2 = 5.010000 + trg.itt * 0.010000;
if (f2 == 5.020000)
{
f12 = 2 + _root.IntRndFn(40, 2);
}
else
{
f12 = Math.max(_root.IntRndFn(40, 3), 2);
} // end else if
if (trg.itt == 5)
{
f2 = 5.100900;
} // end if
}
else
{
f2 = 18;
_root.soundy("boss2intro_errorbuzz.wav");
} // end else if
break;
}
case 42:
{
break;
}
case 38:
{
running(null);
break;
}
case 33:
{
if (_root.IntRndFn(42, 15) == 0)
{
f2 = 5.100000;
trg.done = true;
_root.soundy("boss1_explosions" + random(3) + ".wav", 80);
}
else
{
f2 = 5.020000;
f12 = Math.max(1, _root.IntRndFn(42, 3));
if (ups[75])
{
++f12;
} // end if
_root.soundy("bloodbank spawn" + random(2) + ".wav", 90);
} // end else if
break;
}
case 3:
case 4:
case 5:
case 6:
case 10:
case 11:
case 12:
case 7:
case 8:
case 9:
{
break;
}
case 37:
{
break;
}
default:
{
emo(true);
break;
}
} // End of switch
} // end else if
if (f2 > 0)
{
if (f1 < 33)
{
emosound = false;
} // end if
if (f2 < 7 && f1 != 33)
{
emo();
} // end if
emosound = true;
if (f1 < 33)
{
_root.soundy("slotspawn" + random(3) + ".wav");
} // end if
if (f2 >= 5.100000 && trg.col > 1 && trg.col != 41 && f2 < 5.300000)
{
bummer = true;
if (trg.col == 31)
{
bummer = 2;
} // end if
if (trg.col == 32)
{
bummer = 1;
} // end if
if (trg.col == 22)
{
bummer = 4;
} // end if
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);
} // end else if
}
else
{
for (i = 0; i < f12; i++)
{
for (f13 = 0; f13++ < 10; f13 = 1000)
{
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.200000 + 3;
f14 = 0;
f15 = 0;
} // end else if
if (linecheckx(trg.xp + f14, trg.yp + f15, trg.xp + xenf * 7, trg.yp + yenf * 7))
{
} // end if
} // end of for
var trg2 = create(trg.xp + f14, trg.yp, 0, xenf, yenf, 0, f2);
trg2.alt = 2;
if (f2 == 18)
{
trg2.fra = -10;
trg2.xp = trg2.xp + xenf * 4;
} // end if
if (f2 == 5.100000)
{
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])
{
} // end if
trg2.alt = 3;
}
else
{
trg2.it = 18;
} // end else if
trg2.fra = trg2.fra - 15;
trg2.d.d.gotoAndStop(44);
} // end if
} // end of for
} // end if
} // end if
} // end if
} // end if
} // end else if
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);
} // end else if
} // end else if
if (fra - trg.fra > 25)
{
trg.bh = true;
} // end if
if (trg.it > 0)
{
f1 = trg.it / 100;
}
else
{
f1 = 0;
} // end else if
if (trg.d._currentframe == 4)
{
if (trg.fail == undefined)
{
trg.fail = 0;
} // end if
if ((trg.col == 3 || trg.col == 5) && trg.fail++ > 60)
{
trg.done = true;
trg2 = bombfail(trg.xp, trg.yp);
trg2.col = trg.col;
} // end if
} // end if
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();
} // end if
} // end else if
}
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);
} // end if
}
else if (trg.d._currentframe == 15)
{
f1 = trg.d.d._currentframe / 10 + f1 / 100;
trg.d.d.d.gotoAndStop(trg.it);
} // end else if
if (trg.col)
{
f1 = f1 + trg.col / 10000000;
} // end if
f1 = trg.d._currentframe + f1;
if (!trg.empty || trg.spin)
{
_root.levit[_root.lev].push([f1, trg.xp, trg.yp]);
} // end if
if (trg.d._currentframe >= 5 && trg.d._curretnframe != 7)
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
} // end if
if (trg.d._currentframe >= 8 && !trg.busted && (trg.d._currentframe != 10 || !trg.alt))
{
trg.xp = trg.xpp;
trg.yp = trg.ypp;
} // end if
trg.xbew = trg.xbew * 0.965000;
trg.ybew = trg.ybew * 0.965000;
if (!trg.empty)
{
f1 = trg.d._currentframe;
if (f1 == 7)
{
if (trg.col < 7)
{
f1 = 8;
} // end if
}
else if (f1 == 8)
{
f1 = 9;
}
else if (f1 == 9)
{
f1 = 0;
} // end else if
f2 = _root.levcol[_root.lev];
if (f1 == 1 && f2 < 5)
{
f2 = 0;
} // end if
if (f2 == 1 && f1 < 5)
{
f1 = 0;
} // end if
_root.levcol[_root.lev] = Math.max(f2, f1);
} // end if
break;
}
case 4:
{
if (trg.bolt)
{
if (trgnextd(trg.d, true))
{
trg.done = true;
} // end if
if (trg.d._currentframe > 5 && trg.d._currentframe < 28)
{
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);
} // end if
continue;
} // end if
if (trg2.s != 102)
{
if (trg.friend)
{
hurt(trg2, 20);
continue;
} // end if
hurt(trg2, 2);
} // end if
} // end if
} // end if
} // end of for...in
} // end if
} // end if
}
else if (trg.flir)
{
if (trgnextd(trg.d, false))
{
}
else
{
nofun = true;
for (a in ball)
{
trg2 = ball[a];
if ((fra + trg2.e) % 5 == 0 && trg2.s > 8)
{
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));
} // end if
} // end if
} // end if
} // end of for...in
} // end else if
trg.xbew = trg.xbew * 0.950000;
trg.ybew = trg.ybew * 0.950000;
}
else
{
if (trg.dec)
{
dec = undefined;
if (trg.d._currentframe != 7)
{
trg.dones = true;
} // end if
} // end if
if (_root.it == 97)
{
if (trg.d._currentframe == 1)
{
if (trg.d.d._currentframe == 10)
{
trg.d.d.gotoAndStop(1);
} // end if
} // end if
} // end if
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])
{
if (enf = enfcheck(f1, f2, trg2.xp, trg2.yp, siz))
{
siz = enf;
trg.trg2 = trg2;
} // end if
} // end if
} // end of for...in
if (trg.trg2 != undefined)
{
trg2 = trg.trg2;
if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp))
{
trg.gonuts = true;
} // end if
} // end if
} // end if
}
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;
} // end if
} // end if
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.500000 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
trg.xbew = trg.xbew * 0.950000;
trg.ybew = trg.ybew * 0.950000;
} // end if
} // end if
} // end else if
} // end else if
if (trg.d._currentframe == 1)
{
trg.d.d.nextFrame();
} // end if
if (fra - trg.fra > 30)
{
trg.ph = false;
} // end if
if (fra - trg.fra > 15)
{
trg.bh = true;
} // end if
if (fra - trg.lfra > 3 && !trg.nex)
{
trg.nex = true;
nextbo = true;
} // end if
if (!trg.empty)
{
_root.levit[_root.lev].push([-100, trg.xp, trg.yp]);
} // end if
trg.xbew = trg.xbew * 0.950000;
trg.ybew = trg.ybew * 0.950000;
trg.d.d.p.gotoAndStop(trg.col);
} // end else if
break;
}
} // End of switch
} // end if
continue;
} // end if
if (fra - trg.fra < 10 && !trg.dones && trg.s != 84 && trg.s != 101)
{
trg.d.gotoAndStop(4);
} // end if
if (firecheck(trg))
{
if (fra - trg.lastfir >= 10)
{
trg.lastfir = fra;
hurt(trg, 8);
} // end if
} // end if
if (trg.s != 42 && trg.s != 44 && !trg.dones && trg.s != 33 && trg.s != 37 && !trg.weap && !trg.goner && trg.s != 96 && trg.s != 6589 && trg.s != 9616 && trg.s != 49969 && !trg.efly && (trg.s != _root.fixChalaFly && trg.s != 85 || justnow < 10))
{
++shutdoor;
} // end if
if (trg.d._currentframe == 4 && !trg.apf && !trg.dones)
{
trg.xbew = trg.xbew * 0.450000;
trg.ybew = trg.ybew * 0.450000;
trgnextd();
if (trg.s == 10)
{
if (trg.gonuts)
{
trg.d.d.h.gotoAndStop(2);
} // end if
} // end if
if (trg.s == 30)
{
f1 = trg.hp / hps[trg.s];
trg.d.d.h.d.gotoAndStop(Math.max(1, 14 - Math.round(f1 * 13)));
} // end if
if (trg.s == 11)
{
if (!trg.bnuts)
{
trg.d.bb._visible = false;
trg.d.d.bb._visible = false;
} // end if
} // end if
} // end if
if (trg.s == 30)
{
trg.xp = trg.xpp;
trg.yp = trg.ypp;
} // end if
if ((trg.d._currentframe != 4 || trg.apf) && !trg.dones)
{
if (freez > 0 || trg.frezz > 0 || trg.s < 4 && sloww)
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trg.free = true;
continue;
} // end if
if (trg.flyai)
{
switch (trg.s)
{
case 14:
{
if (trgnextd(trg.d.hx.d))
{
trg.d.gotoAndStop(1);
} // end if
if (!ups[9])
{
firemode(200, 4);
} // end if
if (trg.fire > 0)
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trg.xbb = trg.xbb * 0.700000;
trg.ybb = trg.ybb * 0.700000;
} // end if
}
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 = trg.xbew + xenf * f1;
trg.ybew = trg.ybew + yenf * f1;
} // end if
}
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.500000;
f2 = 0.200000 / (2 + Math.abs(f3 - enf));
trg.xbew = trg.xbew - xenf * f1;
trg.ybew = trg.ybew - yenf * f1;
trg.xbew = trg.xbew + yenf * f2;
trg.ybew = trg.ybew - xenf * f2;
trg.xbew = trg.xbew + duke.xbew * 0.400000;
trg.ybew = trg.ybew + duke.ybew * 0.400000;
} // end if
} // end if
} // end else if
}
case 13:
case 61:
{
trg.outway = fra % 2 == 0;
if (fra % 3 == 0)
{
if (ups[9] && trg.s == 18 && !trg.duke)
{
trg.s = 13;
attach(trg, 13);
trg.ggh = true;
} // end if
if (ups[9] && trg.s == 80)
{
trg.s = 13;
} // end if
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 = levz[f3];
if (v1 > 1 && v1 < 1.800000)
{
trg.goshit = f3;
} // end if
} // end if
} // end if
} // end else if
if (trg.goshit > 0 && fra % 2 == 0)
{
outgrid(trg.goshit);
v1 = 30;
if (trg.s == 18 || trg.s == 61 || trg.s == 80 || ups[9])
{
xenf = player.xp;
yenf = player.yp;
v1 = 25;
} // end if
if (trg.s == 61 || trg.d._xscale > 110)
{
v1 = 15;
} // end if
xenf = trg.xp - xenf;
yenf = (trg.yp - yenf) / 2;
enf = enfget(xenf, yenf);
if (enf > v1)
{
v1 = Math.min(0.600000, (enf - v1) * 0.040000) * 2;
}
else
{
if (random(1000) == 0)
{
if (killshit(trg.goshit))
{
trg.s = 14;
trg.alter = 1;
if (random(3) == 0)
{
trg.alter = 2;
} // end if
attach(trg, 14);
} // end if
} // end if
v1 = 0;
} // end else if
enf = v1 / enf;
if (trg.s != 18 && trg.s != 61 && trg.s != 80)
{
trg.xbb = trg.xbb * 0.700000;
trg.ybb = trg.ybb * 0.700000;
} // end if
if (trg.die)
{
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
} // end if
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
} // end if
if (trg.s == 18)
{
f0 = 0.300000;
}
else
{
f0 = 0.170000;
} // end else if
if (fra % 4 == 1)
{
trg.xbb = trg.xbb + crand(f0 * 2);
trg.ybb = trg.ybb + crand();
trg.xbb = trg.xbb * 0.800000;
trg.ybb = trg.ybb * 0.800000;
f1 = levz[ingrid(trg.xp, trg.yp)];
f1 = f1 >= 1 && f1 != 3;
f2 = levz[ingrid(trg.xp + trg.xbb * 16, trg.yp + trg.ybb * 16)];
f2 = f2 >= 1 && f2 != 3;
if ((f1 || f2) && !(f1 && f2))
{
trg.xbb = trg.xbb * 0.500000;
trg.ybb = trg.ybb * 0.500000;
}
else if (f1 && !f2)
{
trg.xbb = trg.xbb * 1.300000;
trg.ybb = trg.ybb * 1.300000;
} // end if
} // end else if
if (trg.ph = fra % 3 == 2)
{
if (!trg.duke)
{
v1 = 0.060000;
if (trg.yp < 230)
{
trg.ybb = trg.ybb + v1;
} // end if
if (trg.yp > 420)
{
trg.ybb = trg.ybb - v1;
} // end if
if (trg.xp > 540)
{
trg.xbb = trg.xbb - v1;
} // end if
if (trg.xp < 80)
{
trg.xbb = trg.xbb + v1;
} // end if
} // end if
trg.xbew = trg.xbew + trg.xbb * 2;
trg.ybew = trg.ybew + trg.ybb * 2;
trg.xbew = trg.xbew * 0.600000;
trg.ybew = trg.ybew * 0.600000;
} // end if
break;
}
} // End of switch
continue;
} // end if
smarts();
} // end if
} // end of for...in
if (rply)
{
player = rply;
rply = undefined;
} // end if
tip(1);
if (helps >= 1)
{
mhelps = Math.max(helps, mhelps);
if (sati.pow == 1 || sati.pow == 2)
{
--mhelps;
help = help - 1;
} // end if
help = help / mhelps;
_root.hud.bar.bar._xscale = 100 * help;
_root.hud.bar._visible = true;
if (mins)
{
_root.hud.bar.gotoAndStop(3);
_root.hud.bar.bar._xscale = _root.hud.bar.bar._xscale * 0.560000;
}
else
{
_root.hud.bar.gotoAndStop(1);
} // end else if
}
else
{
_root.hud.bar.gotoAndStop(2);
_root.hud.bar._visible = false;
} // end else if
} // End of the function
function green(f11, f12)
{
trg2 = bossfire(1, !f12, 10);
trg2.bomb = true;
trg2.d._xscale = trg2.d._yscale = 160;
if (trg.s != 43)
{
trg2.xbew = trg2.xbew * 0.550000;
trg2.ybew = trg2.ybew * 0.550000;
} // end if
if (f12)
{
f1 = Math.random() + 0.600000;
trg2.xbew = trg2.xbew * f1;
trg2.ybew = trg2.ybew * f1;
} // end if
trg2.fd = trg2.fd - 0.300000;
trg2.dm = trg2.dm * 0.700000;
trg2.dm = trg2.dm - 13;
if (trg.s == 87)
{
trg2.fd = trg2.fd - 0.300000;
trg2.dm = trg2.dm + 10;
} // end if
if (trg.s == 64 || trg.s == 43 || trg.s == 82)
{
trg2.xp = trg2.xp - trg.d._xscale * 0.200000;
trg2.pois = true;
trg2.spl = 30;
if (trg.d._currentframe < 7 || trg.s == 82)
{
trg2.dy = trg2.dy - 27;
} // end if
} // end if
if (trg.s == 82 || trg.s == 78)
{
trg2.pois = 4;
trg2.spl = 0;
}
else if (f11 == 2)
{
colorit(trg2, 0.200000, 0.200000, 0.200000, 0, 0, 0);
}
else if (!f11)
{
colorit(trg2, 0.400000, 2, 0.500000, 0, 0, 0);
} // end else if
if (trg.s == 62)
{
trg2.dy = trg2.dy - 40;
} // end if
return (trg2);
} // End of the function
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 < 8 && random(ashut) == 0))
{
trg.d.gotoAndStop(5);
}
else
{
trg.d.gotoAndStop(2);
} // end else if
}
else
{
trg.d.d.gotoAndStop(1);
} // end else if
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);
} // end if
} // end else if
} // end else if
} // End of the function
function boil(f1)
{
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)
{
if (trg.s == 88 || trg.s == 30)
{
_root.soundy("boil hatch.wav");
} // end if
if (bigone)
{
f8 = 94;
}
else
{
f8 = 85;
} // end else if
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.500000 + trg.xp * 0.500000, player.yp * 0.500000 + trg.yp * 0.500000, 70, f8);
} // end else if
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.040000;
trg2.f1 = trg2.xbew = xenf * f1;
trg2.f2 = trg2.ybew = yenf * f1;
trg2.fra = 0;
trg2.d.gotoAndStop(5);
trg2.apf = false;
trg2.df = -8;
trg2.bh = false;
trg.fire = -100;
}
else if (trg.alter == 2)
{
trg.fire = -50;
green(false, f1);
_root.soundy("heartout.wav", 70);
}
else
{
bossfire(3 + random(2), f1, 10);
} // end else if
} // End of the function
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);
} // end if
} // end if
} // end of for...in
} // End of the function
function spih()
{
var _loc1 = spaw(player.xp, player.yp, 50, 29.300000);
_loc1.fra = 0;
_loc1.xpp = _loc1.xp;
_loc1.ypp = _loc1.yp;
_loc1.xp = trg.xp;
_loc1.yp = trg.yp;
_loc1.d.gotoAndStop(2);
_loc1.d.d.gotoAndStop(5);
tgr2.apf = true;
_loc1.f1 = 100;
} // End of the function
function bawssmart()
{
switch (trg.s)
{
case 32:
{
if (fra % 3 == 0)
{
splater(trg.xp, trg.yp + 8, 1 + random(10), Math.random() * 0.500000 + 0.200000);
} // end if
markhere(trg);
if (!trg.gogo)
{
randrunx(0.750000);
trg.xbew = trg.xbew * 0.850000;
trg.ybew = trg.ybew * 0.800000;
if ((fra + trg.e) % 7 == 0)
{
trg.gogo = chaa();
} // end if
}
else if (trg.gh)
{
trg.gogo = false;
trg.xpp = trg.ypp = undefined;
}
else
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trg.xbew = trg.xbew + trg.xpp;
trg.ybew = trg.ybew + trg.ypp;
outgrid(trg.til);
if (Math.abs(trg.xbew) > Math.abs(trg.ybew))
{
trg.yp = trg.yp * 0.900000;
trg.yp = trg.yp + yenf * 0.100000;
}
else
{
trg.xp = trg.xp * 0.900000;
trg.xp = trg.xp + xenf * 0.100000;
} // end else if
} // end else if
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;
} // end else if
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);
} // end if
} // end else if
break;
}
case 88:
{
trg.xbew = trg.xbew * 0.750000;
trg.ybew = trg.ybew * 0.750000;
if (trg.d._currentframe < 3)
{
randrun();
walkframe(2);
sideflip(trg.xbew);
boiler(true);
}
else
{
trgnextd();
boiler(false, true);
} // end else if
break;
}
case 30:
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
f1 = trg.hp / hps[trg.s];
if (f1 >= 1)
{
trgnextd();
boiler(trg.d._currentframe == 1, trg.d._currentframe == 5);
}
else
{
trg.fire = 0;
trg.hp = trg.hp + trg.hppp * 1.200000;
if (trg.boss)
{
trg.hppp = trg.hppp + 0.010000;
}
else
{
trg.hppp = trg.hppp + 0.020000;
} // end else if
if (trg.alter == 3)
{
trg.hppp = trg.hppp * 0.800000;
} // end if
trg.hppp = trg.hppp * 0.900000;
trg.d.gotoAndStop(1);
trg.d.hx.gotoAndStop(trg.alter);
trg.d.hx.d.gotoAndStop(Math.max(1, 14 - Math.round(f1 * 13)));
} // end else if
break;
}
case 91:
{
if (trg.hpp == undefined)
{
trg.hpp = 0;
trg.hppp = 0;
} // end if
trg.xbew = trg.xbew * 0.770000;
trg.ybew = trg.ybew * 0.770000;
if (fra % 5 == 0)
{
v1 = (1 - trg.hp / trg.mhp) * 10;
if (trg.hpp < v1)
{
++trg.hpp;
trg.d.b.d._yscale = trg.d.b.d._xscale = 100 - v1 * 4;
trg.d.b.sh._yscale = trg.d.b.d._yscale + 30;
trg.d.b.sh._xscale = trg.d.b.d._yscale * 2.500000 + 50;
sideflip(player.xp - trg.xp);
trg.d.d.play();
if (trg.d.d._currentframe == 1)
{
_root.soundy("Wheezy_Cough_" + random(3) + ".mp", 100);
} // end if
} // end if
}
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 = trg.hppp + (1 + Math.random());
if (ashut < 7)
{
++ashut;
xenf = (player.xp - trg.xp) * 0.100000 + crand(10);
yenf = (player.yp - trg.yp) * 0.100000 + crand(10);
create(trg.xp, trg.yp, 0, xenf, yenf, 0, 14);
} // end if
} // end while
} // end else if
if (random(100) == 0)
{
xenf = crand(10);
yenf = crand(10);
if (ashut < 10)
{
create(trg.xp, trg.yp, 0, xenf, yenf, 0, 18);
} // end if
} // end if
}
case 25:
{
if (trg.duke)
{
++dukes;
} // end if
if (trg.alt)
{
trg.nobomb = true;
trg.d.gotoAndStop(9);
splater(trg.xp, trg.yp, 1 + random(10), Math.random() * 0.300000 + 0.300000);
if (helpss <= 0 || slug == undefined)
{
trg.dones = true;
} // end if
} // end if
if (trg.alter == 2)
{
trg.nobomb = true;
} // end if
if (ups[9])
{
f1 = 0.250000;
}
else
{
f1 = 0.450000;
} // end else if
if (trg.ybew > 0)
{
f2 = f1;
}
else
{
f2 = -f1;
} // end else if
if (trg.xbew > 0)
{
f1 = f1;
}
else
{
f1 = -f1;
} // end else if
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
trg.xbew = trg.xbew + f1;
trg.ybew = trg.ybew + f2;
break;
}
case 102:
{
if (trris + 45 + random(100) <= fra && random(20) == 0 && trg.state == 0)
{
trris = fra;
_root.soundy("Scared_Whimper_" + random(3) + ".mp", 100);
} // end if
isaaaac = true;
f1 = Math.round((trg.mhp - trg.hp) / trg.mhp * 3 - 0.500000);
if (trgnextd(undefined, true))
{
if (trg.d._currentframe == 4)
{
trg.d.gotoAndStop(7);
}
else
{
trg.d.gotoAndStop(1);
} // end if
} // end else if
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]);
} // end if
} // end else if
trg.xp = trg.xpp;
trg.yp = trg.ypp;
trg.xbew = trg.xbew * 0.600000;
trg.ybew = trg.ybew * 0.600000;
if (trg.hurt && trg.state != 2)
{
trg.hurt = false;
bossfire(1, true);
} // end if
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;
} // end if
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 < 5)
{
trg.fire = 120;
for (i = 0; i < 2; i++)
{
spaw(trg.xp, trg.yp, 100, 38.100000);
} // end of for
} // end if
} // end if
} // end else if
switch (trg.d._currentframe)
{
case 7:
{
if (trg.d.d._currentframe == 17)
{
_root.soundy("superholy.wav");
} // end if
break;
}
case 10:
{
if (trg.d.d._currentframe == 20)
{
_root.soundy("Holy.mp");
} // end if
break;
}
case 1:
case 5:
case 8:
{
if (random(60) == 0)
{
f2 = [2, 6, 9];
trg.fire = 40;
trg.d.gotoAndStop(f2[trg.state]);
} // end if
break;
}
case 2:
{
if (trg.d.d._currentframe == 3)
{
cirf(trg.xp, trg.yp + 20, 10, 12);
_root.soundy("thumbs down.wav", 50);
} // end if
break;
}
case 6:
{
if (trg.d.d._currentframe == 6)
{
cirf(trg.xp, trg.yp, 10, trg.d._currentframe * 0.666000);
_root.soundy("thumbsup.wav");
} // end if
break;
}
case 9:
{
if (trg.d.d._currentframe == 17)
{
_root.soundy("Powerup2.mp3");
} // end if
if (trg.d.d._currentframe == 19)
{
cirf(trg.xp, trg.yp, 10, trg.d._currentframe * 0.666000);
} // end if
break;
}
} // End of switch
break;
}
case 101:
{
if (altboss)
{
spidboss = true;
} // end if
if (trgnextd(undefined, true))
{
f4 = 3;
if (altboss)
{
--f4;
} // end if
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);
} // end else if
}
else if (trg.d._currentframe == 4)
{
trg.d.gotoAndStop(7);
}
else
{
trg.d.gotoAndStop(1);
} // end else if
} // end else if
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 > 11 && trg.d.d._currentframe < 27) && (trg.d._currentframe != 6 || trg.d.d._currentframe < 6 && trg.d.d._currentframe > 73);
_root.tex = trg.bh;
if (trg.d._currentframe == 5 && trg.d.d._currentframe == 9 || trg.d._currentframe == 7 && trg.d.d._currentframe == 9)
{
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);
} // end else if
if (trg.d._currentframe == 5)
{
quadf(trg.xp, trg.yp, 10, true);
} // end if
if (altboss)
{
trg2 = parc("bloo", trg.xp, trg.yp);
trg2._xscale = trg2._xscale * 2;
trg2._yscale = trg2._xscale;
colorit(trg2, 0, 0, 0, 255, 255, 255);
} // end if
} // end if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
switch (trg.d._currentframe)
{
case 3:
{
if (trg.d.d._currentframe == 18)
{
if (altboss)
{
spih();
} // end if
} // end if
if (trg.d.d._currentframe == 20)
{
trg.yp = trg.yp + 15;
if (!altboss)
{
boil();
boil();
if (random(2) == 0)
{
boil();
} // end if
} // end if
_root.soundy("Boss_Spit_Blob_Barf.mp", 100);
trg.yp = trg.yp - 15;
} // end if
break;
}
case 1:
{
if (random(20) == 0)
{
f2 = [4, 6, 6];
if (ashut < 4)
{
f2.push(3, 3);
} // end if
f1 = f2[random(f2.length)];
trg.stomps = 0;
trg.d.gotoAndStop(f1);
} // end if
break;
}
case 6:
{
f1 = trg.d.d._currentframe;
f2 = f1 - 16;
f3 = 10;
f2 = f2 % f3;
if (f2 == 0 && f1 < f3 * 4)
{
if (trg.stomps != 3 || !altboss)
{
trg2 = spaw(trg.xp, trg.yp, random(400), 101);
trg2.goner = true;
trg2.d.gotoAndStop(7);
trg2.stomps = trg.stomps++;
} // end if
} // end if
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 = trg2._xscale * (1 + f1 * 0.050000);
trg2._yscale = trg2._xscale;
colorit(trg2, 0, 0, 0, 255, 255, 255);
} // end if
} // end if
if (trg.d.d._currentframe == 1)
{
trg.xp = player.xp;
trg.yp = trg.ypp;
sizes[101] = 30;
} // end if
break;
}
case 7:
{
if (trg.d.d._currentframe == 1)
{
trg.xp = player.xp;
trg.yp = player.yp;
sizes[101] = 15;
} // end if
break;
}
} // End of switch
break;
}
case 100:
{
spidboss = true;
trg.outway = true;
trgnextd();
if (trg.specoz == 20 && fra % 2 == 0 && (trg.d.d._currentframe != 9 || trg.d._currentframe != 7))
{
trgnextd();
} // end if
f1 = 0.800000;
if (f1 != 1)
{
trg.xbew = trg.xbew * f1;
trg.ybew = trg.ybew * f1;
} // end if
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);
} // end if
if (trg.d.d._currentframe > 5 && trg.d.d._currentframe < 23)
{
trg.bh = false;
trg.xbew = trg.xbew + trg.xpp;
trg.ybew = trg.ybew + trg.ypp;
} // end if
if (trg.d.d._currentframe == 23)
{
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 100);
braz();
} // end if
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
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 = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
if (trg.specoz == 20)
{
} // end if
trg.xpp = -xenf * enf;
trg.ypp = -yenf * enf;
trg.runs = 0;
}
else
{
if (altboss)
{
f2 = [2, 6];
if (ashut < 6)
{
f2.push(7);
} // end if
}
else
{
f2 = [2, 6, 7];
} // end else if
f1 = f2[random(f2.length)];
} // end else if
trg.d.gotoAndStop(f1);
break;
}
case 7:
{
if (trg.d.d._currentframe == 3)
{
_root.soundy("Wheezy_Cough_" + random(3) + ".mp", 160);
} // end if
if (trg.d.d._currentframe == 9)
{
if (altboss)
{
if (random(3) == 0)
{
spih();
}
else if (random(2) == 0 && ashut < 5)
{
boil();
boil();
}
else
{
bigone = true;
boil();
bigone = undefined;
} // end else if
}
else if (trg.specoz == 20)
{
enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000);
enf = -13 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
trg2 = create(trg.xp, trg.yp, 0, xenf + yenf * 0.400000, yenf + xenf * 0.400000, 0, 18);
trg3 = create(trg.xp, trg.yp, 0, xenf - yenf * 0.400000, yenf - xenf * 0.400000, 0, 18);
trg2.fra = trg2.fra - 20;
trg2.die = true;
trg2.pbh = true;
trg3.fra = trg3.fra - 20;
trg3.die = true;
trg3.pbh = true;
}
else if (trg.specoz < 20)
{
cirf(trg.xp, trg.yp - 15, 8, 6);
}
else
{
boil();
} // end else if
} // end else if
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 = trg2._xscale * (1 + f1 * 0.200000);
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);
} // end else if
if (fra % 2 == 0)
{
_root.soundy("boss2_bubbles" + random(2) + ".wav", 150);
} // end if
} // end if
if (altboss)
{
if (trg.d.d._currentframe == 18)
{
quadf(trg.xp, trg.yp, 10, true);
} // end if
}
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.300000;
} // end else if
trg.trg2 = create(trg.xp, trg.yp + 30, 0, 0, 0, 0, f1);
if (f1 != 94)
{
++boils;
} // end if
trg.nextjump = true;
trg.trg2.hp = 10;
} // end if
} // end if
if (trg.d.d._currentframe == 25)
{
trg.trg2.d.d.hx.gotoAndStop(3);
trg.trg2.d.d.hx.d.gotoAndStop(8);
} // end if
} // end else if
break;
}
} // End of switch
break;
}
case 99:
{
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.400000) * trg._xscale / 100);
} // end if
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();
} // end else if
}
else if (trg.d._currentframe == 7)
{
trg.d.nextFrame();
}
else
{
trg.d.gotoAndStop(1);
} // end else if
} // end else if
f1 = 1;
if (trg.d._currentframe < 7)
{
f1 = 0.800000;
}
else if (fra % 5 == 0)
{
f1 = 0.970000;
} // end else if
if (f1 != 1)
{
trg.xbew = trg.xbew * f1;
trg.ybew = trg.ybew * f1;
} // end if
switch (trg.d._currentframe)
{
case 7:
{
if (trg.d.d._currentframe == 3)
{
_root.soundy("Monster_Roar_1.mp", 100);
} // end if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trg.xbew = trg.xbew + trg.xpp;
trg.ybew = 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 = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
if (trg.specoz == 7)
{
enf = enf * 0.700000;
} // end if
trg.xpp = -xenf * enf;
trg.ypp = -yenf * enf;
trg.runs = 0;
}
else
{
f2 = [2, 6];
if (ashut < 6)
{
f2.push(5);
} // end if
if (trg.specoz == 21)
{
f2.splice(1, 1);
} // end if
f1 = f2[random(f2.length)];
if (trg.specoz == 7)
{
f1 = 1;
} // end if
} // end else if
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 = f1 + 0.100000;
} // end if
trg2 = create(trg.xp - 30, trg.yp - 30, 0, 0, -10, 0, f1);
trg2.fra = 0;
trg2.outway = true;
} // end if
break;
}
case 6:
{
if (trg.d.d._currentframe == 7)
{
_root.soundy("Boss_Lite_Roar.mp", 100);
} // end if
if (trg.d.d._currentframe == 18)
{
quadf(trg.xp, trg.yp, 10, true);
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 100);
} // end if
break;
}
} // End of switch
break;
}
} // End of switch
} // End of the function
function smartsx()
{
bawssmart();
switch (trg.s)
{
case 94:
case 85:
{
bord();
f1 = trg.d._currentframe == 5;
trg.bh = !f1;
trg.ggh = f1;
if (f1)
{
trg.xbew = trg.f1;
trg.ybew = trg.f2;
trg.df = trg.df + 0.700000;
trg.d.d._y = trg.d.d._y + trg.df;
if (trg.d.d._y > -13)
{
trg.d.gotoAndStop(1);
trg.xp = trg.xpp;
trg.yp = trg.ypp;
trg.xpp = undefined;
} // end if
}
else
{
randrunc();
} // end else if
break;
}
case 96:
{
trg2 = trg.trg2;
if (trg2 == undefined || trg2.dones)
{
trg.s = 18;
trg.trg2 = undefined;
trg.hp = trg.mhp = 20;
trg.flyai = true;
trg.xbb = trg.ybb = 0;
trg.imba = false;
attach(trg, 18);
trg.d._xscale = trg.d._yscale = 118;
}
else if (trg2.xp > 10)
{
if (trg2.s == 90 || trg2.shit)
{
f11 = -fra * 0.020000 * 3.141593 + trg.wtf / 2;
if (trg.wtf % 2 == 0)
{
f11 = f11 * -1;
} // end if
trg.xpp = trg2.xp + Math.sin(f11) * 60;
trg.ypp = trg2.yp + Math.cos(f11) * 50;
}
else
{
if (trg.wtf % 2 == 0)
{
f11 = f11 * -1;
} // end if
f11 = fra * 0.040000 * 3.141593 + trg.wtf / 2;
trg.xpp = trg2.xp + Math.sin(f11) * 25;
trg.ypp = trg2.yp + Math.cos(f11) * 20;
} // end else if
trg.imba = true;
trg.xp = trg.xp + trg.xpp;
trg.yp = trg.yp + trg.ypp;
trg.xp = trg.xp * 0.500000;
trg.yp = trg.yp * 0.500000;
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
} // end else if
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);
} // end if
}
case 77:
{
f1 = trg.s - 74;
f2 = [5, 17, 16, 15];
f3 = [1, 7, 10, 13];
f2 = f2[f1];
f3 = f3[f1];
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
if (fra - trg.fra < 10)
{
trg.d.gotoAndStop(f2);
} // end if
if (trg.d._currentframe == f2)
{
trg.xbew = trg.xbew * 0.450000;
trg.ybew = trg.ybew * 0.450000;
} // end if
trgnextd();
if (trg.d._currentframe == 1)
{
trg.d.gotoAndStop(f3);
} // end if
if (trg.d._currentframe == 13 && trg.d.d._currentframe == 17)
{
if (trriss + 5 + random(20) <= fra)
{
trriss = fra;
_root.soundy("gooattach0" + random(2) + ".wav", 40 + random(30));
} // end if
} // end if
if (trg.d._currentframe == 10 && trg.d.d._currentframe == 18)
{
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 60);
} // end if
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);
} // end if
if (trg.d._currentframe == 3 && trg.d.d._currentframe == 24)
{
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 100);
} // end if
if (trg.d._currentframe == 5 && trg.d.d._currentframe == 22)
{
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 120);
} // end if
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;
} // end else if
}
else
{
randrun();
} // end else if
if (trg.d.d._currentframe > 19)
{
trg.xbew = trg.xbew * 0.600000;
trg.ybew = trg.ybew * 0.600000;
} // end if
break;
}
case 11:
{
if (trg.d.d._currentframe == 21)
{
quadf(trg.xp, trg.yp, 8);
_root.soundy("heartout.wav");
} // end if
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.400000;
}
else
{
f1 = 1.500000;
} // end else if
}
else
{
f1 = 1.500000;
xenf = crand(10);
yenf = crand();
enf = 10;
} // end else if
f1 = f1 / enf;
trg.xpp = -xenf * f1;
trg.ypp = -yenf * f1;
} // end if
}
case 8:
{
if (trg.d.d._currentframe < 23 && trg.d.d._currentframe > 4)
{
if (trg.xpp != undefined)
{
trg.xbew = trg.xbew + trg.xpp;
trg.ybew = trg.ybew + trg.ypp;
} // end if
}
else
{
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
} // end else if
if (trg.d.d._currentframe == 23 && trg.d._currentframe == 8)
{
quadf(trg.xp, trg.yp, 10, random(2) * 2);
} // end if
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.400000;
}
else
{
trg.d.gotoAndStop(2);
f1 = 1.500000;
} // end else if
}
else
{
f1 = 3;
trg.d.gotoAndStop(4);
} // end else if
f1 = f1 / enf;
trg.xpp = -xenf * f1;
trg.ypp = -yenf * f1;
} // end if
break;
}
case 5:
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);
} // end if
} // end else if
}
case 2:
{
if (trg.d.d._currentframe < 23 && trg.d.d._currentframe > 4)
{
if (trg.xpp != undefined)
{
trg.xbew = trg.xbew + trg.xpp;
trg.ybew = trg.ybew + trg.ypp;
} // end if
}
else
{
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
} // end else if
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;
} // end else if
f1 = crand(f1);
f2 = crand();
f3 = 0.300000;
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;
trg.dones = true;
trg.dfr = true;
} // end if
break;
}
case 13:
{
randrun();
if (trg.d.d._currentframe == 1)
{
trg.xpp = undefined;
} // end if
if (trg.d.d._currentframe > 19)
{
trg.xbew = trg.xbew * 0.600000;
trg.ybew = trg.ybew * 0.600000;
} // end if
break;
}
} // End of switch
break;
}
case 73:
{
trg.outway = true;
}
case 72:
case 71:
{
if (trg.specoz == 15)
{
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
} // end if
f1 = trg.s - 71;
if (fra - trg.fra < 10)
{
trg.d.gotoAndStop(4 + f1 * 3);
} // end if
if (trg.d._currentframe == 4 + f1 * 3)
{
trgnextd();
trg.xbew = trg.xbew * 0.450000;
trg.ybew = trg.ybew * 0.450000;
} // end if
if (trg.d._currentframe != 4 + f1 * 3)
{
trg.d.gotoAndStop(2 + f1 * 3);
f2 = 0.200000 + f1 * 0.180000;
if (trg.xbew > 0)
{
xenf = f2;
}
else
{
xenf = -f2;
} // end else if
if (trg.ybew > 0)
{
yenf = f2;
}
else
{
yenf = -f2;
} // end else if
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
trg.xbew = trg.xbew + xenf;
trg.ybew = trg.ybew + yenf;
} // end if
break;
}
case 57:
{
if (trg.d._currentframe == 5)
{
if (trg.d.d._currentframe == 26)
{
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 80);
} // end if
} // end if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trgnextd();
switch (trg.d._currentframe)
{
case 1:
case 2:
{
randrun();
if (random(30) == 0)
{
trg.d.gotoAndStop(5);
} // end if
break;
}
case 5:
{
if (trg.d.d._currentframe == 30)
{
quadf(trg.xp, trg.yp, 10, true);
} // end if
break;
}
} // End of switch
sideflip(100);
break;
}
case 43:
case 20:
{
if (altboss && trg.s == 43)
{
blackout = 2;
} // end if
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 && fra % 2 == 0 && trg.specoz == 14;
if (trg.weap)
{
trgnextd();
if (whuf)
{
trgnextd();
} // end if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
switch (trg.d._currentframe)
{
case 2:
{
if (trg.d.d._currentframe == 16)
{
trg.done = true;
} // end if
break;
}
case 3:
{
if (!trg.bh)
{
trg2 = trg.trg2;
if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 1000) > 0)
{
trg.xbew = trg.xbew - xenf * 0.010000;
trg.ybew = trg.ybew - yenf * 0.010000;
} // end if
} // end if
if (trg.d.d._currentframe == 32)
{
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 80);
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);
} // end if
} // end if
} // end of for...in
}
else if (trg.d.d._currentframe == 72)
{
trg.d.gotoAndStop(2);
} // end else if
break;
}
} // End of switch
}
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);
} // end if
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
switch (trg.mode)
{
case 10:
{
trg.d.gotoAndStop(7);
if (whuf)
{
trgnextd();
} // end if
trgnextd();
if (trg.d._currentframe == 1)
{
trg.mode = undefined;
} // end if
break;
}
case 1:
{
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;
} // end else if
}
else
{
trg.mode = random(3);
if (trg.specoz == 2 && trg.mode == 2)
{
trg.mode = 1;
} // end if
} // end else if
if (trg.mode == 2)
{
_root.soundy("Boss_Lite_Roar.mp", 100);
} // end if
if (trg.mode == 0)
{
_root.soundy("Boss_Lite_Roar.mp", 50);
} // end if
if (trg.mode == 1)
{
sideflip(trg.xp - player.xp);
trg.xpp = trg.xp - player.xp;
} // end if
} // end else if
break;
}
case 0:
{
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);
} // end else if
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);
} // end if
trg.modedone = true;
}
else
{
trg.ypp = 0;
trg.xpp = -trg.d._xscale;
lasershow(trg);
trg.modedone = true;
} // end if
} // end else if
}
else if (trg.d.d._currentframe > 23 && !trg.modedone)
{
_root.soundy("Boss_Spit_Blob_Barf.mp", 100);
bossfire(13, true);
trg.modedone = true;
} // end else if
} // end else if
break;
}
case 2:
{
trg.d.gotoAndStop(6);
trgnextd();
if (whuf)
{
trgnextd();
} // end if
if (trg.xpp == undefined)
{
f1 = player.xp;
f2 = player.yp;
f1 = ingrid(f1, f2);
if (levz[f1] < 1)
{
outgrid(f1);
trg.xpp = xenf;
trg.ypp = yenf;
} // end if
} // end if
if (trg.d.d._currentframe == 23)
{
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 50);
if (trg.s == 43)
{
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);
} // end if
} // end if
} // end of for...in
} // end if
} // end if
if (trg.xpp != undefined && trg.d._currentframe == 1)
{
if (random(2) == 0)
{
trg.mode = trg.xpp = undefined;
}
else
{
_root.soundy("Boss_Lite_Roar.mp", 40);
trg.xpp = undefined;
} // end else if
}
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.200000 / enf;
if (trg.specoz == 14)
{
enf = enf * 1.500000;
} // end if
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
sideflip(xenf);
}
else
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
} // end else if
break;
}
case 3:
{
trg.d.gotoAndStop(2);
trgnextd();
if (whuf)
{
trgnextd();
} // end if
if (trg.d._currentframe == 1)
{
trg.d.gotoAndStop(3);
trg.mode = 3;
trg.modedone = false;
trg.xpp = undefined;
} // end if
break;
}
default:
{
if (whuf)
{
trgnextd();
} // end if
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;
} // end if
} // end else if
if (trg.xpp == undefined)
{
f1 = player.xp;
f2 = player.yp;
f1 = ingrid(f1, f2);
if (levz[f1] < 1)
{
outgrid(f1);
trg.xpp = xenf;
trg.ypp = yenf;
} // end if
} // end if
if (trg.d.d._currentframe == 33 || trg.d.d._currentframe == 34 && whuf)
{
f3 = 5;
if (trg.s == 43)
{
f1 = trg.xp;
f2 = trg.yp;
for (a in ball)
{
trg2 = ball[a];
if (trg2.flyai)
{
if (enfcheck(f1, f2, trg2.xp, trg2.yp, 70))
{
hurt(trg2, 30);
} // end if
} // end if
} // end of for...in
if (bossrep)
{
if (altboss)
{
if (ashut < 3)
{
trg2 = [];
trg2[0] = create(f1, f2, 0, f3, 0, 0, 15);
trg2[0].hp = trg2[0].hp - 20;
if (ashut < 2)
{
trg2[1] = create(f1, f2, 0, -f3, 0, 0, 15);
trg2[1].hp = trg2[1].hp - 20;
_root.soundy("summonsound.wav", 150);
}
else
{
_root.soundy("summonsound.wav", 100);
} // end if
} // end else if
}
else
{
trg2 = [];
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);
} // end else if
} // end else if
}
else if (altboss)
{
trg2 = parc("bloo", trg.xp, trg.yp);
trg2._xscale = trg2._xscale * 3;
trg2._yscale = trg2._xscale;
trg2.perm = true;
colorit(trg2, 0, 0, 0, 0, 0, 0);
}
else
{
quadf(trg.xp, trg.yp, 10, true);
} // end else if
}
else
{
bossfire(18);
} // end else if
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 100);
} // end if
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.300000 + enf * 0.006000) / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
}
else
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
} // end else if
break;
}
} // End of switch
} // end else if
break;
}
case 98:
case 92:
{
if (trg.d._currentframe < 3)
{
angstfind();
walkframe(2);
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
if (fra % 3 == 0)
{
if (enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 100))
{
trg.d.gotoAndStop(5);
} // end if
} // end if
}
else
{
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
trgnextd();
if (trg.s == 98)
{
if (trg.d.d._currentframe == 19 && trg.d._currentframe == 5)
{
f1 = true;
if (trg.specoz)
{
f1 = false;
} // end if
quadf(trg.xp, trg.yp, 8, f1);
splater(trg.xp, trg.yp + 12, 1 + random(10), Math.random() + 0.600000);
splater(trg.xp + crand(10), trg.yp + 12 + crand(10), 1 + random(10), Math.random() * 0.500000 + 0.600000);
} // end if
}
else if (trg.d.d._currentframe == 13 && trg.d._currentframe == 5)
{
quadf(trg.xp, trg.yp, 8);
} // end else if
} // end else if
break;
}
case 93:
{
if (!trg.finder)
{
trg.finder = true;
trg.trg2 = hearts[trg.trg2];
} // end if
}
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;
} // end if
}
else
{
trg.dones = true;
} // end if
} // end else if
if (trg.s == 97)
{
if (!altboss)
{
f1 = trg.trg2.hp;
if (f1 != trg.mhp && f1 < trg.hp)
{
trg.hp = f1;
f2 = true;
} // end if
} // end if
if (f2 && random(2) == 0)
{
chaxy();
enf = enfcheck(f3, f4, f1, f2, 1000);
chaxx();
trg.gogo = 2;
f1 = 1.600000;
trg.xpp = trg.xpp * f1;
trg.ypp = trg.ypp * f1;
} // end if
} // end if
trg.ggh = fra % 2 == 0;
markhere(trg);
if (Math.abs(trg.xbeww) > Math.abs(trg.ybeww))
{
if (trg.xbeww > 0)
{
f1 = 7;
}
else
{
f1 = 6;
} // end else if
}
else if (trg.ybeww > 0)
{
f1 = 1;
}
else
{
f1 = 5;
} // end else if
trg.xbeww = trg.xbeww + trg.xbew;
trg.ybeww = trg.ybeww + trg.ybew;
trg.xbeww = trg.xbeww * 0.350000;
trg.ybeww = trg.ybeww * 0.350000;
if (trg.xpp != undefined)
{
trg.d.gotoAndStop(f1);
} // end if
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");
} // end if
trg.xpp = trg.xpp * 2;
trg.ypp = trg.ypp * 2;
trg.gogo = true;
} // end if
} // end if
} // end if
if (!trg.gogo)
{
if (altboss && trg.s == 97)
{
randrunx(1.500000);
}
else
{
randrunx(0.850000);
} // end else if
trg.xbew = trg.xbew * 0.850000;
trg.ybew = trg.ybew * 0.780000;
}
else if (trg.gh)
{
trg.gogo = false;
trg.xpp = trg.ypp = undefined;
}
else
{
trg.xbew = trg.xbew * 0.820000;
trg.ybew = trg.ybew * 0.820000;
trg.xbew = trg.xbew + trg.xpp;
trg.ybew = trg.ybew + trg.ypp;
trg.xbeww = trg.xbeww + trg.xpp * 3;
trg.ybeww = trg.ybeww + trg.ypp * 3;
outgrid(trg.til);
if (Math.abs(trg.xbew) > Math.abs(trg.ybew))
{
trg.yp = trg.yp * 0.900000;
trg.yp = trg.yp + yenf * 0.100000;
}
else
{
trg.xp = trg.xp * 0.900000;
trg.xp = trg.xp + xenf * 0.100000;
} // end else if
trg.d.gotoAndStop(f1);
} // end else if
break;
}
case 55:
case 31:
case 23:
case 21:
{
trg.ggh = fra % 2 == 0;
trg.gonuts = trg.s == 23 || trg.s == 55;
markhere(trg);
if (trg.fire-- > 0)
{
trg.xbew = trg.xbew * 0.850000;
trg.ybew = trg.ybew * 0.850000;
trg.d.d.nextFrame();
if (trg.d.d._currentframe == trg.d.d._totalframes)
{
trg.fire = 0;
} // end if
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;
} // end else if
}
else
{
trg.xpp = 0;
if (trg.ypp > 0)
{
trg.ypp = f1;
}
else
{
trg.ypp = -f1;
} // end else if
} // end else if
trg2 = create(trg.xp, trg.yp, 0, trg.xpp, trg.ypp, 0, 9, trg.s);
trg2.dy = -14;
trg2.fd = -0.080000;
trg.xpp = undefined;
} // end if
}
else if (!trg.gogo)
{
if (trg.s == 21)
{
randrunx(0.750000);
}
else if (trg.s == 55)
{
randrunx(0.850000);
}
else if (trg.s == 31)
{
randrunx(0.720000);
}
else
{
randrunx(0.600000);
} // end else if
trg.xbew = trg.xbew * 0.850000;
trg.ybew = trg.ybew * 0.700000;
if (Math.abs(trg.xbew) > Math.abs(trg.ybew))
{
f1 = 1;
sideflip(-trg.xbew);
}
else if (trg.ybew > 0)
{
f1 = 2;
}
else
{
f1 = 5;
} // end else if
trg.d.gotoAndStop(f1);
if (trg.gonuts && (fra + trg.e) % 4 == 0)
{
if (trg.gogo = chaa(trg.s == 55))
{
if (trg.s == 55)
{
if (trris + 20 <= fra)
{
trris = fra;
_root.soundy("leech" + random(3) + ".wav");
} // end if
trg.xpp = trg.xpp * 1.550000;
trg.ypp = trg.ypp * 1.550000;
}
else
{
if (trris2 + 20 <= fra)
{
trris2 = fra;
_root.soundy("maggotcharge" + random(2) + ".wav");
} // end if
trg.xpp = trg.xpp * 1.300000;
trg.ypp = trg.ypp * 1.300000;
} // end if
} // end else if
}
else if (random(35) == 0 && trg.s == 31)
{
trg.d.gotoAndStop(trg.d._currentframe + 5);
trg.xpp = trg.xbew;
trg.ypp = trg.ybew;
trg.fire = 50;
} // end else if
}
else if (trg.gh)
{
trg.gogo = false;
trg.xpp = trg.ypp = undefined;
}
else
{
if (trg.s == 23)
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
}
else
{
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
} // end else if
trg.xbew = trg.xbew + trg.xpp;
trg.ybew = trg.ybew + trg.ypp;
outgrid(trg.til);
if (Math.abs(trg.xbew) > Math.abs(trg.ybew))
{
f1 = 7;
sideflip(-trg.xbew);
trg.yp = trg.yp * 0.900000;
trg.yp = trg.yp + yenf * 0.100000;
}
else
{
if (trg.ybew > 0)
{
f1 = 6;
}
else
{
f1 = 8;
} // end else if
trg.xp = trg.xp * 0.900000;
trg.xp = trg.xp + xenf * 0.100000;
} // end else if
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;
} // end else if
} // end else if
trg.d.gotoAndStop(f1);
} // end else if
tip(0);
break;
}
case 34:
{
if (random(7) == 0)
{
splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.120000);
} // end if
}
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 = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
if (trg.d._currentframe == 5 && trg.d.d._currentframe > 6 || trg.d._currentframe == 6 && trg.d.d._currentframe < 18)
{
trg.f1 = trg.f1 + 0.020000;
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;
} // end else if
if (trg.d._currentframe == 5)
{
trgnextd();
if (trg.d._currentframe == 1)
{
trg.d.gotoAndStop(6);
} // end if
}
else
{
trgnextd();
if (trg.d.d._currentframe == 19)
{
_root.soundy("Meat_impacts_" + random(3) + ".wav", 200);
quadf(trg.xp, trg.yp, 9);
} // end if
if (trg.d._currentframe == 1)
{
trg.flyby = false;
trg.xpp = undefined;
} // end if
} // end else if
} // end else if
}
else
{
randruny();
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
if (trg.s == 34)
{
if (trg.xpp == undefined && random(7) == 0)
{
trg.flyby = true;
} // end if
} // end if
} // end else if
break;
}
case 28:
{
if (altboss && altboss != 2)
{
f1 = trg.hp / hps[trg.s];
trg._xscale = trg._yscale = 70 + f1 * 35;
trg.xbew = trg.xbew * (1.100000 - f1 * 0.140000);
} // end if
++magget;
trg.mag = magget;
mags[magget] = trg;
if (!firstmag)
{
firstmag = true;
}
else
{
if (magget >= 4)
{
trg.mag = trg.mag - 3;
trg.mags = [0, mags[4], mags[5], mags[6]];
}
else
{
trg.mags = [0, mags[1], mags[2], mags[3]];
} // end else if
if (fra - 20 < trg.fra)
{
trg.d.gotoAndStop(trg.mag + 9);
} // end if
if (altboss == 2)
{
if (trg.mag < 3)
{
trg.imba = true;
} // end if
} // end if
if (trg.d._currentframe >= 10)
{
trgnextd();
trg.xbew = 0;
trg.ybew = 0;
if (trg.mag == 3 && !trg.wtfu)
{
trg.wtfu = true;
trg.xp = trg.xp * 0.650000;
trg.yp = trg.yp * 0.650000;
trg.xp = trg.xp + trg.mags[2].xp * 0.350000;
trg.yp = trg.yp + trg.mags[2].yp * 0.350000;
} // end if
} // end if
if (trg.d._currentframe < 10)
{
trg.d.gotoAndStop(trg.mag);
markhere(trg);
if (trg.mag != 1)
{
trg2 = trg.mags[trg.mag - 1];
if (trg2.beenx.length > 0)
{
f10 = true;
while (f10)
{
if (trg.specoz == 9)
{
f0 = Math.min(15 - trg.mag * 2, trg2.beenx.length - 1);
}
else if (trg.specoz > 18)
{
f0 = Math.min(16 - trg.mag * 2, trg2.beenx.length - 1);
}
else
{
f0 = Math.min(17 - trg.mag * 2, trg2.beenx.length - 1);
} // end else if
enf = enfcheck(trg.xp, trg.yp, trg2.beenx[f0], trg2.beeny[f0], 1000);
f2 = 10;
if (enf < f2)
{
trg.xp = trg2.beenx[f0];
trg.yp = trg2.beeny[f0];
f10 = false;
continue;
} // end if
enf = f2 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
trg.xp = trg.xp - xenf;
trg.yp = trg.yp - yenf;
trg2.beenx.push(trg2.beenx[f0] + xenf);
trg2.beeny.push(trg2.beeny[f0] + yenf);
} // end while
} // end if
}
else
{
trg.d.gotoAndStop(1);
killshit(trg.nextl);
switch (trg.mode)
{
case 4:
{
if (altboss == 2 && trg.hp / trg.mhp < 0.300000 && !trg.specoz)
{
if (trg.xbew > 0)
{
xenf = 1;
}
else
{
xenf = -1;
} // end else if
if (trg.ybew >= 0.100000)
{
yenf = 1;
}
else
{
yenf = -1;
} // end else if
trg.xbew = trg.xbew + xenf * 2;
trg.ybew = trg.ybew + yenf * 2;
}
else
{
randrunx(1.500000);
if (trg.charf + 50 <= fra)
{
if (chaa())
{
trg.charf = fra;
trg.mode = 2;
_root.soundy("Monster_Roar_0.mp", 100);
} // end if
} // end if
f1 = altboss == 2 && !trg.specoz;
if (trg.mode != 2 && random(100) == 0 && (ashut < 5 && !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 = fra + 10;
} // end if
} // end else if
f2 = 0;
break;
}
case 2:
{
f2 = 12;
++trg.bomb;
if (trg.bomb == 3)
{
} // end if
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);
} // end if
break;
}
case 3:
{
if (trg.gh)
{
trg.mode = 1;
trg.xpp = trg.ypp = undefined;
}
else
{
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
trg.xbew = trg.xbew + trg.xpp * 3.700000;
trg.ybew = trg.ybew + trg.ypp * 3.700000;
} // end else if
f2 = 6;
break;
}
default:
{
f1 = fra - magss;
if (f1 > 0)
{
f2 = 9;
}
else
{
f2 = 3;
} // end else if
if (f1 > 20)
{
trg.mode = 1;
} // end if
break;
}
} // End of switch
if (Math.abs(trg.xbew) > Math.abs(trg.ybew))
{
sideflip(-trg.xbew);
f1 = 2;
}
else if (trg.ybew > 0)
{
f1 = 1;
}
else
{
f1 = 3;
} // end else if
if (trg.d.d._currentframe <= 12)
{
trg.d.d.gotoAndStop(f1 + f2);
} // end if
} // end else if
for (enf = enfcheck(trg.xp, trg.yp, trg.beenx[0], trg.beeny[0], 1000); enf > 2; enf = enfcheck(trg.xp, trg.yp, trg.beenx[0], trg.beeny[0], 1000))
{
enf = 2 / enf;
trg.beenx.unshift(trg.beenx[0] + xenf * enf);
trg.beeny.unshift(trg.beeny[0] + yenf * enf);
} // end of for
if (trg.beenx.length > 30)
{
f2 = [];
f3 = [];
for (a = 0; a < 20; a++)
{
f2[a] = trg.beenx[a];
f3[a] = trg.beeny[a];
} // end of for
trg.beenx = new Array(20);
trg.beeny = new Array(20);
for (a = 0; a < 20; a++)
{
trg.beenx[a] = f2[a];
trg.beeny[a] = f3[a];
} // end of for
} // end if
if (trg.specoz == 8)
{
trg.xbew = trg.xbew * 0.750000;
trg.ybew = trg.ybew * 0.750000;
}
else if (trg.specoz == 9)
{
trg.xbew = trg.xbew * 0.860000;
trg.ybew = trg.ybew * 0.860000;
}
else
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
} // end else if
if (trg.mag == 3 && trg.specoz == 22)
{
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);
} // end if
} // end of for...in
} // end if
if (fra > 20 && magss == fra && trg.mag == 3)
{
f1 = 5;
f2 = ingrid(trg.beenx[f1], trg.beeny[f1]);
outgrid(f2);
if (altboss == 2)
{
if (trg.specoz)
{
if (ashut < 5)
{
trg2 = create(xenf, yenf, 0, 0, 0, 0, 92);
trg2._xscale = trg2._yscale = 50;
trg2.hp = trg2.hp * 0.700000;
}
else
{
f1 = -1;
} // end else if
}
else
{
turd("breakblock2", f2, true);
++chubber;
} // end else if
}
else
{
if (altboss)
{
f1 = 61;
}
else if (trg.specoz == 8)
{
f1 = 30;
}
else if (trg.specoz == 9)
{
f1 = 31;
}
else
{
f1 = 23;
} // end else if
if (f1 != 30)
{
create(xenf, yenf, 0, 0, 0, 0, f1);
_root.soundy("summonsound.wav", 100);
}
else
{
_root.soundy("summonsound.wav", 70);
} // end else if
trg2 = create(xenf, yenf, 0, 0, 0, 0, f1);
} // end else if
if (f1 > 0)
{
if (f1 == 30)
{
trg2.spl = 30;
trg2.specoz = 10;
trg2.outway = true;
speco(trg2);
} // end if
xenf = xenf - trg.xp;
yenf = yenf - trg.yp;
trg2.xbew = trg2.xbew + xenf * 0.100000;
trg2.ybew = trg2.ybew + yenf * 0.100000;
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;
} // end else if
trg.d.d.gotoAndStop(f1);
} // end if
} // end if
} // end if
} // end if
} // end else if
break;
}
} // End of switch
} // End of the function
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);
} // end if
} // end if
if (trg.specoz == 19)
{
if (trg.d._currentframe == 5)
{
if (trg.d.d._currentframe == 20)
{
trg.d.d.gotoAndStop(38);
} // end if
} // end if
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 = xenf * enf;
yenf = yenf * enf;
shots(trg.xp + xenf, trg.yp + yenf, xenf, yenf, true);
} // end if
} // end if
if (trg.d._currentframe == 20)
{
if (trg.d.d._currentframe == 48)
{
trg.d.d.gotoAndStop(58);
} // end if
if (trg.d.d._currentframe < 20 || trg.d.d._currentframe > 65)
{
trg.d.d.nextFrame();
} // end if
} // end if
} // end if
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");
} // end if
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 = trg.xbew - xenf * 0.030000;
trg.ybew = trg.ybew - yenf * 0.030000;
} // end if
} // end if
if (trg.d.d._currentframe == 74)
{
trg.done = true;
} // end if
} // end if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
}
else
{
mom[momet] = trg;
++momet;
trg.mom = momet;
if (trg.xpp > 0)
{
trg.xp = trg.xpp;
trg.yp = trg.ypp;
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
} // end if
if (fra < 20)
{
if (trg.mom == mome)
{
trg.d.gotoAndStop(2);
}
else
{
trg.d.gotoAndStop(1);
} // end else if
if (mome == undefined && trg.mom == 5)
{
momlo();
} // end if
oldm = 3;
} // end if
if (trg.d._currentframe != 19)
{
trgnextd();
} // end if
if (trg.mom == 3)
{
if (moml - fra < 0)
{
f1 = random(3);
if (fra < 50)
{
f1 = 0;
} // end if
mome = -1;
if (trg.specoz == 19)
{
f1 = 0;
if (random(4) == 0 && oldm != 2)
{
f1 = 2;
} // end if
oldm = -1;
} // end if
switch (oldm)
{
case f1:
{
_root.soundy("Mom_Vox_Grunt_" + random(4) + ".mp");
moml = fra + 80;
if (trg.specoz == 19)
{
moml = moml - 30;
} // end if
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;
} // end if
} // end if
} // end of for...in
if (mome > -1 && fra > 50)
{
mom[mome].d.gotoAndStop(5);
}
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;
} // end else if
} // end else if
}
case 0:
{
if (ashut < 8)
{
moml = fra + 45;
z = 0;
while (z < random(3) + 2 && ashut < 8 + random(2))
{
i = random(5);
if (i != 2)
{
++z;
++ashut;
mom[i].d.gotoAndStop(random(2) + 3);
} // end if
undefined;
} // end while
} // end if
}
case 1:
{
momlo();
}
case 2:
{
oldm = f1;
}
} // End of switch
} // end if
if (trg.d._currentframe < 20)
{
trg._visible = false;
} // end if
}
else
{
if (trg.d._currentframe == 3 || trg.d._currentframe == 4)
{
if (trg.d.d._currentframe == 3)
{
if (trg.specoz)
{
f1 = [85, 94, 89, 86, 29.100000];
}
else
{
f1 = [10, 11, 12, 14, 15, 16, 18, 21, 23, 24, 25.500000, 26];
} // end else if
xenf = trg.xp - 320;
yenf = trg.yp - 280;
enf = enfget(xenf, yenf);
enf = 18 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
f2 = random(f1.length);
create(trg.xp - xenf, trg.yp - yenf, 0, -xenf, -yenf, 0, f1[f2]);
_root.soundy("summonsound.wav", f2 * 5 + 80);
} // end if
} // end if
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.xp = trg2.xpp = trg.xp - xenf * enf;
trg2.yp = trg2.ypp = trg.yp - yenf * enf;
} // end if
} // end else if
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;
} // end if
} // end of for...in
} // end if
} // end else if
} // end else if
break;
}
case 33:
{
trg.d.nextFrame();
if (trg.holi)
{
} // end if
dang2 = trg;
break;
}
case 41:
{
sideflip(trg.xbew, trg.d.d);
if (Math.abs(trg.xbew) > Math.abs(trg.ybew))
{
if (trg.xbew > 0)
{
f1 = 2;
}
else
{
f1 = 4;
} // end else if
trg.d.d.gotoAndStop(2);
}
else
{
if (trg.ybew > 0)
{
f1 = 1;
}
else
{
f1 = 3;
} // end else if
trg.d.d.gotoAndStop(1);
} // end else if
trg.d.hx.h.gotoAndStop(f1);
}
case 44:
{
if (trg.s == 44 && ashut == 0 && fra > 80 && trg.alter != 2)
{
trg.dones = true;
} // end if
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.800000);
f2 = f1 < 0.400000;
f1 = f1 / enf;
trg.xbew = trg.xbew - xenf * f1;
trg.ybew = trg.ybew - yenf * f1;
} // end else if
}
else
{
randrunx(0.750000 + trg.alter * 0.250000);
} // end else if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
if ((fra + trg.e) % 3 == 0 && f2)
{
trg.gogo = chaa();
if (trg.alter == 2 && trg.gogo)
{
trg.xpp = trg.xpp * 1.650000;
trg.ypp = trg.ypp * 1.650000;
} // end if
if (trg.alter == 2 && trg.s == 44 && trg.gogo)
{
trg.xpp = trg.xpp * 1.650000;
trg.ypp = trg.ypp * 1.650000;
} // end if
} // end if
} // end if
if (trg.gogo)
{
if (trg.gh)
{
trg.gogo = false;
trg.xpp = trg.ypp = undefined;
}
else
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trg.xbew = trg.xbew + trg.xpp;
trg.ybew = trg.ybew + trg.ypp;
outgrid(trg.til);
if (trg.s == 44)
{
f1 = 5;
if (Math.abs(trg.xpp) > Math.abs(trg.ypp))
{
trg.yp = trg.yp * 0.500000;
trg.yp = trg.yp + yenf * 0.500000;
if (trg.s == 44)
{
trg.ybew = trg.ybew * 0.500000;
} // end if
}
else
{
trg.xp = trg.xp * 0.500000;
trg.xp = trg.xp + xenf * 0.500000;
if (trg.s == 44)
{
trg.xbew = trg.xbew * 0.500000;
} // end if
} // end else if
}
else if (Math.abs(trg.xbew) > Math.abs(trg.ybew))
{
trg.yp = trg.yp * 0.900000;
trg.yp = trg.yp + yenf * 0.100000;
}
else
{
trg.xp = trg.xp * 0.900000;
trg.xp = trg.xp + xenf * 0.100000;
} // end else if
} // end else if
} // end else if
break;
}
case 40:
{
borderliner(3);
trg.d.d._rotation = 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.700000);
} // end if
break;
}
case 47:
{
if (trg.alter == 2)
{
trg.xbew = trg.xbew * 0.950000;
trg.ybew = trg.ybew * 0.950000;
if (fra % 7 == 0)
{
trg2 = parc("bloo", trg.xp, trg.yp, 0, 123);
} // end if
}
else
{
trg.xbew = trg.xbew * 0.950000;
trg.ybew = trg.ybew * 0.950000;
} // end else if
sideflip(trg.xbew);
walkframe();
if (Math.abs(trg.xbew) < Math.abs(trg.ybew))
{
trg.d.bo.gotoAndStop(2);
}
else
{
trg.d.bo.gotoAndStop(3);
} // end else if
if (enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000))
{
if (linecheck(trg.xp, trg.yp, player.xp, player.yp))
{
enf = 0.650000 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
trg.tiletimer = trg.gridimer = -3;
}
else
{
pathfind(trg, playx, playy, 1.200000);
} // end if
} // end else if
break;
}
case 46:
{
trg.xbew = trg.xbew * 0.750000;
trg.ybew = trg.ybew * 0.750000;
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);
}
else
{
trg.d.gotoAndStop(5);
} // end if
} // end else if
}
else
{
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 = trg2._xscale * (1.600000 + z * 0.070000);
trg2._yscale = trg2._xscale;
colorit(trg2, 0, 2, 0, 0, 40, 0);
} // end if
} // end if
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)
{
boil(true);
boil(true);
}
else
{
trg2 = create(trg.xp + trg.d._xscale * 0.300000, 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;
} // end else if
}
else
{
if (trg.alter == 3)
{
}
else
{
green();
if (trg.alter == 2)
{
green();
} // end if
} // end else if
_root.soundy("heartout.wav", 70);
} // end if
} // end else if
} // end else if
break;
}
case 53:
{
trg.alt = Math.abs(player.xp - 320) > Math.abs(player.yp - 280) * 0.650000;
trg.xbew = trg.xbew * 0.750000;
trg.ybew = trg.ybew * 0.750000;
if (trg.alter == 2)
{
trg.flyby = true;
} // end if
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);
} // end else if
}
else if (trg.alter == 2)
{
trg.d.hx.bo.gotoAndStop(2);
}
else
{
trg.d.hx.bo.gotoAndStop(3);
} // end else if
}
else
{
trg.d.hx.bo.gotoAndStop(1);
} // end else if
f1 = plo;
f2 = f1 == 3 || f1 == 1;
if (!trg.alt && f2 || trg.alt && !f2)
{
f1 = f1 + 2;
if (f1 > 4)
{
f1 = f1 - 4;
} // end if
} // end if
--trg.fire;
if (player.fire > lpf)
{
if (trg.fire <= 0)
{
f3 = 10;
xenf = yenf = 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;
break;
}
} // End of switch
if (trg.alter == 2)
{
trg.fire = 30;
shots(trg.xp, trg.yp, xenf, yenf, true);
}
else
{
shots(trg.xp, trg.yp, xenf, yenf);
} // end if
} // end if
} // end else if
lpf = player.fire;
if (plox > 8)
{
f1 = f1 + 4;
} // end if
trg.d.hx.h.gotoAndStop(f1);
if (trg.d.hx.bo != undefined)
{
sideflip(trg.xbew, trg.d.hx.bo);
} // end if
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.250000 + trg.tier * 0.100000;
if (tier == 3)
{
f1 = 0.350000;
} // end if
if (trg.ybew > 0)
{
f2 = f1;
}
else
{
f2 = -f1;
} // end else if
if (trg.xbew > 0)
{
f1 = f1;
}
else
{
f1 = -f1;
} // end else if
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
trg.xbew = trg.xbew + f1;
trg.ybew = trg.ybew + f2;
sideflip(trg.xbew);
break;
}
case 52:
{
trg.xbew = trg.xbew * 0.750000;
trg.ybew = trg.ybew * 0.750000;
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);
} // end else if
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);
} // end if
} // end else if
}
else
{
if (trg.d._currentframe == 5)
{
if (trg.d.d._currentframe >= 20 && trg.d.d._currentframe <= 37)
{
lasershowx((0.250000 + 0.500000 * (fra % 4)) * 3.141593);
} // end if
if (trg.alter == 2 && trg.d.d._currentframe == 20)
{
cirf(trg.xp, trg.yp - 20, 8, 6);
} // end if
} // end if
if (trg.d.d._currentframe == 5)
{
if (trg.d._currentframe == 6)
{
anarch = 20;
if (trg.alter == 2)
{
anarch = 10;
analt = 5;
} // end if
} // end if
} // end if
} // end else if
break;
}
case 50:
{
trg.f3 = 1;
trg.xbew = trg.xbew * 0.750000;
trg.ybew = trg.ybew * 0.750000;
walkframe();
if (Math.abs(trg.xbew) < Math.abs(trg.ybew))
{
trg.d.bo.gotoAndStop(1);
}
else
{
trg.d.bo.gotoAndStop(2);
} // end else if
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);
} // end if
} // end else if
}
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;
} // end else if
}
else
{
xenf = 0;
if (yenf > 0)
{
f3 = 3;
yenf = f1;
}
else
{
f3 = 1;
yenf = -f1;
} // end else if
} // end else if
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;
} // end if
} // end else if
if (trg.d.d._currentframe == 5)
{
if (trg.d._currentframe == 6)
{
f1 = 29;
if (trg.alter == 2)
{
f1 = 86;
} // end if
if (ashut == 1)
{
spaw(trg.xp - 50, trg.yp, 0, f1);
spaw(trg.xp + 50, trg.yp, 0, f1);
}
else
{
spaw(trg.xp, trg.yp - 50, 0, f1);
spaw(trg.xp, trg.yp + 50, 0, f1);
} // end else if
_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);
} // end else if
} // end else if
} // end else if
break;
}
case 48:
{
trg.xbew = trg.xbew * 0.850000;
trg.ybew = trg.ybew * 0.850000;
walkframe();
if (Math.abs(trg.xbew) < Math.abs(trg.ybew))
{
trg.d.bo.gotoAndStop(1);
}
else
{
trg.d.bo.gotoAndStop(2);
} // end else if
sideflip(trg.xbew);
trgnextd();
if (trg.d._currentframe < 3)
{
if (trg.gogo)
{
if (trg.gh)
{
trg.gogo = false;
trg.xpp = trg.ypp = undefined;
}
else
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trg.xbew = trg.xbew + trg.xpp * 1.500000;
trg.ybew = trg.ybew + trg.ypp * 1.500000;
outgrid(trg.til);
if (Math.abs(trg.xbew) > Math.abs(trg.ybew))
{
trg.yp = trg.yp * 0.900000;
trg.yp = trg.yp + yenf * 0.100000;
}
else
{
trg.xp = trg.xp * 0.900000;
trg.xp = trg.xp + xenf * 0.100000;
} // end else if
} // end else if
}
else if (trg.trg2.s > 0)
{
trg2 = trg.trg2;
if (trg2.dones)
{
trg.trg2 = undefined;
trg.xpp = undefined;
} // end if
siz = 130;
if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, siz))
{
enf = Math.min(1, siz - enf) / enf * 0;
trg.xbew = trg.xbew + xenf * enf;
trg.ybew = 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 = trg.xbew * 0.500000;
trg.ybew = trg.ybew * 0.500000;
trg.xpp = undefined;
} // end if
} // end if
}
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 (random(2) == 0)
{
trg.d.gotoAndStop(5);
}
else
{
trg.gogo = true;
} // end else if
} // end else if
} // end else if
} // end else if
}
else if (trg.d._currentframe == 5 && trg.d.d._currentframe == 5)
{
outgrid(ingrid(trg.xp, trg.yp));
f1 = 4;
if (trg.alter == 2)
{
f1 = 5.040000;
} // end if
trg.trg2 = create(xenf, yenf, 0, trg.xpp * 10, trg.ypp * 10, 0, f1);
trg.trg2.d.d.gotoAndStop(1);
if (trg.xpp != 0 || trg.ypp != 0)
{
trg.trg2.ph = true;
}
else
{
trg.trg2.bh = false;
} // end else if
trg.xpp = undefined;
trg.trg2.man = true;
} // end else if
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;
} // end if
if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 20))
{
playerhurt(1, 39);
} // end if
if (trg.f222)
{
trg.d.gotoAndStop(1);
if (trg.xbew * trg.d._xscale < 0)
{
trg.d._xscale = trg.d._xscale * -1;
} // end if
}
else if (trg.ybew < 0)
{
trg.d.gotoAndStop(2);
}
else
{
trg.d.gotoAndStop(3);
} // end else if
break;
}
case 39:
{
if ((fra + trg.e) % 5 == 0)
{
splater(trg.xp, trg.yp + 5, 1 + random(10), Math.random() * 0.700000);
} // end if
}
case 49:
{
markhere(trg);
if (trg.d._currentframe < 3)
{
randrunx(0.700000);
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);
} // end if
} // end if
} // end if
if (f1)
{
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;
} // end else if
trg.f1 = f1;
f1 = f1 + (trg.alter * 3 - 3);
trg.d.gotoAndStop(f1);
trg.xpp = -xenf;
trg.ypp = -yenf;
} // end if
} // end if
} // end if
}
else
{
trgnextd();
if (trg.d._currentframe == 11 && trg.s != 39)
{
trg.d.d.d.gotoAndStop(1);
if (trg.d.d._currentframe == 14)
{
quadf(trg.xp, trg.yp, 8, true);
if (trg.alter == 2)
{
bossfire(5, true);
} // end if
} // end if
}
else if (trg.alter == 3)
{
if (trg.d.d._currentframe == 18)
{
if (f2 = Math.abs(trg.xpp) > Math.abs(trg.ypp))
{
trg.ypp = 0;
}
else
{
trg.xpp = 0;
} // end else if
f1 = 16 / enfget(trg.xpp, trg.ypp);
xenf = trg.xpp * f1 * 1.400000;
yenf = trg.ypp * f1;
trg.trg2 = trg2 = create(trg.xp, trg.yp, 0, xenf, yenf, 0, 222, trg.s);
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;
} // end if
}
else if (trg.d.d._currentframe > 29 && trg.d.d._currentframe < 70)
{
lasershow(trg);
} // end else if
if (trg.alter == 2)
{
trg.xpp = -trg.xpp;
trg.ypp = -trg.ypp;
} // end if
if (trg.d._currentframe < 3)
{
trg.xpp = undefined;
} // end if
} // end else if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
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.030000 / enf;
trg2.xbew = trg2.xbew + xenf * enf;
trg2.ybew = trg2.ybew + yenf * enf;
} // end if
} // end if
} // end of for...in
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));
} // end else if
}
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;
} // end else if
}
else
{
f1 = 9;
} // end else if
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);
} // end if
}
else
{
trg.idle = true;
} // end else if
} // end else if
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 = trg2.hp - 2;
trg3.hp = 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;
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);
break;
}
} // End of switch
} // end if
trg.xp = trg.xpp;
trg.yp = trg.ypp;
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
break;
}
} // End of switch
} // End of the function
function telpx(f3)
{
if (f3 == 2)
{
f2 = 120 + Math.random() * 80;
}
else
{
f2 = 250 * Math.random() + 60;
} // end else if
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;
} // end if
}
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, 200);
}
else
{
f3 = enfcheck(f1, f2, player.xp, player.yp, 1000);
f4 = f3;
f3 = f3 > 50 && f3 < 120;
} // end else if
}
else
{
f3 = enfcheck(f1, f2, player.xp, player.yp, 10000);
f3 = f3 > 130 && f3 < 1000;
} // end else if
if (f3)
{
f3 = ingrid(f1, f2);
if (levz[f3] < 0.500000)
{
outgrid(f3);
trg.xpp = xenf;
trg.ypp = yenf;
} // end if
} // end if
} // End of the function
function smartd()
{
switch (trg.s)
{
case 79:
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
if (trg.specoz)
{
trg.xbew = trg.xbew * 0.920000;
trg.ybew = trg.ybew * 0.920000;
if (trg.alt)
{
} // end if
} // end if
if (trg.alt)
{
trg.ggh = true;
trg2 = trg.trg2;
if (altboss == 2)
{
if (trg2.s != 79)
{
trg.dones = true;
} // end if
trg.imba = true;
bord(580, 60, 410, 170);
if (trg.d._currentframe == 12)
{
if (trgnextd())
{
trg.d.gotoAndStop(7);
trg.fire = 60;
trg.xpp = trg.ypp = 0;
} // end if
if (trg.d.d._currentframe > 15 && trg.d.d._currentframe < 50)
{
lasershow(trg);
} // end if
}
else
{
if (trg.fire > -100)
{
if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 300))
{
enf = 0.650000 / enf;
trg.xbew = trg.xbew + xenf * enf;
trg.ybew = trg.ybew + yenf * enf * 0.900000;
} // end if
}
else
{
f1 = player.yp - trg.yp;
trg.ybew = trg.ybew + absmax(f1 * 0.010000, 0.200000);
} // end else if
--trg.fire;
if (trg.fire < 0)
{
if (random(30) == 0 && trg.fire > -100)
{
trg.fire = -101;
trg.xpp = trg.ypp = 0;
} // end if
}
else if (random(40) == 0 && trg.fire < -180)
{
trg.fire = 60;
} // end else if
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);
} // end if
} // end if
} // end else if
}
else if (trg2.dones || altboss && trg2.hp < 60 || trg.onown)
{
bord(580, 60, 410, 170);
if (!trg.onown)
{
trg.onown = true;
_root.soundy("Cute_Grunt_" + random(3) + ".mp", 100);
} // end if
for (i = 0; i < 19; i++)
{
trg3 = trg2["n" + i];
trg3._visible = false;
} // end of for
if (trg.d._currentframe <= 9)
{
trg.d.gotoAndStop(9);
trg.ma = 8;
} // end if
trg.xbew = trg.xbew / 0.850000;
trg.ybew = trg.ybew / 0.850000;
enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000);
enf = 0.500000 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
sideflip(-trg.xbew);
}
else
{
enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000);
enf = 0.250000 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
trgnextd();
if (trg.d._currentframe <= 6)
{
trg.d.gotoAndStop(7);
} // end if
firemode(300, 5);
} // end else if
}
else
{
if (trg.trg2 == undefined && fra < 80)
{
trg.fire = 0;
trg.trg2 = create(trg.xp, trg.yp - 8, 0, 0, 0, 0, trg.s);
trg2 = trg.trg2;
trg2.fra = -100;
trg2.alt = true;
trg2.outway = true;
trg2.trg2 = trg;
if (!altboss && trg.specoz != 3)
{
for (i = 0; i < 17; i++)
{
trg3 = trg.attachMovie("necksegment2", "n" + i, i);
} // end of for
} // end if
} // end if
if (trg.fire == 0)
{
trg.sp = 1.400000;
if (random(60) == 0 && (altboss != 2 || random(4) == 0))
{
++trg.fire;
_root.soundy("Monster_Yell_B_" + random(2) + ".mp", 100);
} // end if
trg.d.gotoAndStop(1);
}
else
{
++trg.fire;
if (trg.fire > 0)
{
trg.d.gotoAndStop(2);
trg.sp = trg.sp + 0.040000;
trg.sp = trg.sp * 0.980000;
if (trg.fire > 100)
{
trg.fire = -100;
} // end if
}
else if (altboss == 2)
{
trg.d.gotoAndStop(1);
trg.fire = 0;
}
else
{
trg.d.gotoAndStop(5);
trg.sp = 0;
} // end else if
} // end else if
if (altboss == 2)
{
trg.sp = trg.sp + 0.200000;
if (fra % 7 == 0)
{
trg2 = parc("bloo", trg.xp, trg.yp, 0, 123);
} // end if
} // end if
pathfind(trg, playx, playy, trg.sp);
if (altboss == 2)
{
trg.sp = trg.sp - 0.200000;
} // end if
f1 = 0;
if (altboss == 2)
{
f1 = 6;
}
else if (altboss)
{
f1 = 3;
} // end else if
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);
} // end else if
sideflip(trg.xbew);
}
else
{
trg.d.bo.gotoAndStop(1 + f1);
} // end else if
trg2 = trg.trg2;
if (trg.s == trg2.s && trg.specoz != 3)
{
enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 1000);
f3 = 76;
if (altboss)
{
if (enf > 0 && !trg2.onown)
{
f2 = (enf - 20) / enf * 0.100000;
trg2.xbew = trg2.xbew + xenf * f2;
trg2.ybew = trg2.ybew + yenf * f2;
} // end if
}
else if (enf > f3)
{
f2 = (enf - f3) / enf * 0.010000;
trg2.xbew = trg2.xbew + xenf * f2;
trg2.ybew = trg2.ybew + yenf * f2;
} // end else if
f3 = f3 + 120;
for (i = 0; i < 19; i++)
{
trg3 = trg["n" + i];
f1 = (16 - i) / 18;
trg3._x = -xenf * f1 - 6;
f2 = Math.abs(i - 9) * 0.500000;
f2 = 16 - f2 * f2;
f2 = f2 * (Math.max(0, f3 - enf) / f3);
trg3._y = -yenf * f1 - 35 + f2 * 1.500000 + i * 0.800000;
trg3._visible = true;
if (yenf < 0)
{
trg3.swapDepths(60 - i);
continue;
} // end if
trg3.swapDepths(3 + i);
} // end of for
trg.n18._visible = false;
}
else
{
for (i = 0; i < 19; i++)
{
trg3 = trg["n" + i];
trg3._visible = false;
} // end of for
} // end else if
} // end else if
break;
}
case 78:
{
mheart = trg;
trg.outway = true;
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trg.xp = trg.xpp;
trg.yp = trg.ypp;
f3 = Math.min(3, 4 - Math.round(trg.hp / hps[trg.s] * 3 + 0.450000));
if (momstate == 3)
{
splater(trg.xp + crand() * 2, trg.yp + crand(Math.random() * Math.random() * 200) + 8, 1 + random(10), Math.random() * 0.500000 + 0.200000);
} // end if
if (momstate != f3)
{
momstate = f3;
} // end if
if (trg.d._currentframe != 5 && (trg.d._currentframe != 4 || trg.d.d._currentframe > 30))
{
trg.d.gotoAndStop(momstate);
if (trg.downbro-- < 0 && momstate != 3)
{
trg.d.gotoAndStop(5);
_root.soundy("heartin.wav");
} // end if
}
else if (trg.d._currentframe == 5 || momstate == 3)
{
if (trg.fire < 40)
{
trg.downbro = 100;
trg.d.gotoAndStop(4);
_root.soundy("heartout.wav");
_root.soundy("Mom_Vox_Filtered_Isaac_" + random(3) + ".mp");
} // end if
} // end else if
trg.bh = trg.d._currentframe != 5 && (trg.d._currentframe != 4 || trg.d.d._currentframe > 5);
if (ashut < 2)
{
--trg.fire;
} // end if
switch (momstate)
{
case 3:
{
if (random(2) == 0 && fra % 23 == 0)
{
green(true, true);
} // end if
break;
}
} // End of switch
if (trg.fire < 0)
{
if (lmo != momstate)
{
trg.wave = 0;
} // end if
f5 = _root.locker[45];
if (f5)
{
switch (momstate)
{
case 1:
{
f2 = [60, 55, 20, 19];
break;
}
case 2:
{
f2 = [41, 59, 67, 28];
break;
}
case 3:
{
f2 = [61, 24, 14, 23];
break;
}
} // End of switch
}
else
{
switch (momstate)
{
case 1:
{
f2 = [60, 59, 24];
break;
}
case 2:
{
f2 = [55, 24, 27.400000];
break;
}
case 3:
{
f2 = [25.500000, 61, 14];
break;
}
} // End of switch
} // end else if
f2 = f2[trg.wave];
if (f2 == 60 && fra < 100)
{
f1 = 180;
}
else
{
f1 = 40;
} // end else if
_root.soundy("summonsound.wav", 100 + momstate * 10);
create(trg.xp + f1, trg.yp, 0, 0, 0, 0, f2);
if (f2 != 20 && f2 != 67)
{
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.400000 && f2 != 25.500000)
{
f1 = f1 * 0.800000;
if (f2 != 28)
{
create(trg.xp, trg.yp + f1, 0, 0, 0, 0, f2);
} // end if
create(trg.xp, trg.yp - f1, 0, 0, 0, 0, f2);
} // end if
} // end else if
trg.fire = 75;
++trg.wave;
if (trg.wave > 2 && !f5 || trg.wave > 3 && f5)
{
trg.wave = 0;
} // end if
lmo = momstate;
} // end if
break;
}
case 69:
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
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(70) == 0 && ashut < 3 + random(3) && (random(3) == 0 || !altboss))
{
trg.d.gotoAndStop(8);
} // end else if
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;
} // end if
}
else
{
telpx();
} // end else if
break;
}
case 8:
{
if (trg.d.d._currentframe == 22)
{
trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 25);
_root.soundy("summonsound.wav");
trg2.outway = true;
if (altboss)
{
trg2.alter = 2;
} // end if
} // end if
break;
}
case 9:
{
if (trg.d.d._currentframe == 26)
{
quadf(trg.xp, trg.yp, 10, true);
} // end if
break;
}
case 7:
{
if (trg.d.d._currentframe == 28)
{
quadf(trg.xp, trg.yp, 10);
} // end if
if (trg.d.d._currentframe == 51)
{
quadf(trg.xp, trg.yp, 10, 2);
} // end if
if (trg.d.d._currentframe == 77)
{
quadf(trg.xp, trg.yp, 10);
} // end if
break;
}
} // End of switch
if (altboss)
{
sideflip((0.500000 - trg.e % 2) * 10);
} // end if
break;
}
case 68:
{
trgnextd();
slug = trg;
if (trg.specoz == 12 && fra % 13 == 0)
{
trg2 = parc("bloo", trg.xp, trg.yp);
trg2._xscale = trg2._xscale * 1.600000;
trg2._yscale = trg2._xscale;
colorit(trg2, 0.600000, 1.500000, 0.200000, 100, 120, 0);
} // end if
switch (trg.d._currentframe)
{
case 1:
case 2:
{
randrun();
if (trg.specoz != 12 || random(3) == 0)
{
if (random(23) == 0)
{
trg.d.gotoAndStop(10);
} // end if
if (random(20) == 0)
{
trg.d.gotoAndStop(5 + random(2));
} // end if
if (altboss)
{
if (Math.abs(trg.yp - 20 - player.yp - player.ybew * 5) < 20)
{
trg.d.gotoAndStop(12);
} // end if
if (Math.abs(trg.xp - player.xp - player.xbew * 5) < 40 && trg.yp < player.yp)
{
trg.d.gotoAndStop(13);
} // end if
} // end if
} // end if
break;
}
case 13:
{
if (trg.d.d._currentframe > 10 && trg.d.d._currentframe < 50)
{
f8 = 15 - random(2) * 30;
trg.yp = trg.yp - 20;
trg.xp = trg.xp - f8;
lasershow(trg);
trg.yp = trg.yp + 20;
trg.xp = trg.xp + f8;
trg.xpp = 0;
trg.ypp = 1;
} // end if
break;
}
case 12:
{
if (trg.d.d._currentframe > 10 && trg.d.d._currentframe < 50)
{
trg.yp = trg.yp - 20;
lasershow(trg);
trg.yp = trg.yp + 20;
trg.xpp = 1 - random(2) * 2;
trg.ypp = 0;
} // end if
break;
}
case 11:
{
if (trg.d.d._currentframe == 28)
{
if (altboss)
{
for (z = 0; z < 10; z++)
{
f1 = crand(random(100));
f2 = crand();
trg2 = parc("bloo", trg.xp + f1, trg.yp + f2);
trg2._xscale = trg2._xscale * 2;
trg2._yscale = trg2._xscale;
} // end of for
if (trg.specoz)
{
green(false, false);
green(false, true);
green(false, true);
}
else
{
quadf(trg.xp, trg.yp, 10, 1);
} // end else if
}
else
{
cirf(trg.xp, trg.yp, 10, 12);
} // end else if
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 100);
} // end if
break;
}
case 5:
{
if (trg.d.d._currentframe == 38)
{
if (altboss)
{
if (trg.specoz)
{
green(false, true);
green(false, true);
}
else
{
quadf(trg.xp, trg.yp, 10, 1);
} // end else if
}
else
{
cirf(trg.xp, trg.yp, 10, 8);
} // end else if
_root.soundy("ForestBoss_Stomps" + random(3) + ".wav", 80);
} // end if
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);
} // end if
} // end if
f1 = crand(random(100));
f2 = crand();
if (altboss)
{
f1 = f1 * 1.500000;
f2 = f2 * 1.500000;
} // end if
trg2 = parc("bloo", trg.xp + f1, trg.yp + f2);
trg2._xscale = trg2._xscale * 2;
trg2._yscale = trg2._xscale;
if (!altboss)
{
colorit(trg2, 0.600000, 1.500000, 0.200000, 100, 120, 0);
}
else
{
trg2._xscale = trg2._xscale * 1.300000;
trg2._yscale = trg2._yscale * 1.300000;
} // end if
} // end else if
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.033333;
trg.xbew = -xenf * enf;
trg.ybew = -yenf * enf;
} // end if
} // end if
break;
}
} // End of switch
if (trg.bh = (trg.d._currentframe != 10 || trg.d.d._currentframe < 29) && (trg.d._currentframe != 11 || trg.d.d._currentframe > 27))
{
if (trg.specoz == 12)
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
}
else
{
trg.xbew = trg.xbew * 0.600000;
trg.ybew = trg.ybew * 0.600000;
} // end if
} // end else if
f3 = Math.min(3, 4 - Math.round(trg.hp / hps[trg.s] * 3 + 0.450000));
if (altboss)
{
f1 = random(10);
}
else
{
f1 = 21 + random(10);
} // end else if
splater(trg.xp + crand() * 2, trg.yp + crand(random(20)) + 8, f1, Math.random() * 0.500000 + 0.200000);
if (_root.slugeye != f3 && fra > 30 && trg.specoz != 13 && !altboss || (trg.specoz == 13 || altboss) && _root.slugeye < 3)
{
if (trg.specoz == 13 || altboss)
{
++_root.slugeye;
} // end if
f1 = crand(30);
f2 = crand();
_root.soundy("plop.wav");
trg2 = create(trg.xp + f1, trg.yp + f2, 0, f1 * 0.400000, f2 * 0.400000, 0, 25);
trg2.alt = true;
trg2.fra = -100;
trg2.d.gotoAndStop(9);
trg2.hp = trg2.hp * 200;
trg2.imba = true;
} // end if
if (trg.specoz != 13 && !altboss)
{
_root.slugeye = f3;
} // end if
if (altboss)
{
for (z = 0; z < 15; z++)
{
trg2 = trg.d.d["s" + z];
colorit(trg2, 0.700000, 0.100000, 0.100000, 30, 0, 0);
} // end of for
} // end if
break;
}
case 67:
{
trg.ggh = true;
duked = 65 + Math.sin(fra * 0.020000) * 5;
trg.xp = Math.min(580, Math.max(60, trg.xp));
if (trg.xp == 580)
{
trg.xbew = -1;
} // end if
if (trg.xp == 60)
{
trg.xbew = 1;
} // end if
trg.yp = Math.min(410, Math.max(180, trg.yp));
if (trg.yp == 410)
{
trg.ybew = -1;
} // end if
if (trg.yp == 180)
{
trg.ybew = 1;
} // end if
duke = trg;
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trgnextd();
if (trg.xbew > 0)
{
xenf = 1;
}
else
{
xenf = -1;
} // end else if
if (trg.ybew >= 0.100000)
{
yenf = 1;
}
else
{
yenf = -1;
} // end else if
if (altboss)
{
f1 = 0.800000;
if (trg.specoz == 19)
{
f1 = 1.100000;
}
else if (trg.specoz)
{
f1 = 0.500000;
}
else
{
f1 = 0.800000;
} // end else if
}
else
{
f1 = 0.400000;
} // end else if
trg.xbew = trg.xbew + xenf * f1;
trg.ybew = trg.ybew + yenf * f1;
if (trg.specoz == 6)
{
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
} // end if
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.500000 < 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);
} // end else if
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);
} // end if
}
else
{
trg2.push(create(trg.xp - f1 * 2, trg.yp + 20, 0, 0, 0, 0, 18));
} // end else if
for (z in trg2)
{
trg2[z].die = true;
trg2[z].duke = true;
trg2[z].fra = -20;
} // end of for...in
} // end if
} // end else if
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));
} // end else if
for (z in trg2)
{
trg2[z].fra = -20;
trg2[z].die = true;
if (!trg.specoz)
{
trg2[z].d._xscale = trg2[z].d._yscale = 125;
trg2[z].hp = trg2[z].hp * 1.800000;
} // end if
} // end of for...in
} // end if
} // end else if
break;
}
case 7:
{
if (trg.send = trg.d.d._currentframe == 17)
{
if (trg.specoz == 5)
{
cirf(trg.xp, trg.yp, 7, 8);
trg.send = false;
}
else if (altboss)
{
cirf(trg.xp, trg.yp, 8, 8);
} // end else if
_root.soundy("Monster_Grunt_4_" + abr() + ".mp", 100);
} // end if
break;
}
} // End of switch
dukes = 0;
break;
}
} // End of switch
} // End of the function
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 = xenf * enf;
yenf = yenf * enf;
trg.xp = trg.xp + xenf;
trg.yp = trg.yp + yenf;
} // end if
if (ashut < 4 && random(2) == 0)
{
f1 = [55.100000];
spaw(player.xp, player.yp, 200, f1[random(f1.length)]);
} // end if
if (random(2) == 0)
{
_root.soundy("satan stomp " + random(3) + ".mp3");
} // end if
} // end if
if (trg.trg3 != undefined)
{
if (trg.hp < trg.mhp)
{
trg.trg3.hp = trg.trg3.hp - (trg.mhp - trg.hp);
trg.hp = trg.mhp;
if (trg.trg3.hp < 0)
{
trg.trg3.done = true;
trg.done = true;
momkill();
} // end if
} // end if
} // end if
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");
} // end if
} // End of the function
function smartb()
{
smartd();
switch (trg.s)
{
case 66:
{
blackout = true;
if (!trg.sic)
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
} // end if
trgnextd();
if (trg.sic)
{
if (!trg.whut)
{
sideflip(player.xp - trg.xp);
trg.whut = true;
trg.d.gotoAndStop(12);
trg.ffa = fra - enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000) * 0.100000 + 80;
}
else if (trg.d._currentframe < 11)
{
trg.d.gotoAndStop(13);
} // end else if
}
else if (trg.horse)
{
trg.d.gotoAndStop(8);
if (trg.hp + 40 > death.hp)
{
--trg.hp;
} // end if
}
else if ((trg.whut || trg.hp / hps[trg.s] < 0.500000) && 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);
}
else
{
trg.d.gotoAndStop(9);
} // end else if
} // end else if
switch (trg.d._currentframe)
{
case 13:
{
trg.xbew = trg.xbew * 0.975000;
trg.ybew = trg.ybew * 0.975000;
if (trg.alt)
{
if (trg.ffa > fra)
{
xenf = yenf = 0;
trg.d.d.gotoAndStop(1);
}
else
{
if (trg.ffa < fra - 180)
{
trg.done = true;
} // end if
if (!trg.whuzz)
{
trg.whuzz = true;
enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000);
enf = 0.750000 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
trg.xpp = xenf;
trg.ypp = yenf;
}
else
{
xenf = trg.xpp;
yenf = trg.ypp;
} // end else if
} // end else if
}
else
{
enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000);
enf = 0.500000 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
} // end else if
trg.xbew = trg.xbew - xenf;
trg.ybew = trg.ybew - yenf;
break;
}
case 10:
{
if (trg.d.d._currentframe == 16)
{
xenf = crand(10);
yenf = crand();
if (trg.specoz)
{
f1 = 26.100000;
}
else
{
f1 = 41;
} // end else if
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);
} // end if
break;
}
case 9:
{
randrun();
if (random(90) == 0 && ashut < 3)
{
trg.d.gotoAndStop(10);
} // end if
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.d.gotoAndStop(5);
}
else if (random(180) == 0 && sloww <= -100 && !trg.specoz)
{
trg.d.gotoAndStop(6);
}
else if (random(100) == 0 && ashut < 5)
{
trg.d.gotoAndStop(14);
} // end else if
break;
}
case 5:
{
if (trg.d.d._currentframe == 20)
{
_root.soundy("Monster_Grunt_5.mp", 100);
_root.soundy("summonsound.wav", 120);
if (trg.specoz)
{
xenf = crand(50);
yenf = crand();
create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 55.100000);
create(trg.xp - xenf, trg.yp - yenf, 0, 0, 0, 0, 55.100000);
}
else
{
for (i = 0; i < 1.900000; i++)
{
trg2 = spaw(trg.xp, trg.yp, 250 + random(100), 66);
if (enfcheck(trg2.xp, trg.yp, player.xp, player.yp, 150))
{
trg2.done = true;
trg2.sic = true;
trg2._visible = false;
trg2.bh = false;
trg.outway = true;
i = i - 0.950000;
}
else
{
trg2.sic = true;
trg2.apf = true;
trg2.d.gotoAndStop(12);
trg2.hp = 15;
} // end else if
trg.outway = true;
} // end of for
} // end if
} // end else if
break;
}
case 6:
{
if (trg.d.d._currentframe == 22)
{
sloww = 100;
_root.over.gotoAndStop(7);
} // end if
break;
}
case 14:
{
if (trg.d.d._currentframe == 18)
{
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;
} // end if
} // end of for...in
} // end if
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;
trg2.d._xscale = trg.d._xscale;
trg2.apf = true;
trg.outway = true;
} // end if
break;
}
case 8:
{
trg.xbew = trg.d._xscale * 0.180000;
if (trg.gogo)
{
f1 = false;
if (trg.xp > 750)
{
trg.xp = 10;
f1 = true;
}
else if (trg.xp < -150)
{
trg.xp = 630;
f1 = true;
} // end else if
if (f1)
{
f1 = 95;
trg.yp = trg.yp + f1;
if (trg.yp > 430)
{
trg.yp = trg.yp - f1 * 3;
} // end if
} // end if
} // end if
break;
}
} // End of switch
break;
}
case 65:
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trgnextd();
if ((trg.whut || trg.hp / trg.mhp < 0.500000) && trg.d._currentframe < 9 && !altboss)
{
trg.xp = Math.min(580, Math.max(60, trg.xp));
if (!trg.whut)
{
trg.gosplash = true;
trg.whut = true;
trg.d.gotoAndStop(10);
}
else
{
trg.d.gotoAndStop(9);
} // end if
} // end else if
switch (trg.d._currentframe)
{
case 9:
{
trg.sp = trg.sp + 0.100000;
trg.sp = trg.sp * 0.955000;
f1 = 1 + trg.sp * 0.100000;
trg.xbew = trg.xbew * f1;
trg.ybew = trg.ybew * f1;
pathfind(trg, playx, playy, trg.sp * 0.550000 + 0.500000);
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 = trg.xp + crand(5);
trg.yp = trg.yp + crand(5);
} // end if
sideflip(trg.xbew);
if (trg.ffra + 10 > fra)
{
trg.hpp = trg.hp;
} // end if
if (trg.hp + 85 - trg.sp * 5 < trg.hpp)
{
trg.d.gotoAndStop(10);
} // end if
if (Math.abs(trg.xbew) > Math.abs(trg.ybew))
{
trg.d.bo.gotoAndStop(3);
}
else
{
trg.d.bo.gotoAndStop(2);
} // end else if
break;
}
case 10:
{
if (trg.d.d._currentframe == 3 && trg.specoz)
{
cirf(trg.xp, trg.yp - 50, 8, 6);
} // end if
trg.ffra = fra;
trg.hpp = trg.hp;
trg.sp = 0.500000;
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._visible = trg.bh = true;
}
else if (random(180) == 0)
{
trg.d.gotoAndStop(6);
_root.soundy("Monster_Roar_" + random(4) + ".mp");
} // end else if
break;
}
case 5:
{
if (trg.d.d._currentframe == 5)
{
quadf(trg.xp, trg.yp, 10, !altboss);
} // end if
break;
}
case 6:
{
if (trg.d.d._currentframe == 30)
{
trg.bh = false;
anarch = 25;
if (analt = altboss)
{
anarch = 50;
} // end if
if (trg.specoz)
{
anarch = 10;
analt = 5;
} // end if
}
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;
} // end else if
trg._visible = true;
} // end else if
if (trg.d.d._currentframe == 33)
{
trg._visible = false;
} // end if
break;
}
case 8:
{
if (trg.specoz)
{
if (fra % 40 == 0 && anarch <= -80 && trg.loap)
{
trg.loap = false;
trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 5.040000);
trg2.col = 3;
} // end if
} // end if
if (altboss && trg.gogo < 3 && trg.gogo > 1 && !trg.goner && fra % 8 == 0)
{
trg.gogo = trg.gogo - 0.400000;
trg2 = create(trg.xpp, random(300) + 150, 0, trg.xbew, 0, 0, 65);
_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);
} // end if
trg.xbew = trg.d._xscale * 0.180000;
if (trg.gogo > 0)
{
f1 = false;
if (trg.xp > 619)
{
trg.xpp = trg.xp = 10;
f1 = true;
}
else if (trg.xp < 21)
{
trg.xpp = trg.xp = 630;
f1 = true;
} // end else if
if (f1)
{
trg.loap = true;
if (altboss)
{
if (trg.goner)
{
trg.done = true;
} // end if
}
else
{
f1 = 95;
trg.yp = trg.yp + f1;
if (trg.yp > 430)
{
trg.yp = trg.yp - f1 * 3;
} // end if
} // end else if
--trg.gogo;
} // end if
}
else if ((trg.xp - trg.ypp) * trg.xbew > 0)
{
trg.d.gotoAndStop(1);
} // end else if
break;
}
} // End of switch
break;
}
case 81:
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trgnextd();
if ((trg.whut || trg.hp / hps[trg.s] < 0.500000) && trg._xscale > 90 && trg.alter == 1)
{
if (!trg.whut)
{
trg.gosplash = true;
trg.whut = true;
_root.soundy("Monster_Roar_2.mp", 100);
} // end if
trg.d.gotoAndStop(9);
} // end if
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);
} // end else if
_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);
} // end if
} // end if
} // end else if
break;
}
case 9:
{
trg.bh = false;
if (trg.d.d._currentframe == 25)
{
_root.soundy("summonsound.wav", 200);
xenf = 30;
trg2 = create(trg.xp + xenf, trg.yp - 20, 0, 0, 0, 0, 81);
trg3 = create(trg.xp - xenf, trg.yp - 20, 0, 0, 0, 0, 81);
trg2.hp = trg2.hp * 0.500000;
trg3.hp = trg3.hp * 0.500000;
trg2._xscale = trg3._yscale = 75;
trg3._xscale = trg2._yscale = 75;
} // end if
if (trg.d.d._currentframe == 65)
{
trg.done = true;
} // end if
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);
} // end else if
enf = enfget(xenf, yenf);
enf = -8.200000 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
shots(trg.xp, trg.yp, xenf, yenf, f1);
} // end if
break;
}
case 7:
{
if (trg.d.d._currentframe < 7)
{
break;
} // end if
trg.whup = trg.hp;
}
case 8:
{
enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000);
enf = 1.400000 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
trg.xbew = trg.xbew - xenf;
trg.ybew = trg.ybew - yenf;
sideflip(player.xp - trg.xp);
if (trg.whup > trg.hp + trg.mhp / 8)
{
trg.d.gotoAndStop(6);
} // end if
break;
}
case 6:
{
if (trg.d.d._currentframe > 20 && trg.d.d._currentframe < 50)
{
trg.ypp = 0;
trg.xpp = random(2) - 0.500000;
lasershow(trg);
trg.xpp = 0;
trg.ypp = random(2) - 0.500000;
lasershow(trg);
trg.xpp = trg.ypp = undefined;
} // end if
break;
}
} // End of switch
break;
}
case 84:
{
if (!trg.app)
{
trg.app = true;
_root.soundy("satan appear.mp");
} // end if
if (trg.d._currentframe == 3 && trg.d.d._currentframe == 17)
{
_root.soundy("satan blast.mp", 50);
} // end if
if (trg.d._currentframe == 8 && trg.d.d._currentframe == 83)
{
_root.soundy("satan grow.mp", 50);
} // end if
trg.ybew = trg.ybew * 0.800000;
trg.xbew = trg.xbew * 0.800000;
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;
} // end if
} // end if
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.100000);
create(trg.xp - xenf, trg.yp + yenf, 0, 0, 0, 0, 55.100000);
_root.soundy("satan blast.mp");
_root.soundy("summonsound.wav", 200);
} // end if
if (plh)
{
plh = false;
trg.d.gotoAndStop(2);
} // end if
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);
} // end if
if (trg.d.d._currentframe > 54)
{
++trg.pow;
} // end if
} // end if
} // end if
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);
} // end if
trg.yp = Math.max(165, trg.yp);
switch (trg.d._currentframe)
{
case 4:
{
yenf = Math.max(305, player.yp * 0.930000) - 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 = trg.xbew + absmax(xenf, 15) * 0.100000;
trg.ybew = trg.ybew + absmax(yenf, 7) * 0.100000;
}
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;
} // end else if
break;
}
case 5:
{
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);
} // end if
} // end if
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);
} // end else if
if (enf > 300)
{
enf = -10 / enf;
}
else
{
enf = -8.200000 / enf;
} // end else if
xenf = xenf * enf;
yenf = yenf * enf;
shots(trg.xp, trg.yp, xenf, yenf, f1);
} // end if
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 = trg.xp - v1;
lasershow(trg);
trg.xp = trg.xp + (v1 + v1);
lasershow(trg);
trg.xp = trg.xp - v1;
} // end if
break;
}
case 7:
{
if (trg.d.d._currentframe > 18 && trg.d.d._currentframe < 46)
{
trg.xpp = 0;
trg.ypp = 1;
v1 = 85;
trg.xp = trg.xp - v1;
lasershow(trg);
trg.xp = trg.xp + (v1 + v1);
lasershow(trg);
trg.xp = trg.xp - v1;
} // end if
break;
}
} // End of switch
break;
}
case 4:
{
if (trg.app != 2)
{
trg.app = 2;
_root.soundy("satan hurt.mp");
} // end if
devl();
if (trg.trg2 == undefined && trg.d.d._currentframe == 50 && trg.d._currentframe == 9)
{
trg2 = trg.trg2 = create(player.xp, player.yp, 0, 0, 0, 0, 84);
trg2.pow = 5;
trg2._visible = false;
trg2.trg2 = trg2.trg3 = trg;
} // end if
break;
}
} // End of switch
} // end else if
break;
}
case 83:
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trgnextd();
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.d.gotoAndStop(7);
}
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._visible = trg.bh = true;
} // end else if
break;
}
case 7:
{
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.200000 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
shots(trg.xp, trg.yp, xenf, yenf, f1);
} // end if
break;
}
case 6:
{
trg.xbew = trg.d._xscale * 0.180000;
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;
} // end else if
if (f1)
{
f1 = 95;
trg.yp = trg.yp + f1;
if (trg.yp > 430)
{
trg.yp = trg.yp - f1 * 3;
} // end if
--trg.gogo;
} // end if
}
else if ((trg.xp - trg.ypp) * trg.xbew > 0)
{
trg.d.gotoAndStop(1);
} // end else if
break;
}
} // End of switch
break;
}
case 82:
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trgnextd();
switch (trg.d._currentframe)
{
case 1:
case 2:
{
randrunx(1);
sideflip(trg.xbew);
walkframe(3);
if (random(40) == 0)
{
trg.d.gotoAndStop(5);
} // end if
break;
}
case 5:
{
if (trg.d.d._currentframe == 9)
{
green();
_root.soundy("heartout.wav", 100);
} // end if
break;
}
} // End of switch
break;
}
case 64:
{
trg.xp = Math.min(580, Math.max(60, trg.xp));
if (trg.specoz)
{
spidboss = true;
} // end if
if (fra % 3 == 0 && !trg.specoz)
{
splater(trg.xp + crand(), trg.yp + crand(random(20)), trg.spl + 1 + random(10), Math.random() * 0.500000 + 0.400000);
} // end if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trgnextd();
if ((trg.whut || trg.hp / hps[trg.s] < 0.500000) && trg.d._currentframe < 7)
{
if (!trg.whut)
{
trg.gosplash = true;
trg.whut = true;
} // end if
trg.d.gotoAndStop(7);
} // end if
if (fra % 7 == 0)
{
trg2 = parc("bloo", trg.xp, trg.yp);
trg2._xscale = trg2._xscale * 2;
trg2._yscale = trg2._xscale;
if (trg.specoz)
{
colorit(trg2, 0, 0, 0, 235, 235, 235);
}
else
{
colorit(trg2, 0, 2, 0, 0, 40, 0);
} // end if
} // end else if
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);
} // end if
} // end else if
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);
} // end if
} // end else if
break;
}
case 6:
{
if (trg.d.d._currentframe == 25)
{
_root.soundy("Monster_Grunt_5.mp", 100);
xenf = crand(10);
yenf = crand();
if (trg.specoz)
{
create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 29.100000);
}
else
{
create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 23 + random(2) * 8);
create(trg.xp - xenf, trg.yp - yenf, 0, 0, 0, 0, 23 + random(2) * 8);
} // end else if
_root.soundy("summonsound.wav", 120);
} // end if
break;
}
case 9:
{
if (trg.specoz)
{
if (trg.d.d._currentframe == 19)
{
boil();
_root.soundy("Wheezy_Cough_" + random(3) + ".mp", 100);
} // end if
}
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.400000 + xenf, trg.yp + yenf, 0, 0, 0, 0, 18);
trg3 = create(trg.xp + trg.d._xscale * 0.400000 - xenf, trg.yp - yenf, 0, 0, 0, 0, 18);
trg2.die = trg3.die = true;
trg2.fra = trg3.fra = -20;
} // end else if
break;
}
case 5:
{
if (trg.d.d._currentframe == 22)
{
f10 = true;
} // end if
break;
}
case 8:
{
if (trg.d.d._currentframe == 9)
{
f10 = true;
} // end if
break;
}
} // End of switch
if (f10)
{
if (trg.specoz)
{
trg.s = 11;
cirf(trg.xp, trg.yp - 50, 8, 6);
trg.s = 64;
}
else
{
green();
} // end if
} // end else if
break;
}
case 63:
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trgnextd();
if ((trg.whut || trg.hp / trg.mhp < 0.300000) && trg.d._currentframe < 8)
{
if (!trg.whut)
{
trg.gosplash = true;
trg.whut = true;
} // end if
trg.d.gotoAndStop(8);
} // end if
switch (trg.d._currentframe)
{
case 8:
case 9:
{
firemode(300, 8);
splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.600000 + 0.600000);
if (trg.fire <= 0)
{
enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000);
enf = 0.500000 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
} // end if
break;
}
case 1:
case 2:
{
randrun();
if (random(40) == 0 && ashut < 3)
{
trg.d.gotoAndStop(5);
}
else if ((Math.abs(trg.yp - player.yp) < 20 || trg.specoz && random(4) == 0) && random(5) == 0)
{
_root.soundy("Monster_Yell_A_" + random(3) + ".mp", 100);
sideflip(player.xp - trg.xp);
trg.d.gotoAndStop(6);
trg.xpp = trg.xp;
trg.ypp = trg.yp;
trg.gogo = true;
} // end else if
break;
}
case 5:
{
if (trg.d.d._currentframe == 25)
{
_root.soundy("Monster_Grunt_5.mp", 100);
if (trg.specoz)
{
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);
} // end if
} // end else if
break;
}
case 7:
{
if (trg.specoz)
{
trg.ybew = trg.ybew - absmax((trg.yp - player.yp) / 100, 0.400000);
} // end if
trg.xbew = trg.d._xscale * 0.180000;
if (trg.gogo)
{
if (trg.xp > 619)
{
trg.xp = 0;
trg.gogo = false;
}
else if (trg.xp < 21)
{
trg.xp = 640;
trg.gogo = false;
} // end else if
}
else if ((trg.xp - trg.ypp) * trg.xbew > 0)
{
trg.d.gotoAndStop(1);
} // end else if
break;
}
} // End of switch
break;
}
case 62:
{
f14 = 33;
if (altboss)
{
if (trg.d._currentframe == 6 || trg.d._currentframe == 10)
{
trg.d._xscale = trg.d._yscale = 85;
}
else
{
trg.d._xscale = trg.d._yscale = 65;
} // end else if
f14 = 26;
} // end if
++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;
trg._visible = true;
trg.xbew = trg.ybew = 0;
trg.dy = 0;
if (trg.d._currentframe == 1)
{
trg.gogo = 3;
trg._visible = false;
} // end if
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);
} // end if
} // end else if
if (trg.d.d._currentframe == 23 || (trg.d.d._currentframe == 24 || trg.d.d._currentframe == 25) && !altboss)
{
if (trg.specoz == 16)
{
cirf(trg.xp, trg.yp - 20, 8, 6);
}
else
{
green();
} // end if
} // end else if
} // end else if
}
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;
} // end if
if (trg.ybew < -0.500000)
{
trg.d.gotoAndStop(2);
}
else
{
trg.d.gotoAndStop(1);
} // end else if
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);
} // end if
if (trg.beenx.length > 80)
{
f2 = [];
f3 = [];
f4 = [];
for (a = 0; a < 50; a++)
{
f2[a] = trg.beenx[a];
f3[a] = trg.beeny[a];
f4[a] = trg.beenf[a];
} // end of for
trg.beenx = new Array(50);
trg.beeny = new Array(50);
trg.beenf = new Array(50);
for (a = 0; a < 50; a++)
{
trg.beenx[a] = f2[a];
trg.beeny[a] = f3[a];
trg.beenf[a] = f4[a];
} // end of for
} // end if
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);
} // end else if
}
else
{
enf = enfget(trg.xpp, trg.ypp);
trg.zp = -2 - enf * 0.020000;
enf = 8 / enf;
trg.xpp = trg.xpp * enf;
trg.ypp = 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;
} // end if
_root.soundy("Maggot_Burst_Out_" + random(2) + ".wav", f1);
} // end if
} // end else if
trg.dy = trg.dy + trg.zp;
trg.zp = trg.zp + 0.400000;
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;
} // end if
_root.soundy("Maggot_Enter_Ground_" + random(2) + ".wav", f1);
} // end if
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 = trg.xbew * 0.950000;
trg.ybew = trg.ybew * 0.950000;
enf = (250 - enf) / enf * 0.003000;
trg.xbew = trg.xbew + xenf * enf;
trg.ybew = trg.ybew + yenf * enf;
enfcheck(trg.xp, trg.yp, 320, 280, 10000);
enf = Math.min(200, enf) / enf * 0.002000;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = 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.xpp - trg.xp;
trg.ypp = trg.ypp - trg.yp;
trg.gogo = true;
} // end if
} // end else if
} // end else if
}
else if (trg.worm == 7)
{
trg.bh = false;
if (worm[1].xppp > 0)
{
trg.xbew = trg.ybew = 0;
trg2 = worm[1];
if (trg2.lasx + 15 > fra)
{
trg.d.gotoAndStop(6);
}
else
{
trg.d.gotoAndStop(10);
} // end else if
trg.xp = trg2.xppp;
trg.yp = trg2.yppp;
trg._visible = true;
}
else
{
trg._visible = false;
} // end else if
}
else
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
f1 = [0, 0, 4, 2, 4, 4, 5];
if (altboss)
{
f1 = [0, 0, 2, 2, 2, 2, 2, 2];
} // end if
trg.d.gotoAndStop(f1[trg.worm]);
if (altboss)
{
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];
} // end else if
trg.d.d._xscale = trg.d.d._yscale = f1[trg.worm];
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;
}
else
{
trg._visible = false;
trg.bh = false;
trg.dy = 33;
} // end else if
if (altboss && wormet == 6)
{
_root.tex = trg.dy;
if (random(2) == 0 && trg.dy < -30 && wormfo <= fra)
{
wormfo = fra + 30;
quadf(trg.xp, trg.yp, 5, 2);
} // end if
} // end if
}
else
{
trg._visible = false;
trg.bh = false;
} // end else if
} // end else if
trg.d.sh._y = -trg.dy;
trg.d._y = trg.dy;
if (altboss)
{
trg.d._y = trg.dy * 0.800000 - 14;
} // end if
break;
}
} // End of switch
} // End of the function
function bord(f1, f2, f3, f4)
{
if (f1 == undefined)
{
f1 = 580;
f2 = 60;
f3 = 410;
f4 = 160;
} // end if
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 = trg.xbew * -1;
} // end if
if (f6)
{
trg.ybew = trg.ybew * -1;
} // end if
} // end if
return (f5 || f6);
} // End of the function
function cetf()
{
trg.dx = trg._rotation * 0.300000;
} // End of the function
function smarts()
{
smartsx();
ssmarts();
smartb();
switch (trg.s)
{
case 89:
case 19:
{
trg2 = undefined;
if (trg.specoz == 7)
{
trg.xbew = trg.xbew * 0.960000;
trg.ybew = trg.ybew * 0.960000;
} // end if
trg.outway = true;
trg.ggh = true;
markhere();
if (levz[trg.til] > 1.800000)
{
hurt(trg, 3);
} // end if
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)
{
trg.trg2 = trg2;
trg2.whop = true;
} // end if
} // end if
} // end of for...in
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);
} // end else if
}
else
{
if (trg.trg2.s == 19 || trg.trg2.s == 89)
{
trg2 = trg.trg2;
trg2.trg3 = trg;
if (trg.specoz == 7)
{
if (Math.abs(trg2.hp - trg.hp) > 1)
{
f1 = (trg2.hp - trg.hp) / 2;
trg2.hp = trg2.hp - f1;
trg.hp = trg.hp + f1;
} // end if
} // end if
if (trg.s == 19)
{
trg.d.gotoAndStop(7);
} // end if
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;
} // end if
}
else if (trg2.beenx.length > 0)
{
if (trg.specoz == 7)
{
f0 = 6;
}
else
{
f0 = 4;
} // end else if
if (trg.s == 89)
{
--f0;
} // end if
if (trg.s == 89 && trg2.trg2 == undefined)
{
--f0;
} // end if
if (altboss && trg.s == 19)
{
--f0;
} // end if
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;
} // end else if
if (f4 > trg.yp)
{
f2 = 1;
}
else
{
f2 = -1;
} // end else if
trg._rotation = 15 * f2 * f1;
cetf();
} // end if
} // end if
trg.xp = f3;
trg.yp = f4;
f1 = trg2.beenf[f0];
}
else
{
enf = f2 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
trg.xp = trg.xp - xenf;
trg.yp = trg.yp - yenf;
getf();
trg2.beenx.push(trg2.beenx[f0] + xenf);
trg2.beeny.push(trg2.beeny[f0] + yenf);
trg2.beenf.push(f1);
} // end else if
trg2.whop = true;
} // end else if
}
else if (!trg.whop && trg.s != 89)
{
if (trg.fail2++ > 10)
{
trg.dones = true;
} // end if
}
else if (!trg.hpu)
{
trg.hpu = true;
if (trg.specoz != 7)
{
if (trg.s != 89)
{
trg.hp = trg.hp + 25;
} // end if
} // end if
}
else if (trg.fire <= 30)
{
if (trg.s == 19)
{
trg.d.gotoAndStop(1);
} // end if
if (altboss && trg.s == 19)
{
if (enfget(trg.xbew, trg.ybew) < 0.400000)
{
trg.xbew = trg.xbew + crand(0.100000);
trg.ybew = trg.ybew + crand(0.100000);
} // end if
if (trg.xbew > 0)
{
f1 = 1;
}
else
{
f1 = -1;
} // end else if
if (trg.ybew > 0)
{
f2 = 1;
}
else
{
f2 = -1;
} // end else if
if (Math.abs(trg.ybew) > Math.abs(trg.xbew))
{
trg._rotation = 0;
}
else
{
trg._rotation = 15 * f2 * f1;
} // end else if
cetf();
trg.xbew = trg.xbew * 0.850000;
trg.ybew = trg.ybew * 0.850000;
if (trg.gor)
{
trg.xbew = trg.xbew + f1 * 3;
trg.ybew = trg.ybew + f2 * 1.600000;
}
else
{
trg.xbew = trg.xbew + f1 * 1.800000;
trg.ybew = trg.ybew + f2 * 3;
} // end else if
if (bord() && random(10) == 0)
{
trg.gor = random(2) == 0;
} // end if
}
else
{
randrunx(2);
} // end else if
killshit(trg.nextl);
xenf = trg.xbew;
yenf = trg.ybew;
getf();
if (trg.specoz == 3 && random(3) == 0)
{
firewalk();
} // end if
}
else
{
--trg.fire;
} // end else if
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);
} // end else if
} // end else if
if (trg.s == 19)
{
trg.d.d.d.gotoAndStop(f1);
}
else
{
if (trg2.s == 89)
{
enfcheck(trg2.xp, trg2.yp, trg.xp, trg.yp, 1000);
getf();
} // end if
f2 = [0, 2, 6, 1, 5];
trg.d.gotoAndStop(f2[f1]);
} // end else if
if (trg.beenx.length > 10)
{
f2 = [];
f3 = [];
f4 = [];
for (a = 0; a < 7; a++)
{
f2[a] = trg.beenx[a];
f3[a] = trg.beeny[a];
f4[a] = trg.beenf[a];
} // end of for
trg.beenx = new Array(7);
trg.beeny = new Array(7);
trg.beenf = new Array(7);
for (a = 0; a < 7; a++)
{
trg.beenx[a] = f2[a];
trg.beeny[a] = f3[a];
trg.beenf[a] = f4[a];
} // end of for
} // end if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
if (random(16) == 0 && trg.s == 19)
{
splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.600000 + 0.600000);
} // end if
if (trg.s == 19 && !altboss)
{
if (trg.whop > 0)
{
}
else if (_root.lev != _root.chamb && fra > 20 && (random(100) == 0 || random(20) == 0 && trg.whop < 0))
{
f1 = 5;
f2 = ingrid(trg.beenx[f1], trg.beeny[f1]);
if (trg.specoz != 7)
{
turd("breakblock", f2, true);
} // end if
} // end if
} // end else if
trg.whop = false;
break;
}
case 22:
{
trg.pbh = fra % 2 == 0;
if (trg.d._currentframe < 3)
{
angstfind();
sideflip(trg.xbew);
walkframe(2);
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
}
else
{
trgnextd();
} // end else if
if (trg.needmove > 0 && trg.fire-- <= 0 && ashut < random(5) + 4)
{
if (enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 300))
{
if (linecheckxx(trg.xp, trg.yp, player.xp, player.yp))
{
trg.fire = 75;
trg.d.gotoAndStop(5);
sideflip(-xenf);
f1 = trg.xp;
f2 = trg.yp;
enf = -7 / enf;
xenf = xenf * enf;
yenf = yenf * enf;
var trg2 = create(f1, f2, 0, xenf, yenf, 0, 18);
_root.soundy("Wheezy_Cough_" + random(3) + ".mp", 100);
trg2.fra = trg2.fra - 20;
trg2.die = true;
trg2.pbh = true;
}
else
{
trg.fire = 7;
} // end else if
}
else
{
trg.fire = 3;
} // end if
} // end else if
break;
}
case 16:
{
trg.pbh = fra % 2 == 0;
if (trg.d._currentframe < 3)
{
if (trg.alter == 3)
{
pathfind(trg, playx, playy, 1.200000);
if (fra % 5 == 0)
{
if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 40))
{
trg.dones = true;
} // end if
} // end if
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
}
else
{
angstfind();
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
} // end else if
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);
} // end else if
if (trg.gh && random(300) == 0)
{
if (trg.alter == 3)
{
}
else
{
trg.d.gotoAndStop(5);
} // end if
} // end else if
}
else
{
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trgnextd();
if (trg.d.d._currentframe > 20)
{
trg.dones = true;
if (trg.alter != 3)
{
quadf(trg.xp, trg.yp, 7);
} // end if
} // end if
} // end else if
break;
}
case 17:
{
randrun();
if ((fra + trg.e) % 3 == 0)
{
splater(trg.xp, trg.yp, 1 + random(10), Math.random() * 0.900000 + 0.500000);
} // end if
trg.xbew = trg.xbew * 0.600000;
trg.ybew = trg.ybew * 0.600000;
break;
}
case 15:
{
trg.pbh = fra % 2 == 0;
trgnextd();
if (trg.alter == 2)
{
blackout = 2;
} // end if
if ((fra + trg.e) % 5 == 0)
{
splater(trg.xp, trg.yp, 1 + random(10), Math.random() * 0.700000 + 0.500000);
} // end if
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
switch (trg.mode)
{
case 1:
{
trg.modedone = false;
trg.mode = random(2) + 1;
trg.mof = fra;
break;
}
case 2:
{
if (trg.d._currentframe == 1 && trg.modedone || random(30) == 0 && fra - trg.mof > 30)
{
trg.mode = 2;
trg.modedone = false;
}
else
{
trg.d.gotoAndStop(5);
if (trg.d.d._currentframe > 8 && !trg.modedone)
{
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);
} // end else if
trg.modedone = true;
} // end if
} // end else if
break;
}
default:
{
trg.mof = fra;
randrun();
break;
}
} // End of switch
break;
break;
}
case 38:
{
markhere(trg);
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
if (trg.d._currentframe <= 5)
{
if (random(10) == 0)
{
splater(trg.xp, trg.yp, random(10), Math.random() * 0.300000 + 0.200000);
} // end if
trgnextd();
firemode(200, 5);
if (enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 400) || trg.telp > 20)
{
++trg.telp;
} // end if
trg.telp = trg.telp + Math.random() * 0.100000;
if (trg.telp > 20)
{
if (trg.xpp == undefined)
{
telpx();
} // end if
if (trg.xpp == undefined)
{
telpx();
} // end if
if (trg.d._currentframe == 1 && trg.telp > 40 && trg.xpp != undefined)
{
trg.d.gotoAndStop(6);
} // end if
} // end if
trg.bh = true;
}
else
{
trg.bh = false;
trgnextd();
if (trg.d._currentframe == 1 && trg.xpp != undefined)
{
trg.d.gotoAndStop(7);
trg.xp = trg.xpp;
trg.yp = trg.ypp;
trg.xpp = undefined;
trg.telp = 0;
} // end if
} // end else if
if (trg.fire <= 0)
{
enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000);
enf = 0.330000 / enf;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
} // end if
break;
}
case 59:
{
markhere(trg);
trg.xbew = trg.xbew * 0.650000;
trg.ybew = trg.ybew * 0.650000;
f1 = false;
f2 = trgnextd();
if (f2 == 2 || f2 == 5)
{
trg.d.gotoAndStop(6);
} // end if
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");
} // end if
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);
} // end if
} // end if
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);
} // end else if
trg.f1 = 0;
f1 = false;
} // end if
}
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)
{
quadf(trg.xp, trg.yp + 10, 7, 2);
_root.soundy("meatheadshoot" + fra % 3 + ".wav");
} // end if
telpx(true);
}
else
{
trg.f1 = Math.min(1, trg.f1 * 1.070000 + 0.005000);
trg.xp = trg.xpp * trg.f1 + trg.xp * (1 - trg.f1);
trg.yp = trg.ypp * trg.f1 + trg.yp * (1 - trg.f1);
} // end if
} // end else if
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);
green();
} // end if
f1 = true;
} // end else if
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;
} // end if
break;
}
case 60:
{
if (trg.d._currentframe != 5)
{
trg.d.gotoAndStop(1);
} // end if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trg.xp = trg.xpp;
trg.yp = trg.ypp;
if (trg.d._currentframe == 1)
{
f1 = rotget(trg.xp - player.xp - player.xbew * 1, trg.yp - player.yp - player.xbew * 1) - 90;
f1 = 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 && random(10) == 0)
{
trg.d.gotoAndStop(5);
} // end if
trg.rp = trg.rp + f1;
}
else if (trg.d._currentframe == 5)
{
if (trgnextd(trg.d.d.d))
{
trg.d.gotoAndStop(1);
} // end if
if (trg.d.d.d.doit)
{
trg.d.d.d.doit = false;
lasershowx(trg.rp * p180);
} // end if
trg.d.d.d._rotation = trg.rp;
} // end else if
trg.d.hx._rotation = trg.rp;
break;
}
case 90:
{
bord(580, 60, 410, 170);
}
case 26:
{
if (trg.s == 26)
{
bord(580, 60, 410, 170);
} // end if
trg.outway = false;
if (random(10) == 0)
{
splater(trg.xp, trg.yp, random(10), Math.random() * 0.500000 + 0.400000);
} // end if
if (trg.fire <= 0 || trg.s == 90 && trg.d._currentframe < 3)
{
enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000);
enf = 0.130000 / enf;
if (trg.alter == 2 && trg.s == 26)
{
enf = enf * 3;
} // end if
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
} // end if
trg.xbew = trg.xbew * 0.930000;
trg.ybew = trg.ybew * 0.930000;
}
case 56:
case 12:
case 27:
case 42:
{
if (trg.s == 27)
{
if (trg.d._currentframe == 5 && (trg.d.d._currentframe == 9 || trg.d.d._currentframe == 55))
{
_root.soundy("animal_squish" + random(3) + ".wav", 100);
} // end if
} // end if
f1 = 4;
if (trg.s == 42)
{
trg.xp = trg.xpp;
trg.yp = trg.ypp;
f1 = 12;
levz[trg.til] = 3;
} // end if
if (justnow > 30 && trg.s == 42)
{
trg.d.gotoAndStop(3);
}
else
{
if (trg.s != 26 && trg.s != 90)
{
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
} // end if
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);
} // end else if
if (trg.alter != 2 || trg.s != 26)
{
firemode(200, f1);
} // end if
} // end else if
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);
} // end if
}
else
{
trg.bh = true;
} // end else if
}
else
{
trg.whuz = true;
trg.d.gotoAndStop(5);
trg.d.d.gotoAndStop(21);
} // end else if
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");
} // end if
} // end if
if (trg.s == 56)
{
trg.xp = trg.xpp;
trg.yp = trg.ypp;
} // end if
if (trg.s == 42)
{
levz[trg.til] = 2;
} // end if
break;
}
case 26.500000:
{
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.500000 + 0.200000);
} // end if
break;
}
case 11:
{
if (!trg.bnuts)
{
trg.d.bb._visible = false;
}
else
{
firewalk();
} // end else if
if (random(10) == 0)
{
splater(trg.xp, trg.yp, random(10), Math.random() * 0.500000 + 0.400000);
} // end if
trg.xbew = trg.xbew * 0.750000;
trg.ybew = trg.ybew * 0.750000;
randrun();
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);
trg.trg2.outway = true;
trg2.trg2 = trg;
}
else
{
trg2 = trg.trg2;
if (trg2.hp <= 0 || random(1000) == 0)
{
trg.gosplash = true;
attach(trg, 11);
trg.s = 11;
trg.outway = true;
trg.hp = hps[trg.s];
splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.600000);
}
else
{
trg2.d._xscale = trg.d._xscale;
trg2.d.gotoAndStop(6);
trg2.fra = -100;
trg2.s = 26.500000;
trg2.pbh = true;
trg2.alter = 1;
--trg.fire;
if (trg.d._currentframe < 3)
{
trg2.xp = trg.xp;
trg2.yp = trg.yp;
trg2.xbew = trg2.ybew = 0;
trg2._visible = false;
trg2.bh = false;
if (fra % 4 == 0)
{
if (enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 1.500000, player.yp + player.ybew * 1.500000, 130))
{
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");
} // end if
}
else
{
trg.see = false;
} // end if
} // end if
} // end else if
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;
} // end if
for (i = 0; i < 9; i++)
{
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 = f2 * (Math.max(0, f3 - enf) / f3);
trg3._y = -yenf * f1 - 25 + f2 + i - 6;
trg3._visible = true;
} // end of for
if (trg.d._xscale < 0)
{
xenf = -xenf;
} // end if
enf = 0.700000 / enf;
trg2.xbew = trg2.xbew + xenf * enf;
trg2.ybew = trg2.ybew + yenf * enf;
f1 = 0.900000 + trg.fire * 0.002800;
trg2.xbew = trg2.xbew * f1;
trg2.ybew = trg2.ybew * f1;
trg2._visible = true;
trg2.bh = true;
} // end if
} // end else if
} // end else if
} // end else if
}
case 87:
case 58:
case 24:
case 10:
{
gochar = trg.s != 58;
if (trg.s != 35)
{
f1 = trgnextd();
if (trg.d._currentframe == 6 && trg.s == 58)
{
telpx(true);
} // end if
if (f1 == 6 && trg.s == 58)
{
if (trg.xpp != undefined)
{
trg.xp = trg.xpp;
trg.yp = trg.ypp;
trg.d.gotoAndStop(5);
trg.xpp = undefined;
} // end if
} // end if
} // end if
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");
} // end if
} // end if
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.500000 + 0.200000);
}
else
{
splater(trg.xp, trg.yp, random(10), Math.random() * 0.500000 + 0.200000);
} // end if
} // end else if
walkframe();
if (trg.s == 58)
{
pathfind(trg, playx, playy, 0.800000);
}
else if (trg.s == 24)
{
pathfind(trg, playx, playy, 0.400000 + trg.alter * 0.350000);
}
else
{
pathfind(trg, playx, playy, 0.600000);
} // end else if
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);
} // end if
} // end if
} // end if
if (trg.s == 58)
{
if (random(30) == 0 && !trg.lastv)
{
trg.d.gotoAndStop(6);
} // end if
} // end if
}
else
{
if (trg.s == 87 && trg.d._currentframe == 5 && trg.d.d._currentframe == 5)
{
green();
_root.soundy("heartout.wav", 70);
} // end if
if (trg.alter == 2)
{
if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 200))
{
enf = 0.500000 / enf;
trg.xbew = trg.xbew + xenf * enf;
trg.ybew = trg.ybew + yenf * enf;
} // end if
trg.xbew = trg.xbew * 0.830000;
trg.ybew = trg.ybew * 0.830000;
}
else
{
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
} // end else if
} // end else if
break;
}
} // End of switch
} // End of the function
function physix()
{
for (e in ball)
{
trg = ball[e];
f1 = 1;
if (trg.s < 5)
{
if (sloww > -40)
{
f1 = Math.max(0.750000, 0.500000 - sloww / 80);
if (sloww > 0)
{
trg.free = true;
} // end if
}
else
{
f1 = 1;
} // end else if
}
else if (slow > -40)
{
f1 = Math.max(0.500000, 0.500000 - slow / 80);
if (slow > 0)
{
trg.free = true;
} // end if
}
else if (trg.spid > 0)
{
--trg.spid;
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
} // end else if
if (trg.s == 7 || trg.s == 8)
{
if (Math.abs(trg.ybew) <= 0)
{
trg.ybew = trg.ypp * 0.700000;
} // end if
} // end if
if (trg.frezz <= 0 || scare > 0)
{
if (f1 == 1)
{
trg.xp = trg.xp + trg.xbew;
trg.yp = trg.yp + trg.ybew;
}
else
{
trg.xp = trg.xp + trg.xbew * f1;
trg.yp = trg.yp + trg.ybew * f1;
} // end if
} // end else if
trg.xb = trg.yb = trg.rr = 0;
} // end of for...in
for (e in ball)
{
trg = ball[e];
if (trg.dones)
{
trg.xbew = trg.ybew = 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 _loc2 = new flash.geom.Transform(trg2);
_loc2.colorTransform = trg.colo;
} // end if
if (blackout == 2)
{
colorit(trg2, 0, 0, 0, 0, 0, 0);
} // end if
} // end else if
trg.done = true;
} // end if
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();
} // end if
break;
}
case 5:
{
trg2 = trg.d.d.d;
break;
}
case 2:
{
if (trg.bomb)
{
trg.spl = 30;
if (trg.bombo)
{
trg.header = 20;
}
else
{
trg.header = 300;
} // end else if
trg.dfr = true;
trg.s = 4;
attach(trg, 4);
trg.d.gotoAndStop(5);
trg2 = undefined;
break;
} // end if
}
case 9:
{
if (!trg.dsound)
{
trg.dsound = true;
_root.soundy("TearImpacts" + random(3) + ".mp", 85);
} // end if
}
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.800000 + 0.100000);
} // end if
if (!trg.firstt)
{
trg.firstt = true;
if (trg.tooth)
{
trg.d._rotation = random(60) - 30;
if (random(2) == 0)
{
trg.d._xscale = trg.d._xscale * -1;
} // end if
}
else
{
trg.d._rotation = random(360);
} // end if
} // end else if
trg2 = trg.d;
} // end if
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;
} // end if
} // end of for...in
if (f1)
{
trg.bossd = true;
} // end if
} // end if
}
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);
} // end else if
trg2 = trg.d.d;
if (trg.s == 102)
{
if (trg2._currentframe == 17)
{
_root.soundy("superholy.wav", 200);
} // end if
}
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();
} // end if
}
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();
} // end if
}
else if (trg.s == 28)
{
if (trg2._currentframe > 70 - trg.mag * 18 && trg2._currentframe < 84 - trg.mag * 21 && fra % 5 == 0)
{
splater(trg.xp, trg.yp, random(10) + 1 + trg.spl, 1 + Math.random() * 2);
gosplash();
} // end if
}
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.500000);
gosplash();
} // end if
}
else if (!trg.firsttx)
{
trg.firsttx = true;
gosplash();
} // end else if
f1 = Math.random() * 0.700000 + 0.400000;
if (trg.s == 14)
{
f1 = f1 * 0.700000;
} // end if
if (trg2._currentframe <= 3)
{
splater(trg.xp, trg.yp, random(10) + 1 + trg.spl, f1);
} // end if
break;
}
} // End of switch
if (trg2._currentframe == trg2._totalframes && trg2._alpha)
{
trg.done = true;
}
else
{
trg2.nextFrame();
} // end else if
trg.sh._visible = false;
} // end if
} // end of for...in
for (e = 0; e < ball.length; e++)
{
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;
} // end if
} // end if
if (trg.s == 30)
{
--boils;
} // end if
ball.splice(e, 1);
removeMovieClip (trg);
trg.swapDepths(87);
} // end if
} // end of for
for (e = 0; e < ball.length; e++)
{
trg = ball[e];
trg.gh = false;
} // end of for
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;
} // end if
++e;
if (trg.s > 3)
{
if ((trg.pbh || trg.outway) && trg.bh && !trg.dones)
{
f1 = gridp(trg.xp, trg.yp, -0.500000, -0.500000);
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);
continue;
} // end if
if (trg.ph && trg.bh && !trg.dones)
{
bollocks.push(e - 1);
continue;
} // end if
if (trg.bh && !trg.dones)
{
f1 = gridp(trg.xp, trg.yp, -0.500000, -0.500000);
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);
} // end if
} // end if
} // end while
for (i = 1; i < 300; i++)
{
tests.setPixel(i, i, 1);
} // end of for
gxee = gxe * gridmax;
for (i = 1; i < gxee; i = i + gridmax)
{
for (o = 1; o < gye; o++)
{
for (z = 0; z < gridmax && grid.getPixel(i + z, o) != 0; z++)
{
e = grid.getPixel(i + z, o) - 1;
for (c = z + 1; c < gridmax && grid.getPixel(i + c, o) != 0; c++)
{
a = grid.getPixel(i + c, o) - 1;
ballhit(e, a);
} // end of for
} // end of for
} // end of for
} // end of for
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];
for (z = 0; z < gridmax && grid2.getPixel(i + z, o) != 0; z++)
{
a = grid2.getPixel(i + z, o) - 1;
ballhit(e, a);
} // end of for
if (trg.s < 5)
{
for (z = 0; z < gridmax && grid.getPixel(i + z, o) != 0; z++)
{
a = grid.getPixel(i + z, o) - 1;
ballhit(e, a);
} // end of for
} // end if
} // end if
} // end if
} // end of for...in
for (i in bollocks)
{
a = bollocks[i];
e = ea;
ballhit(e, a);
for (z in flys)
{
e = flys[z];
ballhit(e, a);
} // end of for...in
} // end of for...in
tip(3);
if (flys.length > 2)
{
fll = 0.666667;
}
else
{
fll = 1;
} // end else if
flys = [];
for (e in ball)
{
trg = ball[e];
trg.xbew = trg.xbew + trg.xb;
trg.ybew = trg.ybew + trg.yb;
trg.xb = trg.yb = trg.rr = 0;
} // end of for...in
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;
} // end if
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(417, Math.max(145, trg.yp));
if (trg == player)
{
if (trg.xp == 580 || trg.xp == 60 || trg.xp == 417 || trg.xp == 145)
{
if (horse < 90)
{
horse = undefined;
trg.xbew = trg.xbew * 0.600000;
trg.ybew = trg.ybew * 0.600000;
} // end if
f1 = ingrid(trg.xp, trg.yp);
if (levz[f1] > 1 && hhorse <= 0)
{
turdb = f1;
} // end if
} // end else if
} // end else if
} // end else if
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;
} // end if
} // end if
} // end else if
f1 = trg.xp;
f2 = trg.yp;
f5 = f6 = 0;
siz = sizes[trg.s] + 2;
v1 = trg.s;
if (trg == player)
{
if (ladder != undefined)
{
if (levz[ladder] == 3)
{
levz[ladder] = 0;
} // end if
} // end if
} // end if
if (trg.shot)
{
if (trg._alpha > 50 && trg.sss != 84 && !trg.knife)
{
if (mhity(f1, f2))
{
mhix();
}
else if (levz[f33] == 0.990000)
{
if (webs[f33] && !trg.slowed)
{
trg.slowed = true;
trg.xbew = trg.xbew * 0.640000;
trg.ybew = trg.ybew * 0.640000;
} // end if
} // end else if
}
else if (random(10) == 0 || trg.knife)
{
killshit(ingrid(trg.xp, trg.yp));
} // end else if
if (ups[216])
{
killshit(ingrid(Lodo.xp, Lodo.yp));
} // end if
}
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 = f5 + hardx[v1][i];
f6 = f6 + hardy[v1][i];
} // end if
} // end if
} // end of for...in
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 = f5 + hardx[v1][i];
f6 = f6 + hardy[v1][i];
} // end if
} // end if
} // end of for...in
} // end if
}
else
{
f3 = false;
for (i in hardx[v1])
{
f3 = !f3;
if (f3)
{
if (mhit(f1 + hardx[v1][i], f2 + hardy[v1][i]))
{
f5 = f5 + hardx[v1][i];
f6 = f6 + hardy[v1][i];
} // end if
} // end if
} // end of for...in
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 = f5 + hardx[v1][i];
f6 = f6 + hardy[v1][i];
} // end if
} // end if
} // end of for...in
} // end else if
} // end else if
if (Math.abs(f5) > 0 || Math.abs(f6) > 0)
{
if (trg.s == 9)
{
trg.dones = true;
} // end if
if (trg == player && fra > 20)
{
if (horse < 90)
{
horse = undefined;
trg.xbew = trg.xbew * 0.600000;
trg.ybew = trg.ybew * 0.600000;
} // end if
f1 = f6 * trg.ybew + f5 * trg.xbew;
trg.xbew = trg.xbew * 0.880000;
trg.ybew = trg.ybew * 0.880000;
if (f1 > 0 || lastf1 > fra)
{
if (f1 > 0)
{
lastf1 = fra + 4;
} // end if
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;
} // end if
} // end if
} // end if
} // end else if
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));
} // end if
} // end if
} // end if
} // end if
} // end if
roty = sizes[trg.s] * 3.141593 / 180;
f7 = Math.sqrt(f5 * f5 + f6 * f6);
f5 = f5 / f7;
f6 = f6 / f7;
if (trg.rotn != undefined)
{
trg.roty = Math.atan(-f5 / f6) / 3.141593 * 180;
if (f6 >= 0)
{
trg.roty = trg.roty + 180;
} // end if
trg.rotn = 3;
} // end if
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);
} // end if
f9 = f8 * 1.800000 - 0.100000;
if (f9 < -10)
{
soundy("mh");
} // end if
if (trg.s == 99)
{
f9 = f9 * 1.400000;
} // end if
trg.xbew = trg.xbew + f5 * f9;
trg.ybew = 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;
} // end if
for (v2 = siz2 - 10; !mhity(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10; v2 = v2 + 4)
{
} // end of for
for (v2 = v2 - 4; !mhity(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10; v2 = v2 + 0.500000)
{
} // end of for
}
else if (trg.flyby)
{
for (v2 = siz2 - 10; !mhitx(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10; v2 = v2 + 4)
{
} // end of for
for (v2 = v2 - 4; !mhitx(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10; v2 = v2 + 0.500000)
{
} // end of for
}
else
{
for (v2 = siz2 - 10; !mhit(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10; v2 = v2 + 4)
{
} // end of for
for (v2 = v2 - 4; !mhit(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10; v2 = v2 + 0.500000)
{
} // end of for
} // end else if
v2 = v2 - siz2;
if (v2 > 0)
{
v2 = 0;
}
else
{
v2 = v2 * Math.max(0.200000 - v2 * 0.050000, 1);
} // end else if
trg.xp = trg.xp + f5 * v2;
trg.yp = trg.yp + f6 * v2;
f8 = -f8 / siz;
f8 = 1 - f8 * 0.500000;
trg.xbew = trg.xbew * f8;
trg.ybew = trg.ybew * f8;
} // end if
} // end if
} // end if
if (turdz)
{
levz[turdb] = turdz;
turdz = undefined;
} // end if
if (trg.rr > 0)
{
trg.xbew = trg.xbew + trg.xb / trg.rr;
trg.ybew = trg.ybew + trg.yb / trg.rr;
} // end if
if (trg == player)
{
if (ladder != undefined)
{
if (levz[ladder] == 0)
{
levz[ladder] = 3;
} // end if
} // end if
} // end if
} // end if
} // end of for...in
for (e = 0; e < ball.length; e++)
{
trg = ball[e];
if (trg.laser)
{
trg2 = trg.d.l;
if (Math.abs(trg.xpp) > Math.abs(trg.ypp))
{
f1 = lass;
}
else
{
f1 = lass;
} // end else if
trg2._yscale = f1;
trg2._xscale = lassd * 30;
} // end if
trg._x = trg.xp;
trg._y = trg.yp;
if (trg.s == 19)
{
if (trg.dx)
{
trg._x = trg._x - trg.dx;
} // end if
} // end if
if (trg.s == 19 && !altboss)
{
continue;
} // end if
if (trg.s == 26.500000)
{
} // end if
if (trg.worm)
{
if (trg.d._y > 10)
{
trg2 = worm[1];
trg._y = Math.min(trg._y, trg2.yppp);
} // end if
} // end if
if (trg.s == 2)
{
trgdy(!trg.piss && !ups[149]);
}
else if (trg.s == 7 || trg.s == 8 || trg.s == 9)
{
trgdy();
} // end else if
if (!trg.nod)
{
trg.dpppp = Math.max(e, Math.round(trg.yp) * 100 + 10030 + e);
if (trg.s == 28)
{
trg.dpppp = trg.dpppp + (2500 - trg.mag * 1000);
} // end if
if (trg.s == 5 && trg.d._currentframe == 9)
{
trg.dpppp = trg.dpppp - 2500;
} // end if
if (trg.s == 26.500000)
{
trg.dpppp = trg.dpppp + 2500;
} // end if
if (trg.worm)
{
if (trg.worm == 7)
{
trg.dpppp = trg.dpppp + 1000;
}
else
{
trg.dpppp = trg.dpppp - Math.max(-30, trg.d._y) * 200;
} // end if
} // end else if
if (trg.s == 1 && trg.dones)
{
trg.dpppp = trg.dpppp + 100000000;
} // end if
if (trg.flyai && gurdy)
{
trg.dpppp = trg.dpppp + 6000;
} // end if
trg.swapDepths(trg.dpppp);
} // end if
if (trg.col)
{
f1 = trg.col;
if (trg.s == 5 && trg.d._currentframe == 7)
{
f1 = pic(f1);
} // end if
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);
} // end if
if (trg.s == 5)
{
if (trg.d.d._currentframe > 35 && trg.d.d._currentframe < 41)
{
if (trg.col == 31)
{
f1 = 2;
}
else if (trg.col == 32)
{
f1 = 4;
}
else if (trg.col == 22)
{
f1 = 5;
}
else if (trg.col == 23)
{
f1 = 6;
}
else
{
f1 = 1;
} // end else if
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);
} // end if
} // end if
} // end of for
tip(4);
} // End of the function
function emo(f1)
{
if (f1)
{
if (emosound)
{
_root.soundy("thumbs down.wav");
} // end if
player.d.gotoAndStop(10);
}
else
{
if (emosound)
{
_root.soundy("thumbsup.wav");
} // end if
player.d.gotoAndStop(9);
} // end else if
} // End of the function
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");
} // end else if
} // end else if
trg.ris = fra;
} // End of the function
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;
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);
continue;
} // end if
if (trg == player || !trg2.bosser)
{
hurt(trg2, 22);
} // end if
} // end if
} // end if
} // end if
} // end of for...in
} // End of the function
function lasershow(trg, f50)
{
if (!f50)
{
lsou();
} // end if
if ((fra + trg.e) % 2 == 0 || trg == player && ups[118] || f50)
{
if (f50)
{
f1 = trg.xp;
f2 = trg.yp;
lass = 700;
for (i = 1; i < 700; i = i + 10)
{
f1 = f1 + trg.xpp * 10;
f2 = f2 + trg.ypp * 10;
f3 = ingrid(f1, f2);
if (levz[f3] >= 1 && levz[f3] != 3 && (!ups[115] || !ups[68]) || f2 < 140 || f2 > 440 || f1 > 615 || f1 < 40)
{
lass = i;
i = 1000;
} // end if
} // end of for
lasx = trg.xp;
lasy = trg.yp;
} // end if
if (f50 != 2)
{
lassd = dmgdo();
if (ups[2])
{
lassd = lassd * 3;
} // end if
if (ups[132])
{
lassd = lassd + 2;
} // end if
if (brim)
{
lass = 10000;
lassd = lassd * 3;
if (ups[69])
{
v111 = Math.max(0.100000, Math.min(1, (fra - lchaf) / 60));
lassd = lassd * v111;
} // end if
} // end if
_root.firrb = lassd;
} // end if
if (f50 == 5)
{
lassd = lassd * (secol * 0.200000);
} // end if
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;
} // end else if
if (trg2 == player)
{
f2 = 10;
} // end if
f2 = 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;
} // end if
} // end if
}
else if (Math.abs(xenf) < f2)
{
if (yenf * trg.ypp < 0)
{
f1 = true;
} // end if
} // end else if
if (f1)
{
if (trg2 == player)
{
playerhurt(0.500000, trg.s);
continue;
} // end if
if (f50 || !f50 && trg == player && ups[118])
{
if (enfget(xenf, yenf) - 20 < lass)
{
hurt(trg2, lassd);
spidcol(trg2);
} // end if
continue;
} // end if
if (trg.s != 39 && (trg2.s != 84 || trg == player))
{
hurt(trg2, 22);
} // end if
} // end if
} // end if
} // end if
} // end of for...in
f1 = 1000;
if (f50)
{
f1 = lass + 10;
} // end if
for (a = 0; a < f1; a = a + 10)
{
killshit(ingrid(trg.xp + trg.xpp * a, trg.yp + trg.ypp * a), f50 && lassd > 5);
} // end of for
} // end if
} // End of the function
function laps()
{
keyhole = false;
if (keypoww > 0)
{
keypoww = keypoww - 0.200000;
} // end if
if (_root.keys > 0 || _root.kep || ups[60] || demon > 0 || _root.coins > 0 || unic > 0 || _root.notch || maxxy)
{
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 || maxxy))
{
bloww(f3, trg.xbew, trg.ybew);
f10 = true;
}
else if (demon > 0 || unic > 0 || _root.notch || maxxy)
{
if (killshit(f3, demon > 0 || _root.notch))
{
if (_root.notch)
{
killshit(f3, true);
killshit(f3, true);
} // end if
f10 = true;
} // end if
} // end else if
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);
} // end if
trg.s = 1;
if (_root.keys > 0 || _root.kep || _root.coins > 0)
{
keyhole = f3;
} // end if
if (levz[f3] == 4 && (_root.kep || _root.keys > 0))
{
if (f3 != keypow)
{
keypow = f3;
keypoww = 0;
}
else if (keypoww++ > 2.800000 && !player.flyby)
{
_root.soundy("Unlock00.wav", 100);
if (!_root.kep)
{
--_root.keys;
} // end if
levz[f3] = 1.010000;
killshit(f3);
_root.soundy("metal_blockbreak" + random(2) + ".wav", 100);
} // end if
} // end else if
if (levz[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;
} // end if
} // end else if
if (levz[f3 + rowz] == 3 || levz[f3 - rowz] == 3)
{
f3 = 0;
} // end if
}
else
{
if (f3 != alad)
{
if (trg.xbew > 0)
{
lads._rotation = 90;
}
else
{
lads._rotation = -90;
} // end if
} // end else if
if (levz[f3 + 1] == 3 || levz[f3 - 1] == 3)
{
f3 = 0;
} // end if
} // end else if
if (f3 > 0)
{
ladder = f3;
alad = ladder;
outgrid(ladder);
lads._x = xenf;
lads._y = yenf;
lads._visible = true;
} // end if
} // end if
} // end if
} // end if
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;
} // end if
} // end else if
} // End of the function
function roll(f1)
{
if (f1)
{
roller = f1 - 1;
} // end if
--roller;
return (random(roller + 1) == 0);
} // End of the function
function tart(f1, f3)
{
var _loc1 = ["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"];
_loc1[97] = "2 of Spades";
_loc1[98] = "2 of Clubs";
_loc1[99] = "2 of Hearts";
_loc1[100] = "2 of Diamonds";
_loc1[101] = "The Joker";
_loc1[102] = "I The Cold";
_loc1[103] = "II The Servant";
_loc1[104] = "III Wisdom";
_loc1[105] = "IV Repentance";
_loc1[106] = "V Eternity";
_loc1[107] = "VI Corruption";
_loc1[108] = "VII Immolation";
_loc1[109] = "VII Worship";
_loc1 = _loc1[f1 - 7];
if (!f3)
{
st11(_loc1);
}
else
{
return (_loc1);
} // end else if
} // End of the function
function goodpill()
{
_root.soundy("Powerup_spewer.wav", 100);
} // End of the function
function fart()
{
var _loc2 = create(player.xp, player.yp, 0, 0, 0, 0, 4);
_loc2.dones = true;
_loc2._xscale = _loc2._yscale = 70;
_loc2.d.gotoAndStop(5);
_loc2.fart = true;
_loc2.s = 4.500000;
_loc2.dfr = true;
showit = false;
for (z in ball)
{
_loc2 = ball[z];
siz = 85 + sizes[Math.round(_loc2.s)];
enf = enfcheck(player.xp, player.yp, _loc2.xp, _loc2.yp, siz);
if (enf < siz && !_loc2.dones && _loc2.s > 9 && _loc2.bh && !_loc2.shot)
{
_loc2.poiss = 200;
_loc2.poisd = 3.500000;
hurt(_loc2, 5);
} // end if
} // end of for...in
_root.soundy("fart.mp");
} // End of the function
function To_lazy_to_do_this_right(trg)
{
for (z in ball)
{
trg = ball[z];
siz = 9001 + sizes[Math.round(trg.s)];
enf = enfcheck(player.xp, player.yp, trg.xp, trg.yp, siz);
if (enf < siz && !trg.dones && trg.s > 9 && trg.bh && !trg.shot)
{
trg.poiss = 100;
trg.poisd = 3.690000;
hurt(trg, 5);
} // end if
} // end of for...in
} // End of the function
function ffart()
{
var _loc2 = create(player.xp, player.yp, 0, 0, 0, 0, 4);
_loc2.dones = true;
_loc2._xscale = _loc2._yscale = 70;
_loc2.d.gotoAndStop(8);
_loc2.fart = true;
_loc2.s = 4.500000;
_loc2.dfr = true;
showit = false;
for (z in ball)
{
_loc2 = ball[z];
siz = 85 + sizes[Math.round(_loc2.s)];
enf = enfcheck(player.xp, player.yp, _loc2.xp, _loc2.yp, siz);
if (enf < siz && !_loc2.dones && _loc2.s > 9 && _loc2.bh && !_loc2.shot)
{
frezf(_loc2);
hurt(_loc2, 5);
} // end if
} // end of for...in
_root.soundy("Freezed_Fart_1.mp");
} // End of the function
function horss(f1)
{
if (horse == 100 || hfff == fra)
{
if (f1)
{
xenf = -xenf;
yenf = -yenf;
} // end if
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;
} // end if
} // end else if
horse = 99;
hfff = fra;
} // end if
if (f1)
{
xenf = -xenf;
yenf = -yenf;
} // end if
} // end if
} // End of the function
function piller()
{
f10 = !ups[46] && !ups[75];
f1 = _root.piller[_root.pilc];
while (!f1)
{
if (!f1 || f1 == 3 && ups[75] || f1 == 6 && (!f10 || player.hp < 1))
{
if ((player.hp < player.mhp || _root.skiner == 4 && _root.armor < 3) && _root.IntRndFn(1150, 10) == 0)
{
f1 = 1;
}
else if (_root.IntRndFn(1150, 13) == 0)
{
f1 = 12;
}
else if (_root.IntRndFn(1150, 17) == 0)
{
f1 = 13;
}
else if (_root.IntRndFn(1150, 17) == 0)
{
f1 = 14 + _root.IntRndFn(1150, 2) * 0.200000;
}
else if (_root.IntRndFn(1150, 15) == 0 && !ups[75])
{
f1 = 2;
}
else
{
if (_root.IntRndFn(1150, 10) == 0 && !ups[75])
{
if (_root.fixExplosive)
{
f1 = 3;
} // end if
} // end if
if (_root.IntRndFn(1150, 10) == 0)
{
f1 = 4;
}
else if (_root.IntRndFn(1150, 20) == 0)
{
f1 = 5;
}
else if (_root.IntRndFn(1150, 9) == 0 && player.hp + _root.armor > 1 && f10)
{
f1 = 6;
}
else if (_root.IntRndFn(1150, 7) == 0)
{
f1 = 7 + _root.IntRndFn(1150, 2) * 0.200000;
}
else if (_root.IntRndFn(1150, 6) == 0 && (_root.bombs > 0 || _root.keys > 0))
{
f1 = 8;
}
else if (_root.IntRndFn(1150, 5) == 0 || _root.IntRndFn(1150, 4) == 0 && ups)
{
f1 = 9 + _root.IntRndFn(1150, 2) * 0.200000;
}
else if (_root.IntRndFn(1150, 5) == 0 || _root.IntRndFn(1150, 4) == 0 && ups)
{
f1 = 17 + _root.IntRndFn(1150, 2) * 0.200000;
}
else if (_root.IntRndFn(1150, 3) == 0)
{
f1 = 10 + _root.IntRndFn(1150, 2) * 0.200000;
}
else if (_root.IntRndFn(1150, 3) == 0)
{
f1 = 15 + _root.IntRndFn(1150, 2) * 0.200000;
}
else if (_root.IntRndFn(1150, 3) == 0)
{
f1 = 16 + _root.IntRndFn(1150, 2) * 0.200000;
}
else if (_root.IntRndFn(1150, 3) == 0 || ups[75])
{
f1 = 11 + _root.IntRndFn(1150, 2) * 0.200000;
}
else
{
f1 = 126;
} // end else if
} // end else if
for (z in _root.piller)
{
if (f1 == _root.piller[z])
{
f1 = undefined;
} // end if
} // end of for...in
_root.piller[_root.pilc] = f1;
} // end if
} // end while
f1 = Math.round(_root.piller[_root.pilc]);
if (f1 != _root.piller[_root.pilc])
{
f2 = true;
}
else
{
f2 = false;
} // end else if
if (!f10)
{
f2 = true;
} // end if
} // End of the function
function toot(f1)
{
return (Math.max(f1 * 2, 2));
} // End of the function
function playc()
{
trg = player;
f2 = trg.xp;
f3 = trg.yp;
if (decer.s == 4)
{
f2 = decer.xp;
f3 = decer.yp;
} // end if
f1 = levz[ingrid(f2, f3)];
if (f1 < 1)
{
playx = f2;
playy = f3;
} // end if
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.300000 + Math.random() * 0.500000);
}
else
{
splater(trg.xp, trg.yp, random(10) + 20, 0.300000 + Math.random() * 0.500000);
} // end if
} // end else if
if (coinl)
{
coinl = false;
if (_root.coins > 0)
{
--_root.coins;
f3 = Math.min(_root.coins, random(3) + 1);
for (z = 0; z < f3; z++)
{
--_root.coins;
f4 = random(5) + 2;
trg2 = create(player.xp, player.yp, 0, crand(f4), crand(f4), 0, 5.020000);
trg2.col = 1;
} // end of for
} // end if
} // end if
if (TearNext-- > 0)
{
if (TearNext == 2)
{
if (ups[114])
{
TearNext = 7;
}
else
{
TearNext = 10;
} // end else if
Ludoo();
killshit(ingrid(Lodo.xp, Lodo.yp));
if (ups[118])
{
if (Drop == 2)
{
Lodo.done = true;
} // end if
} // end if
} // end if
if (ups[168])
{
player.fire = 10;
} // end if
} // end if
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;
} // end if
if (ups[168])
{
player.fire = 10;
} // end if
} // end if
trg2 = player;
if (random(4) == 0 && ups[189])
{
splater(trg2.xp, trg2.yp + 5, 1 + random(10), Math.random() * 0.500000 + 0.300000);
} // end if
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.500000 / enf;
if (trg.d._currentframe == 4 && trg.col == 5)
{
enf = enf * 3;
} // end if
trg.xbew = trg.xbew + xenf * enf;
trg.ybew = trg.ybew + yenf * enf;
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
trg.ggh = true;
} // end if
continue;
} // end if
trg.ggh = false;
} // end if
} // end if
} // end of for...in
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.007000;
trg.xbew = trg.xbew - xenf * enf;
trg.ybew = trg.ybew - yenf * enf;
trg.xbew = trg.xbew * 0.850000;
trg.ybew = trg.ybew * 0.850000;
if (trg.sf)
{
sideflip(trg.xbew);
} // end if
if (trg.wf)
{
walkframe();
} // end if
} // end if
} // end if
} // end of for...in
}
else if (slow > 0 || sloww > 0)
{
for (a in ball)
{
trg = ball[a];
if (trg.free)
{
colorit(trg, 1, 1, 1.300000, 40, 40, 40);
} // end if
} // end of for...in
}
else if (freez > 0)
{
for (a in ball)
{
trg = ball[a];
if (trg.free)
{
trg.frezz = freez + 1;
colorit(trg, 0.220000, 0.220000, 0.220000, 40, 40, 40);
} // end if
} // end of for...in
}
else if (freez == 0 || slow == 0 || sloww == 0)
{
for (a in ball)
{
trg = ball[a];
if (trg.free)
{
trg.free = undefined;
speco(trg);
} // end if
} // end of for...in
} // end else if
trg = player;
if (playslow-- > 0)
{
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
} // end if
trg = player;
trg = player;
if (trg.dones)
{
unpause = false;
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
playcol();
} // end if
f55 = 0;
f44 = false;
if (firecheck(player))
{
if (f44)
{
}
else if (!relf)
{
playerhurt(0.500000, 6);
}
else if (relf == 2)
{
playerhurt(1, 5);
}
else
{
for (i in door)
{
trg = door[i];
if (f55 == trg.blo)
{
f55 = 1.100000;
} // end if
} // end of for...in
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.050000 + random(2) * 0.010000);
} // end if
} // end if
if (f55 == 1.100000)
{
playerhurt(0.500000, 7);
}
else if (!ups[217])
{
playerhurt(1, 7);
} // end else if
} // end else if
} // end else if
if (f44)
{
playslow = 4;
} // end if
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();
} // end if
} // end else if
}
else
{
playcol();
} // end else if
for (e in door)
{
trg = door[e];
if (trg._visible && player._visible && lastspin <= fra && !(hhorse > 0 && 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;
} // end if
_root.door = e;
if (e == 0 || e == 2)
{
_root.playerx = 610 - trg._x * 0.900000;
_root.playery = 280;
}
else
{
_root.playerx = 320;
_root.playery = 530 - trg._y * 0.900000;
} // end else if
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");
} // end if
if (!v1)
{
trg.nod = true;
} // end if
} // end if
} // end of for...in
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);
} // end if
}
else
{
trg.d.gotoAndStop(11);
if (_root.bombnext == 2)
{
trg.it = 164;
}
else if (_root.notch)
{
trg.it = 147;
}
else
{
trg.it = 42;
} // end else if
} // end else if
} // end else if
if (farter)
{
farter = false;
fart();
} // end if
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;
} // end if
} // end if
}
else
{
nosp = false;
} // end else if
if (trg.d._currentframe >= 3)
{
if (!_root.bombnext)
{
trg.fire = 5;
} // end if
trg.xbew = trg.xbew * 0.800000;
trg.ybew = trg.ybew * 0.800000;
}
else
{
if (Key.isDown(17) || Key.isDown(16) || Key.isDown(69))
{
bomb();
} // end if
bomberfail = bomberfail - 0.024000;
if (bomberfail > 0 && nextbo)
{
--bomberfail;
lastbo = 0;
bomb(2);
nextbo = false;
} // end if
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);
player.hp = 1000;
ups[21] = ups[54] = true;
_root.world = true;
mapd();
for (e in ball)
{
trg2 = ball[e];
hurt(trg2, 100);
} // end of for...in
break;
}
case 26:
{
curs();
ups[122] = 1.500000;
break;
}
case 25:
{
f1 = 0;
f2 = 4;
for (z in ball)
{
trg2 = ball[z];
if (trg2.s > 9 && trg2.s != 45 || trg2 == player)
{
if (trg2.hp > f2 && trg2.pow != 1 && trg2.pow != 2)
{
f2 = trg2.hp;
f1 = z;
} // end if
} // end if
} // end of for...in
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;
break;
}
case 20:
{
spaw(player.xp, player.yp, 45, 5.010000);
spaw(player.xp, player.yp, 45, 5.020000);
spaw(player.xp, player.yp, 45, 5.030000);
spaw(player.xp, player.yp, 45, 5.040000);
break;
}
case 19:
{
ups[21] = ups[54] = true;
_root.world = true;
mapd();
break;
}
case 18:
{
f1 = 40;
trg2 = spaw(player.xp + f1, player.yp, 0, 5.010000);
trg3 = spaw(player.xp - f1, player.yp, 0, 5.010000);
trg2.col = 1;
trg3.col = 1;
break;
}
case 24:
{
f1 = 40;
trg2 = spaw(player.xp + f1, player.yp, 0, 5.010000);
trg3 = spaw(player.xp - f1, player.yp, 0, 5.010000);
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.310000);
_root.soundy("summonsound.wav", 120);
break;
}
case 22:
{
teller();
tar = _root.bossl;
break;
}
case 16:
{
spaw(player.xp, player.yp, 45, 5.320000);
_root.soundy("summonsound.wav", 120);
break;
}
case 7:
{
spaw(player.xp, player.yp, 45, 5.080000);
_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);
} // end of for...in
++_root.so.data.dde;
if (_root.so.data.dde > 4)
{
_root.locker[48] = true;
} // end if
break;
}
case 10:
{
++player.hp;
++ups[12];
break;
}
case 11:
{
teller();
tar = 35;
break;
}
case 12:
{
++ups[3];
break;
}
case 13:
{
teller();
tar = _root.shopl;
_root.shopa = true;
break;
}
case 14:
{
teller();
tar = _root.hide;
break;
}
case 104:
{
_root.keys = toot(_root.keys);
break;
}
case 105:
{
_root.bombs = toot(_root.bombs);
break;
}
case 106:
{
player.hp = toot(player.hp);
break;
}
case 107:
{
_root.coins = toot(_root.coins);
break;
}
case 108:
{
tar = 166;
teller();
break;
}
case 109:
{
_root.soundy("Death_Card.mp", 100);
for (e in ball)
{
trg2 = ball[e];
spida(undefined, trg2);
} // end of for...in
break;
}
case 110:
{
_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);
} // end if
} // end of for...in
if (f1.length > 0)
{
f1 = f1[_root.IntRndFn(1164, f1.length)];
ups[f1] = 1;
} // end if
if (f1 == 73)
{
ups[f1] = _root.IntRndFn(1164, 2) + 2;
} // end if
st22(_root.st1[f1]);
break;
}
case 111:
{
teller();
tar = _root.hide2;
break;
}
case 112:
{
for (a in ball)
{
trg2 = ball[a];
if (trg2.s == 5 && trg2.it && !trg2.empty)
{
trg2.it = giveit();
if (trg2.d._currentframe == 10)
{
trg2.d.d.gotoAndPlay(1);
} // end if
} // end if
} // end of for...in
null[null] = null;
break;
}
case 113:
{
eta();
break;
}
case 114:
{
tar = 169;
teller();
break;
}
case 115:
{
if (_root.IntRndFn(1153, 2) != 0)
{
teller();
tar = _root.cus;
}
else
{
teller();
tar = _root.sac;
} // end else if
break;
}
case 116:
{
if (ups[224])
{
} // end if
if (!(skiner != 0 ? (_root.IntRndFn(1153, 2) == 0) : (random(4) == 0)))
{
_root.soundy("satan grow.mp3");
lasth = 0;
playerhurt(1, 201);
lasth = 0;
playerhurt(1, 201);
}
else
{
_root.soundy("isaacxpholyroomreveal.mp3");
kogs = [5.100000];
} // end else if
break;
}
case 15:
{
++ups[20];
break;
}
} // End of switch
}
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);
} // end else if
break;
}
case 13:
{
bluf = bluf + 3;
st22("Friends till the end!");
break;
}
case 6:
{
if (player.hp + _root.armor > 1)
{
lasth = 0;
playerhurt(1, 201);
st22("Bad Trip!");
break;
} // end if
}
case 1:
{
if (_root.skiner == 4)
{
if (_root.armor < 3)
{
_root.armor = 3;
} // end if
}
else if (player.mhp > 0)
{
player.hp = player.mhp;
} // end else if
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");
} // end else if
break;
}
case 3:
{
bomberfail = 5.500000;
st22("Oh no!");
emo(true);
_root.soundy("fart.mp");
break;
}
case 4:
{
_root.armor = _root.armor + 2;
st22("Balls of Steel");
goodpill();
emo();
break;
}
case 5:
{
_root.ups[10] = _root.ups[10] + 0.500000;
ups[10] = _root.ups[10];
st22("Pretty Fly");
goodpill();
emo();
break;
}
case 7:
{
if (_root.skiner != 4)
{
f13 = player.mhp;
}
else
{
f13 = _root.armor;
} // end else if
if (f13 <= 1 || f2)
{
st22("Health Up");
if (_root.skiner == 4)
{
++_root.armor;
}
else
{
++_root.ups[15];
} // end else if
pilcol(100, 50, 50);
goodpill();
emo();
}
else
{
if (_root.skiner == 4)
{
--_root.armor;
}
else
{
--_root.ups[15];
} // end else if
st22("Health Down");
emo(true);
} // end else if
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] = _root.ups[32] + 0.500000;
st22("Tears Up");
pilcol(80, 80, 100);
goodpill();
emo();
}
else
{
_root.ups[32] = _root.ups[32] - 0.400000;
st22("Tears Down");
emo(true);
} // end else if
ups[32] = _root.ups[32];
break;
}
case 17:
{
if (f2)
{
_root.ups[165] = _root.ups[165] - 0.500000;
st22("Shot Speed Down");
pilcol(50, 130, 90);
goodpill();
emo();
}
else
{
_root.ups[165] = _root.ups[165] + 0.500000;
st22("Shot Speed Up");
emo(true);
} // end else if
ups[165] = _root.ups[165];
break;
}
case 15:
{
if (f2)
{
_root.ups[32] = _root.ups[32] + 0.500000;
_root.ups[31] = _root.ups[31] - 0.400000;
st22("Tears Up & Range Down");
pilcol(80, 80, 100);
goodpill();
emo();
}
else
{
_root.ups[32] = _root.ups[32] - 0.400000;
_root.ups[31] = _root.ups[31] + 0.500000;
st22("Tears Down & Range Up");
emo(true);
} // end else if
ups[32] = _root.ups[32];
ups[31] = _root.ups[31];
break;
}
case 16:
{
if (_root.skiner != 4)
{
f13 = player.mhp;
}
else
{
f13 = _root.armor;
} // end else if
if (f13 <= 1 || f2)
{
st22("Health Up & Speed Down");
if (_root.skiner == 4)
{
++_root.armor;
_root.ups[27] = _root.ups[27] - 0.800000;
}
else
{
++_root.ups[15];
_root.ups[27] = _root.ups[27] - 0.800000;
} // end else if
pilcol(100, 50, 50);
goodpill();
emo();
}
else
{
if (_root.skiner == 4)
{
--_root.armor;
++_root.ups[27];
}
else
{
--_root.ups[15];
++_root.ups[27];
} // end else if
st22("Health Down & Speed Up");
emo(true);
} // end else if
ups[15] = _root.ups[15];
ups[27] = _root.ups[27];
break;
}
case 10:
{
if (f2 || ups[6] && _root.chaps < 8)
{
_root.ups[31] = _root.ups[31] + 0.500000;
st22("Range Up");
pilcol(50, 100, 100);
emo();
goodpill();
}
else
{
_root.ups[31] = _root.ups[31] - 0.400000;
st22("Range Down");
emo(true);
} // end else if
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] = _root.ups[27] - 0.800000;
st22("Speed Down");
emo(true);
} // end else if
ups[27] = _root.ups[27];
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 == _root.fixDevilPills && _root.chaps != 1)
{
tar = 166;
} // end if
} // end else if
st22("TelePills");
teller();
break;
}
} // End of switch
} // end else if
player.pilc = _root.pilc;
_root.pilc = undefined;
} // end if
if (spac && (fra > 30 || _root.it == 90 && _root.lev != _root.bossl2 && _root.lev != _root.bossl && _root.lev != 35) && player._visible)
{
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, 19, 25, 26, 37, 38, 43, 44, 45, 46, 53, 57, 62, 67];
if (f1.length > 0)
{
f1 = f1[_root.IntRndFn(1165, f1.length)];
_root.it = f1;
f1 = f1 + itn2(f1);
st22(_root.st1[f1]);
} // end if
_root.over.gotoAndStop(14);
goper = true;
} // end if
switch (_root.it)
{
case 152:
{
ups[3] = 1;
break;
}
case 146:
{
ups[118] = 1;
_root.soundy("Monster_Yell_A_0.mp");
demonl = true;
break;
}
case 120:
{
_root.over.gotoAndStop(9);
_root.soundy("isaacxpholyroomreveal.mp3");
f2 = random(198);
ups[f2] = 1;
break;
}
case 124:
{
if (_root.apple == 0)
{
++_root.apple;
st22("Damage Mode");
}
else
{
--_root.apple;
st22("Tear rate Mode");
} // end else if
break;
}
case 135:
{
if (player.mhp > 0)
{
_root.ups[50] = _root.ups[50] + 0.200000;
ups[50] = _root.ups[50];
st22("dmg up!");
--_root.ups[22];
player.hp = Math.max(player.hp - 1, 0.500000);
--ups[22];
_root.soundy("Vamp_Gulp.mp");
}
else
{
showit = false;
} // end else if
break;
}
case 126:
{
_root.ups[27] = _root.ups[27] - 0.500000;
_root.ups[32] = _root.ups[32] + 0.300000;
ups[32] = _root.ups[32];
ups[27] = _root.ups[27];
st22("Speed Down and Tears Up");
break;
}
case 131:
{
f2 = random(3);
f1 = ["You are what you eat", "Look behind you", "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)]);
f1 = random(3);
if (f1 == 0)
{
kogs = [5.300000];
} // end if
if (f1 == 1)
{
kogs = [5.350000];
} // end if
if (f1 == 2)
{
kogs = [5.010000];
} // end if
break;
}
case 137:
{
ups[1] = 1;
ups[32] = 1;
break;
}
case 107:
{
if (_root.soundy("Cookie_A_0.mp") || _root.chaps == 1 || _root.chaps == 2)
{
f1 = random(10);
if (f1 == 0)
{
_root.bosss = 9;
_root.levz[_root.bossl] = "h1";
st11("Famine");
} // end if
if (f1 == 1)
{
_root.bosss = 2;
_root.levz[_root.bossl] = "b2-0";
st11("Lary Jr.");
} // end if
if (f1 == 2)
{
_root.bosss = 17;
_root.levz[_root.bossl] = "a5-1";
st11("Gemini");
} // end if
if (f1 == 3)
{
_root.bosss = 13;
_root.levz[_root.bossl] = "a1-0";
st11("Duke Of Flys");
} // end if
if (f1 == 4)
{
_root.bosss = 20;
_root.levz[_root.bossl] = "a5-0";
st11("Steven");
} // end if
if (f1 == 5)
{
_root.bosss = 37;
_root.levz[_root.bossl] = "b37-0";
st11("-Pin-");
} // end if
if (f1 == 6)
{
_root.bosss = 1;
_root.levz[_root.bossl] = "b1-0";
st11("Monstro");
} // end if
if (f1 == 7)
{
_root.bosss = 32;
_root.levz[_root.bossl] = "b32-0";
st11("The Blighted Ovumm");
} // end if
if (f1 == 8)
{
_root.bosss = 28;
_root.levz[_root.bossl] = "b28-0";
st11("Gurdy Jr.");
} // end if
if (f1 == 9)
{
_root.bosss = 34;
_root.levz[_root.bossl] = "b34-0";
st11("Widow");
} // end if
} // end if
if (_root.chaps == 5)
{
f2 = random(9);
if (f2 == 0)
{
_root.bosss = 5;
_root.levz[_root.bossl] = "b5-0";
st11("Monstro II");
} // end if
if (f2 == 1)
{
_root.bosss = 15;
_root.levz[_root.bossl] = "a3-0";
st11("Loki");
} // end if
if (f2 == 2)
{
_root.bosss = 11;
_root.levz[_root.bossl] = "h3";
st11("War");
} // end if
if (f2 == 3)
{
_root.bosss = 19;
_root.levz[_root.bossl] = "b5-0";
st11("Gish");
} // end if
if (f2 == 4)
{
_root.bosss = 35;
_root.levz[_root.bossl] = "b35-0";
st11("Mask of Infamy");
} // end if
if (f2 == 5)
{
_root.bosss = 41;
_root.levz[_root.bossl] = "b41-0";
st11("Daddy Long Legs");
} // end if
if (f2 == 6)
{
_root.bosss = 42;
_root.levz[_root.bossl] = "b42-0";
st11("Triachnid");
} // end if
if (f2 == 7)
{
_root.bosss = 27;
_root.levz[_root.bossl] = "b27-0";
st11("The Carrion Queen");
} // end if
if (f2 == 8)
{
_root.bosss = 36;
_root.levz[_root.bossl] = "b36-0";
st11("The Wretched");
} // end if
if (f2 == 9)
{
_root.bosss = 30;
_root.levz[_root.bossl] = "b30-0";
st11("The Bloat");
} // end if
} // end if
if (_root.chaps == 7)
{
f2 = random(7);
if (f2 == 0)
{
_root.bosss = 7;
_root.levz[_root.bossl] = "b7-0";
st11("Scolex");
} // end if
if (f2 == 1)
{
_root.bosss = 16;
_root.levz[_root.bossl] = "a4-0";
st11("Blastocyst");
} // end if
if (f2 == 2)
{
_root.bosss = 30;
_root.levz[_root.bossl] = "b30-0";
st11("The Bloat");
} // end if
if (f2 == 3)
{
_root.bosss = 12;
_root.levz[_root.bossl] = "h4";
st11("Death");
} // end if
if (f2 == 4)
{
_root.bosss = 38;
_root.levz[_root.bossl] = "h3";
st11("Conquest");
} // end if
if (f2 == 5)
{
_root.bosss = 33;
_root.levz[_root.bossl] = "b33-0";
st11("Teratoma");
} // end if
if (f2 == 6)
{
_root.bosss = 31;
_root.levz[_root.bossl] = "b31-0";
st11("Lokii");
} // end if
if (f2 == 7)
{
_root.bosss = 41;
_root.levz[_root.bossl] = "b41-0";
st11("Daddy Long legs");
} // end if
if (f2 == 8)
{
_root.bosss = 42;
_root.levz[_root.bossl] = "b41-0";
st11("Triachnid");
} // end if
} // end if
if (ups[224] || _root.chaps == 3 || _root.chaps == 4)
{
f2 = random(12);
if (f2 == 0)
{
_root.bosss = 18;
_root.levz[_root.bossl] = "a6-0";
st11("Fistula");
} // end if
if (f2 == 1)
{
_root.bosss = 4;
_root.levz[_root.bossl] = "b4-0";
st11("Gurdy");
} // end if
if (f2 == 2)
{
_root.bosss = 14;
_root.levz[_root.bossl] = "a2-0";
st11("Peep");
} // end if
if (f2 == 3)
{
_root.bosss = 3;
_root.levz[_root.bossl] = "b3-0";
st11("Chub");
} // end if
if (f2 == 4)
{
_root.bosss = 10;
_root.levz[_root.bossl] = "h2";
st11("Pestilence");
} // end if
if (f2 == 5)
{
_root.bosss = 21;
_root.levz[_root.bossl] = "b3-0";
st11("C.H.A.D.");
} // end if
if (f2 == 6)
{
_root.bosss = 27;
_root.levz[_root.bossl] = "b27-0";
st11("The Carrion Queen");
} // end if
if (f2 == 7)
{
_root.bosss = 29;
_root.levz[_root.bossl] = "b29-0";
st11("The Husk");
} // end if
if (f2 == 8)
{
_root.bosss = 28;
_root.levz[_root.bossl] = "b28-0";
st11("Gurdy Jr.");
} // end if
if (f2 == 9)
{
_root.bosss = 36;
_root.levz[_root.bossl] = "b36-0";
st11("The Wretched");
} // end if
if (f2 == 10)
{
_root.bosss = 32;
_root.levz[_root.bossl] = "b32-0";
st11("The Blighted Ovum");
} // end if
if (f2 == 11)
{
_root.bosss = 26;
_root.levz[_root.bossl] = "b26-0";
st11("The Hollow");
} // end if
} // end if
null;
if (_root.lev == _root.bossl)
{
teller();
tar = _root.bossl;
showit = false;
} // end if
break;
}
case 118:
{
if (player.mhp > 0)
{
_root.ups[32] = _root.ups[32] + 0.500000;
ups[32] = _root.ups[32];
st22("tears up!");
--_root.ups[22];
player.hp = Math.max(player.hp - 1, 0.500000);
--ups[22];
_root.soundy("Vamp_Gulp.mp");
}
else
{
showit = false;
} // end else if
break;
}
case 105:
{
ader();
lasth = 0;
if (_root.chaps < 7)
{
ader(true);
} // end if
if (player.hp < 0.500000)
{
showit = false;
} // end if
_root.soundy("Death_Card.mp", 100);
for (e in ball)
{
trg2 = ball[e];
hurt(trg2, 40);
} // end of for...in
sacri = 20;
break;
}
case 96:
{
anarch = 30;
analt = 2;
break;
}
case 106:
{
_root.bombnext = 2;
break;
}
case 97:
{
keyd = true;
break;
}
case 95:
{
for (e in ball)
{
trg2 = ball[e];
if (trg2.s == 5)
{
if (trg2.d._currentframe < 8)
{
trg2.done = true;
f1 = 5.010000 + _root.IntRndFn(46, 6) * 0.010000;
if (f1 == 5.060000 && _root.IntRndFn(46, 2) == 0)
{
f1 = 5.010000;
} // end if
if (f1 == 5.050000 && _root.IntRndFn(46, 3) == 0)
{
f1 = 5.020000;
} // end if
if (_root.IntRndFn(46, 10) == 0)
{
f1 = 5.030000 + _root.IntRndFn(46, 2) * 0.010000;
} // end if
if (_root.IntRndFn(46, 15) == 0)
{
f1 = 5.300000;
} // end if
if (_root.IntRndFn(46, 15) == 0)
{
f1 = 5.070000;
} // end if
if (_root.IntRndFn(46, 20) == 0)
{
f1 = 5.350000;
} // end if
create(trg2.xp, trg2.yp, 0, 0, 0, 0, f1);
} // end if
} // end if
} // end of for...in
break;
}
case 93:
{
_root.soundy("Death_Card.mp", 100);
for (e in ball)
{
trg2 = ball[e];
hurt(trg2, 10);
spida(undefined, trg2);
} // end of for...in
break;
}
case 141:
{
if (_root.coins > 0 && sloto == undefined)
{
--_root.coins;
sloto = 25;
}
else
{
showit = false;
} // end else if
break;
}
case 90:
{
_root.notch = !_root.notch;
doit = false;
showit = false;
break;
}
case 83:
{
ups[21] = ups[54] = true;
_root.world = true;
mapd();
if (_root.IntRndFn(1162, 2) == 0)
{
spaw(trg.xp, trg.yp, 40, 5.300000);
}
else
{
trg2 = spaw(trg.xp, trg.yp, 40, 5.010000);
trg2.col = 3;
} // end else if
break;
}
case 84:
{
bluf = bluf + (2 + random(3));
break;
}
case 87:
{
dec = 0;
break;
}
case 86:
{
eta();
break;
}
case 71:
{
for (e in ball)
{
trg = ball[e];
if (trg.s == 4)
{
trg.d.gotoAndStop(3);
trg.dones = true;
} // end if
} // end of for...in
break;
}
case 180:
{
ader();
f12 = Math.max(1, random(3));
if (ups[75])
{
++f12;
} // end if
for (f11 = 0; f11 < f12; f11++)
{
spaw(trg.xp, trg.yp, 40, 5.020000);
} // end of for
showit = player.hp > 0;
break;
}
case 67:
{
if (player.mhp > 0)
{
_root.armor = _root.armor + 3;
--_root.ups[22];
player.hp = Math.max(player.hp - 1, 0.500000);
--ups[22];
_root.soundy("Vamp_Gulp.mp");
}
else
{
showit = false;
} // end else if
break;
}
case 65:
{
anarch = 20;
analt = 3;
}
case 168:
{
showit = false;
horse = 100;
break;
}
case 173:
{
_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);
} // end if
} // end of for...in
if (f1.length > 0)
{
f1 = f1[_root.IntRndFn(1164, f1.length)];
ups[f1] = 1;
} // end if
if (f1 == 73)
{
ups[f1] = _root.IntRndFn(1164, 2) + 2;
} // end if
st22(_root.st1[f1]);
_root.over.gotoAndStop(12);
break;
}
case 174:
{
break;
}
case 183:
{
_root.beenlev[_root.lev] = false;
_root.shroom = 3;
_root.it = 0;
_root.door = undefined;
_root.playerx = 320;
_root.playery = 400;
_root.getup = true;
--_root.chaps;
if (_root.double)
{
--_root.chaps;
} // end if
newstart(false);
_root.gotoAndStop("reset");
break;
}
case 192:
{
razor = razor + 2;
if (player.hp > 0.500000 || _root.armor <= 0)
{
f11 = _root.armor;
_root.armor = 0;
playerhurt(0.500000, 202);
_root.armor = f11;
}
else
{
playerhurt(1, 202);
} // end else if
lasth = 0;
if (player.hp > 0.500000 || _root.armor <= 0)
{
f11 = _root.armor;
_root.armor = 0;
playerhurt(0.500000, 202);
_root.armor = f11;
}
else
{
playerhurt(0.500000, 202);
} // end else if
showit = false;
break;
}
case 190:
{
fart();
break;
}
case 164:
{
ffart();
break;
}
case 187:
{
++ups[20];
bodd = true;
_root.soundy("bloodbank spawn1.wav", 300);
break;
}
case 178:
{
for (a in ball)
{
trg2 = ball[a];
if (trg2.s == 5 && trg2.it && !trg2.empty)
{
trg2.it = giveit();
if (trg2.d._currentframe == 10)
{
trg2.d.d.gotoAndPlay(1);
} // end if
} // end if
} // end of for...in
break;
}
case 62:
{
pillc(4);
showit = false;
break;
}
case 57:
{
f1 = [5.010000, 5.010000, 5.040000, 5.030000, 5.070000, 5.300000, 5.020000];
f1 = f1[_root.IntRndFn(1163, 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 (_root.IntRndFn(1, 10) == 0 && !_root.nohead)
{
_root.nohead = true;
f1 = 5;
_root.bosss = 22;
} // end if
_root.levz[_root.bossl] = "h" + f1;
} // end if
++_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.090000);
}
else
{
showit = false;
doit = false;
} // end else if
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;
} // end of for...in
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;
} // end if
} // end if
} // end if
} // end of for...in
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;
} // end else if
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;
} // end of for...in
momkill();
_root.locker[34] = true;
} // end else if
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);
} // end of for...in
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;
} // end else if
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);
} // end if
break;
}
case 5:
{
showit = false;
bomb(true);
break;
}
case 6:
{
for (e = 0; e < 10; e++)
{
trg2 = create(trg.xp, trg.yp, 0, Math.sin(e / 5 * 3.141593) * 10, Math.cos(e / 5 * 3.141593) * 10, 0, 2);
trg2.d._yscale = trg2.d._xscale = 135.500000;
} // end of for
break;
}
case 12:
{
showit = false;
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;
break;
}
} // End of switch
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);
} // end if
if (itc[_root.it] > 0 && doit)
{
if (ups[116])
{
_root.itc = 0.334000;
}
else
{
_root.itc = 0;
} // end else if
nocharge = 10;
} // end if
if (goper)
{
goper = false;
_root.it = 84;
} // end if
} // end if
} // end if
}
else
{
nosp = false;
} // end else if
} // end else if
f1 = _root.bmode;
if (demon > 0 || ups[122])
{
sk = 7;
}
else
{
sk = _root.sk;
} // end else if
if (ups[20])
{
f1 = 3;
trg.flyby = true;
} // end if
if (ups[82])
{
f1 = 9;
trg.flyby = true;
} // end if
if (bible || ups[179] || ups[184])
{
f1 = 12;
trg.flyby = true;
} // end if
if (ups[185])
{
f1 = 23;
trg.flyby = true;
} // end if
if (sk == 7)
{
if (trg.flyby)
{
f1 = 9;
}
else
{
f1 = 8;
} // end else if
}
else if (sk == 5)
{
_root.hmode = 25;
_root.bmode = 13;
} // end else if
if (_root.it == 8 && !ups[20])
{
f1 = 2;
} // end if
if (ups[159])
{
f1 = 22;
trg.flyby = true;
} // end if
if (_root.it == 90 || _root.it == 141)
{
f1 = 16;
trg.flyby = true;
if (sk == 7)
{
f1 = 18;
}
else if (sk == 5)
{
f1 = 17;
} // end if
} // end else if
if (_root.it == 174)
{
f1 = 8;
f2 = 20;
} // end if
if (_root.it == 173)
{
if (null || _root.bosss == 20 || _root.bosss == 31 || _root.bosss == 38 || _root.bosss == 33 || _root.bosss == 40 || _root.bosss == 30 || _root.bosss == 32 || _root.bosss == 27 || _root.bosss == 29 || _root.bosss == 26 || _root.bosss == 21 || _root.bosss == 36 || _root.bosss == 42 || _root.bosss == 19 || _root.bosss == 37)
{
_root.altboss = true;
if (null || _root.bosss == 32 || _root.bosss == 27)
{
_root.altboss = 2;
} // end if
}
else
{
_root.altboss = false;
} // end if
} // end else if
if (razor > 0 || ups[189])
{
if (trg.flyby)
{
f1 = 3;
}
else
{
f1 = 27;
} // end if
} // end else if
if (purr)
{
f1 = 25;
trg.flyby = true;
} // end if
if (maxxy)
{
f1 = 49;
} // end if
if (lokii)
{
f1 = 28;
trg.flyby = true;
} // end if
if (Purer)
{
f1 = 29;
trg.flyby = true;
} // end if
trg.d.bo.gotoAndStop(f1);
if (enfget(trg.xbew, trg.ybew) < 2)
{
if (_root.it != 90 || fra < 3)
{
trg.d.bo.d.gotoAndStop(1);
} // end if
}
else
{
f1 = Math.abs(trg.xbew) > Math.abs(trg.ybew);
if (_root.it == 9)
{
f1 = Math.abs(trg.xbew) * 0.500000 > Math.abs(trg.ybew);
} // end if
if (f1)
{
trg.d.bo.d.gotoAndStop(3);
if (trg.xbew * trg.d.bo._xscale < -100)
{
trg.d.bo._xscale = trg.d.bo._xscale * -1;
} // end if
}
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);
} // end else if
}
else
{
trg.d.bo.d.gotoAndStop(2);
} // end else if
if (_root.it == 90 || _root.it == 141)
{
if (trg.xbew * trg.d.bo._xscale < -100)
{
trg.d.bo._xscale = trg.d.bo._xscale * -1;
} // end if
} // end if
} // end else if
} // end else if
dirkey(true);
horss(true);
if (xenf == 0)
{
lastx = fra;
} // end if
if (yenf == 0)
{
lasty = fra;
} // end if
if (md)
{
xenf = _xmouse - trg.xp;
yenf = _ymouse - trg.yp + 10;
if (Math.abs(xenf) < Math.abs(yenf))
{
xenf = 0;
}
else
{
yenf = 0;
} // end if
} // end else if
if (ups[114])
{
xxenf = xenf;
yyenf = yenf;
} // end if
if (ups[205])
{
xxenf = xenf;
yyenf = yenf;
} // end if
if (nomove && !_root.bombnext && !chaf)
{
xenf = yenf = 0;
} // end if
if (TearNext > 0)
{
Lodo.xbew = Lodo.xbew * 0.200000;
Lodo.ybew = Lodo.ybew * 0.200000;
if (!md)
{
Lodo.xbew = Lodo.xbew + xenf * 8;
Lodo.ybew = Lodo.ybew + yenf * 8;
}
else
{
enfcheck(Lodo.xp, Lodo.yp, _xmouse, _ymouse, 10000);
enf = Math.min(enf / 3, 4) / enf * 2;
Lodo.xbew = Lodo.xbew - xenf * enf;
Lodo.ybew = Lodo.ybew - yenf * enf;
} // end else if
xenf = yenf = 0;
}
else if (xenf != 0 && yenf != 0)
{
if (lasty > lastx)
{
xenf = 0;
}
else
{
yenf = 0;
} // end else if
} // end else if
if (nomove && !_root.bombnext && !chaf)
{
xenf = yenf = 0;
} // end if
if (bombdrop > 0)
{
drop.xbew = drop.xbew * 0.500000;
drop.ybew = drop.ybew * 0.500000;
if (!md)
{
drop.xbew = drop.xbew + xenf * 8;
drop.ybew = drop.ybew + yenf * 8;
}
else
{
enfcheck(drop.xp, drop.yp, _xmouse, _ymouse, 10000);
enf = Math.min(enf / 3, 4) / enf * 2;
drop.xbew = drop.xbew - xenf * enf;
drop.ybew = drop.ybew - yenf * enf;
} // end else if
xenf = yenf = 0;
}
else if (xenf != 0 && yenf != 0)
{
if (lasty > lastx)
{
xenf = 0;
}
else
{
yenf = 0;
} // end else if
} // end else if
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;
} // end else if
}
else
{
xenf = 0;
if (yenf < 0)
{
plo = 3;
yenf = -1;
}
else
{
yenf = 1;
plo = 1;
} // end if
} // end else if
} // end else if
if (laser == 1)
{
trg.xpp = xenf;
trg.ypp = yenf;
xenf = yenf = 0;
} // end if
if (laser == 80)
{
trg.xpp = xenf;
trg.ypp = yenf;
xenf = yenf = 0;
} // end if
++laser;
} // end if
} // end if
if (tearNext > 0)
{
NTEAR.xbew = NTEAR.xbew * 0.900000;
NTEAR.ybew = NTEAR.ybew * 0.900000;
if (!md)
{
NTEAR.xbew = NTEAR.xbew + xenf * 8;
NTEAR.ybew = NTEAR.ybew + yenf * 8;
}
else
{
enfcheck(NTEAR.xp, NTEAR.yp, _xmouse, _ymouse, 10000);
enf = Math.min(enf / 3, 4) / enf * 2;
NTEAR.xbew = NTEAR.xbew - xenf * enf;
NTEAR.ybew = NTEAR.ybew - yenf * enf;
} // end else if
xenf = yenf = 0;
}
else if (xenf != 0 && yenf != 0)
{
if (lasty > lastx)
{
xenf = 0;
} // end if
yenf = 0;
} // end else if
if (ups[68] && plox > 8)
{
plo = v1;
} // end if
if (laser > 1)
{
trg.d.gotoAndStop(1);
++laser;
trg.xbew = trg.xbew * 0.900000;
trg.ybew = trg.ybew * 0.900000;
if (laser > 21 && laser < 32 && fra % 3 != 0)
{
lasershow(trg);
} // end if
if (laser > 40)
{
laser = undefined;
} // end if
xenf = yenf = 0;
} // end if
if (ups[114])
{
} // end if
if (!ups[216] && !_root.bombnext || ups[205] && !_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;
} // end if
if (_root.knif == undefined)
{
_root.knif = 0;
} // end if
if (ups[114] || ups[114] || ups[205])
{
f1 = xxenf;
f2 = yyenf;
xxenf = xenf;
yyenf = yenf;
xenf = f1;
yenf = f2;
}
else
{
xxenf = xenf;
yyenf = yenf;
} // end else if
if (xenf != 0 || yenf != 0)
{
f1 = rotget(xenf, yenf) + 180;
_root.knir = f1;
}
else
{
f1 = _root.knir;
} // end else if
if (ups[114])
{
knife.dmg = dmgdo() * (2 + Math.min(Math.max(knill, 0), 4));
} // end if
if (ups[205])
{
knife.dmg = dmgdo() + 1.500000;
} // end if
knil = knil + knill;
knill = knill - 1.400000;
f1 = f1 - knife.d.z._rotation;
f1 = absmax(rotrund(f1), Math.max(0, 40 - knil));
knife.d.z._rotation = knife.d.z._rotation + f1 * 0.700000;
_root.knif = _root.knif * 0.980000;
if (knil < 23)
{
knil = 23;
if ((xenf != 0 || yenf != 0) && Math.abs(f1) < 5)
{
firr(trg);
_root.knif = _root.knif + Math.max(0.200000, Math.min(0.350000, 0.200000 / trg.fire * 10));
} // end if
if (_root.knif > 0.350000 && xenf == 0 && yenf == 0 && !kkk)
{
knill = Math.min(20, Math.max(10, _root.firrr * 0.510000) * (0.300000 + _root.knif * 0.200000));
_root.knif = 0;
} // end if
knife.xppp = trg.xp;
knife.yppp = trg.yp;
knife.xbew = trg.xbew;
knife.ybew = trg.ybew;
}
else if (knill < 0)
{
knife.xppp = knife.xppp * 0.500000;
knife.yppp = knife.yppp * 0.500000;
knife.xppp = knife.xppp + trg.xp * 0.500000;
knife.yppp = knife.yppp + trg.yp * 0.500000;
}
else
{
knife.xppp = knife.xppp * 0.800000;
knife.yppp = knife.yppp * 0.800000;
knife.xppp = knife.xppp + trg.xp * 0.200000;
knife.yppp = knife.yppp + trg.yp * 0.200000;
} // end else if
f1 = knife.d.z._rotation / 180 * 3.141593;
if (knife.d.z._rotation < -90 || knife.d.z._rotation > 90)
{
knife.d.z._yscale = -100;
}
else
{
knife.d.z._yscale = 100;
} // end else if
if (fra > 4)
{
knife.xp = knife.xppp + Math.cos(f1) * knil;
knife.yp = knife.yppp + Math.sin(f1) * knil * 0.800000 - Math.cos(f1) * 3;
knife.xppp = knife.xppp + knife.xbew;
knife.yppp = knife.yppp + knife.ybew;
knife.xbew = knife.xbew * 0.800000;
knife.ybew = knife.ybew * 0.800000;
} // end if
if (fra % 3 == 0)
{
knife.hh = [];
} // end if
xenf = yenf = 0;
} // end if
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);
xenf = yenf = 0;
brim = false;
} // end if
} // end if
f1 = _root.fmode;
f2 = _root.hmode;
nohat = false;
if (doub)
{
f1 = 8;
f2 = 8;
} // end if
if (ups[3] && !_root.ups[3])
{
f1 = 4;
f2 = 4;
} // end if
if (sk != 5 && ups[69])
{
f2 = 17;
} // end if
if (ups[122])
{
f2 = 30;
}
else if (sk == 7)
{
if (ups[159])
{
f2 = 39;
}
else if (ups[80])
{
f2 = 20;
}
else
{
f2 = 22;
} // end else if
} // end else if
if (ups[149])
{
f2 = 36;
} // end if
if (razor > 0)
{
f2 = 29;
} // end if
if (ups[189])
{
f2 = 42;
} // end if
if (lokii)
{
f2 = 45;
} // end if
if (Purer)
{
f2 = 47;
} // end if
if (maxxy)
{
f2 = 49;
} // end if
if (purr)
{
f2 = 43;
} // end if
if (demon > 0)
{
f2 = 21;
} // end if
if (ups[68])
{
if (sk == 5)
{
f2 = 28;
}
else if (sk == 7)
{
f2 = 27;
}
else
{
f2 = 10;
} // end else if
f1 = 12;
} // end if
if (ups[118])
{
f2 = 31;
} // end if
if (laser)
{
f2 = 14;
} // end if
if (_root.it == 174)
{
if (!ups[118])
{
f2 = 20;
} // end if
} // end if
if (laserzzz)
{
f2 = 31;
} // end if
if (unic > 0)
{
if (pacman)
{
f2 = 23;
}
else
{
f2 = 19;
} // end else if
nohat = true;
} // end if
facer = f2;
if (trg.d._currentframe == 1 || _root.bombnext)
{
_root.tex = chaaf;
_root.hud.weap.gotoAndStop(f1);
if (Math.abs(xenf) < 0.500000 && Math.abs(yenf) < 0.500000 && !kkk && (ups[69] || ups[118]) && !_root.bombnext)
{
if (chaf > -1000 && Math.abs(chax) + Math.abs(chay) > 0)
{
if (chaaf > 4.700000 || ups[69])
{
chaz = true;
xenf = chax;
yenf = chay;
}
else
{
chax = chay = 0;
chaf = undefined;
plo = 1;
} // end if
} // end if
} // end else if
if (pacman)
{
if (trg.d.d.d.d._xscale * trg.xbew < -300)
{
trg.d.d.d.d._xscale = trg.d.d.d.d._xscale * -1;
if (trg.d.d.d.d._xscale < 0)
{
trg.d.d.d.d._x = 40.700000;
}
else
{
trg.d.d.d.d._x = 0;
} // end if
} // end else if
}
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;
} // end else if
if (Math.abs(xenf) > 0.500000 || Math.abs(yenf) > 0.500000 || ups[114] && (xxenf != 0 || yyenf != 0) || ups[205] && (xxenf != 0 || yyenf != 0))
{
plff();
}
else
{
if (plox < 0 && laser <= 1 && !ups[118])
{
plo = 1;
} // end if
if (!ups[118] || trg.fire < 4)
{
trg.d.d.d.d.gotoAndStop(plo);
} // end if
} // end else if
} // end else if
if (trg.d._currentframe == 1)
{
if (laser > 1)
{
trg.d.d.d.d.d.gotoAndStop(laser);
} // end if
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);
} // end if
}
else if (_root.hmode == 17 || ups[118])
{
if (plox > 8)
{
trg.d.d.d.d.gotoAndStop(plo + 4);
} // end if
} // end else if
if (ups[68])
{
ups[103] = _root.ups[103];
if (trixx(30))
{
if (random(10) == 0)
{
ups[103] = 0;
} // end if
} // end if
trg2 = player.d.d.d.d.l;
if (ups[115])
{
colorit(trg2, 1.500000, 2, 2, 0, 0, 0);
trg2._alpha = 50;
}
else if (ups[103])
{
colorit(trg2, 0.400000, 0.970000, 0.500000, 0, 150, 0);
}
else if (ups[104])
{
colorit(trg2, 1, 0.400000, 0.130000, 30, 0, 0);
}
else if (ups[89])
{
colorit(trg2, 3, 3, 3, 150, 150, 150);
}
else if (ups[90])
{
colorit(trg2, 0.400000, 0.400000, 0.400000, 100, 100, 100);
}
else if (ups[69])
{
colorit(trg2, 0.330000, 0.180000, 0.180000, 66, 40, 40);
}
else if (ups[6])
{
colorit(trg2, 0.200000, 1, 0, 255, 255, 0);
}
else if (ups[3])
{
colorit(trg2, 0.400000, 0.150000, 0.380000, 90, 0, 180);
} // end else if
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;
} // end else if
trg2._yscale = f1;
trg2._xscale = lassd * 30;
trg2._x = trg2._x - (trg.xp - lasx);
trg2._y = trg2._y - (trg.yp - lasy);
lasx = trg.xp;
lasy = trg.yp;
} // end if
} // end if
} // end if
chaaf = 0;
--plox;
--plox1;
--trg.fire;
--trg.fire1;
dirkey(false);
if (horse > 0)
{
if (horse == 100)
{
horss();
}
else
{
--horse;
xenf = horsx * 4.500000;
yenf = horsy * 4.500000;
trg.xbew = trg.xbew * 0.700000;
trg.ybew = trg.ybew * 0.700000;
if (horse % 6 < 3)
{
colorit(player, 1.200000, 1.200000, 1.200000, 55, 55, 55);
} // end if
} // end else if
hhorse = 10;
}
else if (horse == undefined)
{
--hhorse;
}
else
{
horse = undefined;
} // end else if
f1 = 100 + (ups[12] - ups[71] + ups[122]) * 25;
if (demon > 0)
{
f1 = f1 + 25;
} // end if
if (ups[157])
{
f1 = f1 + (rag - 1) * 14;
} // end if
trg._xscale = trg._yscale = f1;
if (trg.d._currentframe == 1)
{
f1 = 100 + (ups[121] - ups[120]) * 20;
trg.d.d._xscale = trg.d.d._yscale = f1;
} // end if
f10 = [0, -0.150000, 0.300000, 0, 0.100000, 0.230000, 0.100000, 0];
f1 = 1;
_root.playsp = 1 + Math.min(1, (ups[119] + ups[27] + ups[28] + ups[217] + ups[12] + ups[209] + ups[71] + ups[101] + ups[122] + ups[120] + ups[143]) * 0.300000 + Math.min(1, ups[14]) * 0.600000 - Math.min(1, ups[13] + ups[121]) * 0.100000 + f10[_root.skiner] + ups[70] * 0.400000 + ups[79] * 0.200000 + ups[82] * 0.300000) - (ups[90] + ups[129] + ups[189]) * 0.200000;
if (ups[229])
{
if (_root.skiner == 1)
{
_root.playsp = _root.playsp + player.hp * 0.060000;
} // end if
} // end if
if (unic > 0)
{
_root.playsp = _root.playsp + 0.280000;
} // end if
if (trixx(37))
{
_root.playsp = _root.playsp + 0.150000;
} // end if
if (_root.it == 192)
{
if (_root.apple == 0)
{
_root.playsp = _root.playsp + 0.350000;
} // end if
} // end if
if (_root.it == 192)
{
if (_root.apple == 1)
{
_root.playsp = _root.playsp - 0.250000;
} // end if
} // end if
if (demon > 0)
{
_root.playsp = _root.playsp - 0.180000;
} // end if
if (_root.it == 90 || _root.it == 141)
{
_root.playsp = Math.max(1.500000, _root.playsp);
} // end if
f1 = _root.playsp;
xenf = xenf * (0.750000 + f1 * 0.250000);
yenf = yenf * (0.750000 + f1 * 0.250000);
nomove = trg.d._currentframe >= 3 && trg.d._currentframe < 9 || fra < 20;
if (nomove)
{
xenf = yenf = 0;
} // end if
if (xenf == 0)
{
lastxx = fra;
} // end if
if (yenf == 0)
{
lastxy = fra;
} // end if
if (trg.ghhh)
{
if (xenf != 0 && yenf != 0)
{
if (lastxy > lastxx)
{
xenf = 0;
}
else
{
yenf = 0;
} // end if
} // end else if
}
else if (xenf != 0 && yenf != 0)
{
xenf = xenf / 1.414214;
yenf = yenf / 1.414214;
} // end else if
trg.ghhh = false;
v1 = 0;
if (xenf != 0 && yenf == 0)
{
v1 = Math.abs(trg.ybew);
trg.ybew = trg.ybew * 0.500000;
}
else if (yenf != 0 && xenf == 0)
{
v1 = Math.abs(trg.xbew);
trg.xbew = trg.xbew * 0.500000;
} // end else if
v1 = v1 * 0.300000;
v2 = xenf * trg.xbew + trg.ybew * yenf;
v1 = v1 * 0.100000 + Math.max(0, v2 * 0.200000);
v1 = 3 + v1 / _root.playsp;
v1 = v1 * 0.800000;
trg.xbew = trg.xbew - xenf * v1;
trg.ybew = trg.ybew - yenf * v1;
trg.xbew = trg.xbew * (0.700000 + _root.playsp * 0.075000);
trg.ybew = trg.ybew * (0.700000 + _root.playsp * 0.075000);
laps();
} // End of the function
function posw(f1, f2, f3)
{
var _loc2 = -100;
var _loc3 = -100;
while (mhit(_loc2, _loc3) || levz[ingrid(_loc2, _loc3)] >= 0.600000)
{
if (f3 > 500)
{
f3 = 0;
} // end if
f3 = f3 + 5;
_loc2 = f1 + crand(f3);
_loc3 = f2 + crand();
outgrid(ingrid(_loc2, _loc3));
_loc2 = xenf;
_loc3 = yenf;
if (random(100) != 0)
{
for (z in ball)
{
var _loc1 = ball[z];
if (_loc1.s == 5)
{
if (Math.abs(_loc1.xp - _loc2) < 20)
{
if (Math.abs(_loc1.yp - _loc3) < 20)
{
_loc2 = -100;
} // end if
} // end if
} // end if
} // end of for...in
} // end if
} // end while
} // End of the function
function spaw(f1, f2, f3, f0)
{
posw(f1, f2, f3);
levz[ingrid(xenf, yenf)] = 0.900000;
return (create(xenf, yenf, 0, 0, 0, 0, f0));
} // End of the function
function scerf()
{
if (bgg2 == undefined)
{
trg = createEmptyMovieClip("bggg2", 35670000);
bgg2 = new flash.display.BitmapData(gridxs, gridys - f1, true, 0);
trg.attachBitmap(bgg2, 1);
trg._yscale = trg._xscale = 100 / hdx;
maxx = new flash.geom.Matrix();
maxx.scale(hdx, hdx);
bgg2.draw(this, maxx);
} // end if
} // End of the function
function dirkey(f1)
{
xenf = yenf = enf = 0;
kkk = false;
if (_root.so.data.left)
{
f1 = !f1;
} // end if
if (!f1)
{
if (_root.so.data.frog)
{
if (Key.isDown(81))
{
kkk = true;
++xenf;
} // end if
if (Key.isDown(90))
{
kkk = true;
++yenf;
} // end if
}
else
{
if (Key.isDown(65))
{
kkk = true;
++xenf;
} // end if
if (Key.isDown(87))
{
kkk = true;
++yenf;
} // end if
} // end else if
if (Key.isDown(68))
{
kkk = true;
--xenf;
} // end if
if (Key.isDown(83))
{
kkk = true;
--yenf;
} // end if
}
else
{
if (Key.isDown(39))
{
kkk = true;
++xenf;
} // end if
if (Key.isDown(37))
{
kkk = true;
--xenf;
} // end if
if (Key.isDown(38))
{
kkk = true;
--yenf;
} // end if
if (Key.isDown(40))
{
kkk = true;
++yenf;
} // end if
} // end else if
if (_root.so.data.left)
{
xenf = xenf * -1;
yenf = yenf * -1;
} // end if
} // End of the function
function xox(f3, sess)
{
return (_root.IntRndFn(sess, 10) == 0 || f3 && _root.IntRndFn(sess, 2) == 0);
} // End of the function
function trixies(f3)
{
if (trixx(34) || trixx(36) || trixx(41) || trixx(44) || trixx(45))
{
if (xox(f3, 1166) && trixx(45))
{
f2 = 5.300000;
}
else if (xox(f3, 1167) && trixx(44))
{
f2 = 5.070000;
}
else if (xox(f3, 1168) && trixx(41))
{
f2 = 5.040000;
}
else if (xox(f3, 1169) && trixx(36))
{
if (_root.IntRndFn(1169, 2) == 0)
{
f0 = 5.060000;
}
else
{
f0 = 5.030000;
} // end else if
}
else if (xox(f3, 1170) && trixx(34))
{
f2 = 5.010000;
} // end else if
} // end else if
} // End of the function
function picc(f2)
{
if (_root.IntRndFn(1151, 2) == 0)
{
_root.picers[_root.IntRndFn(1151, 6)] = f2;
} // end if
} // End of the function
function pic(f1)
{
if (f1 < 7)
{
f1 = _root.picers[f1 - 1];
} // end if
return (f1);
} // End of the function
function cspawn(f0, f12)
{
for (i = 0; i < f12; i++)
{
for (f13 = 0; f13++ < 10; f13 = 1000)
{
xenf = crand(5);
yenf = crand(5);
if (_root.lev == _root.chamb)
{
xenf = xenf * 0.400000;
yenf = yenf * 0.400000;
} // end if
if (linecheckx(chestox, chestoy, trg.xp + xenf * 7, trg.yp + yenf * 7))
{
} // end if
} // end of for
if (f0 == 5.050000 || f0 == 5.060000)
{
xenf = 0;
yenf = 0;
if (trg != 2)
{
chestoy = chestoy + 10;
} // end if
} // end if
var _loc2 = create(chestox, chestoy, 0, xenf, yenf, 0, f0);
_loc2.alt = true;
if (f0 == 5.100000)
{
_loc2.fra = _loc2.fra - 15;
trg.done = true;
if (trg == 2 && _root.locker[18] && !ups[90])
{
_loc2.alt = false;
_loc2.it = 90;
} // end if
} // end if
if (f0 == 5 && trg == 2)
{
_loc2.col = 3;
} // end if
if (f0 == 5.050000 || f0 == 5.060000)
{
if (trg != 2)
{
_loc2._xscale = trg._xscale * 0.800000;
_loc2._yscale = _loc2._xscale;
} // end if
} // end if
if (f10 < 0)
{
break;
} // end if
} // end of for
} // End of the function
function onEnterFrame()
{
if (_root.richess)
{
teller();
tar = _root.boner;
_root.bona = true;
_root.richess = false;
} // end if
_root.tex = "";
for (e in shiz)
{
trg = shiz[e];
if (trg.fra < fra)
{
trg.gotoAndStop(6);
levz[trg.til] = 1.500000;
shiz.splice(e, 1);
} // end if
} // end of for...in
if (bluf == undefined)
{
bluf = _root.bluf;
} // end if
if (fra == 14 && curss)
{
st11(curss);
} // end if
if (ups[114])
{
ups[69] = ups[118] = 0;
} // end if
if (playfirst)
{
player.d.gotoAndStop(1);
playfirst = false;
} // end if
_root.chaf = chaf != undefined;
if (player.dones)
{
if (gameover == 2)
{
++_root.so.data.deads;
if (_root.so.data.deads >= 100)
{
_root.locker[39] = true;
} // end if
} // end if
if (gameover > 1)
{
if (!_root.ups[11] && _root.ups[81] <= 0 && !_root.ups[161])
{
if (!_root.dmusic)
{
_root.dmusic = true;
_root.fade = true;
} // end if
} // end if
if (_root.prsk)
{
_root.sk = _root.prsk;
_root.skiner = _root.prsk2;
_root.prsk = undefined;
_root.prsk2 = undefined;
} // end if
} // end if
if (gameover++ > 50)
{
if (_root.ups[11] || _root.ups[81] > 0 || _root.ups[161])
{
_root.armor = 0;
if (ahsut <= 0)
{
_root.beenlev[_root.lev] = false;
} // end if
_root.shroom = true;
if (!_root.ups[11])
{
if (_root.skiner == 4)
{
_root.armor = 1;
_root.ups[23] = _root.ups[23] + -player.mhp;
}
else
{
_root.ups[23] = _root.ups[23] + (1 - player.mhp);
} // end else if
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;
} // end if
_root.armor = 3;
} // end else if
}
else if (_root.skiner == 4)
{
_root.armor = 3;
} // end else if
_root.ups[11] = 0;
_root.door = _root.door * 1 + 2;
if (_root.door >= 4)
{
_root.door = _root.door - 4;
} // end if
_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.lastl = _root.lev = 35;
} // end if
_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;
} // end if
_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;
} // end if
} // end if
} // end else if
if (_root.catlives + ups[145] + ups[134] + ups[133] > 2)
{
_root.locker[85] = true;
purr = true;
} // end if
if (_root.Lokiii + ups[87] > 1)
{
lokii = true;
} // end if
if (_root.catlives + ups[38] + ups[208] + ups[211] > 2)
{
Purer = true;
} // end if
if (_root.maxish + ups[230] + ups[231] > 2)
{
maxxy = true;
} // end if
player.d.bub2._visible = ups[108] || ups[162] || ups[173] || ups[142] || ups[184] || ups[212];
if (ups[184])
{
player.d.bub2.gotoAndStop(5);
}
else if (ups[212])
{
player.d.bub2.gotoAndStop(6);
}
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);
} // end else if
if (player.d.bub._visible = playsave > 0)
{
if (playsave < 50)
{
if (playsave % 5 == 0)
{
if (co = !co)
{
player.d.bub._alpha = 100;
}
else
{
player.d.bub._alpha = 0;
} // end if
} // end if
} // end if
} // end else if
if (fra == telf)
{
_root.door = undefined;
_root.soundy("hell_portal1.wav");
if (shutdoor != 0)
{
_root.beenlev[_root.lev] = false;
} // end if
moveon();
if (tar)
{
_root.lev = tar;
}
else
{
while (_root.lev == _root.lastl || !_root.levz[_root.lev] || _root.lev > 150)
{
_root.lev = random(_root.levz.length) + 1;
} // end while
} // end else if
if (_root.lev == _root.bossl && _root.double && _root.bosss != _root.bosss2)
{
_root.lev = _root.bossl2;
} // end if
_root.tell = true;
_root.door = undefined;
_root.lastl = undefined;
_root.gotoAndStop("reset");
} // end if
if (fra % 3 == 0)
{
for (e in bomf)
{
bombfail(bomf[e][0], bomf[e][1], bomf[e][2], bomf[e][3]);
} // end of for...in
bomf = [];
} // end if
if (ups[144] && !bumz)
{
bumz = true;
trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3);
trg2.bum = true;
trg2.flyby = true;
} // end if
if (ups[114])
{
} // end if
if (!ups[216] && knife == undefined && player.d._currentframe < 3)
{
knife = trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 2);
attach(trg, 501);
trg.dy = undefined;
trg.knife = true;
} // end if
if (ups[205] && knife == undefined && player.d._currentframe < 3)
{
knife = trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 2);
attach(trg, 7868);
trg.dy = undefined;
trg.knife = true;
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
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)
{
++minions;
create(player.xp, player.yp - 10, 0, 0, 0, 0, 3);
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
if (ups[117] == 0.550000)
{
ups[117] = 0;
trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3);
trg2.bird = true;
} // end if
if (dbird == 2)
{
dbird = 1;
trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3);
trg2.bird = 2;
} // end if
if (trixx(57) && ggho == undefined && player.d._currentframe < 3)
{
ggho = trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3);
trg2.ggho = true;
} // end if
if (!trixx(57) && ggho)
{
ggho.done = true;
ggho = undefined;
} // end if
if (trixx(54) && ggho2 == undefined && player.d._currentframe < 3)
{
ggho2 = trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3);
trg2.ggho = 2;
} // end if
if (!trixx(54) && ggho2)
{
ggho2.done = true;
ggho2 = undefined;
} // end if
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);
} // end if
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);
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
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;
} // end if
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;
blufer = undefined;
trg2.xbew = trg2.xbew + crand(10);
trg2.ybew = trg2.ybew + crand(10);
} // end if
} // end if
}
else
{
bluf = 0;
} // end else if
gibb = gibb + (ball.length * 0.100000 - 0.400000);
gibb = gibb * 0.900000;
for (e in door)
{
trg = door[e];
if (trg._visible && levz[trg.blo] == 0 && (justnow < 10 || trg.hide || trg.hide2))
{
trg.blown = true;
if (trg.hide || trg.hide2)
{
if (trg.hide2)
{
hider2();
}
else
{
hider();
} // end else if
trg.gotoAndStop(17);
}
else if (!keyo)
{
if (mom.length > 4 || _root.lev == _root.minb)
{
levz[trg.blo] = 1;
trg.blown = false;
}
else
{
trg.gotoAndStop(5);
} // end if
} // end else if
} // end else if
if (trg.blown && levz[trg.blo] < 1)
{
levz[trg.blo] = 0.900000;
} // end if
} // end of for...in
if (ups[75] && random(150) == 0)
{
piller();
} // end if
f1 = _root.it;
if (f1 < 1)
{
f1 = "empty";
_root.itc = 1;
_root.hud.it.gotoAndStop(7);
_root.hud.it.d.gotoAndStop(20);
} // end if
f10 = [3, 4, 2, 1, 3, 2, 1, 2];
player.mhp = Math.min(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], 12);
if (_root.skiner == 4)
{
if (player.mhp > 0)
{
--_root.ups[22];
ups[22] = _root.ups[22];
++_root.armor;
} // end if
player.mhp = 0;
} // end if
if (player.mhp >= 7)
{
_root.locker[1] = true;
} // end if
if (player.hp > mhpp)
{
if (fra > 10)
{
if (player.hp - mhpp > 0.550000)
{
red = 7;
}
else
{
red = 4;
} // end if
} // end if
} // end else if
mhpp = player.hp;
if (_root.armor > ahpp)
{
if (fra > 10)
{
blue = 7;
} // end if
} // end if
if (player.hp > 0)
{
player.hp = Math.max(0.500000, Math.min(player.mhp, player.hp));
} // end if
if (_root.itc >= 0.900000)
{
_root.itc = 1;
if (_root.hud.it._currentframe <= 14)
{
_root.hud.it.nextFrame();
}
else if (itb-- < 0)
{
_root.hud.it.gotoAndStop(15);
} // end else if
}
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.500000) + 1);
} // end else if
if (_root.hud.extra2._visible = _root.trix != undefined)
{
_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);
} // end if
}
else
{
if (_root.hud.plix._currentframe < 3)
{
_root.hud.plix.gotoAndStop(4);
} // end if
_root.hud.extra2.d._alpha = 0;
_root.hud.tex2 = "";
_root.hud.black._xscale = 0.100000;
} // end else if
if (_root.hud.extra3._visible = _root.atrix != undefined)
{
_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);
} // end if
}
else
{
if (_root.hud.plix2._currentframe < 3)
{
_root.hud.plix2.gotoAndStop(4);
} // end if
_root.hud.extra3.d._alpha = 0;
_root.hud.tex3 = "";
_root.hud.black2._xscale = 0.100000;
} // end else if
if (_root.hud.extra._visible = _root.pilc != undefined)
{
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;
} // end else if
if (!f10)
{
f2 = true;
} // end if
if (!_root.piller[_root.pilc])
{
f11 = "???";
}
else
{
switch (Math.round(f11))
{
case 14:
{
if (f2)
{
f11 = "Luck Up";
}
else
{
f11 = "Luck Down";
} // end else if
break;
}
case 13:
{
f11 = "Friends till the end!";
break;
}
case 6:
{
if (player.hp + _root.armor > 1)
{
f11 = "Bad Trip!";
break;
} // end if
}
case 1:
{
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;
} // end else if
if (f13 <= 1 || f2)
{
f11 = "Health Up";
}
else
{
f11 = "Health Down";
} // end else if
break;
}
case 8:
{
f11 = "Bombs are Key";
break;
}
case 9:
{
if (f2)
{
f11 = "Tears Up";
}
else
{
f11 = "Tears Down";
} // end else if
break;
}
case 17:
{
if (f2)
{
f11 = "Shot Speed Down";
}
else
{
f11 = "Shot Speed Up";
} // end else if
break;
}
case 15:
{
if (f2)
{
f11 = "Tears Up & Range down";
}
else
{
f11 = "Tears Down & Range Up";
} // end else if
break;
}
case 16:
{
if (_root.skiner != 4)
{
f13 = player.mhp;
}
else
{
f13 = _root.armor;
} // end else if
if (f13 <= 1 || f2)
{
f11 = "Health Up & Speed down";
}
else
{
f11 = "Health Down & Speed Up";
} // end else if
break;
}
case 10:
{
if (f2 || ups[6] && _root.chaps < 8)
{
f11 = "Range Up";
}
else
{
f11 = "Range Down";
} // end else if
break;
}
case 11:
{
if (f2)
{
f11 = "Speed Up";
}
else
{
f11 = "Speed Down";
} // end else if
break;
}
case 12:
{
f11 = "Bad Gas";
break;
}
case 126:
{
f11 = "TelePills";
break;
}
} // End of switch
} // end else if
_root.hud.pilll.tex = f11;
} // end else if
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);
} // end if
}
else
{
if (_root.hud.pilll._currentframe < 3)
{
_root.hud.pilll.gotoAndStop(4);
} // end if
_root.hud.it.d._alpha = 100;
} // end else if
if (_root.kep)
{
_root.hud.kep.gotoAndStop(2);
}
else
{
_root.hud.kep.gotoAndStop(1);
} // end else if
if (f1 > 0 || f1 == "empty")
{
_root.hud.it.d.gotoAndStop(f1);
} // end if
_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;
} // end if
_root.hud.coins = _root.coins;
_root.hud.bombs = _root.bombs;
_root.hud.keys = _root.keys;
f1 = 1;
if (ups[11])
{
++f1;
} // end if
if (ups[81])
{
f1 = f1 + ups[81];
} // end if
if (f1 > 1)
{
_root.hud.ups = "x" + f1;
}
else
{
_root.hud.ups = "";
} // end else if
_root.hud.chaps = levn[_root.chaps];
if (_root.altchap)
{
_root.hud.chaps = levn2[_root.chaps];
} // end if
if (_root.double)
{
_root.hud.chaps = _root.hud.chaps.split(" 2").join("");
_root.hud.chaps = _root.hud.chaps + " XL";
} // end if
if (_root.hud.keys < 10)
{
_root.hud.keys = "0" + _root.hud.keys;
} // end if
if (_root.hud.bombs < 10)
{
_root.hud.bombs = "0" + _root.hud.bombs;
} // end if
if (_root.hud.coins < 10)
{
_root.hud.coins = "0" + _root.hud.coins;
} // end if
_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.150000 + Math.random() * 0.150000;
bloc.greenMultiplier = 0.150000 + Math.random() * 0.150000;
bloc.blueMultiplier = 0.150000 + Math.random() * 0.150000;
}
else
{
bloc = new flash.geom.ColorTransform();
bloc.redMultiplier = 0.850000 + Math.random() * 0.150000;
bloc.greenMultiplier = 0.850000 + Math.random() * 0.150000;
bloc.blueMultiplier = 0.850000 + Math.random() * 0.150000;
} // end else if
} // end else if
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;
} // end else if
for (e = 0; e < 12; e++)
{
trg2 = trg["h" + e];
if (e >= player.mhp)
{
if (f1-- > 0)
{
trg2._visible = true;
if (f4)
{
f4 = false;
trg2.gotoAndStop(8);
}
else if (f1 > -0.500000)
{
trg2.gotoAndStop(5);
}
else
{
trg2.gotoAndStop(6);
} // end else if
if (f3)
{
colorit(trg2, 1.600000, 1.600000, 2, 20, 20, 60);
}
else
{
colorit(trg2, 1, 1, 1, 0, 0, 0);
} // end else if
}
else
{
trg2._visible = false;
} // end else if
continue;
} // end if
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.600000, 1.600000, 100, 0, 0);
continue;
} // end if
colorit(trg2, 1, 1, 1, 0, 0, 0);
} // end of for
trg2 = trg.h0;
if (!f2)
{
if (player.hp < 1 && player.mhp >= 1)
{
if (fra % 10 == 0)
{
if (fra % 20 == 0)
{
colorit(trg2, 2, 1.600000, 1.600000, 100, 0, 0);
}
else
{
colorit(trg2, 1, 1, 1, 0, 0, 0);
} // end if
} // end else if
}
else
{
colorit(trg2, 1, 1, 1, 0, 0, 0);
} // end if
} // end else if
if (enfget(_x, _y) < 2)
{
_root.olda._visible = false;
setProperty("", _y, 0);
setProperty("", _x, 0);
}
else if (_root.door != undefined)
{
v1 = 0.500000 + Math.min(enfget(_x, _y) * 0.004000, 0.220000);
setProperty("", _x, _x * v1);
setProperty("", _y, _y * v1);
_root.olda._x = _x - olfx;
_root.olda._y = _y - olfy;
_root.olda._visible = true;
} // end else if
f1 = 40;
if (olfy > 0)
{
_root.olda._y = _root.olda._y + f1;
}
else if (olfy < 0)
{
_root.olda._y = _root.olda._y - f1;
} // end else if
if (Key.isDown(82))
{
if (resee++ > 30)
{
_root.fade = true;
newstart(true);
} // end if
}
else
{
resee = 0;
} // end else if
if (Key.isDown(78))
{
} // end if
if (Key.isDown(79))
{
unpause = false;
_root.hud.paus.gotoAndStop(5);
} // end if
if (Key.isDown(73))
{
} // end if
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;
} // end if
} // end of for...in
} // end if
}
else if (!wetwwer)
{
wetwwer = true;
golev();
_root.black.prevFrame();
}
else
{
_root.fullhp = player.hp + _root.armor >= player.mhp;
if (chama)
{
f1 = (_root.chama || (_root.fullhp && !_root.altch || _root.altch && player.hp < 1.500000 || _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);
continue;
} // end if
v1 = trg.blo;
levz[v1] = 0;
clevc[v1] = 0;
if (trg._currentframe != 27 && trg._currentframe != 25)
{
trg.gotoAndStop(25);
} // end if
} // end if
} // end of for...in
if (chama > 1 && !_root.chama)
{
if (!_root.amusic)
{
_root.amusic = true;
_root.fade = true;
_root.mmus.dones = true;
} // end if
if (shutdoor == 0)
{
if (chamb++ > 50)
{
mhelps = 0;
f1 = _root.switchero;
if (_root.chaps % 2 == 1)
{
f1 = !f1;
} // end if
if (_root.altch)
{
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];
} // end else if
}
else if (_root.chaps < 3)
{
if (f1)
{
f0 = [18, 5, 14, 5, 10, 4];
}
else
{
f0 = [29, 3, 12, 3, 15, 2];
} // end else if
}
else if (_root.chaps < 5)
{
if (f1)
{
f0 = [23, 5, 24, 4, 26, 4];
}
else
{
f0 = [31, 5, 22, 3, 27, 3];
} // end else if
}
else if (_root.chaps < 7)
{
if (f1)
{
f0 = [38, 4, 29, 5, 41, 4];
}
else
{
f0 = [39, 3, 34, 4, 24.400000, 4];
} // end else if
}
else if (f1)
{
f0 = [19, 3, 28, 4, 20, 2];
}
else
{
f0 = [71, 1, 69, 1, 28, 1];
} // end else if
f1 = f0[(chama - 2) * 2];
f2 = f0[(chama - 2) * 2 + 1];
f3 = 0;
f6 = 3.141593 / f2 * 2;
for (e = 0; e < f2; e++)
{
f4 = Math.sin(f3) * 200 + 320;
f5 = Math.cos(f3) * 180 + 250;
if (enfcheck(f4, f5, player.xp, player.yp, 40))
{
f3 = f3 + f6 / 2;
--e;
continue;
} // end if
f3 = f3 + f6;
_root.soundy("summonsound.wav", 150);
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);
} // end if
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;
} // end if
continue;
} // end if
spaw(f4, f5, 0, f1);
} // end of for
++chama;
if (chama > 4)
{
justnow = 7;
_root.chama = true;
} // end if
chamb = 30;
} // end if
} // end if
} // end if
} // end if
if ((keyd && !keyo || shutdoor == 0) && unpause)
{
if (shutdoor == 0)
{
++justnow;
} // end if
if (justnow == 10 || keyd && !keyo)
{
keyo = true;
if (fra > 20)
{
_root.soundy("Door_Heavy_Open.mp");
} // end if
for (e in door)
{
trg = door[e];
nohit = false;
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;
} // end else if
}
else if (trg.boner)
{
if (_root.bona)
{
trg.gotoAndStop(33);
}
else
{
nohit = true;
} // end else if
}
else if (trg.shop || trg.lib)
{
if (_root.shopa && trg.shop || _root.liba && trg.lib)
{
trg.gotoAndStop(1);
}
else
{
nohit = true;
} // end else if
}
else if (trg.gamb)
{
if (_root.gama)
{
trg.gotoAndStop(21);
}
else
{
nohit = true;
} // end else if
}
else if (trg.chamb)
{
if (fra < 15)
{
trg.gotoAndStop(27);
} // end if
}
else if (trg.sat)
{
if (satan)
{
if (_root.altsat)
{
trg.gotoAndStop(41);
}
else
{
trg.gotoAndStop(19);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment