Frame 1
System.security.allowDomain("*");
stop();
Frame 2
stop();
Frame 3
onEnterFrame = function () {
blaaa = _currentframe;
};
baseMove = false;
snd = true;
searchlight = false;
solaris = false;
navigation = false;
tank = false;
score = 0;
cargo = 1;
cargo_akt = Math.round(cargo * 2.5);
money = 50;
onboard = 0;
cannons = 1;
speed = 1;
eats = 1;
delay_koef = 1;
umiracek = 0;
cas = 0;
gamefinished = false;
starC = false;
starS = false;
starG = false;
killingtouch = false;
if ((_root.snd eq true) and (zvuk1 == null)) {
zvuk1 = new Sound();
zvuk1.attachSound("sear");
zvuk1.setVolume(100);
zvuk1.start(0, 1000);
}
i = 0;
while (i < 50) {
if (_root["enemy" + i] != null) {
removeMovieClip(_root["enemy" + i]);
}
if (_root["bublina" + i] != null) {
removeMovieClip(_root["bublina" + i]);
}
if (_root["strela" + i] != null) {
removeMovieClip(_root["strela" + i]);
}
i++;
}
removeMovieClip(hud_score);
removeMovieClip(hud_healt_coal);
removeMovieClip(hud_money);
stop();
_quality = "MEDIUM";
removeMovieClip(zatemnovac);
Instance of Symbol 505 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (Key.isDown(106)) {
nextFrame();
}
}
Frame 5
attachMovie("whitescr", "zatemnovac", 1105);
zatemnovac.gotoAndPlay(8);
Frame 6
function sendScore() {
var _local1 = _root;
now = new Date();
_local1.diff = 0;
_local1.username = _local1.nick;
_local1.game_id = 18;
_local1.chs = ((_local1.score * now.getUTCHours()) * now.getUTCDate()) + (now.getUTCFullYear() * 77);
loadVariablesNum ("http://scores.funny-games.biz/scores.php", 0, "POST");
HS = true;
HSwaiting = 0;
}
function StrelaFire() {
var _local1 = _root;
if (nabitX < 0) {
attachMovie("strela", "strela" add pocetstrel, pocetstrel);
_local1["strela" + pocetstrel].gotoAndStop(cannons - 1);
nabitX = rozptyl;
if (otoceni > 0) {
_local1["Uhel" + pocetstrel] = (Math.PI/2) + (r * (Math.PI/180));
} else {
_local1["Uhel" + pocetstrel] = 4.71238898038469 + (r * (Math.PI/180));
}
_local1["strela" + pocetstrel]._x = hero._x + ((sirka + 5) * Math.sin(_local1["Uhel" + pocetstrel]));
_local1["strela" + pocetstrel]._y = (hero._y + 7) - ((sirka + 5) * Math.cos(_local1["Uhel" + pocetstrel]));
}
pocetstrel++;
if (pocetstrel == maxstrel) {
pocetstrel = 0;
}
}
function strelaMove(index, Uhel) {
var _local1 = Uhel;
var _local2 = index;
var _local3 = _root;
_local3["strela" + _local2]._y = _local3["strela" + _local2]._y + ((-Math.cos(_local1)) * fs);
_local3["strela" + _local2]._x = _local3["strela" + _local2]._x + (Math.sin(_local1) * fs);
_local3["strela" + _local2]._rotation = _local1 / 0.0175;
}
function zahodStrelu(a) {
removeMovieClip(_root["strela" + a]);
}
function Scrolling() {
var _local1 = _root;
if (hero._x < (2 + sirka)) {
x = -x;
hero._x = hero._x + 1;
}
if (hero._x > (548 - sirka)) {
x = -x;
hero._x = hero._x - 1;
}
posun_x = Math.min(Math.abs(x), rychlost);
posun_y = Math.min(Math.abs(y), rychlost);
if ((hero._x <= leva) and ((hero._x - wall._x) > leva)) {
I = 0;
while (I < PocetScroll) {
_local1[ObjektyScroll[I]]._x = _local1[ObjektyScroll[I]]._x + posun_x;
I++;
}
I = 0;
while (I < maxstrel) {
if (_local1["strela" + I] != null) {
_local1["strela" + I]._x = _local1["strela" + I]._x + posun_x;
}
I++;
}
I = 0;
while (I < maxbublin) {
if (_local1["bublina" + I] != null) {
_local1["bublina" + I]._x = _local1["bublina" + I]._x + posun_x;
}
I++;
}
}
if ((hero._x >= prava) and ((hero._x - wall._x) < (2333 - leva))) {
I = 0;
while (I < PocetScroll) {
_local1[ObjektyScroll[I]]._x = _local1[ObjektyScroll[I]]._x - posun_x;
I++;
}
I = 0;
while (I < maxstrel) {
if (_local1["strela" + I] != null) {
_local1["strela" + I]._x = _local1["strela" + I]._x - posun_x;
}
I++;
}
I = 0;
while (I < maxbublin) {
if (_local1["bublina" + I] != null) {
_local1["bublina" + I]._x = _local1["bublina" + I]._x - posun_x;
}
I++;
}
}
if ((hero._y <= horni) and (deepness > 50)) {
I = 0;
while (I < PocetScroll) {
_local1[ObjektyScroll[I]]._y = _local1[ObjektyScroll[I]]._y + (posun_y - zatizeni);
I++;
}
I = 0;
while (I < maxstrel) {
if (_local1["strela" + I] != null) {
_local1["strela" + I]._y = _local1["strela" + I]._y + (posun_y - zatizeni);
}
I++;
}
I = 0;
while (I < maxbublin) {
if (_local1["bublina" + I] != null) {
_local1["bublina" + I]._y = _local1["bublina" + I]._y + (posun_y - zatizeni);
}
I++;
}
}
if ((hero._y >= dolni) and (deepness < (1425 - horni))) {
I = 0;
while (I < PocetScroll) {
_local1[ObjektyScroll[I]]._y = _local1[ObjektyScroll[I]]._y - (posun_y + zatizeni);
I++;
}
I = 0;
while (I < maxstrel) {
if (_local1["strela" + I] != null) {
_local1["strela" + I]._y = _local1["strela" + I]._y - (posun_y + zatizeni);
}
I++;
}
I = 0;
while (I < maxbublin) {
if (_local1["bublina" + I] != null) {
_local1["bublina" + I]._y = _local1["bublina" + I]._y - (posun_y + zatizeni);
}
I++;
}
}
}
function Bublat(x) {
var _local1 = _root;
var _local2 = x;
while (_local2 >= 1) {
Ibublina++;
_local2--;
attachMovie("bublina", "bublina" + Ibublina, 100 + Ibublina);
_local1["bublina" + Ibublina]._x = hero._x - ((sirka * otoceni) / Math.abs(otoceni));
_local1["bublina" + Ibublina]._y = hero._y - (r / (3 * (otoceni / Math.abs(otoceni))));
_local1["bublina_y" + Ibublina] = -5 - (random(20) / 10);
if (Ibublina == maxBublin) {
Ibublina = 0;
}
}
return(_local2);
}
function BublinyMove() {
var _local1 = _root;
var _local2;
i = 0;
while (i <= (maxBublin + 1)) {
if (_local1["bublina" + i] != null) {
if (Ibublina < i) {
_local2 = (Ibublina + maxBublin) - i;
} else {
_local2 = Ibublina - i;
}
_local1["bublina" + i]._y = _local1["bublina" + i]._y + (_local1["bublina_y" + i] - (_local2 / 4));
_local1["bublina" + i]._x = _local1["bublina" + i]._x + (random(5) - 2);
if ((_local1["bublina" + i]._y < 0) or (_local1["bublina" + i]._y < base._y)) {
removeMovieClip(_local1["bublina" + i]);
}
}
i++;
}
}
function VyberRybu() {
var _local1 = _root;
var _local2;
j = 0;
while (j <= PocetDruhu) {
_local1[druhy[j] + "count"] = 0;
j++;
}
j = 0;
while (j <= PocetDruhu) {
i = 1;
while (i <= maxRyb) {
if (_local1["enemyTyp" + i] == druhy[j]) {
_local1[druhy[j] + "count"]++;
}
i++;
}
j++;
}
i = 1;
while (i < 10) {
_local2 = random(PocetDruhu);
if (_local1[druhy[_local2] + "count"] < (random(_local1[druhy[_local2] + "limit"]) + 1)) {
return(_local2);
}
i++;
}
return(undefined);
}
function RybyVznik(pocitadlo) {
var _local1 = _root;
var _local2 = pocitadlo;
if (_local2 > 150) {
vyber = VyberRybu();
i = 0;
while (i <= maxRyb) {
if ((_local1["enemy" + i] == null) and (vyber != "")) {
attachMovie(druhy[vyber], "enemy" + i, 200 + i);
_local1["enemyX" + i] = 0;
_local1["enemyY" + i] = 0;
_local1["enemyTyp" + i] = druhy[vyber];
_local1["enemySmer" + i] = random(2);
if (_local1["enemySmer" + i] == 0) {
_local1["enemy" + i]._xscale = -100;
}
if (_local1["enemySmer" + i] == 0) {
_local1["enemy" + i]._xscale = -100;
}
if (druhy[vyber] == "shark") {
_local1["enemy" + i]._y = (base._y + 300) + random(200);
}
if (druhy[vyber] == "horse") {
_local1["enemy" + i]._y = base._y + random(500);
}
if ((druhy[vyber] == "tuna") or (druhy[vyber] == "clown")) {
_local1["enemy" + i]._y = (base._y + 100) + random(300);
}
if ((druhy[vyber] == "xifa") or (druhy[vyber] == "sardin")) {
_local1["enemy" + i]._y = base._y + random(250);
}
if (druhy[vyber] == "tupon") {
_local1["enemy" + i]._y = (base._y + 600) + random(300);
}
_local1["enemy" + i]._x = (_local1["enemySmer" + i] * 650) - 50;
if ((druhy[vyber] != "shark") and (druhy[vyber] != "horse")) {
_local1["enemy" + i]._yscale = -100;
}
break;
}
i++;
}
_local2 = 0;
} else {
_local2 = _local2 + random(20);
}
return(_local2);
}
function Ryby() {
var _local1 = _root;
i = 0;
while (i <= maxRyb) {
if (_local1["enemy" + i] != null) {
RybyMove(i, _local1["enemyTyp" + i]);
if ((Math.abs(_local1["enemy" + i]._x - hero._x) > 450) or (Math.abs(_local1["enemy" + i]._y - hero._y) > 400)) {
RybyRemove(i);
}
}
i++;
}
RybyOdpocet = RybyVznik(RybyOdpocet);
}
function RybyMove(index, typ) {
if (typ == "horse") {
if ((_root["enemy" + index]._y - base._y) < 20) {
_root["enemyUhel" + index] = (((random(40) - 20) / 100) * Math.PI) + Math.PI;
}
if (((_root["enemy" + index]._y - base._y) > 500) or wall.hitTest(_root["enemy" + index]._x, _root["enemy" + index]._y, true)) {
_root["enemyUhel" + index] = ((random(40) - 20) / 100) * Math.PI;
}
if (_root["enemySpeed" + index] < 0) {
_root["enemySpeed" + index] = 2;
if (_root["enemySmer" + index] == 0) {
_root["enemyUhel" + index] = ((random(40) - 20) / 100) * Math.PI;
_root["enemySmer" + index] = random(2);
}
if (_root["enemySmer" + index] == 1) {
_root["enemySmer" + index] = random(2);
_root["enemyUhel" + index] = (((random(40) - 20) / 100) * Math.PI) + Math.PI;
}
} else {
_root["enemySpeed" + index] = _root["enemySpeed" + index] - 0.03;
}
_root["enemyX" + index] = Math.sin(_root["enemyUhel" + index]) * _root["enemySpeed" + index];
_root["enemyY" + index] = (-Math.cos(_root["enemyUhel" + index])) * _root["enemySpeed" + index];
if ((_root["enemyUhel" + index] < 0) or (_root["enemyUhel" + index] > Math.PI)) {
_root["enemy" + index]._xscale = -100;
} else {
_root["enemy" + index]._xscale = 100;
}
}
if (typ == "shark") {
with (_root["enemy" + index]) {
if (_root["enemySmer" + i] == 0) {
if (_root["enemyX" + index] <= 3) {
_root["enemyX" + index] = _root["enemyX" + index] + 0.5;
} else {
_root["enemyX" + index] = _root["enemyX" + index] - 0.5;
}
}
if (_root["enemySmer" + i] == 1) {
if (_root["enemyX" + index] >= -3) {
_root["enemyX" + index] = _root["enemyX" + index] - 0.5;
} else {
_root["enemyX" + index] = _root["enemyX" + index] + 0.5;
}
}
if ((_y > _root.hero._y) and (_root["enemyY" + index] > -2)) {
_root["enemyY" + index] = _root["enemyY" + index] - 0.15;
}
if ((_y < _root.hero._y) and (_root["enemyY" + index] < 2)) {
_root["enemyY" + index] = _root["enemyY" + index] + 0.15;
}
}
if ((_root["enemy" + index]._y - base._y) < 310) {
_root["enemyY" + index] = 3;
}
if (((_root["enemy" + index]._y - base._y) > 500) or wall.hitTest(_root["enemy" + index]._x, _root["enemy" + index]._y, true)) {
_root["enemyY" + index] = -2;
}
}
if ((typ == "sardin") or (typ == "xifa")) {
if ((_root["enemy" + index]._y - base._y) < 20) {
if (_root["enemySmer" + index] == 0) {
_root["enemyUhel" + index] = ((random(25) + 50) / 100) * Math.PI;
}
if (_root["enemySmer" + index] == 1) {
_root["enemyUhel" + index] = ((random(25) + 100) / 100) * Math.PI;
}
}
if ((_root["enemy" + index]._y - base._y) > 250) {
if (_root["enemySmer" + index] == 0) {
_root["enemyUhel" + index] = (random(25) / 100) * Math.PI;
}
if (_root["enemySmer" + index] == 1) {
_root["enemyUhel" + index] = ((random(25) + 150) / 100) * Math.PI;
}
}
if (_root["enemySpeed" + index] < 2) {
_root["enemySpeed" + index] = 5;
if (_root["enemySmer" + index] == 0) {
_root["enemyUhel" + index] = ((random(50) + 25) / 100) * Math.PI;
}
if (_root["enemySmer" + index] == 1) {
_root["enemyUhel" + index] = ((random(50) + 125) / 100) * Math.PI;
}
} else {
_root["enemySpeed" + index] = _root["enemySpeed" + index] - 0.1;
}
_root["enemyX" + index] = Math.sin(_root["enemyUhel" + index]) * _root["enemySpeed" + index];
_root["enemyY" + index] = (-Math.cos(_root["enemyUhel" + index])) * _root["enemySpeed" + index];
_root["enemy" + index]._rotation = (((_root["enemyUhel" + index] / Math.PI) * 180) + 90) + (180 * _root["enemySmer" + index]);
}
if ((typ == "tuna") or (typ == "clown")) {
if ((_root["enemy" + index]._y - base._y) < 100) {
if (_root["enemySmer" + index] == 0) {
_root["enemyUhel" + index] = ((random(20) + 50) / 100) * Math.PI;
}
if (_root["enemySmer" + index] == 1) {
_root["enemyUhel" + index] = ((random(20) + 130) / 100) * Math.PI;
}
}
if (((_root["enemy" + index]._y - base._y) > 400) or wall.hitTest(_root["enemy" + index]._x, _root["enemy" + index]._y, true)) {
if (_root["enemySmer" + index] == 0) {
_root["enemyUhel" + index] = ((random(20) + 30) / 100) * Math.PI;
}
if (_root["enemySmer" + index] == 1) {
_root["enemyUhel" + index] = ((random(20) + 150) / 100) * Math.PI;
}
}
if (_root["enemySpeed" + index] < 3) {
_root["enemySpeed" + index] = 4;
if (_root["enemySmer" + index] == 0) {
_root["enemyUhel" + index] = ((random(20) + 40) / 100) * Math.PI;
}
if (_root["enemySmer" + index] == 1) {
_root["enemyUhel" + index] = ((random(20) + 140) / 100) * Math.PI;
}
} else {
_root["enemySpeed" + index] = _root["enemySpeed" + index] - 0.03;
}
_root["enemyX" + index] = Math.sin(_root["enemyUhel" + index]) * _root["enemySpeed" + index];
_root["enemyY" + index] = (-Math.cos(_root["enemyUhel" + index])) * _root["enemySpeed" + index];
_root["enemy" + index]._rotation = (((_root["enemyUhel" + index] / Math.PI) * 180) + 90) + (180 * _root["enemySmer" + index]);
}
if (typ == "tupon") {
if ((_root["enemy" + index]._y - base._y) < 600) {
if (_root["enemySmer" + index] == 0) {
_root["enemyUhel" + index] = ((random(20) + 50) / 100) * Math.PI;
}
if (_root["enemySmer" + index] == 1) {
_root["enemyUhel" + index] = ((random(20) + 130) / 100) * Math.PI;
}
}
if ((_root["enemy" + index]._y - base._y) > 900) {
if (_root["enemySmer" + index] == 0) {
_root["enemyUhel" + index] = ((random(20) + 30) / 100) * Math.PI;
}
if (_root["enemySmer" + index] == 1) {
_root["enemyUhel" + index] = ((random(20) + 150) / 100) * Math.PI;
}
}
if (_root["enemySpeed" + index] < 3) {
_root["enemySpeed" + index] = 4;
if (_root["enemySmer" + index] == 0) {
_root["enemyUhel" + index] = ((random(20) + 40) / 100) * Math.PI;
}
if (_root["enemySmer" + index] == 1) {
_root["enemyUhel" + index] = ((random(20) + 140) / 100) * Math.PI;
}
} else {
_root["enemySpeed" + index] = _root["enemySpeed" + index] - 0.03;
}
_root["enemyX" + index] = Math.sin(_root["enemyUhel" + index]) * _root["enemySpeed" + index];
_root["enemyY" + index] = (-Math.cos(_root["enemyUhel" + index])) * _root["enemySpeed" + index];
_root["enemy" + index]._rotation = (((_root["enemyUhel" + index] / Math.PI) * 180) + 90) + (180 * _root["enemySmer" + index]);
}
_root["enemy" + index]._x = _root["enemy" + index]._x + _root["enemyX" + index];
_root["enemy" + index]._y = _root["enemy" + index]._y + _root["enemyY" + index];
}
function RybyRemove(index) {
var _local1 = index;
var _local2 = _root;
removeMovieClip(_local2["enemy" + _local1]);
_local2["enemySpeed" + _local1] = null;
_local2["enemySmer" + _local1] = null;
_local2["enemyUhel" + _local1] = null;
_local2["enemyX" + _local1] = null;
_local2["enemyY" + _local1] = null;
_local2["enemyTyp" + _local1] = null;
}
function Refresh() {
rozptyl = 15 - (cannons * 2);
fs = (2 * cannons) + 3;
strength = cannons + 1;
hero.speed.gotoAndStop(speed);
hero.cargo.gotoAndStop(cargo);
hero.speed.DaB.gotoAndStop(speed);
hero.cargo.DaB.gotoAndStop(cargo);
hero.cargo.DaS.gotoAndStop(cargo);
if (searchlight == true) {
hero.light.gotoAndStop(2);
}
if (tank == true) {
hero.tank.gotoAndStop(2);
}
rychlost = (1.5 * speed) + 2;
zrychleni = (speed / 4) + 0.2;
treni = ((0.05 * speed) * speed) + 0.1;
maxstrel = 25;
limitFreeze = 0;
freeze = -50;
gravitation = 0;
}
function buy_clear() {
var _local1 = _root;
_local1.buy_price = 0;
_local1.buy_equip_name = "";
tellTarget (_local1.market.selector) {
gotoAndStop (1);
};
}
function moving() {
if ((Key.isDown(38) and (freeze < 0)) and (coal > 0)) {
turn(-2 - (speed / 2));
if (y > (-rychlost)) {
y = y - zrychleni;
}
} else if ((Key.isDown(40) and (freeze < 0)) and (coal > 0)) {
turn(2 + (speed / 2));
if (y < rychlost) {
y = y + zrychleni;
}
} else {
if (r > 0) {
r = r - (2 + (speed / 2));
} else if (r < 0) {
r = r + (2 + (speed / 2));
}
if (Math.abs(r) < 3) {
r = 0;
}
if (y > 0) {
y = y - treni;
} else if (y < 0) {
y = y + treni;
}
}
if ((Key.isDown(37) and (freeze < 0)) and (coal > 0)) {
if (otoceni != -100) {
otoceni = -100;
r = -r;
}
if (x > (-rychlost)) {
x = x - zrychleni;
}
} else if ((Key.isDown(39) and (freeze < 0)) and (coal > 0)) {
if (otoceni != 100) {
otoceni = 100;
r = -r;
}
if (x < rychlost) {
x = x + zrychleni;
}
} else if (x > 0) {
x = x - treni;
} else if (x < 0) {
x = x + treni;
}
if (Math.abs(x) < treni) {
x = 0;
}
if (Math.abs(y) < treni) {
y = 0;
}
with (hero) {
if (y >= 0) {
_y = _y + (Math.min(y, rychlost) + zatizeni);
} else if (y < 0) {
_y = _y - (Math.min(Math.abs(y), rychlost) - zatizeni);
}
if (x > 0) {
_x = _x + Math.min(x, rychlost);
} else if (x < 0) {
_x = _x - Math.min(Math.abs(x), rychlost);
}
_rotation = r;
_xscale = otoceni;
}
}
function turn(x) {
if (otoceni < 0) {
if ((-Math.abs(r)) > (-20 - (speed * 10))) {
r = r - x;
}
} else if (Math.abs(r) < (20 + (speed * 10))) {
r = r + x;
}
}
function kolizeGejzir(who) {
var _local1 = who;
if ((_local1 > 18) and (_local1 < 30)) {
if (imortal <= 0) {
health = health - demage;
}
imortal = 12;
}
if ((_local1 > 18) and (_local1 < 30)) {
freeze = 30 - _local1;
}
}
function kolizeStrely() {
var _local1 = _root;
j = 0;
while (j <= maxStrel) {
i = 0;
while (i < pocetKolize) {
if (_local1[objektyKolize[i]] != null) {
if (_local1[objektyKolize[i]].hitTest(_local1["strela" + j]._x, _local1["strela" + j]._y, true)) {
zahodStrelu(j);
KillingSpree(i);
}
}
i++;
}
if (((((_local1["strela" + j]._y < base._y) or (_local1["strela" + j]._y > 600)) or (_local1["strela" + j]._y < -10)) or (_local1["strela" + j]._x < -10)) or (_local1["strela" + j]._x > 600)) {
zahodStrelu(j);
}
j++;
}
}
function Kolize() {
odchylka = r * (Math.PI/180);
kolizeStrely();
kolizeIn((-Math.tan(vyska / sirka)) + (Math.PI/2), Math.sqrt((sirka * sirka) + (vyska * vyska)));
kolizeIn(Math.tan(vyska / sirka) + (Math.PI/2), Math.sqrt((sirka * sirka) + (vyska * vyska)));
kolizeIn((-Math.tan(vyska / sirka)) + 4.71238898038469, Math.sqrt((sirka * sirka) + (vyska * vyska)));
kolizeIn(Math.tan(vyska / sirka) + 4.71238898038469, Math.sqrt((sirka * sirka) + (vyska * vyska)));
kolizeIn(0, vyska);
kolizeIn((Math.PI/2), sirka);
kolizeIn(Math.PI, vyska);
kolizeIn(4.71238898038469, sirka);
if (deepness < 0) {
gravitation = gravitation + 0.5;
freeze = 50;
treni = 0;
let = true;
} else if (let) {
Refresh();
let = false;
y = 0;
}
}
function kolizeIn(u, vzdalenost) {
var _local1 = _root;
var _local2 = u;
var _local3 = vzdalenost;
i = 0;
while (i < pocetKolize) {
if (_local1[objektyKolize[i]] != null) {
if (_local1[objektyKolize[i]].hitTest(hero._x + (_local3 * Math.sin(odchylka + _local2)), hero._y - (_local3 * Math.cos(odchylka + _local2)), true) and (_local1["enemyTyp" + i] != "sardin")) {
if (killingtouch) {
killingSpree(i);
}
if ((imortal <= 0) and (((Math.abs(y) > (rychlost * 0.8)) or (Math.abs(x) > (rychlost * 0.8))) or (objektyKolize[i] != "wall"))) {
if ((((_local1["enemyTyp" + i] == "sardin") or (_local1["enemyTyp" + i] == "xifa")) or (_local1["enemyTyp" + i] == "clown")) or (_local1["enemyTyp" + i] == "horse")) {
} else {
if ((!killingtouch) or (objektyKolize[i] == "wall")) {
health = health - demage;
imortal = 12;
}
if (snd) {
bengSnd = new Sound();
bengSnd.attachSound("beng");
bengSnd.setVolume(100);
bengSnd.start(0.13, 1);
}
}
}
if ((y != 0) or (x != 0)) {
freeze = limitFreeze;
}
x = (-Math.min(Math.abs(x) + 0.5, 4.5)) * Math.sin(odchylka + _local2);
y = Math.min(Math.abs(y) + 0.5, 4.5) * Math.cos(odchylka + _local2);
y = y - zatizeni;
if (objektyKolize[i] == ("enemy" + i)) {
_local1["enemyX" + i] = _local1["enemyX" + i] - x;
_local1["enemyY" + i] = _local1["enemyY" + i] - y;
_local1["enemyUhel" + i] = odchylka + _local2;
_local1["enemySpeed" + i] = 3.2;
}
hero._x = hero._x + x;
hero._y = hero._y + y;
}
}
i++;
}
}
function kolizeBase() {
if ((hero.hitTest(base._x - 20, base._y, true) or hero.hitTest(base._x, base._y - 10, true)) or hero.hitTest(base._x + 20, base._y, true)) {
pohyb = false;
x = 0;
y = 0;
r = 0;
hero._rotation = 0;
attachMovie("market", "market", 999);
market._x = 153;
market._y = 31;
equip_name = "INFO";
equip_description = ("Welcome back to base. You've brought treasures for " + onboard) + ".";
cargo_akt = Math.round(_root.cargo * 2.5);
onboard = 0;
zatizeni = 0;
lucerna1.inside.gotoAndStop(1);
lucerna2.inside.gotoAndStop(1);
lucerna3.inside.gotoAndStop(1);
lucerna4.inside.gotoAndStop(1);
manta.gotoAndStop(1);
manta2.gotoAndStop(1);
umiracek = 0;
if (((((wall._x - background._x) > (1 + divX)) or ((wall._x - background._x) < (divX - 1))) or ((wall._y - background._y) > (divY + 1))) or ((wall._y - background._y) < (divY - 1))) {
background._x = wall._x - divX;
background._y = wall._y - divY;
}
}
}
function darkAndBasic() {
if (deepness > 700) {
hero.DaB._alpha = (deepness - 700) / 8;
hero.cargo.DaB._alpha = (deepness - 700) / 8;
if (_root.solaris eq true) {
hero.cargo.DaS._alpha = (deepness - 700) / 8;
}
hero.speed.DaB._alpha = (deepness - 700) / 8;
} else {
hero.DaB._alpha = 0;
hero.cargo.DaB._alpha = 0;
hero.cargo.DaS._alpha = 0;
hero.speed.DaB._alpha = 0;
}
}
function setLight() {
if (deepness > 700) {
if ((light == null) and searchlight) {
attachMovie("light", "light", 998);
}
} else if (light != null) {
removeMovieClip(light);
}
light._y = hero._y;
light._x = hero._x;
light._xscale = hero._xscale;
light._rotation = hero._rotation;
}
function InBase() {
if (baseMove) {
if (Key.isDown(37) and (base._x > 50)) {
removeMovieClip(market);
x = 3;
base._x = base._x - 3;
if (base._xscale < 0) {
base._xscale = base._xscale * -1;
}
hero._xscale = -100;
} else if (Key.isDown(39) and (base._x < 500)) {
removeMovieClip(market);
x = -3;
base._x = base._x + 3;
if (base._xscale > 0) {
base._xscale = base._xscale * -1;
}
hero._xscale = 100;
} else if (market == null) {
attachMovie("market", "market", 999);
market._x = 153;
market._y = 31;
}
}
hero._x = base._x;
hero._y = base._y;
if (Key.isDown(40) or leave) {
pohyb = true;
leave = false;
hero._y = hero._y + (vyska + 3);
removeMovieClip(market);
x = 0;
}
}
function Smrt() {
motorSnd.stop();
removeMovieClip(light);
if (coal > 0) {
hero._y = hero._y - zatizeni;
hero.gotoAndStop(2);
}
freeze = 10;
umiracek++;
if ((umiracek > 18) and (minimenuPICA._currentframe != 2)) {
tellTarget (_root.minimenuPICA) {
gotoAndStop (2);
};
hero._x = 275;
hero._y = 225;
}
if (minimenuPICA._currentframe == 2) {
hero.gotoAndStop(2);
hero.detonation.gotoAndStop("smrt");
hero._x = 275;
hero._y = 225;
}
}
function blick(a) {
var _local1 = a;
if (_local1 > 0) {
_local1--;
if ((_local1 % 2) == 1) {
if (hero._visible == true) {
hero._visible = false;
} else {
hero._visible = true;
}
}
} else {
hero._visible = true;
}
return(_local1);
}
function Navigace() {
var _local1;
if (navigation and ((((hero._x - base._x) * (hero._x - base._x)) + ((hero._y - base._y) * (hero._y - base._y))) > 22500)) {
if (sipka == null) {
attachMovie("sipka", "sipka", 1003);
}
if (deepness < 690) {
_local1 = -Math.atan((base._x - hero._x) / (base._y - hero._y));
if (hero._y < base._y) {
_local1 = _local1 + Math.PI;
}
} else if (Math.abs(hero._x - wall._x) < 1100) {
_local1 = -Math.atan(((wall._x + 320) - hero._x) / ((base._y + 660) - hero._y));
} else {
_local1 = -Math.atan(((wall._x + 2115) - hero._x) / ((base._y + 680) - hero._y));
}
sipka._x = hero._x;
sipka._y = hero._y;
sipka._rotation = _local1 * 57.2957795130823;
} else {
removeMovieClip(sipka);
}
}
function SolarMotor() {
if (solaris and (deepness <= 50)) {
if (((Key.isDown(38) or Key.isDown(40)) or Key.isDown(37)) or Key.isDown(39)) {
coal = coal - (eats / (675 - (speed * 75)));
coal = coal + (1 / (225 - (speed * 25)));
} else {
coal = coal + 0.0111111111111111;
}
hero.cargo.solaris.gotoAndStop(2);
} else if (solaris and (deepness > 50)) {
hero.cargo.solaris.gotoAndStop(3);
}
if (coal > 5) {
coal = 5;
}
}
function AktivAction() {
zbytekBublat = Bublat(0.5 + zbytekBublat);
coal = coal - (eats / (225 - (speed * 25)));
if ((_root.snd eq true) and (!zvoucek)) {
motorSnd = new Sound(_root.hero);
motorSnd.attachSound("motor");
motorSnd.setVolume(100);
motorSnd.start(0, 1000);
zvoucek = true;
}
}
function PasivAction() {
zbytekBublat = Bublat(0.07 + zbytekBublat);
coal = coal - (eats / (675 - (speed * 75)));
motorSnd.stop();
zvoucek = false;
}
function formatujCas(a) {
var _local2 = Math.round(a / 18);
var _local1 = 0;
var _local3 = 0;
while (_local2 >= 60) {
_local2 = _local2 - 60;
_local1++;
if (_local1 >= 60) {
_local3++;
_local1 = _local1 - 60;
}
}
if (_local2 < 10) {
if (_local1 > 9) {
return((((_local3 + ":") + _local1) + ":0") + _local2);
}
return((((_local3 + ":0") + _local1) + ":0") + _local2);
}
if (_local1 > 9) {
return((((_local3 + ":") + _local1) + ":") + _local2);
}
return((((_local3 + ":0") + _local1) + ":") + _local2);
}
function KillingSpree(i) {
var _local1 = i;
var _local2 = _root;
if (objektyKolize[_local1] != "wall") {
if ((((objektyKolize[_local1] == "lucerna1") or (objektyKolize[_local1] == "lucerna2")) or (objektyKolize[_local1] == "lucerna3")) or (objektyKolize[_local1] == "lucerna4")) {
score = score + 10;
detonace();
}
if ((objektyKolize[_local1] == "manta") or (objektyKolize[_local1] == "manta2")) {
score = score + 12;
detonace();
}
if (_local2["enemyTyp" + _local1] == "tupon") {
score = score + 8;
detonace();
}
if (_local2["enemyTyp" + _local1] == "shark") {
score = score + 8;
detonace();
}
if (_local2["enemyTyp" + _local1] == "tuna") {
score = score + 7;
detonace();
}
if (((_local2["enemyTyp" + _local1] == "xifa") or (_local2["enemyTyp" + _local1] == "clown")) or (_local2["enemyTyp" + _local1] == "horse")) {
score = score + 2;
detonace();
}
}
if ((_local2["enemyTyp" + _local1] == "tuna") and (_local2["enemy" + _local1]._currentframe >= 5)) {
attachMovie("Scolor", "bum" + _local1, _local1 + 500);
} else if ((_local2["enemyTyp" + _local1] == "tupon") and (_local2["enemy" + _local1]._currentframe >= 5)) {
attachMovie("Sblue", "bum" + _local1, _local1 + 500);
} else if (_local2["enemyTyp" + _local1] == "sardin") {
_local2["enemy" + _local1].play();
} else {
attachMovie("S" + _local2["enemyTyp" + _local1], "bum" + _local1, _local1 + 500);
}
_local2["bum" + _local1]._x = _local2["enemy" + _local1]._x;
_local2["bum" + _local1]._y = _local2["enemy" + _local1]._y;
_local2["bum" + _local1]._rotation = _local2["enemy" + _local1]._rotation;
_local2["bum" + _local1]._xscale = _local2["enemy" + _local1]._xscale;
if (_local2["enemyTyp" + _local1] != "sardin") {
RybyRemove(_local1);
}
if (objektyKolize[_local1] == "oktopus") {
oktZdravi = -240;
}
if (objektyKolize[_local1] == "lucerna1") {
attachMovie("Sluc", "Slucerna1", 550);
lucerny("lucerna1");
lucerna1.inside.gotoAndStop(2);
}
if (objektyKolize[_local1] == "lucerna2") {
attachMovie("Sluc", "Slucerna2", 551);
lucerny("lucerna2");
lucerna2.inside.gotoAndStop(2);
}
if (objektyKolize[_local1] == "lucerna3") {
attachMovie("Sluc", "Slucerna3", 552);
lucerny("lucerna3");
lucerna3.inside.gotoAndStop(2);
}
if (objektyKolize[_local1] == "lucerna4") {
attachMovie("Sluc", "Slucerna4", 553);
lucerny("lucerna4");
lucerna4.inside.gotoAndStop(2);
}
if (objektyKolize[_local1] == "manta") {
manta.gotoAndStop(2);
attachMovie("Smanta", "Sman1", 554);
Sman1._x = manta._x;
Sman1._y = manta._y;
Sman1._xscale = manta._xscale;
}
if (objektyKolize[_local1] == "manta2") {
attachMovie("Smanta", "Sman2", 555);
manta2.gotoAndStop(2);
Sman2._x = manta2._x;
Sman2._y = manta2._y;
Sman2._xscale = manta2._xscale;
}
}
function lucerny(kdo) {
var _local1 = _root;
var _local2 = kdo;
_local1["S" + _local2]._x = _local1[_local2]._x + _local1[_local2].inside._x;
_local1["S" + _local2]._y = _local1[_local2]._y + _local1[_local2].inside._y;
}
function detonace() {
if (snd) {
fishdead = new Sound();
fishdead.attachSound("torp");
fishdead.setVolume(100);
fishdead.start(0, 1);
}
}
divX = wall._x - background._x;
divY = wall._y - background._y;
_root.attachMovie("hud_score", "hud_score", 1000);
setProperty(_root.hud_score, _x , 30);
setProperty(_root.hud_score, _y , 40);
_root.attachMovie("hud_money", "hud_money", 1001);
setProperty(_root.hud_money, _x , 520);
setProperty(_root.hud_money, _y , 40);
_root.attachMovie("hud_healt_coal", "hud_healt_coal", 1002);
setProperty(_root.hud_healt_coal, _x , 275);
setProperty(_root.hud_healt_coal, _y , 415);
maxRyb = 15;
objektyKolize = new Array();
i = 0;
while (i <= maxRyb) {
objektyKolize.push("enemy" + i);
i++;
}
objektyKolize.push("wall", "manta", "manta2", "lucerna1", "lucerna2", "lucerna3", "lucerna4", "oktopus");
objektyScroll = ["hero", "wall", "base", "background", "manta", "manta2", "lucerna1", "lucerna2", "lucerna3", "lucerna4", "oktopus", "Slucerna1", "Slucerna2", "Slucerna3", "Slucerna4", "Sman1", "Sman2"];
i = 0;
while (i <= maxRyb) {
objektyScroll.push("enemy" + i);
objektyScroll.push("bum" + i);
i++;
}
i = 1;
while (i <= 5) {
objektyScroll.push("gejz" + i);
i++;
}
i = 1;
while (i <= 20) {
objektyScroll.push("bigp" + i);
i++;
}
druhy = ["shark", "sardin", "tuna", "clown", "tupon", "xifa", "horse"];
PocetScroll = objektyScroll.length;
PocetKolize = objektyKolize.length;
PocetDruhu = druhy.length;
hero.gotoAndStop(1);
tellTarget (_root.minimenuPICA) {
gotoAndStop (1);
};
equip_name = "";
equip_description = "";
money_coal = 3;
money_health = 5;
buy_equip_name = "";
price = 0;
coal = 5;
health = 5;
buy_price = 0;
HSwaiting = 0;
gravitation = 0;
sirka = hero._width / 2;
vyska = hero._height / 2;
deepness = hero._y - base._y;
leva = 200;
horni = 175;
prava = 550 - leva;
dolni = 450 - horni;
otoceni = 100;
posun_x = 0;
posun_y = 0;
freeze = 0;
pohyb = true;
x = 0;
y = 0;
r = 0;
Ibublina = 0;
maxBublin = 10;
zbytekBublat = 0;
demage = 1;
nabitX = 0;
pocetStrel = 0;
j = 1;
while (j <= PocetDruhu) {
_root[druhy[j] + "count"] = 0;
j++;
}
sharkLimit = 3;
sardinLimit = 5;
tunaLimit = 5;
clownLimit = 4;
tuponLimit = 6;
xifaLimit = 5;
horseLimit = 4;
RybyOdpocet = 0;
oktZdravi = 0;
soundcounter = 15;
hero._x = base._x;
hero._y = base._y;
I = 0;
while (I < PocetScroll) {
_root[ObjektyScroll[I]]._y = _root[ObjektyScroll[I]]._y + 260;
I++;
}
I = 0;
while (I < PocetScroll) {
_root[ObjektyScroll[I]]._x = _root[ObjektyScroll[I]]._x - 270;
I++;
}
Refresh();
manta.hloubka = base._y - manta._y;
manta2.hloubka = base._y - manta2._y;
manta.sirka = wall._x - manta._x;
manta2.sirka = wall._x - manta2._x;
onEnterFrame = function () {
var _local1 = _root;
if (HS) {
HSwaiting++;
if (HSwaiting > 36) {
tellTarget (_local1) {
getURL ("http://scores.funny-games.biz/show.php?game_id=18&difficulty=0", "_blank");
};
HS = false;
minimenuPICA.inside.nextFrame();
HSwaiting = 0;
}
}
if (pohyb) {
if (minimenuPICA._currentframe != 2) {
if (((Key.isDown(38) or Key.isDown(40)) or Key.isDown(37)) or Key.isDown(39)) {
AktivAction();
} else {
PasivAction();
}
}
moving();
if (Key.isDown(32) and (cannons > 1)) {
strelaFire();
}
zatizeni = 0.5 + gravitation;
kolizeBase();
if (minimenuPICA._currentframe != 2) {
Kolize();
}
} else {
InBase();
}
Ryby();
BublinyMove();
if (minimenuPICA._currentframe != 2) {
Scrolling();
}
nabitX--;
if (!gamefinished) {
cas++;
} else if (!pohyb) {
attachMovie("boughtUp", "boughtUp", 1050);
} else {
removeMovieClip(boughtUp);
}
freeze--;
deepness = hero._y - base._y;
if (pohyb) {
SolarMotor();
}
darkAndBasic();
Navigace();
SetLight();
blabla = formatujCas(cas);
imortal = blick(imortal);
if ((health <= 0) or ((coal <= 0) and (tank == false))) {
Smrt();
}
i = 0;
while (i <= 30) {
if (_local1["strela" + i] != null) {
strelaMove(i, _local1["Uhel" + i]);
}
i++;
}
if (snd and (((coal <= 1.5) and (!tank)) or (health <= 1))) {
if (soundcounter == 15) {
zvuk6 = new Sound();
zvuk6.attachSound("warning");
zvuk6.setVolume(150);
zvuk6.start(0, 1);
soundcounter = 0;
}
soundcounter++;
}
moneyAppear = money - onboard;
if ((((((((((!gamefinished) and (_local1.solaris eq true)) && (_local1.searchlight eq true)) && (_local1.baseMove eq true)) && (_local1.navigation eq true)) && (_local1.tank eq true)) && (_local1.cargo == 4)) && (_local1.speed == 4)) && (_local1.cannons == 4)) && (_local1.eats == 0.5)) {
_local1.gamefinished = true;
vyslednyCas = formatujCas(cas);
}
};
Instance of Symbol 666 MovieClip "bigp13" in Frame 6
onClipEvent (load) {
m_poklad_price = 30;
m_delay = 2000;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.light) && (_currentframe == 1)) {
gotoAndStop (2);
}
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 2) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.money = _root.money + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (3);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 4) {
delay--;
if (delay < 1) {
gotoAndStop (1);
}
}
}
Instance of Symbol 671 MovieClip "bigp14" in Frame 6
onClipEvent (load) {
m_poklad_price = 30;
m_delay = 2000;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.light) && (_currentframe == 1)) {
gotoAndStop (2);
}
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 2) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.money = _root.money + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (3);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 4) {
delay--;
if (delay < 1) {
gotoAndStop (1);
}
}
}
Instance of Symbol 676 MovieClip "bigp15" in Frame 6
onClipEvent (load) {
m_poklad_price = 30;
m_delay = 2000;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.light) && (_currentframe == 1)) {
gotoAndStop (2);
}
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 2) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.money = _root.money + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (3);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 4) {
delay--;
if (delay < 1) {
gotoAndStop (1);
}
}
}
Instance of Symbol 681 MovieClip "bigp16" in Frame 6
onClipEvent (load) {
m_poklad_price = 30;
m_delay = 2000;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.light) && (_currentframe == 1)) {
gotoAndStop (2);
}
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 2) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.money = _root.money + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (3);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 4) {
delay--;
if (delay < 1) {
gotoAndStop (1);
}
}
}
Instance of Symbol 681 MovieClip "bigp17" in Frame 6
onClipEvent (load) {
m_poklad_price = 30;
m_delay = 2000;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.light) && (_currentframe == 1)) {
gotoAndStop (2);
}
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 2) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.money = _root.money + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (3);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 4) {
delay--;
if (delay < 1) {
gotoAndStop (1);
}
}
}
Instance of Symbol 671 MovieClip "bigp18" in Frame 6
onClipEvent (load) {
m_poklad_price = 30;
m_delay = 2000;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.light) && (_currentframe == 1)) {
gotoAndStop (2);
}
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 2) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.money = _root.money + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (3);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 4) {
delay--;
if (delay < 1) {
gotoAndStop (1);
}
}
}
Instance of Symbol 699 MovieClip "gejz5" in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.kolizeGejzir(this._currentframe);
}
if ((((_y < 550) and (_y > -100)) and (_x > -100)) and (_x < 650)) {
play();
} else {
stop();
}
}
Instance of Symbol 699 MovieClip "gejz2" in Frame 6
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.kolizeGejzir(this._currentframe);
}
if ((((_y < 550) and (_y > -100)) and (_x > -100)) and (_x < 650)) {
play();
} else {
stop();
}
}
Instance of Symbol 699 MovieClip "gejz3" in Frame 6
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.kolizeGejzir(this._currentframe);
}
if ((((_y < 550) and (_y > -100)) and (_x > -100)) and (_x < 650)) {
play();
} else {
stop();
}
}
Instance of Symbol 699 MovieClip "gejz1" in Frame 6
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.kolizeGejzir(this._currentframe);
}
if ((((_y < 550) and (_y > -100)) and (_x > -100)) and (_x < 650)) {
play();
} else {
stop();
}
}
Instance of Symbol 699 MovieClip "gejz4" in Frame 6
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.kolizeGejzir(this._currentframe);
}
if ((((_y < 550) and (_y > -100)) and (_x > -100)) and (_x < 650)) {
play();
} else {
stop();
}
}
Instance of Symbol 379 MovieClip [manta] "manta" in Frame 6
onClipEvent (load) {
y = 0;
x = 0;
sirkaPohybu = 150;
vyskaPohybu = 22;
limitX = 0;
limitY = 0;
}
onClipEvent (enterFrame) {
if ((hloubka + vyskaPohybu) < (_root.base._y - _y)) {
if (_root.deepness < 500) {
_y = (_y + 5);
}
}
if ((sirka + sirkaPohybu) < (_root.wall._x - _x)) {
if (_root.deepness < 500) {
_x = (_x + 5);
}
}
if ((sirka - sirkaPohybu) > (_root.wall._x - _x)) {
if (_root.deepness < 500) {
_x = (_x - 5);
}
}
if (Math.abs(_root.hero._y - _y) < 500) {
if ((_x > _root.hero._x) and (x > -2)) {
x = x - 0.2;
}
if ((_x < _root.hero._x) and (x < 2)) {
x = x + 0.2;
}
if ((_y > _root.hero._y) and (y > -1)) {
y = y - 0.05;
}
if ((_y < _root.hero._y) and (y < 1)) {
y = y + 0.05;
}
if (x > 0) {
_xscale = -100;
} else {
_xscale = 100;
}
if ((limitX > (-sirkaPohybu)) and (limitX < sirkaPohybu)) {
_x = (_x + x);
limitX = limitX + x;
} else {
if (limitX <= (-sirkaPohybu)) {
x = Math.abs(x) + 0.5;
limitX = limitX + x;
}
if (limitX >= sirkaPohybu) {
x = (-Math.abs(x)) - 0.5;
limitX = limitX + x;
}
}
if ((limity > (-vyskaPohybu)) and (limity < vyskaPohybu)) {
_y = (_y + y);
limity = limity + y;
} else {
if (limity <= (-vyskaPohybu)) {
y = Math.abs(y);
limitY = (-vyskaPohybu) + 1;
}
if (limity >= vyskaPohybu) {
y = -Math.abs(y);
limitY = vyskaPohybu - 1;
}
}
}
}
Instance of Symbol 718 MovieClip "oktopus" in Frame 6
onClipEvent (load) {
}
onClipEvent (enterFrame) {
i = 1;
while (i < 4) {
_root.blablabla = this["ch" + i]._currentframe;
if (_root.oktZdravi < 0) {
if (this["ch" + i]._currentframe == 14) {
this["ch" + i].gotoAndPlay(40);
}
if (this["ch" + i]._currentframe == 48) {
this["ch" + i].stop();
_root.oktZdravi++;
}
} else {
this["ch" + i].play();
}
i++;
}
}
Instance of Symbol 721 MovieClip "lucerna1" in Frame 6
onClipEvent (enterFrame) {
if ((Math.abs(_root.hero._y - _y) < 400) and (Math.abs(_root.hero._x - _x) < 400)) {
play();
} else {
stop();
}
_root.blablablabla = _currentframe;
}
Instance of Symbol 721 MovieClip "lucerna2" in Frame 6
onClipEvent (load) {
gotoAndPlay(random(50) + 175);
}
onClipEvent (enterFrame) {
if ((Math.abs(_root.hero._y - _y) < 400) and (Math.abs(_root.hero._x - _x) < 400)) {
play();
} else {
stop();
}
}
Instance of Symbol 722 MovieClip "lucerna3" in Frame 6
onClipEvent (enterFrame) {
if ((((_y < 650) and (_y > -200)) and (_x > -200)) and (_x < 750)) {
play();
} else {
stop();
}
}
Instance of Symbol 723 MovieClip "lucerna4" in Frame 6
onClipEvent (enterFrame) {
if ((((_y < 650) and (_y > -200)) and (_x > -200)) and (_x < 750)) {
play();
} else {
stop();
}
}
Instance of Symbol 379 MovieClip [manta] "manta2" in Frame 6
onClipEvent (load) {
y = 0;
x = 0;
sirkaPohybu = 300;
vyskaPohybu = 22;
limitX = 0;
limitY = 0;
}
onClipEvent (enterFrame) {
if ((hloubka + vyskaPohybu) < (_root.base._y - _y)) {
if (_root.deepness < 500) {
_y = (_y + 5);
}
}
if ((sirka + sirkaPohybu) < (_root.wall._x - _x)) {
if (_root.deepness < 500) {
_x = (_x + 5);
}
}
if ((sirka - sirkaPohybu) > (_root.wall._x - _x)) {
if (_root.deepness < 500) {
_x = (_x - 5);
}
}
if (Math.abs(_root.hero._y - _y) < 500) {
if ((_x > _root.hero._x) and (x > -2)) {
x = x - 0.15;
}
if ((_x < _root.hero._x) and (x < 2)) {
x = x + 0.15;
}
if ((_y > _root.hero._y) and (y > -1)) {
y = y - 0.05;
}
if ((_y < _root.hero._y) and (y < 1)) {
y = y + 0.05;
}
if (x > 0) {
_xscale = -100;
} else {
_xscale = 100;
}
if ((limitX > (-sirkaPohybu)) and (limitX < sirkaPohybu)) {
_x = (_x + x);
limitX = limitX + x;
} else {
if (limitX <= (-sirkaPohybu)) {
x = Math.abs(x) + 0.5;
limitX = limitX + x;
}
if (limitX >= sirkaPohybu) {
x = -(Math.abs(x) + 0.5);
limitX = limitX + x;
}
}
if ((limity > (-vyskaPohybu)) and (limity < vyskaPohybu)) {
_y = (_y + y);
limity = limity + y;
} else {
if (limity <= (-vyskaPohybu)) {
y = Math.abs(y);
limitY = (-vyskaPohybu) + 1;
}
if (limity >= vyskaPohybu) {
y = -Math.abs(y);
limitY = vyskaPohybu - 1;
}
}
}
}
Frame 7
_root.score = 0;
_root.money = Math.round((money - onboard) / 2);
_root.onboard = 0;
_root.var_bonus_b = "";
_root.var_bonus_o = "";
_root.var_bonus_n = "";
_root.var_bonus_u = "";
_root.var_bonus_s = "";
gotoAndStop (5);
Symbol 22 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 3
Symbol 29 MovieClip Frame 12
gotoAndPlay (2);
Instance of Symbol 23 MovieClip in Symbol 33 MovieClip [hud_healt_coal] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.health);
}
Instance of Symbol 23 MovieClip in Symbol 33 MovieClip [hud_healt_coal] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round(_root.coal));
if (_root.coal < 0) {
gotoAndStop (6);
}
}
Instance of Symbol 27 MovieClip in Symbol 33 MovieClip [hud_healt_coal] Frame 1
onClipEvent (enterFrame) {
if (_root.navigation eq true) {
setProperty(this, _visible , 1);
} else {
setProperty(this, _visible , 0);
}
}
Instance of Symbol 29 MovieClip "blik_coal" in Symbol 33 MovieClip [hud_healt_coal] Frame 1
onClipEvent (enterFrame) {
if (_root.health < 2) {
play();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 29 MovieClip "blik_health" in Symbol 33 MovieClip [hud_healt_coal] Frame 1
onClipEvent (enterFrame) {
if (_root.coal < 1.5) {
play();
} else {
gotoAndStop (1);
}
if ((_root.tank eq true) and (_root.coal < 0)) {
_root.tank = false;
_root.coal = 5;
tellTarget (_root.hero.tank) {
gotoAndStop (1);
};
}
}
Symbol 43 MovieClip Frame 10
stop();
Symbol 48 MovieClip [Scolor] Frame 15
removeMovieClip(this);
Symbol 53 MovieClip [Shorse] Frame 15
removeMovieClip(this);
Symbol 59 MovieClip [Sblue] Frame 15
removeMovieClip(this);
Symbol 65 MovieClip [Sluc] Frame 1
Symbol 65 MovieClip [Sluc] Frame 15
removeMovieClip(this);
Symbol 73 MovieClip [Sshark] Frame 16
removeMovieClip(this);
Symbol 80 MovieClip [Smanta] Frame 1
Symbol 80 MovieClip [Smanta] Frame 15
removeMovieClip(this);
Symbol 86 MovieClip [Stupon] Frame 1
Symbol 86 MovieClip [Stupon] Frame 16
removeMovieClip(this);
Symbol 92 MovieClip [Sclown] Frame 1
Symbol 92 MovieClip [Sclown] Frame 16
removeMovieClip(this);
Symbol 98 MovieClip [Sxifa] Frame 1
Symbol 98 MovieClip [Sxifa] Frame 18
removeMovieClip(this);
Symbol 103 MovieClip [Stuna] Frame 1
Symbol 103 MovieClip [Stuna] Frame 25
removeMovieClip(this);
Symbol 114 Button [buy]
on (rollOver) {
_root.equip_name = "INFO";
_root.equip_description = "Select the item you want to buy by clicking icon in left bar, or click buttons \"repair\" and \"refuel\" for restoring health and fuel.";
}
Symbol 117 Button [buy]
on (rollOver) {
if (((_root.buy_equip_name != "REPAIR") and (_root.buy_equip_name != "REFUEL")) and (_root.buy_equip_name != "")) {
_root.equip_name = _root.buy_equip_name;
_root.equip_description = ((("Do you want to buy " + _root.buy_equip_name) + " for ") + _root.buy_price) + "? \n\n click to confirm";
} else {
_root.equip_name = "INFO";
_root.equip_description = "You must select first.";
}
}
on (release) {
if (_root.snd eq true) {
zvuk9 = new Sound(_root);
zvuk9.attachSound("cink");
zvuk9.setVolume(100);
zvuk9.start(0, 1);
}
if (((_root.buy_equip_name != "REPAIR") and (_root.buy_equip_name != "REFUEL")) and (_root.buy_equip_name != "")) {
if (_root.buy_price <= _root.money) {
if (_root.buy_equip_name eq "TORPEDO C2") {
if (_root.cannons != 2) {
_root.cannons = 2;
_root.money = _root.money - _root.buy_price;
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "TORPEDO C3") {
if (_root.cannons != 3) {
_root.cannons = 3;
_root.money = _root.money - _root.buy_price;
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "TORPEDO C5") {
if (_root.cannons != 4) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.cannons = 4;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "SCREW Clown") {
if (_root.speed != 2) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.speed = 2;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "SCREW Sturgeon") {
if (_root.speed != 3) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.speed = 3;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "SCREW Scalar") {
if (_root.speed != 4) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.speed = 4;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "Freight hold Seal") {
if (_root.cargo != 2) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.cargo = 2;
_root.cargo_akt = Math.round(_root.cargo * 2.5);
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "Freight hold Walrus") {
if (_root.cargo != 3) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.cargo = 3;
_root.cargo_akt = Math.round(_root.cargo * 2.5);
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "Freight hold Whale") {
if (_root.cargo != 4) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.cargo = 4;
_root.cargo_akt = Math.round(_root.cargo * 2.5);
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "SAFETY fuel TANK") {
if (_root.tank != true) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.money = _root.money - _root.buy_price;
_root.tank = true;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "NAVIGATON") {
if (_root.navigation != true) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.navigation = true;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "MOTO-BASE") {
if (_root.baseMove != true) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.baseMove = true;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "SEARCHLIGHT") {
if (_root.searchlight != true) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.searchlight = true;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "GOLDEN STAR") {
if (_root.starG != true) {
_root.score = _root.score + 50000;
_root.starG = true;
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "SILVERY STAR") {
if (_root.starS != true) {
_root.score = _root.score + 5000;
_root.starS = true;
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "CUPREOUS STAR") {
if (_root.starC != true) {
_root.score = _root.score + 500;
_root.starC = true;
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "solar eng. SOLARIS") {
if (_root.solaris != true) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.solaris = true;
_root.hero.cargo.solaris.gotoAndStop(5);
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "Killing touch") {
if (_root.killingtouch != true) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.killingtouch = true;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "Evil ENGINE") {
if (_root.eats eq 0.5) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.eats = 0;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
if (_root.buy_equip_name eq "ENGINE Shark") {
if (_root.eats eq 1) {
_root.equip_name = "INFO";
_root.equip_description = "You've bought " + _root.buy_equip_name;
_root.eats = 0.5;
_root.money = _root.money - _root.buy_price;
} else {
_root.equip_name = "INFO";
_root.equip_description = "You've already had " + _root.buy_equip_name;
}
}
_root.refresh();
_root.buy_clear();
} else {
_root.equip_name = "INFO";
_root.equip_description = ((((" The price is too high. \n " + _root.buy_equip_name) + " costs ") + _root.buy_price) + " but you have only ") + _root.money;
_root.buy_clear();
}
} else {
_root.equip_name = "INFO";
_root.equip_description = "You must select first.";
}
}
Symbol 123 MovieClip Frame 1
stop();
Symbol 134 Button
on (rollOver, rollOut) {
if (((5 - _root.health) * _root.money_health) > _root.money) {
_root.price = Math.floor(_root.money / _root.money_health) * _root.money_health;
} else {
_root.price = (5 - Math.round(_root.health)) * _root.money_health;
}
_root.equip_name = "REPAIR";
_root.equip_description = "Do you want to completely repair your submarine? \n\n click to confirm";
}
on (release) {
if (_root.snd eq true) {
zvuk9 = new Sound();
zvuk9.attachSound("buy");
zvuk9.setVolume(100);
zvuk9.start(0, 1);
}
if ((_root.price != 0) and (_root.health <= 4.5)) {
if (_root.money >= _root.money_health) {
if (((5 - _root.health) * _root.money_health) > _root.money) {
_root.health = _root.health + Math.floor(_root.money / _root.money_health);
_root.money = _root.money - (Math.floor(_root.money / _root.money_health) * _root.money_health);
} else {
_root.money = _root.money - ((5 - Math.round(_root.health)) * _root.money_health);
_root.health = 5;
}
_root.equip_name = "INFO";
_root.buy_equip_name = "REPAIR";
_root.buy_price = 0;
_root.equip_description = "Your submarine has been repaired.";
tellTarget ("selector") {
gotoAndStop (1);
};
} else {
_root.equip_name = "INFO";
_root.equip_description = "The price is too high.";
}
} else {
_root.equip_name = "INFO";
_root.equip_description = "There's nothing to repair.";
}
}
Symbol 138 Button
on (rollOver, rollOut) {
if (((5 - Math.round(_root.coal)) * _root.money_coal) > _root.money) {
_root.price = Math.round(_root.money / _root.money_coal) * _root.money_coal;
} else {
_root.price = (5 - Math.round(_root.coal)) * _root.money_coal;
}
_root.equip_name = "REFUEL";
_root.equip_description = "Do you want to completely refuel? \n\n click to confirm";
}
on (release) {
if (_root.snd eq true) {
zvuk9 = new Sound();
zvuk9.attachSound("buy");
zvuk9.setVolume(100);
zvuk9.start(0, 1);
}
if ((_root.price != 0) and (_root.coal <= 4.5)) {
if (_root.money >= _root.money_coal) {
if (((5 - Math.round(_root.coal)) * _root.money_coal) > _root.money) {
_root.coal = _root.coal + Math.round(_root.money / _root.money_coal);
_root.money = _root.money - (Math.round(_root.money / _root.money_coal) * _root.money_coal);
} else {
_root.money = _root.money - ((5 - Math.round(_root.coal)) * _root.money_coal);
_root.coal = 5;
}
_root.buy_equip_name = "REFUEL";
_root.equip_name = "INFO";
_root.equip_description = "Your tank has been refulled.";
_root.buy_price = 0;
tellTarget ("selector") {
gotoAndStop (1);
};
} else {
_root.equip_name = "INFO";
_root.equip_description = "The price is too high.";
}
} else {
_root.equip_name = "INFO";
_root.equip_description = "Your tank is full.";
}
}
Symbol 145 Button
on (release) {
_root.leave = true;
}
Symbol 150 Button
on (rollOver) {
_root.equip_name = "TORPEDO C2";
_root.equip_description = " Helps you defend submarine \n -damage 2 \n -speed 2";
if (_root.buy_price eq 0) {
_root.price = "70";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "70";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (2);
};
}
Symbol 151 Button
on (rollOver) {
_root.equip_name = "TORPEDO C3";
_root.equip_description = " Helps you defend submarine \n -damage 3 \n -speed 3";
if (_root.buy_price eq 0) {
_root.price = "140";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "140";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (6);
};
}
Symbol 152 Button
on (rollOver) {
_root.equip_name = "TORPEDO C5";
_root.equip_description = " Helps you defend submarine \n -damage 5 \n -speed 4";
if (_root.buy_price eq 0) {
_root.price = "300";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "300";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (10);
};
}
Symbol 159 MovieClip Frame 1
stop();
Symbol 160 Button
on (rollOver) {
_root.equip_name = "SCREW Clown";
_root.equip_description = " Helps you move faster and better control your submarine -speed 2 \n -control 2";
if (_root.buy_price eq 0) {
_root.price = "120";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "120";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (3);
};
}
Symbol 161 Button
on (rollOver) {
_root.equip_name = "SCREW Sturgeon";
_root.equip_description = " Helps you move faster and better control your submarine -speed 3 \n -control 3";
if (_root.buy_price eq 0) {
_root.price = "280";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "280";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (7);
};
}
Symbol 162 Button
on (rollOver) {
_root.equip_name = "SCREW Scalar";
_root.equip_description = " Helps you move faster and better control your submarine -speed 4 \n -control 3";
if (_root.buy_price eq 0) {
_root.price = "470";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "470";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (11);
};
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 170 Button
on (rollOver) {
_root.equip_name = "Freight hold Seal";
_root.equip_description = " Seats 5 treasures";
if (_root.buy_price eq 0) {
_root.price = "140";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "140";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (4);
};
}
Symbol 171 Button
on (rollOver) {
_root.equip_name = "Freight hold Walrus";
_root.equip_description = " Seats 7 treasures";
if (_root.buy_price eq 0) {
_root.price = "260";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "260";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (8);
};
}
Symbol 172 Button
on (rollOver) {
_root.equip_name = "Freight hold Whale";
_root.equip_description = " Seats 10 treasures";
if (_root.buy_price eq 0) {
_root.price = "410";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "410";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (12);
};
}
Symbol 179 MovieClip Frame 1
stop();
Symbol 180 Button
on (rollOver) {
_root.equip_name = "SEARCHLIGHT";
_root.equip_description = " Helps you search hidden treasures.";
if (_root.buy_price eq 0) {
_root.price = "220";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "220";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (14);
};
}
Symbol 183 Button
on (rollOver) {
_root.equip_name = "Killing touch";
_root.equip_description = "if you hit a fish, you wont feel the pain, but the fish will..";
if (_root.buy_price eq 0) {
_root.price = "870";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "870";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (14);
};
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 187 Button
on (rollOver) {
_root.equip_name = "ENGINE Shark";
_root.equip_description = " Cut fuel consumption in half";
if (_root.buy_price eq 0) {
_root.price = "460";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "460";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (9);
};
}
Symbol 190 Button
on (rollOver) {
_root.equip_name = "SILVERY STAR";
_root.equip_description = "Add 5000 to your score";
if (_root.buy_price eq 0) {
_root.price = "5000";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "5000";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (9);
};
}
Symbol 193 MovieClip Frame 1
stop();
Symbol 194 Button
on (rollOver) {
_root.equip_name = "SAFETY fuel TANK";
_root.equip_description = " Refill the fuel tank";
if (_root.buy_price eq 0) {
_root.price = "65";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "65";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (16);
};
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 199 Button
on (rollOver) {
_root.equip_name = "NAVIGATON";
_root.equip_description = "Helps you find the way back to base and add panel with additional information about your fuel consumption.";
if (_root.buy_price eq 0) {
_root.price = "50";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "50";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (15);
};
}
Symbol 201 Button
on (rollOver) {
_root.equip_name = "Evil ENGINE";
_root.equip_description = " Cut fuel consumption in zero";
if (_root.buy_price eq 0) {
_root.price = "666";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "666";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (15);
};
}
Symbol 204 MovieClip Frame 1
stop();
Symbol 205 Button
on (rollOver) {
_root.equip_name = "solar eng. SOLARIS";
_root.equip_description = "Helps you refill the fuel tank only by staying afloat.";
if (_root.buy_price eq 0) {
_root.price = "250";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "250";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (5);
};
}
Symbol 208 Button
on (rollOver) {
_root.equip_name = "CUPREOUS STAR";
_root.equip_description = "Ad 500 to your score";
if (_root.buy_price eq 0) {
_root.price = "500";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "500";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (5);
};
}
Symbol 211 MovieClip Frame 1
stop();
Symbol 212 Button
on (rollOver) {
_root.equip_name = "MOTO-BASE";
_root.equip_description = "You'll be able to move base horizontally.";
if (_root.buy_price eq 0) {
_root.price = "320";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "320";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (13);
};
}
Symbol 215 Button
on (rollOver) {
_root.equip_name = "GOLDEN STAR";
_root.equip_description = "Add 50000 to your score";
if (_root.buy_price eq 0) {
_root.price = "50000";
}
}
on (release) {
_root.buy_equip_name = _root.equip_name;
_root.price = "50000";
_root.buy_price = _root.price;
tellTarget (_root.market.selector) {
gotoAndStop (13);
};
}
Symbol 218 MovieClip Frame 1
stop();
Symbol 226 Button
on (rollOver, rollOut) {
if (_root.money_health >= _root.money) {
_root.price = 0;
} else {
_root.price = _root.money_health;
}
_root.equip_name = "1/5 REPAIR";
_root.equip_description = "Do you want to restore one life?";
}
on (release) {
if (_root.snd eq true) {
zvuk9 = new Sound();
zvuk9.attachSound("buy");
zvuk9.setVolume(100);
zvuk9.start(0, 1);
}
if ((_root.price != 0) and (_root.health <= 4.5)) {
if (_root.money >= _root.money_health) {
_root.health = _root.health + 1;
_root.money = _root.money - _root.money_health;
_root.equip_name = "INFO";
_root.buy_equip_name = "1/5 REPAIR";
_root.buy_price = 0;
_root.equip_description = "Your submarine has been repaired.";
tellTarget ("selector") {
gotoAndStop (1);
};
} else {
_root.equip_name = "INFO";
_root.equip_description = "The price is too high.";
}
} else {
_root.equip_name = "INFO";
_root.equip_description = "There's nothing to repair.";
}
}
Symbol 227 Button
on (rollOver, rollOut) {
if (_root.money_coal > _root.money) {
_root.price = 0;
} else {
_root.price = _root.money_coal;
}
_root.equip_name = "1/5 REFUEL";
_root.equip_description = "Do you want to refuel 1/5 tank? \n\n click to confirm";
}
on (release) {
if (_root.snd eq true) {
zvuk9 = new Sound();
zvuk9.attachSound("buy");
zvuk9.setVolume(100);
zvuk9.start(0, 1);
}
if ((_root.price != 0) and (_root.coal <= 4.5)) {
if (_root.money >= _root.money_coal) {
_root.coal = _root.coal + 1;
_root.money = _root.money - _root.money_coal;
_root.buy_equip_name = "1/5 REFUEL";
_root.equip_name = "INFO";
_root.equip_description = "Your tank has been refulled.";
_root.buy_price = 0;
tellTarget ("selector") {
gotoAndStop (1);
};
} else {
_root.equip_name = "INFO";
_root.equip_description = "The price is too high.";
}
} else {
_root.equip_name = "INFO";
_root.equip_description = "Your tank is full.";
}
}
Symbol 243 MovieClip Frame 1
stop();
Instance of Symbol 123 MovieClip in Symbol 244 MovieClip [market] Frame 1
onClipEvent (load) {
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
onClipEvent (enterFrame) {
if ((frameCounter % speedFactor) == 0) {
if ((scrolling == "up") && (_root.prog_param.scroll > 1)) {
_root.prog_param.scroll--;
} else if ((scrolling == "down") && (datextbox.scroll < _root.prog_param.maxscroll)) {
_root.prog_param.scroll++;
}
frameCounter = 0;
}
frameCounter++;
}
Instance of Symbol 159 MovieClip in Symbol 244 MovieClip [market] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.cannons);
}
Instance of Symbol 169 MovieClip in Symbol 244 MovieClip [market] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.speed);
}
Instance of Symbol 179 MovieClip in Symbol 244 MovieClip [market] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.cargo);
}
Instance of Symbol 186 MovieClip in Symbol 244 MovieClip [market] Frame 1
onClipEvent (enterFrame) {
if (_root.gamefinished != true) {
if (_root.searchlight eq true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_root.killingtouch != true) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
}
Instance of Symbol 193 MovieClip in Symbol 244 MovieClip [market] Frame 1
onClipEvent (enterFrame) {
if (_root.gamefinished != true) {
if (_root.eats eq 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else if (_root.starS != true) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
}
Instance of Symbol 198 MovieClip in Symbol 244 MovieClip [market] Frame 1
onClipEvent (enterFrame) {
if (_root.tank eq true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 204 MovieClip in Symbol 244 MovieClip [market] Frame 1
onClipEvent (enterFrame) {
if (_root.gamefinished != true) {
if (_root.navigation == false) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else if (_root.eats eq 0.5) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
}
Instance of Symbol 211 MovieClip in Symbol 244 MovieClip [market] Frame 1
onClipEvent (enterFrame) {
if (_root.gamefinished != true) {
if (_root.solaris eq true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_root.starC != true) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
}
Instance of Symbol 218 MovieClip in Symbol 244 MovieClip [market] Frame 1
onClipEvent (enterFrame) {
if (_root.gamefinished != true) {
if (_root.baseMove eq true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_root.starG != true) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
}
Instance of Symbol 29 MovieClip "blik_cargo" in Symbol 258 MovieClip [hud_money] Frame 1
onClipEvent (enterFrame) {
_root.cargo_stat = ((Math.round(_root.cargo * 2.5) - _root.cargo_akt) + "/") + Math.round(_root.cargo * 2.5);
if (_root.cargo_akt < 1) {
play();
} else {
gotoAndStop (1);
}
}
Symbol 303 MovieClip Frame 1
stop();
Instance of Symbol 303 MovieClip "hud_bonus" in Symbol 305 MovieClip [hud_score] Frame 1
onClipEvent (enterFrame) {
if (((((_root.var_bonus_b eq "B") and (_root.var_bonus_o eq "O")) and (_root.var_bonus_n eq "N")) and (_root.var_bonus_u eq "U")) and (_root.var_bonus_s eq "S")) {
_root.money = _root.money + 35;
_root.score = _root.score + 25;
tellTarget (this) {
play();
};
_root.var_bonus_b = "";
_root.var_bonus_o = "";
_root.var_bonus_n = "";
_root.var_bonus_u = "";
_root.var_bonus_s = "";
}
}
Symbol 315 MovieClip [sardin] Frame 1
stop();
Symbol 315 MovieClip [sardin] Frame 12
removeMovieClip(this);
Symbol 322 MovieClip [tupon] Frame 1
gotoAndStop(random(8) + 2);
Symbol 330 MovieClip [tuna] Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Symbol 330 MovieClip [tuna] Frame 7
gotoAndStop (1);
Symbol 336 MovieClip [whitescr] Frame 10
tellTarget (_root) {
gotoAndStop (6);
};
Symbol 336 MovieClip [whitescr] Frame 26
stop();
Symbol 359 Button
on (release) {
_root.gotoAndStop(1);
}
Symbol 361 Button
on (release) {
nextFrame();
}
Symbol 362 Button
on (release) {
_root.gotoAndStop(7);
}
Symbol 363 Button
on (release) {
_root.zatemnovac.gotoAndPlay(1);
_root.gotoAndStop(3);
}
Symbol 365 Button
on (release) {
_root.sendScore();
nextFrame();
}
on (keyPress "<Enter>") {
_root.sendScore();
nextFrame();
}
Symbol 376 MovieClip Frame 1
play();
Symbol 376 MovieClip Frame 10
stop();
Symbol 376 MovieClip Frame 11
stop();
Symbol 376 MovieClip Frame 12
stop();
Symbol 376 MovieClip Frame 13
stop();
Symbol 377 MovieClip [minimenu] Frame 1
stop();
Symbol 377 MovieClip [minimenu] Frame 2
stop();
Symbol 379 MovieClip [manta] Frame 1
stop();
Symbol 420 MovieClip Frame 138
stop();
Symbol 423 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 423 MovieClip Frame 2
gotoAndPlay (1);
Symbol 423 MovieClip Frame 3
_root.play();
Symbol 428 Button
on (release) {
gotoAndPlay (3);
}
Symbol 457 Button
on (release) {
gotoAndStop (56);
}
Symbol 477 Button
on (release) {
_root.attachMovie("whitescr", "zatemnovac", 1105);
}
Symbol 478 Button
on (release) {
gotoAndStop (56);
}
Symbol 479 Button
on (release) {
tellTarget (_root) {
getURL ("http://www.funny-games.biz/main.html", "_blank");
};
}
Symbol 486 Button
on (release) {
_root.snd = false;
gotoAndStop (2);
stopAllSounds();
}
Symbol 488 Button
on (release) {
_root.snd = true;
gotoAndStop (1);
_root.zvuk1 = new Sound();
_root.zvuk1.attachSound("sear");
_root.zvuk1.setVolume(100);
_root.zvuk1.start(0, 1000);
}
Symbol 489 MovieClip Frame 1
if (!_root.snd) {
gotoAndStop (2);
}
stop();
Symbol 490 Button
on (release) {
tellTarget (_root) {
getURL ("http://scores.funny-games.biz/show.php?game_id=18&difficulty=0", "_blank");
};
}
Symbol 496 Button
on (release) {
nextFrame();
}
Symbol 502 Button
on (release) {
gotoAndStop (55);
}
Instance of Symbol 329 MovieClip in Symbol 503 MovieClip Frame 1
onClipEvent (load) {
period = 1;
choose = 42;
speed = 5;
akc = speed;
size = 1;
setProperty(this, _yscale , -100);
}
onClipEvent (enterFrame) {
if (choose eq 42) {
period = Math.floor(Math.random() * 30);
choose = Math.floor(Math.random() * 10);
if (period < 10) {
period = period + 10;
}
}
if (choose eq 1) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) + speed);
if (getProperty(this, _xscale) eq 100) {
setProperty(this, _rotation , 45);
} else {
setProperty(this, _rotation , -45);
}
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 2) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) - speed);
if (getProperty(this, _xscale) eq 100) {
setProperty(this, _rotation , -45);
} else {
setProperty(this, _rotation , 45);
}
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 3) {
if (period > 0) {
setProperty(this, _x , getProperty(this, _x) + speed);
setProperty(this, _rotation , 0);
setProperty(this, _xscale , 100 * size);
period--;
} else if (akc > 0) {
setProperty(this, _x , getProperty(this, _x) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 4) {
if (period > 0) {
setProperty(this, _x , getProperty(this, _x) - speed);
setProperty(this, _rotation , 0);
setProperty(this, _xscale , -100 * size);
period--;
} else if (akc > 0) {
setProperty(this, _x , getProperty(this, _x) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 5) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) + speed);
setProperty(this, _xscale , -100 * size);
setProperty(this, _rotation , -45);
setProperty(this, _x , getProperty(this, _x) - speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) + akc);
setProperty(this, _x , getProperty(this, _x) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 6) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) - speed);
setProperty(this, _xscale , 100 * size);
setProperty(this, _rotation , -45);
setProperty(this, _x , getProperty(this, _x) + speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) - akc);
setProperty(this, _x , getProperty(this, _x) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 7) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) + speed);
setProperty(this, _rotation , 45);
setProperty(this, _xscale , 100 * size);
setProperty(this, _x , getProperty(this, _x) + speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) + akc);
setProperty(this, _x , getProperty(this, _x) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 8) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) - speed);
setProperty(this, _xscale , -100 * size);
setProperty(this, _rotation , 45);
setProperty(this, _x , getProperty(this, _x) - speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) - akc);
setProperty(this, _x , getProperty(this, _x) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 9) {
choose = 42;
}
if (choose eq 10) {
choose = 42;
}
if (choose eq 0) {
choose = 42;
}
if (_root.zed.hitTest(_x + x, _y + y, this, true)) {
choose = 7;
period = 10;
}
if (_root.zed2.hitTest(_x + x, _y + y, this, true)) {
choose = 8;
period = 10;
}
if (_root.zed3.hitTest(_x + x, _y + y, this, true)) {
choose = 3;
period = 10;
}
if (_root.zed4.hitTest(_x + x, _y + y, this, true)) {
choose = 4;
period = 10;
}
if (_root.hero.size >= size) {
tellTarget (this.ano) {
gotoAndStop (1);
};
} else {
tellTarget (this.ano) {
gotoAndStop (2);
};
}
}
Instance of Symbol 385 MovieClip [clown] in Symbol 503 MovieClip Frame 1
onClipEvent (load) {
period = 1;
choose = 42;
speed = 5;
akc = speed;
size = 1;
}
onClipEvent (enterFrame) {
if (choose eq 42) {
period = Math.floor(Math.random() * 30);
choose = Math.floor(Math.random() * 10);
if (period < 10) {
period = period + 10;
}
}
if (choose eq 1) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) + speed);
if (getProperty(this, _xscale) eq 100) {
setProperty(this, _rotation , 45);
} else {
setProperty(this, _rotation , -45);
}
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 2) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) - speed);
if (getProperty(this, _xscale) eq 100) {
setProperty(this, _rotation , -45);
} else {
setProperty(this, _rotation , 45);
}
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 3) {
if (period > 0) {
setProperty(this, _x , getProperty(this, _x) + speed);
setProperty(this, _rotation , 0);
setProperty(this, _xscale , 100 * size);
period--;
} else if (akc > 0) {
setProperty(this, _x , getProperty(this, _x) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 4) {
if (period > 0) {
setProperty(this, _x , getProperty(this, _x) - speed);
setProperty(this, _rotation , 0);
setProperty(this, _xscale , -100 * size);
period--;
} else if (akc > 0) {
setProperty(this, _x , getProperty(this, _x) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 5) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) + speed);
setProperty(this, _xscale , -100 * size);
setProperty(this, _rotation , -45);
setProperty(this, _x , getProperty(this, _x) - speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) + akc);
setProperty(this, _x , getProperty(this, _x) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 6) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) - speed);
setProperty(this, _xscale , 100 * size);
setProperty(this, _rotation , -45);
setProperty(this, _x , getProperty(this, _x) + speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) - akc);
setProperty(this, _x , getProperty(this, _x) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 7) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) + speed);
setProperty(this, _rotation , 45);
setProperty(this, _xscale , 100 * size);
setProperty(this, _x , getProperty(this, _x) + speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) + akc);
setProperty(this, _x , getProperty(this, _x) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 8) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) - speed);
setProperty(this, _xscale , -100 * size);
setProperty(this, _rotation , 45);
setProperty(this, _x , getProperty(this, _x) - speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) - akc);
setProperty(this, _x , getProperty(this, _x) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 9) {
choose = 42;
}
if (choose eq 10) {
choose = 42;
}
if (choose eq 0) {
choose = 42;
}
if (_root.zed.hitTest(_x + x, _y + y, this, true)) {
choose = 7;
period = 10;
}
if (_root.zed2.hitTest(_x + x, _y + y, this, true)) {
choose = 8;
period = 10;
}
if (_root.zed3.hitTest(_x + x, _y + y, this, true)) {
choose = 3;
period = 10;
}
if (_root.zed4.hitTest(_x + x, _y + y, this, true)) {
choose = 4;
period = 10;
}
if (_root.hero.size >= size) {
tellTarget (this.ano) {
gotoAndStop (1);
};
} else {
tellTarget (this.ano) {
gotoAndStop (2);
};
}
}
Instance of Symbol 383 MovieClip [xifa] in Symbol 503 MovieClip Frame 1
onClipEvent (load) {
period = 1;
choose = 42;
speed = 5;
akc = speed;
size = 1;
}
onClipEvent (enterFrame) {
if (choose eq 42) {
period = Math.floor(Math.random() * 30);
choose = Math.floor(Math.random() * 10);
if (period < 10) {
period = period + 10;
}
}
if (choose eq 1) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) + speed);
if (getProperty(this, _xscale) eq 100) {
setProperty(this, _rotation , 45);
} else {
setProperty(this, _rotation , -45);
}
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 2) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) - speed);
if (getProperty(this, _xscale) eq 100) {
setProperty(this, _rotation , -45);
} else {
setProperty(this, _rotation , 45);
}
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 3) {
if (period > 0) {
setProperty(this, _x , getProperty(this, _x) + speed);
setProperty(this, _rotation , 0);
setProperty(this, _xscale , 100 * size);
period--;
} else if (akc > 0) {
setProperty(this, _x , getProperty(this, _x) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 4) {
if (period > 0) {
setProperty(this, _x , getProperty(this, _x) - speed);
setProperty(this, _rotation , 0);
setProperty(this, _xscale , -100 * size);
period--;
} else if (akc > 0) {
setProperty(this, _x , getProperty(this, _x) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 5) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) + speed);
setProperty(this, _xscale , -100 * size);
setProperty(this, _rotation , -45);
setProperty(this, _x , getProperty(this, _x) - speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) + akc);
setProperty(this, _x , getProperty(this, _x) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 6) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) - speed);
setProperty(this, _xscale , 100 * size);
setProperty(this, _rotation , -45);
setProperty(this, _x , getProperty(this, _x) + speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) - akc);
setProperty(this, _x , getProperty(this, _x) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 7) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) + speed);
setProperty(this, _rotation , 45);
setProperty(this, _xscale , 100 * size);
setProperty(this, _x , getProperty(this, _x) + speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) + akc);
setProperty(this, _x , getProperty(this, _x) + akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 8) {
if (period > 0) {
setProperty(this, _y , getProperty(this, _y) - speed);
setProperty(this, _xscale , -100 * size);
setProperty(this, _rotation , 45);
setProperty(this, _x , getProperty(this, _x) - speed);
period--;
} else if (akc > 0) {
setProperty(this, _y , getProperty(this, _y) - akc);
setProperty(this, _x , getProperty(this, _x) - akc);
akc--;
} else {
akc = speed;
choose = 42;
}
}
if (choose eq 9) {
choose = 42;
}
if (choose eq 10) {
choose = 42;
}
if (choose eq 0) {
choose = 42;
}
if (_root.zed.hitTest(_x + x, _y + y, this, true)) {
choose = 7;
period = 10;
}
if (_root.zed2.hitTest(_x + x, _y + y, this, true)) {
choose = 8;
period = 10;
}
if (_root.zed3.hitTest(_x + x, _y + y, this, true)) {
choose = 3;
period = 10;
}
if (_root.zed4.hitTest(_x + x, _y + y, this, true)) {
choose = 4;
period = 10;
}
if (_root.hero.size >= size) {
tellTarget (this.ano) {
gotoAndStop (1);
};
} else {
tellTarget (this.ano) {
gotoAndStop (2);
};
}
}
Symbol 503 MovieClip Frame 55
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 22
_root.poklad_price = "";
tellTarget ("../") {
nextFrame();
};
Symbol 530 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 1
stop();
Instance of Symbol 537 MovieClip in Symbol 541 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
tellTarget ("../") {
nextFrame();
};
}
}
Symbol 550 MovieClip Frame 140
tellTarget ("../") {
gotoAndStop (1);
};
Symbol 552 MovieClip Frame 140
tellTarget ("../") {
gotoAndStop (1);
};
Symbol 554 MovieClip Frame 140
tellTarget ("../") {
gotoAndStop (1);
};
Symbol 556 MovieClip Frame 140
tellTarget ("../") {
gotoAndStop (1);
};
Symbol 558 MovieClip Frame 140
tellTarget ("../") {
gotoAndStop (1);
};
Symbol 566 MovieClip Frame 1
stop();
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 550 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
setProperty(this, _x , (Math.random() + 0.1) * 1000);
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.pohyb)) {
_root.var_bonus_b = "B";
_root.score++;
tellTarget ("../") {
gotoAndStop (1);
};
}
}
Instance of Symbol 552 MovieClip in Symbol 566 MovieClip Frame 3
onClipEvent (load) {
setProperty(this, _x , (Math.random() + 0.1) * 1000);
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.pohyb)) {
_root.var_bonus_o = "O";
_root.score++;
tellTarget ("../") {
gotoAndStop (1);
};
}
}
Instance of Symbol 554 MovieClip in Symbol 566 MovieClip Frame 4
onClipEvent (load) {
setProperty(this, _x , (Math.random() + 0.1) * 1000);
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.pohyb)) {
_root.var_bonus_n = "N";
_root.score++;
tellTarget ("../") {
gotoAndStop (1);
};
tellTarget ("../") {
gotoAndStop (1);
};
}
}
Instance of Symbol 556 MovieClip in Symbol 566 MovieClip Frame 5
onClipEvent (load) {
setProperty(this, _x , (Math.random() + 0.1) * 1000);
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.pohyb)) {
_root.var_bonus_u = "U";
_root.score++;
tellTarget ("../") {
gotoAndStop (1);
};
}
}
Instance of Symbol 558 MovieClip in Symbol 566 MovieClip Frame 6
onClipEvent (load) {
setProperty(this, _x , (Math.random() + 0.1) * 1000);
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.pohyb)) {
_root.var_bonus_s = "S";
_root.score++;
tellTarget ("../") {
gotoAndStop (1);
};
}
}
Symbol 566 MovieClip Frame 7
gotoAndStop (1);
Symbol 567 MovieClip Frame 210
stop();
Instance of Symbol 530 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
tellTarget (_root.background.rybak) {
gotoAndStop (2);
};
}
}
Instance of Symbol 541 MovieClip "rybak" in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
getURL ("http://weberje.borec.cz/rabbitin.exe", "_blank");
gotoAndStop (1);
}
}
Symbol 580 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 1
gotoAndStop(random(5) + 2);
Instance of Symbol 580 MovieClip "poklad5" in Symbol 581 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 30;
m_delay = 450;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
_root.money = _root.money + m_poklad_price;
_root.cargo_akt--;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 581 MovieClip Frame 7
gotoAndStop (1);
Symbol 582 MovieClip Frame 1
gotoAndStop(random(5) + 2);
Instance of Symbol 580 MovieClip "poklad5" in Symbol 582 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 30;
m_delay = 450;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
_root.money = _root.money + m_poklad_price;
_root.cargo_akt--;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Instance of Symbol 580 MovieClip "poklad5" in Symbol 582 MovieClip Frame 3
onClipEvent (load) {
m_poklad_price = 30;
m_delay = 450;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
_root.money = _root.money + m_poklad_price;
_root.cargo_akt--;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 582 MovieClip Frame 7
gotoAndStop (1);
Symbol 583 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 530 MovieClip "poklad1" in Symbol 583 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 15;
m_delay = 200;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.money = _root.money + m_poklad_price;
_root.cargo_akt--;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 583 MovieClip Frame 7
gotoAndStop (1);
Symbol 584 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 584 MovieClip "poklad3" in Symbol 585 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 25;
m_delay = 350;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.money = _root.money + m_poklad_price;
_root.cargo_akt--;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 585 MovieClip Frame 7
gotoAndStop (1);
Symbol 586 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 586 MovieClip "poklad2" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 20;
m_delay = 300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.poklad_price = "+" + m_poklad_price;
_root.money = _root.money + m_poklad_price;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 587 MovieClip Frame 7
gotoAndStop (1);
Symbol 590 MovieClip Frame 1
stop();
Symbol 591 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 590 MovieClip "poklad4" in Symbol 591 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 25;
m_delay = 400;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.money = _root.money + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 591 MovieClip Frame 7
gotoAndStop (1);
Symbol 593 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Symbol 594 MovieClip Frame 2
stop();
Instance of Symbol 593 MovieClip "poklad15" in Symbol 594 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 35;
m_delay = 500;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
_root.cargo_akt--;
_root.money = _root.money + m_poklad_price;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 594 MovieClip Frame 7
gotoAndStop (1);
Symbol 600 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 600 MovieClip "poklad8" in Symbol 601 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 40;
m_delay = 1000;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
_root.money = _root.money + m_poklad_price;
_root.cargo_akt--;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 601 MovieClip Frame 7
gotoAndStop (1);
Symbol 603 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 603 MovieClip "poklad10" in Symbol 604 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 100;
m_delay = 2000;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.money = _root.money + m_poklad_price;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 604 MovieClip Frame 8
gotoAndStop (1);
Symbol 611 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 1
stop();
Symbol 619 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 3
stop();
Symbol 633 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 16
stop();
Symbol 657 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 2
if (_root.snd eq true) {
zvuk10 = new Sound();
zvuk10.attachSound("explode");
zvuk10.setVolume(100);
zvuk10.start(0, 1);
}
Symbol 658 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 584 MovieClip "poklad3" in Symbol 658 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 25;
m_delay = 350;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.money = _root.money + m_poklad_price;
_root.cargo_akt--;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 658 MovieClip Frame 7
gotoAndStop (1);
Symbol 659 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 586 MovieClip "poklad2" in Symbol 659 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 20;
m_delay = 300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.poklad_price = "+" + m_poklad_price;
_root.money = _root.money + m_poklad_price;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 659 MovieClip Frame 7
gotoAndStop (1);
Symbol 660 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 586 MovieClip "poklad2" in Symbol 660 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 20;
m_delay = 300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.cargo_akt--;
_root.poklad_price = "+" + m_poklad_price;
_root.money = _root.money + m_poklad_price;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 660 MovieClip Frame 7
gotoAndStop (1);
Symbol 661 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() * 5) + 2);
Instance of Symbol 530 MovieClip "poklad1" in Symbol 661 MovieClip Frame 2
onClipEvent (load) {
m_poklad_price = 15;
m_delay = 200;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.cargo_akt > 0)) {
if (_currentframe == 1) {
_root.onBoard = _root.onBoard + m_poklad_price;
_root.money = _root.money + m_poklad_price;
_root.cargo_akt--;
_root.poklad_price = "+" + m_poklad_price;
gotoAndStop (2);
delay = m_delay * _root.delay_koef;
}
}
if (_currentframe == 3) {
delay--;
if (delay < 1) {
tellTarget ("../") {
gotoAndStop (1);
};
}
}
}
Symbol 661 MovieClip Frame 7
gotoAndStop (1);
Symbol 666 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 1
stop();
Symbol 681 MovieClip Frame 1
stop();
Symbol 699 MovieClip Frame 18
if (_root.snd eq true) {
zvuk3 = new Sound();
zvuk3.attachSound("gejzir");
zvuk3.setVolume(100);
zvuk3.start(0, 1);
}
Symbol 715 MovieClip Frame 25
gotoAndPlay (1);
Symbol 715 MovieClip Frame 52
gotoAndPlay (14);
Symbol 720 MovieClip Frame 1
stop();