Frame 1
fscommand ("allowscale", false);
stop();
Instance of Symbol 17 MovieClip in Frame 1
onClipEvent (load) {
trace(_root.getBytesTotal() / 1024);
trace(_root.getBytesTotal());
_root.continueB._visible = false;
}
onClipEvent (enterFrame) {
mctotal = _root.getBytesTotal();
mcloaded = _root.getBytesLoaded();
_parent.percent = Math.round((mcloaded / mctotal) * 100);
_root.pBar.gotoAndStop(_parent.percent / 2);
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_parent.bytes = "Loading complete";
_parent.precents = "100%";
_root.continueB._visible = true;
} else {
bits = Math.round((_root.getBytesTotal() - _root.getBytesLoaded()) / 1024);
_parent.bytes = bits + " KBytes left";
_parent.precents = _parent.percent + "%";
}
}
Frame 4
stop();
_global.money = 20;
_global.beginner = false;
Array.prototype.shuffle = function () {
var _local5 = this.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = Math.floor(Math.random() * _local5);
var _local4 = this[_local2];
this[_local2] = this[_local3];
this[_local3] = _local4;
_local2++;
}
};
_global.tempFish = new Array();
_global.tempFish[0];
_global.baitMS = 1;
_global.whatBaitE = 2;
_global.baitsOwned = new Array();
_global.baitsOwned = [0, 5, 0, 0];
_global.LureNumbers = new Array();
_global.LureNumbers = [4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0];
_global.wormPlusD = 2;
_global.wormPlusN = 0;
_global.speedPenalty = 0;
_global.baits = new Array();
_global.baits = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_global.eBait = 1;
_global.goodLure = 0;
_global.poleQ = 0.7;
_global.reelQ = 0.7;
_global.lineQ = 2;
_global.yourFish1 = new Array();
_global.yourFish1 = [0, "", 0, 0];
_global.yourFish2 = new Array();
_global.yourFish2 = [0, "", 0, 0];
_global.yourFish3 = new Array();
_global.yourFish3 = [0, "", 0, 0];
_global.yourFish4 = new Array();
_global.yourFish4 = [0, "", 0, 0];
_global.yourFish5 = new Array();
_global.yourFish5 = [0, "", 0, 0];
_global.yourFish6 = new Array();
_global.yourFish6 = [0, "", 0, 0];
_global.yourFish7 = new Array();
_global.yourFish7 = [0, "", 0, 0];
_global.yourFish8 = new Array();
_global.yourFish8 = [0, "", 0, 0];
_global.tActivated = false;
_global.timeCheck = 780;
_global.fishDay1 = new Array();
_global.fishDay1[0] = "Pike";
_global.fishDay1[1] = "Zander";
_global.fishDay1[2] = "Salmon";
_global.fishDay1[3] = "Trout";
_global.fishDay1[4] = "Catfish";
_global.fishDay1[5] = "Whitefish";
_global.fishDay1[6] = "Roach";
_global.fishDay1[7] = "Crucian carp";
fishDay1.shuffle();
_global.fishDay2 = new Array();
randomi = Math.random();
if (randomi <= 0.25) {
_global.fishDay2[0] = _global.fishDay1[6];
_global.fishDay2[1] = _global.fishDay1[7];
_global.fishDay2[2] = _global.fishDay1[0];
_global.fishDay2[3] = _global.fishDay1[1];
_global.fishDay2[4] = _global.fishDay1[2];
_global.fishDay2[5] = _global.fishDay1[3];
_global.fishDay2[6] = _global.fishDay1[4];
_global.fishDay2[7] = _global.fishDay1[5];
if (Math.random() < 0.5) {
temppi = _global.fishDay2[0];
_global.fishDay2[0] = _global.fishDay2[1];
_global.fishDay2[1] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[2];
_global.fishDay2[2] = _global.fishDay2[3];
_global.fishDay2[3] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[4];
_global.fishDay2[4] = _global.fishDay2[5];
_global.fishDay2[5] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[6];
_global.fishDay2[6] = _global.fishDay2[7];
_global.fishDay2[7] = temppi;
}
} else if (randomi <= 0.5) {
_global.fishDay2[0] = _global.fishDay1[5];
_global.fishDay2[1] = _global.fishDay1[6];
_global.fishDay2[2] = _global.fishDay1[7];
_global.fishDay2[3] = _global.fishDay1[0];
_global.fishDay2[4] = _global.fishDay1[1];
_global.fishDay2[5] = _global.fishDay1[2];
_global.fishDay2[6] = _global.fishDay1[3];
_global.fishDay2[7] = _global.fishDay1[4];
if (Math.random() < 0.5) {
temppi = _global.fishDay2[0];
_global.fishDay2[0] = _global.fishDay2[1];
_global.fishDay2[1] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[2];
_global.fishDay2[2] = _global.fishDay2[3];
_global.fishDay2[3] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[4];
_global.fishDay2[4] = _global.fishDay2[5];
_global.fishDay2[5] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[6];
_global.fishDay2[6] = _global.fishDay2[7];
_global.fishDay2[7] = temppi;
}
} else if (randomi <= 0.75) {
_global.fishDay2[0] = _global.fishDay1[3];
_global.fishDay2[1] = _global.fishDay1[4];
_global.fishDay2[2] = _global.fishDay1[5];
_global.fishDay2[3] = _global.fishDay1[6];
_global.fishDay2[4] = _global.fishDay1[7];
_global.fishDay2[5] = _global.fishDay1[0];
_global.fishDay2[6] = _global.fishDay1[1];
_global.fishDay2[7] = _global.fishDay1[2];
if (Math.random() < 0.5) {
temppi = _global.fishDay2[0];
_global.fishDay2[0] = _global.fishDay2[1];
_global.fishDay2[1] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[2];
_global.fishDay2[2] = _global.fishDay2[3];
_global.fishDay2[3] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[4];
_global.fishDay2[4] = _global.fishDay2[5];
_global.fishDay2[5] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[6];
_global.fishDay2[6] = _global.fishDay2[7];
_global.fishDay2[7] = temppi;
}
} else {
_global.fishDay2[0] = _global.fishDay1[2];
_global.fishDay2[1] = _global.fishDay1[3];
_global.fishDay2[2] = _global.fishDay1[4];
_global.fishDay2[3] = _global.fishDay1[5];
_global.fishDay2[4] = _global.fishDay1[6];
_global.fishDay2[5] = _global.fishDay1[7];
_global.fishDay2[6] = _global.fishDay1[0];
_global.fishDay2[7] = _global.fishDay1[1];
if (Math.random() < 0.5) {
temppi = _global.fishDay2[0];
_global.fishDay2[0] = _global.fishDay2[1];
_global.fishDay2[1] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[2];
_global.fishDay2[2] = _global.fishDay2[3];
_global.fishDay2[3] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[4];
_global.fishDay2[4] = _global.fishDay2[5];
_global.fishDay2[5] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishDay2[6];
_global.fishDay2[6] = _global.fishDay2[7];
_global.fishDay2[7] = temppi;
}
}
_global.fishNight1 = new Array();
_global.fishNight1[0] = "Anglerfish";
_global.fishNight1[1] = "Eel";
_global.fishNight1[2] = "Burbot";
_global.fishNight1[3] = "Pufferfish";
_global.fishNight1[4] = "Ray";
_global.fishNight1[5] = "Flounder";
_global.fishNight1[6] = "Octopus";
_global.fishNight1[7] = "Squid";
fishNight1.shuffle();
_global.fishNight2 = new Array();
if (randomi <= 0.25) {
_global.fishNight2[0] = _global.fishNight1[6];
_global.fishNight2[1] = _global.fishNight1[7];
_global.fishNight2[2] = _global.fishNight1[0];
_global.fishNight2[3] = _global.fishNight1[1];
_global.fishNight2[4] = _global.fishNight1[2];
_global.fishNight2[5] = _global.fishNight1[3];
_global.fishNight2[6] = _global.fishNight1[4];
_global.fishNight2[7] = _global.fishNight1[5];
if (Math.random() < 0.5) {
temppi = _global.fishNight2[0];
_global.fishNight2[0] = _global.fishNight2[1];
_global.fishNight2[1] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[2];
_global.fishNight2[2] = _global.fishNight2[3];
_global.fishNight2[3] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[4];
_global.fishNight2[4] = _global.fishNight2[5];
_global.fishNight2[5] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[6];
_global.fishNight2[6] = _global.fishNight2[7];
_global.fishNight2[7] = temppi;
}
} else if (randomi <= 0.5) {
_global.fishNight2[0] = _global.fishNight1[5];
_global.fishNight2[1] = _global.fishNight1[6];
_global.fishNight2[2] = _global.fishNight1[7];
_global.fishNight2[3] = _global.fishNight1[0];
_global.fishNight2[4] = _global.fishNight1[1];
_global.fishNight2[5] = _global.fishNight1[2];
_global.fishNight2[6] = _global.fishNight1[3];
_global.fishNight2[7] = _global.fishNight1[4];
if (Math.random() < 0.5) {
temppi = _global.fishNight2[0];
_global.fishNight2[0] = _global.fishNight2[1];
_global.fishNight2[1] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[2];
_global.fishNight2[2] = _global.fishNight2[3];
_global.fishNight2[3] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[4];
_global.fishNight2[4] = _global.fishNight2[5];
_global.fishNight2[5] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[6];
_global.fishNight2[6] = _global.fishNight2[7];
_global.fishNight2[7] = temppi;
}
} else if (randomi <= 0.75) {
_global.fishNight2[0] = _global.fishNight1[3];
_global.fishNight2[1] = _global.fishNight1[4];
_global.fishNight2[2] = _global.fishNight1[5];
_global.fishNight2[3] = _global.fishNight1[6];
_global.fishNight2[4] = _global.fishNight1[7];
_global.fishNight2[5] = _global.fishNight1[0];
_global.fishNight2[6] = _global.fishNight1[1];
_global.fishNight2[7] = _global.fishNight1[2];
if (Math.random() < 0.5) {
temppi = _global.fishNight2[0];
_global.fishNight2[0] = _global.fishNight2[1];
_global.fishNight2[1] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[2];
_global.fishNight2[2] = _global.fishNight2[3];
_global.fishNight2[3] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[4];
_global.fishNight2[4] = _global.fishNight2[5];
_global.fishNight2[5] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[6];
_global.fishNight2[6] = _global.fishNight2[7];
_global.fishNight2[7] = temppi;
}
} else {
_global.fishNight2[0] = _global.fishNight1[2];
_global.fishNight2[1] = _global.fishNight1[3];
_global.fishNight2[2] = _global.fishNight1[4];
_global.fishNight2[3] = _global.fishNight1[5];
_global.fishNight2[4] = _global.fishNight1[6];
_global.fishNight2[5] = _global.fishNight1[7];
_global.fishNight2[6] = _global.fishNight1[0];
_global.fishNight2[7] = _global.fishNight1[1];
if (Math.random() < 0.5) {
temppi = _global.fishNight2[0];
_global.fishNight2[0] = _global.fishNight2[1];
_global.fishNight2[1] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[2];
_global.fishNight2[2] = _global.fishNight2[3];
_global.fishNight2[3] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[4];
_global.fishNight2[4] = _global.fishNight2[5];
_global.fishNight2[5] = temppi;
}
if (Math.random() < 0.5) {
temppi = _global.fishNight2[6];
_global.fishNight2[6] = _global.fishNight2[7];
_global.fishNight2[7] = temppi;
}
}
trace((((((((((((((_global.fishDay1[0] + ", ") + _global.fishDay1[1]) + ", ") + _global.fishDay1[2]) + ", ") + _global.fishDay1[3]) + ", ") + _global.fishDay1[4]) + ", ") + _global.fishDay1[5]) + ", ") + _global.fishDay1[6]) + ", ") + _global.fishDay1[7]);
trace((((((((((((((_global.fishDay2[0] + ", ") + _global.fishDay2[1]) + ", ") + _global.fishDay2[2]) + ", ") + _global.fishDay2[3]) + ", ") + _global.fishDay2[4]) + ", ") + _global.fishDay2[5]) + ", ") + _global.fishDay2[6]) + ", ") + _global.fishDay2[7]);
trace(" ");
trace((((((((((((((_global.fishNight1[0] + ", ") + _global.fishNight1[1]) + ", ") + _global.fishNight1[2]) + ", ") + _global.fishNight1[3]) + ", ") + _global.fishNight1[4]) + ", ") + _global.fishNight1[5]) + ", ") + _global.fishNight1[6]) + ", ") + _global.fishNight1[7]);
trace((((((((((((((_global.fishNight2[0] + ", ") + _global.fishNight2[1]) + ", ") + _global.fishNight2[2]) + ", ") + _global.fishNight2[3]) + ", ") + _global.fishNight2[4]) + ", ") + _global.fishNight2[5]) + ", ") + _global.fishNight2[6]) + ", ") + _global.fishNight2[7]);
_global.knownFishes = new Array();
_global.knownFishes = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_global.YourStr = 1;
_global.YourDex = 1;
_global.YourHag = 1;
_global.buttonsEnabler = false;
_global.expPoints = 0;
_global.expPointsAll = 0;
_global.expAmount = 0;
rando = Math.floor(Math.random() * 8);
if (rando == 8) {
rando = 7;
}
_global.fishOfDay1 = _global.fishDay1[rando];
randomi = Math.floor(Math.random() * 8);
if (randomi == 8) {
randomi = 7;
}
while (rando == randomi) {
randomi = Math.floor(Math.random() * 8);
if (randomi == 8) {
randomi = 7;
}
}
_global.fishOfDay2 = _global.fishDay1[randomi];
_global.theName = "Pete the Pirate";
_global.specialItems = 0;
_global.fishOnHook = false;
_global.bosslevel = 1;
_global.missedLetter = false;
_global.lostOnce = false;
_global.boatBroken = false;
_global.throwingFish = false;
_global.menuOpen = false;
_global.ready = false;
_global.cods = 0;
_global.buttonsUsable = true;
_global.reelHelper = false;
_global.music = true;
_global.sounds = true;
_global.voices = true;
_global.tooltip = true;
_global.lost = false;
menuSound = new Sound(this);
menuSound.attachSound("preboss");
menuSound.start();
menuSound.setVolume(70);
menuSound.onSoundComplete = function () {
menuSound.start();
};
Frame 5
gotoAndPlay (7);
menuSound.stop();
Frame 6
gotoAndStop (1201);
menuSound.stop();
Frame 136
gotoAndPlay (7);
Frame 247
gotoAndPlay (137);
Instance of Symbol 1077 MovieClip "sunMC" in Frame 382
onClipEvent (load) {
gotoAndPlay (8);
}
Frame 1200
if (_global.voices) {
beginSound = new Sound(this);
beginSound.attachSound("begin");
beginSound.start(0, 1);
}
Frame 1201
stop();
_global.boatRotation = -45;
_global.boatPosX = 427;
_global.boatPosY = 231;
_global.cloudSpeed = Math.round(((Math.random() * 2) - 1) * 10) / 10;
if (_global.boatBroken) {
boat.gotoAndStop(2);
}
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
lights.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
lights.gotoAndPlay(39);
}
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
nightMc.gotoAndStop(79);
nightSky.gotoAndStop(79);
moon.gotoAndStop(1);
aurinko.gotoAndStop(1);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
nightMc.gotoAndStop(39);
nightSky.gotoAndStop(39);
moon.gotoAndStop(40);
aurinko.gotoAndStop(40);
}
Instance of Symbol 1098 MovieClip "cloud2" in Frame 1201
onClipEvent (load) {
vis = Math.random();
if (vis < 0.5) {
this._visible = 0;
} else {
this._visible = 1;
}
}
Instance of Symbol 1102 MovieClip "cloud3" in Frame 1201
onClipEvent (load) {
vis = Math.random();
if (vis < 0.5) {
this._visible = 0;
} else {
this._visible = 1;
}
}
Instance of Symbol 1100 MovieClip "cloud1" in Frame 1201
onClipEvent (load) {
vis = Math.random();
if (vis < 0.5) {
this._visible = 0;
} else {
this._visible = 1;
}
}
Instance of Symbol 1207 MovieClip in Frame 1201
onClipEvent (load) {
vis = Math.random();
if (vis < 0.5) {
bird._visible = 0;
} else {
bird._visible = 1;
}
}
Instance of Symbol 1251 MovieClip in Frame 1201
onClipEvent (enterFrame) {
function calcTime() {
_global.timeCheck++;
if (_global.timeCheck >= 1440) {
_global.timeCheck = 0;
}
if (_global.timeCheck == 540) {
_root.nightSky.gotoAndPlay(40);
_root.nightMc.gotoAndPlay(40);
_root.moon.gotoAndPlay(40);
_root.aurinko.gotoAndPlay(40);
}
if (_global.timeCheck == 545) {
rando = Math.floor(Math.random() * 8);
if (rando == 8) {
rando = 7;
}
_global.fishOfDay1 = _global.fishDay1[rando];
randomi = Math.floor(Math.random() * 8);
if (randomi == 8) {
randomi = 7;
}
while (rando == randomi) {
randomi = Math.floor(Math.random() * 8);
if (randomi == 8) {
randomi = 7;
}
}
_global.fishOfDay2 = _global.fishDay1[randomi];
}
if (_global.timeCheck == 1265) {
rando = Math.floor(Math.random() * 8);
if (rando == 8) {
rando = 7;
}
_global.fishOfDay1 = _global.fishNight1[rando];
randomi = Math.floor(Math.random() * 8);
if (randomi == 8) {
randomi = 7;
}
while (rando == randomi) {
randomi = Math.floor(Math.random() * 8);
if (randomi == 8) {
randomi = 7;
}
}
_global.fishOfDay2 = _global.fishNight1[randomi];
}
if ((_global.timeCheck >= 545) && (_global.timeCheck <= 1255)) {
_root.nightMc.gotoAndStop(79);
_root.nightSky.gotoAndStop(79);
_root.moon.gotoAndStop(1);
_root.aurinko.gotoAndStop(1);
}
if (_global.timeCheck == 1260) {
_root.nightSky.gotoAndPlay(2);
_root.nightMc.gotoAndPlay(2);
_root.moon.gotoAndPlay(2);
_root.aurinko.gotoAndPlay(2);
}
if ((_global.timeCheck >= 1265) || (_global.timeCheck <= 535)) {
_root.nightMc.gotoAndStop(39);
_root.nightSky.gotoAndStop(39);
_root.moon.gotoAndStop(40);
_root.aurinko.gotoAndStop(40);
}
if (_global.timeCheck == 540) {
_root.lights.gotoAndPlay(40);
}
if ((_global.timeCheck >= 545) && (_global.timeCheck <= 1255)) {
_root.lights.gotoAndStop(79);
}
if (_global.timeCheck == 1260) {
_root.lights.gotoAndPlay(2);
}
if ((_global.timeCheck >= 1265) || (_global.timeCheck <= 535)) {
_root.lights.gotoAndStop(39);
}
nHours = Math.floor(_global.timeCheck / 60);
nMinutes = _global.timeCheck - (nHours * 60);
if (nHours >= 12) {
ampm = "pm";
} else {
ampm = "am";
}
if (nHours >= 13) {
nHoursReal = nHours - 12;
} else {
nHoursReal = nHours;
}
if (nHoursReal < 10) {
nHoursReal = "0" + nHoursReal;
}
if (nHoursReal == 0) {
nHoursReal = "12";
}
if (nMinutes < 10) {
nMinutes = "0" + nMinutes;
}
nTime = (((nHoursReal + ":") + nMinutes) + " ") + ampm;
}
nHours = 0;
nMinutes = 0;
ampm = "";
if (_global.tActivated == false) {
_global.tActivated = true;
calcTime();
timeInterval = setInterval(calcTime, 1000);
}
}
Instance of Symbol 1252 MovieClip in Frame 1201
onClipEvent (load) {
kantriSound = new Sound(this);
kantriSound.attachSound("kantrireal");
musicPlaying = false;
}
onClipEvent (enterFrame) {
if (_global.fishOnHook && (_root._currentframe >= 1206)) {
if (_global.music) {
if (!musicPlaying) {
musicPlaying = true;
kantriSound.start();
}
if (kantriSound.position >= 13800) {
kantriSound.stop();
kantriSound.start(2.2, 0);
}
}
} else {
kantriSound.stop();
musicPlaying = false;
}
}
Instance of Symbol 1252 MovieClip in Frame 1201
onClipEvent (load) {
lakeMusic = new Sound(this);
lakeMusic.attachSound("lake");
musicPlaying = false;
newVol = 0;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 1205) {
if (!musicPlaying) {
if (_global.music) {
musicPlaying = true;
lakeMusic.start();
lakeMusic.setVolume(0);
lakeMusic.onSoundComplete = function () {
lakeMusic.start();
};
}
}
if (_global.music) {
if (newVol <= 65) {
newVol = newVol + 5;
}
lakeMusic.setVolume(newVol);
}
} else if (_root._currentframe <= 1204) {
if (lakeMusic.getVolume() > 5) {
if (newVol > 0) {
newVol = newVol - 5;
lakeMusic.setVolume(newVol);
}
} else {
lakeMusic.stop();
musicPlaying = false;
}
} else {
lakeMusic.stop();
musicPlaying = false;
newVol = 0;
}
if (!_global.music) {
lakeMusic.setVolume(0);
newVol = 0;
}
}
Instance of Symbol 1252 MovieClip in Frame 1201
onClipEvent (load) {
ambiMusic = new Sound(this);
ambiMusic.attachSound("ambi");
musicPlaying = false;
newVol = 0;
}
onClipEvent (enterFrame) {
if (((!_global.fishOnHook) && (_root._currentframe >= 1206)) && (_root._currentframe <= 1215)) {
if (!musicPlaying) {
if (_global.music) {
musicPlaying = true;
ambiMusic.start();
ambiMusic.setVolume(0);
ambiMusic.onSoundComplete = function () {
ambiMusic.start();
};
}
}
if (_global.music) {
if (newVol <= 95) {
newVol = newVol + 5;
}
ambiMusic.setVolume(newVol);
}
} else if (_root._currentframe <= 1204) {
if (ambiMusic.getVolume() > 5) {
if (newVol > 0) {
newVol = newVol - 5;
ambiMusic.setVolume(newVol);
}
} else {
ambiMusic.stop();
musicPlaying = false;
}
} else {
ambiMusic.stop();
musicPlaying = false;
newVol = 0;
}
if (!_global.music) {
ambiMusic.setVolume(0);
newVol = 0;
}
}
Instance of Symbol 1252 MovieClip in Frame 1201
onClipEvent (load) {
dayMusic = new Sound(this);
dayMusic.attachSound("day");
dmusicPlaying = false;
dnewVol = 0;
}
onClipEvent (enterFrame) {
if (((_global.timeCheck < 1258) && (_global.timeCheck > 542)) && (_root._currentframe <= 1204)) {
if (!dmusicPlaying) {
dmusicPlaying = true;
dayMusic.start();
dayMusic.setVolume(0);
dayMusic.onSoundComplete = function () {
dayMusic.start();
};
}
if (_global.music) {
if (dnewVol <= 75) {
dnewVol = dnewVol + 5;
}
dayMusic.setVolume(dnewVol);
}
} else if (dayMusic.getVolume() > 5) {
if (dnewVol > 0) {
dnewVol = dnewVol - 5;
dayMusic.setVolume(dnewVol);
}
} else {
dayMusic.stop();
dmusicPlaying = false;
dnewVol = 0;
}
if (!_global.music) {
dayMusic.setVolume(0);
dnewVol = 0;
}
}
Instance of Symbol 1252 MovieClip in Frame 1201
onClipEvent (load) {
nightMusic = new Sound(this);
nightMusic.attachSound("night");
nmusicPlaying = false;
nnewVol = 0;
}
onClipEvent (enterFrame) {
if (((_global.timeCheck >= 1262) || (_global.timeCheck <= 538)) && (_root._currentframe <= 1204)) {
if (!nmusicPlaying) {
nmusicPlaying = true;
nightMusic.start();
nightMusic.setVolume(0);
nightMusic.onSoundComplete = function () {
nightMusic.start();
};
}
if (_global.music) {
if (nnewVol <= 95) {
nnewVol = nnewVol + 5;
nightMusic.setVolume(nnewVol);
}
}
} else if (nightMusic.getVolume() > 5) {
if (nnewVol > 0) {
nnewVol = nnewVol - 5;
nightMusic.setVolume(nnewVol);
}
} else {
nightMusic.stop();
nmusicPlaying = false;
nnewVol = 0;
}
if (!_global.music) {
nightMusic.setVolume(0);
nnewVol = 0;
}
}
Frame 1204
sleep = "morning";
if ((_global.timeCheck >= 540) && (_global.timeCheck < 1260)) {
nightMc.gotoAndStop(79);
trace("joo");
}
if ((_global.timeCheck >= 1260) || (_global.timeCheck < 540)) {
nightMc.gotoAndStop(39);
trace("jee");
}
Frame 1205
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
lights.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
lights.gotoAndPlay(39);
}
anchor1._visible = false;
anchor2._visible = false;
anchor3._visible = false;
anchor4._visible = false;
anchor5._visible = false;
anchor6._visible = false;
anchor7._visible = false;
anchor8._visible = false;
sailButton._visible = false;
riverAnchor._visible = false;
huntButton._visible = false;
if ((_global.timeCheck >= 540) && (_global.timeCheck < 1260)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1260) || (_global.timeCheck < 540)) {
_root.nightMc.gotoAndPlay(39);
}
Instance of Symbol 1442 MovieClip in Frame 1205
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_root.boat.speed = 0;
_root.boat._x = boatX;
_root.boat._y = boatY;
} else {
boatX = _root.boat._x;
boatY = _root.boat._y;
if (_global.menuOpen == false) {
_root.boat.move(_root.boat.speed);
}
}
}
Instance of Symbol 1444 MovieClip in Frame 1205
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_parent.anchorThing.gotoAndStop(2);
_parent.anchor1._visible = true;
_parent.anchor2._visible = false;
_parent.anchor3._visible = false;
_parent.anchor4._visible = false;
_parent.anchor5._visible = false;
_parent.anchor6._visible = false;
_parent.anchor7._visible = false;
_parent.anchor8._visible = false;
}
}
Instance of Symbol 1446 MovieClip in Frame 1205
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_parent.anchorThing.gotoAndStop(3);
_parent.anchor1._visible = false;
_parent.anchor2._visible = true;
_parent.anchor3._visible = false;
_parent.anchor4._visible = false;
_parent.anchor5._visible = false;
_parent.anchor6._visible = false;
_parent.anchor7._visible = false;
_parent.anchor8._visible = false;
}
}
Instance of Symbol 1447 MovieClip in Frame 1205
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_parent.anchorThing.gotoAndStop(4);
_parent.anchor1._visible = false;
_parent.anchor2._visible = false;
_parent.anchor3._visible = true;
_parent.anchor4._visible = false;
_parent.anchor5._visible = false;
_parent.anchor6._visible = false;
_parent.anchor7._visible = false;
_parent.anchor8._visible = false;
}
}
Instance of Symbol 1448 MovieClip in Frame 1205
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_parent.anchorThing.gotoAndStop(5);
_parent.anchor1._visible = false;
_parent.anchor2._visible = false;
_parent.anchor3._visible = false;
_parent.anchor4._visible = true;
_parent.anchor5._visible = false;
_parent.anchor6._visible = false;
anchor7._visible = false;
anchor8._visible = false;
}
}
Instance of Symbol 1450 MovieClip in Frame 1205
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_parent.anchorThing.gotoAndStop(6);
_parent.anchor1._visible = false;
_parent.anchor2._visible = false;
_parent.anchor3._visible = false;
_parent.anchor4._visible = false;
_parent.anchor5._visible = true;
_parent.anchor6._visible = false;
_parent.anchor7._visible = false;
_parent.anchor8._visible = false;
}
}
Instance of Symbol 1452 MovieClip in Frame 1205
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_parent.anchorThing.gotoAndStop(7);
_parent.anchor1._visible = false;
_parent.anchor2._visible = false;
_parent.anchor3._visible = false;
_parent.anchor4._visible = false;
_parent.anchor5._visible = false;
_parent.anchor6._visible = true;
_parent.anchor7._visible = false;
_parent.anchor8._visible = false;
}
}
Instance of Symbol 1453 MovieClip in Frame 1205
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_parent.anchorThing.gotoAndStop(8);
_parent.anchor1._visible = false;
_parent.anchor2._visible = false;
_parent.anchor3._visible = false;
_parent.anchor4._visible = false;
_parent.anchor5._visible = false;
_parent.anchor6._visible = false;
_parent.anchor7._visible = true;
_parent.anchor8._visible = false;
_parent.huntButton._visible = false;
}
}
Instance of Symbol 1454 MovieClip in Frame 1205
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_parent.anchorThing.gotoAndStop(9);
_parent.anchor1._visible = false;
_parent.anchor2._visible = false;
_parent.anchor3._visible = false;
_parent.anchor4._visible = false;
_parent.anchor5._visible = false;
_parent.anchor6._visible = false;
_parent.anchor7._visible = false;
_parent.anchor8._visible = true;
if ((_global.specialItems >= 8) && (_global.cods >= 4)) {
_parent.huntButton._visible = true;
}
}
}
Instance of Symbol 1456 MovieClip in Frame 1205
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_root.sailButton._visible = true;
} else {
_root.sailButton._visible = false;
}
}
Instance of Symbol 1456 MovieClip in Frame 1205
onClipEvent (load) {
_root.travelButton._visible = false;
}
onClipEvent (enterFrame) {
if (_global.specialItems >= 3) {
if (this.hitTest(_root.boat._x, _root.boat._y, true)) {
_root.travelButton._visible = true;
_root.riverAnchor._visible = true;
} else {
_root.travelButton._visible = false;
_root.riverAnchor._visible = false;
}
}
}
Instance of Symbol 1469 MovieClip "boat" in Frame 1205
onClipEvent (load) {
function move(s) {
rad = (_rotation / 180) * Math.PI;
_x = (_x + (s * Math.sin(rad)));
_y = (_y - (s * Math.cos(rad)));
}
_rotation = _global.boatRotation;
this._x = _global.boatPosX;
this._y = _global.boatPosY;
waves._visible = 0;
maxspeed = 2;
speed = 0;
}
onClipEvent (enterFrame) {
if (_global.menuOpen == true) {
speed = 0;
}
if (Key.isDown(38)) {
if (speed < maxspeed) {
speed = speed + 0.1;
}
} else {
speed = speed * 0.9;
if ((speed < 0.1) && (speed > -0.1)) {
speed = 0;
}
}
if (_global.menuOpen == false) {
if (Key.isDown(37)) {
_rotation = (_rotation - 5);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 5);
}
}
if (speed > 1) {
waves._visible = 1;
} else {
waves._visible = 0;
}
}
Instance of Symbol 1471 MovieClip in Frame 1205
onClipEvent (load) {
place = Math.round((Math.random() * 800) - 100);
this._y = place;
placex = Math.round((Math.random() * 1000) + 100);
this._x = placex;
speed = Math.round(Math.random() * 1) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
this._y = this._y + _global.cloudSpeed;
if (this._x <= -200) {
this._x = 828;
speed = Math.round(Math.random() * 3) + 1;
place = Math.round((Math.random() * 500) + 50);
this._y = place;
}
}
Instance of Symbol 1473 MovieClip in Frame 1205
onClipEvent (load) {
place = Math.round((Math.random() * 800) - 100);
this._y = place;
placex = Math.round((Math.random() * 1000) + 100);
this._x = placex;
speed = Math.round(Math.random() * 1) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
this._y = this._y + _global.cloudSpeed;
if (this._x <= -200) {
this._x = 828;
speed = Math.round(Math.random() * 3) + 1;
place = Math.round((Math.random() * 500) + 50);
this._y = place;
}
}
Instance of Symbol 1471 MovieClip in Frame 1205
onClipEvent (load) {
place = Math.round((Math.random() * 800) - 100);
this._y = place;
placex = Math.round((Math.random() * 1000) + 100);
this._x = placex;
speed = Math.round(Math.random() * 1) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
this._y = this._y + _global.cloudSpeed;
if (this._x <= -200) {
this._x = 828;
speed = Math.round(Math.random() * 3) + 1;
place = Math.round((Math.random() * 500) + 50);
this._y = place;
}
}
Instance of Symbol 1473 MovieClip in Frame 1205
onClipEvent (load) {
place = Math.round((Math.random() * 800) - 100);
this._y = place;
placex = Math.round((Math.random() * 1000) + 100);
this._x = placex;
speed = Math.round(Math.random() * 1) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
this._y = this._y + _global.cloudSpeed;
if (this._x <= -200) {
this._x = 828;
speed = Math.round(Math.random() * 3) + 1;
place = Math.round((Math.random() * 500) + 50);
this._y = place;
}
}
Instance of Symbol 1471 MovieClip in Frame 1205
onClipEvent (load) {
place = Math.round((Math.random() * 800) - 100);
this._y = place;
placex = Math.round((Math.random() * 1000) + 100);
this._x = placex;
speed = Math.round(Math.random() * 1) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
this._y = this._y + _global.cloudSpeed;
if (this._x <= -200) {
this._x = 828;
speed = Math.round(Math.random() * 3) + 1;
place = Math.round((Math.random() * 500) + 50);
this._y = place;
}
}
Instance of Symbol 428 MovieClip in Frame 1205
onClipEvent (load) {
_global.cloudSpeed = Math.round(((Math.random() * 2) - 1) * 10) / 10;
}
Instance of Symbol 1473 MovieClip in Frame 1205
onClipEvent (load) {
place = Math.round((Math.random() * 800) - 100);
this._y = place;
placex = Math.round((Math.random() * 1000) + 100);
this._x = placex;
speed = Math.round(Math.random() * 1) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
this._y = this._y + _global.cloudSpeed;
if (this._x <= -200) {
this._x = 828;
speed = Math.round(Math.random() * 3) + 1;
place = Math.round((Math.random() * 500) + 50);
this._y = place;
}
}
Instance of Symbol 1473 MovieClip in Frame 1205
onClipEvent (load) {
place = Math.round((Math.random() * 800) - 100);
this._y = place;
placex = Math.round((Math.random() * 1000) + 100);
this._x = placex;
speed = Math.round(Math.random() * 1) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
this._y = this._y + _global.cloudSpeed;
if (this._x <= -200) {
this._x = 828;
speed = Math.round(Math.random() * 3) + 1;
place = Math.round((Math.random() * 500) + 50);
this._y = place;
}
}
Instance of Symbol 1479 MovieClip in Frame 1205
/* no clip actions */
Frame 1206
function calcSpeed() {
if (_global.reelHelper == false) {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
rSpeedText = "stopped";
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (reelingSpeed <= 0.2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "very slow";
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0.2) && (reelingSpeed <= 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
rSpeedText = "slow";
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 1) && (reelingSpeed <= 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "medium";
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
rSpeedText = "fast";
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
} else {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 4)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
}
}
_global.reeling = false;
reel._rotation = 0;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.oldAngle = 0;
rSpeedText = "";
reelingVSSound = new Sound(this);
reelingVSSound.attachSound("reelingVS");
reelingSSound = new Sound(this);
reelingSSound.attachSound("reelingS");
reelingMSound = new Sound(this);
reelingMSound.attachSound("reelingM");
reelingFSound = new Sound(this);
reelingFSound.attachSound("reelingF");
speedInterval = setInterval(calcSpeed, 200);
boatZoom.pirateFishing.pole._visible = 0;
boatZoom.pirateFishing._rotation = -45;
_root.bait.gotoAndStop(2);
_global.castingNow = false;
_global.throwRange = 0;
_root.reel.reelButton.enabled = false;
_root.mcCast.castButton.enabled = true;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_global.baitAcc = 0;
_global.allowThrow = false;
_global.reeledIn = true;
_global.ratioX = 0;
_global.ratioY = 0;
_global.fishFights = false;
_global.baitFlying = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
bootBites = function () {
_root.messages.gotoAndPlay(364);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = 2;
_global.weightClass = 1;
price = Math.round(Math.random() * 5);
_global.hookedFish = ["a Boot", weight, 18, price];
};
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
_global.fishOnHook = false;
_global.hookedFish = new Array();
_global.hookedFish = ["", 0, 0];
_global.weightClass = 1;
weight1 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 1.6) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2.5) + 1.6) + (_global.YourStr / 10);
}
return(int(((0.2 + (Math.random() * 1.7)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight2 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 2.5) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2) + 2.5) + (_global.YourStr / 10);
}
return(int(((1 + (Math.random() * 2.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight3 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 3.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 3.5) + 3.5) + ((_global.YourStr * 2) / 10);
}
return(int(((1.5 + (Math.random() * 3.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight4 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 6.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 6.5) + 6.5) + ((_global.YourStr * 2) / 10);
}
return(int(((2 + (Math.random() * 4)) + (_global.goodLure * biggy)) * 10) / 10);
};
if (_global.fishDay1[0] == "Pike") {
_root.fishLake1.gotoAndStop(1);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[0] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[0] == "Zander") {
_root.fishLake1.gotoAndStop(2);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[1] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[0] == "Salmon") {
_root.fishLake1.gotoAndStop(3);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[2] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[0] == "Trout") {
_root.fishLake1.gotoAndStop(4);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[3] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[0] == "Catfish") {
_root.fishLake1.gotoAndStop(5);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[4] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[0] == "Whitefish") {
_root.fishLake1.gotoAndStop(6);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[5] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[0] == "Roach") {
_root.fishLake1.gotoAndStop(7);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[6] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[0] == "Crucian carp") {
_root.fishLake1.gotoAndStop(8);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[7] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri ykk\u00F6sess\u00E4");
}
if (_global.fishDay2[0] == "Pike") {
_root.fishLake2.gotoAndStop(1);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[0] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[0] == "Zander") {
_root.fishLake2.gotoAndStop(2);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[1] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[0] == "Salmon") {
_root.fishLake2.gotoAndStop(3);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[2] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[0] == "Trout") {
_root.fishLake2.gotoAndStop(4);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[3] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[0] == "Catfish") {
_root.fishLake2.gotoAndStop(5);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[4] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[0] == "Whitefish") {
_root.fishLake2.gotoAndStop(6);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[5] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[0] == "Roach") {
_root.fishLake2.gotoAndStop(7);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[6] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[0] == "Crucian carp") {
_root.fishLake2.gotoAndStop(8);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[7] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kakkosessa");
}
if (_global.fishNight1[0] == "Anglerfish") {
_root.fishLake3.gotoAndStop(9);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[0] == "Eel") {
_root.fishLake3.gotoAndStop(10);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[0] == "Burbot") {
_root.fishLake3.gotoAndStop(11);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[0] == "Pufferfish") {
_root.fishLake3.gotoAndStop(12);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[0] == "Ray") {
_root.fishLake3.gotoAndStop(13);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[0] == "Flounder") {
_root.fishLake3.gotoAndStop(14);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[0] == "Octopus") {
_root.fishLake3.gotoAndStop(15);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[0] == "Squid") {
_root.fishLake3.gotoAndStop(16);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kolmosessa");
}
if (_global.fishNight2[0] == "Anglerfish") {
_root.fishLake4.gotoAndStop(9);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[0] == "Eel") {
_root.fishLake4.gotoAndStop(10);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[0] == "Burbot") {
_root.fishLake4.gotoAndStop(11);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[0] == "Pufferfish") {
_root.fishLake4.gotoAndStop(12);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[0] == "Ray") {
_root.fishLake4.gotoAndStop(13);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[0] == "Flounder") {
_root.fishLake4.gotoAndStop(14);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[0] == "Octopus") {
_root.fishLake4.gotoAndStop(15);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[0] == "Squid") {
_root.fishLake4.gotoAndStop(16);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri nelosessa");
}
Instance of Symbol 1565 MovieClip "fishLake1" in Frame 1206
onClipEvent (enterFrame) {
if (((_global.reeledIn == true) && (_global.fish1Bit == false)) && (_global.fishOnHook == false)) {
if ((_global.timeCheck >= 545) && (_global.timeCheck <= 1255)) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
trace("ykk\u00F6s kala baittas");
_root.fish1Bites();
_global.fish1Bit = true;
}
}
}
}
Instance of Symbol 1565 MovieClip "fishLake4" in Frame 1206
onClipEvent (enterFrame) {
if (((_global.reeledIn == true) && (_global.fish4Bit == false)) && (_global.fishOnHook == false)) {
if ((_global.timeCheck >= 1265) || (_global.timeCheck <= 535)) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.fish4Bites();
trace("nelos kala baittas");
_global.fish4Bit = true;
}
}
}
}
Instance of Symbol 1565 MovieClip "fishLake3" in Frame 1206
onClipEvent (enterFrame) {
if (((_global.reeledIn == true) && (_global.fish3Bit == false)) && (_global.fishOnHook == false)) {
if ((_global.timeCheck >= 1265) || (_global.timeCheck <= 535)) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.fish3Bites();
trace("kolmos kala baittas");
_global.fish3Bit = true;
}
}
}
}
Instance of Symbol 1565 MovieClip "fishLake2" in Frame 1206
onClipEvent (enterFrame) {
if (((_global.reeledIn == true) && (_global.fish2Bit == false)) && (_global.fishOnHook == false)) {
if ((_global.timeCheck >= 545) && (_global.timeCheck <= 1255)) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
trace("kakkos kala baittas");
_root.fish2Bites();
_global.fish2Bit = true;
}
}
}
}
Instance of Symbol 1567 MovieClip "boot" in Frame 1206
onClipEvent (load) {
function X() {
placeX = Math.random() * 500;
return(placeX);
}
function Y() {
placeY = Math.random() * 500;
return(placeY);
}
this._x = -500;
this._y = -500;
chance = Math.random();
if (chance <= 0.1) {
this._x = X();
this._y = Y();
while (!_root.fishArea.hitTest(this._x, this._y, true)) {
this._x = X();
this._y = Y();
}
}
}
onClipEvent (enterFrame) {
if (chance <= 0.1) {
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
if ((_global.reeledIn == true) && (_global.fishOnHook == false)) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
trace("saapas kiinni");
_root.bootBites();
this._x = -500;
this._y = -500;
chance = 1;
}
}
}
}
Instance of Symbol 896 MovieClip [BaitOnAir] "bait" in Frame 1206
onClipEvent (load) {
function fight() {
_root.tooltip.text.gotoAndStop(5);
_global.fightSet = true;
if (_global.weightClass == 0) {
weightEffect = 0.2;
} else if (_global.weightClass == 1) {
weightEffect = 0.2;
} else if (_global.weightClass == 2) {
weightEffect = 0.3;
} else if (_global.weightClass == 3) {
weightEffect = 0.4;
} else {
trace("ei onnaa");
}
if ((_root.bait._x <= (_root.boatZoom._x + 60)) && (_root.bait._y >= (_root.boatZoom._y - 60))) {
} else {
if (Math.random() < weightEffect) {
trace("fights");
if (_global.sounds) {
fightSound.attachSound("fightS");
fightSound.start(0, 1);
}
_global.fishFights = true;
} else {
trace("fights not");
_global.fishFights = false;
}
precent = Math.random();
if (_global.beginner) {
if (precent <= 0.25) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.25) && (precent <= 0.5)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.5) && (precent <= 0.75)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.75) && (precent <= 1)) {
baitSplashing.gotoAndPlay(108);
}
} else if (precent <= 0.11) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.11) && (precent <= 0.22)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.22) && (precent <= 0.33)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.33) && (precent <= 0.44)) {
baitSplashing.gotoAndPlay(108);
} else if ((precent > 0.44) && (precent <= 0.55)) {
baitSplashing.gotoAndPlay(144);
} else if ((precent > 0.55) && (precent <= 0.66)) {
baitSplashing.gotoAndPlay(180);
} else if ((precent > 0.66) && (precent <= 0.77)) {
baitSplashing.gotoAndPlay(216);
} else if ((precent > 0.77) && (precent <= 0.88)) {
baitSplashing.gotoAndPlay(252);
} else if ((precent > 0.88) && (precent <= 1)) {
baitSplashing.gotoAndPlay(288);
} else {
trace("errori kiinni pit\u00E4misess\u00E4");
}
}
}
_global.reeledSome = false;
fightSound = new Sound(this);
_global.fightSet = false;
}
onClipEvent (enterFrame) {
_global.testx = _global.xBaitDes + _root.boatZoom._x;
_global.testy = _root.boatZoom._y - _global.yBaitDes;
if (_global.allowThrow == true) {
_root.boatZoom.pirateFishing.pole.gotoAndPlay(2);
_global.allowThrow = false;
}
if ((this._x <= (_root.boatZoom._x + 30)) && (this._y >= (_root.boatZoom._y - 30))) {
_root.tooltip.text.gotoAndStop(2);
if (_global.reeledIn == true) {
if (_global.fishOnHook == true) {
_global.fishFights = false;
_parent.tension.gotoAndStop(1);
trace(_global.hookedFish);
_global.tempFish[0] = _global.hookedFish[0];
_global.tempFish[1] = _global.hookedFish[1];
_global.tempFish[2] = _global.hookedFish[2];
_global.tempFish[3] = _global.hookedFish[3];
_root.attachMovie("fishGot", "fishGotOpen", 500);
_root.fishGotOpen._x = 75;
_root.fishGotOpen._y = 75;
if (_global.hookedFish[0] == _global.fishDay1[0]) {
_global.knownFishes[0] = 1;
}
if (_global.hookedFish[0] == _global.fishDay2[0]) {
_global.knownFishes[1] = 1;
}
if (_global.hookedFish[0] == _global.fishNight1[0]) {
_global.knownFishes[2] = 1;
}
if (_global.hookedFish[0] == _global.fishNight2[0]) {
_global.knownFishes[3] = 1;
}
if (_global.yourFish1[0] != 1) {
_global.yourFish1[0] = 1;
_global.yourFish1[1] = _global.hookedFish[0];
_global.yourFish1[2] = _global.hookedFish[1];
_global.yourFish1[3] = _global.hookedFish[2];
_global.yourFish1[4] = _global.hookedFish[3];
} else if (_global.yourFish2[0] != 1) {
_global.yourFish2[0] = 1;
_global.yourFish2[1] = _global.hookedFish[0];
_global.yourFish2[2] = _global.hookedFish[1];
_global.yourFish2[3] = _global.hookedFish[2];
_global.yourFish2[4] = _global.hookedFish[3];
} else if (_global.yourFish3[0] != 1) {
_global.yourFish3[0] = 1;
_global.yourFish3[1] = _global.hookedFish[0];
_global.yourFish3[2] = _global.hookedFish[1];
_global.yourFish3[3] = _global.hookedFish[2];
_global.yourFish3[4] = _global.hookedFish[3];
} else if (_global.yourFish4[0] != 1) {
_global.yourFish4[0] = 1;
_global.yourFish4[1] = _global.hookedFish[0];
_global.yourFish4[2] = _global.hookedFish[1];
_global.yourFish4[3] = _global.hookedFish[2];
_global.yourFish4[4] = _global.hookedFish[3];
} else if (_global.yourFish5[0] != 1) {
_global.yourFish5[0] = 1;
_global.yourFish5[1] = _global.hookedFish[0];
_global.yourFish5[2] = _global.hookedFish[1];
_global.yourFish5[3] = _global.hookedFish[2];
_global.yourFish5[4] = _global.hookedFish[3];
} else if (_global.yourFish6[0] != 1) {
_global.yourFish6[0] = 1;
_global.yourFish6[1] = _global.hookedFish[0];
_global.yourFish6[2] = _global.hookedFish[1];
_global.yourFish6[3] = _global.hookedFish[2];
_global.yourFish6[4] = _global.hookedFish[3];
} else if (_global.yourFish7[0] != 1) {
_global.yourFish7[0] = 1;
_global.yourFish7[1] = _global.hookedFish[0];
_global.yourFish7[2] = _global.hookedFish[1];
_global.yourFish7[3] = _global.hookedFish[2];
_global.yourFish7[4] = _global.hookedFish[3];
} else {
_global.yourFish8[0] = 1;
_global.yourFish8[1] = _global.hookedFish[0];
_global.yourFish8[2] = _global.hookedFish[1];
_global.yourFish8[3] = _global.hookedFish[2];
_global.yourFish8[4] = _global.hookedFish[3];
}
_global.fishOnHook = false;
if (_global.expAmount < 468) {
_global.expAmount = _global.expAmount + _global.hookedFish[3];
newExp = Math.floor((_global.expAmount - (_global.expPointsAll * 26)) / 26);
if (newExp > 0) {
_root.messages.gotoAndStop(243);
_global.expPointsAll = _global.expPointsAll + newExp;
if (_global.expPointsAll > 18) {
newExp = 1;
}
_global.expPoints = _global.expPoints + newExp;
}
}
_global.hookedFish = ["", 0, 0];
}
clearInterval(fightInterval);
_global.fightSet = false;
_global.fishOnHook = false;
_global.reeledSome = false;
_root.boatZoom.pirateFishing.pole._visible = 0;
_root.lineThing.createEmptyMovieClip("xiitti", 1);
this.gotoAndStop(1);
this._x = _root.boatZoom._x;
this._y = _root.boatZoom._y;
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.speedPenalty = 0;
_root.reel.reelButton.enabled = false;
if (_global.buttonsEnabler == true) {
_root.mcCast.castButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_global.buttonsEnabler = false;
}
_root.bait.gotoAndStop(1);
} else {
_root.boatZoom.pirateFishing.pole._visible = 1;
}
} else {
if (!_global.fishOnHook) {
if (!_global.reeledSome) {
_root.tooltip.text.gotoAndStop(3);
} else {
_root.tooltip.text.gotoAndStop(4);
}
}
if (_global.reeledIn == true) {
_root.reel.reelButton.enabled = true;
}
_root.mcCast.castButton.enabled = false;
Length = _root.boatZoom._x - 8;
deg = -1 * _root.boatZoom.pirateFishing._rotation;
if (deg < 0) {
deg = deg + 360;
}
deg = deg * (Math.PI/180);
polePointX = (Length * Math.cos(deg)) + _root.boatZoom._x;
polePointY = _root.boatZoom._y - (Length * Math.sin(deg));
_root.lineThing.createEmptyMovieClip("line", 1);
with (_root.lineThing.line) {
lineStyle(1, 3394764, 100);
moveTo(_root.bait._x, _root.bait._y);
lineTo(polePointX, polePointY);
}
if (_global.reeledIn == true) {
x = this._x - _root.boatZoom._x;
y = this._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = direction + 360;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
if (direction < 0) {
deg = direction * -1;
} else {
deg = 360 - direction;
}
rad = (Math.PI/180) * deg;
_global.BaitRatioX = Math.cos(rad);
_global.BaitRatioY = Math.sin(rad);
if (_global.fishOnHook == false) {
this._x = this._x - (_global.BaitRatioX * _global.baitAcc);
this._y = this._y + (_global.BaitRatioY * _global.baitAcc);
} else {
if (!this.hitTest(_root.fishHitTest)) {
x = this._x - _root.fishDes1._x;
y = this._y - _root.fishDes1._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
} else {
if (this.hitTest(_root.fishDes2)) {
if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 2);
}
}
x = this._x - _root.fishDes2._x;
y = this._y - _root.fishDes2._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
}
strEffect = (10 - _global.YourStr) / 10;
speedx = _global.FBaitRatioX * ((_global.weightClass / 2) + strEffect);
speedy = _global.FBaitRatioY * ((_global.weightClass / 2) + strEffect);
this._x = this._x - (((_global.BaitRatioX * _global.baitAcc) + speedx) / 2);
this._y = this._y + (((_global.BaitRatioY * _global.baitAcc) + speedy) / 2);
}
if (_global.fishOnHook == true) {
if (_global.fightSet == false) {
trace("interval set " + _global.fightSet);
fightInterval = setInterval(fight, 2000);
_global.fightSet = true;
}
if (_global.fishFights == true) {
strEffect = (10 - _global.YourStr) / 10;
this._x = this._x - ((_global.FBaitRatioX * (_global.weightClass + strEffect)) / 2);
this._y = this._y + ((_global.FBaitRatioY * (_global.weightClass + strEffect)) / 2);
}
}
}
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
}
}
Instance of Symbol 428 MovieClip in Frame 1206
onClipEvent (load) {
if (_global.beginner) {
_root.fishLake1._yscale = 400;
_root.fishLake2._yscale = 400;
_root.fishLake3._yscale = 400;
_root.fishLake4._yscale = 400;
} else {
_root.fishLake1._yscale = 200;
_root.fishLake2._yscale = 200;
_root.fishLake3._yscale = 200;
_root.fishLake4._yscale = 200;
}
}
Instance of Symbol 1598 MovieClip "boatZoom" in Frame 1206
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.castingNow = true;
} else {
_global.castingNow = false;
}
}
Instance of Symbol 428 MovieClip in Frame 1206
onClipEvent (enterFrame) {
if (_global.baitFlying == true) {
_root.bait.gotoAndStop(1);
_root.bait._x = _root.bait._x + (_global.ratioX * 13);
_root.bait._y = _root.bait._y - (_global.ratioY * 13);
if (_global.ratioY <= 0.5) {
if (_root.bait._x >= _global.testx) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else if (_global.ratioY > 0.5) {
if (_root.bait._y <= _global.testy) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else {
trace("error heitto hommassa");
}
}
}
Instance of Symbol 1600 MovieClip "land1" in Frame 1206
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Instance of Symbol 1602 MovieClip "land2" in Frame 1206
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Instance of Symbol 1609 MovieClip "cloudi" in Frame 1206
onClipEvent (load) {
place = Math.round((Math.random() * 500) + 50);
this._y = place;
speed = Math.round(Math.random() * 3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
this._y = this._y + _global.cloudSpeed;
if (this._x <= -300) {
this._x = 963;
speed = Math.round(Math.random() * 3) + 1;
place = Math.round((Math.random() * 500) + 50);
this._y = place;
if (Math.random() < 0.5) {
_root.cloudi.gotoAndStop(1);
} else {
_root.cloudi.gotoAndStop(2);
}
}
}
Instance of Symbol 428 MovieClip in Frame 1206
onClipEvent (load) {
_global.cloudSpeed = Math.round(((Math.random() * 2) - 1) * 10) / 10;
}
Instance of Symbol 1632 MovieClip "tension" in Frame 1206
onClipEvent (enterFrame) {
if ((_global.fishFights == true) && (_global.reeling == true)) {
frame = (this._currentframe + _global.lineQ) + _global.weightClass;
this.gotoAndPlay(frame);
} else if ((_global.fishFights == true) && (_global.reeling == false)) {
this.gotoAndStop(this._currentframe - 1);
_parent.reel._rotation = _parent.reel._rotation + 20;
} else if (_global.missedLetter) {
this.gotoAndStop(this._currentframe);
} else if (this._currentframe < 120) {
this.gotoAndStop(this._currentframe - 1);
}
}
Instance of Symbol 1646 MovieClip in Frame 1206
onClipEvent (mouseMove) {
if (_global.reeling == true) {
x = this._xmouse;
y = this._ymouse * -1;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
if (((angle - _global.oldAngle) < 0) || ((angle - _global.oldAngle) > 300)) {
global.rAmount = global.rAmount + 0;
_global.oldAngle = angle;
} else if ((angle - _global.oldAngle) > -300) {
_global.rAmount = _global.rAmount + (0.01 * Math.abs(angle - _global.oldAngle));
_global.oldAngle = angle;
} else {
global.rAmount = global.rAmount + 0.1;
_global.oldAngle = angle;
}
_root.reelingAmount = _global.rAmount;
_root.angletext = angle;
_root.reel._rotation = angle * -1;
updateAfterEvent();
}
}
Instance of Symbol 1651 MovieClip "reelHelper" in Frame 1206
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.reelHelper == false) {
this._visible = false;
} else {
this._visible = true;
if (Key.isDown(49)) {
this.gotoAndStop(1);
}
if (Key.isDown(50)) {
this.gotoAndStop(2);
}
if (Key.isDown(51)) {
this.gotoAndStop(3);
}
if (Key.isDown(52)) {
this.gotoAndStop(4);
}
}
}
Instance of Symbol 1673 MovieClip "tooltip" in Frame 1206
onClipEvent (load) {
if (!_global.tooltip) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1676 MovieClip in Frame 1206
onClipEvent (load) {
if (!_global.beginner) {
gotoAndStop (1250);
}
}
Frame 1207
function calcSpeed() {
if (_global.reelHelper == false) {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
rSpeedText = "stopped";
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (reelingSpeed <= 0.2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "very slow";
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0.2) && (reelingSpeed <= 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
rSpeedText = "slow";
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 1) && (reelingSpeed <= 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "medium";
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
rSpeedText = "fast";
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
} else {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 4)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
}
}
_global.reeling = false;
reel._rotation = 0;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.oldAngle = 0;
rSpeedText = "";
reelingVSSound = new Sound(this);
reelingVSSound.attachSound("reelingVS");
reelingSSound = new Sound(this);
reelingSSound.attachSound("reelingS");
reelingMSound = new Sound(this);
reelingMSound.attachSound("reelingM");
reelingFSound = new Sound(this);
reelingFSound.attachSound("reelingF");
speedInterval = setInterval(calcSpeed, 200);
boatZoom.pirateFishing.pole._visible = 0;
boatZoom.pirateFishing._rotation = 45;
_root.bait.gotoAndStop(2);
_global.castingNow = false;
_global.throwRange = 0;
_root.reel.reelButton.enabled = false;
_root.mcCast.castButton.enabled = true;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_global.baitAcc = 0;
_global.allowThrow = false;
_global.reeledIn = true;
_global.ratioX = 0;
_global.ratioY = 0;
_global.fishFights = false;
_global.baitFlying = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
bootBites = function () {
_root.messages.gotoAndPlay(364);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = 2;
_global.weightClass = 0;
price = Math.round(Math.random() * 5);
_global.hookedFish = ["a Boot", weight, 18, price];
};
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
_global.fishOnHook = false;
_global.hookedFish = new Array();
_global.hookedFish = ["", 0, 0];
_global.weightClass = 1;
weight1 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 1.6) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2.5) + 1.6) + (_global.YourStr / 10);
}
return(int(((0.2 + (Math.random() * 1.7)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight2 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 2.5) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2) + 2.5) + (_global.YourStr / 10);
}
return(int(((1 + (Math.random() * 2.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight3 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 3.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 3.5) + 3.5) + ((_global.YourStr * 2) / 10);
}
return(int(((1.5 + (Math.random() * 3.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight4 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 6.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 6.5) + 6.5) + ((_global.YourStr * 2) / 10);
}
return(int(((2 + (Math.random() * 4)) + (_global.goodLure * biggy)) * 10) / 10);
};
if (_global.fishDay1[1] == "Pike") {
_root.fishLake1.gotoAndStop(1);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[0] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Zander") {
_root.fishLake1.gotoAndStop(2);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[1] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Salmon") {
_root.fishLake1.gotoAndStop(3);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[2] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Trout") {
_root.fishLake1.gotoAndStop(4);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[3] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Catfish") {
_root.fishLake1.gotoAndStop(5);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[4] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Whitefish") {
_root.fishLake1.gotoAndStop(6);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[5] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Roach") {
_root.fishLake1.gotoAndStop(7);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[6] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Crucian carp") {
_root.fishLake1.gotoAndStop(8);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[7] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri ykk\u00F6sess\u00E4");
}
if (_global.fishDay2[1] == "Pike") {
_root.fishLake2.gotoAndStop(1);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[0] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Zander") {
_root.fishLake2.gotoAndStop(2);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[1] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Salmon") {
_root.fishLake2.gotoAndStop(3);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[2] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Trout") {
_root.fishLake2.gotoAndStop(4);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[3] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Catfish") {
_root.fishLake2.gotoAndStop(5);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[4] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Whitefish") {
_root.fishLake2.gotoAndStop(6);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[5] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Roach") {
_root.fishLake2.gotoAndStop(7);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[6] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Crucian carp") {
_root.fishLake2.gotoAndStop(8);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[7] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kakkosessa");
}
if (_global.fishNight1[1] == "Anglerfish") {
_root.fishLake3.gotoAndStop(9);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Eel") {
_root.fishLake3.gotoAndStop(10);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Burbot") {
_root.fishLake3.gotoAndStop(11);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Pufferfish") {
_root.fishLake3.gotoAndStop(12);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Ray") {
_root.fishLake3.gotoAndStop(13);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Flounder") {
_root.fishLake3.gotoAndStop(14);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Octopus") {
_root.fishLake3.gotoAndStop(15);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Squid") {
_root.fishLake3.gotoAndStop(16);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kolmosessa");
}
if (_global.fishNight2[1] == "Anglerfish") {
_root.fishLake4.gotoAndStop(9);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Eel") {
_root.fishLake4.gotoAndStop(10);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Burbot") {
_root.fishLake4.gotoAndStop(11);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Pufferfish") {
_root.fishLake4.gotoAndStop(12);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Ray") {
_root.fishLake4.gotoAndStop(13);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Flounder") {
_root.fishLake4.gotoAndStop(14);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Octopus") {
_root.fishLake4.gotoAndStop(15);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Squid") {
_root.fishLake4.gotoAndStop(16);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri nelosessa");
}
Instance of Symbol 896 MovieClip [BaitOnAir] "bait" in Frame 1207
onClipEvent (load) {
function fight() {
_root.tooltip.text.gotoAndStop(5);
_global.fightSet = true;
if (_global.weightClass == 0) {
weightEffect = 0.2;
} else if (_global.weightClass == 1) {
weightEffect = 0.2;
} else if (_global.weightClass == 2) {
weightEffect = 0.3;
} else if (_global.weightClass == 3) {
weightEffect = 0.4;
} else {
trace("ei onnaa");
}
if ((_root.bait._x <= (_root.boatZoom._x + 60)) && (_root.bait._y <= (_root.boatZoom._y + 60))) {
} else {
if (Math.random() < weightEffect) {
trace("fights");
if (_global.sounds) {
fightSound.attachSound("fightS");
fightSound.start(0, 1);
}
_global.fishFights = true;
} else {
trace("fights not");
_global.fishFights = false;
}
precent = Math.random();
if (_global.beginner) {
if (precent <= 0.25) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.25) && (precent <= 0.5)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.5) && (precent <= 0.75)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.75) && (precent <= 1)) {
baitSplashing.gotoAndPlay(108);
}
} else if (precent <= 0.11) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.11) && (precent <= 0.22)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.22) && (precent <= 0.33)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.33) && (precent <= 0.44)) {
baitSplashing.gotoAndPlay(108);
} else if ((precent > 0.44) && (precent <= 0.55)) {
baitSplashing.gotoAndPlay(144);
} else if ((precent > 0.55) && (precent <= 0.66)) {
baitSplashing.gotoAndPlay(180);
} else if ((precent > 0.66) && (precent <= 0.77)) {
baitSplashing.gotoAndPlay(216);
} else if ((precent > 0.77) && (precent <= 0.88)) {
baitSplashing.gotoAndPlay(252);
} else if ((precent > 0.88) && (precent <= 1)) {
baitSplashing.gotoAndPlay(288);
} else {
trace("errori kiinni pit\u00E4misess\u00E4");
}
}
}
_global.reeledSome = false;
fightSound = new Sound(this);
_global.fightSet = false;
}
onClipEvent (enterFrame) {
_global.testx = _global.xBaitDes + _root.boatZoom._x;
_global.testy = _root.boatZoom._y - _global.yBaitDes;
if (_global.allowThrow == true) {
_root.boatZoom.pirateFishing.pole.gotoAndPlay(2);
_global.allowThrow = false;
}
if ((this._x <= (_root.boatZoom._x + 30)) && (this._y <= (_root.boatZoom._y + 30))) {
_root.tooltip.text.gotoAndStop(2);
if (_global.reeledIn == true) {
if (_global.fishOnHook == true) {
_global.fishFights = false;
_parent.tension.gotoAndStop(1);
trace(_global.hookedFish);
_global.tempFish[0] = _global.hookedFish[0];
_global.tempFish[1] = _global.hookedFish[1];
_global.tempFish[2] = _global.hookedFish[2];
_global.tempFish[3] = _global.hookedFish[3];
_root.attachMovie("fishGot", "fishGotOpen", 500);
_root.fishGotOpen._x = 75;
_root.fishGotOpen._y = 75;
if (_global.hookedFish[0] == _global.fishDay1[1]) {
_global.knownFishes[4] = 1;
}
if (_global.hookedFish[0] == _global.fishDay2[1]) {
_global.knownFishes[5] = 1;
}
if (_global.hookedFish[0] == _global.fishNight1[1]) {
_global.knownFishes[6] = 1;
}
if (_global.hookedFish[0] == _global.fishNight2[1]) {
_global.knownFishes[7] = 1;
}
if (_global.yourFish1[0] != 1) {
_global.yourFish1[0] = 1;
_global.yourFish1[1] = _global.hookedFish[0];
_global.yourFish1[2] = _global.hookedFish[1];
_global.yourFish1[3] = _global.hookedFish[2];
_global.yourFish1[4] = _global.hookedFish[3];
} else if (_global.yourFish2[0] != 1) {
_global.yourFish2[0] = 1;
_global.yourFish2[1] = _global.hookedFish[0];
_global.yourFish2[2] = _global.hookedFish[1];
_global.yourFish2[3] = _global.hookedFish[2];
_global.yourFish2[4] = _global.hookedFish[3];
} else if (_global.yourFish3[0] != 1) {
_global.yourFish3[0] = 1;
_global.yourFish3[1] = _global.hookedFish[0];
_global.yourFish3[2] = _global.hookedFish[1];
_global.yourFish3[3] = _global.hookedFish[2];
_global.yourFish3[4] = _global.hookedFish[3];
} else if (_global.yourFish4[0] != 1) {
_global.yourFish4[0] = 1;
_global.yourFish4[1] = _global.hookedFish[0];
_global.yourFish4[2] = _global.hookedFish[1];
_global.yourFish4[3] = _global.hookedFish[2];
_global.yourFish4[4] = _global.hookedFish[3];
} else if (_global.yourFish5[0] != 1) {
_global.yourFish5[0] = 1;
_global.yourFish5[1] = _global.hookedFish[0];
_global.yourFish5[2] = _global.hookedFish[1];
_global.yourFish5[3] = _global.hookedFish[2];
_global.yourFish5[4] = _global.hookedFish[3];
} else if (_global.yourFish6[0] != 1) {
_global.yourFish6[0] = 1;
_global.yourFish6[1] = _global.hookedFish[0];
_global.yourFish6[2] = _global.hookedFish[1];
_global.yourFish6[3] = _global.hookedFish[2];
_global.yourFish6[4] = _global.hookedFish[3];
} else if (_global.yourFish7[0] != 1) {
_global.yourFish7[0] = 1;
_global.yourFish7[1] = _global.hookedFish[0];
_global.yourFish7[2] = _global.hookedFish[1];
_global.yourFish7[3] = _global.hookedFish[2];
_global.yourFish7[4] = _global.hookedFish[3];
} else {
_global.yourFish8[0] = 1;
_global.yourFish8[1] = _global.hookedFish[0];
_global.yourFish8[2] = _global.hookedFish[1];
_global.yourFish8[3] = _global.hookedFish[2];
_global.yourFish8[4] = _global.hookedFish[3];
}
_global.fishOnHook = false;
if (_global.expAmount < 468) {
_global.expAmount = _global.expAmount + _global.hookedFish[3];
newExp = Math.floor((_global.expAmount - (_global.expPointsAll * 26)) / 26);
if (newExp > 0) {
_root.messages.gotoAndStop(243);
_global.expPointsAll = _global.expPointsAll + newExp;
if (_global.expPointsAll > 18) {
newExp = 1;
}
_global.expPoints = _global.expPoints + newExp;
}
}
_global.hookedFish = ["", 0, 0];
}
clearInterval(fightInterval);
_global.fightSet = false;
_global.fishOnHook = false;
_global.reeledSome = false;
_root.boatZoom.pirateFishing.pole._visible = 0;
_root.lineThing.createEmptyMovieClip("xiitti", 1);
this.gotoAndStop(1);
this._x = _root.boatZoom._x;
this._y = _root.boatZoom._y;
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.speedPenalty = 0;
_root.reel.reelButton.enabled = false;
if (_global.buttonsEnabler == true) {
_root.mcCast.castButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_global.buttonsEnabler = false;
}
_root.bait.gotoAndStop(1);
} else {
_root.boatZoom.pirateFishing.pole._visible = 1;
}
} else {
if (!_global.fishOnHook) {
if (!_global.reeledSome) {
_root.tooltip.text.gotoAndStop(3);
} else {
_root.tooltip.text.gotoAndStop(4);
}
}
if (_global.reeledIn == true) {
_root.reel.reelButton.enabled = true;
}
_root.mcCast.castButton.enabled = false;
Length = _root.boatZoom._x;
deg = -1 * _root.boatZoom.pirateFishing._rotation;
if (deg < 0) {
deg = deg + 360;
}
deg = deg * (Math.PI/180);
polePointX = (Length * Math.cos(deg)) + _root.boatZoom._x;
polePointY = _root.boatZoom._y - (Length * Math.sin(deg));
_root.lineThing.createEmptyMovieClip("line", 1);
with (_root.lineThing.line) {
lineStyle(1, 3394764, 100);
moveTo(_root.bait._x, _root.bait._y);
lineTo(polePointX, polePointY);
}
if (_global.reeledIn == true) {
x = this._x - _root.boatZoom._x;
y = this._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = direction + 360;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
if (direction < 0) {
deg = direction * -1;
} else {
deg = 360 - direction;
}
rad = (Math.PI/180) * deg;
_global.BaitRatioX = Math.cos(rad);
_global.BaitRatioY = Math.sin(rad);
if (_global.fishOnHook == false) {
this._x = this._x - (_global.BaitRatioX * _global.baitAcc);
this._y = this._y + (_global.BaitRatioY * _global.baitAcc);
} else {
if (!this.hitTest(_root.fishHitTest)) {
x = this._x - _root.fishDes1._x;
y = this._y - _root.fishDes1._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
} else {
if (this.hitTest(_root.fishDes2)) {
if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 2);
}
}
x = this._x - _root.fishDes2._x;
y = this._y - _root.fishDes2._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
}
strEffect = (10 - _global.YourStr) / 10;
speedx = _global.FBaitRatioX * ((_global.weightClass / 2) + strEffect);
speedy = _global.FBaitRatioY * ((_global.weightClass / 2) + strEffect);
this._x = this._x - (((_global.BaitRatioX * _global.baitAcc) + speedx) / 2);
this._y = this._y + (((_global.BaitRatioY * _global.baitAcc) + speedy) / 2);
}
if (_global.fishOnHook == true) {
if (_global.fightSet == false) {
trace("interval set " + _global.fightSet);
fightInterval = setInterval(fight, 2000);
_global.fightSet = true;
}
if (_global.fishFights == true) {
strEffect = (10 - _global.YourStr) / 10;
this._x = this._x - ((_global.FBaitRatioX * (_global.weightClass + strEffect)) / 2);
this._y = this._y + ((_global.FBaitRatioY * (_global.weightClass + strEffect)) / 2);
}
}
}
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
}
}
Instance of Symbol 1693 MovieClip "boatZoom" in Frame 1207
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.castingNow = true;
} else {
_global.castingNow = false;
}
}
Instance of Symbol 428 MovieClip in Frame 1207
onClipEvent (enterFrame) {
if (_global.baitFlying == true) {
_root.bait.gotoAndStop(1);
_root.bait._x = _root.bait._x + (_global.ratioX * 13);
_root.bait._y = _root.bait._y - (_global.ratioY * 13);
if (_global.ratioX >= 0.5) {
if (_root.bait._x >= _global.testx) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else if (_global.ratioX < 0.5) {
if (_root.bait._y >= _global.testy) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else {
trace("error heitto hommassa");
}
}
}
Instance of Symbol 1695 MovieClip "land1" in Frame 1207
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Instance of Symbol 1697 MovieClip "land2" in Frame 1207
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Frame 1208
function calcSpeed() {
if (_global.reelHelper == false) {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
rSpeedText = "stopped";
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (reelingSpeed <= 0.2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "very slow";
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0.2) && (reelingSpeed <= 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
rSpeedText = "slow";
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 1) && (reelingSpeed <= 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "medium";
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
rSpeedText = "fast";
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
} else {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 4)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
}
}
_global.reeling = false;
reel._rotation = 0;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.oldAngle = 0;
rSpeedText = "";
reelingVSSound = new Sound(this);
reelingVSSound.attachSound("reelingVS");
reelingSSound = new Sound(this);
reelingSSound.attachSound("reelingS");
reelingMSound = new Sound(this);
reelingMSound.attachSound("reelingM");
reelingFSound = new Sound(this);
reelingFSound.attachSound("reelingF");
speedInterval = setInterval(calcSpeed, 200);
boatZoom.pirateFishing.pole._visible = 0;
boatZoom.pirateFishing._rotation = 135;
_root.bait.gotoAndStop(2);
_global.castingNow = false;
_global.throwRange = 0;
_root.reel.reelButton.enabled = false;
_root.mcCast.castButton.enabled = true;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_global.baitAcc = 0;
_global.allowThrow = false;
_global.reeledIn = true;
_global.ratioX = 0;
_global.ratioY = 0;
_global.fishFights = false;
_global.baitFlying = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
bootBites = function () {
_root.messages.gotoAndPlay(364);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = 2;
_global.weightClass = 0;
price = Math.round(Math.random() * 5);
_global.hookedFish = ["a Boot", weight, 18, price];
};
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
_global.fishOnHook = false;
_global.hookedFish = new Array();
_global.hookedFish = ["", 0, 0];
_global.weightClass = 1;
weight1 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 1.6) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2.5) + 1.6) + (_global.YourStr / 10);
}
return(int(((0.2 + (Math.random() * 1.7)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight2 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 2.5) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2) + 2.5) + (_global.YourStr / 10);
}
return(int(((1 + (Math.random() * 2.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight3 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 3.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 3.5) + 3.5) + ((_global.YourStr * 2) / 10);
}
return(int(((1.5 + (Math.random() * 3.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight4 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 6.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 6.5) + 6.5) + ((_global.YourStr * 2) / 10);
}
return(int(((2 + (Math.random() * 4)) + (_global.goodLure * biggy)) * 10) / 10);
};
if (_global.fishDay1[1] == "Pike") {
_root.fishLake1.gotoAndStop(1);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[0] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Zander") {
_root.fishLake1.gotoAndStop(2);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[1] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Salmon") {
_root.fishLake1.gotoAndStop(3);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[2] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Trout") {
_root.fishLake1.gotoAndStop(4);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[3] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Catfish") {
_root.fishLake1.gotoAndStop(5);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[4] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Whitefish") {
_root.fishLake1.gotoAndStop(6);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[5] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Roach") {
_root.fishLake1.gotoAndStop(7);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[6] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[1] == "Crucian carp") {
_root.fishLake1.gotoAndStop(8);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[7] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri ykk\u00F6sess\u00E4");
}
if (_global.fishDay2[1] == "Pike") {
_root.fishLake2.gotoAndStop(1);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[0] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Zander") {
_root.fishLake2.gotoAndStop(2);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[1] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Salmon") {
_root.fishLake2.gotoAndStop(3);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[2] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Trout") {
_root.fishLake2.gotoAndStop(4);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[3] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Catfish") {
_root.fishLake2.gotoAndStop(5);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[4] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Whitefish") {
_root.fishLake2.gotoAndStop(6);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[5] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Roach") {
_root.fishLake2.gotoAndStop(7);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[6] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[1] == "Crucian carp") {
_root.fishLake2.gotoAndStop(8);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[7] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kakkosessa");
}
if (_global.fishNight1[1] == "Anglerfish") {
_root.fishLake3.gotoAndStop(9);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Eel") {
_root.fishLake3.gotoAndStop(10);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Burbot") {
_root.fishLake3.gotoAndStop(11);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Pufferfish") {
_root.fishLake3.gotoAndStop(12);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Ray") {
_root.fishLake3.gotoAndStop(13);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Flounder") {
_root.fishLake3.gotoAndStop(14);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Octopus") {
_root.fishLake3.gotoAndStop(15);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[1] == "Squid") {
_root.fishLake3.gotoAndStop(16);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kolmosessa");
}
if (_global.fishNight2[1] == "Anglerfish") {
_root.fishLake4.gotoAndStop(9);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Eel") {
_root.fishLake4.gotoAndStop(10);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Burbot") {
_root.fishLake4.gotoAndStop(11);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Pufferfish") {
_root.fishLake4.gotoAndStop(12);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Ray") {
_root.fishLake4.gotoAndStop(13);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Flounder") {
_root.fishLake4.gotoAndStop(14);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Octopus") {
_root.fishLake4.gotoAndStop(15);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[1] == "Squid") {
_root.fishLake4.gotoAndStop(16);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri nelosessa");
}
Instance of Symbol 896 MovieClip [BaitOnAir] "bait" in Frame 1208
onClipEvent (load) {
function fight() {
_root.tooltip.text.gotoAndStop(5);
_global.fightSet = true;
if (_global.weightClass == 0) {
weightEffect = 0.2;
} else if (_global.weightClass == 1) {
weightEffect = 0.2;
} else if (_global.weightClass == 2) {
weightEffect = 0.3;
} else if (_global.weightClass == 3) {
weightEffect = 0.4;
} else {
trace("ei onnaa");
}
if ((_root.bait._x >= (_root.boatZoom._x - 60)) && (_root.bait._y <= (_root.boatZoom._y + 60))) {
} else {
if (Math.random() < weightEffect) {
trace("fights");
if (_global.sounds) {
fightSound.attachSound("fightS");
fightSound.start(0, 1);
}
_global.fishFights = true;
} else {
trace("fights not");
_global.fishFights = false;
}
precent = Math.random();
if (_global.beginner) {
if (precent <= 0.25) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.25) && (precent <= 0.5)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.5) && (precent <= 0.75)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.75) && (precent <= 1)) {
baitSplashing.gotoAndPlay(108);
}
} else if (precent <= 0.11) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.11) && (precent <= 0.22)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.22) && (precent <= 0.33)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.33) && (precent <= 0.44)) {
baitSplashing.gotoAndPlay(108);
} else if ((precent > 0.44) && (precent <= 0.55)) {
baitSplashing.gotoAndPlay(144);
} else if ((precent > 0.55) && (precent <= 0.66)) {
baitSplashing.gotoAndPlay(180);
} else if ((precent > 0.66) && (precent <= 0.77)) {
baitSplashing.gotoAndPlay(216);
} else if ((precent > 0.77) && (precent <= 0.88)) {
baitSplashing.gotoAndPlay(252);
} else if ((precent > 0.88) && (precent <= 1)) {
baitSplashing.gotoAndPlay(288);
} else {
trace("errori kiinni pit\u00E4misess\u00E4");
}
}
}
_global.reeledSome = false;
fightSound = new Sound(this);
_global.fightSet = false;
}
onClipEvent (enterFrame) {
_global.testx = _global.xBaitDes + _root.boatZoom._x;
_global.testy = _root.boatZoom._y - _global.yBaitDes;
if (_global.allowThrow == true) {
_root.boatZoom.pirateFishing.pole.gotoAndPlay(2);
_global.allowThrow = false;
}
if ((this._x >= (_root.boatZoom._x - 50)) && (this._y <= (_root.boatZoom._y + 30))) {
_root.tooltip.text.gotoAndStop(2);
if (_global.reeledIn == true) {
if (_global.fishOnHook == true) {
_global.fishFights = false;
_parent.tension.gotoAndStop(1);
trace(_global.hookedFish);
_global.tempFish[0] = _global.hookedFish[0];
_global.tempFish[1] = _global.hookedFish[1];
_global.tempFish[2] = _global.hookedFish[2];
_global.tempFish[3] = _global.hookedFish[3];
_root.attachMovie("fishGot", "fishGotOpen", 500);
_root.fishGotOpen._x = 75;
_root.fishGotOpen._y = 75;
if (_global.hookedFish[0] == _global.fishDay1[3]) {
_global.knownFishes[12] = 1;
}
if (_global.hookedFish[0] == _global.fishDay2[3]) {
_global.knownFishes[13] = 1;
}
if (_global.hookedFish[0] == _global.fishNight1[3]) {
_global.knownFishes[14] = 1;
}
if (_global.hookedFish[0] == _global.fishNight2[3]) {
_global.knownFishes[15] = 1;
}
if (_global.yourFish1[0] != 1) {
_global.yourFish1[0] = 1;
_global.yourFish1[1] = _global.hookedFish[0];
_global.yourFish1[2] = _global.hookedFish[1];
_global.yourFish1[3] = _global.hookedFish[2];
_global.yourFish1[4] = _global.hookedFish[3];
} else if (_global.yourFish2[0] != 1) {
_global.yourFish2[0] = 1;
_global.yourFish2[1] = _global.hookedFish[0];
_global.yourFish2[2] = _global.hookedFish[1];
_global.yourFish2[3] = _global.hookedFish[2];
_global.yourFish2[4] = _global.hookedFish[3];
} else if (_global.yourFish3[0] != 1) {
_global.yourFish3[0] = 1;
_global.yourFish3[1] = _global.hookedFish[0];
_global.yourFish3[2] = _global.hookedFish[1];
_global.yourFish3[3] = _global.hookedFish[2];
_global.yourFish3[4] = _global.hookedFish[3];
} else if (_global.yourFish4[0] != 1) {
_global.yourFish4[0] = 1;
_global.yourFish4[1] = _global.hookedFish[0];
_global.yourFish4[2] = _global.hookedFish[1];
_global.yourFish4[3] = _global.hookedFish[2];
_global.yourFish4[4] = _global.hookedFish[3];
} else if (_global.yourFish5[0] != 1) {
_global.yourFish5[0] = 1;
_global.yourFish5[1] = _global.hookedFish[0];
_global.yourFish5[2] = _global.hookedFish[1];
_global.yourFish5[3] = _global.hookedFish[2];
_global.yourFish5[4] = _global.hookedFish[3];
} else if (_global.yourFish6[0] != 1) {
_global.yourFish6[0] = 1;
_global.yourFish6[1] = _global.hookedFish[0];
_global.yourFish6[2] = _global.hookedFish[1];
_global.yourFish6[3] = _global.hookedFish[2];
_global.yourFish6[4] = _global.hookedFish[3];
} else if (_global.yourFish7[0] != 1) {
_global.yourFish7[0] = 1;
_global.yourFish7[1] = _global.hookedFish[0];
_global.yourFish7[2] = _global.hookedFish[1];
_global.yourFish7[3] = _global.hookedFish[2];
_global.yourFish7[4] = _global.hookedFish[3];
} else {
_global.yourFish8[0] = 1;
_global.yourFish8[1] = _global.hookedFish[0];
_global.yourFish8[2] = _global.hookedFish[1];
_global.yourFish8[3] = _global.hookedFish[2];
_global.yourFish8[4] = _global.hookedFish[3];
}
_global.fishOnHook = false;
if (_global.expAmount < 468) {
_global.expAmount = _global.expAmount + _global.hookedFish[3];
newExp = Math.floor((_global.expAmount - (_global.expPointsAll * 26)) / 26);
if (newExp > 0) {
_root.messages.gotoAndStop(243);
_global.expPointsAll = _global.expPointsAll + newExp;
if (_global.expPointsAll > 18) {
newExp = 1;
}
_global.expPoints = _global.expPoints + newExp;
}
}
_global.hookedFish = ["", 0, 0];
}
clearInterval(fightInterval);
_global.fightSet = false;
_global.fishOnHook = false;
_global.reeledSome = false;
_root.boatZoom.pirateFishing.pole._visible = 0;
_root.lineThing.createEmptyMovieClip("xiitti", 1);
this.gotoAndStop(1);
this._x = _root.boatZoom._x;
this._y = _root.boatZoom._y;
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.speedPenalty = 0;
_root.reel.reelButton.enabled = false;
if (_global.buttonsEnabler == true) {
_root.mcCast.castButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_global.buttonsEnabler = false;
}
_root.bait.gotoAndStop(1);
} else {
_root.boatZoom.pirateFishing.pole._visible = 1;
}
} else {
if (!_global.fishOnHook) {
if (!_global.reeledSome) {
_root.tooltip.text.gotoAndStop(3);
} else {
_root.tooltip.text.gotoAndStop(4);
}
}
if (_global.reeledIn == true) {
_root.reel.reelButton.enabled = true;
}
_root.mcCast.castButton.enabled = false;
Length = 85;
deg = -1 * _root.boatZoom.pirateFishing._rotation;
if (deg < 0) {
deg = deg + 360;
}
deg = deg * (Math.PI/180);
polePointX = (Length * Math.cos(deg)) + _root.boatZoom._x;
polePointY = _root.boatZoom._y - (Length * Math.sin(deg));
_root.lineThing.createEmptyMovieClip("line", 1);
with (_root.lineThing.line) {
lineStyle(1, 3394764, 100);
moveTo(_root.bait._x, _root.bait._y);
lineTo(polePointX, polePointY);
}
if (_global.reeledIn == true) {
x = this._x - _root.boatZoom._x;
y = this._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = direction + 360;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
if (direction < 0) {
deg = direction * -1;
} else {
deg = 360 - direction;
}
rad = (Math.PI/180) * deg;
_global.BaitRatioX = Math.cos(rad);
_global.BaitRatioY = Math.sin(rad);
if (_global.fishOnHook == false) {
this._x = this._x - (_global.BaitRatioX * _global.baitAcc);
this._y = this._y + (_global.BaitRatioY * _global.baitAcc);
} else {
if (!this.hitTest(_root.fishHitTest)) {
x = this._x - _root.fishDes1._x;
y = this._y - _root.fishDes1._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
} else {
if (this.hitTest(_root.fishDes2)) {
if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 2);
}
}
x = this._x - _root.fishDes2._x;
y = this._y - _root.fishDes2._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
}
strEffect = (10 - _global.YourStr) / 10;
speedx = _global.FBaitRatioX * ((_global.weightClass / 2) + strEffect);
speedy = _global.FBaitRatioY * ((_global.weightClass / 2) + strEffect);
this._x = this._x - (((_global.BaitRatioX * _global.baitAcc) + speedx) / 2);
this._y = this._y + (((_global.BaitRatioY * _global.baitAcc) + speedy) / 2);
}
if (_global.fishOnHook == true) {
if (_global.fightSet == false) {
trace("interval set " + _global.fightSet);
fightInterval = setInterval(fight, 2000);
_global.fightSet = true;
}
if (_global.fishFights == true) {
strEffect = (10 - _global.YourStr) / 10;
this._x = this._x - ((_global.FBaitRatioX * (_global.weightClass + strEffect)) / 2);
this._y = this._y + ((_global.FBaitRatioY * (_global.weightClass + strEffect)) / 2);
}
}
}
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
}
}
Instance of Symbol 1717 MovieClip "boatZoom" in Frame 1208
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.castingNow = true;
} else {
_global.castingNow = false;
}
}
Instance of Symbol 428 MovieClip in Frame 1208
onClipEvent (enterFrame) {
if (_global.baitFlying == true) {
_root.bait.gotoAndStop(1);
_root.bait._x = _root.bait._x + (_global.ratioX * 13);
_root.bait._y = _root.bait._y - (_global.ratioY * 13);
if (_global.ratioX <= -0.5) {
if (_root.bait._x <= _global.testx) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else if (_global.ratioX > -0.5) {
if (_root.bait._y >= _global.testy) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else {
trace("error heitto hommassa");
}
}
}
Instance of Symbol 1719 MovieClip "land1" in Frame 1208
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Frame 1209
function calcSpeed() {
if (_global.reelHelper == false) {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
rSpeedText = "stopped";
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (reelingSpeed <= 0.2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "very slow";
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0.2) && (reelingSpeed <= 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
rSpeedText = "slow";
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 1) && (reelingSpeed <= 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "medium";
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
rSpeedText = "fast";
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
} else {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 4)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
}
}
_global.reeling = false;
reel._rotation = 0;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.oldAngle = 0;
rSpeedText = "";
reelingVSSound = new Sound(this);
reelingVSSound.attachSound("reelingVS");
reelingSSound = new Sound(this);
reelingSSound.attachSound("reelingS");
reelingMSound = new Sound(this);
reelingMSound.attachSound("reelingM");
reelingFSound = new Sound(this);
reelingFSound.attachSound("reelingF");
speedInterval = setInterval(calcSpeed, 200);
boatZoom.pirateFishing.pole._visible = 0;
boatZoom.pirateFishing._rotation = -45;
_root.bait.gotoAndStop(2);
_global.castingNow = false;
_global.throwRange = 0;
_root.reel.reelButton.enabled = false;
_root.mcCast.castButton.enabled = true;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_global.baitAcc = 0;
_global.allowThrow = false;
_global.reeledIn = true;
_global.ratioX = 0;
_global.ratioY = 0;
_global.fishFights = false;
_global.baitFlying = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
bootBites = function () {
_root.messages.gotoAndPlay(364);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = 2;
_global.weightClass = 0;
price = Math.round(Math.random() * 5);
_global.hookedFish = ["a Boot", weight, 18, price];
};
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
_global.fishOnHook = false;
_global.hookedFish = new Array();
_global.hookedFish = ["", 0, 0];
_global.weightClass = 1;
weight1 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 1.6) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2.5) + 1.6) + (_global.YourStr / 10);
}
return(int(((0.2 + (Math.random() * 1.7)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight2 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 2.5) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2) + 2.5) + (_global.YourStr / 10);
}
return(int(((1 + (Math.random() * 2.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight3 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 3.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 3.5) + 3.5) + ((_global.YourStr * 2) / 10);
}
return(int(((1.5 + (Math.random() * 3.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight4 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 6.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 6.5) + 6.5) + ((_global.YourStr * 2) / 10);
}
return(int(((2 + (Math.random() * 4)) + (_global.goodLure * biggy)) * 10) / 10);
};
if (_global.fishDay1[2] == "Pike") {
_root.fishLake1.gotoAndStop(1);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[0] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[2] == "Zander") {
_root.fishLake1.gotoAndStop(2);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[1] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[2] == "Salmon") {
_root.fishLake1.gotoAndStop(3);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[2] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[2] == "Trout") {
_root.fishLake1.gotoAndStop(4);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[3] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[2] == "Catfish") {
_root.fishLake1.gotoAndStop(5);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[4] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[2] == "Whitefish") {
_root.fishLake1.gotoAndStop(6);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[5] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[2] == "Roach") {
_root.fishLake1.gotoAndStop(7);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[6] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[2] == "Crucian carp") {
_root.fishLake1.gotoAndStop(8);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[7] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri ykk\u00F6sess\u00E4");
}
if (_global.fishDay2[2] == "Pike") {
_root.fishLake2.gotoAndStop(1);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[0] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[2] == "Zander") {
_root.fishLake2.gotoAndStop(2);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[1] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[2] == "Salmon") {
_root.fishLake2.gotoAndStop(3);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[2] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[2] == "Trout") {
_root.fishLake2.gotoAndStop(4);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[3] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[2] == "Catfish") {
_root.fishLake2.gotoAndStop(5);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[4] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[2] == "Whitefish") {
_root.fishLake2.gotoAndStop(6);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[5] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[2] == "Roach") {
_root.fishLake2.gotoAndStop(7);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[6] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[2] == "Crucian carp") {
_root.fishLake2.gotoAndStop(8);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[7] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kakkosessa");
}
if (_global.fishNight1[2] == "Anglerfish") {
_root.fishLake3.gotoAndStop(9);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[2] == "Eel") {
_root.fishLake3.gotoAndStop(10);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[2] == "Burbot") {
_root.fishLake3.gotoAndStop(11);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[2] == "Pufferfish") {
_root.fishLake3.gotoAndStop(12);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[2] == "Ray") {
_root.fishLake3.gotoAndStop(13);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[2] == "Flounder") {
_root.fishLake3.gotoAndStop(14);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[2] == "Octopus") {
_root.fishLake3.gotoAndStop(15);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[2] == "Squid") {
_root.fishLake3.gotoAndStop(16);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kolmosessa");
}
if (_global.fishNight2[2] == "Anglerfish") {
_root.fishLake4.gotoAndStop(9);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[2] == "Eel") {
_root.fishLake4.gotoAndStop(10);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[2] == "Burbot") {
_root.fishLake4.gotoAndStop(11);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[2] == "Pufferfish") {
_root.fishLake4.gotoAndStop(12);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[2] == "Ray") {
_root.fishLake4.gotoAndStop(13);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[2] == "Flounder") {
_root.fishLake4.gotoAndStop(14);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[2] == "Octopus") {
_root.fishLake4.gotoAndStop(15);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[2] == "Squid") {
_root.fishLake4.gotoAndStop(16);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri nelosessa");
}
Instance of Symbol 896 MovieClip [BaitOnAir] "bait" in Frame 1209
onClipEvent (load) {
function fight() {
_root.tooltip.text.gotoAndStop(5);
_global.fightSet = true;
if (_global.weightClass == 0) {
weightEffect = 0.2;
} else if (_global.weightClass == 1) {
weightEffect = 0.2;
} else if (_global.weightClass == 2) {
weightEffect = 0.3;
} else if (_global.weightClass == 3) {
weightEffect = 0.4;
} else {
trace("ei onnaa");
}
if ((_root.bait._x <= (_root.boatZoom._x + 60)) && (_root.bait._y >= (_root.boatZoom._y - 60))) {
} else {
if (Math.random() < weightEffect) {
trace("fights");
if (_global.sounds) {
fightSound.attachSound("fightS");
fightSound.start(0, 1);
}
_global.fishFights = true;
} else {
trace("fights not");
_global.fishFights = false;
}
precent = Math.random();
if (_global.beginner) {
if (precent <= 0.25) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.25) && (precent <= 0.5)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.5) && (precent <= 0.75)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.75) && (precent <= 1)) {
baitSplashing.gotoAndPlay(108);
}
} else if (precent <= 0.11) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.11) && (precent <= 0.22)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.22) && (precent <= 0.33)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.33) && (precent <= 0.44)) {
baitSplashing.gotoAndPlay(108);
} else if ((precent > 0.44) && (precent <= 0.55)) {
baitSplashing.gotoAndPlay(144);
} else if ((precent > 0.55) && (precent <= 0.66)) {
baitSplashing.gotoAndPlay(180);
} else if ((precent > 0.66) && (precent <= 0.77)) {
baitSplashing.gotoAndPlay(216);
} else if ((precent > 0.77) && (precent <= 0.88)) {
baitSplashing.gotoAndPlay(252);
} else if ((precent > 0.88) && (precent <= 1)) {
baitSplashing.gotoAndPlay(288);
} else {
trace("errori kiinni pit\u00E4misess\u00E4");
}
}
}
_global.reeledSome = false;
fightSound = new Sound(this);
_global.fightSet = false;
}
onClipEvent (enterFrame) {
_global.testx = _global.xBaitDes + _root.boatZoom._x;
_global.testy = _root.boatZoom._y - _global.yBaitDes;
if (_global.allowThrow == true) {
_root.boatZoom.pirateFishing.pole.gotoAndPlay(2);
_global.allowThrow = false;
}
if ((this._x <= (_root.boatZoom._x + 30)) && (this._y >= (_root.boatZoom._y - 30))) {
_root.tooltip.text.gotoAndStop(2);
if (_global.reeledIn == true) {
if (_global.fishOnHook == true) {
_global.fishFights = false;
_parent.tension.gotoAndStop(1);
trace(_global.hookedFish);
_global.tempFish[0] = _global.hookedFish[0];
_global.tempFish[1] = _global.hookedFish[1];
_global.tempFish[2] = _global.hookedFish[2];
_global.tempFish[3] = _global.hookedFish[3];
_root.attachMovie("fishGot", "fishGotOpen", 500);
_root.fishGotOpen._x = 75;
_root.fishGotOpen._y = 75;
if (_global.hookedFish[0] == _global.fishDay1[2]) {
_global.knownFishes[8] = 1;
}
if (_global.hookedFish[0] == _global.fishDay2[2]) {
_global.knownFishes[9] = 1;
}
if (_global.hookedFish[0] == _global.fishNight1[2]) {
_global.knownFishes[10] = 1;
}
if (_global.hookedFish[0] == _global.fishNight2[2]) {
_global.knownFishes[11] = 1;
}
if (_global.yourFish1[0] != 1) {
_global.yourFish1[0] = 1;
_global.yourFish1[1] = _global.hookedFish[0];
_global.yourFish1[2] = _global.hookedFish[1];
_global.yourFish1[3] = _global.hookedFish[2];
_global.yourFish1[4] = _global.hookedFish[3];
} else if (_global.yourFish2[0] != 1) {
_global.yourFish2[0] = 1;
_global.yourFish2[1] = _global.hookedFish[0];
_global.yourFish2[2] = _global.hookedFish[1];
_global.yourFish2[3] = _global.hookedFish[2];
_global.yourFish2[4] = _global.hookedFish[3];
} else if (_global.yourFish3[0] != 1) {
_global.yourFish3[0] = 1;
_global.yourFish3[1] = _global.hookedFish[0];
_global.yourFish3[2] = _global.hookedFish[1];
_global.yourFish3[3] = _global.hookedFish[2];
_global.yourFish3[4] = _global.hookedFish[3];
} else if (_global.yourFish4[0] != 1) {
_global.yourFish4[0] = 1;
_global.yourFish4[1] = _global.hookedFish[0];
_global.yourFish4[2] = _global.hookedFish[1];
_global.yourFish4[3] = _global.hookedFish[2];
_global.yourFish4[4] = _global.hookedFish[3];
} else if (_global.yourFish5[0] != 1) {
_global.yourFish5[0] = 1;
_global.yourFish5[1] = _global.hookedFish[0];
_global.yourFish5[2] = _global.hookedFish[1];
_global.yourFish5[3] = _global.hookedFish[2];
_global.yourFish5[4] = _global.hookedFish[3];
} else if (_global.yourFish6[0] != 1) {
_global.yourFish6[0] = 1;
_global.yourFish6[1] = _global.hookedFish[0];
_global.yourFish6[2] = _global.hookedFish[1];
_global.yourFish6[3] = _global.hookedFish[2];
_global.yourFish6[4] = _global.hookedFish[3];
} else if (_global.yourFish7[0] != 1) {
_global.yourFish7[0] = 1;
_global.yourFish7[1] = _global.hookedFish[0];
_global.yourFish7[2] = _global.hookedFish[1];
_global.yourFish7[3] = _global.hookedFish[2];
_global.yourFish7[4] = _global.hookedFish[3];
} else {
_global.yourFish8[0] = 1;
_global.yourFish8[1] = _global.hookedFish[0];
_global.yourFish8[2] = _global.hookedFish[1];
_global.yourFish8[3] = _global.hookedFish[2];
_global.yourFish8[4] = _global.hookedFish[3];
}
_global.fishOnHook = false;
if (_global.expAmount < 468) {
_global.expAmount = _global.expAmount + _global.hookedFish[3];
newExp = Math.floor((_global.expAmount - (_global.expPointsAll * 26)) / 26);
if (newExp > 0) {
_root.messages.gotoAndStop(243);
_global.expPointsAll = _global.expPointsAll + newExp;
if (_global.expPointsAll > 18) {
newExp = 1;
}
_global.expPoints = _global.expPoints + newExp;
}
}
_global.hookedFish = ["", 0, 0];
}
clearInterval(fightInterval);
_global.fightSet = false;
_global.fishOnHook = false;
_global.reeledSome = false;
_root.boatZoom.pirateFishing.pole._visible = 0;
_root.lineThing.createEmptyMovieClip("xiitti", 1);
this.gotoAndStop(1);
this._x = _root.boatZoom._x;
this._y = _root.boatZoom._y;
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.speedPenalty = 0;
_root.reel.reelButton.enabled = false;
if (_global.buttonsEnabler == true) {
_root.mcCast.castButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_global.buttonsEnabler = false;
}
_root.bait.gotoAndStop(1);
} else {
_root.boatZoom.pirateFishing.pole._visible = 1;
}
} else {
if (!_global.fishOnHook) {
if (!_global.reeledSome) {
_root.tooltip.text.gotoAndStop(3);
} else {
_root.tooltip.text.gotoAndStop(4);
}
}
if (_global.reeledIn == true) {
_root.reel.reelButton.enabled = true;
}
_root.mcCast.castButton.enabled = false;
Length = _root.boatZoom._x - 8;
deg = -1 * _root.boatZoom.pirateFishing._rotation;
if (deg < 0) {
deg = deg + 360;
}
deg = deg * (Math.PI/180);
polePointX = (Length * Math.cos(deg)) + _root.boatZoom._x;
polePointY = _root.boatZoom._y - (Length * Math.sin(deg));
_root.lineThing.createEmptyMovieClip("line", 1);
with (_root.lineThing.line) {
lineStyle(1, 3394764, 100);
moveTo(_root.bait._x, _root.bait._y);
lineTo(polePointX, polePointY);
}
if (_global.reeledIn == true) {
x = this._x - _root.boatZoom._x;
y = this._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = direction + 360;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
if (direction < 0) {
deg = direction * -1;
} else {
deg = 360 - direction;
}
rad = (Math.PI/180) * deg;
_global.BaitRatioX = Math.cos(rad);
_global.BaitRatioY = Math.sin(rad);
if (_global.fishOnHook == false) {
this._x = this._x - (_global.BaitRatioX * _global.baitAcc);
this._y = this._y + (_global.BaitRatioY * _global.baitAcc);
} else {
if (!this.hitTest(_root.fishHitTest)) {
x = this._x - _root.fishDes1._x;
y = this._y - _root.fishDes1._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
} else {
if (this.hitTest(_root.fishDes2)) {
if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 2);
}
}
x = this._x - _root.fishDes2._x;
y = this._y - _root.fishDes2._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
}
strEffect = (10 - _global.YourStr) / 10;
speedx = _global.FBaitRatioX * ((_global.weightClass / 2) + strEffect);
speedy = _global.FBaitRatioY * ((_global.weightClass / 2) + strEffect);
this._x = this._x - (((_global.BaitRatioX * _global.baitAcc) + speedx) / 2);
this._y = this._y + (((_global.BaitRatioY * _global.baitAcc) + speedy) / 2);
}
if (_global.fishOnHook == true) {
if (_global.fightSet == false) {
trace("interval set " + _global.fightSet);
fightInterval = setInterval(fight, 2000);
_global.fightSet = true;
}
if (_global.fishFights == true) {
strEffect = (10 - _global.YourStr) / 10;
this._x = this._x - ((_global.FBaitRatioX * (_global.weightClass + strEffect)) / 2);
this._y = this._y + ((_global.FBaitRatioY * (_global.weightClass + strEffect)) / 2);
}
}
}
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
}
}
Instance of Symbol 1742 MovieClip "boatZoom" in Frame 1209
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.castingNow = true;
} else {
_global.castingNow = false;
}
}
Instance of Symbol 428 MovieClip in Frame 1209
onClipEvent (enterFrame) {
if (_global.baitFlying == true) {
_root.bait.gotoAndStop(1);
_root.bait._x = _root.bait._x + (_global.ratioX * 13);
_root.bait._y = _root.bait._y - (_global.ratioY * 13);
if (_global.ratioY <= 0.5) {
if (_root.bait._x >= _global.testx) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else if (_global.ratioY > 0.5) {
if (_root.bait._y <= _global.testy) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else {
trace("error heitto hommassa");
}
}
}
Instance of Symbol 1744 MovieClip "land1" in Frame 1209
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Instance of Symbol 1746 MovieClip "land2" in Frame 1209
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Frame 1210
function calcSpeed() {
if (_global.reelHelper == false) {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
rSpeedText = "stopped";
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (reelingSpeed <= 0.2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "very slow";
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0.2) && (reelingSpeed <= 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
rSpeedText = "slow";
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 1) && (reelingSpeed <= 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "medium";
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
rSpeedText = "fast";
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
} else {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 4)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
}
}
_global.reeling = false;
reel._rotation = 0;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.oldAngle = 0;
rSpeedText = "";
reelingVSSound = new Sound(this);
reelingVSSound.attachSound("reelingVS");
reelingSSound = new Sound(this);
reelingSSound.attachSound("reelingS");
reelingMSound = new Sound(this);
reelingMSound.attachSound("reelingM");
reelingFSound = new Sound(this);
reelingFSound.attachSound("reelingF");
speedInterval = setInterval(calcSpeed, 200);
boatZoom.pirateFishing.pole._visible = 0;
boatZoom.pirateFishing._rotation = 135;
_root.bait.gotoAndStop(2);
_global.castingNow = false;
_global.throwRange = 0;
_root.reel.reelButton.enabled = false;
_root.mcCast.castButton.enabled = true;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_global.baitAcc = 0;
_global.allowThrow = false;
_global.reeledIn = true;
_global.ratioX = 0;
_global.ratioY = 0;
_global.fishFights = false;
_global.baitFlying = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
bootBites = function () {
_root.messages.gotoAndPlay(364);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = 2;
_global.weightClass = 0;
price = Math.round(Math.random() * 5);
_global.hookedFish = ["a Boot", weight, 18, price];
};
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
_global.fishOnHook = false;
_global.hookedFish = new Array();
_global.hookedFish = ["", 0, 0];
_global.weightClass = 1;
weight1 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 1.6) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2.5) + 1.6) + (_global.YourStr / 10);
}
return(int(((0.2 + (Math.random() * 1.7)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight2 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 2.5) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2) + 2.5) + (_global.YourStr / 10);
}
return(int(((1 + (Math.random() * 2.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight3 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 3.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 3.5) + 3.5) + ((_global.YourStr * 2) / 10);
}
return(int(((1.5 + (Math.random() * 3.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight4 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 6.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 6.5) + 6.5) + ((_global.YourStr * 2) / 10);
}
return(int(((2 + (Math.random() * 4)) + (_global.goodLure * biggy)) * 10) / 10);
};
if (_global.fishDay1[3] == "Pike") {
_root.fishLake1.gotoAndStop(1);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[0] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[3] == "Zander") {
_root.fishLake1.gotoAndStop(2);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[1] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[3] == "Salmon") {
_root.fishLake1.gotoAndStop(3);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[2] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[3] == "Trout") {
_root.fishLake1.gotoAndStop(4);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[3] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[3] == "Catfish") {
_root.fishLake1.gotoAndStop(5);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[4] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[3] == "Whitefish") {
_root.fishLake1.gotoAndStop(6);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[5] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[3] == "Roach") {
_root.fishLake1.gotoAndStop(7);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[6] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[3] == "Crucian carp") {
_root.fishLake1.gotoAndStop(8);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[7] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri ykk\u00F6sess\u00E4");
}
if (_global.fishDay2[3] == "Pike") {
_root.fishLake2.gotoAndStop(1);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[0] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[3] == "Zander") {
_root.fishLake2.gotoAndStop(2);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[1] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[3] == "Salmon") {
_root.fishLake2.gotoAndStop(3);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[2] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[3] == "Trout") {
_root.fishLake2.gotoAndStop(4);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[3] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[3] == "Catfish") {
_root.fishLake2.gotoAndStop(5);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[4] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[3] == "Whitefish") {
_root.fishLake2.gotoAndStop(6);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[5] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[3] == "Roach") {
_root.fishLake2.gotoAndStop(7);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[6] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[3] == "Crucian carp") {
_root.fishLake2.gotoAndStop(8);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[7] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kakkosessa");
}
if (_global.fishNight1[3] == "Anglerfish") {
_root.fishLake3.gotoAndStop(9);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[3] == "Eel") {
_root.fishLake3.gotoAndStop(10);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[3] == "Burbot") {
_root.fishLake3.gotoAndStop(11);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[3] == "Pufferfish") {
_root.fishLake3.gotoAndStop(12);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[3] == "Ray") {
_root.fishLake3.gotoAndStop(13);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[3] == "Flounder") {
_root.fishLake3.gotoAndStop(14);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[3] == "Octopus") {
_root.fishLake3.gotoAndStop(15);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[3] == "Squid") {
_root.fishLake3.gotoAndStop(16);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kolmosessa");
}
if (_global.fishNight2[3] == "Anglerfish") {
_root.fishLake4.gotoAndStop(9);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[3] == "Eel") {
_root.fishLake4.gotoAndStop(10);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[3] == "Burbot") {
_root.fishLake4.gotoAndStop(11);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[3] == "Pufferfish") {
_root.fishLake4.gotoAndStop(12);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[3] == "Ray") {
_root.fishLake4.gotoAndStop(13);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[3] == "Flounder") {
_root.fishLake4.gotoAndStop(14);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[3] == "Octopus") {
_root.fishLake4.gotoAndStop(15);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[3] == "Squid") {
_root.fishLake4.gotoAndStop(16);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri nelosessa");
}
Instance of Symbol 896 MovieClip [BaitOnAir] "bait" in Frame 1210
onClipEvent (load) {
function fight() {
_root.tooltip.text.gotoAndStop(5);
_global.fightSet = true;
if (_global.weightClass == 0) {
weightEffect = 0.2;
} else if (_global.weightClass == 1) {
weightEffect = 0.2;
} else if (_global.weightClass == 2) {
weightEffect = 0.3;
} else if (_global.weightClass == 3) {
weightEffect = 0.4;
} else {
trace("ei onnaa");
}
if ((_root.bait._x >= (_root.boatZoom._x - 60)) && (_root.bait._y <= (_root.boatZoom._y + 60))) {
} else {
if (Math.random() < weightEffect) {
trace("fights");
if (_global.sounds) {
fightSound.attachSound("fightS");
fightSound.start(0, 1);
}
_global.fishFights = true;
} else {
trace("fights not");
_global.fishFights = false;
}
precent = Math.random();
if (_global.beginner) {
if (precent <= 0.25) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.25) && (precent <= 0.5)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.5) && (precent <= 0.75)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.75) && (precent <= 1)) {
baitSplashing.gotoAndPlay(108);
}
} else if (precent <= 0.11) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.11) && (precent <= 0.22)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.22) && (precent <= 0.33)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.33) && (precent <= 0.44)) {
baitSplashing.gotoAndPlay(108);
} else if ((precent > 0.44) && (precent <= 0.55)) {
baitSplashing.gotoAndPlay(144);
} else if ((precent > 0.55) && (precent <= 0.66)) {
baitSplashing.gotoAndPlay(180);
} else if ((precent > 0.66) && (precent <= 0.77)) {
baitSplashing.gotoAndPlay(216);
} else if ((precent > 0.77) && (precent <= 0.88)) {
baitSplashing.gotoAndPlay(252);
} else if ((precent > 0.88) && (precent <= 1)) {
baitSplashing.gotoAndPlay(288);
} else {
trace("errori kiinni pit\u00E4misess\u00E4");
}
}
}
_global.reeledSome = false;
fightSound = new Sound(this);
_global.fightSet = false;
}
onClipEvent (enterFrame) {
_global.testx = _global.xBaitDes + _root.boatZoom._x;
_global.testy = _root.boatZoom._y - _global.yBaitDes;
if (_global.allowThrow == true) {
_root.boatZoom.pirateFishing.pole.gotoAndPlay(2);
_global.allowThrow = false;
}
if ((this._x >= (_root.boatZoom._x - 30)) && (this._y <= (_root.boatZoom._y + 30))) {
_root.tooltip.text.gotoAndStop(2);
if (_global.reeledIn == true) {
if (_global.fishOnHook == true) {
_global.fishFights = false;
_parent.tension.gotoAndStop(1);
trace(_global.hookedFish);
_global.tempFish[0] = _global.hookedFish[0];
_global.tempFish[1] = _global.hookedFish[1];
_global.tempFish[2] = _global.hookedFish[2];
_global.tempFish[3] = _global.hookedFish[3];
_root.attachMovie("fishGot", "fishGotOpen", 500);
_root.fishGotOpen._x = 75;
_root.fishGotOpen._y = 75;
if (_global.hookedFish[0] == _global.fishDay1[3]) {
_global.knownFishes[12] = 1;
}
if (_global.hookedFish[0] == _global.fishDay2[3]) {
_global.knownFishes[13] = 1;
}
if (_global.hookedFish[0] == _global.fishNight1[3]) {
_global.knownFishes[14] = 1;
}
if (_global.hookedFish[0] == _global.fishNight2[3]) {
_global.knownFishes[15] = 1;
}
if (_global.yourFish1[0] != 1) {
_global.yourFish1[0] = 1;
_global.yourFish1[1] = _global.hookedFish[0];
_global.yourFish1[2] = _global.hookedFish[1];
_global.yourFish1[3] = _global.hookedFish[2];
_global.yourFish1[4] = _global.hookedFish[3];
} else if (_global.yourFish2[0] != 1) {
_global.yourFish2[0] = 1;
_global.yourFish2[1] = _global.hookedFish[0];
_global.yourFish2[2] = _global.hookedFish[1];
_global.yourFish2[3] = _global.hookedFish[2];
_global.yourFish2[4] = _global.hookedFish[3];
} else if (_global.yourFish3[0] != 1) {
_global.yourFish3[0] = 1;
_global.yourFish3[1] = _global.hookedFish[0];
_global.yourFish3[2] = _global.hookedFish[1];
_global.yourFish3[3] = _global.hookedFish[2];
_global.yourFish3[4] = _global.hookedFish[3];
} else if (_global.yourFish4[0] != 1) {
_global.yourFish4[0] = 1;
_global.yourFish4[1] = _global.hookedFish[0];
_global.yourFish4[2] = _global.hookedFish[1];
_global.yourFish4[3] = _global.hookedFish[2];
_global.yourFish4[4] = _global.hookedFish[3];
} else if (_global.yourFish5[0] != 1) {
_global.yourFish5[0] = 1;
_global.yourFish5[1] = _global.hookedFish[0];
_global.yourFish5[2] = _global.hookedFish[1];
_global.yourFish5[3] = _global.hookedFish[2];
_global.yourFish5[4] = _global.hookedFish[3];
} else if (_global.yourFish6[0] != 1) {
_global.yourFish6[0] = 1;
_global.yourFish6[1] = _global.hookedFish[0];
_global.yourFish6[2] = _global.hookedFish[1];
_global.yourFish6[3] = _global.hookedFish[2];
_global.yourFish6[4] = _global.hookedFish[3];
} else if (_global.yourFish7[0] != 1) {
_global.yourFish7[0] = 1;
_global.yourFish7[1] = _global.hookedFish[0];
_global.yourFish7[2] = _global.hookedFish[1];
_global.yourFish7[3] = _global.hookedFish[2];
_global.yourFish7[4] = _global.hookedFish[3];
} else {
_global.yourFish8[0] = 1;
_global.yourFish8[1] = _global.hookedFish[0];
_global.yourFish8[2] = _global.hookedFish[1];
_global.yourFish8[3] = _global.hookedFish[2];
_global.yourFish8[4] = _global.hookedFish[3];
}
_global.fishOnHook = false;
if (_global.expAmount < 468) {
_global.expAmount = _global.expAmount + _global.hookedFish[3];
newExp = Math.floor((_global.expAmount - (_global.expPointsAll * 26)) / 26);
if (newExp > 0) {
_root.messages.gotoAndStop(243);
_global.expPointsAll = _global.expPointsAll + newExp;
if (_global.expPointsAll > 18) {
newExp = 1;
}
_global.expPoints = _global.expPoints + newExp;
}
}
_global.hookedFish = ["", 0, 0];
}
clearInterval(fightInterval);
_global.fightSet = false;
_global.fishOnHook = false;
_global.reeledSome = false;
_root.boatZoom.pirateFishing.pole._visible = 0;
_root.lineThing.createEmptyMovieClip("xiitti", 1);
this.gotoAndStop(1);
this._x = _root.boatZoom._x;
this._y = _root.boatZoom._y;
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.speedPenalty = 0;
_root.reel.reelButton.enabled = false;
if (_global.buttonsEnabler == true) {
_root.mcCast.castButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_global.buttonsEnabler = false;
}
_root.bait.gotoAndStop(1);
} else {
_root.boatZoom.pirateFishing.pole._visible = 1;
}
} else {
if (!_global.fishOnHook) {
if (!_global.reeledSome) {
_root.tooltip.text.gotoAndStop(3);
} else {
_root.tooltip.text.gotoAndStop(4);
}
}
if (_global.reeledIn == true) {
_root.reel.reelButton.enabled = true;
}
_root.mcCast.castButton.enabled = false;
Length = _root.boatZoom._y + 12;
deg = -1 * _root.boatZoom.pirateFishing._rotation;
if (deg < 0) {
deg = deg + 360;
}
deg = deg * (Math.PI/180);
polePointX = (Length * Math.cos(deg)) + _root.boatZoom._x;
polePointY = _root.boatZoom._y - (Length * Math.sin(deg));
_root.lineThing.createEmptyMovieClip("line", 1);
with (_root.lineThing.line) {
lineStyle(1, 3394764, 100);
moveTo(_root.bait._x, _root.bait._y);
lineTo(polePointX, polePointY);
}
if (_global.reeledIn == true) {
x = this._x - _root.boatZoom._x;
y = this._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = direction + 360;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
if (direction < 0) {
deg = direction * -1;
} else {
deg = 360 - direction;
}
rad = (Math.PI/180) * deg;
_global.BaitRatioX = Math.cos(rad);
_global.BaitRatioY = Math.sin(rad);
if (_global.fishOnHook == false) {
this._x = this._x - (_global.BaitRatioX * _global.baitAcc);
this._y = this._y + (_global.BaitRatioY * _global.baitAcc);
} else {
if (!this.hitTest(_root.fishHitTest)) {
x = this._x - _root.fishDes1._x;
y = this._y - _root.fishDes1._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
} else {
if (this.hitTest(_root.fishDes2)) {
if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 2);
}
}
x = this._x - _root.fishDes2._x;
y = this._y - _root.fishDes2._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
}
strEffect = (10 - _global.YourStr) / 10;
speedx = _global.FBaitRatioX * ((_global.weightClass / 2) + strEffect);
speedy = _global.FBaitRatioY * ((_global.weightClass / 2) + strEffect);
this._x = this._x - (((_global.BaitRatioX * _global.baitAcc) + speedx) / 2);
this._y = this._y + (((_global.BaitRatioY * _global.baitAcc) + speedy) / 2);
}
if (_global.fishOnHook == true) {
if (_global.fightSet == false) {
trace("interval set " + _global.fightSet);
fightInterval = setInterval(fight, 2000);
_global.fightSet = true;
}
if (_global.fishFights == true) {
strEffect = (10 - _global.YourStr) / 10;
this._x = this._x - ((_global.FBaitRatioX * (_global.weightClass + strEffect)) / 2);
this._y = this._y + ((_global.FBaitRatioY * (_global.weightClass + strEffect)) / 2);
}
}
}
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
}
}
Instance of Symbol 1760 MovieClip "boatZoom" in Frame 1210
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.castingNow = true;
} else {
_global.castingNow = false;
}
}
Instance of Symbol 428 MovieClip in Frame 1210
onClipEvent (enterFrame) {
if (_global.baitFlying == true) {
_root.bait.gotoAndStop(1);
_root.bait._x = _root.bait._x + (_global.ratioX * 13);
_root.bait._y = _root.bait._y - (_global.ratioY * 13);
if (_global.ratioX <= -0.5) {
if (_root.bait._x <= _global.testx) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else if (_global.ratioX > -0.5) {
if (_root.bait._y >= _global.testy) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else {
trace("error heitto hommassa");
}
}
}
Instance of Symbol 1762 MovieClip "land1" in Frame 1210
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Instance of Symbol 1764 MovieClip "land2" in Frame 1210
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Frame 1211
function calcSpeed() {
if (_global.reelHelper == false) {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
rSpeedText = "stopped";
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (reelingSpeed <= 0.2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "very slow";
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0.2) && (reelingSpeed <= 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
rSpeedText = "slow";
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 1) && (reelingSpeed <= 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "medium";
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
rSpeedText = "fast";
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
} else {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 4)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
}
}
_global.reeling = false;
reel._rotation = 0;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.oldAngle = 0;
rSpeedText = "";
reelingVSSound = new Sound(this);
reelingVSSound.attachSound("reelingVS");
reelingSSound = new Sound(this);
reelingSSound.attachSound("reelingS");
reelingMSound = new Sound(this);
reelingMSound.attachSound("reelingM");
reelingFSound = new Sound(this);
reelingFSound.attachSound("reelingF");
speedInterval = setInterval(calcSpeed, 200);
boatZoom.pirateFishing.pole._visible = 0;
boatZoom.pirateFishing._rotation = 135;
_root.bait.gotoAndStop(2);
_global.castingNow = false;
_global.throwRange = 0;
_root.reel.reelButton.enabled = false;
_root.mcCast.castButton.enabled = true;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_global.baitAcc = 0;
_global.allowThrow = false;
_global.reeledIn = true;
_global.ratioX = 0;
_global.ratioY = 0;
_global.fishFights = false;
_global.baitFlying = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
bootBites = function () {
_root.messages.gotoAndPlay(364);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = 2;
_global.weightClass = 0;
price = Math.round(Math.random() * 5);
_global.hookedFish = ["a Boot", weight, 18, price];
};
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
_global.fishOnHook = false;
_global.hookedFish = new Array();
_global.hookedFish = ["", 0, 0];
_global.weightClass = 1;
weight1 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 1.6) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2.5) + 1.6) + (_global.YourStr / 10);
}
return(int(((0.2 + (Math.random() * 1.7)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight2 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 2.5) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2) + 2.5) + (_global.YourStr / 10);
}
return(int(((1 + (Math.random() * 2.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight3 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 3.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 3.5) + 3.5) + ((_global.YourStr * 2) / 10);
}
return(int(((1.5 + (Math.random() * 3.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight4 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 6.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 6.5) + 6.5) + ((_global.YourStr * 2) / 10);
}
return(int(((2 + (Math.random() * 4)) + (_global.goodLure * biggy)) * 10) / 10);
};
if (_global.fishDay1[4] == "Pike") {
_root.fishLake1.gotoAndStop(1);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[0] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[4] == "Zander") {
_root.fishLake1.gotoAndStop(2);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[1] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[4] == "Salmon") {
_root.fishLake1.gotoAndStop(3);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[2] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[4] == "Trout") {
_root.fishLake1.gotoAndStop(4);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[3] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[4] == "Catfish") {
_root.fishLake1.gotoAndStop(5);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[4] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[4] == "Whitefish") {
_root.fishLake1.gotoAndStop(6);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[5] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[4] == "Roach") {
_root.fishLake1.gotoAndStop(7);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[6] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[4] == "Crucian carp") {
_root.fishLake1.gotoAndStop(8);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[7] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri ykk\u00F6sess\u00E4");
}
if (_global.fishDay2[4] == "Pike") {
_root.fishLake2.gotoAndStop(1);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[0] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[4] == "Zander") {
_root.fishLake2.gotoAndStop(2);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[1] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[4] == "Salmon") {
_root.fishLake2.gotoAndStop(3);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[2] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[4] == "Trout") {
_root.fishLake2.gotoAndStop(4);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[3] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[4] == "Catfish") {
_root.fishLake2.gotoAndStop(5);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[4] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[4] == "Whitefish") {
_root.fishLake2.gotoAndStop(6);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[5] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[4] == "Roach") {
_root.fishLake2.gotoAndStop(7);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[6] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[4] == "Crucian carp") {
_root.fishLake2.gotoAndStop(8);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[7] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kakkosessa");
}
if (_global.fishNight1[4] == "Anglerfish") {
_root.fishLake3.gotoAndStop(9);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[4] == "Eel") {
_root.fishLake3.gotoAndStop(10);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[4] == "Burbot") {
_root.fishLake3.gotoAndStop(11);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[4] == "Pufferfish") {
_root.fishLake3.gotoAndStop(12);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[4] == "Ray") {
_root.fishLake3.gotoAndStop(13);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[4] == "Flounder") {
_root.fishLake3.gotoAndStop(14);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[4] == "Octopus") {
_root.fishLake3.gotoAndStop(15);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[4] == "Squid") {
_root.fishLake3.gotoAndStop(16);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kolmosessa");
}
if (_global.fishNight2[4] == "Anglerfish") {
_root.fishLake4.gotoAndStop(9);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[4] == "Eel") {
_root.fishLake4.gotoAndStop(10);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[4] == "Burbot") {
_root.fishLake4.gotoAndStop(11);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[4] == "Pufferfish") {
_root.fishLake4.gotoAndStop(12);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[4] == "Ray") {
_root.fishLake4.gotoAndStop(13);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[4] == "Flounder") {
_root.fishLake4.gotoAndStop(14);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[4] == "Octopus") {
_root.fishLake4.gotoAndStop(15);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[4] == "Squid") {
_root.fishLake4.gotoAndStop(16);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri nelosessa");
}
Instance of Symbol 896 MovieClip [BaitOnAir] "bait" in Frame 1211
onClipEvent (load) {
function fight() {
_root.tooltip.text.gotoAndStop(5);
_global.fightSet = true;
if (_global.weightClass == 0) {
weightEffect = 0.2;
} else if (_global.weightClass == 1) {
weightEffect = 0.2;
} else if (_global.weightClass == 2) {
weightEffect = 0.3;
} else if (_global.weightClass == 3) {
weightEffect = 0.4;
} else {
trace("ei onnaa");
}
if ((_root.bait._x >= (_root.boatZoom._x - 60)) && (_root.bait._y <= (_root.boatZoom._y + 60))) {
} else {
if (Math.random() < weightEffect) {
trace("fights");
if (_global.sounds) {
fightSound.attachSound("fightS");
fightSound.start(0, 1);
}
_global.fishFights = true;
} else {
trace("fights not");
_global.fishFights = false;
}
precent = Math.random();
if (_global.beginner) {
if (precent <= 0.25) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.25) && (precent <= 0.5)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.5) && (precent <= 0.75)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.75) && (precent <= 1)) {
baitSplashing.gotoAndPlay(108);
}
} else if (precent <= 0.11) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.11) && (precent <= 0.22)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.22) && (precent <= 0.33)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.33) && (precent <= 0.44)) {
baitSplashing.gotoAndPlay(108);
} else if ((precent > 0.44) && (precent <= 0.55)) {
baitSplashing.gotoAndPlay(144);
} else if ((precent > 0.55) && (precent <= 0.66)) {
baitSplashing.gotoAndPlay(180);
} else if ((precent > 0.66) && (precent <= 0.77)) {
baitSplashing.gotoAndPlay(216);
} else if ((precent > 0.77) && (precent <= 0.88)) {
baitSplashing.gotoAndPlay(252);
} else if ((precent > 0.88) && (precent <= 1)) {
baitSplashing.gotoAndPlay(288);
} else {
trace("errori kiinni pit\u00E4misess\u00E4");
}
}
}
_global.reeledSome = false;
fightSound = new Sound(this);
_global.fightSet = false;
}
onClipEvent (enterFrame) {
_global.testx = _global.xBaitDes + _root.boatZoom._x;
_global.testy = _root.boatZoom._y - _global.yBaitDes;
if (_global.allowThrow == true) {
_root.boatZoom.pirateFishing.pole.gotoAndPlay(2);
_global.allowThrow = false;
}
if ((this._x >= (_root.boatZoom._x - 30)) && (this._y <= (_root.boatZoom._y + 30))) {
_root.tooltip.text.gotoAndStop(2);
if (_global.reeledIn == true) {
if (_global.fishOnHook == true) {
_global.fishFights = false;
_parent.tension.gotoAndStop(1);
trace(_global.hookedFish);
_global.tempFish[0] = _global.hookedFish[0];
_global.tempFish[1] = _global.hookedFish[1];
_global.tempFish[2] = _global.hookedFish[2];
_global.tempFish[3] = _global.hookedFish[3];
_root.attachMovie("fishGot", "fishGotOpen", 500);
_root.fishGotOpen._x = 75;
_root.fishGotOpen._y = 75;
if (_global.hookedFish[0] == _global.fishDay1[4]) {
_global.knownFishes[16] = 1;
}
if (_global.hookedFish[0] == _global.fishDay2[4]) {
_global.knownFishes[17] = 1;
}
if (_global.hookedFish[0] == _global.fishNight1[4]) {
_global.knownFishes[18] = 1;
}
if (_global.hookedFish[0] == _global.fishNight2[4]) {
_global.knownFishes[19] = 1;
}
if (_global.yourFish1[0] != 1) {
_global.yourFish1[0] = 1;
_global.yourFish1[1] = _global.hookedFish[0];
_global.yourFish1[2] = _global.hookedFish[1];
_global.yourFish1[3] = _global.hookedFish[2];
_global.yourFish1[4] = _global.hookedFish[3];
} else if (_global.yourFish2[0] != 1) {
_global.yourFish2[0] = 1;
_global.yourFish2[1] = _global.hookedFish[0];
_global.yourFish2[2] = _global.hookedFish[1];
_global.yourFish2[3] = _global.hookedFish[2];
_global.yourFish2[4] = _global.hookedFish[3];
} else if (_global.yourFish3[0] != 1) {
_global.yourFish3[0] = 1;
_global.yourFish3[1] = _global.hookedFish[0];
_global.yourFish3[2] = _global.hookedFish[1];
_global.yourFish3[3] = _global.hookedFish[2];
_global.yourFish3[4] = _global.hookedFish[3];
} else if (_global.yourFish4[0] != 1) {
_global.yourFish4[0] = 1;
_global.yourFish4[1] = _global.hookedFish[0];
_global.yourFish4[2] = _global.hookedFish[1];
_global.yourFish4[3] = _global.hookedFish[2];
_global.yourFish4[4] = _global.hookedFish[3];
} else if (_global.yourFish5[0] != 1) {
_global.yourFish5[0] = 1;
_global.yourFish5[1] = _global.hookedFish[0];
_global.yourFish5[2] = _global.hookedFish[1];
_global.yourFish5[3] = _global.hookedFish[2];
_global.yourFish5[4] = _global.hookedFish[3];
} else if (_global.yourFish6[0] != 1) {
_global.yourFish6[0] = 1;
_global.yourFish6[1] = _global.hookedFish[0];
_global.yourFish6[2] = _global.hookedFish[1];
_global.yourFish6[3] = _global.hookedFish[2];
_global.yourFish6[4] = _global.hookedFish[3];
} else if (_global.yourFish7[0] != 1) {
_global.yourFish7[0] = 1;
_global.yourFish7[1] = _global.hookedFish[0];
_global.yourFish7[2] = _global.hookedFish[1];
_global.yourFish7[3] = _global.hookedFish[2];
_global.yourFish7[4] = _global.hookedFish[3];
} else {
_global.yourFish8[0] = 1;
_global.yourFish8[1] = _global.hookedFish[0];
_global.yourFish8[2] = _global.hookedFish[1];
_global.yourFish8[3] = _global.hookedFish[2];
_global.yourFish8[4] = _global.hookedFish[3];
}
_global.fishOnHook = false;
if (_global.expAmount < 468) {
_global.expAmount = _global.expAmount + _global.hookedFish[3];
newExp = Math.floor((_global.expAmount - (_global.expPointsAll * 26)) / 26);
if (newExp > 0) {
_root.messages.gotoAndStop(243);
_global.expPointsAll = _global.expPointsAll + newExp;
if (_global.expPointsAll > 18) {
newExp = 1;
}
_global.expPoints = _global.expPoints + newExp;
}
}
_global.hookedFish = ["", 0, 0];
}
clearInterval(fightInterval);
_global.fightSet = false;
_global.fishOnHook = false;
_global.reeledSome = false;
_root.boatZoom.pirateFishing.pole._visible = 0;
_root.lineThing.createEmptyMovieClip("xiitti", 1);
this.gotoAndStop(1);
this._x = _root.boatZoom._x;
this._y = _root.boatZoom._y;
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.speedPenalty = 0;
_root.reel.reelButton.enabled = false;
if (_global.buttonsEnabler == true) {
_root.mcCast.castButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_global.buttonsEnabler = false;
}
_root.bait.gotoAndStop(1);
} else {
_root.boatZoom.pirateFishing.pole._visible = 1;
}
} else {
if (!_global.fishOnHook) {
if (!_global.reeledSome) {
_root.tooltip.text.gotoAndStop(3);
} else {
_root.tooltip.text.gotoAndStop(4);
}
}
if (_global.reeledIn == true) {
_root.reel.reelButton.enabled = true;
}
_root.mcCast.castButton.enabled = false;
Length = _root.boatZoom._y + 12;
deg = -1 * _root.boatZoom.pirateFishing._rotation;
if (deg < 0) {
deg = deg + 360;
}
deg = deg * (Math.PI/180);
polePointX = (Length * Math.cos(deg)) + _root.boatZoom._x;
polePointY = _root.boatZoom._y - (Length * Math.sin(deg));
_root.lineThing.createEmptyMovieClip("line", 1);
with (_root.lineThing.line) {
lineStyle(1, 3394764, 100);
moveTo(_root.bait._x, _root.bait._y);
lineTo(polePointX, polePointY);
}
if (_global.reeledIn == true) {
x = this._x - _root.boatZoom._x;
y = this._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = direction + 360;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
if (direction < 0) {
deg = direction * -1;
} else {
deg = 360 - direction;
}
rad = (Math.PI/180) * deg;
_global.BaitRatioX = Math.cos(rad);
_global.BaitRatioY = Math.sin(rad);
if (_global.fishOnHook == false) {
this._x = this._x - (_global.BaitRatioX * _global.baitAcc);
this._y = this._y + (_global.BaitRatioY * _global.baitAcc);
} else {
if (!this.hitTest(_root.fishHitTest)) {
x = this._x - _root.fishDes1._x;
y = this._y - _root.fishDes1._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
} else {
if (this.hitTest(_root.fishDes2)) {
if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 2);
}
}
x = this._x - _root.fishDes2._x;
y = this._y - _root.fishDes2._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
}
strEffect = (10 - _global.YourStr) / 10;
speedx = _global.FBaitRatioX * ((_global.weightClass / 2) + strEffect);
speedy = _global.FBaitRatioY * ((_global.weightClass / 2) + strEffect);
this._x = this._x - (((_global.BaitRatioX * _global.baitAcc) + speedx) / 2);
this._y = this._y + (((_global.BaitRatioY * _global.baitAcc) + speedy) / 2);
}
if (_global.fishOnHook == true) {
if (_global.fightSet == false) {
trace("interval set " + _global.fightSet);
fightInterval = setInterval(fight, 2000);
_global.fightSet = true;
}
if (_global.fishFights == true) {
strEffect = (10 - _global.YourStr) / 10;
this._x = this._x - ((_global.FBaitRatioX * (_global.weightClass + strEffect)) / 2);
this._y = this._y + ((_global.FBaitRatioY * (_global.weightClass + strEffect)) / 2);
}
}
}
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
}
}
Instance of Symbol 1776 MovieClip "land1" in Frame 1211
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Instance of Symbol 1778 MovieClip "land2" in Frame 1211
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Frame 1212
function calcSpeed() {
if (_global.reelHelper == false) {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
rSpeedText = "stopped";
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (reelingSpeed <= 0.2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "very slow";
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0.2) && (reelingSpeed <= 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
rSpeedText = "slow";
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 1) && (reelingSpeed <= 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "medium";
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
rSpeedText = "fast";
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
} else {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 4)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
}
}
_global.reeling = false;
reel._rotation = 0;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.oldAngle = 0;
rSpeedText = "";
reelingVSSound = new Sound(this);
reelingVSSound.attachSound("reelingVS");
reelingSSound = new Sound(this);
reelingSSound.attachSound("reelingS");
reelingMSound = new Sound(this);
reelingMSound.attachSound("reelingM");
reelingFSound = new Sound(this);
reelingFSound.attachSound("reelingF");
speedInterval = setInterval(calcSpeed, 200);
boatZoom.pirateFishing.pole._visible = 0;
boatZoom.pirateFishing._rotation = 225;
_root.bait.gotoAndStop(2);
_global.castingNow = false;
_global.throwRange = 0;
_root.reel.reelButton.enabled = false;
_root.mcCast.castButton.enabled = true;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_global.baitAcc = 0;
_global.allowThrow = false;
_global.reeledIn = true;
_global.ratioX = 0;
_global.ratioY = 0;
_global.baitFlying = false;
_global.fishFights = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
bootBites = function () {
_root.messages.gotoAndPlay(364);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = 2;
_global.weightClass = 0;
price = Math.round(Math.random() * 5);
_global.hookedFish = ["a Boot", weight, 18, price];
};
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
_global.fishOnHook = false;
_global.hookedFish = new Array();
_global.hookedFish = ["", 0, 0];
_global.weightClass = 1;
weight1 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 1.6) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2.5) + 1.6) + (_global.YourStr / 10);
}
return(int(((0.2 + (Math.random() * 1.7)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight2 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 2.5) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2) + 2.5) + (_global.YourStr / 10);
}
return(int(((1 + (Math.random() * 2.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight3 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 3.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 3.5) + 3.5) + ((_global.YourStr * 2) / 10);
}
return(int(((1.5 + (Math.random() * 3.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight4 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 6.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 6.5) + 6.5) + ((_global.YourStr * 2) / 10);
}
return(int(((2 + (Math.random() * 4)) + (_global.goodLure * biggy)) * 10) / 10);
};
if (_global.fishDay1[5] == "Pike") {
_root.fishLake1.gotoAndStop(1);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[0] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[5] == "Zander") {
_root.fishLake1.gotoAndStop(2);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[1] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[5] == "Salmon") {
_root.fishLake1.gotoAndStop(3);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[2] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[5] == "Trout") {
_root.fishLake1.gotoAndStop(4);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[3] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[5] == "Catfish") {
_root.fishLake1.gotoAndStop(5);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[4] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[5] == "Whitefish") {
_root.fishLake1.gotoAndStop(6);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[5] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[5] == "Roach") {
_root.fishLake1.gotoAndStop(7);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[6] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[5] == "Crucian carp") {
_root.fishLake1.gotoAndStop(8);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[7] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri ykk\u00F6sess\u00E4");
}
if (_global.fishDay2[5] == "Pike") {
_root.fishLake2.gotoAndStop(1);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[0] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[5] == "Zander") {
_root.fishLake2.gotoAndStop(2);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[1] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[5] == "Salmon") {
_root.fishLake2.gotoAndStop(3);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[2] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[5] == "Trout") {
_root.fishLake2.gotoAndStop(4);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[3] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[5] == "Catfish") {
_root.fishLake2.gotoAndStop(5);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[4] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[5] == "Whitefish") {
_root.fishLake2.gotoAndStop(6);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[5] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[5] == "Roach") {
_root.fishLake2.gotoAndStop(7);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[6] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[5] == "Crucian carp") {
_root.fishLake2.gotoAndStop(8);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[7] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kakkosessa");
}
if (_global.fishNight1[5] == "Anglerfish") {
_root.fishLake3.gotoAndStop(9);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[5] == "Eel") {
_root.fishLake3.gotoAndStop(10);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[5] == "Burbot") {
_root.fishLake3.gotoAndStop(11);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[5] == "Pufferfish") {
_root.fishLake3.gotoAndStop(12);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[5] == "Ray") {
_root.fishLake3.gotoAndStop(13);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[5] == "Flounder") {
_root.fishLake3.gotoAndStop(14);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[5] == "Octopus") {
_root.fishLake3.gotoAndStop(15);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[5] == "Squid") {
_root.fishLake3.gotoAndStop(16);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kolmosessa");
}
if (_global.fishNight2[5] == "Anglerfish") {
_root.fishLake4.gotoAndStop(9);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[5] == "Eel") {
_root.fishLake4.gotoAndStop(10);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[5] == "Burbot") {
_root.fishLake4.gotoAndStop(11);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[5] == "Pufferfish") {
_root.fishLake4.gotoAndStop(12);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[5] == "Ray") {
_root.fishLake4.gotoAndStop(13);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[5] == "Flounder") {
_root.fishLake4.gotoAndStop(14);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[5] == "Octopus") {
_root.fishLake4.gotoAndStop(15);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[5] == "Squid") {
_root.fishLake4.gotoAndStop(16);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri nelosessa");
}
Instance of Symbol 896 MovieClip [BaitOnAir] "bait" in Frame 1212
onClipEvent (load) {
function fight() {
_root.tooltip.text.gotoAndStop(5);
_global.fightSet = true;
if (_global.weightClass == 0) {
weightEffect = 0.2;
} else if (_global.weightClass == 1) {
weightEffect = 0.2;
} else if (_global.weightClass == 2) {
weightEffect = 0.3;
} else if (_global.weightClass == 3) {
weightEffect = 0.4;
} else {
trace("ei onnaa");
}
if ((_root.bait._x >= (_root.boatZoom._x - 60)) && (_root.bait._y >= (_root.boatZoom._y - 60))) {
} else {
if (Math.random() < weightEffect) {
trace("fights");
if (_global.sounds) {
fightSound.attachSound("fightS");
fightSound.start(0, 1);
}
_global.fishFights = true;
} else {
trace("fights not");
_global.fishFights = false;
}
precent = Math.random();
if (_global.beginner) {
if (precent <= 0.25) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.25) && (precent <= 0.5)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.5) && (precent <= 0.75)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.75) && (precent <= 1)) {
baitSplashing.gotoAndPlay(108);
}
} else if (precent <= 0.11) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.11) && (precent <= 0.22)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.22) && (precent <= 0.33)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.33) && (precent <= 0.44)) {
baitSplashing.gotoAndPlay(108);
} else if ((precent > 0.44) && (precent <= 0.55)) {
baitSplashing.gotoAndPlay(144);
} else if ((precent > 0.55) && (precent <= 0.66)) {
baitSplashing.gotoAndPlay(180);
} else if ((precent > 0.66) && (precent <= 0.77)) {
baitSplashing.gotoAndPlay(216);
} else if ((precent > 0.77) && (precent <= 0.88)) {
baitSplashing.gotoAndPlay(252);
} else if ((precent > 0.88) && (precent <= 1)) {
baitSplashing.gotoAndPlay(288);
} else {
trace("errori kiinni pit\u00E4misess\u00E4");
}
}
}
_global.reeledSome = false;
fightSound = new Sound(this);
_global.fightSet = false;
}
onClipEvent (enterFrame) {
_global.testx = _global.xBaitDes + _root.boatZoom._x;
_global.testy = _root.boatZoom._y - _global.yBaitDes;
if (_global.allowThrow == true) {
_root.boatZoom.pirateFishing.pole.gotoAndPlay(2);
_global.allowThrow = false;
}
if ((this._x >= (_root.boatZoom._x - 30)) && (this._y >= (_root.boatZoom._y - 30))) {
_root.tooltip.text.gotoAndStop(2);
if (_global.reeledIn == true) {
if (_global.fishOnHook == true) {
_global.fishFights = false;
_parent.tension.gotoAndStop(1);
trace(_global.hookedFish);
_global.tempFish[0] = _global.hookedFish[0];
_global.tempFish[1] = _global.hookedFish[1];
_global.tempFish[2] = _global.hookedFish[2];
_global.tempFish[3] = _global.hookedFish[3];
_root.attachMovie("fishGot", "fishGotOpen", 500);
_root.fishGotOpen._x = 75;
_root.fishGotOpen._y = 75;
if (_global.hookedFish[0] == _global.fishDay1[5]) {
_global.knownFishes[20] = 1;
}
if (_global.hookedFish[0] == _global.fishDay2[5]) {
_global.knownFishes[21] = 1;
}
if (_global.hookedFish[0] == _global.fishNight1[5]) {
_global.knownFishes[22] = 1;
}
if (_global.hookedFish[0] == _global.fishNight2[5]) {
_global.knownFishes[23] = 1;
}
if (_global.yourFish1[0] != 1) {
_global.yourFish1[0] = 1;
_global.yourFish1[1] = _global.hookedFish[0];
_global.yourFish1[2] = _global.hookedFish[1];
_global.yourFish1[3] = _global.hookedFish[2];
_global.yourFish1[4] = _global.hookedFish[3];
} else if (_global.yourFish2[0] != 1) {
_global.yourFish2[0] = 1;
_global.yourFish2[1] = _global.hookedFish[0];
_global.yourFish2[2] = _global.hookedFish[1];
_global.yourFish2[3] = _global.hookedFish[2];
_global.yourFish2[4] = _global.hookedFish[3];
} else if (_global.yourFish3[0] != 1) {
_global.yourFish3[0] = 1;
_global.yourFish3[1] = _global.hookedFish[0];
_global.yourFish3[2] = _global.hookedFish[1];
_global.yourFish3[3] = _global.hookedFish[2];
_global.yourFish3[4] = _global.hookedFish[3];
} else if (_global.yourFish4[0] != 1) {
_global.yourFish4[0] = 1;
_global.yourFish4[1] = _global.hookedFish[0];
_global.yourFish4[2] = _global.hookedFish[1];
_global.yourFish4[3] = _global.hookedFish[2];
_global.yourFish4[4] = _global.hookedFish[3];
} else if (_global.yourFish5[0] != 1) {
_global.yourFish5[0] = 1;
_global.yourFish5[1] = _global.hookedFish[0];
_global.yourFish5[2] = _global.hookedFish[1];
_global.yourFish5[3] = _global.hookedFish[2];
_global.yourFish5[4] = _global.hookedFish[3];
} else if (_global.yourFish6[0] != 1) {
_global.yourFish6[0] = 1;
_global.yourFish6[1] = _global.hookedFish[0];
_global.yourFish6[2] = _global.hookedFish[1];
_global.yourFish6[3] = _global.hookedFish[2];
_global.yourFish6[4] = _global.hookedFish[3];
} else if (_global.yourFish7[0] != 1) {
_global.yourFish7[0] = 1;
_global.yourFish7[1] = _global.hookedFish[0];
_global.yourFish7[2] = _global.hookedFish[1];
_global.yourFish7[3] = _global.hookedFish[2];
_global.yourFish7[4] = _global.hookedFish[3];
} else {
_global.yourFish8[0] = 1;
_global.yourFish8[1] = _global.hookedFish[0];
_global.yourFish8[2] = _global.hookedFish[1];
_global.yourFish8[3] = _global.hookedFish[2];
_global.yourFish8[4] = _global.hookedFish[3];
}
_global.fishOnHook = false;
if (_global.expAmount < 468) {
_global.expAmount = _global.expAmount + _global.hookedFish[3];
newExp = Math.floor((_global.expAmount - (_global.expPointsAll * 26)) / 26);
if (newExp > 0) {
_root.messages.gotoAndStop(243);
_global.expPointsAll = _global.expPointsAll + newExp;
if (_global.expPointsAll > 18) {
newExp = 1;
}
_global.expPoints = _global.expPoints + newExp;
}
}
_global.hookedFish = ["", 0, 0];
}
clearInterval(fightInterval);
_global.fightSet = false;
_global.fishOnHook = false;
_global.reeledSome = false;
_root.boatZoom.pirateFishing.pole._visible = 0;
_root.lineThing.createEmptyMovieClip("xiitti", 1);
this.gotoAndStop(1);
this._x = _root.boatZoom._x;
this._y = _root.boatZoom._y;
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.speedPenalty = 0;
_root.reel.reelButton.enabled = false;
if (_global.buttonsEnabler == true) {
_root.mcCast.castButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_global.buttonsEnabler = false;
}
_root.bait.gotoAndStop(1);
} else {
_root.boatZoom.pirateFishing.pole._visible = 1;
}
} else {
if (!_global.fishOnHook) {
if (!_global.reeledSome) {
_root.tooltip.text.gotoAndStop(3);
} else {
_root.tooltip.text.gotoAndStop(4);
}
}
if (_global.reeledIn == true) {
_root.reel.reelButton.enabled = true;
}
_root.mcCast.castButton.enabled = false;
Length = 85;
deg = -1 * _root.boatZoom.pirateFishing._rotation;
if (deg < 0) {
deg = deg + 360;
}
deg = deg * (Math.PI/180);
polePointX = (Length * Math.cos(deg)) + _root.boatZoom._x;
polePointY = _root.boatZoom._y - (Length * Math.sin(deg));
_root.lineThing.createEmptyMovieClip("line", 1);
with (_root.lineThing.line) {
lineStyle(1, 3394764, 100);
moveTo(_root.bait._x, _root.bait._y);
lineTo(polePointX, polePointY);
}
if (_global.reeledIn == true) {
x = this._x - _root.boatZoom._x;
y = this._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = direction + 360;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
if (direction < 0) {
deg = direction * -1;
} else {
deg = 360 - direction;
}
rad = (Math.PI/180) * deg;
disX = Math.abs(_root.boatZoom._x - this._x);
disY = Math.abs(_root.boatZoom._y - this._y);
_global.BaitRatioX = Math.cos(rad);
_global.BaitRatioY = Math.sin(rad);
if (_global.fishOnHook == false) {
this._x = this._x - (_global.BaitRatioX * _global.baitAcc);
this._y = this._y + (_global.BaitRatioY * _global.baitAcc);
} else {
if (!this.hitTest(_root.fishHitTest)) {
x = this._x - _root.fishDes1._x;
y = this._y - _root.fishDes1._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
} else {
if (this.hitTest(_root.fishDes2)) {
if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 2);
}
}
x = this._x - _root.fishDes2._x;
y = this._y - _root.fishDes2._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
}
strEffect = (10 - _global.YourStr) / 10;
speedx = _global.FBaitRatioX * ((_global.weightClass / 2) + strEffect);
speedy = _global.FBaitRatioY * ((_global.weightClass / 2) + strEffect);
this._x = this._x - (((_global.BaitRatioX * _global.baitAcc) + speedx) / 2);
this._y = this._y + (((_global.BaitRatioY * _global.baitAcc) + speedy) / 2);
}
if (_global.fishOnHook == true) {
if (_global.fightSet == false) {
trace("interval set " + _global.fightSet);
fightInterval = setInterval(fight, 2000);
_global.fightSet = true;
}
if (_global.fishFights == true) {
strEffect = (10 - _global.YourStr) / 10;
this._x = this._x - ((_global.FBaitRatioX * (_global.weightClass + strEffect)) / 2);
this._y = this._y + ((_global.FBaitRatioY * (_global.weightClass + strEffect)) / 2);
}
}
}
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
}
}
Instance of Symbol 1784 MovieClip "boatZoom" in Frame 1212
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.castingNow = true;
} else {
_global.castingNow = false;
}
}
Instance of Symbol 428 MovieClip in Frame 1212
onClipEvent (enterFrame) {
if (_global.baitFlying == true) {
_root.bait.gotoAndStop(1);
_root.bait._x = _root.bait._x + (_global.ratioX * 13);
_root.bait._y = _root.bait._y - (_global.ratioY * 13);
if (_global.ratioY <= 0.5) {
if (_root.bait._x <= _global.testx) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else if (_global.ratioY > 0.5) {
if (_root.bait._y <= _global.testy) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else {
trace("error heitto hommassa");
}
}
}
Instance of Symbol 1786 MovieClip "land1" in Frame 1212
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Instance of Symbol 1788 MovieClip "land2" in Frame 1212
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Frame 1213
function calcSpeed() {
if (_global.reelHelper == false) {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
rSpeedText = "stopped";
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (reelingSpeed <= 0.2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "very slow";
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0.2) && (reelingSpeed <= 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
rSpeedText = "slow";
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 1) && (reelingSpeed <= 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "medium";
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
rSpeedText = "fast";
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
} else {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 4)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
}
}
_global.reeling = false;
reel._rotation = 0;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.oldAngle = 0;
rSpeedText = "";
reelingVSSound = new Sound(this);
reelingVSSound.attachSound("reelingVS");
reelingSSound = new Sound(this);
reelingSSound.attachSound("reelingS");
reelingMSound = new Sound(this);
reelingMSound.attachSound("reelingM");
reelingFSound = new Sound(this);
reelingFSound.attachSound("reelingF");
speedInterval = setInterval(calcSpeed, 200);
boatZoom.pirateFishing.pole._visible = 0;
boatZoom.pirateFishing._rotation = 45;
_root.bait.gotoAndStop(2);
_global.castingNow = false;
_global.throwRange = 0;
_root.reel.reelButton.enabled = false;
_root.mcCast.castButton.enabled = true;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_global.baitAcc = 0;
_global.allowThrow = false;
_global.reeledIn = true;
_global.ratioX = 0;
_global.ratioY = 0;
_global.baitFlying = false;
_global.fishFights = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
bootBites = function () {
_root.messages.gotoAndPlay(364);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = 2;
_global.weightClass = 0;
price = Math.round(Math.random() * 5);
_global.hookedFish = ["a Boot", weight, 18, price];
};
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
_global.fishOnHook = false;
_global.hookedFish = new Array();
_global.hookedFish = ["", 0, 0];
_global.weightClass = 1;
weight1 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 1.6) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2.5) + 1.6) + (_global.YourStr / 10);
}
return(int(((0.2 + (Math.random() * 1.7)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight2 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 2.5) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2) + 2.5) + (_global.YourStr / 10);
}
return(int(((1 + (Math.random() * 2.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight3 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 3.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 3.5) + 3.5) + ((_global.YourStr * 2) / 10);
}
return(int(((1.5 + (Math.random() * 3.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight4 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 6.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 6.5) + 6.5) + ((_global.YourStr * 2) / 10);
}
return(int(((2 + (Math.random() * 4)) + (_global.goodLure * biggy)) * 10) / 10);
};
if (_global.fishDay1[6] == "Pike") {
_root.fishLake1.gotoAndStop(1);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[0] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[6] == "Zander") {
_root.fishLake1.gotoAndStop(2);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[1] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[6] == "Salmon") {
_root.fishLake1.gotoAndStop(3);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[2] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[6] == "Trout") {
_root.fishLake1.gotoAndStop(4);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[3] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[6] == "Catfish") {
_root.fishLake1.gotoAndStop(5);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[4] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[6] == "Whitefish") {
_root.fishLake1.gotoAndStop(6);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[5] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[6] == "Roach") {
_root.fishLake1.gotoAndStop(7);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[6] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[6] == "Crucian carp") {
_root.fishLake1.gotoAndStop(8);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[7] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri ykk\u00F6sess\u00E4");
}
if (_global.fishDay2[6] == "Pike") {
_root.fishLake2.gotoAndStop(1);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[0] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[6] == "Zander") {
_root.fishLake2.gotoAndStop(2);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[1] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[6] == "Salmon") {
_root.fishLake2.gotoAndStop(3);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[2] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[6] == "Trout") {
_root.fishLake2.gotoAndStop(4);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[3] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[6] == "Catfish") {
_root.fishLake2.gotoAndStop(5);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[4] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[6] == "Whitefish") {
_root.fishLake2.gotoAndStop(6);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[5] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[6] == "Roach") {
_root.fishLake2.gotoAndStop(7);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[6] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[6] == "Crucian carp") {
_root.fishLake2.gotoAndStop(8);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[7] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kakkosessa");
}
if (_global.fishNight1[6] == "Anglerfish") {
_root.fishLake3.gotoAndStop(9);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[6] == "Eel") {
_root.fishLake3.gotoAndStop(10);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[6] == "Burbot") {
_root.fishLake3.gotoAndStop(11);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[6] == "Pufferfish") {
_root.fishLake3.gotoAndStop(12);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[6] == "Ray") {
_root.fishLake3.gotoAndStop(13);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[6] == "Flounder") {
_root.fishLake3.gotoAndStop(14);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[6] == "Octopus") {
_root.fishLake3.gotoAndStop(15);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[6] == "Squid") {
_root.fishLake3.gotoAndStop(16);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kolmosessa");
}
if (_global.fishNight2[6] == "Anglerfish") {
_root.fishLake4.gotoAndStop(9);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[6] == "Eel") {
_root.fishLake4.gotoAndStop(10);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[6] == "Burbot") {
_root.fishLake4.gotoAndStop(11);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[6] == "Pufferfish") {
_root.fishLake4.gotoAndStop(12);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[6] == "Ray") {
_root.fishLake4.gotoAndStop(13);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[6] == "Flounder") {
_root.fishLake4.gotoAndStop(14);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[6] == "Octopus") {
_root.fishLake4.gotoAndStop(15);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[6] == "Squid") {
_root.fishLake4.gotoAndStop(16);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri nelosessa");
}
Instance of Symbol 896 MovieClip [BaitOnAir] "bait" in Frame 1213
onClipEvent (load) {
function fight() {
_root.tooltip.text.gotoAndStop(5);
_global.fightSet = true;
if (_global.weightClass == 0) {
weightEffect = 0.2;
} else if (_global.weightClass == 1) {
weightEffect = 0.2;
} else if (_global.weightClass == 2) {
weightEffect = 0.3;
} else if (_global.weightClass == 3) {
weightEffect = 0.4;
} else {
trace("ei onnaa");
}
if ((_root.bait._x <= (_root.boatZoom._x + 60)) && (_root.bait._y <= (_root.boatZoom._y + 60))) {
} else {
if (Math.random() < weightEffect) {
trace("fights");
if (_global.sounds) {
fightSound.attachSound("fightS");
fightSound.start(0, 1);
}
_global.fishFights = true;
} else {
trace("fights not");
_global.fishFights = false;
}
precent = Math.random();
if (_global.beginner) {
if (precent <= 0.25) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.25) && (precent <= 0.5)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.5) && (precent <= 0.75)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.75) && (precent <= 1)) {
baitSplashing.gotoAndPlay(108);
}
} else if (precent <= 0.11) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.11) && (precent <= 0.22)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.22) && (precent <= 0.33)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.33) && (precent <= 0.44)) {
baitSplashing.gotoAndPlay(108);
} else if ((precent > 0.44) && (precent <= 0.55)) {
baitSplashing.gotoAndPlay(144);
} else if ((precent > 0.55) && (precent <= 0.66)) {
baitSplashing.gotoAndPlay(180);
} else if ((precent > 0.66) && (precent <= 0.77)) {
baitSplashing.gotoAndPlay(216);
} else if ((precent > 0.77) && (precent <= 0.88)) {
baitSplashing.gotoAndPlay(252);
} else if ((precent > 0.88) && (precent <= 1)) {
baitSplashing.gotoAndPlay(288);
} else {
trace("errori kiinni pit\u00E4misess\u00E4");
}
}
}
_global.reeledSome = false;
fightSound = new Sound(this);
_global.fightSet = false;
}
onClipEvent (enterFrame) {
_global.testx = _global.xBaitDes + _root.boatZoom._x;
_global.testy = _root.boatZoom._y - _global.yBaitDes;
if (_global.allowThrow == true) {
_root.boatZoom.pirateFishing.pole.gotoAndPlay(2);
_global.allowThrow = false;
}
if ((this._x <= (_root.boatZoom._x + 30)) && (this._y <= (_root.boatZoom._y + 30))) {
_root.tooltip.text.gotoAndStop(2);
if (_global.reeledIn == true) {
if (_global.fishOnHook == true) {
_global.fishFights = false;
_parent.tension.gotoAndStop(1);
trace(_global.hookedFish);
_global.tempFish[0] = _global.hookedFish[0];
_global.tempFish[1] = _global.hookedFish[1];
_global.tempFish[2] = _global.hookedFish[2];
_global.tempFish[3] = _global.hookedFish[3];
_root.attachMovie("fishGot", "fishGotOpen", 500);
_root.fishGotOpen._x = 75;
_root.fishGotOpen._y = 75;
if (_global.hookedFish[0] == _global.fishDay1[6]) {
_global.knownFishes[24] = 1;
}
if (_global.hookedFish[0] == _global.fishDay2[6]) {
_global.knownFishes[25] = 1;
}
if (_global.hookedFish[0] == _global.fishNight1[6]) {
_global.knownFishes[26] = 1;
}
if (_global.hookedFish[0] == _global.fishNight2[6]) {
_global.knownFishes[27] = 1;
}
if (_global.yourFish1[0] != 1) {
_global.yourFish1[0] = 1;
_global.yourFish1[1] = _global.hookedFish[0];
_global.yourFish1[2] = _global.hookedFish[1];
_global.yourFish1[3] = _global.hookedFish[2];
_global.yourFish1[4] = _global.hookedFish[3];
} else if (_global.yourFish2[0] != 1) {
_global.yourFish2[0] = 1;
_global.yourFish2[1] = _global.hookedFish[0];
_global.yourFish2[2] = _global.hookedFish[1];
_global.yourFish2[3] = _global.hookedFish[2];
_global.yourFish2[4] = _global.hookedFish[3];
} else if (_global.yourFish3[0] != 1) {
_global.yourFish3[0] = 1;
_global.yourFish3[1] = _global.hookedFish[0];
_global.yourFish3[2] = _global.hookedFish[1];
_global.yourFish3[3] = _global.hookedFish[2];
_global.yourFish3[4] = _global.hookedFish[3];
} else if (_global.yourFish4[0] != 1) {
_global.yourFish4[0] = 1;
_global.yourFish4[1] = _global.hookedFish[0];
_global.yourFish4[2] = _global.hookedFish[1];
_global.yourFish4[3] = _global.hookedFish[2];
_global.yourFish4[4] = _global.hookedFish[3];
} else if (_global.yourFish5[0] != 1) {
_global.yourFish5[0] = 1;
_global.yourFish5[1] = _global.hookedFish[0];
_global.yourFish5[2] = _global.hookedFish[1];
_global.yourFish5[3] = _global.hookedFish[2];
_global.yourFish5[4] = _global.hookedFish[3];
} else if (_global.yourFish6[0] != 1) {
_global.yourFish6[0] = 1;
_global.yourFish6[1] = _global.hookedFish[0];
_global.yourFish6[2] = _global.hookedFish[1];
_global.yourFish6[3] = _global.hookedFish[2];
_global.yourFish6[4] = _global.hookedFish[3];
} else if (_global.yourFish7[0] != 1) {
_global.yourFish7[0] = 1;
_global.yourFish7[1] = _global.hookedFish[0];
_global.yourFish7[2] = _global.hookedFish[1];
_global.yourFish7[3] = _global.hookedFish[2];
_global.yourFish7[4] = _global.hookedFish[3];
} else {
_global.yourFish8[0] = 1;
_global.yourFish8[1] = _global.hookedFish[0];
_global.yourFish8[2] = _global.hookedFish[1];
_global.yourFish8[3] = _global.hookedFish[2];
_global.yourFish8[4] = _global.hookedFish[3];
}
_global.fishOnHook = false;
if (_global.expAmount < 468) {
_global.expAmount = _global.expAmount + _global.hookedFish[3];
newExp = Math.floor((_global.expAmount - (_global.expPointsAll * 26)) / 26);
if (newExp > 0) {
_root.messages.gotoAndStop(243);
_global.expPointsAll = _global.expPointsAll + newExp;
if (_global.expPointsAll > 18) {
newExp = 1;
}
_global.expPoints = _global.expPoints + newExp;
}
}
_global.hookedFish = ["", 0, 0];
}
clearInterval(fightInterval);
_global.fightSet = false;
_global.fishOnHook = false;
_global.reeledSome = false;
_root.boatZoom.pirateFishing.pole._visible = 0;
_root.lineThing.createEmptyMovieClip("xiitti", 1);
this.gotoAndStop(1);
this._x = _root.boatZoom._x;
this._y = _root.boatZoom._y;
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.speedPenalty = 0;
_root.reel.reelButton.enabled = false;
if (_global.buttonsEnabler == true) {
_root.mcCast.castButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_global.buttonsEnabler = false;
}
_root.bait.gotoAndStop(1);
} else {
_root.boatZoom.pirateFishing.pole._visible = 1;
}
} else {
if (!_global.fishOnHook) {
if (!_global.reeledSome) {
_root.tooltip.text.gotoAndStop(3);
} else {
_root.tooltip.text.gotoAndStop(4);
}
}
if (_global.reeledIn == true) {
_root.reel.reelButton.enabled = true;
}
_root.mcCast.castButton.enabled = false;
Length = _root.boatZoom._x;
deg = -1 * _root.boatZoom.pirateFishing._rotation;
if (deg < 0) {
deg = deg + 360;
}
deg = deg * (Math.PI/180);
polePointX = (Length * Math.cos(deg)) + _root.boatZoom._x;
polePointY = _root.boatZoom._y - (Length * Math.sin(deg));
_root.lineThing.createEmptyMovieClip("line", 1);
with (_root.lineThing.line) {
lineStyle(1, 3394764, 100);
moveTo(_root.bait._x, _root.bait._y);
lineTo(polePointX, polePointY);
}
if (_global.reeledIn == true) {
x = this._x - _root.boatZoom._x;
y = this._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = direction + 360;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
if (direction < 0) {
deg = direction * -1;
} else {
deg = 360 - direction;
}
rad = (Math.PI/180) * deg;
_global.BaitRatioX = Math.cos(rad);
_global.BaitRatioY = Math.sin(rad);
if (_global.fishOnHook == false) {
this._x = this._x - (_global.BaitRatioX * _global.baitAcc);
this._y = this._y + (_global.BaitRatioY * _global.baitAcc);
} else {
if (!this.hitTest(_root.fishHitTest)) {
x = this._x - _root.fishDes1._x;
y = this._y - _root.fishDes1._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
} else {
if (this.hitTest(_root.fishDes2)) {
if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 2);
}
}
x = this._x - _root.fishDes2._x;
y = this._y - _root.fishDes2._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
}
strEffect = (10 - _global.YourStr) / 10;
speedx = _global.FBaitRatioX * ((_global.weightClass / 2) + strEffect);
speedy = _global.FBaitRatioY * ((_global.weightClass / 2) + strEffect);
this._x = this._x - (((_global.BaitRatioX * _global.baitAcc) + speedx) / 2);
this._y = this._y + (((_global.BaitRatioY * _global.baitAcc) + speedy) / 2);
}
if (_global.fishOnHook == true) {
if (_global.fightSet == false) {
trace("interval set " + _global.fightSet);
fightInterval = setInterval(fight, 2000);
_global.fightSet = true;
}
if (_global.fishFights == true) {
strEffect = (10 - _global.YourStr) / 10;
this._x = this._x - ((_global.FBaitRatioX * (_global.weightClass + strEffect)) / 2);
this._y = this._y + ((_global.FBaitRatioY * (_global.weightClass + strEffect)) / 2);
}
}
}
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
}
}
Instance of Symbol 1693 MovieClip "boatZoom" in Frame 1213
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.castingNow = true;
} else {
_global.castingNow = false;
}
}
Instance of Symbol 428 MovieClip in Frame 1213
onClipEvent (enterFrame) {
if (_global.baitFlying == true) {
_root.bait.gotoAndStop(1);
_root.bait._x = _root.bait._x + (_global.ratioX * 13);
_root.bait._y = _root.bait._y - (_global.ratioY * 13);
if (_global.ratioX >= 0.5) {
if (_root.bait._x >= _global.testx) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else if (_global.ratioX < 0.5) {
if (_root.bait._y >= _global.testy) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else {
trace("error heitto hommassa");
}
}
}
Instance of Symbol 1798 MovieClip "land1" in Frame 1213
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Instance of Symbol 1800 MovieClip "land2" in Frame 1213
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Frame 1214
function calcSpeed() {
if (_global.reelHelper == false) {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
rSpeedText = "stopped";
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (reelingSpeed <= 0.2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "very slow";
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0.2) && (reelingSpeed <= 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
rSpeedText = "slow";
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 1) && (reelingSpeed <= 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "medium";
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
rSpeedText = "fast";
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
} else {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 4)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
}
}
_global.reeling = false;
reel._rotation = 0;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.oldAngle = 0;
rSpeedText = "";
reelingVSSound = new Sound(this);
reelingVSSound.attachSound("reelingVS");
reelingSSound = new Sound(this);
reelingSSound.attachSound("reelingS");
reelingMSound = new Sound(this);
reelingMSound.attachSound("reelingM");
reelingFSound = new Sound(this);
reelingFSound.attachSound("reelingF");
speedInterval = setInterval(calcSpeed, 200);
boatZoom.pirateFishing.pole._visible = 0;
boatZoom.pirateFishing._rotation = 225;
_root.bait.gotoAndStop(2);
_global.castingNow = false;
_global.throwRange = 0;
_root.reel.reelButton.enabled = false;
_root.mcCast.castButton.enabled = true;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_global.baitAcc = 0;
_global.allowThrow = false;
_global.reeledIn = true;
_global.ratioX = 0;
_global.ratioY = 0;
_global.fishFights = false;
_global.baitFlying = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
bootBites = function () {
_root.messages.gotoAndPlay(364);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = 2;
_global.weightClass = 0;
price = Math.round(Math.random() * 5);
_global.hookedFish = ["a Boot", weight, 18, price];
};
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
_global.fishOnHook = false;
_global.hookedFish = new Array();
_global.hookedFish = ["", 0, 0];
_global.weightClass = 1;
weight1 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 1.6) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2.5) + 1.6) + (_global.YourStr / 10);
}
return(int(((0.2 + (Math.random() * 1.7)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight2 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 2.5) + (_global.YourStr / 10);
} else {
biggy = ((Math.random() * 2) + 2.5) + (_global.YourStr / 10);
}
return(int(((1 + (Math.random() * 2.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight3 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 3.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 3.5) + 3.5) + ((_global.YourStr * 2) / 10);
}
return(int(((1.5 + (Math.random() * 3.5)) + (_global.goodLure * biggy)) * 10) / 10);
};
weight4 = function () {
if (Math.random() < 0.7) {
biggy = (Math.random() * 6.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 6.5) + 6.5) + ((_global.YourStr * 2) / 10);
}
return(int(((2 + (Math.random() * 4)) + (_global.goodLure * biggy)) * 10) / 10);
};
if (_global.fishDay1[7] == "Pike") {
_root.fishLake1.gotoAndStop(1);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[0] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[7] == "Zander") {
_root.fishLake1.gotoAndStop(2);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[1] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[7] == "Salmon") {
_root.fishLake1.gotoAndStop(3);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[2] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[7] == "Trout") {
_root.fishLake1.gotoAndStop(4);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[3] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[7] == "Catfish") {
_root.fishLake1.gotoAndStop(5);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[4] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[7] == "Whitefish") {
_root.fishLake1.gotoAndStop(6);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[5] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[7] == "Roach") {
_root.fishLake1.gotoAndStop(7);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[6] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay1[7] == "Crucian carp") {
_root.fishLake1.gotoAndStop(8);
fish1Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
trace("rand: " + fishCheck);
baitChange = _global.LureNumbers[7] + baitPlus;
trace("your skill: " + baitChange);
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri ykk\u00F6sess\u00E4");
}
if (_global.fishDay2[7] == "Pike") {
_root.fishLake2.gotoAndStop(1);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[0] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Pike", weight, 1, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[7] == "Zander") {
_root.fishLake2.gotoAndStop(2);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[1] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Zander", weight, 2, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[7] == "Salmon") {
_root.fishLake2.gotoAndStop(3);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[2] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Salmon", weight, 3, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[7] == "Trout") {
_root.fishLake2.gotoAndStop(4);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[3] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Trout", weight, 4, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[7] == "Catfish") {
_root.fishLake2.gotoAndStop(5);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[4] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Catfish", weight, 5, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[7] == "Whitefish") {
_root.fishLake2.gotoAndStop(6);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[5] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Whitefish", weight, 6, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[7] == "Roach") {
_root.fishLake2.gotoAndStop(7);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[6] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Roach", weight, 7, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishDay2[7] == "Crucian carp") {
_root.fishLake2.gotoAndStop(8);
fish2Bites = function () {
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[0] = _global.baitsOwned[0] - 1;
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
baitPlus = _global.wormPlusD;
_global.baitsOwned[1] = _global.baitsOwned[1] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[7] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Crucian carp", weight, 8, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kakkosessa");
}
if (_global.fishNight1[7] == "Anglerfish") {
_root.fishLake3.gotoAndStop(9);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[7] == "Eel") {
_root.fishLake3.gotoAndStop(10);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[7] == "Burbot") {
_root.fishLake3.gotoAndStop(11);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[7] == "Pufferfish") {
_root.fishLake3.gotoAndStop(12);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[7] == "Ray") {
_root.fishLake3.gotoAndStop(13);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[7] == "Flounder") {
_root.fishLake3.gotoAndStop(14);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[7] == "Octopus") {
_root.fishLake3.gotoAndStop(15);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight1[7] == "Squid") {
_root.fishLake3.gotoAndStop(16);
fish3Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri kolmosessa");
}
if (_global.fishNight2[7] == "Anglerfish") {
_root.fishLake4.gotoAndStop(9);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[8] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight);
} else {
price = 1;
}
_global.hookedFish = ["Anglerfish", weight, 9, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[7] == "Eel") {
_root.fishLake4.gotoAndStop(10);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[9] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Eel", weight, 10, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[7] == "Burbot") {
_root.fishLake4.gotoAndStop(11);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[10] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Burbot", weight, 11, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[7] == "Pufferfish") {
_root.fishLake4.gotoAndStop(12);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[11] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight1();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2.5);
} else {
price = 1;
}
_global.hookedFish = ["Pufferfish", weight, 12, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[7] == "Ray") {
_root.fishLake4.gotoAndStop(13);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[12] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Ray", weight, 13, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[7] == "Flounder") {
_root.fishLake4.gotoAndStop(14);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[13] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight2();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 2);
} else {
price = 1;
}
_global.hookedFish = ["Flounder", weight, 14, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[7] == "Octopus") {
_root.fishLake4.gotoAndStop(15);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[14] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Octopus", weight, 15, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else if (_global.fishNight2[7] == "Squid") {
_root.fishLake4.gotoAndStop(16);
fish4Bites = function () {
if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[2] = _global.baitsOwned[2] - 1;
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
baitPlus = _global.wormPlusN;
_global.baitsOwned[3] = _global.baitsOwned[3] - 1;
} else {
baitPlus = 0;
}
fishCheck = (Math.random() * 10) + _global.speedPenalty;
baitChange = _global.LureNumbers[15] + baitPlus;
if (fishCheck < baitChange) {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight3();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
if (!_global.beginner) {
price = Math.round(weight * 1.5);
} else {
price = 1;
}
_global.hookedFish = ["Squid", weight, 16, price];
} else {
_root.messages.gotoAndPlay(606);
}
};
} else {
trace("err\u00F6ri nelosessa");
}
Instance of Symbol 896 MovieClip [BaitOnAir] "bait" in Frame 1214
onClipEvent (load) {
function fight() {
_root.tooltip.text.gotoAndStop(5);
_global.fightSet = true;
if (_global.weightClass == 0) {
weightEffect = 0.2;
} else if (_global.weightClass == 1) {
weightEffect = 0.2;
} else if (_global.weightClass == 2) {
weightEffect = 0.3;
} else if (_global.weightClass == 3) {
weightEffect = 0.4;
} else {
trace("ei onnaa");
}
if ((_root.bait._x >= (_root.boatZoom._x - 60)) && (_root.bait._y >= (_root.boatZoom._y - 60))) {
} else {
if (Math.random() < weightEffect) {
trace("fights");
if (_global.sounds) {
fightSound.attachSound("fightS");
fightSound.start(0, 1);
}
_global.fishFights = true;
} else {
trace("fights not");
_global.fishFights = false;
}
precent = Math.random();
if (_global.beginner) {
if (precent <= 0.25) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.25) && (precent <= 0.5)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.5) && (precent <= 0.75)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.75) && (precent <= 1)) {
baitSplashing.gotoAndPlay(108);
}
} else if (precent <= 0.11) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.11) && (precent <= 0.22)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.22) && (precent <= 0.33)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.33) && (precent <= 0.44)) {
baitSplashing.gotoAndPlay(108);
} else if ((precent > 0.44) && (precent <= 0.55)) {
baitSplashing.gotoAndPlay(144);
} else if ((precent > 0.55) && (precent <= 0.66)) {
baitSplashing.gotoAndPlay(180);
} else if ((precent > 0.66) && (precent <= 0.77)) {
baitSplashing.gotoAndPlay(216);
} else if ((precent > 0.77) && (precent <= 0.88)) {
baitSplashing.gotoAndPlay(252);
} else if ((precent > 0.88) && (precent <= 1)) {
baitSplashing.gotoAndPlay(288);
} else {
trace("errori kiinni pit\u00E4misess\u00E4");
}
}
}
_global.reeledSome = false;
fightSound = new Sound(this);
_global.fightSet = false;
}
onClipEvent (enterFrame) {
_global.testx = _global.xBaitDes + _root.boatZoom._x;
_global.testy = _root.boatZoom._y - _global.yBaitDes;
if (_global.allowThrow == true) {
_root.boatZoom.pirateFishing.pole.gotoAndPlay(2);
_global.allowThrow = false;
}
if ((this._x >= (_root.boatZoom._x - 30)) && (this._y >= (_root.boatZoom._y - 30))) {
_root.tooltip.text.gotoAndStop(2);
if (_global.reeledIn == true) {
if (_global.fishOnHook == true) {
_global.fishFights = false;
_parent.tension.gotoAndStop(1);
trace(_global.hookedFish);
_global.tempFish[0] = _global.hookedFish[0];
_global.tempFish[1] = _global.hookedFish[1];
_global.tempFish[2] = _global.hookedFish[2];
_global.tempFish[3] = _global.hookedFish[3];
_root.attachMovie("fishGot", "fishGotOpen", 500);
_root.fishGotOpen._x = 75;
_root.fishGotOpen._y = 75;
if (_global.hookedFish[0] == _global.fishDay1[7]) {
_global.knownFishes[28] = 1;
}
if (_global.hookedFish[0] == _global.fishDay2[7]) {
_global.knownFishes[29] = 1;
}
if (_global.hookedFish[0] == _global.fishNight1[7]) {
_global.knownFishes[30] = 1;
}
if (_global.hookedFish[0] == _global.fishNight2[7]) {
_global.knownFishes[31] = 1;
}
if (_global.yourFish1[0] != 1) {
_global.yourFish1[0] = 1;
_global.yourFish1[1] = _global.hookedFish[0];
_global.yourFish1[2] = _global.hookedFish[1];
_global.yourFish1[3] = _global.hookedFish[2];
_global.yourFish1[4] = _global.hookedFish[3];
} else if (_global.yourFish2[0] != 1) {
_global.yourFish2[0] = 1;
_global.yourFish2[1] = _global.hookedFish[0];
_global.yourFish2[2] = _global.hookedFish[1];
_global.yourFish2[3] = _global.hookedFish[2];
_global.yourFish2[4] = _global.hookedFish[3];
} else if (_global.yourFish3[0] != 1) {
_global.yourFish3[0] = 1;
_global.yourFish3[1] = _global.hookedFish[0];
_global.yourFish3[2] = _global.hookedFish[1];
_global.yourFish3[3] = _global.hookedFish[2];
_global.yourFish3[4] = _global.hookedFish[3];
} else if (_global.yourFish4[0] != 1) {
_global.yourFish4[0] = 1;
_global.yourFish4[1] = _global.hookedFish[0];
_global.yourFish4[2] = _global.hookedFish[1];
_global.yourFish4[3] = _global.hookedFish[2];
_global.yourFish4[4] = _global.hookedFish[3];
} else if (_global.yourFish5[0] != 1) {
_global.yourFish5[0] = 1;
_global.yourFish5[1] = _global.hookedFish[0];
_global.yourFish5[2] = _global.hookedFish[1];
_global.yourFish5[3] = _global.hookedFish[2];
_global.yourFish5[4] = _global.hookedFish[3];
} else if (_global.yourFish6[0] != 1) {
_global.yourFish6[0] = 1;
_global.yourFish6[1] = _global.hookedFish[0];
_global.yourFish6[2] = _global.hookedFish[1];
_global.yourFish6[3] = _global.hookedFish[2];
_global.yourFish6[4] = _global.hookedFish[3];
} else if (_global.yourFish7[0] != 1) {
_global.yourFish7[0] = 1;
_global.yourFish7[1] = _global.hookedFish[0];
_global.yourFish7[2] = _global.hookedFish[1];
_global.yourFish7[3] = _global.hookedFish[2];
_global.yourFish7[4] = _global.hookedFish[3];
} else {
_global.yourFish8[0] = 1;
_global.yourFish8[1] = _global.hookedFish[0];
_global.yourFish8[2] = _global.hookedFish[1];
_global.yourFish8[3] = _global.hookedFish[2];
_global.yourFish8[4] = _global.hookedFish[3];
}
_global.fishOnHook = false;
if (_global.expAmount < 468) {
_global.expAmount = _global.expAmount + _global.hookedFish[3];
newExp = Math.floor((_global.expAmount - (_global.expPointsAll * 26)) / 26);
if (newExp > 0) {
_root.messages.gotoAndStop(243);
_global.expPointsAll = _global.expPointsAll + newExp;
if (_global.expPointsAll > 18) {
newExp = 1;
}
_global.expPoints = _global.expPoints + newExp;
}
}
_global.hookedFish = ["", 0, 0];
}
clearInterval(fightInterval);
_global.fightSet = false;
_global.fishOnHook = false;
_global.reeledSome = false;
_root.boatZoom.pirateFishing.pole._visible = 0;
_root.lineThing.createEmptyMovieClip("xiitti", 1);
this.gotoAndStop(1);
this._x = _root.boatZoom._x;
this._y = _root.boatZoom._y;
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.speedPenalty = 0;
_root.reel.reelButton.enabled = false;
if (_global.buttonsEnabler == true) {
_root.mcCast.castButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_global.buttonsEnabler = false;
}
_root.bait.gotoAndStop(1);
} else {
_root.boatZoom.pirateFishing.pole._visible = 1;
}
} else {
if (!_global.fishOnHook) {
if (!_global.reeledSome) {
_root.tooltip.text.gotoAndStop(3);
} else {
_root.tooltip.text.gotoAndStop(4);
}
}
if (_global.reeledIn == true) {
_root.reel.reelButton.enabled = true;
}
_root.mcCast.castButton.enabled = false;
Length = 85;
deg = -1 * _root.boatZoom.pirateFishing._rotation;
if (deg < 0) {
deg = deg + 360;
}
deg = deg * (Math.PI/180);
polePointX = (Length * Math.cos(deg)) + _root.boatZoom._x;
polePointY = _root.boatZoom._y - (Length * Math.sin(deg));
_root.lineThing.createEmptyMovieClip("line", 1);
with (_root.lineThing.line) {
lineStyle(1, 3394764, 100);
moveTo(_root.bait._x, _root.bait._y);
lineTo(polePointX, polePointY);
}
if (_global.reeledIn == true) {
x = this._x - _root.boatZoom._x;
y = this._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = direction + 360;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
if (direction < 0) {
deg = direction * -1;
} else {
deg = 360 - direction;
}
rad = (Math.PI/180) * deg;
_global.BaitRatioX = Math.cos(rad);
_global.BaitRatioY = Math.sin(rad);
if (_global.fishOnHook == false) {
this._x = this._x - (_global.BaitRatioX * _global.baitAcc);
this._y = this._y + (_global.BaitRatioY * _global.baitAcc);
} else {
if (!this.hitTest(_root.fishHitTest)) {
x = this._x - _root.fishDes1._x;
y = this._y - _root.fishDes1._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
} else {
if (this.hitTest(_root.fishDes2)) {
if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 2);
}
}
x = this._x - _root.fishDes2._x;
y = this._y - _root.fishDes2._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
}
strEffect = (10 - _global.YourStr) / 10;
speedx = _global.FBaitRatioX * ((_global.weightClass / 2) + strEffect);
speedy = _global.FBaitRatioY * ((_global.weightClass / 2) + strEffect);
this._x = this._x - (((_global.BaitRatioX * _global.baitAcc) + speedx) / 2);
this._y = this._y + (((_global.BaitRatioY * _global.baitAcc) + speedy) / 2);
}
if (_global.fishOnHook == true) {
if (_global.fightSet == false) {
trace("interval set " + _global.fightSet);
fightInterval = setInterval(fight, 2000);
_global.fightSet = true;
}
if (_global.fishFights == true) {
strEffect = (10 - _global.YourStr) / 10;
this._x = this._x - ((_global.FBaitRatioX * (_global.weightClass + strEffect)) / 2);
this._y = this._y + ((_global.FBaitRatioY * (_global.weightClass + strEffect)) / 2);
}
}
}
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
}
}
Instance of Symbol 1784 MovieClip "boatZoom" in Frame 1214
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.castingNow = true;
} else {
_global.castingNow = false;
}
}
Instance of Symbol 428 MovieClip in Frame 1214
onClipEvent (enterFrame) {
if (_global.baitFlying == true) {
_root.bait.gotoAndStop(1);
_root.bait._x = _root.bait._x + (_global.ratioX * 13);
_root.bait._y = _root.bait._y - (_global.ratioY * 13);
if (_global.ratioY <= 0.5) {
if (_root.bait._x <= _global.testx) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else if (_global.ratioY > 0.5) {
if (_root.bait._y <= _global.testy) {
_root.bait.gotoAndStop(2);
_root.bait._x = _global.testx;
_root.bait._y = _global.testy;
_global.reeledIn = true;
if (_root.land1.hitTest(_root.bait._x, _root.bait._y, true) || (_root.land2.hitTest(_root.bait._x, _root.bait._y, true))) {
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_global.sounds) {
baitSpalshSound = new Sound(this);
baitSpalshSound.attachSound("baitSpalsh");
baitSpalshSound.start(0, 1);
}
_global.baitFlying = false;
}
} else {
trace("error heitto hommassa");
}
}
}
Instance of Symbol 1806 MovieClip "land1" in Frame 1214
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Instance of Symbol 1808 MovieClip "land2" in Frame 1214
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Frame 1215
function calcSpeed() {
if (_global.reelHelper == false) {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
rSpeedText = "stopped";
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (reelingSpeed <= 0.2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "very slow";
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0.2) && (reelingSpeed <= 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
rSpeedText = "slow";
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 1) && (reelingSpeed <= 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
rSpeedText = "medium";
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
rSpeedText = "fast";
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
} else {
_global.rSpeed = _global.rAmount - _global.oldAmount;
_global.oldAmount = _global.rAmount;
reelingSpeed = _global.rSpeed;
if (_global.reeling == true) {
if (reelingSpeed == 0) {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
_global.speedPenalty = 0;
_global.baitAcc = 0;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 1)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 2;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingVSSound.start(0, 1);
}
_global.baitAcc = 0.4 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 2)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 1;
} else {
_global.speedPenalty = 0;
}
if (_global.sounds) {
reelingSSound.start(0, 1);
}
_global.baitAcc = 1.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 3)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 0;
} else {
_global.speedPenalty = 1;
}
if (_global.sounds) {
reelingMSound.start(0, 1);
}
_global.baitAcc = 2.5 * _global.reelQ;
} else if ((reelingSpeed > 0) && (_root.reelHelper._currentframe == 4)) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(3);
} else {
_root.bait.gotoAndStop(4);
}
if (_global.baitMS == 1) {
_global.speedPenalty = 3;
} else {
_global.speedPenalty = 3;
}
if (_global.sounds) {
reelingFSound.start(0, 1);
}
_global.baitAcc = 5 * _global.reelQ;
}
} else {
if (_global.reeledIn == true) {
if (_global.fishOnHook == false) {
_root.bait.gotoAndStop(2);
} else {
_root.bait.gotoAndStop(4);
}
}
rSpeedText = "";
_global.baitAcc = 0;
}
}
}
_global.reeling = false;
reel._rotation = 0;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.oldAngle = 0;
rSpeedText = "";
reelingVSSound = new Sound(this);
reelingVSSound.attachSound("reelingVS");
reelingSSound = new Sound(this);
reelingSSound.attachSound("reelingS");
reelingMSound = new Sound(this);
reelingMSound.attachSound("reelingM");
reelingFSound = new Sound(this);
reelingFSound.attachSound("reelingF");
speedInterval = setInterval(calcSpeed, 200);
boatZoom.pirateFishing.pole._visible = 0;
boatZoom.pirateFishing._rotation = 225;
_root.bait.gotoAndStop(2);
_global.castingNow = false;
_global.throwRange = 0;
_root.reel.reelButton.enabled = false;
_root.mcCast.castButton.enabled = true;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_global.baitAcc = 0;
_global.allowThrow = false;
_global.reeledIn = true;
_global.ratioX = 0;
_global.ratioY = 0;
_global.fishFights = false;
_global.baitFlying = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
_global.fishOnHook = false;
_global.hookedFish = new Array();
_global.hookedFish = ["", 0, 0];
_global.weightClass = 1;
weight4 = function () {
if (Math.random() < 0.3) {
biggy = (Math.random() * 6.5) + ((_global.YourStr * 2) / 10);
} else {
biggy = ((Math.random() * 6.5) + 6.5) + ((_global.YourStr * 2) / 10);
}
return(int(((2 + (Math.random() * 4)) + biggy) * 10) / 10);
};
_root.fishLake1.gotoAndStop(17);
fish1Bites = function () {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
price = 1;
_global.hookedFish = ["Cod", weight, 17, price];
};
_root.fishLake2.gotoAndStop(17);
fish2Bites = function () {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
price = 1;
_global.hookedFish = ["Cod", weight, 17, price];
};
_root.fishLake3.gotoAndStop(17);
fish3Bites = function () {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
price = 1;
_global.hookedFish = ["Cod", weight, 17, price];
};
_root.fishLake4.gotoAndStop(17);
fish4Bites = function () {
_root.messages.gotoAndPlay(727);
_root.strike.gotoAndPlay(2);
_global.fishOnHook = true;
weight = weight4();
if (weight <= 2) {
_global.weightClass = 1;
} else if ((weight > 2) && (weight <= 6)) {
_global.weightClass = 1;
} else if ((weight > 6) && (weight <= 12)) {
_global.weightClass = 2;
} else {
_global.weightClass = 3;
}
price = 1;
_global.hookedFish = ["Cod", weight, 17, price];
};
Instance of Symbol 896 MovieClip [BaitOnAir] "bait" in Frame 1215
onClipEvent (load) {
function fight() {
_root.tooltip.text.gotoAndStop(5);
_global.fightSet = true;
if (_global.weightClass == 0) {
weightEffect = 0.2;
} else if (_global.weightClass == 1) {
weightEffect = 0.2;
} else if (_global.weightClass == 2) {
weightEffect = 0.3;
} else if (_global.weightClass == 3) {
weightEffect = 0.4;
} else {
trace("ei onnaa");
}
if ((_root.bait._x >= (_root.boatZoom._x - 60)) && (_root.bait._y >= (_root.boatZoom._y - 60))) {
} else {
if (Math.random() < weightEffect) {
trace("fights");
if (_global.sounds) {
fightSound.attachSound("fightS");
fightSound.start(0, 1);
}
_global.fishFights = true;
} else {
trace("fights not");
_global.fishFights = false;
}
precent = Math.random();
if (precent <= 0.11) {
baitSplashing.gotoAndPlay(2);
} else if ((precent > 0.11) && (precent <= 0.22)) {
baitSplashing.gotoAndPlay(36);
} else if ((precent > 0.22) && (precent <= 0.33)) {
baitSplashing.gotoAndPlay(72);
} else if ((precent > 0.33) && (precent <= 0.44)) {
baitSplashing.gotoAndPlay(108);
} else if ((precent > 0.44) && (precent <= 0.55)) {
baitSplashing.gotoAndPlay(144);
} else if ((precent > 0.55) && (precent <= 0.66)) {
baitSplashing.gotoAndPlay(180);
} else if ((precent > 0.66) && (precent <= 0.77)) {
baitSplashing.gotoAndPlay(216);
} else if ((precent > 0.77) && (precent <= 0.88)) {
baitSplashing.gotoAndPlay(252);
} else if ((precent > 0.88) && (precent <= 1)) {
baitSplashing.gotoAndPlay(288);
} else {
trace("errori kiinni pit\u00E4misess\u00E4");
}
}
}
_global.reeledSome = false;
fightSound = new Sound(this);
_global.fightSet = false;
}
onClipEvent (enterFrame) {
_global.testx = _global.xBaitDes + _root.boatZoom._x;
_global.testy = _root.boatZoom._y - _global.yBaitDes;
if (_global.allowThrow == true) {
_root.boatZoom.pirateFishing.pole.gotoAndPlay(2);
_global.allowThrow = false;
}
if ((this._x >= (_root.boatZoom._x - 30)) && (this._y >= (_root.boatZoom._y - 30))) {
_root.tooltip.text.gotoAndStop(2);
if (_global.reeledIn == true) {
if (_global.fishOnHook == true) {
_global.fishFights = false;
_parent.tension.gotoAndStop(1);
trace(_global.hookedFish);
_global.tempFish[0] = _global.hookedFish[0];
_global.tempFish[1] = _global.hookedFish[1];
_global.tempFish[2] = _global.hookedFish[2];
_global.tempFish[3] = _global.hookedFish[3];
_root.attachMovie("fishGot", "fishGotOpen", 500);
_root.fishGotOpen._x = 75;
_root.fishGotOpen._y = 75;
_global.cods++;
_global.fishOnHook = false;
_global.hookedFish = ["", 0, 0];
}
clearInterval(fightInterval);
_global.fightSet = false;
_global.fishOnHook = false;
_global.reeledSome = false;
_root.boatZoom.pirateFishing.pole._visible = 0;
_root.lineThing.createEmptyMovieClip("xiitti", 1);
this.gotoAndStop(1);
this._x = _root.boatZoom._x;
this._y = _root.boatZoom._y;
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
_global.speedPenalty = 0;
_root.reel.reelButton.enabled = false;
if (_global.buttonsEnabler == true) {
_root.mcCast.castButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_global.buttonsEnabler = false;
}
_root.bait.gotoAndStop(1);
} else {
_root.boatZoom.pirateFishing.pole._visible = 1;
}
} else {
if (!_global.fishOnHook) {
if (!_global.reeledSome) {
_root.tooltip.text.gotoAndStop(3);
} else {
_root.tooltip.text.gotoAndStop(4);
}
}
if (_global.reeledIn == true) {
_root.reel.reelButton.enabled = true;
}
_root.mcCast.castButton.enabled = false;
Length = 85;
deg = -1 * _root.boatZoom.pirateFishing._rotation;
if (deg < 0) {
deg = deg + 360;
}
deg = deg * (Math.PI/180);
polePointX = (Length * Math.cos(deg)) + _root.boatZoom._x;
polePointY = _root.boatZoom._y - (Length * Math.sin(deg));
_root.lineThing.createEmptyMovieClip("line", 1);
with (_root.lineThing.line) {
lineStyle(1, 3394764, 100);
moveTo(_root.bait._x, _root.bait._y);
lineTo(polePointX, polePointY);
}
if (_global.reeledIn == true) {
x = this._x - _root.boatZoom._x;
y = this._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = direction + 360;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
if (direction < 0) {
deg = direction * -1;
} else {
deg = 360 - direction;
}
rad = (Math.PI/180) * deg;
_global.BaitRatioX = Math.cos(rad);
_global.BaitRatioY = Math.sin(rad);
if (_global.fishOnHook == false) {
this._x = this._x - (_global.BaitRatioX * _global.baitAcc);
this._y = this._y + (_global.BaitRatioY * _global.baitAcc);
} else {
if (!this.hitTest(_root.fishHitTest)) {
x = this._x - _root.fishDes1._x;
y = this._y - _root.fishDes1._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
} else {
if (this.hitTest(_root.fishDes2)) {
if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 2);
}
}
x = this._x - _root.fishDes2._x;
y = this._y - _root.fishDes2._y;
angleRad = Math.atan2(y, x);
dir = (angleRad / Math.PI) * 180;
if (dir < 0) {
deg = dir * -1;
} else {
deg = 360 - dir;
}
rad = (Math.PI/180) * deg;
_global.FBaitRatioX = Math.cos(rad);
_global.FBaitRatioY = Math.sin(rad);
}
strEffect = (10 - _global.YourStr) / 10;
speedx = _global.FBaitRatioX * ((_global.weightClass / 2) + strEffect);
speedy = _global.FBaitRatioY * ((_global.weightClass / 2) + strEffect);
this._x = this._x - (((_global.BaitRatioX * _global.baitAcc) + speedx) / 2);
this._y = this._y + (((_global.BaitRatioY * _global.baitAcc) + speedy) / 2);
}
if (_global.fishOnHook == true) {
if (_global.fightSet == false) {
trace("interval set " + _global.fightSet);
fightInterval = setInterval(fight, 2000);
_global.fightSet = true;
}
if (_global.fishFights == true) {
strEffect = (10 - _global.YourStr) / 10;
this._x = this._x - ((_global.FBaitRatioX * (_global.weightClass + strEffect)) / 2);
this._y = this._y + ((_global.FBaitRatioY * (_global.weightClass + strEffect)) / 2);
}
}
}
this._rotation = _root.boatZoom.pirateFishing._rotation + 180;
}
}
Instance of Symbol 1831 MovieClip "boatZoom" in Frame 1215
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.castingNow = true;
} else {
_global.castingNow = false;
}
}
Instance of Symbol 1833 MovieClip "land2" in Frame 1215
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Frame 1216
_root.cannonCrosshair._x = -500;
_root.cannonCrosshair._y = -500;
_global.dontPlay = false;
_global.crossPlacex = 400;
_global.crossPlacey = 400;
_global.shooting = false;
_global.destiX = 0;
_global.destiY = 0;
cods = _global.cods;
harpo = _global.harpoons;
_global.throwncods = 0;
_global.protected = false;
_global.ableHurt = false;
_root.cannonMC.cannonButton.enabled = false;
_root.anchorButton.enabled = false;
_global.buttonsUsable = false;
_global.minion1Shot = false;
_global.minion3Shot = false;
_global.prepareToShoot = false;
_global.minionsKilled = 0;
_global.intervall4Can = true;
_global.intervall3Can = true;
_global.intervall2Can = true;
_global.intervall1Can = true;
_global.codsplashed = false;
gameover = false;
_global.invunerable = false;
if ((_global.timeCheck >= 541) && (_global.timeCheck <= 1259)) {
_root.nightMc.gotoAndPlay(79);
}
if ((_global.timeCheck >= 1261) || (_global.timeCheck <= 539)) {
_root.nightMc.gotoAndPlay(39);
}
Instance of Symbol 1862 MovieClip "bubble1" in Frame 1216
onClipEvent (load) {
plaY = false;
}
onClipEvent (enterFrame) {
if ((_global.throwncods == 1) && (!plaY)) {
plaY = true;
this.gotoAndPlay(2);
}
}
Instance of Symbol 1863 MovieClip "bubble2" in Frame 1216
onClipEvent (load) {
plaY = false;
}
onClipEvent (enterFrame) {
if ((_global.throwncods == 2) && (!plaY)) {
plaY = true;
this.gotoAndPlay(2);
}
}
Instance of Symbol 1864 MovieClip "bubble3" in Frame 1216
onClipEvent (load) {
plaY = false;
}
onClipEvent (enterFrame) {
if ((_global.throwncods == 3) && (!plaY)) {
plaY = true;
this.gotoAndPlay(2);
}
}
Instance of Symbol 2055 MovieClip "monster" in Frame 1216
onClipEvent (load) {
this._x = -600;
this._y = -600;
}
Instance of Symbol 2212 MovieClip "harpoon" in Frame 1216
onClipEvent (load) {
_x = -500;
_y = -500;
}
onClipEvent (enterFrame) {
if (_global.shooting == true) {
_root.harpoon._x = _root.harpoon._x + (_global.ratioX * 15);
_root.harpoon._y = _root.harpoon._y - (_global.ratioY * 15);
if (_global.ratioY <= 0.5) {
if (_root.harpoon._x <= _global.destiX) {
_root.harpoon._x = _global.destiX;
_root.harpoon._y = _global.destiY;
if (_root.land2.hitTest(_root.harpoon._x, _root.harpoon._y, true)) {
_root.harpoon.gotoAndPlay(24);
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_root.monster.hitTest(_root.harpoon._x, _root.harpoon._y, true) && (!_global.ableHurt)) {
_root.harpoon.gotoAndPlay(45);
if (_global.sounds) {
klankSound = new Sound(this);
klankSound.attachSound("klank");
klankSound.start(0, 1);
}
} else if (_root.monster.hitTest(_root.harpoon._x, _root.harpoon._y, true) && (_global.ableHurt)) {
_root.harpoon.gotoAndPlay(2);
if (_root.monsterHealth._currentframe == 84) {
_root.monster.gotoAndPlay("die");
} else {
_root.monster.gotoAndPlay("close");
}
_root.monster.laugh.gotoAndStop(165);
if (_global.sounds) {
monsterHitSound = new Sound(this);
monsterHitSound.attachSound("monsterHit");
monsterHitSound.start(0, 1);
}
_root.monsterHealth.gotoAndStop(_root.monsterHealth._currentframe + 1);
} else if (_root.minion1.hitTest(_root.harpoon._x, _root.harpoon._y, true)) {
_root.harpoon.gotoAndPlay(54);
_global.minionsKilled++;
_global.minion1dead = true;
if (_global.sounds) {
monsterHitSound = new Sound(this);
monsterHitSound.attachSound("minionHit");
monsterHitSound.start(0, 1);
}
if (!_global.minion1dying) {
_root.minion1.gotoAndPlay("die");
}
} else if (_root.minion2.hitTest(_root.harpoon._x, _root.harpoon._y, true)) {
_root.harpoon.gotoAndPlay(54);
_global.minionsKilled++;
_global.minion2dead = true;
if (_global.sounds) {
monsterHitSound = new Sound(this);
monsterHitSound.attachSound("minionHit");
monsterHitSound.start(0, 1);
}
if (!_global.minion2dying) {
_root.minion2.gotoAndPlay("die");
}
} else if (_root.minion3.hitTest(_root.harpoon._x, _root.harpoon._y, true)) {
_root.harpoon.gotoAndPlay(54);
_global.minionsKilled++;
_global.minion3dead = true;
if (_global.sounds) {
monsterHitSound = new Sound(this);
monsterHitSound.attachSound("minionHit");
monsterHitSound.start(0, 1);
}
if (!_global.minion3dying) {
_root.minion3.gotoAndPlay("die");
}
} else if (_root.minion4.hitTest(_root.harpoon._x, _root.harpoon._y, true)) {
_root.harpoon.gotoAndPlay(54);
_global.minionsKilled++;
_global.minion4dead = true;
if (_global.sounds) {
monsterHitSound = new Sound(this);
monsterHitSound.attachSound("minionHit");
monsterHitSound.start(0, 1);
}
if (!_global.minion4dying) {
_root.minion4.gotoAndPlay("die");
}
} else {
_root.harpoon.gotoAndPlay(9);
if (_global.sounds) {
spalshSound = new Sound(this);
spalshSound.attachSound("plumps");
spalshSound.start(0, 1);
}
}
_global.shooting = false;
}
} else if (_global.ratioY > 0.5) {
if (_root.harpoon._y <= _global.destiY) {
_root.harpoon._x = _global.destiX;
_root.harpoon._y = _global.destiY;
if (_root.land2.hitTest(_root.harpoon._x, _root.harpoon._y, true)) {
_root.harpoon.gotoAndPlay(24);
if (_global.sounds) {
landHitSound = new Sound(this);
landHitSound.attachSound("landHit");
landHitSound.start(0, 1);
}
} else if (_root.monster.hitTest(_root.harpoon._x, _root.harpoon._y, true) && (!_global.ableHurt)) {
_root.harpoon.gotoAndPlay(45);
if (_global.sounds) {
klankSound = new Sound(this);
klankSound.attachSound("klank");
klankSound.start(0, 1);
}
} else if (_root.monster.hitTest(_root.harpoon._x, _root.harpoon._y, true) && (_global.ableHurt)) {
_root.harpoon.gotoAndPlay(2);
if (_root.monsterHealth._currentframe == 84) {
_root.monster.gotoAndPlay("die");
} else {
_root.monster.gotoAndPlay("close");
}
_root.monster.laugh.gotoAndStop(165);
if (_global.sounds) {
monsterHitSound = new Sound(this);
monsterHitSound.attachSound("monsterHit");
monsterHitSound.start(0, 1);
}
_root.monsterHealth.gotoAndStop(_root.monsterHealth._currentframe + 1);
} else if (_root.minion1.hitTest(_root.harpoon._x, _root.harpoon._y, true)) {
_root.harpoon.gotoAndPlay(54);
_global.minionsKilled++;
_global.minion1dead = true;
if (_global.sounds) {
monsterHitSound = new Sound(this);
monsterHitSound.attachSound("minionHit");
monsterHitSound.start(0, 1);
}
if (!_global.minion1dying) {
_root.minion1.gotoAndPlay("die");
}
} else if (_root.minion2.hitTest(_root.harpoon._x, _root.harpoon._y, true)) {
_root.harpoon.gotoAndPlay(54);
_global.minionsKilled++;
_global.minion2dead = true;
if (_global.sounds) {
monsterHitSound = new Sound(this);
monsterHitSound.attachSound("minionHit");
monsterHitSound.start(0, 1);
}
if (!_global.minion2dying) {
_root.minion2.gotoAndPlay("die");
}
} else if (_root.minion3.hitTest(_root.harpoon._x, _root.harpoon._y, true)) {
_root.harpoon.gotoAndPlay(54);
_global.minionsKilled++;
_global.minion3dead = true;
if (_global.sounds) {
monsterHitSound = new Sound(this);
monsterHitSound.attachSound("minionHit");
monsterHitSound.start(0, 1);
}
if (!_global.minion3dying) {
_root.minion3.gotoAndPlay("die");
}
} else if (_root.minion4.hitTest(_root.harpoon._x, _root.harpoon._y, true)) {
_root.harpoon.gotoAndPlay(54);
_global.minionsKilled++;
_global.minion4dead = true;
if (_global.sounds) {
monsterHitSound = new Sound(this);
monsterHitSound.attachSound("minionHit");
monsterHitSound.start(0, 1);
}
if (!_global.minion4dying) {
_root.minion4.gotoAndPlay("die");
}
} else {
_root.harpoon.gotoAndPlay(9);
if (_global.sounds) {
spalshSound = new Sound(this);
spalshSound.attachSound("plumps");
spalshSound.start(0, 1);
}
}
_global.shooting = false;
}
} else {
trace("error heitto hommassa");
}
}
}
Instance of Symbol 2287 MovieClip "duck" in Frame 1216
onClipEvent (load) {
this._x = -300;
this._y = -300;
}
Instance of Symbol 2352 MovieClip "boatZoom" in Frame 1216
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.castingNow = true;
} else {
_global.castingNow = false;
}
}
Instance of Symbol 2369 MovieClip "minion1ammo" in Frame 1216
onClipEvent (load) {
this._x = -200;
this._y = -200;
disXNow = 0;
disYNow = 0;
}
onClipEvent (enterFrame) {
if (_global.minion1Shot == true) {
_root.minion1ammo._x = _root.minion1ammo._x + (_global.ammo1ratioX * 5);
_root.minion1ammo._y = _root.minion1ammo._y - (_global.ammo1ratioY * 5);
disXNow = disXNow + (Math.abs(_global.ammo1ratioX) * 5);
disYNow = disYNow + (Math.abs(_global.ammo1ratioY) * 5);
if (Math.abs(_global.ammo1ratioX) >= Math.abs(_global.ammo1ratioY)) {
if (_global.ammo1lengthX <= disXNow) {
if (_root.boatZoom.hitTest(_root.minion1ammo._x, _root.minion1ammo._y, true)) {
if (!_global.protected) {
if (_global.sounds) {
splatSound = new Sound(this);
splatSound.attachSound("splat");
splatSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("hit");
_root.yourHealth.gotoAndStop(_root.yourHealth._currentframe + 1);
} else {
if (_global.sounds) {
bounceSound = new Sound(this);
bounceSound.attachSound("bounce");
bounceSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("miss");
}
_root.minion1ammo._x = -200;
_root.minion1ammo._y = -200;
disXNow = 0;
disYNow = 0;
_global.minion1Shot = false;
} else {
if (_global.sounds) {
missSound = new Sound(this);
missSound.attachSound("miss");
missSound.start(0, 1);
}
_root.minion1ammo.gotoAndStop(2);
disXNow = 0;
disYNow = 0;
}
}
} else if (_global.ammo1lengthY <= disYNow) {
if (_root.boatZoom.hitTest(_root.minion1ammo._x, _root.minion1ammo._y, true)) {
if (!_global.protected) {
if (_global.sounds) {
splatSound = new Sound(this);
splatSound.attachSound("splat");
splatSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("hit");
_root.yourHealth.gotoAndStop(_root.yourHealth._currentframe + 1);
} else {
if (_global.sounds) {
bounceSound = new Sound(this);
bounceSound.attachSound("bounce");
bounceSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("miss");
}
_root.minion1ammo._x = -200;
_root.minion1ammo._y = -200;
disYNow = 0;
disXNow = 0;
_global.minion1Shot = false;
} else {
if (_global.sounds) {
missSound = new Sound(this);
missSound.attachSound("miss");
missSound.start(0, 1);
}
_root.minion1ammo.gotoAndStop(2);
disYNow = 0;
disXNow = 0;
}
}
}
}
Instance of Symbol 2371 MovieClip "bossAmmo" in Frame 1216
onClipEvent (load) {
this._x = -200;
this._y = -200;
disXNow = 0;
disYNow = 0;
}
onClipEvent (enterFrame) {
if (_global.bossShot == true) {
_root.bossAmmo._x = _root.bossAmmo._x + (_global.bossratioX * 5);
_root.bossAmmo._y = _root.bossAmmo._y - (_global.bossratioY * 5);
disXNow = disXNow + (Math.abs(_global.bossratioX) * 5);
disYNow = disYNow + (Math.abs(_global.bossratioY) * 5);
if (Math.abs(_global.bossratioX) >= Math.abs(_global.bossratioY)) {
if (_global.bosslengthX <= disXNow) {
if (!_global.protected) {
if (_global.sounds) {
splatSound = new Sound(this);
splatSound.attachSound("splat");
splatSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("hit");
_root.yourHealth.gotoAndStop(_root.yourHealth._currentframe + 3);
_root.bossAmmo._x = -200;
_root.bossAmmo._y = -200;
disXNow = 0;
disYNow = 0;
_global.bossShot = false;
} else {
if (_global.sounds) {
bounceSound = new Sound(this);
bounceSound.attachSound("bounce");
bounceSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("miss");
_root.bossAmmo._x = -200;
_root.bossAmmo._y = -200;
disXNow = 0;
disYNow = 0;
_global.bossShot = false;
}
}
} else if (_global.bosslengthY <= disYNow) {
if (!_global.protected) {
if (_global.sounds) {
splatSound = new Sound(this);
splatSound.attachSound("splat");
splatSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("hit");
_root.yourHealth.gotoAndStop(_root.yourHealth._currentframe + 3);
_root.bossAmmo._x = -200;
_root.bossAmmo._y = -200;
disXNow = 0;
disYNow = 0;
_global.bossShot = false;
} else {
if (_global.sounds) {
bounceSound = new Sound(this);
bounceSound.attachSound("bounce");
bounceSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("miss");
_root.bossAmmo._x = -200;
_root.bossAmmo._y = -200;
disYNow = 0;
disXNow = 0;
_global.bossShot = false;
}
}
}
}
Instance of Symbol 2376 MovieClip "minion3ammo" in Frame 1216
onClipEvent (load) {
this._x = -200;
this._y = -200;
disXNow = 0;
disYNow = 0;
}
onClipEvent (enterFrame) {
if (_global.minion3Shot == true) {
_root.minion3ammo._x = _root.minion3ammo._x + (_global.ammo2ratioX * 5);
_root.minion3ammo._y = _root.minion3ammo._y - (_global.ammo2ratioY * 5);
disXNow = disXNow + (Math.abs(_global.ammo2ratioX) * 5);
disYNow = disYNow + (Math.abs(_global.ammo2ratioY) * 5);
if (Math.abs(_global.ammo2ratioX) >= Math.abs(_global.ammo2ratioY)) {
if (_global.ammo2lengthX <= disXNow) {
if (_root.boatZoom.hitTest(_root.minion3ammo._x, _root.minion3ammo._y, true)) {
if (!_global.protected) {
if (_global.sounds) {
splatSound = new Sound(this);
splatSound.attachSound("splat");
splatSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("hit");
_root.yourHealth.gotoAndStop(_root.yourHealth._currentframe + 1);
} else {
if (_global.sounds) {
bounceSound = new Sound(this);
bounceSound.attachSound("bounce");
bounceSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("miss");
}
_root.minion3ammo._x = -200;
_root.minion3ammo._y = -200;
disXNow = 0;
disYNow = 0;
_global.minion3Shot = false;
} else {
if (_global.sounds) {
missSound = new Sound(this);
missSound.attachSound("miss");
missSound.start(0, 1);
}
_root.minion3ammo.gotoAndStop(2);
disXNow = 0;
disYNow = 0;
}
}
} else if (_global.ammo2lengthY <= disYNow) {
if (_root.boatZoom.hitTest(_root.minion3ammo._x, _root.minion3ammo._y, true)) {
if (!_global.protected) {
if (_global.sounds) {
splatSound = new Sound(this);
splatSound.attachSound("splat");
splatSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("hit");
_root.yourHealth.gotoAndStop(_root.yourHealth._currentframe + 1);
} else {
if (_global.sounds) {
bounceSound = new Sound(this);
bounceSound.attachSound("bounce");
bounceSound.start(0, 1);
}
_root.boatZoom.hit.gotoAndPlay("miss");
}
_root.minion3ammo._x = -200;
_root.minion3ammo._y = -200;
disYNow = 0;
disXNow = 0;
_global.minion3Shot = false;
} else {
if (_global.sounds) {
missSound = new Sound(this);
missSound.attachSound("miss");
missSound.start(0, 1);
}
_root.minion3ammo.gotoAndStop(2);
disYNow = 0;
disXNow = 0;
}
}
}
}
Instance of Symbol 2378 MovieClip "land2" in Frame 1216
onClipEvent (enterFrame) {
if (_global.reeledIn == true) {
if (this.hitTest(_root.bait._x, _root.bait._y, true)) {
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
_root.messages.gotoAndPlay(2);
}
}
}
Instance of Symbol 917 MovieClip [cannonxhair] "cannonCrosshair" in Frame 1216
onClipEvent (enterFrame) {
if (_global.aimingNow && (!_global.umbrella)) {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
disX = this._x - _root._xmouse;
disY = this._y - _root._ymouse;
RatioX = (Math.cos(myRadians) * disX) / disX;
RatioY = (Math.sin(myRadians) * disY) / disY;
dist = Math.abs(disX / Math.cos(myRadians));
speed = dist / 20;
if (speed >= 8) {
speed = 8;
}
if (speed <= 4) {
if (dist >= 10) {
speed = 4;
} else if ((dist < 10) && (dist > 5)) {
speed = 1;
} else {
speed = 0;
}
}
yMove = RatioY * speed;
xMove = RatioX * speed;
if ((!_root.areaX.hitTest(this._x, this._y, true)) && (!_root.areaX.hitTest(_root._xmouse, _root._ymouse, true))) {
xMove = xMove / 4;
yMove = yMove / 4;
}
if (_root.area.hitTest(this._x, this._y, true) || (_root.area.hitTest(_root._xmouse, _root._ymouse, true))) {
this._y = this._y + yMove;
this._x = this._x + xMove;
}
updateAfterEvent();
}
}
Instance of Symbol 2386 MovieClip "monsterHealth" in Frame 1216
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 2389 MovieClip "yourHealth" in Frame 1216
onClipEvent (load) {
health = 11 - _global.YourStr;
this.gotoAndStop(health);
}
Instance of Symbol 2390 MovieClip "lvlCheck" in Frame 1216
onClipEvent (load) {
started = false;
}
onClipEvent (enterFrame) {
if ((_global.throwncods == 4) && (!started)) {
_root.tooltip.text.gotoAndStop(1);
started = true;
_root.bubble1.gotoAndPlay(_root.bubble1._currentframe + 1);
_root.bubble2.gotoAndPlay(_root.bubble2._currentframe + 1);
_root.bubble3.gotoAndPlay(_root.bubble3._currentframe + 1);
if (_global.bosslevel != 1) {
_global.buttonsUsable = true;
_root.anchorButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
}
if (_global.bosslevel == 7) {
_global.dontPlay = true;
}
if (_global.bosslevel < 2) {
_root.musicMC.gotoAndStop(2);
} else {
_root.musicMC.gotoAndStop(4);
}
_root.lvlCheck.gotoAndStop(_global.bosslevel + 1);
}
}
Instance of Symbol 428 MovieClip "shortkeys" in Frame 1216
onClipEvent (load) {
function aim() {
Mouse.hide();
x = _root.cannonCrosshair._x - _root.boatZoom._x;
y = _root.cannonCrosshair._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
if ((normalize > 170) && (normalize < 280)) {
_root.boatZoom.cannon._rotation = normalize + 125;
}
if ((normalize > 205) && (normalize < 255)) {
_root.boatZoom.pirateFishing._rotation = normalize + 125;
}
if (Key.isDown(32) && (!_global.umbrella)) {
if (_global.YourDex == 1) {
dex = 0.5;
} else if (_global.YourDex == 10) {
dex = 5;
} else {
dex = _global.YourDex / 4;
}
if (Math.random() < 0.5) {
xaccurarity = (Math.random() * 50) / dex;
} else {
xaccurarity = ((Math.random() * 50) * -1) / dex;
}
if (Math.random() < 0.5) {
yaccurarity = (Math.random() * 50) / dex;
} else {
yaccurarity = ((Math.random() * 50) * -1) / dex;
}
x = (_root.cannonCrosshair._x - _root.boatZoom._x) + xaccurarity;
y = (_root.cannonCrosshair._y - _root.boatZoom._y) + yaccurarity;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.harpoon._rotation = direction + 125;
deg = (Math.PI/180) * (360 - normalize);
_global.ratioX = Math.cos(deg);
_global.ratioY = Math.sin(deg);
_global.xHarpoonDes = x + _root.boatZoom._x;
_global.yHarpoonDes = y + _root.boatZoom._y;
_root.boatZoom.cannon.gotoAndPlay(2);
clearInterval(aimInterval);
_global.aimingNow = false;
_root.cannonMC.cannonButton.enabled = false;
}
}
ablepress = true;
}
onClipEvent (enterFrame) {
_root.cods = _global.cods;
if (_global.prepareToShoot) {
_root.anchorButton.enabled = false;
}
if (((_root.anchorButton.enabled && (!_global.umbrella)) && (!_global.aimingNow)) || (!_global.buttonsUsable)) {
_root.fishThrow.enabled = true;
} else {
_root.fishThrow.enabled = false;
}
if (Key.isDown(65) && (_root.anchorButton.enabled)) {
if (!_global.protected) {
_root.boatZoom.pirateFishing.gotoAndStop(2);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
} else {
_root.boatZoom.pirateFishing.umbrella.gotoAndPlay(_root.boatZoom.pirateFishing.umbrella._currentframe + 1);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
}
}
if ((Key.isDown(83) && (_root.cannonMC.cannonButton.enabled)) && (!cannonisDown)) {
cannonisDown = true;
if (_root.cannonMC._currentframe == 1) {
_root.attachMovie("dot", "dotX", 1001);
_root.cannonCrosshair._x = _global.crossPlacex;
_root.cannonCrosshair._y = _global.crossPlacey;
_root.dotX.startDrag(true);
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_root.cannonMC.gotoAndStop(2);
_global.aimingNow = true;
aimInterval = setInterval(aim, 10);
} else {
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
_root.createEmptyMovieClip("xiit", 1001);
_global.crossPlacex = _root.cannonCrosshair._x;
_global.crossPlacey = _root.cannonCrosshair._y;
_root.cannonCrosshair._x = -500;
_root.cannonCrosshair._y = -500;
clearInterval(aimInterval);
clearInterval(_root.harpoon.aimInterval);
clearInterval(_root.cannonMC.aimInterval);
_global.aimingNow = false;
Mouse.show();
_root.cannonMC.gotoAndStop(1);
}
}
if (!Key.isDown(83)) {
cannonisDown = false;
}
if ((Key.isDown(68) && (_root.fishThrow.enabled)) && (ablepress)) {
ablepress = false;
if (_global.cods > 0) {
if (!_global.throwingFish) {
_global.throwingFish = true;
_root.codPlace.attachMovie("splash", "splashOpen", 566);
_global.cods--;
}
} else {
_root.messages2.gotoAndPlay(2);
}
}
if (!Key.isDown(68)) {
ablepress = true;
}
}
Instance of Symbol 2432 MovieClip "tooltip" in Frame 1216
onClipEvent (load) {
_root.tooltip.text.gotoAndStop(2);
}
Instance of Symbol 2436 MovieClip in Frame 1217
onClipEvent (load) {
if (_global.bosslevel > 3) {
this.gotoAndStop(2);
}
}
Symbol 8 MovieClip [xhair] Frame 1
stop();
rangeVar = _global.throwRange;
_root.mcCast.castButton.enabled = true;
Symbol 8 MovieClip [xhair] Frame 2
stop();
rangeVar = _global.throwRange;
_root.mcCast.castButton.enabled = true;
Symbol 8 MovieClip [xhair] Frame 3
play();
_global.throwRange = 0;
_root.mcCast.castButton.enabled = false;
Symbol 8 MovieClip [xhair] Frame 11
play();
_global.throwRange = 15;
Symbol 8 MovieClip [xhair] Frame 13
play();
_global.throwRange = 15;
Symbol 8 MovieClip [xhair] Frame 15
play();
_global.throwRange = 15;
Symbol 8 MovieClip [xhair] Frame 17
play();
_global.throwRange = 15;
Symbol 8 MovieClip [xhair] Frame 19
play();
_global.throwRange = 15;
Symbol 8 MovieClip [xhair] Frame 21
play();
_global.throwRange = 20;
Symbol 8 MovieClip [xhair] Frame 23
play();
_global.throwRange = 25;
Symbol 8 MovieClip [xhair] Frame 25
play();
_global.throwRange = 30;
Symbol 8 MovieClip [xhair] Frame 27
play();
_global.throwRange = 35;
Symbol 8 MovieClip [xhair] Frame 29
play();
_global.throwRange = 40;
Symbol 8 MovieClip [xhair] Frame 30
play();
_global.throwRange = 45;
Symbol 8 MovieClip [xhair] Frame 31
play();
_global.throwRange = 50;
Symbol 8 MovieClip [xhair] Frame 32
play();
_global.throwRange = 55;
Symbol 8 MovieClip [xhair] Frame 33
play();
_global.throwRange = 60;
Symbol 8 MovieClip [xhair] Frame 34
play();
_global.throwRange = 65;
Symbol 8 MovieClip [xhair] Frame 35
play();
_global.throwRange = 70;
Symbol 8 MovieClip [xhair] Frame 36
play();
_global.throwRange = 75;
Symbol 8 MovieClip [xhair] Frame 37
play();
_global.throwRange = 80;
Symbol 8 MovieClip [xhair] Frame 38
play();
_global.throwRange = 85;
Symbol 8 MovieClip [xhair] Frame 39
play();
_global.throwRange = 90;
Symbol 8 MovieClip [xhair] Frame 40
play();
_global.throwRange = 95;
Symbol 8 MovieClip [xhair] Frame 41
play();
_global.throwRange = 100;
Symbol 8 MovieClip [xhair] Frame 42
gotoAndPlay (3);
Symbol 24 Button
on (release) {
_root.gotoAndStop(_root._currentframe + 2);
}
Symbol 26 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 39 Button
on (release) {
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_root.mcCast.castButton.enabled = true;
_root.sailButton.enabled = true;
_root.anchorThing.anchor1.enabled = true;
_root.anchorThing.anchor2.enabled = true;
_root.anchorThing.anchor3.enabled = true;
_root.anchorThing.anchor4.enabled = true;
_root.anchorThing.anchor5.enabled = true;
_root.anchorThing.anchor6.enabled = true;
_root.anchorThing.anchor7.enabled = true;
_root.anchorThing.anchor8.enabled = true;
_root.shopButton.enabled = true;
_root.tavernButton.enabled = true;
_root.boatButton.enabled = true;
_root.traderButton.enabled = true;
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.shopKButton.enabled = true;
_root.shopExit.enabled = true;
_root.travelButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
_root.fishThrow.enabled = true;
_global.menuOpen = false;
this.removeMovieClip("fishesOpen");
}
Symbol 41 Button
on (release) {
_parent.fishInfo.gotoAndStop(2);
}
Symbol 44 Button
on (release) {
_parent.fishInfo.gotoAndStop(3);
}
Symbol 47 Button
on (release) {
_parent.fishInfo.gotoAndStop(4);
}
Symbol 50 Button
on (release) {
_parent.fishInfo.gotoAndStop(5);
}
Symbol 53 Button
on (release) {
_parent.fishInfo.gotoAndStop(6);
}
Symbol 56 Button
on (release) {
_parent.fishInfo.gotoAndStop(7);
}
Symbol 59 Button
on (release) {
_parent.fishInfo.gotoAndStop(8);
}
Symbol 62 Button
on (release) {
_parent.fishInfo.gotoAndStop(9);
}
Symbol 119 MovieClip Frame 1
stop();
Instance of Symbol 104 MovieClip in Symbol 119 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_global.yourFish1[3]);
}
Instance of Symbol 104 MovieClip in Symbol 119 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_global.yourFish2[3]);
}
Instance of Symbol 104 MovieClip in Symbol 119 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_global.yourFish3[3]);
}
Instance of Symbol 104 MovieClip in Symbol 119 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_global.yourFish4[3]);
}
Instance of Symbol 104 MovieClip in Symbol 119 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_global.yourFish5[3]);
}
Instance of Symbol 104 MovieClip in Symbol 119 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_global.yourFish6[3]);
}
Instance of Symbol 104 MovieClip in Symbol 119 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_global.yourFish7[3]);
}
Instance of Symbol 104 MovieClip in Symbol 119 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop(_global.yourFish8[3]);
}
Symbol 120 MovieClip [fishes] Frame 1
if (_global.yourFish1[0] != "1") {
fishCheck1._visible = false;
}
if (_global.yourFish2[0] != "1") {
fishCheck2._visible = false;
}
if (_global.yourFish3[0] != "1") {
fishCheck3._visible = false;
}
if (_global.yourFish4[0] != "1") {
fishCheck4._visible = false;
}
if (_global.yourFish5[0] != "1") {
fishCheck5._visible = false;
}
if (_global.yourFish6[0] != "1") {
fishCheck6._visible = false;
}
if (_global.yourFish7[0] != "1") {
fishCheck7._visible = false;
}
if (_global.yourFish8[0] != "1") {
fishCheck8._visible = false;
}
fish1Short = ((_global.yourFish1[1] + " ") + _global.yourFish1[2]) + " lbs";
fish2Short = ((_global.yourFish2[1] + " ") + _global.yourFish2[2]) + " lbs";
fish3Short = ((_global.yourFish3[1] + " ") + _global.yourFish3[2]) + " lbs";
fish4Short = ((_global.yourFish4[1] + " ") + _global.yourFish4[2]) + " lbs";
fish5Short = ((_global.yourFish5[1] + " ") + _global.yourFish5[2]) + " lbs";
fish6Short = ((_global.yourFish6[1] + " ") + _global.yourFish6[2]) + " lbs";
fish7Short = ((_global.yourFish7[1] + " ") + _global.yourFish7[2]) + " lbs";
fish8Short = ((_global.yourFish8[1] + " ") + _global.yourFish8[2]) + " lbs";
fish1name = _global.yourFish1[1];
fish2name = _global.yourFish2[1];
fish3name = _global.yourFish3[1];
fish4name = _global.yourFish4[1];
fish5name = _global.yourFish5[1];
fish6name = _global.yourFish6[1];
fish7name = _global.yourFish7[1];
fish8name = _global.yourFish8[1];
fish1lbs = _global.yourFish1[2] + " lbs";
fish2lbs = _global.yourFish2[2] + " lbs";
fish3lbs = _global.yourFish3[2] + " lbs";
fish4lbs = _global.yourFish4[2] + " lbs";
fish5lbs = _global.yourFish5[2] + " lbs";
fish6lbs = _global.yourFish6[2] + " lbs";
fish7lbs = _global.yourFish7[2] + " lbs";
fish8lbs = _global.yourFish8[2] + " lbs";
Symbol 122 Button
on (release) {
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
this.removeMovieClip("oldManOpen");
}
Symbol 126 Button
on (release) {
gotoAndStop (2);
_global.ready = true;
}
Symbol 127 MovieClip Frame 40
_parent.okButton._visible = true;
Symbol 131 Button
on (release) {
if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Catfish")) && (_global.yourFish1[2] >= 4)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Catfish")) && (_global.yourFish2[2] >= 4)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Catfish")) && (_global.yourFish3[2] >= 4)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Catfish")) && (_global.yourFish4[2] >= 4)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Catfish")) && (_global.yourFish5[2] >= 4)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Catfish")) && (_global.yourFish6[2] >= 4)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Catfish")) && (_global.yourFish7[2] >= 4)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Catfish")) && (_global.yourFish8[2] >= 4)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish8 = [0, "", 0, 0];
} else {
gotoAndStop (21);
}
}
Symbol 133 Button
on (release) {
gotoAndStop(_currentframe + 1);
}
Symbol 135 Button
on (release) {
if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Salmon")) && (_global.yourFish1[2] >= 7)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Salmon")) && (_global.yourFish2[2] >= 7)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Salmon")) && (_global.yourFish3[2] >= 7)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Salmon")) && (_global.yourFish4[2] >= 7)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Salmon")) && (_global.yourFish5[2] >= 7)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Salmon")) && (_global.yourFish6[2] >= 7)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Salmon")) && (_global.yourFish7[2] >= 7)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Salmon")) && (_global.yourFish8[2] >= 7)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Trout")) && (_global.yourFish1[2] >= 7)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Trout")) && (_global.yourFish2[2] >= 7)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Trout")) && (_global.yourFish3[2] >= 7)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Trout")) && (_global.yourFish4[2] >= 7)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Trout")) && (_global.yourFish5[2] >= 7)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Trout")) && (_global.yourFish6[2] >= 7)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Trout")) && (_global.yourFish7[2] >= 7)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Trout")) && (_global.yourFish8[2] >= 7)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish8 = [0, "", 0, 0];
} else {
gotoAndStop (21);
}
}
Symbol 138 Button
on (release) {
if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Squid")) && (_global.yourFish1[2] >= 5)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Squid")) && (_global.yourFish2[2] >= 5)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Squid")) && (_global.yourFish3[2] >= 5)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Squid")) && (_global.yourFish4[2] >= 5)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Squid")) && (_global.yourFish5[2] >= 5)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Squid")) && (_global.yourFish6[2] >= 5)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Squid")) && (_global.yourFish7[2] >= 5)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Squid")) && (_global.yourFish8[2] >= 5)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish8 = [0, "", 0, 0];
} else {
gotoAndStop (21);
}
}
Symbol 141 Button
on (release) {
if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Ray")) && (_global.yourFish1[2] >= 6)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Ray")) && (_global.yourFish2[2] >= 6)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Ray")) && (_global.yourFish3[2] >= 6)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Ray")) && (_global.yourFish4[2] >= 6)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Ray")) && (_global.yourFish5[2] >= 6)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Ray")) && (_global.yourFish6[2] >= 6)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Ray")) && (_global.yourFish7[2] >= 6)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Ray")) && (_global.yourFish8[2] >= 6)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish8 = [0, "", 0, 0];
} else {
gotoAndStop (21);
}
}
Symbol 144 Button
on (release) {
if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Anglerfish")) && (_global.yourFish1[2] >= 10)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Anglerfish")) && (_global.yourFish2[2] >= 10)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Anglerfish")) && (_global.yourFish3[2] >= 10)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Anglerfish")) && (_global.yourFish4[2] >= 10)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Anglerfish")) && (_global.yourFish5[2] >= 10)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Anglerfish")) && (_global.yourFish6[2] >= 10)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Anglerfish")) && (_global.yourFish7[2] >= 10)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Anglerfish")) && (_global.yourFish8[2] >= 10)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish8 = [0, "", 0, 0];
} else {
gotoAndStop (21);
}
}
Symbol 147 Button
on (release) {
if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Roach")) && (_global.yourFish1[2] >= 2.5)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Roach")) && (_global.yourFish2[2] >= 2.5)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Roach")) && (_global.yourFish3[2] >= 2.5)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Roach")) && (_global.yourFish4[2] >= 2.5)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Roach")) && (_global.yourFish5[2] >= 2.5)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Roach")) && (_global.yourFish6[2] >= 2.5)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Roach")) && (_global.yourFish7[2] >= 2.5)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Roach")) && (_global.yourFish8[2] >= 2.5)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Crucian carp")) && (_global.yourFish1[2] >= 2.5)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Crucian carp")) && (_global.yourFish2[2] >= 2.5)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Crucian carp")) && (_global.yourFish3[2] >= 2.5)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Crucian carp")) && (_global.yourFish4[2] >= 2.5)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Crucian carp")) && (_global.yourFish5[2] >= 2.5)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Crucian carp")) && (_global.yourFish6[2] >= 2.5)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Crucian carp")) && (_global.yourFish7[2] >= 2.5)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Crucian carp")) && (_global.yourFish8[2] >= 2.5)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish8 = [0, "", 0, 0];
} else {
gotoAndStop (21);
}
}
Symbol 150 Button
on (release) {
if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Burbot")) && (_global.yourFish1[2] >= 2.5)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Burbot")) && (_global.yourFish2[2] >= 2.5)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Burbot")) && (_global.yourFish3[2] >= 2.5)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Burbot")) && (_global.yourFish4[2] >= 2.5)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Burbot")) && (_global.yourFish5[2] >= 2.5)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Burbot")) && (_global.yourFish6[2] >= 2.5)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Burbot")) && (_global.yourFish7[2] >= 2.5)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Burbot")) && (_global.yourFish8[2] >= 2.5)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Pufferfish")) && (_global.yourFish1[2] >= 2.5)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Pufferfish")) && (_global.yourFish2[2] >= 2.5)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Pufferfish")) && (_global.yourFish3[2] >= 2.5)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Pufferfish")) && (_global.yourFish4[2] >= 2.5)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Pufferfish")) && (_global.yourFish5[2] >= 2.5)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Pufferfish")) && (_global.yourFish6[2] >= 2.5)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Pufferfish")) && (_global.yourFish7[2] >= 2.5)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Pufferfish")) && (_global.yourFish8[2] >= 2.5)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
_global.yourFish8 = [0, "", 0, 0];
} else {
gotoAndStop (21);
}
}
Symbol 153 Button
on (release) {
if ((((_global.yourFish1[0] == 1) && (_global.yourFish1[1] == "Pike")) && (_global.yourFish1[2] >= 12)) && (_global.yourFish1[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
if (_global.voices) {
needSound = new Sound(this);
needSound.attachSound("need");
needSound.start(0, 1);
}
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish2[0] == 1) && (_global.yourFish2[1] == "Pike")) && (_global.yourFish2[2] >= 12)) && (_global.yourFish2[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
if (_global.voices) {
needSound = new Sound(this);
needSound.attachSound("need");
needSound.start(0, 1);
}
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish3[0] == 1) && (_global.yourFish3[1] == "Pike")) && (_global.yourFish3[2] >= 12)) && (_global.yourFish3[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
if (_global.voices) {
needSound = new Sound(this);
needSound.attachSound("need");
needSound.start(0, 1);
}
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish4[0] == 1) && (_global.yourFish4[1] == "Pike")) && (_global.yourFish4[2] >= 12)) && (_global.yourFish4[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
if (_global.voices) {
needSound = new Sound(this);
needSound.attachSound("need");
needSound.start(0, 1);
}
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish5[0] == 1) && (_global.yourFish5[1] == "Pike")) && (_global.yourFish5[2] >= 12)) && (_global.yourFish5[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
if (_global.voices) {
needSound = new Sound(this);
needSound.attachSound("need");
needSound.start(0, 1);
}
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish6[0] == 1) && (_global.yourFish6[1] == "Pike")) && (_global.yourFish6[2] >= 12)) && (_global.yourFish6[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
if (_global.voices) {
needSound = new Sound(this);
needSound.attachSound("need");
needSound.start(0, 1);
}
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish7[0] == 1) && (_global.yourFish7[1] == "Pike")) && (_global.yourFish7[2] >= 12)) && (_global.yourFish7[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
if (_global.voices) {
needSound = new Sound(this);
needSound.attachSound("need");
needSound.start(0, 1);
}
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
} else if ((((_global.yourFish8[0] == 1) && (_global.yourFish8[1] == "Pike")) && (_global.yourFish8[2] >= 12)) && (_global.yourFish8[4] != 1)) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
if (_global.voices) {
needSound = new Sound(this);
needSound.attachSound("need");
needSound.start(0, 1);
}
_global.yourFish8 = [0, "", 0, 0];
} else {
gotoAndStop (21);
}
}
Symbol 160 Button
on (release) {
if (_global.money >= 50) {
_global.money = _global.money - 50;
gotoAndStop (19);
_global.boatBroken = false;
_global.lostOnce = true;
} else {
gotoAndStop (20);
}
}
Symbol 165 Button
on (release) {
gotoAndStop(_currentframe + 1);
_global.specialItems++;
}
Symbol 167 MovieClip Frame 1
stop();
Instance of Symbol 127 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
_parent.okButton._visible = false;
}
Instance of Symbol 127 MovieClip in Symbol 167 MovieClip Frame 3
onClipEvent (load) {
_parent.okButton._visible = false;
}
Instance of Symbol 127 MovieClip in Symbol 167 MovieClip Frame 5
onClipEvent (load) {
_parent.okButton._visible = false;
}
Instance of Symbol 127 MovieClip in Symbol 167 MovieClip Frame 7
onClipEvent (load) {
_parent.okButton._visible = false;
}
Instance of Symbol 127 MovieClip in Symbol 167 MovieClip Frame 9
onClipEvent (load) {
_parent.okButton._visible = false;
}
Instance of Symbol 127 MovieClip in Symbol 167 MovieClip Frame 11
onClipEvent (load) {
_parent.okButton._visible = false;
}
Instance of Symbol 127 MovieClip in Symbol 167 MovieClip Frame 13
onClipEvent (load) {
_parent.okButton._visible = false;
}
Instance of Symbol 127 MovieClip in Symbol 167 MovieClip Frame 15
onClipEvent (load) {
_parent.okButton._visible = false;
}
Instance of Symbol 127 MovieClip in Symbol 167 MovieClip Frame 41
onClipEvent (load) {
_parent.okButton._visible = false;
}
Symbol 169 MovieClip [oldMan] Frame 1
if (_global.ready == true) {
textX.gotoAndStop(2);
}
if (_global.specialItems == 1) {
textX.gotoAndStop(4);
} else if (_global.specialItems == 2) {
textX.gotoAndStop(6);
} else if (_global.specialItems == 3) {
textX.gotoAndStop(8);
} else if (_global.specialItems == 4) {
textX.gotoAndStop(10);
} else if (_global.specialItems == 5) {
textX.gotoAndStop(12);
} else if (_global.specialItems == 6) {
textX.gotoAndStop(14);
} else if (_global.specialItems == 7) {
textX.gotoAndStop(16);
} else if (_global.specialItems == 8) {
textX.gotoAndStop(17);
}
if (_global.boatBroken) {
textX.gotoAndStop(18);
}
if (_global.lostOnce && (!_global.boatBroken)) {
textX.gotoAndStop(19);
}
Symbol 171 Button
on (release) {
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
this.removeMovieClip("tKeeperOpen");
}
Symbol 174 Button
on (release) {
if (_global.money >= 5) {
_global.money = _global.money - 5;
_root.sleep = "morning";
_root.fade.gotoAndPlay(2);
if (_global.voices) {
weebitSound = new Sound(this);
weebitSound.attachSound("weebit");
weebitSound.start(0, 1);
}
_parent.removeMovieClip("tKeeperOpen");
} else {
gotoAndStop (5);
}
}
Symbol 176 Button
on (release) {
if (_global.money >= 5) {
_global.money = _global.money - 5;
_root.sleep = "night";
_root.fade.gotoAndPlay(2);
if (_global.voices) {
weebitSound = new Sound(this);
weebitSound.attachSound("weebit");
weebitSound.start(0, 1);
}
_parent.removeMovieClip("tKeeperOpen");
} else {
gotoAndStop (5);
}
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 181 Button
on (release) {
_root.attachMovie("save", "saveOpen", 500);
this.removeMovieClip("tKeeperOpen");
}
Symbol 182 Button
on (release) {
tInfo.gotoAndStop(3);
}
Symbol 183 Button
on (release) {
tInfo.gotoAndStop(2);
}
Symbol 190 Button
on (release) {
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_root.mcCast.castButton.enabled = true;
this.removeMovieClip("fishGotOpen");
}
Symbol 215 MovieClip [fishGot] Frame 1
fishname = _global.tempFish[0];
fishweight = _global.tempFish[1] + " lbs";
if (_global.voices) {
if (_global.tempFish[2] == 18) {
if (Math.random() <= 0.5) {
boot1Sound = new Sound(this);
boot1Sound.attachSound("boot");
boot1Sound.start(0, 1);
} else {
boot2Sound = new Sound(this);
boot2Sound.attachSound("nofish");
boot2Sound.start(0, 1);
}
} else {
ran = Math.random();
if (_global.tempFish[1] >= 5) {
if (ran <= 0.33) {
fishSound = new Sound(this);
fishSound.attachSound("mighty");
fishSound.start(0, 1);
} else if (ran <= 0.66) {
fish3Sound = new Sound(this);
fish3Sound.attachSound("bigfish");
fish3Sound.start(0, 1);
} else {
fish4Sound = new Sound(this);
fish4Sound.attachSound("hah");
fish4Sound.start(0, 1);
}
} else if (ran <= 0.33) {
fish2Sound = new Sound(this);
fish2Sound.attachSound("grow");
fish2Sound.start(0, 1);
} else if (ran <= 0.66) {
fish5Sound = new Sound(this);
fish5Sound.attachSound("seenbigger");
fish5Sound.start(0, 1);
} else {
fish6Sound = new Sound(this);
fish6Sound.attachSound("pathetic");
fish6Sound.start(0, 1);
}
}
}
fishthe.thefishes.gotoAndStop(_global.tempFish[2]);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_root.mcCast.castButton.enabled = false;
Symbol 228 Button
on (release) {
_global.baitMS = 1;
_global.LureNumbers = [4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0];
_global.goodLure = 0;
gotoAndStop (20);
_global.eBait = 1;
_parent.b1._visible = false;
_parent.lurePlace.gotoAndStop(1);
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 230 Button
on (release) {
_global.baitMS = 1;
_global.LureNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4];
_global.goodLure = 0;
_global.eBait = 2;
gotoAndStop (21);
_parent.b2._visible = false;
_parent.lurePlace.gotoAndStop(2);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 232 Button
on (release) {
_global.baitMS = 1;
_global.LureNumbers = [7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0];
_global.goodLure = 0;
_global.eBait = 4;
gotoAndStop (23);
_parent.b4._visible = false;
_parent.lurePlace.gotoAndStop(4);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 234 Button
on (release) {
_global.baitMS = 1;
_global.LureNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7];
_global.goodLure = 0;
_global.eBait = 3;
gotoAndStop (22);
_parent.b3._visible = false;
_parent.lurePlace.gotoAndStop(3);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 236 Button
on (release) {
_global.baitMS = 0;
_global.LureNumbers = [2, 2, 8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
_global.goodLure = 1;
_global.eBait = 5;
gotoAndStop (24);
_parent.b5._visible = false;
_parent.lurePlace.gotoAndStop(5);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 238 Button
on (release) {
_global.baitMS = 0;
_global.LureNumbers = [2, 2, 2, 2, 8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
_global.goodLure = 1;
_global.eBait = 6;
gotoAndStop (25);
_parent.b6._visible = false;
_parent.lurePlace.gotoAndStop(6);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 240 Button
on (release) {
_global.baitMS = 0;
_global.LureNumbers = [8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
_global.goodLure = 1;
_global.eBait = 7;
gotoAndStop (26);
_parent.b7._visible = false;
_parent.lurePlace.gotoAndStop(7);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 242 Button
on (release) {
_global.baitMS = 1;
_global.LureNumbers = [2, 2, 2, 2, 2, 2, 2, 2, 8, 8, 2, 2, 2, 2, 2, 2];
_global.goodLure = 1;
_global.eBait = 8;
gotoAndStop (27);
_parent.b8._visible = false;
_parent.lurePlace.gotoAndStop(8);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 244 Button
on (release) {
_global.baitMS = 1;
_global.LureNumbers = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8, 8, 2, 2, 2, 2];
_global.goodLure = 1;
_global.eBait = 9;
gotoAndStop (28);
_parent.b9._visible = false;
_parent.lurePlace.gotoAndStop(9);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 246 Button
on (release) {
_global.baitMS = 1;
_global.LureNumbers = [2, 2, 2, 2, 2, 2, 8, 8, 2, 2, 2, 2, 2, 2, 2, 2];
_global.goodLure = 1;
_global.eBait = 10;
gotoAndStop (29);
_parent.b10._visible = false;
_parent.lurePlace.gotoAndStop(10);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 248 Button
on (release) {
_global.baitMS = 0;
_global.LureNumbers = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8, 8];
_global.goodLure = 1;
_global.eBait = 11;
gotoAndStop (30);
_parent.b11._visible = false;
_parent.lurePlace.gotoAndStop(11);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[11] == 1) {
_parent.b12._visible = true;
}
}
Symbol 250 Button
on (release) {
_global.baitMS = 0;
_global.LureNumbers = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8, 8, 2, 2];
_global.goodLure = 1;
_global.eBait = 12;
gotoAndStop (31);
_parent.b12._visible = false;
_parent.lurePlace.gotoAndStop(12);
if (_global.baits[0] == 1) {
_parent.b1._visible = true;
}
if (_global.baits[1] == 1) {
_parent.b2._visible = true;
}
if (_global.baits[3] == 1) {
_parent.b4._visible = true;
}
if (_global.baits[4] == 1) {
_parent.b5._visible = true;
}
if (_global.baits[5] == 1) {
_parent.b6._visible = true;
}
if (_global.baits[6] == 1) {
_parent.b7._visible = true;
}
if (_global.baits[7] == 1) {
_parent.b8._visible = true;
}
if (_global.baits[8] == 1) {
_parent.b9._visible = true;
}
if (_global.baits[9] == 1) {
_parent.b10._visible = true;
}
if (_global.baits[10] == 1) {
_parent.b11._visible = true;
}
if (_global.baits[2] == 1) {
_parent.b3._visible = true;
}
}
Symbol 255 Button
on (release) {
if (_global.baitsOwned[0] > 0) {
_global.whatBaitE = 1;
_global.wormPlusD = 1;
_global.wormPlusN = 0;
_parent._parent.hook.gotoAndStop(2);
}
}
Symbol 256 Button
on (release) {
if (_global.baitsOwned[1] > 0) {
_global.whatBaitE = 2;
_global.wormPlusD = 2;
_global.wormPlusN = 0;
_parent._parent.hook.gotoAndStop(3);
}
}
Symbol 257 Button
on (release) {
if (_global.baitsOwned[2] > 0) {
_global.whatBaitE = 3;
_global.wormPlusN = 1;
_global.wormPlusD = 0;
_parent._parent.hook.gotoAndStop(4);
}
}
Symbol 258 Button
on (release) {
if (_global.baitsOwned[3] > 0) {
_global.whatBaitE = 4;
_global.wormPlusN = 2;
_global.wormPlusD = 0;
_parent._parent.hook.gotoAndStop(5);
}
}
Symbol 261 Button
on (release) {
_global.whatBaitE = 0;
_global.wormPlusD = 0;
_global.wormPlusN = 0;
_parent._parent.hook.gotoAndStop(1);
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 280 Button
on (release) {
_parent.invInfo.gotoAndStop(2);
}
Symbol 282 Button
on (release) {
_parent.invInfo.gotoAndStop(3);
}
Symbol 283 MovieClip Frame 1
stop();
Symbol 285 Button
on (release) {
_parent.invInfo.gotoAndStop(4);
}
Symbol 287 Button
on (release) {
_parent.invInfo.gotoAndStop(5);
}
Symbol 288 MovieClip Frame 1
stop();
Symbol 290 Button
on (release) {
_parent.invInfo.gotoAndStop(6);
}
Symbol 292 Button
on (release) {
_parent.invInfo.gotoAndStop(7);
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 295 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(20);
}
Symbol 298 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(21);
}
Symbol 301 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(22);
}
Symbol 304 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(23);
}
Symbol 307 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(24);
}
Symbol 310 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(25);
}
Symbol 313 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(26);
}
Symbol 316 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(27);
}
Symbol 319 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(28);
}
Symbol 322 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(29);
}
Symbol 325 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(30);
}
Symbol 328 Button
on (release) {
_parent._parent.invInfo.gotoAndStop(31);
}
Symbol 330 MovieClip Frame 1
stop();
Symbol 334 Button
on (release) {
_parent.invInfo.gotoAndStop(32);
}
Symbol 343 MovieClip Frame 1
stop();
Symbol 344 Button
on (release) {
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_root.mcCast.castButton.enabled = true;
_root.sailButton.enabled = true;
_root.anchorThing.anchor1.enabled = true;
_root.anchorThing.anchor2.enabled = true;
_root.anchorThing.anchor3.enabled = true;
_root.anchorThing.anchor4.enabled = true;
_root.anchorThing.anchor5.enabled = true;
_root.anchorThing.anchor6.enabled = true;
_root.anchorThing.anchor7.enabled = true;
_root.anchorThing.anchor8.enabled = true;
_root.shopButton.enabled = true;
_root.tavernButton.enabled = true;
_root.boatButton.enabled = true;
_root.traderButton.enabled = true;
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.shopKButton.enabled = true;
_root.shopExit.enabled = true;
_root.travelButton.enabled = true;
_global.menuOpen = false;
this.removeMovieClip("invOpen");
}
Symbol 351 Button
on (release) {
_parent.invInfo.gotoAndStop(8);
}
Symbol 353 Button
on (release) {
_parent.invInfo.gotoAndStop(9);
}
Symbol 356 Button
on (release) {
_parent.invInfo.gotoAndStop(11);
}
Symbol 359 Button
on (release) {
_parent.invInfo.gotoAndStop(10);
}
Symbol 362 Button
on (release) {
_parent.invInfo.gotoAndStop(12);
}
Symbol 365 Button
on (release) {
_parent.invInfo.gotoAndStop(13);
}
Symbol 367 Button
on (release) {
_parent.invInfo.gotoAndStop(14);
}
Symbol 369 Button
on (release) {
_parent.invInfo.gotoAndStop(15);
}
Symbol 371 Button
on (release) {
_parent.invInfo.gotoAndStop(16);
}
Symbol 374 Button
on (release) {
_parent.invInfo.gotoAndStop(17);
}
Symbol 376 Button
on (release) {
_parent.invInfo.gotoAndStop(18);
}
Symbol 378 Button
on (release) {
_parent.invInfo.gotoAndStop(19);
}
Symbol 380 MovieClip [inventory] Frame 1
moneyFormat = _global.money + " \u00A3";
wormsLeft = _global.baitsOwned[0] + " left";
worms = _global.baitsOwned[0];
fliesLeft = _global.baitsOwned[1] + " left";
flies = _global.baitsOwned[1];
maggotsLeft = _global.baitsOwned[2] + " left";
maggots = _global.baitsOwned[2];
spidersLeft = _global.baitsOwned[3] + " left";
spiders = _global.baitsOwned[3];
if ((_global.whatBaitE == 1) && (_global.baitsOwned[0] > 0)) {
hook.gotoAndStop(2);
} else if ((_global.whatBaitE == 2) && (_global.baitsOwned[1] > 0)) {
hook.gotoAndStop(3);
} else if ((_global.whatBaitE == 3) && (_global.baitsOwned[2] > 0)) {
hook.gotoAndStop(4);
} else if ((_global.whatBaitE == 4) && (_global.baitsOwned[3] > 0)) {
hook.gotoAndStop(5);
} else {
hook.gotoAndStop(1);
}
if (_global.poleQ == 0.7) {
pole.gotoAndStop(1);
} else {
pole.gotoAndStop(2);
}
if (_global.reelQ == 0.7) {
reel.gotoAndStop(1);
} else {
reel.gotoAndStop(2);
}
if (_global.lineQ == 2) {
line.gotoAndStop(1);
} else {
line.gotoAndStop(2);
}
if (_global.baits[0] != 1) {
b1._visible = false;
}
if (_global.baits[1] != 1) {
b2._visible = false;
}
if (_global.baits[2] != 1) {
b3._visible = false;
}
if (_global.baits[3] != 1) {
b4._visible = false;
}
if (_global.baits[4] != 1) {
b5._visible = false;
}
if (_global.baits[5] != 1) {
b6._visible = false;
}
if (_global.baits[6] != 1) {
b7._visible = false;
}
if (_global.baits[7] != 1) {
b8._visible = false;
}
if (_global.baits[8] != 1) {
b9._visible = false;
}
if (_global.baits[9] != 1) {
b10._visible = false;
}
if (_global.baits[10] != 1) {
b11._visible = false;
}
if (_global.baits[11] != 1) {
b12._visible = false;
}
if (_global.eBait == 1) {
lurePlace.gotoAndStop(1);
b1._visible = false;
} else if (_global.eBait == 2) {
lurePlace.gotoAndStop(2);
b2._visible = false;
} else if (_global.eBait == 3) {
lurePlace.gotoAndStop(3);
b3._visible = false;
} else if (_global.eBait == 4) {
lurePlace.gotoAndStop(4);
b4._visible = false;
} else if (_global.eBait == 5) {
lurePlace.gotoAndStop(5);
b5._visible = false;
} else if (_global.eBait == 6) {
lurePlace.gotoAndStop(6);
b6._visible = false;
} else if (_global.eBait == 7) {
lurePlace.gotoAndStop(7);
b7._visible = false;
} else if (_global.eBait == 8) {
lurePlace.gotoAndStop(8);
b8._visible = false;
} else if (_global.eBait == 9) {
lurePlace.gotoAndStop(9);
b9._visible = false;
} else if (_global.eBait == 10) {
lurePlace.gotoAndStop(10);
b10._visible = false;
} else if (_global.eBait == 11) {
lurePlace.gotoAndStop(11);
b11._visible = false;
} else if (_global.eBait == 12) {
lurePlace.gotoAndStop(12);
b12._visible = false;
}
Symbol 383 Button
on (release) {
if (_global.buttonsUsable) {
_root.anchorButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
}
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mcCast.castButton.enabled = true;
_root.sailButton.enabled = true;
_root.anchorThing.anchor1.enabled = true;
_root.anchorThing.anchor2.enabled = true;
_root.anchorThing.anchor3.enabled = true;
_root.anchorThing.anchor4.enabled = true;
_root.anchorThing.anchor5.enabled = true;
_root.anchorThing.anchor6.enabled = true;
_root.anchorThing.anchor7.enabled = true;
_root.anchorThing.anchor8.enabled = true;
_root.shopButton.enabled = true;
_root.tavernButton.enabled = true;
_root.boatButton.enabled = true;
_root.traderButton.enabled = true;
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.shopKButton.enabled = true;
_root.shopExit.enabled = true;
_root.newButton.enabled = true;
_root.loadButton.enabled = true;
_root.optionsButton.enabled = true;
_root.quitButton.enabled = true;
_root.travelButton.enabled = true;
_root.fishThrow.enabled = true;
_global.menuOpen = false;
_root.mc_menu.menuButton.enabled = true;
this.removeMovieClip("helpOpen");
}
Symbol 387 Button
on (release) {
if (helpText._currentframe == helpText._totalframes) {
helpText.gotoAndStop(1);
} else {
helpText.gotoAndStop(helpText._currentframe + 1);
}
}
Symbol 392 Button
on (release) {
if (helpText._currentframe == 1) {
helpText.gotoAndStop(helpText._totalframes);
} else {
helpText.gotoAndStop(helpText._currentframe - 1);
}
}
Symbol 411 MovieClip Frame 1
stop();
Symbol 414 Button
on (release) {
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
this.removeMovieClip("saveOpen");
}
Symbol 423 Button
on (release) {
sav = SharedObject.getLocal("tftsnbSave1x");
sav.data.activated = 1;
sav.data.money = _global.money;
sav.data.theName = _global.theName;
sav.data.baitMS = _global.baitMS;
sav.data.whatBaitE = _global.whatBaitE;
sav.data.baitsOwned = _global.baitsOwned;
sav.data.LureNumbers = _global.LureNumbers;
sav.data.wormPlusD = _global.wormPlusD;
sav.data.wormPlusN = _global.wormPlusN;
sav.data.speedPenalty = _global.speedPenalty;
sav.data.baits = _global.baits;
sav.data.eBait = _global.eBait;
sav.data.goodLure = _global.goodLure;
sav.data.poleQ = _global.poleQ;
sav.data.reelQ = _global.reelQ;
sav.data.lineQ = _global.lineQ;
sav.data.yourFish1 = _global.yourFish1;
sav.data.yourFish2 = _global.yourFish2;
sav.data.yourFish3 = _global.yourFish3;
sav.data.yourFish4 = _global.yourFish4;
sav.data.yourFish5 = _global.yourFish5;
sav.data.yourFish6 = _global.yourFish6;
sav.data.yourFish7 = _global.yourFish7;
sav.data.yourFish8 = _global.yourFish8;
sav.data.timeCheck = _global.timeCheck;
sav.data.knownFishes = _global.knownFishes;
sav.data.YourStr = _global.YourStr;
sav.data.YourDex = _global.YourDex;
sav.data.YourHag = _global.YourHag;
sav.data.expPoints = _global.expPoints;
sav.data.expPointsAll = _global.expPointsAll;
sav.data.expAmount = _global.expAmount;
sav.data.fishOfDay1 = _global.fishOfDay1;
sav.data.fishOfDay2 = _global.fishOfDay2;
sav.data.specialItems = _global.specialItems;
sav.data.bosslevel = _global.bosslevel;
sav.data.lostOnce = _global.lostOnce;
sav.data.boatBroken = _global.boatBroken;
sav.data.cods = _global.cods;
sav.data.ready = _global.ready;
sav.data.fishDay1 = _global.fishDay1;
sav.data.fishDay2 = _global.fishDay2;
sav.data.fishNight1 = _global.fishNight1;
sav.data.fishNight2 = _global.fishNight2;
sav.flush();
p1 = ((_global.theName + " - ") + _global.money) + " \u00A3";
}
Symbol 424 Button
on (release) {
sav = SharedObject.getLocal("tftsnbSave2x");
sav.data.activated = 1;
sav.data.money = _global.money;
sav.data.theName = _global.theName;
sav.data.baitMS = _global.baitMS;
sav.data.whatBaitE = _global.whatBaitE;
sav.data.baitsOwned = _global.baitsOwned;
sav.data.LureNumbers = _global.LureNumbers;
sav.data.wormPlusD = _global.wormPlusD;
sav.data.wormPlusN = _global.wormPlusN;
sav.data.speedPenalty = _global.speedPenalty;
sav.data.baits = _global.baits;
sav.data.eBait = _global.eBait;
sav.data.goodLure = _global.goodLure;
sav.data.poleQ = _global.poleQ;
sav.data.reelQ = _global.reelQ;
sav.data.lineQ = _global.lineQ;
sav.data.yourFish1 = _global.yourFish1;
sav.data.yourFish2 = _global.yourFish2;
sav.data.yourFish3 = _global.yourFish3;
sav.data.yourFish4 = _global.yourFish4;
sav.data.yourFish5 = _global.yourFish5;
sav.data.yourFish6 = _global.yourFish6;
sav.data.yourFish7 = _global.yourFish7;
sav.data.yourFish8 = _global.yourFish8;
sav.data.timeCheck = _global.timeCheck;
sav.data.knownFishes = _global.knownFishes;
sav.data.YourStr = _global.YourStr;
sav.data.YourDex = _global.YourDex;
sav.data.YourHag = _global.YourHag;
sav.data.expPoints = _global.expPoints;
sav.data.expPointsAll = _global.expPointsAll;
sav.data.expAmount = _global.expAmount;
sav.data.fishOfDay1 = _global.fishOfDay1;
sav.data.fishOfDay2 = _global.fishOfDay2;
sav.data.specialItems = _global.specialItems;
sav.data.bosslevel = _global.bosslevel;
sav.data.lostOnce = _global.lostOnce;
sav.data.boatBroken = _global.boatBroken;
sav.data.cods = _global.cods;
sav.data.ready = _global.ready;
sav.data.fishDay1 = _global.fishDay1;
sav.data.fishDay2 = _global.fishDay2;
sav.data.fishNight1 = _global.fishNight1;
sav.data.fishNight2 = _global.fishNight2;
sav.flush();
p2 = ((_global.theName + " - ") + _global.money) + " \u00A3";
}
Symbol 425 Button
on (release) {
sav = SharedObject.getLocal("tftsnbSave3x");
sav.data.activated = 1;
sav.data.money = _global.money;
sav.data.theName = _global.theName;
sav.data.baitMS = _global.baitMS;
sav.data.whatBaitE = _global.whatBaitE;
sav.data.baitsOwned = _global.baitsOwned;
sav.data.LureNumbers = _global.LureNumbers;
sav.data.wormPlusD = _global.wormPlusD;
sav.data.wormPlusN = _global.wormPlusN;
sav.data.speedPenalty = _global.speedPenalty;
sav.data.baits = _global.baits;
sav.data.eBait = _global.eBait;
sav.data.goodLure = _global.goodLure;
sav.data.poleQ = _global.poleQ;
sav.data.reelQ = _global.reelQ;
sav.data.lineQ = _global.lineQ;
sav.data.yourFish1 = _global.yourFish1;
sav.data.yourFish2 = _global.yourFish2;
sav.data.yourFish3 = _global.yourFish3;
sav.data.yourFish4 = _global.yourFish4;
sav.data.yourFish5 = _global.yourFish5;
sav.data.yourFish6 = _global.yourFish6;
sav.data.yourFish7 = _global.yourFish7;
sav.data.yourFish8 = _global.yourFish8;
sav.data.timeCheck = _global.timeCheck;
sav.data.knownFishes = _global.knownFishes;
sav.data.YourStr = _global.YourStr;
sav.data.YourDex = _global.YourDex;
sav.data.YourHag = _global.YourHag;
sav.data.expPoints = _global.expPoints;
sav.data.expPointsAll = _global.expPointsAll;
sav.data.expAmount = _global.expAmount;
sav.data.fishOfDay1 = _global.fishOfDay1;
sav.data.fishOfDay2 = _global.fishOfDay2;
sav.data.specialItems = _global.specialItems;
sav.data.bosslevel = _global.bosslevel;
sav.data.lostOnce = _global.lostOnce;
sav.data.boatBroken = _global.boatBroken;
sav.data.cods = _global.cods;
sav.data.ready = _global.ready;
sav.data.fishDay1 = _global.fishDay1;
sav.data.fishDay2 = _global.fishDay2;
sav.data.fishNight1 = _global.fishNight1;
sav.data.fishNight2 = _global.fishNight2;
sav.flush();
p3 = ((_global.theName + " - ") + _global.money) + " \u00A3";
}
Symbol 429 MovieClip [save] Frame 1
this._x = 90;
this._y = 80;
Instance of Symbol 428 MovieClip in Symbol 429 MovieClip [save] Frame 1
onClipEvent (load) {
savv = SharedObject.getLocal("tftsnbSave1x");
if (savv.data.activated == 1) {
_parent.p1 = ((savv.data.theName + " - ") + savv.data.money) + " \u00A3";
} else {
_parent.p1 = "Empty slot";
}
savvv = SharedObject.getLocal("tftsnbSave2x");
if (savvv.data.activated == 1) {
_parent.p2 = ((savvv.data.theName + " - ") + savvv.data.money) + " \u00A3";
} else {
_parent.p2 = "Empty slot";
}
savvvv = SharedObject.getLocal("tftsnbSave3x");
if (savvvv.data.activated == 1) {
_parent.p3 = ((savvvv.data.theName + " - ") + savvvv.data.money) + " \u00A3";
} else {
_parent.p3 = "Empty slot";
}
}
Symbol 430 Button
on (release) {
_root.newButton.enabled = true;
_root.loadButton.enabled = true;
_root.optionsButton.enabled = true;
_root.quitButton.enabled = true;
this.removeMovieClip("loadOpen");
}
Symbol 435 Button
on (release) {
sav = SharedObject.getLocal("tftsnbSave1x");
if (sav.data.activated == 1) {
_global.money = sav.data.money;
_global.theName = sav.data.theName;
_global.baitMS = sav.data.baitMS;
_global.whatBaitE = sav.data.whatBaitE;
_global.baitsOwned = sav.data.baitsOwned;
_global.LureNumbers = sav.data.LureNumbers;
_global.wormPlusD = sav.data.wormPlusD;
_global.wormPlusN = sav.data.wormPlusN;
_global.speedPenalty = sav.data.speedPenalty;
_global.baits = sav.data.baits;
_global.eBait = sav.data.eBait;
_global.goodLure = sav.data.goodLure;
_global.poleQ = sav.data.poleQ;
_global.reelQ = sav.data.reelQ;
_global.lineQ = sav.data.lineQ;
_global.yourFish1 = sav.data.yourFish1;
_global.yourFish2 = sav.data.yourFish2;
_global.yourFish3 = sav.data.yourFish3;
_global.yourFish4 = sav.data.yourFish4;
_global.yourFish5 = sav.data.yourFish5;
_global.yourFish6 = sav.data.yourFish6;
_global.yourFish7 = sav.data.yourFish7;
_global.yourFish8 = sav.data.yourFish8;
_global.timeCheck = sav.data.timeCheck;
_global.knownFishes = sav.data.knownFishes;
_global.YourStr = sav.data.YourStr;
_global.YourDex = sav.data.YourDex;
_global.YourHag = sav.data.YourHag;
_global.expPoints = sav.data.expPoints;
_global.expPointsAll = sav.data.expPointsAll;
_global.expAmount = sav.data.expAmount;
_global.fishOfDay1 = sav.data.fishOfDay1;
_global.fishOfDay2 = sav.data.fishOfDay2;
_global.specialItems = sav.data.specialItems;
_global.bosslevel = sav.data.bosslevel;
_global.lostOnce = sav.data.lostOnce;
_global.boatBroken = sav.data.boatBroken;
_global.cods = sav.data.cods;
_global.ready = sav.data.ready;
_global.fishDay1 = sav.data.fishDay1;
_global.fishDay2 = sav.data.fishDay2;
_global.fishNight1 = sav.data.fishNight1;
_global.fishNight2 = sav.data.fishNight2;
_root.gotoAndStop(_root._currentframe + 2);
this.removeMovieClip("loadOpen");
}
}
Symbol 436 Button
on (release) {
sav = SharedObject.getLocal("tftsnbSave2x");
if (sav.data.activated == 1) {
_global.money = sav.data.money;
_global.theName = sav.data.theName;
_global.baitMS = sav.data.baitMS;
_global.whatBaitE = sav.data.whatBaitE;
_global.baitsOwned = sav.data.baitsOwned;
_global.LureNumbers = sav.data.LureNumbers;
_global.wormPlusD = sav.data.wormPlusD;
_global.wormPlusN = sav.data.wormPlusN;
_global.speedPenalty = sav.data.speedPenalty;
_global.baits = sav.data.baits;
_global.eBait = sav.data.eBait;
_global.goodLure = sav.data.goodLure;
_global.poleQ = sav.data.poleQ;
_global.reelQ = sav.data.reelQ;
_global.lineQ = sav.data.lineQ;
_global.yourFish1 = sav.data.yourFish1;
_global.yourFish2 = sav.data.yourFish2;
_global.yourFish3 = sav.data.yourFish3;
_global.yourFish4 = sav.data.yourFish4;
_global.yourFish5 = sav.data.yourFish5;
_global.yourFish6 = sav.data.yourFish6;
_global.yourFish7 = sav.data.yourFish7;
_global.yourFish8 = sav.data.yourFish8;
_global.timeCheck = sav.data.timeCheck;
_global.knownFishes = sav.data.knownFishes;
_global.YourStr = sav.data.YourStr;
_global.YourDex = sav.data.YourDex;
_global.YourHag = sav.data.YourHag;
_global.expPoints = sav.data.expPoints;
_global.expPointsAll = sav.data.expPointsAll;
_global.expAmount = sav.data.expAmount;
_global.fishOfDay1 = sav.data.fishOfDay1;
_global.fishOfDay2 = sav.data.fishOfDay2;
_global.specialItems = sav.data.specialItems;
_global.bosslevel = sav.data.bosslevel;
_global.lostOnce = sav.data.lostOnce;
_global.boatBroken = sav.data.boatBroken;
_global.cods = sav.data.cods;
_global.ready = sav.data.ready;
_global.fishDay1 = sav.data.fishDay1;
_global.fishDay2 = sav.data.fishDay2;
_global.fishNight1 = sav.data.fishNight1;
_global.fishNight2 = sav.data.fishNight2;
_root.gotoAndStop(_root._currentframe + 2);
this.removeMovieClip("loadOpen");
}
}
Symbol 437 Button
on (release) {
sav = SharedObject.getLocal("tftsnbSave3x");
if (sav.data.activated == 1) {
_global.money = sav.data.money;
_global.theName = sav.data.theName;
_global.baitMS = sav.data.baitMS;
_global.whatBaitE = sav.data.whatBaitE;
_global.baitsOwned = sav.data.baitsOwned;
_global.LureNumbers = sav.data.LureNumbers;
_global.wormPlusD = sav.data.wormPlusD;
_global.wormPlusN = sav.data.wormPlusN;
_global.speedPenalty = sav.data.speedPenalty;
_global.baits = sav.data.baits;
_global.eBait = sav.data.eBait;
_global.goodLure = sav.data.goodLure;
_global.poleQ = sav.data.poleQ;
_global.reelQ = sav.data.reelQ;
_global.lineQ = sav.data.lineQ;
_global.yourFish1 = sav.data.yourFish1;
_global.yourFish2 = sav.data.yourFish2;
_global.yourFish3 = sav.data.yourFish3;
_global.yourFish4 = sav.data.yourFish4;
_global.yourFish5 = sav.data.yourFish5;
_global.yourFish6 = sav.data.yourFish6;
_global.yourFish7 = sav.data.yourFish7;
_global.yourFish8 = sav.data.yourFish8;
_global.timeCheck = sav.data.timeCheck;
_global.knownFishes = sav.data.knownFishes;
_global.YourStr = sav.data.YourStr;
_global.YourDex = sav.data.YourDex;
_global.YourHag = sav.data.YourHag;
_global.expPoints = sav.data.expPoints;
_global.expPointsAll = sav.data.expPointsAll;
_global.expAmount = sav.data.expAmount;
_global.fishOfDay1 = sav.data.fishOfDay1;
_global.fishOfDay2 = sav.data.fishOfDay2;
_global.specialItems = sav.data.specialItems;
_global.bosslevel = sav.data.bosslevel;
_global.lostOnce = sav.data.lostOnce;
_global.boatBroken = sav.data.boatBroken;
_global.cods = sav.data.cods;
_global.ready = sav.data.ready;
_global.fishDay1 = sav.data.fishDay1;
_global.fishDay2 = sav.data.fishDay2;
_global.fishNight1 = sav.data.fishNight1;
_global.fishNight2 = sav.data.fishNight2;
_root.gotoAndStop(_root._currentframe + 2);
this.removeMovieClip("loadOpen");
}
}
Instance of Symbol 428 MovieClip in Symbol 440 MovieClip [load] Frame 1
onClipEvent (load) {
sav = SharedObject.getLocal("tftsnbSave1x");
if (sav.data.activated == 1) {
_parent.p1 = ((sav.data.theName + " - ") + sav.data.money) + " \u00A3";
} else {
_parent.p1 = "Empty slot";
}
sav = SharedObject.getLocal("tftsnbSave2x");
if (sav.data.activated == 1) {
_parent.p2 = ((sav.data.theName + " - ") + sav.data.money) + " \u00A3";
} else {
_parent.p2 = "Empty slot";
}
sav = SharedObject.getLocal("tftsnbSave3x");
if (sav.data.activated == 1) {
_parent.p3 = ((sav.data.theName + " - ") + sav.data.money) + " \u00A3";
} else {
_parent.p3 = "Empty slot";
}
}
Symbol 442 Button
on (release) {
if (_global.buttonsUsable) {
_root.anchorButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
}
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mcCast.castButton.enabled = true;
_root.sailButton.enabled = true;
_root.anchorThing.anchor1.enabled = true;
_root.anchorThing.anchor2.enabled = true;
_root.anchorThing.anchor3.enabled = true;
_root.anchorThing.anchor4.enabled = true;
_root.anchorThing.anchor5.enabled = true;
_root.anchorThing.anchor6.enabled = true;
_root.anchorThing.anchor7.enabled = true;
_root.anchorThing.anchor8.enabled = true;
_root.shopButton.enabled = true;
_root.tavernButton.enabled = true;
_root.boatButton.enabled = true;
_root.traderButton.enabled = true;
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.shopKButton.enabled = true;
_root.shopExit.enabled = true;
_root.newButton.enabled = true;
_root.loadButton.enabled = true;
_root.optionsButton.enabled = true;
_root.quitButton.enabled = true;
_root.travelButton.enabled = true;
_root.fishThrow.enabled = true;
_global.menuOpen = false;
_root.mc_menu.menuButton.enabled = true;
this.removeMovieClip("optionsOpen");
}
Symbol 454 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 467 Button
on (release) {
check1.gotoAndStop(2);
check2.gotoAndStop(1);
check3.gotoAndStop(1);
_quality = "LOW";
}
Symbol 468 Button
on (release) {
check1.gotoAndStop(1);
check2.gotoAndStop(2);
check3.gotoAndStop(1);
_quality = "MEDIUM";
}
Symbol 469 Button
on (release) {
check1.gotoAndStop(1);
check2.gotoAndStop(1);
check3.gotoAndStop(2);
_quality = "HIGH";
}
Symbol 470 Button
on (release) {
if (check4._currentframe == 1) {
check4.gotoAndStop(2);
_global.reelHelper = true;
} else {
check4.gotoAndStop(1);
_global.reelHelper = false;
}
}
Symbol 471 Button
on (release) {
if (music._currentframe == 1) {
music.gotoAndStop(2);
_global.music = false;
} else {
music.gotoAndStop(1);
_global.music = true;
}
}
Symbol 472 Button
on (release) {
if (sounds._currentframe == 1) {
sounds.gotoAndStop(2);
_global.sounds = false;
} else {
sounds.gotoAndStop(1);
_global.sounds = true;
}
}
Symbol 473 Button
on (release) {
if (voices._currentframe == 1) {
voices.gotoAndStop(2);
_global.voices = false;
} else {
voices.gotoAndStop(1);
_global.voices = true;
}
}
Symbol 474 Button
on (release) {
if (check5._currentframe == 1) {
check5.gotoAndStop(2);
_global.beginner = true;
_root.fishLake1._yscale = 400;
_root.fishLake2._yscale = 400;
_root.fishLake3._yscale = 400;
_root.fishLake4._yscale = 400;
} else {
check5.gotoAndStop(1);
_global.beginner = false;
_root.fishLake1._yscale = 200;
_root.fishLake2._yscale = 200;
_root.fishLake3._yscale = 200;
_root.fishLake4._yscale = 200;
}
}
Instance of Symbol 454 MovieClip "music" in Symbol 475 MovieClip [options] Frame 1
onClipEvent (load) {
if (_global.music == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 457 MovieClip "sounds" in Symbol 475 MovieClip [options] Frame 1
onClipEvent (load) {
if (_global.sounds == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 460 MovieClip "voices" in Symbol 475 MovieClip [options] Frame 1
onClipEvent (load) {
if (_global.voices == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 466 MovieClip "check1" in Symbol 475 MovieClip [options] Frame 1
onClipEvent (load) {
if (_quality == "LOW") {
gotoAndStop (2);
}
}
Instance of Symbol 466 MovieClip "check2" in Symbol 475 MovieClip [options] Frame 1
onClipEvent (load) {
if (_quality == "MEDIUM") {
gotoAndStop (2);
}
}
Instance of Symbol 466 MovieClip "check3" in Symbol 475 MovieClip [options] Frame 1
onClipEvent (load) {
if (_quality == "HIGH") {
gotoAndStop (2);
}
}
Instance of Symbol 466 MovieClip "check4" in Symbol 475 MovieClip [options] Frame 1
onClipEvent (load) {
if (_global.reelHelper == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 466 MovieClip "check5" in Symbol 475 MovieClip [options] Frame 1
onClipEvent (load) {
if (_global.beginner == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 479 Button
on (release) {
if (_global.yourFish1[0] == "1") {
if (Math.random() < 0.3) {
if (_global.sounds) {
money1Sound = new Sound(this);
money1Sound.attachSound("money1");
money1Sound.start(0, 1);
}
} else if (Math.random() < 0.6) {
if (_global.sounds) {
money2Sound = new Sound(this);
money2Sound.attachSound("money2");
money2Sound.start(0, 1);
}
} else if (_global.sounds) {
money3Sound = new Sound(this);
money3Sound.attachSound("money3");
money3Sound.start(0, 1);
}
fishInfo.gotoAndStop(1);
_global.money = _global.money + fish1L;
_global.yourFish1 = _global.yourFish2;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
}
}
Symbol 480 Button
on (release) {
if (_global.yourFish3[0] == "1") {
if (Math.random() < 0.3) {
if (_global.sounds) {
money1Sound = new Sound(this);
money1Sound.attachSound("money1");
money1Sound.start(0, 1);
}
} else if (Math.random() < 0.6) {
if (_global.sounds) {
money2Sound = new Sound(this);
money2Sound.attachSound("money2");
money2Sound.start(0, 1);
}
} else if (_global.sounds) {
money3Sound = new Sound(this);
money3Sound.attachSound("money3");
money3Sound.start(0, 1);
}
fishInfo.gotoAndStop(1);
_global.money = _global.money + fish3L;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
}
}
Symbol 481 Button
on (release) {
if (_global.yourFish5[0] == "1") {
if (Math.random() < 0.3) {
if (_global.sounds) {
money1Sound = new Sound(this);
money1Sound.attachSound("money1");
money1Sound.start(0, 1);
}
} else if (Math.random() < 0.6) {
if (_global.sounds) {
money2Sound = new Sound(this);
money2Sound.attachSound("money2");
money2Sound.start(0, 1);
}
} else if (_global.sounds) {
money3Sound = new Sound(this);
money3Sound.attachSound("money3");
money3Sound.start(0, 1);
}
fishInfo.gotoAndStop(1);
_global.money = _global.money + fish5L;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
}
}
Symbol 482 Button
on (release) {
if (_global.yourFish7[0] == "1") {
if (Math.random() < 0.3) {
if (_global.sounds) {
money1Sound = new Sound(this);
money1Sound.attachSound("money1");
money1Sound.start(0, 1);
}
} else if (Math.random() < 0.6) {
if (_global.sounds) {
money2Sound = new Sound(this);
money2Sound.attachSound("money2");
money2Sound.start(0, 1);
}
} else if (_global.sounds) {
money3Sound = new Sound(this);
money3Sound.attachSound("money3");
money3Sound.start(0, 1);
}
fishInfo.gotoAndStop(1);
_global.money = _global.money + fish7L;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
}
}
Symbol 483 Button
on (release) {
if (_global.yourFish2[0] == "1") {
if (Math.random() < 0.3) {
if (_global.sounds) {
money1Sound = new Sound(this);
money1Sound.attachSound("money1");
money1Sound.start(0, 1);
}
} else if (Math.random() < 0.6) {
if (_global.sounds) {
money2Sound = new Sound(this);
money2Sound.attachSound("money2");
money2Sound.start(0, 1);
}
} else if (_global.sounds) {
money3Sound = new Sound(this);
money3Sound.attachSound("money3");
money3Sound.start(0, 1);
}
fishInfo.gotoAndStop(1);
_global.money = _global.money + fish2L;
_global.yourFish2 = _global.yourFish3;
_global.yourFish3 = _global.yourFish4;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
}
}
Symbol 484 Button
on (release) {
if (_global.yourFish4[0] == "1") {
if (Math.random() < 0.3) {
if (_global.sounds) {
money1Sound = new Sound(this);
money1Sound.attachSound("money1");
money1Sound.start(0, 1);
}
} else if (Math.random() < 0.6) {
if (_global.sounds) {
money2Sound = new Sound(this);
money2Sound.attachSound("money2");
money2Sound.start(0, 1);
}
} else if (_global.sounds) {
money3Sound = new Sound(this);
money3Sound.attachSound("money3");
money3Sound.start(0, 1);
}
fishInfo.gotoAndStop(1);
_global.money = _global.money + fish4L;
_global.yourFish4 = _global.yourFish5;
_global.yourFish5 = _global.yourFish6;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
}
}
Symbol 485 Button
on (release) {
if (_global.yourFish6[0] == "1") {
if (Math.random() < 0.3) {
if (_global.sounds) {
money1Sound = new Sound(this);
money1Sound.attachSound("money1");
money1Sound.start(0, 1);
}
} else if (Math.random() < 0.6) {
if (_global.sounds) {
money2Sound = new Sound(this);
money2Sound.attachSound("money2");
money2Sound.start(0, 1);
}
} else if (_global.sounds) {
money3Sound = new Sound(this);
money3Sound.attachSound("money3");
money3Sound.start(0, 1);
}
fishInfo.gotoAndStop(1);
_global.money = _global.money + fish6L;
_global.yourFish6 = _global.yourFish7;
_global.yourFish7 = _global.yourFish8;
_global.yourFish8 = [0, "", 0, 0];
}
}
Symbol 486 Button
on (release) {
if (_global.yourFish8[0] == "1") {
if (Math.random() < 0.3) {
if (_global.sounds) {
money1Sound = new Sound(this);
money1Sound.attachSound("money1");
money1Sound.start(0, 1);
}
} else if (Math.random() < 0.6) {
if (_global.sounds) {
money2Sound = new Sound(this);
money2Sound.attachSound("money2");
money2Sound.start(0, 1);
}
} else if (_global.sounds) {
money3Sound = new Sound(this);
money3Sound.attachSound("money3");
money3Sound.start(0, 1);
}
fishInfo.gotoAndStop(1);
_global.money = _global.money + fish8L;
_global.yourFish8 = [0, "", 0, 0];
}
}
Symbol 492 MovieClip Frame 1
stop();
Symbol 493 Button
on (release) {
_root.shopButton.enabled = true;
_root.tavernButton.enabled = true;
_root.boatButton.enabled = true;
_root.traderButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
this.removeMovieClip("invOpen");
}
Symbol 539 MovieClip Frame 1
stop();
Instance of Symbol 517 MovieClip in Symbol 539 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_global.yourFish1[3]);
}
onClipEvent (enterFrame) {
gotoAndStop(_global.yourFish1[3]);
}
Instance of Symbol 517 MovieClip in Symbol 539 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_global.yourFish2[3]);
}
onClipEvent (enterFrame) {
gotoAndStop(_global.yourFish2[3]);
}
Instance of Symbol 517 MovieClip in Symbol 539 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_global.yourFish3[3]);
}
onClipEvent (enterFrame) {
gotoAndStop(_global.yourFish3[3]);
}
Instance of Symbol 517 MovieClip in Symbol 539 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_global.yourFish4[3]);
}
onClipEvent (enterFrame) {
gotoAndStop(_global.yourFish4[3]);
}
Instance of Symbol 517 MovieClip in Symbol 539 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_global.yourFish5[3]);
}
onClipEvent (enterFrame) {
gotoAndStop(_global.yourFish5[3]);
}
Instance of Symbol 517 MovieClip in Symbol 539 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_global.yourFish6[3]);
}
onClipEvent (enterFrame) {
gotoAndStop(_global.yourFish6[3]);
}
Instance of Symbol 517 MovieClip in Symbol 539 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_global.yourFish7[3]);
}
onClipEvent (enterFrame) {
gotoAndStop(_global.yourFish7[3]);
}
Instance of Symbol 517 MovieClip in Symbol 539 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop(_global.yourFish8[3]);
}
onClipEvent (enterFrame) {
gotoAndStop(_global.yourFish8[3]);
}
Symbol 540 MovieClip [fishTraderScreen] Frame 1
moneyFormat = _global.money + " \u00A3";
fish1OfDay = _global.fishOfDay1;
fish2OfDay = _global.fishOfDay2;
if ((_global.timeCheck >= 1265) || (_global.timeCheck <= 545)) {
dayNight.gotoAndStop(2);
} else {
dayNight.gotoAndStop(1);
}
if (_global.yourFish1[0] != "1") {
fishCheck1._visible = false;
}
if (_global.yourFish2[0] != "1") {
fishCheck2._visible = false;
}
if (_global.yourFish3[0] != "1") {
fishCheck3._visible = false;
}
if (_global.yourFish4[0] != "1") {
fishCheck4._visible = false;
}
if (_global.yourFish5[0] != "1") {
fishCheck5._visible = false;
}
if (_global.yourFish6[0] != "1") {
fishCheck6._visible = false;
}
if (_global.yourFish7[0] != "1") {
fishCheck7._visible = false;
}
if (_global.yourFish8[0] != "1") {
fishCheck8._visible = false;
}
haggle = ((_global.YourHag * 3) / 100) + 1;
fish1Name = _global.yourFish1[1];
if ((_global.yourFish1[1] == _global.fishOfDay1) || (_global.yourFish1[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
fish1L = Math.round((_global.yourFish1[4] * haggle) * bonus);
fish1LX = fish1L + " \u00A3";
fish1Lbs = _global.yourFish1[2] + " lbs";
fish2Name = _global.yourFish2[1];
if ((_global.yourFish2[1] == _global.fishOfDay1) || (_global.yourFish2[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
fish2L = Math.round((_global.yourFish2[4] * haggle) * bonus);
fish2LX = fish2L + " \u00A3";
fish2Lbs = _global.yourFish2[2] + " lbs";
fish3Name = _global.yourFish3[1];
if ((_global.yourFish3[1] == _global.fishOfDay1) || (_global.yourFish3[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
fish3L = Math.round((_global.yourFish3[4] * haggle) * bonus);
fish3LX = fish3L + " \u00A3";
fish3Lbs = _global.yourFish3[2] + " lbs";
fish4Name = _global.yourFish4[1];
if ((_global.yourFish4[1] == _global.fishOfDay1) || (_global.yourFish4[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
fish4L = Math.round((_global.yourFish4[4] * haggle) * bonus);
fish4LX = fish4L + " \u00A3";
fish4Lbs = _global.yourFish4[2] + " lbs";
fish5Name = _global.yourFish5[1];
if ((_global.yourFish5[1] == _global.fishOfDay1) || (_global.yourFish5[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
fish5L = Math.round((_global.yourFish5[4] * haggle) * bonus);
fish5LX = fish5L + " \u00A3";
fish5Lbs = _global.yourFish5[2] + " lbs";
fish6Name = _global.yourFish6[1];
if ((_global.yourFish6[1] == _global.fishOfDay1) || (_global.yourFish6[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
fish6L = Math.round((_global.yourFish6[4] * haggle) * bonus);
fish6LX = fish6L + " \u00A3";
fish6Lbs = _global.yourFish6[2] + " lbs";
fish7Name = _global.yourFish7[1];
if ((_global.yourFish7[1] == _global.fishOfDay1) || (_global.yourFish7[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
fish7L = Math.round((_global.yourFish7[4] * haggle) * bonus);
fish7LX = fish7L + " \u00A3";
fish7Lbs = _global.yourFish7[2] + " lbs";
fish8Name = _global.yourFish8[1];
if ((_global.yourFish8[1] == _global.fishOfDay1) || (_global.yourFish8[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
fish8L = Math.round((_global.yourFish8[4] * haggle) * bonus);
fish8LX = fish8L + " \u00A3";
fish8Lbs = _global.yourFish8[2] + " lbs";
fish1Short = ((_global.yourFish1[1] + " ") + fish1L) + " \u00A3";
fish2Short = ((_global.yourFish2[1] + " ") + fish2L) + " \u00A3";
fish3Short = ((_global.yourFish3[1] + " ") + fish3L) + " \u00A3";
fish4Short = ((_global.yourFish4[1] + " ") + fish4L) + " \u00A3";
fish5Short = ((_global.yourFish5[1] + " ") + fish5L) + " \u00A3";
fish6Short = ((_global.yourFish6[1] + " ") + fish6L) + " \u00A3";
fish7Short = ((_global.yourFish7[1] + " ") + fish7L) + " \u00A3";
fish8Short = ((_global.yourFish8[1] + " ") + fish8L) + " \u00A3";
Instance of Symbol 428 MovieClip in Symbol 540 MovieClip [fishTraderScreen] Frame 1
onClipEvent (enterFrame) {
_parent.fish1OfDay = _global.fishOfDay1;
_parent.fish2OfDay = _global.fishOfDay2;
if ((_global.timeCheck >= 1265) || (_global.timeCheck < 545)) {
_parent.dayNight.gotoAndStop(2);
} else {
_parent.dayNight.gotoAndStop(1);
}
haggle = ((_global.YourHag * 3) / 100) + 1;
if ((_global.yourFish1[1] == _global.fishOfDay1) || (_global.yourFish1[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
_parent.fish1Name = _global.yourFish1[1];
_parent.fish1L = Math.round((_global.yourFish1[4] * haggle) * bonus);
_parent.fish1LX = _parent.fish1L + " \u00A3";
_parent.fish1Lbs = _global.yourFish1[2] + " lbs";
_parent.fish2Name = _global.yourFish2[1];
if ((_global.yourFish2[1] == _global.fishOfDay1) || (_global.yourFish2[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
_parent.fish2L = Math.round((_global.yourFish2[4] * haggle) * bonus);
_parent.fish2LX = _parent.fish2L + " \u00A3";
_parent.fish2Lbs = _global.yourFish2[2] + " lbs";
_parent.fish3Name = _global.yourFish3[1];
if ((_global.yourFish3[1] == _global.fishOfDay1) || (_global.yourFish3[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
_parent.fish3L = Math.round((_global.yourFish3[4] * haggle) * bonus);
_parent.fish3LX = _parent.fish3L + " \u00A3";
_parent.fish3Lbs = _global.yourFish3[2] + " lbs";
_parent.fish4Name = _global.yourFish4[1];
if ((_global.yourFish4[1] == _global.fishOfDay1) || (_global.yourFish4[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
_parent.fish4L = Math.round((_global.yourFish4[4] * haggle) * bonus);
_parent.fish4LX = _parent.fish4L + " \u00A3";
_parent.fish4Lbs = _global.yourFish4[2] + " lbs";
_parent.fish5Name = _global.yourFish5[1];
if ((_global.yourFish5[1] == _global.fishOfDay1) || (_global.yourFish5[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
_parent.fish5L = Math.round((_global.yourFish5[4] * haggle) * bonus);
_parent.fish5LX = _parent.fish5L + " \u00A3";
_parent.fish5Lbs = _global.yourFish5[2] + " lbs";
_parent.fish6Name = _global.yourFish6[1];
if ((_global.yourFish6[1] == _global.fishOfDay1) || (_global.yourFish6[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
_parent.fish6L = Math.round((_global.yourFish6[4] * haggle) * bonus);
_parent.fish6LX = _parent.fish6L + " \u00A3";
_parent.fish6Lbs = _global.yourFish6[2] + " lbs";
_parent.fish7Name = _global.yourFish7[1];
if ((_global.yourFish7[1] == _global.fishOfDay1) || (_global.yourFish7[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
_parent.fish7L = Math.round((_global.yourFish7[4] * haggle) * bonus);
_parent.fish7LX = _parent.fish7L + " \u00A3";
_parent.fish7Lbs = _global.yourFish7[2] + " lbs";
_parent.fish8Name = _global.yourFish8[1];
if ((_global.yourFish8[1] == _global.fishOfDay1) || (_global.yourFish8[1] == _global.fishOfDay2)) {
bonus = 1.3;
} else {
bonus = 1;
}
_parent.fish8L = Math.round((_global.yourFish8[4] * haggle) * bonus);
_parent.fish8Lbs = _global.yourFish8[2] + " lbs";
_parent.moneyFormat = _global.money + " \u00A3";
_parent.fish1Short = ((_global.yourFish1[1] + " ") + _parent.fish1L) + " \u00A3";
_parent.fish2Short = ((_global.yourFish2[1] + " ") + _parent.fish2L) + " \u00A3";
_parent.fish3Short = ((_global.yourFish3[1] + " ") + _parent.fish3L) + " \u00A3";
_parent.fish4Short = ((_global.yourFish4[1] + " ") + _parent.fish4L) + " \u00A3";
_parent.fish5Short = ((_global.yourFish5[1] + " ") + _parent.fish5L) + " \u00A3";
_parent.fish6Short = ((_global.yourFish6[1] + " ") + _parent.fish6L) + " \u00A3";
_parent.fish7Short = ((_global.yourFish7[1] + " ") + _parent.fish7L) + " \u00A3";
_parent.fish8Short = ((_global.yourFish8[1] + " ") + _parent.fish8L) + " \u00A3";
if (_global.yourFish1[0] != "1") {
_parent.fishCheck1._visible = false;
}
if (_global.yourFish2[0] != "1") {
_parent.fishCheck2._visible = false;
}
if (_global.yourFish3[0] != "1") {
_parent.fishCheck3._visible = false;
}
if (_global.yourFish4[0] != "1") {
_parent.fishCheck4._visible = false;
}
if (_global.yourFish5[0] != "1") {
_parent.fishCheck5._visible = false;
}
if (_global.yourFish6[0] != "1") {
_parent.fishCheck6._visible = false;
}
if (_global.yourFish7[0] != "1") {
_parent.fishCheck7._visible = false;
}
if (_global.yourFish8[0] != "1") {
_parent.fishCheck8._visible = false;
}
}
Symbol 542 Button
on (release) {
if (_global.buttonsUsable) {
_root.anchorButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
}
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_root.mcCast.castButton.enabled = true;
_root.sailButton.enabled = true;
_root.anchorThing.anchor1.enabled = true;
_root.anchorThing.anchor2.enabled = true;
_root.anchorThing.anchor3.enabled = true;
_root.anchorThing.anchor4.enabled = true;
_root.anchorThing.anchor5.enabled = true;
_root.anchorThing.anchor6.enabled = true;
_root.anchorThing.anchor7.enabled = true;
_root.anchorThing.anchor8.enabled = true;
_root.shopButton.enabled = true;
_root.tavernButton.enabled = true;
_root.boatButton.enabled = true;
_root.traderButton.enabled = true;
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.shopKButton.enabled = true;
_root.shopExit.enabled = true;
_root.travelButton.enabled = true;
_root.fishThrow.enabled = true;
_global.menuOpen = false;
this.removeMovieClip("statsOpen");
}
Symbol 570 MovieClip Frame 1
stop();
harpo = _global.harpoons;
cods = _global.cods;
Symbol 571 Button
on (release) {
infotext.gotoAndStop(2);
}
Symbol 572 Button
on (release) {
infotext.gotoAndStop(3);
}
Symbol 573 Button
on (release) {
infotext.gotoAndStop(4);
}
Symbol 584 MovieClip Frame 1
stop();
Symbol 588 Button
on (release) {
if (_global.expPoints > 0) {
_global.YourStr = _global.YourStr + 1;
_global.expPoints = _global.expPoints - 1;
}
}
Symbol 590 Button
on (release) {
if (_global.expPoints > 0) {
_global.YourDex = _global.YourDex + 1;
_global.expPoints = _global.expPoints - 1;
}
}
Symbol 592 Button
on (release) {
if (_global.expPoints > 0) {
_global.YourHag = _global.YourHag + 1;
_global.expPoints = _global.expPoints - 1;
}
}
Symbol 597 Button
on (release) {
_parent.infotext.gotoAndStop(13);
}
Symbol 601 Button
on (release) {
_parent.infotext.gotoAndStop(10);
}
Symbol 604 Button
on (release) {
_parent.infotext.gotoAndStop(6);
}
Symbol 607 Button
on (release) {
_parent.infotext.gotoAndStop(7);
}
Symbol 610 Button
on (release) {
_parent.infotext.gotoAndStop(8);
}
Symbol 615 Button
on (release) {
_parent.infotext.gotoAndStop(9);
}
Symbol 618 Button
on (release) {
_parent.infotext.gotoAndStop(11);
}
Symbol 621 Button
on (release) {
_parent.infotext.gotoAndStop(12);
}
Symbol 624 Button
on (release) {
_parent.infotext.gotoAndStop(5);
}
Symbol 626 MovieClip [stats] Frame 1
str.gotoAndStop(_global.YourStr);
dex.gotoAndStop(_global.YourDex);
hag.gotoAndStop(_global.YourHag);
yourName = _global.theName;
if (_global.specialItems == 0) {
s1._visible = false;
s2._visible = false;
s3._visible = false;
s4._visible = false;
s5._visible = false;
s6._visible = false;
s7._visible = false;
s8._visible = false;
s9._visible = false;
} else if (_global.specialItems == 1) {
s2._visible = false;
s3._visible = false;
s4._visible = false;
s5._visible = false;
s6._visible = false;
s7._visible = false;
s8._visible = false;
s9._visible = false;
} else if (_global.specialItems == 2) {
s3._visible = false;
s4._visible = false;
s5._visible = false;
s6._visible = false;
s7._visible = false;
s8._visible = false;
s9._visible = false;
} else if (_global.specialItems == 3) {
if (_global.cods < 1) {
s4._visible = false;
}
s5._visible = false;
s6._visible = false;
s7._visible = false;
s8._visible = false;
s9._visible = false;
} else if (_global.specialItems == 4) {
if (_global.cods < 1) {
s4._visible = false;
}
s6._visible = false;
s7._visible = false;
s8._visible = false;
s9._visible = false;
} else if (_global.specialItems == 5) {
if (_global.cods < 1) {
s4._visible = false;
}
s7._visible = false;
s8._visible = false;
s9._visible = false;
} else if (_global.specialItems == 6) {
if (_global.cods < 1) {
s4._visible = false;
}
s8._visible = false;
s9._visible = false;
} else if (_global.specialItems == 7) {
if (_global.cods < 1) {
s4._visible = false;
}
if (_global.harpoons < 1) {
s7._visible = false;
}
s9._visible = false;
} else if (_global.specialItems == 8) {
if (_global.cods < 1) {
s4._visible = false;
}
if (_global.harpoons < 1) {
s7._visible = false;
}
} else {
if (_global.cods < 1) {
s4._visible = false;
}
if (_global.harpoons < 1) {
s7._visible = false;
}
trace("kaikki n\u00E4kyvis");
}
Instance of Symbol 589 MovieClip in Symbol 626 MovieClip [stats] Frame 1
onClipEvent (load) {
if ((_global.expPoints > 0) && (_global.YourStr < 10)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_global.expPoints > 0) && (_global.YourStr < 10)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 591 MovieClip in Symbol 626 MovieClip [stats] Frame 1
onClipEvent (load) {
if ((_global.expPoints > 0) && (_global.YourDex < 10)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_global.expPoints > 0) && (_global.YourDex < 10)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 593 MovieClip in Symbol 626 MovieClip [stats] Frame 1
onClipEvent (load) {
if ((_global.expPoints > 0) && (_global.YourHag < 10)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_global.expPoints > 0) && (_global.YourHag < 10)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 428 MovieClip in Symbol 626 MovieClip [stats] Frame 1
onClipEvent (load) {
_parent.exp = _global.expPoints;
}
onClipEvent (enterFrame) {
_parent.exp = _global.expPoints;
_parent.str.gotoAndStop(_global.YourStr);
_parent.dex.gotoAndStop(_global.YourDex);
_parent.hag.gotoAndStop(_global.YourHag);
}
Symbol 628 Button
on (release) {
_root.shopKButton.enabled = true;
_root.shopExit.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
this.removeMovieClip("shopOpen");
}
Symbol 633 Button
on (release) {
_parent.shopInfo.gotoAndStop(5);
}
Symbol 636 Button
on (release) {
_parent.shopInfo.gotoAndStop(6);
}
Symbol 639 Button
on (release) {
_parent.shopInfo.gotoAndStop(7);
}
Symbol 642 Button
on (release) {
_parent.shopInfo.gotoAndStop(8);
}
Symbol 644 Button
on (release) {
_parent.shopInfo.gotoAndStop(9);
}
Symbol 646 Button
on (release) {
_parent.shopInfo.gotoAndStop(10);
}
Symbol 648 Button
on (release) {
_parent.shopInfo.gotoAndStop(11);
}
Symbol 650 Button
on (release) {
_parent.shopInfo.gotoAndStop(12);
}
Symbol 653 Button
on (release) {
_parent.shopInfo.gotoAndStop(13);
}
Symbol 655 Button
on (release) {
_parent.shopInfo.gotoAndStop(14);
}
Symbol 657 Button
on (release) {
_parent.shopInfo.gotoAndStop(4);
}
Symbol 660 Button
on (release) {
_parent.shopInfo.gotoAndStop(2);
}
Symbol 663 Button
on (release) {
_parent.shopInfo.gotoAndStop(3);
}
Symbol 670 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(40 * haggle);
if (_global.YourDex > 5) {
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.poleQ = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
} else {
gotoAndStop (23);
}
}
Symbol 675 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(35 * haggle);
if (_global.YourDex > 3) {
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.reelQ = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
} else {
gotoAndStop (23);
}
}
Symbol 679 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(25 * haggle);
if (_global.YourDex > 1) {
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.lineQ = 0;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
} else {
gotoAndStop (23);
}
}
Symbol 681 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(29 * haggle);
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.baits[2] = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
}
Symbol 683 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(29 * haggle);
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.baits[3] = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
}
Symbol 685 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(36 * haggle);
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.baits[4] = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
}
Symbol 687 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(32 * haggle);
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.baits[5] = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
}
Symbol 689 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(39 * haggle);
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.baits[6] = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
}
Symbol 691 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(34 * haggle);
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.baits[7] = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
}
Symbol 693 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(30 * haggle);
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.baits[8] = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
}
Symbol 695 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(30 * haggle);
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.baits[9] = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
}
Symbol 697 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(31 * haggle);
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.baits[10] = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
}
Symbol 699 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(33 * haggle);
if (_global.money >= pricex) {
_global.money = _global.money - pricex;
_global.baits[11] = 1;
gotoAndStop (16);
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (15);
}
}
Symbol 704 Button
on (release) {
if (_global.money >= 1) {
if (_global.baitsOwned[0] <= 8) {
_global.money = _global.money - 1;
_global.baitsOwned[0] = _global.baitsOwned[0] + 2;
buySound.stop();
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (21);
}
} else {
gotoAndStop (15);
}
}
Symbol 708 Button
on (release) {
if (_global.money >= 1) {
if (_global.baitsOwned[1] <= 9) {
_global.money = _global.money - 1;
_global.baitsOwned[1] = _global.baitsOwned[1] + 1;
buySound.stop();
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (21);
}
} else {
gotoAndStop (15);
}
}
Symbol 711 Button
on (release) {
if (_global.money >= 1) {
if (_global.baitsOwned[2] <= 8) {
_global.money = _global.money - 1;
_global.baitsOwned[2] = _global.baitsOwned[2] + 2;
buySound.stop();
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (21);
}
} else {
gotoAndStop (15);
}
}
Symbol 714 Button
on (release) {
if (_global.money >= 1) {
if (_global.baitsOwned[3] <= 9) {
_global.money = _global.money - 1;
_global.baitsOwned[3] = _global.baitsOwned[3] + 1;
buySound.stop();
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
} else {
gotoAndStop (21);
}
} else {
gotoAndStop (15);
}
}
Symbol 717 Button
on (release) {
haggle = 1 - ((_global.YourHag * 2) / 100);
pricex = Math.round(30 * haggle);
if (_global.money >= pricex) {
if (_global.sounds) {
buySound = new Sound(this);
buySound.attachSound("buySound");
buySound.start(0, 1);
}
_global.money = _global.money - pricex;
_parent.book._visible = false;
_global.knownFishes = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
} else {
gotoAndStop (15);
}
}
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 2
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(40 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 3
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(35 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 4
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(25 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 5
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(29 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 6
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(29 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 7
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(36 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 8
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(32 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 9
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(39 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 10
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(34 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 11
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(30 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 12
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(30 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 13
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(31 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 14
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(33 * haggle) + " \u00A3";
Symbol 720 MovieClip Frame 17
price = "0.5 \u00A3";
Symbol 720 MovieClip Frame 18
price = "1 \u00A3";
Symbol 720 MovieClip Frame 19
price = "0.5 \u00A3";
Symbol 720 MovieClip Frame 20
price = "1 \u00A3";
Symbol 720 MovieClip Frame 22
haggle = 1 - ((_global.YourHag * 2) / 100);
price = Math.round(30 * haggle) + " \u00A3";
Symbol 722 Button
on (release) {
_parent.shopInfo.gotoAndStop(17);
}
Symbol 725 Button
on (release) {
_parent.shopInfo.gotoAndStop(18);
}
Symbol 728 Button
on (release) {
_parent.shopInfo.gotoAndStop(19);
}
Symbol 731 Button
on (release) {
_parent.shopInfo.gotoAndStop(20);
}
Symbol 734 Button
on (release) {
_parent.shopInfo.gotoAndStop(22);
}
Symbol 736 MovieClip [shop] Frame 1
if (_global.poleQ == 1) {
pole._visible = false;
}
if (_global.reelQ == 1) {
reel._visible = false;
}
if (_global.lineQ == 0) {
line._visible = false;
}
moneyFormat = _global.money + " \u00A3";
if (_global.baits[2] == "1") {
bait1._visible = false;
}
if (_global.baits[3] == "1") {
bait2._visible = false;
}
if (_global.baits[4] == "1") {
bait3._visible = false;
}
if (_global.baits[5] == "1") {
bait4._visible = false;
}
if (_global.baits[6] == "1") {
bait5._visible = false;
}
if (_global.baits[7] == "1") {
bait6._visible = false;
}
if (_global.baits[8] == "1") {
bait7._visible = false;
}
if (_global.baits[9] == "1") {
bait8._visible = false;
}
if (_global.baits[10] == "1") {
bait9._visible = false;
}
if (_global.baits[11] == "1") {
bait10._visible = false;
}
numb = 0;
var i = 0;
while (i <= 31) {
if (_global.knownFishes[i] == 1) {
numb++;
}
if (i == 31) {
if (numb == 32) {
book._visible = false;
}
}
i++;
}
Instance of Symbol 428 MovieClip in Symbol 736 MovieClip [shop] Frame 1
onClipEvent (load) {
numb = 0;
}
onClipEvent (enterFrame) {
if (_global.poleQ == 1) {
_parent.pole._visible = false;
}
if (_global.reelQ == 1) {
_parent.reel._visible = false;
}
if (_global.lineQ == 0) {
_parent.line._visible = false;
}
_parent.leftWorms = ("You have " + _global.baitsOwned[0]) + " of these";
_parent.leftFlies = ("You have " + _global.baitsOwned[1]) + " of these";
_parent.leftMaggots = ("You have " + _global.baitsOwned[2]) + " of these";
_parent.leftSpiders = ("You have " + _global.baitsOwned[3]) + " of these";
_parent.moneyFormat = _global.money + " \u00A3";
if (_global.baits[2] == "1") {
_parent.bait1._visible = false;
}
if (_global.baits[3] == "1") {
_parent.bait2._visible = false;
}
if (_global.baits[4] == "1") {
_parent.bait3._visible = false;
}
if (_global.baits[5] == "1") {
_parent.bait4._visible = false;
}
if (_global.baits[6] == "1") {
_parent.bait5._visible = false;
}
if (_global.baits[7] == "1") {
_parent.bait6._visible = false;
}
if (_global.baits[8] == "1") {
_parent.bait7._visible = false;
}
if (_global.baits[9] == "1") {
_parent.bait8._visible = false;
}
if (_global.baits[10] == "1") {
_parent.bait9._visible = false;
}
if (_global.baits[11] == "1") {
_parent.bait10._visible = false;
}
}
Symbol 754 Button
on (release) {
_root.newButton.enabled = true;
_root.loadButton.enabled = true;
_root.optionsButton.enabled = true;
_root.quitButton.enabled = true;
this.removeMovieClip("characterCreationOpen");
}
Symbol 755 Button
on (release) {
if (yourName.text == "") {
infotext.gotoAndStop(6);
}
if (pointsleft != 0) {
infotext.gotoAndStop(5);
}
if ((pointsleft == 0) && (yourName.text != "")) {
_global.theName = yourName.text;
_root.gotoAndPlay(_root._currentframe + 1);
this.removeMovieClip("characterCreationOpen");
}
}
Symbol 762 MovieClip Frame 1
stop();
Symbol 765 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (2);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourStr = 2;
_parent.infotext.gotoAndStop(2);
}
}
Symbol 769 Button
on (release) {
_parent.infotext.gotoAndStop(2);
}
Symbol 770 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (3);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourStr = 3;
_parent.infotext.gotoAndStop(2);
}
}
Symbol 771 Button
on (release) {
gotoAndStop (1);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourStr = 1;
_parent.infotext.gotoAndStop(2);
}
Symbol 772 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (4);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourStr = 4;
_parent.infotext.gotoAndStop(2);
}
}
Symbol 773 Button
on (release) {
gotoAndStop (2);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourStr = 2;
_parent.infotext.gotoAndStop(2);
}
Symbol 774 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (5);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourStr = 5;
_parent.infotext.gotoAndStop(2);
}
}
Symbol 775 Button
on (release) {
gotoAndStop (3);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourStr = 3;
_parent.infotext.gotoAndStop(2);
}
Symbol 776 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (6);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourStr = 6;
_parent.infotext.gotoAndStop(2);
}
}
Symbol 777 Button
on (release) {
gotoAndStop (4);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourStr = 4;
_parent.infotext.gotoAndStop(2);
}
Symbol 778 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (7);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourStr = 7;
_parent.infotext.gotoAndStop(2);
}
}
Symbol 779 Button
on (release) {
gotoAndStop (5);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourStr = 5;
_parent.infotext.gotoAndStop(2);
}
Symbol 780 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (8);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourStr = 8;
_parent.infotext.gotoAndStop(2);
}
}
Symbol 781 Button
on (release) {
gotoAndStop (6);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourStr = 6;
_parent.infotext.gotoAndStop(2);
}
Symbol 782 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (9);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourStr = 9;
_parent.infotext.gotoAndStop(2);
}
}
Symbol 783 Button
on (release) {
gotoAndStop (7);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourStr = 7;
_parent.infotext.gotoAndStop(2);
}
Symbol 784 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (10);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourStr = 10;
_parent.infotext.gotoAndStop(2);
}
}
Symbol 785 Button
on (release) {
gotoAndStop (8);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourStr = 8;
_parent.infotext.gotoAndStop(2);
}
Symbol 786 Button
on (release) {
_parent.infotext.gotoAndStop(2);
}
Symbol 787 Button
on (release) {
gotoAndStop (9);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourStr = 9;
_parent.infotext.gotoAndStop(2);
}
Symbol 788 MovieClip Frame 1
stop();
Symbol 789 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (2);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourDex = 2;
_parent.infotext.gotoAndStop(3);
}
}
Symbol 790 Button
on (release) {
_parent.infotext.gotoAndStop(3);
}
Symbol 791 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (3);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourDex = 3;
_parent.infotext.gotoAndStop(3);
}
}
Symbol 792 Button
on (release) {
gotoAndStop (1);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourDex = 1;
_parent.infotext.gotoAndStop(3);
}
Symbol 793 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (4);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourDex = 4;
_parent.infotext.gotoAndStop(3);
}
}
Symbol 794 Button
on (release) {
gotoAndStop (2);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourDex = 2;
_parent.infotext.gotoAndStop(3);
}
Symbol 795 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (5);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourDex = 5;
_parent.infotext.gotoAndStop(3);
}
}
Symbol 796 Button
on (release) {
gotoAndStop (3);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourDex = 3;
_parent.infotext.gotoAndStop(3);
}
Symbol 797 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (6);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourDex = 6;
_parent.infotext.gotoAndStop(3);
}
}
Symbol 798 Button
on (release) {
gotoAndStop (4);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourDex = 4;
_parent.infotext.gotoAndStop(3);
}
Symbol 799 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (7);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourDex = 7;
_parent.infotext.gotoAndStop(3);
}
}
Symbol 800 Button
on (release) {
gotoAndStop (5);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourDex = 5;
_parent.infotext.gotoAndStop(3);
}
Symbol 801 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (8);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourDex = 8;
_parent.infotext.gotoAndStop(3);
}
}
Symbol 802 Button
on (release) {
gotoAndStop (6);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourDex = 6;
_parent.infotext.gotoAndStop(3);
}
Symbol 803 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (9);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourDex = 9;
_parent.infotext.gotoAndStop(3);
}
}
Symbol 804 Button
on (release) {
gotoAndStop (7);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourDex = 7;
_parent.infotext.gotoAndStop(3);
}
Symbol 805 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (10);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourDex = 10;
_parent.infotext.gotoAndStop(3);
}
}
Symbol 806 Button
on (release) {
gotoAndStop (8);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourDex = 8;
_parent.infotext.gotoAndStop(3);
}
Symbol 807 Button
on (release) {
_parent.infotext.gotoAndStop(3);
}
Symbol 808 Button
on (release) {
gotoAndStop (9);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourDex = 9;
_parent.infotext.gotoAndStop(3);
}
Symbol 809 MovieClip Frame 1
stop();
Symbol 810 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (2);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourHag = 2;
_parent.infotext.gotoAndStop(4);
}
}
Symbol 811 Button
on (release) {
_parent.infotext.gotoAndStop(4);
}
Symbol 812 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (3);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourHag = 3;
_parent.infotext.gotoAndStop(4);
}
}
Symbol 813 Button
on (release) {
gotoAndStop (1);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourHag = 1;
_parent.infotext.gotoAndStop(4);
}
Symbol 814 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (4);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourHag = 4;
_parent.infotext.gotoAndStop(4);
}
}
Symbol 815 Button
on (release) {
gotoAndStop (2);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourHag = 2;
_parent.infotext.gotoAndStop(4);
}
Symbol 816 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (5);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourHag = 5;
_parent.infotext.gotoAndStop(4);
}
}
Symbol 817 Button
on (release) {
gotoAndStop (3);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourHag = 3;
_parent.infotext.gotoAndStop(4);
}
Symbol 818 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (6);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourHag = 6;
_parent.infotext.gotoAndStop(4);
}
}
Symbol 819 Button
on (release) {
gotoAndStop (4);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourHag = 4;
_parent.infotext.gotoAndStop(4);
}
Symbol 820 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (7);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourHag = 7;
_parent.infotext.gotoAndStop(4);
}
}
Symbol 821 Button
on (release) {
gotoAndStop (5);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourHag = 5;
_parent.infotext.gotoAndStop(4);
}
Symbol 822 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (8);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourHag = 8;
_parent.infotext.gotoAndStop(4);
}
}
Symbol 823 Button
on (release) {
gotoAndStop (6);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourHag = 6;
_parent.infotext.gotoAndStop(4);
}
Symbol 824 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (9);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourHag = 9;
_parent.infotext.gotoAndStop(4);
}
}
Symbol 825 Button
on (release) {
gotoAndStop (7);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourHag = 7;
_parent.infotext.gotoAndStop(4);
}
Symbol 826 Button
on (release) {
if (_parent.pointsleft > 0) {
gotoAndStop (10);
_parent.pointsleft = _parent.pointsleft - 1;
_global.YourHag = 10;
_parent.infotext.gotoAndStop(4);
}
}
Symbol 827 Button
on (release) {
gotoAndStop (8);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourHag = 8;
_parent.infotext.gotoAndStop(4);
}
Symbol 828 Button
on (release) {
_parent.infotext.gotoAndStop(4);
}
Symbol 829 Button
on (release) {
gotoAndStop (9);
_parent.pointsleft = _parent.pointsleft + 1;
_global.YourHag = 9;
_parent.infotext.gotoAndStop(4);
}
Symbol 830 MovieClip Frame 1
stop();
Symbol 831 MovieClip [characterCreation] Frame 1
pointsleft = 9;
_global.YourStr = 1;
_global.YourDex = 1;
_global.YourHag = 1;
Selection.setFocus("yourName");
Symbol 875 MovieClip Frame 1
_global.counterS = 1;
Instance of Symbol 428 MovieClip in Symbol 875 MovieClip Frame 1
onClipEvent (load) {
if (!Key.isDown(32)) {
ablecounter = true;
} else {
ablecounter = false;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(32) && (ablecounter)) {
_parent.gotoAndStop(11);
}
if (!Key.isDown(32)) {
ablecounter = true;
}
}
Symbol 875 MovieClip Frame 7
_global.counterS = 0.8;
Symbol 875 MovieClip Frame 12
_global.counterS = 0.2;
Symbol 875 MovieClip Frame 13
stop();
if (_global.counterS > Math.random()) {
_root.messages.gotoAndPlay(364);
} else {
_global.missedLetter = false;
_root.bait.fightSound.stop();
trace("Missasit vastaiskun");
_global.fishFights = false;
_global.hookedFish = ["", 0, 0];
_global.fishOnHook = false;
_root.tension.gotoAndStop(1);
_root.bait.baitSplashing.gotoAndStop(1);
clearInterval(_root.bait.fightInterval);
_global.fightSet = false;
_root.messages.gotoAndPlay(848);
}
Symbol 895 MovieClip Frame 1
stop();
Symbol 895 MovieClip Frame 2
play();
Instance of Symbol 877 MovieClip in Symbol 895 MovieClip Frame 2
onClipEvent (load) {
this._rotation = 90 - _root.bait._rotation;
}
onClipEvent (enterFrame) {
this._rotation = 90 - _root.bait._rotation;
}
Instance of Symbol 878 MovieClip in Symbol 895 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(69)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(90)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(88)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(67)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(83)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(65)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(68)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(87)) {
_parent.gotoAndStop(1);
}
}
Symbol 895 MovieClip Frame 35
_global.missedLetter = true;
_root.timer.gotoAndPlay(2);
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 50);
}
gotoAndStop (1);
Symbol 895 MovieClip Frame 36
play();
Instance of Symbol 880 MovieClip in Symbol 895 MovieClip Frame 36
onClipEvent (load) {
this._rotation = 90 - _root.bait._rotation;
}
onClipEvent (enterFrame) {
this._rotation = 90 - _root.bait._rotation;
}
Instance of Symbol 878 MovieClip in Symbol 895 MovieClip Frame 36
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(69)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(90)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(88)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(67)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(87)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(65)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(68)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(83)) {
_parent.gotoAndStop(1);
}
}
Symbol 895 MovieClip Frame 71
_global.missedLetter = true;
_root.timer.gotoAndPlay(2);
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 50);
}
gotoAndStop (1);
Symbol 895 MovieClip Frame 72
play();
Instance of Symbol 882 MovieClip in Symbol 895 MovieClip Frame 72
onClipEvent (load) {
this._rotation = 90 - _root.bait._rotation;
}
onClipEvent (enterFrame) {
this._rotation = 90 - _root.bait._rotation;
}
Instance of Symbol 878 MovieClip in Symbol 895 MovieClip Frame 72
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(69)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(90)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(88)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(67)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(87)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(83)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(65)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(68)) {
_parent.gotoAndStop(1);
}
}
Symbol 895 MovieClip Frame 107
_global.missedLetter = true;
_root.timer.gotoAndPlay(2);
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 50);
}
gotoAndStop (1);
Symbol 895 MovieClip Frame 108
play();
Instance of Symbol 884 MovieClip in Symbol 895 MovieClip Frame 108
onClipEvent (load) {
this._rotation = 90 - _root.bait._rotation;
}
onClipEvent (enterFrame) {
this._rotation = 90 - _root.bait._rotation;
}
Instance of Symbol 878 MovieClip in Symbol 895 MovieClip Frame 108
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(69)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(90)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(88)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(67)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(87)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(83)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(68)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(65)) {
_parent.gotoAndStop(1);
}
}
Symbol 895 MovieClip Frame 143
_global.missedLetter = true;
_root.timer.gotoAndPlay(2);
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 50);
}
gotoAndStop (1);
Symbol 895 MovieClip Frame 144
play();
Instance of Symbol 886 MovieClip in Symbol 895 MovieClip Frame 144
onClipEvent (load) {
this._rotation = 90 - _root.bait._rotation;
}
onClipEvent (enterFrame) {
this._rotation = 90 - _root.bait._rotation;
}
Instance of Symbol 878 MovieClip in Symbol 895 MovieClip Frame 144
onClipEvent (enterFrame) {
if (Key.isDown(69)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(90)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(88)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(67)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(87)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(65)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(68)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(81)) {
_parent.gotoAndStop(1);
}
}
Symbol 895 MovieClip Frame 179
_global.missedLetter = true;
_root.timer.gotoAndPlay(2);
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 50);
}
gotoAndStop (1);
Symbol 895 MovieClip Frame 180
play();
Instance of Symbol 888 MovieClip in Symbol 895 MovieClip Frame 180
onClipEvent (load) {
this._rotation = 90 - _root.bait._rotation;
}
onClipEvent (enterFrame) {
this._rotation = 90 - _root.bait._rotation;
}
Instance of Symbol 878 MovieClip in Symbol 895 MovieClip Frame 180
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(90)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(88)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(67)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(87)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(83)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(65)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(68)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(69)) {
_parent.gotoAndStop(1);
}
}
Symbol 895 MovieClip Frame 215
_global.missedLetter = true;
_root.timer.gotoAndPlay(2);
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 50);
}
gotoAndStop (1);
Symbol 895 MovieClip Frame 216
play();
Instance of Symbol 890 MovieClip in Symbol 895 MovieClip Frame 216
onClipEvent (load) {
this._rotation = 90 - _root.bait._rotation;
}
onClipEvent (enterFrame) {
this._rotation = 90 - _root.bait._rotation;
}
Instance of Symbol 878 MovieClip in Symbol 895 MovieClip Frame 216
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(69)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(88)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(67)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(87)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(83)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(65)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(68)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(90)) {
_parent.gotoAndStop(1);
}
}
Symbol 895 MovieClip Frame 251
_global.missedLetter = true;
_root.timer.gotoAndPlay(2);
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 50);
}
gotoAndStop (1);
Symbol 895 MovieClip Frame 252
play();
Instance of Symbol 892 MovieClip in Symbol 895 MovieClip Frame 252
onClipEvent (load) {
this._rotation = 90 - _root.bait._rotation;
}
onClipEvent (enterFrame) {
this._rotation = 90 - _root.bait._rotation;
}
Instance of Symbol 878 MovieClip in Symbol 895 MovieClip Frame 252
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(69)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(90)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(67)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(87)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(83)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(65)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(68)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(88)) {
_parent.gotoAndStop(1);
}
}
Symbol 895 MovieClip Frame 287
_global.missedLetter = true;
_root.timer.gotoAndPlay(2);
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 50);
}
gotoAndStop (1);
Symbol 895 MovieClip Frame 288
play();
Instance of Symbol 894 MovieClip in Symbol 895 MovieClip Frame 288
onClipEvent (load) {
this._rotation = 90 - _root.bait._rotation;
}
onClipEvent (enterFrame) {
this._rotation = 90 - _root.bait._rotation;
}
Instance of Symbol 878 MovieClip in Symbol 895 MovieClip Frame 288
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(69)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(90)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(88)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(87)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(83)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(65)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(68)) {
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 20);
}
}
if (Key.isDown(67)) {
_parent.gotoAndStop(1);
}
}
Symbol 895 MovieClip Frame 323
_global.missedLetter = true;
_root.timer.gotoAndPlay(2);
if (Math.random() < 0.2) {
_root.tension.gotoAndPlay(125);
} else if (_root.tension._currentframe < 120) {
_root.tension.gotoAndPlay(_root.tension._currentframe + 50);
}
gotoAndStop (1);
Symbol 896 MovieClip [BaitOnAir] Frame 1
stop();
Symbol 913 MovieClip [splash] Frame 1
stop();
Instance of Symbol 898 MovieClip in Symbol 913 MovieClip [splash] Frame 1
onClipEvent (load) {
_root.codPlace.splashOpen._x = _root.boatZoom._x;
_root.codPlace.splashOpen._y = _root.boatZoom._y;
if (Math.random() < 0.5) {
desx = (Math.random() * 200) + 250;
desy = 150;
} else {
desy = (Math.random() * 200) + 250;
desx = 150;
}
x = desx - _root.boatZoom._x;
y = desy - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
deg = (Math.PI/180) * (360 - normalize);
xrat = Math.cos(deg);
yrat = Math.sin(deg);
dz = ((desx - _root.codPlace.splashOpen._x) / Math.cos(deg)) - 300;
if (dz == 0) {
dz = (desy - _root.codPlace.splashOpen._y) - 300;
}
}
onClipEvent (enterFrame) {
d = (desx - _root.codPlace.splashOpen._x) / Math.cos(deg);
if (d == 0) {
d = desy - _root.codPlace.splashOpen._y;
}
dr = (d / dz) * 4;
if (dr >= 7) {
dr = 8;
}
if ((dr < 7) && (dr > 4)) {
dr = 7;
}
if (dr <= 4) {
if (_root.codPlace.splashOpen._xscale > 90) {
_root.codPlace.splashOpen._xscale = _root.codPlace.splashOpen._xscale - 1;
_root.codPlace.splashOpen._yscale = _root.codPlace.splashOpen._yscale - 1;
}
dr = 6;
}
_root.codPlace.splashOpen._rotation = _root.codPlace.splashOpen._rotation + 10;
_root.codPlace.splashOpen._x = _root.codPlace.splashOpen._x + (xrat * dr);
_root.codPlace.splashOpen._y = _root.codPlace.splashOpen._y - (yrat * dr);
if (yrat <= 0.5) {
if (_root.codPlace.splashOpen._x <= desx) {
_root.codPlace.splashOpen._x = desx;
_root.codPlace.splashOpen._y = desy;
_parent.gotoAndPlay(2);
}
} else if (yrat > 0.5) {
if (_root.codPlace.splashOpen._y <= desy) {
_root.codPlace.splashOpen._x = desx;
_root.codPlace.splashOpen._y = desy;
_parent.gotoAndPlay(2);
}
}
}
Symbol 913 MovieClip [splash] Frame 2
play();
if (_global.sounds) {
spalshSound = new Sound(this);
spalshSound.attachSound("plumps");
spalshSound.start(0, 1);
}
Symbol 913 MovieClip [splash] Frame 31
_global.codsplashed = true;
_root.codtimer.gotoAndPlay(2);
_global.throwncods++;
_global.throwingFish = false;
unloadMovie (this);
Symbol 979 MovieClip Frame 1
stop();
Symbol 982 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 987 MovieClip Frame 81
_root.gotoAndStop(_root._currentframe + 1);
_root.play();
Symbol 998 MovieClip Frame 134
stop();
Symbol 1001 MovieClip Frame 206
stop();
Symbol 1004 MovieClip Frame 531
stop();
Symbol 1052 Button
on (release) {
this.attachMovie("load", "loadOpen", 500);
loadOpen._x = 80;
loadOpen._y = 90;
_root.newButton.enabled = false;
_root.loadButton.enabled = false;
_root.optionsButton.enabled = false;
_root.quitButton.enabled = false;
}
Symbol 1053 Button
on (release) {
this.attachMovie("characterCreation", "characterCreationOpen", 500);
characterCreationOpen._x = 80;
characterCreationOpen._y = 90;
_root.newButton.enabled = false;
_root.loadButton.enabled = false;
_root.optionsButton.enabled = false;
_root.quitButton.enabled = false;
}
Symbol 1054 Button
on (release) {
this.attachMovie("options", "optionsOpen", 500);
optionsOpen._x = 80;
optionsOpen._y = 15;
_root.newButton.enabled = false;
_root.loadButton.enabled = false;
_root.optionsButton.enabled = false;
_root.quitButton.enabled = false;
}
Symbol 1061 MovieClip Frame 54
stop();
Symbol 1067 Button
on (release) {
gotoAndPlay (137);
}
Symbol 1070 Button
on (release) {
gotoAndPlay (248);
}
Symbol 1077 MovieClip Frame 1
stop();
Symbol 1077 MovieClip Frame 3
play();
Symbol 1077 MovieClip Frame 5
play();
Symbol 1077 MovieClip Frame 7
stop();
Symbol 1128 Button
on (release) {
if (_global.voices) {
beginSound = new Sound(this);
beginSound.attachSound("begin");
beginSound.start(0, 1);
}
gotoAndPlay (1201);
}
Symbol 1130 MovieClip Frame 1
stop();
Symbol 1170 MovieClip Frame 1
stop();
Symbol 1170 MovieClip Frame 2
play();
Symbol 1170 MovieClip Frame 39
stop();
Symbol 1170 MovieClip Frame 40
play();
Symbol 1170 MovieClip Frame 79
stop();
Symbol 1173 MovieClip Frame 1
stop();
Symbol 1173 MovieClip Frame 2
play();
Symbol 1173 MovieClip Frame 40
stop();
Symbol 1173 MovieClip Frame 41
play();
Symbol 1198 MovieClip Frame 1
stop();
Symbol 1210 MovieClip Frame 1
stop();
Symbol 1210 MovieClip Frame 2
play();
Symbol 1210 MovieClip Frame 39
stop();
Symbol 1210 MovieClip Frame 40
play();
Symbol 1210 MovieClip Frame 79
stop();
Symbol 1215 MovieClip Frame 1
stop();
Symbol 1215 MovieClip Frame 2
play();
Symbol 1215 MovieClip Frame 40
stop();
Symbol 1215 MovieClip Frame 41
play();
Symbol 1216 MovieClip Frame 1
stop();
Symbol 1216 MovieClip Frame 2
play();
Symbol 1216 MovieClip Frame 39
stop();
Symbol 1216 MovieClip Frame 40
play();
Symbol 1216 MovieClip Frame 79
stop();
Symbol 1217 Button
on (release) {
gotoAndStop (1204);
}
Symbol 1218 Button
on (release) {
gotoAndStop (1203);
}
Symbol 1219 Button
on (release) {
this.attachMovie("fishTraderScreen", "fTraderOpen", 500);
fTraderOpen._x = 50;
fTraderOpen._y = 50;
_root.shopButton.enabled = false;
_root.tavernButton.enabled = false;
_root.boatButton.enabled = false;
_root.traderButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
}
Symbol 1220 Button
on (release) {
if (!_global.boatBroken) {
gotoAndStop (1205);
} else {
gotoAndStop (1208);
}
}
Symbol 1224 Button
on (release) {
gotoAndStop (2);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mcCast.castButton.enabled = false;
_root.sailButton.enabled = false;
_root.anchorThing.anchor1.enabled = false;
_root.anchorThing.anchor2.enabled = false;
_root.anchorThing.anchor3.enabled = false;
_root.anchorThing.anchor4.enabled = false;
_root.anchorThing.anchor5.enabled = false;
_root.anchorThing.anchor6.enabled = false;
_root.anchorThing.anchor7.enabled = false;
_root.anchorThing.anchor8.enabled = false;
_root.shopButton.enabled = false;
_root.tavernButton.enabled = false;
_root.boatButton.enabled = false;
_root.traderButton.enabled = false;
_root.oldFisher.enabled = false;
_root.tavernExit.enabled = false;
_root.tavernKeeper.enabled = false;
_root.shopKButton.enabled = false;
_root.shopExit.enabled = false;
_root.travelButton.enabled = false;
_root.cannonMC.cannonButton.enabled = false;
_root.fishThrow.enabled = false;
_global.menuOpen = true;
}
Symbol 1230 Button
on (release) {
if (_global.buttonsUsable) {
_root.anchorButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
}
gotoAndStop (1);
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mcCast.castButton.enabled = true;
_root.sailButton.enabled = true;
_root.anchorThing.anchor1.enabled = true;
_root.anchorThing.anchor2.enabled = true;
_root.anchorThing.anchor3.enabled = true;
_root.anchorThing.anchor4.enabled = true;
_root.anchorThing.anchor5.enabled = true;
_root.anchorThing.anchor6.enabled = true;
_root.anchorThing.anchor7.enabled = true;
_root.anchorThing.anchor8.enabled = true;
_root.shopButton.enabled = true;
_root.tavernButton.enabled = true;
_root.boatButton.enabled = true;
_root.traderButton.enabled = true;
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.shopKButton.enabled = true;
_root.shopExit.enabled = true;
_root.travelButton.enabled = true;
_root.fishThrow.enabled = true;
_global.menuOpen = false;
}
Symbol 1231 Button
on (release) {
gotoAndStop (1);
_root.mc_menu.menuButton.enabled = false;
this.attachMovie("help", "helpOpen", 500);
helpOpen._x = 75;
helpOpen._y = 75;
}
Symbol 1232 Button
on (release) {
gotoAndStop (1);
_root.mc_menu.menuButton.enabled = false;
this.attachMovie("options", "optionsOpen", 500);
optionsOpen._x = 75;
optionsOpen._y = 40;
}
Symbol 1239 Button
on (release) {
gotoAndStop (1);
if (_global.buttonsUsable) {
_root.anchorButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
}
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mcCast.castButton.enabled = true;
_root.sailButton.enabled = true;
_root.anchorThing.anchor1.enabled = true;
_root.anchorThing.anchor2.enabled = true;
_root.anchorThing.anchor3.enabled = true;
_root.anchorThing.anchor4.enabled = true;
_root.anchorThing.anchor5.enabled = true;
_root.anchorThing.anchor6.enabled = true;
_root.anchorThing.anchor7.enabled = true;
_root.anchorThing.anchor8.enabled = true;
_root.shopButton.enabled = true;
_root.tavernButton.enabled = true;
_root.boatButton.enabled = true;
_root.traderButton.enabled = true;
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.shopKButton.enabled = true;
_root.shopExit.enabled = true;
_root.travelButton.enabled = true;
_root.fishThrow.enabled = true;
_global.menuOpen = false;
}
Symbol 1241 Button
on (release) {
fscommand ("quit");
}
Symbol 1242 Button
on (release) {
gotoAndStop (2);
}
Symbol 1243 MovieClip Frame 1
stop();
Symbol 1247 Button
on (release) {
this.attachMovie("fishes", "fishesOpen", 500);
fishesOpen._x = 80;
fishesOpen._y = 50;
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_root.mcCast.castButton.enabled = false;
_root.sailButton.enabled = false;
_root.anchorThing.anchor1.enabled = false;
_root.anchorThing.anchor2.enabled = false;
_root.anchorThing.anchor3.enabled = false;
_root.anchorThing.anchor4.enabled = false;
_root.anchorThing.anchor5.enabled = false;
_root.anchorThing.anchor6.enabled = false;
_root.anchorThing.anchor7.enabled = false;
_root.anchorThing.anchor8.enabled = false;
_root.shopButton.enabled = false;
_root.tavernButton.enabled = false;
_root.boatButton.enabled = false;
_root.traderButton.enabled = false;
_root.oldFisher.enabled = false;
_root.tavernExit.enabled = false;
_root.tavernKeeper.enabled = false;
_root.shopKButton.enabled = false;
_root.shopExit.enabled = false;
_root.travelButton.enabled = false;
_global.menuOpen = true;
}
Symbol 1248 Button
on (release) {
this.attachMovie("stats", "statsOpen", 500);
statsOpen._x = 50;
statsOpen._y = 50;
if ((_root.messages._currentframe >= 243) && (_root.messages._currentframe <= 363)) {
_root.messages.gotoAndStop(1);
}
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_root.mcCast.castButton.enabled = false;
_root.sailButton.enabled = false;
_root.anchorThing.anchor1.enabled = false;
_root.anchorThing.anchor2.enabled = false;
_root.anchorThing.anchor3.enabled = false;
_root.anchorThing.anchor4.enabled = false;
_root.anchorThing.anchor5.enabled = false;
_root.anchorThing.anchor6.enabled = false;
_root.anchorThing.anchor7.enabled = false;
_root.anchorThing.anchor8.enabled = false;
_root.shopButton.enabled = false;
_root.tavernButton.enabled = false;
_root.boatButton.enabled = false;
_root.traderButton.enabled = false;
_root.oldFisher.enabled = false;
_root.tavernExit.enabled = false;
_root.tavernKeeper.enabled = false;
_root.shopKButton.enabled = false;
_root.shopExit.enabled = false;
_root.travelButton.enabled = false;
_global.menuOpen = true;
}
Symbol 1249 Button
on (release) {
this.attachMovie("inventory", "invOpen", 500);
invOpen._x = 50;
invOpen._y = 50;
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_root.mcCast.castButton.enabled = false;
_root.sailButton.enabled = false;
_root.anchorThing.anchor1.enabled = false;
_root.anchorThing.anchor2.enabled = false;
_root.anchorThing.anchor3.enabled = false;
_root.anchorThing.anchor4.enabled = false;
_root.anchorThing.anchor5.enabled = false;
_root.anchorThing.anchor6.enabled = false;
_root.anchorThing.anchor7.enabled = false;
_root.anchorThing.anchor8.enabled = false;
_root.shopButton.enabled = false;
_root.tavernButton.enabled = false;
_root.boatButton.enabled = false;
_root.traderButton.enabled = false;
_root.oldFisher.enabled = false;
_root.tavernExit.enabled = false;
_root.tavernKeeper.enabled = false;
_root.shopKButton.enabled = false;
_root.shopExit.enabled = false;
_root.travelButton.enabled = false;
_global.menuOpen = true;
}
Symbol 1289 MovieClip Frame 1
stop();
Instance of Symbol 1320 MovieClip in Symbol 1322 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(6);
}
Instance of Symbol 1320 MovieClip in Symbol 1322 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(9);
}
Instance of Symbol 1320 MovieClip in Symbol 1322 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(3);
}
Instance of Symbol 1289 MovieClip in Symbol 1324 MovieClip Frame 1
onClipEvent (load) {
chance = Math.random();
if (chance <= 0.25) {
gotoAndStop (1);
} else if (chance <= 0.5) {
gotoAndStop (2);
} else if (chance <= 0.75) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
}
Symbol 1325 Button
on (release) {
this.attachMovie("shop", "shopOpen", 500);
shopOpen._x = 50;
shopOpen._y = 50;
_root.shopKButton.enabled = false;
_root.shopExit.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
}
Symbol 1326 Button
on (release) {
gotoAndStop (1201);
}
Symbol 1402 MovieClip Frame 1
if (Math.random() > 0.5) {
c1._visible = false;
}
if (Math.random() > 0.5) {
c2._visible = false;
}
if (Math.random() > 0.5) {
c3._visible = false;
}
if (Math.random() > 0.5) {
c4._visible = false;
}
if (Math.random() > 0.5) {
c5._visible = false;
}
if (Math.random() > 0.5) {
c6._visible = false;
}
if (Math.random() > 0.5) {
c7._visible = false;
}
if (Math.random() > 0.5) {
c8._visible = false;
}
if (Math.random() > 0.5) {
c9._visible = false;
}
Symbol 1403 Button
on (release) {
this.attachMovie("tKeeper", "tKeeperOpen", 500);
tKeeperOpen._x = 80;
tKeeperOpen._y = 80;
_root.oldFisher.enabled = false;
_root.tavernExit.enabled = false;
_root.tavernKeeper.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
}
Symbol 1404 Button
on (release) {
this.attachMovie("oldMan", "oldManOpen", 500);
oldManOpen._x = 50;
oldManOpen._y = 50;
_root.oldFisher.enabled = false;
_root.tavernExit.enabled = false;
_root.tavernKeeper.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
}
Symbol 1406 MovieClip Frame 1
stop();
Symbol 1406 MovieClip Frame 2
play();
Symbol 1406 MovieClip Frame 23
if (_root.sleep == "morning") {
_global.timeCheck = 535;
_root.nightMc.gotoAndStop(39);
rando = Math.floor(Math.random() * 8);
if (rando == 8) {
rando = 7;
}
_global.fishOfDay1 = _global.fishNight1[rando];
randomi = Math.floor(Math.random() * 8);
if (randomi == 8) {
randomi = 7;
}
while (rando == randomi) {
randomi = Math.floor(Math.random() * 8);
if (randomi == 8) {
randomi = 7;
}
}
_global.fishOfDay2 = _global.fishNight1[randomi];
} else {
_global.timeCheck = 1255;
_root.nightMc.gotoAndStop(79);
rando = Math.floor(Math.random() * 8);
if (rando == 8) {
rando = 7;
}
_global.fishOfDay1 = _global.fishDay1[rando];
randomi = Math.floor(Math.random() * 8);
if (randomi == 8) {
randomi = 7;
}
while (rando == randomi) {
randomi = Math.floor(Math.random() * 8);
if (randomi == 8) {
randomi = 7;
}
}
_global.fishOfDay2 = _global.fishDay1[randomi];
}
_root.oldFisher.enabled = true;
_root.tavernExit.enabled = true;
_root.tavernKeeper.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
Symbol 1480 Button
on (release) {
if (_global.sounds) {
anchorDropSound = new Sound(this);
anchorDropSound.attachSound("anchorDrop");
anchorDropSound.start(0, 1);
}
_root.gotoAndStop(_root._currentframe + 1);
}
Symbol 1487 Button
on (release) {
if (_global.sounds) {
anchorDropSound = new Sound(this);
anchorDropSound.attachSound("anchorDrop");
anchorDropSound.start(0, 1);
}
_root.gotoAndStop(_root._currentframe + 2);
}
Symbol 1493 Button
on (release) {
if (_global.sounds) {
anchorDropSound = new Sound(this);
anchorDropSound.attachSound("anchorDrop");
anchorDropSound.start(0, 1);
}
_root.gotoAndStop(_root._currentframe + 4);
}
Symbol 1499 Button
on (release) {
if (_global.sounds) {
anchorDropSound = new Sound(this);
anchorDropSound.attachSound("anchorDrop");
anchorDropSound.start(0, 1);
}
_root.gotoAndStop(_root._currentframe + 5);
}
Symbol 1505 Button
on (release) {
if (_global.sounds) {
anchorDropSound = new Sound(this);
anchorDropSound.attachSound("anchorDrop");
anchorDropSound.start(0, 1);
}
_root.gotoAndStop(_root._currentframe + 6);
}
Symbol 1511 Button
on (release) {
if (_global.sounds) {
anchorDropSound = new Sound(this);
anchorDropSound.attachSound("anchorDrop");
anchorDropSound.start(0, 1);
}
_root.gotoAndStop(_root._currentframe + 7);
}
Symbol 1517 Button
on (release) {
if (_global.sounds) {
anchorDropSound = new Sound(this);
anchorDropSound.attachSound("anchorDrop");
anchorDropSound.start(0, 1);
}
_root.gotoAndStop(_root._currentframe + 8);
}
Symbol 1523 Button
on (release) {
if (_global.sounds) {
anchorDropSound = new Sound(this);
anchorDropSound.attachSound("anchorDrop");
anchorDropSound.start(0, 1);
}
_root.gotoAndStop(_root._currentframe + 9);
}
Symbol 1529 MovieClip Frame 2
if (_global.knownFishes[0] == 1) {
fishS1 = _global.fishDay1[0] + " (day)";
} else {
fishS1 = "??????";
}
if (_global.knownFishes[1] == 1) {
fishS2 = _global.fishDay2[0] + " (day)";
} else {
fishS2 = "??????";
}
if (_global.knownFishes[2] == 1) {
fishS3 = _global.fishNight1[0] + " (night)";
} else {
fishS3 = "??????";
}
if (_global.knownFishes[3] == 1) {
fishS4 = _global.fishNight2[0] + " (night)";
} else {
fishS4 = "??????";
}
Symbol 1529 MovieClip Frame 3
if (_global.knownFishes[4] == 1) {
fishS5 = _global.fishDay1[1] + " (day)";
} else {
fishS5 = "??????";
}
if (_global.knownFishes[5] == 1) {
fishS6 = _global.fishDay2[1] + " (day)";
} else {
fishS6 = "??????";
}
if (_global.knownFishes[6] == 1) {
fishS7 = _global.fishNight1[1] + " (night)";
} else {
fishS7 = "??????";
}
if (_global.knownFishes[7] == 1) {
fishS8 = _global.fishNight2[1] + " (night)";
} else {
fishS8 = "??????";
}
Symbol 1529 MovieClip Frame 4
if (_global.knownFishes[8] == 1) {
fishS9 = _global.fishDay1[2] + " (day)";
} else {
fishS9 = "??????";
}
if (_global.knownFishes[9] == 1) {
fishS10 = _global.fishDay2[2] + " (day)";
} else {
fishS10 = "??????";
}
if (_global.knownFishes[10] == 1) {
fishS11 = _global.fishNight1[2] + " (night)";
} else {
fishS11 = "??????";
}
if (_global.knownFishes[11] == 1) {
fishS12 = _global.fishNight2[2] + " (night)";
} else {
fishS12 = "??????";
}
Symbol 1529 MovieClip Frame 5
if (_global.knownFishes[12] == 1) {
fishS13 = _global.fishDay1[3] + " (day)";
} else {
fishS13 = "??????";
}
if (_global.knownFishes[13] == 1) {
fishS14 = _global.fishDay2[3] + " (day)";
} else {
fishS14 = "??????";
}
if (_global.knownFishes[14] == 1) {
fishS15 = _global.fishNight1[3] + " (night)";
} else {
fishS15 = "??????";
}
if (_global.knownFishes[15] == 1) {
fishS16 = _global.fishNight2[3] + " (night)";
} else {
fishS16 = "??????";
}
Symbol 1529 MovieClip Frame 6
if (_global.knownFishes[16] == 1) {
fishS17 = _global.fishDay1[4] + " (day)";
} else {
fishS17 = "??????";
}
if (_global.knownFishes[17] == 1) {
fishS18 = _global.fishDay2[4] + " (day)";
} else {
fishS18 = "??????";
}
if (_global.knownFishes[18] == 1) {
fishS19 = _global.fishNight1[4] + " (night)";
} else {
fishS19 = "??????";
}
if (_global.knownFishes[19] == 1) {
fishS20 = _global.fishNight2[4] + " (night)";
} else {
fishS20 = "??????";
}
Symbol 1529 MovieClip Frame 7
if (_global.knownFishes[20] == 1) {
fishS21 = _global.fishDay1[5] + " (day)";
} else {
fishS21 = "??????";
}
if (_global.knownFishes[21] == 1) {
fishS22 = _global.fishDay2[5] + " (day)";
} else {
fishS22 = "??????";
}
if (_global.knownFishes[22] == 1) {
fishS23 = _global.fishNight1[5] + " (night)";
} else {
fishS23 = "??????";
}
if (_global.knownFishes[23] == 1) {
fishS24 = _global.fishNight2[5] + " (night)";
} else {
fishS24 = "??????";
}
Symbol 1529 MovieClip Frame 8
if (_global.knownFishes[24] == 1) {
fishS25 = _global.fishDay1[6] + " (day)";
} else {
fishS25 = "??????";
}
if (_global.knownFishes[25] == 1) {
fishS26 = _global.fishDay2[6] + " (day)";
} else {
fishS26 = "??????";
}
if (_global.knownFishes[26] == 1) {
fishS27 = _global.fishNight1[6] + " (night)";
} else {
fishS27 = "??????";
}
if (_global.knownFishes[27] == 1) {
fishS28 = _global.fishNight2[6] + " (night)";
} else {
fishS28 = "??????";
}
Symbol 1529 MovieClip Frame 9
if (_global.knownFishes[28] == 1) {
fishS29 = _global.fishDay1[7] + " (day)";
} else {
fishS29 = "??????";
}
if (_global.knownFishes[29] == 1) {
fishS30 = _global.fishDay2[7] + " (day)";
} else {
fishS30 = "??????";
}
if (_global.knownFishes[30] == 1) {
fishS31 = _global.fishNight1[7] + " (night)";
} else {
fishS31 = "??????";
}
if (_global.knownFishes[31] == 1) {
fishS32 = _global.fishNight2[7] + " (night)";
} else {
fishS32 = "??????";
}
Symbol 1534 Button
on (release) {
gotoAndStop (1201);
}
Symbol 1537 Button
on (release) {
gotoAndStop (1215);
}
Symbol 1542 Button
on (release) {
gotoAndStop (1216);
}
Symbol 1545 MovieClip Frame 1
stop();
Symbol 1545 MovieClip Frame 2
play();
Symbol 1545 MovieClip Frame 39
stop();
Symbol 1545 MovieClip Frame 40
play();
Symbol 1545 MovieClip Frame 79
stop();
Symbol 1565 MovieClip Frame 1
stop();
Symbol 1578 MovieClip Frame 1
stop();
Symbol 1578 MovieClip Frame 2
play();
Symbol 1578 MovieClip Frame 67
_global.missedLetter = false;
gotoAndStop (1);
Symbol 1595 MovieClip Frame 1
stop();
Symbol 1595 MovieClip Frame 2
play();
Symbol 1595 MovieClip Frame 15
if (_global.sounds) {
throwSound = new Sound(this);
throwSound.attachSound("swish");
throwSound.start(0, 1);
}
Symbol 1595 MovieClip Frame 18
function X() {
placeX = Math.random() * 500;
return(placeX);
}
function Y() {
placeY = Math.random() * 500;
return(placeY);
}
_root.bait._rotation = _root.boatZoom.pirateFishing._rotation + 180;
_global.baitFlying = true;
_global.buttonsEnabler = true;
_root.fishLake1._x = X();
_root.fishLake1._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake1._x, _root.fishLake1._y, true)) {
_root.fishLake1._x = X();
_root.fishLake1._y = Y();
}
_root.fishLake1._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake2._x = X();
_root.fishLake2._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake2._x, _root.fishLake2._y, true)) {
_root.fishLake2._x = X();
_root.fishLake2._y = Y();
}
_root.fishLake2._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake3._x = X();
_root.fishLake3._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake3._x, _root.fishLake3._y, true)) {
_root.fishLake3._x = X();
_root.fishLake3._y = Y();
}
_root.fishLake3._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake4._x = X();
_root.fishLake4._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake4._x, _root.fishLake4._y, true)) {
_root.fishLake4._x = X();
_root.fishLake4._y = Y();
}
_root.fishLake4._rotation = _root.boatZoom.pirateFishing._rotation;
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
Symbol 1609 MovieClip Frame 1
stop();
Symbol 1618 MovieClip Frame 1
stop();
Symbol 1618 MovieClip Frame 2
play();
Symbol 1632 MovieClip Frame 1
stop();
Symbol 1632 MovieClip Frame 120
play();
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip Frame 120
onClipEvent (load) {
_global.missedLetter = false;
fightSound.stop();
_root.bait.fightSound.stop();
if (_global.sounds) {
snapSound = new Sound(this);
snapSound.attachSound("snap");
snapSound.start(0, 1);
}
if (_global.voices) {
ran = Math.random();
if (ran <= 0.25) {
xSound = new Sound(this);
xSound.attachSound("old");
xSound.start(0, 1);
} else if (ran <= 0.5) {
zSound = new Sound(this);
zSound.attachSound("equipment");
zSound.start(0, 1);
} else if (ran <= 0.75) {
ySound = new Sound(this);
ySound.attachSound("regret");
ySound.start(0, 1);
} else {
aSound = new Sound(this);
aSound.attachSound("shiver");
aSound.start(0, 1);
}
}
_parent.play();
trace("xiitti soodi ajettu");
_root.bait.baitSplashing.gotoAndStop(1);
_global.fishFights = false;
_global.hookedFish = ["", 0, 0];
_global.fishOnHook = false;
_root.bait._x = _root.boatZoom._x;
_root.bait._y = _root.boatZoom._y;
clearInterval(_root.bait.fightInterval);
_global.fightSet = true;
_root.messages.gotoAndPlay(122);
}
Symbol 1632 MovieClip Frame 185
this.gotoAndStop(1);
Symbol 1635 Button
on (press) {
_global.reeling = true;
_global.reeledSome = true;
}
on (release) {
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
}
on (releaseOutside) {
_global.reeling = false;
_global.oldAmount = 0;
_global.rAmount = 0;
}
Symbol 1645 MovieClip Frame 1
stop();
Symbol 1645 MovieClip Frame 2
play();
Symbol 1645 MovieClip Frame 121
gotoAndStop (1);
Symbol 1645 MovieClip Frame 122
play();
Symbol 1645 MovieClip Frame 242
gotoAndStop (1);
Symbol 1645 MovieClip Frame 243
play();
Symbol 1645 MovieClip Frame 363
stop();
Symbol 1645 MovieClip Frame 364
play();
Symbol 1645 MovieClip Frame 484
gotoAndStop (1);
Symbol 1645 MovieClip Frame 485
play();
Symbol 1645 MovieClip Frame 605
gotoAndStop (1);
Symbol 1645 MovieClip Frame 606
play();
Symbol 1645 MovieClip Frame 726
gotoAndStop (1);
Symbol 1645 MovieClip Frame 727
play();
Symbol 1645 MovieClip Frame 847
gotoAndStop (1);
Symbol 1645 MovieClip Frame 848
play();
Symbol 1645 MovieClip Frame 968
gotoAndStop (1);
Symbol 1651 MovieClip Frame 1
stop();
Symbol 1654 Button
on (release) {
function cast() {
_global.reeledIn = false;
x = _root._xmouse - _root.boatZoom._x;
y = _root._ymouse - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
_root.crosshair._rotation = normalize;
if ((normalize >= 5) && (normalize <= 262)) {
_global.castingNow = false;
_root.crosshair.gotoAndStop(2);
_global.throwRange = 0;
} else if (_global.castingNow == true) {
if (_root.crosshair._currentframe < 3) {
_root.crosshair.gotoAndPlay(3);
}
} else {
if (_global.throwRange > 0) {
if (Math.random() < 0.5) {
accurarity = ((Math.random() * 5) + 3) / _global.YourDex;
} else {
accurarity = (((Math.random() * 5) + 3) * -1) / _global.YourDex;
}
trace("accurarity: " + accurarity);
deg = (Math.PI/180) * (360 - (normalize + accurarity));
_global.xBaitDes = ((Math.cos(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.yBaitDes = ((Math.sin(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.ratioX = (Math.cos(deg) * _global.xBaitDes) / _global.xBaitDes;
_global.ratioY = (Math.sin(deg) * _global.yBaitDes) / _global.yBaitDes;
_global.allowThrow = true;
_global.throwRange = 0;
_root.createEmptyMovieClip("xiit", 1001);
clearInterval(castInterval);
Mouse.show();
gotoAndStop (1);
_root.mcCast.castButton.enabled = false;
}
_root.crosshair.gotoAndStop(1);
}
}
if (_global.yourFish8[0] != 1) {
_root.boatZoom.pirateFishing.pole._visible = 1;
Mouse.hide();
_root.attachMovie("xhair", "crosshair", 1001);
_root.crosshair.startDrag(true);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
gotoAndStop (2);
castInterval = setInterval(cast, 10);
} else {
_root.messages.gotoAndStop(485);
}
}
Symbol 1656 Button
on (release) {
_root.createEmptyMovieClip("xiit", 1001);
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
clearInterval(castInterval);
Mouse.show();
_global.reeledIn = true;
gotoAndStop (1);
_root.boatZoom.pirateFishing.pole._visible = 0;
}
Symbol 1657 MovieClip Frame 1
stop();
Symbol 1660 Button
on (release) {
clearInterval(speedInterval);
gotoAndStop (1205);
_global.boatRotation = 120;
_global.boatPosX = 291;
_global.boatPosY = 198;
}
Symbol 1664 Button
on (release) {
gotoAndStop (2);
}
Symbol 1669 MovieClip Frame 1
stop();
Symbol 1670 Button
on (release) {
_global.tooltip = true;
gotoAndStop (1);
}
Symbol 1672 MovieClip Frame 31
_global.tooltip = false;
stop();
Symbol 1673 MovieClip Frame 1
stop();
Instance of Symbol 1672 MovieClip in Symbol 1673 MovieClip Frame 2
onClipEvent (load) {
if (!_global.tooltip) {
this.gotoAndStop(31);
}
}
Symbol 1676 MovieClip Frame 50
stop();
Symbol 1690 MovieClip Frame 1
stop();
Symbol 1690 MovieClip Frame 2
play();
Symbol 1690 MovieClip Frame 15
if (_global.sounds) {
throwSound = new Sound(this);
throwSound.attachSound("swish");
throwSound.start(0, 1);
}
Symbol 1690 MovieClip Frame 18
function X() {
placeX = Math.random() * 500;
return(placeX);
}
function Y() {
placeY = Math.random() * 500;
return(placeY);
}
_root.bait._rotation = _root.boatZoom.pirateFishing._rotation + 180;
_global.baitFlying = true;
_global.buttonsEnabler = true;
_root.fishLake1._x = X();
_root.fishLake1._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake1._x, _root.fishLake1._y, true)) {
_root.fishLake1._x = X();
_root.fishLake1._y = Y();
}
_root.fishLake1._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake2._x = X();
_root.fishLake2._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake2._x, _root.fishLake2._y, true)) {
_root.fishLake2._x = X();
_root.fishLake2._y = Y();
}
_root.fishLake2._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake3._x = X();
_root.fishLake3._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake3._x, _root.fishLake3._y, true)) {
_root.fishLake3._x = X();
_root.fishLake3._y = Y();
}
_root.fishLake3._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake4._x = X();
_root.fishLake4._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake4._x, _root.fishLake4._y, true)) {
_root.fishLake4._x = X();
_root.fishLake4._y = Y();
}
_root.fishLake4._rotation = _root.boatZoom.pirateFishing._rotation;
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
Symbol 1699 Button
on (release) {
function cast() {
_global.reeledIn = false;
x = _root._xmouse - _root.boatZoom._x;
y = _root._ymouse - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
_root.crosshair._rotation = normalize;
if ((normalize >= 95) && (normalize <= 360)) {
_global.castingNow = false;
_root.crosshair.gotoAndStop(2);
_global.throwRange = 0;
} else if (_global.castingNow == true) {
if (_root.crosshair._currentframe < 3) {
_root.crosshair.gotoAndPlay(3);
}
} else {
if (_global.throwRange > 0) {
if (Math.random() < 0.5) {
accurarity = ((Math.random() * 5) + 3) / _global.YourDex;
} else {
accurarity = (((Math.random() * 5) + 3) * -1) / _global.YourDex;
}
trace("accurarity: " + accurarity);
deg = (Math.PI/180) * (360 - (normalize + accurarity));
_global.xBaitDes = ((Math.cos(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.yBaitDes = ((Math.sin(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.ratioX = (Math.cos(deg) * _global.xBaitDes) / _global.xBaitDes;
_global.ratioY = (Math.sin(deg) * _global.yBaitDes) / _global.yBaitDes;
_global.allowThrow = true;
_global.throwRange = 0;
_root.createEmptyMovieClip("xiit", 1001);
clearInterval(castInterval);
Mouse.show();
gotoAndStop (1);
_root.mcCast.castButton.enabled = false;
}
_root.crosshair.gotoAndStop(1);
}
}
if (_global.yourFish8[0] != 1) {
_root.boatZoom.pirateFishing.pole._visible = 1;
Mouse.hide();
_root.attachMovie("xhair", "crosshair", 1001);
_root.crosshair.startDrag(true);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
gotoAndStop (2);
castInterval = setInterval(cast, 10);
} else {
_root.messages.gotoAndStop(485);
}
}
Symbol 1700 Button
on (release) {
_root.createEmptyMovieClip("xiit", 1001);
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
clearInterval(castInterval);
Mouse.show();
_global.reeledIn = true;
gotoAndStop (1);
_root.boatZoom.pirateFishing.pole._visible = 0;
}
Symbol 1701 MovieClip Frame 1
stop();
Symbol 1702 Button
on (release) {
clearInterval(speedInterval);
gotoAndStop (1205);
_global.boatRotation = 30;
_global.boatPosX = 382;
_global.boatPosY = 216;
}
Symbol 1714 MovieClip Frame 1
stop();
Symbol 1714 MovieClip Frame 2
play();
Symbol 1714 MovieClip Frame 15
if (_global.sounds) {
throwSound = new Sound(this);
throwSound.attachSound("swish");
throwSound.start(0, 1);
}
Symbol 1714 MovieClip Frame 18
function X() {
placeX = Math.random() * 500;
return(placeX);
}
function Y() {
placeY = Math.random() * 500;
return(placeY);
}
_root.bait._rotation = _root.boatZoom.pirateFishing._rotation + 180;
_global.baitFlying = true;
_global.buttonsEnabler = true;
_root.fishLake1._x = X();
_root.fishLake1._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake1._x, _root.fishLake1._y, true)) {
_root.fishLake1._x = X();
_root.fishLake1._y = Y();
}
_root.fishLake1._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake2._x = X();
_root.fishLake2._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake2._x, _root.fishLake2._y, true)) {
_root.fishLake2._x = X();
_root.fishLake2._y = Y();
}
_root.fishLake2._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake3._x = X();
_root.fishLake3._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake3._x, _root.fishLake3._y, true)) {
_root.fishLake3._x = X();
_root.fishLake3._y = Y();
}
_root.fishLake3._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake4._x = X();
_root.fishLake4._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake4._x, _root.fishLake4._y, true)) {
_root.fishLake4._x = X();
_root.fishLake4._y = Y();
}
_root.fishLake4._rotation = _root.boatZoom.pirateFishing._rotation;
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
Symbol 1721 Button
on (release) {
function cast() {
_global.reeledIn = false;
x = _root._xmouse - _root.boatZoom._x;
y = _root._ymouse - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
_root.crosshair._rotation = normalize;
if ((normalize <= 90) || (normalize >= 180)) {
_global.castingNow = false;
_root.crosshair.gotoAndStop(2);
_global.throwRange = 0;
} else if (_global.castingNow == true) {
if (_root.crosshair._currentframe < 3) {
_root.crosshair.gotoAndPlay(3);
}
} else {
if (_global.throwRange > 0) {
if (Math.random() < 0.5) {
accurarity = ((Math.random() * 5) + 3) / _global.YourDex;
} else {
accurarity = (((Math.random() * 5) + 3) * -1) / _global.YourDex;
}
trace("accurarity: " + accurarity);
deg = (Math.PI/180) * (360 - (normalize + accurarity));
_global.xBaitDes = ((Math.cos(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.yBaitDes = ((Math.sin(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.ratioX = (Math.cos(deg) * _global.xBaitDes) / _global.xBaitDes;
_global.ratioY = (Math.sin(deg) * _global.yBaitDes) / _global.yBaitDes;
_global.allowThrow = true;
_global.throwRange = 0;
_root.createEmptyMovieClip("xiit", 1001);
clearInterval(castInterval);
Mouse.show();
gotoAndStop (1);
_root.mcCast.castButton.enabled = false;
}
_root.crosshair.gotoAndStop(1);
}
}
if (_global.yourFish8[0] != 1) {
_root.boatZoom.pirateFishing.pole._visible = 1;
Mouse.hide();
_root.attachMovie("xhair", "crosshair", 1001);
_root.crosshair.startDrag(true);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
gotoAndStop (2);
castInterval = setInterval(cast, 10);
} else {
_root.messages.gotoAndStop(485);
}
}
Symbol 1722 Button
on (release) {
_root.createEmptyMovieClip("xiit", 1001);
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
clearInterval(castInterval);
Mouse.show();
_global.reeledIn = true;
gotoAndStop (1);
_root.boatZoom.pirateFishing.pole._visible = 0;
}
Symbol 1723 MovieClip Frame 1
stop();
Symbol 1727 Button
on (release) {
clearInterval(speedInterval);
gotoAndStop (1201);
}
Symbol 1739 MovieClip Frame 1
stop();
Symbol 1739 MovieClip Frame 2
play();
Symbol 1739 MovieClip Frame 15
if (_global.sounds) {
throwSound = new Sound(this);
throwSound.attachSound("swish");
throwSound.start(0, 1);
}
Symbol 1739 MovieClip Frame 18
function X() {
placeX = Math.random() * 500;
return(placeX);
}
function Y() {
placeY = Math.random() * 500;
return(placeY);
}
_root.bait._rotation = _root.boatZoom.pirateFishing._rotation + 180;
_global.baitFlying = true;
_global.buttonsEnabler = true;
_root.fishLake1._x = X();
_root.fishLake1._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake1._x, _root.fishLake1._y, true)) {
_root.fishLake1._x = X();
_root.fishLake1._y = Y();
}
_root.fishLake1._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake2._x = X();
_root.fishLake2._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake2._x, _root.fishLake2._y, true)) {
_root.fishLake2._x = X();
_root.fishLake2._y = Y();
}
_root.fishLake2._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake3._x = X();
_root.fishLake3._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake3._x, _root.fishLake3._y, true)) {
_root.fishLake3._x = X();
_root.fishLake3._y = Y();
}
_root.fishLake3._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake4._x = X();
_root.fishLake4._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake4._x, _root.fishLake4._y, true)) {
_root.fishLake4._x = X();
_root.fishLake4._y = Y();
}
_root.fishLake4._rotation = _root.boatZoom.pirateFishing._rotation;
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
Symbol 1748 Button
on (release) {
function cast() {
_global.reeledIn = false;
x = _root._xmouse - _root.boatZoom._x;
y = _root._ymouse - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
_root.crosshair._rotation = normalize;
if ((normalize >= 8) && (normalize <= 262)) {
_global.castingNow = false;
_root.crosshair.gotoAndStop(2);
_global.throwRange = 0;
} else if (_global.castingNow == true) {
if (_root.crosshair._currentframe < 3) {
_root.crosshair.gotoAndPlay(3);
}
} else {
if (_global.throwRange > 0) {
if (Math.random() < 0.5) {
accurarity = ((Math.random() * 5) + 3) / _global.YourDex;
} else {
accurarity = (((Math.random() * 5) + 3) * -1) / _global.YourDex;
}
trace("accurarity: " + accurarity);
deg = (Math.PI/180) * (360 - (normalize + accurarity));
_global.xBaitDes = ((Math.cos(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.yBaitDes = ((Math.sin(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.ratioX = (Math.cos(deg) * _global.xBaitDes) / _global.xBaitDes;
_global.ratioY = (Math.sin(deg) * _global.yBaitDes) / _global.yBaitDes;
_global.allowThrow = true;
_global.throwRange = 0;
_root.createEmptyMovieClip("xiit", 1001);
clearInterval(castInterval);
Mouse.show();
gotoAndStop (1);
_root.mcCast.castButton.enabled = false;
}
_root.crosshair.gotoAndStop(1);
}
}
if (_global.yourFish8[0] != 1) {
_root.boatZoom.pirateFishing.pole._visible = 1;
Mouse.hide();
_root.attachMovie("xhair", "crosshair", 1001);
_root.crosshair.startDrag(true);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
gotoAndStop (2);
castInterval = setInterval(cast, 10);
} else {
_root.messages.gotoAndStop(485);
}
}
Symbol 1749 Button
on (release) {
_root.createEmptyMovieClip("xiit", 1001);
_root.anchorButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
clearInterval(castInterval);
Mouse.show();
_global.reeledIn = true;
gotoAndStop (1);
_root.boatZoom.pirateFishing.pole._visible = 0;
}
Symbol 1750 MovieClip Frame 1
stop();
Symbol 1751 Button
on (release) {
clearInterval(speedInterval);
gotoAndStop (1205);
_global.boatRotation = 120;
_global.boatPosX = 255;
_global.boatPosY = 383;
}
Symbol 1766 Button
on (release) {
function cast() {
_global.reeledIn = false;
x = _root._xmouse - _root.boatZoom._x;
y = _root._ymouse - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
_root.crosshair._rotation = normalize;
if ((normalize <= 90) || (normalize >= 180)) {
_global.castingNow = false;
_root.crosshair.gotoAndStop(2);
_global.throwRange = 0;
} else if (_global.castingNow == true) {
if (_root.crosshair._currentframe < 3) {
_root.crosshair.gotoAndPlay(3);
}
} else {
if (_global.throwRange > 0) {
if (Math.random() < 0.5) {
accurarity = ((Math.random() * 5) + 3) / _global.YourDex;
} else {
accurarity = (((Math.random() * 5) + 3) * -1) / _global.YourDex;
}
trace("accurarity: " + accurarity);
deg = (Math.PI/180) * (360 - (normalize + accurarity));
_global.xBaitDes = ((Math.cos(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.yBaitDes = ((Math.sin(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.ratioX = (Math.cos(deg) * _global.xBaitDes) / _global.xBaitDes;
_global.ratioY = (Math.sin(deg) * _global.yBaitDes) / _global.yBaitDes;
_global.allowThrow = true;
_global.throwRange = 0;
_root.createEmptyMovieClip("xiit", 1001);
clearInterval(castInterval);
Mouse.show();
gotoAndStop (1);
_root.mcCast.castButton.enabled = false;
}
_root.crosshair.gotoAndStop(1);
}
}
if (_global.yourFish8[0] != 1) {
_root.boatZoom.pirateFishing.pole._visible = 1;
Mouse.hide();
_root.attachMovie("xhair", "crosshair", 1001);
_root.crosshair.startDrag(true);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
gotoAndStop (2);
castInterval = setInterval(cast, 10);
} else {
_root.messages.gotoAndStop(485);
}
}
Symbol 1767 Button
on (release) {
_root.createEmptyMovieClip("xiit", 1001);
_root.anchorButton.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
clearInterval(castInterval);
Mouse.show();
_global.reeledIn = true;
gotoAndStop (1);
_root.boatZoom.pirateFishing.pole._visible = 0;
}
Symbol 1768 MovieClip Frame 1
stop();
Symbol 1769 Button
on (release) {
clearInterval(speedInterval);
gotoAndStop (1205);
_global.boatRotation = 135;
_global.boatPosX = 222;
_global.boatPosY = 320;
}
Symbol 1779 Button
on (release) {
clearInterval(speedInterval);
gotoAndStop (1205);
_global.boatRotation = 135;
_global.boatPosX = 324;
_global.boatPosY = 443;
}
Symbol 1790 Button
on (release) {
function cast() {
_global.reeledIn = false;
x = _root._xmouse - _root.boatZoom._x;
y = _root._ymouse - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.boatZoom.pirateFishing._rotation = normalize;
_root.crosshair._rotation = normalize;
if ((normalize <= 180) || (normalize >= 270)) {
_global.castingNow = false;
_root.crosshair.gotoAndStop(2);
_global.throwRange = 0;
} else if (_global.castingNow == true) {
if (_root.crosshair._currentframe < 3) {
_root.crosshair.gotoAndPlay(3);
}
} else {
if (_global.throwRange > 0) {
if (Math.random() < 0.5) {
accurarity = ((Math.random() * 5) + 3) / _global.YourDex;
} else {
accurarity = (((Math.random() * 5) + 3) * -1) / _global.YourDex;
}
trace("accurarity: " + accurarity);
deg = (Math.PI/180) * (360 - (normalize + accurarity));
_global.xBaitDes = ((Math.cos(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.yBaitDes = ((Math.sin(deg) * _global.throwRange) * 4.5) * (_global.poleQ + 0.1);
_global.ratioX = (Math.cos(deg) * _global.xBaitDes) / _global.xBaitDes;
_global.ratioY = (Math.sin(deg) * _global.yBaitDes) / _global.yBaitDes;
_global.allowThrow = true;
_global.throwRange = 0;
_root.createEmptyMovieClip("xiit", 1001);
clearInterval(castInterval);
Mouse.show();
gotoAndStop (1);
_root.mcCast.castButton.enabled = false;
}
_root.crosshair.gotoAndStop(1);
}
}
if (_global.cods < 10) {
_root.boatZoom.pirateFishing.pole._visible = 1;
Mouse.hide();
_root.attachMovie("xhair", "crosshair", 1001);
_root.crosshair.startDrag(true);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
gotoAndStop (2);
castInterval = setInterval(cast, 10);
} else {
_root.messages.gotoAndStop(485);
}
}
Symbol 1791 Button
on (release) {
_root.createEmptyMovieClip("xiit", 1001);
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
clearInterval(castInterval);
Mouse.show();
_global.reeledIn = true;
gotoAndStop (1);
_root.boatZoom.pirateFishing.pole._visible = 0;
}
Symbol 1792 MovieClip Frame 1
stop();
Symbol 1793 Button
on (release) {
clearInterval(speedInterval);
gotoAndStop (1205);
_global.boatRotation = 45;
_global.boatPosX = 540;
_global.boatPosY = 523;
}
Symbol 1801 Button
on (release) {
clearInterval(speedInterval);
gotoAndStop (1205);
_global.boatRotation = 30;
_global.boatPosX = 600;
_global.boatPosY = 484;
}
Symbol 1809 Button
on (release) {
clearInterval(speedInterval);
gotoAndStop (1205);
_global.boatRotation = 45;
_global.boatPosX = 620;
_global.boatPosY = 460;
}
Symbol 1828 MovieClip Frame 1
stop();
Symbol 1828 MovieClip Frame 2
play();
Symbol 1828 MovieClip Frame 15
if (_global.sounds) {
throwSound = new Sound(this);
throwSound.attachSound("swish");
throwSound.start(0, 1);
}
Symbol 1828 MovieClip Frame 18
function X() {
placeX = Math.random() * 500;
return(placeX);
}
function Y() {
placeY = Math.random() * 500;
return(placeY);
}
_root.bait._rotation = _root.boatZoom.pirateFishing._rotation + 180;
_global.baitFlying = true;
_global.buttonsEnabler = true;
_root.fishLake1._x = X();
_root.fishLake1._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake1._x, _root.fishLake1._y, true)) {
_root.fishLake1._x = X();
_root.fishLake1._y = Y();
}
_root.fishLake1._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake2._x = X();
_root.fishLake2._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake2._x, _root.fishLake2._y, true)) {
_root.fishLake2._x = X();
_root.fishLake2._y = Y();
}
_root.fishLake2._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake3._x = X();
_root.fishLake3._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake3._x, _root.fishLake3._y, true)) {
_root.fishLake3._x = X();
_root.fishLake3._y = Y();
}
_root.fishLake3._rotation = _root.boatZoom.pirateFishing._rotation;
_root.fishLake4._x = X();
_root.fishLake4._y = Y();
while (!_root.fishArea.hitTest(_root.fishLake4._x, _root.fishLake4._y, true)) {
_root.fishLake4._x = X();
_root.fishLake4._y = Y();
}
_root.fishLake4._rotation = _root.boatZoom.pirateFishing._rotation;
_global.fish1Bit = false;
_global.fish2Bit = false;
_global.fish3Bit = false;
_global.fish4Bit = false;
Symbol 1834 Button
on (release) {
clearInterval(speedInterval);
gotoAndStop (1205);
_global.boatRotation = 45;
_global.boatPosX = 194;
_global.boatPosY = 331;
}
Symbol 1837 Button
on (release) {
this.attachMovie("fishes", "fishesOpen", 500);
fishesOpen._x = 50;
fishesOpen._y = 50;
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_root.mcCast.castButton.enabled = false;
_root.sailButton.enabled = false;
_root.anchorThing.anchor1.enabled = false;
_root.anchorThing.anchor2.enabled = false;
_root.anchorThing.anchor3.enabled = false;
_root.anchorThing.anchor4.enabled = false;
_root.anchorThing.anchor5.enabled = false;
_root.anchorThing.anchor6.enabled = false;
_root.anchorThing.anchor7.enabled = false;
_root.anchorThing.anchor8.enabled = false;
_root.shopButton.enabled = false;
_root.tavernButton.enabled = false;
_root.boatButton.enabled = false;
_root.traderButton.enabled = false;
_root.oldFisher.enabled = false;
_root.tavernExit.enabled = false;
_root.tavernKeeper.enabled = false;
_root.shopKButton.enabled = false;
_root.shopExit.enabled = false;
_root.travelButton.enabled = false;
_root.cannonMC.cannonButton.enabled = false;
_root.fishThrow.enabled = false;
_global.menuOpen = true;
}
Symbol 1838 Button
on (release) {
this.attachMovie("stats", "statsOpen", 500);
statsOpen._x = 50;
statsOpen._y = 50;
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_root.mcCast.castButton.enabled = false;
_root.sailButton.enabled = false;
_root.anchorThing.anchor1.enabled = false;
_root.anchorThing.anchor2.enabled = false;
_root.anchorThing.anchor3.enabled = false;
_root.anchorThing.anchor4.enabled = false;
_root.anchorThing.anchor5.enabled = false;
_root.anchorThing.anchor6.enabled = false;
_root.anchorThing.anchor7.enabled = false;
_root.anchorThing.anchor8.enabled = false;
_root.shopButton.enabled = false;
_root.tavernButton.enabled = false;
_root.boatButton.enabled = false;
_root.traderButton.enabled = false;
_root.oldFisher.enabled = false;
_root.tavernExit.enabled = false;
_root.tavernKeeper.enabled = false;
_root.shopKButton.enabled = false;
_root.shopExit.enabled = false;
_root.travelButton.enabled = false;
_root.cannonMC.cannonButton.enabled = false;
_root.fishThrow.enabled = false;
_global.menuOpen = true;
}
Symbol 1862 MovieClip Frame 1
stop();
Symbol 1862 MovieClip Frame 2
play();
if (_global.sounds) {
bubbleSound = new Sound(this);
bubbleSound.attachSound("bubbles3");
bubbleSound.start();
bubbleSound.setVolume(30);
bubbleSound.onSoundComplete = function () {
bubbleSound.start();
};
}
Symbol 1862 MovieClip Frame 37
stop();
Symbol 1862 MovieClip Frame 38
play();
Symbol 1862 MovieClip Frame 42
_root.bubble1.bubbleSound.setVolume(80);
Symbol 1862 MovieClip Frame 45
_root.bubble1.bubbleSound.setVolume(60);
Symbol 1862 MovieClip Frame 49
_root.bubble1.bubbleSound.setVolume(40);
Symbol 1862 MovieClip Frame 53
_root.bubble1.bubbleSound.setVolume(20);
Symbol 1862 MovieClip Frame 56
unloadMovie (this);
_root.bubble1.bubbleSound.stop();
Symbol 1863 MovieClip Frame 1
stop();
Symbol 1863 MovieClip Frame 2
play();
Symbol 1863 MovieClip Frame 12
_root.bubble1.bubbleSound.setVolume(65);
Symbol 1863 MovieClip Frame 37
stop();
Symbol 1863 MovieClip Frame 38
play();
Symbol 1863 MovieClip Frame 56
unloadMovie (this);
Symbol 1864 MovieClip Frame 1
stop();
Symbol 1864 MovieClip Frame 2
play();
Symbol 1864 MovieClip Frame 12
_root.bubble1.bubbleSound.setVolume(100);
Symbol 1864 MovieClip Frame 37
stop();
Symbol 1864 MovieClip Frame 38
play();
Symbol 1864 MovieClip Frame 56
unloadMovie (this);
Symbol 1914 MovieClip Frame 101
if (Math.random() < 0.5) {
gotoAndPlay (102);
} else {
gotoAndPlay (185);
}
Symbol 1914 MovieClip Frame 184
if (Math.random() < 0.5) {
gotoAndPlay (1);
} else {
gotoAndPlay (185);
}
Symbol 1914 MovieClip Frame 282
if (Math.random() < 0.5) {
gotoAndPlay (1);
} else {
gotoAndPlay (102);
}
Symbol 1925 MovieClip Frame 11
x = _root.boatZoom._x - _root.monster._x;
y = _root.boatZoom._y - _root.monster._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.bossAmmo._rotation = direction;
deg = (Math.PI/180) * (360 - normalize);
_global.bossratioX = Math.cos(deg);
_global.bossratioY = Math.sin(deg);
_global.bossDesX = (x + _root.monster._x) + 40;
_global.bossDesY = (y + _root.monster._y) + 40;
_global.bosslengthX = x - 40;
_global.bosslengthY = y - 40;
_root.bossAmmo._x = _root.monster._x + 40;
_root.bossAmmo._y = _root.monster._y + 40;
_global.bossShot = true;
Symbol 1925 MovieClip Frame 20
_parent.gotoAndStop("wait");
Symbol 1931 MovieClip Frame 1
stop();
if (_global.sounds) {
gotoAndPlay (2);
}
Symbol 1931 MovieClip Frame 165
stop();
Symbol 2019 MovieClip Frame 1
stop();
if (_global.sounds) {
gotoAndPlay (2);
}
Symbol 2019 MovieClip Frame 94
stop();
Symbol 2055 MovieClip Frame 1
stop();
_global.ableHurt = false;
Symbol 2055 MovieClip Frame 2
play();
_global.ableHurt = false;
Symbol 2055 MovieClip Frame 12
if (_global.sounds) {
molskSound = new Sound(this);
molskSound.attachSound("molsk");
molskSound.start();
}
Symbol 2055 MovieClip Frame 28
stop();
Symbol 2055 MovieClip Frame 29
stop();
Symbol 2055 MovieClip Frame 30
play();
Symbol 2055 MovieClip Frame 40
play();
_global.ableHurt = true;
Symbol 2055 MovieClip Frame 193
_global.ableHurt = false;
Symbol 2055 MovieClip Frame 203
gotoAndStop ("wait");
Symbol 2055 MovieClip Frame 204
play();
Symbol 2055 MovieClip Frame 256
stop();
Symbol 2055 MovieClip Frame 257
play();
_root.musicMC.music2Sound.setVolume(70);
Symbol 2055 MovieClip Frame 258
_global.invunerable = true;
_root.lvlCheck.gotoAndStop(12);
_root.minion1.gotoAndPlay("die");
_root.minion2.gotoAndPlay("die");
_root.minion3.gotoAndPlay("die");
_root.minion4.gotoAndPlay("die");
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_root.createEmptyMovieClip("xiit", 1001);
_global.crossPlacex = _root.cannonCrosshair._x;
_global.crossPlacey = _root.cannonCrosshair._y;
_root.cannonCrosshair._x = -500;
_root.cannonCrosshair._y = -500;
clearInterval(aimInterval);
clearInterval(_root.harpoon.aimInterval);
clearInterval(_root.cannonMC.aimInterval);
clearInterval(_root.shortkeys.aimInterval);
_global.aimingNow = false;
Mouse.show();
_root.cannonMC.gotoAndStop(1);
trace("kaikki hommat pit\u00E4is olla");
_root.musicMC.music2Sound.setVolume(35);
Symbol 2055 MovieClip Frame 259
_root.musicMC.music2Sound.stop();
Symbol 2055 MovieClip Frame 356
if (_global.sounds) {
overSound = new Sound(this);
overSound.attachSound("over");
overSound.start(0, 1);
}
Symbol 2055 MovieClip Frame 425
_root.gotoAndStop(_root._currentframe + 2);
stop();
Symbol 2111 MovieClip Frame 1
stop();
Symbol 2111 MovieClip Frame 2
play();
Symbol 2111 MovieClip Frame 12
stop();
Instance of Symbol 2078 MovieClip in Symbol 2111 MovieClip Frame 12
onClipEvent (enterFrame) {
if (!_root.gameover) {
rad = (_root.minion1._rotation + 90) * (Math.PI/180);
xratio = Math.cos(rad);
yratio = Math.sin(rad);
if (!_root.boatArea.hitTest(_root.minion1._x, _root.minion1._y, true)) {
if (_global.codsplashed && (!_global.minion1dying)) {
_parent.gotoAndStop("confused");
}
_root.minion1._x = _root.minion1._x + (xratio * _global.minionspeed);
_root.minion1._y = _root.minion1._y + (yratio * _global.minionspeed);
} else if (_root.boatHit.hitTest(_root.minion1._x, _root.minion1._y, true)) {
_root.boatZoom.hit.gotoAndPlay("bash");
_root.yourHealth.gotoAndStop(_root.yourHealth._currentframe + 1);
if (_global.sounds) {
bashSound = new Sound(this);
bashSound.attachSound("bash");
bashSound.start(0, 1);
}
trace("pit\u00E4s menn\u00E4 hepaaa");
if (!_global.minion1dying) {
_root.minion1.gotoAndPlay("die");
}
} else {
_root.minion1._x = _root.minion1._x + (xratio * (_global.minionspeed * 8));
_root.minion1._y = _root.minion1._y + (yratio * (_global.minionspeed * 8));
}
}
}
Symbol 2111 MovieClip Frame 13
stop();
Instance of Symbol 2083 MovieClip in Symbol 2111 MovieClip Frame 13
onClipEvent (enterFrame) {
if ((!_global.codsplashed) && (!_global.minion1dying)) {
_parent.gotoAndStop("swim");
}
}
Symbol 2111 MovieClip Frame 14
play();
_global.minion1Attacking = true;
Symbol 2111 MovieClip Frame 20
if (!_global.minion1dying) {
if (Math.random() < 0.5) {
xaccurarity = Math.random() * 30;
} else {
xaccurarity = (Math.random() * 30) * -1;
}
if (Math.random() < 0.5) {
yaccurarity = Math.random() * 30;
} else {
yaccurarity = (Math.random() * 30) * -1;
}
x = (_root.boatZoom._x - _root.minion1._x) + xaccurarity;
y = (_root.boatZoom._y - _root.minion1._y) + yaccurarity;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion1ammo._rotation = direction;
deg = (Math.PI/180) * (360 - normalize);
_global.ammo1ratioX = Math.cos(deg);
_global.ammo1ratioY = Math.sin(deg);
_global.ammo1DesX = x + _root.minion1._x;
_global.ammo1DesY = y + _root.minion1._y;
_global.ammo1lengthX = x;
_global.ammo1lengthY = y;
_root.minion1ammo._x = _root.minion1._x;
_root.minion1ammo._y = _root.minion1._y;
_global.minion1Shot = true;
}
Symbol 2111 MovieClip Frame 21
play();
if (!_global.minion1dying) {
gotoAndStop ("swim");
_global.minion1Attacking = false;
} else {
gotoAndStop ("die");
}
Symbol 2111 MovieClip Frame 22
play();
Symbol 2111 MovieClip Frame 31
stop();
Symbol 2111 MovieClip Frame 32
play();
_global.minion1dead = true;
_global.minion1dying = true;
_global.minion1Attacking = false;
Symbol 2111 MovieClip Frame 45
stop();
_root.minion1._x = -400;
_root.minion1._y = -300;
if (!_global.lost) {
_global.intervall1Can = true;
}
_global.minion1dying = false;
Symbol 2131 MovieClip Frame 1
stop();
Symbol 2131 MovieClip Frame 2
play();
Symbol 2131 MovieClip Frame 12
stop();
Instance of Symbol 2119 MovieClip in Symbol 2131 MovieClip Frame 12
onClipEvent (enterFrame) {
if (!_root.gameover) {
rad = (_root.minion2._rotation + 90) * (Math.PI/180);
xratio = Math.cos(rad);
yratio = Math.sin(rad);
if (!_root.boatArea.hitTest(_root.minion2._x, _root.minion2._y, true)) {
if (_global.codsplashed && (!_global.minion2dying)) {
_parent.gotoAndStop("confused");
}
_root.minion2._x = _root.minion2._x + (xratio * (_global.minionspeed * 2));
_root.minion2._y = _root.minion2._y + (yratio * (_global.minionspeed * 2));
} else if (_root.boatHit.hitTest(_root.minion2._x, _root.minion2._y, true)) {
_root.boatZoom.hit.gotoAndPlay("bash");
_root.yourHealth.gotoAndStop(_root.yourHealth._currentframe + 1);
if (_global.sounds) {
bashSound = new Sound(this);
bashSound.attachSound("bash");
bashSound.start(0, 1);
}
trace("pit\u00E4s menn\u00E4 hepaaa");
if (!_global.minion2dying) {
_root.minion2.gotoAndPlay("die");
}
} else {
_root.minion2._x = _root.minion2._x + (xratio * (_global.minionspeed * 10));
_root.minion2._y = _root.minion2._y + (yratio * (_global.minionspeed * 10));
}
}
}
Symbol 2131 MovieClip Frame 13
stop();
Instance of Symbol 2124 MovieClip in Symbol 2131 MovieClip Frame 13
onClipEvent (enterFrame) {
if ((!_global.codsplashed) && (!_global.minion2dying)) {
_parent.gotoAndStop("swim");
}
}
Symbol 2131 MovieClip Frame 14
play();
play();
Symbol 2131 MovieClip Frame 23
stop();
Symbol 2131 MovieClip Frame 24
play();
_global.minion2dead = true;
_global.minion2dying = true;
Symbol 2131 MovieClip Frame 37
stop();
_root.minion2._x = -400;
_root.minion2._y = -300;
if (!_global.lost) {
_global.intervall2Can = true;
}
_global.minion2dying = false;
Symbol 2154 MovieClip Frame 1
stop();
Symbol 2154 MovieClip Frame 2
play();
Symbol 2154 MovieClip Frame 12
stop();
Instance of Symbol 2139 MovieClip in Symbol 2154 MovieClip Frame 12
onClipEvent (enterFrame) {
if (!_root.gameover) {
rad = (_root.minion3._rotation + 90) * (Math.PI/180);
xratio = Math.cos(rad);
yratio = Math.sin(rad);
if (!_root.boatArea.hitTest(_root.minion3._x, _root.minion3._y, true)) {
if (_global.codsplashed && (!_global.minion3dying)) {
_parent.gotoAndStop("confused");
}
_root.minion3._x = _root.minion3._x + (xratio * _global.minionspeed);
_root.minion3._y = _root.minion3._y + (yratio * _global.minionspeed);
} else if (_root.boatHit.hitTest(_root.minion3._x, _root.minion3._y, true)) {
_root.boatZoom.hit.gotoAndPlay("bash");
_root.yourHealth.gotoAndStop(_root.yourHealth._currentframe + 1);
if (_global.sounds) {
bashSound = new Sound(this);
bashSound.attachSound("bash");
bashSound.start(0, 1);
}
trace("pit\u00E4s menn\u00E4 hepaaa");
if (!_global.minion3dying) {
_root.minion3.gotoAndPlay("die");
}
} else {
_root.minion3._x = _root.minion3._x + (xratio * (_global.minionspeed * 8));
_root.minion3._y = _root.minion3._y + (yratio * (_global.minionspeed * 8));
}
}
}
Symbol 2154 MovieClip Frame 13
stop();
Instance of Symbol 2144 MovieClip in Symbol 2154 MovieClip Frame 13
onClipEvent (enterFrame) {
if ((!_global.codsplashed) && (!_global.minion3dying)) {
_parent.gotoAndStop("swim");
}
}
Symbol 2154 MovieClip Frame 14
play();
_global.minion3Attacking = true;
Symbol 2154 MovieClip Frame 20
if (!_global.minion3dying) {
if (Math.random() < 0.5) {
xaccurarity = Math.random() * 30;
} else {
xaccurarity = (Math.random() * 30) * -1;
}
if (Math.random() < 0.5) {
yaccurarity = Math.random() * 30;
} else {
yaccurarity = (Math.random() * 30) * -1;
}
x = (_root.boatZoom._x - _root.minion3._x) + xaccurarity;
y = (_root.boatZoom._y - _root.minion3._y) + yaccurarity;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion3ammo._rotation = direction;
deg = (Math.PI/180) * (360 - normalize);
_global.ammo2ratioX = Math.cos(deg);
_global.ammo2ratioY = Math.sin(deg);
_global.ammo2DesX = x + _root.minion3._x;
_global.ammo2DesY = y + _root.minion3._y;
_global.ammo2lengthX = x;
_global.ammo2lengthY = y;
_root.minion3ammo._x = _root.minion3._x;
_root.minion3ammo._y = _root.minion3._y;
_global.minion3Shot = true;
}
Symbol 2154 MovieClip Frame 21
play();
if (!_global.minion3dying) {
gotoAndStop ("swim");
_global.minion3Attacking = false;
} else {
gotoAndStop ("die");
}
Symbol 2154 MovieClip Frame 22
play();
Symbol 2154 MovieClip Frame 31
stop();
Symbol 2154 MovieClip Frame 32
play();
_global.minion3dead = true;
_global.minion3dying = true;
_global.minion3Attacking = false;
Symbol 2154 MovieClip Frame 45
stop();
_root.minion3._x = -400;
_root.minion3._y = -300;
if (!_global.lost) {
_global.intervall3Can = true;
}
_global.minion3dying = false;
Symbol 2174 MovieClip Frame 1
stop();
Symbol 2174 MovieClip Frame 2
play();
Symbol 2174 MovieClip Frame 12
stop();
Instance of Symbol 2162 MovieClip in Symbol 2174 MovieClip Frame 12
onClipEvent (enterFrame) {
if (!_root.gameover) {
rad = (_root.minion4._rotation + 90) * (Math.PI/180);
xratio = Math.cos(rad);
yratio = Math.sin(rad);
if (!_root.boatArea.hitTest(_root.minion4._x, _root.minion4._y, true)) {
if (_global.codsplashed && (!_global.minion2dying)) {
_parent.gotoAndStop("confused");
}
_root.minion4._x = _root.minion4._x + (xratio * (_global.minionspeed * 2));
_root.minion4._y = _root.minion4._y + (yratio * (_global.minionspeed * 2));
} else if (_root.boatHit.hitTest(_root.minion4._x, _root.minion4._y, true)) {
_root.boatZoom.hit.gotoAndPlay("bash");
_root.yourHealth.gotoAndStop(_root.yourHealth._currentframe + 1);
if (_global.sounds) {
bashSound = new Sound(this);
bashSound.attachSound("bash");
bashSound.start(0, 1);
}
trace("pit\u00E4s menn\u00E4 hepaaa");
if (!_global.minion4dying) {
_root.minion4.gotoAndPlay("die");
}
} else {
_root.minion4._x = _root.minion4._x + (xratio * (_global.minionspeed * 10));
_root.minion4._y = _root.minion4._y + (yratio * (_global.minionspeed * 10));
}
}
}
Symbol 2174 MovieClip Frame 13
stop();
Instance of Symbol 2167 MovieClip in Symbol 2174 MovieClip Frame 13
onClipEvent (enterFrame) {
if ((!_global.codsplashed) && (!_global.minion4dying)) {
_parent.gotoAndStop("swim");
}
}
Symbol 2174 MovieClip Frame 14
play();
Symbol 2174 MovieClip Frame 23
stop();
Symbol 2174 MovieClip Frame 24
play();
_global.minion4dead = true;
_global.minion4dying = true;
Symbol 2174 MovieClip Frame 37
stop();
_root.minion4._x = -400;
_root.minion4._y = -300;
if (!_global.lost) {
_global.intervall4Can = true;
}
_global.minion4dying = false;
Symbol 2212 MovieClip Frame 1
stop();
Symbol 2212 MovieClip Frame 2
play();
Symbol 2212 MovieClip Frame 8
gotoAndStop (57);
Symbol 2212 MovieClip Frame 23
gotoAndStop (57);
Symbol 2212 MovieClip Frame 44
gotoAndStop (57);
Symbol 2212 MovieClip Frame 53
gotoAndStop (57);
Symbol 2212 MovieClip Frame 57
function aim() {
Mouse.hide();
x = _root.cannonCrosshair._x - _root.boatZoom._x;
y = _root.cannonCrosshair._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
if ((normalize > 170) && (normalize < 280)) {
_root.boatZoom.cannon._rotation = normalize + 125;
}
if ((normalize > 205) && (normalize < 255)) {
_root.boatZoom.pirateFishing._rotation = normalize + 125;
}
if (Key.isDown(32) && (!_global.umbrella)) {
if (_global.YourDex == 1) {
dex = 0.5;
} else if (_global.YourDex == 10) {
dex = 5;
} else {
dex = _global.YourDex / 4;
}
if (Math.random() < 0.5) {
xaccurarity = (Math.random() * 50) / dex;
} else {
xaccurarity = ((Math.random() * 50) * -1) / dex;
}
if (Math.random() < 0.5) {
yaccurarity = (Math.random() * 50) / dex;
} else {
yaccurarity = ((Math.random() * 50) * -1) / dex;
}
x = (_root.cannonCrosshair._x - _root.boatZoom._x) + xaccurarity;
y = (_root.cannonCrosshair._y - _root.boatZoom._y) + yaccurarity;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.harpoon._rotation = direction + 125;
deg = (Math.PI/180) * (360 - normalize);
_global.ratioX = Math.cos(deg);
_global.ratioY = Math.sin(deg);
_global.xHarpoonDes = x + _root.boatZoom._x;
_global.yHarpoonDes = y + _root.boatZoom._y;
_root.boatZoom.cannon.gotoAndPlay(2);
clearInterval(aimInterval);
_global.aimingNow = false;
_root.cannonMC.cannonButton.enabled = false;
}
}
_global.shooting = false;
this._x = -500;
this._y = -500;
if ((_root.monsterHealth._currentframe != 85) && (!_global.lost)) {
_root.attachMovie("dot", "dotX", 1001);
_root.cannonCrosshair._x = _global.crossPlacex;
_root.cannonCrosshair._y = _global.crossPlacey;
_root.dotX.startDrag(true);
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_global.aimingNow = true;
aimInterval = setInterval(aim, 10);
_root.cannonMC.cannonButton.enabled = true;
}
gotoAndStop (1);
Symbol 2260 MovieClip Frame 3
if (_global.sounds) {
quackSound = new Sound(this);
quackSound.attachSound("quack");
quackSound.start();
}
Symbol 2260 MovieClip Frame 12
if (_global.sounds) {
quack2Sound = new Sound(this);
quack2Sound.attachSound("quack2");
quack2Sound.start(0, 1);
}
Symbol 2285 MovieClip Frame 9
if (_global.sounds) {
quazSound = new Sound(this);
quazSound.attachSound("quaz");
quazSound.start();
}
Symbol 2285 MovieClip Frame 27
stop();
Symbol 2286 MovieClip Frame 49
_root.musicMC.music1Sound.setVolume(0);
Symbol 2286 MovieClip Frame 225
if (_global.sounds) {
molskSound = new Sound(this);
molskSound.attachSound("molsk");
molskSound.start();
}
Symbol 2286 MovieClip Frame 253
stop();
Symbol 2287 MovieClip Frame 1
stop();
Symbol 2287 MovieClip Frame 2
play();
Symbol 2287 MovieClip Frame 76
if (_global.sounds) {
lastBSound = new Sound(this);
lastBSound.attachSound("lastB");
lastBSound.start();
}
Symbol 2287 MovieClip Frame 90
Symbol 2287 MovieClip Frame 325
_root.musicMC.music1Sound.setVolume(20);
Symbol 2287 MovieClip Frame 326
_root.musicMC.music1Sound.setVolume(40);
Symbol 2287 MovieClip Frame 327
_root.musicMC.music1Sound.setVolume(60);
Symbol 2287 MovieClip Frame 328
_root.musicMC.music1Sound.setVolume(70);
Symbol 2287 MovieClip Frame 425
_global.buttonsUsable = true;
_root.anchorButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
_root.lvlCheck.gotoAndStop(3);
Symbol 2303 MovieClip Frame 1
stop();
Symbol 2320 MovieClip Frame 1
stop();
Symbol 2320 MovieClip Frame 2
_global.prepareToShoot = true;
if (_global.sounds) {
sihiSound = new Sound(this);
sihiSound.attachSound("firing");
sihiSound.start(0, 1);
}
Symbol 2320 MovieClip Frame 14
if (_global.sounds) {
explosionSound = new Sound(this);
explosionSound.attachSound("explosion");
explosionSound.start(0, 1);
}
Symbol 2320 MovieClip Frame 17
_root.harpoon._x = _root.boatZoom._x;
_root.harpoon._y = _root.boatZoom._y;
_global.destiX = _global.xHarpoonDes;
_global.destiY = _global.yHarpoonDes;
_global.shooting = true;
Symbol 2320 MovieClip Frame 24
_global.prepareToShoot = false;
_root.anchorButton.enabled = true;
if (_root.cannonCrosshair._x != -500) {
_global.crossPlacex = _root.cannonCrosshair._x;
_global.crossPlacey = _root.cannonCrosshair._y;
_root.cannonCrosshair._x = -500;
_root.cannonCrosshair._y = -500;
}
Symbol 2325 MovieClip Frame 1
play();
if (_global.sounds) {
umbrSound = new Sound(this);
umbrSound.attachSound("umbr");
umbrSound.start(0, 1);
}
Symbol 2325 MovieClip Frame 8
_global.protected = true;
Symbol 2325 MovieClip Frame 11
stop();
_root.anchorButton.enabled = true;
Symbol 2325 MovieClip Frame 12
play();
Symbol 2325 MovieClip Frame 14
_global.protected = false;
Symbol 2325 MovieClip Frame 22
_root.fishThrow.enabled = true;
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_parent.gotoAndStop(1);
Symbol 2326 MovieClip Frame 1
stop();
_global.umbrella = false;
Symbol 2326 MovieClip Frame 2
stop();
_global.umbrella = true;
Symbol 2341 MovieClip Frame 1
stop();
Symbol 2341 MovieClip Frame 2
play();
Symbol 2341 MovieClip Frame 14
gotoAndStop (1);
Symbol 2341 MovieClip Frame 15
play();
Symbol 2341 MovieClip Frame 23
gotoAndStop (1);
Symbol 2341 MovieClip Frame 24
play();
Symbol 2342 MovieClip Frame 1
stop();
if (_global.voices) {
gotoAndPlay (2);
}
Symbol 2342 MovieClip Frame 94
stop();
Symbol 2346 MovieClip Frame 26
stop();
Symbol 2351 MovieClip Frame 1
stop();
Symbol 2351 MovieClip Frame 2
_global.lost = true;
_root.lvlCheck.clearInterval(minion1Interval);
_root.lvlCheck.clearInterval(minion2Interval);
_root.lvlCheck.clearInterval(minion3Interval);
_root.lvlCheck.clearInterval(minion4Interval);
_root.musicMC.music2Sound.setVolume(70);
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_root.createEmptyMovieClip("xiit", 1001);
_global.crossPlacex = _root.cannonCrosshair._x;
_global.crossPlacey = _root.cannonCrosshair._y;
_root.cannonCrosshair._x = -500;
_root.cannonCrosshair._y = -500;
clearInterval(aimInterval);
clearInterval(_root.harpoon.aimInterval);
clearInterval(_root.cannonMC.aimInterval);
clearInterval(_root.shortkeys.aimInterval);
_global.aimingNow = false;
Mouse.show();
_root.cannonMC.gotoAndStop(1);
play();
Symbol 2351 MovieClip Frame 3
_root.musicMC.music2Sound.setVolume(40);
Symbol 2351 MovieClip Frame 4
_root.musicMC.music2Sound.setVolume(20);
Symbol 2351 MovieClip Frame 5
_root.musicMC.music2Sound.stop();
Symbol 2351 MovieClip Frame 75
stop();
Instance of Symbol 428 MovieClip in Symbol 2351 MovieClip Frame 75
onClipEvent (load) {
_global.lost = false;
_root.gotoAndStop(_root._currentframe + 1);
}
Symbol 2368 MovieClip Frame 11
_root.minion1ammo._x = -200;
_root.minion1ammo._y = -200;
_global.minion1Shot = false;
_root.minion1ammo.gotoAndStop(1);
Symbol 2369 MovieClip Frame 1
stop();
Symbol 2375 MovieClip Frame 11
_root.minion3ammo._x = -200;
_root.minion3ammo._y = -200;
_global.minion3Shot = false;
_root.minion3ammo.gotoAndStop(1);
Symbol 2376 MovieClip Frame 1
stop();
Symbol 2386 MovieClip Frame 1
stop();
Symbol 2386 MovieClip Frame 2
play();
Symbol 2386 MovieClip Frame 79
stop();
Symbol 2386 MovieClip Frame 83
if (!_global.dontPlay) {
if (_global.voices) {
_root.musicMC.music2Sound.setVolume(50);
downSound = new Sound(this);
downSound.attachSound("goingDown");
downSound.start(0, 1);
downSound.onSoundComplete = function () {
_root.musicMC.music2Sound.setVolume(100);
};
}
}
Symbol 2389 MovieClip Frame 1
stop();
Symbol 2389 MovieClip Frame 12
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 13
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 14
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 15
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 16
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 17
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 18
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 19
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 20
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 21
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 22
_root.boatZoom.boat.gotoAndStop(_root.boatZoom.boat._currentframe + 1);
Symbol 2389 MovieClip Frame 23
stop();
Instance of Symbol 428 MovieClip in Symbol 2389 MovieClip Frame 23
onClipEvent (load) {
if (_global.invunerable == false) {
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
_root.cannonMC.cannonButton.enabled = false;
_root.createEmptyMovieClip("xiit", 1001);
_root.cannonCrosshair._x = -500;
_root.cannonCrosshair._y = -500;
clearInterval(_root.cannonMC.aimInterval);
clearInterval(_root.harpoon.aimInterval);
clearInterval(_root.shortkeys.aimInterval);
_global.aimingNow = false;
Mouse.show();
_root.boatZoom.splash.gotoAndPlay(2);
_global.boatBroken = true;
}
}
Symbol 2390 MovieClip Frame 1
stop();
Symbol 2390 MovieClip Frame 2
_root.duck._x = 250;
_root.duck._y = 200;
_root.duck.gotoAndPlay(2);
trace("lvl 1");
Symbol 2390 MovieClip Frame 3
function minion1() {
if (!_global.lost) {
trace("asdasd");
if (Math.random() < 0.5) {
_root.minion1._x = (Math.random() * 200) + 300;
_root.minion1._y = 150;
} else {
_root.minion1._y = (Math.random() * 200) + 300;
_root.minion1._x = 150;
}
x = _root.boatZoom._x - _root.minion1._x;
y = _root.boatZoom._y - _root.minion1._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion1._rotation = direction - 90;
_root.minion1.gotoAndPlay("rise");
clearInterval(minion1Interval);
clearInterval(minion1Interval);
clearInterval(minion1Interval);
}
}
trace("lvl 2");
_root.tooltip.text.gotoAndStop(3);
_global.bosslevel = 2;
_global.minionspeed = 0.5;
_root.minion1.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall1Can) {
_global.minion1dead = false;
_global.intervall1Can = false;
time = Math.round(Math.random() * 3000) + 4000;
trace("intervalli 1 set " + time);
minion1Interval = setInterval(minion1, time);
}
if ((((((!_global.minion1Shot) && (_root.minion1._currentframe > 11)) && (!_global.minion1Attacking)) && (_root.minion1._x > 0)) && (!_global.minion1dying)) && (!_root.boatArea.hitTest(_root.minion1._x, _root.minion1._y, true))) {
if (counter >= 70) {
_root.minion1.gotoAndPlay("attack");
counter = Math.round(Math.random() * 30);
}
counter++;
}
}
};
Symbol 2390 MovieClip Frame 4
function minion1() {
if (!_global.lost) {
trace("raised1");
if (Math.random() < 0.5) {
_root.minion1._x = (Math.random() * 200) + 300;
_root.minion1._y = 150;
} else {
_root.minion1._y = (Math.random() * 200) + 300;
_root.minion1._x = 150;
}
x = _root.boatZoom._x - _root.minion1._x;
y = _root.boatZoom._y - _root.minion1._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion1._rotation = direction - 90;
_root.minion1.gotoAndPlay("rise");
clearInterval(minion1Interval);
clearInterval(minion1Interval);
clearInterval(minion1Interval);
}
}
function minion2() {
if (!_global.lost) {
trace("raised2");
if (Math.random() < 0.5) {
_root.minion2._x = (Math.random() * 200) + 300;
_root.minion2._y = 150;
} else {
_root.minion2._y = (Math.random() * 200) + 300;
_root.minion2._x = 150;
}
x = _root.boatZoom._x - _root.minion2._x;
y = _root.boatZoom._y - _root.minion2._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion2._rotation = direction - 90;
_root.minion2.gotoAndPlay("rise");
clearInterval(minion2Interval);
clearInterval(minion2Interval);
clearInterval(minion2Interval);
}
}
trace("lvl 3");
_root.tooltip.text.gotoAndStop(3);
_global.bosslevel = 3;
_global.minionspeed = 0.5;
_global.minionsKilled = 0;
_root.monster.gotoAndPlay("rise");
_root.monster._x = 200;
_root.monster._y = 145;
ableDive = true;
_root.monsterHealth._visible = true;
_root.monsterHealth.gotoAndPlay(2);
_root.minion1.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall1Can) {
_global.minion1dead = false;
_global.intervall1Can = false;
time = Math.round(Math.random() * 3000) + 4000;
trace("intervalli 1 set " + time);
minion1Interval = setInterval(minion1, time);
}
if ((((((!_global.minion1Shot) && (_root.minion1._currentframe > 11)) && (!_global.minion1Attacking)) && (_root.minion1._x > 0)) && (!_global.minion1dying)) && (!_root.boatArea.hitTest(_root.minion1._x, _root.minion1._y, true))) {
if (counter >= 70) {
_root.minion1.gotoAndPlay("attack");
counter = Math.round(Math.random() * 30);
}
counter++;
}
}
};
_root.minion2.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall2Can) {
_global.minion2dead = false;
_global.intervall2Can = false;
time2 = Math.round(Math.random() * 6000) + 4000;
trace("intervalli 2 set " + time2);
minion2Interval = setInterval(minion2, time2);
}
}
};
_root.monster.onEnterFrame = function () {
if ((_global.minionsKilled >= 8) && (_root.monster._currentframe == 28)) {
_root.monster.gotoAndPlay("open");
_global.minionsKilled = 4;
}
if (((_root.monsterHealth._currentframe == 80) && (ableDive)) && (_root.monster._currentframe == 28)) {
ableDive = false;
_root.monster.gotoAndPlay("dive");
}
if (_root.monster._currentframe == 210) {
gotoAndStop (5);
}
};
Symbol 2390 MovieClip Frame 5
function minion1() {
if (!_global.lost) {
trace("raised1");
if (Math.random() < 0.5) {
_root.minion1._x = (Math.random() * 200) + 300;
_root.minion1._y = 150;
} else {
_root.minion1._y = (Math.random() * 200) + 300;
_root.minion1._x = 150;
}
x = _root.boatZoom._x - _root.minion1._x;
y = _root.boatZoom._y - _root.minion1._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion1._rotation = direction - 90;
_root.minion1.gotoAndPlay("rise");
clearInterval(minion1Interval);
clearInterval(minion1Interval);
clearInterval(minion1Interval);
}
}
function minion2() {
if (!_global.lost) {
trace("raised2");
if (Math.random() < 0.5) {
_root.minion2._x = (Math.random() * 200) + 300;
_root.minion2._y = 150;
} else {
_root.minion2._y = (Math.random() * 200) + 300;
_root.minion2._x = 150;
}
x = _root.boatZoom._x - _root.minion2._x;
y = _root.boatZoom._y - _root.minion2._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion2._rotation = direction - 90;
_root.minion2.gotoAndPlay("rise");
clearInterval(minion2Interval);
clearInterval(minion2Interval);
clearInterval(minion2Interval);
}
}
trace("lvl 4");
_root.tooltip.text.gotoAndStop(3);
_global.bosslevel = 4;
_global.minionspeed = 0.75;
_global.minionsKilled = 0;
_root.monster.gotoAndPlay("rise");
_root.monster._x = 200;
_root.monster._y = 145;
ableDive = true;
_root.monsterHealth._visible = true;
_root.monsterHealth.gotoAndStop(80);
_root.minion1.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall1Can) {
_global.minion1dead = false;
_global.intervall1Can = false;
time = Math.round(Math.random() * 3000) + 4000;
trace("intervalli 1 set " + time);
minion1Interval = setInterval(minion1, time);
}
if ((((((!_global.minion1Shot) && (_root.minion1._currentframe > 11)) && (!_global.minion1Attacking)) && (_root.minion1._x > 0)) && (!_global.minion1dying)) && (!_root.boatArea.hitTest(_root.minion1._x, _root.minion1._y, true))) {
if (counter >= 70) {
_root.minion1.gotoAndPlay("attack");
counter = Math.round(Math.random() * 30);
}
counter++;
}
}
};
_root.minion2.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall2Can) {
_global.minion2dead = false;
_global.intervall2Can = false;
time2 = Math.round(Math.random() * 6000) + 4000;
trace("intervalli 2 set " + time2);
minion2Interval = setInterval(minion2, time2);
}
}
};
_root.monster.onEnterFrame = function () {
if ((_global.minionsKilled >= 9) && (_root.monster._currentframe == 28)) {
_root.monster.gotoAndPlay("open");
_global.minionsKilled = 5;
}
if (((_root.monsterHealth._currentframe == 81) && (ableDive)) && (_root.monster._currentframe == 28)) {
ableDive = false;
_root.monster.gotoAndPlay("dive");
}
if (_root.monster._currentframe == 210) {
gotoAndStop (6);
}
};
Symbol 2390 MovieClip Frame 6
function minion1() {
if (!_global.lost) {
trace("raised1");
if (Math.random() < 0.5) {
_root.minion1._x = (Math.random() * 200) + 300;
_root.minion1._y = 150;
} else {
_root.minion1._y = (Math.random() * 200) + 300;
_root.minion1._x = 150;
}
x = _root.boatZoom._x - _root.minion1._x;
y = _root.boatZoom._y - _root.minion1._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion1._rotation = direction - 90;
_root.minion1.gotoAndPlay("rise");
clearInterval(minion1Interval);
clearInterval(minion1Interval);
clearInterval(minion1Interval);
}
}
function minion2() {
if (!_global.lost) {
trace("raised2");
if (Math.random() < 0.5) {
_root.minion2._x = (Math.random() * 200) + 300;
_root.minion2._y = 150;
} else {
_root.minion2._y = (Math.random() * 200) + 300;
_root.minion2._x = 150;
}
x = _root.boatZoom._x - _root.minion2._x;
y = _root.boatZoom._y - _root.minion2._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion2._rotation = direction - 90;
_root.minion2.gotoAndPlay("rise");
clearInterval(minion2Interval);
clearInterval(minion2Interval);
clearInterval(minion2Interval);
}
}
trace("lvl 5");
_root.tooltip.text.gotoAndStop(3);
_global.bosslevel = 5;
_global.minionspeed = 0.75;
_global.minionsKilled = 0;
_root.monster.gotoAndPlay("rise");
_root.monster._x = 200;
_root.monster._y = 145;
ableDive = true;
_root.monsterHealth._visible = true;
_root.monsterHealth.gotoAndStop(81);
_root.minion1.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall1Can) {
_global.minion1dead = false;
_global.intervall1Can = false;
time = Math.round(Math.random() * 3000) + 4000;
trace("intervalli 1 set " + time);
minion1Interval = setInterval(minion1, time);
}
if ((((((!_global.minion1Shot) && (_root.minion1._currentframe > 11)) && (!_global.minion1Attacking)) && (_root.minion1._x > 0)) && (!_global.minion1dying)) && (!_root.boatArea.hitTest(_root.minion1._x, _root.minion1._y, true))) {
if (counter >= 70) {
_root.minion1.gotoAndPlay("attack");
counter = Math.round(Math.random() * 30);
}
counter++;
}
}
};
_root.minion2.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall2Can) {
_global.minion2dead = false;
_global.intervall2Can = false;
time2 = Math.round(Math.random() * 6000) + 4000;
trace("intervalli 2 set " + time2);
minion2Interval = setInterval(minion2, time2);
}
}
};
_root.monster.onEnterFrame = function () {
if ((_global.minionsKilled >= 10) && (_root.monster._currentframe == 28)) {
_root.monster.gotoAndPlay("open");
_global.minionsKilled = 6;
}
if (((_root.monsterHealth._currentframe == 82) && (ableDive)) && (_root.monster._currentframe == 28)) {
ableDive = false;
_root.monster.gotoAndPlay("dive");
}
if (_root.monster._currentframe == 210) {
gotoAndStop (7);
}
if (_root.monster._currentframe == 28) {
if (xcounter >= 600) {
_root.monster.gotoAndStop("attack");
xcounter = 0;
}
xcounter++;
}
};
Symbol 2390 MovieClip Frame 7
function minion1() {
if (!_global.lost) {
trace("raised1");
if (Math.random() < 0.5) {
_root.minion1._x = (Math.random() * 200) + 300;
_root.minion1._y = 150;
} else {
_root.minion1._y = (Math.random() * 200) + 300;
_root.minion1._x = 150;
}
x = _root.boatZoom._x - _root.minion1._x;
y = _root.boatZoom._y - _root.minion1._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion1._rotation = direction - 90;
_root.minion1.gotoAndPlay("rise");
clearInterval(minion1Interval);
clearInterval(minion1Interval);
clearInterval(minion1Interval);
}
}
function minion2() {
if (!_global.lost) {
trace("raised2");
if (Math.random() < 0.5) {
_root.minion2._x = (Math.random() * 200) + 300;
_root.minion2._y = 150;
} else {
_root.minion2._y = (Math.random() * 200) + 300;
_root.minion2._x = 150;
}
x = _root.boatZoom._x - _root.minion2._x;
y = _root.boatZoom._y - _root.minion2._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion2._rotation = direction - 90;
_root.minion2.gotoAndPlay("rise");
clearInterval(minion2Interval);
clearInterval(minion2Interval);
clearInterval(minion2Interval);
}
}
function minion3() {
if (!_global.lost) {
trace("raised3");
if (Math.random() < 0.5) {
_root.minion3._x = (Math.random() * 200) + 300;
_root.minion3._y = 150;
} else {
_root.minion3._y = (Math.random() * 200) + 300;
_root.minion3._x = 150;
}
x = _root.boatZoom._x - _root.minion3._x;
y = _root.boatZoom._y - _root.minion3._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion3._rotation = direction - 90;
_root.minion3.gotoAndPlay("rise");
clearInterval(minion3Interval);
clearInterval(minion3Interval);
clearInterval(minion3Interval);
}
}
trace("lvl 6");
_root.tooltip.text.gotoAndStop(3);
_global.bosslevel = 6;
_global.minionspeed = 0.75;
_global.minionsKilled = 0;
_root.monster.gotoAndPlay("rise");
_root.monster._x = 200;
_root.monster._y = 145;
ableDive = true;
_root.monsterHealth._visible = true;
_root.monsterHealth.gotoAndStop(82);
_root.minion1.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall1Can) {
_global.minion1dead = false;
_global.intervall1Can = false;
time = Math.round(Math.random() * 3000) + 4000;
trace("intervalli 1 set " + time);
minion1Interval = setInterval(minion1, time);
}
if ((((((!_global.minion1Shot) && (_root.minion1._currentframe > 11)) && (!_global.minion1Attacking)) && (_root.minion1._x > 0)) && (!_global.minion1dying)) && (!_root.boatArea.hitTest(_root.minion1._x, _root.minion1._y, true))) {
if (counter >= 70) {
_root.minion1.gotoAndPlay("attack");
counter = Math.round(Math.random() * 30);
}
counter++;
}
}
};
_root.minion2.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall2Can) {
_global.minion2dead = false;
_global.intervall2Can = false;
time2 = Math.round(Math.random() * 6000) + 4000;
trace("intervalli 2 set " + time2);
minion2Interval = setInterval(minion2, time2);
}
}
};
_root.minion3.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall3Can) {
_global.minion3dead = false;
_global.intervall3Can = false;
time = Math.round(Math.random() * 3000) + 4000;
trace("intervalli 3 set " + time);
minion3Interval = setInterval(minion3, time);
}
if ((((((!_global.minion3Shot) && (_root.minion3._currentframe > 11)) && (!_global.minion3Attacking)) && (_root.minion3._x > 0)) && (!_global.minion3dying)) && (!_root.boatArea.hitTest(_root.minion3._x, _root.minion3._y, true))) {
if (zcounter >= 70) {
_root.minion3.gotoAndPlay("attack");
zcounter = Math.round(Math.random() * 30);
}
zcounter++;
}
}
};
_root.monster.onEnterFrame = function () {
if ((_global.minionsKilled >= 11) && (_root.monster._currentframe == 28)) {
_root.monster.gotoAndPlay("open");
_global.minionsKilled = 7;
}
if (((_root.monsterHealth._currentframe == 83) && (ableDive)) && (_root.monster._currentframe == 28)) {
ableDive = false;
_root.monster.gotoAndPlay("dive");
}
if (_root.monster._currentframe == 210) {
gotoAndStop (8);
}
if (_root.monster._currentframe == 28) {
if (xcounter >= 600) {
_root.monster.gotoAndStop("attack");
xcounter = 0;
}
xcounter++;
}
};
Symbol 2390 MovieClip Frame 8
function minion1() {
if (!_global.lost) {
trace("raised1");
if (Math.random() < 0.5) {
_root.minion1._x = (Math.random() * 200) + 300;
_root.minion1._y = 150;
} else {
_root.minion1._y = (Math.random() * 200) + 300;
_root.minion1._x = 150;
}
x = _root.boatZoom._x - _root.minion1._x;
y = _root.boatZoom._y - _root.minion1._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion1._rotation = direction - 90;
_root.minion1.gotoAndPlay("rise");
clearInterval(minion1Interval);
clearInterval(minion1Interval);
clearInterval(minion1Interval);
}
}
function minion2() {
if (!_global.lost) {
trace("raised2");
if (Math.random() < 0.5) {
_root.minion2._x = (Math.random() * 200) + 300;
_root.minion2._y = 150;
} else {
_root.minion2._y = (Math.random() * 200) + 300;
_root.minion2._x = 150;
}
x = _root.boatZoom._x - _root.minion2._x;
y = _root.boatZoom._y - _root.minion2._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion2._rotation = direction - 90;
_root.minion2.gotoAndPlay("rise");
clearInterval(minion2Interval);
clearInterval(minion2Interval);
clearInterval(minion2Interval);
}
}
function minion3() {
if (!_global.lost) {
trace("raised3");
if (Math.random() < 0.5) {
_root.minion3._x = (Math.random() * 200) + 300;
_root.minion3._y = 150;
} else {
_root.minion3._y = (Math.random() * 200) + 300;
_root.minion3._x = 150;
}
x = _root.boatZoom._x - _root.minion3._x;
y = _root.boatZoom._y - _root.minion3._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion3._rotation = direction - 90;
_root.minion3.gotoAndPlay("rise");
clearInterval(minion3Interval);
clearInterval(minion3Interval);
clearInterval(minion3Interval);
}
}
trace("lvl 7");
_root.tooltip.text.gotoAndStop(3);
_global.bosslevel = 7;
_global.minionspeed = 0.75;
_global.minionsKilled = 0;
_root.monster.gotoAndPlay("rise");
_root.monster._x = 200;
_root.monster._y = 145;
ableDive = true;
_root.monsterHealth._visible = true;
_root.monsterHealth.gotoAndStop(83);
_root.minion1.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall1Can) {
_global.minion1dead = false;
_global.intervall1Can = false;
time = Math.round(Math.random() * 3000) + 4000;
trace("intervalli 1 set " + time);
minion1Interval = setInterval(minion1, time);
}
if ((((((!_global.minion1Shot) && (_root.minion1._currentframe > 11)) && (!_global.minion1Attacking)) && (_root.minion1._x > 0)) && (!_global.minion1dying)) && (!_root.boatArea.hitTest(_root.minion1._x, _root.minion1._y, true))) {
if (counter >= 70) {
_root.minion1.gotoAndPlay("attack");
counter = Math.round(Math.random() * 30);
}
counter++;
}
}
};
_root.minion2.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall2Can) {
_global.minion2dead = false;
_global.intervall2Can = false;
time2 = Math.round(Math.random() * 6000) + 4000;
trace("intervalli 2 set " + time2);
minion2Interval = setInterval(minion2, time2);
}
}
};
_root.minion3.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall3Can) {
_global.minion3dead = false;
_global.intervall3Can = false;
time = Math.round(Math.random() * 3000) + 4000;
trace("intervalli 3 set " + time);
minion3Interval = setInterval(minion3, time);
}
if ((((((!_global.minion3Shot) && (_root.minion3._currentframe > 11)) && (!_global.minion3Attacking)) && (_root.minion3._x > 0)) && (!_global.minion3dying)) && (!_root.boatArea.hitTest(_root.minion3._x, _root.minion3._y, true))) {
if (zcounter >= 70) {
_root.minion3.gotoAndPlay("attack");
zcounter = Math.round(Math.random() * 30);
}
zcounter++;
}
}
};
_root.monster.onEnterFrame = function () {
if ((_global.minionsKilled >= 12) && (_root.monster._currentframe == 28)) {
_root.monster.gotoAndPlay("open");
_global.minionsKilled = 8;
}
if (((_root.monsterHealth._currentframe == 84) && (ableDive)) && (_root.monster._currentframe == 28)) {
ableDive = false;
_root.monster.gotoAndPlay("dive");
}
if (_root.monster._currentframe == 210) {
gotoAndStop (9);
}
if (_root.monster._currentframe == 28) {
if (xcounter >= 600) {
_root.monster.gotoAndStop("attack");
xcounter = 0;
}
xcounter++;
}
};
Symbol 2390 MovieClip Frame 9
function minion1() {
if ((_root.monsterHealth._currentframe != 85) && (!_global.lost)) {
trace("raised1");
if (Math.random() < 0.5) {
_root.minion1._x = (Math.random() * 200) + 300;
_root.minion1._y = 150;
} else {
_root.minion1._y = (Math.random() * 200) + 300;
_root.minion1._x = 150;
}
x = _root.boatZoom._x - _root.minion1._x;
y = _root.boatZoom._y - _root.minion1._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion1._rotation = direction - 90;
_root.minion1.gotoAndPlay("rise");
}
clearInterval(minion1Interval);
clearInterval(minion1Interval);
clearInterval(minion1Interval);
}
function minion2() {
if ((_root.monsterHealth._currentframe != 85) && (!_global.lost)) {
trace("raised2");
if (Math.random() < 0.5) {
_root.minion2._x = (Math.random() * 200) + 300;
_root.minion2._y = 150;
} else {
_root.minion2._y = (Math.random() * 200) + 300;
_root.minion2._x = 150;
}
x = _root.boatZoom._x - _root.minion2._x;
y = _root.boatZoom._y - _root.minion2._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion2._rotation = direction - 90;
_root.minion2.gotoAndPlay("rise");
}
clearInterval(minion2Interval);
clearInterval(minion2Interval);
clearInterval(minion2Interval);
}
function minion3() {
if ((_root.monsterHealth._currentframe != 85) && (!_global.lost)) {
trace("raised3");
if (Math.random() < 0.5) {
_root.minion3._x = (Math.random() * 200) + 300;
_root.minion3._y = 150;
} else {
_root.minion3._y = (Math.random() * 200) + 300;
_root.minion3._x = 150;
}
x = _root.boatZoom._x - _root.minion3._x;
y = _root.boatZoom._y - _root.minion3._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion3._rotation = direction - 90;
_root.minion3.gotoAndPlay("rise");
}
clearInterval(minion3Interval);
clearInterval(minion3Interval);
clearInterval(minion3Interval);
}
function minion4() {
if ((_root.monsterHealth._currentframe != 85) && (!_global.lost)) {
trace("raised4");
if (Math.random() < 0.5) {
_root.minion4._x = (Math.random() * 200) + 300;
_root.minion4._y = 150;
} else {
_root.minion4._y = (Math.random() * 200) + 300;
_root.minion4._x = 150;
}
x = _root.boatZoom._x - _root.minion4._x;
y = _root.boatZoom._y - _root.minion4._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.minion4._rotation = direction - 90;
_root.minion4.gotoAndPlay("rise");
}
clearInterval(minion4Interval);
clearInterval(minion4Interval);
clearInterval(minion4Interval);
}
trace("lvl 8");
_root.tooltip.text.gotoAndStop(3);
_global.bosslevel = 8;
_global.minionspeed = 0.75;
_global.minionsKilled = 0;
_root.monster.gotoAndPlay("rise");
_root.monster._x = 200;
_root.monster._y = 145;
ableDive = true;
_root.monsterHealth._visible = true;
_root.monsterHealth.gotoAndStop(84);
_root.minion1.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall1Can) {
_global.minion1dead = false;
_global.intervall1Can = false;
time = Math.round(Math.random() * 3000) + 4000;
trace("intervalli 1 set " + time);
minion1Interval = setInterval(minion1, time);
}
if ((((((!_global.minion1Shot) && (_root.minion1._currentframe > 11)) && (!_global.minion1Attacking)) && (_root.minion1._x > 0)) && (!_global.minion1dying)) && (!_root.boatArea.hitTest(_root.minion1._x, _root.minion1._y, true))) {
if (counter >= 70) {
_root.minion1.gotoAndPlay("attack");
counter = Math.round(Math.random() * 30);
}
counter++;
}
}
};
_root.minion2.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall2Can) {
_global.minion2dead = false;
_global.intervall2Can = false;
time2 = Math.round(Math.random() * 6000) + 4000;
trace("intervalli 2 set " + time2);
minion2Interval = setInterval(minion2, time2);
}
}
};
_root.minion3.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall3Can) {
_global.minion3dead = false;
_global.intervall3Can = false;
time = Math.round(Math.random() * 3000) + 4000;
trace("intervalli 3 set " + time);
minion3Interval = setInterval(minion3, time);
}
if ((((((!_global.minion3Shot) && (_root.minion3._currentframe > 11)) && (!_global.minion3Attacking)) && (_root.minion3._x > 0)) && (!_global.minion3dying)) && (!_root.boatArea.hitTest(_root.minion3._x, _root.minion3._y, true))) {
if (zcounter >= 70) {
_root.minion3.gotoAndPlay("attack");
zcounter = Math.round(Math.random() * 30);
}
zcounter++;
}
}
};
_root.minion4.onEnterFrame = function () {
if (!_global.codsplashed) {
if (_global.intervall4Can) {
_global.minion4dead = false;
_global.intervall4Can = false;
time4 = Math.round(Math.random() * 6000) + 4000;
trace("intervalli 4 set " + time4);
minion4Interval = setInterval(minion4, time4);
}
}
};
_root.monster.onEnterFrame = function () {
if ((_global.minionsKilled >= 12) && (_root.monster._currentframe == 28)) {
_root.monster.gotoAndPlay("open");
_global.minionsKilled = 8;
}
if (_root.monster._currentframe == 28) {
if (xcounter >= 600) {
_root.monster.gotoAndStop("attack");
xcounter = 0;
}
xcounter++;
}
};
Symbol 2391 MovieClip Frame 1
stop();
Symbol 2391 MovieClip Frame 2
music1Sound = new Sound(this);
music1Sound.attachSound("preboss");
music1Sound.start();
music1Sound.setVolume(70);
music1Sound.onSoundComplete = function () {
_root.lvlCheck.gotoAndStop(4);
gotoAndStop (3);
};
Symbol 2391 MovieClip Frame 3
crapSound = new Sound(this);
crapSound.attachSound("ohcrap");
crapSound.start();
if (!_global.voices) {
crapSound.setVolume(0);
}
crapSound.onSoundComplete = function () {
gotoAndStop (4);
};
Symbol 2391 MovieClip Frame 4
music2Sound = new Sound(this);
music2Sound.attachSound("bossfight");
music2Sound.start();
music2Sound.onSoundComplete = function () {
music2Sound.start();
};
Symbol 2403 MovieClip Frame 1
stop();
Symbol 2403 MovieClip Frame 2
play();
Symbol 2403 MovieClip Frame 121
gotoAndStop (1);
Symbol 2403 MovieClip Frame 122
play();
Symbol 2403 MovieClip Frame 242
gotoAndStop (1);
Symbol 2403 MovieClip Frame 243
play();
Symbol 2403 MovieClip Frame 363
gotoAndStop (1);
Symbol 2403 MovieClip Frame 364
play();
Symbol 2403 MovieClip Frame 484
gotoAndStop (1);
Symbol 2403 MovieClip Frame 485
play();
Symbol 2403 MovieClip Frame 605
gotoAndStop (1);
Symbol 2403 MovieClip Frame 606
play();
Symbol 2403 MovieClip Frame 726
gotoAndStop (1);
Symbol 2412 Button
on (release) {
function aim() {
Mouse.hide();
x = _root.cannonCrosshair._x - _root.boatZoom._x;
y = _root.cannonCrosshair._y - _root.boatZoom._y;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
if ((normalize > 170) && (normalize < 280)) {
_root.boatZoom.cannon._rotation = normalize + 125;
}
if ((normalize > 205) && (normalize < 255)) {
_root.boatZoom.pirateFishing._rotation = normalize + 125;
}
if (Key.isDown(32) && (!_global.umbrella)) {
if (_global.YourDex == 1) {
dex = 0.5;
} else if (_global.YourDex == 10) {
dex = 5;
} else {
dex = _global.YourDex / 4;
}
if (Math.random() < 0.5) {
xaccurarity = (Math.random() * 50) / dex;
} else {
xaccurarity = ((Math.random() * 50) * -1) / dex;
}
if (Math.random() < 0.5) {
yaccurarity = (Math.random() * 50) / dex;
} else {
yaccurarity = ((Math.random() * 50) * -1) / dex;
}
x = (_root.cannonCrosshair._x - _root.boatZoom._x) + xaccurarity;
y = (_root.cannonCrosshair._y - _root.boatZoom._y) + yaccurarity;
angleRad = Math.atan2(y, x);
direction = (angleRad / Math.PI) * 180;
if (direction < 0) {
normalize = 360 + direction;
} else {
normalize = direction;
}
_root.harpoon._rotation = direction + 125;
deg = (Math.PI/180) * (360 - normalize);
_global.ratioX = Math.cos(deg);
_global.ratioY = Math.sin(deg);
_global.xHarpoonDes = x + _root.boatZoom._x;
_global.yHarpoonDes = y + _root.boatZoom._y;
_root.boatZoom.cannon.gotoAndPlay(2);
clearInterval(aimInterval);
_global.aimingNow = false;
_root.cannonMC.cannonButton.enabled = false;
}
}
_root.attachMovie("dot", "dotX", 1001);
_root.cannonCrosshair._x = _global.crossPlacex;
_root.cannonCrosshair._y = _global.crossPlacey;
_root.dotX.startDrag(true);
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.inventoryButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
gotoAndStop (2);
_global.aimingNow = true;
aimInterval = setInterval(aim, 10);
}
Symbol 2414 Button
on (release) {
_root.anchorButton.enabled = true;
_root.statsButton.enabled = true;
_root.fishesButton.enabled = true;
_root.inventoryButton.enabled = true;
_root.mc_menu.menuButton.enabled = true;
_root.cannonMC.cannonButton.enabled = true;
_root.createEmptyMovieClip("xiit", 1001);
_global.crossPlacex = _root.cannonCrosshair._x;
_global.crossPlacey = _root.cannonCrosshair._y;
_root.cannonCrosshair._x = -500;
_root.cannonCrosshair._y = -500;
clearInterval(aimInterval);
clearInterval(_root.harpoon.aimInterval);
clearInterval(_root.shortkeys.aimInterval);
_global.aimingNow = false;
Mouse.show();
gotoAndStop (1);
}
Symbol 2415 MovieClip Frame 1
stop();
Symbol 2416 Button
on (release) {
if (_global.cods > 0) {
if (!_global.throwingFish) {
_global.throwingFish = true;
_root.codPlace.attachMovie("splash", "splashOpen", 566);
_global.cods--;
}
} else {
_root.messages2.gotoAndPlay(2);
}
}
Symbol 2417 MovieClip Frame 1
stop();
Symbol 2417 MovieClip Frame 2
play();
Symbol 2417 MovieClip Frame 205
_global.codsplashed = false;
Symbol 2422 Button
on (release) {
if (!_global.protected) {
_root.boatZoom.pirateFishing.gotoAndStop(2);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
} else {
_root.boatZoom.pirateFishing.umbrella.gotoAndPlay(_root.boatZoom.pirateFishing.umbrella._currentframe + 1);
_root.anchorButton.enabled = false;
_root.statsButton.enabled = false;
_root.fishesButton.enabled = false;
_root.mc_menu.menuButton.enabled = false;
}
}
Symbol 2424 Button
on (release) {
_global.tooltip = false;
gotoAndStop (2);
}
Symbol 2430 MovieClip Frame 1
stop();
Symbol 2431 Button
on (release) {
_global.tooltip = true;
gotoAndStop (1);
}
Symbol 2432 MovieClip Frame 1
stop();
Symbol 2433 Button
on (release) {
gotoAndStop (1201);
}
Symbol 2436 MovieClip Frame 1
stop();
Symbol 2438 Button
on (release) {
gotoAndStop (1219);
}
Symbol 2466 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 2469 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 2471 MovieClip Frame 1
if (_global.music) {
intrxMusic = new Sound(this);
intrxMusic.attachSound("kalaintro");
intrxMusic.start(23, 0);
intrxMusic.setVolume(0);
}
Symbol 2471 MovieClip Frame 4
intrxMusic.setVolume(20);
Symbol 2471 MovieClip Frame 7
intrxMusic.setVolume(40);
Symbol 2471 MovieClip Frame 10
intrxMusic.setVolume(60);
Symbol 2471 MovieClip Frame 13
intrxMusic.setVolume(80);
Symbol 2471 MovieClip Frame 16
intrxMusic.setVolume(100);
Symbol 2471 MovieClip Frame 570
stop();