Combined Code
frame 1 {
function preloadSite() {
var v3 = _root.getBytesLoaded();
var v2 = _root.getBytesTotal();
var v4 = Math.round((v3 / v2) * 100);
redloadingbar_mc._xscale = v4;
percent_text.text = v4 + '%';
if (v3 >= v2) {
clearInterval(loadingCall);
gotoAndStop(2);
}
}
stop();
loadingbar_mc._xscale = 1;
var loadingCall = setInterval(preloadSite, 50);
}
movieClip 84 {
}
frame 2 {
function doscene() {
if (scene == 0) {
doscene0();
if (phase < 7) {
dopriogang();
}
} else {
if (scene > 0 && scene < 1) {
dotitle();
} else {
if (scene == 1) {
doscene1();
} else {
if (scene == 2) {
doscene2();
} else {
if (scene == 3) {
doscene3();
} else {
if (scene == 4) {
doscene4();
} else {
if (scene == 5) {
doscene5();
} else {
if (scene == 6) {
dodung();
dokeys();
} else {
if (scene == 6.5) {
dotitfuck();
dokeys();
} else {
if (scene == 7) {
doscene7();
dokeys();
} else {
if (scene == 8) {
doscene8();
dokeys();
} else {
if (scene == 9) {
doscene9();
dokeys();
}
}
}
}
}
}
}
}
}
}
}
}
}
function doscene0() {
if (phase >= 7) {
docannon();
} else {
if (scenestarted != 1) {
init_bang();
}
if (phase == 4) {
dobanganal();
mon1 = 'aphase:' + aphase;
} else {
if (phase == 6) {
dodumoral();
mon1 = 'ophase:' + ophase;
} else {
if (phase == 5) {
dobangnoise();
}
gbtalk();
bangwrite();
mon1 = 'gbsay:' + gbsay + ' ewho:' + editwho + ' sx:' + stumpyx + ' sty:' + stumpyy;
}
}
}
dokeys();
}
function doscroll() {
if (scene == 1) {
bxedge = did_mc._x - 320;
if (bxedge < -100) {
dx = (bxedge + 100) / 4;
if (dx <= 1) {
xscroll += dx;
}
if (xscroll < 0) {
xscroll = 0;
}
} else {
if (bxedge > 100) {
dx = (bxedge - 100) / 4;
if (dx >= 1) {
xscroll += dx;
}
if (xscroll > 999) {
xscroll = 999;
}
}
}
return undefined;
} else {
if (scene == 3) {
bxedge = blood_mc._x - 320;
wxedge = whimp_mc._x - 320;
byedge = blood_mc._y - 240;
wyedge = whimp_mc._y - 240;
botyedge = byedge;
if (wyedge > byedge) {
botyedge = wyedge;
}
topyedge = byedge;
if (wyedge < byedge) {
topyedge = wyedge;
}
if (phase == 3 || bdeck == 1 || wdeck == 1 || bdeck != wdeck || phase == 4 || phase == 5 || phase == 6 || phase == 7 || phase == 8) {
fullv = 72;
if (vscale > fullv) {
dx = vscale - fullv;
vscale -= dx / 8;
}
if (dieseq >= 1) {
dx = (60 - xscroll) / 16;
if (abs(dx) >= 0.1) {
xscroll += dx;
} else {
xscroll = 60;
}
} else {
if (abs(xscroll) >= 1) {
dx = xscroll / 8;
xscroll -= dx;
} else {
xscroll = 0;
}
}
if (phase < 5) {
if (yscroll > 435) {
dy = yscroll - 435;
if (abs(dy) < 1) {
yscroll = 435;
} else {
yscroll -= dy / 8;
}
}
} else {
if (botyedge >= 200) {
dy = (botyedge - 200) / 2;
if (dy >= 1) {
yscroll += dy;
}
} else {
if (topyedge < 0) {
dy = (topyedge - 0) / 4;
if (dy <= -1) {
yscroll += dy;
}
}
}
if (yscroll < -465) {
yscroll = -465;
}
}
return undefined;
}
if (vscale < 100) {
dx = 100 - vscale;
if (abs(dx) < 1) {
vscale = 100;
} else {
vscale += dx / 4;
}
}
if (yscroll < 559) {
dy = yscroll - 559;
if (abs(dy) < 1) {
yscroll = 559;
} else {
yscroll -= dy / 8;
}
}
if (!halt) {
} else {
if (bxedge < -200) {
dx = (bxedge + 200) / 4;
if (dx <= 1) {
xscroll += dx;
}
if (xscroll < -235) {
xscroll = -235;
}
} else {
if (bxedge > 200) {
dx = (bxedge - 200) / 4;
if (dx >= 1) {
xscroll += dx;
}
if (xscroll > 230) {
xscroll = 230;
}
} else {
if (abs(bxedge) < 180) {
apart = abs(bloodx - whimpx);
if (apart > 300) {
div = 32;
} else {
div = 8;
}
if (wxedge < -200) {
dx = (wxedge + 200) / div;
if (dx <= 4) {
xscroll += dx;
}
if (xscroll < -235) {
xscroll = -235;
}
} else {
if (wxedge > 200) {
dx = (wxedge - 200) / div;
if (dx >= 4) {
xscroll += dx;
}
if (xscroll > 230) {
xscroll = 230;
}
}
}
}
}
}
}
} else {
xscroll = 0;
}
}
}
function doprio() {
if (scene == 0) {
} else {
if (scene == 1) {
junkpback = 9000;
didp = 10000;
if (dumy > didy) {
dump = didp + 200;
junkpmid = didp + 100;
} else {
dump = didp - 200;
junkpmid = didp - 100;
}
junkpfront = 11000;
did_mc.swapDepths(didp);
dum_mc.swapDepths(dump);
bg_mc._x = 320 - xscroll;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(2);
night_mc.swapDepths(20000);
if (!lamplight) {
night_mc._x = 320 - xscroll - 240;
} else {
night_mc._x = 320 - xscroll + didx;
}
night_mc._y = 240;
night_mc._xscale = 400;
night_mc._yscale = 400;
night_mc._alpha = 95;
nest_mc._x = -10000;
shroudl_mc._x = -10000;
shroud_mc._x = -10000;
pooprail_mc._x = -10000;
mizzen_mc._x = -10000;
sword_mc._x = -10000;
playrope_mc._x = -10000;
whimp_mc._x = -10000;
wlives_mc._x = -10000;
blives_mc._x = -10000;
} else {
if (scene == 2) {
} else {
if (scene == 3) {
night_mc._x = -10000;
maze2_mc.swapDepths(-10);
vm = vscale / 100;
mizzen_mc._x = 320 + 3 * vm - xscroll * vm;
mizzen_mc._y = 240 + 208 * vm - yscroll * vm;
mizzen_mc._yscale = vscale;
mizzen_mc._xscale = mizzen_mc._yscale;
mizzen_mc.gotoAndStop(1);
pooprail_mc._x = 320 + 4 * vm - xscroll * vm;
pooprail_mc._y = 240 + 503 * vm - yscroll * vm;
pooprail_mc._yscale = vscale;
pooprail_mc._xscale = pooprail_mc._yscale;
pooprail_mc.gotoAndStop(1);
shroud_mc._x = 320 + 6 * vm - xscroll * vm;
shroud_mc._y = 240 + -455 * vm - yscroll * vm;
shroud_mc._yscale = vscale;
shroud_mc._xscale = shroud_mc._yscale;
shroudl_mc._x = 320 + 1 * vm - xscroll * vm;
shroudl_mc._y = 240 + -455 * vm - yscroll * vm;
shroudl_mc._xscale = -vscale;
shroudl_mc._yscale = vscale;
nest_mc._x = 320 + 0 * vm - xscroll * vm;
nest_mc._y = 240 + (113 - 500 * vm) - yscroll * vm;
nest_mc._xscale = vscale;
nest_mc._yscale = vscale;
if (phase < 8) {
nest_mc.gotoAndStop(1);
} else {
nest_mc.gotoAndStop(2);
}
if (phase == 4 && blives < 4 || phase == 8 && slides >= 5) {
if (onauto) {
autobutton_mc._x = 64;
autobutton_mc._y = 421;
autobutton_mc.swapDepths(22403);
autobutton_mc.gotoAndStop(2);
if (phase == 4) {
autobutton_mc.txt.text = 'Duck under poopdeck when Whimpet throws cannon ball. Cut rope after ball has landed.';
} else {
autobutton_mc.txt.text = 'Follow Whimpet closely up the mast. Press UP and RIGHT arrows to jump to rope when he slides.';
}
} else {
autobutton_mc._x = 33;
autobutton_mc._y = 455;
autobutton_mc.swapDepths(22403);
autobutton_mc.gotoAndStop(1);
}
} else {
autobutton_mc._x = -10000;
}
smoky -= 1;
if (smoky <= -240) {
smoky = 240;
}
if (!drinking) {
bg640_mc.swapDepths(10);
bg640_mc.gotoAndStop(57);
bg640_mc._alpha = smokealpha;
bg640_mc._x = 320;
bg640_mc._y = 240 + smoky;
bg640_mc._yscale = 200;
}
bg_mc._x = 320 - xscroll * vm;
bg_mc._y = 240 - yscroll * vm;
bg_mc._xscale = vscale;
bg_mc._yscale = vscale;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(1);
b = 0;
if (bdeck >= 1) {
b = 1;
} else {
if (bloodz > 0) {
b = 0;
} else {
if (bloodx > -211 && bloodx < 211) {
if (bloody < -10) {
b = 1;
}
} else {
if (bloody < 0) {
b = 1;
}
}
}
}
if (bdeck >= 4) {
bp = 10000;
} else {
if (bdeck == 3 && banim == CLIMB && bseq >= 4) {
bp = 10000;
} else {
if (bdeck == 2 && bloody < -167) {
bp = 10000;
} else {
if (b == 0) {
bp = 10040;
} else {
bp = 10020;
}
}
}
}
if (wdeck >= 4) {
wp = 10000;
} else {
if (wdeck == 3 && wanim == CLIMB && wseq >= 4) {
wp = 10000;
} else {
if (wdeck == 2 && whimpy < -167) {
wp = 10000;
} else {
if (wdeck == 0) {
wp = 10040;
} else {
wp = 10020;
}
}
}
}
shroudl_mc.swapDepths(10007);
shroud_mc.swapDepths(10008);
nest_mc.swapDepths(10009);
mizzen_mc.swapDepths(10010);
pooprail_mc.swapDepths(10030);
playrope_mc.swapDepths(10031);
if (bdeck == wdeck && bloody == whimpy) {
if (banim == KILL) {
++wp;
} else {
if (wdeck == 6) {
--wp;
} else {
if (banim == CUT1) {
++wp;
} else {
--wp;
}
}
}
} else {
if (bdeck == wdeck) {
if (wdeck == 6) {
--wp;
} else {
if (bloody >= whimpy) {
--wp;
} else {
++wp;
}
}
if (halt == 15) {
wp = 10036;
}
} else {
if (bloody >= whimpy) {
--wp;
} else {
++wp;
}
}
}
blood_mc.swapDepths(bp);
whimp_mc.swapDepths(wp);
if (dieseq) {
sword_mc.swapDepths(10018);
} else {
sword_mc.swapDepths(bp - 2);
}
if (ballstat[0] == 1) {
ball0_mc.swapDepths(wp + 2);
} else {
ball0_mc.swapDepths(10100);
}
if (ballstat[1] == 1) {
ball1_mc.swapDepths(wp + 2);
} else {
ball1_mc.swapDepths(10101);
}
if (ballstat[2] == 1) {
ball2_mc.swapDepths(wp + 2);
} else {
ball2_mc.swapDepths(10102);
}
if (ballstat[3] == 1) {
ball3_mc.swapDepths(wp + 2);
} else {
ball3_mc.swapDepths(10103);
}
if (kittyy < -10) {
kd = 10017;
} else {
kd = 10037;
}
kitty_mc.swapDepths(kd);
bg640_mc.swapDepths(20002);
blives_mc.swapDepths(20003);
beta_mc.swapDepths(20005);
beta_mc._x = 599;
beta_mc._y = 481;
}
}
}
}
}
function domon() {
if (!debug) {
mon0_mc._x = -10000;
return undefined;
}
mon0_mc.mon0_txt.text = mon0 + '\r' + mon1 + '\r' + mon2 + '\r' + mon3 + '\r' + mon4 + '\r' + mon5 + '\r' + mon6 + '\r' + mon7;
mon0_mc._x = 210;
mon0_mc.swapDepths(22902);
}
function dokeys() {
if (!Key.isDown(68)) {
drel = 1;
}
if (Key.isDown(68) && drel) {
if (debug) {
debug = 0;
} else {
debug = 1;
}
drel = 0;
}
if (debug) {
if (!Key.isDown(83)) {
srel = 1;
}
if (Key.isDown(83) && srel) {
srel = 0;
if (scene == 0) {
scene = 0.5;
} else {
if (scene > 0 && scene < 1) {
scene = 1;
} else {
++scene;
}
}
if (scene > 9) {
scene = 0;
}
stoploop();
speaking = 0;
platedelay = 0;
platealpha = 0;
scenestarted = 0;
if (scene == 0) {
init_bang();
} else {
if (scene == 1) {
init_bdeck();
} else {
if (scene == 2) {
init_cabin();
} else {
if (scene == 3) {
init_ondeck();
} else {
if (scene == 4) {
scenestarted = 0;
} else {
if (scene >= 5) {
scenestarted = 0;
} else {
scenestarted = 0;
}
}
}
}
}
}
}
if (warp == 0) {
if (Key.isDown(49)) {
init_bang();
phase = 1;
gbsay = 0;
saydel = 20;
}
if (Key.isDown(50)) {
init_bang();
gbsay = 6;
saydel = 20;
}
if (Key.isDown(52)) {
init_bang();
phase = 4;
aphase = 0;
}
if (Key.isDown(53)) {
init_bang();
phase = 5;
aphase = 0;
gbsay = 16;
dframe = 14;
attacharrow = 0;
}
if (Key.isDown(54)) {
init_bang();
phase = 6;
aphase = 0;
gbsay = 19;
dframe = 14;
}
}
if (warp == 1) {
if (Key.isDown(49)) {
init_bdeck();
}
if (Key.isDown(50)) {
didx = 800;
dumx = 700;
didy = 208;
dumy = 208;
lamplight = 1;
atlamp = 2;
atdoor = 0;
}
}
if (warp == 3) {
if (Key.isDown(50)) {
showpop = 0;
bloodx = 0;
bloody = 35;
bface = LEFT;
banim = ENGARDE;
bseq = 0;
whimpx = -188;
whimpy = 35;
wface = right;
wanim = ENGARDE;
wseq = 0;
kittyx = -53;
kittyy = bloody - 32;
kanim = STAND;
kseq = 0;
kittyowner = 0;
halt = 10;
phase = 2;
noact = 0;
blives = 10;
advantage = WHIMP;
changes = 0;
subphase = 0;
} else {
if (Key.isDown(51)) {
showpop = 0;
bloodx = -264;
bloody = 35;
bface = LEFT;
banim = ENGARDE;
bseq = 0;
whimpx = -475;
whimpy = 35;
wface = right;
wanim = TOUCHE;
wseq = 0;
kittyx = -262;
kittyy = 3;
kanim = STAND;
kseq = 0;
kittyowner = 0;
halt = 10;
phase = 2;
noact = 0;
virgin = 0;
xscroll = -235;
dieseq = 0;
} else {
if (Key.isDown(52)) {
showpop = 0;
bloodx = 264;
bloody = 35;
bface = LEFT;
banim = ENGARDE;
bseq = 0;
bdeck = 0;
whimpx = 74;
whimpy = 35;
wface = right;
wanim = ENGARDE;
wseq = 0;
wdeck = 0;
kittyx = 220;
kittyy = 3;
kanim = STAND;
kseq = 0;
kittyowner = 0;
halt = 10;
noact = 0;
virgin = 0;
xscroll = 230;
phase = 2;
swordx = -10000;
dieseq = 0;
advantage = BLOOD;
changes = 0;
subphase = 1;
} else {
if (Key.isDown(53)) {
showpop = 0;
bloodx = 264;
bloody = 35;
bface = LEFT;
banim = ENGARDE;
bseq = 0;
bdeck = 0;
whimpx = 74;
whimpy = 35;
wface = right;
wanim = ENGARDE;
wseq = 0;
wdeck = 0;
kittyx = 220;
kittyy = 3;
kanim = STAND;
kseq = 0;
kittyowner = 0;
halt = 10;
noact = 0;
virgin = 0;
xscroll = 230;
phase = 4;
swordx = -10000;
advantage = BLOOD;
changes = 0;
subphase = 0;
dieseq = 0;
} else {
if (Key.isDown(54)) {
showpop = 0;
bloodx = 222;
bloody = -96;
bloodz = 0;
bface = FRONT;
banim = STAND;
bseq = 0;
bdeck = 2;
whimpx = 291;
whimpy = -96;
whimpz = 0;
wface = FRONT;
wanim = STAND;
wseq = 0;
wdeck = 2;
kittyx = 220;
kittyy = 3;
kanim = STAND;
kseq = 0;
kittyowner = 0;
halt = 10;
noact = 0;
virgin = 0;
xscroll = 230;
phase = 5;
swordx = -10000;
advantage = BLOOD;
changes = 0;
subphase = 0;
blives = 8;
dieseq = 0;
vscale = 72;
xscroll = 0;
yscroll = 112;
} else {
if (Key.isDown(55)) {
showpop = 0;
bloodx = 100;
bloody = -103;
bloodz = 640;
bface = RIGHT;
banim = DRAW;
bseq = 0;
bdeck = 4;
whimpx = 290;
whimpy = -103;
whimpz = 640;
wface = LEFT;
wanim = DRAW;
wseq = 0;
wdeck = 4;
kittyx = 220;
kittyy = 3;
kanim = STAND;
kseq = 0;
kittyowner = 0;
halt = 10;
noact = 0;
virgin = 0;
xscroll = 230;
phase = 6;
swordx = -10000;
advantage = BLOOD;
changes = 0;
subphase = 0;
blives = 8;
dieseq = 0;
vscale = 72;
xscroll = 0;
yscroll = 112;
} else {
if (Key.isDown(56)) {
showpop = 0;
bloodx = 400;
bloody = -103;
bloodz = 640;
bface = RIGHT;
banim = STAND;
bstep = 18;
bseq = 0;
bdeck = 4;
whimpx = 290;
whimpy = -103;
whimpz = 640;
wface = LEFT;
wanim = DIE;
wseq = 0;
wzadd = 0;
wxadd = (490 - whimpx) / 36;
wdeck = 4;
dieseq = 1;
kittyx = 220;
kittyy = 24;
kanim = STAND;
kseq = 0;
kittyowner = 0;
halt = 10;
noact = 0;
virgin = 0;
phase = 8;
advantage = BLOOD;
changes = 0;
subphase = 0;
blives = 8;
wlives = 5;
}
}
}
}
}
}
}
}
if (Key.isDown(70)) {
if (Key.isDown(39)) {
++fadjx;
}
if (Key.isDown(37)) {
--fadjx;
}
if (Key.isDown(38)) {
--fadjy;
}
if (Key.isDown(40)) {
++fadjy;
}
}
if (Key.isDown(65)) {
if (Key.isDown(39)) {
++adjx;
}
if (Key.isDown(37)) {
--adjx;
}
if (Key.isDown(38)) {
--adjy;
}
if (Key.isDown(40)) {
++adjy;
}
} else {
if (Key.isDown(86)) {
if (Key.isDown(39)) {
++vscale;
}
if (Key.isDown(37)) {
--vscale;
}
} else {
if (Key.isDown(83)) {
if (Key.isDown(39)) {
++xscroll;
}
if (Key.isDown(37)) {
--xscroll;
}
if (Key.isDown(38)) {
--yscroll;
}
if (Key.isDown(40)) {
++yscroll;
}
}
}
}
}
if (secretunlocked == 0) {
kk = Key.getCode();
if (keyseq == 0 && kk == 72) {
keyseq = 1;
} else {
if (keyseq == 1) {
if (kk == 72) {
} else {
if (kk == 65) {
keyseq = 2;
} else {
keyseq = 0;
}
}
} else {
if (keyseq == 2) {
if (kk == 65) {
} else {
if (kk == 82) {
keyseq = 3;
rkeyrel = 0;
} else {
keyseq = 0;
}
}
} else {
if (keyseq == 3) {
if (!Key.isDown(82)) {
rkeyrel = 1;
}
if (Key.isDown(82) && rkeyrel) {
secretunlocked = 1;
highestscene = 10;
keyseq = 0;
sayfile('harp.mp3');
} else {
if (kk != 82) {
keyseq = 0;
}
}
}
}
}
}
}
mon3 = 'adjx:' + adjx + ' adjy:' + adjy + ' fadjx:' + fadjx + ' fadjy:' + fadjy;
}
function sine(deg) {
rad = deg * Math.PI / 180;
return Math.sin(rad);
}
function cosine(deg) {
rad = deg * Math.PI / 180;
return Math.cos(rad);
}
function rad2deg(rad) {
deg = rad * 180 / Math.PI;
return deg;
}
function deg2rad(deg) {
rad = deg * Math.PI / 180;
return rad;
}
function abs(n) {
return Math.abs(n);
}
function floor(n) {
return Math.floor(n);
}
function rnd(range) {
r = floor(Math.random() * range);
return r;
}
function rnd1() {
r = rnd(65536);
if (r < 32768) {
return 0;
} else {
return 1;
}
}
function finddistance(x1, y1, x2, y2) {
distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
return distance;
}
function showplate(lines, saywhat) {
plate_mc.gotoAndStop(lines);
plate_mc.txt.text = saywhat;
platealpha = 100;
if (lines == 5) {
if (scene == 9) {
platedelay = 80;
platey = 321 + adjy;
} else {
platedelay = 80;
platey = 446;
}
} else {
platedelay = 40;
platey = 422;
}
}
function dobubble() {
if (platedelay) {
--platedelay;
} else {
if (platealpha) {
platealpha -= 10;
}
}
plate_mc.swapDepths(23531);
plate_mc._x = 320;
if (platealpha) {
plate_mc._y = platey;
} else {
plate_mc._y = -10000;
}
plate_mc._alpha = platealpha;
if (speaking) {
bubble_mc.swapDepths(24017);
if (scene != 3) {
bubble_mc._x = 320 + bubblex - xscroll;
bubble_mc._y = 240 + bubbly;
} else {
bubble_mc._x = 320 + bubblex * vm - xscroll * vm;
bubble_mc._y = 240 + 679 * vm + bubbly * vm - yscroll * vm;
}
--speakdelay;
if (speakdelay <= 0) {
speaking = 0;
whospeaking = 0;
}
} else {
bubble_mc.swapDepths(-16384);
}
}
function saythis(words, delay, typ, bblx, bbly) {
speaking = 1;
speakdelay = (delay + 10) * framerate;
bubble_mc._xscale = 100;
bubble_mc._yscale = 100;
bubble_mc.gotoAndStop(typ);
bubble_mc.txt.text = words;
bubblex = bblx;
bubbly = bbly;
}
function saythisbig(words, delay, typ, bblx, bbly) {
speaking = 1;
speakdelay = delay * framerate;
bubble_mc._xscale = 150;
bubble_mc._yscale = 150;
bubble_mc.gotoAndStop(typ);
bubble_mc.txt.text = words;
bubblex = bblx;
bubbly = bbly;
bubble_mc._x = bblx;
bubble_mc._y = bbly;
}
function saythismed(words, delay, typ, bblx, bbly) {
speaking = 1;
speakdelay = delay * framerate;
bubble_mc._xscale = 125;
bubble_mc._yscale = 125;
bubble_mc.gotoAndStop(typ);
bubble_mc.txt.text = words;
bubblex = bblx;
bubbly = bbly;
}
function flipgame() {
if (flip > 0) {
ADV_KEY = 37;
RET_KEY = 39;
} else {
ADV_KEY = 39;
RET_KEY = 37;
}
}
function dolives() {
if (scene == 3) {
blives_mc.gotoAndStop(1 + blives);
blives_mc._x = 620;
blives_mc._y = 50;
} else {
blives_mc._x = -10000;
}
}
function dofade() {
sheet_mc._x = 320;
sheet_mc._y = 230;
if (goblack) {
sheet_mc.gotoAndStop(1);
if (goblack >= 100) {
if (scene == 0 && phase == 3) {
phase = 4;
aphase = 0;
} else {
if (scene == 0 && phase == 4) {
phase = 5;
aphase = 0;
gbsay = 16;
dframe = 14;
} else {
if (scene == 0 && phase == 5) {
phase = 6;
ophase = 0;
} else {
if (scene == 2) {
scene = 3;
phase = 1;
init_ondeck();
} else {
if (scene == 0.8) {
scene = 1;
scenestarted = 0;
phase = 0;
} else {
if (scene == 1) {
scene = 2;
scenestarted = 0;
phase = 0;
init_cabin();
}
}
}
}
}
}
goblack = 0;
unblack = 99;
sheet_mc._alpha = 100;
return undefined;
} else {
if (goblack < 100) {
goblack += 10;
}
sheet_mc._alpha = goblack;
sheet_mc.swapDepths(26000);
}
}
if (goblackslow > 0) {
sheet_mc.gotoAndStop(1);
if (scene == 0.5) {
noSound.setVolume(100 - goblackslow);
}
if (goblackslow >= 100) {
if (scene == 9 && phase == 2) {
phase = 3;
hideall();
frontalpha = 0;
sayfile('cricket.mp3');
} else {
if (scene == 8) {
scene = 9;
phase = 0;
scenestarted = 0;
} else {
if (scene == 7) {
scene = 8;
phase = 0;
scenestarted = 0;
} else {
if (scene == 6.5) {
scene = 7;
phase = 0;
scenestarted = 0;
} else {
if (scene == 6) {
scene = 6.5;
dphase = 0;
scenestarted = 0;
} else {
if (scene == 5) {
scene = 6;
scenestarted = 0;
} else {
if (scene == 4) {
scene = 5;
scenestarted = 0;
} else {
if (scene == 3) {
if (blives) {
scene = 4;
} else {
init_ondeck();
++scene3repeated;
scene = 3;
}
scenestarted = 0;
} else {
if (scene == 0.5) {
scene = 0.6;
scenestarted = 0;
phase = 0;
stoploop();
} else {
if (scene == 0.6) {
scene = 0.7;
scenestarted = 0;
phase = 0;
} else {
if (scene == 0.7) {
scene = 0.8;
scenestarted = 0;
phase = 0;
} else {
if (scene == 0) {
scene = 0.5;
scenestarted = 0;
} else {
init_ondeck();
}
}
}
}
}
}
}
}
}
}
}
}
goblackslow = 0;
unblack = 99;
sheet_mc._alpha = 100;
return undefined;
} else {
if (goblackslow < 100) {
goblackslow += 1;
}
sheet_mc._alpha = goblackslow;
sheet_mc.swapDepths(26000);
}
}
if (unblack < 100) {
sheet_mc.gotoAndStop(1);
if (unblack == 0) {
goblack = 0;
goblackslow = 0;
unblack = 100;
} else {
if (unblack == 99) {
unblack = 90;
} else {
if (unblack < 100) {
unblack -= 10;
}
}
sheet_mc._alpha = unblack;
sheet_mc.swapDepths(21000);
}
}
}
function checkmouse() {
if (mousex != oldmousex && mousey > 20) {
showpop = 10;
showpoptype = 2;
} else {
if (showpop) {
--showpop;
}
}
oldmousex = mousex;
}
function dopop() {
if (showpop) {
pop_mc._x = 320;
pop_mc._y = 400;
pop_mc.gotoAndStop(showpoptype);
pop_mc.swapDepths(25609);
} else {
if (!scenepop && !showingpop) {
pop_mc._x = -10000;
}
}
}
function doshowpause() {
pop_mc._x = 320;
pop_mc._y = 400;
pop_mc.gotoAndStop(5);
pop_mc.swapDepths(25559);
}
function hideall() {
showpop = 0;
platealpha = 0;
platedelay = 0;
speaking = 0;
plate_mc.gotoAndStop(4);
oldmousex = mousex;
adjy = 0;
adjx = 0;
xscroll = 0;
attacharrow = 0;
attach = 0;
arrowcursor = 0;
arrowx = -10000;
ass2_mc._x = -10000;
ass1_mc._x = -10000;
night_mc._x = -10000;
dum_mc._x = -10000;
did_mc._x = -10000;
beta_mc._x = -10000;
pop_mc._x = -10000;
nest_mc._x = -10000;
shroudl_mc._x = -10000;
vinebutton_mc._x = -10000;
shroud_mc._x = -10000;
ropeloop_mc._x = -10000;
playrope_mc._x = -10000;
bg640_mc._x = -10000;
ball2_mc._x = -10000;
ball1_mc._x = -10000;
ball0_mc._x = -10000;
wlives_mc._x = -10000;
blives_mc._x = -10000;
sword_mc._x = -10000;
kitty_mc._x = -10000;
bubble_mc._x = -10000;
blood_mc._x = -10000;
whimp_mc._x = -10000;
mizzen_mc._x = -10000;
pooprail_mc._x = -10000;
bg_mc._x = -10000;
mon0_mc._x = -10000;
maze2_mc._x = -10000;
plate_mc._x = -10000;
ass2_mc._xscale = 100;
ass1_mc._xscale = 100;
night_mc._xscale = 100;
dum_mc._xscale = 100;
did_mc._xscale = 100;
beta_mc._xscale = 100;
pop_mc._xscale = 100;
nest_mc._xscale = 100;
shroudl_mc._xscale = 100;
vinebutton_mc._xscale = 100;
shroud_mc._xscale = 100;
ropeloop_mc._xscale = 100;
playrope_mc._xscale = 100;
bg640_mc._xscale = 100;
ball2_mc._xscale = 100;
ball1_mc._xscale = 100;
ball0_mc._xscale = 100;
wlives_mc._xscale = 100;
blives_mc._xscale = 100;
sword_mc._xscale = 100;
kitty_mc._xscale = 100;
bubble_mc._xscale = 100;
blood_mc._xscale = 100;
whimp_mc._xscale = 100;
mizzen_mc._xscale = 100;
pooprail_mc._xscale = 100;
bg_mc._xscale = 100;
mon0_mc._xscale = 100;
maze2_mc._xscale = 100;
plate_mc._xscale = 100;
ass2_mc._yscale = 100;
ass1_mc._yscale = 100;
night_mc._yscale = 100;
dum_mc._yscale = 100;
did_mc._yscale = 100;
beta_mc._yscale = 100;
pop_mc._yscale = 100;
nest_mc._yscale = 100;
shroudl_mc._yscale = 100;
vinebutton_mc._yscale = 100;
shroud_mc._yscale = 100;
ropeloop_mc._yscale = 100;
playrope_mc._yscale = 100;
bg640_mc._yscale = 100;
ball2_mc._yscale = 100;
ball1_mc._yscale = 100;
ball0_mc._yscale = 100;
wlives_mc._yscale = 100;
blives_mc._yscale = 100;
sword_mc._yscale = 100;
kitty_mc._yscale = 100;
bubble_mc._yscale = 100;
blood_mc._yscale = 100;
whimp_mc._yscale = 100;
mizzen_mc._yscale = 100;
pooprail_mc._yscale = 100;
bg_mc._yscale = 100;
mon0_mc._yscale = 100;
maze2_mc._yscale = 100;
plate_mc._yscale = 100;
ass2_mc._alpha = 100;
ass1_mc._alpha = 100;
night_mc._alpha = 100;
dum_mc._alpha = 100;
did_mc._alpha = 100;
beta_mc._alpha = 100;
pop_mc._alpha = 100;
nest_mc._alpha = 100;
shroudl_mc._alpha = 100;
vinebutton_mc._alpha = 100;
shroud_mc._alpha = 100;
ropeloop_mc._alpha = 100;
playrope_mc._alpha = 100;
bg640_mc._alpha = 100;
ball2_mc._alpha = 100;
ball1_mc._alpha = 100;
ball0_mc._alpha = 100;
wlives_mc._alpha = 100;
blives_mc._alpha = 100;
sword_mc._alpha = 100;
kitty_mc._alpha = 100;
bubble_mc._alpha = 100;
blood_mc._alpha = 100;
whimp_mc._alpha = 100;
mizzen_mc._alpha = 100;
pooprail_mc._alpha = 100;
bg_mc._alpha = 100;
mon0_mc._alpha = 100;
maze2_mc._alpha = 100;
plate_mc._alpha = 100;
ass2_mc._rotation = 0;
ass1_mc._rotation = 0;
night_mc._rotation = 0;
dum_mc._rotation = 0;
did_mc._rotation = 0;
beta_mc._rotation = 0;
pop_mc._rotation = 0;
nest_mc._rotation = 0;
shroudl_mc._rotation = 0;
vinebutton_mc._rotation = 0;
shroud_mc._rotation = 0;
ropeloop_mc._rotation = 0;
playrope_mc._rotation = 0;
bg640_mc._rotation = 0;
ball2_mc._rotation = 0;
ball1_mc._rotation = 0;
ball0_mc._rotation = 0;
wlives_mc._rotation = 0;
blives_mc._rotation = 0;
i = 0;
while (i < 15) {
ii = i + 1;
_root['barrelside' + ii + '_mc']._x = -10000;
_root['barreltop' + ii + '_mc']._x = -10000;
_root['barrelstand' + ii + '_mc']._x = -10000;
_root['box' + ii + '_mc']._x = -10000;
_root['barrelside' + ii + '_mc']._xscale = 100;
_root['barreltop' + ii + '_mc']._xscale = 100;
_root['barrelstand' + ii + '_mc']._xscale = 100;
_root['box' + ii + '_mc']._xscale = 100;
_root['barrelside' + ii + '_mc']._yscale = 100;
_root['barreltop' + ii + '_mc']._yscale = 100;
_root['barrelstand' + ii + '_mc']._yscale = 100;
_root['box' + ii + '_mc']._yscale = 100;
_root['box' + ii + '_mc']._alpha = 100;
_root['barrelstand' + ii + '_mc']._alpha = 100;
_root['barreltop' + ii + '_mc']._alpha = 100;
_root['barrelside' + ii + '_mc']._alpha = 100;
_root['box' + ii + '_mc']._rotation = 0;
_root['barrelstand' + ii + '_mc']._rotation = 0;
_root['barreltop' + ii + '_mc']._rotation = 0;
_root['barrelside' + ii + '_mc']._rotation = 0;
++i;
}
iballs();
autobutton_mc._x = -10000;
}
function doarrow() {
if (arrowcursor) {
if (arrowangle == 1) {
arrow_mc.gotoAndStop(8);
} else {
if (arrowangle == 2) {
ssqq = time / 4 & 3;
arrow_mc.gotoAndStop(16 + ssqq);
} else {
if (arrowangle == 3) {
arrow_mc.gotoAndStop(17);
} else {
arrow_mc.gotoAndStop(20 + arrowcolor);
}
}
}
arrow_mc._x = mousex;
arrow_mc._y = mousey;
arrow_mc._rotation = arrowangle;
hidemouse = 1;
} else {
arrow_mc.gotoAndStop(10 + arrowcolor);
arrow_mc._rotation = 0;
if (attacharrow) {
arrow_mc._x = 320 + arrowx;
if (time / 4 & 4) {
arrow_mc._x = 320 + arrowx;
} else {
arrow_mc._x = -10000;
}
hidemouse = 0;
} else {
arrow_mc._x = -10000;
hidemouse = 0;
}
arrow_mc._y = 240 + arrowy;
arrow_mc._yscale = 100;
}
arrow_mc.swapDepths(20003);
}
function doscenebar() {
scenebar_mc._x = 585;
scenebar_mc._y = 6;
if (scene < 0.5) {
bscene = 1;
} else {
if (scene < 1) {
bscene = 2;
} else {
if (scene < 4) {
bscene = scene + 2;
} else {
if (scene <= 6) {
bscene = scene + 1;
} else {
if (scene == 6.5) {
bscene = 7;
} else {
bscene = scene + 1;
}
}
}
}
}
scenebar_mc.gotoAndStop(bscene + 1);
scenebar_mc.swapDepths(26531);
}
function initsound() {
slapSound = new Sound(this);
jackSound = new Sound(this);
ahSound = new Sound(this);
ahSound.attachSound('mmms.wav');
noSound = new Sound(this);
yesSound = new Sound(this);
mmmSound = new Sound(this);
soundstarted = 1;
}
function rand(low, high) {
range = high - low;
t = Math.floor(Math.random() * range) + low;
return t;
}
function loopfile1(what) {
stoplooping = 0;
what = 'blood5.wav';
noSound.attachSound(what);
noSound.start(0, 10);
noSound.setVolume(100);
noSound.onSoundComplete = function () {};
}
function loopfile2(what) {
stoplooping = 0;
what = 'traffic3.mp3';
yesSound.attachSound(what);
yesSound.start(0, 1);
yesSound.setVolume(loopvol);
yesSound.onSoundComplete = function () {
if (!stoplooping) {
yesSound.attachSound(what);
yesSound.start(0, 1);
yesSound.setVolume(loopvol);
}
};
}
function stoploop() {
stoplooping = 1;
yesSound.stop();
noSound.stop();
}
function sayfile(what) {
mmmSound.attachSound(what);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
function say(what) {
if (what == 'muhh') {
if (talking) {
return undefined;
}
if (muhhs == 0) {
i = 1;
while (i < 11) {
muhhdone[i] = 0;
++i;
}
muhhs = 10;
}
muhh = rand(1, 10);
if (muhhdone[uhh] == 1) {
muhh = rand(1, 10);
}
if (muhhdone[muhh] == 1) {
muhh = rand(1, 10);
}
if (uhhdone[muhh] == 1) {
muhh = rand(1, 10);
}
if (muhhdone[muhh] == 1) {
i = 1;
while (i < 11) {
if (muhhdone[i] == 0) {
muhh = i;
i == 11;
break;
}
++i;
}
}
muhhdone[muhh] = 1;
--muhhs;
yessnd = 'muhh' + muhh + '.mp3';
lastmuhh = muhh;
if (!talking) {
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(70);
talking = 1;
}
yesSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'moan') {
if (talking) {
return undefined;
}
if (moans == 0) {
i = 1;
while (i < 11) {
moandone[i] = 0;
++i;
}
moans = 10;
}
moan = rand(1, 10);
if (moandone[moan] == 1) {
moan = rand(1, 10);
}
if (moandone[moan] == 1) {
moan = rand(1, 10);
}
if (moandone[moan] == 1) {
moan = rand(1, 10);
}
if (moandone[moan] == 1) {
i = 1;
while (i < 11) {
if (moandone[i] == 0) {
moan = i;
i == 11;
break;
}
++i;
}
}
moandone[moan] = 1;
--moans;
yessnd = 'moan' + moan + '.mp3';
lastmoan = moan;
if (!talking) {
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(70);
talking = 1;
}
yesSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'gasp') {
nosnd = 'gasp.mp3';
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(70);
}
if (what == 'mouse') {
yessnd = 'mouse.mp3';
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(100);
}
if (what == 'slap') {
mmmsnd = 'bodyslap.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(40);
}
if (what == 'hurt') {
if (talking) {
return undefined;
}
hurt = rand(1, 8);
if (hurt == lasthurt) {
hurt = rand(1, 8);
}
if (hurt == lasthurt) {
hurt = rand(1, 8);
}
if (hurt == lasthurt) {
hurt = rand(1, 8);
}
if (hurt == lasthurt) {
hurt = rand(1, 8);
}
if (hurt == lasthurt) {
hurt = rand(1, 8);
}
yessnd = 'hurt' + hurt + '.mp3';
lasthurt = hurt;
if (!talking) {
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(70);
talking = 1;
}
yesSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'lampclank') {
mmmsnd = 'lampclank.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
}
if (what == 'swing') {
++lastswing;
if (lastswing > 2) {
lastswing = 1;
}
yessnd = 'swing' + lastswing + '.mp3';
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(30);
talking = 1;
yesSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'block') {
mmmsnd = 'block.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(30);
}
if (what == 'parry') {
mmmsnd = 'parry.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(30);
}
if (what == 'swordtap') {
mmmsnd = 'swordtap.wav';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(30);
}
if (what == 'grunt') {
mmmsnd = 'grunt2.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
}
if (what == 'clank') {
mmmsnd = 'clank.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(50);
}
if (what == 'thud') {
mmmsnd = 'thud2.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(50);
}
if (what == 'wallthud') {
mmmsnd = 'wallthud.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
}
if (what == 'doorthud') {
mmmsnd = 'doorthud.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
}
if (what == 'ballthud1') {
mmmsnd = 'ballthud.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(50);
}
if (what == 'ballthud2') {
mmmsnd = 'ballthud.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(20);
}
if (what == 'ballthud3') {
mmmsnd = 'ballthud.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(6);
}
if (what == 'magic') {
mmmsnd = 'harp.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(80);
}
if (what == 'harp') {
mmmsnd = 'harp.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(30);
cricket1 = 1;
}
if (what == 'gaug') {
mmmsnd = 'Gaug.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(30);
cricket1 = 1;
}
if (what == 'cricket1') {
mmmsnd = 'cricket.mp3';
if (!cricket1) {
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(30);
cricket1 = 1;
}
mmmSound.onSoundComplete = function () {
cricket1 = 2;
};
}
if (what == 'cricket2') {
mmmsnd = 'cricket.mp3';
if (!cricket2) {
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(30);
cricket2 = 1;
}
mmmSound.onSoundComplete = function () {
cricket2 = 2;
};
}
if (what == 'strike') {
yessnd = 'strike.wav';
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(100);
}
if (what == 'dark') {
mmmsnd = 'dark.mp3';
if (!talking) {
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
}
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'cobra') {
mmmsnd = 'cobra1.wav';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'monkey') {
mmmsnd = 'monkey.mp3';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'uh') {
mmmsnd = 'uh1.wav';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'uhoh') {
mmmsnd = 'uhoh.wav';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'oh') {
++lastoh;
if (lastoh > 3) {
lastoh = 1;
}
yessnd = 'oh' + lastoh + '.mp3';
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(100);
talking = 1;
yesSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'oh3') {
yessnd = 'oh3.mp3';
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(100);
talking = 1;
yesSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'swish') {
++lastswish;
if (lastswish > 2) {
lastswish = 1;
}
nosnd = 'swish' + lastswish + '.mp3';
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(100);
talking = 1;
noSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'mm') {
++lastmmm;
if (lastmmm > 2) {
lastmmm = 1;
}
mmmsnd = 'mm' + lastmmm + '.wav';
if (!talking) {
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
}
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'mm1') {
if (!talking) {
mmmsnd = 'mm1.wav';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
}
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'mm2') {
if (!talking) {
mmmsnd = 'mm2.wav';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
}
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'mmm6') {
mmmsnd = 'mmm6.wav';
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'mmm') {
++lastmmm;
if (lastmmm > 5) {
lastmmm = 1;
}
mmmsnd = 'mmm' + lastmmm + '.wav';
if (!talking) {
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
}
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'unh') {
t = rand(1, 3);
if (t == lastmmm) {
t = lastmmm + 1;
if (t > 3) {
t = 1;
}
}
lastmmm = t;
mmmsnd = 'unh' + lastmmm + '.wav';
if (!talking) {
mmmSound.attachSound(mmmsnd);
mmmSound.start(0, 1);
mmmSound.setVolume(100);
talking = 1;
}
mmmSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'ech') {
t = rand(1, 3);
if (t == lastmmm) {
t = lastmmm + 1;
if (t > 3) {
t = 1;
}
}
lastmmm = t;
mmmsnd = 'ech' + lastmmm + '.wav';
if (!talking) {
noSound.attachSound(mmmsnd);
noSound.start(0, 1);
noSound.setVolume(100);
talking = 1;
}
noSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'rndmmm') {
t = rand(1, 5);
if (t == lastmmm) {
t = lastmmm + 1;
if (t > 5) {
t = 1;
}
}
lastmmm = t;
mmmsnd = 'mmm' + lastmmm + '.wav';
ahSound.attachSound(mmmsnd);
ahSound.start();
ahSound.setVolume(100);
}
if (what == 'hmmm') {
nosnd = 'hmmm.wav';
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(100);
}
if (what == 'slap' || what == 'fuckslap') {
slapsnd = 'slap1.wav';
slapSound.attachSound(slapsnd);
slaptalking = 1;
slapSound.start();
slapSound.setVolume(50);
slapSound.onSoundComplete = function () {
slaptalking = 0;
slapSound.setVolume(100);
};
}
if (what == 'splat') {
nosnd = 'splat.wav';
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(100);
}
if (what == 'lick') {
nosnd = 'lick.mp3';
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(100);
}
if (what == 'uhoh') {
nosnd = 'uhoh.wav';
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(60);
talking = 1;
noSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'gasp') {
yessnd = 'gasp1.wav';
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(100);
talking = 1;
yesSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'ooo') {
nosnd = 'ooo1.wav';
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(100);
talking = 1;
noSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'arc') {
ahsnd = 'arc.wav';
ahSound.attachSound(ahsnd);
ahSound.start(0, 1);
ahSound.setVolume(40);
talking = 1;
ahSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'theremin') {
nosnd = 'theremin.mp3';
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(40);
talking = 1;
noSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'dont') {
nosnd = 'dont.wav';
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(40);
talking = 1;
noSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'no') {
nosnd = 'no1.wav';
if (!talking) {
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(100);
talking = 1;
}
noSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'no!') {
nosnd = 'no2.wav';
if (!talking) {
noSound.attachSound(nosnd);
noSound.start(0, 1);
noSound.setVolume(100);
talking = 1;
}
noSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'yes') {
++lastyes;
if (lastyes > 2) {
lastyes = 1;
}
if (lastyes == 1) {
yessnd = 'yes4.wav';
} else {
yessnd = 'wup.wav';
}
if (!talking) {
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(20);
talking = 1;
}
yesSound.onSoundComplete = function () {
talking = 0;
};
}
if (what == 'giggle') {
++lastgiggle;
if (lastgiggle > 4) {
lastgiggle = 1;
}
yessnd = 'giggles' + lastgiggle + '.wav';
if (!talking) {
yesSound.attachSound(yessnd);
yesSound.start(0, 1);
yesSound.setVolume(100);
talking = 1;
}
yesSound.onSoundComplete = function () {
talking = 0;
};
}
}
function sayslap(vol) {
slapsnd = 'slap1.wav';
slapSound.attachSound(slapsnd);
slapSound.start();
slapSound.setVolume(vol);
}
function sayjack(vol) {
jacksnd = 'slap2.wav';
jackSound.attachSound(jacksnd);
jackSound.start();
jackSound.setVolume(vol);
}
function sayswish(vol) {
noSound.attachSound('swish.mp3');
noSound.start();
noSound.setVolume(100);
}
function init_ondeck() {
frontalpha = 0;
hideall();
++games;
flip = 1;
wlives = 10;
blives = 10;
drinkalpha = 0;
bg640_mc._x = -10000;
drinking = 0;
drinks = 10;
dseq = 0;
iballs();
bloodx = 0;
bloody = -94;
bloodz = 0;
bzadd = 0;
bseq = 0;
bloodangle = 0;
banim = STAND;
bframe = 62;
bsword = 1;
whimpx = -350;
whimpy = 35;
whimpz = 0;
wzadd = 0;
wseq = 0;
wanim = STAND;
wframe = 62;
wsword = 1;
kittyx = -10;
kittyy = -100;
kseq = 0;
kframe = 1;
kittyowner = 0;
kanim = STAND;
swordx = -10000;
swordy = 82;
swordz = 0;
swordangle = 90;
sdeck = 0;
safe = 0;
wstair = 0;
bstair = 0;
ctrlrel = 1;
scenestarted = 1;
lrrel = 0;
bface = 0;
wface = 0;
bdeck = 0;
wdeck = 0;
wwalk = 1;
bwalk = 1;
wyadd = 0;
yadd = 0;
blocked = 0;
oapartx = 1000;
apartx = 1000;
ctrlrel = 0;
adjy = 0;
adjx = 0;
xscroll = 0;
yscroll = 552;
halt = 0;
virgin = 1;
ropecuts = 0;
lift = 0;
swingdir = 0;
swingadd = 0;
playropeangle = -25;
dieseq = 0;
phase = 1;
subphase = 0;
advantage = WHIMP;
changes = 0;
firesize2 = 10;
firesize1 = 10;
smoky = 240;
smokealpha = 0;
slides = 0;
warp = 3;
showplate(1, 'On deck of the burning ship');
}
function doscene3() {
if (!scenestarted) {
init_ondeck();
}
if (phase == 1) {
checkmouse();
}
wflip = 0;
bflip = 0;
if (bloodx >= 0) {
bloodside = 1;
} else {
bloodside = -1;
}
if (whimpx >= 0) {
whimpside = 1;
} else {
whimpside = -1;
}
if (drinking) {
dodrink();
} else {
if (phase == 1) {
dophase1();
} else {
if (phase == 2) {
dophase2();
} else {
if (phase == 3) {
dophase3();
} else {
if (phase == 4) {
dophase4();
} else {
if (phase == 5) {
dophase5();
} else {
if (phase == 6) {
dophase6();
} else {
if (phase == 7 || phase == 8) {
dophase7();
} else {
if (phase == 9) {
dophase9();
}
}
}
}
}
}
}
}
}
doropes();
doblood();
dowhimp();
dokitty();
dosword();
doballs();
dofire();
}
function dophase9() {
flip = 1;
blooddeath();
}
function dophase7() {
flip = 1;
apartx = abs(bloodx - whimpx);
bothsword = 1;
whimpmast();
bloodmast();
kittyx = 220;
kittyy = 24;
}
function dophase6() {
apartx = abs(bloodx - whimpx);
bothsword = 1;
if (bloodx < whimpx) {
flip = -1;
bface = RIGHT;
wface = LEFT;
} else {
flip = 1;
wface = RIGHT;
bface = LEFT;
}
whimpyard();
bloodyard();
}
function dophase5() {
flip = 1;
apartx = abs(bloodx - whimpx);
bothsword = 1;
whimprigging();
bloodrigging();
bloody = -96 - bloodz * 0.01;
whimpyy = -96 - whimpz * 0.01;
}
function dophase4() {
flip = 1;
apartx = abs(bloodx - whimpx);
bothsword = 1;
whimpballs();
bloodballed();
}
function dophase3() {
flip = 1;
apartx = abs(bloodx - whimpx);
bothsword = 0;
mon5 = ' bswrd:' + bsword + ' w:' + wsword + ' apart:' + apartx;
if (wsword && bsword) {
bothsword = 1;
if (bdeck == 0 && apartx < 250 && bloody >= 35 && whimpy >= 35 && banim != DIE && banim != KNOCK && wanim != DIE && wanim != KNOCK) {
banim = DRAW;
wanim = banim;
bseq = 0;
wseq = 0;
phase = 2;
if (bloodx < whimpx) {
flip = -1;
bface = RIGHT;
wface = LEFT;
} else {
flip = 1;
wface = RIGHT;
bface = LEFT;
}
return undefined;
}
}
if (bsword == 1 && wsword == 0) {
whimprun();
} else {
whimpchase();
}
if (wsword == 1 && bsword == 0) {
bloodrun();
} else {
bloodchase();
}
}
function dophase2() {
apartx = abs(bloodx - whimpx);
if (advantage == WHIMP) {
edge = 700;
} else {
if (ez) {
edge = 50;
} else {
edge = 100;
}
}
wapart = kittyx - whimpx;
if (abs(whimpx) >= 475) {
} else {
if (apartx < 188 && wanim == ENGARDE && banim != TOUCHE && banim != UNTOUCHE) {
if (abs(whimpx) > 300) {
wstep = 6;
wanim = RETL;
}
} else {
if (apartx > 214 && wanim == ENGARDE && banim != TOUCHE && banim != UNTOUCHE) {
wstep = 6;
wanim = ADVL;
} else {
if (abs(wapart) <= 14 && kittyowner == 0 && (virgin || banim == TOUCHE) && wanim != GRAB && kittyx > -250) {
wanim = GRAB;
wseq = 0;
virgin = 0;
if (banim != TOUCHE) {
banim = RETL;
bstep = 6;
bseq = -1;
}
} else {
if (apartx < 220 && (banim == TOUCHE || banim == UNTOUCHE) && wanim != GRAB) {
if (kittyowner == 1 && abs(wapart) < 24) {
} else {
wstep = 6;
wanim = RETL;
}
} else {
if (wanim == ENGARDE && banim == ENGARDE) {
if (rnd(1000) < edge) {
noact = 0;
wseq = 0;
wanim = CUT1;
blocked = 0;
if (subphase == 1 && advantage == WHIMP) {
++changes;
advantage = BLOOD;
if (changes >= 4) {
changes = 0;
phase = 4;
}
bseq = 0;
banim = DROP;
swordzadd = 15;
swordloops = 0;
say('parry');
}
if (abs(bloodx) >= 475) {
if (banim != TOUCHE) {
banim = TOUCHE;
bseq = 0;
}
}
}
}
}
}
}
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
lrrel = 1;
}
if (banim == RUN) {
banim = ENGARDE;
bseq = 0;
}
if (wanim == TOUCHE) {
kapart = abs(kittyx - bloodx);
if (kapart < 10 && kittyowner == 0 && banim != GRAB && Key.isDown(38)) {
banim = GRAB;
bseq = 0;
}
if (apartx >= 275) {
wseq = 0;
wanim = UNTOUCHE;
whimpx = -474 * flip;
}
}
kapart = abs(kittyx - bloodx);
if (banim == DROP || banim == KILLED) {
} else {
if (banim == TOUCHE) {
if (apartx < 220) {
} else {
if (Key.isDown(ADV_KEY) || Key.isDown(17) && bseq >= 5) {
banim = UNTOUCHE;
bseq = 0;
}
}
} else {
if (apartx < 188 && banim == ENGARDE) {
banim = RETL;
bstep = 3;
bseq = -1;
} else {
if (Key.isDown(RET_KEY) && lrrel) {
if (banim == TOUCHE || banim == UNTOUCHE) {
} else {
if (abs(bloodx) >= 505) {
} else {
if (banim == GRAB) {
} else {
if (wanim == TOUCHE && flip > 0 && bloodx >= kittyx - 5 && kittyowner == 0) {
} else {
if (wanim == TOUCHE && flip < 0 && bloodx <= kittyx + 5 && kittyowner == 0) {
} else {
if (kittyowner == 2 && kapart < 24) {
} else {
lrrel = 0;
banim = RETL;
bstep = 6;
bseq = -0.5;
}
}
}
}
}
}
} else {
if (Key.isDown(ADV_KEY) && lrrel && apartx >= 190) {
if (banim == TOUCHE) {
} else {
if (bloodx <= -505) {
} else {
lrrel = 0;
banim = ADVL;
bstep = 6;
bseq = -0.5;
}
}
} else {
if (banim == ENGARDE && Key.isDown(17) && ctrlrel == 1) {
if (wanim == CUT1 && wseq < 2) {
if (rnd1()) {
blocked = 1;
banim = BLOCK1;
} else {
blocked = 0;
banim = PARRY1;
}
bseq = 0;
ctrlrel = 0;
} else {
if (wanim == CUT1 && wseq < 6) {
blocked = 0;
bseq = 0;
banim = PARRY1;
ctrlrel = 0;
} else {
if (wanim == ENGARDE) {
if (ez) {
edge = 100;
} else {
edge = 500;
}
if (subphase == 1 && advantage == BLOOD) {
++changes;
advantage = WHIMP;
if (changes >= 4) {
changes = 0;
phase = 4;
}
wseq = 0;
wanim = DROP;
swordzadd = 15;
swordloops = 0;
say('parry');
} else {
if (abs(whimpx) >= 475) {
if (wanim != TOUCHE) {
wanim = TOUCHE;
wseq = 0;
}
} else {
if (rnd(1000) > edge) {
blocked = 0;
wseq = 0;
wanim = PARRY1;
} else {
blocked = 1;
wseq = 0;
wanim = BLOCK1;
}
}
}
bseq = 0;
banim = CUT1;
ctrlrel = 0;
}
}
}
}
}
}
}
}
}
if (!Key.isDown(17)) {
ctrlrel = 1;
}
}
function dophase1() {
apartx = abs(bloodx - whimpx);
if (apartx < 190 && oapartx >= 190) {
say('swordtap');
}
oapartx = apartx;
if (halt && halt < 7 && games >= 2 && Key.isDown(37)) {
halt = 7;
banim = DRAW;
bface = LEFT;
bseq = 0;
}
if (!halt) {
if (Key.isDown(40)) {
bstep = 4;
dobump(DOWN);
if (bump) {
banim = STAND;
} else {
if (banim != DRAG) {
bseq = 4;
}
banim = DRAG;
bface = FRONT;
bstep = 4;
}
} else {
banim = STAND;
}
if (bloody >= 35) {
saythis('\rHalt!', 3, 1, whimpx + 45, whimpy - 200);
halt = 1;
wait = 4 * framerate;
bseq = 0;
banim = TURN;
kanim = SCURRYB;
kseq = 0;
}
} else {
if (halt == 1) {
if (wait) {
--wait;
} else {
saythis('\rUnhand that young lady!', 2, 1, whimpx + 45, whimpy - 200);
halt = 2;
wait = 3 * framerate;
}
} else {
if (halt == 2) {
if (wait) {
--wait;
} else {
saythis('\rWhat? A dandy!', 2, 2, bloodx - 20, bloody - 200);
halt = 3;
wait = 2 * framerate;
}
} else {
if (halt == 3) {
if (wait) {
--wait;
} else {
saythis('\rDon\'t worry Miss,', 2, 1, whimpx + 45, whimpy - 200);
halt = 3.1;
wait = 2 * framerate;
}
} else {
if (halt == 3.1) {
if (wait) {
--wait;
} else {
saythis('\rI\'ve sworn to protect you.', 2, 1, whimpx + 45, whimpy - 200);
halt = 4;
wait = 2 * framerate;
}
} else {
if (halt == 4) {
if (wait) {
--wait;
} else {
saythis('\rI\'ll save you from this brute.', 2, 1, whimpx + 45, whimpy - 200);
halt = 5;
wait = 3 * framerate;
}
} else {
if (halt == 5) {
if (wait) {
--wait;
} else {
saythis('Ha ha ha!\rGet on with it then.', 2, 2, bloodx - 20, bloody - 200);
halt = 6;
wait = 2 * framerate;
}
} else {
if (halt == 6) {
if (wait) {
--wait;
} else {
saythis('\rI have so many ships to plunder today!', 2, 2, bloodx - 20, bloody - 200);
halt = 7;
wait = 2 * framerate;
}
}
}
}
}
}
}
}
}
if (halt == 7) {
if (wait) {
--wait;
} else {
halt = 8;
wseq = 0;
wanim = WALKR;
wstep = 9;
}
} else {
if (halt == 8) {
apartx = abs(bloodx - whimpx);
if (apartx < 250) {
bwalk = 0;
banim = DRAW;
wanim = DRAW;
wseq = 0;
bseq = 0;
halt = 9;
}
oapartx = apartx;
} else {
if (halt == 9) {
if (apartx < 190) {
halt = 10;
noact = 0;
phase = 2;
} else {
if (wanim == ENGARDE && wseq == 0) {
wanim = ADVL;
wstep = 6;
wseq = 0;
}
}
}
}
}
}
function dobump(dir) {
bump = 0;
dx = bloodx;
dy = bloody;
if (phase >= 3) {
gunwale = 425;
} else {
gunwale = 505;
}
if (bdeck == 0) {
if (bloodx >= -495 && bloodx <= -390) {
stairx = 1;
} else {
if (bloodx <= 495 && bloodx >= 390) {
stairx = 2;
} else {
stairx = 0;
}
}
} else {
if (bloodx >= -700 && bloodx <= -430) {
stairx = 1;
} else {
if (bloodx <= 700 && bloodx >= 430) {
stairx = 2;
} else {
stairx = 0;
}
}
}
if (bdeck == 2) {
if (dir == LEFT) {
dx -= bstep;
if (dy < -155 && dy > -191) {
if (dx < 90 && dx > -99) {
bump = 1;
}
}
if (bloodx < -495) {
bump = 1;
}
} else {
if (dir == RIGHT) {
dx += bstep;
if (dy < -155 && dy > -191) {
if (dx < 90 && dx > -99) {
bump = 1;
}
}
if (bloodx > 495) {
bump = 1;
}
} else {
if (dir == DOWN) {
dy += bstep;
if (dy < -155 && dy > -191) {
if (dx < 90 && dx > -99) {
bump = 1;
}
}
if (bloody > -65) {
bump = 1;
}
} else {
if (dir == UP) {
dy -= bstep;
if (dy < -155 && dy > -191) {
if (dx < 90 && dx > -99) {
bump = 1;
}
}
if (bloody < -236) {
bump = 1;
}
}
}
}
}
} else {
if (dir == LEFT) {
dx -= bstep;
if (dy < -6 && dy > -46) {
if (dx < 225 && dx > 126) {
bump = 1;
}
if (dx > -225 && dx < -126) {
bump = 1;
}
}
if (bloody < -60 && bloodx > 300) {
} else {
if (bloody < 30 && bloodx < -300) {
bump = 1;
} else {
if (stairx && bloody <= 30) {
bump = 1;
} else {
if (bloodx <= -gunwale) {
bump = 1;
}
}
}
}
} else {
if (dir == RIGHT) {
dx += bstep;
if (dy < -6 && dy > -46) {
if (dx < 225 && dx > 126) {
bump = 1;
}
if (dx > -225 && dx < -126) {
bump = 1;
}
}
if (bloody < -60) {
if (bloodx > 350) {
bump = 1;
}
} else {
if (bloody < 30 && bloodx >= 300) {
bump = 1;
} else {
if (stairx && bloody <= 30) {
bump = 1;
}
}
}
if (bloodx >= gunwale - 15) {
bump = 1;
}
} else {
if (dir == DOWN) {
dy += bstep;
if (dy < -6 && dy > -46) {
if (dx < 225 && dx > 126) {
bump = 1;
}
if (dx > -225 && dx < -126) {
bump = 1;
}
}
if (bloody <= -93 && bloodx > 300) {
bump = 1;
} else {
if (bloody > 30) {
if (bloody > 35) {
bump = 1;
}
} else {
if (!stairx) {
if (bloodx < -340 || bloodx > 340) {
bump = 1;
}
if (abs(bloodx) > 300 && bloody > -20) {
bump = 1;
}
}
}
}
} else {
if (dir == UP) {
dy -= bstep;
if (dy < -6 && dy > -46) {
if (dx < 225 && dx > 126) {
bump = 1;
}
if (dx > -225 && dx < -126) {
bump = 1;
}
}
if (bloody <= -93 && bloodx > 300) {
bump = 1;
stairx = 0;
} else {
if (bloody < -90) {
bump = 1;
} else {
if (bloody > 30) {
} else {
if (!stairx) {
if (bloodx < -340 || bloodx > 340) {
bump = 1;
}
}
}
}
}
}
}
}
}
}
}
function dokitty() {
if (halt == 0 || halt == 15) {
kittyx = bloodx - 43 - adjx;
kittyy = bloody - 11 - adjy;
kanim = DRAGGED;
}
if (phase == 3) {
if (kittyy > 3) {
kanim = SCURRYB;
} else {
kittyowner = 0;
}
}
kbehind = (whimpx - kittyx) * flip;
if (kittyowner == 1 && kanim == STAND) {
if (abs(kittyx) >= 260) {
kittyowner = 0;
kanim = SCURRYB;
kseq = 0;
} else {
if (kbehind < 80) {
kanim = RETL;
kseq = 0;
}
}
}
kbehind = (kittyx - bloodx) * flip;
if (kittyowner == 2 && kanim == STAND) {
if (abs(kittyx) >= 260) {
kittyowner = 0;
kanim = SCURRYB;
kseq = 0;
} else {
if (kbehind < 80) {
kanim = RETL;
kseq = 0;
}
}
}
if (kanim == STAND) {
if (kittyowner) {
kframe = 9;
} else {
if (!halt) {
kframe = 1;
} else {
kframe = 18;
}
}
kseq = 0;
} else {
if (kanim == DRAGGED) {
if (banim == DRAG) {
kseq += 0.25;
}
if (kseq >= 4) {
kseq = 0;
}
draggt = [2, 3, 4, 3];
kframe = draggt[floor(kseq)];
} else {
if (kanim == GRABBED) {
kseq += 0.5;
if (kseq >= 9) {
kanim = STAND;
}
kgrabtab = [1, 6, 5, 4, 5, 4, 5, 4, 5, 4, 9];
kframe = kgrabtab[floor(kseq)];
} else {
if (kanim == BGRABBED) {
kseq += 0.5;
if (kseq >= 9) {
kanim = STAND;
}
kbgrabtab = [6, 5, 4, 5, 4, 5, 4, 5, 4, 5];
kframe = kbgrabtab[floor(kseq)];
} else {
if (kanim == RETL) {
kseq += 1;
if (kittyowner == 2) {
if (abs(kittyx) >= 260) {
kanim = STAND;
kseq = 0;
} else {
kittyx += 3 * flip;
}
} else {
kittyx -= 3 * flip;
}
if (kseq >= 7) {
kanim = STAND;
kseq = 0;
}
krettab = [9, 9, 10, 11, 12, 11, 10, 9];
kframe = krettab[floor(kseq)];
} else {
if (kanim == SCURRYB) {
kseq += 1;
if (kittyy > 3) {
kittyy -= 2;
if (kseq >= 7) {
kanim = SCURRYB;
kseq = 0;
}
scrbtab = [14, 14, 15, 16, 17, 16, 15, 14];
kframe = scrbtab[floor(kseq)];
} else {
kanim = STAND;
}
}
}
}
}
}
}
t = kittyy + 100;
m = t / 200;
m = t / 162;
backscale = 70;
diffscale = 100 - backscale;
scale = backscale + diffscale * m;
backscale = 70;
diffscale = 100 - backscale;
pscale = backscale + diffscale * m;
pm = pscale / 100;
kitty_mc._x = 320 + kittyx * pm * vm - xscroll * vm;
decky = 0;
kitty_mc._y = 240 + (679 - decky) * vm + kittyy * vm - yscroll * vm;
uflip = flip;
if (kittyowner == 2 || kanim == BGRABBED) {
uflip = -uflip;
}
if (uflip < 0) {
kitty_mc._xscale = -scale * vm;
} else {
kitty_mc._xscale = scale * vm;
}
kitty_mc._yscale = scale * vm;
kitty_mc.gotoAndStop(kframe);
mon4 = 'kanim:' + kanim + ' kseq:' + kseq + ' beh:' + kbehind + ' kx:' + kittyx + ' ky:' + kittyy;
}
function dodrink() {
if (drinking == 1) {
if (drinkalpha < 100) {
drinkalpha += 10;
if (drinkalpha >= 100) {
drinking = 2;
}
drinkrel = 0;
dseq = 0;
if (drinks == 0) {
dframe = 7;
dseq = 14.5;
} else {
dframe = 1;
if (blives >= 10) {
dseq = 14.5;
}
}
}
} else {
if (drinking == 2) {
if (!Key.isDown(17) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(38)) {
drinkrel = 1;
}
dftab = [1, 1, 2, 3, 4, 5, 6, 6, 6, 6, 5, 4, 3, 2, 1, 1];
if (dseq == 0) {
if (Key.isDown(38) && drinkrel) {
dseq += 0.25;
drinkrel = 0;
}
} else {
if (dseq >= 7 && dseq < 8) {
dseq += 0.1;
} else {
if (dseq < 14.5) {
dseq += 0.25;
}
}
}
if (dseq == 6) {
++blives;
--drinks;
say('magic');
}
if (dseq >= 14.5) {
if (drinks && blives < 10) {
if (drinkrel && Key.isDown(38)) {
dseq = 0.5;
drinkrel = 0;
} else {
if ((Key.isDown(17) || Key.isDown(37) || Key.isDown(40)) && drinkrel) {
drinking = 3;
}
}
} else {
if ((Key.isDown(17) || Key.isDown(37) || Key.isDown(40)) && drinkrel) {
drinking = 3;
}
}
}
dframe = dftab[floor(dseq)];
if (dseq >= 14 && !drinks) {
dframe = 7;
}
} else {
if (drinking == 3) {
if (drinkalpha > 0) {
drinkalpha -= 10;
if (drinkalpha <= 0) {
drinking = 0;
drinkalpha = 0;
bg640_mc._x = -10000;
}
}
}
}
}
bg640_mc.swapDepths(233570);
bg640_mc.gotoAndStop(dframe);
bg640_mc._alpha = drinkalpha;
bg640_mc._x = 320;
bg640_mc._y = 240;
bg640_mc._yscale = 100;
}
function dofire() {
if (firesize1 < phase * 17 + 20) {
firesize1 += 0.05;
}
if (firesize2 < phase * 17 + 20) {
firesize2 += 0.05;
}
if (smokealpha < phase * 10) {
smokealpha += 0.05;
}
flamex = -229;
flamey = -119;
flamex2 = 221;
flamey2 = -127;
firealpha1 = firesize1;
firealpha2 = firesize2;
fscalex1 = firesize1;
fscaley1 = fscalex1 * 11 / 10;
fscalex2 = firesize2;
fscaley2 = fscalex2 * 11 / 10;
i = 0;
while (i < flames) {
ii = i + 1;
if (flamealpd[i]) {
flamealp[i] += 2;
if (flamealp[i] >= 100) {
flamealpd[i] = 0;
}
} else {
flamealp[i] -= 2;
if (flamealp[i] <= 0) {
flamealpd[i] = 1;
flamesiz[i] = 10;
}
}
if (flamesiz[i] < 100) {
flamesiz[i] += rnd(10) / 5 + 1;
} else {
flamesiz[i] += rnd(10) / 5;
flamealpd[i] = 0;
}
if (i < 5) {
_root['box' + ii + '_mc']._x = 320 + flamex * vm - xscroll * vm;
_root['box' + ii + '_mc']._y = 240 + 679 * vm + flamey * vm - yscroll * vm;
_root['box' + ii + '_mc']._xscale = -fscalex1 * vm;
_root['box' + ii + '_mc']._yscale = fscaley1 * (flamesiz[i] / 100) * vm;
_root['box' + ii + '_mc']._alpha = flamealp[i] * (firealpha1 / 100);
_root['box' + ii + '_mc'].gotoAndStop(145 + floor(flamefra[i]));
} else {
_root['box' + ii + '_mc']._x = 320 + flamex2 * vm - xscroll * vm;
_root['box' + ii + '_mc']._y = 240 + 679 * vm + flamey2 * vm - yscroll * vm;
_root['box' + ii + '_mc']._xscale = fscalex2 * vm;
_root['box' + ii + '_mc']._yscale = fscaley2 * (flamesiz[i] / 100) * vm;
_root['box' + ii + '_mc']._alpha = flamealp[i] * (firealpha2 / 100);
_root['box' + ii + '_mc'].gotoAndStop(150 + floor(flamefra[i]));
}
_root['box' + ii + '_mc'].swapDepths(9800 + i);
++i;
}
}
function doblood() {
RUN = 25;
dokeys();
yadd = 0;
if (banim == STAND) {
if (halt == 0) {
bframe = 104;
} else {
if (bwalk) {
if (bface == LEFT) {
bframe = 62;
}
if (bface == RIGHT) {
bframe = 1;
}
if (bface == FRONT) {
bframe = 91;
}
if (bface == BACK) {
bframe = 53;
}
} else {
bframe = 62;
if (bseq < 0) {
bseq += 1;
}
}
}
} else {
if (banim == TURN) {
if (bseq >= 3 && bseq < 4) {
if (halt == 2) {
bseq += 1;
}
} else {
bseq += 1;
}
if (bseq >= 8) {
bseq = -1;
banim = STAND;
bface = LEFT;
bframe = 62;
} else {
turntab = [91, 91, 92, 93, 94, 95, 96, 97, 62];
bframe = turntab[floor(bseq)];
}
} else {
if (banim == ENGARDE) {
bframe = 69;
if (bseq < 0) {
bseq += 1;
}
if (wlives == 0) {
bframe = 163;
}
} else {
if (banim == ADVL) {
if (flip > 0) {
dobump(LEFT);
} else {
dobump(RIGHT);
}
bseq += 1;
if (apartx > 190) {
bloodx -= bstep * flip;
}
if (bseq >= 3) {
bseq = -1;
banim = ENGARDE;
bframe = 69;
} else {
advltab = [70, 71, 72, 69];
bframe = advltab[floor(bseq)];
}
} else {
if (banim == RETL) {
if (flip > 0) {
dobump(RIGHT);
} else {
dobump(LEFT);
}
bseq += 1;
if (bump) {
bseq = 3;
} else {
if (wanim == TOUCHE && abs(bloodx) <= abs(kittyx)) {
} else {
bloodx += bstep * flip;
}
}
if (bseq >= 3) {
bseq = -1;
banim = ENGARDE;
bframe = 69;
} else {
retltab = [73, 74, 75, 69];
bframe = retltab[floor(bseq)];
}
} else {
if (banim == DRAW) {
bseq += 0.5;
if (bseq % 1 == 0) {
bloodx -= 0;
}
if (bseq >= 7) {
bseq = -1;
banim = ENGARDE;
bframe = 69;
} else {
drawtab = [62, 63, 64, 65, 66, 67, 68, 69];
bframe = drawtab[floor(bseq)];
}
} else {
if (banim == UNDRAW) {
bseq += 0.5;
if (bseq >= 7) {
bseq = -1;
banim = STAND;
bframe = 62;
} else {
undrawtab = [68, 67, 66, 65, 64, 63, 62, 62];
bframe = undrawtab[floor(bseq)];
}
} else {
if (banim == WALKL) {
bseq += 1;
if (bseq % 1 == 0) {
bloodx -= bstep * flip;
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 10 + floor(bseq);
} else {
if (banim == WALKR) {
bseq += 1;
if (bseq % 1 == 0) {
bloodx += bstep * flip;
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 23 + floor(bseq);
} else {
if (banim == WALKF) {
bseq += 1;
if (bseq % 1 == 0) {
bloody += bstep;
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 36 + floor(bseq);
} else {
if (banim == DRAG) {
bseq += 0.5;
if (bseq % 1 == 0) {
bloody += bstep;
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 99 + floor(bseq);
} else {
if (banim == WALKB) {
bseq += 1;
if (bseq % 1 == 0) {
bloody -= bstep;
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 49 + floor(bseq);
if (bdeck == 0 && bloodx < -350 && bloodx > -390) {
dx = bloodx + 400;
if (abs(dx) > 2) {
bloodx -= dx * 0.5;
}
}
} else {
if (banim == UPSTAIR) {
if (bloodx < 0) {
bstair = -1;
} else {
bstair = 1;
}
if (bloody <= -94) {
banim = STAND;
bdeck = 2;
} else {
usyat = [5, 6, 5, 3, 0, 3, 5, 6, 5, 3, 0, 3, 0];
bseq += 1;
if (bseq % 1 == 0) {
bloody -= 1.9;
}
yadd = usyat[floor(bseq)] * 1.2;
if (bloodx > 0) {
dx = bloodx - staircenter0;
if (abs(dx) > 2) {
bloodx -= dx * 0.03;
}
} else {
dx = bloodx + staircenter0;
if (abs(dx) > 2) {
bloodx -= dx * 0.03;
}
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 49 + floor(bseq);
}
} else {
if (banim == DNSTAIR) {
if (bloodx < 0) {
bstair = -1;
} else {
bstair = 1;
}
if (whimpx < 0) {
wstair = -1;
} else {
wstair = 1;
}
if ((wanim == UPSTAIR || wanim == DNSTAIR) && wstair == bstair) {
banim = SLIDE;
} else {
if (bloody >= 10) {
bdeck = 0;
if (bloody >= 35) {
if (phase == 2 && apartx < 250) {
banim = ENGARDE;
} else {
banim = STAND;
}
bseq = 0;
} else {
bseq += 1;
bloody += 4;
if (bloody > 35) {
bloody = 35;
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 36 + floor(bseq);
}
} else {
bseq += 1;
if (bseq % 1 == 0) {
bloody += 1.9;
}
yadd = usyat[floor(bseq)] * 1.2;
if (bloodx > 0) {
dx = bloodx - (staircenter1 - 20);
if (abs(dx) > 2) {
bloodx -= dx * 0.04;
}
} else {
dx = bloodx + staircenter1 - 30;
if (abs(dx) > 2) {
bloodx -= dx * 0.04;
}
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 36 + floor(bseq);
}
}
} else {
if (banim == SLIDE) {
if (bstair < 0) {
bflip = 1;
}
if (bloody >= 10) {
bdeck = 0;
if (bloody >= 35) {
banim = STAND;
bseq = 0;
if (dieseq) {
dieseq = 3;
phase = 9;
}
} else {
bseq += 1;
bloody += 4;
if (bloody > 35) {
bloody = 35;
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 36 + floor(bseq);
}
} else {
bloody += 4;
bframe = 142;
dy = whimpy - bloody;
if (dy < 20 && (wanim == UPSTAIR || wanim == DNSTAIR)) {
wanim = KNOCK;
wseq = 0;
say('grunt');
}
}
} else {
if (banim == KNOCK) {
knocktab = [144, 144, 145, 146, 147, 148, 149, 150, 151, 152, 58];
if (bseq == 0) {
say('grunt');
if (blives > 0) {
--blives;
}
}
if (bloody >= 10) {
if (bdeck) {
bdeck = 0;
say('thud');
}
if (bseq < 4) {
bseq += 0.5;
} else {
if (bseq < 4.975) {
bseq += 0.025;
} else {
if (bseq >= 5 && blives) {
bseq += 0.5;
if (bseq >= 10) {
banim = STAND;
bseq = 0;
}
} else {
if (bseq >= 4.975 && !blives && !goblackslow) {
goblackslow = 1;
}
}
}
}
if (bloody >= 35) {
} else {
bloody += 4;
if (bloody > 35) {
bloody = 35;
}
}
bframe = knocktab[floor(bseq)];
} else {
if (bseq < 3) {
bseq += 0.5;
}
bloody += 6;
bframe = knocktab[floor(bseq)];
}
} else {
if (banim == DIE) {
dietab = [144, 144, 145, 146, 147, 148, 149, 150, 151, 152, 58];
yarddietab = [139, 139, 140, 141, 141, 141, 140, 140, 139, 139, 58];
if (bdeck == 4 && bseq < 5) {
}
if (bseq == 0) {
say('grunt');
if (blives > 0) {
--blives;
}
bseq += 0.25;
}
if (bloodz > 0 && bdeck != 4) {
bzadd += 1;
bloodz -= bzadd;
if (bloodz <= 0) {
say('thud');
bloodz = 0;
}
} else {
if (bseq < 2) {
bseq += 0.25;
} else {
if (bseq < 4) {
++bseq;
if (bseq == 4 && bdeck != 4) {
say('thud');
}
} else {
if (bseq < 4.975) {
bseq += 0.025;
} else {
if (bseq >= 5 && blives) {
bseq += 0.5;
if (bseq >= 10) {
banim = STAND;
bseq = 0;
bface = BACK;
}
} else {
if (bseq >= 4.975 && !blives && !goblackslow) {
goblackslow = 1;
}
}
}
}
}
}
if (bdeck == 4) {
bframe = yarddietab[floor(bseq)];
} else {
bframe = dietab[floor(bseq)];
}
} else {
if (banim == CUT1) {
bseq += 1;
if (bseq == 1) {
say('swing');
}
if (bseq >= 7) {
bseq = 0;
banim = ENGARDE;
bframe = 77;
} else {
bcut1tab = [77, 78, 79, 79, 79, 79, 78, 77];
cut1tab = [77, 78, 79, 80, 81, 79, 78, 77];
if (blocked) {
bframe = bcut1tab[floor(bseq)];
} else {
bframe = cut1tab[floor(bseq)];
if (bseq == 4 && !dieseq) {
bloodx -= 12 * flip;
}
}
}
} else {
if (banim == KILL) {
if (bseq >= 4 && bseq < 5) {
bseq += 0.05;
} else {
bseq += 1;
}
if (bseq == 4) {
say('grunt');
wanim = KILLED;
wseq = 0;
wlives = 0;
}
if (bseq == 1) {
say('swing');
}
if (bseq >= 7) {
bseq = 0;
banim = ENGARDE;
bframe = 163;
} else {
killtab = [77, 78, 79, 80, 81, 162, 162, 163];
bframe = killtab[floor(bseq)];
}
} else {
if (banim == BLOCK1) {
bseq += 1;
if (bseq == 2) {
say('block');
}
if (bseq >= 8) {
bseq = 0;
banim = ENGARDE;
bframe = 77;
} else {
bframe = 83;
}
} else {
if (banim == PARRY1) {
bseq += 1;
if (bseq == 1) {
say('parry');
}
if (bseq >= 8) {
bseq = 0;
banim = ENGARDE;
bframe = 77;
} else {
bparry1tab = [85, 86, 87, 88, 88, 87, 86, 85];
bframe = bparry1tab[floor(bseq)];
if (bseq < 4) {
bloodx += 4 * flip;
}
}
} else {
if (banim == GRAB) {
bseq += 0.5;
if (bseq == 2) {
kanim = BGRABBED;
kseq = 0;
}
if (bseq >= 11) {
bseq = 0;
banim = ENGARDE;
bframe = 77;
kittyy = bloody;
kittyowner = BLOOD;
advantage = WHIMP;
++changes;
} else {
bgrabtab = [77, 112, 113, 113, 114, 115, 115, 114, 113, 112, 77, 77];
bframe = bgrabtab[floor(bseq)];
if (bseq >= 2) {
if (kittyy < bloody) {
kittyx += 12 * flip;
kittyy += 4;
} else {
if (kanim == BGRABBED) {
kanim = STAND;
}
}
}
}
} else {
if (banim == TOUCHE) {
if (bseq < 5) {
bseq += 1;
if (bseq == 1) {
say('grunt');
if (blives > 0) {
--blives;
}
}
btouchetab = [77, 117, 118, 119, 120, 120];
bframe = btouchetab[floor(bseq)];
} else {
if (blives <= 0) {
banim = KILLED;
bseq = 0;
}
}
} else {
if (banim == UNTOUCHE) {
if (blives <= 0) {
banim = KILLED;
bseq = 0;
} else {
if (bseq < 4) {
bseq += 1;
} else {
banim = ENGARDE;
bseq = 0;
}
}
buntouchetab = [120, 119, 118, 117, 77];
bframe = buntouchetab[floor(bseq)];
} else {
if (banim == RUN || banim == STOPRUN) {
if (banim == STOPRUN && (bseq == 0 || bseq == 6)) {
banim = STAND;
bseq = 0;
} else {
bseq += 1;
}
if (bface == LEFT) {
bflip = 1;
bloodx -= bstep;
} else {
bflip = 0;
bloodx += bstep;
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 122 + floor(bseq);
} else {
if (banim == DROP) {
if (bseq == 0) {
swordx = bloodx - 80 * flip;
swordy = bloody;
swordz = 130;
sdeck = bdeck;
sowner = BLOOD;
safe = 20;
}
if (bseq < 1) {
bseq += 0.04;
} else {
bface = FRONT;
banim = STAND;
bseq = 0;
bsword = 0;
flip = 1;
phase = 3;
}
bframe = 135;
} else {
if (banim == PICKUP) {
if (bseq < 6) {
bseq += 1;
} else {
banim = STAND;
bface = FRONT;
bseq = 0;
}
if (bseq == 3) {
bsword = 1;
swordx = -10000;
swordzadd = -10000;
}
bpicktab = [139, 139, 140, 141, 140, 139, 62];
bframe = bpicktab[floor(bseq)];
} else {
if (banim == CUTROPE) {
if (bseq < 6.75) {
if (bseq < 5) {
bseq += 0.5;
} else {
bseq += 0.25;
}
if (bloodx > 284) {
bloodx -= 4;
}
if (bseq == 6) {
++ropecuts;
if (ropecuts >= 10) {
banim = ROPELIFT;
bloodx += 20;
bseq = 9;
}
}
} else {
if (debug && Key.isDown(67)) {
ropecuts = 10;
bseq = 5;
}
if (!Key.isDown(17)) {
ctrlrel = 1;
}
if (Key.isDown(17) && ctrlrel) {
ctrlrel = 0;
bseq = 5;
}
}
cutropetab = [1, 1, 154, 155, 156, 157, 158, 157, 158, 159];
bframe = cutropetab[floor(bseq)];
} else {
if (banim == ROPELIFT) {
bseq = 0;
bframe = 159;
} else {
if (banim == ROPEFALL) {
if (bdeck == 0) {
bdeck = 2;
bloodz -= 208;
bloodmom = -8;
}
bloodz -= bloodmom;
if (bloodz <= 0) {
bloodz = 0;
banim = STAND;
bface = FRONT;
bseq = 0;
phase = 5;
} else {
bloodmom += 2;
if (bloody > -96) {
bloody -= 4.25;
} else {
bloody = -96;
}
}
apartx = abs(whimpx - bloodx);
if (bloodz > 140 || apartx > 200) {
bframe = 160;
} else {
if (bloodz < 100 && bloodz > 50 && apartx <= 200 && wanim != DIE) {
wanim = DIE;
wseq = 0;
say('grunt');
}
bframe = 142;
if (whimpx > bloodx) {
bflip = 1;
} else {
bflip = 0;
}
}
} else {
if (banim == CLIMB) {
if (bloodside < 0) {
bflip = 1;
}
if (bseq < 4) {
bseq += 0.5;
bloodz += 6;
bloodx += 4 * bface;
} else {
if (Key.isDown(38)) {
bseq += 0.5;
if (bloodz >= 620) {
if (bseq == 10) {
bseq = 4;
} else {
if (bseq == 5) {
bseq = 11;
bloodz += 6;
} else {
if (bseq == 11.5) {
bloodz += 6;
} else {
if (bseq == 12) {
bloodz = 640;
bdeck = 4;
banim = DRAW;
bseq = 0;
bface = RIGHT;
}
}
}
}
} else {
if (bloodz < 620 && bloodz + 4 >= 620) {
bloodz = 620;
} else {
bloodz += 4;
xadd = 2.75;
if (bloodx > 0) {
bloodx -= xadd;
} else {
bloodx += xadd;
}
if (bseq >= 10) {
bseq = 4;
}
}
}
} else {
if (Key.isDown(40)) {
if (bloodz <= 48) {
banim = UNCLIMB;
bseq = 0;
}
bseq += 0.5;
bloodz -= 4;
xadd = 2.75;
if (bloodx > 0) {
bloodx += xadd;
} else {
bloodx -= xadd;
}
if (bseq >= 10) {
bseq = 4;
}
} else {
if (bloodz < 64) {
bseq += 0.5;
bloodz += 4;
xadd = 2.75;
if (bloodx > 0) {
bloodx -= xadd;
} else {
bloodx += xadd;
}
if (bseq >= 10) {
bseq = 4;
}
}
}
}
}
bclimbtab = [3, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 2];
bframe = bclimbtab[floor(bseq)];
} else {
if (banim == UNCLIMB) {
if (bseq < 4) {
bseq += 0.5;
bloodz -= 6;
if (bloodz < 0) {
bloodz = 0;
}
if (bloodx > 0) {
bloodx -= 4;
} else {
bloodx += 4;
}
} else {
bdeck = 2;
bloodz = 0;
banim = STAND;
if (bloodx > 0) {
bface = RIGHT;
} else {
bface = LEFT;
}
bseq = 0;
}
bunclimbtab = [5, 5, 4, 3, 62];
bframe = bunclimbtab[floor(bseq)];
} else {
if (banim == CLIMBMAST) {
if (bloodx > 0 && !breach) {
shimmyup = 0;
bseq += 0.5;
if (bseq >= 6) {
bseq = 0;
}
if (bloodz < 736) {
bloodz += 6;
bloodx -= 4;
bclimbmasttab = [6, 7, 8, 9, 8, 7, 6];
bframe = bclimbmasttab[floor(bseq)];
} else {
bdeck = 5;
bloodx -= 8;
brunmasttab = [122, 123, 124, 125, 126, 127, 122];
bframe = brunmasttab[floor(bseq)];
bflip = 1;
}
breach = 0;
} else {
if (!breach) {
bloodx = 0;
bdeck = 6;
bshimmytab = [174, 175, 176, 177, 176, 175, 174];
bshimmyztab = [0, 3, 3, 3, 0, 0, 0];
if (Key.isDown(38)) {
shimmyup = 1;
} else {
shimmyup = 0;
}
if (shimmyup) {
if (bseq == 3 && Key.isDown(39)) {
breach = 2;
bzadd = -16;
} else {
bseq += 0.5;
za = bshimmyztab[floor(bseq)];
if (bloodz < 980) {
bloodz += za;
} else {
bseq = 3;
if (3) {
breach = 1;
}
}
}
if (bseq >= 6) {
bseq = 0;
}
}
bframe = bshimmytab[floor(bseq)];
} else {
if (breach == 1) {
bshimmyrtab = [174, 175, 176, 177, 178, 179, 179];
jrxtab = [2, 7, 13, 22, 33, 46, 62, 79, 99, 121, 145, 171, 200, 231, 264, 299, 336, 376];
jrztab = [980, 976, 970, 962, 952, 940, 926, 910, 892, 872, 850, 826, 800, 772, 742, 710, 676, 640];
if (bseq < 6) {
bseq += 0.5;
}
bframe = bshimmyrtab[floor(bseq)];
if (bseq >= 6) {
banim = SLIDEMAST;
++slides;
bseq = 0;
bzadd = 0;
bdeck = 7;
}
} else {
if (breach == 2) {
jrxtab = [2, 7, 13, 22, 33, 46, 62, 79, 99, 121, 145, 171, 200, 231, 264, 299, 336, 376];
jrztab = [980, 976, 970, 962, 952, 940, 926, 910, 892, 872, 850, 826, 800, 772, 742, 710, 676, 640];
bframe = 179;
bzadd += 2;
bloodz -= bzadd;
bloodx += 6;
if (bloodz <= 640) {
bloodz = 640;
breach = 0;
} else {
ii = -1;
i = 0;
while (i < 18) {
if (bloodz >= jrztab[i]) {
if (bloodx >= jrxtab[i] - 7) {
ii = i;
}
i = 18;
break;
}
++i;
}
if (ii >= 0) {
idealx = jrxtab[ii];
idealz = jrztab[ii];
bloodx = idealx;
bloodz = idealz;
bzadd = 0;
banim = SLIDEMAST;
++slides;
bseq = 0;
bzadd = 0;
bdeck = 7;
}
}
}
}
}
}
} else {
if (banim == SLIDEMAST) {
bframe = 180;
bzadd += 2;
bloodz -= bzadd;
bloodx += bzadd * 1.1;
if (bloodz <= 708 && wanim == SLIDERECOVER) {
wanim = DIE;
wseq = 0;
say('grunt');
wzadd = 0;
wfaloops = 0;
wxadd = (490 - whimpx) / 36;
dieseq = 1;
}
if (bloodz <= 640) {
bloodz = 640;
banim = STAND;
bdeck = 4;
}
} else {
if (banim == SSLIDE) {
if (bloodz > 0) {
bzadd += 0.5;
bloodz -= bzadd;
bloodx += bzadd * 0.6875;
if (bloodx > 490) {
bloodx = 490;
}
if (bloodz <= 0) {
say('thud');
bloodz = 0;
bdeck = 2;
wanim = KNOCK;
wseq = 0;
wdeck = 1;
dieseq = 2;
}
} else {
banim = SLIDE;
bdeck = 1;
}
bframe = 6;
} else {
if (banim == KILLED) {
if (bseq < 6) {
bseq += 0.25;
} else {
if (!goblackslow) {
goblackslow = 1;
}
}
bkilledtab = [140, 140, 141, 165, 166, 166, 166];
bframe = bkilledtab[floor(bseq)];
bflip = 1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
t = bloody + 100;
m = t / 200;
m = t / 162;
backscale = 70;
diffscale = 100 - backscale;
scale = backscale + diffscale * m;
backscale = 70;
diffscale = 100 - backscale;
pscale = backscale + diffscale * m;
pm = pscale / 100;
blood_mc._x = 320 + bloodx * pm * vm - xscroll * vm;
if (bdeck == 0) {
decky = 0;
} else {
if (bdeck == 1) {
yx = bloody - 10;
decky = -yx * 2;
} else {
decky = 208;
}
}
blood_mc._y = 240 + (679 - decky) * vm + bloody * vm - yscroll * vm - yadd * vm - bloodz * vm;
if (bflip) {
uflip = -flip;
} else {
uflip = flip;
}
if (uflip < 0) {
blood_mc._xscale = -scale * vm;
} else {
blood_mc._xscale = scale * vm;
}
blood_mc._yscale = scale * vm;
blood_mc.gotoAndStop(bframe);
blood_mc._rotation = bloodangle;
mon1 = 'bx:' + floor(bloodx) + ' by:' + floor(bloody) + ' bz:' + floor(bloodz) + ' wx:' + floor(whimpx) + ' wy:' + floor(whimpy) + ' wz:' + floor(whimpz) + 'apart:' + floor(apartx);
cf = blood_mc._currentframe;
mon2 = 'bseq:' + bseq + ' banim:' + banim + ' bf:' + bframe + ' wanim:' + wanim + ' wseq:' + wseq + ' wdeck:' + wdeck;
}
function bloodchase() {
if (banim == KNOCK || banim == DIE) {
if (bseq >= 4.975 && bseq < 5 && Key.isDown(38)) {
bseq = 5;
}
} else {
if (banim == UPSTAIR || banim == DNSTAIR || banim == UNDRAW || banim == TURN || banim == SLIDE) {
} else {
if (Key.isDown(65)) {
} else {
if (Key.isDown(38)) {
bstep = 4;
dobump(UP);
if (bothsword) {
} else {
if (bdeck == 0 && stairx && bloody <= 10) {
banim = UPSTAIR;
bface = BACK;
bstep = 4;
bseq = 5;
bdeck = 1;
} else {
if (bump) {
banim = STAND;
} else {
if (stairx && bdeck == 0) {
if (banim != WALKB) {
bseq = 4;
}
banim = WALKB;
bface = BACK;
bstep = 4;
} else {
banim = STAND;
}
}
}
}
} else {
if (Key.isDown(40)) {
bstep = 4;
dobump(DOWN);
if (bdeck == 2 && stairx && bloody >= -95) {
banim = DNSTAIR;
bface = FRONT;
bstep = 4;
bseq = 5;
bdeck = 1;
} else {
if (bump) {
banim = STAND;
} else {
if (stairx && bdeck == 2) {
if (banim != WALKF) {
bseq = 4;
}
banim = WALKF;
bface = FRONT;
bstep = 4;
} else {
banim = STAND;
}
}
}
} else {
if (Key.isDown(37)) {
bstep = 18;
dobump(LEFT);
if (bump) {
banim = STAND;
} else {
banim = RUN;
bface = LEFT;
}
} else {
if (Key.isDown(39)) {
bstep = 18;
dobump(RIGHT);
if (bump) {
banim = STAND;
} else {
banim = RUN;
bface = RIGHT;
}
} else {
if (banim == 25) {
banim = 26;
} else {
banim = STAND;
}
}
}
}
}
}
}
}
if (bdeck == 1 && banim != UPSTAIR && banim != DNSTAIR && banim != SLIDE && banim != KNOCK && banim != STAND) {
trace('stair error chase! ' + banim);
pausing = 1;
}
}
function bloodrun() {
bsx = abs(bloodx - swordx);
if (banim == DIE || banim == KNOCK) {
if (bseq >= 4.975 && bseq < 5 && Key.isDown(38)) {
bseq = 5;
}
}
if (banim == UPSTAIR || banim == DNSTAIR || banim == UNDRAW || banim == SLIDE || banim == PICKUP || banim == TURN || banim == TOUCHE || banim == DROP || banim == KNOCK || banim == DIE || banim == SLIDE) {
} else {
if (bsx < 18 && !bsword && bdeck == sdeck) {
banim = PICKUP;
bseq = 0;
} else {
if (Key.isDown(38)) {
bstep = 4;
dobump(UP);
if (bdeck == 0 && stairx && bloody <= 10) {
banim = UPSTAIR;
bface = BACK;
bstep = 4;
bseq = 5;
bdeck = 1;
} else {
if (bump) {
banim = STAND;
} else {
if (stairx && bdeck == 0) {
if (banim != WALKB) {
bseq = 4;
}
banim = WALKB;
bface = BACK;
bstep = 4;
} else {
banim = STAND;
}
}
}
} else {
if (Key.isDown(40)) {
bstep = 4;
dobump(DOWN);
if (bdeck == 2 && stairx && bloody >= -95) {
banim = DNSTAIR;
bface = FRONT;
bstep = 4;
bseq = 5;
bdeck = 1;
} else {
if (bump) {
banim = STAND;
} else {
if (stairx && bdeck == 2) {
if (banim != WALKF) {
bseq = 4;
}
banim = WALKF;
bface = FRONT;
bstep = 4;
} else {
banim = STAND;
}
}
}
} else {
if (Key.isDown(37)) {
bstep = 18;
dobump(LEFT);
if (!bump && wdeck == bdeck && wanim != KNOCK) {
dx = bloodx - whimpx;
if (dx > 0 && dx < 150) {
bump = 1;
}
}
if (bump) {
banim = STAND;
} else {
banim = RUN;
bface = LEFT;
}
} else {
if (Key.isDown(39)) {
bstep = 18;
dobump(RIGHT);
if (!bump && wdeck == bdeck && wanim != KNOCK) {
dx = bloodx - whimpx;
if (dx < 0 && dx > -150) {
bump = 1;
}
}
if (bump) {
banim = STAND;
} else {
banim = RUN;
bface = RIGHT;
}
} else {
if (banim == RUN) {
banim = STOPRUN;
} else {
banim = STAND;
}
}
}
}
}
}
}
if (bdeck == 1 && banim != UPSTAIR && banim != DNSTAIR && banim != SLIDE && banim != KNOCK) {
trace('stair error run! ' + banim);
pausing = 1;
}
}
function bloodballed() {
if (banim == ROPELIFT || banim == ROPEFALL) {
} else {
if (banim == CUTROPE) {
if (Key.isDown(37) || Key.isDown(38) || Key.isDown(40)) {
banim = STAND;
bseq = 0;
bface = LEFT;
} else {}
} else {
if (banim == DIE || banim == KNOCK) {
if (bseq >= 4.975 && bseq < 5 && Key.isDown(38)) {
bseq = 5;
}
} else {
if (banim == UPSTAIR || banim == DNSTAIR || banim == UNDRAW || banim == TURN) {
} else {
if (Key.isDown(65)) {
} else {
if (Key.isDown(38)) {
bstep = 4;
dobump(UP);
if (bdeck == 0 && stairx && bloody <= 10) {
banim = UPSTAIR;
bface = BACK;
bstep = 4;
bseq = 5;
bdeck = 1;
} else {
if (bump) {
banim = STAND;
} else {
if (banim != WALKB) {
bseq = 4;
}
banim = WALKB;
bface = BACK;
bstep = 4;
}
}
} else {
if (Key.isDown(40)) {
bstep = 4;
dobump(DOWN);
if (bdeck == 2 && stairx && bloody >= -95) {
banim = DNSTAIR;
bface = FRONT;
bstep = 4;
bseq = 5;
bdeck = 1;
} else {
if (bump) {
banim = STAND;
} else {
if (banim != WALKF) {
bseq = 4;
}
banim = WALKF;
bface = FRONT;
bstep = 4;
}
}
} else {
if (Key.isDown(37)) {
bstep = 18;
dobump(LEFT);
if (bump) {
banim = STAND;
} else {
banim = RUN;
bface = LEFT;
}
} else {
if (Key.isDown(39)) {
bstep = 18;
dobump(RIGHT);
if (bloodx >= 284 && bloody >= 0 && bloody <= 20) {
if (banim != CUTROPE) {
bseq = 1;
}
banim = CUTROPE;
} else {
if (bloody < -60 && bump && bdeck == 0) {
banim = STAND;
if (drinking == 0) {
drinking = 1;
}
} else {
if (bump) {
banim = STAND;
} else {
banim = RUN;
bface = RIGHT;
}
}
}
} else {
if (banim == RUN) {
banim = STOPRUN;
} else {
banim = STAND;
}
}
}
}
}
}
}
}
}
}
}
function bloodrigging() {
if (banim == DRAW || banim == ENGARDE) {
bflip = 1;
} else {
if (banim == DIE || banim == KNOCK) {
if (bloodz > 0) {
} else {
if (bseq >= 4.975 && bseq < 5 && Key.isDown(38)) {
bseq = 5;
}
}
} else {
if (banim == UPSTAIR || banim == DNSTAIR || banim == UNDRAW || banim == TURN || banim == CLIMB || banim == UNCLIMB) {
} else {
if (Key.isDown(65)) {
} else {
if (Key.isDown(38)) {
} else {
if (Key.isDown(40)) {
} else {
if (Key.isDown(37)) {
if (bdeck == 4) {
} else {
bstep = 18;
dobump(LEFT);
if (bump) {
if (bloodx <= -475 && bdeck == 2) {
bloodx = -475;
bface = LEFT;
banim = CLIMB;
bseq = 0;
bdeck = 3;
} else {
banim = STAND;
}
} else {
banim = RUN;
bface = LEFT;
}
}
} else {
if (Key.isDown(39)) {
if (bdeck == 4) {
} else {
bstep = 18;
dobump(RIGHT);
if (bump) {
if (bloodx >= 475 && bdeck == 2 && wdeck == 3) {
bloodx = 475;
bface = RIGHT;
banim = CLIMB;
bseq = 0;
bdeck = 3;
} else {
banim = STAND;
}
} else {
banim = RUN;
bface = RIGHT;
}
}
} else {
if (banim == RUN) {
banim = STOPRUN;
} else {
banim = STAND;
}
}
}
}
}
}
}
}
}
}
function bloodyard() {
if (!Key.isDown(37) && !Key.isDown(39)) {
lrrel = 1;
}
if (wanim == TOUCHE) {
}
if (banim == TOUCHE) {
if (apartx < 275) {
} else {
if (Key.isDown(ADV_KEY) || Key.isDown(17)) {
banim = UNTOUCHE;
bseq = 0;
}
}
} else {
if (apartx < 188 && banim == ENGARDE) {
banim = RETL;
bstep = 3;
bseq = -1;
} else {
if (Key.isDown(RET_KEY) && lrrel) {
if (abs(bloodx) >= 505) {
} else {
lrrel = 0;
banim = RETL;
bstep = 6;
bseq = -0.5;
}
} else {
if (Key.isDown(ADV_KEY) && lrrel && apartx >= 190) {
if (bloodx <= -505) {
} else {
lrrel = 0;
banim = ADVL;
bstep = 6;
bseq = -0.5;
}
} else {
if (banim == ENGARDE && Key.isDown(17) && ctrlrel == 1) {
if (wanim == CUT1 && wseq < 2) {
if (rnd1()) {
blocked = 1;
banim = BLOCK1;
} else {
blocked = 0;
banim = PARRY1;
}
bseq = 0;
ctrlrel = 0;
} else {
if (wanim == CUT1 && wseq < 6) {
blocked = 0;
bseq = 0;
banim = PARRY1;
ctrlrel = 0;
} else {
if (wanim == ENGARDE) {
if (ez) {
edge = 100;
} else {
edge = 500;
}
if (whimpx > 300) {
++changes;
advantage = WHIMP;
wseq = 0;
wanim = DROP;
swordzadd = 15;
swordloops = 0;
say('parry');
phase = 7;
} else {
if (abs(whimpx) >= 475) {
if (wanim != TOUCHE) {
wanim = TOUCHE;
wseq = 0;
}
} else {
if (rnd(1000) > edge) {
blocked = 0;
wseq = 0;
wanim = PARRY1;
} else {
blocked = 1;
wseq = 0;
wanim = BLOCK1;
}
}
}
bseq = 0;
banim = CUT1;
ctrlrel = 0;
}
}
}
}
}
}
}
}
if (!Key.isDown(17)) {
ctrlrel = 1;
}
}
function bloodmast() {
if (dieseq > 1) {
} else {
if (banim == KNOCK || banim == DIE) {
if (bseq >= 4.975 && bseq < 5 && Key.isDown(38)) {
bseq = 5;
}
} else {
if (banim == UPSTAIR || banim == DNSTAIR || banim == UNDRAW || banim == TURN || banim == CLIMBMAST || banim == SLIDEMAST || banim == SSLIDE || banim == SLIDE) {
} else {
if (Key.isDown(65)) {
} else {
if (dieseq == 1) {
bface = LEFT;
banim = RUN;
if (bloodx < 116) {
bloodx = 115;
banim = SSLIDE;
bzadd = 0;
}
} else {
if (phase == 8) {
if (Key.isDown(38)) {
banim = STAND;
} else {
if (Key.isDown(40)) {
banim = STAND;
} else {
if (Key.isDown(37)) {
bstep = 18;
if (bloodx < 150) {
bseq = 0;
banim = CLIMBMAST;
breach = 0;
} else {
banim = RUN;
bface = LEFT;
}
} else {
if (Key.isDown(39)) {
bstep = 18;
if (bloodx > 500) {
banim = STAND;
} else {
banim = RUN;
bface = RIGHT;
}
} else {
if (banim == RUN) {
banim = STOPRUN;
} else {
banim = STAND;
}
}
}
}
}
} else {
if (Key.isDown(38)) {
banim = STAND;
} else {
if (Key.isDown(40)) {
banim = STAND;
} else {
if (Key.isDown(37)) {
bstep = 18;
if (bloodx < -560) {
banim = STAND;
} else {
banim = RUN;
bface = LEFT;
}
} else {
if (Key.isDown(39)) {
bstep = 18;
if (bloodx > 500) {
banim = STAND;
} else {
banim = RUN;
bface = RIGHT;
}
} else {
if (banim == RUN) {
banim = STOPRUN;
} else {
banim = STAND;
}
}
}
}
}
}
}
}
}
}
}
}
function blooddeath() {
bflip = 1;
if (bloodx > whimpx - 190) {
banim = RUN;
bface = LEFT;
} else {
if (banim != ENGARDE && banim != DRAW && halt == 10) {
bloodx = whimpx - 190;
banim = DRAW;
bseq = 0;
bface = RIGHT;
} else {
if (banim == ENGARDE || halt > 10) {
if (halt == 10) {
saythis('\rTime to end this.', 2, 1, bloodx + 15, bloody - 220);
halt = 11;
wait = 2 * framerate;
} else {
if (halt == 11) {
if (wait) {
--wait;
} else {
saythis('\rGet up you whimp.', 2, 1, bloodx + 15, bloody - 220);
halt = 12;
wait = 2 * framerate;
}
} else {
if (halt == 12) {
if (wait) {
--wait;
} else {
if (wanim == STAND && Key.isDown(17)) {
bseq = 0;
banim = KILL;
halt = 13;
wait = 2 * framerate;
}
}
} else {
if (halt == 13) {
if (wait) {
--wait;
} else {
if (banim == ENGARDE) {
bseq = 0;
banim = UNDRAW;
} else {
if (banim == STAND) {
bface = RIGHT;
bflip = 0;
saythis('Aha! She is all mine now!', 2, 1, bloodx - 15, bloody - 220);
halt = 14;
wait = 2 * framerate;
}
}
}
} else {
if (halt == 14) {
bflip = 0;
if (wait) {
--wait;
} else {
if (bloodx > kittyx + 43) {
bflip = 0;
banim = WALKL;
bface = LEFT;
bstep = 9;
} else {
halt = 15;
bflip = 0;
if (banim != DRAG) {
bseq = 4;
}
banim = DRAG;
bface = FRONT;
bstep = 4;
}
}
} else {
if (halt == 15) {
bflip = 0;
if (banim != DRAG) {
bseq = 4;
}
banim = DRAG;
bface = FRONT;
bstep = 4;
if (bloody > 420 && !goblackslow) {
goblackslow = 1;
}
}
}
}
}
}
}
}
}
}
if (wanim == STAND) {
wface = LEFT;
wflip = 1;
}
}
function dowhimp() {
wyadd = 0;
if (wanim == STAND) {
if (wwalk) {
if (wface == LEFT) {
wframe = 62;
}
if (wface == RIGHT) {
wframe = 1;
}
if (wface == FRONT) {
wframe = 1;
}
if (wface == BACK) {
wframe = 1;
}
} else {
wframe = 62;
if (wseq < 0) {
wseq += 1;
}
}
} else {
if (wanim == ENGARDE) {
wframe = 69;
if (wseq < 0) {
wseq += 1;
}
} else {
if (wanim == ADVL) {
wseq += 1;
whimpx += wstep * flip;
if (wseq >= 3) {
wseq = -2;
wanim = ENGARDE;
wframe = 69;
} else {
wadvltab = [70, 71, 72, 69];
wframe = wadvltab[floor(wseq)];
}
} else {
if (wanim == RETL) {
wseq += 1;
whimpx -= wstep * flip;
if (wseq >= 3) {
wseq = -1;
wanim = ENGARDE;
wframe = 69;
} else {
wretltab = [73, 74, 75, 69];
wframe = wretltab[floor(wseq)];
}
} else {
if (wanim == DRAW) {
wseq += 1;
if (wseq >= 7) {
wseq = -1;
wanim = ENGARDE;
wframe = 69;
} else {
wdrawtab = [62, 63, 64, 65, 66, 67, 68, 69];
wframe = wdrawtab[floor(wseq)];
}
} else {
if (wanim == UNDRAW) {
wseq += 0.5;
if (wseq >= 7) {
wseq = -1;
wanim = STAND;
wframe = 62;
} else {
wframe = undrawtab[floor(wseq)];
}
} else {
if (wanim == WALKL) {
wseq += 1;
if (wseq % 1 == 0) {
whimpx -= wstep * flip;
}
if (wseq >= 12) {
wseq = 0;
}
wframe = 10 + floor(wseq);
} else {
if (wanim == WALKR) {
wseq += 1;
if (wseq % 1 == 0) {
whimpx += wstep * flip;
}
if (wseq >= 12) {
wseq = 0;
}
wframe = 23 + floor(wseq);
} else {
if (wanim == WALKF) {
wseq += 1;
if (wseq % 1 == 0) {
whimpy += 4;
}
if (wseq >= 12) {
wseq = 0;
}
wframe = 36 + floor(wseq);
if (wdeck == 2 && whimpy >= -95) {
if (whimpx < 0) {
wstair = -1;
} else {
wstair = 1;
}
if (bdeck == 1 && wstair == bstair) {
wanim = SLIDE;
wface = FRONT;
} else {
wanim = DNSTAIR;
wface = FRONT;
wstep = 4;
}
wseq = 5;
wdeck = 1;
}
} else {
if (wanim == WALKB) {
wseq += 1;
if (wseq % 1 == 0) {
whimpy -= 4;
}
if (wseq >= 12) {
wseq = 0;
}
wframe = 49 + floor(wseq);
if (wdeck == 0 && whimpy <= 10) {
wanim = UPSTAIR;
wface = BACK;
wstep = 4;
wseq = 5;
wdeck = 1;
}
} else {
if (wanim == UPSTAIR) {
if (whimpx < 0) {
wstair = -1;
} else {
wstair = 1;
}
if (whimpy <= -94) {
wanim = STAND;
wdeck = 2;
} else {
wusyat = [5, 6, 5, 3, 0, 3, 5, 6, 5, 3, 0, 3, 0];
wseq += 1;
if (wseq % 1 == 0) {
whimpy -= 1.9;
}
wyadd = wusyat[floor(wseq)] * 1.2;
if (whimpx > 0) {
dx = whimpx - staircenter0;
if (abs(dx) > 2) {
whimpx -= dx * 0.03;
}
} else {
dx = whimpx + staircenter0;
if (abs(dx) > 2) {
whimpx -= dx * 0.03;
}
}
if (wseq >= 12) {
wseq = 0;
}
wframe = 49 + floor(wseq);
}
} else {
if (wanim == DNSTAIR) {
if (whimpx < 0) {
wstair = -1;
} else {
wstair = 1;
}
if ((banim == UPSTAIR || banim == DNSTAIR) && wstair == bstair) {
wanim = SLIDE;
} else {
if (whimpy >= 10) {
wdeck = 0;
if (whimpy >= 35) {
wanim = STAND;
wseq = 0;
} else {
wseq += 1;
whimpy += 4;
if (whimpy > 35) {
whimpy = 35;
}
if (wseq >= 12) {
wseq = 0;
}
wframe = 36 + floor(wseq);
}
} else {
wseq += 1;
if (wseq % 1 == 0) {
whimpy += 1.9;
}
yadd = usyat[floor(wseq)] * 1.2;
if (whimpx > 0) {
dx = whimpx - staircenter1;
if (abs(dx) > 2) {
whimpx -= dx * 0.04;
}
} else {
dx = whimpx + staircenter1;
if (abs(dx) > 2) {
whimpx -= dx * 0.04;
}
}
if (wseq >= 12) {
wseq = 0;
}
wframe = 36 + floor(wseq);
}
}
} else {
if (wanim == SLIDE) {
if (wstair > 0) {
wflip = 1;
}
if (whimpy >= 10) {
wdeck = 0;
if (whimpy >= 35) {
wanim = STAND;
wseq = 0;
} else {
wseq += 1;
whimpy += 4;
if (whimpy > 35) {
whimpy = 35;
}
if (wseq >= 12) {
wseq = 0;
}
wframe = 36 + floor(wseq);
}
} else {
whimpy += 4;
wframe = 142;
dy = bloody - whimpy;
if (dy < 20 && (banim == UPSTAIR || banim == DNSTAIR)) {
banim = KNOCK;
bseq = 0;
}
}
} else {
if (wanim == KNOCK) {
wknocktab = [144, 144, 145, 146, 147, 148, 149, 150, 151, 152, 58];
if (whimpy >= 10) {
if (wdeck) {
wdeck = 0;
say('thud');
}
if (wseq < 4) {
wseq += 0.5;
} else {
if (wseq < 5 && !dieseq) {
wseq += 0.025;
} else {
if (wseq < 5 && dieseq && halt >= 12) {
wseq += 0.025;
} else {
if (wseq >= 5) {
if (dieseq) {
wseq += 0.125;
} else {
wseq += 0.5;
}
if (wseq >= 10) {
wface = BACK;
wanim = STAND;
wseq = 0;
}
}
}
}
}
if (whimpy >= 35) {
} else {
whimpy += 4;
if (whimpy > 35) {
whimpy = 35;
}
}
wframe = wknocktab[floor(wseq)];
} else {
if (wseq < 3) {
wseq += 0.5;
}
whimpy += 6;
wframe = wknocktab[floor(wseq)];
}
} else {
if (wanim == DIE) {
wdietab = [144, 144, 145, 146, 147, 148, 149, 150, 151, 152, 58];
if (whimpz > 0 && wdeck == 4) {
wzadd += 1;
if (whimpx < 490) {
whimpx += wxadd;
}
whimpz -= wzadd;
if (whimpz <= 0) {
whimpz = 0;
wseq = 1.75;
wdeck = 2;
if (wlives > 2) {
wlives = 2;
}
}
} else {
if (wseq < 2) {
wseq += 0.25;
if (wseq == 2) {
say('thud');
if (wlives > 1) {
--wlives;
}
}
} else {
if (wseq < 4) {
++wseq;
} else {
if (wseq < 5 && !dieseq) {
wseq += 0.025;
} else {
if (wseq >= 5) {
wseq += 0.5;
if (wseq >= 10) {
wanim = STAND;
wseq = 0;
wface = BACK;
}
}
}
}
}
}
wframe = wdietab[floor(wseq)];
} else {
if (wanim == CUT1) {
wseq += 1;
if (wseq == 1) {
say('swing');
}
if (wseq == 6 && (banim == ENGARDE || banim == RETL || banim == STAND) && apartx <= 190) {
if (bsword) {
banim = TOUCHE;
} else {
banim = DIE;
}
bseq = 0;
}
if (wseq >= 7) {
wseq = 0;
wanim = ENGARDE;
wframe = 77;
} else {
wbcut1tab = [77, 78, 79, 79, 79, 79, 78, 77];
wcut1tab = [77, 78, 79, 80, 81, 79, 78, 77];
if (blocked) {
wframe = wbcut1tab[floor(wseq)];
} else {
wframe = wcut1tab[floor(wseq)];
if (wseq == 4 && phase == 2) {
whimpx += 12 * flip;
}
}
}
} else {
if (wanim == BLOCK1) {
wseq += 1;
if (wseq == 2) {
say('block');
}
if (wseq >= 8) {
wseq = 0;
wanim = ENGARDE;
wframe = 77;
} else {
wframe = 83;
}
} else {
if (wanim == PARRY1) {
wseq += 1;
if (wseq == 1) {
say('parry');
}
if (wseq >= 8) {
wseq = 0;
wanim = ENGARDE;
wframe = 77;
} else {
wparry1tab = [85, 86, 87, 88, 88, 87, 86, 85];
wframe = wparry1tab[floor(wseq)];
if (wseq < 4) {
whimpx -= 4 * flip;
}
}
} else {
if (wanim == GRAB) {
wseq += 0.5;
if (wseq == 4) {
kanim = GRABBED;
kseq = 0;
}
if (wseq >= 9) {
wseq = 0;
wanim = ENGARDE;
wframe = 77;
kittyy = whimpy;
kittyowner = 1;
advantage = BLOOD;
++changes;
if (changes >= 3) {
changes = 0;
subphase = 1;
}
} else {
wgrabtab = [77, 91, 92, 92, 93, 93, 94, 94, 95, 77, 77];
wframe = wgrabtab[floor(wseq)];
if (wseq >= 4) {
if (kittyy < whimpy) {
kittyx -= 8 * flip;
kittyy += 4;
} else {
if (kanim == GRABBED) {
kanim = STAND;
}
kittyowner = 1;
}
}
}
} else {
if (wanim == TOUCHE) {
if (wseq < 4) {
wseq += 1;
}
if (wseq == 1) {
say('grunt');
if (wlives > 0) {
--wlives;
}
}
wtouchetab = [77, 117, 118, 119, 120, 120];
wframe = wtouchetab[floor(wseq)];
} else {
if (wanim == UNTOUCHE) {
if (wseq < 4) {
wseq += 1;
} else {
wanim = ENGARDE;
wseq = 0;
}
wuntouchetab = [120, 119, 118, 117, 77];
wframe = wuntouchetab[floor(wseq)];
} else {
if (wanim == DROP) {
if (wseq == 0) {
swordx = whimpx + 80 * flip;
swordy = whimpy;
swordz = 130;
if (wdeck == 4) {
sdeck = 2;
swordz = whimpz + 130;
} else {
sdeck = wdeck;
}
sowner = WHIMP;
}
if (wseq < 1) {
wseq += 0.04;
} else {
if (phase != 6 && phase != 7) {
if (flip > 0) {
wface = LEFT;
} else {
bface = RIGHT;
}
wanim = RUN;
wseq = 2;
wsword = 0;
flip = 1;
phase = 3;
}
}
wdroptab = [135, 136, 137, 137];
wframe = wdroptab[floor(wseq)];
} else {
if (wanim == RUN) {
wstep = 18;
wseq += 1;
if (wface == LEFT) {
whimpx -= wstep;
wflip = 1;
} else {
whimpx += wstep;
wflip = 0;
}
if (wseq >= 12) {
wseq = 0;
}
wframe = 122 + floor(wseq);
} else {
if (wanim == PICKUP) {
if (wseq < 6) {
wseq += 1;
} else {
wanim = STAND;
wface = FRONT;
wseq = 0;
}
if (wseq == 3) {
wsword = 1;
swordx = -10000;
swordzadd = -10000;
}
wpicktab = [139, 139, 140, 141, 140, 139, 62];
wframe = wpicktab[floor(wseq)];
} else {
if (wanim == HEAVE) {
if (wseq >= 15) {
wseq += 0.1;
} else {
wrel = 0;
wseq += 0.5;
}
if (wseq >= 16) {
wanim = HEAVED;
}
heaveltab = [41, 154, 155, 156, 157, 156, 155, 154, 158, 159, 167, 168, 169, 170, 171, 172, 172];
wframe = heaveltab[floor(wseq)];
if (wseq == 4) {
ballstat[0] = 1;
}
} else {
if (wanim == HEAVED) {
} else {
if (wanim == CLIMB) {
canswing = 0;
if (wseq < 4) {
wseq += 0.5;
whimpz += 6;
whimpx += 4 * wface;
} else {
if (bdeck == 3 && bloodside == whimpside && banim == CLIMB && bseq >= 4 && bloodz >= 80) {
wanim = SSLIDE;
wseq = 0;
wzadd = 0;
} else {
if (whimpz == 172 && bdeck == 2) {
if (wseq < 4) {
wseq += 0.5;
}
canswing = 1;
} else {
if (whimpz > 172 && bdeck == 2) {
canswing = 0;
wseq += 0.5;
whimpz -= 4;
xadd = 2.75;
if (whimpx > 0) {
whimpx += xadd;
} else {
whimpx -= xadd;
}
if (wseq >= 10) {
wseq = 4;
}
} else {
dy = whimpz - bloodz;
if (bloodz > 0 && dy > 100) {
} else {
wseq += 0.5;
whimpz += 4;
if (bdeck == 2 && whimpz > 172) {
whimpz = 172;
}
xadd = 2.75;
if (whimpx > 0) {
whimpx -= xadd;
} else {
whimpx += xadd;
}
if (wseq >= 10) {
wseq = 4;
}
if (whimpz >= 640) {
whimpz = 640;
wdeck = 4;
wanim = DRAW;
wseq = 0;
wface = LEFT;
wflip = 1;
}
}
}
}
}
}
wclimbtab = [3, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6];
wframe = wclimbtab[floor(wseq)];
} else {
if (wanim == SWING) {
if (wseq == 1 || wseq == 3) {
} else {
wseq += 0.25;
}
if (wseq == 5) {
wseq = 1;
}
wswingtab = [10, 10, 11, 12, 11, 10];
wframe = wswingtab[floor(wseq)];
} else {
if (wanim == SSLIDE) {
if (whimpz > 48) {
wzadd += 0.5;
whimpz -= wzadd;
whimpx += wzadd * 0.6875;
if (whimpz <= bloodz + 100 && banim != DIE && bdeck == 3) {
banim = DIE;
bseq = 0;
bdeck = 2;
}
if (whimpz < 48) {
whimpz = 48;
whimpx = 507;
wanim = CLIMB;
wseq = 4;
}
}
wframe = 6;
} else {
if (wanim == SWINGKICK) {
if (wseq < 4) {
++wseq;
whimpx -= 18;
if (wseq == 4) {
whimpz = 675;
}
} else {
wseq += 0.5;
if (wseq == 5) {
whimpx += -86;
whimpz = 857;
wzadd = -10;
}
if (wseq >= 7) {
whimpx -= 12;
if (banim != DIE && apartx < 100) {
banim = DIE;
bseq = 0;
phase = 8;
}
if (wseq >= 8) {
wseq = 8;
wzadd += 2;
whimpz -= wzadd;
if (whimpz < 820) {
wseq = 0;
whimpz = 640;
wanim = RUN;
wface = LEFT;
}
}
}
}
wswingkicktab = [1, 123, 124, 125, 6, 10, 11, 12, 12, 11, 10];
wframe = wswingkicktab[floor(wseq)];
if (wseq < 4) {
wflip = 1;
} else {
wflip = 0;
}
} else {
if (wanim == CLIMBMAST) {
if (whimpx > 0) {
wseq += 0.5;
if (wseq >= 6) {
wseq = 0;
}
if (whimpz < 736) {
whimpz += 6;
whimpx -= 4;
wclimbmasttab = [6, 7, 8, 9, 8, 7, 6];
wframe = wclimbmasttab[floor(wseq)];
} else {
wdeck = 5;
if (banim == CLIMBMAST) {
wframe = 1;
} else {
whimpx -= 8;
wrunmasttab = [122, 123, 124, 125, 126, 127, 122];
wframe = wrunmasttab[floor(wseq)];
}
wflip = 1;
}
wreach = 0;
} else {
if (!wreach) {
whimpx = 0;
wdeck = 6;
wshimmytab = [174, 175, 176, 177, 176, 175, 174];
wshimmyztab = [0, 3, 3, 3, 0, 0, 0];
wshimmyfztab = [0, 4, 5, 4, 0, 0, 0];
wshimmyffztab = [0, 5, 5, 5, 0, 0, 0];
if (whimpz > 900 && bloodz < whimpz - 150) {
} else {
wseq += 0.5;
dy = whimpz - bloodz;
if (dy < 70) {
za = wshimmyffztab[floor(wseq)];
} else {
if (dy < 100) {
za = wshimmyfztab[floor(wseq)];
} else {
za = wshimmyztab[floor(wseq)];
}
}
if (whimpz < 980) {
whimpz += za;
} else {
wseq = 3;
if (3) {
wreach = 1;
}
}
if (wseq >= 6) {
wseq = 0;
}
}
wframe = wshimmytab[floor(wseq)];
} else {
wshimmyrtab = [174, 175, 176, 177, 178, 179, 179];
if (wseq < 6) {
wseq += 0.5;
}
wframe = wshimmyrtab[floor(wseq)];
if (wseq >= 6) {
wanim = SLIDEMAST;
wseq = 0;
wzadd = 0;
wdeck = 7;
}
}
}
} else {
if (wanim == SLIDEMAST) {
wframe = 180;
wzadd += 2;
whimpz -= wzadd;
whimpx += wzadd * 1.1;
if (whimpz <= 640) {
whimpz = 640;
wanim = SLIDERECOVER;
wseq = 0;
wdeck = 4;
}
} else {
if (wanim == SLIDERECOVER) {
if (wseq < 3) {
++wseq;
} else {
wseq += 0.25;
}
wrecovertab = [139, 139, 140, 141, 141, 140, 139, 62];
wframe = wrecovertab[floor(wseq)];
if (wseq >= 7) {
wseq = 0;
wanim = STAND;
}
} else {
if (wanim == KILLED) {
if (wseq < 6 && (banim == KILL && bseq >= 5 || banim == ENGARDE)) {
wseq += 1;
}
killedtab = [139, 139, 140, 141, 141, 161, 162];
wframe = killedtab[floor(wseq)];
wflip = 1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
t = whimpy + 100;
m = t / 162;
backscale = 70;
diffscale = 100 - backscale;
scale = backscale + diffscale * m;
backscale = 70;
diffscale = 100 - backscale;
pscale = backscale + diffscale * m;
pm = pscale / 100;
whimp_mc._x = 320 + whimpx * pm * vm - xscroll * vm;
if (wdeck == 0) {
decky = 0;
} else {
if (wdeck == 1) {
yx = whimpy - 10;
decky = -yx * 2;
} else {
decky = 208;
}
}
whimp_mc._y = 240 + (679 - decky) * vm + whimpy * vm - yscroll * vm - wyadd * vm - whimpz * vm;
if (wanim == SWING) {
whimp_mc._x = 320 + vbx * pm * vm - xscroll * vm;
whimp_mc._y = 240 + (679 - decky) * vm + vby * vm - yscroll * vm;
whimp_mc._rotation = playropeangle;
} else {
whimp_mc._rotation = 0;
}
if (wflip) {
uflip = -flip;
} else {
uflip = flip;
}
if (uflip < 0) {
whimp_mc._xscale = -scale * vm;
} else {
whimp_mc._xscale = scale * vm;
}
whimp_mc._yscale = scale * vm;
whimp_mc.gotoAndStop(wframe);
}
function whimprun() {
if (wanim == PICKUP || wanim == DNSTAIR || wanim == SLIDE) {
return undefined;
}
bsx = abs(bloodx - swordx);
wsx = abs(whimpx - swordx);
if (banim == KNOCK) {
swordview = 1;
} else {
if (wsx < bsx && (bsx > 200 || bdeck > 0)) {
swordview = 1;
} else {
swordview = 0;
}
}
if (bdeck > 0 && wdeck == 0) {
swordview = 1;
}
if (whimpx < bloodx) {
wface = LEFT;
} else {
wface = RIGHT;
}
if (wdeck == 0) {
if (swordview) {
if (wsx < 18) {
wanim = PICKUP;
wseq = 0;
} else {
if (whimpx < swordx) {
wface = RIGHT;
} else {
wface = LEFT;
}
wanim = RUN;
}
} else {
if (abs(whimpx) > 420) {
wanim = WALKB;
} else {
wanim = RUN;
}
}
} else {
if (wdeck == 1) {
} else {
if (bdeck == 1) {
wanim = WALKF;
} else {
wface = FRONT;
wanim = STAND;
}
}
}
}
function whimpchase() {
if (safe) {
--safe;
}
if (wanim == UPSTAIR || wanim == DNSTAIR || wanim == UNDRAW || wanim == TURN || wanim == SLIDE) {
} else {
if (wanim == KNOCK) {
} else {
if (wdeck == 1) {
} else {
if (wdeck == bdeck) {
if (wdeck == 0 && whimpy < 35 && wsword) {
++whimpy;
}
if (bloodx > whimpx) {
wface = RIGHT;
} else {
wface = LEFT;
}
if (banim == DIE || banim == KNOCK) {
if (apartx < 250) {
if (wanim != RETL) {
wseq = 0;
}
wanim = RETL;
if (abs(whimpx) > 350) {
wanim = STAND;
} else {
if (bloodx < whimpx) {
wflip = 1;
wstep = -6;
} else {
wflip = 0;
wstep = 6;
}
}
} else {
if (bloodx < whimpx) {
wflip = 1;
}
}
} else {
if (apartx >= 190) {
wanim = RUN;
} else {
if (apartx < 190 && !safe && wanim == ENGARDE && banim != TOUCHE && banim != RUN && banim != DIE && banim != KNOCKED) {
wseq = 0;
wanim = CUT1;
} else {
if (wanim != ENGARDE && wanim != DRAW && wanim != CUT1) {
wseq = 0;
wanim = DRAW;
}
}
if (bloodx < whimpx && (wanim == CUT1 || wanim == DRAW || wanim == ENGARDE)) {
wflip = 1;
}
}
}
} else {
if (abs(whimpx) > 420) {
if (wdeck == 0) {
wanim = WALKB;
} else {
wanim = WALKF;
}
} else {
if (whimpx > 0) {
wface = RIGHT;
wanim = RUN;
} else {
wface = LEFT;
wanim = RUN;
}
}
}
}
}
}
}
function whimpballs() {
if (!Key.isDown(66)) {
brel = 1;
}
if (Key.isDown(66) && brel) {
brel = 0;
++ballson;
ballson &= 1;
}
if (wanim == KNOCK || wanim == DIE) {
} else {
if (wdeck == 0) {
if (abs(whimpx) > 420) {
wanim = WALKB;
wface = BACK;
} else {
wanim = RUN;
if (bloodx > whimpx) {
wface = LEFT;
} else {
wface = RIGHT;
}
}
} else {
if (wdeck == 1) {
} else {
if (bdeck == 1) {
if (abs(whimpx) > 420) {
wanim = WALKF;
} else {
if (bloodx < whimpx) {
wface = LEFT;
} else {
wface = RIGHT;
}
wanim = RUN;
}
} else {
if (bloodx > 150) {
stackx = 300;
} else {
if (bloodx < -150) {
stackx = -300;
} else {
stackx = 0;
}
}
dx = abs(whimpx - stackx);
if (bloody <= 0) {
dx = 0;
}
if (wanim == HEAVE && wseq < 15) {
dx = 0;
}
if (dx > 18) {
if (stackx > whimpx) {
wface = RIGHT;
} else {
wface = LEFT;
}
wanim = RUN;
if (ballstat[0] == 1) {
ballstat[0] = 0;
}
} else {
wface = FRONT;
if (wanim != HEAVE && bloody > 0 && banim != DIE && banim != KNOCK && ballstat[0] == 0 && ballson) {
wseq = 0;
wanim = HEAVE;
} else {
if (wanim != HEAVE && wanim != HEAVED) {
wanim = STAND;
wface = FRONT;
wseq = 0;
}
}
}
}
}
}
}
}
function whimprigging() {
if (wanim == DRAW || wanim == ENGARDE) {
wflip = 1;
}
if (wanim == KNOCK || wanim == DIE) {
} else {
if (wdeck == 2) {
wanim = RUN;
wface = RIGHT;
if (abs(whimpx) >= 475) {
if (whimpx > 0) {
whimpx = 475;
} else {
whimpx = -475;
}
wanim = CLIMB;
wseq = 0;
wdeck = 3;
}
} else {
if (wdeck == 3) {
if (whimpx > 0 && abs(bloodx) < 222 && bdeck == 2 && banim != DIE && wanim == CLIMB && canswing) {
swingadd = 0;
swingdir = 1;
playropeangle = -26.5;
wanim = SWING;
wseq = 1;
swingphase = 1;
}
} else {
if (wdeck == 4) {
if (whimpx > bloodx) {
wface = LEFT;
} else {
wface = RIGHT;
}
if (bdeck == 4) {
phase = 6;
}
}
}
}
}
}
function whimpyard() {
if (advantage == WHIMP) {
edge = 700;
} else {
if (ez) {
edge = 50;
} else {
edge = 100;
}
}
if (abs(whimpx) >= 475) {
} else {
if (apartx < 188 && wanim == ENGARDE) {
wstep = 6;
wanim = RETL;
} else {
if (apartx > 214 && wanim == ENGARDE && banim != TOUCHE && banim != UNTOUCHE) {
wstep = 6;
wanim = ADVL;
} else {
if (apartx < 275 && (banim == TOUCHE || banim == UNTOUCHE)) {
if (kittyowner == 1 && abs(wapart) < 24) {
} else {
wstep = 6;
wanim = RETL;
}
} else {
if (wanim == ENGARDE && banim == ENGARDE) {
if (rnd(1000) < edge) {
noact = 0;
wseq = 0;
wanim = CUT1;
blocked = 0;
if (abs(bloodx) >= 475) {
if (banim != TOUCHE) {
banim = TOUCHE;
bseq = 0;
}
}
}
}
}
}
}
}
}
function whimpmast() {
if (dieseq) {
} else {
if (phase == 8) {
if (wanim == SWINGKICK || wanim == CLIMBMAST || wanim == SLIDEMAST || wanim == SLIDERECOVER || wanim == DIE || wanim == KNOCK) {
} else {
if (whimpx > 150) {
wface = LEFT;
wanim = RUN;
} else {
wseq = 0;
wanim = CLIMBMAST;
}
}
} else {
if (wanim == SWINGKICK) {
} else {
if (banim == DIE) {
if (whimpx > 10) {
wface = LEFT;
wanim = RUN;
} else {
wanim = STAND;
}
} else {
if (abs(whimpx) >= 580) {
whimpx = 580;
wanim = STAND;
wseq = 0;
wface = LEFT;
wflip = 1;
if (bloodx > 310) {
wanim = SWINGKICK;
wseq = 0;
}
} else {
wface = RIGHT;
wanim = RUN;
}
}
}
}
}
}
function iballs() {
i = 0;
while (i < NUMBALLS) {
ballsx[i] = -10000;
ballstat[i] = 0;
_root['ball' + i + '_mc']._x = -10000;
_root['ball' + i + '_mc']._alpha = 100;
_root['ball' + i + '_mc']._yscale = 100;
_root['ball' + i + '_mc']._xscale = 100;
_root['ball' + i + '_mc']._rotation = 0;
++i;
}
ball7_mc._x = -10000;
ball6_mc._x = -10000;
ball5_mc._x = -10000;
ball4_mc._x = -10000;
ball3_mc._x = -10000;
ball2_mc._x = -10000;
ball1_mc._x = -10000;
ball0_mc._x = -10000;
}
function doballs() {
i = 0;
X = -10000;
boffx = [X, X, X, X, 5, 5, 1, 1, -16, -21, -29, -45, -45, -45, -45, -45];
boffz = [0, 0, 0, 0, 0, 18, 36, 48, 79, 104, 129, 127, 129, 69, 0];
if (ballstat[i] == 1) {
ballsx[i] = whimpx + boffx[wseq];
ballsy[i] = whimpy;
ballsz[i] = boffz[wseq];
if (wseq == 13) {
ballstat[i] = 2;
ballsz[i] = 315;
ballmom[i] = 0;
faloops = 0;
dx = bloodx - ballsx[i];
ballxadd[i] = dx / 16;
dy = bloody - ballsy[i];
ballyadd[i] = dy / 19;
}
} else {
if (ballstat[i] == 2) {
++faloops;
ballsz[i] -= ballmom[i];
ballsy[i] += ballyadd[i];
ballsx[i] += ballxadd[i];
dx = abs(bloodx - ballsx[i]);
if (ballsy[i] > bloody - 30 && bloody > 0 && banim != KNOCK && banim != DIE && dx < 40 && bloodz == 0) {
bseq = 0;
banim = DIE;
}
if (ballsz[i] <= 0) {
ballstat[i] = 3;
ballsz[i] = 0;
say('ballthud1');
ballmom[i] = -6;
} else {
ballmom[i] += 2;
}
} else {
if (ballstat[i] == 3 || ballstat[i] == 4) {
ballsz[i] -= ballmom[i];
ballsy[i] += 8;
if (ballsz[i] <= 0) {
ballsz[i] = 0;
if (ballstat[i] == 3) {
say('ballthud2');
ballmom[i] = -5;
ballstat[i] = 4;
} else {
say('ballthud3');
ballstat[i] = 5;
}
} else {
ballmom[i] += 2;
}
} else {
if (ballstat[i] == 5) {
if (ballsy[i] < 200) {
ballsy[i] += 8;
} else {
ballstat[i] = 0;
}
}
}
}
}
t = ballsy[i] + 100;
m = t / 162;
backscale = 70;
diffscale = 100 - backscale;
scale = backscale + diffscale * m;
ballscale[i] = scale;
backscale = 70;
diffscale = 100 - backscale;
pscale = backscale + diffscale * m;
pm = pscale / 100;
ballscx[i] = 320 + ballsx[i] * pm * vm - xscroll * vm;
if (ballstat[i] == 1) {
decky = 208;
} else {
decky = 0;
}
ballscy[i] = 240 + (679 - decky) * vm + ballsy[i] * vm - yscroll * vm - ballsz[i] * vm;
ball0_mc._x = ballscx[0];
ball0_mc._y = ballscy[0];
ball0_mc.gotoAndStop(ballframe[0]);
ball0_mc._xscale = ballscale[0];
ball0_mc._yscale = ballscale[0];
}
function dorats() {
if (bullet == 1) {
tx = targetx - 320;
ty = targety - 240;
dx = abs(ratx - tx);
dy = abs(ratsy - ty);
if (dx < 15 + ratsize) {
ratstat = RATDIE;
dieadd = -5;
bullet = 2;
} else {
bullet = 3;
}
}
if (ratstat == RATDIE) {
ratsy += dieadd;
if (dieadd == -3) {
say('mouse');
}
++dieadd;
if (ratsy >= 75) {
say('wallthud');
resetrat();
}
} else {
if (ratstat == RUN) {
ratx -= 4 + (10 - ratsize);
if (ratx < -275) {
resetrat();
}
ratframe += 1;
if (ratframe >= 6) {
ratframe = 0;
}
--ratdelay;
if (ratdelay <= 0) {
ratdecide();
}
} else {
if (ratstat == STOP) {
ratframe = 7;
--ratdelay;
if (ratdelay <= 0) {
ratdecide();
}
} else {
if (ratstat == SITUP) {
ratsituptab = [0, 1, 2, 3, 4, 4];
ratsit = ratsituptab[ratdelay];
ratframe = 8 + ratsit;
++ratdelay;
if (ratdelay >= 5) {
ratstat = SITDN;
ratdelay = 10 + rnd(20);
}
} else {
if (ratstat == SITDN) {
ratsitdntab = [0, 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4];
ratsit = ratsitdntab[ratdelay];
ratframe = 8 + ratsit;
--ratdelay;
if (ratdelay <= 0) {
ratdecide();
}
}
}
}
}
}
ball0_mc._x = 320 + ratx;
ball0_mc._y = 240 + ratsy;
ball0_mc.gotoAndStop(floor(ratframe) + 10);
if (ratstat == RATDIE) {
ball0_mc.swapDepths(2009);
} else {
ball0_mc.swapDepths(2011);
}
ball0_mc._xscale = ratsize * 10;
ball0_mc._yscale = ratsize * 10;
mon4 = ' stat:' + ratstat + ' rxy:' + ratx + ' ry:' + ratsy + ' da:' + dieadd;
}
function resetrat() {
ratx = 380;
ratsy = -141;
ratframe = 0;
ratsize = 7 + rnd(2);
ratstat = RUN;
ratdelay = 20;
}
function ratdecide() {
t = rnd(100);
if (t < 70) {
ratstat = RUN;
ratdelay = 20 + rnd(40);
} else {
if (t < 90) {
ratstat = STOP;
ratdelay = 10 + rnd(10);
} else {
ratstat = SITUP;
ratdelay = 0;
}
}
}
function doropes() {
if (phase == 5) {
if (swingdir == 1) {
if (playropeangle < 0) {
swingadd += swingdir * 0.1;
if (swingadd >= 0 && swingphase == 2) {
swingdir = 0;
wanim = CLIMB;
wseq = 4;
swingadd = 0;
swingphase = 0;
}
} else {
swingadd -= swingdir * 0.1;
if (swingadd >= 0) {
swingphase = 2;
}
}
playropeangle += swingadd;
playropex = -6;
playropey = -1142;
playradius = -802;
if (playropeangle >= 0) {
xxx = 0;
} else {
xxx = 0.5;
}
rad = deg2rad(-playropeangle + 180 + xxx);
xadd = Math.sin(rad) * playradius;
yadd = Math.cos(rad) * playradius;
vbx = playropex + xadd;
vby = playropey + yadd;
rad = deg2rad(-playropeangle + 180 + xxx + 3);
playradius = -977;
xadd = Math.sin(rad) * playradius;
yadd = Math.cos(rad) * playradius;
legsx = playropex + xadd;
legsy = playropey + yadd;
if (swingphase == 2 && playropeangle < 0 && swingadd < 0.25) {
if (wseq == 1) {
wseq += 0.25;
}
} else {
if (wseq == 3 && swingadd <= -1.5) {
wseq += 0.25;
}
}
dx = legsx - bloodx;
if (banim != DIE && wseq == 1 && swingadd > 0) {
if (dx < 75) {
wseq = 2;
}
} else {
if (wseq == 1 && swingadd >= 1.5) {
wseq += 0.25;
}
}
if (swingadd > 0 && dx < 25 && banim != DIE) {
banim = DIE;
bseq = 0;
bzadd = 0;
}
} else {
playropex = -10000;
}
playscale = 0.77;
} else {
if (ropecuts >= 10 && lift < 100) {
lift += 4;
if (banim == ROPELIFT) {
bloodx -= 7.6;
bloodz += 36.8;
bloody -= 4;
if (lift >= 40) {
banim = ROPEFALL;
}
}
}
coilx = 295;
coily = -75;
ropex = 288 + adjx;
ropey = -110;
loopsize = 50;
loopxscale = (50 + loopsize) / 100;
loopyscale = (50 + loopsize) / 100;
playropex = 152;
playropey = -963;
playropeangle = -10;
playscale = (100 - lift) / 100;
ropey -= lift * 9;
ropex -= lift * 1.5;
ropeloopangle = -lift * 2;
if (ropeloopangle < -25) {
ropeloopangle = -25;
}
}
t = swordy + 100;
t = 182;
m = t / 162;
backscale = 70;
diffscale = 100 - backscale;
scale = backscale + diffscale * m;
backscale = 70;
diffscale = 100 - backscale;
pscale = backscale + diffscale * m;
pm = pscale / 100;
decky = 0;
if (lift >= 100) {
playrope_mc._x = -10000;
ropeloop_mc._x = -10000;
} else {
playrope_mc._x = 320 + playropex * pm * vm - xscroll * vm;
playrope_mc._y = 240 + (679 - decky) * vm + playropey * vm - yscroll * vm;
playrope_mc._xscale = scale * vm;
playrope_mc._yscale = scale * vm * playscale;
playrope_mc._rotation = playropeangle;
}
}
function dosword() {
if (swordzadd > -10000) {
++swordloops;
swordzadd -= 2;
swordz += swordzadd;
swordx -= 1 * flip;
swordy -= 0.5;
if (swordz < 0) {
swordz = 0;
swordzadd = -10000;
swordangle = 90;
say('clank');
} else {
swordangle = 90 * (floops / 20);
}
}
t = swordy + 100;
m = t / 200;
m = t / 162;
backscale = 70;
diffscale = 100 - backscale;
scale = backscale + diffscale * m;
backscale = 60;
diffscale = 100 - backscale;
pscale = backscale + diffscale * m;
pm = pscale / 100;
sword_mc._x = 320 + swordx * pm * vm - xscroll * vm;
if (sdeck == 0) {
decky = 0;
} else {
if (sdeck == 1) {
yx = swordy - 10;
decky = -yx * 2;
} else {
decky = 208;
}
}
sword_mc._y = 240 + (679 - decky) * vm + swordy * vm - yscroll * vm - swordz * vm;
sword_mc._xscale = scale * vm;
sword_mc._yscale = scale * vm;
sword_mc._rotation = swordangle;
sword_mc.gotoAndStop(1);
}
function dojunk() {
jpf = junkpfront;
jpm = junkpmid;
jpb = junkpback;
i = 0;
while (i < 32) {
uxscroll = xscroll;
ii = i + 1;
if (i < 8) {
_root['barrelside' + ii + '_mc']._x = 320 + junkx[i] - uxscroll;
_root['barrelside' + ii + '_mc']._y = 240 + junky[i];
if (i == 2) {
if (dooropen == 2) {
_root['barrelside' + ii + '_mc'].gotoAndStop(4);
} else {
_root['barrelside' + ii + '_mc'].gotoAndStop(3);
}
} else {
if (i == 1) {
_root['barrelside' + ii + '_mc'].gotoAndStop(2);
} else {
_root['barrelside' + ii + '_mc'].gotoAndStop(1);
}
}
if (i == 2) {
_root['barrelside' + ii + '_mc'].swapDepths(jpb++);
} else {
_root['barrelside' + ii + '_mc'].swapDepths(jpf++);
}
} else {
if (i < 16) {
ii = i - 8 + 1;
_root['barreltop' + ii + '_mc']._x = 320 + junkx[i] - uxscroll;
_root['barreltop' + ii + '_mc']._y = 240 + junky[i];
_root['barreltop' + ii + '_mc'].gotoAndStop(1);
if (junkp[i]) {
_root['barreltop' + ii + '_mc'].swapDepths(jpf++);
} else {
_root['barreltop' + ii + '_mc'].swapDepths(jpb++);
}
} else {
if (i < 24) {
ii = i - 16 + 1;
_root['barrelstand' + ii + '_mc']._x = 320 + junkx[i] - uxscroll;
_root['barrelstand' + ii + '_mc']._y = 240 + junky[i];
_root['barrelstand' + ii + '_mc'].gotoAndStop(1);
if (junkp[i]) {
_root['barrelstand' + ii + '_mc'].swapDepths(jpf++);
} else {
_root['barrelstand' + ii + '_mc'].swapDepths(jpb++);
}
_root['barrelstand' + ii + '_mc']._yscale = 120;
_root['barrelstand' + ii + '_mc']._xscale = 120;
} else {
ii = i - 24 + 1;
_root['box' + ii + '_mc']._x = 320 + junkx[i] - uxscroll;
_root['box' + ii + '_mc']._y = 240 + junky[i];
_root['box' + ii + '_mc'].gotoAndStop(1);
if (junky[i] > didy && junky[i] > dumy) {
_root['box' + ii + '_mc'].swapDepths(jpf++);
} else {
if (junky[i] < didy && junky[i] < dumy) {
_root['box' + ii + '_mc'].swapDepths(jpb++);
} else {
_root['box' + ii + '_mc'].swapDepths(jpm++);
}
}
}
}
}
++i;
}
}
function init_bdeck() {
hideall();
kitty_mc._x = -10000;
bg640_mc._x = -10000;
didx = -128;
didy = 161;
diddir = RIGHT;
didface = RIGHT;
dumx = -128;
dumy = 191;
dumdir = RIGHT;
dumface = RIGHT;
onmaze = 0;
vby = 0;
vbx = 0;
bumpreldum = 0;
bumprel = 0;
showpop = 0;
vm = 1;
phase = 1;
speaking = 0;
adjy = 0;
adjx = 0;
yscroll = 0;
xscroll = 0;
bubble_mc.gotoAndStop(1);
lamplight = 0;
atlamp = 0;
dapartx = 0;
atdoor = 0;
saydel = 0;
ddsay = 0;
saiddark = 0;
bloodtalk = 0;
wait = 0;
bface = LEFT;
bloodx = -350;
bloody = 65;
dooropen = 0;
doorwait = 0;
oldmousex = mousex;
showplate(1, 'Below deck of the seized ship');
scenestarted = 1;
}
function doscene1() {
if (scenestarted != 1) {
init_bdeck();
}
checkmouse();
dobloodb();
dodiddly();
dodum();
dojunk();
dumdidtalk();
below_dokeys();
dokeys();
}
function below_dokeys() {
if (debug && Key.isDown(88)) {
lamplight = 1;
didx = 836;
didy = 213;
dumx = 792;
dumy = 210;
}
if (!lamplight && atlamp == 1 && ddsay == 7 && (Key.isDown(17) || Key.isDown(40))) {
didanim = PICKLAMP;
didseq = 0;
}
if (!Key.isDown(76)) {
lrel = 1;
}
if (debug && Key.isDown(76) && lrel) {
lrel = 0;
++lamplight;
lamplight &= 1;
}
}
function dodiddly() {
if (doorwait) {
--doorwait;
if (doorwait == 0) {
goblack = 10;
}
}
dapartx = didx - dumx;
daparty = abs(didy - dumy);
if (didx >= 108 && saiddark == 0) {
saydel = 10;
ddsay = 0;
ddwho = DID;
saiddark = 1;
}
mon5 = 'atdoor:' + atdoor + ' ddsay:' + ddsay;
if (!atdoor && didx >= 940 && didx <= 999 && didy <= 150 && !speaking) {
if (ddsay < 14) {
ddsay = 14;
ddwho = DID;
saythis(saytab[ddsay], 2, 1, didx + 25, didy - 190);
}
if (dapartx < 60 && daparty < 16) {
saydel = 45;
ddsay = 15;
ddwho = DUM;
atdoor = 1;
if (didx < 992) {
didseq = 0;
didanim = INCH;
didrel = 0;
diddir = RIGHT;
didface = RIGHT;
} else {
didanim = CHECKDOOR;
didseq = 0;
didface = LEFT;
}
}
}
if (!Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
didrel = 1;
}
if (bloodtalk < 4) {
} else {
if (atdoor) {
if (atdoor == 2) {
didface = LEFT;
}
} else {
if (atlamp == 1 || atlamp == 2 && !lamplight) {
} else {
if (Key.isDown(65)) {
} else {
if (Key.isDown(38) && didrel) {
if (didy < -108) {
didanim = STAND;
} else {
didanim = INCH;
didrel = 0;
diddir = UP;
didface = RIGHT;
}
} else {
if (Key.isDown(40) && didrel) {
if (didy > 1090) {
didanim = STAND;
} else {
didanim = INCH;
didrel = 0;
diddir = DOWN;
didface = RIGHT;
}
} else {
if (Key.isDown(37) && didrel) {
if (didx < -108) {
didanim = STAND;
} else {
didanim = INCH;
didrel = 0;
diddir = LEFT;
didface = RIGHT;
}
} else {
if (Key.isDown(39) && didrel) {
if (didx > 1090) {
didanim = STAND;
} else {
didanim = INCH;
didrel = 0;
diddir = RIGHT;
didface = RIGHT;
}
} else {
if (didanim == INCH && didseq == 0) {
didanim = STAND;
didseq = 0;
} else {
if (didanim == INCH && didseq != 0) {
}
}
}
}
}
}
}
}
}
}
if (didanim == STAND) {
if (lamplight || atlamp == 2) {
didframe = 19;
} else {
didframe = 1;
}
} else {
if (didanim == CHECKDOOR) {
didframe = 26;
} else {
if (didanim == BUSTDOOR) {
if (didseq < 4) {
didseq += 0.25;
}
didbusttab = [27, 28, 28, 28, 27, 27];
didframe = didbusttab[floor(didseq)];
if (didseq == 1) {
say('doorthud');
if (dooropen == 1) {
dooropen = 2;
sayfile('creak.mp3');
doorwait = 20;
}
}
} else {
if (didanim == INCH) {
if (atdoor == 1) {
if (didx >= 992) {
mbump = 3;
} else {
mbump = 0;
}
} else {
mazebump(diddir, didx, didy, 0);
}
if (!mbump) {
didseq += 1;
bumprel = 1;
atlamp = 0;
} else {
if (bumprel && mbump == 1) {
if (!lamplight && didx >= 260 && didx < 330) {
say('lampclank');
if (dapartx < 60) {
atlamp = 1;
}
saythis('\rOw!', 1, 1, didx + 25, didy - 190);
if (dapartx < 60) {
saydel = 35;
ddsay = 5;
ddwho = DUM;
}
} else {
say('wallthud');
}
bumprel = 0;
}
if (didseq >= 4) {
didseq += 1;
} else {
if (didseq == 0) {
didseq = 0;
} else {
if (didseq == 1) {
didseq = 7;
} else {
if (didseq == 2) {
didseq = 6;
} else {
if (didseq == 3) {
didseq = 5;
}
}
}
}
}
}
if (didseq < 9) {
if (mbump) {
} else {
if (diddir == LEFT || diddir == RIGHT) {
didx += diddir * 4;
} else {
didy += diddir * 0.6;
}
}
}
if (didseq >= 9) {
didseq = 0;
didanim = STAND;
if (atdoor == 1) {
if (didx >= 992) {
atdoor = 2;
didanim = CHECKDOOR;
} else {
didanim = INCH;
}
}
}
didinchstab = [8, 4, 5, 6, 7, 6, 5, 4, 8, 8, 8, 8];
didinchtab = [8, 9, 10, 11, 12, 11, 10, 9, 8, 8, 8, 8];
if (diddir == LEFT || diddir == RIGHT) {
didframe = didinchtab[floor(didseq)];
} else {
didframe = didinchstab[floor(didseq)];
}
if (lamplight) {
didframe += 11;
}
if (whospeaking == DID) {
bubblex = didx + 25;
bubbly = didy - 180;
}
} else {
if (didanim == PICKLAMP) {
didseq += 0.5;
if (didseq >= 6) {
didseq = 0;
didanim = STAND;
didframe = 19;
atlamp = 2;
} else {
didpicklamptab = [8, 24, 25, 25, 24, 19, 19];
didframe = didpicklamptab[floor(didseq)];
}
}
}
}
}
}
mazex = -135;
mazey = 145;
maze2_mc._x = 320 + mazex - xscroll;
maze2_mc._y = 240 + mazey;
maze2_mc._xscale = 500;
maze2_mc._yscale = 500;
maze2_mc._alpha = 10;
maze2_mc.swapDepths(10);
maze2_mc._alpha = 0;
did_mc._x = 320 + didx - xscroll;
did_mc._y = 240 + didy;
if (didface == RIGHT) {
did_mc._xscale = -100;
} else {
did_mc._xscale = 100;
}
did_mc.gotoAndStop(didframe);
mon1 = 'dix:' + floor(didx) + ' diy:' + floor(didy) + ' anim:' + didanim + ' seq:' + didseq + ' atdoor:' + atdoor + ' dds:' + ddsay + ' spk:' + speaking;
}
function dodum() {
dapartx = didx - dumx;
if (dapartx > 80 && dapartx < 110 && ddsay != 2) {
ddsay = 2;
saydel = 1;
ddwho = DUM;
}
if (dapartx > 110 && dapartx < 140 && ddsay != 3) {
ddsay = 3;
saydel = 1;
ddwho = DUM;
}
if (dapartx > 140 && dapartx < 170 && ddsay != 4) {
ddsay = 4;
saydel = 1;
ddwho = DUM;
}
dy = floor(didy - dumy);
dx = didx - dumx;
mon2 = 'dux:' + floor(dumx) + ' diy:' + floor(dumy) + ' anim:' + dumanim + ' seq:' + dumseq + ' dax:' + dapartx + 'dy:' + dy;
if (didx < -96) {
} else {
if (abs(dy) < 8) {
if (atdoor && dapartx < 60) {
if (dumy > didy) {
if (dumanim == BUSTDOOR) {
++didy;
} else {
dumanim = INCH;
dumrel = 0;
dumdir = UP;
dumface = RIGHT;
}
} else {
if (dapartx < 40) {
dumanim = INCH;
dumrel = 0;
dumdir = LEFT;
dumface = RIGHT;
}
}
} else {
if (dx > 48) {
dumanim = INCH;
dumrel = 0;
dumdir = RIGHT;
dumface = RIGHT;
} else {
if (dx < 32) {
dumanim = INCH;
dumrel = 0;
dumdir = LEFT;
dumface = RIGHT;
}
}
}
} else {
if (didy > dumy) {
dumanim = INCH;
dumrel = 0;
dumdir = DOWN;
dumface = RIGHT;
} else {
dumanim = INCH;
dumrel = 0;
dumdir = UP;
dumface = RIGHT;
}
}
}
if (dumanim == STAND) {
dumframe = 1;
} else {
if (dumanim == BUSTDOOR) {
if (dumseq < 4) {
dumseq += 0.25;
}
dumbusttab = [27, 28, 28, 28, 27, 27];
dumframe = dumbusttab[floor(dumseq)];
} else {
if (dumanim == INCH) {
mazebump(dumdir, dumx, dumy, 1);
if (!mbump) {
centercheck();
}
if (!mbump) {
dumseq += 1;
bumpreldum = 1;
} else {
if (bumpreldum && mbump == 1) {
say('wallthud');
bumpreldum = 0;
}
if (dumseq >= 4) {
dumseq += 1;
} else {
if (dumseq == 0) {
dumseq = 0;
} else {
if (dumseq == 1) {
dumseq = 7;
} else {
if (dumseq == 2) {
dumseq = 6;
} else {
if (dumseq == 3) {
dumseq = 5;
}
}
}
}
}
}
if (dumseq < 9) {
if (mbump) {
} else {
if (dumdir == LEFT || dumdir == RIGHT) {
dumx += dumdir * 4;
} else {
dumy += dumdir * 0.6;
}
}
}
if (dumseq >= 9) {
dumseq = 0;
dumanim = STAND;
dumseq = 0;
dumdir = 0;
}
duminchstab = [3, 4, 5, 6, 7, 6, 5, 4, 3, 3, 3, 3];
duminchtab = [8, 9, 10, 11, 12, 11, 10, 9, 8, 8, 8, 8];
if (dumdir == LEFT || dumdir == RIGHT) {
dumframe = duminchtab[floor(dumseq)];
} else {
dumframe = duminchstab[floor(dumseq)];
}
if (whospeaking == DUM) {
bubblex = dumx - 25;
bubbly = dumy - 180;
}
}
}
}
dum_mc._x = 320 + dumx - xscroll;
dum_mc._y = 240 + dumy;
if (dumface == RIGHT) {
dum_mc._xscale = -95;
} else {
dum_mc._xscale = 95;
}
dum_mc._yscale = 95;
dum_mc.gotoAndStop(dumframe);
}
function mazebump(dir, mbx, mby, who) {
if (dir == UP || dir == DOWN) {
mby += dir * 0.6;
} else {
if (dir == LEFT || dir == RIGHT) {
mbx += dir * 4;
}
}
mbdx = mbx + 320 - xscroll;
mbdy = mby + 240;
mzx = maze2_mc._x;
mzy = maze2_mc._y;
hx = floor((mbdx - mzx) / 5);
hy = floor((mbdy - mzy) / 5);
hex = myBitmap.getPixel(hx, hy);
if (hex == 0) {
mbump = 1;
} else {
mbump = 0;
}
if (who == 1) {
vbx = mbx;
vby = mby;
}
}
function mazehit(dir) {
vbx = didx;
vby = didy;
if (dir == UP || dir == DOWN) {
vby += dir * 0.6;
} else {
if (dir == LEFT || dir == RIGHT) {
vbx += dir * 4;
}
}
mzx = maze2_mc._x;
mzy = maze2_mc._y;
hx = (mousex - mzx) / 5;
hy = (mousey - mzy) / 5;
if (maze2_mc.hitTest(hx, hy, true)) {
mbump = 0;
} else {
mbump = 1;
}
hex = myBitmap.getPixel(hx, hy);
}
function centercheck() {
if (dumdir == DOWN) {
if (dumy < didy) {
return undefined;
}
} else {
if (dumdir == UP) {
if (dumy > didy) {
return undefined;
}
} else {
if (dumdir == RIGHT) {
return undefined;
} else {
if (dumdir == LEFT) {
return undefined;
} else {
return undefined;
}
}
}
}
mbump = 2;
}
function dumdidtalk() {
if (saydel) {
--saydel;
if (saydel == 0) {
if (ddwho == DID) {
saythis(saytab[ddsay], 2, 1, didx + 25, didy - 190);
whospeaking = DID;
} else {
saythis(saytab[ddsay], 2, 2, dumx - 25, dumy - 180);
whospeaking = DUM;
}
if (ddsay == 0 && dumx > 0) {
saydel = 50;
ddsay = 1;
ddwho = DUM;
}
if (ddsay == 5) {
saydel = 50;
ddsay = 6;
ddwho = DID;
} else {
if (ddsay == 6) {
saydel = 35;
ddsay = 7;
ddwho = DUM;
delay = 0;
} else {
if (ddsay == 8) {
saydel = 50;
ddsay = 9;
ddwho = DUM;
} else {
if (ddsay == 9) {
saydel = 50;
ddsay = 10;
ddwho = DID;
} else {
if (ddsay == 10) {
saydel = 50;
ddsay = 11;
ddwho = DUM;
} else {
if (ddsay == 11) {
saydel = 50;
ddsay = 12;
ddwho = DID;
} else {
if (ddsay == 12) {
lamplight = 1;
} else {
if (ddsay == 15) {
saydel = 50;
ddsay = 16;
ddwho = DID;
didanim = CHECKDOOR;
} else {
if (ddsay == 16) {
saydel = 50;
ddsay = 17;
ddwho = DUM;
didanim = STAND;
} else {
if (ddsay == 17) {
saydel = 50;
ddsay = 18;
ddwho = DID;
} else {
if (ddsay == 18) {
saydel = 50;
ddsay = 19;
ddwho = DUM;
} else {
if (ddsay == 19) {
saydel = 50;
ddsay = 20;
ddwho = DID;
} else {
if (ddsay == 20) {
saydel = 50;
ddsay = 21;
ddwho = DID;
} else {
if (ddsay == 21) {
saydel = 50;
ddsay = 22;
ddwho = DID;
} else {
if (ddsay == 22) {
saydel = 50;
ddsay = 23;
ddwho = DUM;
didanim = BUSTDOOR;
didseq = 0;
dumanim = BUSTDOOR;
dumseq = 0;
} else {
if (ddsay == 23) {
saydel = 50;
ddsay = 24;
ddwho = DID;
didanim = BUSTDOOR;
didseq = 0;
dumanim = BUSTDOOR;
dumseq = 0;
} else {
if (ddsay == 24) {
saydel = 50;
ddsay = 25;
ddwho = DUM;
didanim = BUSTDOOR;
didseq = 0;
dumanim = BUSTDOOR;
dumseq = 0;
} else {
if (ddsay == 25) {
didanim = BUSTDOOR;
didseq = 0;
dumanim = BUSTDOOR;
dumseq = 0;
dooropen = 1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (ddsay == 7 && saydel == 0) {
++delay;
if (delay > 10 * framerate) {
saythis(saytab[13], 2, 2, dumx - 25, dumy - 180);
delay = 0;
}
if (atlamp == 2) {
saydel = 10;
ddsay = 8;
ddwho = DID;
}
}
}
function dobloodb() {
if (bloodtalk == 0) {
banim = WALKR;
bloodtalk = 1;
} else {
if (bloodtalk == 2) {
if (wait) {
--wait;
} else {
saythis('The gold might be hidden anywhere.', 2, 1, bloodx + 25, bloody - 180);
wait = 50;
bloodtalk = 3;
}
} else {
if (bloodtalk == 3) {
if (wait) {
--wait;
} else {
banim = WALKL;
bloodtalk = 4;
}
}
}
}
bstep = 4;
if (banim == STAND) {
bframe = 1;
} else {
if (banim == WALKL) {
bseq += 1;
if (bseq % 1 == 0) {
bloodx -= bstep;
}
if (bloodx <= -354) {
banim = STAND;
bloodtalk = 5;
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 10 + floor(bseq);
} else {
if (banim == WALKR) {
bseq += 1;
if (bseq % 1 == 0) {
bloodx += bstep;
}
if (bloodx >= -254) {
banim = STAND;
bloodtalk = 2;
saythis('You Two search down here.', 2, 1, bloodx + 25, bloody - 180);
wait = 55;
}
if (bseq >= 12) {
bseq = 0;
}
bframe = 23 + floor(bseq);
}
}
}
blood_mc._x = 320 + bloodx + adjx - xscroll;
blood_mc._y = 240 + bloody + adjy;
if (bface == RIGHT) {
blood_mc._xscale = -87;
} else {
blood_mc._xscale = 87;
}
blood_mc._yscale = 87;
blood_mc.gotoAndStop(bframe);
blood_mc.swapDepths(10007);
}
function init_bang() {
hideall();
phase = 1;
if (forcephase > 0) {
phase = forcephase;
forcephase = 0;
}
gbsay = 0;
saydel = 60;
ddwho = DID;
bnoise = 20;
dframe = 0;
editwho = 0;
bg640_mc._x = -10000;
adjy = 0;
adjx = 0;
stumpyscale = 100;
speaking = 0;
adjy = 0;
adjx = 0;
yscroll = 0;
xscroll = 0;
bubble_mc.gotoAndStop(1);
wait = 0;
dframe = 11;
drinkalpha = 0;
ophase = 0;
aphase = 0;
started = 0;
showpop = 0;
showplate(1, 'On deck of the pirate ship.');
scenestarted = 1;
}
function dopriogang() {
if (!started) {
autobutton_mc._x = 250;
autobutton_mc._y = 323;
autobutton_mc.swapDepths(22403);
if (onauto) {
autobutton_mc.gotoAndStop(8);
} else {
autobutton_mc.gotoAndStop(5);
}
if (onauto && buttonpress) {
started = 1;
platedelay = 5;
} else {
if (platedelay < 10) {
platedelay = 10;
}
if (saydel < 20) {
saydel = 20;
}
}
} else {
autobutton_mc._x = -10000;
}
night_mc.swapDepths(-20000);
night_mc._x = -10000;
nest_mc._x = -10000;
shroudl_mc._x = -10000;
shroud_mc._x = -10000;
pooprail_mc._x = -10000;
mizzen_mc._x = -10000;
sword_mc._x = -10000;
playrope_mc._x = -10000;
whimp_mc._x = -10000;
maze2_mc._x = -10000;
wlives_mc._x = -10000;
blives_mc._x = -10000;
if (!onbeta) {
beta_mc.swapDepths(20005);
beta_mc.gotoAndStop(1);
beta_mc.txt.text = '\rVersion:' + version + ' ';
beta_mc._x = 599;
beta_mc._y = 481;
} else {
beta_mc.swapDepths(20005);
beta_mc.gotoAndStop(2);
beta_mc.txt.text = 'Bloodheart © 2008 all rights reserved\rThis game may be played only at \rpusooy.net Any other use\ris a violation of copyright.';
beta_mc._x = 562 + adjx;
beta_mc._y = 455 + adjy;
}
if (phase >= 7) {
} else {
if (phase == 6) {
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(8);
bg640_mc.swapDepths(20002);
bg640_mc._x = -10000;
} else {
if (phase == 4) {
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(7);
bg640_mc.swapDepths(20002);
bg640_mc._x = -10000;
} else {
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
if (phase == 1) {
bg_mc.gotoAndStop(5);
} else {
bg_mc.gotoAndStop(6);
}
bg640_mc.swapDepths(20002);
if (phase == 2 || phase == 5) {
if (drinkalpha < 100) {
drinkalpha += 10;
}
bg640_mc.gotoAndStop(dframe);
bg640_mc._alpha = drinkalpha;
bg640_mc._x = 320;
bg640_mc._y = 240;
} else {
if (drinkalpha) {
drinkalpha -= 10;
bg640_mc._alpha = drinkalpha;
} else {
bg640_mc._x = -10000;
}
}
}
}
}
}
function bangwrite() {
if (!Key.isDown(74) && !Key.isDown(72)) {
jrel = 1;
}
if (Key.isDown(74) && jrel) {
jrel = 0;
++editwho;
if (editwho > BARREL) {
editwho = 0;
}
}
bloodx = -255;
bloody = 170;
didx = -121;
didy = 140;
dumx = -40;
dumy = 140;
stumpyx = stumpyxtab[phase];
stumpyy = stumpyytab[phase];
}
function gbtalk() {
if (saydel > 0) {
--saydel;
} else {
if (gbsay == 6) {
phase = 2;
dframe = 11;
} else {
if (gbsay == 11) {
dframe = 12;
} else {
if (gbsay == 12) {
dframe = 13;
} else {
if (gbsay == 13) {
phase = 3;
} else {
if (gbsay == 16) {
phase = 5;
dframe = 14;
}
}
}
}
}
i = gbsay * 3;
saydel = gbsaytab[i + 1];
ddwho = gbsaytab[i + 2];
if (ddwho == NONE) {
bubblex = -10000;
} else {
if (ddwho == DID) {
saythis(gbsaytab[i], 2, 1, didx + 15, didy - 240);
} else {
if (ddwho == DUM) {
saythis(gbsaytab[i], 2, 2, dumx - 15, dumy - 240);
} else {
if (ddwho == DUMB) {
saythisbig(gbsaytab[i], 2000, 4, 72, -107);
} else {
if (ddwho == STUMPY) {
saythis(gbsaytab[i], 2, 1, stumpyx + 20, stumpyy - 210);
} else {
if (ddwho == STUMPYB) {
if (gbsay >= 12) {
saythisbig(gbsaytab[i], 2000, 3, -53, -130);
} else {
saythisbig(gbsaytab[i], 2000, 4, 72, -97);
}
} else {
saythis(gbsaytab[i], 2, 1, bloodx + 20, bloody - 220);
}
}
}
}
}
}
if (gbsay < 19) {
++gbsay;
if (gbsay == 15) {
goblack = 10;
}
if (gbsay == 19) {
goblack = 10;
}
}
}
}
function dobangnoise() {
if (bnoise > 0) {
--bnoise;
return undefined;
}
bnoise = rnd(8) + 20;
say('hurt');
yesSound.setVolume(50);
}
function dobanganal() {
if (aphase == 0) {
init_banganal();
}
dostumpanal();
doass();
doarrow();
}
function init_banganal() {
hideall();
lhandmove = 200;
moveangle = 0;
lhpress = 0;
lhopen = 0;
bodyup = 0;
cockangle = 0;
insertangle = 0;
rhandangle = 0;
bheadangle = 0;
barch = 0;
strugangle = 0;
struggle = 0;
struggling = 0;
insertdepth = 10;
insertreset = 0;
buttpress = 0;
fuckspeed = 2;
attacharrow = 0;
arrowx = -10000;
attach = 0;
attacharrow = 1;
arrowx = lhandx;
arrowy = lhandy;
aphase = 1;
}
function doass() {
bchestx = -13;
bchesty = -50;
assx = -125;
assy = 85 + buttpress - 64;
if (struggling) {
++struggling;
if (struggling > 60) {
struggling = 0;
}
if (struggle < 10) {
++struggle;
}
} else {
if (struggle > 1) {
--struggle;
}
}
strugangle += +rnd(40);
barch = sine(strugangle) * 5 * (struggle / 20);
blarmradius = 71;
blarmangle = -14;
xadd = sine(blarmangle + barch) * blarmradius;
yadd = -cosine(blarmangle + barch) * blarmradius;
blarmx = bchestx + xadd;
blarmy = bchesty + yadd;
brarmradius = 122;
brarmangle = 64;
xadd = sine(brarmangle + barch) * brarmradius;
yadd = -cosine(brarmangle + barch) * brarmradius;
brarmx = bchestx + xadd;
brarmy = bchesty + yadd;
bheadradius = 135;
baheadangle = 39;
xadd = sine(baheadangle + barch) * bheadradius;
yadd = -cosine(baheadangle + barch) * bheadradius;
bheadx = bchestx + xadd;
bheady = bchesty + yadd;
barrelside1_mc._x = 320 + bchestx;
barrelside1_mc._y = 240 + bchesty;
barrelside1_mc._rotation = barch;
barrelside1_mc.swapDepths(990);
barrelside1_mc.gotoAndStop(40);
barrelside3_mc._x = 320 + blarmx;
barrelside3_mc._y = 240 + blarmy;
barrelside3_mc._rotation = -barch * 0.84;
barrelside3_mc.swapDepths(989);
barrelside3_mc.gotoAndStop(41);
barrelside4_mc._x = 320 + brarmx;
barrelside4_mc._y = 240 + brarmy;
barrelside4_mc._rotation = -barch * 0.55;
barrelside4_mc.swapDepths(988);
barrelside4_mc.gotoAndStop(42);
barrelside5_mc._x = 248;
barrelside5_mc._y = 105;
barrelside5_mc.swapDepths(991);
barrelside5_mc.gotoAndStop(43);
barrelside6_mc._x = 593;
barrelside6_mc._y = 171;
barrelside6_mc.swapDepths(992);
barrelside6_mc.gotoAndStop(44);
barrelside7_mc._x = 559;
barrelside7_mc._y = 237;
barrelside7_mc._alpha = (fuckspeed / 6) * 100;
barrelside7_mc.swapDepths(993);
barrelside7_mc.gotoAndStop(45);
barrelside2_mc._x = 320 + bheadx;
barrelside2_mc._y = 240 + bheady;
barrelside2_mc._rotation = 8 - bheadangle;
barrelside2_mc.swapDepths(980);
barrelside2_mc.gotoAndStop(11);
assangle = 45 + barch * -0.1;
ass1_mc._x = 320 + assx;
ass1_mc._y = 240 + assy;
ass1_mc._rotation = assangle;
ass1_mc.swapDepths(1000);
ass1_mc.gotoAndStop(1);
if (aphase == 6) {
if (insert < 2) {
ass2frame = 5;
} else {
if (insert < 5) {
ass2frame = 6;
} else {
if (insert < 9) {
ass2frame = 7;
} else {
if (insert < 24) {
ass2frame = 8;
} else {
if (insert < 36) {
ass2frame = 9;
} else {
if (insert >= 42) {
ass2frame = 9;
} else {
ass2frame = 10;
}
}
}
}
}
}
} else {
if (lhopen < 50) {
ass2frame = 3;
} else {
if (lhopen < 100) {
ass2frame = 2;
} else {
ass2frame = 4;
}
}
}
ass2_mc._x = 320 + assx;
ass2_mc._y = 240 + assy;
ass2_mc._rotation = assangle;
ass2_mc.swapDepths(3000);
ass2_mc.gotoAndStop(ass2frame);
}
function dostumpanal() {
if (aphase == 1) {
if (!attach) {
arrowx = lhandx + 64;
arrowy = lhandy + 15;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
attacharrow = 0;
}
} else {
moveangle = (mousex - attachx) / 2;
if (moveangle > 90) {
moveangle = 90;
aphase = 2;
attachy = mousey;
}
if (moveangle < 0) {
moveangle = 0;
}
}
lhandmove = 200 * sine(moveangle - 180);
} else {
if (aphase == 2) {
lhpress = (mousey - attachy) * 2;
if (lhpress >= 100) {
lhpress = 100;
aphase = 3;
attachx = mousex;
}
if (lhpress < 0) {
lhpress = 0;
}
} else {
if (aphase == 3) {
lhopen = (mousex - attachx) * 2;
if (lhopen >= 100) {
lhopen = 100;
aphase = 4;
attachy = mousey;
}
if (lhopen < 0) {
lhopen = 0;
}
} else {
if (aphase == 4) {
bodyup = (attachy - mousey) / 2;
if (bodyup < 0) {
bodyup = 0;
}
cockangle = bodyup / 2;
if (bodyup >= 32) {
bodyup = 32;
cockangle = 16;
aphase = 6;
attachx = mousex;
}
} else {
if (aphase == 6) {
dx = mousex - attachx;
if (insertreset) {
if (insertdepth >= 90) {
if (insertangle > 45) {
insertangle -= fuckspeed;
} else {
insertreset = 0;
}
} else {
if (insertdepth < 20) {
if (insertangle > 4) {
insertangle -= 2;
} else {
insertreset = 0;
}
} else {
if (insertangle > 16) {
insertangle -= 2;
} else {
insertreset = 0;
}
}
}
if (bheadangle > 0) {
--bheadangle;
}
} else {
if (dx > 4) {
if (insertangle < insertdepth) {
insertangle += fuckspeed;
if (insertangle == 56) {
insertdepth = 90;
sayfile('crowd.mp3');
}
}
if (bheadangle < 10) {
if (insertangle > 30) {
bheadangle += 2;
if (bheadangle == 4) {
say('hurt');
}
struggling = 1;
} else {
if (insertangle > 20 && bheadangle < 5) {
bheadangle += 0.5;
if (bheadangle == 1) {
say('hurt');
}
struggling = 1;
} else {
if (insertangle > 10 && bheadangle < 3) {
bheadangle += 0.25;
if (bheadangle == 0.5) {
say('hurt');
}
struggling = 1;
}
}
}
}
} else {
insertreset = 1;
if (insertangle >= insertdepth) {
insertdepth += 2;
if (insertdepth >= 90) {
if (fuckspeed < 6) {
fuckspeed += 0.2;
if (fuckspeed >= 6) {
goblack = 10;
}
}
insertdepth = 90;
}
}
}
}
if (insertangle) {
if (rhandangle < 35) {
rhandangle += 3;
}
}
}
}
}
}
}
insert = 100 + 100 * -cosine(insertangle);
buttpress = floor(insert / 25);
mon2 = 'ma:' + moveangle + ' lhp:' + lhpress + ' ins:' + insert + ' insa:' + insertangle + ' fspd:' + fuckspeed;
lhandx = -164 - lhandmove - 210 + lhopen / 10;
lhandy = -57 - lhandmove / 4 - 60 + lhpress / 10 + buttpress;
bodyx = -246 + insert;
bodyy = 66 - bodyup - insert / 6 + buttpress;
cockx = bodyx;
cocky = bodyy;
rhandx = bodyx + 29;
rhandy = bodyy - 414 + cockangle / 2;
box1_mc._x = 320 + lhandx;
box1_mc._y = 240 + lhandy;
box1_mc._alpha = lhpress;
box1_mc.swapDepths(4000);
box1_mc.gotoAndStop(10);
box2_mc._x = 320 + lhandx;
box2_mc._y = 240 + lhandy;
box2_mc.swapDepths(4010);
box2_mc.gotoAndStop(11);
box3_mc._x = 320 + cockx;
box3_mc._y = 240 + cocky;
box3_mc._rotation = 29 + cockangle;
box3_mc.swapDepths(2000);
box3_mc.gotoAndStop(12);
box4_mc._x = 320 + bodyx;
box4_mc._y = 240 + bodyy;
box4_mc.swapDepths(5030);
box4_mc.gotoAndStop(13);
box5_mc._x = 320 + rhandx;
box5_mc._y = 240 + rhandy;
box5_mc._rotation = rhandangle;
if (insertangle) {
box5_mc.swapDepths(5046);
} else {
box5_mc.swapDepths(5040);
}
if (insertangle) {
box5_mc.gotoAndStop(17);
} else {
box5_mc.gotoAndStop(14);
}
box6_mc._x = 320 + rhandx;
box6_mc._y = 240 + rhandy;
box6_mc.swapDepths(5050);
if (insertangle) {
box6_mc.gotoAndStop(16);
} else {
box6_mc.gotoAndStop(15);
}
box7_mc._x = 320 + bodyx - 72;
box7_mc._y = 240 + bodyy + 28;
box7_mc._rotation = 45 + insert * 0.05;
box7_mc.swapDepths(5045);
box7_mc.gotoAndStop(18);
}
function dodumoral() {
if (ophase == 0) {
init_dumoral();
}
if (sshudder) {
++sshudder;
if (sshudder > 20) {
sshudder = 0;
swaitpeak = 0;
}
sshuddadd = sshudder & 1;
} else {
if (cummed) {
fuckangle += 3;
} else {
fuckangle += 10 + strokes / 2;
}
if (swaitpeak == 1 && fuckangle >= 270 && ofuckangle < 270) {
sshudder = 1;
++ssquirt;
swaitpeak = 2;
s = ssquirt;
if (s == 1) {
sayfile('mlove1.mp3');
}
if (s == 2) {
sayfile('mlove2.mp3');
}
if (s == 3) {
sayfile('mlove3.mp3');
}
if (s == 4) {
sayfile('mlove4.mp3');
}
if (s == 5) {
sayfile('mlove5.mp3');
}
if (s == 6) {
sayfile('mlove6.mp3');
}
if (s == 7) {
sayfile('mlove7.mp3');
}
if (s == 8) {
sayfile('mlove6.mp3');
}
}
if (fuckangle >= 360) {
fuckangle -= 360;
}
ofuckangle = fuckangle;
}
fa = sine(fuckangle) * 3;
fa -= sshuddadd;
ufa = -fa * 0.5;
fuckadd = -fa;
if (fuckadd < 0) {
fuckadd = 0;
}
bfa = fa * (strokes / 50);
bfuckadd = fuckadd * (strokes / 50);
if (cumming) {
if (waitpeak == 0) {
++cumming;
}
if (cumming == 2 || cumming == 25 || cumming == 50 || cumming == 75 || cumming == 105 || cumming == 140 || cumming == 180 || cumming == 220) {
waitpeak = 1;
++cumming;
}
if (cumming == 12 || cumming == 35 || cumming == 60 || cumming == 85 || cumming == 115 || cumming == 150 || cumming == 190) {
swaitpeak = 1;
}
if (cumming == 260) {
cummed = 1;
}
}
dodum_oral();
dobang_oral();
dostump_oral();
doarrow();
}
function init_dumoral() {
hideall();
attacharrow = 0;
arrowcursor = 0;
vby = 0;
vbx = 0;
pangle = 0;
orubdick = 0;
rubdick = 0;
slapreset = 0;
rubs = 0;
attacharrow = 0;
arrowx = -10000;
attach = 0;
dickangle = 0;
rhandangle = 0;
lhandangle = 0;
rhandyadd = 0;
jockey = 0;
jackhand = 0;
jangle = 0;
jackspeed = 12;
strokes = 0;
opa = 0;
jnone = 0;
inmouth = 0;
mouthframe = 0;
ofuckangle = 0;
fuckangle = 0;
cummed = 0;
cumming = 0;
waitpeak = 0;
shuddadd = 0;
shudder = 0;
squirt = 0;
swaitpeak = 0;
sshuddadd = 0;
sshudder = 0;
ssquirt = 0;
cumdrip = 0;
cdadd = 0.05;
cumdrips = 0;
ophase = 1;
}
function dodum_oral() {
if (Key.isDown(67)) {
strokes = 50;
ophase = 4;
cumming = 1;
inmouth = 1;
rubdick = 0;
lhandangle = 1;
jockey = 5;
jackspeed = 12;
dickangle = -6;
attacharrow = 0;
}
if (ophase == 1) {
if (attach && Key.isDown(73)) {
ophase = 2;
}
if (!attach) {
attacharrow = 1;
arrowx = cockx;
arrowy = cocky;
dx = mousex - 320 - cockx;
dy = mousey - 240 - cocky;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
attacharrow = 0;
}
} else {
rubdick = (attachy - mousey) / 4;
maxrub = 7;
if (rubdick > maxrub) {
rubdick = maxrub;
}
if (rubdick < -maxrub) {
if (slapreset) {
say('slap');
slapreset = 0;
}
rubdick = -maxrub;
}
if (rubdick > 0) {
slapreset = 1;
}
if (rubdick > 0 && orubdick <= 0) {
++rubs;
say('hurt');
if (rubs == 4) {
saythis('I gonna cum in your mouth!', 2, 5, 97, -234);
}
if (rubs == 8) {
saythis('Open up or I\'ll smack you silly!', 2, 5, 97, -234);
}
if (rubs == 9) {
ophase = 2;
attach = 0;
}
}
orubdick = rubdick;
}
} else {
if (ophase == 2) {
if (abs(rubdick) > 0.1) {
rubdick *= 0.9;
} else {
rubdick = 0;
}
lhandx = 74;
lhandy = -80;
if (!attach) {
attacharrow = 1;
arrowx = lhandx;
arrowy = lhandy;
dx = mousex - 320 - lhandx;
dy = mousey - 240 - lhandy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 2;
attachy = mousey;
attachx = mousex;
attacharrow = 0;
}
} else {
lhandangle = (attachy - mousey) / 16;
if (lhandangle < 0) {
lhandangle = 0;
}
if (lhandangle > 1) {
lhandangle = 1;
ophase = 3;
attach = 0;
say('hurt');
}
t = lhandangle * 5;
if (t > jockey) {
jockey = t;
}
}
} else {
if (ophase == 3) {
if (!attach) {
attacharrow = 1;
arrowx = cockx;
arrowy = cocky;
dx = mousex - 320 - cockx;
dy = mousey - 240 - cocky;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
attacharrow = 0;
jackspeed = 12;
say('hurt');
}
} else {
pa = (attachx - mousex) / 2;
if (pa > 90) {
pa = 90;
}
if (pa < -90) {
pa = -90;
}
if (inmouth && strokes > 5) {
if (pa < 0) {
pa = 0;
}
}
pangle = sine(pa) * 12;
if (pa > 25 && opa <= 25 && strokes < 50) {
++strokes;
if (strokes == 1) {
sayfile('muffhurt.mp3');
}
if (strokes == 50) {
ophase = 4;
cumming = 1;
}
}
opa = pa;
if (dickangle > -6) {
dickangle -= 0.5;
}
if (dickangle < -6) {
dickangle += 0.5;
}
rhandangle = pangle * 0.3;
rhandyadd = -pangle * 0.6;
jangle += jackspeed + strokes;
jackhand = sine(jangle) * 12;
jackhand *= 0.3;
jackhand += 3.6;
if (!inmouth || pa < 0) {
jackhand = 0;
} else {
jackhand *= pa / 90;
jackhand *= (100 - jnone) / 100;
}
}
} else {
if (ophase == 4) {
attach = 0;
if (shudder) {
++shudder;
if (shudder > 20) {
shudder = 0;
waitpeak = 0;
}
shuddadd = (shudder & 1) * 2;
if (jnone < 100) {
jnone += 25;
}
} else {
if (cummed) {
if (jnone < 100) {
jnone += 25;
}
} else {
if (jnone > 0) {
jnone -= 25;
}
}
if (cummed) {
pa += 1 + adjx;
} else {
pa += 20;
}
if (pa >= 180) {
pa = 0;
}
pangle = sine(pa) * 12;
if (waitpeak == 1 && pa >= 90 && opa < 90) {
shudder = 1;
++squirt;
waitpeak = 2;
s = squirt;
if (s == 1 || s == 4 || s == 7) {
sayfile('grunt1.mp3');
}
if (s == 2 || s == 5 || s == 8) {
sayfile('grunt2.mp3');
}
if (s == 3 || s == 6) {
sayfile('grunt3.mp3');
}
}
shuddadd = 0;
opa = pa;
}
rhandangle = pangle * 0.3;
rhandyadd = -pangle * 0.6;
if (!cummed) {
jangle += jackspeed + strokes;
}
if (jangle > 360) {
jangle -= 360;
}
jackhand = sine(jangle) * 12;
jackhand *= 0.3;
jackhand += 3.6;
if (!inmouth || pa < 0) {
jackhand = 0;
} else {
jackhand *= pa / 90;
jackhand *= (100 - jnone) / 100;
}
}
}
}
}
mon2 = ' str:' + strokes;
bodyx = 211;
bodyy = -3;
rarmx = bodyx - 58;
rarmy = bodyy - 113 - rubdick / 2;
llegx = bodyx;
llegy = bodyy + 100;
larmx = bodyx + 26;
larmy = bodyy - 298;
llegradius = 51;
lbangle = 195;
xadd = sine(pangle + lbangle) * llegradius;
yadd = -cosine(pangle + lbangle) * llegradius;
llegx = bodyx + xadd;
llegy = bodyy + yadd;
cockradius = 92;
cbangle = 128;
xadd = sine(pangle - cbangle) * cockradius;
yadd = -cosine(pangle - cbangle) * cockradius;
cockx = bodyx + xadd;
cocky = bodyy + yadd;
box1_mc._x = 320 + rarmx;
box1_mc._y = 240 + rarmy + rhandyadd;
box1_mc._rotation = rhandangle + jackhand;
box1_mc.swapDepths(4000);
box1_mc.gotoAndStop(25);
box2_mc._x = 320 + bodyx;
box2_mc._y = 240 + bodyy;
box2_mc.swapDepths(4010);
box2_mc.gotoAndStop(20);
box3_mc._x = 320 + bodyx;
box3_mc._y = 240 + bodyy;
box3_mc._rotation = pangle + shuddadd;
box3_mc.swapDepths(4020);
box3_mc.gotoAndStop(21);
if (pangle < 0) {
upangle = 0;
} else {
upangle = pangle * 0.45;
}
box4_mc._x = 320 + cockx;
box4_mc._y = 240 + cocky;
box4_mc._rotation = rubdick * 0.7 + dickangle - upangle + bfuckadd * 0.59;
box4_mc.swapDepths(4030);
box4_mc.gotoAndStop(24);
box5_mc._x = 320 + rarmx;
box5_mc._y = 240 + rarmy + rhandyadd;
box5_mc._rotation = rhandangle + jackhand;
box5_mc.swapDepths(4040);
box5_mc.gotoAndStop(26);
box6_mc._x = 320 + llegx;
box6_mc._y = 240 + llegy;
box6_mc._rotation = -pangle * 0.25;
box6_mc.swapDepths(4050);
box6_mc.gotoAndStop(22);
box7_mc._x = 320 + larmx + bfuckadd * 0.46;
box7_mc._y = 240 + larmy;
box7_mc._rotation = lhandangle * 2.1 + bfuckadd * -0.06;
box7_mc.swapDepths(4060);
box7_mc.gotoAndStop(23);
box8_mc._x = 320 + bodyx - 61;
box8_mc._y = 240 + bodyy;
box8_mc._rotation = -pangle * 0.15;
box8_mc.swapDepths(3999);
box8_mc.gotoAndStop(27);
vinebutton_mc._x = 320 + vbx;
vinebutton_mc._y = 240 + vby;
vinebutton_mc.swapDepths(-4070);
vinebutton_mc.gotoAndStop(1);
}
function dobang_oral() {
bchestx = -15 + bfuckadd;
bchesty = 38;
bheadx = bchestx + 10;
bheady = bchesty + 1;
if (ophase <= 2) {
bframe = 16;
} else {
bframe = 17;
}
if (!inmouth) {
mouthframe = 6;
if (pangle < -10) {
inmouth = 1;
}
} else {
if (pangle < -9.5) {
mouthframe = 0;
} else {
if (pangle < -9) {
mouthframe = 1;
} else {
if (pangle < -8.5) {
mouthframe = 2;
} else {
if (pangle < -8) {
mouthframe = 3;
} else {
if (pangle < 7) {
mouthframe = 4;
} else {
mouthframe = 5;
}
}
}
}
}
}
barrelside1_mc._x = 320 + bchestx;
barrelside1_mc._y = 240 + bchesty;
barrelside1_mc.swapDepths(950);
barrelside1_mc.gotoAndStop(15);
barrelside2_mc._x = 320 + bheadx;
barrelside2_mc._y = 240 + bheady;
barrelside2_mc._rotation = bfuckadd * -0.5;
barrelside2_mc.swapDepths(960);
barrelside2_mc.gotoAndStop(bframe);
barrelside4_mc._x = 320 + bheadx;
barrelside4_mc._y = 240 + bheady;
barrelside4_mc._rotation = bfuckadd * -0.5;
barrelside4_mc.swapDepths(4031);
barrelside4_mc.gotoAndStop(19 + mouthframe);
barrelside7_mc._x = 320 + bheadx;
barrelside7_mc._y = 240 + bheady;
barrelside7_mc._alpha = 95;
barrelside7_mc._rotation = bfuckadd * -0.5;
barrelside7_mc.swapDepths(4033);
barrelside7_mc.gotoAndStop(29 + squirt);
if (squirt >= 8) {
cumdrip += cdadd;
cdadd *= 1.08;
if (cumdrip > 1000) {
cumdrip = 0;
cdadd = 0.001;
++cumdrips;
if (cumdrips == 3 && !goblackslow) {
goblackslow = 1;
}
}
}
barrelside8_mc._x = 320 + bheadx - 6;
barrelside8_mc._y = 240 + bheady + cumdrip;
barrelside8_mc._yscale = 100 + cumdrip;
if (squirt < 8) {
barrelside8_mc._alpha = 0;
} else {
barrelside8_mc._alpha = 95;
}
barrelside8_mc._rotation = bfuckadd * -0.5;
barrelside8_mc.swapDepths(4032);
barrelside8_mc.gotoAndStop(38);
barrelside3_mc._x = 320 + bchestx - 102;
barrelside3_mc._y = 240 + bchesty - 10;
barrelside3_mc._rotation = bfuckadd * -0.37;
barrelside3_mc.swapDepths(980);
barrelside3_mc.gotoAndStop(18);
barrelside5_mc._x = 320 + bchestx - 197;
barrelside5_mc._y = 240 + bchesty + 34;
barrelside5_mc.swapDepths(991);
barrelside5_mc.gotoAndStop(26);
barrelside6_mc._x = 172;
barrelside6_mc._y = 432;
barrelside6_mc._rotation = bfuckadd * 0.2;
barrelside6_mc.swapDepths(300);
barrelside6_mc.gotoAndStop(27);
}
function dostump_oral() {
stumpyx = -295;
stumpyy = -61;
barreltop1_mc._x = 320 + stumpyx;
barreltop1_mc._y = 240 + stumpyy;
barreltop1_mc._rotation = ufa;
barreltop1_mc.swapDepths(450);
barreltop1_mc.gotoAndStop(14);
barreltop4_mc._x = 320 + stumpyx;
barreltop4_mc._y = 240 + stumpyy;
barreltop4_mc._rotation = fa;
barreltop4_mc.swapDepths(451);
barreltop4_mc.gotoAndStop(13);
raradius = 155;
raoff = 0;
xadd = sine(ufa + raoff) * raradius;
yadd = -cosine(ufa + raoff) * raradius;
barreltop2_mc._x = 320 + stumpyx + xadd;
barreltop2_mc._y = 240 + stumpyy + yadd;
barreltop2_mc._rotation = 45 + -fa * 0.2;
barreltop2_mc.swapDepths(990);
barreltop2_mc.gotoAndStop(11);
barreltop3_mc._x = 320 + stumpyx + 42;
barreltop3_mc._y = 240 + stumpyy - 184;
barreltop3_mc._rotation = +(-fa * -0.17);
barreltop3_mc.swapDepths(440);
barreltop3_mc.gotoAndStop(12);
}
function doscene2() {
if (scenestarted != 1) {
init_cabin();
}
if (phase == 0) {
} else {
do_cabindum();
do_cabindid();
do_cabinkitty();
}
cabintalk();
docabin();
doarrow();
dokeys();
mon1 = ' sqphase:' + sqphase + ' sq:' + squeezes;
}
function init_cabin() {
hideall();
cabsay = 0;
if (forcephase) {
phase = forcephase;
cabsay = 7;
} else {
phase = 0;
}
drinkalpha = 0;
dframe = 16;
dumwaistangle = 0;
stoop = 0;
didwaistangle = 0;
didstoop = 0;
barch = 0;
strugangle = 0;
struggle = 0;
struggling = 0;
squeezer = NONE;
didsq = 0;
dumsq = 0;
sqphase = 0;
mdy = 0;
omousey = 0;
skirtboty = 0;
skirttopy = 0;
blsq = 0;
pushpull = 0;
didpantdown = 0;
dumpantdown = 0;
didcreep = 0;
dumcreep = 0;
didcreepa = 0;
dumcreepa = 0;
didcreepy = 0;
dumcreepy = 0;
attention = 0;
cute = 0;
arrowcursor = 0;
attacharrow = 0;
showplate(1, 'A small cabin below deck');
scenestarted = 1;
}
function docabin() {
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
if (sqphase >= 28) {
bg_mc.gotoAndStop(11);
} else {
bg_mc.gotoAndStop(10);
}
bg640_mc.swapDepths(10000);
if (sqphase >= 34) {
if (drinkalpha < 100) {
drinkalpha += 10;
}
dframe = 18;
bg640_mc.gotoAndStop(dframe);
bg640_mc._alpha = drinkalpha;
bg640_mc._x = 320;
bg640_mc._y = 240;
} else {
if (sqphase == 27) {
if (drinkalpha < 100) {
drinkalpha += 10;
}
dframe = 17;
bg640_mc.gotoAndStop(dframe);
bg640_mc._alpha = drinkalpha;
bg640_mc._x = 320;
bg640_mc._y = 240;
} else {
if (sqphase == 21 || sqphase == 22 && !attention) {
if (drinkalpha < 100) {
drinkalpha += 10;
}
dframe = 17;
bg640_mc.gotoAndStop(dframe);
bg640_mc._alpha = drinkalpha;
bg640_mc._x = 320;
bg640_mc._y = 240;
} else {
if (phase == 0) {
if (drinkalpha < 100) {
drinkalpha += 10;
}
bg640_mc.gotoAndStop(dframe);
bg640_mc._alpha = drinkalpha;
bg640_mc._x = 320;
bg640_mc._y = 240;
} else {
if (drinkalpha) {
drinkalpha -= 10;
bg640_mc._alpha = floor(drinkalpha);
}
}
}
}
}
beta_mc.swapDepths(20005);
beta_mc._x = 599;
beta_mc._y = 481;
}
function cabintalk() {
if (saydel > 0) {
--saydel;
} else {
i = cabsay * 3;
saydel = cabsaytab[i + 1];
ddwho = cabsaytab[i + 2];
if (ddwho == NONE) {
} else {
if (ddwho == DUM) {
saythismed(cabsaytab[i], 2, 4, -63, -145);
} else {
if (ddwho == DID) {
saythismed(cabsaytab[i], 2, 3, 143, -145);
}
}
}
if (cabsay < 7) {
++cabsay;
if (cabsay == 7) {
phase = 1;
}
}
}
}
function do_cabindid() {
if (squeezer != DID) {
if (sqphase == 8) {
if (wait) {
--wait;
} else {
saythismed('Since I saw her first, I get to bust the cherry.', 2, 4, 110, -140);
sqphase = 9;
wait = 50;
}
} else {
if (sqphase == 10) {
if (wait) {
--wait;
} else {
saythismed('\rI go first!', 2, 4, 110, -140);
sqphase = 11;
wait = 41;
}
} else {
if (sqphase == 12) {
if (wait) {
--wait;
} else {
saythismed('\rMe!', 1, 4, 110, -140);
sqphase = 13;
wait = 30;
}
} else {
if (sqphase == 14) {
if (wait) {
--wait;
} else {
saythismed('\rI\'ll take heads.', 3, 4, 110, -140);
sqphase = 14.5;
wait = 50;
}
} else {
if (sqphase == 14.5) {
if (wait) {
--wait;
} else {
saythismed(' I ain\'t never had head from such a sweet young thing!', 3, 4, 110, -150);
sqphase = 15;
wait = 70;
}
}
}
}
}
}
if (sqphase == 17) {
if (attach == 0) {
if (speaking) {
} else {
arrowx = didshandx;
arrowy = didshandy;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
omousey = mousey;
attacharrow = 0;
didpantdown = 0;
}
}
} else {
didbeltx = didx - 33;
didbelty = didy - 307 + 43 + didpantdown;
dx = mousex - 320 - didbeltx;
dy = mousey - 240 - didbelty;
if (abs(dx) < 20 && abs(dy) < 20) {
if (buttonpress) {
mdy = mousey - omousey;
didpantdown += mdy;
if (didpantdown < 0) {
didpantdown = 0;
}
if (didpantdown > 39) {
didpantdown = 39;
}
}
omousey = mousey;
}
if (didpantdown == 39) {
++wait;
if (wait >= 10) {
sqphase = 18;
}
} else {
wait = 0;
}
}
} else {
if (sqphase == 18 || sqphase == 19) {
if (didcreep < 30) {
didcreep += 0.1;
} else {
didcreepa += 2;
}
didcreepa += 5;
didcreepy = sine(didcreepa) * 2;
if (didcreep >= 30 && sqphase == 18) {
wait = 40;
sayfile('unlock.mp3');
sqphase = 19;
}
} else {
if (sqphase == 24) {
if (wait) {
--wait;
} else {
saythismed('\rWe found a girl.', 3, 4, 110, -150);
wait = 80;
sqphase = 25;
}
}
}
}
if (sqphase == 5 && !speaking || sqphase == 6 && squeezes < 4) {
sx = 1;
sy = 106;
if (sqphase == 5 && didshandx == sx && didshandy == sy) {
saythismed('Bet she never been touched there before!', 2, 4, 110, -150);
sqphase = 6;
squeezes = 0;
}
} else {
sx = 105;
sy = 114;
}
dx = didshandx - sx;
if (abs(dx) > 1) {
didshandx -= dx / 8;
} else {
didshandx = sx;
}
dy = didshandy - sy;
if (abs(dy) > 1) {
didshandy -= dy / 8;
} else {
didshandy = sy;
}
}
if (sqphase == 1 || sqphase == 3) {
if (attach == 0) {
if (speaking) {
} else {
arrowx = didshandx;
arrowy = didshandy;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
attacharrow = 0;
squeezer = DID;
squeezes = 0;
}
}
} else {
if (squeezes == 5) {
if (sqphase == 1) {
saythismed('\rBut nice and firm!', 2, 4, 110, -150);
sqphase = 2;
} else {
if (sqphase == 3) {
saythismed('\rI love little girl tits!', 2, 4, 110, -150);
sqphase = 4;
}
}
attach = 0;
squeezes = 0;
squeezer = NONE;
}
}
}
if (squeezer == DID || sqphase == 17 && attach) {
didshandx = mousex - 320;
didshandy = mousey - 240;
if (didshandx < -80) {
didshandx = -80;
}
if (didshandx > 105) {
didshandx = 105;
}
}
if (sqphase >= 28) {
return undefined;
}
didx = 132 - didcreep;
didy = 308 + didcreepy;
didwaistx = didx - 24;
didwaisty = didy - 294;
didupshoulderx = didx - 13;
didupshouldery = didy - 416;
didpantx = didx - 14;
didpanty = didy - 228;
didsashx = didx + 19;
didsashy = didy - 278;
didcockx = didx - 49;
didcocky = didy - 237;
dlast10 = didpantdown - 30;
if (dlast10 < 0) {
dlast10 = 0;
}
dfirst10 = didpantdown;
if (dfirst10 > 5) {
dfirst10 = 5;
}
didcockangle = +(54 * (dlast10 / 10));
diduarmradius = 116;
didlarmradius = 135;
didtreach = didlarmradius + diduarmradius;
dist2point = finddistance(didupshoulderx, didupshouldery, didshandx, didshandy);
if (dist2point > didtreach - 10) {
didoutrange = 1;
} else {
didoutrange = 0;
}
if (sqphase >= 15) {
if (attention < 15) {
didwaistangle = +(didcreep * 0.2);
} else {
didwaistangle = 0;
}
} else {
if (didoutrange) {
dwx = didwaistangle - 20;
if (abs(dwx) > 2) {
didwaistangle -= dwx / 8;
}
} else {
if (mousey < 260 || sqphase >= 7) {
dwx = didwaistangle - 0;
if (abs(dwx) > 2) {
didwaistangle -= dwx / 8;
}
}
}
}
didstoop = didwaistangle / 2;
didshoulderradius = 131;
xadd = sine(-didwaistangle + 3) * didshoulderradius;
yadd = -cosine(-didwaistangle + 3) * didshoulderradius;
didshoulderx = didwaistx + xadd;
didshouldery = didwaisty + yadd;
dist2point = finddistance(didshoulderx, didshouldery, didshandx, didshandy);
ang2point = rad2deg(-Math.atan2(didshoulderx - didshandx, didshouldery - didshandy));
point2arm = ang2point + 180;
a = didlarmradius;
b = diduarmradius;
c = dist2point;
if (dist2point >= didtreach) {
didlarmangle = ang2point;
diduarmangle = ang2point;
lreach = 1;
} else {
lreach = 0;
angleA = rad2deg(Math.acos((b * b + c * c - a * a) / 2 * b * c));
angleB = rad2deg(Math.acos((a * a + c * c - b * b) / 2 * a * c));
diduarmangle = ang2point - angleA;
didlarmangle = point2arm + angleB + 180;
}
if (didlarmangle > 360) {
didlarmangle -= 360;
}
xadd = sine(diduarmangle) * diduarmradius;
yadd = -cosine(diduarmangle) * diduarmradius;
didelbowx = didshoulderx + xadd;
didelbowy = didshouldery + yadd;
xadd = sine(didlarmangle) * didlarmradius;
yadd = -cosine(didlarmangle) * didlarmradius;
didhandx = didelbowx + xadd;
didhandy = didelbowy + yadd;
dx = floor(abs(ltitx - didhandx));
dy = floor(abs(ltity - didhandy));
if (dx > dy) {
d = dx;
} else {
d = dy;
}
dd = floor(d / 4);
if (buttonpress && squeezer == DID || sqphase == 17 && attach) {
if (didsq < 4 && dd <= 4) {
didsq += 1;
if (didsq == 4) {
++squeezes;
}
}
} else {
if (didsq > 0) {
didsq -= 1;
}
}
dx = floor(abs(ltitx - didhandx));
dy = floor(abs(ltity - didhandy));
if (dx > dy) {
d = dx;
} else {
d = dy;
}
dd = floor(d / 4);
if (dd <= 4) {
prox = 4 - dd;
ltsq = floor(didsq);
if (ltsq > prox) {
ltsq = prox;
}
if (ltsq && !struggling) {
struggling = 1;
}
} else {
ltsq = 0;
prox = 0;
}
barrelstand1_mc._x = 320 + didx;
barrelstand1_mc._y = 240 + didy;
barrelstand1_mc.swapDepths(4002);
barrelstand1_mc.gotoAndStop(5);
barrelstand4_mc._x = 320 + didwaistx;
barrelstand4_mc._y = 240 + didwaisty;
barrelstand4_mc._rotation = 30 - didwaistangle;
barrelstand4_mc.swapDepths(4003);
if (attention >= 13) {
barrelstand4_mc.gotoAndStop(4);
} else {
barrelstand4_mc.gotoAndStop(6);
}
barrelstand2_mc._x = 320 + didshoulderx;
barrelstand2_mc._y = 240 + didshouldery;
barrelstand2_mc._rotation = -45 + diduarmangle + 5;
barrelstand2_mc.swapDepths(4022);
barrelstand2_mc.gotoAndStop(8);
barrelstand3_mc._x = 320 + didelbowx;
barrelstand3_mc._y = 240 + didelbowy;
barrelstand3_mc._rotation = -45 + didlarmangle - 5;
barrelstand3_mc.swapDepths(4023);
barrelstand3_mc.gotoAndStop(13 + floor(didsq));
barrelside2_mc._x = 320 + didpantx;
barrelside2_mc._y = 240 + didpanty + didpantdown;
barrelside2_mc.swapDepths(4011);
barrelside2_mc.gotoAndStop(49);
barrelside3_mc._x = 320 + didsashx + didpantdown * 0.22;
barrelside3_mc._xscale = 100 + didpantdown * 0.19;
barrelside3_mc._y = 240 + didsashy + didpantdown;
barrelside3_mc._rotation = didpantdown * -0.16;
barrelside3_mc.swapDepths(4012);
barrelside3_mc.gotoAndStop(48);
barrelside5_mc._x = 320 + didcockx;
barrelside5_mc._y = 240 + didcocky;
barrelside5_mc._xscale = 95 + dfirst10 + dfirst10 * 2;
barrelside5_mc._yscale = 70 + dfirst10 * 6 + dfirst10 * 2;
barrelside5_mc._rotation = -didcockangle;
barrelside5_mc.swapDepths(4010);
barrelside5_mc.gotoAndStop(51);
}
function do_cabindum() {
if (squeezer != DUM) {
if (attention) {
sx = 184 + adjx - 320;
sy = 370 + adjy - 240;
} else {
sx = -127;
sy = 110;
}
dx = dumshandx - sx;
if (abs(dx) > 1) {
dumshandx -= dx / 8;
} else {
dumshandx = sx;
}
dy = dumshandy - sy;
if (abs(dy) > 1) {
dumshandy -= dy / 8;
} else {
dumshandy = sy;
}
mon2 = 'attn:' + attention + ' da:' + drinkalpha;
if (sqphase == 36) {
if (wait) {
--wait;
} else {
goblack = 10;
sqphase = 37;
}
} else {
if (sqphase == 35) {
if (wait) {
--wait;
} else {
saythismed('\rBurn the ship!', 3, 3, -100, -130);
sqphase = 36;
wait = 100;
}
} else {
if (sqphase == 34) {
if (wait) {
--wait;
} else {
saythismed('\rWe\'re done here.', 3, 3, -100, -130);
sqphase = 35;
wait = 50;
}
} else {
if (sqphase == 33) {
if (wait) {
--wait;
} else {
sqphase = 34;
wait = 20;
}
} else {
if (sqphase == 32) {
if (wait) {
--wait;
} else {
saythismed('This fine little Pussy is their payload.', 3, 3, 0, -130);
sqphase = 33;
wait = 80;
}
} else {
if (sqphase == 31) {
if (wait) {
--wait;
} else {
saythismed('They\'re not transporting gold at all.', 3, 3, 0, -130);
sqphase = 32;
wait = 80;
}
} else {
if (sqphase == 30) {
if (wait) {
--wait;
} else {
saythismed('I think we\'ve found the treasure right here!', 3, 3, 0, -130);
sqphase = 31;
wait = 80;
}
} else {
if (sqphase == 29) {
if (wait) {
--wait;
} else {
saythismed('\rAnd in a wedding dress!', 3, 3, 0, -130);
sqphase = 30;
wait = 80;
}
} else {
if (sqphase == 28) {
if (wait) {
--wait;
if (wait == 20) {
saythismed('\rVery refined.', 3, 3, 0, -130);
}
} else {
sqphase = 29;
wait = 80;
}
} else {
if (sqphase == 27) {
if (wait) {
--wait;
if (wait == 60) {
saythismed('\rWhat a cute little thing!', 3, 3, -100, -130);
}
} else {
hideall();
bg640_mc._x = 320;
sqphase = 28;
wait = 40;
}
} else {
if (sqphase == 26) {
if (wait) {
--wait;
} else {
sqphase = 27;
wait = 80;
}
} else {
if (sqphase == 25) {
if (wait) {
--wait;
} else {
saythismed('We was just warmin\' her up for ya.', 2, 3, -125, -145);
wait = 60;
sqphase = 26;
}
} else {
if (sqphase == 23) {
if (wait) {
--wait;
} else {
saythismed('\rUmmmm...', 2, 3, -125, -145);
wait = 80;
sqphase = 24;
}
} else {
if (sqphase == 22) {
if (wait) {
--wait;
} else {
if (attention == 0) {
attention = 1;
drinkalpha = 0;
bg640_mc._alpha = drinkalpha;
} else {
++attention;
if (attention == 15) {
sayfile('attention.mp3');
}
if (attention == 20) {
saythismed('\rCap\'n!', 2, 3, -125, -145);
wait = 60;
sqphase = 23;
}
}
}
} else {
if (sqphase == 21) {
if (wait) {
--wait;
} else {
saythismed('\rWhat have we here?', 3, 3, -100, -130);
sqphase = 22;
wait = 60;
}
} else {
if (sqphase == 20) {
if (wait) {
--wait;
} else {
sqphase = 21;
wait = 20;
}
} else {
if (sqphase == 19) {
if (wait) {
--wait;
} else {
saythismed('\rUh, oh.', 3, 3, -125, -145);
sqphase = 20;
wait = 60;
}
} else {
if (sqphase == 17 || sqphase == 18 || sqphase == 19) {
if (dumcreep < 30) {
dumcreep += 0.05;
} else {
dumcreepa += 2;
}
dumcreepa += 5;
dumcreepy = sine(dumcreepa) * 2;
} else {
if (sqphase == 16) {
if (attach == 0) {
if (speaking) {
} else {
arrowx = dumshandx;
arrowy = dumshandy;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
omousey = mousey;
attacharrow = 0;
dumpantdown = 0;
}
}
} else {
dumbeltx = dumx + 3;
dumbelty = dumy - 269 + dumpantdown + 26;
dx = mousex - 320 - dumbeltx;
dy = mousey - 240 - dumbelty;
if (abs(dx) < 20 && abs(dy) < 20) {
if (buttonpress) {
mdy = mousey - omousey;
dumpantdown += mdy;
if (dumpantdown < 0) {
dumpantdown = 0;
}
if (dumpantdown > 39) {
dumpantdown = 39;
}
}
omousey = mousey;
}
if (dumpantdown == 39) {
++wait;
if (wait >= 20) {
attach = 0;
sqphase = 17;
}
} else {
wait = 0;
}
}
} else {
if (sqphase == 15) {
if (wait) {
--wait;
} else {
saythismed('Aye then, tails for me. I\'ll fuck her from behind!', 3, 3, -125, -145);
sqphase = 16;
}
} else {
if (sqphase == 13) {
if (wait) {
--wait;
} else {
saythismed('\rAlright, then we\'ll flip a coin.', 2, 3, -125, -145);
sqphase = 14;
wait = 50;
}
} else {
if (sqphase == 11) {
if (wait) {
--wait;
} else {
saythismed('\rNo me!', 1, 3, -125, -145);
sqphase = 12;
wait = 30;
}
} else {
if (sqphase == 9) {
if (wait) {
--wait;
} else {
saythismed('\rDid not! I saw her first!', 2, 3, -125, -145);
sqphase = 10;
wait = 50;
}
} else {
if (sqphase == 7 && dumshandx == sx && dumshandy == sy) {
saythismed('\rWhat a sweet young pussy!', 2, 3, -125, -145);
sqphase = 8;
wait = 50;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (sqphase >= 7) {
if (skirttopy != 0) {
dy = skirttopy;
if (dy < -1) {
skirttopy *= 0.8;
} else {
skirttopy = 0;
}
}
if (skirtboty < -1) {
skirtboty *= 0.8;
} else {
skirtboty = 0;
}
}
if (sqphase == 0 || sqphase == 2 || sqphase == 4) {
if (attach == 0) {
if (speaking) {
} else {
arrowx = dumshandx;
arrowy = dumshandy;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
attacharrow = 0;
squeezer = DUM;
squeezes = 0;
}
}
} else {
if (squeezes == 5 && sqphase < 4) {
if (sqphase == 0) {
saythismed('\rThey a bit small.', 2, 3, -125, -145);
sqphase = 1;
} else {
if (sqphase == 2) {
saythismed('\rWhat cute little tits!', 2, 3, -125, -145);
sqphase = 3;
}
}
attach = 0;
squeezes = 0;
squeezer = NONE;
}
if (sqphase == 4) {
skirthotx = -34;
skirthoty = 130;
if (skirttopy < -20) {
skirthoty = 100;
}
dx = mousex - 320 - skirthotx;
dy = mousey - 240 - skirthoty;
if (abs(dx) < 20 && abs(dy) < 30) {
if (buttonpress) {
mdy = mousey - omousey;
if (skirtboty > -125) {
skirtboty += mdy;
if (skirtboty > 0) {
skirtboty = 0;
}
if (skirtboty < -125) {
skirtboty = -125;
}
} else {
skirttopy += mdy / 2;
if (skirttopy > 0) {
skirttopy = 0;
}
if (skirttopy <= -40) {
saythismed('\rWonder what\'s here?', 2, 3, -125, -145);
sqphase = 5;
attach = 0;
skirttopy = -40;
sqphase = 5;
}
}
}
}
omousey = mousey;
mon2 = ' dxy:' + dx + ' ' + dy + ' ' + mdy + ' sby:' + skirtboty + ' sty:' + skirttopy;
}
}
}
if (squeezer == DUM || sqphase == 16 && attach) {
dumshandx = mousex - 320;
dumshandy = mousey - 240;
if (dumshandx < -145) {
dumshandx = -145;
}
if (dumshandx > 50) {
dumshandx = 50;
}
}
if (sqphase >= 28) {
return undefined;
}
dumx = -135 + dumcreep;
dumy = 306 + stoop + dumcreepy;
dumwaistx = dumx - 23;
dumwaisty = dumy - 283;
dumpantx = dumx - 6;
dumpanty = dumy - 210;
dumsashx = dumx - 56;
dumsashy = dumy - 256;
dumcockx = dumx + 18;
dumcocky = dumy - 223;
last10 = dumpantdown - 30;
if (last10 < 0) {
last10 = 0;
}
first10 = dumpantdown;
if (first10 > 13) {
first10 = 13;
}
dumcockangle = -54 + 54 * (last10 / 10);
dumupshoulderx = dumx - 24;
dumupshouldery = dumy - 419;
dumuarmradius = 117;
dumlarmradius = 135;
treach = dumlarmradius + dumuarmradius;
dist2point = finddistance(dumupshoulderx, dumupshouldery, dumshandx, dumshandy);
if (dist2point > treach - 10 && mousey > 300 && mousex > 183 && mousex < 425) {
outrange = 1;
} else {
outrange = 0;
}
if (sqphase >= 7) {
outrange = 0;
}
if (sqphase >= 15) {
if (attention < 10) {
dumwaistangle = +(dumcreep * 0.2);
} else {
dumwaistangle = 0;
}
} else {
if (outrange) {
dwx = dumwaistangle - 30;
if (abs(dwx) > 2) {
dumwaistangle -= dwx / 8;
}
} else {
if (mousey < 240 || sqphase >= 7) {
dwx = dumwaistangle - 0;
if (abs(dwx) > 2) {
dumwaistangle -= dwx / 8;
}
}
}
}
stoop = dumwaistangle / 2;
dumshoulderradius = 135;
xadd = sine(dumwaistangle) * dumshoulderradius;
yadd = -cosine(dumwaistangle) * dumshoulderradius;
dumshoulderx = dumwaistx + xadd;
dumshouldery = dumwaisty + yadd;
dist2point = finddistance(dumshoulderx, dumshouldery, dumshandx, dumshandy);
ang2point = rad2deg(-Math.atan2(dumshoulderx - dumshandx, dumshouldery - dumshandy));
point2arm = ang2point + 180;
a = dumuarmradius;
b = dumlarmradius;
c = dist2point;
if (dist2point >= treach) {
dumlarmangle = ang2point;
dumuarmangle = ang2point;
lreach = 1;
} else {
lreach = 0;
angleA = rad2deg(Math.acos((b * b + c * c - a * a) / 2 * b * c));
angleB = rad2deg(Math.acos((a * a + c * c - b * b) / 2 * a * c));
dumuarmangle = ang2point + angleB;
dumlarmangle = point2arm - angleA + 180;
}
if (dumlarmangle > 360) {
dumlarmangle -= 360;
}
xadd = sine(dumuarmangle) * dumuarmradius;
yadd = -cosine(dumuarmangle) * dumuarmradius;
dumelbowx = dumshoulderx + xadd;
dumelbowy = dumshouldery + yadd;
xadd = sine(dumlarmangle) * dumlarmradius;
yadd = -cosine(dumlarmangle) * dumlarmradius;
dumhandx = dumelbowx + xadd;
dumhandy = dumelbowy + yadd;
if (sqphase < 6) {
dx = floor(abs(rtitx - dumhandx));
dy = floor(abs(rtity - dumhandy));
if (dx > dy) {
d = dx;
} else {
d = dy;
}
dd = floor(d / 4);
} else {
bloox = -34;
if (sqphase == 6) {
blooy = 116;
} else {
blooy = 1000;
}
dx = floor(abs(bloox - dumhandx));
dy = floor(abs(blooy - dumhandy));
if (dx > dy) {
d = dx;
} else {
d = dy;
}
dd = floor(d / 4);
if (dd <= 4) {
prox = 4 - dd;
blsq = floor(dumsq);
if (blsq > prox) {
blsq = prox;
}
if (blsq && !struggling) {
struggling = 1;
}
} else {
blsq = 0;
prox = 0;
}
}
if (buttonpress && (squeezer == DUM || sqphase == 16 && attach)) {
if (dumsq < 4 && dd <= 4) {
dumsq += 1;
if (dumsq == 4) {
++squeezes;
if (squeezes == 10 && sqphase == 6) {
sqphase = 7;
squeezer = 0;
}
}
}
} else {
if (dumsq > 0) {
dumsq -= 1;
}
}
if (sqphase < 6) {
if (dd <= 4) {
prox = 4 - dd;
rtsq = floor(dumsq);
if (rtsq > prox) {
rtsq = prox;
}
if (rtsq && !struggling) {
struggling = 1;
}
} else {
rtsq = 0;
prox = 0;
}
}
box1_mc._x = 320 + dumx;
box1_mc._y = 240 + dumy;
box1_mc.swapDepths(4001);
box1_mc.gotoAndStop(33);
box4_mc._x = 320 + dumwaistx;
box4_mc._y = 240 + dumwaisty;
box4_mc._rotation = -30 + dumwaistangle;
box4_mc.swapDepths(4000);
if (attention >= 10) {
box4_mc.gotoAndStop(44);
} else {
box4_mc.gotoAndStop(34);
}
box2_mc._x = 320 + dumshoulderx;
box2_mc._y = 240 + dumshouldery;
box2_mc._rotation = -45 + dumuarmangle - 2;
box2_mc.swapDepths(4015);
box2_mc.gotoAndStop(31);
box3_mc._x = 320 + dumelbowx;
box3_mc._y = 240 + dumelbowy;
box3_mc._rotation = -45 + dumlarmangle;
box3_mc.swapDepths(4020);
box3_mc.gotoAndStop(37 + floor(dumsq));
box7_mc._x = 320 + dumpantx;
box7_mc._y = 240 + dumpanty + dumpantdown;
box7_mc.swapDepths(4006);
box7_mc.gotoAndStop(43);
barrelside1_mc._x = 320 + dumsashx + dumpantdown * -0.13;
barrelside1_mc._xscale = 100 + dumpantdown * 0.48;
barrelside1_mc._y = 240 + dumsashy + dumpantdown;
barrelside1_mc._rotation = dumpantdown * 0.17;
barrelside1_mc.swapDepths(4009);
barrelside1_mc.gotoAndStop(47);
barrelside4_mc._x = 320 + dumcockx;
barrelside4_mc._y = 240 + dumcocky;
barrelside4_mc._xscale = 90 + first10;
barrelside4_mc._yscale = 94 + first10 / 2;
barrelside4_mc._rotation = dumcockangle;
barrelside4_mc.swapDepths(4005);
barrelside4_mc.gotoAndStop(50);
}
function do_cabinkitty() {
if (sqphase == 9 || sqphase == 11 || sqphase == 13) {
dx = 7 - pushpull;
pushpull += dx / 8;
} else {
if (sqphase == 10 || sqphase == 12) {
dx = -7 - pushpull;
pushpull += dx / 8;
} else {
if (sqphase == 14) {
pushpull *= 0.8;
if (abs(pushpull) < 0.1) {
pushpull = 0;
}
}
}
}
if (struggling) {
++struggling;
if (struggling > 40) {
struggling = 0;
}
if (struggle < 10) {
++struggle;
}
} else {
if (struggle > 0) {
--struggle;
}
}
if (struggle < 0) {
struggle = 0;
}
strugangle += +rnd(40);
barch = sine(strugangle) * 5 * (struggle / 40);
barch += pushpull;
kittyx = -26 + pushpull * 13 / 10;
kittyy = 312;
kwaistx = kittyx + 10;
kwaisty = kittyy - 262;
kwaistangle = barch;
krshoulderradius = 126;
krarma = -23;
xadd = sine(kwaistangle + krarma) * krshoulderradius;
yadd = -cosine(kwaistangle + krarma) * krshoulderradius;
krshoulderx = kwaistx + xadd;
krshouldery = kwaisty + yadd;
klshoulderradius = 129;
klarma = 22;
xadd = sine(kwaistangle + klarma) * klshoulderradius;
yadd = -cosine(kwaistangle + klarma) * klshoulderradius;
klshoulderx = kwaistx + xadd;
klshouldery = kwaisty + yadd;
ltitradius = 54;
ltita = 23;
xadd = sine(kwaistangle + ltita) * ltitradius;
yadd = -cosine(kwaistangle + ltita) * ltitradius;
ltitx = kwaistx + xadd;
ltity = kwaisty + yadd;
rtitradius = 64;
rtita = -32;
xadd = sine(kwaistangle + rtita) * rtitradius;
yadd = -cosine(kwaistangle + rtita) * rtitradius;
rtitx = kwaistx + xadd;
rtity = kwaisty + yadd;
dumlarmx = krshoulderx - 2;
dumlarmy = krshouldery + 47;
didrarmx = klshoulderx + 16;
didrarmy = klshouldery + 47;
if (sqphase >= 28) {
return undefined;
}
barreltop1_mc._x = 320 + kittyx;
barreltop1_mc._y = 240 + kittyy;
barreltop1_mc.swapDepths(3000);
barreltop1_mc.gotoAndStop(20);
barreltop2_mc._x = 320 + kwaistx;
barreltop2_mc._y = 240 + kwaisty;
barreltop2_mc._rotation = kwaistangle;
barreltop2_mc.swapDepths(3019);
barreltop2_mc.gotoAndStop(21);
if (attention) {
ass1_mc._x = -10000;
} else {
ass1_mc._x = 320 + kwaistx;
}
ass1_mc._y = 240 + kwaisty;
ass1_mc._rotation = kwaistangle;
ass1_mc.swapDepths(3020);
if (struggling || abs(pushpull) > 4) {
ass1_mc.gotoAndStop(13);
} else {
ass1_mc.gotoAndStop(12);
}
barreltop5_mc._x = 320 + kwaistx;
barreltop5_mc._y = 240 + kwaisty;
barreltop5_mc._rotation = kwaistangle;
barreltop5_mc.swapDepths(3021);
barreltop5_mc.gotoAndStop(24 + ltsq);
barreltop6_mc._x = 320 + kwaistx;
barreltop6_mc._y = 240 + kwaisty;
barreltop6_mc._rotation = kwaistangle;
barreltop6_mc.swapDepths(3022);
barreltop6_mc.gotoAndStop(30 + rtsq);
barreltop7_mc._x = 320 + kittyx;
barreltop7_mc._y = 240 + kittyy - 296;
barreltop7_mc._yscale = (skirtboty + 100) / 2 + 50;
barreltop7_mc.swapDepths(3023);
barreltop7_mc.gotoAndStop(19);
barreltop8_mc._x = 320 + kittyx + 4;
barreltop8_mc._y = 240 + kittyy - 194 + skirtboty * 0.75 - 12;
barreltop8_mc._yscale = 100 + skirttopy * 1.24;
barreltop8_mc.swapDepths(3024);
if (skirttopy < -30) {
barreltop8_mc.gotoAndStop(17);
} else {
barreltop8_mc.gotoAndStop(18);
}
barreltop9_mc._x = 320 + kittyx;
barreltop9_mc._y = 240 + kittyy;
barreltop9_mc.swapDepths(3001);
barreltop9_mc.gotoAndStop(36 + blsq);
barreltop3_mc._x = 320 + klshoulderx;
barreltop3_mc._y = 240 + klshouldery;
barreltop3_mc.swapDepths(3030);
barreltop3_mc.gotoAndStop(22);
barreltop4_mc._x = 320 + krshoulderx;
barreltop4_mc._y = 240 + krshouldery;
barreltop4_mc.swapDepths(3010);
barreltop4_mc.gotoAndStop(23);
dumlarma = dumwaistangle * -0.8;
if (attention >= 10) {
box5_mc._x = -10000;
} else {
box5_mc._x = 320 + dumlarmx;
}
box5_mc._y = 240 + dumlarmy;
box5_mc._rotation = dumlarma;
box5_mc.swapDepths(3009);
box5_mc.gotoAndStop(35);
if (attention >= 10) {
box6_mc._x = -10000;
} else {
box6_mc._x = 320 + dumlarmx;
}
box6_mc._y = 240 + dumlarmy;
box6_mc._rotation = dumlarma;
box6_mc.swapDepths(3011);
box6_mc.gotoAndStop(36);
didrarma = didwaistangle * -1.26;
if (attention >= 15) {
barrelstand6_mc._x = -10000;
} else {
barrelstand6_mc._x = 320 + didrarmx;
}
barrelstand6_mc._y = 240 + didrarmy;
barrelstand6_mc._rotation = didrarma + didcreep * -0.37;
barrelstand6_mc.swapDepths(3029);
barrelstand6_mc.gotoAndStop(10);
if (attention >= 15) {
barrelstand5_mc._x = -10000;
} else {
barrelstand5_mc._x = 320 + didrarmx;
}
barrelstand5_mc._y = 240 + didrarmy;
barrelstand5_mc._rotation = didrarma;
barrelstand5_mc.swapDepths(3031);
barrelstand5_mc.gotoAndStop(11);
}
function docannon() {
if (cphase == 0) {
init_cannon();
}
cannontalk();
if (cphase >= 5) {
cannon_buff();
cannon_bang();
}
cannonbg();
mon1 = 'cphase:' + cphase + ' pa:' + platealpha;
}
function init_cannon() {
hideall();
frontalpha = 100;
frontdelay = 200;
wait = 20;
cphase = 1;
}
function cannonbg() {
if (frontdelay) {
--frontdelay;
} else {
if (frontalpha) {
frontalpha -= 10;
}
}
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._alpha = 100;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(25);
bg640_mc._x = 320;
bg640_mc._y = 240;
bg640_mc._alpha = frontalpha;
bg640_mc.swapDepths(20002);
bg640_mc.gotoAndStop(25);
}
function cannontalk() {
if (cphase == 1) {
if (wait) {
--wait;
} else {
saythismed('\rI\'m next!', 3, 4, 70, -150);
wait = 70;
cphase = 2;
}
} else {
if (cphase == 2) {
if (wait) {
--wait;
} else {
saythismed('\rLay her back on the cannon mates.', 3, 4, 70, -150);
wait = 70;
cphase = 3;
}
}
}
}
function cannon_buff() {
buffx = -200;
buffy = 0;
pangle = 0;
changle = 0;
cockangle = 0;
legradius = 51;
langle = 195;
xadd = sine(pangle + langle) * legradius;
yadd = -cosine(pangle + langle) * legradius;
blegx = buffx + xadd;
blegy = buffy + yadd;
cockradius = 92;
cangle = 128;
xadd = sine(pangle - cangle) * cockradius;
yadd = -cosine(pangle - cangle) * cockradius;
cockx = buffx + xadd;
cocky = buffy + yadd;
shradius = 51;
shangle = 195;
xadd = sine(changle + shangle) * shradius;
yadd = -cosine(changle + shangle) * shradius;
brarmx = buffx + xadd;
brarmy = buffy + yadd;
box1_mc._x = 320 + buffx;
box1_mc._y = 240 + buffy;
box1_mc._rotation = changle;
box1_mc.swapDepths(4000);
box1_mc.gotoAndStop(10);
box2_mc._x = 320 + buffx;
box2_mc._y = 240 + buffy;
box2_mc._rotation = pangle;
box2_mc.swapDepths(4000);
box2_mc.gotoAndStop(10);
box3_mc._x = 320 + blegx;
box3_mc._y = 240 + blegy;
box3_mc._rotation = blegangle;
box3_mc.swapDepths(4000);
box3_mc.gotoAndStop(10);
box4_mc._x = 320 + brarmx;
box4_mc._y = 240 + brarmy;
box4_mc._rotation = brarmangle;
box4_mc.swapDepths(4000);
box4_mc.gotoAndStop(10);
box5_mc._x = 320 + cockx;
box5_mc._y = 240 + cocky;
box5_mc._rotation = cockangle;
box5_mc.swapDepths(4000);
box5_mc.gotoAndStop(10);
}
function cannon_bang() {
bchestx = adjx;
bchesty = adjy;
brtitx = bchestx + fadjx;
brtity = bchesty + fadjy;
bltitx = bchestx;
bltity = bchesty;
barmx = bchestx;
barmy = bchesty;
bheadx = bchestx;
bheady = bchesty;
barrelside1_mc._x = 320 + bchestx;
barrelside1_mc._y = 240 + bchesty;
barrelside1_mc._rotation = 0;
barrelside1_mc.swapDepths(900);
barrelside1_mc.gotoAndStop(40);
barrelside2_mc._x = 320 + brtitx;
barrelside2_mc._y = 240 + brtity;
barrelside2_mc._rotation = 0;
barrelside2_mc.swapDepths(910);
barrelside2_mc.gotoAndStop(40);
barrelside3_mc._x = 320 + bltitx;
barrelside3_mc._y = 240 + bltity;
barrelside3_mc._rotation = 0;
barrelside3_mc.swapDepths(920);
barrelside3_mc.gotoAndStop(40);
barrelside4_mc._x = 320 + barmx;
barrelside4_mc._y = 240 + barmy;
barrelside4_mc._rotation = 0;
barrelside4_mc.swapDepths(930);
barrelside4_mc.gotoAndStop(40);
barrelside5_mc._x = 320 + bheadx;
barrelside5_mc._y = 240 + bheady;
barrelside5_mc._rotation = 0;
barrelside5_mc.swapDepths(940);
barrelside5_mc.gotoAndStop(40);
}
function doscene4() {
if (scenestarted != 1) {
hideall();
showplate(2, 'Aboard the pirate ship\r "Dark Angel"');
wait = 80;
scenestarted = 1;
}
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(13);
bg640_mc.swapDepths(-1);
if (wait) {
--wait;
if (wait == 0) {
goblackslow = 1;
}
}
dokeys();
}
function doscene5() {
if (scenestarted != 1) {
init_capcab();
}
doblood_capcab();
dokitty_capcab();
docapcab();
doarrow();
dokeys();
mon1 = ' phase:' + phase;
}
function init_capcab() {
hideall();
if (forcephase) {
phase = forcephase;
} else {
phase = 0;
}
drinkalpha = 0;
arrowcursor = 0;
attacharrow = 0;
ccframe = 15;
adjy = 0;
adjx = 0;
karmangle = 0;
barmangle = 0;
khandangle = -30;
showplate(1, 'The Captain\'s Cabin');
scenestarted = 1;
}
function docapcab() {
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(ccframe);
bg640_mc.swapDepths(10000);
if (phase == 14) {
if (drinkalpha < 100) {
drinkalpha += 10;
}
dframe = 22;
bg640_mc.gotoAndStop(dframe);
bg640_mc._alpha = drinkalpha;
bg640_mc._x = 320;
bg640_mc._y = 240;
} else {
if (phase == 12) {
if (drinkalpha < 100) {
drinkalpha += 10;
}
dframe = 21;
bg640_mc.gotoAndStop(dframe);
bg640_mc._alpha = drinkalpha;
bg640_mc._x = 320;
bg640_mc._y = 240;
} else {
if (phase == 5) {
if (drinkalpha < 100) {
drinkalpha += 10;
}
dframe = 20;
bg640_mc.gotoAndStop(dframe);
bg640_mc._alpha = drinkalpha;
bg640_mc._x = 320;
bg640_mc._y = 240;
} else {
if (drinkalpha) {
drinkalpha -= 10;
bg640_mc._alpha = floor(drinkalpha);
}
}
}
}
beta_mc.swapDepths(20005);
beta_mc._x = 599;
beta_mc._y = 481;
}
function doblood_capcab() {
if (phase == 0) {
phase = 1;
wait = 80;
} else {
if (phase == 1) {
if (wait) {
--wait;
} else {
saythismed('\rCome, eat!', 3, 4, -150, -150);
phase = 2;
wait = 80;
}
} else {
if (phase == 2) {
if (wait) {
--wait;
if (wait == 60) {
ccframe = 14;
}
} else {
saythismed('It\'s been a long day. You must be hungry.', 3, 4, -150, -150);
phase = 3;
wait = 120;
}
} else {
if (phase == 3) {
if (wait) {
--wait;
if (wait == 60) {
ccframe = 15;
}
} else {
saythismed('Relax now and take some dinner.', 3, 11, -150, -150);
phase = 4;
wait = 100;
}
} else {
if (phase == 4) {
if (wait) {
--wait;
if (wait == 60) {
ccframe = 14;
}
if (wait == 40) {
ccframe = 15;
}
} else {
phase = 5;
wait = 100;
}
} else {
if (phase == 5) {
if (wait) {
--wait;
if (wait == 70) {
saythismed('Have some wine. It will help you to relax.', 3, 4, 65, -100);
}
} else {
phase = 6;
wait = 80;
ccframe = 16;
}
} else {
if (phase == 6) {
if (wait) {
--wait;
if (wait == 70) {
saythismed('Do you really expect me to sit and have dinner with you!', 3, 4, 100, -140);
}
} else {
saythismed('That I will just forget everything that has happened,', 3, 4, 100, -140);
phase = 7;
wait = 60;
}
} else {
if (phase == 7) {
if (wait) {
--wait;
} else {
saythismed('Sit down and have a lovely dinner?', 3, 11, 100, -140);
phase = 8;
wait = 60;
}
} else {
if (phase == 8) {
if (wait) {
--wait;
} else {
saythismed('\rWith you?', 3, 4, 100, -140);
phase = 9;
wait = 50;
}
} else {
if (phase == 9) {
if (wait) {
--wait;
} else {
saythismed('You’re nothing but a filthy stinking pirate!', 3, 11, 100, -140);
phase = 10;
wait = 80;
}
} else {
if (phase == 10) {
if (wait) {
--wait;
} else {
saythismed('Have a bath you stinking pig!', 1, 11, 100, -140);
phase = 11;
wait = 50;
}
} else {
if (phase == 11) {
if (wait) {
--wait;
} else {
phase = 12;
wait = 60;
}
if (barmangle <= -15) {
phase = 12;
wait = 60;
}
} else {
if (phase == 12) {
if (wait) {
--wait;
} else {
phase = 13;
wait = 40;
ccframe = 17;
}
} else {
if (phase == 13) {
if (wait) {
--wait;
} else {
phase = 14;
wait = 80;
dframe = 23;
}
} else {
if (phase == 14) {
if (wait) {
--wait;
if (wait == 60) {
saythismed('All right, there is more than one way to skin a cat.', 3, 4, 105, -100);
}
} else {
phase = 15;
wait = 80;
ccframe = 18;
}
} else {
if (phase == 15) {
if (wait) {
--wait;
if (wait == 60) {
saythismed('And no matter how you skin a cat, ', 3, 11, 105, -100);
}
} else {
phase = 16;
wait = 80;
}
} else {
if (phase == 16) {
if (wait) {
--wait;
if (wait == 60) {
saythismed('You always end up getting down to the raw pussy. ', 4, 4, 105, -100);
}
} else {
phase = 17;
wait = 70;
}
} else {
if (phase == 17) {
if (wait) {
--wait;
} else {
if (!goblackslow) {
goblackslow = 1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function dokitty_capcab() {
kittyx = 122;
kittyy = -28;
if (phase == 11 && wait < 30 && karmangle < 30) {
karmangle += 10;
khandangle += 30;
barmangle = -karmangle / 2;
}
if (phase >= 6 && phase < 13) {
box1_mc._x = 320 + kittyx;
} else {
box1_mc._x = -10000;
}
box1_mc._y = 240 + kittyy;
box1_mc._rotation = -30 + karmangle;
box1_mc.swapDepths(4001);
box1_mc.gotoAndStop(3);
karmradius = 169;
kelangle = 173;
xadd = sine(karmangle + kelangle) * karmradius;
yadd = -cosine(karmangle + kelangle) * karmradius;
ex = kittyx + xadd;
ey = kittyy + yadd;
if (phase >= 6 && phase < 13) {
box4_mc._x = 320 + ex;
} else {
box4_mc._x = -10000;
}
box4_mc._y = 240 + ey;
box4_mc._rotation = khandangle;
box4_mc.swapDepths(4002);
box4_mc.gotoAndStop(6);
bloodx = -244;
bloody = 189;
if (phase >= 6 && phase < 13) {
box2_mc._x = 320 + bloodx;
} else {
box2_mc._x = -10000;
}
box2_mc._y = 240 + bloody;
box2_mc.swapDepths(4013);
box2_mc.gotoAndStop(4);
if (phase >= 6 && phase < 13) {
box3_mc._x = 320 + bloodx;
} else {
box3_mc._x = -10000;
}
box3_mc._y = 240 + bloody;
box3_mc._rotation = barmangle;
box3_mc.swapDepths(4012);
if (barmangle <= -15) {
box3_mc.gotoAndStop(7);
} else {
box3_mc.gotoAndStop(5);
}
}
function dotitle() {
if (scene == 0.5) {
doscene_dot5();
} else {
if (scene == 0.6) {
doscene_dot6();
} else {
if (scene == 0.7) {
doscene_dot7();
} else {
if (scene == 0.8) {
doscene_dot8();
}
}
}
}
}
function doscene_dot5() {
if (scenestarted == 0) {
hideall();
frontalpha = 0;
dripping = 0;
dripsize = 0;
scenestarted = 1;
stoplooping = 0;
loopfile1('blood5.mp3');
}
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(23);
bg640_mc.swapDepths(-1);
if (ttalk == 3 && wait) {
--wait;
if (wait == 0) {
goblackslow = 1;
}
}
doarrow();
dokeys();
if (mousex < 111 && mousey > 455) {
if (buttonpress && plinkrel) {
getURL('http://pusooy.net', '_blank');
plinkrel = 0;
}
if (!buttonpress) {
plinkrel = 1;
}
pusooypop = 1;
} else {
pusooypop = 0;
}
if (!dripping) {
mm = 0;
arrowx = -25;
arrowy = -8;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
dripsize = 0;
dripsizeadd = 0.5;
dripping = 0.001;
dripadd = 4;
attacharrow = 0;
}
} else {
if (dripsize < 100) {
dripsizeadd += 0.0125;
dripsize += dripsizeadd;
} else {
dripping += dripadd;
dripadd += 0.1;
if (dripping > 300 && !goblackslow) {
goblackslow = 1;
}
}
}
bx = -25;
by = -16;
bdy = by + dripping;
rx = 0;
ry = 99;
box1_mc._x = 320 + bx;
box1_mc._y = 240 + by;
box1_mc._rotation = 0;
box1_mc._alpha = 100;
box1_mc.swapDepths(22300);
box1_mc.gotoAndStop(133);
box2_mc._x = 320 + bx + 1.6;
box2_mc._y = 240 + bdy;
box2_mc._rotation = 45;
box2_mc._yscale = dripsize;
box2_mc._xscale = box2_mc._yscale;
if (dripping > 55) {
box2_mc._alpha = 0;
} else {
box2_mc._alpha = 100;
}
box2_mc.swapDepths(22305);
box2_mc.gotoAndStop(134);
box3_mc._x = 320 + rx;
box3_mc._y = 240 + ry;
box3_mc._alpha = 100;
box3_mc.swapDepths(22302);
if (dripping > 55) {
box3_mc.gotoAndStop(136);
} else {
box3_mc.gotoAndStop(135);
}
if (!onbeta) {
beta_mc.swapDepths(20005);
beta_mc.gotoAndStop(1);
beta_mc.txt.text = '\rVersion:' + version + ' ';
beta_mc._x = 599;
beta_mc._y = 481;
} else {
beta_mc.swapDepths(20005);
beta_mc.gotoAndStop(2);
beta_mc.txt.text = 'Bloodheart © 2008 all rights reserved\rThis game may be played only at \rpusooy.net Any other use\ris a violation of copyright.';
beta_mc._x = 562 + adjx;
beta_mc._y = 455 + adjy;
}
}
function doscene_dot6() {
if (scenestarted != 1) {
hideall();
showplate(5, 'Captain Bloodheart is a terror on the high seas,');
ttalk = 1;
wait = 80;
scenestarted = 1;
}
if (platealpha == 0 && ttalk == 1) {
showplate(5, 'Successfully seizing ship after ship with seeming ease. ');
ttalk = 2;
} else {
if (platealpha == 0 && ttalk == 2) {
showplate(5, 'No treasure is safe. ');
ttalk = 3;
}
}
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(20);
bg640_mc.swapDepths(-1);
if (ttalk == 3 && wait) {
--wait;
if (wait == 0) {
goblackslow = 1;
}
}
dokeys();
}
function doscene_dot7() {
if (scenestarted != 1) {
hideall();
showplate(5, 'Bloodheart happens upon the frigate HMS Cornucopia,');
ttalk = 1;
dax = 464;
day = 260;
dam = 0;
wait = 80;
scenestarted = 1;
}
if (platealpha == 0 && ttalk == 1) {
showplate(5, 'In the dead calm of a fog bank. ');
ttalk = 2;
} else {
if (platealpha == 0 && ttalk == 2) {
showplate(5, 'They easily storm the ship and overtake the sleeping crew.');
ttalk = 3;
wait = 80;
} else {
if (ttalk == 3) {
if (wait) {
--wait;
} else {
goblackslow = 1;
ttalk = 4;
}
}
}
}
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(21);
bg640_mc.swapDepths(10);
bg640_mc.gotoAndStop(23);
bg640_mc._alpha = 100;
bg640_mc._x = 320;
bg640_mc._y = 240;
if (dam < 400) {
dam += 0.5;
}
box1_mc._x = 320 + dax - dam;
box1_mc._y = 240 + day - dam * 0.1;
box1_mc._rotation = -45;
box1_mc.swapDepths(9);
box1_mc.gotoAndStop(46);
dokeys();
}
function doscene_dot8() {
if (scenestarted != 1) {
hideall();
showplate(1, 'On deck of the seized ship.');
ttalk = 1;
scenestarted = 1;
}
if (platealpha == 0 && ttalk == 1) {
saythismed('The ship is ours! Now find the gold!', 3, 4, 40, -150);
ttalk = 2;
wait = 100;
}
if (ttalk == 2) {
if (wait) {
--wait;
} else {
goblack = 10;
ttalk = 3;
}
}
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(22);
bg640_mc.swapDepths(-10);
dokeys();
}
function dodung() {
if (scenestarted == 0) {
init_dung();
}
docrank();
dung_blood();
dung_kitty();
if (dphase == 13) {
dokittypoke();
} else {
if (dphase == 17) {
dokittylick();
}
}
if (dphase == 8 && targeting && !shooting) {
targetx = mousex;
targety = mousey;
}
dungbg();
dunghelper();
dorats();
if (dphase == 8 && (targeting || shooting) && bullet == 0) {
arrow_mc.gotoAndStop(27);
arrow_mc._x = targetx;
arrow_mc._y = targety;
arrow_mc._rotation = 0;
hidemouse = 1;
arrow_mc._alpha = 50;
arrow_mc.swapDepths(20003);
} else {
arrow_mc._alpha = 100;
if (dphase == 17 && attach == 2) {
arrowcursor = 1;
arrowangle = 0;
doarrow();
arrow_mc._rotation = ara;
} else {
arrowcursor = 0;
doarrow();
}
arrow_mc.swapDepths(20053);
}
mon1 = 'dphase:' + dphase + ' bhf:' + floor(bhframe) + ' bf:' + bframe + ' wa:' + wheelangle + ' ds:' + dsay + ' w:' + wait;
}
function init_dung() {
hideall();
frontalpha = 0;
crankangle = 0;
ropeseq = 0;
wheelangle = 8;
lrrel = 0;
cranks = 0;
crankadd = 0;
resetrat();
ready = 0;
bframe = 0;
bhframe = 0;
muzzleflash = 0;
panflash = 0;
smoke = 0;
targeting = 0;
shooting = 0;
bullet = 0;
shootx = -259;
bloodx = shootx;
bloody = 192;
kwa2 = 0;
kwa = 0;
lift = 0;
liftrefy = 0;
liftrefx = 0;
topdown = 0;
dressfall = 0;
camifall = 0;
dsay = 0;
missinarow = 0;
hitinarow = 0;
ljump = 0;
sljump = 0;
ssljump = 0;
jumpy = 0;
sjumpy = 0;
ssjumpy = 0;
poke = 0;
rub = 0;
rubreset = 0;
rubs = 0;
parma = -20;
armattach = 0;
attach = 0;
poked = 0;
pleasure = 0;
kpy = 0;
kpx = 0;
ldepth = 0;
lha = 0;
la = 0;
autopilot = 0;
cumming = 0;
spasm = 0;
drift = 0;
wait = 20;
dphase = 4;
showplate(1, 'Deep in the bowels of the ship.');
scenestarted = 1;
}
function dungbg() {
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._alpha = 100;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(26);
bg640_mc._x = 320;
bg640_mc._y = 240;
bg640_mc._alpha = frontalpha;
bg640_mc.swapDepths(20002);
if (dphase >= 15) {
bg640_mc.gotoAndStop(28);
} else {
if (dphase == 13) {
bg640_mc.gotoAndStop(27);
} else {
bg640_mc.gotoAndStop(26);
}
}
mizzen_mc._x = 46;
mizzen_mc._y = 95;
mizzen_mc.swapDepths(2022);
mizzen_mc.gotoAndStop(3);
pooprail_mc._x = 359;
pooprail_mc._y = 131;
pooprail_mc.swapDepths(2010);
pooprail_mc.gotoAndStop(2);
nest_mc._x = 344;
nest_mc._y = 322;
nest_mc.swapDepths(2023);
nest_mc.gotoAndStop(3);
beta_mc.swapDepths(20005);
beta_mc._x = 599;
beta_mc._y = 481;
}
function docrank() {
if (!Key.isDown(39) && !Key.isDown(37)) {
lrrel = 1;
}
if (Key.isDown(81) && lrrel) {
lrrel = 0;
wheelangle = 40;
wheelangle = 55;
dphase = 11;
}
if (Key.isDown(87) && Key.isDown(39) && lrrel) {
cranks = 2;
lrrel = 0;
crankspeed = 100;
}
if (Key.isDown(87) && Key.isDown(37) && lrrel) {
cranks = -1;
lrrel = 0;
crankspeed = 500;
}
crankx = 33;
cranky = 97;
if (lift) {
crankstep = 0.025;
} else {
crankstep = 0.1;
}
if (cranks > 0) {
if (crankadd < crankspeed) {
crankadd += 0.25;
}
crankangle += crankadd;
wheelangle += crankstep;
if (wheelangle >= 65) {
mmmSound.stop();
wheelangle = 65;
cranks = 0;
crankadd = 0;
if (dphase != 5) {
dphase = 11;
}
} else {
if (crankangle > 360) {
crankangle -= 360;
--cranks;
if (cranks == 0) {
crankadd = 0;
if (dphase != 5) {
dphase = 11;
}
} else {
sayfile('wheel2.mp3');
mmmSound.setVolume(40);
}
}
ropeseq += crankadd / 6;
if (ropeseq >= 3) {
ropeseq -= 3;
}
if (ropeseq >= 3) {
ropeseq -= 3;
}
}
} else {
if (cranks < 0) {
wheelangle -= crankstep;
if (wheelangle <= 0) {
mmmSound.stop();
wheelangle = 0;
cranks = 0;
crankadd = 0;
if (dphase != 5) {
dphase = 11;
}
} else {
if (crankadd < crankspeed) {
crankadd += 0.25;
}
crankangle -= crankadd;
if (crankangle < -360) {
crankangle += 360;
++cranks;
if (cranks == 0) {
crankadd = 0;
if (dphase != 5) {
dphase = 11;
}
}
}
ropeseq -= crankadd / 6;
if (ropeseq < 0) {
ropeseq += 3;
}
if (ropeseq < 0) {
ropeseq += 3;
}
}
}
}
wheeladjy = -65;
rope1x = 18;
rope1y = 89;
rope2x = 324;
rope2y = 150;
wheelx = 479;
wheely = 93 + wheeladjy;
barreltop1_mc._x = 320 + crankx;
barreltop1_mc._y = 240 + cranky;
barreltop1_mc._yscale = 100;
barreltop1_mc._xscale = 100;
barreltop1_mc._rotation = crankangle;
barreltop1_mc.swapDepths(3040);
barreltop1_mc.gotoAndStop(3);
barreltop2_mc._x = 320 + rope1x;
barreltop2_mc._y = 240 + rope1y;
barreltop2_mc.swapDepths(3039);
barreltop2_mc.gotoAndStop(4 + floor(ropeseq));
barreltop3_mc._x = 320 + rope2x;
barreltop3_mc._y = 240 + rope2y;
barreltop3_mc._xscale = -100;
barreltop3_mc.swapDepths(3038);
barreltop3_mc.gotoAndStop(4 + floor(ropeseq));
barreltop4_mc._x = 320 + wheelx;
barreltop4_mc._y = 240 + wheely;
barreltop4_mc._rotation = wheelangle;
barreltop4_mc.swapDepths(3047);
barreltop4_mc.gotoAndStop(7);
barreltop5_mc._x = 320 + wheelx;
barreltop5_mc._y = 240 + wheely;
barreltop5_mc._rotation = wheelangle + 45;
barreltop5_mc.swapDepths(3046);
barreltop5_mc.gotoAndStop(7);
barreltop6_mc._x = 320 + wheelx;
barreltop6_mc._y = 240 + wheely;
barreltop6_mc._rotation = wheelangle - 45;
barreltop6_mc.swapDepths(3045);
barreltop6_mc.gotoAndStop(7);
barreltop7_mc._x = 320 + wheelx;
barreltop7_mc._y = 240 + wheely;
barreltop7_mc._rotation = wheelangle - 90;
barreltop7_mc.swapDepths(3044);
barreltop7_mc.gotoAndStop(7);
barrelstand1_mc._x = 320 + wristx;
barrelstand1_mc._y = 240 + wristy;
barrelstand1_mc._rotation = chain2wristangle + 180;
barrelstand1_mc.swapDepths(3600);
if (wheelangle > 20) {
chainf = 20;
} else {
if (wheelangle > 18) {
chainf = 21;
} else {
chainf = 22;
}
}
barrelstand1_mc.gotoAndStop(chainf);
wheelradius2 = 285;
chainstartangle = -50;
chainangle = chainstartangle + wheelangle;
maxangle = -30;
uchainangle = chainangle;
diffangle = 0;
lengthsub = 0;
if (chainangle > maxangle) {
uchainangle = maxangle;
diffangle = chainangle - maxangle;
lengthsub = diffangle * (PI * 2 * wheelradius2 / 360);
}
xadd = sine(uchainangle) * wheelradius2;
yadd = -cosine(uchainangle) * wheelradius2;
chainx = wheelx + xadd;
chainy = wheely + yadd;
chain2wristangle = chainangle - 90;
if (chain2wristangle > -120) {
chain2wristangle = -120;
}
chainlength = 207 - lengthsub;
xadd = sine(chain2wristangle) * chainlength;
yadd = -cosine(chain2wristangle) * chainlength;
wristx = chainx + xadd;
wristy = chainy + yadd + jumpy;
}
function dung_blood() {
if (dphase == 4) {
bframe = 0;
bloodx = crankx - 30;
if (platealpha) {
} else {
if (dsay == 0) {
if (wait) {
--wait;
} else {
saythismed('\rAnd now we will play a little game.', 2, 3, bloodx - 20, -140);
dsay = 1;
wait = 70;
}
} else {
if (dsay == 1) {
if (wait) {
--wait;
} else {
saythismed('\rI like games. Don\'t you?', 2, 3, bloodx - 20, -140);
dsay = 2;
wait = 70;
}
} else {
if (dsay == 2) {
if (wait) {
--wait;
} else {
saythismed('We are going to play a little game of...', 2, 3, bloodx - 20, -140);
dsay = 3;
wait = 80;
}
} else {
if (dsay == 3) {
if (!speaking) {
if (frontalpha < 100) {
frontalpha += 5;
}
}
if (wait) {
--wait;
} else {
saythismed('\rSkin the cat!', 2, 3, bloodx - 20, -140);
dsay = 4;
wait = 120;
}
} else {
if (dsay == 4) {
if (!speaking) {
if (frontalpha > 0) {
frontalpha -= 2;
}
}
if (wait) {
--wait;
} else {
if (frontalpha == 0) {
saythismed('The bottom of your dress has been nailed to the floor.', 2, 3, bloodx - 20, -140);
dsay = 5;
wait = 70;
}
}
} else {
if (dsay == 5) {
if (wait) {
--wait;
} else {
saythismed('\rI will be shooting at rats.', 2, 3, bloodx - 20, -140);
dsay = 6;
wait = 60;
}
} else {
if (dsay == 6) {
if (wait) {
if (bhframe < 4) {
bhframe += 0.5;
}
--wait;
} else {
saythismed('\rIf I hit one,', 2, 3, bloodx - 20, -140);
dsay = 7;
wait = 40;
}
} else {
if (dsay == 7) {
if (wait) {
if (bhframe > 0) {
bhframe -= 0.5;
}
--wait;
} else {
dphase = 5;
wframe = 13;
}
}
}
}
}
}
}
}
}
}
} else {
if (dphase == 5) {
if (dsay == 7) {
if (wframe < 15) {
wframe += 0.5;
} else {
saythismed('\rI crank you up!', 2, 3, bloodx - 20, -140);
wait = 120;
dsay = 8;
}
} else {
if (dsay == 8) {
if (wait) {
--wait;
} else {
saythismed('\rIf I miss, I crank you down.', 2, 3, bloodx - 20, -80);
cranks = -1;
sayfile('wheel1.mp3');
mmmSound.setVolume(40);
crankspeed = 6;
wait = 100;
dsay = 9;
}
} else {
if (dsay == 9) {
if (wait) {
--wait;
} else {
dphase = 11;
}
}
}
}
} else {
if (dphase == 8) {
if (!ready) {
if (wait) {
--wait;
} else {
if (bframe < 7) {
bframe += 0.5;
} else {
ready = 1;
}
}
} else {
if (ready == 1) {
if (buttonpress && !onscenebar) {
shooting = 1;
ready = 2;
wait = 0;
}
} else {
if (ready == 2) {
if (wait) {
--wait;
if (wait == 0) {
ready = 3;
}
} else {
if (bhframe < 3 && bframe < 10) {
bframe += 0.5;
} else {
if (bhframe == 3 && bframe < 11) {
bframe += 0.5;
} else {
if (bhframe == 4 && bframe < 12) {
bframe += 0.5;
} else {
wait = 3;
panflash = 3;
ready = 3;
}
}
}
}
} else {
if (ready == 3) {
if (wait) {
--wait;
} else {
bframe = 13;
recoilangle = 0;
sayfile('gunshot.mp3');
bullet = 1;
wait = 2;
ready = 4;
}
} else {
if (ready == 4) {
if (wait == 2) {
recoilangle += 3;
if (recoilangle >= 9) {
wait = 1;
recoiladd = 0.25;
jumpy = 3;
say('gasp');
}
} else {
if (recoilangle > 0) {
recoilangle *= 0.9;
if (recoilangle < 0.25) {
recoilangle = 0;
bframe = 10.5;
}
} else {
if (bframe > 7) {
bframe -= 0.5;
} else {
ready = 0;
if (bullet == 2) {
dphase = 9;
++hitinarow;
missinarow = 0;
} else {
dphase = 10;
hitinarow = 0;
++missinarow;
if (missinarow == 1) {
saythismed('\rMissed!', 2, 3, kittyx - 30, kittyy - 340);
} else {
if (missinarow == 2) {
saythismed('\rHa! Missed again!', 2, 3, kittyx - 30, kittyy - 340);
} else {
if (missinarow == 3) {
saythismed('You\'re not very good at this are you?', 2, 3, kittyx - 30, kittyy - 340);
}
}
}
}
handinplace = 0;
wframe = 0;
bullet = 0;
shooting = 0;
}
}
}
}
}
}
}
}
}
}
}
if (dphase == 9 || dphase == 10) {
if (bloodx < crankx - 30) {
if (dphase == 9) {
wframe += 1;
bloodx += 9;
} else {
wframe += 0.5;
bloodx += 5;
}
if (wframe >= 11) {
wframe = 0;
}
} else {
if (wframe < 12) {
wframe = 13;
} else {
if (wframe < 15) {
wframe += 0.5;
}
}
}
} else {
if (dphase == 11) {
if (wframe > 12.5) {
wframe -= 0.5;
if (wframe <= 12.5) {
wframe = 0;
if (camifall) {
dphase = 14;
dsay = 14;
bframe = 0;
wait = 20;
} else {
if (wheelangle > 30 && !poked) {
dphase = 12;
dsay = 12;
bframe = 0;
wait = 20;
}
}
}
} else {
if (bloodx > shootx) {
wframe += 1;
if (wframe >= 11) {
wframe = 0;
}
bloodx -= 9;
} else {
dphase = 8;
ready = 0;
}
}
} else {
if (dphase == 12) {
poked = 1;
if (dsay == 12) {
if (wait) {
--wait;
} else {
saythismed('\rMy pistol sure is getting hot!', 2, 3, bloodx - 20, -140);
dsay = 13;
wait = 70;
}
} else {
if (dsay == 13) {
if (wait) {
--wait;
} else {
saythismed('\rDo you want to feel how hot it is?', 2, 3, bloodx - 20, -140);
dsay = 14;
wait = 40;
}
} else {
if (dsay == 14) {
if (wait) {
--wait;
} else {
dphase = 13;
}
}
}
}
} else {
if (dphase == 14) {
if (dsay == 14) {
if (wait) {
--wait;
} else {
saythismed('Ah! Now we\'re down to the raw sweet pussy!', 2, 3, bloodx - 20, -140);
dsay = 15;
wait = 70;
}
} else {
if (dsay == 15) {
if (wait) {
--wait;
} else {
saythismed('\rBut I think Pussy needs a lashing!', 2, 3, bloodx - 20, -140);
dsay = 16;
wait = 40;
}
} else {
if (dsay == 16) {
if (wait) {
--wait;
} else {
dphase = 15;
}
}
}
}
} else {
if (dphase == 15) {
if (bloodx < crankx + 80) {
wframe += 0.5;
bloodx += 5;
if (wframe >= 11) {
wframe = 0;
}
} else {
if (wframe < 12) {
wframe = 13;
} else {
if (wframe < 15) {
wframe += 0.5;
} else {
dphase = 16;
dsay = 16;
wait = 10;
}
}
}
} else {
if (dphase == 16) {
if (dsay == 16) {
if (wait) {
--wait;
} else {
saythismed('We\'ll make it a tongue lashing though.', 2, 3, bloodx - 20, -60);
dsay = 17;
wait = 70;
}
} else {
if (dsay == 17) {
if (wait) {
--wait;
} else {
dphase = 17;
}
}
}
}
}
}
}
}
}
if (dphase == 8 || dphase == 4 || dphase == 12 || dphase == 14) {
box1_mc._x = 320 + bloodx;
box1_mc._y = 240 + bloody;
box1_mc.swapDepths(4000);
box1_mc.gotoAndStop(50 + floor(bframe));
box1_mc._yscale = 100;
box1_mc._xscale = 100;
if (floor(bframe) == 13) {
box6_mc._x = 320 + bloodx - 3;
} else {
box6_mc._x = -10000;
}
box6_mc._y = 240 + bloody - 204;
box6_mc._rotation = -30 - recoilangle;
box6_mc.swapDepths(3999);
box6_mc.gotoAndStop(49);
if (dphase == 4) {
targeting = 0;
} else {
tx = mousex - 320;
tx += 220;
tx = 510 - tx;
bhframe = floor(tx / 102);
if (bhframe < 0 || bhframe > 4 || mousey - 240 < -200 || mousey - 240 > -100) {
targeting = 0;
} else {
targeting = 1;
}
if (bhframe > 4) {
bhframe = 4;
}
if (bhframe < 0) {
bhframe = 0;
}
}
if (dphase == 4 && bhframe >= 1) {
box2_mc._x = 320 + bloodx - 3;
} else {
if (bframe >= 7 && bframe <= 9.5) {
box2_mc._x = 320 + bloodx - 3;
} else {
box2_mc._x = -10000;
}
}
box2_mc._y = 240 + bloody - 331;
box2_mc.swapDepths(4001);
box2_mc.gotoAndStop(64 + floor(bhframe));
box2_mc._rotation = 0;
if (bhframe < 3) {
flashx = bloodx + 104;
flashy = bloody - 316;
} else {
if (bhframe == 3) {
flashx = bloodx + 90;
flashy = bloody - 316;
} else {
if (bhframe == 4) {
flashx = bloodx + 65;
flashy = bloody - 316;
}
}
}
if (panflash) {
box3_mc._x = 320 + flashx;
} else {
box3_mc._x = -10000;
}
box3_mc._yscale = panflash * 33;
box3_mc._xscale = box3_mc._yscale;
box3_mc._y = 240 + flashy;
box3_mc.swapDepths(4002);
box3_mc.gotoAndStop(69);
box3_mc._rotation = 0;
if (panflash) {
--panflash;
}
if (panflash == 1) {
muzzleflash = 3;
smoke = 50;
smokex = flashx;
smokey = flashy;
}
if (bhframe < 3) {
flashx = bloodx + 130;
flashy = bloody - 320 + 7;
xsiz = 33;
} else {
if (bhframe == 3) {
flashx = bloodx + 105;
flashy = bloody - 313;
xsiz = 0;
} else {
if (bhframe == 4) {
flashx = bloodx + 130 - 48;
flashy = bloody - 313;
xsiz = -20;
}
}
}
if (muzzleflash) {
box4_mc._x = 320 + flashx;
} else {
box4_mc._x = -10000;
}
box4_mc._xscale = xsiz + muzzleflash * 33;
box4_mc._yscale = 33 + muzzleflash * 33;
box4_mc._y = 240 + flashy;
box4_mc.swapDepths(4003);
box4_mc.gotoAndStop(70);
box4_mc._rotation = 0;
if (muzzleflash) {
--muzzleflash;
}
if (smoke) {
box5_mc._x = 320 + smokex;
} else {
box5_mc._x = -10000;
}
box5_mc._alpha = smoke * 2;
box5_mc._yscale = 75 + smoke / 2;
box5_mc._xscale = box5_mc._yscale;
box5_mc._y = 240 + smokey;
box5_mc.swapDepths(4004);
box5_mc.gotoAndStop(71);
if (smoke) {
smoke -= 0.5;
}
smokey -= 0.5;
} else {
if (dphase == 9 || dphase == 10 || dphase == 5 || dphase == 15 || dphase == 16) {
hipx = bloodx - 59;
hipy = bloody - 91;
bodyangle = sine(crankangle) * 2;
box1_mc._x = 320 + bloodx;
box1_mc._y = 240 + bloody;
box1_mc.swapDepths(4000);
box1_mc.gotoAndStop(73 + floor(wframe));
if (wframe < 12) {
box1_mc._yscale = 200;
box1_mc._xscale = 200;
} else {
box1_mc._yscale = 100;
box1_mc._xscale = 100;
}
if (wframe == 15) {
box4_mc._x = 320 + hipx;
} else {
box4_mc._x = -10000;
}
box4_mc._rotation = 45 + bodyangle;
box4_mc._y = 240 + hipy;
box4_mc.swapDepths(4001);
box4_mc.gotoAndStop(91);
box4_mc._yscale = 100;
box4_mc._xscale = 100;
crankradius = 38;
crangle = 54;
xadd = sine(crangle + crankangle) * crankradius;
yadd = -cosine(crangle + crankangle) * crankradius;
tx = crankx + xadd;
ty = cranky + yadd;
if (wframe < 15) {
crhandx = bloodx - 68;
crhandy = bloody - 53;
} else {
if (!handinplace) {
if (dphase == 16) {
crhandx += 100;
}
dx = tx - crhandx;
dy = ty - crhandy;
if (abs(dx) > 0.5) {
crhandx += dx / 2;
} else {
crhandx = tx;
}
if (abs(dy) > 0.5) {
crhandy += dy / 2;
} else {
crhandy = ty;
}
if (crhandx == tx && crhandy == ty) {
handinplace = 1;
if (dphase == 9 || dphase == 5) {
cranks = 2;
sayfile('wheel1.mp3');
mmmSound.setVolume(40);
crankspeed = 10;
} else {
if (dphase == 10) {
cranks = -1;
sayfile('wheel1.mp3');
mmmSound.setVolume(40);
crankspeed = 6;
}
}
}
} else {
crhandx = tx;
crhandy = ty;
}
}
cruax = bloodx - 32;
cruay = bloody - 175;
cruaradius = 61;
crlaradius = 79;
dist2point = finddistance(cruax, cruay, crhandx, crhandy);
ang2point = rad2deg(-Math.atan2(cruax - crhandx, cruay - crhandy));
point2arm = ang2point + 180;
a = cruaradius;
b = crlaradius;
c = dist2point;
if (dist2point >= cruaradius + crlaradius) {
crlaangle = ang2point;
cruaangle = ang2point;
lreach = 1;
} else {
lreach = 0;
angleA = rad2deg(Math.acos((b * b + c * c - a * a) / 2 * b * c));
angleB = rad2deg(Math.acos((a * a + c * c - b * b) / 2 * a * c));
cruaangle = ang2point + angleB;
crlaangle = point2arm - angleA + 180;
}
xadd = sine(cruaangle) * cruaradius;
yadd = -cosine(cruaangle) * cruaradius;
crlax = cruax + xadd;
crlay = cruay + yadd;
if (wframe == 15) {
box2_mc._x = 320 + cruax;
} else {
box2_mc._x = -10000;
}
box2_mc._y = 240 + cruay;
box2_mc._rotation = -45 + cruaangle;
box2_mc.swapDepths(3998);
box2_mc.gotoAndStop(89);
if (wframe == 15) {
box3_mc._x = 320 + crlax;
} else {
box3_mc._x = -10000;
}
box3_mc._rotation = -45 + crlaangle;
box3_mc._y = 240 + crlay;
box3_mc.swapDepths(3999);
box3_mc.gotoAndStop(90);
box3_mc._yscale = 100;
box3_mc._xscale = 100;
if (smoke) {
box5_mc._x = 320 + smokex;
} else {
box5_mc._x = -10000;
}
box5_mc._alpha = smoke * 2;
box5_mc._yscale = 75 + smoke / 2;
box5_mc._xscale = box5_mc._yscale;
box5_mc._y = 240 + smokey;
box5_mc.swapDepths(4004);
box5_mc.gotoAndStop(71);
if (smoke) {
smoke -= 0.5;
}
smokey -= 0.5;
box6_mc._x = -10000;
} else {
if (dphase == 11) {
box1_mc._x = 320 + bloodx;
box1_mc._y = 240 + bloody;
box1_mc.swapDepths(4000);
box1_mc.gotoAndStop(73 + floor(wframe));
if (wframe < 12) {
box1_mc._xscale = -200;
box1_mc._yscale = 200;
} else {
box1_mc._yscale = 100;
box1_mc._xscale = 100;
}
box6_mc._x = -10000;
box5_mc._x = -10000;
box4_mc._x = -10000;
box3_mc._x = -10000;
box2_mc._x = -10000;
}
}
}
}
function dung_kitty() {
if (jumpy) {
--jumpy;
}
liftangle = -7.49999;
liftrefx = 254;
liftrefy = -171.27;
if (chainangle >= liftangle) {
lift = chainangle - liftangle;
} else {
lift = 0;
}
if (lift == 0) {
lifty = 0;
liftx = 0;
lba = 0;
} else {
liftx = wristx - liftrefx;
lifty = wristy - liftrefy;
liftdelta = chainangle - liftangle;
liftx -= liftdelta * 2.1;
lifty -= liftdelta * 2;
kwa2 = liftdelta * 0.9;
lba = liftdelta * 0.8;
}
kittyx = 145 + liftx;
kittyy = 226 + lifty - jumpy;
kwaistx = kittyx + 14;
kwaisty = kittyy - 231 + 4;
khandx = wristx;
khandy = wristy;
kuaradius = 59;
twa = -0.7;
klaradius = 50;
dist2point = finddistance(kshoulderx, kshouldery, khandx, khandy);
ang2point = rad2deg(-Math.atan2(kshoulderx - khandx, kshouldery - khandy));
point2arm = ang2point + 180;
a = klaradius;
b = kuaradius;
c = dist2point;
if (dist2point >= kuaradius + klaradius) {
kua = ang2point;
kla = ang2point;
kreach = 1;
} else {
kreach = 0;
angleA = rad2deg(Math.acos((b * b + c * c - a * a) / 2 * b * c));
angleB = rad2deg(Math.acos((a * a + c * c - b * b) / 2 * a * c));
kua = ang2point - angleA;
kla = point2arm + angleB + 180;
}
xadd = sine(kua + twa) * kuaradius;
yadd = -cosine(kua + twa) * kuaradius;
kelbowx = kshoulderx + xadd;
kelbowy = kshouldery + yadd;
kshradius = 77;
ksha = 14;
if (chainangle > -20) {
kwa = (chainangle + 20) * 0.8;
if (kwa >= 10) {
kwa = 10;
}
} else {
kwa = 0;
}
xadd = sine(ksha + kwa + kwa2) * kshradius;
yadd = -cosine(ksha + kwa + kwa2) * kshradius;
kshoulderx = kwaistx + xadd;
kshouldery = kwaisty + yadd;
barrelside1_mc._x = 320 + kwaistx;
barrelside1_mc._y = 240 + kwaisty;
barrelside1_mc._rotation = -45 + lba;
barrelside1_mc.swapDepths(3500);
barrelside1_mc.gotoAndStop(57);
barrelside2_mc._x = 320 + kshoulderx;
barrelside2_mc._y = 240 + kshouldery;
barrelside2_mc.swapDepths(3530);
kua90 = kua % 90;
if (kua90 > 30 || kua90 < 60) {
barrelside2_mc._rotation = +kua;
barrelside2_mc.gotoAndStop(65);
} else {
barrelside2_mc._rotation = 45 + kua;
barrelside2_mc.gotoAndStop(54);
}
barrelside3_mc._x = 320 + kelbowx;
barrelside3_mc._y = 240 + kelbowy;
barrelside3_mc.swapDepths(3531);
kla90 = kla % 90;
if (kla90 > 30 || kla90 < 60) {
barrelside3_mc.gotoAndStop(66);
barrelside3_mc._rotation = +kla;
} else {
barrelside3_mc.gotoAndStop(55);
barrelside3_mc._rotation = 45 + kla;
}
barrelside4_mc._x = 320 + kwaistx;
barrelside4_mc._y = 240 + kwaisty;
barrelside4_mc._rotation = 30 + kwa + kwa2;
barrelside4_mc.swapDepths(3501);
barrelside4_mc.gotoAndStop(56);
if (lift >= 7) {
dx = 80 - topdown;
if (dx > 0.5) {
topdown += dx / 8;
} else {
topdown = 80;
}
}
if (lift >= 9) {
dx = 100 - dressfall;
if (dx > 0.5) {
dressfall += dx / 12;
} else {
dressfall = 100;
}
}
if (lift >= 11.5) {
dx = 100 - camifall;
if (dx > 0.5) {
camifall += dx / 12;
} else {
camifall = 100;
}
}
barrelside5_mc._x = 320 + kwaistx - liftx;
barrelside5_mc._y = 240 + kwaisty - lifty + lift * -3 + dressfall * 2.1;
if (dressfall) {
barrelside5_mc._yscale = 100 - dressfall * 0.8;
} else {
barrelside5_mc._yscale = 100 + lift * 0.8;
}
barrelside5_mc._rotation = 0;
barrelside5_mc.swapDepths(3512);
if (lift) {
barrelside5_mc.gotoAndStop(58);
} else {
barrelside5_mc.gotoAndStop(58);
}
barrelside6_mc._x = 320 + kshoulderx - lift * 1.8 + topdown * -0.2;
barrelside6_mc._y = 240 + kshouldery - lift * -2 + topdown * 0.4 + dressfall * 2.4;
barrelside6_mc._xscale = 100 - topdown * 0.3;
barrelside6_mc._rotation = 45 + kua + topdown * 1;
barrelside6_mc.swapDepths(3542);
barrelside6_mc.gotoAndStop(59);
barrelside7_mc._x = 320 + kwaistx - lift * 1.8;
barrelside7_mc._y = 240 + kwaisty - lift * -2 + dressfall * 2.4;
barrelside7_mc._yscale = 100 - topdown * 0.4;
if (topdown) {
barrelside7_mc._rotation = +kwa + kwa2;
} else {
barrelside7_mc._rotation = 30 + kwa + kwa2;
}
barrelside7_mc.swapDepths(3513);
if (topdown) {
barrelside7_mc.gotoAndStop(63);
} else {
barrelside7_mc.gotoAndStop(60);
}
barrelside8_mc._x = 320 + kwaistx - lift * 0.6;
barrelside8_mc._y = 240 + kwaisty - lift * -0.4 + camifall * 2.6;
barrelside8_mc._yscale = 100 - camifall * 0.2;
barrelside8_mc._rotation = +kwa + kwa2;
if (camifall) {
barrelside8_mc.swapDepths(3611);
} else {
barrelside8_mc.swapDepths(3511);
}
barrelside8_mc.gotoAndStop(61);
barrelside9_mc._x = 320 + kwaistx;
barrelside9_mc._y = 240 + kwaisty + camifall * 2.1;
if (dressfall) {
barrelside9_mc._xscale = 100;
barrelside9_mc._yscale = 100 - camifall * 0.6;
} else {
barrelside9_mc._xscale = 66;
barrelside9_mc._yscale = 74;
}
if (camifall) {
barrelside9_mc._rotation = camifall * 0.2;
} else {
barrelside9_mc._rotation = -30 + lift * 0.7;
}
if (camifall) {
barrelside9_mc.swapDepths(3610);
} else {
barrelside9_mc.swapDepths(3510);
}
if (camifall) {
barrelside9_mc.gotoAndStop(64);
} else {
barrelside9_mc.gotoAndStop(62);
}
}
function dokittypoke() {
if (rubs < 5) {
if (frontalpha < 100) {
frontalpha += 10;
}
} else {
if (frontalpha > 0) {
frontalpha -= 10;
barrelstand4_mc._alpha = frontalpha;
barrelstand3_mc._alpha = barrelstand4_mc._alpha;
barrelstand2_mc._alpha = barrelstand4_mc._alpha;
barrelstand1_mc._alpha = barrelstand4_mc._alpha;
} else {
barrelstand4_mc._x = -10000;
barrelstand3_mc._x = -10000;
barrelstand2_mc._x = -10000;
barrelstand1_mc._x = -10000;
hideall();
dphase = 11;
return undefined;
}
}
if (armattach == 0) {
attacharrow = 1;
arrowx = -263;
arrowy = 53;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
armattach = 1;
attachy = mousey;
attachx = mousex;
omousex = mousex;
omousey = mousey;
attacharrow = 0;
}
} else {
if (armattach == 1) {
mdx = mousex - attachx;
if (mdx < 0) {
mdx = 0;
}
if (mdx > 90) {
mdx = 90;
armattach = 2;
attachy = mousey;
}
xadd = cosine(90 - mdx) * 20;
parma = -20 + xadd;
} else {
if (armattach == 2) {
mdy = mousey - attachy;
if (mdy < -90) {
mdy = -90;
}
if (mdy > 2) {
mdy = 2;
}
if (mdy > 0 && rubreset) {
++rubs;
say('moan');
rubreset = 0;
}
if (mdy < -45) {
rubreset = 1;
}
rub = cosine(90 - mdy) * 10;
mon5 = ' mdy:' + mdy + ' rubs:' + rubs;
}
}
}
poke = parma + 5;
poke *= 20;
if (poke > 100) {
poke = 100;
}
if (poke < 0) {
poke = 0;
}
barrelstand1_mc._x = 325;
barrelstand1_mc._y = 428;
barrelstand1_mc._rotation = 0;
if (frontalpha == 100 || rubs < 5) {
barrelstand1_mc._alpha = poke;
}
barrelstand1_mc.swapDepths(20022);
barrelstand1_mc.gotoAndStop(24);
barrelstand2_mc._x = 326;
barrelstand2_mc._y = 429;
barrelstand2_mc._rotation = rub;
if (frontalpha == 100 || rubs < 5) {
barrelstand2_mc._alpha = poke;
}
barrelstand2_mc.swapDepths(20033);
barrelstand2_mc.gotoAndStop(27);
barrelstand3_mc._x = 321;
barrelstand3_mc._y = 233;
barrelstand3_mc._rotation = -rub;
if (frontalpha == 100 || rubs < 5) {
barrelstand3_mc._alpha = poke;
}
barrelstand3_mc.swapDepths(20034);
barrelstand3_mc.gotoAndStop(28);
barrelstand4_mc._x = -18 + rub;
barrelstand4_mc._y = -124 + rub + fadjy;
barrelstand4_mc._rotation = 45 - parma;
barrelstand4_mc.swapDepths(20025);
barrelstand4_mc.gotoAndStop(26);
}
function dokittylick() {
if (Key.isDown(79)) {
pleasure = 96;
ldepth = 10;
}
if (ljump) {
++ljump;
if (ljump > 6) {
ljump = 0;
}
}
if (sljump) {
sljump += 0.5;
if (sljump > 6) {
sljump = 0;
}
}
if (ssljump) {
ssljump += 0.3;
if (ssljump > 6) {
ssljump = 0;
}
}
kjumptab = [0, 1, 2, 3, 2, 1, 0, 0];
jpleasure = 100 - pleasure;
p50 = pleasure - 50;
if (p50 < 0) {
p50 = 0;
}
jumpy = kjumptab[ljump] * (jpleasure / 100);
sjumpy = kjumptab[floor(sljump)] * (p50 / 50);
ssjumpy = kjumptab[floor(ssljump)] * (p50 / 50);
if (spasm) {
--spasm;
}
if (frontalpha < 100) {
frontalpha += 10;
}
if (attach == 0) {
mady = 0;
madx = 0;
lha = 0;
attacharrow = 1;
arrowx = -155;
arrowy = 60;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
omousex = mousex;
omousey = mousey;
attacharrow = 0;
}
} else {
if (attach == 1) {
mdx = mousex - attachx;
if (mdx < 0) {
mdx = 0;
}
if (mdx > 90) {
mdx = 90;
attach = 2;
attachx = mousex;
attachy = mousey;
la = 0;
ldepth = 2;
mdxrst = 0;
}
madx = cosine(90 - mdx) * 131;
mady = cosine(90 - mdx) * 43;
mdy = 0;
mdx = 0;
} else {
if (attach == 2) {
ala = -rad2deg(-Math.atan2(mousex - 320 - pussyx, mousey - 240 - pussyy));
ara = -ala + 90;
if (ala < 0 && oala > 0) {
if (ldepth < 10) {
ldepth += 0.5;
}
}
oala = ala;
if (ala > la) {
dx = ala - la;
la += dx / 4;
} else {
if (ala > la - 360 && la > 0 && ala < 0) {
la -= 360;
dx = ala - la;
la += dx / 4;
}
}
la45 = la + 45;
if (la45 > 90 && ola45 < 90) {
ljump = 1;
sljump = 0.5;
ssljump = 0.5;
if (pleasure < 100) {
pleasure += 2;
if (pleasure < 80) {
if ((pleasure / 2 & 1) == 0) {
say('moan');
}
} else {
say('moan');
}
} else {
if (cumming < 8) {
++cumming;
spasm = 20;
sayfile('o' + cumming + '.mp3');
if (cumming == 8) {
autopilot = 1;
lspeed = 10;
attach = 3;
arrowcursor = 0;
}
}
}
}
ola45 = la45;
madx = 131 + sine(la + 0) * ldepth;
mady = 43 + cosine(la) * ldepth * 0.5;
lha = sine(la) * (ldepth * 0.15);
tlick = -14 + sine(la + 45) * (10 + ldepth / 2);
} else {
if (attach == 3) {
la += lspeed;
if (la >= 360) {
la -= 360;
}
lha = kpy * 0.3;
tlick = -9;
la45 = la + 45;
if (la45 > 90 && ola45 < 90) {
if (ldepth > 0) {
--ldepth;
}
if (pleasure > 0) {
pleasure -= 10;
}
if (lspeed > 0) {
lspeed -= 0.5;
}
sljump = 0.5;
ssljump = 0.5;
t = pleasure / 20;
if (t > 0) {
sayfile('o' + t + '.mp3');
}
}
ola45 = la45;
if (pleasure == 0) {
attach = 4;
}
} else {
if (attach == 4) {
if (tlick > -16) {
tlick -= 0.25;
}
}
}
}
}
}
kpdepth = 2 * (pleasure / 100);
kpx = -(sine(la) * kpdepth) / 2;
kpy = -(cosine(la) * kpdepth);
kx = -15 + kpx;
ky = 95 - kpy;
hipsa = ssjumpy + spasadd * (cumming / 8);
absoa = 23;
absradius = 178;
absa = 0;
xadd = sine(absoa + hipsa) * absradius;
yadd = -cosine(absoa + hipsa) * absradius;
kabsx = kx + xadd;
kabsy = ky + yadd;
lloa = 126;
llradius = 59;
lla = 0;
xadd = sine(lloa + hipsa) * llradius;
yadd = -cosine(lloa + hipsa) * llradius;
llx = kx + xadd;
lly = ky + yadd;
rloa = -13;
rlradius = 175;
rla = 0;
xadd = sine(rloa + hipsa) * rlradius;
yadd = -cosine(rloa + hipsa) * rlradius;
rlx = kx + xadd;
rly = ky + yadd;
spastab = [0, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 1, 0, 0, 0, 0];
spasadd = spastab[spasm];
barrelstand1_mc._x = 320 + kx + jumpy / 4;
barrelstand1_mc._y = 240 + ky;
barrelstand1_mc._rotation = -45 + hipsa + jumpy / 8;
barrelstand1_mc.swapDepths(20022);
barrelstand1_mc.gotoAndStop(36);
barrelstand2_mc._x = 320 + kabsx + jumpy / 4;
barrelstand2_mc._y = 240 + kabsy;
barrelstand2_mc._rotation = -45 + absa - sjumpy / 2 + spasadd * (cumming / 8);
barrelstand2_mc.swapDepths(20023);
barrelstand2_mc.gotoAndStop(37);
barrelstand6_mc._x = 320 + llx + jumpy / 4;
barrelstand6_mc._y = 240 + lly;
barrelstand6_mc._rotation = 45 + lla + hipsa - jumpy / 4 + ssjumpy / 4;
barrelstand6_mc.swapDepths(20024);
barrelstand6_mc.gotoAndStop(38);
barrelstand7_mc._x = 320 + rlx + jumpy / 4;
barrelstand7_mc._y = 240 + rly;
barrelstand7_mc._rotation = 45 + rla + hipsa - jumpy / 6 - ssjumpy / 1;
barrelstand7_mc.swapDepths(20021);
barrelstand7_mc.gotoAndStop(39);
upleasure = pleasure;
if (attach >= 3) {
upleasure = 100;
}
barrelstand8_mc._x = 320 + kx + jumpy / 4;
barrelstand8_mc._y = 240 + ky;
barrelstand8_mc._rotation = -45 + hipsa + jumpy / 8;
barrelstand8_mc._alpha = upleasure;
barrelstand8_mc.swapDepths(20025);
barrelstand8_mc.gotoAndStop(40);
barrelstand9_mc._x = 320 + kx + jumpy / 4;
barrelstand9_mc._y = 240 + ky;
barrelstand9_mc._rotation = -45 + hipsa + jumpy / 8 + spasadd;
barrelstand9_mc._alpha = 100 - upleasure;
barrelstand9_mc.swapDepths(20027);
barrelstand9_mc.gotoAndStop(41);
mon5 = '\tplease:' + upleasure + ' ldepth:' + ldepth + ' drift:' + drift;
pussyx = -16;
pussyy = 101;
if (attach == 3 || attach == 4) {
if (attach == 4) {
seekx = kx - 189 - drift;
drift += 0.5;
if (drift > 40 && goblackslow == 0) {
goblackslow = 1;
}
} else {
seekx = kx - 189;
}
seeky = ky;
dx = seekx - bx;
bx += dx / 8;
dy = seeky - by;
by += dy / 8;
} else {
bx = -346 + madx - ldepth / 2.5 + 2;
by = 61 + mady - 3;
}
barrelstand3_mc._x = 320 + bx;
barrelstand3_mc._y = 240 + by;
barrelstand3_mc._rotation = 0;
barrelstand3_mc.swapDepths(20034);
barrelstand3_mc.gotoAndStop(32);
barrelstand4_mc._x = 320 + bx;
barrelstand4_mc._y = 240 + by;
barrelstand4_mc._rotation = -45 - lha;
barrelstand4_mc.swapDepths(20037);
barrelstand4_mc.gotoAndStop(33);
ta = 87 + tlick * 0.18;
tradius = 181 + tlick;
xadd = sine(ta - lha) * tradius;
yadd = -cosine(ta - lha) * tradius;
tgx = bx + xadd;
tgy = by + yadd;
barrelstand5_mc._x = 320 + tgx;
barrelstand5_mc._y = 240 + tgy;
barrelstand5_mc._rotation = 0;
barrelstand5_mc.swapDepths(20026);
barrelstand5_mc.gotoAndStop(34);
}
function dotitfuck() {
if (scenestarted == 0) {
hideall();
frontalpha = 0;
fr = 0;
tsay = 0;
wait = 120;
scenestarted = 1;
fspeed = 50;
}
if (fspeed < 100) {
fspeed += 0.11;
}
mon1 = ' fspd:' + fspeed;
tffrtab = [0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0];
tffr = tffrtab[floor(fr)];
fr += fspeed / 100;
if (fr > 9) {
fr = 0;
}
if (wait) {
--wait;
} else {
if (tsay == 0) {
saythismed('Just be glad you only have to put up with me,', 2, 4, -210, -68);
tsay = 1;
wait = 60;
} else {
if (tsay == 1) {
saythismed('\rAnd my kinky little games.', 2, 4, -210, -68);
tsay = 2;
wait = 80;
} else {
if (tsay == 2) {
saythismed('If I were to turn you over to that horny bunch,', 2, 4, -210, -68);
tsay = 3;
wait = 60;
} else {
if (tsay == 3) {
saythismed('They\'d never stop banging your tender little ass!', 2, 4, -210, -68);
tsay = 4;
wait = 120;
} else {
if (tsay == 4) {
tsay = 5;
goblackslow = 1;
}
}
}
}
}
}
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._alpha = 100;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
bg_mc.gotoAndStop(56 + tffr);
}
function dunghelper() {
if (dphase == 8) {
if (onauto) {
autobutton_mc._x = 64;
autobutton_mc._y = 421;
autobutton_mc.swapDepths(22403);
autobutton_mc.gotoAndStop(2);
autobutton_mc.txt.text = 'Hint: Shoot while the rat is moving. Aim ahead of it a little.';
} else {
autobutton_mc._x = 33;
autobutton_mc._y = 455;
autobutton_mc.swapDepths(22403);
autobutton_mc.gotoAndStop(1);
}
} else {
autobutton_mc._x = -10000;
}
}
function doscene7() {
if (scenestarted == 0) {
init_taste();
}
dotaste();
tastebg();
dosuck();
doarrow();
arrow_mc.swapDepths(20253);
}
function init_taste() {
hideall();
tsay = 0;
frontalpha = 0;
attach = 0;
wait = 50;
phase = 0;
empty = 0;
ba = 0;
backoff = 0;
triedbite = 0;
licking = 0;
licks = 0;
pullingpants = 0;
pphide = 48;
pphide2 = 0;
pantsdown = 0;
pdadd = 0;
steppingup = 0;
cockdown = 36;
sausageleft = 0;
laa = 26;
switchhands = 0;
strokes = 0;
stroking = 0;
strokeal = 0;
strokeau = 0;
sucking = 0;
suckmouth = 0;
jack = 0;
ojack = 0;
laaadd = 0;
kha = -9;
ssa = 0;
steppingup2 = 0;
lla = 0;
rla = 0;
inmouthy = 0;
inmouthx = 0;
cocksucking = 0;
inmouth = 0;
cslaa = 0;
cslaaa = 0;
shaking = 0;
shakea = 0;
shakeadd = 0;
bffa = 0;
bffall = 0;
bffalladd = 0;
cumming = 0;
cummed = 0;
squirts = 0;
squirt = 0;
moandly = 0;
laxo = 0;
weave = 0;
weaveadd = 0;
weavea2 = 0;
weavea = 0;
sleep = 0;
cockfall = 0;
cdadd = 0;
cdlen = 0;
cdy = 0;
cdx = 0;
cumdrip = 0;
fails = 0;
raised = 0;
showplate(1, 'Captain\'s Cabin');
scenestarted = 1;
}
function tastebg() {
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._alpha = 100;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
if (phase >= 16) {
bg_mc.gotoAndStop(35);
} else {
if (phase >= 14) {
bg_mc.gotoAndStop(34);
} else {
if (phase >= 12) {
bg_mc.gotoAndStop(33);
} else {
if (phase >= 10) {
bg_mc.gotoAndStop(32);
} else {
if (phase >= 8) {
bg_mc.gotoAndStop(31);
} else {
if (phase >= 6) {
bg_mc.gotoAndStop(30);
} else {
if (phase >= 4) {
bg_mc.gotoAndStop(29);
} else {
if (phase >= 2) {
bg_mc.gotoAndStop(28);
} else {
bg_mc.gotoAndStop(27);
}
}
}
}
}
}
}
}
bg640_mc._x = 320;
bg640_mc._y = 240;
bg640_mc._alpha = frontalpha;
bg640_mc.swapDepths(20002);
if (phase >= 17) {
bg640_mc.gotoAndStop(36);
} else {
if (phase >= 15) {
bg640_mc.gotoAndStop(35);
} else {
if (phase >= 13) {
bg640_mc.gotoAndStop(34);
} else {
if (phase >= 11) {
bg640_mc.gotoAndStop(33);
} else {
if (phase >= 9) {
bg640_mc.gotoAndStop(31);
} else {
if (phase >= 7) {
bg640_mc.gotoAndStop(32);
} else {
if (phase >= 5) {
bg640_mc.gotoAndStop(31);
} else {
if (phase >= 3) {
bg640_mc.gotoAndStop(30);
} else {
bg640_mc.gotoAndStop(29);
}
}
}
}
}
}
}
}
beta_mc.swapDepths(20005);
beta_mc._x = 599;
beta_mc._y = 481;
if ((phase == 5 || phase == 9) && fails >= 5 && !raised) {
if (onauto) {
autobutton_mc._x = 64;
autobutton_mc._y = 421;
autobutton_mc.swapDepths(22403);
autobutton_mc.gotoAndStop(2);
autobutton_mc.txt.text = 'Move your hand down and wait until she starts to drink. Then you can push her.';
} else {
autobutton_mc._x = 33;
autobutton_mc._y = 455;
autobutton_mc.swapDepths(22403);
autobutton_mc.gotoAndStop(1);
}
} else {
autobutton_mc._x = -10000;
}
}
function dotaste() {
bloodx = -106 + adjx;
bloody = -143 + adjy;
mon1 = 'tsay:' + tsay;
if (tsay == 0) {
if (wait) {
--wait;
} else {
saythismed('\rCome. Eat!', 2, 4, bloodx + 20, bloody);
tsay = 1;
wait = 70;
}
} else {
if (tsay == 1) {
if (wait) {
--wait;
} else {
saythismed('The food is the finest the Royal navy has to offer.', 2, 4, bloodx + 20, bloody);
tsay = 2;
wait = 70;
}
} else {
if (tsay == 2) {
if (wait) {
--wait;
} else {
if (frontalpha < 100) {
frontalpha += 5;
} else {
saythismed('\rI\'m sure it will be to your liking.', 2, 3, bloodx + 40, bloody);
tsay = 3;
phase = 2;
wait = 120;
}
}
} else {
if (tsay == 3) {
if (wait) {
--wait;
if (wait < 50) {
if (frontalpha > 0) {
frontalpha -= 5;
}
}
} else {
saythismed('This is a very fine French wine!', 2, 11, bloodx + 20, bloody);
tsay = 4;
phase = 3;
wait = 70;
}
} else {
if (tsay == 4) {
if (wait) {
--wait;
} else {
if (frontalpha < 100) {
frontalpha += 5;
} else {
saythismed('Those fool may be incompetent,', 2, 10, bloodx + 40, bloody);
tsay = 5;
wait = 70;
}
}
} else {
if (tsay == 5) {
if (wait) {
--wait;
} else {
saythismed('But they do have the finest food and wine!', 2, 3, bloodx + 40, bloody);
tsay = 6;
phase = 4;
wait = 80;
}
} else {
if (tsay == 6) {
if (wait) {
--wait;
} else {
if (frontalpha > 0) {
frontalpha -= 5;
} else {
saythismed('\rDrink!', 2, 4, bloodx + 20, bloody);
tsay = 7;
wait = 70;
}
}
} else {
if (tsay == 7) {
if (wait) {
--wait;
} else {
phase = 5;
attach = 0;
empty = 0;
tsay = 8;
}
} else {
if (tsay == 8) {
dokdrink();
} else {
if (tsay == 9) {
if (wait) {
--wait;
} else {
saythismed('\rAh, good.', 2, 3, bloodx - 20, bloody + 10);
tsay = 10;
wait = 70;
}
} else {
if (tsay == 10) {
if (wait) {
--wait;
} else {
saythismed('If you get a bit tipsy from the wine,', 2, 10, bloodx - 20, bloody + 10);
tsay = 11;
wait = 45;
}
} else {
if (tsay == 11) {
if (wait) {
--wait;
} else {
saythismed('You\'ll better enjoy the next game I have in mind.', 2, 3, bloodx - 20, bloody + 20);
tsay = 12;
wait = 70;
}
} else {
if (tsay == 12) {
if (wait) {
--wait;
} else {
saythismed('\rI don\'t like your games.', 2, 4, bloodx + 140, bloody + 40);
tsay = 13;
wait = 50;
}
} else {
if (tsay == 13) {
if (wait) {
--wait;
} else {
saythismed('Oh, but I love games! I love to play!', 2, 3, bloodx - 20, bloody + 10);
tsay = 14;
wait = 80;
}
} else {
if (tsay == 14) {
if (wait) {
--wait;
} else {
saythismed('How is the wine?', 2, 10, bloodx - 20, bloody + 10);
tsay = 15;
wait = 50;
}
} else {
if (tsay == 15) {
if (wait) {
--wait;
} else {
saythismed('Echhhh. It\'s awful.\rI don\'t know how you drink that stuff.', 2, 4, bloodx + 140, bloody + 40);
tsay = 16;
wait = 70;
}
} else {
if (tsay == 16) {
if (wait) {
--wait;
if (wait == 40) {
sayfile('hiccup.mp3');
mmmSound.setVolume(50);
phase = 7;
}
} else {
if (frontalpha < 100) {
frontalpha += 5;
} else {
saythismed('Ah then, try the cognac.', 2, 10, bloodx + 20, bloody + 10);
tsay = 17;
wait = 60;
phase = 8;
}
}
} else {
if (tsay == 17) {
if (wait) {
--wait;
} else {
if (frontalpha > 0) {
frontalpha -= 5;
} else {
saythismed('Perhaps it is more to your liking.', 2, 10, bloodx - 20, bloody + 10);
tsay = 18;
wait = 70;
}
}
} else {
if (tsay == 18) {
if (wait) {
--wait;
} else {
phase = 9;
attach = 0;
empty = 0;
tsay = 19;
}
} else {
if (tsay == 19) {
dokdrink();
} else {
if (tsay == 20) {
if (wait) {
--wait;
} else {
saythismed('\rEeechhh!', 2, 4, bloodx + 140, bloody + 40);
tsay = 21;
wait = 70;
}
} else {
if (tsay == 21) {
if (wait) {
--wait;
if (wait == 40) {
sayfile('hiccup.mp3');
mmmSound.setVolume(50);
phase = 11;
}
} else {
if (frontalpha < 100) {
frontalpha += 5;
} else {
saythismed('Alright, here\'s the game.', 3, 10, bloodx - 0, bloody - 10);
tsay = 22;
wait = 80;
phase = 12;
}
}
} else {
if (tsay == 22) {
if (wait) {
--wait;
} else {
if (frontalpha > 0) {
frontalpha -= 5;
} else {
saythismed('Here is a plate full of sausages.', 3, 10, bloodx - 20, bloody - 10);
tsay = 23;
wait = 80;
}
}
} else {
if (tsay == 23) {
if (wait) {
--wait;
} else {
saythismed('I am going to blindfold you.', 3, 10, bloodx - 20, bloody - 10);
tsay = 24;
wait = 70;
}
} else {
if (tsay == 24) {
if (wait) {
--wait;
} else {
saythismed('You will then taste each of the sausages.', 3, 3, bloodx - 20, bloody - 10);
tsay = 25;
wait = 70;
}
} else {
if (tsay == 25) {
if (wait) {
--wait;
} else {
saythismed('You must identify what sort of sausage it is.', 3, 3, bloodx - 20, bloody - 10);
tsay = 26;
wait = 70;
}
} else {
if (tsay == 26) {
if (wait) {
--wait;
} else {
saythismed('If you get them all correct there will be a special reward!', 3, 3, bloodx - 20, bloody - 10);
tsay = 27;
wait = 80;
phase = 13;
}
} else {
if (tsay == 27) {
if (wait) {
--wait;
} else {
if (frontalpha < 100) {
frontalpha += 5;
} else {
saythismed('\rWhat sorts are there?', 2, 4, bloodx + 150, bloody + 40);
tsay = 28;
wait = 50;
phase = 14;
}
}
} else {
if (tsay == 28) {
if (wait) {
--wait;
} else {
if (frontalpha > 0) {
frontalpha -= 10;
} else {
saythismed('No, no no!\r No peeking!', 2, 10, bloodx - 20, bloody - 10);
tsay = 29;
wait = 70;
phase = 15;
}
}
} else {
if (tsay == 29) {
if (wait) {
--wait;
} else {
if (frontalpha < 100) {
frontalpha += 5;
} else {
saythismed('There are the usual sorts. You’ve had sausages before right?', 2, 3, bloodx - 0, bloody - 10);
tsay = 30;
wait = 70;
phase = 16;
}
}
} else {
if (tsay == 30) {
if (wait) {
--wait;
} else {
if (frontalpha > 0) {
frontalpha -= 5;
} else {
saythismed('It should be easy.', 2, 10, bloodx - 15, bloody - 20);
tsay = 31;
wait = 70;
phase = 17;
attach = 0;
ba = 0;
backoff = 0;
kha = -9;
}
}
} else {
if (tsay == 31) {
if (wait) {
--wait;
} else {
if (frontalpha < 100) {
frontalpha += 5;
} else {
saythismed('\rTry this one.', 2, 5, bloodx - 15, bloody - 40);
tsay = 32;
}
}
} else {
if (tsay == 33) {
saythismed('No, no no!\r No biting!', 2, 6, bloodx - 15, bloody - 40);
tsay = 34;
wait = 50;
} else {
if (tsay == 34) {
if (wait) {
--wait;
} else {
saythismed('The game is: "Lick the sausage!"', 2, 6, bloodx - 15, bloody - 40);
tsay = 35;
wait = 90;
}
} else {
if (tsay == 35) {
if (wait) {
--wait;
} else {
saythismed('Try again.\r Lick this time.', 2, 6, bloodx - 15, bloody - 40);
tsay = 36;
ba = 0;
attach = 0;
backoff = 0;
}
} else {
if (tsay == 37) {
saythismed('\rI\'m not sure of the flavor.', 2, 3, bloodx + 150, bloody + 80);
tsay = 38;
wait = 50;
} else {
if (tsay == 38) {
if (wait) {
--wait;
} else {
saythismed('\rTry sucking on it.', 2, 5, bloodx - 15, bloody - 40);
tsay = 39;
wait = 60;
}
} else {
if (tsay == 39) {
if (wait) {
--wait;
} else {
saythismed('May I?\r I thought I could only lick.', 2, 3, bloodx + 150, bloody + 80);
tsay = 40;
wait = 70;
}
} else {
if (tsay == 40) {
if (wait) {
--wait;
} else {
saythismed('\rSucking is good.', 2, 5, bloodx - 15, bloody - 40);
tsay = 41;
backoff = 4;
}
} else {
if (tsay == 41) {
} else {
if (tsay == 42) {
saythismed('\rJust no biting!', 2, 5, bloodx - 15, bloody - 60);
tsay = 43;
} else {
if (tsay == 44) {
saythismed('Mmmmmm, suck it.\r Suck it hard.', 2, 6, bloodx - 15, bloody - 60);
tsay = 45;
} else {
if (tsay == 46) {
saythismed('\r Suck the juice out of it.', 2, 6, bloodx - 15, bloody - 60);
tsay = 47;
} else {
if (tsay == 48) {
saythismed('There is no juice. Its all dried and shriviled.', 2, 3, bloodx + 150, bloody + 80);
tsay = 49;
wait = 60;
} else {
if (tsay == 49) {
if (wait) {
--wait;
} else {
saythismed('You\'re right. This one is over cooked.', 2, 6, bloodx - 15, bloody - 60);
tsay = 50;
wait = 60;
}
} else {
if (tsay == 50) {
if (wait) {
--wait;
} else {
saythismed('Let\'s try a different one. A nice plump juicy one this time.', 2, 5, bloodx - 15, bloody - 60);
tsay = 51;
wait = 80;
}
} else {
if (tsay == 51) {
if (wait) {
--wait;
} else {
phase = 18;
steppingup2 = 1;
tsay = 52;
}
} else {
if (tsay == 53) {
saythismed('\rTaste this.', 2, 5, bloodx + 150, bloody - 60);
tsay = 54;
} else {
if (tsay == 55) {
saythismed('Oh yeah. Suck it. Suck it hard.', 2, 6, bloodx + 150, bloody - 60);
tsay = 56;
} else {
if (tsay == 57) {
saythismed('The juice is about to come out! Suck it!', 2, 6, bloodx + 150, bloody - 60);
tsay = 58;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function dokdrink() {
if (empty >= 20) {
ba *= 0.7;
lkaa *= 0.7;
kaa = sine(lkaa * 2) * 45;
if (ba < 1 && kaa < 1) {
if (phase == 5) {
phase = 6;
} else {
phase = 10;
}
if (frontalpha > 0) {
frontalpha -= 5;
} else {
barrelstand8_mc._x = -10000;
barrelstand7_mc._x = -10000;
barrelstand6_mc._x = -10000;
barrelstand5_mc._x = -10000;
barrelstand4_mc._x = -10000;
barrelstand3_mc._x = -10000;
barrelstand2_mc._x = -10000;
barrelstand1_mc._x = -10000;
if (tsay == 8) {
tsay = 9;
} else {
tsay = 20;
}
wait = 10;
return undefined;
}
}
} else {
if (attach == 0) {
if (frontalpha < 100) {
frontalpha += 5;
}
arrowx = -196;
arrowy = 168;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
omousey = mousey;
attacharrow = 0;
}
ba = 0;
kaa = 0;
lkaa = 0;
dtilt = 0;
tilt = 0;
k4 = 0;
walpha1 = 100;
walpha2 = 0;
raised = 0;
backedoff = 0;
maxk4 = 0;
breset = 1;
empty = 0;
fails = 0;
failreset = 0;
} else {
mdx = attachy - mousey;
if (mdx < -40) {
mdx = -40;
}
mmax = 180;
if (mdx > mmax) {
mdx = mmax;
}
dv = 4.090909090909091;
la = mdx / dv;
xa = sine(mdx / 2) * 45;
ba = la;
k4 = floor(lkaa / 4);
if (breset) {
bmax = (k4 + 1) * 4;
} else {
bmax = k4 * 4;
}
if (!raised && bmax > 4) {
bmax = 4;
}
if (ba > bmax) {
ba = bmax;
}
b4 = floor(ba / 4);
k4 = floor(lkaa / 4);
if (!breset) {
if (b4 < k4 - 1) {
breset = 1;
}
}
if (k4 > maxk4) {
maxk4 = k4;
}
if (maxk4 >= 11) {
++empty;
}
minlkaa = maxk4 * 4;
if (raised && minlkaa < 2) {
minlkaa = 2;
}
if (lkaa < 2 && raised) {
lkaa += 0.125;
} else {
if (b4 > k4) {
lkaa += 0.25;
if (!raised && failreset && lkaa >= 2.25) {
++fails;
failreset = 0;
}
if (lkaa >= bmax) {
breset = 0;
}
} else {
if (b4 < k4 - 1) {
lkaa -= 0.25;
if (lkaa < minlkaa) {
lkaa = minlkaa;
failreset = 1;
}
}
}
}
if (b4 <= -3 && !onauto) {
++backedoff;
} else {
backedoff = 0;
}
if (!raised && backedoff >= 40) {
raised = 1;
}
if (!raised && lkaa > 2) {
lkaa = 2;
}
if (lkaa < 0) {
lkaa = 0;
}
mon1 = 'b4:' + b4 + ' k4:' + k4 + ' bmax:' + bmax + ' Bsrt:' + breset + ' fails:' + fails + ' fr:' + failreset + ' rai:' + raised;
d12 = 4;
tilt = floor(lkaa / d12);
modu = (lkaa % d12) * 25;
m = (modu - 50) * 2;
if (m < 0) {
m = 0;
}
if (m > 100) {
m = 100;
}
walpha1 = 100 - m;
m = modu * 2;
if (m > 100) {
m = 100;
}
walpha2 = m;
kaa = sine(lkaa * 2) * 45;
}
}
ufrontalpha = frontalpha;
if (phase == 9) {
if (ufrontalpha > 50) {
ufrontalpha = 50;
}
}
if (walpha1 > ufrontalpha) {
walpha1 = ufrontalpha;
}
if (walpha2 > ufrontalpha) {
walpha2 = ufrontalpha;
}
bx = -441;
by = 73;
kx = 193;
ky = 108;
khx = kx - 40;
khy = ky - 132;
kax = kx;
kay = ky;
kaah = kaa;
if (kaah > 23) {
kaah = 23;
}
xs = kaa - 23;
if (xs < 0) {
xs = 0;
}
xxs = xs - 15;
if (xxs < 0) {
xxs = 0;
}
handxadd = xs * 1.1;
handyadd = xs * 4.2;
handxadd += xxs * -1.3;
wga = kaa * 2.1;
kha = kaah * 0.8;
karad = 291;
koa = -88;
xadd = sine(koa + kaah) * karad;
yadd = -cosine(koa + kaah) * karad;
wgx = kx + xadd;
wgy = ky + yadd;
mon2 = 'lkaa:' + lkaa + ' ba:' + floor(ba) + ' tilt:' + tilt + ' m:' + modu;
barrelstand1_mc._x = 320 + kx;
barrelstand1_mc._y = 240 + ky;
barrelstand1_mc._rotation = 0;
barrelstand1_mc._alpha = frontalpha;
barrelstand1_mc.swapDepths(20022);
barrelstand1_mc.gotoAndStop(43);
barrelstand2_mc._x = 320 + khx;
barrelstand2_mc._y = 240 + khy;
barrelstand2_mc._rotation = 30 + kha;
barrelstand2_mc._alpha = frontalpha;
barrelstand2_mc.swapDepths(20025);
barrelstand2_mc.gotoAndStop(44);
barrelstand3_mc._x = 320 + kax;
barrelstand3_mc._y = 240 + kay;
barrelstand3_mc._rotation = -45 + kaa;
barrelstand3_mc._alpha = frontalpha;
barrelstand3_mc.swapDepths(20024);
barrelstand3_mc.gotoAndStop(45);
barrelstand4_mc._x = 320 + kax - handxadd;
barrelstand4_mc._y = 240 + kay - handyadd;
barrelstand4_mc._rotation = -45 + kaah;
barrelstand4_mc._alpha = frontalpha;
barrelstand4_mc.swapDepths(20035);
barrelstand4_mc.gotoAndStop(46);
barrelstand5_mc._x = 320 + wgx - handxadd;
barrelstand5_mc._y = 240 + wgy - handyadd;
barrelstand5_mc._rotation = wga;
barrelstand5_mc._alpha = frontalpha;
barrelstand5_mc.swapDepths(20026);
barrelstand5_mc.gotoAndStop(47);
if (tilt < 0) {
tilt = 0;
}
barrelstand6_mc._x = 320 + wgx - handxadd;
barrelstand6_mc._y = 240 + wgy - handyadd;
barrelstand6_mc._rotation = wga;
barrelstand6_mc._alpha = walpha1;
barrelstand6_mc.swapDepths(20027);
barrelstand6_mc.gotoAndStop(48 + tilt);
barrelstand8_mc._x = 320 + wgx - handxadd;
barrelstand8_mc._y = 240 + wgy - handyadd;
barrelstand8_mc._rotation = wga;
barrelstand8_mc._alpha = walpha2;
barrelstand8_mc.swapDepths(20028);
barrelstand8_mc.gotoAndStop(49 + tilt);
barrelstand7_mc._x = 320 + bx;
barrelstand7_mc._y = 240 + by;
barrelstand7_mc._rotation = 62 - ba;
barrelstand7_mc._alpha = frontalpha;
barrelstand7_mc.swapDepths(20021);
barrelstand7_mc.gotoAndStop(61);
}
function dosuck() {
if (phase < 17) {
return undefined;
}
mon2 = 'cd:' + cumdrip + ' cdy:' + cdy;
if (frontalpha < 100) {
} else {
if (backoff == 2) {
}
}
if (cummed) {
if (squirt > 1) {
--squirt;
} else {
if (squirt < -1) {
++squirt;
}
}
ba = sba + squirt * -0.4;
if (mdx > -90) {
mdx -= 0.5;
}
shakeadd = 0;
if (ioff > 0) {
ioff -= 0.05;
}
inmouth = sine(mdx) * (insertdepth / 8) + insertdepth / 8 + ioff + shakeadd;
inmouthx = inmouth * 4;
inmouthy = -inmouthx / 5;
if (inmouthx > 10) {
suckmouth = 3;
} else {
if (inmouthx > 9) {
suckmouth = 2;
} else {
if (inmouthx > 8) {
suckmouth = 4;
} else {
suckmouth = 4;
if (laa < 40) {
dx = 40 - laa;
laa += dx / 8;
laxo = laa * 3;
}
if (weave < 3 && !sleep) {
weave += 0.0125;
weavea += 7;
weaveadd = sine(weavea) * weave;
weavea2 += 4;
weaveadd += sine(weavea2) * weave;
if (weave >= 3) {
sleep = 1;
}
} else {
if (sleep) {
if (weave > 0) {
weave -= 0.1;
weavea += 7;
weaveadd = sine(weavea) * weave;
weavea2 += 4;
weaveadd += sine(weavea2) * weave;
} else {
sleep = 2;
dx = weaveadd + 30;
weaveadd -= dx / 32;
if (!goblackslow) {
goblackslow = 1;
}
}
}
}
if (cockfall < 8) {
dx = 8.1 - cockfall;
cockfall += dx / 8;
} else {
cockfall += 0.05;
}
}
}
}
kha = -9 + inmouth * -0.76;
rla = inmouth * 0.36;
lla = inmouth * 0.4;
inmouth7 = inmouth;
if (inmouth7 > 7) {
inmouth7 = 7;
}
inmouth12 = inmouth - 12;
if (inmouth12 < 0) {
inmouth12 = 0;
}
cockdown = -4 + inmouth7 * 0.27;
cockdown += inmouth12 * -0.77;
} else {
if (cocksucking) {
if (!attach) {
mm = 0;
arrowx = 5;
arrowy = 85;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
omousey = mousey;
attacharrow = 0;
strokes = 0;
cslaaa = 0;
cslaa = 0;
reset = 0;
insertdepth = 20;
insertdepth = 70;
ioff = 0;
strokes = 0;
mdx = -90;
sba = ba;
}
} else {
if (Key.isDown(67)) {
cumming = 1;
if (!bffall) {
bffall = 1000;
}
}
if (cumming) {
if (squirt) {
mdx += (30.1 - squirt) / 3;
} else {
mdx += 20;
}
if (mdx > 360) {
mdx -= 360;
}
if (mdx > 90) {
squirt = 180 - mdx;
} else {
squirt = mdx;
}
squirt -= 60;
if (squirt < 0) {
squirt = 0;
}
shaking = squirt / 2;
if (mdx > 91 && squirts >= 8) {
cummed = 1;
}
ba = sba + squirt * -0.4;
if (mdx >= 105 && omdx < 105) {
cdx = cdsx;
cdy = cdsy;
cdadd = 1;
cdlen = 100;
cumdrip = 1;
}
omdx = mdx;
mon2 = 'cd:' + cumdrip + ' cdy:' + cdy;
} else {
amdx = mousex - attachx;
if (amdx < 0) {
amdx = 0;
}
if (amdx > 180) {
amdx = 180;
}
amdx -= 90;
dx = amdx - mdx;
mdx += dx / 8;
shaking = (mdx - 66) / 2;
shaking *= (insertdepth - 20) / 80;
if (shaking < 0) {
shaking = 0;
}
}
if (bffalladd && bffall < 1000) {
bffall += bffalladd;
++bffalladd;
}
if (mdx > 10 && reset) {
if (cummed) {
} else {
if (cumming) {
insertdepth = 100;
if (squirts < 8) {
++squirts;
}
sq = squirts;
if (sq > 7) {
sq -= 5;
}
if (!cummed) {
sayy = 'mlove' + sq + '.mp3';
}
sayfile(sayy);
moandly = 6;
} else {
if (insertdepth < 100) {
++insertdepth;
if (insertdepth == 100) {
cumming = 1;
}
say('muhh');
yesSound.setVolume(70 * (insertdepth / 80));
if (insertdepth >= 75) {
++bffa;
if (bffa >= 20 && bffalladd == 0) {
bffalladd = 1;
}
}
if (insertdepth == 50) {
tsay = 55;
}
if (insertdepth == 80) {
tsay = 57;
}
}
}
}
reset = 0;
++strokes;
}
if (mdx < 10 && !reset) {
reset = 1;
}
if (moandly) {
--moandly;
if (moandly == 0) {
talking = 0;
say('moan');
yesSound.setVolume(20);
}
}
inmouth = sine(mdx) * (insertdepth / 8) + insertdepth / 8 + ioff + shakeadd;
inmouthx = inmouth * 4;
inmouthy = -inmouthx / 5;
if (inmouthx > 10) {
suckmouth = 3;
if (ioff < 3) {
ioff += 0.05;
}
} else {
if (inmouthx > 9) {
suckmouth = 2;
} else {
if (inmouthx > 8) {
suckmouth = 1;
} else {
suckmouth = 0;
}
}
}
shakea += 100;
shakeadd = sine(shakea) * (shaking / 100);
kha = -9 + inmouth * -0.76;
if (cslaa < 90) {
cslaa += 2;
}
cslaaa = sine(cslaa) * 22;
rla = inmouth * 0.36;
lla = inmouth * 0.4;
inmouth7 = inmouth;
if (inmouth7 > 7) {
inmouth7 = 7;
}
inmouth12 = inmouth - 12;
if (inmouth12 < 0) {
inmouth12 = 0;
}
cockdown = -4 + inmouth7 * 0.27;
cockdown += inmouth12 * -0.77;
}
} else {
if (steppingup2) {
if (wait) {
--wait;
} else {
lla = sine(steppingup2) * 20 - 20;
rla = -lla;
if (steppingup2 < 90) {
steppingup2 += 3;
if (steppingup2 >= 90) {
tsay = 53;
cocksucking = 1;
}
}
if (laa > -19) {
dx = laa + 19.5;
laa -= dx / 8;
}
if (ajacka < 270) {
ajacka += jackspeed / 2;
if (ajacka >= 360) {
ajacka -= 360;
}
}
jack = sine(ajacka) * -9 - 9;
strokeal = 26 + jack;
strokeau = 7 + jack * 0.37;
}
} else {
if (sucking) {
if (sucking == 5) {
if (tsay >= 50 && laa < 45) {
if (laa < 45) {
++laa;
}
}
if (tsay >= 51) {
if (strokes < 25) {
strokes += 0.1;
}
}
} else {
if (sucking == 4) {
if (mdx > 0) {
mdx -= 5;
}
if (mdx <= 0) {
mdx = 0;
tsay = 48;
sucking = 5;
}
mm = sine(mdx / 2) * -20;
laaadd = mm * -4.2;
laa = 8.300000000000001 + mm;
if (mm > -13) {
suckmouth = 0;
}
} else {
if (!attach) {
mm = 0;
arrowx = -127;
arrowy = 98;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
omousey = mousey;
attacharrow = 0;
strokes = 0;
}
} else {
amdx = mousex - attachx;
if (amdx < 0) {
amdx = 0;
}
if (amdx > 180) {
amdx = 180;
}
dx = amdx - mdx;
mdx += dx / 8;
mm = sine(mdx / 2) * -20;
if (sucking == 2 && mm > -14) {
mm = -14;
}
if (sucking == 3 && mm > -14) {
sucking = 4;
attach = 0;
} else {
if (mm > -17 && omm < -17) {
if (strokes < 4) {
++strokes;
if (strokes == 4) {
tsay = 44;
}
} else {
if (tsay == 45) {
if (strokes < 8) {
++strokes;
}
if (strokes == 8) {
tsay = 46;
}
} else {
if (tsay == 47) {
if (strokes < 12) {
++strokes;
}
if (strokes == 12 && sucking == 2) {
sucking = 3;
}
}
}
}
}
}
omm = mm;
laaadd = mm * -4.2;
laa = 8.300000000000001 + mm;
if (mm < -13.4) {
suckmouth = 2;
} else {
if (mm < -12.8) {
suckmouth = 1;
} else {
suckmouth = 0;
}
}
kha = -9 + mm + 13;
if (kha > -9) {
kha = -9;
}
ssa = mm + 13;
if (ssa > 0) {
ssa = 0;
}
ssa *= -0.36;
if (sucking == 1 && mm < -14) {
sucking = 2;
}
}
}
}
umm = mm + 13;
if (umm > 0) {
umm = 0;
}
jackspeed = 2 + strokes + umm * -1;
ajacka += jackspeed;
if (ajacka >= 360) {
ajacka -= 360;
}
jack = sine(ajacka) * -9 - 9;
strokeal = 26 + jack;
strokeau = 7 + jack * 0.37;
} else {
if (stroking) {
if (stroking == 1) {
dx = 7 - strokeau;
if (dx > 0.5) {
strokeau += dx / 8;
} else {
strokeau = 7;
}
dy = 26 - strokeal;
if (dy > 0.5) {
strokeal += dy / 8;
} else {
strokeal = 26;
}
if (strokeau == 7 && strokeal == 26) {
stroking = 2;
strokes = 0;
}
} else {
if (!attach) {
arrowx = -259;
arrowy = 178;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
omousey = mousey;
attacharrow = 0;
}
} else {
jacka = mousex - attachx;
if (jacka < 0) {
jacka = 0;
}
if (jacka > 180) {
jacka = 180;
}
jack = sine(jacka / 2) * -18;
strokeal = 26 + jack;
strokeau = 7 + jack * 0.37;
if (jack < -9 && ojack > -9) {
++strokes;
}
ojack = jack;
if (strokes > 6) {
stroking = 0;
sucking = 1;
attach = 0;
ajacka = 0;
}
}
}
} else {
if (switchhands) {
if (laa > 8) {
dx = laa - 8;
laa -= dx / 8;
}
if (ba < -8) {
dx = -8 - ba;
ba += dx / 8;
}
if (laa <= 8.5 && ba >= -8.5) {
sausageleft = 1;
switchhands = 0;
tsay = 42;
stroking = 1;
attach = 0;
}
} else {
if (steppingup) {
if (steppingup < 90) {
steppingup += 3;
} else {
switchhands = 1;
}
if (cockdown > 0) {
cockdown -= 4;
}
} else {
if (pullingpants) {
if (pullingpants == 3) {
if (pantsdown < 200) {
pantsdown += pdadd;
pdadd += 0.2;
} else {
pullingpants = 0;
steppingup = 1;
}
++pphide2;
} else {
if (pphide > 5) {
} else {
if (attach == 0) {
arrowx = -222;
arrowy = 81;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
omousey = mousey;
attacharrow = 0;
}
} else {
pantsdown = mousey - attachy;
if (pantsdown < 0) {
pantsdown = 0;
}
if (pantsdown > 120) {
pullingpants = 3;
pdadd = 1;
}
}
}
}
} else {
if (attach == 0 && backoff == 0) {
arrowx = -112;
arrowy = 164;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
omousey = mousey;
attacharrow = 0;
lwait = 10;
}
ba = 0;
} else {
if (triedbite == 1 && !licking) {
if (attach == 0) {
arrowx = -112;
arrowy = 164;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachy = mousey;
attachx = mousex;
omousey = mousey;
attacharrow = 0;
lwait = 10;
}
ba = 0;
} else {
mdx = attachy - mousey;
if (mdx < 0) {
mdx = 0;
}
mmax = 180;
if (mdx > mmax) {
mdx = mmax;
if (lwait > 5) {
--lwait;
} else {
licking = 1;
licks = 0;
lreset = 0;
}
}
ba = sine(mdx / 2) * 10;
}
} else {
if (licking) {
mdx = attachy - mousey;
if (mdx < 140) {
mdx = 140;
lreset = 1;
}
if (mdx > 180) {
mdx = 180;
if (lreset) {
++licks;
if (licks >= 6) {
backoff = 3;
licking = 0;
triedbite = 2;
}
lreset = 0;
}
}
xs = 180 - mdx;
ba = sine(mdx / 2) * 10;
} else {
if (backoff == 0) {
mdx = attachy - mousey;
if (mdx < 0) {
mdx = 0;
}
mmax = 180;
if (mdx > mmax) {
mdx = mmax;
if (lwait) {
--lwait;
} else {
backoff = 1;
tsay = 33;
attach = 0;
}
}
ba = sine(mdx / 2) * 9;
} else {
if (backoff == 1) {
if (mdx > 1) {
mdx *= 0.7;
} else {
mdx = 0;
backoff = 2;
triedbite = 1;
}
ba = sine(mdx / 2) * 9;
} else {
if (backoff == 3) {
if (mdx > 1) {
mdx *= 0.9;
} else {
mdx = 0;
backoff = 2;
triedbite = 3;
tsay = 37;
attach = 0;
}
ba = sine(mdx / 2) * 10;
} else {
if (backoff == 4) {
if (pullingpants) {
} else {
if (mdx > -179) {
dx = mdx + 180;
mdx -= dx / 6;
} else {
triedbite = 3;
pullingpants = 1;
}
}
ba = sine(mdx / 2) * 35;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
mon1 = 'backoff:' + backoff + ' tsay:' + tsay + ' ba:' + floor(ba) + ' laa:' + floor(laa) + ' kha:' + floor(kha) + ' str:' + strokes;
pmx = 193;
pmy = -4 + inmouth;
if (sleep == 2) {
pmy -= weaveadd * 4;
pmx -= weaveadd * 3;
}
tgx = pmx - 90 + xs * 0.09;
tgy = pmy + 10;
ta = xs * -0.19;
stepu = sine(steppingup) * 90;
stepu2x = sine(steppingup2) * 192;
stepu2y = sine(steppingup2) * 110;
bx = -352 + stepu / 3 + stepu2x + inmouthx;
by = 114 - stepu - stepu2y + inmouthy;
bax = bx + 32;
bay = by - 354;
barx = bax + inmouth * 90 / 100 + squirt * 2;
bary = bay;
brlx = bx - 22;
brly = by + 151;
bllx = bx + 53;
blly = by + 101;
bfrad = 116;
bfoa = -59;
xadd = sine(bfoa + kha) * bfrad;
yadd = -cosine(bfoa + kha) * bfrad;
bfoldx = pmx + xadd;
bfoldy = pmy + yadd;
rarad = 381.2;
raoa = 193.5;
xadd = sine(raoa - ba + strokeau) * rarad;
yadd = -cosine(raoa - ba + strokeau) * rarad;
ebx = barx + xadd;
eby = bary + yadd;
bpx = bax + 49;
bpy = bay + 442;
cx = bax + 88 - 25;
cy = bay + 541;
ppx = bax + 92 - pphide - pphide2;
ppy = bay + 359 + pphide + pantsdown;
if (pullingpants == 1) {
if (pphide > 1) {
pphide *= 0.8;
} else {
pphide = 0;
pullingpants = 2;
}
}
if (sausageleft == 1) {
larad = 467;
laoa = 144;
xadd = sine(laoa + laa) * larad;
yadd = -cosine(laoa + laa) * larad;
ssx = barx + xadd;
ssy = bary + yadd + laaadd;
if (!sucking) {
ssa = 0;
}
} else {
rarad = 460.2;
raoa = 143.3;
ssa = 3;
xadd = sine(raoa - ba) * rarad;
yadd = -cosine(raoa - ba) * rarad;
ssx = barx + xadd;
ssy = bary + yadd;
}
cdrad = 91;
cdoa = -96;
xadd = sine(cdoa + kha) * cdrad;
yadd = -cosine(cdoa + kha) * cdrad;
cdsx = pmx + xadd;
cdsy = pmy + yadd;
barrelstand1_mc._x = 320 + pmx;
barrelstand1_mc._y = 240 + pmy;
barrelstand1_mc._rotation = -45 + kha + weaveadd;
barrelstand1_mc._alpha = frontalpha;
barrelstand1_mc.swapDepths(20122);
barrelstand1_mc.gotoAndStop(63);
barrelstand3_mc._x = 320 + pmx;
barrelstand3_mc._y = 240 + pmy;
barrelstand3_mc._rotation = 0;
barrelstand3_mc._alpha = frontalpha;
barrelstand3_mc.swapDepths(20121);
barrelstand3_mc.gotoAndStop(62);
barrelstand4_mc._x = 320 + pmx;
barrelstand4_mc._y = 240 + pmy;
barrelstand4_mc._rotation = -45 + kha + weaveadd;
barrelstand4_mc._alpha = frontalpha;
barrelstand4_mc.swapDepths(20163);
barrelstand4_mc.gotoAndStop(76);
barrelstand2_mc._x = 320 + pmx;
barrelstand2_mc._y = 240 + pmy;
barrelstand2_mc._rotation = -45 + kha + weaveadd;
barrelstand2_mc._alpha = frontalpha;
barrelstand2_mc.swapDepths(20123);
if (cummed) {
barrelstand2_mc.gotoAndStop(77);
} else {
if (suckmouth == 3) {
barrelstand2_mc.gotoAndStop(74);
} else {
if (suckmouth == 2) {
barrelstand2_mc.gotoAndStop(71);
} else {
if (licking || suckmouth == 1) {
barrelstand2_mc.gotoAndStop(66);
} else {
if (backoff == 1) {
barrelstand2_mc.gotoAndStop(65);
} else {
barrelstand2_mc.gotoAndStop(64);
}
}
}
}
}
barrelstand5_mc._x = 320 + pmx;
barrelstand5_mc._y = 240 + pmy;
barrelstand5_mc._rotation = -45 + kha + weaveadd;
barrelstand5_mc._alpha = frontalpha;
if (cocksucking) {
barrelstand5_mc.swapDepths(20164);
} else {
if (sucking) {
barrelstand5_mc.swapDepths(20157);
} else {
barrelstand5_mc.swapDepths(20128);
}
}
if (suckmouth == 4) {
barrelstand5_mc.gotoAndStop(77);
} else {
if (suckmouth == 3) {
barrelstand5_mc.gotoAndStop(75);
} else {
if (suckmouth == 2) {
barrelstand5_mc.gotoAndStop(72);
} else {
if (licking) {
barrelstand5_mc.gotoAndStop(69);
} else {
barrelstand5_mc.gotoAndStop(60);
}
}
}
}
barrelstand6_mc._x = 320 + tgx;
barrelstand6_mc._y = 240 + tgy;
barrelstand6_mc._rotation = ta;
barrelstand6_mc._alpha = frontalpha;
barrelstand6_mc.swapDepths(20127);
if (licking) {
barrelstand6_mc.gotoAndStop(70);
} else {
barrelstand6_mc.gotoAndStop(60);
}
barrelstand7_mc._x = 320 + bfoldx;
barrelstand7_mc._y = 240 + bfoldy + bffall;
barrelstand7_mc._rotation = -45 + kha + bffa;
barrelstand7_mc._alpha = frontalpha;
barrelstand7_mc.swapDepths(20170);
barrelstand7_mc.gotoAndStop(73);
if (cumming && squirts) {
barrelstand8_mc._x = 320 + pmx;
} else {
barrelstand8_mc._x = -10000;
}
barrelstand8_mc._y = 240 + pmy;
barrelstand8_mc._rotation = -45 + kha + weaveadd;
barrelstand8_mc._alpha = frontalpha;
barrelstand8_mc.swapDepths(20162);
cums = squirts / 2;
if (cums >= 4) {
cums = 3;
}
barrelstand8_mc.gotoAndStop(79 + cums);
if (cumdrip) {
barrelstand9_mc._x = 320 + cdx;
++cdlen;
cdy += cdadd;
++cdadd;
} else {
barrelstand9_mc._x = -10000;
}
barrelstand9_mc._y = 240 + cdy;
barrelstand9_mc._yscale = cdlen + 30;
barrelstand9_mc._xscale = 130;
barrelstand9_mc._rotation = 0;
barrelstand9_mc._alpha = frontalpha;
barrelstand9_mc.swapDepths(20161);
barrelstand9_mc.gotoAndStop(83);
box1_mc._x = 320 + bx;
box1_mc._y = 240 + by;
box1_mc._rotation = 0;
box1_mc._alpha = frontalpha;
box1_mc.swapDepths(20035);
box1_mc.gotoAndStop(93);
box2_mc._x = 320 + bx;
box2_mc._y = 240 + by;
box2_mc._rotation = inmouth * 31 / 100 + shakeadd + squirt * 0.3;
box2_mc._alpha = frontalpha;
box2_mc.swapDepths(20036);
box2_mc.gotoAndStop(94);
box3_mc._x = 320 + bllx;
box3_mc._y = 240 + blly;
box3_mc._rotation = 30 + lla;
box3_mc._alpha = frontalpha;
box3_mc.swapDepths(20031);
box3_mc.gotoAndStop(95);
box4_mc._x = 320 + brlx;
box4_mc._y = 240 + brly;
box4_mc._rotation = 45 + rla;
box4_mc._alpha = frontalpha;
box4_mc.swapDepths(20152);
box4_mc.gotoAndStop(96);
barrelside2_mc._x = 320 + barx;
barrelside2_mc._y = 240 + bary;
barrelside2_mc._rotation = 45 - ba + strokeau;
barrelside2_mc._alpha = frontalpha;
barrelside2_mc.swapDepths(20155);
barrelside2_mc.gotoAndStop(69);
barrelside7_mc._x = 320 + ebx;
barrelside7_mc._y = 240 + eby;
barrelside7_mc._rotation = 45 - ba + strokeal + cslaaa;
barrelside7_mc._alpha = frontalpha;
barrelside7_mc.swapDepths(20156);
barrelside7_mc.gotoAndStop(76);
barrelside8_mc._x = 320 + ebx;
barrelside8_mc._y = 240 + eby;
barrelside8_mc._rotation = 45 - ba + strokeal + cslaaa;
barrelside8_mc._alpha = frontalpha;
if (cocksucking && cslaaa >= 1) {
barrelside8_mc.swapDepths(20160);
} else {
barrelside8_mc.swapDepths(20139);
}
barrelside8_mc.gotoAndStop(77);
if (pullingpants) {
barrelside3_mc._x = 320 + ppx;
barrelside3_mc._y = 240 + ppy;
barrelside3_mc._rotation = pantsdown * -0.05;
barrelside3_mc._alpha = frontalpha;
barrelside3_mc.swapDepths(20030);
barrelside3_mc.gotoAndStop(70);
} else {
if (steppingup) {
barrelside3_mc._x = 320 + barx + inmouth * -64 / 10 + laxo - squirt * 2;
barrelside3_mc._y = 240 + bary + laaadd + inmouth * 33 / 10;
barrelside3_mc._rotation = 45 + laa + inmouth * -15 / 100;
barrelside3_mc._alpha = frontalpha;
barrelside3_mc.swapDepths(20020);
barrelside3_mc.gotoAndStop(74);
} else {
barrelside3_mc._x = -10000;
}
}
if (pantsdown < 200) {
barrelside4_mc._x = 320 + bpx + pantsdown * 0.18;
barrelside4_mc._y = 240 + bpy + pantsdown;
barrelside4_mc._rotation = 0;
barrelside4_mc._alpha = frontalpha;
barrelside4_mc.swapDepths(20153);
barrelside4_mc.gotoAndStop(71);
} else {
barrelside4_mc._x = -10000;
}
barrelside5_mc._x = 320 + cx;
barrelside5_mc._y = 240 + cy;
barrelside5_mc._rotation = 55 + cockdown + jack * 0.12 + cockfall;
barrelside5_mc._alpha = frontalpha;
barrelside5_mc.swapDepths(20140);
barrelside5_mc.gotoAndStop(72);
if (steppingup2 == 0) {
barrelside6_mc._x = 320 + ssx;
barrelside6_mc._y = 240 + ssy;
if (sausageleft) {
barrelside6_mc._rotation = 45 + laa + ssa;
} else {
barrelside6_mc._rotation = 45 - ba + ssa;
}
barrelside6_mc._alpha = frontalpha;
if (sausageleft) {
if (laa > 0) {
barrelside6_mc.swapDepths(20032);
} else {
barrelside6_mc.swapDepths(20124);
}
} else {
barrelside6_mc.swapDepths(20154);
}
barrelside6_mc.gotoAndStop(75);
} else {
barrelside6_mc._x = -10000;
}
}
function doscene8() {
if (scenestarted == 0) {
init_please();
}
if (phase == 0) {
dopose();
} else {
if (phase < 2) {
doplease();
} else {
dohandjob();
}
}
pleasebg();
dosquirt();
doarrow();
arrow_mc.swapDepths(24453);
if (phase == 2) {
arrow_mc._rotation = 180;
} else {
arrow_mc._rotation = 0;
}
}
function init_please() {
hideall();
tsay = 0;
frontalpha = 0;
bloodx = -147;
bloody = -113;
kittyx = 93;
kittyy = -172;
attach = 0;
wait = 50;
phase = 0;
kx = 90;
ky = 158;
bx = -80;
by = 167;
step = 0;
cmere = 0;
larma = 0;
ha = 0;
lookpussy = 0;
looktits = 0;
lookface = 0;
looked = 0;
motions = 0;
mdx = 0;
kneel = 0;
downa = 0;
attach = 1;
attachx = 156;
attachy = 266;
attacharrow = 0;
strokes = 0;
pullingdown = 0;
ea = 16;
wa = 0;
bodicedown = 0;
bdadd = 0;
tbd = 0;
hdx = 0;
mdx = 0;
jump = 0;
breath = 0;
uba = 0;
larma = 0;
larmy = 0;
larmx = 0;
larma2 = 0;
larmy2 = 0;
larmx2 = 0;
krarma = 0;
tha = 0;
ruby = 0;
rubx = 0;
lraa = 0;
braa = 0;
shortcut = 0;
sashy = 0;
flapy = 0;
ca = -22;
jacky = 0;
jackx = 0;
cockalignx = 0;
blink = 0;
blinkdel = 0;
klook = 0;
kha = 0;
kdown = 0;
bup = 0;
intense = 0;
grabbed = 0;
rlegdown = 0;
oospeed = 10;
ooa = 90;
oohes = 0;
ooadd = 0;
jacka = 0;
oook = 1;
dragy = 0;
dragging = 0;
hesitation = 0;
leftfree = 0;
cumming = 0;
isquirt();
squirtpending = 0;
squirt = 0;
shudder = 0;
cummed = 0;
jumpx = 0;
flying = 0;
waitstrokes = 0;
nipply = 0;
nippledrag = 0;
pose = 1;
tsay = -20;
frontalpha = 100;
scenestarted = 1;
}
function pleasebg() {
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._alpha = 100;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
if (phase == 0) {
if (pose <= 3) {
bg_mc.gotoAndStop(37);
} else {
bg_mc.gotoAndStop(38);
}
} else {
bg_mc.gotoAndStop(36);
}
bg640_mc._x = 320;
bg640_mc._y = 240;
bg640_mc._alpha = frontalpha;
bg640_mc.swapDepths(21502);
if (phase == 0) {
if (pose <= 2) {
bg640_mc.gotoAndStop(39);
} else {
if (pose <= 4) {
bg640_mc.gotoAndStop(40);
} else {
bg640_mc.gotoAndStop(41);
}
}
} else {
if (phase >= 2) {
bg640_mc.gotoAndStop(38);
} else {
if (tsay >= 1) {
bg640_mc.gotoAndStop(37);
}
}
}
beta_mc.swapDepths(23005);
beta_mc._x = 599;
beta_mc._y = 481;
}
function dopose() {
if (tsay == -20) {
if (wait) {
--wait;
} else {
saythismed('Ah yes! You’re turning into a right nice pirate you are!', 2, 3, bloodx + 20, bloody);
tsay = -19;
wait = 80;
}
} else {
if (tsay == -19) {
if (wait) {
--wait;
} else {
saythismed('The outfit does please me!', 2, 10, bloodx + 20, bloody);
tsay = -18;
wait = 90;
}
} else {
if (tsay == -18) {
if (wait) {
--wait;
} else {
saythismed('The pose is nice too. Can you do another?', 2, 10, bloodx + 20, bloody);
tsay = -17;
wait = 90;
}
} else {
if (tsay == -17) {
if (wait) {
--wait;
if (wait < 40) {
pose = 2;
if (frontalpha > 0) {
frontalpha -= 10;
}
}
} else {
saythismed('How is this?', 2, 10, kittyx + 20, kittyy);
tsay = -16;
wait = 60;
}
} else {
if (tsay == -16) {
if (wait) {
--wait;
} else {
saythismed('Mmmm, hot!\r More!', 2, 10, bloodx + 20, bloody);
tsay = -15.9;
wait = 120;
}
} else {
if (tsay == -15.9) {
if (wait) {
--wait;
if (wait < 60) {
pose = 3;
if (frontalpha < 100) {
frontalpha += 10;
}
}
} else {
saythismed('Ummmm', 2, 10, kittyx + 20, kittyy);
tsay = -15.8;
wait = 120;
}
} else {
if (tsay == -15.8) {
if (wait) {
--wait;
if (wait < 60) {
pose = 4;
if (frontalpha > 0) {
frontalpha -= 10;
}
}
} else {
tsay = -15;
wait = 90;
}
} else {
if (tsay == -15) {
if (wait) {
--wait;
if (wait < 30) {
pose = 5;
if (frontalpha < 100) {
frontalpha += 10;
}
}
} else {
saythismed('That\'s all I know. Bang only showed me those poses.', 2, 3, kittyx + 20, kittyy);
tsay = -14;
wait = 60;
}
} else {
if (tsay == -14) {
if (wait) {
--wait;
} else {
saythismed('Bang?', 2, 10, bloodx + 20, bloody);
tsay = -13;
wait = 50;
}
} else {
if (tsay == -13) {
if (wait) {
--wait;
} else {
saythismed('That\'s what they call the slave girl.', 2, 10, kittyx + 20, kittyy);
tsay = -12;
wait = 70;
}
} else {
if (tsay == -12) {
if (wait) {
--wait;
} else {
saythismed('She said you would like the poses.', 2, 10, kittyx + 20, kittyy);
tsay = -11;
wait = 70;
}
} else {
if (tsay == -11) {
if (wait) {
--wait;
} else {
saythismed('Ahh, and so right she is!', 2, 10, bloodx + 20, bloody);
tsay = -10.9;
wait = 80;
}
} else {
if (tsay == -10.9) {
if (wait) {
--wait;
} else {
saythismed('And what do they call you?', 2, 10, bloodx + 20, bloody);
tsay = -10.8;
wait = 80;
}
} else {
if (tsay == -10.8) {
if (wait) {
--wait;
} else {
saythismed('\rThey call me...', 2, 10, kittyx + 20, kittyy);
tsay = -10.7;
wait = 90;
}
} else {
if (tsay == -10.7) {
if (wait) {
--wait;
} else {
saythismed('They call me Pussy.', 2, 10, kittyx + 20, kittyy);
tsay = -10.5;
wait = 70;
}
} else {
if (tsay == -10.5) {
if (wait) {
--wait;
} else {
saythismed('One of them said, \'Captain\'s Pussy\' once.', 2, 10, kittyx + 20, kittyy);
tsay = -10.4;
wait = 70;
}
} else {
if (tsay == -10.4) {
if (wait) {
--wait;
} else {
saythismed('That\'s rather crude of them!', 2, 10, bloodx + 20, bloody);
tsay = -10.3;
wait = 70;
}
} else {
if (tsay == -10.3) {
if (wait) {
--wait;
} else {
saythismed('I\'ll make sure they call you \'Kitty\' from now on.', 2, 10, bloodx + 20, bloody);
tsay = -10;
wait = 90;
}
} else {
if (tsay == -10) {
if (wait) {
--wait;
} else {
saythismed('Come, over here. Take your boots off.', 2, 10, bloodx + 20, bloody);
tsay = -9;
wait = 80;
}
} else {
if (tsay == -9) {
if (wait) {
--wait;
} else {
tsay = 0;
phase = 1;
wait = 20;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (tsay >= -15 && tsay < -10) {
autobutton_mc._x = 33;
autobutton_mc._y = 455;
autobutton_mc.swapDepths(22403);
autobutton_mc.gotoAndStop(7);
if (buttonpress) {
tsay = -10;
wait = 0;
}
} else {
autobutton_mc._x = -10000;
}
mon2 = 'pose:' + pose + ' fa:' + frontalpha;
}
function doplease() {
if (tsay == 0) {
if (frontalpha > 0) {
frontalpha -= 10;
}
if (wait) {
--wait;
} else {
saythismed('If you are going to stay on this ship,', 2, 10, bloodx + 20, bloody);
tsay = 1;
wait = 50;
}
} else {
if (tsay == 1) {
if (wait) {
--wait;
} else {
saythismed('You will need to learn to please the captain.', 2, 3, bloodx + 20, bloody);
tsay = 2;
wait = 70;
}
} else {
if (tsay == 2) {
if (wait) {
--wait;
} else {
saythismed('Everyone here knows it well,', 2, 10, bloodx + 20, bloody);
tsay = 3;
wait = 50;
}
} else {
if (tsay == 3) {
if (wait) {
--wait;
} else {
saythismed('And each does it in thier own way.', 2, 10, bloodx + 20, bloody);
tsay = 4;
wait = 80;
}
} else {
if (tsay == 4) {
if (wait) {
--wait;
} else {
saythismed('Of course, if you do not please me,', 2, 10, bloodx + 20, bloody);
tsay = 5;
wait = 60;
}
} else {
if (tsay == 5) {
if (wait) {
--wait;
} else {
saythismed('You can join the slave girl and serve the whole crew.', 2, 3, bloodx + 20, bloody);
tsay = 6;
wait = 40;
}
} else {
if (tsay == 6) {
if (wait) {
--wait;
} else {
tsay = 6.5;
wait = 40;
}
} else {
if (tsay == 6.5) {
if (wait) {
--wait;
if (frontalpha < 100) {
frontalpha += 10;
}
} else {
if (frontalpha > 0) {
frontalpha -= 5;
} else {
saythismed('How may I please you?', 2, 11, kittyx + 20, kittyy);
tsay = 7;
wait = 50;
}
}
} else {
if (tsay == 7) {
if (wait) {
--wait;
} else {
saythismed('\rYou are so sweet!', 2, 3, bloodx + 20, bloody);
tsay = 8;
wait = 70;
}
} else {
if (tsay == 8) {
if (wait) {
--wait;
} else {
saythismed('I would find pleasure in being closer to you.', 2, 3, bloodx + 20, bloody);
tsay = 9;
wait = 70;
}
} else {
if (tsay == 10) {
if (wait) {
--wait;
} else {
saythismed('Mmmm, yes.\r That pleases me.', 2, 10, bloodx + 20, bloody);
tsay = 11;
wait = 70;
attach = 0;
}
} else {
if (tsay == 12) {
if (wait) {
--wait;
} else {
saythismed('Oh! It\'s big!', 2, 11, kittyx - adjx, kittyy);
tsay = 12;
wait = 70;
attach = 0;
}
}
}
}
}
}
}
}
}
}
}
}
}
bx = -64;
by = 183;
lax = bx - 99;
lay = by - 274;
hx = bx - 78;
hy = by - 291;
facex = kx + 56;
facey = ky - 367;
titsx = kx - 15;
titsy = ky - 278;
pussyx = kx + 24;
pussyy = ky - 223;
pussya = rad2deg(-Math.atan2(hx - pussyx, hy - pussyy));
titsa = rad2deg(-Math.atan2(hx - titsx, hy - titsy));
facea = rad2deg(-Math.atan2(hx - facex, hy - facey));
if (tsay < 9) {
umousey = facey;
} else {
if (tsay >= 11) {
if (umousey != titsy) {
dy = umousey - titsy;
umousey -= dy / 8;
}
} else {
umousey = mousey - 240;
if (umousey > pussyy + 10) {
umousey = pussyy + 10;
}
if (umousey < facey) {
umousey = facey;
}
}
}
ha = rad2deg(-Math.atan2(hx - facex, hy - umousey));
rha = ha;
looking = 0;
dx = abs(ha - pussya);
if (dx < 3) {
looking = 1;
}
dx = abs(ha - titsa);
if (dx < 3) {
looking = 2;
}
dx = abs(ha - facea);
if (dx < 3) {
looking = 3;
}
ha += -84;
if (looking == 1) {
vbx = pussyx;
vby = pussyy;
} else {
if (looking == 2) {
vbx = titsx;
vby = titsy;
} else {
if (looking == 3) {
vbx = facex;
vby = facey;
} else {
vbx = -10000;
}
}
}
if (!looked) {
if (looking == 1) {
++lookpussy;
}
if (looking == 2) {
++looktits;
}
if (looking == 3) {
++lookface;
}
if (looktits >= 5 && lookface >= 5 && lookpussy >= 5) {
looked = 1;
}
}
mon1 = 'tsay:' + tsay + ' kx:' + kx;
if (step > 0) {
if (step == 0.25) {
step = 1;
} else {
++step;
}
if (step >= 28) {
step = 0;
}
}
steptab = [0, 0, 0, 1, 1, 1, 2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 1, 1, 1, 0, 0, 0];
stepsub = [0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0];
kframe = steptab[floor(step)];
kx -= stepsub[floor(step)] * 7;
ky += stepsub[floor(step)] * 0.7;
mon5 = 'step:' + step + ' ' + kframe;
if (kx <= -78 && tsay == 9 && looktits >= 5) {
tsay = 10;
wait = 1;
}
if (tsay == 11) {
if (!attach) {
mm = 0;
arrowx = -133;
arrowy = 85;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachx = mousex;
attachy = mousey;
attacharrow = 0;
strokes = 0;
}
} else {
if (pullingdown == 2) {
if (mdx > 0) {
mdx -= 5;
if (kneel < 5) {
kneel += 0.25;
}
}
if (mdx < 0) {
mdx = 0;
}
downa = sine(mdx) * -38;
if (kneel == 5) {
phase = 2;
attach = 0;
}
} else {
amdx = attachy - mousey;
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
dx = amdx - mdx;
mdx += dx / 8;
if (mdx >= 89 && !pullingdown) {
pullingdown = 1;
} else {
if (pullingdown == 1 && mdx < 85) {
pullingdown = 2;
kneel = 1;
}
}
downa = sine(mdx) * -38;
}
}
} else {
if (looked == 0) {
if (mdx >= 1) {
dx = mdx;
mdx -= dx / 8;
} else {
mdx = 0;
}
} else {
if (looked == 1) {
if (looking == 3) {
amdx = mousex - attachx;
} else {
amdx = 0;
}
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
dx = amdx - mdx;
mdx += dx / 8;
}
}
}
if (tsay < 11) {
larma = sine(mdx) * 16;
if (mdx >= 89) {
cmere += 0.33;
if (cmere > 3) {
cmere = 0;
++motions;
if (motions > 4) {
step = 0.25;
looked = 0;
lookface = 0;
looktits = 0;
lookpussy = 0;
motions = 0;
}
}
} else {
if (cmere > 0) {
--cmere;
}
if (cmere < 0) {
cmere = 0;
}
}
}
barrelstand1_mc._x = 320 + kx;
barrelstand1_mc._y = 240 + ky + kframe;
barrelstand1_mc._rotation = 0;
barrelstand1_mc.swapDepths(20221);
if (kneel) {
barrelstand1_mc.gotoAndStop(93 + floor(kneel));
} else {
if (step) {
barrelstand1_mc.gotoAndStop(85 + kframe);
} else {
if (looking == 1 && lookpussy >= 5) {
barrelstand1_mc.gotoAndStop(92);
} else {
if (looking == 2 && looktits >= 5) {
barrelstand1_mc.gotoAndStop(90);
} else {
if (looking == 3 && lookface >= 5) {
barrelstand1_mc.gotoAndStop(89);
} else {
barrelstand1_mc.gotoAndStop(85 + kframe);
}
}
}
}
}
barrelside1_mc._x = 320 + bx;
barrelside1_mc._y = 240 + by;
barrelside1_mc._rotation = 0;
barrelside1_mc.swapDepths(20122);
barrelside1_mc.gotoAndStop(79);
barrelside2_mc._x = 320 + bx;
barrelside2_mc._y = 240 + by;
barrelside2_mc._rotation = 0;
barrelside2_mc.swapDepths(20222);
barrelside2_mc.gotoAndStop(80);
rax = bx - 115;
ray = by - 243;
rarad = 85;
raoa = 190;
xadd = sine(raoa + downa) * rarad;
yadd = -cosine(raoa + downa) * rarad;
ex = rax + xadd;
ey = ray + yadd;
barrelside3_mc._x = 320 + rax;
barrelside3_mc._y = 240 + ray;
barrelside3_mc._rotation = 45 + downa;
barrelside3_mc.swapDepths(20223);
barrelside3_mc.gotoAndStop(81);
barrelside7_mc._x = 320 + ex;
barrelside7_mc._y = 240 + ey;
barrelside7_mc._rotation = 45 + downa * 1.8;
barrelside7_mc.swapDepths(20224);
barrelside7_mc.gotoAndStop(90);
barrelside4_mc._x = 320 + bx;
barrelside4_mc._y = 240 + by;
barrelside4_mc._rotation = 0;
barrelside4_mc.swapDepths(20022);
barrelside4_mc.gotoAndStop(82);
cmeretab = [0, 1, 2, 1];
ucmere = cmeretab[floor(cmere)];
la4 = floor(larma / 4);
if (la4 > 3) {
la4 = 3;
}
if (downa) {
ucmere = 2;
la4 = 3;
}
barrelside5_mc._x = 320 + lax - downa * -1;
barrelside5_mc._y = 240 + lay - downa * 0.4;
barrelside5_mc._rotation = -45 - larma + downa;
barrelside5_mc.swapDepths(20025);
barrelside5_mc.gotoAndStop(83 + la4 + ucmere);
barrelside6_mc._x = 320 + hx;
barrelside6_mc._y = 240 + hy;
barrelside6_mc._rotation = -45 + ha;
barrelside6_mc.swapDepths(20225);
barrelside6_mc.gotoAndStop(89);
vinebutton_mc._y = 240 + vby;
vinebutton_mc.swapDepths(30225);
if (tsay >= 1 && tsay < 8) {
autobutton_mc._x = 33;
autobutton_mc._y = 455;
autobutton_mc.swapDepths(22403);
autobutton_mc.gotoAndStop(7);
if (buttonpress) {
tsay = 8;
wait = 0;
}
} else {
autobutton_mc._x = -10000;
}
}
function dohandjob() {
if (frontalpha < 100) {
frontalpha += 10;
}
if (phase == 3) {
if (grabbed < 6) {
if (uba > -12) {
dx = uba - -12;
if (div > 6) {
div -= 2;
}
uba -= dx / div;
}
}
if (!attach && grabbed != 6) {
arrowx = -32;
arrowy = 105;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachx = mousex;
attachy = mousey;
attacharrow = 0;
strokes = 0;
grabbed = 0;
}
} else {
if (!grabbed) {
amdx = -(attachx - mousex);
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
dx = amdx - mdx;
mdx += dx / 8;
larma = sine(mdx) * 4;
larmx = sine(mdx) * 97;
larmy = sine(mdx) * 50;
if (mdx >= 89) {
grabbed = 1;
attachx = mousex;
mdx = 0;
amdx = 0;
wrx = kwx;
wry = kwy;
klook = 12;
}
} else {
if (grabbed == 1) {
amdx = attachx - mousex;
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
dx = amdx - mdx;
mdx += dx / 8;
larma2 = 0;
larmx2 = kwx - wrx;
larmy2 = kwy - wry;
krarma = sine(mdx) * 37;
if (mdx > 30) {
klook = 0;
}
if (mdx >= 89) {
grabbed = 2;
attachy = mousey;
mdx = 0;
amdx = 0;
larmx += larmx2;
larmy += larmy2;
larmx2 = 0;
larmy2 = 0;
klook = -12;
strokes = 0;
}
} else {
if (grabbed == 2) {
amdx = -(attachy - mousey) * 3;
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
dx = amdx - mdx;
mdx += dx / 8;
rubx = sine(mdx) * 7;
ruby = sine(mdx) * 13;
tha = sine(mdx) * -11;
if (mdx >= 45 && omdx < 45) {
if (tsay != 13) {
++strokes;
}
if (shortcut) {
strokes = 6;
}
if (!speaking) {
klook = -12;
}
if (strokes == 3) {
tsay = 12;
wait = 0;
klook = 12;
} else {
if (strokes == 6) {
tsay = 15;
wait = 0;
klook = 12;
}
}
}
omdx = mdx;
if (tsay == 17 && mdx < 2) {
grabbed = 3;
}
} else {
if (grabbed == 3) {
if (!speaking) {
klook = 0;
}
amdx = attachy - mousey;
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
dx = amdx - mdx;
mdx += dx / 8;
braa = sine(mdx) * 54;
ea = 16 + sine(mdx) * -15;
sashy = braa - 43;
if (sashy < 0) {
sashy = 0;
}
if (braa >= 53) {
grabbed = 4;
klook = -8;
}
} else {
if (grabbed == 4) {
amdx = attachy - mousey;
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
dx = amdx - mdx;
if (flapy >= 22) {
mdx += dx / 64;
} else {
mdx += dx / 8;
}
braa = sine(mdx) * 54;
ea = 16 + sine(mdx) * -15;
flapy = 42 - braa;
if (flapy < 0) {
flapy = 0;
}
hdwn = flapy - 22;
if (hdwn < 0) {
hdwn = 0;
}
ea += hdwn * 15 / 10;
if (flapy > 22) {
flapy = 22;
if (klook == -8) {
say('gasp');
talking = 0;
jump = 6;
}
klook = -12;
}
ca = -22 + flapy * 16 / 10;
cockalignx = flapy * 5 / 10;
if (ea >= 20) {
grabbed = 5;
tsay = 18;
strokes = 0;
attachy = 350;
sca = ca;
sbraa = braa;
sea = ea;
}
} else {
if (grabbed == 5) {
ramdx = -(attachy - mousey) * 3;
amdx = ramdx;
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
dx = amdx - mdx;
mdx += dx / 8;
rubx = sine(mdx) * -6;
ruby = sine(mdx) * 44;
tha = 0;
if (mdx >= 45 && omdx < 45) {
++strokes;
if (strokes == 4) {
tsay = 20;
}
}
omdx = mdx;
if (tsay == 21 && !speaking && mdx >= 88) {
grabbed = 6;
jackspeed = 4;
jacka = 266;
strokes = 0;
tsay = 22;
attach = 0;
}
} else {
if (grabbed == 6) {
if (larmx2 > -44) {
larmx2 -= 2;
}
if (larmy2 < 88) {
larmy2 += 4;
}
if (larma2 > -22) {
--larma2;
} else {
if (!attach) {
arrowx = -46;
arrowy = 185;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 10 && abs(dy) < 10) {
attach = 1;
attachx = mousex;
attachy = mousey;
attacharrow = 0;
strokes = 0;
leftfree = 1;
rflax = shx + larmx + larmx2 + rubx + cockalignx;
rflay = shy + larmy + larmy2 + ruby;
}
}
}
if (hesitation) {
if (!squirtpending && !flying) {
--hesitation;
}
} else {
if (cummed != 2) {
jacka += jackspeed;
}
}
if (jacka > 360) {
jacka -= 360;
}
strokelen = 30;
jacky = sine(jacka) * strokelen + strokelen;
jackx = sine(jacka) * 0;
ca = sca + sine(jacka) * -5;
tha = 0;
if (jacka >= 90 && ojacka < 90) {
++strokes;
if (strokes == 1) {
tsay = 24;
}
if (waitstrokes) {
--waitstrokes;
}
}
if (jacka >= 270 && ojacka < 270) {
if (!cumming) {
hesitation = 2;
} else {
if (squirtpending) {
hesitation = 5;
}
}
if (cummed) {
cummed = 2;
klook = 14;
}
}
ojacka = jacka;
if (cummed == 2) {
if (bup > 0) {
--bup;
} else {
if (kha == 14 && goblackslow == 0) {
goblackslow = 1;
}
}
} else {
if (intense > 50 && bup < 100) {
++bup;
}
}
cockalignx = 11 + bup * 0.09;
uba = -12 + bup * 14 / 100;
braa = sbraa + uba + 12;
ea = sea + uba + 12 + ooadd * 4 / 10;
rlegdown = bup * 14 / 100;
if (attach) {
if (cumming) {
if (flax < -305) {
++flax;
}
if (flay > -60) {
--flay;
}
} else {
mdx = -(attachx - mousex);
mdy = -(attachy - mousey);
flax = rflax + mdx;
flay = rflay + mdy;
}
if (bup && flax < -385) {
flax = -385;
}
if (flax < -500) {
flax = -500;
}
if (flay < -120 + kdown) {
if (flax > -305) {
flax = -305;
}
} else {
if (flay > -23 + kdown) {
if (flax > -355) {
flax = -355;
}
} else {
tx = (flay - kdown) / -2.4 - 355;
if (flax > tx) {
flax = tx;
}
}
}
if (flay < -150 + kdown) {
flay = -150 + kdown;
}
if (flay > 70 + kdown) {
flay = 70 + kdown;
}
}
jackspeed = 4 + intense * 0.3;
dx = abs(rtitx - lpinchx);
dy = abs(rtity - lpinchy);
if (dx <= 10 && dy <= 10) {
if (nippledrag == 0) {
nippledrag = 1;
ndref = lpinchy;
} else {
nipply = ndref - lpinchy;
}
} else {
nippledrag = 0;
if (abs(nipply) > 0.5) {
nipply -= nipply / 6;
} else {
nipply = 0;
}
}
if (ooa < 360) {
if (oohes) {
if (squirtpending == 1 && hesitation) {
squirtpending = 2;
}
if (!squirtpending) {
--oohes;
}
if (squirt) {
shudder = oohes & 1;
}
} else {
if (squirt && !cummed) {
oospeed = 35;
} else {
oospeed = 10 + intense / 7;
}
ooa += oospeed;
if (ooa >= 180 && oldooa < 180) {
if (!squirt) {
oohes = 5;
} else {
oohes = 20;
if (squirtpending == 1 && hesitation) {
squirtpending = 2;
}
}
}
if (ooa >= 360 && cumming && cumming < 6) {
ooa -= 360;
++cumming;
intense += 10;
if (cumming == 2) {
sayfile('muhh4.mp3');
} else {
if (cumming == 3) {
sayfile('muhh6.mp3');
} else {
if (cumming == 6) {
talking = 0;
squirt = 1;
startsquirt();
intense = 100;
} else {
sayfile('muhh9.mp3');
}
}
}
}
}
oldooa = ooa;
} else {
if (squirt >= 8) {
if (!cummed) {
cummed = 1;
}
intense = 0;
}
if (!bup) {
dx = abs(rtitx - lpinchx);
dy = abs(rtity - lpinchy);
if (leftfree && oook && dx <= 5 && dy <= 5) {
ooa -= 360;
intense += 5;
oook = 0;
say('muhh');
}
if (dx > 8 || dy > 8) {
oook = 1;
}
} else {
if (!cumming) {
if (!dragging) {
dx = abs(kshx - lpinchx + 5);
dy = abs(kshy - lpinchy);
if (oook && dx <= 10 && dy <= 5) {
dragging = 1;
dragrefy = lpinchy;
dragy = 0;
}
if (dx > 8 || dy > 8) {
oook = 1;
}
} else {
dy = lpinchy - dragrefy;
if (dy > 10) {
dy = 10;
}
if (dy > dragy) {
dragy += 0.25;
}
if (dragy == 10) {
kdown += 10;
dragy = 0;
ooa -= 360;
if (intense < 100) {
intense += 6;
}
if (intense >= 100) {
cumming = 1;
}
dragging = 0;
oook = 0;
say('muhh');
}
}
} else {
if (squirt && squirt < 8) {
if (!squirtpending && !waitstrokes) {
ooa -= 360;
++squirt;
startsquirt();
}
}
}
}
}
uintense = intense;
if (intense < 40) {
uintense = 40;
}
ooadd = sine(ooa - 90) * (uintense * 0.04) + shudder * 6 / 10;
mon2 = ' int:' + intense + ' ooa:' + ooa + ' flx:' + floor(flax) + ' fly:' + floor(flay) + ' kd:' + kdown + ' cum:' + cummed + ' fly:' + flying;
mon5 = 'nd:' + nippledrag + ' ' + nipply + ' step:' + step;
}
}
}
}
}
}
}
}
} else {
if (phase == 2) {
if (!attach) {
if (mdx > 0) {
mdx -= mdx / 8;
}
if (wa > 0) {
wa -= wa / 8;
}
if (mdx < 1 && tbd >= 41) {
phase = 3;
div = 32;
return undefined;
}
arrowx = 33;
arrowy = 229;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachx = mousex;
attachy = mousey;
attacharrow = 0;
strokes = 0;
twist = 0;
}
} else {
if (twist == 0) {
amdx = attachy - mousey;
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
dx = amdx - mdx;
mdx += dx / 8;
arma = sine(mdx) * -38;
ea = 16 + arma;
if (mdx >= 89) {
twist = 1;
attachy = mousey;
hdx = 0;
bdadd = 0;
}
} else {
if (twist == 1) {
amdx = -(attachy - mousey);
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
dx = amdx - hdx;
hdx += dx / 8;
wa = sine(hdx) * 6;
if (wa > bdadd) {
if (bdadd == 0) {
jump = 6;
breath = 100;
}
bdadd = wa;
if (wa >= 5.9) {
tbd += bdadd;
bdadd = 0;
if (tbd > 41) {
tbd = 41;
}
attach = 0;
}
}
}
}
}
arma = sine(mdx) * -38;
ea = 16 + arma;
}
}
if (breath > 20 + tbd * 2) {
breath -= 0.5;
}
bodicedown = tbd + bdadd;
ubodicedown = bodicedown;
if (ubodicedown > 11) {
ubodicedown = 11;
}
bd14 = bodicedown;
if (bd14 > 23) {
bd14 = 23;
}
mon1 = 'breath:' + breath;
bjmptab = [0, 1, 2, 3, 2, 1, 0, 0];
cjmptab = [0, 0, 1, 2, 3, 4, 0, 0];
if (jump) {
--jump;
}
if (cumming) {
jumpx = cjmptab[jump];
jumpy = bjmptab[jump] * 0.25;
} else {
if (flapy >= 22) {
jumpy = bjmptab[jump];
} else {
jumpy = bjmptab[jump] * 0.25;
}
}
kx = 121 + jumpx / 2;
ky = 88 - jumpy + kdown + dragy;
ktx = kx - 94;
kty = ky - 33;
kta = nipply * 5 / 10;
khx = kx - 64;
khy = ky - 188;
klax = kx + 2;
klay = ky - 121;
krx = kx - 69 + rubx + jackx + cockalignx + ooadd;
kry = ky - 133 + ruby - jacky - kdown + dragy - ooadd;
kwrad = -202;
kwoa = -13;
xadd = sine(kwoa + krarma) * kwrad;
yadd = -cosine(kwoa + krarma) * kwrad;
kwx = krx + xadd;
kwy = kry + yadd;
thrad = 220;
thoa = 171;
xadd = sine(thoa + krarma) * thrad;
yadd = -cosine(thoa + krarma) * thrad;
thx = krx + xadd;
thy = kry + yadd;
bralx = kx;
braly = ky;
brarx = kx;
brary = ky;
bdx = kx - 56;
bdy = ky + 125;
ba += 5 + 3 * (tbd / 41);
breathy = sine(ba) * breath / 100;
breatha = -breathy * 0.1;
if (blinkdel) {
--blinkdel;
} else {
if (blink) {
blink = 0;
blinkdel = rnd(80) + 15;
} else {
blink = 1;
blinkdel = 1;
}
}
dx = klook - kha;
if (abs(dx) > 0.5) {
if (cummed) {
kha += 0.25;
} else {
kha += dx / 8;
}
} else {
kha = klook - jumpx / 2;
}
rtitx = kx - 143;
rtity = ky - 36;
kshx = kx - 98;
kshy = ky - 141;
box1_mc._x = 320 + kx;
box1_mc._y = 240 + ky;
box1_mc._rotation = 0;
box1_mc._alpha = frontalpha;
box1_mc.swapDepths(22303);
box1_mc.gotoAndStop(98);
box10_mc._x = 320 + kx;
box10_mc._y = 240 + ky - breathy;
box10_mc._rotation = 30;
box10_mc._alpha = frontalpha;
box10_mc.swapDepths(22301);
box10_mc.gotoAndStop(107);
box14_mc._x = 320 + ktx;
box14_mc._y = 240 + kty - breathy;
box14_mc._rotation = 30 + kta;
box14_mc._alpha = frontalpha;
box14_mc.swapDepths(22302);
box14_mc.gotoAndStop(117);
box2_mc._x = 320 + khx;
box2_mc._y = 240 + khy;
box2_mc._rotation = 45 + kha;
box2_mc._alpha = frontalpha;
box2_mc.swapDepths(22311);
box2_mc.gotoAndStop(99);
box13_mc._x = 320 + khx;
box13_mc._y = 240 + khy;
box13_mc._rotation = 45 + kha;
box13_mc._alpha = frontalpha;
box13_mc.swapDepths(22312);
if (blink) {
box13_mc.gotoAndStop(114);
} else {
if (kha < -2) {
box13_mc.gotoAndStop(112);
} else {
if (kha > 2) {
box13_mc.gotoAndStop(113);
} else {
box13_mc.gotoAndStop(116);
}
}
}
box3_mc._x = 320 + klax;
box3_mc._y = 240 + klay;
box3_mc._rotation = 0;
box3_mc._alpha = frontalpha;
box3_mc.swapDepths(22308);
box3_mc.gotoAndStop(100);
box4_mc._x = 320 + bralx;
box4_mc._y = 240 + braly + bodicedown - breathy;
box4_mc._yscale = 100 - bodicedown;
box4_mc._rotation = 30;
box4_mc._alpha = frontalpha;
box4_mc.swapDepths(22306);
box4_mc.gotoAndStop(101);
box9_mc._x = 320 + bralx;
box9_mc._y = 240 + braly + bd14;
box9_mc._yscale = 100 - bodicedown / 2;
box9_mc._rotation = 0;
box9_mc._alpha = frontalpha;
box9_mc.swapDepths(22309);
box9_mc.gotoAndStop(106);
box5_mc._x = 320 + brarx;
box5_mc._y = 240 + brary - breathy;
box5_mc._rotation = 30 + -bodicedown * 0.26;
box5_mc._alpha = frontalpha;
box5_mc.swapDepths(22319);
box5_mc.gotoAndStop(103);
box6_mc._x = 320 + brarx;
box6_mc._y = 240 + brary - breathy;
box6_mc._rotation = 30 + -bodicedown * 0.26;
box6_mc._alpha = frontalpha;
box6_mc.swapDepths(22300);
box6_mc.gotoAndStop(102);
box7_mc._x = 320 + bdx;
box7_mc._y = 240 + bdy;
box7_mc._yscale = 100 - bodicedown * 0.5;
box7_mc._rotation = +(ubodicedown * 0.24);
box7_mc._alpha = frontalpha;
box7_mc.swapDepths(22307);
box7_mc.gotoAndStop(104);
box8_mc._x = 320 + bdx;
box8_mc._y = 240 + bdy;
box8_mc._yscale = 100 - bodicedown * 0.5;
box8_mc._rotation = +(ubodicedown * 0.24);
box8_mc._alpha = frontalpha;
box8_mc.swapDepths(22310);
box8_mc.gotoAndStop(105);
box11_mc._x = 320 + krx;
box11_mc._y = 240 + kry;
box11_mc._rotation = +krarma;
box11_mc._alpha = frontalpha;
box11_mc.swapDepths(22285);
if (grabbed == 6) {
box11_mc.gotoAndStop(110);
} else {
box11_mc.gotoAndStop(109);
}
box12_mc._x = 320 + thx;
box12_mc._y = 240 + thy;
box12_mc._rotation = +krarma + tha;
box12_mc._alpha = frontalpha;
if (krarma > 23) {
box12_mc.swapDepths(22318);
} else {
box12_mc.swapDepths(22295);
}
if (grabbed == 6) {
box12_mc.gotoAndStop(111);
} else {
box12_mc.gotoAndStop(108);
}
if (grabbed == 1) {
larmx2 = kwx - wrx;
larmy2 = kwy - wry;
}
bx = -124 + ooadd;
by = 239 - ooadd;
bllx = bx - 119 + 207;
blly = by + 34;
shrad = 378;
shoa = -14;
xadd = sine(shoa + uba) * shrad;
yadd = -cosine(shoa + uba) * shrad;
shx = bx + xadd;
shy = by + yadd;
blaa = 0;
crad = 44;
coa = 67;
xadd = sine(coa + uba) * crad;
yadd = -cosine(coa + uba) * crad;
cx = bx + xadd;
cy = by + yadd;
ctrad = 98;
ctoa = -0.3000000000000007;
xadd = sine(ctoa + ca) * ctrad;
yadd = -cosine(ctoa + ca) * ctrad;
ctx = cx + xadd;
cty = cy + yadd;
vbx = ctx;
vby = cty;
brarad = 260;
braoa = 175;
xadd = sine(braoa + braa) * brarad;
yadd = -cosine(braoa + braa) * brarad;
ex = shx + xadd;
ey = shy + yadd;
wrad = 211;
woa = 97;
xadd = sine(woa + ea) * wrad;
yadd = -cosine(woa + ea) * wrad;
wx = ex + xadd;
wy = ey + yadd;
if (leftfree) {
tla = blaa + larma + larma2;
lprad = 348;
lpoa = 122;
xadd = sine(lpoa + tla) * lprad;
yadd = -cosine(lpoa + tla) * lprad;
lpinchx = flax + xadd;
lpinchy = flay + yadd;
} else {
lpinchy = 10000;
lpinchx = 10000;
}
barreltop1_mc._x = 320 + bx;
barreltop1_mc._y = 240 + by;
barreltop1_mc._rotation = 30 + uba;
barreltop1_mc._alpha = frontalpha;
barreltop1_mc.swapDepths(22288);
barreltop1_mc.gotoAndStop(50);
barreltop2_mc._x = 320 + bllx;
barreltop2_mc._y = 240 + blly;
barreltop2_mc._rotation = 0;
barreltop2_mc._alpha = frontalpha;
barreltop2_mc.swapDepths(22189);
barreltop2_mc.gotoAndStop(43);
barreltop3_mc._x = 320 + shx;
barreltop3_mc._y = 240 + shy;
barreltop3_mc._rotation = braa;
barreltop3_mc._alpha = frontalpha;
barreltop3_mc.swapDepths(22326);
barreltop3_mc.gotoAndStop(44);
barreltop4_mc._x = 320 + ex;
barreltop4_mc._y = 240 + ey;
barreltop4_mc._rotation = ea;
barreltop4_mc._alpha = frontalpha;
barreltop4_mc.swapDepths(22330);
barreltop4_mc.gotoAndStop(45);
barreltop6_mc._x = 320 + wx;
barreltop6_mc._y = 240 + wy;
barreltop6_mc._rotation = 45 + ea + wa;
barreltop6_mc._alpha = frontalpha;
barreltop6_mc.swapDepths(22329);
barreltop6_mc.gotoAndStop(46);
if (leftfree) {
barreltop5_mc._x = 320 + flax;
barreltop5_mc._y = 240 + flay;
} else {
barreltop5_mc._x = 320 + shx + larmx + larmx2 + rubx + cockalignx;
barreltop5_mc._y = 240 + shy + larmy + larmy2 + ruby;
}
barreltop5_mc._rotation = 45 + blaa + larma + larma2;
barreltop5_mc._alpha = frontalpha;
barreltop5_mc.swapDepths(22191);
if (bup) {
barreltop5_mc.gotoAndStop(47);
} else {
barreltop5_mc.gotoAndStop(48);
}
if (grabbed >= 6) {
if (!leftfree) {
barreltop8_mc._x = -10000;
} else {
if (lpinchy < 70 + kdown) {
barreltop8_mc._x = 320 + flax;
} else {
barreltop8_mc._x = -10000;
}
}
barreltop8_mc._y = 240 + flay;
barreltop8_mc._rotation = 45 + blaa + larma + larma2;
barreltop8_mc._alpha = frontalpha;
barreltop8_mc.swapDepths(22304);
barreltop8_mc.gotoAndStop(54);
}
barreltop7_mc._x = 320 + bx;
barreltop7_mc._y = 240 + by + rlegdown;
barreltop7_mc._rotation = 0;
barreltop7_mc._alpha = frontalpha;
barreltop7_mc.swapDepths(22321);
barreltop7_mc.gotoAndStop(49);
if (grabbed < 6) {
barreltop8_mc._x = 320 + bx + flapy * 17 / 10;
barreltop8_mc._y = 240 + by + flapy * 47 / 10;
barreltop8_mc._rotation = uba;
barreltop8_mc._alpha = frontalpha;
barreltop8_mc.swapDepths(22316);
barreltop8_mc.gotoAndStop(52);
}
barreltop9_mc._x = 320 + bx - sashy * 14 / 10;
barreltop9_mc._y = 240 + by - sashy * 37 / 10;
barreltop9_mc._rotation = 45 + uba;
barreltop9_mc._alpha = frontalpha;
barreltop9_mc.swapDepths(22320);
barreltop9_mc.gotoAndStop(51);
barreltop10_mc._x = 320 + cx;
barreltop10_mc._y = 240 + cy;
barreltop10_mc._yscale = 90 + sashy;
barreltop10_mc._rotation = 30 + ca;
barreltop10_mc._alpha = frontalpha;
barreltop10_mc.swapDepths(22315);
barreltop10_mc.gotoAndStop(53);
vinebutton_mc._y = 240 + vby;
vinebutton_mc.swapDepths(30225);
if (tsay == 12) {
if (wait) {
--wait;
} else {
saythismed('Oh! It\'s big!', 2, 11, kittyx - 45, kittyy + 69);
tsay = 13;
wait = 50;
}
} else {
if (tsay == 13) {
if (wait) {
--wait;
} else {
saythismed('Mmmmmm,\r and getting bigger!', 2, 11, bloodx + 20, bloody - 55);
tsay = 14;
wait = 0;
}
}
}
if (tsay == 15) {
saythismed('It\'s very hard!', 2, 11, kittyx - 45, kittyy + 69);
tsay = 16;
wait = 50;
} else {
if (tsay == 16) {
if (wait) {
--wait;
} else {
saythismed('Mmmmmm,\r and getting harder!', 2, 11, bloodx + 20, bloody - 55);
tsay = 17;
wait = 0;
}
} else {
if (tsay == 18) {
saythismed('Move up and down like this.', 2, 11, bloodx + 20, bloody - 55);
tsay = 19;
wait = 50;
} else {
if (tsay == 20) {
saythismed('Mmmmm yes.\rNow grab it.', 2, 11, bloodx + 20, bloody - 55);
tsay = 21;
wait = 50;
} else {
if (tsay == 22) {
saythismed('Like this?', 2, 11, kittyx - 45, kittyy + 69);
tsay = 23;
wait = 50;
} else {
if (tsay == 24) {
saythismed('\rOooohhhh, yes.', 2, 11, bloodx + 20, bloody - 55);
tsay = 25;
wait = 50;
}
}
}
}
}
}
if (phase == 3 && grabbed == 6 && !cumming) {
if (onauto) {
autobutton_mc._x = 64;
autobutton_mc._y = 421;
autobutton_mc.swapDepths(22403);
autobutton_mc.gotoAndStop(2);
if (bup < 100) {
autobutton_mc.txt.text = 'Touch her right nipple';
} else {
autobutton_mc.txt.text = 'Push down on her shoulder';
}
} else {
autobutton_mc._x = 33;
autobutton_mc._y = 455;
autobutton_mc.swapDepths(22403);
autobutton_mc.gotoAndStop(1);
}
} else {
autobutton_mc._x = -10000;
}
}
function isquirt() {
i = 0;
while (i < 8) {
sqon[i] = 0;
++i;
}
}
function dosquirt() {
if (Key.isDown(88)) {
i = 0;
while (i < 8) {
sqon[i] = 0;
++i;
}
}
if (!Key.isDown(67)) {
crel = 1;
}
if (Key.isDown(67) && crel && squirtpending == 0) {
crel = 0;
found = 0;
i = 0;
while (i < 8) {
if (sqon[i] == 0) {
sqx[i] = ctx;
sqy[i] = cty;
sqyadd[i] = sqyaddtab[i];
sqxadd[i] = sqxaddtab[i] + adjx / 10;
usqlandy[i] = sqlandy[i] + adjy;
sqa[i] = ca - 5;
sqf[i] = 0;
sqfdn[i] = abs(sqyadd[i] / 4);
sqfd[i] = sqfdn[i];
sqatt[i] = sqatttab[i];
squirtpending = 1;
wchsquirtpending = i;
sqon[i] = 1;
found = 1;
i = 100;
break;
}
++i;
}
if (!found) {
i = 0;
while (i < 8) {
sqon[i] = 0;
++i;
}
}
}
i = 0;
while (i < 8) {
if (sqon[i]) {
if (sqon[i] == 1 && squirtpending == 2) {
squirtpending = 0;
sqon[i] = 2;
sqx[i] = ctx + 4;
}
if (sqon[i] == 2) {
--sqfd[i];
if (sqfd[i] <= 0) {
sqfd[i] = sqfdn[i];
if (sqf[i] < 3) {
++sqf[i];
}
}
sqx[i] += sqxadd[i];
sqy[i] += sqyadd[i];
sqyadd[i] += 2;
sqrot[i] = 0;
if (sqatt[i] == 0) {
landy = kwy + usqlandy[i];
} else {
if (sqatt[i] == 1) {
landy = khy + usqlandy[i];
} else {
if (sqatt[i] == 2) {
landy = ky + usqlandy[i];
}
}
}
if (sqyadd[i] > 0 && sqy[i] >= landy) {
sqy[i] = landy;
sqon[i] = 3;
doattach(i);
jump = 6;
flying = 0;
waitstrokes = 2;
if (i == 0) {
sayfile('moan8.mp3');
} else {
if (i == 2) {
sayfile('moan6.mp3');
}
}
}
}
if (sqon[i] == 3) {
part = sqatt[i];
getpartxy(part);
rad = deg2rad(sqtheta[i] + (partangle - sqsuba[i]));
xadd = Math.sin(rad) * sqrad[i];
yadd = -Math.cos(rad) * sqrad[i];
sqx[i] = partx + xadd;
sqy[i] = party + yadd;
sqrot[i] = partangle - sqsuba[i];
}
_root['ball' + i + '_mc']._x = 320 + sqx[i];
_root['ball' + i + '_mc']._y = 240 + sqy[i];
_root['ball' + i + '_mc']._rotation = 45 + sqrot[i];
if (sqon[i] == 1) {
_root['ball' + i + '_mc']._alpha = 10;
} else {
_root['ball' + i + '_mc']._alpha = frontalpha;
}
if (sqon[i] <= 2 && sqyadd[i] < 0) {
_root['ball' + i + '_mc'].swapDepths(22314);
} else {
if (i == 7) {
_root['ball' + i + '_mc'].swapDepths(22317);
} else {
_root['ball' + i + '_mc'].swapDepths(22340 + i);
}
}
if (sqon[i] == 3) {
_root['ball' + i + '_mc'].gotoAndStop(29 + splatwch[i]);
} else {
_root['ball' + i + '_mc'].gotoAndStop(25 + sqf[i]);
}
} else {
_root['ball' + i + '_mc']._x = -10000;
}
++i;
}
}
function doattach(i) {
part = sqatt[i];
getpartxy(part);
theta = rad2deg(-Math.atan2(partx - sqx[i], party - sqy[i]));
radius = finddistance(partx, party, sqx[i], sqy[i]);
sqrad[i] = radius;
sqtheta[i] = theta;
sqsuba[i] = partangle;
}
function getpartxy(part) {
if (part == 0) {
partx = krx;
party = kry;
partangle = krarma;
} else {
if (part == 1) {
partx = khx;
party = khy;
partangle = kha;
} else {
if (part == 2) {
partx = kx;
party = ky - breathy;
partangle = 0;
} else {
if (part == 3) {
partx = cx;
party = cy;
partangle = ca;
}
}
}
}
}
function startsquirt() {
found = 0;
i = 0;
while (i < 8) {
if (sqon[i] == 0) {
sqx[i] = ctx;
sqy[i] = cty;
sqyadd[i] = sqyaddtab[i];
sqxadd[i] = sqxaddtab[i] + adjx / 10;
usqlandy[i] = sqlandy[i] + adjy;
sqa[i] = ca - 5;
sqf[i] = 0;
sqfdn[i] = abs(sqyadd[i] / 4);
sqfd[i] = sqfdn[i];
sqatt[i] = sqatttab[i];
squirtpending = 1;
wchsquirtpending = i;
sqon[i] = 1;
usquirt = squirt + 4;
if (usquirt > 7) {
usquirt -= 7;
}
sayfile('mlove' + usquirt + '.mp3');
flying = 1;
return undefined;
}
++i;
}
}
function doscene9() {
if (scenestarted == 0) {
init_island();
}
if (phase >= 3) {
doending();
} else {
if (tsay >= 34) {
dobeachfuck();
} else {
doisland();
}
}
islandbg();
if (phase == 2 && tsay >= 11 && tsay < 25) {
dopapaya();
}
doarrow();
arrow_mc.swapDepths(24453);
}
function init_island() {
hideall();
tsay = 0;
frontalpha = 0;
wait = 10;
breath = 0;
ba = 0;
klook = 0;
fuck = 0;
mdx = 0;
fuckoff = 0;
speed = 0;
slama = 0;
slam = 0;
shorts = 0;
fhes = 0;
tslama = 0;
pending = 0;
cummed = 0;
cumming = 0;
squirt = 0;
shudder = 0;
shudbend = 0;
shuddadd = 0;
showauto = 0;
fuckspeed = 0;
fspd = 0;
arrowcursor = 0;
moandly = 0;
ohdly = 0;
ohwch = 0;
dickflop = 0;
bbreath = 0;
bba = 0;
kbreath = 0;
kbangle = 0;
skipquick = 0;
scenestarted = 1;
}
function islandbg() {
bg_mc._x = 320;
bg_mc._y = 240;
bg_mc._alpha = 100;
bg_mc._xscale = 100;
bg_mc._yscale = 100;
bg_mc.swapDepths(0);
if (phase >= 11) {
bg_mc.gotoAndStop(54);
} else {
if (phase >= 9) {
bg_mc.gotoAndStop(53);
} else {
if (phase >= 7) {
bg_mc.gotoAndStop(52);
} else {
if (phase >= 5) {
bg_mc.gotoAndStop(51);
} else {
if (phase >= 4 && tsay >= 35) {
bg_mc.gotoAndStop(53);
} else {
if (phase >= 3) {
bg_mc.gotoAndStop(50);
} else {
if (phase == 2) {
if (tsay >= 32) {
bg_mc.gotoAndStop(47);
} else {
if (tsay >= 30) {
bg_mc.gotoAndStop(46);
} else {
if (tsay >= 24) {
bg_mc.gotoAndStop(45);
} else {
if (tsay >= 10) {
bg_mc.gotoAndStop(44);
} else {
if (tsay >= 8) {
bg_mc.gotoAndStop(43);
} else {
if (tsay >= 6) {
bg_mc.gotoAndStop(42);
} else {
bg_mc.gotoAndStop(41);
}
}
}
}
}
}
} else {
bg_mc.gotoAndStop(40);
}
}
}
}
}
}
}
bg640_mc._x = 320;
bg640_mc._y = 240;
bg640_mc._alpha = frontalpha;
bg640_mc.swapDepths(21502);
if (phase >= 12) {
bg640_mc.gotoAndStop(55);
} else {
if (phase >= 10) {
bg640_mc.gotoAndStop(54);
} else {
if (phase >= 8) {
bg640_mc.gotoAndStop(53);
} else {
if (phase >= 6) {
bg640_mc.gotoAndStop(52);
} else {
if (phase >= 3) {
bg640_mc.gotoAndStop(51);
} else {
if (phase == 2) {
if (tsay >= 33) {
bg640_mc.gotoAndStop(50);
} else {
if (tsay >= 31) {
bg640_mc.gotoAndStop(49);
} else {
if (tsay >= 28) {
bg640_mc.gotoAndStop(48);
} else {
if (tsay >= 11) {
bg640_mc.gotoAndStop(47);
} else {
if (tsay >= 9) {
bg640_mc.gotoAndStop(46);
} else {
if (tsay >= 7) {
bg640_mc.gotoAndStop(45);
} else {
if (tsay >= 5) {
bg640_mc.gotoAndStop(44);
}
}
}
}
}
}
}
} else {
bg640_mc.gotoAndStop(43);
}
}
}
}
}
}
if (phase >= 12) {
beta_mc._x = -10000;
} else {
beta_mc.swapDepths(23005);
beta_mc._x = 599;
beta_mc._y = 481;
autobutton_mc.swapDepths(23016);
autobutton_mc._x = 161;
autobutton_mc._y = 459;
if (showauto) {
} else {
autobutton_mc.gotoAndStop(10);
}
}
}
function doisland() {
if (phase == 0) {
if (tsay == 0) {
if (wait) {
--wait;
} else {
saythismed('\rLand ho!', 2, 3, 0, -66);
tsay = 1;
wait = 90;
}
} else {
if (tsay == 1) {
if (wait) {
--wait;
} else {
phase = 1;
tsay = 2;
wait = 90;
showplate(1, 'Tropical hideaway');
platey = 250;
platealpha = 0;
}
}
}
} else {
if (phase == 1) {
if (frontalpha < 100) {
frontalpha += 2;
platealpha = frontalpha;
platedelay = 40;
}
if (tsay == 2) {
if (wait) {
--wait;
} else {
tsay = 3;
wait = 80;
phase = 2;
sayfile('beachpath.mp3');
}
}
} else {
if (phase == 2) {
if (tsay == 3) {
if (frontalpha > 0) {
frontalpha -= 2;
}
if (wait) {
--wait;
} else {
tsay = 4;
wait = 50;
}
} else {
if (tsay == 4) {
if (wait) {
--wait;
} else {
saythismed('Would you like some fruit?', 2, 3, -94, -8);
tsay = 5;
wait = 100;
}
} else {
if (tsay == 5) {
if (wait) {
--wait;
if (wait < 10) {
if (frontalpha < 100) {
frontalpha += 10;
}
}
} else {
saythismed('Let me cut a ripe papaya for you.', 2, 3, -94, -8);
tsay = 6;
wait = 100;
}
} else {
if (tsay == 6) {
if (wait) {
--wait;
if (wait < 10) {
if (frontalpha > 0) {
frontalpha -= 10;
}
}
} else {
saythismed('Here is your papaya.', 2, 3, -94, -8);
tsay = 7;
wait = 80;
}
} else {
if (tsay == 7) {
if (wait) {
--wait;
if (wait < 10) {
if (frontalpha < 100) {
frontalpha += 10;
}
}
} else {
saythismed('Ummmm, let\'s see.', 2, 3, -94, -8);
tsay = 8;
wait = 80;
}
} else {
if (tsay == 8) {
if (wait) {
--wait;
if (wait < 10) {
if (frontalpha > 0) {
frontalpha -= 10;
}
}
} else {
saythismed('Ah yes, this one will do.', 2, 3, -94, -8);
tsay = 9;
wait = 80;
}
} else {
if (tsay == 9) {
if (wait) {
--wait;
if (wait < 10) {
if (frontalpha < 100) {
frontalpha += 10;
}
}
} else {
saythismed('And here is my banana. Do you like it?', 2, 3, -94, -8);
tsay = 10;
wait = 80;
}
} else {
if (tsay == 10) {
if (wait) {
--wait;
if (wait < 10) {
if (frontalpha > 0) {
frontalpha -= 10;
}
}
} else {
saythismed('\rI like bananas!', 2, 4, 91, -106);
tsay = 11;
wait = 80;
uba = -9;
ra = 0;
}
} else {
if (tsay == 11) {
if (wait) {
--wait;
if (wait < 10) {
if (frontalpha < 100) {
frontalpha += 10;
}
}
} else {
saythismed('I would dearly love to insert my banana into your papaya.', 2, 3, 0, -107);
tsay = 12;
wait = 70;
}
} else {
if (tsay == 12) {
if (wait) {
--wait;
} else {
saythismed('I want to plunge it in as deep as it will go,', 2, 10, 0, -107);
tsay = 13;
wait = 60;
klook = 7;
breath = 20;
}
} else {
if (tsay == 13) {
if (wait) {
--wait;
} else {
saythismed('Filling your papaya as full as it can be.', 2, 10, 0, -107);
tsay = 14;
wait = 100;
klook = 0;
breath = 40;
}
} else {
if (tsay == 14) {
if (wait) {
--wait;
} else {
saythismed('\rMay I?', 2, 3, 0, -107);
tsay = 15;
wait = 70;
klook = 7;
breath = 60;
}
} else {
if (tsay == 15) {
if (wait) {
--wait;
} else {
saythismed('Oooo! Do you think it will fit?', 2, 11, 88, -83);
tsay = 16;
wait = 70;
breath = 50;
klook = 0;
}
} else {
if (tsay == 16) {
if (wait) {
--wait;
} else {
saythismed('That looks like an awfully large banana!', 2, 11, 88, -83);
tsay = 17;
wait = 80;
breath = 40;
}
} else {
if (tsay == 17) {
if (wait) {
--wait;
} else {
saythismed('Oh, I assure you it will fit.', 2, 10, 0, -107);
tsay = 18;
wait = 80;
klook = 7;
}
} else {
if (tsay == 18) {
if (wait) {
--wait;
} else {
saythismed('As long as your papaya is nice and juicy it will slide right in,', 2, 3, 0, -107);
tsay = 19;
wait = 80;
}
} else {
if (tsay == 19) {
if (wait) {
--wait;
} else {
saythismed('Just as easily as this banana goes into your papaya.', 2, 3, 0, -107);
tsay = 20;
wait = 80;
klook = 0;
}
} else {
if (tsay == 20) {
dx = 3 - uba;
if (dx > 0.25) {
uba += dx / 8;
} else {
uba = 3;
tsay = 21;
attach = 0;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (tsay == 21) {
if (!attach) {
mm = 0;
arrowx = -16;
arrowy = 88;
attacharrow = 1;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachx = mousex;
attachy = mousey;
attacharrow = 0;
strokes = 0;
}
} else {
if (strokes == 52) {
if (fuckoff < 0) {
fuckoff += 0.75;
} else {
wait = 0;
tsay = 22;
}
} else {
if (fuckoff > -6) {
dx = fuckoff - -6;
if (dx > 0.5) {
fuckoff -= dx / 8;
} else {
fuckoff = -6;
}
} else {
amdx = (mousex - attachx) * 2;
if (amdx < 0) {
amdx = 0;
}
if (amdx > 90) {
amdx = 90;
}
if (strokes > 50) {
amdx = 0;
dx = amdx - mdx;
mdx += dx * 1 / 16;
} else {
speed = strokes / 50;
dx = amdx - mdx;
mdx += dx * 1 / (16 - 14 * speed);
if (strokes == 50 && mdx >= 88) {
strokes = 51;
saythismed('\rUh oh.', 2, 3, 0, -107);
}
}
fdepth = 5 + 1 * speed;
fuck = sine(mdx * 2 - 90) * fdepth + fdepth;
if (mdx > 45 && omdx < 45) {
if (strokes < 50) {
++strokes;
}
}
omdx = mdx;
if (speed * 100 > breath) {
breath = speed * 100;
}
uba = 3 + fuck * speed * 0.2;
if (strokes == 51 && mdx < 10) {
strokes = 52;
}
}
}
}
} else {
if (tsay == 22) {
if (uba > -7) {
uba -= 0.25;
}
if (wait) {
--wait;
} else {
saythismed('Maybe this banana is too big.', 2, 3, 0, -107);
tsay = 23;
wait = 80;
}
} else {
if (tsay == 23) {
if (wait) {
--wait;
} else {
saythismed('I have another banana.', 2, 3, -39, -155);
tsay = 24;
wait = 60;
}
} else {
if (tsay == 24) {
if (frontalpha > 0) {
frontalpha -= 10;
}
if (wait) {
--wait;
} else {
hideall();
saythismed('Oh my, it\'s red!', 2, 11, 88, -83);
tsay = 25;
wait = 70;
}
} else {
if (tsay == 25) {
if (wait) {
--wait;
} else {
saythismed('Do you want the banana inside your papaya?', 2, 3, -39, -155);
tsay = 26;
wait = 60;
}
} else {
if (tsay == 26) {
if (wait) {
--wait;
} else {
saythismed('Oh yes, I do.', 2, 11, 88, -83);
tsay = 27;
wait = 70;
}
} else {
if (tsay == 27) {
if (wait) {
--wait;
} else {
saythismed('Are you juicy enough?', 2, 3, -39, -155);
tsay = 28;
wait = 80;
}
} else {
if (tsay == 28) {
if (wait) {
if (wait < 40) {
if (frontalpha < 100) {
frontalpha += 10;
}
}
--wait;
} else {
saythismed('\rMay I?', 2, 3, -10, -87);
tsay = 29;
wait = 50;
}
} else {
if (tsay == 29) {
if (wait) {
--wait;
} else {
saythismed('Mmmmm.', 2, 11, 88, -83);
tsay = 30;
wait = 80;
}
} else {
if (tsay == 30) {
if (wait) {
if (wait < 40) {
if (frontalpha > 0) {
frontalpha -= 10;
}
}
--wait;
} else {
saythismed('Oh! It is very wet.', 2, 3, -10, -87);
tsay = 31;
wait = 90;
}
} else {
if (tsay == 31) {
if (wait) {
if (wait < 30) {
if (frontalpha < 100) {
frontalpha += 10;
}
}
--wait;
} else {
tsay = 32;
wait = 80;
}
} else {
if (tsay == 32) {
if (wait) {
if (wait < 30) {
if (frontalpha > 0) {
frontalpha -= 10;
}
}
--wait;
} else {
tsay = 33;
wait = 80;
}
} else {
if (tsay == 33) {
if (wait) {
--wait;
} else {
tsay = 34;
wait = 80;
attach = 0;
mdx = 0;
fuckoff = -16;
strokes = 0;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function dopapaya() {
ba += 5 + 7 * speed;
breathy = sine(ba) * breath / 100 + breath / 100;
breathy *= 0.5;
kx = 98;
ky = 39;
krlx = kx - 107;
krly = ky + 79;
kllx = kx - 28;
klly = ky + 102;
ppx = kx - 18;
ppy = ky + 13;
kpadd = fuck * speed;
pela = kpadd * 0.27;
box1_mc._x = 320 + kx;
box1_mc._y = 240 + ky;
box1_mc._rotation = 0;
box1_mc._alpha = frontalpha;
box1_mc.swapDepths(22300);
box1_mc.gotoAndStop(119);
box9_mc._x = 320 + kx;
box9_mc._y = 240 + ky;
box9_mc._rotation = 0;
sfrontalpha = frontalpha;
if (100 * speed < sfrontalpha) {
sfrontalpha = 100 * speed;
}
box9_mc._alpha = sfrontalpha;
box9_mc.swapDepths(22361);
box9_mc.gotoAndStop(128);
box2_mc._x = 320 + kx;
box2_mc._y = 240 + ky;
box2_mc._rotation = 0;
box2_mc._alpha = frontalpha;
box2_mc.swapDepths(22379);
box2_mc.gotoAndStop(120 + klook);
box8_mc._x = 320 + kx;
box8_mc._y = 240 + ky - breathy;
box8_mc._rotation = -45;
box8_mc._alpha = frontalpha;
box8_mc.swapDepths(22380);
box8_mc.gotoAndStop(126);
box3_mc._x = 320 + kx;
box3_mc._y = 240 + ky;
box3_mc._rotation = 45 + pela;
box3_mc._alpha = frontalpha;
box3_mc.swapDepths(22360);
box3_mc.gotoAndStop(123);
box4_mc._x = 320 + krlx;
box4_mc._y = 240 + krly;
box4_mc._rotation = 45 + kpadd * -14 / 100;
box4_mc._alpha = frontalpha;
box4_mc.swapDepths(22340);
box4_mc.gotoAndStop(122);
box5_mc._x = 320 + kllx;
box5_mc._y = 240 + klly;
box5_mc._rotation = 30 + kpadd * -21 / 100;
box5_mc._alpha = frontalpha;
box5_mc.swapDepths(22320);
box5_mc.gotoAndStop(121);
box6_mc._x = 320 + ppx;
box6_mc._y = 240 + ppy;
box6_mc._rotation = -45 + kpadd * 24 / 100;
box6_mc._alpha = frontalpha;
box6_mc.swapDepths(22390);
if (speed * 100 > 80) {
box6_mc.gotoAndStop(129);
} else {
box6_mc.gotoAndStop(124);
}
box7_mc._x = 320 + ppx;
box7_mc._y = 240 + ppy;
box7_mc._rotation = -45 + kpadd * 24 / 100;
box7_mc._alpha = frontalpha;
box7_mc.swapDepths(22415);
if (speed * 100 > 80) {
box7_mc.gotoAndStop(130);
} else {
box7_mc.gotoAndStop(125);
}
ra = fuckoff - fuck;
bx = -60;
by = -2;
shrad = 77;
shoa = 10.5;
xadd = sine(shoa + uba) * shrad;
yadd = -cosine(shoa + uba) * shrad;
shx = bx + xadd;
shy = by + yadd;
larad = 106;
laoa = 47.1;
xadd = sine(laoa + uba) * larad;
yadd = -cosine(laoa + uba) * larad;
lax = bx + xadd;
lay = by + yadd;
bnrad = 165;
bnoa = 172;
xadd = sine(bnoa + ra) * bnrad;
yadd = -cosine(bnoa + ra) * bnrad;
bnx = shx + xadd;
bny = shy + yadd;
barreltop1_mc._x = 320 + bx;
barreltop1_mc._y = 240 + by;
barreltop1_mc._rotation = -45 + uba;
barreltop1_mc._alpha = frontalpha;
barreltop1_mc.swapDepths(22385);
barreltop1_mc.gotoAndStop(57);
barreltop2_mc._x = 320 + shx;
barreltop2_mc._y = 240 + shy;
barreltop2_mc._rotation = 45 + ra;
barreltop2_mc._alpha = frontalpha;
barreltop2_mc.swapDepths(22400);
barreltop2_mc.gotoAndStop(58);
barreltop3_mc._x = 320 + bnx;
barreltop3_mc._y = 240 + bny;
barreltop3_mc._rotation = 45 + ra + fuck * 71 / 100;
barreltop3_mc._alpha = frontalpha;
barreltop3_mc.swapDepths(22410);
barreltop3_mc.gotoAndStop(60);
barreltop7_mc._x = 320 + bnx;
barreltop7_mc._y = 240 + bny;
barreltop7_mc._rotation = 45 + ra + fuck * 71 / 100;
barreltop7_mc._alpha = sfrontalpha;
barreltop7_mc.swapDepths(22411);
barreltop7_mc.gotoAndStop(63);
barreltop4_mc._x = 320 + shx;
barreltop4_mc._y = 240 + shy;
barreltop4_mc._rotation = 45 + ra;
barreltop4_mc._alpha = frontalpha;
barreltop4_mc.swapDepths(22420);
barreltop4_mc.gotoAndStop(59);
barreltop5_mc._x = 320 + lax;
barreltop5_mc._y = 240 + lay;
barreltop5_mc._rotation = 40;
barreltop5_mc._alpha = frontalpha;
barreltop5_mc.swapDepths(22190);
barreltop5_mc.gotoAndStop(61);
barreltop6_mc._x = 350;
barreltop6_mc._y = 315;
barreltop6_mc._rotation = 0;
barreltop6_mc._alpha = frontalpha;
barreltop6_mc.swapDepths(22191);
barreltop6_mc.gotoAndStop(62);
}
function dobeachfuck() {
if (frontalpha < 100) {
frontalpha += 10;
}
if (moandly) {
--moandly;
if (moandly == 0) {
say('moan');
yesSound.setVolume(30);
}
}
if (ohdly) {
--ohdly;
if (ohdly == 0) {
sayfile('O' + ohwch + '.mp3');
if (cumming) {
mmmSound.setVolume(70);
} else {
mmmSound.setVolume(20);
}
}
}
if (cumming) {
showauto = 0;
auto = 1;
}
if (!buttonpress) {
bbutrel = 1;
}
if (showauto && attach) {
if (onauto && bbutrel && buttonpress) {
if (auto) {
auto = 0;
} else {
auto = 1;
}
bbutrel = 0;
}
if (onauto) {
autobutton_mc.gotoAndStop(2);
if (!auto) {
autobutton_mc.txt.text = 'turn on autopilot';
} else {
autobutton_mc.txt.text = 'turn off autopilot';
}
} else {
autobutton_mc.gotoAndStop(3);
}
}
if (!attach) {
mm = 0;
arrowx = -173;
arrowy = 51;
attacharrow = 1;
arrowcursor = 0;
dx = mousex - 320 - arrowx;
dy = mousey - 240 - arrowy;
if (abs(dx) < 20 && abs(dy) < 20) {
attach = 1;
attachx = mousex;
attachy = mousey;
attacharrow = 0;
shorts = 0;
strokes = 0;
sstrokes = 0;
fstrokes = 0;
showauto = 1;
auto = 0;
arrowcursor = 1;
if (skipquick) {
strokes = 50;
sstrokes = 60;
fstrokes = 60;
cumming = 13;
squirt = 8;
cummed = 1;
}
}
} else {
if (fuckoff < 0) {
arrowangle = 90;
dx = -fuckoff;
if (dx > 0.5) {
fuckoff += dx / 8;
} else {
fuckoff = 0;
inout = 1;
}
} else {
amdx = (attachx - mousex) * 2;
if (amdx < -90) {
amdx = -90;
}
if (amdx > 90) {
amdx = 90;
}
if (cummed) {
if (speed > 0) {
speed -= 0.005;
}
} else {
speed = strokes / 50;
dx = amdx - mdx;
mdx += dx * 1 / (16 - 14 * speed);
}
}
}
if (strokes < 50) {
fdepth = 4.4 + strokes / 10;
} else {
strokes = 50;
}
if (shudder) {
++shudder;
if (shudder > 25) {
shudder = 0;
}
shudbend = sine((shudder / 25) * 180) * 8;
shudadd = (shudder & 1) * 4 / 10;
fuck = -fuckoff + sine(fa) * fdepth - fdepth / 2 + shorts + shudadd + shudbend * -4 / 10;
} else {
if (fhes) {
--fhes;
} else {
if (!cummed) {
if (!auto) {
if (attach) {
arrowcursor = 1;
jmx = 4 + 20 * speed + sstrokes * 35 / 100 - fstrokes * 37 / 100;
fmdx = ox - mousex;
ox = mousex;
if (fmdx < 0) {
arrowangle = 270;
} else {
if (fmdx > 0) {
arrowangle = 90;
}
}
dx = abs(fmdx);
if (dx > jmx) {
dx = jmx;
}
if (dx > fuckspeed) {
++fuckspeed;
} else {
if (dx < fuckspeed) {
fuckspeed -= 0.2;
}
}
if (abs(fuckspeed) <= 0.2) {
fuckspeed = 0;
}
if (fuckspeed > jmx) {
fuckspeed = jmx;
}
fspd = fuckspeed;
fa += fspd;
}
} else {
arrowcursor = 0;
fa += 4 + 20 * speed + sstrokes * 35 / 100 - fstrokes * 37 / 100;
}
fuck = -fuckoff + sine(fa) * fdepth - fdepth / 2 + shorts;
} else {
arrowcursor = 0;
if (fuck < 12) {
dx = 12 - fuck;
if (dx / 32 > 0.125) {
fuck += 0.125;
} else {
fuck += dx / 32;
if (fuck > 11.5) {
fuck = 12;
}
}
} else {
if (dickflop < 10) {
dx = 10 - dickflop;
dickflop += dx / 8;
if (dickflop > 9.699999999999999) {
dickflop = 10;
}
} else {
if (!goblackslow) {
goblackslow = 1;
}
}
}
}
}
}
if (fstrokes) {
if (fa >= 270 && ofa < 270) {
if (!cummed) {
slam = 1;
tslam = 1;
tslamdepth = fstrokes / 10;
sayfile('slap.mp3');
mmmSound.setVolume(10 + fstrokes);
if (cumming && !pending) {
moandly = 5;
}
}
if (pending) {
pending = 0;
++squirt;
shudder = 1;
if (squirt == 1) {
sayfile('mlove3.mp3');
} else {
if (squirt == 2) {
sayfile('mlove4.mp3');
} else {
if (squirt == 3) {
sayfile('mlove5.mp3');
} else {
if (squirt == 4) {
sayfile('mlove6.mp3');
} else {
if (squirt == 5) {
sayfile('mlove7.mp3');
} else {
if (squirt == 6) {
sayfile('mlove3.mp3');
} else {
if (squirt == 7) {
sayfile('mlove4.mp3');
} else {
if (squirt == 8) {
sayfile('mlove5.mp3');
cummed = 1;
}
}
}
}
}
}
}
}
ohdly = 5;
ohwch = squirt;
} else {
fhes = floor(fstrokes / 8);
if (cumming) {
++cumming;
if (cumming == 2 || cumming == 3 || cumming == 4 || cumming == 6 || cumming == 8 || cumming == 10 || cumming == 13) {
pending = 1;
}
}
}
}
}
ofa = fa;
if (auto) {
if (fa >= 360) {
fa -= 360;
mdx = -1;
omdx = 1;
} else {
omdx = 0;
mdx = 0;
}
}
if (mdx < 0 && omdx > 0 && !cummed) {
if (strokes < 50) {
++strokes;
} else {
if (sstrokes < 60) {
++sstrokes;
if (fdepth > 2.4) {
fdepth -= 0.25;
} else {
fdepth = 2.4;
}
if (shorts > -10) {
shorts -= 0.5;
}
} else {
if (!cummed) {
if (fstrokes < 60) {
++fstrokes;
if (fstrokes == 60) {
cumming = 1;
pending = 1;
}
muhtab = [4, 4, 9, 9, 3, 3, 5, 5, 6, 6, 4, 4];
if (fstrokes >= 50) {
num = muhtab[fstrokes - 49];
sayfile('muhh' + num + '.mp3');
mmmSound.setVolume(50);
ohdly = 5;
ohwch = fstrokes - 49;
if (ohwch > 8) {
ohwch -= 4;
}
}
}
if (fdepth < 9.4) {
fdepth += 0.25;
}
if (shorts < 0) {
shorts += 0.5;
}
}
}
}
}
omdx = mdx;
compression = fuck;
if (compression > -7) {
compression = -7;
}
compression += 7;
ffuck = fuck;
if (ffuck > 0) {
ffuck = 0;
}
if (slam) {
slam += 55;
slama = sine(slam) * fstrokes / 10;
if (slam >= 180) {
slam = 0;
}
}
if (tslam) {
tslam += 60;
tslama = sine(tslam) * tslamdepth;
if (tslam >= 360) {
tslam = 1;
tslamdepth /= 2;
if (tslamdepth < 0.5) {
tslam = 0;
}
}
}
kx = -29;
ky = 69;
kpa = fuck * -0.2;
kx += compression * -1;
kx += slama;
kha = kbreath / 2 + ffuck * 0.3;
kba = kbreath / 10 + compression * -0.1;
kpa += compression * -0.9;
khrad = 236;
khoa = 77;
xadd = sine(khoa + kba) * khrad;
yadd = -cosine(khoa + kba) * khrad;
khx = kx + xadd;
khy = ky + yadd;
box1_mc._x = 320 + kx;
box1_mc._y = 240 + ky;
box1_mc._rotation = 45 + kba;
box1_mc._alpha = frontalpha;
box1_mc.swapDepths(22200);
box1_mc.gotoAndStop(141);
box6_mc._x = 320 + kx + tslama + kbreath;
box6_mc._y = 240 + ky;
box6_mc._rotation = 45 + kba;
box6_mc._alpha = frontalpha;
box6_mc.swapDepths(22201);
box6_mc.gotoAndStop(143);
box2_mc._x = 320 + kx;
box2_mc._y = 240 + ky;
box2_mc._rotation = -45 + kpa;
box2_mc._alpha = frontalpha;
box2_mc.swapDepths(22400);
box2_mc.gotoAndStop(139);
box5_mc._x = 320 + kx;
box5_mc._y = 240 + ky;
box5_mc._rotation = -45 + kpa;
box5_mc._alpha = frontalpha;
box5_mc.swapDepths(22255);
box5_mc.gotoAndStop(138);
box3_mc._x = 320 + kx;
box3_mc._y = 240 + ky;
box3_mc._rotation = -45 + kpa;
box3_mc._alpha = frontalpha;
box3_mc.swapDepths(22199);
box3_mc.gotoAndStop(140);
box4_mc._x = 320 + khx;
box4_mc._y = 240 + khy;
box4_mc._rotation = 45 + kha;
box4_mc._alpha = frontalpha;
box4_mc.swapDepths(22202);
box4_mc.gotoAndStop(142);
bx = -157;
by = -58;
bx += fuck * -3;
by += fuck * -0.8;
rla = fuck * -1.1;
rlrad = 85;
rloa = 226;
xadd = sine(rloa + pa) * rlrad;
yadd = -cosine(rloa + pa) * rlrad;
rlx = bx + xadd;
rly = by + yadd;
llrad = 55;
lloa = -81;
xadd = sine(lloa + pa) * llrad;
yadd = -cosine(lloa + pa) * llrad;
llx = bx + xadd;
lly = by + yadd;
lla = +(fuck * -1.1);
cha = fuck * 0.2 + shudbend * 4 / 10 + bbreath;
pa = -2 + fuck;
ca = 23;
ca += ffuck * -0.1;
rarad = 237;
raoa = 53;
xadd = sine(raoa + cha) * rarad;
yadd = -cosine(raoa + cha) * rarad;
rax = bx + xadd;
ray = by + yadd;
raa = fuck * -0.6 + slama * -36 / 100 + fuck * shorts * -0.02 + compression * 31 / 100 + 4 + shudbend * 3 / 10;
larad = 240;
laoa = 46;
xadd = sine(laoa + cha) * larad;
yadd = -cosine(laoa + cha) * larad;
lax = bx + xadd;
lay = by + yadd + fuck * 1 + shudbend * -16 / 10;
laa = fuck * -0.4 + slama * -25 / 100;
ckrad = 96;
ckoa = -170;
xadd = sine(ckoa + pa) * ckrad;
yadd = -cosine(ckoa + pa) * ckrad;
cx = bx + xadd;
cy = by + yadd;
bba += 10;
bbreath = sine(bba) * 26 / 100;
kbangle += 9;
kbreath = sine(kbangle) * 72 / 100;
tired = fstrokes / 60;
kbreath *= tired;
bbreath *= tired;
barreltop1_mc._x = 320 + bx;
barreltop1_mc._y = 240 + by;
barreltop1_mc._rotation = 45 + pa;
barreltop1_mc._alpha = frontalpha;
barreltop1_mc.swapDepths(22300);
barreltop1_mc.gotoAndStop(65);
barreltop2_mc._x = 320 + rlx;
barreltop2_mc._y = 240 + rly;
barreltop2_mc._rotation = 45 + rla;
barreltop2_mc._alpha = frontalpha;
barreltop2_mc.swapDepths(22360);
barreltop2_mc.gotoAndStop(67);
barreltop3_mc._x = 320 + llx;
barreltop3_mc._y = 240 + lly;
barreltop3_mc._rotation = 45 + lla;
barreltop3_mc._alpha = frontalpha;
barreltop3_mc.swapDepths(22160);
barreltop3_mc.gotoAndStop(68);
barreltop4_mc._x = 320 + rax;
barreltop4_mc._y = 240 + ray;
barreltop4_mc._rotation = 45 + raa;
barreltop4_mc._alpha = frontalpha;
barreltop4_mc.swapDepths(22340);
barreltop4_mc.gotoAndStop(69);
barreltop5_mc._x = 320 + lax;
barreltop5_mc._y = 240 + lay;
barreltop5_mc._rotation = -30 + laa;
barreltop5_mc._alpha = frontalpha;
barreltop5_mc.swapDepths(22180);
barreltop5_mc.gotoAndStop(70);
barreltop6_mc._x = 320 + bx;
barreltop6_mc._y = 240 + by;
barreltop6_mc._rotation = -30 + cha;
barreltop6_mc._alpha = frontalpha;
barreltop6_mc.swapDepths(22320);
barreltop6_mc.gotoAndStop(66);
barreltop7_mc._x = 320 + cx;
barreltop7_mc._y = 240 + cy;
barreltop7_mc._rotation = 45 + ca + dickflop * 18 / 10;
barreltop7_mc._alpha = frontalpha;
barreltop7_mc.swapDepths(22250);
barreltop7_mc.gotoAndStop(71);
wetfrontalpha = (squirt / 8) * 100;
if (frontalpha < wetfrontalpha) {
wetfrontalpha = frontalpha;
}
barreltop8_mc._x = 320 + cx;
barreltop8_mc._y = 240 + cy;
barreltop8_mc._rotation = 45 + ca + dickflop * 18 / 10;
barreltop8_mc._alpha = wetfrontalpha;
barreltop8_mc.swapDepths(22251);
barreltop8_mc.gotoAndStop(72);
}
function doending() {
if (phase == 3) {
if (frontalpha > 0) {
frontalpha -= 1;
}
if (!talking) {
phase = 4;
showplate(2, 'The Next Morning');
sayfile('beachpath.mp3');
wait = 200;
}
} else {
if (phase == 4) {
if (tsay < 35) {
if (frontalpha < 100) {
frontalpha += 5;
}
if (wait) {
--wait;
} else {
if (!talking) {
tsay = 35;
wait = 20;
sayfile('waterfalls.mp3');
}
}
} else {
if (tsay == 35) {
if (frontalpha > 0) {
frontalpha -= 10;
}
if (wait) {
--wait;
} else {
saythismed('Oh! The water is cold!', 2, 4, -167, -157);
tsay = 36;
wait = 90;
}
} else {
if (tsay == 36) {
if (!talking) {
if (wait) {
--wait;
} else {
if (frontalpha < 100) {
frontalpha += 10;
} else {
tsay = 37;
wait = 40;
}
}
}
} else {
if (tsay == 37) {
if (wait) {
--wait;
} else {
phase = 5;
wait = 40;
tsay = 38;
}
}
}
}
}
} else {
if (phase == 5) {
if (frontalpha > 0) {
frontalpha -= 10;
}
if (wait) {
--wait;
} else {
phase = 6;
wait = 90;
}
} else {
if (phase == 6) {
if (frontalpha < 100) {
frontalpha += 10;
}
if (wait) {
--wait;
} else {
phase = 7;
wait = 90;
}
} else {
if (phase == 7) {
if (frontalpha > 0) {
frontalpha -= 10;
}
if (wait) {
--wait;
if (wait == 78) {
sayfile('bugle1.wav');
}
} else {
if (!talking) {
phase = 8;
wait = 90;
}
}
} else {
if (phase == 8) {
if (frontalpha < 100) {
frontalpha += 10;
}
if (wait) {
--wait;
if (wait == 78) {
sayfile('bugle2.wav');
}
} else {
if (tsay < 39) {
saythismed('Quick! To the ship!', 2, 10, -91, -37);
wait = 50;
tsay = 39;
} else {
if (tsay == 39) {
if (wait) {
--wait;
} else {
if (!talking) {
saythismed('Have you seen the girls?', 2, 10, -91, -37);
tsay = 40;
sayfile('bugle2.wav');
}
}
} else {
if (tsay == 40) {
if (!talking) {
phase = 9;
wait = 20;
sayfile('bugle3.wav');
sayfile('waterfalls.mp3');
}
}
}
}
}
} else {
if (phase == 9) {
if (frontalpha > 0) {
frontalpha -= 10;
}
if (wait) {
--wait;
} else {
if (tsay < 41 && !talking) {
saythismed('\rWhat is that sound?', 2, 4, 33, -111);
tsay = 41;
wait = 50;
} else {
if (tsay == 41 && !talking) {
if (wait) {
--wait;
} else {
saythismed('I don\'t know. Maybe a wake up call?', 2, 4, -167, -152);
tsay = 42;
wait = 60;
}
} else {
if (tsay == 42) {
if (wait) {
--wait;
} else {
phase = 10;
wait = 20;
}
}
}
}
}
}
}
}
}
}
}
}
if (phase == 10) {
if (frontalpha < 100) {
frontalpha += 10;
}
if (wait) {
--wait;
} else {
if (tsay < 43) {
saythismed('There is a frigate approaching, but the wind is in our favor.', 2, 12, -217, -63);
tsay = 43;
wait = 60;
} else {
if (tsay == 43) {
saythismed('\rWe\'re lucky for that!', 2, 4, -54, -64);
tsay = 44;
wait = 60;
} else {
if (tsay == 44) {
saythismed('That frigate may be as slow as molasses on a frosty morning,', 2, 12, -54, -64);
tsay = 45;
wait = 50;
} else {
if (tsay == 45) {
saythismed('But she has enough cannon to blow us clean out of the water!', 2, 12, -54, -64);
tsay = 46;
wait = 60;
} else {
if (tsay == 46) {
saythismed('Our only chance is to run, and we\'d best be quick about it!', 2, 12, -54, -64);
tsay = 47;
wait = 70;
} else {
if (tsay == 47) {
saythismed('Weigh anchor! Make sail! Quickly!', 2, 4, -54, -64);
tsay = 48;
wait = 60;
} else {
if (tsay == 48) {
phase = 11;
wait = 80;
}
}
}
}
}
}
}
}
} else {
if (phase == 11) {
if (frontalpha > 0) {
frontalpha -= 10;
}
if (wait) {
--wait;
} else {
phase = 12;
wait = 80;
}
} else {
if (phase == 12) {
if (frontalpha < 100) {
frontalpha += 1;
if (frontalpha == 100) {
stoplooping = 0;
loopfile1('blood5.mp3');
credit = -1;
credel = 160;
credstarted = 0;
}
} else {
docredits();
}
if (credstarted) {
autobutton_mc.swapDepths(23716);
autobutton_mc._x = 575;
autobutton_mc._y = 462;
autobutton_mc.gotoAndStop(6);
}
if (onauto) {
pusooypop = 2;
if (buttonpress) {
stoploop();
speaking = 0;
platedelay = 0;
platealpha = 0;
scenestarted = 0;
scene = 0;
init_bang();
pusooypop = 0;
}
} else {
if (mousex < 111 && mousey > 455) {
if (buttonpress && plinkrel) {
getURL('http://pusooy.net', '_blank');
plinkrel = 0;
}
if (!buttonpress) {
plinkrel = 1;
}
pusooypop = 1;
} else {
pusooypop = 0;
}
}
}
}
}
}
function docredits() {
if (credel) {
--credel;
} else {
credel = 100;
credstarted = 1;
++credit;
if (credit >= 4) {
credit = 0;
}
showplate(5, cred_text[credit]);
}
if (!onbeta) {
beta_mc.swapDepths(20005);
beta_mc.gotoAndStop(1);
beta_mc.txt.text = '\rVersion:' + version + ' ';
beta_mc._x = 599;
beta_mc._y = 481;
} else {
beta_mc.swapDepths(20005);
beta_mc.gotoAndStop(2);
beta_mc.txt.text = 'Bloodheart © 2008 all rights reserved\rThis game may be played only at \rpusooy.net Any other use\ris a violation of copyright.';
beta_mc._x = 562 + adjx;
beta_mc._y = 455 + adjy;
}
}
stop();
version = '1.04 Beta';
debug = 0;
beta_mc.gotoAndStop(1);
beta_mc.txt.text = '\rVersion:' + version + ' ';
Stage.showMenu = false;
forcephase = 0;
phase = 0;
scene = 0;
scene3repeated = 0;
ez = 1;
scenestarted = 0;
time = 0;
framerate = 20;
pusooypop = 0;
showpop = 0;
unblack = 99;
goblackslow = 0;
goblack = 0;
pausing = 0;
pauserel = 0;
delay = 0;
slomo = 0;
walk = 1;
wait = 0;
games = 0;
smoky = 0;
secretunlocked = 0;
highestscene = 0;
keyseq = 0;
vscale = 100;
fadjy = 0;
fadjx = 0;
var myBitmap = flash.display.BitmapData.loadBitmap('maze1.png');
var maze2_mc = this.createEmptyMovieClip('maze2_mc', 12);
maze2_mc.attachBitmap(myBitmap, 20000);
sheet_mc._x = -10000;
hideall();
bubble_mc.gotoAndStop(1);
arrow_mc.gotoAndStop(1);
gamesave = SharedObject.getLocal('trainsave');
if (gamesave.data.scene != undefined) {
oldscene = gamesave.data.scene;
if (gamesave.data.phase != undefined) {
oldphase = gamesave.data.phase;
} else {
oldphase = 0;
}
} else {
oldscene = -1;
oldphase = 0;
}
_root.createEmptyMovieClip('mousebutton', 1);
_root.onMouseDown = function () {
buttonpress = 1;
};
_root.onMouseUp = function () {
buttonpress = 0;
butrel = 1;
};
hidemouse = 0;
mousemove = 0;
_root.onMouseMove = function () {
mousemove = 15;
if (mousex < 20 || mousex > 620 || mousey < 20 || mousey > 460) {
Mouse.show();
} else {
if (hidemouse) {
Mouse.hide();
} else {
Mouse.show();
}
}
};
_root.onEnterFrame = function () {
bg_mc.swapDepths(0);
++time;
blinker = time & 8;
mousex = _root._xmouse;
mousey = _root._ymouse;
if (!soundstarted) {
initsound();
}
flipgame();
if (scene > highestscene) {
highestscene = scene;
gamesave.data.scene = scene;
gamesave.data.phase = phase;
}
if (pausing) {
if (Key.isDown(32) & pauserel) {
pausing = 0;
pauserel = 0;
slomo = 0;
}
doshowpause();
} else {
if (Key.isDown(32) & pauserel) {
pausing = 1;
pauserel = 0;
slomo = 0;
} else {
if (Key.isDown(90) || slomo) {
++delay;
if (delay >= 25) {
delay = 0;
doscene();
doprio();
doscroll();
dobubble();
dofade();
dolives();
if (highestscene || secretunlocked) {
doscenebar();
}
dopop();
}
} else {
doscene();
doprio();
doscroll();
dobubble();
dofade();
dolives();
if (highestscene || secretunlocked) {
doscenebar();
}
dopop();
}
}
}
if (!Key.isDown(32)) {
pauserel = 1;
}
cmousex = mousex - 320;
cmousey = mousey - 240;
mon0 = 'mx:' + cmousex + ' my:' + cmousey + ' phase:' + phase + ' scene:' + scene;
domon();
};
mon7 = '';
mon6 = '';
mon5 = '';
mon4 = '';
mon3 = '';
mon2 = '';
mon1 = '';
var mon0 = '';
var PI = Math.PI;
platealpha = 0;
platedelay = 0;
speakdelay = 0;
speaking = 0;
platey = 422;
bubbly = 0;
bubblex = 0;
showpoptype = 2;
arrowcolor = 0;
arrowcursor = 0;
arrowangle = 0;
attacharrow = 0;
arrowy = 0;
arrowx = 0;
scenebar_mc.onEnterFrame = function () {
scenepop = 0;
onscenebar = 0;
h = this.hitTest(_root._xmouse, _root._ymouse, true);
if (h) {
onscenebar = 1;
divby = 10;
scx = scenebar_mc._x - 50;
onnum = floor((_root._xmouse - scx) / divby) + 1;
if (onnum > 10) {
onnum = 10;
}
goscenetab = [0, 0, 0.5, 1, 2, 3, 5, 6, 7, 8, 9];
goscene = goscenetab[onnum];
if (buttonpress && goscene <= highestscene) {
stoploop();
speaking = 0;
platedelay = 0;
platealpha = 0;
scenestarted = 0;
scene = goscene;
if (scene == 0) {
init_bang();
} else {
if (scene == 1) {
init_bdeck();
} else {
if (scene == 2) {
init_cabin();
} else {
if (scene == 3) {
init_ondeck();
} else {
if (scene == 4) {
scenestarted = 0;
} else {
if (scene >= 5) {
scenestarted = 0;
} else {
scenestarted = 0;
}
}
}
}
}
}
}
pop_mc.gotoAndStop(1);
if (goscene <= highestscene) {
pop_mc.txt.text = 'Go to scene ' + onnum;
} else {
pop_mc.txt.text = 'Scene ' + onnum + ' locked.';
}
pop_mc._x = _root._xmouse - 150;
pop_mc._y = _root._ymouse + 50;
pop_mc.swapDepths(26632);
scenepop = 1;
} else {
if (keypop) {
--keypop;
if (keypop) {
pop_mc._x = 320;
pop_mc._y = 240;
pop_mc.gotoAndStop(2);
pop_mc.swapDepths(26632);
showingpop = 1;
}
} else {
if (mousepop) {
--mousepop;
if (mousepop) {
pop_mc._x = 320;
pop_mc._y = 240;
pop_mc.gotoAndStop(3);
pop_mc.swapDepths(26632);
showingpop = 1;
}
} else {
if (pusooypop) {
if (pusooypop == 1) {
pop_mc._x = _root._xmouse + 150;
} else {
pop_mc._x = _root._xmouse - 150;
}
pop_mc._y = _root._ymouse - 50;
if (pusooypop == 1) {
pop_mc.gotoAndStop(4);
} else {
pop_mc.gotoAndStop(6);
}
pop_mc.swapDepths(26632);
showingpop = 1;
} else {
onnum = 0;
showingpop = 0;
pop_mc._x = -10000;
}
}
}
}
};
beta_mc.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
onbeta = 1;
} else {
onbeta = 0;
betarel = 1;
}
};
soundstarted = 0;
var slaptalking = 0;
lastyes = 0;
lastgiggle = 0;
stoplooping = 1;
loopvol = 100;
lastmmm = 0;
lastoh = 1;
lastswish = 1;
cricket2 = 0;
cricket1 = 0;
talking = 0;
lastswing = 1;
lasthurt = 0;
lastmoan = 0;
moans = 0;
moandone = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
muhhs = 0;
muhhdone = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
bump = 0;
staircenter0 = 450;
staircenter1 = 450;
kittyowner = 0;
kanim = STAND;
kbehind = 100;
drinkalpha = 0;
dframe = 1;
flames = 10;
flamesiz = [0, 10, 20, 30, 40, 0, 10, 20, 30, 40];
flamealp = [0, 30, 55, 75, 90, 0, 30, 55, 75, 90];
flamealpd = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
flamefra = [0, 1, 2, 3, 0, 1, 2, 3, 0, 1];
firesize = 50;
LEFT = -1;
RIGHT = 1;
FRONT = 0;
BACK = 2;
UP = -2;
DOWN = 2;
NONE = 0;
WHIMP = 1;
BLOOD = 2;
DID = 3;
DUM = 4;
STUMPY = 5;
STUMPYB = 6;
KITTY = 7;
BARREL = 8;
DUMB = 9;
STAND = 0;
ADVL = 1;
RETL = 2;
WALKR = 5;
WALKL = 6;
WALKF = 7;
WALKB = 8;
UPSTAIR = 9;
DNSTAIR = 10;
ENGARDE = 11;
DRAW = 12;
UNDRAW = 13;
TURN = 14;
DRAG = 15;
GRAB = 16;
DRAGGED = 17;
GRABBED = 18;
BGRABBED = 19;
KBACK = 20;
SCURRYB = 21;
TOUCHE = 22;
UNTOUCHE = 23;
DROP = 24;
RUN = 25;
STOPRUN = 26;
PICKUP = 27;
SLIDE = 28;
KNOCK = 29;
DIE = 30;
HEAVE = 31;
HEAVED = 32;
CUTROPE = 33;
ROPELIFT = 34;
ROPEFALL = 35;
CLIMB = 36;
SWING = 37;
UNCLIMB = 38;
SSLIDE = 39;
SWINGKICK = 40;
CLIMBMAST = 41;
SLIDEMAST = 42;
SLIDERECOVER = 43;
KILL = 44;
KILLED = 45;
INCH = 46;
PICKLAMP = 47;
CHECKDOOR = 48;
BUSTDOOR = 49;
CUT1 = 80;
PARRY1 = 81;
BLOCK1 = 82;
bflip = 0;
hrel = 0;
swordview = 0;
ballson = 1;
NUMBALLS = 8;
ballsx = [0, 30, 60, 90, 0, 0, 0, 0];
ballsy = [0, 0, 0, 0];
ballsz = [0, 0, 0, 0];
ballscx = [0, 30, 60, 90];
ballscy = [0, 0, 0, 0];
ballstat = [0, 0, 0, 0, 0, 0, 0, 0];
ballframe = [1, 1, 1, 1];
ballscale = [100, 100, 100, 100];
ballmom = [0, 0, 0, 0];
ballxadd = [0, 0, 0, 0];
ballyadd = [0, 0, 0, 0];
RUN = 0;
STOP = 1;
SITUP = 2;
SITDN = 3;
RATDIE = 4;
dieadd = 0;
swordzadd = -10000;
swordloops = 0;
X = -10000;
junkx = [818, -318, 958, X, X, X, X, X, X, X, X, X, X, X, X, X, -30, 25, 92, 155, 401, 477, X, X, 302, 566, 597, 869, 871, X, X, X];
junky = [271, -64, 141, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 218, 220, 216, 220, 224, 225, 0, 0, 203, 199, 206, 195, 225, 0, 0, 0];
junkp = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
junkscale = [100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 150, 150, 150, 150, 150, 150, 150, 150, 203, 203, 203, 203, 203, 203, 203, 203];
jedit = 0;
tjunkx = junkx[0];
tjunky = junky[0];
tjunkp = junkp[0];
Diddly;
didx = 0;
didy = 0;
didframe = 3;
didanim = 0;
didseq = 0;
dumx = 0;
dumy = 0;
dumframe = 3;
dumanim = 0;
dumseq = 0;
saytab = ['\rSure is dark!', '\rSure is.', '\rDon\'t leave me!', '\rIt\'s dark!', 'Diddly!\r Come back!', '\rWas dat?', '\rDunno.', '\rPick it up!', '\rIt\'s a lamp!', '\rDoes it work?', '\rStill warm.', '\rTry it.', '\rIt works!', 'See what it is.\rPick it up!', '\rLook! A door!', '\rOpen it!', '\rTis locked!', '\rDamn!', '\rThe gold must be in there!', '\rTreasure!', '\rBreak down the door.', '\rReady?', '\rOne', '\rTwo', '\rHeave!', '\rHo!'];
saydel = 0;
ddsay = 0;
stumpyxtab = [0, -195, -114, -114];
stumpyytab = [0, 141, 151, 151];
gbsaytab = ['Harrrr!\rFine looking slave girl Capn!', '70', DID, '\rWho gets first fuck?', '70', DUM, 'For the fine job of spotting the treasure ship,', '70', BLOOD, '\rStumpy goes first!', '60', BLOOD, '\rHarrr!', '70', STUMPY, '\rHow do you call?', '70', DID, '', '1', NONE, '', '1', NONE, '\rI wants to fuck her in the ass!', '70', STUMPYB, 'I\'m tired of that cabin boy\'s bony little ass.', '70', STUMPYB, 'I wants some sweet plump girly ass to fuck!', '70', STUMPYB, 'Lay her over that barrel.\r', '70', STUMPYB, 'Gets me some grease.\r', '70', STUMPYB, '\rFuck your ass little girly!', '80', STUMPY, '', '50', NONE, '', '50', NONE, '', '10', NONE, 'Time for me to get a little action.', '70', DUMB, '', '50', NONE, '', '50', NONE, '', '50', NONE, '\r', '\r', '\r', '\r', '\r'];
ophase = 0;
sqphase = -1;
cabsaytab = ['', '20', NONE, '\rI see pussy!', '50', DUM, '\rI see gold!', '50', DID, '\rSweet young pussy.', '50', DUM, '\rGood as gold.', '60', DID, '\rBetter!', '70', DUM, '', '50', NONE, '', '50', NONE, '', '50', NONE];
dumshandx = 0;
dumshandx = 0;
cphase = 0;
dripping = 0;
ttalk = 0;
dphase = 0;
dstat = 0;
jump = 0;
ba = 0;
sqon = [];
sqx = [];
sqy = [];
sqa = [];
sqyadd = [];
sqxadd = [];
sqtheta = [];
sqrad = [];
sqsuba = [];
sqatt = [];
sqrot = [];
sqf = [];
sqfd = [];
sqfdn = [];
usqlandy = [];
sqyaddtab = [-24, -20, -25, -20, -16, -19, -14, -19];
sqxaddtab = [2.3, 3.1, 1.3, 1.5, 0.1, 4.5, -2.3, -1];
sqatttab = [1, 2, 1, 2, 0, 2, 0, 3];
sqlandy = [20, -41, 6, -52, -5, -86, -10, -99];
splatwch = [0, 1, 3, 2, 7, 5, 6, 4];
kpa = 0;
fa = 0;
fa = 0;
autobutton_mc.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
onauto = 1;
} else {
onauto = 0;
autorel = 1;
}
};
cred_text = ['\rBloodheart © 2008 \rAll rights reserved', '\rSecret unlock code: harr\r Type this code next time you play the game\r to be able to skip to any scene.', 'Original concept, game design, grogramming,\r 3d characters, background art\r and music by\r Pusooy', '\rAll characters created in Daz 3dstudio\r using the base David and Victoria 4.2 models.'];
}
movieClip 92 {
}
movieClip 195 {
}
movieClip 200 {
}
movieClip 205 {
}
movieClip 466 {
}
movieClip 774 {
}
movieClip 805 {
}
movieClip 842 {
}
movieClip 845 {
}
movieClip 890 {
}
movieClip 945 {
}
movieClip 1044 {
}
movieClip 1047 {
}
movieClip 1050 {
}
movieClip 1053 {
}
movieClip 1055 {
}
movieClip 1062 {
}
movieClip 1075 {
}
movieClip 1078 {
}
movieClip 1131 {
}
movieClip 1394 {
}
movieClip 1541 {
}
movieClip 1696 {
}
movieClip 1817 {
}
movieClip 1844 {
}
movieClip 1847 {
}
movieClip 1870 {
}
movieClip 1894 {
}
movieClip 1895 {
}
movieClip 1904 {
}
movieClip 1918 {
}
movieClip 1931 {
}
movieClip 1933 {
}