Frame 1
System.useCodepage = true;
var i = -1;
while (getInstanceAtDepth(i)) {
i--;
}
createEmptyMovieClip("kv_mc", i);
kv_mc.kv_v = {c:57, td:".57.memecounter.com"};
System.security.allowDomain(kv_mc.kv_v.td);
kv_mc.kv_v.c_so = SharedObject.getLocal(kv_mc.kv_v.c, "/");
kv_mc.kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_mc.kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_mc.kv_v.lurl = ((((((((((("http://" + kv_mc.kv_v.td) + "/tracker.php") + "?c=") + kv_mc.kv_v.c) + "&r=") + Math.floor(Math.random() * 10000000000)) + "&d=") + kv_mc.kv_v.d) + "&u=") + (kv_mc.kv_v.c_so.data.u ? "1" : "")) + "&p=") + kv_mc.kv_v.fpv;
kv_mc.kv_v.c_so.data.u = true;
kv_v.c_so.flush();
kv_mc.kv_v.t_mc = kv_mc.createEmptyMovieClip("kv_tracker", 0);
kv_mc.kv_v.l_mcl = new MovieClipLoader();
if (kv_mc.kv_v.l_mcl.loadClip) {
kv_mc.kv_v.l_mcl.loadClip(kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc);
} else {
loadMovie (kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc);
}
stop();
Instance of Symbol 16 MovieClip "zatmeni" in Frame 1
onClipEvent (load) {
_visible = false;
}
Frame 2
mluvci1_1 = 15;
hlaska1_1 = "If there was a wind blowing through the space...";
mluvci1_2 = 16;
hlaska1_2 = "you were now in the hurricane center.";
mluvci1_3 = 10;
hlaska1_3 = "That thing you have run into with the speed much faster then light...";
mluvci1_4 = 11;
hlaska1_4 = "Some call it WORM HOLE.";
mluvci1_5 = 12;
hlaska1_5 = "...Anyway, you have emerged from that hell on the edge of an unknown galaxy.";
mluvci1_6 = 9;
hlaska1_6 = "And it's just a beggining of your trouble...!";
mluvci2_1 = 17;
hlaska2_1 = "Look, the ship system has noticed a populated planet. Are we going to land?";
mluvci2_2 = 13;
hlaska2_2 = "You landed on a sputnik.";
mluvci2_3 = 14;
hlaska2_3 = "Someone tries to communicate with you...";
mluvci2_4 = 4;
hlaska2_4 = "They want to trade with us... The cosmo currency is valid here. Looks like a reasonable, globalised galaxy.";
mluvci2_5 = 2;
hlaska2_5 = "I'll leave here a robot translator, letting him study their lingo.";
mluvci3_1 = 3;
hlaska3_1 = "Oof, it was tough going! It's geting hotter, increasingly.";
mluvci3_2 = 2;
hlaska3_2 = "Yeah, they are after us. The sooner we leave this piece of world, the better for us...";
mluvci3_3 = 4;
hlaska3_3 = "We should find another wormhole. Perhaps it leads us back home.";
mluvci4_1 = 6;
hlaska4_1 = "* * * * * *...";
mluvci4_2 = 4;
hlaska4_2 = "???";
mluvci4_3 = 6;
hlaska4_3 = "* * * *?";
mluvci4_4 = 3;
hlaska4_4 = "What is he blabing? Anyone in the ship speaking extraterrestrial?";
mluvci4_5 = 2;
hlaska4_5 = "Maybe the robot could help us, we left him on #01...";
mluvci5_1 = 2;
hlaska5_1 = "I think our robot has learned some ET-words. It can help us now with the translation.";
mluvci6_1 = 6;
hlaska6_1 = "(The translator) If you are looking for some wormhole, one is in the sector 202:27:186.";
mluvci6_2 = 4;
hlaska6_2 = "Thanks, my green friend. It's near #04! Let's go there!";
mluvci7_1 = 2;
hlaska7_1 = "Mmm... looks like it wasn't the right way home.";
mluvci7_2 = 3;
hlaska7_2 = "In the hell instead.";
mluvci7_3 = 2;
hlaska7_3 = "No, this is not the hell. Somehow I can breath here more freely than in the place we just fled.";
mluvci7_4 = 3;
hlaska7_4 = "It may be just a question of time, when UFO guys dog us out.";
mluvci7_5 = 4;
hlaska7_5 = "Never mind. We'll go on looking for other wormholes, untill we drill the way home.";
mluvci8_1 = 3;
hlaska8_1 = "Don't wish to run into the worm that makes those holes.";
mluvci9_1 = 6;
hlaska9_1 = "I'd know about one wormhole, but I must stand mute, se\u00F1or. Or Big Boss burns out my establishment.";
mluvci9_2 = 4;
hlaska9_2 = "Who is that Big Boss?";
mluvci9_3 = 6;
hlaska9_3 = "Big Boss lives on the moon and clears off anyone who comes his way.";
mluvci10_1 = 3;
hlaska10_1 = "So, I have poken around in the Big Boss office and now know where is that wormhole. Near the planet #09.";
mluvci10_2 = 4;
hlaska10_2 = "Let's go there!";
mluvci11_1 = 3;
hlaska11_1 = "Gah. Another fucking wrong galaxy.";
mluvci12_1 = 6;
hlaska12_1 = "I know the galaxy you quest for. You'll get there through one particular wormhole.";
mluvci12_2 = 3;
hlaska12_2 = "Only one wormhole takes us home?? Lokalise it!";
mluvci12_3 = 6;
hlaska12_3 = "Tit for tat! Bring me the Astral Light.";
mluvci12_4 = 3;
hlaska12_4 = "Astral Light??";
mluvci12_5 = 6;
hlaska12_5 = "Yes, didn't you hear about it? This precious gem is to be found somewhere in the red planet system.";
mluvci13_1 = 6;
hlaska13_1 = "You still haven't the Astral Light for me?";
mluvci14_1 = 4;
hlaska14_1 = "Now, let's head for that blood sucker on #12 !";
mluvci15_1 = 6;
hlaska15_1 = "Oh, the Astral Light! More beauteous than all its holograms!";
mluvci15_2 = 4;
hlaska15_2 = "It's your turn now. Where is the wormhole?";
mluvci15_3 = 6;
hlaska15_3 = "I already forgot.";
mluvci15_4 = 4;
hlaska15_4 = "WHAT?";
mluvci15_5 = 6;
hlaska15_5 = "No, just kidding. In the sector 27:12:10. #15 is the nearest planet to it.";
mluvci15_6 = 6;
hlaska15_6 = "Good wind to you, stranger!";
mluvci16_1 = 3;
hlaska16_1 = "Oh... This looks very different from all we have seen lately...";
mluvci16_2 = 2;
hlaska16_2 = "Yes, this is our bonny galaxy!";
mluvci16_3 = 4;
hlaska16_3 = "So what are we waiting for? Fly home!";
textyNacteno = 1;
Frame 3
Frame 5
Frame 6
function urciSystem(pl) {
var _local2 = 0;
do {
if (pl <= this.systemy[_local2]) {
break;
}
_local2++;
} while (_local2 <= 2);
return(_local2);
}
function tracking() {
myURL = "http://www.gamegarage.co.uk/scripts/";
url = myURL + "tracking.php";
lv = new LoadVars();
lv.game_id = _root.game_id;
lv.user_id = _root.user_id;
lv.sendAndLoad(url, lv, "POST");
}
function scoring() {
myURL = "http://www.gamegarage.co.uk/scripts/";
url = myURL + "score.php";
lv = new LoadVars();
lv.game_id = _root.game_id;
lv.user_id = _root.user_id;
lv.score = XXXXXX;
lv.alg = ((_root.game_id + _root.user_id) + skore) + "a83l9xj";
lv.sendAndLoad(url, lv, "POST");
}
function epizoda(index) {
switch (index) {
case 0 :
dialog(1);
return(1);
case 1 :
system.tuhost = 0;
system.delka = 1;
system.iq = 3;
with (system) {
let(1, 1, true);
}
return(2);
case 2 :
dialog(2);
return(3);
case 3 :
dialog(3);
return(4);
case 4 :
dialog(4);
return(5);
case 5 :
dialog(5);
return(6);
case 6 :
dialog(6);
system.objevenaDira = 1;
return(7);
case 7 :
dialog(7);
return(8);
case 8 :
dialog(8);
return(1);
case 9 :
dialog(9);
return(9);
case 10 :
system.tuhost = 10;
system.delka = 1;
system.iq = 9;
system.typ = 4;
with (system) {
if (let(8, 4, true)) {
return(10);
}
return(9);
}
return(10);
case 11 :
dialog(10);
system.objevenaDira = 2;
return(11);
case 12 :
dialog(11);
return(12);
case 13 :
dialog(12);
return(13);
case 14 :
if (zapletka.stavy[1] == 13) {
dialog(14);
}
zapletka.stavy[1] = 14;
return(2);
case 15 :
dialog(15);
system.objevenaDira = 3;
var x;
x = 1;
while (x <= maxPredmetu) {
if (_root.majetek[x].cislo == 9) {
break;
}
x++;
}
if (x <= maxPredmetu) {
vyhod(x);
}
return(3);
case 16 :
dialog(13);
return(13);
case 17 :
dialog(16);
return(4);
}
}
function Zapletky(zapletek) {
var x;
this.stavy = new Array(zapletek + 1);
this.testuj = function (akce) {
x = 0;
while (x < Epizody.length) {
if ((((konecna == Epizody[x].planeta) || (!Epizody[x].planeta)) && (this.stavy[Epizody[x].zapletka] == Epizody[x].stav)) && (Epizody[x].akce == akce)) {
this.stavy[Epizody[x].zapletka] = epizoda(x);
return(1);
}
x++;
}
return(0);
};
}
function Predmet(cislo0, stav0) {
this.cislo = cislo0;
if (stav0) {
this.stav = stav0;
} else {
this.stav = random(70) + 31;
}
}
function predmetu() {
var _local1;
var _local2 = 0;
_local1 = 1;
while (_local1 <= maxPredmetu) {
if (majetek[_local1].cislo) {
_local2++;
}
_local1++;
}
return(_local2);
}
function prvniVec() {
var _local1;
_local1 = 1;
while (_local1 <= maxPredmetu) {
if (majetek[_local1].cislo) {
return(_local1);
}
_local1++;
}
return(0);
}
function posledniVec() {
var _local1;
_local1 = maxPredmetu;
while (_local1 > 0) {
if (majetek[_local1].cislo) {
return(_local1);
}
_local1--;
}
return(0);
}
function vyhod(index) {
var _local1;
_local1 = index;
while (_local1 < maxPredmetu) {
majetek[_local1].cislo = majetek[_local1 + 1].cislo;
majetek[_local1].stav = majetek[_local1 + 1].stav;
_local1++;
}
majetek[maxPredmetu].cislo = 0;
majetek[maxPredmetu].stav = 0;
}
function seberProcenta(typVeci, kolik, fakt) {
var _local1;
var _local2 = kolik;
_local1 = 1;
while (_local1 <= maxPredmetu) {
if (majetek[_local1].cislo == typVeci) {
if (majetek[_local1].stav >= _local2) {
if (fakt) {
majetek[_local1].stav = majetek[_local1].stav - _local2;
}
_local2 = 0;
} else {
_local2 = _local2 - majetek[_local1].stav;
if (fakt) {
majetek[_local1].stav = 0;
majetek[_local1].typ = 0;
}
}
}
if (_local2 <= 0) {
break;
}
_local1++;
}
_local1 = 1;
while (_local1 <= maxPredmetu) {
if ((majetek[_local1].stav <= 0) && (majetek[_local1].cislo)) {
majetek[_local1].stav = 0;
majetek[_local1].cislo = 0;
}
_local1++;
}
if (_local2 <= 0) {
return(1);
}
return(0);
}
function vysvetli(s) {
popisek = s;
ram.gotoAndPlay(2);
}
function hodHlasku(kdo, co, kPotvrzeni, doba) {
hlasky.hlaska.kdo = kdo;
if (co.length) {
hlasky.hlaska.textik = co;
} else {
hlasky.hlaska.gotoAndStop(1);
zatmeni._visible = false;
return(0);
}
var _local1 = hlasky.hlaska.textik.indexOf("#");
var _local2;
while (_local1 > -1) {
_local2 = Number(hlasky.hlaska.textik.substr(_local1 + 1, 2));
hlasky.hlaska.textik = (hlasky.hlaska.textik.substr(0, _local1) + system.planety[_local2].jmeno.toUpperCase()) + hlasky.hlaska.textik.substr(_local1 + 3, hlasky.hlaska.textik.length);
_local1 = hlasky.hlaska.textik.indexOf("#");
}
_local1 = hlasky.hlaska.textik.indexOf("*");
while (_local1 > -1) {
hlasky.hlaska.textik = (hlasky.hlaska.textik.substr(0, _local1) + system.nahodneJmeno().toUpperCase()) + hlasky.hlaska.textik.substr(_local1 + 1, hlasky.hlaska.textik.length);
_local1 = hlasky.hlaska.textik.indexOf("*");
}
hlasky.hlaska.kPotvrzeni = kPotvrzeni;
hlasky.hlaska.doba = doba * 12;
hlasky.hlaska.gotoAndPlay(2);
}
function dialog(cislo) {
hlasky.cisloDialogu = cislo;
hlasky.gotoAndPlay("zacni");
}
function testujBaterii(rekni) {
if (baterie >= maxBat) {
return(0);
}
var _local4 = baterie;
var _local2 = 1;
do {
if (baterie >= maxBat) {
break;
}
if (majetek[_local2].cislo == 4) {
var _local3 = ((maxBat - baterie) / 10) - majetek[_local2].stav;
if (_local3 > 0) {
baterie = baterie + (majetek[_local2].stav * 10);
vyhod(_local2);
} else {
majetek[_local2].stav = majetek[_local2].stav - ((maxBat - baterie) / 10);
baterie = maxBat;
}
}
_local2++;
} while (_local2 <= maxPredmetu);
if (rekni) {
if (baterie == maxBat) {
_root.hodHlasku(3, "The ship battery is full, boss!", "", 5);
} else {
_root.hodHlasku(3, "The ship battery needs to be charged, boss!", "", 5);
}
} else {
system.ukazStavy();
if (baterie > _local4) {
system.plesk3.play();
}
}
}
function testujPancir(rekni) {
if (zivoty >= maxZiv) {
return(0);
}
var _local4 = zivoty;
var _local2 = 1;
do {
if (zivoty >= maxZiv) {
break;
}
if (majetek[_local2].cislo == 5) {
var _local3 = (maxZiv - zivoty) - majetek[_local2].stav;
if (_local3 > 0) {
zivoty = zivoty + majetek[_local2].stav;
vyhod(_local2);
} else {
majetek[_local2].stav = majetek[_local2].stav - (maxZiv - zivoty);
zivoty = maxZiv;
}
}
_local2++;
} while (_local2 <= maxPredmetu);
if (rekni) {
if (zivoty == maxZiv) {
_root.hodHlasku(3, "The armor is fixed, boss!", "", 5);
} else {
_root.hodHlasku(3, "We need some spare parts to fix the ship armor, boss!", "", 5);
}
} else {
system.ukazStavy();
if (zivoty > _local4) {
system.plesk1.play();
}
}
}
function zakoduj(cislo) {
var _local5 = "";
var _local4 = cislo + "";
var _local2 = 1;
var _local3;
_local3 = 0;
while (_local3 < _local4.length) {
_local5 = _local5 + this["kody" + _local2].charAt(Number(_local4.charAt(_local3)));
if (_local2 == 1) {
_local2 = 2;
} else {
_local2 = 1;
}
_local3++;
}
_local5 = _local5 + "A";
soucetKodu = soucetKodu + cislo;
return(_local5);
}
function rozkoduj(znaky) {
var _local8;
var _local6 = "";
var _local4;
var _local2;
var _local7 = 0;
var _local3 = 1;
_local4 = 0;
while (_local4 < znaky.length) {
_local2 = 0;
while (_local2 < 10) {
if (this["kody" + _local3].charAt(_local2) == znaky.charAt(_local4)) {
break;
}
_local2++;
}
_local6 = _local6 + _local2;
if (_local3 == 1) {
_local3 = 2;
} else {
_local3 = 1;
}
_local4++;
}
_local7 = Number(_local6);
soucetKodu = soucetKodu + _local7;
return(_local7);
}
function sejv() {
smiUlozit--;
var _local3 = "";
var _local2;
var _local1;
soucetKodu = 0;
separ = 0;
_local2 = system.sranda;
_local3 = _local3 + zakoduj(_local2);
_local2 = konecna;
_local3 = _local3 + zakoduj(_local2);
_local2 = denPoradi;
_local3 = _local3 + zakoduj(_local2);
_local2 = prachy;
_local3 = _local3 + zakoduj(_local2);
_local2 = maxZiv;
_local3 = _local3 + zakoduj(_local2);
_local2 = zivoty;
_local3 = _local3 + zakoduj(_local2);
_local2 = maxBat;
_local3 = _local3 + zakoduj(_local2);
_local2 = baterie;
_local3 = _local3 + zakoduj(_local2);
_local2 = obtiznost;
_local3 = _local3 + zakoduj(_local2);
_local2 = kily;
_local3 = _local3 + zakoduj(_local2);
_local1 = 0;
while (_local1 < 3) {
_local2 = system.poplachy[_local1];
_local3 = _local3 + zakoduj(_local2);
_local1++;
}
_local1 = 0;
while (_local1 < (zapletka.stavy.length - 1)) {
_local2 = zapletka.stavy[_local1];
_local3 = _local3 + zakoduj(_local2);
_local1++;
}
_local1 = 1;
while (_local1 <= maxPredmetu) {
_local2 = majetek[_local1].cislo;
_local3 = _local3 + zakoduj(_local2);
_local2 = majetek[_local1].stav;
_local3 = _local3 + zakoduj(_local2);
_local1++;
}
_local3 = _local3 + zakoduj(system.objevenaDira);
_local3 = _local3 + zakoduj(smiUlozit);
_local3 = _local3 + zakoduj(Math.round(odrovnal / 100));
_local3 = _local3 + zakoduj(soucetKodu);
return(_local3);
}
function loud(znaky) {
if (znaky == "god") {
god = 1;
bill = 0;
buh = 0;
gotoAndPlay ("hra");
return(2);
}
if (znaky == "godgodgod") {
god = 0;
bill = 0;
buh = 1;
gotoAndPlay ("hra");
return(4);
}
if (znaky == "bill") {
bill = 1;
god = 0;
gotoAndPlay ("hra");
return(3);
}
soucetKodu = 0;
var _local3 = new Array();
_local3 = znaky.split("A");
var _local2;
var _local6 = "";
_local2 = 0;
while (_local2 < (_local3.length - 1)) {
_local3[_local2] = rozkoduj(_local3[_local2]);
_local2++;
}
_local2--;
soucetKodu = soucetKodu - _local3[_local2];
if (soucetKodu != _local3[_local2]) {
return(0);
}
system.sranda = _local3[0];
konecna = _local3[1];
denPoradi = _local3[2];
prachy = _local3[3];
maxZiv = _local3[4];
zivoty = _local3[5];
maxBat = _local3[6];
baterie = _local3[7];
obtiznost = _local3[8];
kily = _local3[9];
system.nahoda = 1111 + (system.sranda * 5);
system.stvorSvet();
system.uzpusobCeny();
system.poplachy[0] = _local3[10];
system.poplachy[1] = _local3[11];
system.poplachy[2] = _local3[12];
_local2 = 0;
while (_local2 < (zapletka.stavy.length - 1)) {
zapletka.stavy[_local2] = _local3[_local2 + 13];
_local2++;
}
var _local4 = _local2 + 12;
_local2 = 1;
while (_local2 <= maxPredmetu) {
majetek[_local2].cislo = _local3[_local4 + _local2];
_local4++;
majetek[_local2].stav = _local3[_local4 + _local2];
_local2++;
}
system.objevenaDira = _local3[_local4 + _local2];
_local2++;
smiUlozit = _local3[_local4 + _local2];
_local2++;
odrovnal = _local3[_local4 + _local2] * 100;
system.nastavSe(konecna);
gotoAndPlay ("galaxie");
system.gotoAndPlay(2);
_root.tracking();
}
function hudboHraj(s) {
hudbaPozadi.stop();
hudbaPozadi.attachSound(s);
var _local1;
_local1 = 36000;
if (!ticho) {
hudbaPozadi.start(0, _local1);
}
}
maxPredmetu = 8;
jmenoTypu = new Array("other", "weapon", "technical", "resource");
predmety = new Array({cislo:0, jmeno:"", skupina:0, cena:0}, {cislo:1, jmeno:"Extracanon", skupina:1, cena:50}, {cislo:2, jmeno:"Superfire", skupina:1, cena:150}, {cislo:3, jmeno:"Megablaster", skupina:1, cena:300}, {cislo:4, jmeno:"Batttery", skupina:2, cena:7}, {cislo:5, jmeno:"Spare parts", skupina:2, cena:18}, {cislo:6, jmeno:"Resources", skupina:3, cena:10}, {cislo:7, jmeno:"External armor", skupina:1, cena:100}, {cislo:8, jmeno:"External accumulator", skupina:2, cena:100}, {cislo:9, jmeno:"Astral Light", skupina:0, cena:3500});
popisyPredmetu = new Array("", "Extends your shooting space to your wings", "This powered-up cannon extends your shooting space to your upper wings", "Much stronger replacement for standart cannon", "Eneregy store needed for the ship flight and gunfire", "These parts make the ship armour repairable", "Food, fuel and other indispensable stuff", "Additional strength for standart ship armor", "Additional room for batteries", "Rare gem");
rasy = new Array(0, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2);
Planety = new Array();
majetek = new Array(maxPredmetu + 1);
mesice = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0);
systemy = new Array(4, 9, 15);
skore = 0;
Epizody = new Array({planeta:0, zapletka:1, stav:0, akce:0}, {planeta:0, zapletka:1, stav:1, akce:0}, {planeta:0, zapletka:1, stav:2, akce:0}, {planeta:3, zapletka:1, stav:3, akce:0}, {planeta:3, zapletka:1, stav:4, akce:1}, {planeta:1, zapletka:1, stav:5, akce:0}, {planeta:3, zapletka:1, stav:6, akce:1}, {planeta:5, zapletka:1, stav:7, akce:0}, {planeta:6, zapletka:2, stav:0, akce:0}, {planeta:8, zapletka:1, stav:8, akce:1}, {planeta:8, zapletka:1, stav:9, akce:2}, {planeta:8, zapletka:1, stav:10, akce:0}, {planeta:10, zapletka:1, stav:11, akce:0}, {planeta:12, zapletka:1, stav:12, akce:1}, {planeta:8, zapletka:3, stav:2, akce:0}, {planeta:12, zapletka:3, stav:2, akce:1}, {planeta:12, zapletka:1, stav:13, akce:1}, {planeta:16, zapletka:3, stav:3, akce:0});
kody0 = "A";
kody1 = "RSMNH JGLV";
kody2 = " OIEUYBPTK";
x = 1;
while (x <= maxPredmetu) {
majetek[x] = new Predmet(0, 0);
x++;
}
hudbaPozadi = new Sound();
zapletka = new Zapletky(4);
help = 1;
vybuch1 = new Sound();
vybuch2 = new Sound();
strela1 = new Sound();
zasah1 = new Sound();
cvak = new Sound();
vitr = new Sound();
vybuch1.attachSound("boom");
vybuch2.attachSound("boom2");
strela1.attachSound("mc0011");
zasah1.attachSound("beeppure");
cvak.attachSound("mc006");
vitr.attachSound("vitr");
Frame 9
vysvetli("");
Instance of Symbol 453 MovieClip in Frame 19
onClipEvent (load) {
datum = new Date();
}
onClipEvent (enterFrame) {
denMesice = datum.getDate();
if (denMesice > 28) {
_root.gotoAndStop(18);
}
}
Frame 20
hudboHraj("hudbaUvod1");
stop();
Frame 21
rozjeto = false;
konecna = 1;
prachy = 200;
maxZiv = 200;
maxBat = 650;
baterie = maxBat;
zivoty = maxZiv;
obtiznost = 1;
kily = 0;
smiUlozit = 3;
denPoradi = 0;
x = 1;
while (x <= maxPredmetu) {
majetek[x].cislo = 0;
majetek[x].stav = 0;
x++;
}
majetek[5].cislo = 6;
majetek[5].stav = 90;
majetek[6].cislo = 6;
majetek[6].stav = 90;
zapletka.stavy[0] = 0;
zapletka.stavy[1] = 0;
zapletka.stavy[2] = 0;
zapletka.stavy[3] = 0;
if (god) {
prachy = 5200;
}
if (bill) {
prachy = 10000;
}
hudboHraj("vitr");
Frame 33
system.viditelnostPlanet(false);
zapletka.testuj(0);
stop();
Frame 34
hudbaPozadi.setVolume(0);
Frame 35
zapletka.testuj(0);
Frame 37
if (hlasky._currentframe != 1) {
prevFrame();
play();
}
Frame 38
var kam = 1;
if (konecna > systemy[0]) {
kam = 2;
}
if (konecna > systemy[1]) {
kam = 3;
}
pozadi.gotoAndStop(kam);
hudbaPozadi.setVolume(25);
hudboHraj("hudbaObchod1");
Frame 40
hudbaPozadi.setVolume(50);
Frame 42
hudbaPozadi.setVolume(100);
hodHlasku("");
Frame 43
konecna.znalost = 2;
system.nastavSe(konecna);
Frame 46
Frame 47
testujPancir();
Frame 49
Frame 50
testujBaterii();
Frame 52
Frame 53
Frame 55
system.gotoAndPlay(2);
stop();
Frame 57
hudbaPozadi.setVolume(200);
hudboHraj("hudbaBitva1");
Frame 58
system._visible = false;
Frame 60
gotoAndPlay ("loaded");
Frame 62
Frame 63
Frame 65
hodHlasku(5, bitva.helpik.popis);
Frame 67
if (!hlasky.hlaska.vysledek) {
prevFrame();
play();
}
Frame 69
bitva.play();
bitva.lodVletu.play();
stop();
Frame 72
Frame 73
system._visible = true;
system.viditelnostPlanet(true);
if (rozjeto) {
gotoAndPlay ("galaxie");
} else {
rozjeto = true;
gotoAndPlay ("kecy");
}
Symbol 13 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 192
stop();
Symbol 18 Button
on (release) {
getURL ("http://www.gamegarage.co.uk", "_blank");
}
Symbol 36 MovieClip Frame 2
var l;
var t;
l = _root.getBytesLoaded();
t = _root.getBytesTotal();
if (l < t) {
} else {
_parent.play();
}
Symbol 36 MovieClip Frame 3
gotoAndPlay (2);
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 5
stop();
Symbol 56 MovieClip Frame 1
Symbol 56 MovieClip Frame 38
ufo1.gotoAndPlay(2);
Symbol 56 MovieClip Frame 39
_parent.play();
_parent._parent.play();
Symbol 56 MovieClip Frame 48
stop();
Symbol 56 MovieClip Frame 51
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 12
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 6
stop();
Symbol 80 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.gamegarage.co.uk", "_blank");
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 89 Button
on (rollOver) {
ukaz(1);
}
on (rollOut) {
ukaz(0);
}
on (release) {
vol(1);
}
Symbol 90 Button
on (rollOver) {
ukaz(2);
}
on (rollOut) {
ukaz(0);
}
on (release) {
volba = 2;
_root.god = 0;
_root.bill = 0;
_root.tracking();
_root.gotoAndPlay("hra");
}
Symbol 91 Button
on (rollOver) {
ukaz(3);
}
on (rollOut) {
ukaz(0);
}
on (release) {
vol(3);
}
Symbol 92 Button
on (rollOver) {
ukaz(4);
}
on (rollOut) {
ukaz(0);
}
on (release) {
vol(4);
}
Symbol 93 Button
on (rollOver) {
ukaz(5);
}
on (rollOut) {
ukaz(0);
}
on (release) {
vol(5);
}
Symbol 94 Button
on (rollOver) {
ukaz(6);
}
on (rollOut) {
ukaz(0);
}
on (release) {
getURL ("http://www.gamegarage.co.uk/", "_blank");
}
Symbol 101 MovieClip Frame 1
function ukaz(kolik) {
gotoAndStop(kolik + 2);
}
function vol(kolik) {
if (!volba) {
_parent.gotoAndPlay("odplav");
} else {
_parent.play();
}
volba = kolik;
}
Symbol 101 MovieClip Frame 2
stop();
Symbol 104 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.gotoAndPlay("pohyb");
}
Symbol 105 Button
on (rollOver) {
gotoAndStop (4);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.gotoAndPlay("boj");
}
Symbol 106 Button
on (rollOver) {
gotoAndStop (5);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.gotoAndPlay("posadka");
}
Symbol 107 Button
on (rollOver) {
gotoAndStop (6);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.gotoAndPlay("predmety");
}
Symbol 108 Button
on (rollOver) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.gotoAndPlay("obchod");
}
Symbol 126 MovieClip Frame 1
stop();
d1.stop();
Symbol 138 Button
on (rollOver) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 139 Button
on (rollOver) {
gotoAndStop (4);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 140 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 147 MovieClip Frame 1
stop();
Symbol 171 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 172 Button
on (rollOver) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 173 Button
on (rollOver) {
gotoAndStop (4);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 184 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 3
d1.stop();
d2.stop();
stop();
Symbol 185 MovieClip Frame 5
stop();
Symbol 185 MovieClip Frame 7
stop();
Symbol 185 MovieClip Frame 9
stop();
Symbol 185 MovieClip Frame 11
stop();
Symbol 187 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_root.loud(textik);
_parent._parent.kod.textik = "";
_parent._parent.menu.vol(0);
}
Symbol 192 MovieClip Frame 1
stop();
Symbol 193 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.robgendlerastropics.com/", "_blank");
}
Symbol 198 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.thunderbird.cz/", "_blank");
}
Symbol 205 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 211 Button
on (release) {
if (_currentframe < _totalframes) {
nextFrame();
} else {
gotoAndStop (1);
}
}
Symbol 220 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
_root.buh = 0;
_root.god = 0;
_root.bill = 0;
_root.play();
stop();
Symbol 221 MovieClip Frame 3
_parent.kod.textik = "";
Symbol 222 MovieClip Frame 1
_parent.noty._visible = false;
Symbol 222 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 14
_parent.noty._visible = true;
stop();
Symbol 222 MovieClip Frame 15
volby.gotoAndStop(menu.volba);
tvar.gotoAndPlay(2);
Symbol 222 MovieClip Frame 17
Symbol 222 MovieClip Frame 21
stop();
Symbol 222 MovieClip Frame 22
gotoAndPlay ("priplav");
Symbol 222 MovieClip Frame 23
tvar.gotoAndPlay(7);
Symbol 222 MovieClip Frame 28
if (menu.volba) {
gotoAndPlay ("odplav");
}
Symbol 222 MovieClip Frame 29
volby.gotoAndStop(10);
stop();
Symbol 224 Button
on (release) {
gotoAndStop ("off");
}
Symbol 226 Button
on (release) {
_root.ticho = 0;
_root.hudboHraj(_root.hudbaPozadi.s);
gotoAndStop ("on");
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
_root.hudbaPozadi.stop();
_root.ticho = 1;
Symbol 231 MovieClip Frame 1
_rotation = random(360);
Symbol 231 MovieClip Frame 41
gotoAndPlay (2);
Symbol 232 MovieClip Frame 1
stop();
Instance of Symbol 231 MovieClip in Symbol 232 MovieClip Frame 2
/* no clip actions */
Symbol 237 Button
on (rollOver) {
gotoAndPlay ("planetaObchod");
}
on (rollOut) {
_root.vysvetli("");
gotoAndPlay ("planeta3");
}
Symbol 238 Button
on (rollOver) {
gotoAndStop (2);
_root.vysvetli("Visit the moon?");
}
on (rollOut) {
_root.vysvetli("");
}
Symbol 239 Button
on (rollOver) {
_root.vysvetli("Visit the moon?");
}
on (rollOut) {
_root.vysvetli("");
gotoAndStop (1);
}
on (release) {
if (!_root.zapletka.testuj(2)) {
_root.hodHlasku(2, "No point to fly there, sir.");
}
}
Symbol 245 MovieClip Frame 1
stop();
Symbol 247 Button
on (rollOver) {
_root.vysvetli("Trade?");
}
on (rollOut) {
_root.vysvetli("");
gotoAndPlay ("planeta3");
}
on (release) {
_root.zapletka.testuj(1);
_parent.viditelnostPlanet(false);
_parent.obchod.zvoleno = true;
}
Symbol 258 Button
on (rollOver) {
gotoAndPlay ("planetaCesta");
}
on (rollOut) {
gotoAndPlay ("planeta2");
}
Symbol 259 Button
on (rollOver) {
if (p.znalost > 0) {
_root.vysvetli("Fly to this already visited planet?");
} else {
_root.vysvetli("Fly to this planet?");
}
}
on (rollOut) {
_root.vysvetli("");
gotoAndPlay ("planeta2");
}
on (release) {
gotoAndPlay ("planetaRada");
}
Symbol 280 Button
on (rollOut) {
_root.vysvetli("");
gotoAndPlay ("planeta2");
}
on (release) {
_parent.let(p.cislo, 1, true);
}
Symbol 282 Button
on (rollOver) {
gotoAndPlay ("cesta2");
}
Symbol 285 Button
on (rollOver) {
_root.vysvetli("Fly there?");
}
on (rollOut) {
_root.vysvetli("");
gotoAndPlay ("cesta");
}
on (release) {
gotoAndPlay ("cestaRada");
}
Symbol 288 Button
on (rollOver) {
_root.vysvetli("Fly there?");
}
on (rollOut) {
_root.vysvetli("");
gotoAndPlay ("cesta");
}
on (release) {
var x;
if (p.cislo == 16) {
x = 5;
_parent.tuhost = 10;
_parent.iq = 10;
} else {
x = 2;
}
_parent.let(p.cislo, x, true);
}
Symbol 290 Button
on (rollOver) {
_root.vysvetli("Attack the trading convoy?");
gotoAndPlay ("konvoj2");
}
on (rollOut) {
_root.vysvetli("");
}
Symbol 293 Button
on (rollOver) {
_root.vysvetli("Attack the trading convoy?");
}
on (rollOut) {
gotoAndPlay ("konvoj");
}
on (release) {
_root.vysvetli("");
_parent.tuhost = _root.naklad;
_parent.let(_parent.p0.cislo, 3, true);
}
Symbol 296 MovieClip Frame 1
function ukazCeny() {
zbraneCenaS = "Weapons: " + p.cena[1];
technikaCenaS = "Technics: " + p.cena[2];
potravCenaS = "Resources: " + p.cena[3];
}
function nastavJmeno() {
jmeno = p.jmeno;
}
function rec() {
_parent.urciNebezpeci(_root.konecna, p.cislo, false);
var _local5 = _parent;
var _local6;
var _local3;
var _local4;
var _local7;
switch (_local5.tuhost) {
case 1 :
case 2 :
_local3 = "Easy way";
break;
case 3 :
case 4 :
_local3 = "Skirmish";
break;
case 5 :
case 6 :
_local3 = "Gunplay";
break;
case 7 :
case 8 :
_local3 = "Battle";
break;
case 9 :
case 10 :
case 11 :
case 12 :
_local3 = "Slaughter";
break;
default :
_local3 = "Suicide";
}
switch (_local5.iq) {
case 0 :
_local4 = "Asteroid wave";
break;
case 1 :
case 2 :
case 3 :
_local4 = "Mostly a-roids";
break;
case 4 :
case 5 :
case 6 :
_local4 = "A-roids & ships";
break;
case 7 :
case 8 :
_local4 = "Mostly ships";
break;
default :
_local4 = "Fleet";
}
_local6 = (_local3 + newline) + _local4;
return(_local6);
}
stop();
Symbol 296 MovieClip Frame 2
Symbol 296 MovieClip Frame 7
stop();
Symbol 296 MovieClip Frame 8
planeta.gotoAndStop(p.rasa + 1);
if (_root.mesice[p.cislo]) {
mesic._visible = true;
} else {
mesic._visible = false;
}
nastavJmeno();
cislo = p.cislo;
_parent.diskVolby.gotoAndStop(1);
Symbol 296 MovieClip Frame 11
Symbol 296 MovieClip Frame 12
stop();
Symbol 296 MovieClip Frame 17
ukazCeny();
_parent.help.gotoAndStop(2);
Symbol 296 MovieClip Frame 19
stop();
Symbol 296 MovieClip Frame 20
planeta.gotoAndStop(p.rasa + 1);
nastavJmeno();
cislo = p.cislo;
Symbol 296 MovieClip Frame 24
stop();
Symbol 296 MovieClip Frame 29
ukazCeny();
_parent.help.gotoAndStop(3);
Instance of Symbol 266 MovieClip "k3" in Symbol 296 MovieClip Frame 29
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "k1" in Symbol 296 MovieClip Frame 29
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "k2" in Symbol 296 MovieClip Frame 29
onClipEvent (load) {
_visible = false;
}
Symbol 296 MovieClip Frame 31
stop();
Symbol 296 MovieClip Frame 33
s = rec();
stop();
Symbol 296 MovieClip Frame 34
cislo = p.cislo;
Symbol 296 MovieClip Frame 35
if (p.znalost) {
jmeno = "To " + p.jmeno;
} else {
jmeno = "Unknown way";
}
Symbol 296 MovieClip Frame 36
stop();
Symbol 296 MovieClip Frame 38
stop();
Instance of Symbol 266 MovieClip "k3" in Symbol 296 MovieClip Frame 39
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "k1" in Symbol 296 MovieClip Frame 39
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "k2" in Symbol 296 MovieClip Frame 39
onClipEvent (load) {
_visible = false;
}
Symbol 296 MovieClip Frame 40
s = rec();
if (_parent.planety[p.cislo].znalost) {
planeta._visible = true;
planeta.gotoAndStop(p.rasa + 1);
} else {
planeta._visible = false;
}
stop();
Symbol 296 MovieClip Frame 42
stop();
Symbol 296 MovieClip Frame 47
switch (_root.naklad) {
case 1 :
case 2 :
nakladStr = "Tiny cargo";
break;
case 3 :
case 4 :
nakladStr = "Small cargo";
break;
case 5 :
case 6 :
nakladStr = "Medium cargo";
break;
case 7 :
case 8 :
nakladStr = "Heavy cargo";
break;
default :
nakladStr = "Maximum cargo";
}
stop();
Symbol 299 MovieClip Frame 1
function objevSe(kolik) {
pozice = kolik;
}
stop();
Symbol 299 MovieClip Frame 47
gotoAndPlay ("orbit");
Symbol 312 Button
on (release) {
gotoAndStop (1);
_visible = false;
_root.help = false;
}
Symbol 315 MovieClip Frame 1
stop();
Symbol 316 Button
on (rollOver) {
_root.vysvetli(("Ship armor status is " + stavZivotu) + "%.");
}
on (rollOut) {
_root.vysvetli("");
}
on (release) {
_root.testujPancir(true);
}
Symbol 317 Button
on (rollOver) {
_root.vysvetli(("Ship battery status is " + stavBaterie) + "%.");
}
on (rollOut) {
_root.vysvetli("");
}
on (release) {
_root.testujBaterii(true);
}
Symbol 318 MovieClip Frame 1
stop();
Symbol 325 Button
on (rollOver) {
_root.vysvetli(("You have " + _root.prachy) + " cosmo. Trade?");
}
on (rollOut) {
_root.vysvetli("");
}
on (release) {
_root.zapletka.testuj(1);
_parent.viditelnostPlanet(false);
zvoleno = true;
}
Symbol 329 Button
on (rollOver) {
_parent.ukaz(4, cislo);
}
on (rollOut) {
_parent.ukaz(0, cislo);
}
on (release) {
_parent.interpretujButon(cislo * poradi(4));
}
Symbol 330 Button
on (rollOver) {
_parent.ukaz(3, cislo);
}
on (rollOut) {
_parent.ukaz(0, cislo);
}
on (release) {
_parent.interpretujButon(cislo * poradi(3));
}
Symbol 331 Button
on (rollOver) {
_parent.ukaz(2, cislo);
}
on (rollOut) {
_parent.ukaz(0, cislo);
}
on (release) {
_parent.interpretujButon(cislo * poradi(2));
}
Symbol 332 Button
on (rollOver) {
_parent.ukaz(5, cislo);
}
on (rollOut) {
_parent.ukaz(0, cislo);
}
on (release) {
_parent.interpretujButon(cislo * poradi(5));
}
Symbol 333 Button
on (rollOver) {
_parent.ukaz(6, cislo);
}
on (rollOut) {
_parent.ukaz(0, cislo);
}
on (release) {
_parent.interpretujButon(cislo * poradi(6));
}
Symbol 334 Button
on (rollOver) {
_parent.ukaz(1, cislo);
}
on (rollOut) {
_parent.ukaz(0, cislo);
}
on (release) {
_parent.interpretujButon(cislo * poradi(1));
}
Symbol 335 Button
on (release) {
posunSe(1);
_parent.zobrazSeznam(cislo);
}
Symbol 336 Button
on (release) {
posunSe(-1);
_parent.zobrazSeznam(cislo);
}
Symbol 346 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 1
function poradi(inde) {
var _local2 = inde + this.ofset;
if (_local2 < pole.length) {
return(_local2);
}
return((_local2 - pole.length) + 1);
}
function posunSe(kolik) {
this.ofset = this.ofset + kolik;
if (this.ofset >= (pole.length - 1)) {
this.ofset = this.ofset - (pole.length - 1);
}
if (this.ofset < 0) {
this.ofset = this.ofset + (pole.length - 1);
}
}
Symbol 354 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.zvoleno = false;
}
Instance of Symbol 266 MovieClip "k3" in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "k1" in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "k2" in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 266 MovieClip "k3" in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "k1" in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "k2" in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 266 MovieClip "k3" in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "k1" in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "k2" in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 360 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 1
var x;
x = 0;
while (x < 3) {
this["jmeno" + x] = _root.system["p" + x].p.jmeno;
this["zbraneCena" + x] = _root.system["p" + x].p.cena[1];
this["technikaCena" + x] = _root.system["p" + x].p.cena[2];
this["potravCena" + x] = _root.system["p" + x].p.cena[3];
x++;
}
Symbol 389 MovieClip Frame 2
stop();
Symbol 389 MovieClip Frame 7
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 1
opak = 2;
stop();
Symbol 436 MovieClip Frame 7
opak--;
if (opak) {
gotoAndPlay (2);
}
Symbol 438 MovieClip Frame 1
function mrkni() {
mim.o1.play();
mim.o2.play();
}
function kousni() {
mim.k1.play();
mim.k2.play();
}
function tykej() {
mim.t1.play();
mim.t2.play();
}
this.onEnterFrame = function () {
if (m < 1) {
mrkni();
m = random(200) + 1;
}
if (t < 1) {
tykej();
t = random(100) + 1;
}
m--;
t--;
};
m = 1;
t = 1;
stop();
Symbol 442 MovieClip Frame 1
function ukaz(inde, ci) {
var _local3;
if (inde == 0) {
predmet.gotoAndPlay("nic");
return(0);
}
if (ci < 0) {
_local3 = predmetyNema.poradi(inde);
if (!_parent.kramek[_local3]) {
predmet.gotoAndPlay("nic");
} else {
predmet.gotoAndPlay("neco");
}
predmet.popis = _root.popisyPredmetu[_parent.kramek[_local3]];
predmet.cena = rekniCenu(-_local3, true);
predmet.stav = "";
predmet.typ = "type: " + _root.jmenoTypu[_root.predmety[_parent.kramek[_local3]].skupina];
predmet.textik = _root.predmety[_parent.kramek[_local3]].jmeno;
predmet.predmet.gotoAndStop(_parent.kramek[_local3] + 1);
} else {
_local3 = predmetyMa.poradi(inde);
if (!_root.majetek[_local3].cislo) {
predmet.gotoAndPlay("nic");
} else {
predmet.gotoAndPlay("neco");
}
predmet.popis = _root.popisyPredmetu[_root.majetek[_local3].cislo];
predmet.cena = rekniCenu(_local3, true);
predmet.stav = _root.majetek[_local3].stav + "%";
predmet.typ = "type: " + _root.jmenoTypu[_root.predmety[_root.majetek[_local3].cislo].skupina];
predmet.textik = _root.predmety[_root.majetek[_local3].cislo].jmeno;
predmet.predmet.gotoAndStop(_root.majetek[_local3].cislo + 1);
}
}
function hlaska(kdo, co) {
this["kecy" + kdo].textik = co;
if (kdo == 2) {
mimoza.kousni();
}
this["kecy" + kdo].gotoAndPlay(2);
}
function rekniCenu(index, hlasit) {
var _local3;
if (!index) {
return(0);
}
if (index < 0) {
_local3 = _parent.ohodnot(_root.system.planety[_root.konecna], _parent.kramek[-index], 100);
} else {
_local3 = _parent.ohodnot(_root.system.planety[_root.konecna], _root.majetek[index].cislo, _root.majetek[index].stav);
}
if (hlasit && (_local3 > 0)) {
if (index < 0) {
hlaska(2, ("Buy\nfor " + _local3) + "?");
} else {
hlaska(2, ("I give " + _local3) + ".\nOK?");
}
}
return(_local3);
}
function zobrazSeznam(kolik) {
var _local1;
var _local3;
var _local2;
if (kolik == 1) {
_local2 = predmetyMa;
} else {
_local2 = predmetyNema;
}
_local1 = 1;
while (_local1 <= 6) {
if (kolik == 1) {
_local3 = _local2.pole[_local2.poradi(_local1)].cislo;
} else {
_local3 = _local2.pole[_local2.poradi(_local1)];
}
_local2["p" + _local1].p.gotoAndStop(_local3 + 1);
_local1++;
}
}
function inic() {
zobrazSeznam(1);
zobrazSeznam(-1);
}
function interpretujButon(index) {
if (!index) {
return(0);
}
var _local3;
if (index < 0) {
_local3 = -index;
var _local5 = _parent.kup(_local3, rekniCenu(-_local3, false), predmetyNema.ofset);
switch (_local5) {
case -1 :
hlaska(1, "Oops,\nno money.");
break;
case -2 :
hlaska(1, "Oops,\nno room.");
break;
case -7 :
_root.hodHlasku(3, "We already have one external armour!", "", 5);
break;
case 7 :
_root.hodHlasku(3, "I have installed the armour to the ship body.", "", 5);
break;
case -8 :
_root.hodHlasku(3, "We already have one external accumulator!", "", 5);
break;
case 8 :
_root.hodHlasku(3, "I have installed the accumulator to the ship body.", "", 5);
}
if (_local5 > 0) {
hlaska(1, "Here's your dust!");
}
} else {
_local3 = index;
var _local5 = _parent.prodej(_local3, rekniCenu(_local3, false));
if (!_local5) {
hlaska(2, "No, I'll not buy it!");
}
}
zobrazSeznam(1);
}
_parent.viditelnostPlanet(true);
_parent.diskVolby._visible = true;
stop();
Instance of Symbol 353 MovieClip "predmetyMa" in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
pole = _root.majetek;
cislo = 1;
ofset = 0;
}
Instance of Symbol 353 MovieClip "predmetyNema" in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
pole = _root.system.kramek;
cislo = -1;
ofset = 0;
}
Instance of Symbol 360 MovieClip in Symbol 442 MovieClip Frame 1
/* no clip actions */
Symbol 442 MovieClip Frame 2
mimoza.gotoAndStop(_root.rasy[_root.konecna]);
_parent.diskVolby._visible = false;
Symbol 442 MovieClip Frame 3
Instance of Symbol 353 MovieClip "predmetyMa" in Symbol 442 MovieClip Frame 4
onClipEvent (load) {
pole = _root.majetek;
cislo = 1;
ofset = 0;
}
Instance of Symbol 353 MovieClip "predmetyNema" in Symbol 442 MovieClip Frame 4
onClipEvent (load) {
pole = _root.system.kramek;
cislo = -1;
ofset = 0;
}
Instance of Symbol 360 MovieClip in Symbol 442 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 353 MovieClip "predmetyMa" in Symbol 442 MovieClip Frame 7
onClipEvent (load) {
pole = _root.majetek;
cislo = 1;
ofset = 0;
}
Instance of Symbol 353 MovieClip "predmetyNema" in Symbol 442 MovieClip Frame 7
onClipEvent (load) {
pole = _root.system.kramek;
cislo = -1;
ofset = 0;
}
Instance of Symbol 360 MovieClip in Symbol 442 MovieClip Frame 7
/* no clip actions */
Symbol 442 MovieClip Frame 12
Instance of Symbol 353 MovieClip "predmetyMa" in Symbol 442 MovieClip Frame 12
onClipEvent (load) {
pole = _root.majetek;
cislo = 1;
ofset = 0;
}
Instance of Symbol 353 MovieClip "predmetyNema" in Symbol 442 MovieClip Frame 12
onClipEvent (load) {
pole = _root.system.kramek;
cislo = -1;
ofset = 0;
}
Instance of Symbol 360 MovieClip in Symbol 442 MovieClip Frame 12
/* no clip actions */
Symbol 442 MovieClip Frame 15
inic();
predmet.gotoAndPlay("nic");
kecy1.ramecek.gotoAndStop(2);
stop();
Symbol 443 Button
on (rollOver) {
_parent.p1.gotoAndStop("planeta2");
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 445 Button
on (rollOver) {
if (_root.smiUlozit) {
_root.vysvetli(("Save the game ( " + _root.smiUlozit) + " savings left)");
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
on (rollOut) {
_root.vysvetli("");
gotoAndStop (1);
}
on (release) {
var s = _root.sejv();
_root.hodHlasku(2, "Copy the save code: " + s, "OK");
}
Symbol 446 Button
on (rollOver) {
_root.vysvetli("Return to main menu?");
gotoAndStop (4);
}
on (rollOut) {
_root.vysvetli("");
gotoAndStop (1);
}
on (release) {
_root.vysvetli("");
_root.gotoAndPlay("menu");
}
Symbol 451 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 1
function nahodneJmeno() {
var _local6 = pseudo(6) + 3;
var _local4;
var _local1;
var _local5;
var _local3;
var _local2 = "";
if (pseudo(2)) {
_local2 = _local2 + samohl.charAt(pseudo(samohl.length));
_local2 = _local2.toUpperCase();
_local1 = 2;
} else {
_local2 = _local2 + souhl.charAt(pseudo(souhl.length));
_local2 = _local2.toUpperCase();
}
_local4 = 2;
while (_local4 <= _local6) {
_local5 = pseudo(3) + _local1;
if (_local5 <= 1) {
_local2 = _local2 + samohl.charAt(pseudo(samohl.length));
_local1 = 2;
} else {
_local3 = pseudo(souhl.length);
_local2 = _local2 + souhl.charAt(_local3);
_local1 = _local1 - 2;
if (_local3 >= (souhl.length - 2)) {
_local1 = _local1 - 2;
}
}
_local4++;
}
return(_local2);
}
function Planeta(cislo) {
this.cislo = cislo;
this.jmeno = nahodneJmeno();
this.popul = pseudo(11);
this.cena = new Array(4);
this.nabidka = new Array(4);
this.rasa = _parent.rasy[cislo];
var _local3;
this.cena[0] = 1;
_local3 = 1;
while (_local3 <= 3) {
if (this.rasa == _local3) {
this.cena[_local3] = 1 + pseudo(5);
this.nabidka[_local3] = 2;
} else {
this.nabidka[_local3] = pseudo(6) + 1;
if (nabidka[_local3] == 2) {
nabidka[_local3] = 3;
}
if (nabidka[_local3] == 5) {
nabidka[_local3] = 6;
}
nabidka[_local3] = Math.floor(nabidka[_local3] / 3);
if (this.nabidka[_local3] == 0) {
this.cena[_local3] = 0;
} else {
this.cena[_local3] = Math.round(((pseudo(10) + pseudo(10)) + 2) / 2);
}
}
_local3++;
}
znalost = 0;
}
function stvorSvet() {
objevenaDira = 0;
x = 1;
while (x <= 16) {
planety[x] = new Planeta(x);
x++;
}
poplachy = new Array(0, 0, 0);
p0.znalost = 1;
p0.gotoAndPlay("zvyraz2");
}
function viditelnostPlanet(jaka) {
var _local3;
_local3 = 0;
while (_local3 < 5) {
if (this["p" + _local3].cislo > 0) {
this["p" + _local3]._visible = jaka;
} else {
this["p" + _local3]._visible = false;
}
_local3++;
}
_local3 = 1;
while (_local3 < 3) {
this["n" + _local3]._visible = jaka;
_local3++;
}
if (!jaka) {
help._visible = false;
} else {
help._visible = _root.help;
}
}
function ukazStavy() {
stavZivotu = Math.round((_root.zivoty / _root.maxZiv) * 100);
stavBaterie = Math.round((_root.baterie / _root.maxBat) * 100);
}
function uzpusobCeny() {
var _local2;
var _local4;
var _local1;
var _local3;
_local2 = 1;
while (_local2 <= planet) {
_local4 = 1;
while (_local4 <= 1) {
_local3 = soused(_local2, _local4);
_local1 = 1;
while (_local1 <= 3) {
if (planety[_local2].cena[_local1] < planety[_local3].cena[_local1]) {
if (planety[_local2].cena[_local1] > 3) {
planety[_local3].cena[_local1]--;
} else {
planety[_local2].cena[_local1]++;
}
} else {
planety[_local3].cena[_local1]++;
}
_local1++;
}
_local4++;
}
_local2++;
}
}
function dodavkaZbozi(kde) {
x = 0;
while (x <= zasob) {
kramek[x] = 0;
x++;
}
if (kde) {
k = kde;
} else {
k = planety[lod.pozice];
}
x = 1;
if (k.nabidka[1]) {
kramek[x] = 1;
x++;
}
if (k.nabidka[1] > 1) {
var _local2 = random(2) + 2;
var _local1 = random(2) + 2;
kramek[x] = _local2;
x++;
if (_local1 != _local2) {
kramek[x] = _local1;
x++;
}
kramek[x] = 7;
x++;
}
if (k.nabidka[2]) {
kramek[x] = 4;
x++;
if (random(5)) {
kramek[x] = 5;
x++;
}
}
if (k.nabidka[2] > 1) {
kramek[x] = 8;
x++;
}
if (k.nabidka[3]) {
kramek[x] = 6;
x++;
}
if (k.cislo == 8) {
kramek[x] = 9;
x++;
} else {
kramek[x] = 0;
x++;
}
}
function ohodnot(p, cislo, stav) {
if (!cislo) {
return(0);
}
var _local5 = _parent.predmety[cislo].cena;
var _local4 = p.cena[_parent.predmety[cislo].skupina];
var _local2;
_local2 = ((_local5 * _local4) * stav) / 100;
if (_local2 < 1) {
_local2 = 1;
}
return(Math.round(_local2));
}
function kup(cislo, cena, kam) {
var _local3;
if (_parent.prachy < cena) {
return(-1);
}
if (_root.predmety[kramek[cislo]].cislo == 7) {
if (_parent.maxZiv > 220) {
return(-7);
}
_parent.zivoty = _parent.zivoty + 180;
_parent.maxZiv = _parent.maxZiv + 180;
_parent.prachy = _parent.prachy - cena;
return(7);
}
if (_root.predmety[kramek[cislo]].cislo == 8) {
if (_parent.maxBat > 1000) {
return(-8);
}
_parent.baterie = _parent.baterie + 550;
_parent.maxBat = _parent.maxBat + 550;
_parent.prachy = _parent.prachy - cena;
return(8);
}
if (_parent.predmetu() >= _parent.maxPredmetu) {
return(-2);
}
_local3 = 1;
while (_local3 <= _parent.maxPredmetu) {
if (!_parent.majetek[_local3].cislo) {
break;
}
_local3++;
}
_parent.majetek[_local3].cislo = kramek[cislo];
_parent.majetek[_local3].stav = 100;
_parent.prachy = _parent.prachy - cena;
switch (_root.predmety[kramek[cislo]].cislo) {
case 4 :
_root.testujBaterii(false);
return(4);
case 5 :
_root.testujPancir(false);
return(5);
case 9 :
_root.zapletka.stavy[3] = 2;
_parent.zapletka.testuj(0);
return(1);
}
return(1);
}
function prodej(index, cena) {
if (!_parent.majetek[index].cislo) {
return(0);
}
if (_parent.majetek[index].cislo == 9) {
return(0);
}
_parent.majetek[index].cislo = 0;
_parent.majetek[index].stav = 0;
_parent.prachy = _parent.prachy + cena;
obchod.plesk2.play();
_root.vyhod(index);
return(1);
}
function soused(pl, cis) {
min0 = 1;
max0 = _parent.systemy[0];
min1 = _parent.systemy[0] + 1;
max1 = _parent.systemy[1];
min2 = _parent.systemy[1] + 1;
max2 = _parent.systemy[2];
var _local3 = 0;
var _local5 = 0;
while ((pl > _parent.systemy[_local3]) && (_local3 < 3)) {
_local3++;
}
if (cis <= 1) {
if (pl < this["max" + _local3]) {
_local5 = pl + 1;
} else {
_local5 = this["min" + _local3];
}
}
if (cis == 2) {
if (pl > this["min" + _local3]) {
_local5 = pl - 1;
} else {
_local5 = this["max" + _local3];
}
}
if (cis == 3) {
if (pl == this["max" + _local3]) {
_local5 = pl + 1;
} else {
_local5 = 0;
}
if (objevenaDira < (_local3 + 1)) {
_local5 = _local5 * -1;
}
}
if (cis == 4) {
if ((pl == this["min" + _local3]) && (_local3 > 0)) {
_local5 = pl - 1;
} else {
_local5 = 0;
}
}
if (_local5 == pl) {
_local5 = 0;
}
return(_local5);
}
function ukazZname() {
var _local5 = lod.pozice;
p0.cislo = _local5;
p0.p = planety[_local5];
p0.gotoAndPlay("planeta3");
var _local3;
var _local4;
_local4 = 1;
while (_local4 <= 4) {
_local3 = this["p" + _local4];
_local3.cislo = soused(_local5, _local4);
if (_local3.cislo == _local5) {
_local3.cislo = 0;
}
if (_local3.cislo > 0) {
_local3._visible = true;
_local3.p = planety[_local3.cislo];
if (_local4 > 2) {
_local3.gotoAndPlay("cesta");
} else {
_local3.gotoAndPlay("planeta2");
}
} else {
_local3._visible = false;
}
_local4++;
}
if ((_root.konecna > 1) && (!random(4))) {
_root.naklad = random(10) + 1;
if (random(2)) {
n1._visible = true;
n1.gotoAndPlay("konvoj");
n2.gotoAndStop(1);
n2._visible = false;
} else {
n2._visible = true;
n2.gotoAndPlay("konvoj");
n1.gotoAndStop(1);
n1._visible = false;
}
} else {
_root.naklad = 0;
n1.gotoAndStop(1);
n2.gotoAndStop(1);
n1._visible = false;
n2._visible = false;
}
}
function ukazPopis(kolik) {
_root.cedulka.p = this["p" + kolik];
_root.cedulka.gotoAndPlay("planeta");
}
function zvedniPoplach(x) {
var _local2;
_local2 = 0;
while (_local2 < 3) {
if (_local2 == x) {
this.poplachy[_local2]++;
} else if (this.poplachy[_local2] > 0) {
this.poplachy[_local2]--;
}
_local2++;
}
}
function urciNebezpeci(zac, konec, ukazat) {
var _local4 = 0;
var _local8;
_local4 = _parent.urciSystem(konec);
this.tuhost = ((2 * _local4) + 1) + this.poplachy[_local4];
if (this.tuhost > 30) {
this.tuhost = 30;
}
if (_parent.urciSystem(zac) != _local4) {
this.delka = 4;
} else {
this.delka = 2;
}
this.iq = (zac + konec) % 10;
this.typ = 1;
if (ukazat) {
_root.cedulka.gotoAndPlay("cesta2");
}
}
function letJako(konec) {
obchod.gotoAndStop(1);
var _local2 = _parent.urciSystem(konec);
zvedniPoplach(_local2);
_parent.konecna = konec;
gotoAndPlay (2);
}
function let(konec, typLetu, fakt) {
if (!fakt) {
letJako(konec);
} else {
var _local4;
if (typLetu == 1) {
_local4 = 20;
} else if ((typLetu == 2) || (typLetu == 5)) {
_local4 = 140;
} else {
_local4 = 10;
}
if (!_parent.seberProcenta(6, _local4, false)) {
_root.hodHlasku(2, ("At least " + _local4) + "% resources needed to fly there!");
return(0);
}
_parent.seberProcenta(6, _local4, true);
if (konec) {
var _local8 = _parent.urciSystem(konec);
zvedniPoplach(_local8);
_root.denPoradi++;
}
var _local7 = _parent.urciSystem(_parent.konecna);
if (_local7 != _local8) {
_root.denPoradi = _root.denPoradi + 6;
this.poplachy[_local7]++;
}
obchod.gotoAndStop(1);
_root.iq = this.iq;
this.typ = typLetu;
_root.typ = this.typ;
_root.delka = this.delka;
_root.tuhost = this.tuhost;
if (konec) {
_root.konecna = konec;
}
_parent.gotoAndPlay("bitka");
return(1);
}
}
function nastavSe(kolik) {
lod.objevSe(kolik);
planety[kolik].znalost = 2;
ukazZname();
dodavkaZbozi(planety[lod.pozice]);
}
function pseudo(kolik) {
var _local1 = nahoda * nahoda;
while (_local1 > 99999) {
_local1 = Math.round(_local1 / 10);
}
_local1 = _local1 % 10000;
if (_local1 == nahoda) {
_local1 = _local1 + 234;
}
nahoda = _local1;
return(Math.round((nahoda * kolik) / 10000));
}
planet = 16;
planety = new Array(planet + 1);
zasob = 8;
kramek = new Array(zasob + 1);
samohl = "aaaeeeiiyooouuu";
souhl = "bbccdfgghjkkllmmnnpprrrssttvvzz";
var x;
sranda = random(200);
nahoda = 1111 + (sranda * 5);
stvorSvet();
uzpusobCeny();
lod0._visible = false;
lod0.duplicateMovieClip("lod", 2);
stop();
Symbol 452 MovieClip Frame 2
Symbol 452 MovieClip Frame 8
ukazStavy();
help._visible = _root.help;
help.gotoAndStop(1);
Instance of Symbol 442 MovieClip "obchod" in Symbol 452 MovieClip Frame 8
onClipEvent (enterFrame) {
if (zvoleno) {
nextFrame();
} else {
prevFrame();
}
}
Symbol 452 MovieClip Frame 9
if (!_parent.zapletka.testuj(0)) {
var s = (((("Week " + _root.denPoradi) + ".\n") + "Planet ") + planety[_root.konecna].jmeno);
_root.hodHlasku(5, s);
}
Symbol 452 MovieClip Frame 10
stop();
Symbol 456 Button
on (release) {
_parent.vysledek = 1;
_parent.gotoAndStop(1);
}
Symbol 457 Button
on (release) {
_parent.vysledek = 2;
_parent.gotoAndStop(1);
}
Symbol 458 Button
on (rollOver) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (2);
}
on (release) {
_parent.vysledek = 1;
_parent.gotoAndStop(1);
}
Symbol 462 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 2
play();
Symbol 480 MovieClip Frame 3
vysledek = 0;
if (!kPotvrzeni.length) {
kPotvrzeni = "";
}
if (kPotvrzeni.length) {
butonky.gotoAndStop(1);
} else {
butonky.gotoAndStop(2);
}
gotoAndStop(kdo + 3);
Symbol 480 MovieClip Frame 4
Symbol 480 MovieClip Frame 5
Symbol 480 MovieClip Frame 6
Symbol 480 MovieClip Frame 7
Symbol 480 MovieClip Frame 8
Symbol 480 MovieClip Frame 9
mimoza.gotoAndStop(_root.rasy[_root.konecna]);
Instance of Symbol 266 MovieClip "k3" in Symbol 480 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "k1" in Symbol 480 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "k2" in Symbol 480 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 266 MovieClip "k3" in Symbol 480 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "k1" in Symbol 480 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "k2" in Symbol 480 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 266 MovieClip "k3" in Symbol 480 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "k1" in Symbol 480 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "k2" in Symbol 480 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
}
Symbol 480 MovieClip Frame 17
mim.play();
Symbol 482 MovieClip Frame 1
_parent.zatmeni._visible = false;
stop();
Instance of Symbol 480 MovieClip "hlaska" in Symbol 482 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this._currentframe > 1) && (doba)) {
doba--;
if (!doba) {
gotoAndStop (1);
}
}
}
Symbol 482 MovieClip Frame 2
_parent.zatmeni._visible = true;
p = 1;
c = cisloDialogu;
Symbol 482 MovieClip Frame 4
Symbol 482 MovieClip Frame 5
var nu = Number(_root[(("mluvci" + c) + "_") + p]);
_parent.hodHlasku(nu, _root[(("hlaska" + c) + "_") + p]);
Symbol 482 MovieClip Frame 7
if (!hlaska.vysledek) {
prevFrame();
play();
}
Symbol 482 MovieClip Frame 8
p++;
if (!c) {
gotoAndStop (1);
} else if (!_root[(("hlaska" + c) + "_") + p].length) {
_parent.zapletka.testuj(0);
gotoAndStop (1);
} else {
gotoAndPlay ("dalsi");
}
Symbol 483 MovieClip Frame 10
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 497 Button
on (release) {
zapletka.testuj(0);
hlasky.gotoAndStop(1);
}
Symbol 500 MovieClip Frame 10
stop();
Symbol 503 MovieClip Frame 1
gotoAndStop(_parent.typ);
Symbol 504 MovieClip Frame 223
_parent.obnovHvezdu(this);
Symbol 509 MovieClip Frame 1
Symbol 509 MovieClip Frame 10
stop();
Symbol 510 MovieClip Frame 28
gotoAndPlay (1);
Symbol 510 MovieClip Frame 30
gotoAndPlay (1);
Symbol 510 MovieClip Frame 31
_root.vybuch2.start();
vybuch._rotation = _parent._parent._rotation;
Symbol 510 MovieClip Frame 52
_parent._parent._parent.odstran(_parent._parent);
stop();
Symbol 524 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 5
stop();
Symbol 524 MovieClip Frame 6
stop();
Symbol 524 MovieClip Frame 7
stop();
Symbol 524 MovieClip Frame 8
stop();
Symbol 530 MovieClip Frame 28
gotoAndPlay (1);
Symbol 530 MovieClip Frame 32
gotoAndPlay (1);
Symbol 530 MovieClip Frame 41
gotoAndPlay (1);
Symbol 530 MovieClip Frame 42
_root.vybuch2.start();
vybuch._rotation = _parent._parent._rotation;
Symbol 530 MovieClip Frame 54
_parent._parent._parent.odstran(_parent._parent);
stop();
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 3
cerv.drzka._visible = true;
Symbol 539 MovieClip Frame 7
cerv.drzka._visible = false;
Symbol 540 MovieClip Frame 28
gotoAndPlay (1);
Symbol 540 MovieClip Frame 32
gotoAndPlay (1);
Symbol 540 MovieClip Frame 41
gotoAndPlay (1);
Symbol 540 MovieClip Frame 42
_root.vybuch2.start();
vybuch._rotation = _parent._parent._rotation;
Symbol 540 MovieClip Frame 54
_parent._parent._parent.odstran(_parent._parent);
stop();
Symbol 543 MovieClip Frame 28
gotoAndPlay (1);
Symbol 543 MovieClip Frame 30
gotoAndPlay (1);
Symbol 543 MovieClip Frame 31
_parent._parent._parent.vybuch2.start();
vybuch._rotation = _parent._parent._rotation;
Symbol 543 MovieClip Frame 43
_parent._parent._parent.odstran(_parent._parent);
stop();
Symbol 546 MovieClip Frame 28
gotoAndPlay (1);
Symbol 546 MovieClip Frame 30
gotoAndPlay (1);
Symbol 546 MovieClip Frame 31
_parent._parent._parent.vybuch2.start();
vybuch._rotation = _parent._parent._rotation;
Symbol 546 MovieClip Frame 43
_parent._parent._parent.odstran(_parent._parent);
stop();
Symbol 547 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 2
Symbol 547 MovieClip Frame 3
Symbol 547 MovieClip Frame 4
Symbol 547 MovieClip Frame 5
objekt.ufo.gotoAndStop(2);
Symbol 547 MovieClip Frame 6
objekt.ufo.gotoAndStop(3);
Symbol 547 MovieClip Frame 7
objekt.ufo.gotoAndStop(4);
Symbol 547 MovieClip Frame 9
objekt.ufo.gotoAndStop(2);
Symbol 547 MovieClip Frame 10
objekt.ufo.gotoAndStop(3);
Symbol 547 MovieClip Frame 14
Symbol 547 MovieClip Frame 15
objekt.ufo.gotoAndStop(2);
Symbol 547 MovieClip Frame 16
objekt.ufo.gotoAndStop(3);
Symbol 547 MovieClip Frame 17
manevr = 6;
cena = 0;
navrat = 8;
typBonusu = 1;
bonus = 100;
Symbol 547 MovieClip Frame 18
manevr = 6;
cena = 0;
navrat = 8;
typBonusu = 2;
bonus = 2;
Symbol 548 MovieClip Frame 1
function vybuchni() {
_root.kily++;
m.objekt.gotoAndPlay("vybuch");
}
function zasahni(kolik) {
m.objekt.gotoAndPlay("zasah");
}
function vystrel() {
m.objekt.gotoAndPlay("vystrel");
}
function getZivoty() {
return(zivoty);
}
function getTypStrely() {
return(_parent._parent.typyObjektu[typ].typStrely);
}
function getHustotuPalby() {
return(_parent._parent.typyObjektu[typ].hustotaPalby);
}
function getNavrat() {
return(_parent._parent.typyObjektu[typ].navrat);
}
function getManevr() {
return(_parent._parent.typyObjektu[typ].manevr);
}
function getCenu() {
return(_parent._parent.typyObjektu[typ].cena);
}
function getSilu() {
return(_parent._parent.typyObjektu[typ].sila);
}
function getBarvu() {
return(_parent._parent.typyObjektu[typ].barva);
}
kolize = 0;
if (rychlost < 0) {
_parent.domu(this);
}
Symbol 548 MovieClip Frame 2
if (rychlost < 0) {
_parent.domu(this);
m.objekt.ufo.gotoAndStop(getBarvu());
m.objekt.posadka._visible = true;
}
Symbol 548 MovieClip Frame 45
if (typ > 9) {
prevFrame();
play();
}
Symbol 548 MovieClip Frame 59
kolize = 0;
Symbol 548 MovieClip Frame 60
kolize = 1;
Symbol 548 MovieClip Frame 68
kolize = 1;
Symbol 548 MovieClip Frame 69
kolize = 0;
Symbol 548 MovieClip Frame 78
navrat = 0;
Symbol 548 MovieClip Frame 79
navrat = getNavrat() - random(10);
if (navrat < 0) {
navrat = 0;
}
if (navrat) {
m.objekt.ufo.gotoAndStop(getBarvu() + 4);
m.objekt.posadka._visible = false;
}
Symbol 548 MovieClip Frame 80
Symbol 548 MovieClip Frame 85
rychlost = 1;
Symbol 548 MovieClip Frame 86
_parent.objektu--;
_parent.odstran(this);
Symbol 550 MovieClip Frame 1
gotoAndStop(_parent.typ);
Symbol 550 MovieClip Frame 2
_parent.typ = 1;
Symbol 550 MovieClip Frame 3
_parent.typ = 2;
Symbol 550 MovieClip Frame 4
_parent.typ = 3;
Symbol 551 MovieClip Frame 1
Symbol 551 MovieClip Frame 2
_root.strela1.start();
Symbol 551 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 552 MovieClip Frame 22
this.removeMovieClip();
stop();
Instance of Symbol 266 MovieClip "k3" in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "k1" in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "k2" in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 554 MovieClip Frame 7
stop();
Symbol 555 MovieClip Frame 9
stop();
Symbol 556 MovieClip Frame 9
gotoAndPlay (1);
Symbol 556 MovieClip Frame 10
_root.zasah1.start();
Symbol 556 MovieClip Frame 18
gotoAndPlay (1);
Symbol 556 MovieClip Frame 19
_root.vybuch2.start();
Symbol 556 MovieClip Frame 29
_parent._visible = false;
_parent.removeMovieClip();
stop();
Symbol 557 MovieClip Frame 1
function zasahni(sila) {
objekt.gotoAndPlay("zasah");
}
function vybuchni() {
objekt.gotoAndPlay("vybuch");
}
function maKanon(kolik) {
if ((kolik < 1) || (kolik > 3)) {
return(0);
}
var _local2;
_local2 = 1;
while (_local2 <= _root.maxPredmetu) {
if (_root.majetek[_local2].cislo == kolik) {
return(_local2);
}
_local2++;
}
return(0);
}
kanon = new Array(2, 1, 1, 1);
stop();
Symbol 557 MovieClip Frame 9
_parent._parent.play();
stop();
Symbol 559 MovieClip Frame 1
stop();
Symbol 559 MovieClip Frame 33
gotoAndPlay (2);
Symbol 560 MovieClip Frame 1
function zpracujKlavesy() {
if (lod.zivoty <= 0) {
return(0);
}
if (Key.isDown(37)) {
zrychliBocni(1);
}
if (Key.isDown(39)) {
zrychliBocni(-1);
}
if (Key.isDown(32)) {
if (lod.baterie > 0) {
vystrel();
}
}
if (_root.buh) {
if (Key.isDown(13)) {
var _local3;
_local3 = 1;
while (_local3 <= maxObjektu) {
if (this["m" + _local3]._visible) {
this["m" + _local3].vybuchni();
}
_local3++;
}
pocetPrekazek = 0;
}
if (Key.isDown(65)) {
lod.zivoty = _root.maxZiv;
}
if (Key.isDown(66)) {
lod.baterie = _root.maxBat;
}
}
if (!dobaBlok) {
if (Key.isDown(49)) {
nastavZbran(1);
blokuj = 49;
dobaBlok = 3;
}
if (Key.isDown(50)) {
nastavZbran(2);
blokuj = 50;
dobaBlok = 3;
}
if (Key.isDown(51)) {
nastavZbran(3);
blokuj = 51;
dobaBlok = 3;
}
} else {
dobaBlok--;
}
}
function nastavZbran(kolik) {
if (!lod.maKanon(kolik)) {
return(0);
}
if (lod.kanon[kolik] == 2) {
lod.kanon[kolik] = 1;
} else {
lod.kanon[kolik] = 2;
}
_parent.tabulka.zbrane["z" + kolik].gotoAndStop(lod.kanon[kolik] + 1);
}
function urciPotvory(tuhost, delka, iq, typ) {
maxVystrelu = 8;
cisloStrely = 0;
maxProjektilu = 30;
cisloProjektilu = 0;
hvezd = 22;
cisloMeteoru = 0;
typIQ = typ;
switch (typ) {
case 3 :
specPotvora = -8;
stvorMeteor(8);
tuhost = _root.naklad;
break;
case 4 :
specPotvora = 9;
break;
case 5 :
specPotvora = 10;
break;
default :
specPotvora = 0;
}
maxObjektu = 12;
pauza = 7 - (tuhost / 2);
if (pauza < 1) {
pauza = 1;
}
pocetPrekazek = Math.round((delka + 2) * ((5 + (tuhost / 1.8)) - (iq / 2)));
if ((typIQ == 3) || (typIQ == 4)) {
iq = 10;
}
met = 100 - (iq * 10);
met1 = Math.floor(((94 - (tuhost * 9)) * met) / 100);
met2 = Math.floor(((100 - (tuhost * 5)) * met) / 100);
met3 = met;
mimo = 100 - met;
mimo1 = met + Math.floor(((94 - (tuhost * 8)) * mimo) / 100);
mimo2 = met + Math.floor(((100 - (tuhost * 4)) * mimo) / 100);
mimo3 = 100;
}
function zpracujUrovne() {
if (_parent.skore >= (uroven * 300)) {
gotoAndPlay ("uroven");
}
}
function body(s) {
_parent.skore = _parent.skore + s;
}
function novaUroven() {
uroven++;
maxObjektu = 3 + (uroven * 2);
odpocinek = 20 + Math.round(20 / uroven);
maxVystrelu = 6;
maxProjektilu = 20;
hvezd = 22;
}
function odstran(objekt) {
if (objekt.typ == (-specPotvora)) {
specPotvora = 0;
}
objekt.removeMovieClip();
if (pocetPrekazek < 1) {
if (nepratel() < 1) {
gotoAndStop ("slava");
}
}
}
function zrychliBocni(kolik) {
bocniRychlost = kolik * _parent.maxBocni;
}
function vystrel() {
k = 0;
while (k < 4) {
if (lod.kanon[k] > 1) {
var _local4 = cisloStrely + 1;
if (_local4 > maxVystrelu) {
_local4 = 1;
if (k) {
_root.seberProcenta(k, 1, true);
_root.odrovnal = _root.odrovnal + 1;
if (!lod.maKanon(k)) {
lod.kanon[k] = 1;
}
_parent.tabulka.zbrane.kontrola();
}
}
while (this["v" + _local4]._visible) {
_local4++;
if (_local4 > maxVystrelu) {
_local4 = 1;
}
if (_local4 == cisloStrely) {
return(0);
}
}
cisloStrely = _local4;
v0.duplicateMovieClip("v" + _local4, _local4);
this["v" + _local4]._x = lod._x;
this["v" + _local4]._y = lod._y;
this["v" + _local4]._rotation = lod._rotation;
this["v" + _local4].strela.gotoAndStop(k + 1);
this["v" + _local4].typ = k + 1;
this["v" + _local4]._visible = true;
this["v" + _local4].gotoAndPlay(2);
var _local5 = _parent.typyStrel[k].spotreba;
lod.baterie = lod.baterie - _local5;
if (_local5) {
_parent.tabulka.baterie.play();
}
}
k++;
}
}
function posun() {
lod._rotation = lod._rotation + bocniRychlost;
}
function protiVystrel(kdo) {
kdo.objekt.vystrel();
var _local3 = cisloProjektilu + 1;
if (_local3 > maxProjektilu) {
_local3 = 1;
}
while (this["p" + _local3]._visible) {
_local3++;
if (_local3 > maxProjektilu) {
_local3 = 1;
}
if (_local3 == cisloProjektilu) {
return(0);
}
}
cisloProjektilu = _local3;
p0.duplicateMovieClip("p" + _local3, _local3 + 2000);
this["p" + _local3]._rotation = kdo._rotation;
this["p" + _local3].typ = _parent.typyObjektu[kdo.typ].typStrely;
this["p" + _local3]._visible = true;
this["p" + _local3].gotoAndPlay(Math.round(((kdo._currentframe + 2) * (p0._totalframes - 1)) / (kdo._totalframes - 4)));
}
function koristit() {
hlaskaKorist.play();
_parent.bereKorist = true;
}
function zpracujMeteory(kolik) {
nep = nepratel() + doma.length;
if ((pocetPrekazek < 1) && (nep < 4)) {
koristit();
if ((!specPotvora) || (!nep)) {
return(-1);
}
}
if (cas > -1) {
if (zbyvaClenuTlupy < 1) {
zbyvaClenuTlupy = 4 + random(8);
cas = ((-pauza) * 10) - random(pauza * 8);
cekejteNaSmrt = 1;
} else {
zbyvaClenuTlupy--;
cas = ((-2 * pauza) - random(pauza)) + random(pauza);
}
vypustMeteor();
var _local1 = random(100);
m = 1;
if (_local1 > met1) {
m = 2;
}
if (_local1 > met2) {
m = 3;
}
if (_local1 > met3) {
m = 4;
}
if (_local1 > mimo1) {
m = 5;
if ((typIQ == 2) || (typIQ == 5)) {
m = 7;
}
}
if (_local1 > mimo2) {
m = 6;
}
if ((pocetPrekazek < 2) && (specPotvora > 0)) {
stvorMeteor(specPotvora);
} else if (pocetPrekazek > 0) {
stvorMeteor(m);
}
}
}
function zjistiKolize() {
x = 1;
while (x <= maxObjektu) {
if (this["m" + x]._visible) {
if ((this["m" + x].kolize && ((this["m" + x]._rotation - lod._rotation) > -10)) && ((this["m" + x]._rotation - lod._rotation) < 10)) {
if (!this["m" + x].m.bonus) {
zasah(lod, this["m" + x]);
} else {
vezmiBonus(this["m" + x]);
}
}
y = 1;
while (y <= maxVystrelu) {
if (this["v" + y]._visible && (this["m" + x].hitTest(this["v" + y]))) {
zasah(this["m" + x], this["v" + y]);
}
y++;
}
}
x++;
}
x = 1;
while (x <= maxProjektilu) {
if (this["p" + x]._visible && (lod.hitTest(this["p" + x]))) {
zasah(lod, this["p" + x]);
}
x++;
}
}
function zasah(terc, strela) {
if ((strela.poZasahu || (terc.poZasahu)) || (strela.getHustotuPalby())) {
return(0);
}
terc.zivoty = terc.zivoty - _parent.typyStrel[strela.typ].sila;
if (terc.zivoty <= 0) {
body(terc.m.cena);
terc.vybuchni();
terc.poZasahu = 1;
if (_parent.bereKorist) {
var _local5 = _parent.typyObjektu[terc.typ].cena;
if (_local5 > 0) {
_parent.korist = _parent.korist + _local5;
}
if (terc.typ == 8) {
_parent.korist = _parent.korist + (_root.naklad * 40);
}
trace(_parent.korist + " ");
}
} else {
terc.zasahni(strela.sila);
}
if (terc == lod) {
if (_root.god && (terc.zivoty < _root.maxZiv)) {
terc.zivoty = _root.maxZiv;
}
_parent.tabulka.zbrane.kriticak(_parent.typyStrel[strela.typ].kriticak, 25);
}
strela.poZasahu = 1;
strela.removeMovieClip();
}
function vezmiBonus(kdo) {
if (kdo.poZasahu) {
return(0);
}
switch (kdo.m.typBonusu) {
case 1 :
body(kdo.m.bonus);
break;
case 2 :
lod.zivoty = lod.zivoty + kdo.m.bonus;
if (lod.zivoty < _parent.maxZiv) {
break;
}
lod.zivoty = _parent.maxZiv;
}
kdo.vybuchni();
kdo.poZasahu++;
}
function zpracujCas() {
cas++;
if (cas > 1) {
cas = 0;
}
}
function domu(kdo) {
if ((kdo.typ == specPotvora) || (kdo.typ == (-specPotvora))) {
kdo.rychlost = 2;
kdo.navrat = false;
kdo._visible = true;
kdo.gotoAndPlay(2);
return(0);
}
doma.push(kdo);
kdo.gotoAndStop(1);
kdo.navrat = false;
kdo.rychlost = 2;
kdo._visible = false;
}
function stvorMeteor(typ) {
var _local3 = cisloMeteoru;
do {
_local3++;
if (_local3 > maxObjektu) {
_local3 = 1;
}
if (_local3 == cisloMeteoru) {
return(0);
}
} while (this["m" + _local3]._visible);
pocetPrekazek--;
cisloMeteoru = _local3;
m0.duplicateMovieClip("m" + _local3, 100 + _local3);
this["m" + _local3].typ = typ;
this["m" + _local3].m.gotoAndStop(typ);
this["m" + _local3]._rotation = random(360);
this["m" + _local3].zivoty = _parent.typyObjektu[typ].zivoty;
objektu++;
if ((typ != specPotvora) && (typ != (-specPotvora))) {
domu(this["m" + _local3]);
} else {
specPotvora = -specPotvora;
this["m" + _local3]._visible = true;
this["m" + _local3].gotoAndPlay(1);
}
}
function vypustMeteor() {
if (!doma.length) {
return(0);
}
k = doma.shift();
k._visible = true;
k.gotoAndPlay(1);
return(1);
}
function nepratel() {
var _local2 = 0;
x = 1;
while (x <= maxObjektu) {
if (this["m" + x]._visible) {
_local2++;
}
x++;
}
if (_local2 < 1) {
}
return(_local2);
}
function obnovHvezdu(h) {
var _local2;
h._visible = true;
h._rotation = random(360);
_local2 = random(100);
h._xscale = 100 + _local2;
h._yscale = 100 + _local2;
h.typ = random(h.hvezda._totalframes) + 1;
_local2 = random(h.hvezda._totalframes) + 1;
h.hvezda.gotoAndStop(_local2);
_local2 = random(h._totalframes);
h.gotoAndPlay(_local2);
}
doma = new Array();
hvezd = 22;
x = 1;
while (x < hvezd) {
h0.duplicateMovieClip("h" + x, 20 + x);
this["h" + x].stop();
this["h" + x]._visible = false;
x++;
}
lod0._visible = false;
lod0.duplicateMovieClip("lod", 1000);
zbyvaClenuTlupy = 4 + random(7);
cas = 0;
objektu = 0;
x = 1;
while (x < hvezd) {
obnovHvezdu(this["h" + x]);
x++;
}
stop();
Instance of Symbol 504 MovieClip "h0" in Symbol 560 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Instance of Symbol 548 MovieClip "m0" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
maxBocni = 5;
bocniRychlost = 0;
rychlost = 10;
navrat = 0;
kolize = 0;
posun = 0;
stop();
}
onClipEvent (enterFrame) {
var r;
if (!_visible) {
return(0);
}
if (getHustotuPalby() && (rychlost > 0)) {
r = random(getHustotuPalby());
if (r == 1) {
_parent.protiVystrel(this);
}
}
r = random(this.getManevr()) - random(this.getManevr());
bocniRychlost = bocniRychlost + (r / 10);
if (bocniRychlost > maxBocni) {
bocniRychlost = maxBocni;
}
if (bocniRychlost < (-maxBocni)) {
bocniRychlost = -maxBocni;
}
_rotation = (_rotation + bocniRychlost);
posun = posun + rychlost;
if (rychlost > 0) {
if (posun >= 10) {
posun = posun - 10;
nextFrame();
}
if (navrat > 0) {
rychlost = rychlost - 1;
}
}
if (rychlost < 0) {
if (posun <= -10) {
posun = posun + 10;
prevFrame();
}
}
if (navrat && (rychlost > -5)) {
rychlost = rychlost - 1;
}
}
Instance of Symbol 557 MovieClip "lod0" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
zivoty = _parent._parent._parent.zivoty;
baterie = _parent._parent._parent.baterie;
}
Symbol 560 MovieClip Frame 2
hrajeSe = 1;
lod0.removeMovieClip();
urciPotvory(_parent._parent.tuhost, _parent._parent.delka, _parent._parent.iq, _parent._parent.typ);
Symbol 560 MovieClip Frame 3
Symbol 560 MovieClip Frame 4
stop();
Symbol 560 MovieClip Frame 5
prevFrame();
Symbol 560 MovieClip Frame 10
stop();
Symbol 560 MovieClip Frame 11
prevFrame();
Symbol 563 MovieClip Frame 1
stav = Math.round((_parent._parent.lodVletu.lod.zivoty * 100) / _root.maxZiv) + "%";
if (stav < 0) {
stav = 0;
}
Symbol 563 MovieClip Frame 5
gotoAndPlay (1);
Symbol 566 MovieClip Frame 4
stav = Math.round((_parent._parent.lodVletu.lod.baterie * 100) / _root.maxBat) + "%";
if (stav < 0) {
stav = 0;
}
stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 2
stav = _parent.stav1 + "%";
Symbol 580 MovieClip Frame 3
stav = _parent.stav2 + "%";
Symbol 580 MovieClip Frame 4
stav = _parent.stav3 + "%";
Symbol 581 MovieClip Frame 1
stop();
Symbol 583 Button
on (rollOver) {
_parent.popisky.gotoAndStop(cislo + 1);
_parent.zbraneIkonky.gotoAndStop(cislo + 1);
}
on (rollOut) {
_parent.popisky.gotoAndStop(1);
_parent.zbraneIkonky.gotoAndStop(1);
}
on (release) {
gotoAndStop (3);
}
Symbol 586 Button
on (rollOver) {
_parent.popisky.gotoAndStop(cislo + 1);
_parent.zbraneIkonky.gotoAndStop(cislo + 1);
}
on (rollOut) {
_parent.popisky.gotoAndStop(1);
_parent.zbraneIkonky.gotoAndStop(1);
}
on (release) {
gotoAndStop (2);
}
Symbol 589 MovieClip Frame 1
gotoAndStop(_parent.k[cislo] + 1);
_parent._parent._parent.lodVletu.lod.objekt.l["k" + cislo]._visible = false;
Symbol 589 MovieClip Frame 2
_parent.k[cislo] = 1;
_parent._parent._parent.lodVletu.lod.objekt.l["k" + cislo]._visible = false;
Symbol 589 MovieClip Frame 3
_root.cvak.start();
_parent.k[cislo] = 2;
_parent._parent._parent.lodVletu.lod.objekt.l["k" + cislo]._visible = true;
Symbol 589 MovieClip Frame 4
plesk1.play();
Symbol 589 MovieClip Frame 12
gotoAndStop (2);
Symbol 592 MovieClip Frame 2
function kontrola(zacatek) {
var _local4;
x = 1;
while (x <= 3) {
_local4 = _parent._parent.lodVletu.lod.maKanon(x);
if (!_local4) {
this["z" + x]._visible = false;
this["cary" + x].gotoAndStop(1);
_parent._parent.lodVletu.lod.objekt.l["k" + x]._visible = false;
} else {
this["z" + x]._visible = true;
this["cary" + x].gotoAndStop(x + 1);
this["stav" + x] = _root.majetek[_local4].stav;
kanonu++;
}
x++;
}
if (kanonu) {
if (zacatek) {
gotoAndPlay (5);
} else {
gotoAndStop (4);
}
} else {
gotoAndStop (1);
}
}
function kriticak(procent, rozsah) {
if (random(100) > procent) {
return(0);
}
var _local5 = random(3) + 1;
var _local4;
_local4 = _local5;
while (!_parent._parent.lodVletu.lod.maKanon(_local4)) {
_local4++;
if (_local4 > 3) {
_local4 = 1;
}
if (_local4 == _local5) {
_local4 = 10;
break;
}
}
if (_local4 > 4) {
return(0);
}
_local5 = (rozsah - random(rozsah)) + random(rozsah);
_root.seberProcenta(_local4, _local5, true);
_root.odrovnal = _root.odrovnal + _local5;
this["z" + _local4].gotoAndPlay("au");
kontrola();
}
var k = _parent._parent.lodVletu.lod.kanon;
kanonu = 0;
kontrola(true);
Instance of Symbol 589 MovieClip "z1" in Symbol 592 MovieClip Frame 2
onClipEvent (load) {
this.cislo = 1;
}
Instance of Symbol 589 MovieClip "z2" in Symbol 592 MovieClip Frame 2
onClipEvent (load) {
this.cislo = 2;
}
Instance of Symbol 589 MovieClip "z3" in Symbol 592 MovieClip Frame 2
onClipEvent (load) {
this.cislo = 3;
}
Instance of Symbol 266 MovieClip "k3" in Symbol 592 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "k1" in Symbol 592 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "k2" in Symbol 592 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
}
Symbol 592 MovieClip Frame 4
stop();
Symbol 592 MovieClip Frame 25
gotoAndPlay (5);
Symbol 593 MovieClip Frame 1
stop();
Instance of Symbol 592 MovieClip "zbrane" in Symbol 593 MovieClip Frame 1
onClipEvent (enterFrame) {
if (k[3] == 2) {
k[0] = 1;
}
if (k[3] < 2) {
k[0] = 2;
}
}
Symbol 593 MovieClip Frame 3
if (zbrane._currentframe >= 5) {
zbrane.gotoAndStop(4);
}
stop();
Symbol 594 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 595 Button
on (rollOver) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 596 Button
on (rollOver) {
gotoAndStop (4);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 597 Button
on (rollOver) {
gotoAndStop (5);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 598 Button
on (rollOver) {
gotoAndStop (6);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 599 Button
on (rollOver) {
gotoAndStop (7);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 600 Button
on (rollOver) {
gotoAndStop (8);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 601 Button
on (rollOver) {
gotoAndStop (9);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 602 Button
on (rollOver) {
gotoAndStop (10);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 618 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 1
ufo1.ufo.gotoAndStop(1);
ufo2.ufo.gotoAndStop(2);
ufo3.ufo.gotoAndStop(3);
popis0 = "Crush everything what comes your way. You'll get a loot from enemies destroyed by the end of the battle!\nOK!";
switch (_root.typ) {
case 2 :
popis = "It can be your home there on the other side... So don't regret the ammo you fire nor the enemy you kill!";
break;
case 3 :
popis = "The big cargo ship should be spared for the closing of the battle to secure its wreck for the loot!";
break;
case 4 :
popis = "Rip his ass!";
break;
case 5 :
popis = "This looks like the final battle!";
break;
default :
popis = popis0;
}
nadpis.gotoAndStop(_root.typ);
stop();
Symbol 639 MovieClip Frame 1
odrovnal = Math.round(_root.odrovnal / 100);
Symbol 640 MovieClip Frame 1
maxBocni = 6;
zpomaleni = 2;
typyStrel = new Array({sila:10, spotreba:1, kriticak:0}, {sila:10, spotreba:2, kriticak:3}, {sila:20, spotreba:3, kriticak:7}, {sila:30, spotreba:3, kriticak:12});
typyObjektu = new Array({manevr:0, navrat:0, cena:0, sila:0, zivoty:0, typStrely:0, hustotaPalby:0, barva:0}, {manevr:5, navrat:5, cena:15, sila:20, zivoty:10, typStrely:0, hustotaPalby:0, barva:1}, {manevr:15, navrat:9, cena:30, sila:30, zivoty:10, typStrely:0, hustotaPalby:0, barva:2}, {manevr:10, navrat:10, cena:40, sila:30, zivoty:20, typStrely:0, hustotaPalby:0, barva:3}, {manevr:15, navrat:10, cena:80, sila:0, zivoty:30, typStrely:1, hustotaPalby:20, barva:1}, {manevr:20, navrat:10, cena:120, sila:0, zivoty:50, typStrely:2, hustotaPalby:30, barva:2}, {manevr:20, navrat:10, cena:180, sila:0, zivoty:130, typStrely:2, hustotaPalby:10, barva:3}, {manevr:35, navrat:10, cena:200, sila:0, zivoty:80, typStrely:3, hustotaPalby:20, barva:4}, {manevr:10, navrat:20, cena:100, sila:0, zivoty:90, typStrely:1, hustotaPalby:100, barva:1}, {manevr:20, navrat:20, cena:250, sila:0, zivoty:200, typStrely:3, hustotaPalby:5, barva:2}, {manevr:15, navrat:20, cena:300, sila:0, zivoty:1500, typStrely:4, hustotaPalby:10, barva:3});
bereKorist = false;
korist = 0;
konci = 0;
Instance of Symbol 560 MovieClip "lodVletu" in Symbol 640 MovieClip Frame 1
onClipEvent (load) {
v0.stop();
v0._visible = false;
m0.stop();
m0._visible = false;
e0.stop();
e0._visible = false;
h0.stop();
h0._visible = false;
p0.stop();
p0._visible = false;
hrajeSe = 0;
}
onClipEvent (enterFrame) {
if (!hrajeSe) {
return(0);
}
zpracujKlavesy();
posun(bocniRychlost);
if (bocniRychlost > 0) {
bocniRychlost = bocniRychlost - _parent.zpomaleni;
}
if (bocniRychlost < 0) {
bocniRychlost = bocniRychlost + _parent.zpomaleni;
}
zpracujCas();
if ((((zpracujMeteory(0) == -1) && (!nepratel())) && (!_parent.konci)) && (lod.zivoty > 0)) {
_parent._parent.zivoty = lod.zivoty;
_parent._parent.baterie = lod.baterie;
_parent.gotoAndPlay("konec");
}
zjistiKolize();
testujZivoty();
}
Symbol 640 MovieClip Frame 2
stop();
Symbol 640 MovieClip Frame 3
tabulka.play();
Symbol 640 MovieClip Frame 4
lodVletu.zpracujMeteory(1);
Symbol 640 MovieClip Frame 6
stop();
Symbol 640 MovieClip Frame 63
konci = 1;
if ((_root.konecna == 16) && (lodVletu.lod.zivoty > 0)) {
gotoAndPlay ("konec3");
} else {
gotoAndPlay ("konec1");
}
Symbol 640 MovieClip Frame 67
lodVletu.gotoAndPlay("konec");
Symbol 640 MovieClip Frame 71
_root.zapletka.testuj(0);
lodVletu.hlaskaKorist._visible = false;
Symbol 640 MovieClip Frame 73
if (_root.hlasky._currentframe != 1) {
prevFrame();
play();
}
Symbol 640 MovieClip Frame 74
lodVletu.lod.play();
Symbol 640 MovieClip Frame 75
stop();
Symbol 640 MovieClip Frame 84
stop();
Symbol 640 MovieClip Frame 85
konci = 1;
var cena = korist;
hlaskaKorist.stop();
if (lodVletu.lod.zivoty <= 0) {
}
if (cena) {
_parent.hodHlasku(3, ("We have secured a loot worth " + cena) + " cosmo, boss!", "", 0);
_parent.prachy = _parent.prachy + cena;
play();
} else {
gotoAndPlay ("konec2");
}
Symbol 640 MovieClip Frame 87
if (!_parent.hlasky.hlaska.vysledek) {
prevFrame();
play();
}
Symbol 640 MovieClip Frame 88
_root.hudbaPozadi.setVolume(100);
Symbol 640 MovieClip Frame 92
_root.hudbaPozadi.setVolume(50);
Symbol 640 MovieClip Frame 94
_root.naklad = 0;
_root.system.p5._visible = false;
_root.system.p6._visible = false;
Symbol 640 MovieClip Frame 95
_root.hudbaPozadi.setVolume(0);
if (lodVletu.lod.zivoty > 0) {
_parent.gotoAndPlay("dopyto");
} else {
_root.scoring();
_root.gotoAndPlay("menu");
}
Symbol 640 MovieClip Frame 96
stop();
this.removeMovieClip();
Symbol 641 Button
on (rollOver) {
_root.vysvetli("Return to main menu?");
}
on (rollOut) {
_root.vysvetli("");
}
on (release) {
_root.scoring();
gotoAndPlay ("menu");
}