Frame 1
dej = 1;
obtiznost = 1;
protihrac = 1;
kruh = 1;
stop();
Frame 3
stop();
Frame 7
function GetBaseUrl(strUrl) {
var _local1 = strUrl.toLowerCase();
var nNumChars = _local1.length;
var _local2 = _local1.indexOf("?", 0);
if (_local2 > 0) {
nNumChars = _local2;
}
var _local3 = "download";
if (_local1.substr(0, 4) == "http") {
_local3 = strUrl.substr(7, nNumChars - 7);
}
return(_local3);
}
function EncrpytString(strVal) {
var strKey = "aHfEjcDebChGiAfIjDbEjacD";
var nLenKey = strKey.length;
var strZero = "0";
var _local3 = "";
var nTot = strVal.length;
var _local1 = 0;
_local3 = "";
var nCodeVal;
var nCodeKey;
var _local2;
var nChecksum = 0;
nCnt = 0;
while (nCnt < nTot) {
nCodeVal = strVal.charCodeAt(nCnt);
if (nCodeVal >= 128) {
nCodeVal = "X";
}
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = (nCodeVal % 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nChecksum = nChecksum + _local2;
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = Math.floor(nCodeVal / 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nChecksum = nChecksum + _local2;
nCnt++;
}
nChecksum = nChecksum % 256;
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = (nChecksum % 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = Math.floor(nChecksum / 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
return(_local3);
}
function hudboHraj(s) {
zvukPozadi.stop();
zvukPozadi.attachSound(s + ".mp3");
var _local1 = 1;
if (dej) {
_local1 = 36000;
}
if (!ticho) {
zvukPozadi.start(0, _local1);
}
}
intro._visible = true;
if (!dej) {
intro.gotoAndPlay("hotovo");
}
zvukPozadi = new Sound();
hudboHraj("UVOD");
dej = 1;
stop();
Frame 10
function Zvuk() {
var _local1 = this;
_local1.eh = new Sound();
_local1.eh.attachSound("eh");
_local1.krok = new Sound();
_local1.krok.attachSound("krok");
_local1.brink1 = new Sound();
_local1.brink1.attachSound("brink");
_local1.skrrt = new Sound();
_local1.skrrt.attachSound("skrrt");
_local1.brink2 = new Sound();
_local1.brink2.attachSound("zadrnceni");
_local1.brink3 = new Sound();
_local1.brink3.attachSound("brink3");
_local1.tetiva = new Sound();
_local1.tetiva.attachSound("tetiva");
_local1.uu1 = new Sound();
_local1.uu1.attachSound("uu1");
_local1.uu2 = new Sound();
_local1.uu2.attachSound("uu2");
_local1.naraz2 = new Sound();
_local1.naraz2.attachSound("naraz2");
_local1.chcip1 = new Sound();
_local1.chcip1.attachSound("chcip1");
_local1.chcip2 = new Sound();
_local1.chcip2.attachSound("chcip2");
_local1.rev1 = new Sound();
_local1.rev1.attachSound("rev1");
_local1.rev2 = new Sound();
_local1.rev2.attachSound("rev2");
_local1.BITKA = new Sound();
_local1.BITKA.attachSound("BITKA.mp3");
_local1.POHODA = new Sound();
_local1.POHODA.attachSound("POHODA.mp3");
_local1.SCENAR = new Sound();
_local1.SCENAR.attachSound("SCENAR.mp3");
_local1.TRENING = new Sound();
_local1.TRENING.attachSound("TRENING.mp3");
_local1.TVRDEJBOJ = new Sound();
_local1.TVRDEJBOJ.attachSound("TVRDEJBOJ.mp3");
_local1.UVOD = new Sound();
_local1.UVOD.attachSound("UVOD.mp3");
}
function odstran(koho) {
removeMovieClip(koho);
}
function boj(kdo, kde) {
protihrac = kdo;
nahraj = kde;
naMenu = 0;
gotoAndPlay ("dejOdsun");
}
function posunDej(kolik) {
posunutiDeje = kolik;
gotoAndPlay ("dal");
}
function nahrajBojiste(soubor) {
prostredi.nahraj = soubor;
prostredi.gotoAndPlay(2);
}
chlapi = new Array({jmeno:"", zivotu:10, akce:10, rychlost:1, reakce:50, sila:5, udery:new Array(0, 1, 1, 1), obrana:new Array(0, 20, 20, 20), zbroj:new Array(0, 0, 0, 0), mec:0, maxMec:0, chuze:30, uniky:30, agrese:0, pohlavi:1}, {jmeno:"Paul", zivotu:30, akce:25, rychlost:1, reakce:50, sila:5, udery:new Array(0, 1, 1, 3), obrana:new Array(0, 30, 20, 30), zbroj:new Array(0, 0, 0, 0), mec:3, maxMec:3, chuze:25, uniky:30, agrese:0, pohlavi:1}, {jmeno:"Jacob", zivotu:30, akce:20, rychlost:1, reakce:65, sila:4, udery:new Array(0, 1, 1, 1), obrana:new Array(0, 40, 30, 35), zbroj:new Array(0, 0, 0, 0), mec:3, maxMec:3, chuze:30, uniky:50, agrese:0, pohlavi:1}, {jmeno:"Oliver", zivotu:30, akce:20, rychlost:2, reakce:80, sila:2, udery:new Array(0, 2, 1, 1), obrana:new Array(0, 45, 35, 45), zbroj:new Array(0, 0, 0, 0), mec:12, maxMec:12, chuze:40, uniky:30, agrese:0, pohlavi:1}, {jmeno:"Mitra", zivotu:40, akce:15, rychlost:2, reakce:60, sila:10, udery:new Array(0, 1, 2, 1), obrana:new Array(0, 45, 45, 45), zbroj:new Array(0, 0, 0, 0), mec:5, maxMec:5, chuze:25, uniky:30, agrese:12, pohlavi:1}, {jmeno:"Marketa", zivotu:35, akce:15, rychlost:3, reakce:70, sila:5, udery:new Array(0, 1, 1, 1), obrana:new Array(0, 62, 47, 40), zbroj:new Array(0, 0, 0, 0), mec:5, maxMec:5, chuze:32, uniky:30, agrese:8, pohlavi:2}, {jmeno:"Dietrich", zivotu:40, akce:15, rychlost:2, reakce:90, sila:7, udery:new Array(0, 1, 1, 1), obrana:new Array(0, 50, 45, 35), zbroj:new Array(0, 0, 0, 0), mec:5, maxMec:5, chuze:35, uniky:30, agrese:0, pohlavi:1}, {jmeno:"Jean", zivotu:40, akce:15, rychlost:3, reakce:80, sila:5, udery:new Array(0, 3, 2, 2), obrana:new Array(0, 50, 50, 45), zbroj:new Array(0, 0, 0, 0), mec:6, maxMec:6, chuze:40, uniky:70, agrese:3, pohlavi:1}, {jmeno:"Oldrich", zivotu:50, akce:20, rychlost:3, reakce:90, sila:5, udery:new Array(0, 2, 2, 3), obrana:new Array(0, 50, 50, 40), zbroj:new Array(0, 0, 0, 0), mec:6, maxMec:6, chuze:35, uniky:35, agrese:2, pohlavi:1}, {jmeno:"Guard 2", zivotu:50, akce:25, rychlost:3, reakce:65, sila:8, udery:new Array(0, 3, 2, 1), obrana:new Array(0, 50, 45, 45), zbroj:new Array(0, 0, 0, 0), mec:3, maxMec:3, chuze:35, uniky:60, agrese:15, pohlavi:1}, {jmeno:"Durynk", zivotu:40, akce:15, rychlost:2, reakce:70, sila:8, udery:new Array(0, 2, 2, 1), obrana:new Array(0, 45, 50, 55), zbroj:new Array(0, 0, 0, 0), mec:4, maxMec:4, chuze:30, uniky:15, agrese:2, pohlavi:1}, {jmeno:"Guard", zivotu:40, akce:20, rychlost:3, reakce:90, sila:6, udery:new Array(0, 1, 1, 2), obrana:new Array(0, 60, 55, 55), zbroj:new Array(0, 0, 0, 0), mec:5, maxMec:5, chuze:30, uniky:30, agrese:3, pohlavi:1}, {jmeno:"Kozel", zivotu:35, akce:15, rychlost:2, reakce:90, sila:5, udery:new Array(0, 2, 1, 2), obrana:new Array(0, 65, 70, 65), zbroj:new Array(0, 0, 0, 0), mec:9, maxMec:9, chuze:25, uniky:20, agrese:2, pohlavi:1}, {jmeno:"Catarina", zivotu:40, akce:20, rychlost:3, reakce:50, sila:4, udery:new Array(0, 2, 1, 1), obrana:new Array(0, 70, 65, 70), zbroj:new Array(0, 0, 0, 0), mec:9, maxMec:9, chuze:40, uniky:90, agrese:5, pohlavi:2}, {jmeno:"Ignac", zivotu:50, akce:20, rychlost:3, reakce:95, sila:8, udery:new Array(0, 2, 2, 1), obrana:new Array(0, 70, 60, 40), zbroj:new Array(0, 0, 0, 0), mec:8, maxMec:8, chuze:30, uniky:10, agrese:5, pohlavi:1}, {jmeno:"Hernando", zivotu:40, akce:25, rychlost:3, reakce:95, sila:5, udery:new Array(0, 1, 1, 1), obrana:new Array(0, 75, 75, 65), zbroj:new Array(0, 0, 0, 0), mec:10, maxMec:10, chuze:38, uniky:60, agrese:10, pohlavi:1}, {jmeno:"Sophisticus", zivotu:30, akce:20, rychlost:1, reakce:5, sila:2, udery:new Array(0, 1, 1, 1), obrana:new Array(0, 10, 10, 10), zbroj:new Array(0, 0, 0, 0), mec:2, maxMec:2, chuze:15, uniky:30, agrese:0, pohlavi:1}, {jmeno:"Kidnapper", zivotu:30, akce:20, rychlost:2, reakce:70, sila:3, udery:new Array(0, 1, 2, 2), obrana:new Array(0, 50, 50, 40), zbroj:new Array(0, 0, 0, 0), mec:6, maxMec:6, chuze:30, uniky:25, agrese:5, pohlavi:1});
obleky = new Array(new Array(0, 0, 0, 0, 0, 0), new Array(3, 4, 1, 1, 1, 1), new Array(2, 5, 1, 2, 2, 2), new Array(1, 2, 2, 4, 1, 3), new Array(2, 4, 1, 5, 3, 7), new Array(4, 9, 4, 9, 4, 10), new Array(3, 2, 1, 7, 5, 6), new Array(1, 1, 1, 5, 1, 1), new Array(2, 6, 1, 4, 4, 11), new Array(1, 3, 1, 3, 3, 5), new Array(3, 2, 3, 7, 4, 10), new Array(1, 6, 1, 6, 4, 7), new Array(1, 10, 4, 5, 1, 5), new Array(4, 8, 2, 10, 2, 2), new Array(2, 3, 3, 8, 5, 8), new Array(2, 1, 2, 5, 2, 9), new Array(3, 11, 1, 11, 2, 2), new Array(1, 4, 5, 2, 2, 2));
posunutiDeje = 1;
leku = 0;
porazen = new Array(5);
if (lekce) {
scenar._visible = false;
_root.boj(12, "sermirna");
}
zvuky = new Zvuk();
maxZiv = 60;
zivotu = maxZiv;
Frame 18
if (scenar.getBytesLoaded() < scenar.getBytesTotal()) {
prevFrame();
play();
}
Frame 19
intro._visible = false;
scenar._visible = true;
play();
Frame 20
scenar.gotoAndStop(dej + posunutiDeje);
var s;
if (dej > 111) {
s = "DOBRY";
} else if (dej > 101) {
s = "JESKYNE";
} else if ((dej + posunutiDeje) > 5) {
s = "SCENAR";
} else {
s = "POHODA";
}
hudboHraj(s);
Frame 23
stop();
Frame 24
intro._visible = false;
Frame 27
if (naMenu) {
intro._visible = true;
naMenu = 0;
zvukPozadi.stop();
if (_root.skore > 0) {
scoreTable._visible = true;
stop();
} else {
scoreTable._visible = false;
gotoAndStop ("zac");
}
} else {
scoreTable._visible = false;
}
Instance of Symbol 592 MovieClip "prostredi" in Frame 28
/* no clip actions */
Instance of Symbol 598 MovieClip "sipkaL" in Frame 28
onClipEvent (load) {
}
Instance of Symbol 598 MovieClip "sipkaP" in Frame 28
onClipEvent (load) {
}
Frame 29
if (circle) {
buton._visible = true;
} else {
buton._visible = false;
}
duplicateMovieClip (chlap0, "chlap1", 10);
chlap1.x1 = chlap1._x;
chlap1.y1 = chlap1._y;
chlap1.rotation1 = chlap1._rotation;
chlap._visible = true;
chlap.neni = false;
chlap.swapDepths(chlap1);
nahrajBojiste(nahraj);
var s;
if (lekce > 0) {
s = "TRENING";
} else if (naostro) {
s = "TVRDEJBOJ";
} else {
s = "BITKA";
}
hudboHraj(s);
if (demo == "d") {
buton._visible = true;
}
stop();
Frame 30
chlap._visible = true;
chlap.jmeno = "You";
chlap.pohlavi = 1;
chlap.zivotu = zivotu;
pult.stupnice1.nastav(Math.ceil((chlap.zivotu * 20) / chlap.maxZiv));
pult.stupnice1.nastav(Math.ceil((chlap1.zivotu * 20) / chlap1.maxZiv));
pult.stupnice1.jmeno = chlap.jmeno;
chlap1.nastav(protihrac);
Frame 31
chlap0.neni = true;
chlap2.neni = true;
chlap0._x = chlap0._x - 100;
level = 1;
nepratel = 1;
chlap0._visible = false;
chlap2._visible = false;
chlap.souper = chlap1;
Frame 34
stop();
Frame 37
removeMovieClip(chlap1);
zivotu = chlap.zivotu;
Frame 44
chlap.neni = true;
chlap._visible = false;
zvukPozadi.stop();
_root.lekce = 0;
if (_root.dej > 0) {
gotoAndPlay ("dejPrisun");
} else if (_root.skore > 0) {
intro._visible = true;
scoreTable._visible = true;
stop();
} else {
scoreTable._visible = false;
gotoAndStop ("zac");
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 1
var l;
var t;
l = _root.getBytesLoaded();
t = _root.getBytesTotal();
if (l < t) {
pre.gotoAndStop(Math.round((l * 50) / t));
} else {
_parent.play();
}
Symbol 32 MovieClip Frame 2
gotoAndPlay (1);
Symbol 38 Button
on (release) {
nextFrame();
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 9
gotoAndStop (1);
Symbol 70 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
_parent._parent.krokSmer = 0;
if (_parent._parent.smiChodit == 0) {
_parent._parent.smiChodit = 1;
}
stop();
Symbol 95 MovieClip Frame 3
prevFrame();
Symbol 95 MovieClip Frame 5
Symbol 95 MovieClip Frame 11
gotoAndPlay ("streh");
Symbol 95 MovieClip Frame 20
_parent._parent.posunSe(6, 2);
Symbol 95 MovieClip Frame 21
_parent._parent.posunSe(6, 3);
Symbol 95 MovieClip Frame 22
_parent._parent.posunSe(5, 3);
Symbol 95 MovieClip Frame 23
_parent._parent.posunSe(4, 3);
Symbol 95 MovieClip Frame 25
_parent._parent.posunSe(-4, -3);
Symbol 95 MovieClip Frame 26
_parent._parent.posunSe(-5, -3);
Symbol 95 MovieClip Frame 27
_parent._parent.posunSe(-6, -3);
Symbol 95 MovieClip Frame 28
_parent._parent.posunSe(-6, -2);
gotoAndPlay ("streh");
Symbol 95 MovieClip Frame 38
gotoAndPlay ("streh");
Symbol 95 MovieClip Frame 40
if ((_root.chlap.utok == 1) || ((_root.chlap.utok == 2) && ((_root.chlap._xscale * _parent._parent.krokSmer) > 0))) {
_parent._parent.zaznam(_root.chlap.utok);
_root.chlap.utok = 0;
}
Symbol 95 MovieClip Frame 41
_parent._parent._x = _parent._parent.x1 + ((_parent._parent._xscale * 20) / 100);
_parent._parent._y = _parent._parent.y1 + 10;
_parent._parent._rotation = _parent._parent.rotation1 + ((10 * _parent._parent._xscale) / 100);
Symbol 95 MovieClip Frame 42
_parent._parent._x = _parent._parent.x1 + ((_parent._parent._xscale * 40) / 100);
_parent._parent._y = _parent._parent.y1 + 10;
_parent._parent._rotation = _parent._parent._rotation1 + ((20 * _parent._parent._xscale) / 100);
Symbol 95 MovieClip Frame 44
_parent._parent._x = _parent._parent.x1 - ((_parent._parent._xscale * 20) / 100);
_parent._parent._y = _parent._parent.y1 - 10;
_parent._parent._rotation = _parent._parent._rotation1 + ((10 * _parent._parent._xscale) / 100);
Symbol 95 MovieClip Frame 45
_parent._parent._x = _parent._parent.x1 - ((_parent._parent._xscale * 0) / 100);
_parent._parent._y = _parent._parent.y1 - 10;
_parent._parent._rotation = _parent._parent.rotation1;
Symbol 95 MovieClip Frame 47
gotoAndPlay ("streh");
Symbol 95 MovieClip Frame 49
if (_root.chlap.utok == 3) {
_parent._parent.zaznam(_root.chlap.utok);
_root.chlap.utok = 0;
}
_parent._parent._y = _parent._parent.y1 - 10;
Symbol 95 MovieClip Frame 50
_parent._parent._y = _parent._parent.y1 - 20;
Symbol 95 MovieClip Frame 54
_parent._parent._y = _parent._parent.y1 - 10;
Symbol 95 MovieClip Frame 55
_parent._parent._y = _parent._parent.y1;
Symbol 95 MovieClip Frame 56
gotoAndPlay ("streh");
Symbol 95 MovieClip Frame 67
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
prevFrame();
Symbol 113 MovieClip Frame 7
gotoAndStop ("streh");
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 2
stop();
Symbol 120 MovieClip Frame 10
gotoAndStop ("streh");
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 11
gotoAndStop ("streh");
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 11
gotoAndStop ("streh");
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 11
gotoAndStop ("streh");
Symbol 142 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 8
gotoAndStop ("streh");
Symbol 159 MovieClip Frame 24
gotoAndStop ("streh");
Symbol 159 MovieClip Frame 32
_parent.zbran.zbran.gotoAndPlay("smrt");
Symbol 159 MovieClip Frame 33
stop();
Symbol 159 MovieClip Frame 42
_parent.zbran.zbran.gotoAndPlay("smrt");
stop();
Symbol 159 MovieClip Frame 43
stop();
Symbol 159 MovieClip Frame 44
stop();
Symbol 159 MovieClip Frame 50
gotoAndStop ("streh");
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
prevFrame();
Symbol 180 MovieClip Frame 7
gotoAndPlay ("streh");
Symbol 180 MovieClip Frame 25
gotoAndPlay ("streh");
Symbol 180 MovieClip Frame 40
gotoAndPlay ("streh");
Symbol 180 MovieClip Frame 55
gotoAndPlay ("streh");
Symbol 180 MovieClip Frame 59
if (_parent._parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 180 MovieClip Frame 62
gotoAndPlay ("streh");
Symbol 180 MovieClip Frame 66
if (_parent._parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 180 MovieClip Frame 69
gotoAndPlay ("streh");
Symbol 180 MovieClip Frame 73
if (_parent._parent.povoleni) {
gotoAndPlay ("povolTrp");
}
Symbol 180 MovieClip Frame 76
gotoAndPlay ("streh");
Symbol 180 MovieClip Frame 80
Symbol 180 MovieClip Frame 83
stop();
Symbol 180 MovieClip Frame 87
gotoAndStop ("streh");
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
prevFrame();
Symbol 202 MovieClip Frame 7
gotoAndPlay ("streh");
Symbol 202 MovieClip Frame 24
gotoAndPlay ("streh");
Symbol 202 MovieClip Frame 38
gotoAndPlay ("streh");
Symbol 202 MovieClip Frame 52
gotoAndPlay ("streh");
Symbol 202 MovieClip Frame 56
if (_parent._parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 202 MovieClip Frame 59
gotoAndPlay ("streh");
Symbol 202 MovieClip Frame 63
if (_parent._parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 202 MovieClip Frame 66
gotoAndPlay ("streh");
Symbol 202 MovieClip Frame 70
if (_parent._parent.povoleni) {
gotoAndPlay ("povolTrp");
}
Symbol 202 MovieClip Frame 73
gotoAndPlay ("streh");
Symbol 202 MovieClip Frame 77
Symbol 202 MovieClip Frame 83
gotoAndStop ("streh");
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
prevFrame();
Symbol 225 MovieClip Frame 7
gotoAndPlay ("streh");
Symbol 225 MovieClip Frame 24
gotoAndPlay ("streh");
Symbol 225 MovieClip Frame 38
gotoAndPlay ("streh");
Symbol 225 MovieClip Frame 52
gotoAndPlay ("streh");
Symbol 225 MovieClip Frame 57
if (_parent._parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 225 MovieClip Frame 59
gotoAndPlay ("streh");
Symbol 225 MovieClip Frame 64
if (_parent._parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 225 MovieClip Frame 66
gotoAndPlay ("streh");
Symbol 225 MovieClip Frame 71
if (_parent._parent.povoleni) {
gotoAndPlay ("povolTrp");
}
Symbol 225 MovieClip Frame 73
gotoAndPlay ("streh");
Symbol 225 MovieClip Frame 77
Symbol 225 MovieClip Frame 83
gotoAndStop ("streh");
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
prevFrame();
Symbol 259 MovieClip Frame 7
gotoAndPlay ("streh");
Symbol 259 MovieClip Frame 24
gotoAndPlay ("streh");
Symbol 259 MovieClip Frame 38
gotoAndPlay ("streh");
Symbol 259 MovieClip Frame 52
gotoAndPlay ("streh");
Symbol 259 MovieClip Frame 56
if (_parent._parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 259 MovieClip Frame 59
gotoAndPlay ("streh");
Symbol 259 MovieClip Frame 63
if (_parent._parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 259 MovieClip Frame 66
gotoAndPlay ("streh");
Symbol 259 MovieClip Frame 70
if (_parent._parent.povoleni) {
gotoAndPlay ("povolTrp");
}
Symbol 259 MovieClip Frame 73
gotoAndPlay ("streh");
Symbol 259 MovieClip Frame 77
Symbol 259 MovieClip Frame 83
gotoAndStop ("streh");
Symbol 260 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 1
_parent._parent.smiZmenit = 1;
_parent._parent.utok = 0;
stop();
Symbol 319 MovieClip Frame 2
prevFrame();
Symbol 319 MovieClip Frame 6
if (_parent._parent.unika) {
_parent._parent.unika = 0;
_parent._parent.uder(_parent._parent.volbaUderu(3));
}
Symbol 319 MovieClip Frame 7
gotoAndPlay ("streh");
Symbol 319 MovieClip Frame 12
if (_parent._parent.unika) {
_parent._parent.unika = 0;
_parent._parent.uder(_parent._parent.volbaUderu(1));
}
Symbol 319 MovieClip Frame 13
gotoAndPlay ("streh");
Symbol 319 MovieClip Frame 15
_parent._parent.povoleni = false;
Symbol 319 MovieClip Frame 16
_parent._parent.vypad(_parent._parent.volbaUderu(3));
Symbol 319 MovieClip Frame 20
if (_parent._parent.rev < 1) {
_parent._parent.smiZmenit = 1;
}
_root.chlap.ukazDoStrany();
Symbol 319 MovieClip Frame 22
_parent._parent.smiZmenit = 0;
if (_parent._parent.rev > 0) {
_parent._parent.uzJede = 1;
}
Symbol 319 MovieClip Frame 25
_root.zvuky.tetiva.start();
_parent._parent.uzJede = 1;
Symbol 319 MovieClip Frame 27
_parent._parent.stret(1);
Symbol 319 MovieClip Frame 31
gotoAndPlay ("streh");
Symbol 319 MovieClip Frame 35
if (_parent._parent.rev < 1) {
_parent._parent.smiZmenit = 1;
}
_root.chlap.ukazDoStrany();
Symbol 319 MovieClip Frame 37
_parent._parent.smiZmenit = 0;
if (_parent._parent.rev > 0) {
_parent._parent.uzJede = 1;
}
Symbol 319 MovieClip Frame 40
_root.zvuky.tetiva.start();
_parent._parent.uzJede = 1;
Symbol 319 MovieClip Frame 42
_parent._parent.stret(3);
Symbol 319 MovieClip Frame 46
gotoAndPlay ("streh");
Symbol 319 MovieClip Frame 50
if (_parent._parent.rev < 1) {
_parent._parent.smiZmenit = 1;
}
_root.chlap.ukazDoStrany();
Symbol 319 MovieClip Frame 52
_parent._parent.smiZmenit = 0;
if (_parent._parent.rev > 0) {
_parent._parent.uzJede = 1;
}
Symbol 319 MovieClip Frame 55
_root.zvuky.tetiva.start();
_parent._parent.uzJede = 1;
Symbol 319 MovieClip Frame 57
_parent._parent.stret(2);
Symbol 319 MovieClip Frame 61
gotoAndPlay ("streh");
Symbol 319 MovieClip Frame 66
if (_parent._parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 319 MovieClip Frame 68
if (!_parent._parent.unika) {
gotoAndPlay ("streh");
}
Symbol 319 MovieClip Frame 69
_parent._parent.unika = 0;
_parent._parent.uder(_parent._parent.volbaUderu(1));
Symbol 319 MovieClip Frame 74
if (_parent._parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 319 MovieClip Frame 76
gotoAndPlay ("streh");
Symbol 319 MovieClip Frame 81
if (_parent._parent.povoleni) {
gotoAndPlay ("povolTrp");
}
Symbol 319 MovieClip Frame 83
gotoAndPlay ("streh");
Symbol 319 MovieClip Frame 84
Symbol 319 MovieClip Frame 85
_parent._parent.povoleni = false;
Symbol 319 MovieClip Frame 86
if (_root.chlap.uzJede > 0) {
prevFrame();
} else if (_root.chlap.smiChodit) {
_parent._parent.vypad(_parent._parent.volbaUderu(2));
} else {
_parent._parent.uder(_parent._parent.volbaUderu(2));
}
Symbol 319 MovieClip Frame 91
gotoAndPlay ("streh");
Symbol 319 MovieClip Frame 96
gotoAndStop ("streh");
Symbol 319 MovieClip Frame 97
Symbol 319 MovieClip Frame 98
_parent._parent.neni = true;
_parent._parent._rotation = _parent._parent.rotation1 - ((1 * _parent._parent._xscale) / 10);
_parent._parent._y = _parent._parent.y1 + 10;
_parent._parent.nohy.nohy.gotoAndPlay("smrt");
play();
Symbol 319 MovieClip Frame 99
_parent._parent._rotation = _parent._parent.rotation1 - ((2 * _parent._parent._xscale) / 10);
_parent._parent._y = _parent._parent.y1 + 20;
play();
Symbol 319 MovieClip Frame 100
_parent._parent._rotation = _parent._parent.rotation1 - ((6 * _parent._parent._xscale) / 10);
_parent._parent._y = _parent._parent.y1 + 60;
play();
Symbol 319 MovieClip Frame 101
_parent._parent._rotation = _parent._parent.rotation1 - ((12 * _parent._parent._xscale) / 10);
_parent._parent._y = _parent._parent.y1 + 110;
play();
Symbol 319 MovieClip Frame 102
play();
Symbol 319 MovieClip Frame 103
play();
Symbol 319 MovieClip Frame 110
_parent._parent.coPoSmrti();
Symbol 319 MovieClip Frame 114
_parent._parent.hlava.gotoAndStop("streh");
gotoAndStop ("streh");
Symbol 320 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
function volbaUderu(odkud) {
var _local2 = odkud;
var _local3 = _parent;
if (((_root.lekce == 1) || (_root.lekce == 2)) || (_root.lekce == 6)) {
return(0);
}
var _local1;
if (_local2 == 3) {
_local1 = random(uder3 + (_local3.chlap.chodil * 2));
_local3.chlap.chodil = 0;
}
if ((_local2 == 1) || (_local2 == 2)) {
_local1 = random(uder2);
}
if (!_local2) {
_local1 = random(uder3 + (_local3.chlap.chodil * 2));
_local3.chlap.chodil = 0;
}
if (_local1 >= uder2) {
return(3);
}
if ((_local1 >= uder1) && (_local2 != 3)) {
return(2);
}
return(1);
}
function uder(jakej) {
var _local2 = jakej;
if (!_local2) {
return(0);
}
if (_root.chlap.neni) {
return(0);
}
smiZmenit = 0;
var _local1 = rychlost;
if (((_local2 > 0) && (_local1 > 1)) && (random(100) < agrese)) {
_local1 = _local1 - 2;
if (_local1 < 1) {
_local1 = 1;
}
rev = 1;
hlava.drzka.drzka.gotoAndPlay("rev");
_root.zvuky["rev" + pohlavi].start();
} else {
rev = 0;
}
switch (_local2) {
case 1 :
kam = "strecha" + _local1;
break;
case 2 :
kam = "bejk" + _local1;
break;
case 3 :
kam = "trpaslik" + _local1;
break;
case -1 :
kam = "strechaKryt";
break;
case -2 :
kam = "bejkKryt";
break;
case -3 :
kam = "trpKryt";
break;
case 7 :
kam = "povol";
}
_x = x1;
_y = y1;
utok = _local2;
poslUtok = _local2;
ruce.ruce.gotoAndPlay(kam);
zbran.zbran.gotoAndPlay(kam);
return(undefined);
}
function ukrok(smer) {
var _local1 = smer;
var _local2 = _parent;
_x = (_x + (_local1 * 20));
_root.zvuky.krok.start();
nohy.nohy.gotoAndPlay("ukrok");
krokSmer = _local1;
if ((_local1 * _xscale) > 0) {
obratSe();
}
smiChodit = 0;
if ((_xscale * _local1) > 0) {
_local2.chlap.stopy.gotoAndPlay("UkrokVpravo");
}
if ((_xscale * _local1) < 0) {
_local2.chlap.stopy.gotoAndPlay("UkrokVlevo");
}
_local2.chlap.smiChodit = -1;
}
function unik(smer) {
var _local1 = smer;
var _local2 = _parent;
unika = 0;
_root.zvuky.krok.start();
if (_local1 == 0) {
unika = 1;
nohy.nohy.gotoAndPlay("couvnuti");
ruce.ruce.gotoAndPlay("couvnuti");
zbran.zbran.gotoAndPlay("couvnuti");
smiChodit = 0;
return(0);
}
unika = 1;
ruce.ruce.gotoAndPlay("trpKryt");
zbran.zbran.gotoAndPlay("unik");
nohy.nohy.gotoAndPlay("unik");
krokSmer = _local1;
smiChodit = 0;
if ((_xscale * _local1) > 0) {
_local2.chlap.stopy.gotoAndPlay("UkrokVpravo");
}
if ((_xscale * _local1) < 0) {
_local2.chlap.stopy.gotoAndPlay("UkrokVlevo");
}
_local2.chlap.smiChodit = -1;
return(undefined);
}
function vypad(kolik) {
smiChodit = 0;
nohy.nohy.gotoAndPlay("vypad" + rychlost);
if (kolik) {
uder(kolik);
}
}
function kryt(kolik) {
uder(-kolik);
}
function povol(kolik) {
this.povoleni = true;
uder(-kolik);
}
function doStrehu() {
gotoAndPlay ("streh");
}
function obratSe() {
var _local1 = _parent;
_xscale = (_xscale * -1);
zraneni._xscale = zraneni._xscale * -1;
_local1.chlap._x = _local1.chlap._x + ((_local1.chlap._xscale * 2) / 10);
_local1.chlap._xscale = _local1.chlap._xscale * -1;
if (_local1.chlap._xscale < 1) {
_local1.chlap._x = _local1.chlap._x - 20;
_local1.sipky._x = _local1.sipky._x - 20;
} else {
_local1.chlap._x = _local1.chlap._x + 20;
_local1.sipky._x = _local1.sipky._x + 20;
}
_local1.chlap.zraneni._xscale = _local1.chlap.zraneni._xscale * -1;
_local1.sipky.gotoAndPlay(2);
_local1.sipky._xscale = _local1.sipky._xscale * -1;
}
function posunSe(x, y) {
_x = (_x + x);
_y = (_y + y);
}
function silaUderu(typ) {
var _local1 = sila + mec;
var _local2 = Math.floor(_local1 / 4);
if (typ == 1) {
_local1 = _local1 + _local2;
} else if (typ > 2) {
_local1 = _local1 - _local2;
}
if (rev > 0) {
_local1 = _local1 * 3;
}
return(_local1);
}
function nastav(typ) {
var _local2 = typ;
var _local3 = _parent;
var _local1 = _root.chlapi[_local2];
jmeno = _local1.jmeno;
pohlavi = _local1.pohlavi;
this.typ = _local2;
uniky = _local1.uniky;
agrese = _local1.agrese;
_local3.pult.stupnice2.jmeno = this.jmeno;
maxZiv = _local1.zivotu;
zivotu = _local1.zivotu;
_local3.pult.stupnice2.nastav(20);
akce = _local1.akce;
rychlost = _local1.rychlost;
if ((_root.obtiznost < 2) && (rychlost > 1)) {
rychlost--;
}
reakce = _local1.reakce;
sila = _local1.sila;
obrana = _local1.obrana;
zbroj = _local1.zbroj;
chuze = _local1.chuze;
oblek = _local1.oblek;
uder1 = _local1.udery[1];
uder2 = uder1 + _local1.udery[2];
uder3 = uder2 + _local1.udery[3];
mec = _local1.mec;
souprava = 1;
oblikni(_local2);
neni = 0;
smiChodit = 1;
smiZmenit = 1;
_local3.sipky._visible = _root.kruh;
gotoAndPlay (1);
}
function oblikni(typ) {
var _local1;
var h2;
var h3;
var _local3;
var r1;
var _local2;
var neco;
_local1 = 1;
while (_local1 < 5) {
zbroj[_local1] = 0;
_local1++;
}
neco = _root.obleky[typ];
_local1 = neco[0];
h2 = neco[1];
h3 = neco[2];
_local3 = neco[3];
r1 = neco[4];
_local2 = neco[5];
if (h2 == 5) {
zbroj[1] = zbroj[1] + 1;
}
if (h2 == 6) {
zbroj[1] = zbroj[1] + 3;
}
if (h3 == 2) {
zbroj[1] = zbroj[1] + 1;
}
if (h3 == 3) {
zbroj[1] = zbroj[1] + 4;
}
if (h3 == 4) {
zbroj[1] = zbroj[1] + 2;
}
if (_local3 == 5) {
zbroj[2] = zbroj[2] + 2;
zbroj[3] = zbroj[3] + 1;
}
if (_local3 == 6) {
zbroj[2] = zbroj[2] + 3;
zbroj[3] = zbroj[3] + 2;
}
if (_local3 == 7) {
zbroj[2] = zbroj[2] + 4;
zbroj[3] = zbroj[3] + 2;
}
if (_local3 == 9) {
zbroj[2] = zbroj[2] + 3;
zbroj[3] = zbroj[3] + 1;
}
if ((_local3 == 4) && (r1 == 4)) {
zbroj[2] = zbroj[2] + 3;
zbroj[3] = zbroj[3] + 2;
}
if ((_local3 == 4) && (r1 == 5)) {
zbroj[2] = zbroj[2] + 4;
zbroj[3] = zbroj[3] + 2;
}
if (r1 == 4) {
zbroj[2] = zbroj[2] + 2;
}
if (r1 == 5) {
zbroj[2] = zbroj[2] + 3;
}
if ((_local2 == 10) && (r1 == 4)) {
zbroj[3] = zbroj[3] + 3;
}
if (_local2 == 4) {
zbroj[3] = zbroj[3] + 2;
}
if ((_local2 > 4) && (_local2 < 9)) {
zbroj[3] = zbroj[3] + 1;
}
if (_local2 <= 4) {
nohy.nohy.vzadu._visible = false;
} else {
nohy.nohy.vzadu._visible = true;
}
hlava.drzka.gotoAndStop(_local1);
hlava.vlasy.gotoAndStop(h2);
hlava.pokryvka.gotoAndStop(h3);
telo.telo.gotoAndStop(_local3);
ruce.gotoAndStop(r1);
nohy.nohy.leva.gotoAndStop(_local2);
nohy.nohy.prava.gotoAndStop(_local2);
}
function zaznam(uder) {
hist[histStav] = uder;
histStav++;
if (histStav >= hist.length) {
histStav = 0;
}
}
function stret(kolik) {
var _local1 = _parent;
uzJede = 0;
if (utok == 0) {
return(0);
}
if (_local1.chlap.utok != (-utok)) {
_root.zvuky.naraz2.start();
_local1.chlap.zranSe(silaUderu(kolik) - _local1.chlap.zbroj[kolik]);
} else {
var _local2 = random(3) + 1;
_root.zvuky["brink" + _local2].start();
}
utok = 0;
return(undefined);
}
function nebezpeci() {
var _local1;
_local1 = _parent.chlap.utok;
if (_local1 < 0) {
_local1 = 0;
}
return(_local1);
}
function zranSe(kolik, odkud) {
var _local1 = kolik;
var _local2 = _root;
smiZmenit = 0;
if (_local2.lekce) {
_local1 = 0;
}
if (_local1 > 0) {
zivotu = zivotu - _local1;
}
if (odkud == 1) {
hlava.gotoAndPlay("krc");
} else {
hlava.gotoAndPlay("zran");
}
telo.gotoAndPlay("zran");
if ((!uzJede) || (zivotu <= 0)) {
ruce.ruce.gotoAndPlay("zran");
zbran.zbran.gotoAndPlay("zran");
uzJede = 0;
}
if (!_local2.lekce) {
zraneni.cislo = _local1;
zraneni.play();
}
_local2.pult.stupnice2.nastav(Math.ceil((zivotu * 20) / maxZiv));
if (zivotu <= 0) {
zivotu = 0;
smrt(odkud);
} else {
_local2.zvuky["uu" + pohlavi].start();
}
coPoZraneni();
}
function smrt(odkud) {
var _local1 = _root;
_parent.sipky._visible = false;
neni = true;
if (_local1.chlap.souper == this) {
_local1.chlap.souper = 0;
}
if (!_local1.naostro) {
odkud = 0;
}
switch (odkud) {
case 1 :
_local1.zvuky["uu" + pohlavi].start();
hlava.gotoAndPlay("pryc1");
return;
case 2 :
hlava.gotoAndPlay("pryc2");
return;
default :
_local1.zvuky["chcip" + pohlavi].start();
zbran.zbran.gotoAndPlay("smrt");
hlava.gotoAndPlay("smrt");
}
}
function coPoSetkani() {
var _local1 = _root;
if (_local1.lekce) {
_local1.kecy._visible = true;
_local1.pult.stupnice1._visible = false;
_local1.pult.stupnice2._visible = false;
return(0);
}
_local1.kecy._visible = false;
_local1.pult.stupnice1._visible = true;
_local1.pult.stupnice2._visible = true;
if ((_local1.tma == 2) && (typ == _local1.i0)) {
zivotu = _local1.zustaloZivotu;
}
if (_local1.tma == 1) {
_local1.cerna = new Color(this);
_local1.cerna.setRGB(0);
_local1.pult.stupnice2._visible = false;
} else {
_local1.pult.stupnice2._visible = true;
}
delete _local1.cerna;
return(undefined);
}
function coPoZraneni() {
var _local1 = _root;
if ((_local1.tma == 1) && (zivotu <= (maxZiv / 2))) {
delete _local1.cerna;
neni = 1;
_local1.zustaloZivotu = zivotu + 1;
_local1.posunDej(1);
}
}
function coPoSmrti() {
var _local2 = _root;
var _local1;
_local2.skore = _local2.skore + ((_local2.protihrac * 100) + _local2.chlap.zivotu);
_local1 = 1;
switch (_local2.dej) {
case 4 :
_local2.porazen[this.typ] = 1;
do {
if (_local2.porazen[_local1]) {
_local1++;
} else {
break;
}
} while (_local1 < 5);
if (_local1 == 5) {
_local2.posunDej(2);
} else {
_local2.posunDej(0);
}
return;
case 45 :
_local2.posunDej(-10);
return;
case 89 :
_local2.posunDej(1);
return;
default :
_local2.posunDej(1);
}
}
this.onEnterFrame = function () {
if (neni) {
return(0);
}
var _local3;
var _local1;
var vec;
var vec2;
var _local2;
if ((!krokSmer) && (_parent.chlap.smiChodit < 0)) {
_parent.chlap.smiChodit = 1;
}
_parent.prostredi.stranou(krokSmer * 30);
_local2 = nebezpeci();
if (smiZmenit && (_local2)) {
_local3 = obrana[_local2] / 9;
r = obrana[_local2];
_local1 = 0;
while (_local1 < hist.length) {
if (hist[_local1] && (hist[_local1] != _local2)) {
r = r - _local3;
}
if (hist[_local1] && (hist[_local1] == _local2)) {
r = r + (_local3 * 3);
}
_local1++;
}
if (_local2 == poslUtok) {
r = r + (_local3 * 2);
}
r = Math.round(r);
vec = random(100);
if (vec < r) {
vec2 = random(100);
if (vec2 < uniky) {
if (_local2 < 3) {
unik(_xscale / 100);
}
if (_local2 == 3) {
unik(0);
}
} else {
vec3 = random(100);
if ((_local2 < 4) && (vec3 < reakce)) {
povol(_local2);
} else {
kryt(_local2);
}
}
return(0);
}
}
cas++;
if (cas >= (30 - akce)) {
cas = 0;
_x = (_x + ((x1 - _x) / 2));
_y = (_y + ((y1 - _y) / 2));
_rotation = rotation1;
if (rev < 1) {
hlava.drzka.drzka.gotoAndStop("streh");
}
vec = random(100);
u = random(2);
if (((vec > 0) && (vec <= chuze)) && (utok < 1)) {
if (u) {
ukrok(-1);
} else {
ukrok(1);
}
}
if ((smiZmenit && (vec > 65)) && (utok < 1)) {
v = volbaUderu(0);
u = random(2);
if ((smiChodit > 0) && (u)) {
vypad(v);
} else {
uder(v);
}
}
}
return(undefined);
};
hist = new Array(4);
coPoSetkani();
_root.pult.stupnice2.nastav(Math.round((zivotu * 20) / maxZiv));
Symbol 321 MovieClip Frame 2
oblikni(typ);
_root.pult.stupnice2.nastav(20);
stop();
Symbol 321 MovieClip Frame 3
_rotation = rotation1;
_y = y1;
_visible = false;
stop();
Symbol 324 MovieClip Frame 1
function nastav(typ0, barva0) {
typ = typ0;
barva = barva0;
}
chlap._visible = false;
Symbol 324 MovieClip Frame 2
chlap._visible = true;
chlap.oblikni(typ);
chlap.jmeno = _root.chlapi[typ].jmeno;
chlap.neni = 1;
var t;
switch (barva) {
case 2 :
meno.textColor = 10027008 /* 0x990000 */;
break;
case 3 :
meno.textColor = 13056;
break;
case 4 :
meno.textColor = 6710886 /* 0x666666 */;
break;
default :
meno.textColor = 0;
}
stop();
Symbol 324 MovieClip Frame 3
stop();
Symbol 326 Button
on (release) {
_root.boj(this.cislo, "sermirna");
}
Symbol 368 Button
on (release) {
gotoAndStop ("marketaZnova");
}
Symbol 369 Button
on (release) {
gotoAndStop ("naCestu");
}
Symbol 391 MovieClip Frame 1
Symbol 391 MovieClip Frame 2
stop();
Symbol 391 MovieClip Frame 3
Instance of Symbol 324 MovieClip "ikonka1" in Symbol 391 MovieClip Frame 3
onClipEvent (enterFrame) {
nastav(12, 1);
}
Symbol 391 MovieClip Frame 4
_root.naostro = 0;
_root.dej = _currentframe;
_root.chlap.lecba();
play();
Instance of Symbol 327 MovieClip "buton1" in Symbol 391 MovieClip Frame 4
onClipEvent (load) {
cislo = 1;
}
Instance of Symbol 327 MovieClip "buton2" in Symbol 391 MovieClip Frame 4
onClipEvent (load) {
cislo = 2;
}
Instance of Symbol 327 MovieClip "buton3" in Symbol 391 MovieClip Frame 4
onClipEvent (load) {
cislo = 3;
}
Instance of Symbol 327 MovieClip "buton4" in Symbol 391 MovieClip Frame 4
onClipEvent (load) {
cislo = 4;
}
Instance of Symbol 324 MovieClip "ikonka1" in Symbol 391 MovieClip Frame 4
onClipEvent (enterFrame) {
nastav(1, 1);
}
Instance of Symbol 324 MovieClip "ikonka2" in Symbol 391 MovieClip Frame 4
onClipEvent (enterFrame) {
nastav(2, 1);
}
Instance of Symbol 324 MovieClip "ikonka3" in Symbol 391 MovieClip Frame 4
onClipEvent (enterFrame) {
nastav(3, 1);
}
Instance of Symbol 324 MovieClip "ikonka4" in Symbol 391 MovieClip Frame 4
onClipEvent (enterFrame) {
nastav(4, 1);
}
Symbol 391 MovieClip Frame 5
var x;
x = 1;
while (x <= 4) {
if (_root.porazen[x] == 1) {
this["ikonka" + x]._xscale = 75;
this["ikonka" + x]._yscale = 75;
this["buton" + x]._visible = false;
} else {
this["ikonka" + x]._xscale = 100;
this["ikonka" + x]._yscale = 100;
this["buton" + x]._visible = true;
}
x++;
}
stop();
Symbol 391 MovieClip Frame 6
_root.dej = _currentframe;
_root.chlap.zbroj[2] = _root.chlap.zbroj[2] + 2;
_root.chlap.zbroj[3] = _root.chlap.zbroj[3] + 1;
Instance of Symbol 324 MovieClip "ikonka1" in Symbol 391 MovieClip Frame 6
onClipEvent (enterFrame) {
nastav(12, 2);
}
Instance of Symbol 324 MovieClip "ikonka2" in Symbol 391 MovieClip Frame 7
onClipEvent (enterFrame) {
nastav(16, 3);
}
Instance of Symbol 324 MovieClip "ikonka1" in Symbol 391 MovieClip Frame 11
onClipEvent (enterFrame) {
nastav(6, 2);
}
Symbol 391 MovieClip Frame 17
_root.naostro = 1;
_root.dej = _currentframe;
_root.chlap.lecba();
_root.boj(6, "nadvori");
Instance of Symbol 324 MovieClip "ikonka1" in Symbol 391 MovieClip Frame 18
onClipEvent (enterFrame) {
nastav(16, 2);
}
Instance of Symbol 324 MovieClip "ikonka2" in Symbol 391 MovieClip Frame 22
onClipEvent (enterFrame) {
nastav(17, 2);
}
Symbol 391 MovieClip Frame 23
_root.naostro = 1;
_root.dej = _currentframe;
_root.chlap.lecba();
_root.boj(17, "podzemi");
Instance of Symbol 324 MovieClip "ikonka1" in Symbol 391 MovieClip Frame 24
onClipEvent (enterFrame) {
nastav(16, 2);
}
Instance of Symbol 324 MovieClip "ikonka1" in Symbol 391 MovieClip Frame 30
onClipEvent (enterFrame) {
nastav(5, 2);
}
Symbol 391 MovieClip Frame 34
_root.naostro = 0;
_root.dej = _currentframe;
_root.chlap.lecba();
_root.boj(5, "nadvori");
Symbol 391 MovieClip Frame 35
_root.dej = _currentframe;
Instance of Symbol 324 MovieClip "ikonka1" in Symbol 391 MovieClip Frame 35
onClipEvent (enterFrame) {
nastav(5, 2);
}
Symbol 391 MovieClip Frame 37
_root.chlap.zbroj[1] = _root.chlap.zbroj[1] + 2;
Symbol 391 MovieClip Frame 38
gotoAndStop ("naCestu");
Instance of Symbol 324 MovieClip "ikonka1" in Symbol 391 MovieClip Frame 39
onClipEvent (enterFrame) {
nastav(5, 2);
}
Symbol 391 MovieClip Frame 45
_root.naostro = 0;
_root.dej = _currentframe;
_root.chlap.lecba();
Instance of Symbol 324 MovieClip "ikonka1" in Symbol 391 MovieClip Frame 46
onClipEvent (enterFrame) {
nastav(5, 2);
}
Symbol 391 MovieClip Frame 48
_root.boj(5, "nadvori");
Symbol 391 MovieClip Frame 49
_root.dej = _currentframe;
Symbol 391 MovieClip Frame 50
_root.leku = 1;
Symbol 406 Button
on (release) {
getURL ((("http://www.arcadetown.com/index.asp?gameid=schoolofsword&aid=" + _parent.menu.menu.GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url), "_blank");
}
Symbol 412 MovieClip Frame 54
_parent.play();
stop();
Symbol 421 MovieClip Frame 7
_parent.play();
Symbol 421 MovieClip Frame 22
stop();
Symbol 431 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.vodjed(1);
}
Symbol 432 Button
on (rollOver) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.vodjed(2);
}
Symbol 433 Button
on (rollOver) {
gotoAndStop (4);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.vodjed(3);
}
Symbol 434 Button
on (rollOver) {
gotoAndStop (5);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.vodjed(4);
}
Symbol 435 Button
on (rollOver) {
gotoAndStop (6);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.vodjed(5);
}
Symbol 436 Button
on (rollOver) {
gotoAndStop (7);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.vodjed(6);
}
Symbol 437 Button
on (rollOver) {
gotoAndStop (9);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ((("http://www.arcadetown.com/index.asp?gameid=schoolofsword&aid=" + GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url), "_blank");
}
Symbol 438 Button
on (rollOver) {
gotoAndStop (8);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.arcadetown.com/schoolofsword/view_high_scores.asp", "_blank");
}
Symbol 439 MovieClip Frame 1
function GetUrlParam(strUrl, strParam) {
var _local3 = strUrl.toLowerCase();
var _local1 = _local3.indexOf(strParam);
var nParamLen = strParam.length;
if (_local1 > 0) {
var nNumChars;
var _local2 = _local3.indexOf("&", _local1 + nParamLen);
if (_local2 > 0) {
nNumChars = _local2 - _local1;
} else {
nNumChars = strUrl.length - _local1;
}
return(strUrl.substr(_local1 + nParamLen, nNumChars));
}
return("");
}
stop();
Symbol 445 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
var v = kod(retezec);
if (v > 1) {
_root.dej = v;
_root.skore = 0;
_root.lekce = 0;
_root.play();
}
_parent.play();
}
Symbol 446 MovieClip Frame 1
function kod(s) {
var _local1;
switch (s) {
case "beatingall" :
_local1 = 5;
break;
case "ridingnorth" :
_local1 = 48;
break;
default :
_local1 = 1;
}
return(_local1);
}
stop();
Symbol 447 Button
on (release) {
_parent.play();
}
Symbol 451 Button
on (release) {
_parent.nextFrame();
}
Symbol 452 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 1
stop();
Symbol 463 Button
on (release) {
gotoAndStop (2);
}
Symbol 465 Button
on (release) {
gotoAndStop (1);
}
Symbol 466 MovieClip Frame 1
_root.obtiznost = 1;
stop();
Symbol 466 MovieClip Frame 2
_root.obtiznost = 2;
Symbol 469 Button
on (release) {
gotoAndStop (2);
}
Symbol 471 Button
on (release) {
gotoAndStop (1);
}
Symbol 472 MovieClip Frame 1
_root.kruh = 1;
stop();
Symbol 472 MovieClip Frame 2
_root.kruh = 0;
Symbol 475 Button
on (release) {
gotoAndStop (2);
}
Symbol 477 Button
on (release) {
gotoAndStop (1);
}
Symbol 478 MovieClip Frame 1
_root._highquality = 1;
stop();
Symbol 478 MovieClip Frame 2
_root._highquality = 0;
Symbol 480 MovieClip Frame 1
soup.gotoAndStop(_root.obtiznost);
if (!_root.kruh) {
zam.gotoAndStop(2);
}
kva.gotoAndStop(2 - _root._highquality);
stop();
Symbol 482 Button
on (release) {
ptak.play();
getURL ("http://www.thunderbird.cz/", "_blank");
}
Symbol 488 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 1
function vodjed(kolik) {
gotoAndPlay ("pryc");
volba = kolik;
}
stop();
Symbol 497 MovieClip Frame 7
stop();
Symbol 497 MovieClip Frame 13
gotoAndPlay("L" + volba);
Symbol 497 MovieClip Frame 14
_root.lekce = 1;
Symbol 497 MovieClip Frame 15
_parent._parent.play();
stop();
Symbol 497 MovieClip Frame 16
_root.lekce = 0;
Symbol 497 MovieClip Frame 17
_root.skore = 0;
_parent._parent.play();
stop();
Symbol 497 MovieClip Frame 21
stop();
Symbol 497 MovieClip Frame 24
gotoAndPlay ("sem");
Symbol 497 MovieClip Frame 28
stop();
Symbol 497 MovieClip Frame 31
gotoAndPlay ("sem");
Symbol 497 MovieClip Frame 35
stop();
Symbol 497 MovieClip Frame 38
gotoAndPlay ("sem");
Symbol 497 MovieClip Frame 42
stop();
Symbol 497 MovieClip Frame 45
gotoAndPlay ("sem");
Symbol 523 MovieClip Frame 6
stop();
Symbol 524 MovieClip Frame 2
stop();
Symbol 524 MovieClip Frame 41
menu.gotoAndPlay("sem");
Symbol 524 MovieClip Frame 42
stop();
Symbol 525 Button
on (release) {
gotoAndStop ("off");
}
Symbol 527 Button
on (release) {
_root.ticho = 0;
_root.hudboHraj(_root.zvukPozadi.s);
gotoAndStop ("on");
}
Symbol 528 MovieClip Frame 33
stop();
Symbol 528 MovieClip Frame 34
_root.zvukPozadi.stop();
_root.ticho = 1;
Symbol 529 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_root.dej = 0;
_root.chlap._visible = false;
_root.chlap1._visible = false;
_parent.intro._visible = true;
_parent.naMenu = 1;
_parent.play();
}
Symbol 533 MovieClip Frame 1
stop();
Symbol 540 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
var p = playerName.text;
if (!p.length) {
p = "Unknown Hero";
}
var strOut = ((p + "|") + _root.skore);
_root.skore = 0;
var strOut2 = _root.EncrpytString(strOut);
getURL ("http://www.arcadetown.com/schoolofsword/hs.asp?" + strOut2, "_blank");
_root.gotoAndStop("zac");
}
Symbol 541 Button
on (rollOver) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_root.gotoAndStop("zac");
}
Symbol 544 MovieClip Frame 1
function kod(s) {
var _local1;
switch (s) {
case "whereishe" :
_local1 = 36;
break;
case "intomountains" :
_local1 = 52;
break;
default :
_local1 = 1;
}
return(_local1);
}
stop();
Symbol 563 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 6
stop();
Symbol 573 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 2
dvere1.gotoAndStop("bezDveri");
dvere3.gotoAndStop("nahore");
var x;
x = 1;
while (x < 6) {
this["okno" + x].gotoAndStop("nahore");
this["stit" + x].gotoAndStop(x);
x++;
}
okno6.gotoAndStop("bezDveri");
stop();
Symbol 590 MovieClip Frame 2
dvere1.gotoAndStop("bezDveri");
dvere3.gotoAndStop("nahore");
var x;
x = 1;
while (x < 4) {
this["okno" + x].gotoAndStop("nahore");
x++;
}
stop();
Symbol 591 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 1
function stranou(kolik) {
objekt._x = objekt._x - kolik;
objekt2._x = objekt2._x - kolik;
nepres = 3;
if (objekt._x > (-nepres)) {
objekt2._x = objekt._x;
objekt._x = (objekt._x - objekt._width) + nepres;
} else if (_parent._width > ((objekt._x + objekt._width) - nepres)) {
objekt2._x = objekt._x;
objekt._x = objekt._x + (objekt._width - nepres);
}
}
function otoc(kolik) {
var _local2 = _parent;
kousek = Math.round(kolik / 28);
zbyvaSnimku = 7;
var _local1;
_local1 = 1;
while (_local1 <= _local2.nepratel) {
_local2["chlap" + _local1].ukrok(0);
_local1++;
}
}
this.onEnterFrame = function () {
var _local1 = _parent;
if (zbyvaSnimku) {
stranou(kousek * zbyvaSnimku);
zbyvaSnimku--;
if (zbyvaSnimku < 4) {
_local1.chlap.smiZmenit = 1;
}
if (zbyvaSnimku < 2) {
}
if ((zbyvaSnimku < 2) && (_local1.chlap.souper.smiChodit < 0)) {
_local1.chlap.souper.smiChodit = 1;
}
}
};
stop();
Symbol 592 MovieClip Frame 3
objekt.gotoAndStop(nahraj);
objekt2.gotoAndStop(nahraj);
Symbol 592 MovieClip Frame 6
Symbol 592 MovieClip Frame 7
Symbol 592 MovieClip Frame 9
_parent.play();
Symbol 592 MovieClip Frame 10
objekt2._x = objekt._x + objekt._width;
objekt2._y = objekt._y;
objekt._xscale = 400;
objekt._yscale = 400;
objekt2._xscale = objekt._xscale;
objekt2._yscale = objekt._yscale;
stop();
Symbol 595 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 1
Symbol 596 MovieClip Frame 2
sipky.gotoAndPlay(2);
Symbol 596 MovieClip Frame 28
stop();
Symbol 598 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 1
function nastav(p) {
gotoAndStop(20 - p);
}
stop();
Symbol 608 Button
on (release) {
_root.chlap.zivotu = _root.chlap.maxZiv;
_root.leku--;
_parent.stupnice1.nastav(19);
_root.zvuky.naraz2.start();
if (_root.chlap.leku <= 0) {
this._visible = 0;
}
}
Symbol 609 MovieClip Frame 1
stop();
Instance of Symbol 607 MovieClip "stupnice1" in Symbol 610 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 607 MovieClip "stupnice2" in Symbol 610 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 610 MovieClip Frame 6
if (_root.leku > 0) {
lek._visible = true;
} else {
lek._visible = false;
}
stop();
Symbol 614 MovieClip Frame 1
_parent.krokSmer = 0;
_parent.smiZmenit = 1;
stop();
Symbol 614 MovieClip Frame 2
prevFrame();
Symbol 614 MovieClip Frame 5
if (_parent.smiChodit == 0) {
if (_parent.unika && ((_parent.souper.utok == 1) || (_parent.souper.utok == 2))) {
_parent.souper.utok = 0;
}
_parent._parent.prostredi.otoc((300 * _parent._xscale) / 100);
_parent.souper._x = _parent.souper._x - ((20 * _parent.souper._xscale) / 100);
}
Symbol 614 MovieClip Frame 6
Symbol 614 MovieClip Frame 9
gotoAndPlay ("streh");
Symbol 614 MovieClip Frame 11
if (_parent.smiChodit == 0) {
if (_parent.unika && (_parent.souper.utok == 1)) {
_parent.souper.utok = 0;
}
_parent._parent.prostredi.otoc((-300 * _parent._xscale) / 100);
_parent.souper._x = _parent.souper._x + ((20 * _parent.souper._xscale) / 100);
}
Symbol 614 MovieClip Frame 12
Symbol 614 MovieClip Frame 15
gotoAndPlay ("streh");
Symbol 614 MovieClip Frame 17
if (_parent.unika && (_parent.souper.utok == 3)) {
_parent.souper.utok = 0;
}
Symbol 614 MovieClip Frame 20
_parent.smiChodit = 1;
_parent.smiZmenit = 1;
Symbol 614 MovieClip Frame 21
gotoAndPlay ("streh");
Symbol 618 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 1
_parent.smiZmenit = 1;
_parent.utok = 0;
_parent.ukazDoStrany();
stop();
Symbol 641 MovieClip Frame 2
prevFrame();
Symbol 641 MovieClip Frame 3
prevFrame();
Symbol 641 MovieClip Frame 6
_parent.smiZmenit = 1;
Symbol 641 MovieClip Frame 7
if (_parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 641 MovieClip Frame 10
if (_parent.souper.utok == 0) {
gotoAndPlay ("streh");
}
Symbol 641 MovieClip Frame 13
gotoAndPlay ("streh");
Symbol 641 MovieClip Frame 16
_parent.smiZmenit = 1;
Symbol 641 MovieClip Frame 20
if (_parent.souper.utok == 0) {
gotoAndPlay ("streh");
}
Symbol 641 MovieClip Frame 23
gotoAndPlay ("streh");
Symbol 641 MovieClip Frame 26
_parent.smiZmenit = 1;
Symbol 641 MovieClip Frame 27
if (_parent.povoleni) {
gotoAndPlay ("povol");
}
Symbol 641 MovieClip Frame 30
if (_parent.souper.utok == 0) {
gotoAndPlay ("streh");
}
Symbol 641 MovieClip Frame 33
gotoAndPlay ("streh");
Symbol 641 MovieClip Frame 36
play();
_parent.smiZmenit = 0;
if (!_parent.utokyDoPrazdna()) {
_parent.utok = 1;
}
Symbol 641 MovieClip Frame 40
_root.zvuky.tetiva.start();
Symbol 641 MovieClip Frame 41
Symbol 641 MovieClip Frame 42
_parent.stret(1);
Symbol 641 MovieClip Frame 46
_parent.utok = 0;
gotoAndPlay ("streh");
Symbol 641 MovieClip Frame 50
play();
_parent.smiZmenit = 0;
if (!_parent.utokyDoPrazdna()) {
_parent.utok = 2;
}
Symbol 641 MovieClip Frame 54
_root.zvuky.tetiva.start();
Symbol 641 MovieClip Frame 55
Symbol 641 MovieClip Frame 56
_parent.stret(2);
Symbol 641 MovieClip Frame 60
_parent.utok = 0;
gotoAndPlay ("streh");
Symbol 641 MovieClip Frame 64
play();
_parent.smiZmenit = 0;
if (!_parent.utokyDoPrazdna()) {
_parent.utok = 3;
}
Symbol 641 MovieClip Frame 68
_root.zvuky.tetiva.start();
Symbol 641 MovieClip Frame 69
Symbol 641 MovieClip Frame 70
_parent.stret(3);
Symbol 641 MovieClip Frame 74
_parent.utok = 0;
gotoAndPlay ("streh");
Symbol 641 MovieClip Frame 79
Symbol 641 MovieClip Frame 82
_parent.vypad(_parent.povoleni);
_parent.povoleni = 0;
Symbol 641 MovieClip Frame 83
Symbol 641 MovieClip Frame 88
gotoAndStop ("streh");
Symbol 642 MovieClip Frame 1
function ukazDoStrany() {
var _local1 = _root;
var _local2 = 0;
if ((_local1._ymouse > 110) && (_local1._xmouse < this._x)) {
_local2 = -1;
}
if ((_local1._ymouse > 110) && (_local1._xmouse >= this._x)) {
_local2 = -2;
}
if (leva.hitTest(_local1._xmouse, _local1._xmouse, true)) {
_local2 = 3;
}
if (prava.hitTest(_local1._xmouse, _local1._xmouse, true)) {
_local2 = 2;
}
if (horni.hitTest(_local1._xmouse, _local1._xmouse, true)) {
_local2 = 1;
}
if ((_local2 >= 0) && (!neklikat)) {
_local1.sipky.sipky.gotoAndStop(_local2 + 1);
} else {
_local1.sipky.sipky.gotoAndStop(1);
}
if (smiZmenit && (nebezpeci(_local2))) {
uder(-_local2);
} else if (smiZmenit && (zbran._currentframe < 34)) {
utok = 0;
if (_local2 == 2) {
zbran._rotation = 30;
}
if (_local2 == 3) {
zbran._rotation = -30;
}
if (_local2 < 2) {
zbran._rotation = 0;
}
}
if (cekejNaChuzi) {
_local1.sipkaL._visible = false;
_local1.sipkaP._visible = false;
} else {
_local1.sipkaL._visible = true;
_local1.sipkaP._visible = true;
}
if (_local2 > -1) {
_local1.sipkaL.gotoAndStop(1);
_local1.sipkaP.gotoAndStop(1);
}
if (_local2 == -1) {
_local1.sipkaL.gotoAndStop(2);
_local1.sipkaP.gotoAndStop(1);
}
if (_local2 == -2) {
_local1.sipkaL.gotoAndStop(1);
_local1.sipkaP.gotoAndStop(2);
}
}
function zpracujKlavesy() {
if ((!smiZmenit) || (neni)) {
return(0);
}
stisk = 0;
var doleva;
var _local3;
var _local1;
var _local2;
if (_xscale > 0) {
doleva = 37;
_local3 = 39;
_local1 = 65;
_local2 = 83;
} else {
doleva = 39;
_local3 = 37;
_local1 = 65;
_local2 = 83;
}
if ((((mys < 0) || (Key.isDown(_local1))) || (Key.isDown(_local2))) && (!cekejNaChuzi)) {
if (((mys == -1) || (Key.isDown(_local1))) && (smiChodit != 0)) {
smiChodit = 0;
smiZmenit = 0;
cekejNaChuzi = 20;
ukazDoStrany();
chodil = 1;
if (souper.utok > 0) {
unika = 1;
} else {
unika = 0;
}
souper.smiChodit = -1;
if (_xscale > 0) {
stopy.gotoAndPlay("ukrokVlevo");
} else {
stopy.gotoAndPlay("ukrokVpravo");
}
krokSmer = -1;
mys = 0;
stisk = -1;
}
if (((mys == -2) || (Key.isDown(_local2))) && (smiChodit != 0)) {
smiChodit = 0;
smiZmenit = 0;
cekejNaChuzi = 20;
ukazDoStrany();
chodil = 1;
if (souper.utok > 0) {
unika = 1;
} else {
unika = 0;
}
souper.smiChodit = -1;
if (_xscale > 0) {
stopy.gotoAndPlay("ukrokVpravo");
} else {
stopy.gotoAndPlay("ukrokVlevo");
}
krokSmer = 1;
mys = 0;
stisk = -2;
}
if (((mys == -3) || (Key.isDown(40))) && (smiChodit != 0)) {
mys = 0;
smiChodit = 0;
smiZmenit = 0;
_root.zvuky.krok.start();
stopy.gotoAndPlay("couvnuti");
stisk = -3;
}
} else {
x = 1;
while (x <= 3) {
if (mys == x) {
stisk = x;
posledUtok = x;
mys = 0;
if (nebezpeci(x)) {
uder(-x);
} else {
uder(x);
}
}
x++;
}
if (Key.isDown(38)) {
stisk = 1;
if ((posledUtok != 1) || (souper.utok == 1)) {
posledUtok = 1;
if (nebezpeci(1)) {
uder(-1);
} else {
uder(1);
}
}
}
if (Key.isDown(_local3)) {
stisk = 2;
if ((posledUtok != 2) || (souper.utok == 2)) {
posledUtok = 2;
if (nebezpeci(2)) {
uder(-2);
} else {
uder(2);
}
}
}
if (Key.isDown(doleva)) {
stisk = 3;
if ((posledUtok != 3) || (souper.utok == 3)) {
posledUtok = 3;
if (nebezpeci(3)) {
uder(-3);
} else {
uder(3);
}
}
}
}
if (stisk != posledUtok) {
posledUtok = 0;
}
return(undefined);
}
function utokyDoPrazdna() {
if (_root.lekce && (_root.lekce != 5)) {
return(1);
}
return(0);
}
function uder(jakej) {
var _local2 = jakej;
zbran._rotation = 0;
var _local1 = "";
if (rev) {
_local1 = "Rev";
}
if ((!utokyDoPrazdna()) || (_local2 < 0)) {
utok = _local2;
} else {
utok = 0;
}
switch (_local2) {
case 1 :
kam = "strecha" + _local1;
break;
case 2 :
kam = "bejk" + _local1;
break;
case 3 :
kam = "trpaslik" + _local1;
break;
case -1 :
kam = "strechaKryt";
break;
case -2 :
kam = "bejkKryt";
break;
case -3 :
kam = "trpKryt";
break;
case 7 :
kam = "povol";
}
if (rev > 0) {
_root.zvuky["rev" + pohlavi].start();
}
zbran.gotoAndPlay(kam);
if (_local2 > 0) {
smiZmenit = 0;
}
}
function ukrok(smer) {
_root.zvuky.krok.start();
nohy.gotoAndPlay("ukrok");
}
function vypad(kolik) {
nohy.gotoAndPlay("vypad");
if (kolik) {
uder(kolik);
}
}
function kryt(kolik) {
uder(3 + kolik);
}
function povol(kolik) {
this.povoleni = true;
uder(3 + kolik);
}
function doStrehu() {
gotoAndPlay ("streh");
}
function posunSe(x, y) {
_x = (_x + x);
_y = (_y + y);
}
function silaUderu(typ) {
var _local1 = sila + mec;
var _local2 = Math.floor(_local1 / 4);
if (typ == 1) {
_local1 = _local1 + _local2;
} else if (typ > 2) {
_local1 = _local1 - _local2;
}
if (rev > 0) {
_local1 = _local1 * 3;
}
return(_local1);
}
function stret(kolik) {
var _local1 = kolik;
var _local3 = _root;
smiZmenit = 0;
uzJede = 0;
if (utok == 0) {
zbran.zraneni._visible = false;
return(0);
}
souper.zaznam(_local1);
if (souper.zivotu <= 0) {
zbran.zraneni._visible = false;
return(0);
}
if (souper.utok != (-_local1)) {
zbran.zraneni._visible = true;
_local3.zvuky.naraz2.start();
souper.zranSe(silaUderu(_local1) - souper.zbroj[_local1], utok);
} else {
zbran.zraneni._visible = false;
var _local2 = random(3) + 1;
_local3.zvuky["brink" + _local2].start();
}
if (!_local3.naostro) {
zbran.zraneni.gotoAndStop(2);
} else {
zbran.zraneni.gotoAndStop(1);
}
rev = 0;
utok = 0;
return(undefined);
}
function nebezpeci(kolik) {
if (souper.utok == kolik) {
return(1);
}
return(0);
}
function lecba(kolik) {
var _local1 = kolik;
if (!_local1) {
_local1 = 100000 /* 0x0186A0 */;
}
zivotu = zivotu + _local1;
if (zivotu > maxZiv) {
zivotu = maxZiv;
}
_parent.zivotu = zivotu;
}
function zranSe(kolik) {
var _local1 = kolik;
var _local2 = _root;
smiZmenit = 0;
if (_local2.lekce) {
_local1 = 0;
}
if (_local1 < 0) {
_local1 = 0;
}
if (!uzJede) {
zbran.gotoAndPlay("zran");
}
_local2.zvuky.eh.start();
if (_local1 > 0) {
zivotu = zivotu - _local1;
zraneni.cislo = _local1;
zraneni.gotoAndPlay("spatne");
}
_local2.pult.stupnice1.nastav(Math.ceil((zivotu * 20) / maxZiv));
if (zivotu <= 0) {
smrt();
} else {
_parent.zavoj.zraneni = _local1;
_parent.zavoj.gotoAndPlay("krev");
}
}
function smrt() {
_parent.zavoj.zraneni = -1;
_parent.zavoj.gotoAndPlay("krev");
_root.zvuky.chcip1.start();
this.smiZmenit = 0;
this.neni = true;
coPoSmrti();
}
function coPoSmrti() {
var _local2 = _root;
var _local1 = 1;
switch (_local2.dej) {
case 1 :
_local2.intro._visible = true;
_local2.dej = 0;
_local2.posunDej(0);
return;
case 4 :
_local1 = 1;
while (_local1 <= 4) {
_local2.porazen[_local1] = 0;
_local1++;
}
_local2.skore = 0;
_local2.posunDej(0);
return;
case 34 :
_local2.posunDej(5);
return;
case 45 :
_local2.posunDej(-2);
return;
case 89 :
_local2.posunDej(4);
return;
default :
_local2.dej = 0;
_local2.posunDej(0);
}
}
this.onEnterFrame = function () {
zpracujKlavesy();
if (cekejNaChuzi) {
cekejNaChuzi--;
if (!cekejNaChuzi) {
_root.sipkaL._visible = true;
_root.sipkaP._visible = true;
}
}
if (neklikat > 0) {
neklikat--;
}
if (stopy._currentframe > 3) {
stopy.play();
}
};
this.onMouseMove = function () {
ukazDoStrany();
};
this.onMouseDown = function () {
var _local1 = _root;
if ((_local1._ymouse > 110) && (_local1._xmouse < this._x)) {
mys = -1;
}
if ((_local1._ymouse > 110) && (_local1._xmouse >= this._x)) {
mys = -2;
}
if (leva.hitTest(_local1._xmouse, _local1._ymouse, true)) {
mys = 3;
}
if (prava.hitTest(_local1._xmouse, _local1._ymouse, true)) {
mys = 2;
}
if (horni.hitTest(_local1._xmouse, _local1._ymouse, true)) {
mys = 1;
}
if (neklikat) {
neklikat = 6;
mys = 0;
}
if (mys > 0) {
neklikat = 6;
}
ukazDoStrany();
};
zbroj = new Array(0, 0, 0, 1);
sila = 5;
mec = 5;
maxMec = 5;
zivotu = 60;
maxZiv = zivotu;
smiChodit = 1;
leva._alpha = 0;
prava._alpha = 0;
horni._alpha = 0;
stop();
Symbol 642 MovieClip Frame 2
Symbol 643 Button
on (release) {
nextFrame();
}
Symbol 663 Button
on (release) {
play();
}
Symbol 667 Button
on (release) {
nextFrame();
_root.dej = 0;
_root.posunDej(0);
}
Symbol 671 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 2
_root.lekce = 1;
Symbol 671 MovieClip Frame 4
_root.lekce = 2;
Symbol 671 MovieClip Frame 6
_root.chlap1.akce = _root.chlap1.akce + 10;
_root.chlap1.chuze = _root.chlap1.chuze - 10;
_root.lekce = 3;
Symbol 671 MovieClip Frame 7
_root.chlap1.akce = _root.chlap1.akce - 10;
_root.chlap1.chuze = _root.chlap1.chuze + 10;
_root.lekce = 1;
Symbol 671 MovieClip Frame 9
_root.chlap1.akce = _root.chlap1.akce + 10;
_root.chlap1.chuze = _root.chlap1.chuze - 10;
_root.lekce = 4;
Symbol 671 MovieClip Frame 10
_root.chlap1.akce = _root.chlap1.akce + 10;
_root.chlap1.chuze = _root.chlap1.chuze - 10;
_root.lekce = 1;
Symbol 671 MovieClip Frame 11
_root.lekce = 5;
Symbol 671 MovieClip Frame 12
stop();
Symbol 671 MovieClip Frame 13
_root.lekce = 1;
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 8
stop();
Symbol 673 MovieClip Frame 9
stop();
Symbol 674 MovieClip Frame 1
stop();
Symbol 674 MovieClip Frame 3
if (zraneni >= 0) {
krev.gotoAndStop(Math.ceil(zraneni / 10) + 1);
} else {
krev.gotoAndPlay(2);
}
Symbol 674 MovieClip Frame 4
if (zraneni == -1) {
stop();
}
Symbol 674 MovieClip Frame 7
gotoAndStop (1);
Symbol 676 Button
on (release) {
zavoj.gotoAndStop(1);
chlap.souper.zranSe(20, 2);
}