Frame 1
_root.kongregateServices.connect();
stop();
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("b97fff77", this, 10301, true);
Frame 2
stop();
play();
Instance of Symbol 296 MovieClip "hlaska" in Frame 6
onClipEvent (load) {
_visible = false;
}
Frame 7
function nahodnyJmeno(delka) {
if (!delka) {
delka = 4 + random(5);
}
var _local2 = 0;
var _local3 = "";
var _local1;
if (random(3)) {
_local1 = random(souhl.length);
_local3 = _local3 + souhl[_local1];
_local2 = _local2 + souhl[_local1].length;
}
_local1 = random(samohl.length);
_local3 = _local3 + samohl[_local1];
_local2 = _local2 + samohl[_local1].length;
while (_local2 < delka) {
_local1 = random(souhl.length);
_local3 = _local3 + souhl[_local1];
_local2 = _local2 + souhl[_local1].length;
_local1 = random(samohl.length);
_local3 = _local3 + samohl[_local1];
_local2 = _local2 + samohl[_local1].length;
}
return(_local3);
}
function poznejKapitolu(inputek) {
var _local1;
_local1 = 2;
while (_local1 < heslika.length) {
if (heslika[_local1] == inputek) {
return(_local1);
}
_local1++;
}
return(0);
}
function ukazPopisek(kolik) {
if (kolik <= 0) {
texty.nadpis = "";
texty.kec = "";
} else {
texty.nadpis = _root.volebniNadpisy[kolik - 1];
texty.kec = _root.volebniKecy[kolik - 1];
}
}
function nekdoJako(n) {
n = int(n);
var _local1;
var _local4;
var _local2;
_local1 = 5;
while (_local1 < typyPotvor.length) {
_local2 = typyPotvor[_local1].zkusenost;
if (_local2 == n) {
if (!random(2)) {
return(_local1);
}
} else if (_local2 > n) {
return(_local1 - 1);
}
_local1++;
}
return(_local1);
}
function urciKapitolu(s) {
var _local1 = (int(s.charAt(0)) * 2) - 0;
if (s.charAt(1) == "b") {
_local1 = _local1 + 1;
}
return(_local1);
}
function zacniHru(predehru) {
skore = 0;
if (!predehru) {
kapitola = 1;
urovenHotova = 0;
skorePlati = true;
stredniBodMapy = "1a";
stredniBodMapy0 = "1";
predchoziStredni = "1a";
} else {
ZMENAZBRANI = 0;
kapitola = 0;
stredniBodMapy = "battle";
}
zacniKapitolu();
}
function nazevZbrane(typMuze) {
var _local3 = _root.typyPotvor[typMuze].typZbrane;
var _local2 = _root.typyPotvor[typMuze].zelezo;
if (_local3 == 1) {
if (!_local2) {
return("wooden sword");
}
return("sword");
}
if (!_local2) {
return("spear");
}
return("naginata");
}
function zacniSouboje() {
_root.naverbujDoSouboje(_root.kapitola, _root.souboj);
_root.gotoAndPlay("scenarPryc");
}
function zacniBitvu(kap) {
trace("zacinam bitvu " + kap);
_root.predchoziKapitola = _root.kapitola;
_root.kapitola = kap;
_root.naverbujDoBitvy(_root.kapitola);
_root.zacniKapitolu();
_root.gotoAndPlay("scenarPryc");
}
function zacniKapitolu() {
souboj = 1;
vysledek = 0;
muzu = 0;
pokus = 1;
nahlasStav("levelCompleted", urovenHotova);
nahlasStav("maxLevelCompleted", urovenHotova);
}
function nastavKapitolu(k) {
_root.kapitola = int(k);
var _local2;
var _local5;
var _local3;
_local2 = Math.floor(k / 2);
urovenHotova = int(_local2);
if ((_local2 * 2) == k) {
_local3 = (_local2 + 1) + "a";
} else {
_local3 = (_local2 + 1) + "b";
}
stredniBodMapy = _local3;
stredniBodMapy0 = _local2 + 1;
predchoziStredni = _local2 + 1;
zacniKapitolu();
}
function naverbujDoSouboje(kap, sou) {
var _local1;
var _local2;
var _local5;
while (postavy.length) {
postavy.pop();
}
while (potvory.length) {
potvory.pop();
}
if (!kap) {
postavy.push(5);
return(0);
}
typBoje = 1;
postavy.push(hrdinove[kap - 1]);
_local2 = souboje[kap - 1][(sou - 1) * 4];
_local1 = souboje[kap - 1][((sou - 1) * 4) + 1];
vliv = souboje[kap - 1][((sou - 1) * 4) + 2];
while (_local1 > 0) {
potvory.push(_local2);
_local1--;
}
typTerenu = souboje[kap - 1][((sou - 1) * 4) + 3];
}
function naverbujDoBitvy(kap) {
var _local1;
var _local4;
var _local3;
typBoje = 2;
while (postavy.length) {
postavy.pop();
}
while (potvory.length) {
potvory.pop();
}
postavy.push(bitvy[kap - 2][1]);
_local1 = muzu;
while (_local1 > 0) {
postavy.push(bitvy[kap - 2][2]);
_local1--;
}
_local1 = 3;
while (_local1 < bitvy[kap - 2].length) {
potvory.push(bitvy[kap - 2][_local1]);
_local1++;
}
typTerenu = bitvy[kap - 2][0];
}
function stanovPomeryDuelu(vychyleni) {
if (vychyleni < 0) {
if (!stanovPomeryDuelu2(1, 0)) {
stanovPomeryDuelu2(0, -1);
}
} else if (!stanovPomeryDuelu2(0, 1)) {
stanovPomeryDuelu2(-1, 0);
}
}
function stanovPomeryDuelu2(bonus1, bonus2) {
if (_root.MODSOUBOJE == 1) {
if ((((_root.NADUPANEC1 + bonus1) + 5) > _root.MAXTYP) || (((_root.NADUPANEC1 + bonus1) + 5) < _root.MINTYP)) {
return(0);
}
_root.NADUPANEC1 = _root.NADUPANEC1 + bonus1;
if ((((_root.NADUPANEC2 + bonus2) + 5) > _root.MAXTYP) || (((_root.NADUPANEC2 + bonus2) + 5) < _root.MINTYP)) {
return(0);
}
_root.NADUPANEC2 = _root.NADUPANEC2 + bonus2;
} else {
if (bonus1) {
if ((((((_root.NADUPANCI1 + bonus1) + 5) > _root.MAXTYP) || (((_root.NADUPANCI1 + bonus1) + 5) < _root.MINTYP)) || (bonus1 < 0)) || ((random(3) && ((_root.NADUPANCU1 + bonus1) <= _root.MAXNOHSLEDU)) && ((_root.NADUPANCU1 + bonus1) >= 1))) {
if (((_root.NADUPANCU1 + bonus1) > _root.MAXNOHSLEDU) || ((_root.NADUPANCU1 + bonus1) < 1)) {
return(0);
}
_root.NADUPANCU1 = _root.NADUPANCU1 + bonus1;
} else if ((!random(2)) && ((_root.NADUPANEC1 + 5) < _root.MAXTYP)) {
_root.NADUPANEC1++;
} else {
_root.NADUPANCI1 = _root.NADUPANCI1 + bonus1;
if (_root.NADUPANEC1 < _root.NADUPANCI1) {
_root.NADUPANEC1++;
}
_root.NADUPANCU1 = _root.NADUPANCU1 - Math.floor((_root.NADUPANCU1 + 1) / 4);
}
}
if (bonus2) {
if ((((((_root.NADUPANCI2 + bonus2) + 5) > _root.MAXTYP) || (((_root.NADUPANCI2 + bonus2) + 5) < _root.MINTYP)) || (bonus2 < 0)) || ((random(3) && ((_root.NADUPANCU2 + bonus2) <= _root.MAXNOHSLEDU)) && ((_root.NADUPANCU2 + bonus2) >= 1))) {
if (((_root.NADUPANCU2 + bonus2) > _root.MAXNOHSLEDU) || ((_root.NADUPANCU2 + bonus2) < 1)) {
return(0);
}
_root.NADUPANCU2 = _root.NADUPANCU2 + bonus2;
} else if ((!random(2)) && ((_root.NADUPANEC2 + 5) < _root.MAXTYP)) {
_root.NADUPANEC2++;
} else {
_root.NADUPANCI2 = _root.NADUPANCI2 + bonus2;
if (_root.NADUPANEC2 < _root.NADUPANCI2) {
_root.NADUPANEC2++;
}
_root.NADUPANCU2 = _root.NADUPANCU2 - Math.floor((_root.NADUPANCU2 + 1) / 4);
}
}
}
return(1);
}
function prohlas(co, z) {
if (!co) {
_root.bojiste.ukazMenu(true);
hlaska._visible = false;
return(0);
}
_root.bojiste.ukazMenu(false);
hlaska._visible = true;
hlaska.gotoAndStop(co);
if (z) {
vydejZvuk(z);
}
}
function nahlasSkore() {
if (!_root.skorePlati) {
trace("Skore nenahlaseno");
} else {
trace("Vysledne skore " + _root.skore);
_root.kongregateScores.submit(_root.skore);
}
}
function nahlasStav(nazev, hodnota) {
if (hodnota == undefined) {
return(0);
}
trace((("Nahlasuji " + nazev) + "=") + hodnota);
_root.kongregateStats.submit(nazev, hodnota);
}
function konecHry() {
if (_root.skorePlati) {
_root.nahlasSkore();
}
gotoAndStop ("menu");
}
function vydejZvuk(jakej) {
_root.zvuky[jakej].start();
}
typyPotvor = new Array({jmeno:"", nicivost:100, odolnost:100, rychlost:10, obrana:10, utok:10, agrese:50, krouzivost:50, stalost:10, typZbrane:1, kostym:1}, {jmeno:"player 1", nicivost:100, odolnost:100, rychlost:10, obrana:10, utok:10, agrese:50, krouzivost:50, stalost:10, typZbrane:1, kostym:1}, {jmeno:"player 2", nicivost:100, odolnost:100, rychlost:10, obrana:10, utok:10, agrese:50, krouzivost:50, stalost:10, typZbrane:1, kostym:2}, {jmeno:"player 3", nicivost:100, odolnost:100, rychlost:10, obrana:10, utok:10, agrese:50, krouzivost:50, stalost:10, typZbrane:1, kostym:1}, {jmeno:"player 4", nicivost:100, odolnost:100, rychlost:10, obrana:10, utok:10, agrese:50, krouzivost:50, stalost:10, typZbrane:1, kostym:2}, {jmeno:"Peasant with a stick", nicivost:55, odolnost:70, rychlost:8, obrana:8, utok:5, agrese:50, krouzivost:20, stalost:12, typZbrane:1, kostym:3, zkusenost:3}, {jmeno:"Peasant spearman", nicivost:80, odolnost:70, rychlost:8, obrana:8, utok:5, agrese:45, krouzivost:10, stalost:12, typZbrane:2, kostym:3, zkusenost:4}, {jmeno:"Bandit spearman", nicivost:80, odolnost:90, rychlost:8, obrana:15, utok:10, agrese:70, krouzivost:10, stalost:12, typZbrane:2, kostym:4, zkusenost:4}, {jmeno:"Spearman", nicivost:90, odolnost:120, rychlost:8, obrana:30, utok:15, agrese:55, krouzivost:20, stalost:10, typZbrane:2, kostym:6, zkusenost:5}, {jmeno:"Swordsman", nicivost:100, odolnost:120, rychlost:8, obrana:35, utok:15, agrese:50, krouzivost:30, stalost:10, typZbrane:1, zelezo:1, kostym:6, zkusenost:5}, {jmeno:"Bandit swordsman", nicivost:100, odolnost:100, rychlost:10, obrana:20, utok:25, agrese:80, krouzivost:30, stalost:12, typZbrane:1, zelezo:1, kostym:5, zkusenost:5}, {jmeno:"Warrior monk", nicivost:105, odolnost:115, rychlost:10, obrana:35, utok:35, agrese:45, krouzivost:40, stalost:10, typZbrane:2, kostym:11, zkusenost:6}, {jmeno:"Naginata lady", nicivost:90, odolnost:100, rychlost:11, obrana:55, utok:60, agrese:50, krouzivost:50, stalost:10, typZbrane:2, zelezo:1, pohlavi:2, kostym:13, zkusenost:5}, {jmeno:"Ninja", nicivost:110, odolnost:100, rychlost:12, obrana:36, utok:60, agrese:60, krouzivost:70, stalost:8, typZbrane:1, zelezo:1, kostym:1, zkusenost:7}, {jmeno:"Samurai", nicivost:130, odolnost:120, rychlost:10, obrana:70, utok:40, agrese:70, krouzivost:90, stalost:9, typZbrane:1, zelezo:1, kostym:2, zkusenost:7}, {jmeno:"Samurai naginataman", nicivost:120, odolnost:120, rychlost:10, obrana:70, utok:60, agrese:70, krouzivost:40, stalost:10, typZbrane:2, zelezo:1, kostym:2, zkusenost:8}, {jmeno:"Old master", nicivost:130, odolnost:100, rychlost:8, obrana:99, utok:99, agrese:50, krouzivost:85, stalost:10, typZbrane:1, zelezo:1, kostym:12, zkusenost:9}, {jmeno:"Armored samurai", nicivost:140, odolnost:250, rychlost:8, obrana:65, utok:40, agrese:70, krouzivost:80, stalost:12, typZbrane:1, zelezo:1, kostym:7, zkusenost:9}, {jmeno:"Dangerous samurai", nicivost:140, odolnost:130, rychlost:11, obrana:99, utok:99, agrese:60, krouzivost:80, stalost:8, typZbrane:1, zelezo:1, kostym:8, zkusenost:10}, {jmeno:"Master of the sword", nicivost:150, odolnost:250, rychlost:10, obrana:99, utok:99, agrese:70, krouzivost:39, stalost:10, typZbrane:1, zelezo:1, kostym:10, zkusenost:10}, {jmeno:"Queen of the sword", nicivost:150, odolnost:150, rychlost:12, obrana:99, utok:99, agrese:76, krouzivost:30, stalost:10, typZbrane:1, zelezo:1, pohlavi:2, kostym:14, zkusenost:10}, {});
var x;
x = 0;
while (x < typyPotvor.length) {
typyPotvor[x].rychlost = typyPotvor[x].rychlost - 1;
typyPotvor[x].poradi = x;
if (amaz && (typyPotvor[x].pohlavi == 2)) {
typyPotvor[x].nicivost = typyPotvor[x].nicivost + 70;
typyPotvor[x].stalost = typyPotvor[x].stalost - 2;
typyPotvor[x].rychlost = typyPotvor[x].rychlost + 2.5;
typyPotvor[x].obrana = typyPotvor[x].obrana + 49;
if (typyPotvor[x].obrana > 99) {
typyPotvor[x].obrana = 99;
}
typyPotvor[x].utok = typyPotvor[x].utok + 25;
if (typyPotvor[x].utok > 99) {
typyPotvor[x].utok = 99;
}
}
x++;
}
hrdinove = new Array(5, 8, 7, 9, 10, 14, 13, 18);
souboje = new Array(new Array(5, 1, 1, 3, 6, 1, 1, 3, 5, 1, 1, 1, 7, 1, 1, 1), new Array(5, 1, 1, 2, 6, 1, 1, 3, 8, 1, 2, 1, 6, 1, 1, 2), new Array(5, 1, 1, 3, 6, 1, 1, 1, 7, 1, 1, 3, 7, 1, 2, 1), new Array(8, 1, 1, 3, 9, 1, 1, 4, 12, 1, 2, 3, 11, 1, 1, 1), new Array(5, 2, 1, 3, 7, 2, 2, 1, 10, 1, 1, 3, 11, 1, 1, 1), new Array(14, 1, 2, 4, 14, 1, 2, 3, 6, 2, 2, 3, 15, 1, 2, 4, 10, 2, 2, 1), new Array(13, 1, 2, 4, 14, 1, 2, 1, 10, 1, 2, 1, 5, 2, 2, 2, 15, 1, 2, 4), new Array(16, 1, 2, 4, 17, 1, 2, 4, 18, 1, 2, 1, 5, 3, 2, 1, 19, 1, 2, 4));
bitvy = new Array(new Array(3, 8, 5, 7, 7, 7), new Array(2, 7, 5, 6, 6, 6), new Array(2, 9, 8, 11, 11, 11, 11), new Array(1, 10, 7, 8, 8, 8, 8), new Array(1, 14, 8, 13, 13, 13, 13), new Array(1, 13, 13, 17, 8, 8, 8, 8), new Array(1, 17, 14, 17, 9, 9, 8, 8, 8, 8, 8), new Array(1, 17, 14, 17, 9, 9, 8, 8, 8, 8, 8), new Array(4, 14, 13, 16, 17, 17, 14, 14, 14), new Array(4, 14, 13, 16, 17, 17, 14, 14, 14));
kostymy = new Array(new Array(0, 0, 0), new Array(2, 1, 1), new Array(3, 2, 2), new Array(4, 3, 3), new Array(1, 3, 3), new Array(5, 3, 3), new Array(5, 4, 4), new Array(6, 5, 5), new Array(3, 2, 6), new Array(3, 4, 2), new Array(6, 4, 6), new Array(1, 1, 1), new Array(7, 2, 2), new Array(8, 4, 6), new Array(8, 1, 1));
heslika = new Array("", "", "spread good", "no mercy", "burn the nest", "disorder", "protect him", "in the night", "close", "close");
uvodniKecy = new Array("The time has come to face the real enemy. You have only one trial. If you are defeated, you lose the game.\nNow choose your path:", "You start in a village as a poor peasant with a wooden sword. Winning duels, you can prove yourself as a good swordsman able to lead men in the battle.", "You left your comrades and continued to a camp of soldiers.\nStart showing them you are born to be their leader!", "You left your comrades and continued to a bandit lair.\nStart showing them you are born to be their leader!", "Travelling alone for several days, you arrived to a small town.\nThere are several men wanting to cross their blade with you.", "You came into a rocky land ruled by another group of bandits. You boldly entered their fort in the mountains.\nThere are several men wanting to cross their blade with you.", "Travelling farther, you arrived to another province.\nThere are some good swordsmen living here. Show them you are the best!", "Travelling farther, you arrived to another province.\nThere are some good swordsmen living here. Show them you are the best!", "Getting rid of the soldiers, you entered the city they were guarding.\nYou are determined to fight most famous swordsmen living here.", "Showing ultimate courage and fighter skill, you have become a great lord daymio and won the game!", "Showing ultimate courage and fighter skill, you have become a great lord daymio and won the game!");
volebniNadpisy = new Array("The path of the soldier", "The path of the bandit", "The path of the officer", "The path of the bandit leader", "The path of the samurai", "The path of the ninja", "The path of the grandmaster", "The path of the grandmaster", "The path of the daymio", "The path of the daymio", "Start the game", "The battleground", "Credits", "Play more games!", "Updates");
volebniKecy = new Array("Attack bandits near their lair", "Attack peasants from the neighbouring village", "Anihilate a group of warrior monks that oppose the lord's will", "Destroy a troop of soldiers camping nearby", "Guard a general against ninja attack", "Assassinate a general", "Face an enemy unit lead by several samurai", "Face an enemy unit lead by several samurai", "Kill the present daymio and his suite", "Kill the present daymio and his suite", "Quick training, then start chalenging enemies", "The sequence of duels/battles for one or two players. Whoever loses a battle, next time gets stronger.", "", "", "");
samohl = new Array("a", "a", "i", "o", "u", "a", "i", "o", "u", "a", "ei");
souhl = new Array("b", "ts", "d", "g", "h", "k", "m", "n", "p", "r", "r", "s", "sh", "t", "w", "j");
poctyMuzu = new Array("no", "one", "two", "three");
mapaBojiste1 = {hlavniTeren:1};
krev = 2;
friendlyFire = 1;
hledejStejnyho = 1;
postavy = new Array();
potvory = new Array();
var x;
var y;
x = 10;
y = 10;
BEZMYSI = true;
ZMENAKLAVES = false;
HRACU = 1;
MODSOUBOJE = 1;
NADUPANEC1 = 0;
NADUPANEC2 = 0;
NADUPANCI1 = 0;
NADUPANCI2 = 0;
NADUPANCU1 = 2;
NADUPANCU2 = 2;
MINTYP = 5;
MAXTYP = 14;
MAXNOHSLEDU = 7;
ZMENAZBRANI = 0;
mraky._visible = false;
Frame 8
function Zvuk() {
this.eh1 = new Sound();
this.eh1.attachSound("au1");
this.eh1.setVolume(20);
this.eh2 = new Sound();
this.eh2.attachSound("hek3");
this.eh2.setVolume(20);
this.eh3 = new Sound();
this.eh3.attachSound("hek1");
this.eh3.setVolume(20);
this.eh4 = new Sound();
this.eh4.attachSound("uu");
this.eh4.setVolume(20);
this.eh5 = new Sound();
this.eh5.attachSound("au2");
this.eh5.setVolume(20);
this.brink1 = new Sound();
this.brink1.attachSound("brink1");
this.brink2 = new Sound();
this.brink2.attachSound("brink2");
this.uder1 = new Sound();
this.uder1.attachSound("uder1");
this.uder2 = new Sound();
this.uder2.attachSound("uder1");
this.uder3 = new Sound();
this.uder3.attachSound("uder1");
this.uder4 = new Sound();
this.uder4.attachSound("uder1");
this.zasah1 = new Sound();
this.zasah1.attachSound("zasah1");
this.zasah2 = new Sound();
this.zasah2.attachSound("zasah1");
this.zasah3 = new Sound();
this.zasah3.attachSound("zasah1");
this.zasah4 = new Sound();
this.zasah4.attachSound("zasah1");
this.zab = new Sound();
this.zab.attachSound("zab");
this.drevo = new Sound();
this.drevo.attachSound("drevo");
this.chcip2 = new Sound();
this.chcip2.attachSound("chcip2");
this.chcip3 = new Sound();
this.chcip3.attachSound("chcip3");
this.pokrik1 = new Sound();
this.pokrik1.attachSound("pokrik1");
this.bourebuben = new Sound();
this.bourebuben.attachSound("bourebuben");
}
function hudboHraj(kolik, znovu) {
if ((!znovu) && (hudby[typHudby] == hudby[kolik])) {
return(0);
}
zvukPozadi.stop();
zvukPozadi.attachSound(hudby[kolik]);
if (kolik == 3) {
zvukPozadi.setVolume(15);
} else {
zvukPozadi.setVolume(100);
}
typHudby = kolik;
var _local2 = 36000;
if (!ticho) {
zvukPozadi.start(0, _local2);
}
return(1);
}
zvuky = new Zvuk();
hudby = new Array("", "uvod", "uvod2", "zen", "bitka", "bitka", "uvod");
zvukPozadi = new Sound();
ticho = false;
typHudby = 0;
hudboHraj(0, 1);
hraloSe = false;
testovaniBitvy = false;
Frame 9
Frame 13
zacniHru(true);
gotoAndPlay ("scenar");
Frame 14
hudboHraj(0);
Frame 20
if (typBoje) {
hudboHraj(4);
mraky.tendence = mraky.SLUNECNO;
} else {
mraky.tendence = mraky.OBLACNO;
}
Frame 24
if (!typBoje) {
hesloKlip._visible = true;
} else {
hesloKlip._visible = false;
}
stop();
Frame 25
mraky.tendence = mraky.ZATAZENO;
Frame 33
if (_root.typBoje == 3) {
gotoAndPlay ("souboje");
} else if (typBoje == 2) {
zacniKapitolu();
gotoAndPlay ("hra");
} else {
gotoAndPlay ("hra");
}
Frame 34
mraky.hvezdy._visible = false;
if (_root.kapitola) {
logo._visible = false;
logo.gotoAndStop(1);
} else if (hraloSe) {
logo.gotoAndStop("hotovson");
} else {
stop();
}
Frame 35
logo.gotoAndPlay("odpluj");
mapa._visible = false;
trace("kapitola " + kapitola);
if (kapitola <= 8) {
texty.butonDal.gotoAndStop("start");
} else {
texty.butonDal.gotoAndStop(1);
if (_root.skorePlati) {
_root.kongregateScores.submit(_root.skore);
}
}
if ((kapitola > 0) && (kapitola < 9)) {
hudboHraj(2, false);
} else {
hudboHraj(1, false);
}
texty.butonDal._visible = false;
texty.sipka1._visible = false;
texty.sipka2._visible = false;
texty.sipka3._visible = false;
texty.sipka4._visible = false;
Frame 36
texty.butonDal.onRollOver = function () {
if (kapitola <= 8) {
texty.butonDal.gotoAndStop("start2");
} else {
texty.butonDal.gotoAndStop(2);
}
};
texty.butonDal.onRollOut = function () {
if (kapitola <= 8) {
texty.butonDal.gotoAndStop("start");
} else {
texty.butonDal.gotoAndStop(1);
}
};
texty.butonDal.onRelease = function () {
_root.vydejZvuk("bourebuben");
if (kapitola <= 8) {
texty.butonDal.gotoAndPlay("startStart");
_root.zacniSouboje();
} else {
_root.gotoAndPlay("menu");
_root.prohlas("vyhralTo");
}
};
if (((_root.souboj - 1) < (_root.souboje[_root.kapitola - 1].length / 4)) || (_root.kapitola > 8)) {
texty.uvodniKec = _root.uvodniKecy[_root.kapitola];
if ((_root.kapitola > 1) && (_root.kapitola < 9)) {
mraky.hvezdy._visible = true;
texty.hesloStr = "Password: " + _root.heslika[_root.kapitola];
} else {
texty.hesloStr = "";
mraky.hvezdy._visible = false;
}
mapa.hory.pripravCedulky(0);
texty.k._visible = false;
texty.butonDal._visible = true;
texty.u._visible = true;
} else {
mapa.hory.pripravCedulky(_root.kapitola);
if (_root.kapitola) {
texty.uvodniKec = _root.uvodniKecy[0];
} else {
texty.uvodniKec = "";
}
texty.u._visible = true;
texty.k._visible = true;
texty.butonDal._visible = false;
}
Frame 42
mapa._visible = true;
mraky._visible = true;
mraky.tendence = mraky.OBLACNO;
texty.sipka1._visible = true;
texty.sipka2._visible = true;
texty.sipka3._visible = true;
texty.sipka4._visible = true;
mraky.hvezdy._visible = true;
stop();
Frame 43
mraky.hvezdy._visible = false;
mraky.tendence = mraky.ZATAZENO;
Frame 50
if (_root.typBoje == 3) {
gotoAndPlay ("souboje");
} else if (typBoje == 2) {
zacniKapitolu();
gotoAndPlay ("hra");
} else {
gotoAndPlay ("hra");
}
Frame 51
mraky.tendence = mraky.SLUNECNO;
hudboHraj(3);
Frame 57
stop();
Frame 58
logo.gotoAndStop("hotovson");
mraky.tendence = mraky.ZATAZENO;
Frame 63
mraky.tendence = mraky.OBLACNO;
Frame 64
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 32 MovieClip [stromek3] Frame 1
function zobraz() {
_parent.umistiNa2D(this);
var _local5 = _parent.normovanejUhel(Math.abs(_parent.rozdilUhlu(_parent.orientaceY, this.orientace)));
var _local3 = _parent.orientaceY;
if (_local3 < 0) {
_local3 = _local3 + 360;
}
if (_local3 > 360) {
_local3 = _local3 - 360;
}
stromek.gotoAndStop(Math.floor(_local3 / 10) + 1);
if (vodVoka3d < 100) {
_visible = false;
} else {
_visible = true;
}
_xscale = ((velikost * _parent.VELIKOST) / vodVoka3d);
_yscale = (((velikost * 1) * _parent.VELIKOST) / vodVoka3d);
var _local4;
_local4 = _parent.ptaciUhel(this);
gotoAndStop(_local4);
maska.gotoAndStop(_local4);
_parent.zamlzDoDalky(this);
}
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
this.onEnterFrame = function () {
s1.gotoAndStop(_currentframe);
};
stop();
Symbol 39 MovieClip [stanSpic] Frame 1
function zobraz() {
var _local6 = 1;
var _local8 = 1;
var _local7 = _parent.orientaceY;
var _local5 = (-_local7) + this.orientace;
if (_local5 < 0) {
_local5 = _local5 + 360;
}
_parent.umistiNa2D(this);
var _local3 = Math.floor(_local5 / 10) + 1;
if (_local3 > 18) {
_local6 = -1;
_local3 = _local3 - 18;
_local3 = 18 - _local3;
}
var _local4 = _local3 + 9;
if (_local4 > 18) {
_local4 = _local4 - 18;
}
strecha1.gotoAndStop(_local4);
vlajecka._xscale = Math.sin(((-_local7) / 180) * Math.PI) * 100;
if (vodVoka3d < 100) {
_visible = false;
} else {
_visible = true;
}
_xscale = (((_local6 * velikost) * _parent.VELIKOST) / vodVoka3d);
_yscale = (((velikost * 1) * _parent.VELIKOST) / vodVoka3d);
_parent.zamlzDoDalky(this);
}
Symbol 44 MovieClip [flek] Frame 1
function zobraz() {
_parent.umistiNa2D(this);
if (vodVoka3d < 100) {
_visible = false;
} else {
_visible = true;
}
_xscale = ((velikost * _parent.VELIKOST) / vodVoka3d);
var _local3;
_local3 = _parent.ptaciUhel(this);
_local3 = Math.sin((_local3 / 180) * Math.PI);
_yscale = (((velikost * _local3) * _parent.VELIKOST) / vodVoka3d);
gotoAndStop(typ - 40);
_parent.zamlzDoDalky(this);
}
Symbol 47 MovieClip Frame 1
stop();
Symbol 48 MovieClip [stromek2] Frame 1
function zobraz() {
_parent.umistiNa2D(this);
var _local5 = _parent.normovanejUhel(Math.abs(_parent.rozdilUhlu(_parent.orientaceY, this.orientace)));
var _local3 = _parent.orientaceY;
if (_local3 < 0) {
_local3 = _local3 + 360;
}
if (_local3 > 360) {
_local3 = _local3 - 360;
}
stromek.gotoAndStop(Math.floor(_local3 / 10) + 1);
if (vodVoka3d < 100) {
_visible = false;
} else {
_visible = true;
}
_xscale = ((velikost * _parent.VELIKOST) / vodVoka3d);
_yscale = (((velikost * 1) * _parent.VELIKOST) / vodVoka3d);
var _local4;
_local4 = _parent.ptaciUhel(this);
gotoAndStop(_local4);
maska.gotoAndStop(_local4);
_parent.zamlzDoDalky(this);
}
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 56 MovieClip [stromek1] Frame 1
function zobraz() {
_parent.umistiNa2D(this);
var _local5 = _parent.normovanejUhel(Math.abs(_parent.rozdilUhlu(_parent.orientaceX, this.orientace)));
var _local3 = _parent.orientaceY;
if (_local3 < 0) {
_local3 = _local3 + 360;
}
if (_local3 > 360) {
_local3 = _local3 - 360;
}
stromek.gotoAndStop(Math.floor(_local3 / 10) + 1);
if (vodVoka3d < 100) {
_visible = false;
} else {
_visible = true;
}
_xscale = ((velikost * _parent.VELIKOST) / vodVoka3d);
_yscale = (((velikost * 1) * _parent.VELIKOST) / vodVoka3d);
var _local4;
_local4 = _parent.ptaciUhel(this);
gotoAndStop(_local4);
maska.gotoAndStop(_local4);
_parent.zamlzDoDalky(this);
}
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
this.onEnterFrame = function () {
s1.gotoAndStop(_currentframe);
};
stop();
Symbol 83 MovieClip [domek] Frame 1
function zobraz() {
var _local7 = 1;
var _local8 = 1;
var _local6 = (-_parent.orientaceY) + this.orientace;
if (_local6 < 0) {
_local6 = _local6 + 360;
}
var _local5 = int(maskaMin + (((maskaMax - maskaMin) * upati) / 100));
zed.z0.maska._height = _local5;
zed.z1.maska._height = _local5;
zed.z2.maska._height = _local5;
_parent.umistiNa2D(this);
_y = (y0 - (((_local5 - maskaMin) * _yscale) / 100));
var _local3 = Math.floor(_local6 / 10) + 1;
if (_local3 > 18) {
_local7 = -1;
_local3 = _local3 - 18;
_local3 = 18 - _local3;
}
zed.gotoAndStop(_local3);
strecha.gotoAndStop(_local3);
strecha.s1.gotoAndStop(typ - 20);
strecha.s2.gotoAndStop(typ - 20);
var _local4 = _local3 + 9;
if (_local4 > 18) {
_local4 = _local4 - 18;
}
strecha1.gotoAndStop(_local4);
strecha2.gotoAndStop(_local4);
strecha3.gotoAndStop(_local4);
if (vodVoka3d < 100) {
_visible = false;
} else {
_visible = true;
}
_xscale = (((_local7 * velikost) * _parent.VELIKOST) / vodVoka3d);
_yscale = (((velikost * 1) * _parent.VELIKOST) / vodVoka3d);
_parent.zamlzDoDalky(this);
}
maskaMin = 48;
maskaMax = 118;
Symbol 83 MovieClip [domek] Frame 18
Symbol 108 MovieClip [cedule] Frame 1
function zobraz() {
_parent.umistiNa2D(this);
_xscale = velikost;
_yscale = velikost;
gotoAndStop(obsah);
if (!inicializovano) {
init();
}
}
function init() {
inicializovano = true;
p._alpha = 20;
p.onRollOver = function () {
_parent._parent._parent.ukazPopisek(kap - 1);
p._alpha = 40;
};
p.onRollOut = function () {
_parent._parent._parent.ukazPopisek(0);
p._alpha = 20;
};
if (obsah.length <= 3) {
p.onRelease = function () {
var _local3 = id.charAt(2);
var _local2 = int(id.charAt(0)) + 1;
_root.predchoziStredni = _root.stredniBodMapy;
_root.stredniBodMapy0 = _local2 + "";
_root.stredniBodMapy = _local2 + _local3;
_root.zacniBitvu(kap);
};
}
}
stop();
Symbol 108 MovieClip [cedule] Frame 2
kap = 12;
p.onRelease = function () {
_root.typBoje = 0;
_root.zacniSouboje();
};
Symbol 108 MovieClip [cedule] Frame 3
kap = 13;
p.onRelease = function () {
_root.typBoje = 3;
_root.gotoAndPlay("scenarPryc");
};
Symbol 108 MovieClip [cedule] Frame 4
kap = 15;
p.onRelease = function () {
getURL ("http://www.armorgames.com/", "_blank");
};
Symbol 108 MovieClip [cedule] Frame 5
kap = 14;
p.onRelease = function () {
_root.gotoAndPlay("credit");
};
Symbol 108 MovieClip [cedule] Frame 7
Symbol 108 MovieClip [cedule] Frame 8
Symbol 108 MovieClip [cedule] Frame 9
kap = 16;
p.onRelease = function () {
getURL ("http://www.armorblog.com/", "_blank");
};
Symbol 115 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 127 MovieClip [hora] Frame 1
function zobraz() {
_parent.umistiNa2D(this);
var _local4 = _parent.normovanejUhel(Math.abs(_parent.rozdilUhlu(_parent.orientaceY, this.orientace)));
var _local3 = _parent.orientaceY;
if (_local3 < 0) {
_local3 = _local3 + 360;
}
if (_local3 > 360) {
_local3 = _local3 - 360;
}
hora.gotoAndStop(int(_local3 / 5) + 1);
if (vodVoka3d < 100) {
_visible = false;
} else {
_visible = true;
}
_xscale = (((nejuzsi + ((velikost - nejuzsi) * Math.abs(Math.cos((_local4 / 180) * Math.PI)))) * _parent.VELIKOST) / vodVoka3d);
_yscale = (((velikost * 0.6) * _parent.VELIKOST) / vodVoka3d);
maska._y = int(MASKAHORNI + (((MASKADOLNI - MASKAHORNI) * upati) / 100));
maska.gotoAndStop(1 + ((100 - pravidelnost) * Math.abs(Math.sin((_local4 / 180) * Math.PI))));
_y = (y0 + (-90 - maska._y));
hora._y = MASKADOLNI - maska._y;
hora.stin1.gotoAndStop(tvarStinu1);
hora.stin2.gotoAndStop(tvarStinu2);
_parent.zamlzDoDalky(this);
}
MASKAHORNI = -151;
MASKADOLNI = -91;
Symbol 134 MovieClip [rozhozeny] Frame 1
stop();
Symbol 137 MovieClip [cakanec] Frame 1
stop();
Symbol 138 Button
on (release) {
if (_root.hlaska._visible) {
return(0);
}
_parent.prikazProVsechny(1, 1);
gotoAndStop (2);
}
Symbol 139 Button
on (release) {
if (_root.hlaska._visible) {
return(0);
}
_parent.prikazProVsechny(1, 2);
gotoAndStop (3);
}
Symbol 140 Button
on (release) {
if (_root.hlaska._visible) {
return(0);
}
_parent.prikazProVsechny(1, undefined);
gotoAndStop (4);
}
Symbol 145 Button
on (release) {
prikazProVsechny(1, 1);
}
Symbol 146 Button
on (release) {
prikazProVsechny(1, 2);
}
Symbol 147 MovieClip [bitvaPrikazy] Frame 1
function testujZobrazeni() {
if ((_parent.pocetZivych(1) > 1) && (_root.typBoje != 3)) {
_visible = true;
} else {
_visible = false;
}
}
stop();
Symbol 149 MovieClip Frame 3
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
posunSnimek1 = 7;
posunSnimek2 = 22;
Symbol 156 MovieClip Frame 3
prevFrame();
Symbol 156 MovieClip Frame 22
Symbol 157 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 1
_visible = false;
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 1
Symbol 194 MovieClip Frame 2
_parent._parent.hlava2._visible = false;
Symbol 194 MovieClip Frame 3
stop();
Symbol 194 MovieClip Frame 5
stop();
Symbol 194 MovieClip Frame 6
_parent._parent.hlava2._visible = true;
_root.zvuky.uder1.start();
Symbol 194 MovieClip Frame 8
_parent._parent.zautoc();
Symbol 194 MovieClip Frame 12
Symbol 194 MovieClip Frame 17
_parent._parent.strezSe(1);
Symbol 194 MovieClip Frame 18
_root.zvuky.uder1.start();
Symbol 194 MovieClip Frame 20
_parent._parent.zautoc();
Symbol 194 MovieClip Frame 25
Symbol 194 MovieClip Frame 29
_parent._parent.strezSe(1);
Symbol 194 MovieClip Frame 36
_parent._parent.strezSe(1);
Symbol 194 MovieClip Frame 43
_parent._parent.strezSe(1);
Symbol 194 MovieClip Frame 44
_parent._parent.hlava2._visible = true;
Symbol 194 MovieClip Frame 45
stop();
Symbol 194 MovieClip Frame 46
_root.zvuky.uder1.start();
Symbol 194 MovieClip Frame 48
_parent._parent.zautoc();
Symbol 194 MovieClip Frame 57
_parent._parent.strezSe(1);
Symbol 194 MovieClip Frame 64
_parent._parent.strezSe(4);
Symbol 194 MovieClip Frame 65
_parent._parent.hlava2._visible = false;
Symbol 194 MovieClip Frame 71
_parent._parent.hlava2._visible = true;
_parent._parent.strezSe(4);
Symbol 195 MovieClip Frame 1
stop();
Symbol 197 MovieClip [figurka] Frame 1
function testujAI() {
if (random(100) < schopnost("obrana")) {
urciBlizkyNepratele();
}
if (!(_parent.cas % (21 - Math.round(schopnost("utok") / 5)))) {
urciPolohuSoupere();
} else {
odhadniPolohuSoupere();
}
pohybDlePlanu();
if (planPohybu <= _parent.cas) {
urciPohyb();
}
ohlidniSe();
if (!hlidejSe()) {
zkusSeknout();
}
natocSe(cilOtoceniX, cilOtoceniY);
}
function mojeRychlost() {
var _local3 = schopnost("rychlost");
var _local2 = maxZivotu();
var _local1 = int((_local3 * (_local2 - ((_local2 - zivotu) / 2))) / _local2);
if ((!_local1) || (_local1 < 1)) {
_local1 = 1;
}
return(_local1);
}
function prijmiPrikaz(x) {
prikazano = x;
}
function maxZivotu() {
return(schopnost("odolnost"));
}
function barvaKuze() {
var _local2;
_local2 = (this.strana * 2) - 1;
if (!this.hrac) {
_local2++;
}
return(_local2);
}
function schopnost(jaka) {
var _local3 = _root.typyPotvor[this.typ]["" + jaka];
if (jaka == "typZbrane") {
if (_root.ZMENAZBRANI) {
return(_root.ZMENAZBRANI);
}
}
if (hrac) {
switch (jaka) {
case "nicivost" :
if (_root.bonus1) {
_local3 = _local3 + _root.bonus1;
}
if (_local3 < 65) {
_local3 = 65;
}
break;
case "odolnost" :
if (_root.bonus1) {
_local3 = _local3 + _root.bonus1;
}
break;
case "rychlost" :
if (!_root.bonus1) {
break;
}
_local3 = _local3 + _root.bonus1;
}
}
return(_local3);
}
function oblikniSe() {
hlava1.barva.gotoAndStop(barvaKuze());
hlava2.barva.gotoAndStop(barvaKuze());
svetlo.gotoAndStop(barvaKuze());
zbran.zbran.p1.gotoAndStop(barvaKuze());
zbran.zbran.p2.gotoAndStop(barvaKuze());
var _local3 = _root.kostymy[_root.typyPotvor[this.typ].kostym];
hlava1.gotoAndStop(_local3[0]);
hlava2.gotoAndStop(_local3[0]);
t1.gotoAndStop(_local3[1]);
t2.gotoAndStop(_local3[2]);
strezSe(1);
}
function testujPohyb() {
if (vyhozeniDalka > 0) {
vyhazujSe();
} else {
kolidoval = 0;
}
if (zakazPohybu()) {
return(0);
}
if (!pohyb) {
return(0);
}
_x = (_x + dx);
_y = (_y + dy);
dx = smerPohybuX * mojeRychlost();
dy = smerPohybuY * mojeRychlost();
if ((nohy.nohy._currentframe < nohy.nohy.posunSnimek1) || (nohy.nohy._currentframe >= nohy.nohy.posunSnimek2)) {
nohy.nohy.gotoAndStop(nohy.nohy.posunSnimek1);
} else {
nohy.nohy.nextFrame();
}
klesniStelem();
_parent.rozvrstvi();
}
function klesniStelem() {
var _local2 = _parent.vzdalenost(nohy.nohy.n1._x - nohy.nohy.n2._x, nohy.nohy.n1._y - nohy.nohy.n2._y);
_local2 = _local2 - dalkaNohou;
hlava1._y = yHlavy + _local2;
hlava2._y = yHlavy + _local2;
t1._y = yTela + _local2;
zbran._y = yZbrane + _local2;
}
function posun(p, sx, sy) {
smerPohybuX = sx;
smerPohybuY = sy;
pohyb = p;
if (!_parent.BEZMYSI) {
natocSe(_root._xmouse - _x, _root._ymouse - _y);
}
}
function zakazPohybu() {
if (((zakaz >> 1) << 1) != zakaz) {
return(1);
}
if (zakaz > 9) {
return(1);
}
return(0);
}
function zakazSeku() {
return(zakaz > 1);
}
function kousekUhlu(a, b, maxim) {
var _local2;
if (Math.abs(b - a) > 180) {
_local2 = a - b;
} else {
_local2 = b - a;
}
if (_local2 < (-maxim)) {
_local2 = -maxim;
}
if (_local2 > maxim) {
_local2 = maxim;
}
return(_parent.normovanejUhel(a + _local2));
}
function natocSe(sx, sy, maxim) {
if (utok > 0) {
return(0);
}
var _local4 = uhel;
cilUhel = _parent.uhel(sx, sy);
var _local2;
if (maxim) {
_local2 = kousekUhlu(_local4, cilUhel, maxim);
} else {
_local2 = kousekUhlu(_local4, cilUhel, _parent.MAXOTOCKA);
}
var _local3 = Math.round(_local2 / 10) + 1;
zbran.gotoAndStop(_local3);
hlava1._rotation = -_local2;
hlava2._rotation = -_local2;
uhel = _local2;
uhelPohybu = uhel + ((pohyb - 1) * 90);
_local3 = Math.round(uhelPohybu / 10) + 1;
if (pohyb) {
nohy.gotoAndStop(_local3);
}
}
function strezSe(jo) {
var _local1;
switch (schopnost("typZbrane")) {
case 1 :
_local1 = 1;
break;
case 2 :
_local1 = 4;
}
if (jo) {
gotoAndPlay("streh" + _local1);
}
zbran.zbran.gotoAndPlay("streh" + _local1);
}
function sekShora() {
utok = 1;
if (schopnost("typZbrane") == 2) {
zbran.zbran.gotoAndPlay("bodKopim");
} else {
zbran.zbran.gotoAndPlay("sekShora");
}
zakaz = 2;
}
function sekZboku() {
utok = 2;
if (schopnost("typZbrane") == 2) {
zbran.zbran.gotoAndPlay("bodKopim");
} else {
zbran.zbran.gotoAndPlay("sekZboku");
}
zakaz = 2;
}
function krytShora() {
utok = -1;
if (schopnost("typZbrane") == 2) {
zbran.zbran.gotoAndPlay("krytShoraKopim");
} else {
zbran.zbran.gotoAndPlay("krytShora");
}
zakaz = 2;
}
function krytZboku() {
utok = -2;
if (schopnost("typZbrane") == 2) {
zbran.zbran.gotoAndPlay("krytZbokuKopim");
} else {
zbran.zbran.gotoAndPlay("krytZboku");
}
zakaz = 2;
}
function sek(kolik) {
if (kolik == 1) {
sekShora();
} else {
sekZboku();
}
}
function kryt(kolik) {
if (kolik == 1) {
krytShora();
} else {
krytZboku();
}
}
function neni() {
return((((!zivotu) || (zivotu <= 0)) || (utekl)) || (mimo));
}
function nestrana() {
if (strana == 1) {
return(2);
}
return(1);
}
function urciSoupere() {
if (!napresdrzku[0].neni()) {
return(napresdrzku[0]);
}
}
function urciClena(n) {
var _local3;
var _local7;
var _local4;
_local7 = _parent["armada" + n];
_local4 = 1;
while (_local4 <= _local7.length) {
_local3 = _parent[_parent["iniciala" + n] + _local4];
var _local5;
_local5 = _parent.blizko(this, _local3);
if ((!_local3.neni()) && (_local5 == 2)) {
if (!_parent.odvracen(this, _local3)) {
return(_local3);
}
}
_local4++;
}
}
function urciPolohuSoupere() {
var _local2 = urciNejblizsiho();
mujSouper = _local2;
this.souperX = _local2._x;
this.souperDX = _local2.dx;
this.souperY = _local2._y;
this.souperDY = _local2.dy;
}
function odhadniPolohuSoupere() {
souperX = souperX + souperDX;
souperY = souperY + souperDY;
var _local3;
if (mujSouper.schopnost("typZbrane") == 2) {
_local3 = 1;
} else {
_local3 = 2;
}
if ((_parent.blizko(this, souperX, souperY) == _local3) && (!_parent.odvracen(this, mujSouper))) {
napresdrzku[0] = mujSouper;
}
}
function urciBlizkyNepratele() {
blizkyNepratele.splice(0);
napresdrzku.splice(0);
var _local3;
var _local8;
var _local7;
var _local4;
_local7 = nestrana();
_local8 = _parent["armada" + _local7];
_local4 = 1;
while (_local4 <= _local8.length) {
_local3 = _parent[_parent["iniciala" + _local7] + _local4];
var _local6;
var _local5;
if (_local3.schopnost("typZbrane") == 2) {
_local5 = _parent.blizko(_local3, this);
} else {
_local5 = 0;
}
_local6 = _parent.blizko(this, _local3);
if ((!_local3.neni()) && ((_local6 == 2) || (_local5 == 2))) {
blizkyNepratele.push(_local3);
if (!_parent.odvracen(this, _local3)) {
napresdrzku.push(_local3);
if (hrac) {
_local3.stin.gotoAndPlay(1);
}
}
}
if (!_local3.neni()) {
rozdilyPohledu[_local4] = _parent.rozdilPohledu(this, _local3);
}
_local4++;
}
return(blizkyNepratele.length);
}
function odsah() {
return(_parent["ODSAH" + schopnost("typZbrane")]);
}
function dosah() {
return(_parent["DOSAH" + schopnost("typZbrane")]);
}
function odvracen(odKoho) {
var _local3;
_local3 = Math.abs(rozdilyPohledu[odKoho.cislo]) - (_parent.uhelTolerance(this) / 2);
if (_local3 > 0) {
return(_local3);
}
return(0);
}
function utocnikZpredu() {
var _local3;
var _local4;
_local4 = 0;
while (_local4 < napresdrzku.length) {
_local3 = napresdrzku[_local4];
if ((_local3.utok > 0) && (!_parent.odvracen(_local3, this))) {
return(_local3);
}
_local4++;
}
}
function zranSe(kolik) {
if (neni()) {
return(0);
}
cakej(kolik);
zakaz = 2;
if (_root.typBoje) {
zivotu = zivotu - kolik;
}
zakaz = 3;
var _local4;
var _local5;
_local5 = Math.round((kolik * 10) / maxZivotu());
_local4 = _local5;
while (_local4 > 0) {
_parent.cakejNaPodlahu(this._x, this._y);
_local4--;
}
urciPohyb();
if (schopnost("pohlavi") == 2) {
_root.zvuky.eh5.start();
} else {
_root.zvuky["eh" + (random(4) + 1)].start();
}
gotoAndPlay ("zraneni");
}
function cakej(kolik) {
if (!_root.krev) {
return(0);
}
krev._visible = true;
krev.gotoAndPlay(2);
if (kolik < 6) {
return(1);
}
krev2._visible = true;
krev2.gotoAndPlay(2);
return(2);
}
function vyhodSe(sX, sY, dalka, zpomaleni) {
var _local8;
var _local7;
var _local2;
_local2 = _parent.vzdalenost(sX, sY);
if (!_local2) {
_local2 = 1;
}
if (!dalka) {
dalka = _local2;
}
if (zpomaleni == undefined) {
zpomaleni = dalka;
}
vyhozeniDalka = dalka;
vyhozeniX = ((1.5 * sX) * dalka) / _local2;
vyhozeniY = ((1.5 * sY) * dalka) / _local2;
vyhozeniZpomaleni = zpomaleni;
}
function vyhazujSe() {
_x = (_x + vyhozeniX);
_y = (_y + vyhozeniY);
vyhozeniDalka = vyhozeniDalka - vyhozeniZpomaleni;
if (vyhozeniDalka <= 0) {
vyhozeniDalka = 0;
pohyb = 0;
return(0);
}
vyhodSe(vyhozeniX, vyhozeniY, vyhozeniDalka, vyhozeniZpomaleni);
}
function testujSmrt() {
if (zivotu <= 0) {
zemri();
return(1);
}
return(0);
}
function zemri() {
zakaz = 2;
if (_parent.vysledekBoje()) {
_parent.play();
}
gotoAndPlay ("smrt");
if ((strana == 1) && (hrac)) {
_parent.prikazProVsechny(1, undefined);
}
_parent.prikazy.testujZobrazeni();
}
function hlidejSe() {
if (zakazSeku()) {
return(0);
}
var _local3;
_local3 = utocnikZpredu();
if (_local3 && (_parent.odvracen(this, _local3) < _parent.PLUSKRYT)) {
kryt(_local3.utok);
return(1);
}
return(0);
}
function nejblizsiZdalekych() {
var _local5;
var _local9;
var _local8;
var _local6;
var _local4;
var _local7;
var _local10;
_local7 = 0;
_local8 = nestrana();
_local9 = _parent["armada" + _local8];
_local6 = 1;
while (_local6 <= _local9.length) {
_local5 = _parent[_parent["iniciala" + _local8] + _local6];
if (_local5.neni()) {
} else {
_local4 = Math.cos(((rozdilyPohledu[_local6] / 180) * Math.PI) / 3);
_local4 = _local4 * 10000;
_local4 = _local4 / _parent.vzdalenost(_local5._x - _x, _local5._y - _y);
_local4 = _local4 * Math.cos(((_parent.rozdilPohledu(_local5, this) / 180) * Math.PI) / 5);
if (_root.hledejStejnyho) {
_local4 = _local4 + (_local4 * (10 / (Math.abs(schopnost("poradi") - _local5.schopnost("poradi")) + 1)));
}
_local4 = Math.round(_local4);
if (_local4 > _local7) {
_local7 = _local4;
_local10 = _local5;
}
}
_local6++;
}
return(_local10);
}
function urciNejblizsiho() {
var _local2;
var _local1;
var _local4;
var _local3;
var _local5;
_local4 = 0;
_local3 = 180;
if (napresdrzku.length) {
_local2 = urciSoupere();
}
if ((!_local2) || (_local2.neni())) {
_local1 = 0;
while (_local1 < blizkyNepratele.length) {
_local2 = blizkyNepratele[_local1];
if (_local2.neni()) {
} else if (Math.abs(rozdilyPohledu[_local1]) < _local3) {
_local3 = Math.abs(rozdilyPohledu[_local1]);
_local4 = _local2;
}
_local1++;
}
_local2 = _local4;
}
if ((!_local2) || (_local2.neni())) {
_local2 = nejblizsiZdalekych();
}
return(_local2);
}
function ohlidniSe() {
var _local4;
_local4 = urciNejblizsiho();
if (!_local4) {
return(0);
}
var _local5 = _parent["iniciala" + nestrana()];
var _local3 = _root.bojiste[_local5 + _local4.cislo];
cilOtoceniX = (_local3._x - _x) + _local3.dx;
cilOtoceniY = (_local3._y - _y) + _local3.dy;
if (!cilOtoceniX) {
cilOtoceniX = 0;
}
if (!cilOtoceniY) {
cilOtoceniY = 0;
}
}
function zkusSeknout() {
if (zakazSeku()) {
return(0);
}
var _local3;
if (_parent.blizkoXY(this, souperX, souperY) == 2) {
_local3 = urciSoupere();
if (_local3) {
if (!odvracen(this, _local3)) {
sek(random(2) + 1);
} else if (random(10) < blizkyNepratele.length) {
sek(random(2) + 1);
}
}
}
}
function urciRespekt(souper) {
var _local1;
_local1 = 101 - schopnost("agrese");
return(_local1);
}
function urciRespekty() {
var _local5;
var _local3;
var _local2;
var _local4;
if (hrac) {
return(0);
}
_local5 = nestrana();
_local4 = _parent["armada" + _local5];
if (respekty.length <= _local4.length) {
respekty = new Array(_local4.length + 1);
}
_local2 = 1;
while (_local2 <= _local4.length) {
_local3 = _parent[_parent["iniciala" + _local5] + _local2];
respekty[_local2] = urciRespekt(_local3);
_local2++;
}
}
function pohybDlePlanu() {
var _local1;
switch (typPohybu) {
case -3 :
uhelPohybu = uhel - 45;
break;
case -2 :
uhelPohybu = uhel + 180;
break;
case -1 :
uhelPohybu = uhel - 90;
break;
case 0 :
uhelPohybu = uhel;
break;
case 1 :
uhelPohybu = uhel + 90;
break;
case 2 :
uhelPohybu = uhel;
break;
case 3 :
uhelPohybu = uhel + 45;
}
pohyb = typPohybu;
smerPohybuX = Math.cos((uhelPohybu * Math.PI) / 180);
smerPohybuY = -Math.sin((uhelPohybu * Math.PI) / 180);
}
function urciPohyb() {
var _local3;
var _local5;
var _local4 = urciNejblizsiho();
if (!_local4) {
typPohybu = 0;
planPohybu = _parent.cas + 10;
return(0);
}
var _local6;
var _local7;
var _local8;
_local6 = _parent.blizko(this, _local4);
_local3 = random(100);
if ((_local6 > 0) && (prikazano == 3)) {
typPohybu = -2;
return(typPohybu);
}
if (_local6 > 2) {
_local3 = _local3 - 20;
} else if (_local6 == 0) {
if (prikazano != undefined) {
if (prikazano == 1) {
typPohybu = 2;
} else {
typPohybu = 0;
}
return(typPohybu);
}
_local3 = _local3 + 50;
} else if (_local6 == 1) {
_local7 = schopnost("typZbrane");
_local8 = _local4.schopnost("typZbrane");
if ((_local8 == 2) && (_local7 != 2)) {
_local3 = _local3 + 50;
} else if ((_local7 == 2) && (_local8 != 2)) {
_local3 = _local3 - 20;
}
_local3 = _local3 + _local4.odvracen(this);
}
if ((respekty[_local4.cislo] - _local3) > 25) {
_local5 = -2;
typPohybu = -2;
planPohybu = (_parent.cas + 2) + random(schopnost("stalost"));
return(typPohybu);
}
if ((_local3 - respekty[_local4.cislo]) > 25) {
_local5 = 2;
} else {
_local5 = 0;
}
_local3 = random(100);
if (_local3 < schopnost("krouzivost")) {
_local5++;
if (((_parent.rozdilPohledu(_local4, this) + random(10)) - random(10)) > 0) {
_local5 = _local5 * -1;
}
}
typPohybu = _local5;
planPohybu = (_parent.cas + 2) + random(schopnost("stalost"));
return(typPohybu);
}
function zautoc() {
var _local7;
var _local5;
var _local4;
urciBlizkyNepratele();
if (utok <= 0) {
return(0);
}
_local4 = urciClena(nestrana());
if (hrac && (!_local4)) {
_parent.misu++;
}
if ((!_local4) && (_root.friendlyFire)) {
_local4 = urciClena(strana);
if (_local4) {
trace(("Au! " + _local4.schopnost("jmeno")) + " zasazen kamaradem!");
}
}
if (!_local4) {
return(0);
}
var _local6 = _parent.odvracen(_local4, this);
if (((_local4.utok < 0) && (_local6 < _parent.PLUSKRYT)) && (_parent.blizko(_local4, this) < 3)) {
if (hrac) {
_parent.bloku++;
}
if ((_local4.schopnost("zelezo") != 1) || (schopnost("zelezo") != 1)) {
_root.zvuky.drevo.start();
} else if (random(2)) {
_root.zvuky.brink2.start();
} else {
_root.zvuky.brink1.start();
}
utok = 0;
return(-1);
}
_local7 = Math.round(_local6 / 20);
_local5 = (4 + _local7) * 10;
_local5 = _local5 * (schopnost("nicivost") / 100);
if (((_local5 >= _local4.zivotu) && (hrac)) && (strana != _local4.strana)) {
_parent.kilu++;
}
_local4.pohyb = 3;
_root.zvuky.zasah1.start();
_local4.vyhodSe(_local4._x - _x, _local4._y - _y, 10, 3);
_local4.zranSe(_local5);
if ((_root.typBoje && (hrac)) && (_local4.strana != strana)) {
_parent.skore = _parent.skore + int(_local4.schopnost("zkusenost") * _local5);
_parent.hitu++;
}
trace("Skore je " + _parent.skore);
utok = 0;
return(_local5);
}
MINIMALNIVZDALENOST = 50;
this.onEnterFrame = function () {
if (neni()) {
return(0);
}
if ((_parent.casZastaven == 2) || ((_parent.casZastaven == 1) && (!hrac))) {
return(0);
}
if ((!hrac) && (!neni())) {
testujAI();
} else if ((!neni()) && (_parent.BEZMYSI)) {
urciBlizkyNepratele();
ohlidniSe();
natocSe(cilOtoceniX, cilOtoceniY);
}
testujPohyb();
if (neni()) {
return(0);
}
};
uhel = 0;
uhelPohybu = 0;
pohyb = 0;
hlava2._visible = false;
t2.ramena._visible = false;
aktivniZbran = 1;
zivotu = 100;
dx = 0;
dy = 0;
vyhozeniDalka = 0;
typPohybu = 0;
planPohybu = 4;
yHlavy = hlava1._y;
yZbrane = zbran._y;
yTela1 = t1._y;
dalkaNohou = _parent.vzdalenost(nohy.nohy.n1._x - nohy.nohy.n2._x, nohy.nohy.n1._y - nohy.nohy.n2._y);
blizkyNepratele = new Array();
napresdrzku = new Array();
rozdilyPohledu = new Array();
respekty = new Array();
if ((!hrac) && (!neni())) {
urciBlizkyNepratele();
ohlidniSe();
}
Symbol 197 MovieClip [figurka] Frame 3
smerX = 0;
smerY = 0;
utok = 0;
zakaz = 0;
hlava2._visible = false;
nohy.nohy.gotoAndStop("streh");
klesniStelem();
testujSmrt();
Symbol 197 MovieClip [figurka] Frame 4
zakaz = 0;
Symbol 197 MovieClip [figurka] Frame 5
prevFrame();
Symbol 197 MovieClip [figurka] Frame 6
smerX = 0;
smerY = 0;
utok = 0;
zakaz = 0;
hlava2._visible = true;
nohy.nohy.gotoAndStop("streh");
klesniStelem();
testujSmrt();
Symbol 197 MovieClip [figurka] Frame 7
zakaz = 0;
Symbol 197 MovieClip [figurka] Frame 8
prevFrame();
Symbol 197 MovieClip [figurka] Frame 17
if (zivotu <= 0) {
gotoAndPlay ("smrt");
} else {
strezSe(1);
}
Symbol 197 MovieClip [figurka] Frame 18
umira = true;
_root.zvuky.zab.start();
if (schopnost("pohlavi") == 2) {
_root.zvuky.chcip2.start();
} else {
_root.zvuky.chcip.start();
}
Symbol 197 MovieClip [figurka] Frame 19
var pocet = 10;
var x = 1;
while (x <= pocet) {
_parent.cakejNaPodlahu(this._x, this._y);
x++;
}
zbran._visible = false;
Symbol 197 MovieClip [figurka] Frame 20
t2._visible = false;
nohy._visible = false;
Symbol 197 MovieClip [figurka] Frame 21
t1._visible = false;
Symbol 197 MovieClip [figurka] Frame 22
h1._visible = false;
h2._visible = false;
Symbol 197 MovieClip [figurka] Frame 24
_visible = false;
stop();
Symbol 197 MovieClip [figurka] Frame 25
_visible = false;
Symbol 197 MovieClip [figurka] Frame 26
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
var l;
var t;
l = _root.getBytesLoaded();
t = _root.getBytesTotal();
if (!l) {
l = 0;
}
if (!t) {
t = 1;
}
if (l < t) {
pre.gotoAndStop(Math.round((l * 50) / t));
} else {
_parent.play();
}
Symbol 203 MovieClip Frame 2
gotoAndPlay (1);
Symbol 216 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 225 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
this.onEnterFrame = function () {
if (kridlo1._currentframe < tendence) {
kridlo1.nextFrame();
} else if (kridlo1._currentframe > tendence) {
kridlo1.prevFrame();
}
if (kridlo2._currentframe < tendence) {
kridlo2.nextFrame();
} else if (kridlo2._currentframe > tendence) {
kridlo2.prevFrame();
}
};
SLUNECNO = 1;
OBLACNO = 5;
ZATAZENO = 9;
tendence = ZATAZENO;
hvezdy._visible = false;
Symbol 238 MovieClip Frame 1
function kontrola() {
protokol = _url.substr(0, _url.indexOf(":"));
doubleSlash = _url.indexOf("//");
server = _url.substr(doubleSlash + 2, (_url.indexOf("/", doubleSlash + 2) - doubleSlash) - 2);
server = server.toUpperCase();
if (server.indexOf("WWW.") != -1) {
server = server.substr(server.indexOf("WWW.") + 4, server.length);
}
if (server.indexOf("THUNDERBIRD.CZ") == -1) {
_parent.gotoAndStop(1);
}
}
stop();
Symbol 238 MovieClip Frame 2
kontrola();
Symbol 238 MovieClip Frame 7
kontrola();
Symbol 238 MovieClip Frame 8
gotoAndPlay (2);
Symbol 242 Button
on (rollOver) {
rucka.gotoAndStop(2);
}
on (rollOut) {
rucka.gotoAndStop(1);
}
on (press) {
this.startDrag();
rucka.gotoAndStop(3);
}
on (release) {
this.stopDrag();
rucka.gotoAndStop(2);
}
on (releaseOutside) {
this.stopDrag();
rucka.gotoAndStop(1);
}
Symbol 244 MovieClip Frame 1
stop();
Symbol 245 Button
on (release) {
zacniSouboj();
}
Symbol 249 Button
on (release) {
if (((_root.kapitola == 1) && (_root.souboj < 2)) && (_root.pokus == 1)) {
gotoAndStop ("princip1");
} else {
posudCoDal();
zavri();
}
}
Symbol 253 Button
on (release) {
posudCoDal();
zavri();
}
Symbol 259 Button
on (release) {
_root.bojiste.prikazProVsechny(1, 1);
_root.bojiste.prikazProVsechny(2, 1);
_root.bojiste.casZastaven = 0;
_root.typBoje = 2;
_root.bojiste.prikazy._visible = true;
this.zavri();
}
Symbol 260 Button
on (release) {
_root.bojiste.prikazProVsechny(1, 2);
_root.bojiste.prikazProVsechny(2, 1);
_root.bojiste.casZastaven = 0;
_root.typBoje = 2;
_root.bojiste.prikazy._visible = true;
this.zavri();
}
Symbol 264 Button
on (release) {
_root.nahlasSkore();
_root.skore = 0;
_root.skorePlati = false;
_root.kapitola = _root.predchoziKapitola;
_root.nastavKapitolu(_root.kapitola);
_root.gotoAndPlay("scenar");
zavri();
}
Symbol 272 Button
on (release) {
_root.MAXTYP = 19;
zavri();
}
Symbol 276 Button
on (release) {
_root.nahlasSkore();
_root.gotoAndPlay("menu");
zavri();
}
Symbol 277 Button
on (release) {
_root.bojiste.casZastaven = 0;
zavri();
}
Symbol 282 Button
on (release) {
gotoAndStop ("souboj");
}
Symbol 288 Button
on (release) {
nextFrame();
}
Symbol 292 Button
on (release) {
gotoAndStop ("bitva");
}
Symbol 296 MovieClip Frame 1
function zavri() {
_root.bojiste.ukazMenu(true);
_visible = false;
}
function skryj() {
zavri();
}
function zacniSouboj() {
_root.bojiste.prikazProVsechny(1, undefined);
_root.bojiste.prikazProVsechny(2, undefined);
_root.bojiste.casZastaven = 0;
_root.typBoje = 1;
this.zavri();
}
function posudCoDal() {
if (_root.typBoje == 1) {
if (_root.vysledek < 0) {
if (_root.pokus > 2) {
_root.souboj++;
_root.pokus = 1;
_root.naverbujDoSouboje(_root.kapitola, _root.souboj);
_root.gotoAndPlay("konecBoje");
} else {
_root.gotoAndPlay("konecBoje");
}
} else {
_root.bojiste.zapoctiSkore();
_root.souboj++;
_root.pokus = 1;
_root.naverbujDoSouboje(_root.kapitola, _root.souboj);
_root.gotoAndPlay("konecBoje");
}
_root.bojiste.skore = 0;
if ((_root.souboj - 1) >= (_root.souboje[_root.kapitola - 1].length / 4)) {
_root.gotoAndPlay("scenar");
}
} else if (_root.typBoje == 2) {
if (_root.vysledek < 0) {
_root.konecHry();
} else {
_root.bojiste.zapoctiSkore();
_root.urovenHotova++;
_root.nahlasStav("levelCompleted", _root.urovenHotova);
_root.nahlasStav("maxLevelCompleted", _root.urovenHotova);
_root.gotoAndPlay("scenar");
}
_root.bojiste.skore = 0;
} else {
_root.stanovPomeryDuelu(_root.vysledek);
_root.gotoAndPlay("konecBoje");
_root.bojiste.skore = 0;
}
}
stop();
Symbol 296 MovieClip Frame 2
if (_root.pokus == 1) {
textik = "Your opponent:\n\n";
} else {
textik = "";
}
if (_root.pokus == 1) {
_root.protivnikJmeno = _root.nahodnyJmeno();
}
textik = textik + _root.protivnikJmeno;
if (_root.potvory.length > 1) {
textik = textik + " brothers";
}
if (_root.pokus == 2) {
textik = textik + " - second try";
} else if (_root.pokus == 3) {
textik = textik + " - the last try";
} else {
textik = textik + (("\n(" + _root.typyPotvor[_root.potvory[0]].jmeno) + ")");
}
textik = textik + newline;
textik = textik + ((_root.nazevZbrane(_root.postavy[0]) + " vs. ") + _root.nazevZbrane(_root.potvory[0]));
nadpis = (("Duel " + _root.souboj) + "/") + (_root.souboje[_root.kapitola - 1].length / 4);
nextFrame();
Symbol 296 MovieClip Frame 3
stop();
Symbol 296 MovieClip Frame 4
textik = ("Defeating " + _root.protivnikJmeno) + ", you convinced ";
textik = textik + _root.poctyMuzu[_root.vliv];
if (_root.muzu) {
textik = textik + " more";
}
if (_root.vliv > 1) {
textik = textik + " men";
} else {
textik = textik + " man";
}
textik = textik + " to follow you in a real battle.";
_root.muzu = _root.muzu + _root.vliv;
textik = textik + (("\n\nYou have " + _root.muzu) + " follower");
if (_root.muzu != 1) {
textik = textik + "s";
}
textik = textik + " so far.";
Symbol 296 MovieClip Frame 5
textik = "Each time you win a duel, you collect one or more followers. They will join you in the battle which will follow afterwards.\nThe more duels you win, the more numerous will be your army in the battle.";
Symbol 296 MovieClip Frame 6
textik = "This time, you didn't convince anybody ";
if (_root.muzu > 0) {
textik = textik + "more ";
}
textik = textik + "about your fighting qualities. Try harder next time!";
textik = textik + (("\n\nYou have " + _root.muzu) + " follower");
if (_root.muzu != 1) {
textik = textik + "s";
}
textik = textik + " so far.";
Symbol 296 MovieClip Frame 10
Symbol 306 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
_parent.onRollOver = function () {
myska.gotoAndStop(2);
myska._xscale = 110;
myska._yscale = 110;
_parent._parent.nad = true;
};
_parent.onRollOut = function () {
myska.gotoAndStop(1);
myska._xscale = 100;
myska._yscale = 100;
_parent._parent.nad = false;
};
Symbol 309 MovieClip Frame 1
function zobraz() {
if (_root.ZMENAKLAVES) {
gotoAndStop (2);
_parent.entrklik.gotoAndStop(2);
} else {
gotoAndStop (1);
_parent.entrklik.gotoAndStop(1);
}
}
zobraz();
Symbol 312 MovieClip Frame 1
function zobraz() {
if (_root.BEZMYSI) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
zobraz();
Symbol 316 MovieClip Frame 1
function zobraz() {
if (_root.ticho) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
zobraz();
Symbol 318 MovieClip Frame 1
this.onRollOver = function () {
_parent.nad = true;
};
this.onRollOut = function () {
_parent.nad = false;
};
Symbol 321 MovieClip Frame 1
this.onRollOver = function () {
_parent.nad = true;
};
this.onRollOut = function () {
_parent.nad = false;
};
Symbol 322 MovieClip Frame 1
function zobraz() {
music.zobraz();
klavesy.zobraz();
mys.zobraz();
}
podklad.onRollOver = function () {
nad = true;
};
podklad.onRollOut = function () {
nad = false;
};
music.onRelease = function () {
if (_root.ticho) {
_root.ticho = false;
} else {
_root.ticho = true;
}
_root.hudboHraj(_root.typHudby, true);
music.zobraz();
};
klavesy.onRelease = function () {
if (_root.ZMENAKLAVES) {
_root.ZMENAKLAVES = false;
} else {
_root.ZMENAKLAVES = true;
}
klavesy.zobraz();
};
mys.onRelease = function () {
if (_root.BEZMYSI) {
_root.BEZMYSI = false;
} else {
_root.BEZMYSI = true;
}
mys.zobraz();
_root.bojiste.nastavOtaceni();
};
quitek.onRelease = function () {
_root.hlaska.skryj();
_root.nahlasSkore();
_root.gotoAndPlay("menu");
};
Symbol 323 MovieClip Frame 1
this.onEnterFrame = function () {
if (tabulka.nad) {
nextFrame();
} else {
prevFrame();
}
};
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 1
this.onEnterFrame = function () {
if (Key.isDown(32) || (Key.isDown(80))) {
if (!stlaceno) {
stlaceno = true;
nextFrame();
}
} else {
stlaceno = false;
}
if (krevPryc) {
if (_parent._parent.krev._alpha > 0) {
_parent._parent.krev._alpha = _parent._parent.krev._alpha - 10;
} else {
krevPryc = false;
}
}
};
klavesy.onRelease = function () {
if (_root.ZMENAKLAVES) {
_root.ZMENAKLAVES = false;
} else {
_root.ZMENAKLAVES = true;
}
klavesy.zobraz();
};
mys.onRelease = function () {
if (_root.BEZMYSI) {
_root.BEZMYSI = false;
} else {
_root.BEZMYSI = true;
}
mys.zobraz();
};
_parent._parent.p1.zakaz = 10;
_parent._parent.p1._x = -1000;
_parent._parent.p1.gotoAndStop("streh1");
nextFrame();
Symbol 367 MovieClip Frame 2
stop();
Symbol 367 MovieClip Frame 5
nextFrame();
Symbol 367 MovieClip Frame 6
Symbol 367 MovieClip Frame 10
_parent._parent.p1.mimo = false;
nextFrame();
Symbol 367 MovieClip Frame 11
_parent._parent.nasackuj(2);
_parent._parent.p1.zakaz = 0;
_parent._parent.urciRespektyVsech();
Symbol 367 MovieClip Frame 12
_parent._parent.p1.mimo = true;
_parent._parent.p1.zemri();
_parent._parent.armada2.splice(0);
krevPryc = true;
nextFrame();
Symbol 367 MovieClip Frame 13
_parent._parent.nastavOtaceni();
Symbol 367 MovieClip Frame 14
stop();
_root.zacniHru(false);
_root.gotoAndPlay("scenar");
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 2
stop();
Symbol 369 MovieClip Frame 1
function zpracujKlavesy(kdo) {
if (Key.isDown(27)) {
casZastaven = 2;
_root.prohlas("paused");
}
var _local10 = 81;
if (kdo.neni()) {
return(0);
}
if (kdo.zakaz > 2) {
return(0);
}
pohyb = 0;
smerX = 0;
smerY = 0;
var _local8;
var _local6;
var _local9;
var _local7;
var _local5;
if ((kdo.strana == 1) && ((_root.HRACU == 2) || (!_root.ZMENAKLAVES))) {
_local8 = 38;
_local6 = 40;
_local9 = 37;
_local7 = 39;
_local5 = 76;
} else {
_local8 = 69;
_local6 = 68;
_local9 = 83;
_local7 = 70;
_local5 = 81;
}
if (kdo.zakaz != 1) {
if (Key.isDown(_local8)) {
pohyb = 1;
smerY = -1;
}
if (Key.isDown(_local6)) {
pohyb = 3;
smerY = 1;
}
if (Key.isDown(_local9)) {
pohyb = 2;
smerX = -1;
}
if (Key.isDown(_local7)) {
pohyb = 4;
smerX = 1;
}
if (Key.isDown(_local5)) {
klikNaDesku(kdo);
}
if (Key.isDown(75) && (_root.testovaniBitvy)) {
var _local3 = 1;
while (_local3 <= armada2.length) {
this["p" + _local3].zemri();
_local3++;
}
armada2.splice(0);
}
}
if (pohyb) {
kdo.posun(pohyb, smerX, smerY);
kdo.urciBlizkyNepratele();
} else {
kdo.pohyb = 0;
}
}
function klikNaDesku(hr) {
if (hr.neni()) {
return(0);
}
if (prikazy.hitTest(_root._xmouse, _root._ymouse)) {
return(0);
}
hr.urciBlizkyNepratele();
if (hr.hlidejSe()) {
return(0);
}
if (!hr.zakazSeku()) {
if (random(2)) {
hr.sekShora();
} else {
hr.sekZboku();
}
}
}
function nastavMeze() {
if (!_root.typBoje) {
MINX = 160;
MAXX = 620;
MINY = 160;
MAXY = 440;
teren.gotoAndStop(6);
return(0);
}
if (_root.typBoje == 3) {
_root.typTerenu = random(4) + 1;
}
if (_root.typTerenu < 4) {
MINX = 20;
MAXX = 780;
MINY = 20;
MAXY = 580;
} else {
MINX = 30;
MAXX = 770;
MINY = 50;
MAXY = 550;
}
teren.gotoAndStop(_root.typTerenu);
}
function testujMeze(fig) {
if (fig._y > (MAXY + _y)) {
fig._y = MAXY + _y;
}
if (fig._x > (MAXX + _x)) {
fig._x = MAXX + _x;
}
if (fig._y < ((-_y) + MINY)) {
fig._y = (-_y) + MINY;
}
if (fig._x < ((-_x) + MINX)) {
fig._x = (-_x) + MINX;
}
}
function zpracujKolizeFigur() {
var _local1;
var _local2;
var _local3;
var _local6;
var _local5;
var _local4;
_local1 = 0;
while (_local1 < figurky.length) {
testujMeze(figurky[_local1]);
if ((!figurky[_local1]) || (figurky[_local1].neni())) {
if (!figurky[_local1].umira) {
figurky[_local1].gotoAndPlay("smrt");
}
} else {
_local2 = _local1 + 1;
while (_local2 < figurky.length) {
zpracujKolizi(figurky[_local1], figurky[_local2]);
_local2++;
}
}
_local1++;
}
}
function zpracujKolizi(obj1, obj2) {
var _local4;
var _local3;
if (obj2.typObjektu == 1) {
v = vzdalenost(obj1._x - obj2._x, obj1._y - obj2._y);
if (((v < KOLIZEFIGUREK) && (obj1.kolidoval != obj2)) && (obj2.kolidoval != obj1)) {
obj1.kolidoval = obj2;
obj2.kolidoval = obj1;
_local4 = obj1.schopnost("typZbrane");
_local3 = obj2.schopnost("typZbrane");
if (_local4 >= _local3) {
obj1.vyhodSe(obj2.dx - obj1.dx, obj2.dy - obj1.dy, 0, 3);
}
if (_local3 >= _local4) {
obj2.vyhodSe(obj1.dx - obj2.dx, obj1.dy - obj2.dy, 0, 3);
}
obj1.urciPohyb();
obj2.urciPohyb();
return(1);
}
}
return(0);
}
function pocetZivych(strana) {
var _local2;
var _local3;
var _local5;
var _local4 = 0;
_local5 = this["armada" + strana];
_local2 = 1;
while (_local2 <= _local5.length) {
_local3 = this[this["iniciala" + strana] + _local2];
if (!_local3.neni()) {
_local4++;
}
_local2++;
}
return(_local4);
}
function vysledekBoje() {
_root.vysledek = 0;
if (!_root.typBoje) {
return(0);
}
if (!pocetZivych(1)) {
_root.vysledek = -1;
}
if (!pocetZivych(2)) {
_root.vysledek = 1;
}
return(_root.vysledek);
}
function testujVysledek() {
if (_root.vysledek > 0) {
if (_root.typBoje == 1) {
_root.prohlas("vyhral");
} else if (_root.typBoje == 2) {
_root.prohlas("vyhralBitvu");
} else {
_root.prohlas("konecSouboje1");
}
}
if (_root.vysledek < 0) {
if (_root.typBoje == 1) {
_root.pokus++;
if (_root.pokus > 3) {
_root.prohlas("prohral");
} else {
_root.gotoAndPlay("konecBoje");
}
} else if (_root.typBoje == 2) {
_root.prohlas("prohralBitvu");
} else {
_root.prohlas("konecSouboje2");
}
}
}
function urciRespektyVsech() {
var _local1;
_local1 = 0;
while (_local1 < figurky.length) {
figurky[_local1].urciRespekty();
_local1++;
}
}
function blizko(kdo, keKomu) {
return(blizkoXY(kdo, keKomu._x, keKomu._y));
}
function blizkoXY(kdo, X, Y) {
var _local1 = 0;
var _local6;
var _local5;
if ((!X) && (X != 0)) {
return(0);
}
_local6 = X;
_local5 = Y;
var _local2 = vzdalenost(kdo._x - _local6, kdo._y - _local5);
var _local3 = kdo.dosah();
if (_local2 <= _local3) {
if (_local2 < KOLIZEFIGUREK) {
_local1 = 4;
} else if (_local2 < kdo.odsah()) {
_local1 = 3;
} else {
_local1 = 2;
}
} else if (_local2 < (_local3 * 1.5)) {
_local1 = 1;
}
return(_local1);
}
function normovanejUhel(x) {
if (x > 360) {
x = x - 360;
}
if (x < 0) {
x = 360 - x;
}
return(x);
}
function rozdilUhlu(a, b) {
var _local3;
if ((b - a) > 180) {
a = a + 360;
} else if ((a - b) > 180) {
b = b + 360;
}
_local3 = b - a;
return(_local3);
}
function rozdilPohledu(kdo, keKomu) {
var _local2;
var _local1;
var _local5;
_local2 = uhel(keKomu._x - kdo._x, keKomu._y - kdo._y);
_local1 = kdo.uhel;
if ((_local1 - _local2) > 180) {
_local2 = _local2 + 360;
} else if ((_local2 - _local1) > 180) {
_local1 = _local1 + 360;
}
return(_local2 - _local1);
}
function uhelTolerance(kdo) {
if (kdo.vlastnost("typZbrane") == 2) {
return(this["UHELTOLERANCEBOD" + kdo.hrac]);
}
return(this["UHELTOLERANCE" + kdo.hrac]);
}
function odvracen(kdo, keKomu) {
var _local1;
_local1 = Math.abs(rozdilPohledu(kdo, keKomu)) - (uhelTolerance(kdo) / 2);
if (_local1 > 0) {
return(_local1);
}
return(0);
}
function posunTeren(x, y) {
teren.dil1._y = teren.dil1._y + y;
teren.dil2._y = teren.dil2._y + y;
testujTeren();
}
function testujTeren() {
if (teren.dil1._y > 0) {
teren.dil2._y = teren.dil1._y - teren.dil1._height;
}
if (teren.dil2._y > 0) {
teren.dil1._y = teren.dil2._y - teren.dil2._height;
}
if (teren.dil1._y < 0) {
teren.dil2._y = teren.dil1._y + teren.dil1._height;
}
if (teren.dil2._y < 0) {
teren.dil1._y = teren.dil2._y + teren.dil2._height;
}
}
function vzdalenost(x, y) {
return(Math.sqrt((x * x) + (y * y)));
}
function jeCerna(x, y) {
return((((x >> 1) << 1) == x) == (((y >> 1) << 1) == y));
}
function uhel(sx, sy) {
var _local2;
var _local1;
_local2 = Math.atan2(sy, sx);
_local1 = (_local2 / Math.PI) * -180;
if (_local1 < 0) {
_local1 = _local1 + 360;
}
return(Math.round(_local1));
}
function init(dimX, dimY) {
if (_root.krev.kapek) {
_root.krev.duplicateMovieClip("_root.bojiste.krev", this.getNextHighestDepth());
krev._visible = true;
} else {
this.createEmptyMovieClip("krev", this.getNextHighestDepth());
}
krev._x = teren._x;
krev._y = teren._y;
krev.kapek = 0;
this.createEmptyMovieClip("plody", this.getNextHighestDepth());
plody._x = teren._x;
plody._y = teren._y;
plody.plodu = 0;
HRACU = _root.HRACU;
nastavOtaceni();
}
function nastavOtaceni() {
if (!_root.pocetZivych(2)) {
BEZMYSI = false;
}
if (HRACU == 1) {
BEZMYSI = _root.BEZMYSI;
} else {
BEZMYSI = true;
}
}
function initFigurky(tajnaCast) {
var _local4;
var _local3;
_local4 = 1;
while (_local4 <= _root.potvory.length) {
_local3 = this["p" + _local4];
_local3.typObjektu = 1;
_local3.urciBlizkyNepratele();
_local3.ohlidniSe();
figurky.push(_local3);
if (tajnaCast) {
}
_local4++;
}
_local4 = 1;
while (_local4 <= _root.postavy.length) {
_local3 = this["h" + _local4];
_local3.typObjektu = 1;
_local3.urciBlizkyNepratele();
_local3.ohlidniSe();
figurky.push(_local3);
if (tajnaCast) {
}
_local4++;
}
}
function stvorPostavy() {
var _local3;
var _local8;
var _local7 = _root.postavy.length;
var _local4 = 0;
while (_local4 < _local7) {
_local3 = this.attachMovie("figurka", "h" + (_local4 + 1), this.getNextHighestDepth(), {_xscale:80, _yscale:80});
_local3.typ = _root.postavy[_local4];
_local3.strana = 1;
_local3.streh = 1;
_local3.zivotu = 1;
_local3.cislo = _local4 + 1;
if (_local3.cislo == 1) {
_local3.hrac = HRAC1;
} else {
_local3.hrac = 0;
}
_local3.moralka = MORALKA1;
if ((_root.VIP1 == _local3.cislo) || (_root.HLAVNIHRDINA1 == _local3.cislo)) {
_local3.moralka = _local3.moralka - 2;
}
_local3.hlava1.gotoAndStop(_local3.strana);
_local3.hlava2.gotoAndStop(_local3.strana);
_local3.hlava1.barva.gotoAndStop(_local3.barvaKuze());
h.hlava2.barva.gotoAndStop(_local3.barvaKuze());
_local3.zbran.zbran.p1.gotoAndStop(_local3.strana);
_local3.zbran.zbran.p2.gotoAndStop(_local3.strana);
if (_local3.typ < 0) {
_local3.mimo = true;
_local3.typ = -_local3.typ;
_local3._visible = false;
}
_local3.zakaz = 0;
_local4++;
}
}
function stvorPotvory() {
var _local3;
var _local8;
var _local7 = _root.potvory.length;
var _local4 = 0;
while (_local4 < _local7) {
_local3 = this.attachMovie("figurka", "p" + (_local4 + 1), this.getNextHighestDepth(), {_xscale:80, _yscale:80});
_local3.typ = _root.potvory[_local4];
_local3.strana = 2;
_local3.streh = 1;
_local3.zivotu = 1;
_local3.cislo = _local4 + 1;
if (_local3.cislo == 1) {
_local3.hrac = HRAC2;
} else {
_local3.hrac = 0;
}
_local3.moralka = MORALKA2;
if ((_root.VIP2 == _local3.cislo) || (_root.HLAVNIHRDINA2 == _local3.cislo)) {
_local3.moralka = _local3.moralka - 2;
}
_local3.hlava1.gotoAndStop(_local3.strana);
_local3.hlava2.gotoAndStop(_local3.strana);
_local3.hlava1.barva.gotoAndStop(_local3.barvaKuze());
h.hlava2.barva.gotoAndStop(_local3.barvaKuze());
_local3.zbran.zbran.p1.gotoAndStop(_local3.strana);
_local3.zbran.zbran.p2.gotoAndStop(_local3.strana);
if (_local3.typ < 0) {
_local3.mimo = true;
_local3.typ = -_local3.typ;
_local3._visible = false;
}
_local3.zakaz = 0;
_local4++;
}
}
function cakejNaPodlahu(x, y) {
var _local2;
var _local3;
if (_root.krev == 1) {
return(0);
}
var _local5 = ((x - teren._x) + random(60)) - random(60);
var _local4 = ((y - teren._y) + random(60)) - random(60);
krev.kapek++;
if (_root.krev > 1) {
_local2 = krev.attachMovie("cakanec", "k" + krev.kapek, krev.getNextHighestDepth());
} else {
_local2 = krev.attachMovie("rozhozeny", "k" + krev.kapek, krev.getNextHighestDepth());
}
if (_root.krev > 1) {
_local3 = random(150) + 10;
} else {
_local3 = random(100) + 60;
}
_local2._yscale = _local3;
_local2._xscale = _local3;
if (random(2)) {
_local2._xscale = _local2._xscale * -1;
}
_local2._x = _local5;
_local2._y = _local4;
_local2.gotoAndStop(random(3) + 1);
_local2._rotation = random(360);
}
function nasackuj(strana) {
var _local5;
var _local2;
var _local3;
_local5 = this["armada" + strana];
_local2 = 1;
while (_local2 <= _local5.length) {
_local3 = this[this["iniciala" + strana] + _local2];
if (strana == 1) {
_local3._y = MAXY - 60;
} else {
_local3._y = MINY + 60;
}
if (_local2 % 2) {
_local3._x = 400 + (50 * (_local2 / 2));
} else {
_local3._x = 400 - (50 * (_local2 / 2));
}
_local3.oblikniSe();
_local2++;
}
}
function prikazProVsechny(strana, p) {
var _local4;
var _local2;
var _local3;
_local4 = this["armada" + strana];
_local2 = 1;
while (_local2 <= _local4.length) {
_local3 = this[this["iniciala" + strana] + _local2];
if (!_local3.neni()) {
_local3.prijmiPrikaz(p);
}
_local2++;
}
}
function zapoctiSkore() {
skore = int(skore * (0.5 + ((hlavniHrdina.zivotu / 2) / hlavniHrdina.maxZivotu())));
_root.skore = _root.skore + skore;
_root.nahlasStav("combatTime", cas / 18);
_root.nahlasStav("combatHits", hitu);
_root.nahlasStav("combatMisses", misu);
_root.nahlasStav("combatBlocks", bloku);
_root.nahlasStav("combatKills", kilu);
_root.nahlasStav("accuracy", (hitu * 100) / (hitu + misu));
if (hitu > 0) {
_root.nahlasStav("lethality", (kilu * 100) / hitu);
}
}
DILKUX = 13;
DILKUY = 14;
DILEKSIRKA = 60;
DILEKVYSKA = 40;
MAXOTOCKA = 30;
KOLIZEFIGUREK = 15;
UHELTOLERANCE0 = 35;
UHELTOLERANCEBOD0 = 20;
UHELTOLERANCE1 = 60;
UHELTOLERANCEBOD1 = 40;
DOSAH1 = 78;
ODSAH1 = 20;
DOSAH2 = 118;
ODSAH2 = 64;
PLUSKRYT = 20;
HRAC1 = 1;
if (_root.HRACU > 1) {
HRAC2 = 1;
} else {
HRAC2 = 0;
}
if (!_root.HRACU) {
HRAC1 = 0;
} else {
HRAC1 = 1;
}
vysledek = 0;
armada1 = _root.postavy;
armada2 = _root.potvory;
iniciala1 = "h";
iniciala2 = "p";
this.onMouseDown = function () {
if (!myska) {
if (!_root.hlaska._visible) {
klikNaDesku(h1);
}
}
myska = true;
};
this.onMouseUp = function () {
myska = false;
};
this.onEnterFrame = function () {
if (casZastaven) {
return(0);
}
if (_currentframe < 3) {
return(0);
}
cas++;
if ((cas % 20) && (!_root.vysledek)) {
if (vysledekBoje()) {
play();
}
}
zpracujKolizeFigur();
zpracujKlavesy(h1);
if (HRACU == 2) {
zpracujKlavesy(p1);
}
if ((!h1.neni()) && (!BEZMYSI)) {
h1.natocSe(_root._xmouse - h1._x, _root._ymouse - h1._y);
}
};
this.onMouseMove = function () {
};
figurky = new Array();
casZastaven = 2;
if (!_root.typBoje) {
_root.potvory.push(5);
_root.ovladani._visible = false;
}
Symbol 369 MovieClip Frame 2
init(DILKUX, DILKUY);
nastavMeze();
stvorPostavy();
stvorPotvory();
initFigurky();
var p = this.attachMovie("bitvaPrikazy", "prikazy", this.getNextHighestDepth(), {_x:12, _y:568, _xscale:70, _yscale:70});
p._visible = false;
if (h1.hrac && (!p1.hrac)) {
hlavniHrdina = h1;
}
Symbol 369 MovieClip Frame 3
urciRespektyVsech();
nasackuj(1);
if (!_root.typBoje) {
p1.zakaz = 10;
} else {
nasackuj(2);
}
_root.vysledek = 0;
if ((_root.kapitola == 1) && (_root.souboj == 4)) {
_root.prohlas("adviceSpear");
} else if (((_root.kapitola == 2) || (_root.kapitola == 3)) && (_root.typBoje == 2)) {
_root.prohlas("adviceBattle");
} else if (((_root.kapitola == 4) || (_root.kapitola == 5)) && (_root.souboj == 4)) {
_root.prohlas("adviceMaster");
} else if (_root.typBoje == 1) {
_root.prohlas("souboj");
} else if (_root.typBoje == 2) {
_root.prohlas("bitva");
} else {
casZastaven = 0;
}
cas = 0;
skore = 0;
misu = 0;
bloku = 0;
hitu = 0;
kilu = 0;
stop();
Symbol 369 MovieClip Frame 30
stop();
testujVysledek();
Symbol 369 MovieClip Frame 31
prevFrame();
Symbol 377 MovieClip Frame 1
OKbuton.onRelease = function () {
vysledek = _root.poznejKapitolu(inputek);
trace("poznana kapitola " + vysledek);
if (vysledek > 1) {
_root.nastavKapitolu(vysledek);
_root.typBoje = 1;
_root.skorePlati = false;
_root.gotoAndPlay("scenar");
}
};
Symbol 393 MovieClip Frame 2
_root.hraloSe = true;
Symbol 393 MovieClip Frame 51
_parent.play();
stop();
Symbol 394 MovieClip Frame 1
function umistiNa2D(h) {
var _local4;
var _local3;
var _local2 = h.zz - oko.zz;
_local3 = ((-oko.zz) * h.yy) / _local2;
_local4 = ((-oko.zz) * h.xx) / _local2;
h._y = (MAXY - _local3) - 80;
h.y0 = h._y;
h._x = _local4 + 400;
}
function ptaciUhel(h) {
var _local1;
_local1 = (Math.atan2(oko.zz - h.zz, oko.yy - h.yy) * 180) / Math.PI;
_local1 = int((_local1 + 450) - orientaceX);
return(_local1);
}
function rozdilUhlu(a, b) {
var _local3;
if ((b - a) > 180) {
a = a + 360;
} else if ((a - b) > 180) {
b = b + 360;
}
_local3 = b - a;
return(_local3);
}
function normovanejUhel(x) {
while ((x > 360) || (x < 0)) {
if (x > 360) {
x = x - 360;
} else if (x < 0) {
x = 360 - x;
}
}
return(x);
}
function dobryUhel(vx, vy, vz) {
if (vz > 0) {
return(0);
}
if (Math.abs(vz * 2) > Math.abs(vy)) {
return(0);
}
return(1);
}
function otocSe(rx, ry, rz, testujDobry) {
var _local2;
if (!rx) {
rx = 0;
}
if (!rz) {
rz = 0;
}
if (!ry) {
ry = 0;
}
var _local24 = h0.xx;
var _local23 = h0.yy;
var _local22 = h0.zz;
otocHoru(h0, 0, 0, 0, rx, ry, rz);
if (testujDobry) {
if (!dobryUhel(h0.xx, h0.yy, h0.zz)) {
h0.xx = _local24;
h0.yy = _local23;
h0.zz = _local22;
return(0);
}
}
orientaceX = orientaceX + rx;
if (orientaceX < 0) {
orientaceX = 360 + orientaceX;
}
if (orientaceX > 360) {
orientaceX = orientaceX - 360;
}
orientaceY = orientaceY + ry;
if (orientaceY < 0) {
orientaceY = 360 + orientaceY;
}
if (orientaceY > 360) {
orientaceY = orientaceY - 360;
}
orientaceZ = orientaceZ + rz;
if (orientaceZ < 0) {
orientaceZ = 360 + orientaceZ;
}
if (orientaceZ > 360) {
orientaceZ = orientaceZ - 360;
}
rx = (rx * Math.PI) / 180;
ry = (ry * Math.PI) / 180;
rz = (rz * Math.PI) / 180;
var _local13 = Math.sin(rx);
var _local15 = Math.cos(rx);
var _local11 = Math.sin(ry);
var _local14 = Math.cos(ry);
var _local10 = Math.sin(rz);
var _local12 = Math.cos(rz);
var _local5;
var _local4;
var _local3;
var _local8;
var _local7;
var _local9;
var _local16;
var _local18;
var _local17;
var _local6;
var _local1;
_local2 = 0;
while (_local2 < horyPole.length) {
_local1 = horyPole[_local2];
_local5 = _local1.xx - stred.xx;
_local4 = _local1.yy - stred.yy;
_local3 = _local1.zz - stred.zz;
_local8 = (_local15 * _local4) - (_local13 * _local3);
_local7 = (_local13 * _local4) + (_local15 * _local3);
_local16 = (_local14 * _local7) - (_local11 * _local5);
_local9 = (_local11 * _local7) + (_local14 * _local5);
_local18 = (_local12 * _local9) - (_local10 * _local8);
_local17 = (_local10 * _local9) + (_local12 * _local8);
_local6 = 1;
_local5 = _local18 * _local6;
_local4 = _local17 * _local6;
_local3 = _local16;
_local1.xx = _local5 + stred.xx;
_local1.yy = _local4 + stred.yy;
_local1.zz = _local3 + stred.zz;
umistiNa2D(horyPole[_local2]);
_local2++;
}
}
function nactiHory(x, y, z, r) {
if (x == undefined) {
x = stred.xx;
}
if (y == undefined) {
y = stred.yy;
}
if (z == undefined) {
z = stred.zz;
}
if (r == undefined) {
r = RADIUS;
}
if (MLZENI) {
if (!typTerenu) {
MLZENI = 2;
} else {
MLZENI = 1;
}
}
var _local4;
var _local3;
var _local5;
var _local7;
var _local8;
var _local6;
h0 = new Object();
h0.xx = 0;
h0.yy = 1;
h0.zz = 0;
_local4 = 1;
_local7 = 0;
this["x" + _local4] = int(this["x" + _local4]);
this["y" + _local4] = int(this["y" + _local4]);
this["z" + _local4] = int(this["z" + _local4]);
_local8 = this["x" + _local4];
while (_local8 != undefined) {
if (this["t" + _local4] == undefined) {
this["t" + _local4] = 1;
}
_local6 = int(this["t" + _local4]);
if (!_local6) {
_local4++;
_local8 = this["x" + _local4];
continue;
}
var _local9 = dalka(this["x" + _local4] - x, this["y" + _local4] - y, this["z" + _local4] - z);
if (_local9 > r) {
_local4++;
_local8 = this["x" + _local4];
continue;
}
if (_local6 <= 10) {
if (this["o" + _local4] == undefined) {
this["o" + _local4] = random(360);
}
if (this["p" + _local4] == undefined) {
this["p" + _local4] = 20 + random(80);
}
if (this["u" + _local4] == undefined) {
this["u" + _local4] = 100;
}
if (this["v" + _local4] == undefined) {
this["v" + _local4] = 40 + random(60);
}
_local3 = this.attachMovie("hora", "h" + (_local4 + _local7), this.getNextHighestDepth());
_local3.orientace = int(this["o" + _local4]);
_local3.pravidelnost = int(this["p" + _local4]);
_local3.upati = int(this["u" + _local4]);
_local3.velikost = int(this["v" + _local4]);
_local3.nejuzsi = int((_local3.velikost * _local3.pravidelnost) / 100);
_local3.hora.setMask(_local3.maska);
_local3.tvarStinu1 = random(36) + 1;
_local3.tvarStinu2 = random(36) + 1;
_local3.trans = new flash.geom.Transform(_local3);
} else if (_local6 <= 20) {
this["v" + _local4] = 50;
if (_local6 == 11) {
_local3 = this.attachMovie("stromek1", "h" + (_local4 + _local7), this.getNextHighestDepth());
} else if (_local6 == 12) {
_local3 = this.attachMovie("stromek2", "h" + (_local4 + _local7), this.getNextHighestDepth());
} else if (_local6 == 14) {
_local3 = this.attachMovie("stromek3", "h" + (_local4 + _local7), this.getNextHighestDepth());
}
_local3.velikost = int(this["v" + _local4]);
_local3.stromek.setMask(_local3.maska);
_local3.trans = new flash.geom.Transform(_local3);
} else if (_local6 <= 30) {
if (_local6 == 28) {
_local3 = this.attachMovie("stanSpic", "h" + (_local4 + _local7), this.getNextHighestDepth());
_local3.orientace = int(this["o" + _local4]);
_local3.upati = int(this["u" + _local4]);
_local3.velikost = int(this["v" + _local4] / 3);
} else {
if (this["o" + _local4] == undefined) {
this["o" + _local4] = random(360);
}
if (this["u" + _local4] == undefined) {
this["u" + _local4] = 0;
}
if (this["v" + _local4] == undefined) {
this["v" + _local4] = 50;
}
_local3 = this.attachMovie("domek", "h" + (_local4 + _local7), this.getNextHighestDepth());
_local3.orientace = int(this["o" + _local4]);
_local3.upati = int(this["u" + _local4]);
_local3.velikost = int(this["v" + _local4] / 3);
_local3.zed.z0.zdivo.setMask(_local3.zed.z0.maska);
_local3.zed.z1.zdivo.setMask(_local3.zed.z1.maska);
if (_local3.upati < 3) {
_local3.zed.z1.gotoAndStop(2);
} else {
_local3.zed.z1.gotoAndStop(3);
}
_local3.zed.z2.zdivo.setMask(_local3.zed.z2.maska);
_local3.trans = new flash.geom.Transform(_local3);
if (_local6 < 25) {
_local3.strecha1._visible = false;
_local3.strecha2._visible = false;
_local3.strecha3._visible = false;
}
if (_local6 > 23) {
_local3.strecha._visible = false;
}
if (_local6 == 25) {
_local3.strecha2._visible = false;
_local3.strecha3._visible = false;
}
if (_local6 == 26) {
_local3.strecha3._visible = false;
}
}
} else if (_local6 <= 40) {
} else if (_local6 <= 50) {
_local3 = this.attachMovie("flek", "h" + (_local4 + _local7), this.getNextHighestDepth());
_local3.velikost = int(this["v" + _local4]);
_local3.orientace = int(this["o" + _local4]);
_local3.pravidelnost = int(this["p" + _local4]);
}
_local3.id = this["i" + _local4];
if (!_local3.id) {
_local3.id = "";
}
_local3.skup = this["g" + _local4];
if (!_local3.skup) {
_local3.skup = "";
}
_local3.xx = int(this["x" + _local4]);
_local3.yy = int(this["y" + _local4]);
_local3.zz = int(this["z" + _local4]);
_local3.dalka = int(this["dalka" + _local4]);
_local3.uhelY = int(this["uhelY" + _local4]);
_local3.uhelX = int(this["uhelX" + _local4]);
_local3.typ = _local6;
_local3.cislo = _local4 + _local7;
horyPole.push(_local3);
if (_local3.id.length && (smiZobrazitCedulku(_local3.id))) {
_local7++;
_local5 = this.attachMovie("cedule", "h" + (_local4 + _local7), this.getNextHighestDepth());
_local5.velikost = 100;
_local5.obsah = this["i" + _local4];
_local5.id = this["i" + _local4];
if (!_local5.id) {
_local5.id = "";
}
_local5.skup = this["g" + _local4];
if (!_local5.skup) {
_local5.skup = "";
}
_local5.xx = int(this["x" + _local4]);
_local5.yy = int(this["y" + _local4]);
_local5.yy = _local5.yy + 15000;
_local5.zz = int(this["z" + _local4]);
_local5.dalka = int(this["dalka" + _local4]);
_local5.uhelY = int(this["uhelY" + _local4]);
_local5.uhelX = int(this["uhelX" + _local4]);
_local5.typ = 41;
_local5.cislo = _local4 + _local7;
_local5.kap = _root.urciKapitolu(_local5.id);
horyPole.push(_local5);
}
_local4++;
_local8 = this["x" + _local4];
_local3.trans = new flash.geom.Transform(_local3);
}
}
function pripravCedulky(k) {
trace("cedulky jsou " + viditelnyCedulky);
viditelnyCedulky.splice(0);
if (!k) {
viditelnyCedulky.push("");
return(0);
}
k = (k >> 1) + 1;
viditelnyCedulky.push(k + "aa");
viditelnyCedulky.push(k + "bb");
trace("cedulky jsou " + viditelnyCedulky);
}
function smiZobrazitCedulku(s) {
if (!s.length) {
return(0);
}
if (!viditelnyCedulky.length) {
return(1);
}
var _local1;
_local1 = 0;
while (_local1 < viditelnyCedulky.length) {
if (viditelnyCedulky[_local1] == s) {
return(1);
}
_local1++;
}
return(0);
}
function zmiz() {
_visible = false;
}
function zobrazHory() {
rozvrstvi();
var _local1;
var _local2;
var _local3;
_local1 = 0;
while (_local1 < horyPole.length) {
_local2 = horyPole[_local1];
_local2.zobraz();
_local1++;
}
}
function zamlzDoDalky(koho) {
if (!MLZENI) {
return(0);
}
delete koho.trans.colorTransform;
var _local1;
var _local3;
var _local4;
var _local2;
if (MLZENI == 1) {
_local3 = 52;
_local4 = 128;
_local2 = 177;
} else {
_local3 = 0;
_local4 = 0;
_local2 = 0;
}
_local1 = 1 - (((koho.vodVoka3d - minVodVoka) / (maxVodVoka - minVodVoka)) * 1);
koho.trans.colorTransform = new flash.geom.ColorTransform(1 * _local1, 1 * _local1, 1 * _local1, 1, (1 - _local1) * _local3, (1 - _local1) * _local4, (1 - _local1) * _local2, 0);
}
function najdiStred(id, id0) {
stred.xx = undefined;
stred.yy = undefined;
stred.zz = undefined;
stred0.xx = undefined;
stred0.yy = undefined;
stred0.zz = undefined;
var _local2;
var _local4;
var _local3;
var _local11;
var _local12;
var _local8;
var _local9;
var _local13;
var _local10;
_local11 = 1000000 /* 0x0F4240 */;
_local8 = -1000000;
_local12 = 1000000 /* 0x0F4240 */;
_local9 = -1000000;
_local13 = 1000000 /* 0x0F4240 */;
_local10 = -1000000;
_local2 = 1;
while (_local2 <= pocetObjektu) {
this["x" + _local2] = this["x" + _local2] * 300;
this["y" + _local2] = this["y" + _local2] * 300;
this["z" + _local2] = (this["z" + _local2] * 300) + 80000;
_local4 = this["x" + _local2];
_local3 = this["y" + _local2];
z = this["z" + _local2];
if (id != undefined) {
if (this["i" + _local2] == id) {
stred.xx = _local4;
stred.yy = _local3;
stred.zz = z;
} else if ((id0 != undefined) && (this["i" + _local2] == id0)) {
stred0.xx = _local4;
stred0.yy = _local3;
stred0.zz = z;
}
}
if (_local4 < _local11) {
_local11 = _local4;
}
if (_local3 < _local12) {
_local12 = _local3;
}
if (z < _local13) {
_local13 = z;
}
if (_local4 > _local8) {
_local8 = _local4;
}
if (_local3 > _local9) {
_local9 = _local3;
}
if (z > _local10) {
_local10 = z;
}
_local2++;
}
if ((stred.xx == undefined) && (stred0.xx == undefined)) {
trace((("urcen nahradni stred za " + id) + " i ") + id0);
stred.xx = Math.round((_local8 + _local11) / 2);
stred.yy = Math.round((_local9 + _local12) / 2);
stred.zz = Math.round((_local10 + _local13) / 2);
}
var _local7;
var _local6;
var _local5;
if ((stred.xx == undefined) && (stred0.xx != undefined)) {
stred.xx = stred0.xx;
stred.yy = stred0.yy;
stred.zz = stred0.zz;
}
_local2 = 1;
while (_local2 <= pocetObjektu) {
_local7 = this["x" + _local2] - stred.xx;
_local6 = this["y" + _local2] - stred.yy;
_local5 = this["z" + _local2] - stred.zz;
this["dalka" + _local2] = dalka(_local7, _local6, _local5);
this["uhelY" + _local2] = (Math.atan2(_local5, _local7) / Math.PI) * 180;
if (!this["uhelY" + _local2]) {
this["uhelY" + _local2] = 0;
}
this["uhelX" + _local2] = (Math.atan2(_local6, -_local5) / Math.PI) * 180;
_local2++;
}
}
function soupniKeKamere(x, y, z) {
soupniSe(oko.xx - x, 0, DALKAKAMERY - z);
}
function soupniSe(dx, dy, dz) {
var _local1;
var _local7;
var _local2;
var _local6;
var _local10;
var _local9;
var _local8;
_local1 = 0;
while (_local1 < horyPole.length) {
_local2 = horyPole[_local1];
_local2.xx = _local2.xx + dx;
_local2.yy = _local2.yy + dy;
_local2.zz = _local2.zz + dz;
_local1++;
}
stred.xx = stred.xx + dx;
stred.yy = stred.yy + dy;
stred.zz = stred.zz + dz;
}
function jeNaZemi(kdo) {
if ((kdo.typ > 40) && (kdo.typ <= 50)) {
return(1);
}
return(0);
}
function rozvrstvi() {
var _local2;
var _local3;
var _local1;
var _local4;
var _local7;
var _local6;
var _local5;
_local2 = 0;
while (_local2 < horyPole.length) {
_local1 = horyPole[_local2];
_local7 = _local1.xx - oko.xx;
_local5 = _local1.zz - oko.zz;
_local6 = _local1.yy - oko.yy;
_local1.vodVoka = Math.sqrt((_local7 * _local7) + (_local5 * _local5));
_local1.vodVoka3d = Math.sqrt((_local1.vodVoka * _local1.vodVoka) + (_local6 * _local6));
_local1.vodVokaYZ = Math.sqrt((_local6 * _local6) + (_local5 * _local5));
if (_local1.vodVoka3d > maxVodVoka) {
maxVodVoka = _local1.vodVoka3d;
}
if (_local1.vodVoka3d < minVodVoka) {
minVodVoka = _local1.vodVoka3d;
}
_local2++;
}
_local2 = 0;
while (_local2 < horyPole.length) {
_local3 = 0;
while (_local3 < horyPole.length) {
if (_local2 == _local3) {
} else {
if (horyPole[_local2].vodVoka3d < horyPole[_local3].vodVoka3d) {
_local1 = horyPole[_local2];
_local4 = horyPole[_local3];
} else {
_local4 = horyPole[_local2];
_local1 = horyPole[_local3];
}
if (_local4.getDepth() > _local1.getDepth()) {
_local1.swapDepths(_local4);
}
}
_local3++;
}
_local2++;
}
}
function dalka(x, y, z) {
var _local1;
_local1 = Math.sqrt((x * x) + (z * z));
_local1 = Math.sqrt((_local1 * _local1) + (y * y));
return(_local1);
}
function urciUhelKeStredu(h) {
var _local4 = h.xx - stred.xx;
var _local2 = h.zz - stred.zz;
var _local3 = h.yy - stred.yy;
h.dalka = dalka(_local4, _local3, _local2);
h.uhelY = (Math.atan2(_local2, _local4) / Math.PI) * 180;
if (!h.uhelY) {
h.uhel = 0;
}
h.uhelY0 = h.uhelY;
h.uhelX = (Math.atan2(_local3, -_local2) / Math.PI) * 180;
h.uhelX0 = h.uhelX;
trace((((((((((((("Dalka hory " + h) + " od stredu(") + stred.xx) + ",") + stred.yy) + ",") + stred.zz) + ") je ") + h.dalka) + " a uhel je ") + h.uhelY) + " a uhel vert je ") + h.uhelX);
}
function otocHoru(h, smx, smy, smz, rx, ry, rz) {
rx = (rx * Math.PI) / 180;
ry = (ry * Math.PI) / 180;
rz = (rz * Math.PI) / 180;
var _local10 = Math.sin(rx);
var _local14 = Math.cos(rx);
var _local7 = Math.sin(ry);
var _local11 = Math.cos(ry);
var _local5 = Math.sin(rz);
var _local8 = Math.cos(rz);
var _local4;
var _local3;
var _local1;
var _local16;
var _local15;
var _local17;
var _local18;
var _local20;
var _local19;
var _local12;
_local4 = h.xx - smx;
_local3 = h.yy - smy;
_local1 = h.zz - smz;
_local16 = (_local14 * _local3) - (_local10 * _local1);
_local15 = (_local10 * _local3) + (_local14 * _local1);
_local18 = (_local11 * _local15) - (_local7 * _local4);
_local17 = (_local7 * _local15) + (_local11 * _local4);
_local20 = (_local8 * _local17) - (_local5 * _local16);
_local19 = (_local5 * _local17) + (_local8 * _local16);
_local12 = 1;
_local4 = _local20 * _local12;
_local3 = _local19 * _local12;
_local1 = _local18;
h.xx = _local4 + smx;
h.yy = _local3 + smy;
h.zz = _local1 + smz;
}
function ulozMapu() {
var _local2;
i = 0;
while (i < horyPole.length) {
_local2 = this["h" + i];
if (!_local2.typ) {
} else if (_local2.typ == 1) {
this["x" + i] = _local2.xx;
this["y" + i] = _local2.yy;
this["z" + i] = _local2.zz;
this["o" + i] = _local2.orientace;
this["p" + i] = _local2.pravidelnost;
this["u" + i] = _local2.upati;
this["v" + i] = _local2.velikost;
}
i++;
}
loadVariables ("uloz_mapu.php", this, "POST");
}
function nactiMapu(kolik) {
if (!kolik) {
kolik = "";
}
loadVariables (("mapka" + kolik) + ".txt", this);
}
MAXX = 800;
MAXY = 400;
MLZENI = 1;
VELIKOST = 200000 /* 0x030D40 */;
RADIUS = 60000;
DALKAKAMERY = 200000 /* 0x030D40 */;
viditelnyCedulky = new Array();
var nech = (new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0));
var nechTmava = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
var modra = (new flash.geom.ColorTransform(0, 0, 0, 1, 12, 138, 222, 0));
var modraTmava = (new flash.geom.ColorTransform(0, 0, 0, 1, 7, 90, 146, 0));
x = 1;
while (x <= 15) {
this["trans" + x] = new flash.geom.Transform(this["h" + x]);
x++;
}
var oko = new Object();
var stred = new Object();
var stred0 = new Object();
oko.xx = 0;
oko.yy = 0;
oko.zz = -800;
_root.textik = "Hory3D demo. www.thunderbird.cz";
horyPole = new Array();
orientaceX = 0;
orientaceY = 0;
orientaceZ = 0;
jakobyVyska = 0;
maxVodVoka = 10;
minVodVoka = 100000000 /* 0x5F5E100 */;
Symbol 394 MovieClip Frame 2
typTerenu = 0;
t1 = 1;
x1 = -47;
y1 = 0;
z1 = 577;
v1 = 60;
o1 = 328;
p1 = 86;
u1 = 100;
t2 = 1;
x2 = 53;
y2 = 0;
z2 = 577;
v2 = 60;
o2 = 234;
p2 = 37;
u2 = 100;
t3 = 1;
x3 = -14;
y3 = 0;
z3 = 599;
v3 = 88;
o3 = 202;
p3 = 52;
u3 = 100;
t4 = 1;
x4 = -88;
y4 = 0;
z4 = 623;
v4 = 108;
o4 = 247;
p4 = 93;
u4 = 100;
t5 = 12;
x5 = -167;
y5 = 0;
z5 = 619;
v5 = 50;
t6 = 12;
x6 = -135;
y6 = 0;
z6 = 603;
v6 = 50;
t7 = 12;
x7 = -77;
y7 = 0;
z7 = 673;
v7 = 50;
t8 = 12;
x8 = -115;
y8 = 0;
z8 = 711;
v8 = 50;
t9 = 12;
x9 = -52;
y9 = 0;
z9 = 746;
v9 = 50;
i9 = "2b";
t10 = 12;
x10 = -206;
y10 = 0;
z10 = 671;
v10 = 50;
t11 = 21;
x11 = -111;
y11 = 0;
z11 = 657;
v11 = 100;
o11 = 25;
u11 = 1;
i11 = "1aa";
t12 = 12;
x12 = 26;
y12 = 0;
z12 = 559;
v12 = 50;
t13 = 12;
x13 = 41;
y13 = 0;
z13 = 595;
v13 = 50;
t14 = 1;
x14 = 42;
y14 = 0;
z14 = 698;
v14 = 92;
o14 = 337;
p14 = 52;
u14 = 100;
t15 = 1;
x15 = 118;
y15 = 0;
z15 = 726;
v15 = 109;
o15 = 217;
p15 = 75;
u15 = 100;
t16 = 12;
x16 = 117;
y16 = 0;
z16 = 674;
v16 = 50;
t17 = 12;
x17 = 149;
y17 = 0;
z17 = 642;
v17 = 50;
t18 = 12;
x18 = -147;
y18 = 0;
z18 = 673;
v18 = 50;
t19 = 12;
x19 = -139;
y19 = 0;
z19 = 634;
v19 = 50;
t20 = 1;
x20 = -151;
y20 = 0;
z20 = 707;
v20 = 89;
o20 = 6;
p20 = 73;
u20 = 100;
t21 = 12;
x21 = -109;
y21 = 0;
z21 = 682;
v21 = 50;
t22 = 1;
x22 = -193;
y22 = 0;
z22 = 807;
v22 = 112;
o22 = 8;
p22 = 74;
u22 = 100;
t23 = 1;
x23 = -91;
y23 = 0;
z23 = 800;
v23 = 95;
o23 = 262;
p23 = 42;
u23 = 100;
t24 = 1;
x24 = -142;
y24 = 0;
z24 = 770;
v24 = 118;
o24 = 258;
p24 = 63;
u24 = 100;
t25 = 1;
x25 = -211;
y25 = 0;
z25 = 888;
v25 = 106;
o25 = 45;
p25 = 50;
u25 = 100;
t26 = 1;
x26 = -149;
y26 = 0;
z26 = 942;
v26 = 72;
o26 = 168;
p26 = 28;
u26 = 100;
t27 = 26;
x27 = -110;
y27 = 0;
z27 = 823;
v27 = 100;
o27 = 34;
u27 = 50;
i27 = "2aa";
t28 = 12;
x28 = -164;
y28 = 0;
z28 = 861;
v28 = 50;
t29 = 12;
x29 = -228;
y29 = 0;
z29 = 837;
v29 = 50;
t30 = 12;
x30 = -175;
y30 = 0;
z30 = 898;
v30 = 50;
t31 = 12;
x31 = -192;
y31 = 0;
z31 = 860;
v31 = 50;
t32 = 12;
x32 = -166;
y32 = 0;
z32 = 796;
v32 = 50;
t33 = 12;
x33 = -193;
y33 = 0;
z33 = 781;
v33 = 50;
t34 = 12;
x34 = -184;
y34 = 0;
z34 = 745;
v34 = 50;
t35 = 12;
x35 = -224;
y35 = 0;
z35 = 763;
v35 = 50;
t36 = 11;
x36 = -126;
y36 = 0;
z36 = 843;
v36 = 50;
t37 = 11;
x37 = -152;
y37 = 0;
z37 = 888;
v37 = 50;
t38 = 11;
x38 = -203;
y38 = 0;
z38 = 826;
v38 = 50;
t39 = 11;
x39 = -235;
y39 = 0;
z39 = 790;
v39 = 50;
t40 = 12;
x40 = -75;
y40 = 0;
z40 = 848;
v40 = 50;
t41 = 12;
x41 = -113;
y41 = 0;
z41 = 889;
v41 = 50;
t42 = 12;
x42 = -86;
y42 = 0;
z42 = 761;
v42 = 50;
t43 = 1;
x43 = 32;
y43 = 0;
z43 = 898;
v43 = 72;
o43 = 295;
p43 = 66;
u43 = 100;
t44 = 12;
x44 = 173;
y44 = 0;
z44 = 902;
v44 = 50;
t45 = 12;
x45 = 187;
y45 = 0;
z45 = 879;
v45 = 50;
t46 = 41;
x46 = -148;
y46 = 0;
z46 = 824;
v46 = 126;
o46 = 0;
p46 = 100;
t47 = 14;
x47 = -36;
y47 = 0;
z47 = 551;
v47 = 50;
t48 = 28;
x48 = 31;
y48 = 0;
z48 = 750;
v48 = 100;
o48 = 219;
u48 = 1;
i48 = "2a";
t49 = 28;
x49 = 66;
y49 = 0;
z49 = 841;
v49 = 100;
o49 = 245;
u49 = 1;
i49 = "2bb";
t50 = 28;
x50 = 85;
y50 = 0;
z50 = 855;
v50 = 100;
o50 = 98;
u50 = 1;
t51 = 28;
x51 = 62;
y51 = 0;
z51 = 863;
v51 = 100;
o51 = 140;
u51 = 1;
t52 = 26;
x52 = -128;
y52 = 0;
z52 = 1014;
v52 = 100;
o52 = 66;
u52 = 50;
i52 = "3a";
t53 = 23;
x53 = -145;
y53 = 0;
z53 = 987;
v53 = 100;
o53 = 62;
u53 = 1;
t54 = 23;
x54 = -152;
y54 = 0;
z54 = 1007;
v54 = 100;
o54 = 62;
u54 = 1;
t55 = 23;
x55 = -160;
y55 = 0;
z55 = 1026;
v55 = 100;
o55 = 62;
u55 = 1;
t56 = 23;
x56 = -94;
y56 = 0;
z56 = 997;
v56 = 100;
o56 = 62;
u56 = 1;
t57 = 23;
x57 = -104;
y57 = 0;
z57 = 1016;
v57 = 100;
o57 = 62;
u57 = 1;
t58 = 23;
x58 = -112;
y58 = 0;
z58 = 1034;
v58 = 100;
o58 = 62;
u58 = 1;
t59 = 1;
x59 = -186;
y59 = 0;
z59 = 979;
v59 = 81;
o59 = 99;
p59 = 77;
u59 = 100;
t60 = 1;
x60 = -139;
y60 = 0;
z60 = 1066;
v60 = 64;
o60 = 331;
p60 = 52;
u60 = 100;
t61 = 1;
x61 = -70;
y61 = 0;
z61 = 962;
v61 = 89;
o61 = 116;
p61 = 32;
u61 = 100;
t62 = 14;
x62 = 15;
y62 = 0;
z62 = 1089;
v62 = 50;
t63 = 14;
x63 = -46;
y63 = 0;
z63 = 1054;
v63 = 50;
i63 = "3aa";
t64 = 14;
x64 = 39;
y64 = 0;
z64 = 1048;
v64 = 50;
t65 = 14;
x65 = 14;
y65 = 0;
z65 = 1019;
v65 = 50;
t66 = 14;
x66 = 22;
y66 = 0;
z66 = 1065;
v66 = 50;
t67 = 14;
x67 = 5;
y67 = 0;
z67 = 1053;
v67 = 50;
i67 = "3bb";
t68 = 14;
x68 = 34;
y68 = 0;
z68 = 1106;
v68 = 50;
t69 = 14;
x69 = 75;
y69 = 0;
z69 = 1096;
v69 = 50;
t70 = 14;
x70 = 54;
y70 = 0;
z70 = 1086;
v70 = 50;
t71 = 14;
x71 = 79;
y71 = 0;
z71 = 1052;
v71 = 50;
t72 = 14;
x72 = 41;
y72 = 0;
z72 = 1005;
v72 = 50;
t73 = 14;
x73 = 95;
y73 = 0;
z73 = 1003;
v73 = 50;
t74 = 14;
x74 = 70;
y74 = 0;
z74 = 1026;
v74 = 50;
t75 = 14;
x75 = 111;
y75 = 0;
z75 = 1060;
v75 = 50;
t76 = 14;
x76 = 80;
y76 = 0;
z76 = 1076;
v76 = 50;
t77 = 1;
x77 = 71;
y77 = 0;
z77 = 966;
v77 = 62;
o77 = 91;
p77 = 72;
u77 = 100;
t78 = 1;
x78 = 120;
y78 = 0;
z78 = 988;
v78 = 102;
o78 = 152;
p78 = 27;
u78 = 100;
t79 = 1;
x79 = 157;
y79 = 0;
z79 = 957;
v79 = 69;
o79 = 137;
p79 = 20;
u79 = 100;
t80 = 1;
x80 = 160;
y80 = 0;
z80 = 995;
v80 = 111;
o80 = 162;
p80 = 49;
u80 = 100;
t81 = 1;
x81 = 114;
y81 = 0;
z81 = 937;
v81 = 74;
o81 = 303;
p81 = 55;
u81 = 100;
t82 = 24;
x82 = 126;
y82 = 0;
z82 = 1009;
v82 = 100;
o82 = 301;
u82 = 50;
i82 = "3b";
t83 = 26;
x83 = -42;
y83 = 0;
z83 = 1145;
v83 = 100;
o83 = 331;
u83 = 50;
i83 = "4";
t84 = 1;
x84 = -87;
y84 = 0;
z84 = 1196;
v84 = 64;
o84 = 56;
p84 = 80;
u84 = 100;
t85 = 1;
x85 = -52;
y85 = 0;
z85 = 1224;
v85 = 83;
o85 = 140;
p85 = 44;
u85 = 100;
i85 = "4aa";
t86 = 1;
x86 = 16;
y86 = 0;
z86 = 1202;
v86 = 61;
o86 = 187;
p86 = 23;
u86 = 100;
t87 = 12;
x87 = -27;
y87 = 0;
z87 = 1190;
v87 = 50;
t88 = 12;
x88 = -9;
y88 = 0;
z88 = 1214;
v88 = 50;
t89 = 12;
x89 = -100;
y89 = 0;
z89 = 1226;
v89 = 50;
t90 = 12;
x90 = 58;
y90 = 0;
z90 = 1247;
v90 = 50;
t91 = 12;
x91 = 110;
y91 = 0;
z91 = 1265;
v91 = 50;
t92 = 14;
x92 = -153;
y92 = 0;
z92 = 1257;
v92 = 50;
t93 = 14;
x93 = -165;
y93 = 0;
z93 = 1307;
v93 = 50;
t94 = 14;
x94 = -192;
y94 = 0;
z94 = 1279;
v94 = 50;
t95 = 14;
x95 = -167;
y95 = 0;
z95 = 1338;
v95 = 50;
t96 = 27;
x96 = -35;
y96 = 0;
z96 = 1311;
v96 = 100;
o96 = 222;
u96 = 70;
i96 = "5aa";
t97 = 22;
x97 = -65;
y97 = 0;
z97 = 1270;
v97 = 100;
o97 = 185;
u97 = 1;
t98 = 22;
x98 = -91;
y98 = 0;
z98 = 1304;
v98 = 100;
o98 = 185;
u98 = 1;
t99 = 22;
x99 = -89;
y99 = 0;
z99 = 1328;
v99 = 100;
o99 = 185;
u99 = 1;
t100 = 22;
x100 = 0;
y100 = 0;
z100 = 1286;
v100 = 100;
o100 = 185;
u100 = 1;
t101 = 22;
x101 = 0;
y101 = 0;
z101 = 1307;
v101 = 100;
o101 = 185;
u101 = 1;
t102 = 22;
x102 = 0;
y102 = 0;
z102 = 1332;
v102 = 100;
o102 = 185;
u102 = 1;
t103 = 23;
x103 = 22;
y103 = 0;
z103 = 1281;
v103 = 100;
o103 = 182;
u103 = 1;
t104 = 23;
x104 = 24;
y104 = 0;
z104 = 1306;
v104 = 100;
o104 = 182;
u104 = 1;
t105 = 23;
x105 = 26;
y105 = 0;
z105 = 1326;
v105 = 100;
o105 = 182;
u105 = 1;
t106 = 23;
x106 = -86;
y106 = 0;
z106 = 1273;
v106 = 100;
o106 = 182;
u106 = 1;
t107 = 26;
x107 = -62;
y107 = 0;
z107 = 1343;
v107 = 100;
o107 = 217;
u107 = 50;
t108 = 26;
x108 = -24;
y108 = 0;
z108 = 1346;
v108 = 100;
o108 = 217;
u108 = 50;
t109 = 22;
x109 = -6;
y109 = 0;
z109 = 1375;
v109 = 100;
o109 = 17;
u109 = 1;
t110 = 22;
x110 = -37;
y110 = 0;
z110 = 1380;
v110 = 100;
o110 = 17;
u110 = 1;
t111 = 22;
x111 = -67;
y111 = 0;
z111 = 1383;
v111 = 100;
o111 = 17;
u111 = 1;
t112 = 22;
x112 = -93;
y112 = 0;
z112 = 1363;
v112 = 100;
o112 = 17;
u112 = 1;
i112 = "5";
t113 = 14;
x113 = -198;
y113 = 0;
z113 = 1340;
v113 = 50;
t114 = 14;
x114 = -214;
y114 = 0;
z114 = 1309;
v114 = 50;
t115 = 14;
x115 = -169;
y115 = 0;
z115 = 1233;
v115 = 50;
t116 = 14;
x116 = -133;
y116 = 0;
z116 = 1221;
v116 = 50;
t117 = 12;
x117 = 111;
y117 = 0;
z117 = 1194;
v117 = 50;
t118 = 12;
x118 = 44;
y118 = 0;
z118 = 1176;
v118 = 50;
t119 = 14;
x119 = 65;
y119 = 0;
z119 = 1185;
v119 = 50;
t120 = 14;
x120 = 109;
y120 = 0;
z120 = 1144;
v120 = 50;
t121 = 14;
x121 = 67;
y121 = 0;
z121 = 1127;
v121 = 50;
t122 = 12;
x122 = -198;
y122 = 0;
z122 = 1161;
v122 = 50;
t123 = 1;
x123 = -215;
y123 = 0;
z123 = 1204;
v123 = 99;
o123 = 205;
p123 = 82;
u123 = 100;
t124 = 1;
x124 = 155;
y124 = 0;
z124 = 1173;
v124 = 99;
o124 = 205;
p124 = 82;
u124 = 100;
t125 = 1;
x125 = -190;
y125 = 0;
z125 = 1100;
v125 = 99;
o125 = 205;
p125 = 82;
u125 = 100;
t126 = 41;
x126 = -138;
y126 = 0;
z126 = 1140;
v126 = 204;
o126 = 0;
p126 = 100;
t127 = 41;
x127 = -112;
y127 = 0;
z127 = 1135;
v127 = 108;
o127 = 0;
p127 = 100;
t128 = 41;
x128 = -100;
y128 = 0;
z128 = 1130;
v128 = 204;
o128 = 0;
p128 = 100;
t129 = 41;
x129 = -88;
y129 = 0;
z129 = 1123;
v129 = 114;
o129 = 0;
p129 = 100;
t130 = 41;
x130 = -72;
y130 = 0;
z130 = 1116;
v130 = 114;
o130 = 0;
p130 = 100;
t131 = 41;
x131 = -57;
y131 = 0;
z131 = 1112;
v131 = 114;
o131 = 0;
p131 = 100;
t132 = 41;
x132 = -43;
y132 = 0;
z132 = 1105;
v132 = 114;
o132 = 0;
p132 = 100;
t133 = 41;
x133 = -33;
y133 = 0;
z133 = 1094;
v133 = 114;
o133 = 0;
p133 = 100;
t134 = 41;
x134 = -29;
y134 = 0;
z134 = 1079;
v134 = 114;
o134 = 0;
p134 = 100;
t135 = 41;
x135 = -25;
y135 = 0;
z135 = 1062;
v135 = 114;
o135 = 0;
p135 = 100;
t136 = 41;
x136 = -20;
y136 = 0;
z136 = 1044;
v136 = 114;
o136 = 0;
p136 = 100;
t137 = 41;
x137 = -17;
y137 = 0;
z137 = 1028;
v137 = 114;
o137 = 0;
p137 = 100;
t138 = 41;
x138 = -10;
y138 = 0;
z138 = 1012;
v138 = 114;
o138 = 0;
p138 = 100;
t139 = 41;
x139 = -1;
y139 = 0;
z139 = 999;
v139 = 114;
o139 = 0;
p139 = 100;
t140 = 41;
x140 = 8;
y140 = 0;
z140 = 986;
v140 = 114;
o140 = 0;
p140 = 100;
t141 = 41;
x141 = 21;
y141 = 0;
z141 = 972;
v141 = 114;
o141 = 0;
p141 = 100;
t142 = 41;
x142 = 30;
y142 = 0;
z142 = 961;
v142 = 114;
o142 = 0;
p142 = 100;
t143 = 41;
x143 = 40;
y143 = 0;
z143 = 948;
v143 = 114;
o143 = 0;
p143 = 100;
t144 = 41;
x144 = 51;
y144 = 0;
z144 = 933;
v144 = 114;
o144 = 0;
p144 = 100;
t145 = 41;
x145 = 64;
y145 = 0;
z145 = 922;
v145 = 114;
o145 = 0;
p145 = 100;
t146 = 41;
x146 = 80;
y146 = 0;
z146 = 913;
v146 = 114;
o146 = 0;
p146 = 100;
t147 = 41;
x147 = 91;
y147 = 0;
z147 = 904;
v147 = 114;
o147 = 0;
p147 = 100;
t148 = 41;
x148 = 106;
y148 = 0;
z148 = 896;
v148 = 114;
o148 = 0;
p148 = 100;
t149 = 41;
x149 = 119;
y149 = 0;
z149 = 888;
v149 = 114;
o149 = 0;
p149 = 100;
t150 = 41;
x150 = 132;
y150 = 0;
z150 = 882;
v150 = 90;
o150 = 0;
p150 = 100;
t151 = 41;
x151 = -30;
y151 = 0;
z151 = 1105;
v151 = 90;
o151 = 0;
p151 = 100;
t152 = 41;
x152 = -22;
y152 = 0;
z152 = 1110;
v152 = 90;
o152 = 0;
p152 = 100;
t153 = 41;
x153 = -13;
y153 = 0;
z153 = 1118;
v153 = 90;
o153 = 0;
p153 = 100;
t154 = 41;
x154 = 0;
y154 = 0;
z154 = 1125;
v154 = 90;
o154 = 0;
p154 = 100;
t155 = 41;
x155 = 10;
y155 = 0;
z155 = 1127;
v155 = 90;
o155 = 0;
p155 = 100;
t156 = 41;
x156 = 20;
y156 = 0;
z156 = 1131;
v156 = 90;
o156 = 0;
p156 = 100;
t157 = 41;
x157 = 29;
y157 = 0;
z157 = 1140;
v157 = 90;
o157 = 0;
p157 = 100;
t158 = 41;
x158 = 40;
y158 = 0;
z158 = 1147;
v158 = 90;
o158 = 0;
p158 = 100;
t159 = 41;
x159 = 52;
y159 = 0;
z159 = 1150;
v159 = 90;
o159 = 0;
p159 = 100;
t160 = 41;
x160 = 63;
y160 = 0;
z160 = 1148;
v160 = 90;
o160 = 0;
p160 = 100;
t161 = 41;
x161 = 76;
y161 = 0;
z161 = 1143;
v161 = 90;
o161 = 0;
p161 = 100;
t162 = 41;
x162 = 87;
y162 = 0;
z162 = 1138;
v162 = 90;
o162 = 0;
p162 = 100;
t163 = 41;
x163 = 94;
y163 = 0;
z163 = 1130;
v163 = 90;
o163 = 0;
p163 = 100;
t164 = 41;
x164 = 103;
y164 = 0;
z164 = 1122;
v164 = 90;
o164 = 0;
p164 = 100;
t165 = 41;
x165 = 115;
y165 = 0;
z165 = 1115;
v165 = 90;
o165 = 0;
p165 = 100;
t166 = 41;
x166 = 125;
y166 = 0;
z166 = 1110;
v166 = 90;
o166 = 0;
p166 = 100;
t167 = 41;
x167 = 134;
y167 = 0;
z167 = 1106;
v167 = 90;
o167 = 0;
p167 = 100;
t168 = 41;
x168 = 147;
y168 = 0;
z168 = 1101;
v168 = 90;
o168 = 0;
p168 = 100;
t169 = 41;
x169 = 162;
y169 = 0;
z169 = 1098;
v169 = 90;
o169 = 0;
p169 = 100;
t170 = 41;
x170 = 175;
y170 = 0;
z170 = 1102;
v170 = 90;
o170 = 0;
p170 = 100;
t171 = 41;
x171 = 186;
y171 = 0;
z171 = 1110;
v171 = 90;
o171 = 0;
p171 = 100;
t172 = 41;
x172 = 197;
y172 = 0;
z172 = 1117;
v172 = 90;
o172 = 0;
p172 = 100;
t173 = 41;
x173 = 207;
y173 = 0;
z173 = 1122;
v173 = 90;
o173 = 0;
p173 = 100;
t174 = 41;
x174 = 218;
y174 = 0;
z174 = 1127;
v174 = 90;
o174 = 0;
p174 = 100;
t175 = 41;
x175 = -169;
y175 = 0;
z175 = 1193;
v175 = 150;
o175 = 0;
p175 = 100;
t176 = 41;
x176 = -242;
y176 = 0;
z176 = 1117;
v176 = 72;
o176 = 0;
p176 = 100;
t177 = 12;
x177 = -71;
y177 = 0;
z177 = 528;
v177 = 50;
t178 = 12;
x178 = -78;
y178 = 0;
z178 = 497;
v178 = 50;
t179 = 12;
x179 = -53;
y179 = 0;
z179 = 462;
v179 = 50;
t180 = 12;
x180 = 39;
y180 = 0;
z180 = 504;
v180 = 50;
t181 = 12;
x181 = 52;
y181 = 0;
z181 = 526;
v181 = 50;
t182 = 23;
x182 = 63;
y182 = 0;
z182 = 637;
v182 = 100;
o182 = 140;
u182 = 1;
i182 = "1bb";
t183 = 1;
x183 = -50;
y183 = 0;
z183 = 1477;
v183 = 84;
o183 = 204;
p183 = 85;
u183 = 100;
t184 = 12;
x184 = -101;
y184 = 0;
z184 = 1470;
v184 = 50;
t185 = 12;
x185 = 14;
y185 = 0;
z185 = 1486;
v185 = 50;
t186 = 12;
x186 = -12;
y186 = 0;
z186 = 1488;
v186 = 50;
t187 = 12;
x187 = -10;
y187 = 0;
z187 = 1452;
v187 = 50;
t188 = 11;
x188 = -136;
y188 = 0;
z188 = 1456;
v188 = 50;
t189 = 11;
x189 = 52;
y189 = 0;
z189 = 1474;
v189 = 50;
t190 = 11;
x190 = -93;
y190 = 0;
z190 = 1502;
v190 = 50;
t191 = 11;
x191 = -175;
y191 = 0;
z191 = 1405;
v191 = 50;
t192 = 12;
x192 = 93;
y192 = 0;
z192 = 1449;
v192 = 50;
t193 = 12;
x193 = -66;
y193 = 0;
z193 = 1077;
v193 = 50;
t194 = 21;
x194 = -123;
y194 = 0;
z194 = 1305;
v194 = 100;
o194 = 17;
u194 = 1;
t195 = 21;
x195 = -142;
y195 = 0;
z195 = 1324;
v195 = 100;
o195 = 157;
u195 = 1;
t196 = 21;
x196 = -119;
y196 = 0;
z196 = 1348;
v196 = 100;
o196 = 224;
u196 = 1;
t197 = 21;
x197 = -148;
y197 = 0;
z197 = 1367;
v197 = 100;
o197 = 269;
u197 = 1;
t198 = 21;
x198 = -119;
y198 = 0;
z198 = 1397;
v198 = 100;
o198 = 148;
u198 = 1;
t199 = 21;
x199 = -94;
y199 = 0;
z199 = 1435;
v199 = 100;
o199 = 346;
u199 = 1;
t200 = 21;
x200 = -55;
y200 = 0;
z200 = 1416;
v200 = 100;
o200 = 353;
u200 = 1;
t201 = 21;
x201 = -11;
y201 = 0;
z201 = 1431;
v201 = 100;
o201 = 253;
u201 = 1;
t202 = 21;
x202 = 17;
y202 = 0;
z202 = 1395;
v202 = 100;
o202 = 147;
u202 = 1;
t203 = 21;
x203 = 21;
y203 = 0;
z203 = 1438;
v203 = 100;
o203 = 165;
u203 = 1;
t204 = 21;
x204 = -9;
y204 = 0;
z204 = 1408;
v204 = 100;
o204 = 131;
u204 = 1;
t205 = 21;
x205 = 32;
y205 = 0;
z205 = 1421;
v205 = 100;
o205 = 45;
u205 = 1;
t206 = 21;
x206 = 66;
y206 = 0;
z206 = 1427;
v206 = 100;
o206 = 39;
u206 = 1;
t207 = 21;
x207 = 51;
y207 = 0;
z207 = 1401;
v207 = 100;
o207 = 195;
u207 = 1;
t208 = 21;
x208 = 69;
y208 = 0;
z208 = 1382;
v208 = 100;
o208 = 262;
u208 = 1;
t209 = 21;
x209 = 99;
y209 = 0;
z209 = 1400;
v209 = 100;
o209 = 157;
u209 = 1;
t210 = 21;
x210 = 96;
y210 = 0;
z210 = 1360;
v210 = 100;
o210 = 229;
u210 = 1;
t211 = 21;
x211 = 65;
y211 = 0;
z211 = 1345;
v211 = 100;
o211 = 82;
u211 = 1;
t212 = 21;
x212 = 80;
y212 = 0;
z212 = 1315;
v212 = 100;
o212 = 269;
u212 = 1;
t213 = 21;
x213 = 52;
y213 = 0;
z213 = 1296;
v213 = 100;
o213 = 351;
u213 = 1;
t214 = 21;
x214 = 137;
y214 = 0;
z214 = 1312;
v214 = 100;
o214 = 91;
u214 = 1;
t215 = 21;
x215 = 20;
y215 = 0;
z215 = 1258;
v215 = 100;
o215 = 347;
u215 = 1;
t216 = 21;
x216 = -85;
y216 = 0;
z216 = 1240;
v216 = 100;
o216 = 129;
u216 = 1;
t217 = 22;
x217 = -17;
y217 = 0;
z217 = 560;
v217 = 100;
o217 = 142;
u217 = 1;
i217 = "1a";
t218 = 12;
x218 = -146;
y218 = 0;
z218 = 556;
v218 = 50;
t219 = 12;
x219 = -56;
y219 = 0;
z219 = 524;
v219 = 50;
t220 = 41;
x220 = 163;
y220 = 0;
z220 = 1375;
v220 = 395;
o220 = 0;
p220 = 100;
t221 = 1;
x221 = 109;
y221 = 0;
z221 = 494;
v221 = 66;
o221 = 165;
p221 = 77;
u221 = 100;
t222 = 1;
x222 = 79;
y222 = 0;
z222 = 457;
v222 = 66;
o222 = 232;
p222 = 74;
u222 = 100;
t223 = 14;
x223 = -131;
y223 = 0;
z223 = 445;
v223 = 50;
t224 = 14;
x224 = -108;
y224 = 0;
z224 = 438;
v224 = 50;
t225 = 14;
x225 = -129;
y225 = 0;
z225 = 419;
v225 = 50;
t226 = 14;
x226 = -79;
y226 = 0;
z226 = 407;
v226 = 50;
t227 = 14;
x227 = -113;
y227 = 0;
z227 = 405;
v227 = 50;
t228 = 14;
x228 = -148;
y228 = 0;
z228 = 397;
v228 = 50;
t229 = 14;
x229 = 26;
y229 = 0;
z229 = 409;
v229 = 50;
t230 = 14;
x230 = -211;
y230 = 0;
z230 = 496;
v230 = 50;
t231 = 14;
x231 = -197;
y231 = 0;
z231 = 482;
v231 = 50;
t232 = 14;
x232 = -214;
y232 = 0;
z232 = 455;
v232 = 50;
t233 = 27;
x233 = -21;
y233 = 0;
z233 = 158;
v233 = 100;
o233 = 5;
u233 = 70;
i233 = "start";
t234 = 26;
x234 = 17;
y234 = 0;
z234 = 190;
v234 = 100;
o234 = 90;
u234 = 50;
i234 = "battle";
t235 = 26;
x235 = 86;
y235 = 0;
z235 = 148;
v235 = 100;
o235 = 308;
u235 = 50;
i235 = "credits";
t236 = 22;
x236 = 71;
y236 = 0;
z236 = 218;
v236 = 100;
o236 = 182;
u236 = 1;
t237 = 22;
x237 = -40;
y237 = 0;
z237 = 105;
v237 = 100;
o237 = 182;
u237 = 1;
t238 = 22;
x238 = -35;
y238 = 0;
z238 = 250;
v238 = 100;
o238 = 182;
u238 = 1;
t239 = 23;
x239 = -72;
y239 = 0;
z239 = 190;
v239 = 100;
o239 = 91;
u239 = 1;
t240 = 23;
x240 = 8;
y240 = 0;
z240 = 238;
v240 = 100;
o240 = 91;
u240 = 1;
t241 = 12;
x241 = 61;
y241 = 0;
z241 = 277;
v241 = 50;
t242 = 12;
x242 = -35;
y242 = 0;
z242 = 289;
v242 = 50;
t243 = 12;
x243 = 99;
y243 = 0;
z243 = 120;
v243 = 50;
t244 = 12;
x244 = 119;
y244 = 0;
z244 = 137;
v244 = 50;
t245 = 12;
x245 = -138;
y245 = 0;
z245 = 256;
v245 = 50;
t246 = 25;
x246 = 137;
y246 = 0;
z246 = 237;
v246 = 100;
o246 = 280;
u246 = 100;
i246 = "more";
t247 = 12;
x247 = -129;
y247 = 0;
z247 = 182;
v247 = 50;
i247 = "updates";
t248 = 12;
x248 = -95;
y248 = 0;
z248 = 118;
v248 = 50;
t249 = 12;
x249 = -117;
y249 = 0;
z249 = 99;
v249 = 50;
t250 = 21;
x250 = 36;
y250 = 0;
z250 = 142;
v250 = 100;
o250 = 189;
u250 = 1;
t251 = 12;
x251 = -43;
y251 = 0;
z251 = 37;
v251 = 50;
t252 = 1;
x252 = 79;
y252 = 0;
z252 = 51;
v252 = 61;
o252 = 3;
p252 = 73;
u252 = 100;
t253 = 1;
x253 = 117;
y253 = 0;
z253 = 30;
v253 = 60;
o253 = 125;
p253 = 71;
u253 = 100;
pocetObjektu = 253;
mapaNactena = 1;
obzorZ = 270000 /* 0x041EB0 */;
Symbol 394 MovieClip Frame 4
if (!mapaNactena) {
prevFrame();
play();
}
Symbol 394 MovieClip Frame 5
if (!pocetObjektu) {
pocetObjektu = 0;
} else {
pocetObjektu = int(pocetObjektu);
}
typTerenu = int(typTerenu);
najdiStred(_root.stredniBodMapy, _root.stredniBodMapy0);
if (!_root.kapitola) {
viditelnyCedulky.splice(0);
}
nactiHory();
soupniKeKamere(stred.xx, stred.yy, stred.zz);
zobrazHory();
trace("kapitola je " + _root.kapitola);
Symbol 394 MovieClip Frame 6
otocSe(-10, 0, 0);
zobrazHory();
zobrazHory();
stop();
Symbol 394 MovieClip Frame 7
otocSe(0);
zobrazHory();
zobrazHory();
stop();
Symbol 396 MovieClip Frame 1
function tma(hod) {
var _local2 = (hod - 12) * 6;
if (_local2 < 1) {
_local2 = _local2 - this._totalframes;
}
gotoAndStop(int(_local2));
}
this.onEnterFrame = function () {
if ((!rychlostX) && (!rychlostY)) {
return(0);
}
var _local3;
var _local2;
var _local1 = hory.orientaceX;
if (Math.abs(rychlostY) > 2) {
hory.otocSe(-_local1, 0, 0);
hory.otocSe(0, rychlostY, 0);
hory.otocSe(_local1, 0, 0);
} else if (Math.abs(rychlostX) > 2) {
hory.otocSe(rychlostX, 0, 0, true);
hory.jakobyVyska = hory.orientaceX;
}
hory.zobrazHory();
};
this.onMouseMove = function () {
if (_root.ovladani.tabulka.nad) {
return(0);
}
if ((((_root._xmouse < _x) || (_root._xmouse > (_x + 800))) || (_root._ymouse < (_y - 30))) || (_root._ymouse > ((_y + maska._height) + 30))) {
rychlostX = 0;
rychlostY = 0;
return(0);
}
rychlostY = ((_root._xmouse - 430) * maxRychlostY) / 460;
rychlostX = ((_root._ymouse - 300) * maxRychlostX) / 150;
};
maxRychlostX = 3;
maxRychlostY = 3;
rychlostX = 0;
rychlostY = 0;
hory.setMask(maska);
hodin = 18;
tma(hodin);
stop();
Symbol 407 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 3
stop();
Symbol 407 MovieClip Frame 5
stop();
Symbol 407 MovieClip Frame 10
stop();
Symbol 416 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 421 MovieClip Frame 1
function zobraz() {
gotoAndStop(_root.MODSOUBOJE);
}
stop();
Symbol 426 MovieClip Frame 1
function zobraz() {
gotoAndStop(_root.HRACU + 1);
}
stop();
Symbol 430 MovieClip Frame 1
function zobraz() {
gotoAndStop(_root.ZMENAZBRANI + 1);
}
stop();
Symbol 446 MovieClip Frame 1
ch.stin._visible = false;
Symbol 446 MovieClip Frame 9
ch.stin._visible = true;
stop();
Symbol 448 MovieClip Frame 1
function zobraz() {
if (_root.MODSOUBOJE != 2) {
_visible = false;
} else {
_visible = true;
}
ch.ch.typ = typ;
ch.ch.strana = strana;
ch.gotoAndPlay(1);
ch.ch.oblikniSe();
nazev = ((_root.typyPotvor[typ].jmeno + "\n(") + _root["NADUPANCU" + strana]) + "x)";
if (typ > _root.MINTYP) {
sipka1._visible = true;
} else {
sipka1._visible = false;
}
if (typ < _root.MAXTYP) {
sipka2._visible = true;
} else {
sipka2._visible = false;
}
if (_root["NADUPANCU" + strana] > 0) {
sipka3._visible = true;
} else {
sipka3._visible = false;
}
if (_root["NADUPANCU" + strana] < _root.MAXNOHSLEDU) {
sipka4._visible = true;
} else {
sipka4._visible = false;
}
}
sipka1.onRollOver = function () {
_parent.vysvetli("Choose lower rank");
};
sipka1.onRollOut = function () {
_parent.vysvetli("");
};
sipka2.onRollOver = function () {
_parent.vysvetli("Choose higher rank");
};
sipka2.onRollOut = function () {
_parent.vysvetli("");
};
sipka3.onRollOver = function () {
_parent.vysvetli("Decrease their number");
};
sipka3.onRollOut = function () {
_parent.vysvetli("");
};
sipka4.onRollOver = function () {
_parent.vysvetli("Increase their number");
};
sipka4.onRollOut = function () {
_parent.vysvetli("");
};
sipka1.onRelease = function () {
_root.vydejZvuk("drevo");
typ--;
_root["NADUPANCI" + strana]--;
zobraz();
};
sipka2.onRelease = function () {
_root.vydejZvuk("drevo");
typ++;
_root["NADUPANCI" + strana]++;
zobraz();
};
sipka3.onRelease = function () {
_root.vydejZvuk("drevo");
_root["NADUPANCU" + strana]--;
zobraz();
};
sipka4.onRelease = function () {
_root.vydejZvuk("drevo");
_root["NADUPANCU" + strana]++;
zobraz();
};
ch.ch.mimo = true;
ch.ch.zakaz = 10;
Symbol 451 MovieClip Frame 1
function zobraz() {
ch.ch.typ = typ;
ch.ch.strana = strana;
ch.gotoAndPlay(1);
ch.ch.oblikniSe();
nazev = _root.typyPotvor[typ].jmeno;
if (typ > _root.MINTYP) {
sipka1._visible = true;
} else {
sipka1._visible = false;
}
if (typ < _root.MAXTYP) {
sipka2._visible = true;
} else {
sipka2._visible = false;
}
}
sipka1.onRollOver = function () {
_parent.vysvetli("Choose lower rank");
};
sipka1.onRollOut = function () {
_parent.vysvetli("");
};
sipka2.onRollOver = function () {
_parent.vysvetli("Choose higher rank");
};
sipka2.onRollOut = function () {
_parent.vysvetli("");
};
sipka1.onRelease = function () {
_root.vydejZvuk("drevo");
typ--;
_root["NADUPANEC" + strana]--;
zobraz();
};
sipka2.onRelease = function () {
_root.vydejZvuk("drevo");
typ++;
_root["NADUPANEC" + strana]++;
zobraz();
};
ch.ch.mimo = true;
ch.ch.hrac = true;
ch.ch.zakaz = 10;
Symbol 452 MovieClip Frame 1
function zobraz() {
volba1.zobraz();
volba2.zobraz();
volba3.zobraz();
volba4.zobraz();
modKlip.zobraz();
hracKlip.zobraz();
zbraneB.zobraz();
}
function vysvetli(co) {
vysvetlivka = co;
}
function randomizuj() {
var _local3;
_root.vydejZvuk("drevo");
_root.NADUPANEC1 = random(_root.MAXTYP - 5) + 1;
if (_root.MODSOUBOJE == 1) {
_root.NADUPANEC2 = (_root.NADUPANEC1 + random(4)) - random(4);
if (_root.NADUPANEC2 > (_root.MAXTYP - 5)) {
_root.NADUPANEC2 = _root.MAXTYP - 5;
}
if (_root.NADUPANEC2 < (_root.MInTYP - 5)) {
_root.NADUPANEC2 = _root.MINTYP - 5;
}
} else {
_root.NADUPANEC2 = random(_root.MAXTYP - 5) + 1;
}
_root.NADUPANCU1 = random(_root.MAXNOHSLEDU) + 1;
_root.NADUPANCU2 = random(_root.MAXNOHSLEDU) + 1;
var _local4;
var _local2;
_local4 = random(2) + 1;
if (_local4 == 1) {
_local2 = 2;
} else {
_local2 = 1;
}
_root["NADUPANCI" + _local4] = random(_root.MAXTYP - 10) + 1;
if (_root.MODSOUBOJE == 1) {
_root["NADUPANCI" + _local2] = random(_root.MAXTYP - 10) + 1;
} else {
_local3 = (_root.typyPotvor[_root["NADUPANEC" + _local4] + 5].zkusenost + (_root["NADUPANCU" + _local4] * _root.typyPotvor[_root["NADUPANCI" + _local4] + 5].zkusenost)) - _root.typyPotvor[_root["NADUPANEC" + _local2] + 5].zkusenost;
_local3 = _local3 / _root["NADUPANCU" + _local2];
_local3 = Math.ceil(_local3);
if (_local3 > _root.typyPotvor[_root.MAXTYP].zkusenost) {
_local3 = _root.typyPotvor[_root.MAXTYP].zkusenost;
}
trace((("hledejme nekoho se zkus." + _local3) + " pro hrace c.") + _local2);
if (_local3 < _root.typyPotvor[_root.MINTYP].zkusenost) {
_root["NADUPANCU" + _local2]--;
}
_root["NADUPANCI" + _local2] = _root.nekdoJako(_local3);
if (_root["NADUPANCI" + _local2] > _root.MAXTYP) {
_root["NADUPANCI" + _local2] = _root.MAXTYP;
}
if (_root["NADUPANCI" + _local2] < _root.MINTYP) {
_root["NADUPANCI" + _local2] = _root.MINTYP;
}
_root["NADUPANCI" + _local2] = _root["NADUPANCI" + _local2] - 5;
}
if (_root.MODSOUBOJE == 2) {
if (_root.NADUPANEC1 < _root.NADUPANCI1) {
_root.NADUPANEC1 = _root.NADUPANCI1;
trace("oprava vudce 1");
}
if (_root.NADUPANEC2 < _root.NADUPANCI2) {
_root.NADUPANEC2 = _root.NADUPANCI2;
trace("oprava vudce 2");
}
}
init();
zobraz();
}
function vynuluj() {
_root.vydejZvuk("drevo");
_root.NADUPANEC1 = 0;
_root.NADUPANEC2 = 0;
_root.NADUPANCI1 = 0;
_root.NADUPANCI2 = 0;
_root.NADUPANCU1 = 2;
_root.NADUPANCU2 = 2;
init();
zobraz();
}
function init() {
volba1.typ = _root.NADUPANEC1 + 5;
volba1.strana = 1;
volba1.ch.ch.zbran.gotoAndStop(9);
volba1.ch.ch.hlava1._rotation = -90;
volba1.ch.ch.hlava2._rotation = -90;
volba2.typ = _root.NADUPANEC2 + 5;
volba2.strana = 2;
volba2.ch.ch.zbran.gotoAndStop(27);
volba2.ch.ch.hlava1._rotation = 90;
volba2.ch.ch.hlava2._rotation = 90;
volba3.typ = _root.NADUPANCI1 + 5;
volba3.strana = 1;
volba3.ch.ch.zbran.gotoAndStop(9);
volba3.ch.ch.hlava1._rotation = -90;
volba3.ch.ch.hlava2._rotation = -90;
volba4.typ = _root.NADUPANCI2 + 5;
volba4.strana = 2;
volba4.ch.ch.zbran.gotoAndStop(27);
volba4.ch.ch.hlava1._rotation = 90;
volba4.ch.ch.hlava2._rotation = 90;
}
modKlip.onRollOver = function () {
vysvetli("Toggle duel / battle");
modKlip.myska.gotoAndStop(2);
};
modKlip.onRollOut = function () {
vysvetli("");
modKlip.myska.gotoAndStop(1);
};
modKlip.onRelease = function () {
_root.vydejZvuk("drevo");
if (_root.MODSOUBOJE == 1) {
_root.MODSOUBOJE = 2;
} else {
_root.MODSOUBOJE = 1;
}
zobraz();
};
hracKlip.onRollOver = function () {
vysvetli("Choose the number of players");
hracKlip.myska.gotoAndStop(2);
};
hracKlip.onRollOut = function () {
vysvetli("");
hracKlip.myska.gotoAndStop(1);
};
hracKlip.onRelease = function () {
_root.vydejZvuk("drevo");
if (_root.HRACU < 2) {
_root.HRACU++;
} else {
_root.HRACU = 0;
}
hracKlip.zobraz();
};
hotovoB.onRollOver = function () {
hotovoB.gotoAndPlay(2);
};
hotovoB.onRollOut = function () {
hotovoB.gotoAndStop(1);
};
hotovoB.onRelease = function () {
var _local2;
_root.vydejZvuk("bourebuben");
_root.postavy.splice(0);
_root.potvory.splice(0);
_root.postavy.push(_root.NADUPANEC1 + 5);
_root.potvory.push(_root.NADUPANEC2 + 5);
if (_root.MODSOUBOJE == 2) {
_local2 = 1;
while (_local2 <= _root.NADUPANCU1) {
_root.postavy.push(_root.NADUPANCI1 + 5);
_local2++;
}
_local2 = 1;
while (_local2 <= _root.NADUPANCU2) {
_root.potvory.push(_root.NADUPANCI2 + 5);
_local2++;
}
}
_root.gotoAndPlay("hra");
};
zbraneB.onRollOver = function () {
zbraneB.myska.gotoAndStop(2);
vysvetli("Click to restrict the type of weapons used in the battle");
};
zbraneB.onRollOut = function () {
zbraneB.myska.gotoAndStop(1);
vysvetli("");
};
zbraneB.onRelease = function () {
if (_root.ZMENAZBRANI == 2) {
_root.ZMENAZBRANI = 0;
} else {
_root.ZMENAZBRANI++;
}
zobraz();
};
rando.onRollOver = function () {
vysvetli("Click to randomize both battling sides");
};
rando.onRollOut = function () {
vysvetli("");
};
rando.onRelease = randomizuj;
defaultik.onRollOver = function () {
vysvetli("Click to restore default settings");
};
defaultik.onRollOut = function () {
vysvetli("");
};
defaultik.onRelease = vynuluj;
quitek.onRelease = function () {
_root.gotoAndPlay("menu");
};
music.onRelease = function () {
};
init();
Symbol 452 MovieClip Frame 2
zobraz();
stop();
Symbol 456 Button
on (release) {
_root.gotoAndPlay("menu");
}
Symbol 466 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.thunderbird.cz/", "_blank");
}
Symbol 474 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 2
ptak.play();
Symbol 478 MovieClip Frame 2
stop();
Symbol 478 MovieClip Frame 3
_root.gotoAndPlay("menu");
Symbol 478 MovieClip Frame 4
stop();