Frame 2
setProperty("/gametablo", _visible , 1);
stop();
Frame 3
function sendscores() {
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
if (success) {
gotoAndStop (4);
}
};
var _local2 = new LoadVars();
_local2.action = "set";
_local2.pname = _root.pname;
_local2.pscore = _root.finalscore;
_local2.sendAndLoad("http://www.gamezarena.com/strategy/games/tomb-trapper/scores.php", _local3, "POST");
}
thisaction = sendscores();
stop();
Frame 4
function getscores() {
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
var _local2 = 1;
while (_local2 <= 13) {
_root["name" + _local2] = result_lv["name" + _local2];
_root["score" + _local2] = result_lv["score" + _local2];
_local2++;
}
}
};
var _local3 = new LoadVars();
_local3.action = "get";
_local3.sendAndLoad("http://www.gamezarena.com/strategy/games/tomb-trapper/scores.php", result_lv, "POST");
}
thisaction = getscores();
stop();
Frame 5
manx = "14";
many = "19";
no = "0";
myscore = 0;
level = "0";
maxx = "27";
maxy = "19";
xmod = "19";
ymod = "19";
modx = "5";
mody = "8";
countx = "0";
county = "0";
c = "1";
finalscore = 0;
while (Number(countx) < Number(maxx)) {
countx = Number(countx) + 1;
county = "0";
while (Number(county) < Number(maxy)) {
c = Number(c) + 1;
county = Number(county) + 1;
Set((("m_" + countx) + "_") + county, "0");
duplicateMovieClip ("k", (("k" + countx) + "_") + county, c);
tellTarget ((("k" + countx) + "_") + county) {
x = _root.countx;
y = _root.county;
};
setProperty((("k" + countx) + "_") + county, _x , (countx * xmod) - modx);
setProperty((("k" + countx) + "_") + county, _y , (county * ymod) - mody);
}
}
Frame 6
level = Number(level) + 1;
manx = "14";
many = "19";
mancol = level;
countx = "0";
county = "0";
while (Number(countx) < Number(maxx)) {
countx = Number(countx) + 1;
county = "0";
while (Number(county) < Number(maxy)) {
county = Number(county) + 1;
tmp = Number(random(100)) + 1;
if (Number(tmp) < 50) {
Set((("m_" + countx) + "_") + county, "2");
} else {
Set((("m_" + countx) + "_") + county, "1");
}
}
}
m_14_19 = "1";
countgad = "0";
while (Number(countgad) < Number(level)) {
countgad = Number(countgad) + 1;
c = Number(c) + 1;
gadx = Number(random(maxx)) + 1;
gady = Number(random(maxy - 4)) + 1;
duplicateMovieClip ("gad", "gad" + countgad, c);
tellTarget ("gad" + countgad) {
x = _root.gadx;
y = _root.gady;
num = _root.countgad;
};
Set("gadlock" + countgad, "0");
Set((("m_" + gadx) + "_") + gady, "3");
setProperty("gad" + countgad, _x , (gadx * xmod) - modx);
setProperty("gad" + countgad, _y , (gady * ymod) - mody);
}
tellTarget ("score") {
gotoAndPlay ("go");
};
call("draw");
gotoAndPlay (7);
Frame 7
if (eval ((("m_" + manx) + "_") + many) == 3) {
no = "1";
gotoAndPlay ("catch");
}
call("drawgad");
countgad = "0";
go = "1";
while (Number(countgad) < Number(level)) {
countgad = Number(countgad) + 1;
if (eval ("gadlock" + countgad) == 0) {
go = "0";
}
}
if (Number(go) == 1) {
gotoAndPlay ("win");
}
Frame 8
prevFrame();
play();
Frame 9
countx = "0";
county = "0";
while (Number(countx) < Number(maxx)) {
countx = Number(countx) + 1;
county = "0";
while (Number(county) < Number(maxy)) {
county = Number(county) + 1;
tellTarget ((("k" + countx) + "_") + county) {
gotoAndStop(eval ((("../:m_" + x) + "_") + y));
};
}
}
setProperty("man", _x , (manx * xmod) - modx);
setProperty("man", _y , (many * ymod) - mody);
Frame 10
setProperty("man", _x , (manx * xmod) - modx);
setProperty("man", _y , (many * ymod) - mody);
Frame 11
ok = "0";
if (Number(many) > 1) {
county = many - 1;
if ((eval ((("m_" + manx) + "_") + county) == 1) or (eval ((("m_" + manx) + "_") + county) == 3)) {
ok = "2";
} else {
check = "1";
while ((Number(county) > 1) and (Number(check) == 1)) {
county = county - 1;
if (eval ((("m_" + manx) + "_") + county) == 1) {
check = 0;
}
if (eval ((("m_" + manx) + "_") + county) == 3) {
check = 3;
}
}
if (Number(check) == 0) {
ok = "1";
}
}
}
Frame 12
ok = "0";
if (Number(many) < Number(maxy)) {
county = Number(many) + 1;
if ((eval ((("m_" + manx) + "_") + county) == 1) or (eval ((("m_" + manx) + "_") + county) == 3)) {
ok = "2";
} else {
check = "1";
while ((Number(county) < Number(maxy)) and (Number(check) == 1)) {
county = Number(county) + 1;
if (eval ((("m_" + manx) + "_") + county) == 1) {
check = 0;
}
if (eval ((("m_" + manx) + "_") + county) == 3) {
check = 3;
}
}
if (Number(check) == 0) {
ok = "1";
}
}
}
Frame 13
ok = "0";
if (Number(manx) > 1) {
countx = manx - 1;
if ((eval ((("m_" + countx) + "_") + many) == 1) or (eval ((("m_" + countx) + "_") + many) == 3)) {
ok = "2";
} else {
check = "1";
while ((Number(countx) > 1) and (Number(check) == 1)) {
countx = countx - 1;
if (eval ((("m_" + countx) + "_") + many) == 1) {
check = 0;
}
if (eval ((("m_" + countx) + "_") + many) == 3) {
check = 3;
}
}
if (Number(check) == 0) {
ok = "1";
}
}
}
Frame 14
ok = "0";
if (Number(manx) < Number(maxx)) {
countx = Number(manx) + 1;
if ((eval ((("m_" + countx) + "_") + many) == 1) or (eval ((("m_" + countx) + "_") + many) == 3)) {
ok = "2";
} else {
check = "1";
while ((Number(countx) < Number(maxx)) and (Number(check) == 1)) {
countx = Number(countx) + 1;
if (eval ((("m_" + countx) + "_") + many) == 1) {
check = 0;
}
if (eval ((("m_" + countx) + "_") + many) == 3) {
check = 3;
}
}
if (Number(check) == 0) {
ok = "1";
}
}
}
Frame 15
tellTarget ("sound") {
gotoAndPlay ("press");
};
countx = manx;
county = "0";
while (Number(county) < Number(maxy)) {
county = Number(county) + 1;
tellTarget ((("k" + countx) + "_") + county) {
gotoAndStop(eval ((("../:m_" + x) + "_") + y));
};
}
setProperty("man", _x , (manx * xmod) - modx);
setProperty("man", _y , (many * ymod) - mody);
Frame 16
countx = "0";
tellTarget ("sound") {
gotoAndPlay ("press");
};
county = many;
while (Number(countx) < Number(maxx)) {
countx = Number(countx) + 1;
tellTarget ((("k" + countx) + "_") + county) {
gotoAndStop(eval ((("../:m_" + x) + "_") + y));
};
}
setProperty("man", _x , (manx * xmod) - modx);
setProperty("man", _y , (many * ymod) - mody);
Frame 17
countgad = "0";
while (Number(countgad) < Number(level)) {
countgad = Number(countgad) + 1;
tellTarget ("gad" + countgad) {
_root.x = x;
_root.y = y;
};
setProperty("gad" + countgad, _x , (x * xmod) - modx);
setProperty("gad" + countgad, _y , (y * ymod) - mody);
}
Frame 18
tellTarget ("sound") {
gotoAndPlay ("win");
};
Frame 24
countgad = "0";
while (Number(countgad) < Number(level)) {
countgad = Number(countgad) + 1;
removeMovieClip("gad" + countgad);
}
gotoAndPlay (6);
Frame 25
stopAllSounds();
Frame 26
tellTarget ("sound") {
gotoAndPlay ("lose");
};
Frame 31
countx = "0";
county = "0";
while (Number(countx) < Number(maxx)) {
countx = Number(countx) + 1;
county = "0";
while (Number(county) < Number(maxy)) {
county = Number(county) + 1;
removeMovieClip((("k" + countx) + "_") + county);
}
}
countgad = "0";
while (Number(countgad) < Number(level)) {
countgad = Number(countgad) + 1;
removeMovieClip("gad" + countgad);
}
gotoAndStop (3);
Symbol 7 Button
on (release) {
if ((_root.pname == "") || (_root.pname == undefined)) {
} else {
gotoAndStop (4);
}
}
Symbol 10 Button
on (release, keyPress "<Enter>") {
if ((_root.pname == "") || (_root.pname == undefined)) {
} else {
scores = 0;
gotoAndPlay (5);
}
}
Symbol 16 MovieClip Frame 15
gotoAndPlay (2);
Symbol 18 Button
on (release) {
getURL ("http://www.gamezarena.com", "_blank");
}
Symbol 23 Button
on (release) {
gotoAndPlay (1);
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 3
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 3
stop();
Symbol 62 MovieClip Frame 4
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 4
stop();
Symbol 70 MovieClip Frame 1
hod = "10";
counthod = "0";
Symbol 70 MovieClip Frame 2
if (Number(x) > 0) {
if ((Number(_root.manx) == Number(x)) and (Number(_root.many) == Number(y))) {
tellTarget ("../") {
no = "1";
gotoAndPlay ("catch");
};
}
ok = "0";
countx1 = x - 1;
county1 = y - 1;
if (eval ((("../:m_" + countx1) + "_") + county1) == 1) {
ok = "1";
}
countx2 = x;
county2 = y - 1;
if (eval ((("../:m_" + countx2) + "_") + county2) == 1) {
ok = "1";
}
countx3 = Number(x) + 1;
county3 = y - 1;
if (eval ((("../:m_" + countx3) + "_") + county3) == 1) {
ok = "1";
}
countx4 = Number(x) + 1;
county4 = y;
if (eval ((("../:m_" + countx4) + "_") + county4) == 1) {
ok = "1";
}
countx5 = Number(x) + 1;
county5 = Number(y) + 1;
if (eval ((("../:m_" + countx5) + "_") + county5) == 1) {
ok = "1";
}
countx6 = x;
county6 = Number(y) + 1;
if (eval ((("../:m_" + countx6) + "_") + county6) == 1) {
ok = "1";
}
countx7 = x - 1;
county7 = Number(y) + 1;
if (eval ((("../:m_" + countx7) + "_") + county7) == 1) {
ok = "1";
}
countx8 = x - 1;
county8 = y;
if (eval ((("../:m_" + countx8) + "_") + county8) == 1) {
ok = "1";
}
if (Number(ok) == 0) {
Set("../:gadlock" + num, "1");
} else {
counthod = Number(counthod) + 1;
if (Number(counthod) > Number(hod)) {
counthod = "0";
nado = "1";
if (Number(_root.manx) < Number(x)) {
if ((_root.many < y) and (eval ((("../:m_" + countx1) + "_") + county1) == 1)) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) > 1) {
x = x - 1;
}
if (Number(y) > 1) {
y = y - 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if ((_root.many == y) and (eval ((("../:m_" + countx8) + "_") + county8) == 1)) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) > 1) {
x = x - 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if ((_root.many > y) and (eval ((("../:m_" + countx7) + "_") + county7) == 1)) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) > 1) {
x = x - 1;
}
if (Number(y) < Number(_root.maxy)) {
y = Number(y) + 1;
}
Set((("../:m_" + x) + "_") + y, "3");
}
}
if ((Number(_root.manx) == Number(x)) and (Number(nado) == 1)) {
if ((_root.many < y) and (eval ((("../:m_" + countx2) + "_") + county2) == 1)) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(y) > 1) {
y = y - 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if ((_root.many > y) and (eval ((("../:m_" + countx6) + "_") + county6) == 1)) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(y) < Number(_root.maxy)) {
y = Number(y) + 1;
}
Set((("../:m_" + x) + "_") + y, "3");
}
}
if ((Number(_root.manx) > Number(x)) and (Number(nado) == 1)) {
if ((_root.many < y) and (eval ((("../:m_" + countx3) + "_") + county3) == 1)) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) < Number(_root.maxx)) {
x = Number(x) + 1;
}
if (Number(y) > 1) {
y = y - 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if ((_root.many == y) and (eval ((("../:m_" + countx4) + "_") + county4) == 1)) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) < Number(_root.maxx)) {
x = Number(x) + 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if ((_root.many > y) and (eval ((("../:m_" + countx5) + "_") + county5) == 1)) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) < Number(_root.maxx)) {
x = Number(x) + 1;
}
if (Number(y) < Number(_root.maxy)) {
y = Number(y) + 1;
}
Set((("../:m_" + x) + "_") + y, "3");
}
}
if (Number(nado) == 1) {
mozno = "1";
countc = "0";
while ((Number(countc) < 20) and (Number(mozno) == 1)) {
countc = Number(countc) + 1;
numc = Number(random(8)) + 1;
xx = eval ("countx" + numc);
yy = eval ("county" + numc);
if (eval ((("../:m_" + xx) + "_") + yy) == 1) {
mozno = "0";
}
}
if (Number(mozno) == 0) {
if (Number(numc) == 1) {
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) > 1) {
x = x - 1;
}
if (Number(y) > 1) {
y = y - 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if (Number(numc) == 2) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(y) > 1) {
y = y - 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if (Number(numc) == 3) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) < Number(_root.maxx)) {
x = Number(x) + 1;
}
if (Number(y) > 1) {
y = y - 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if (Number(numc) == 4) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) < Number(_root.maxx)) {
x = Number(x) + 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if (Number(numc) == 5) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) < Number(_root.maxx)) {
x = Number(x) + 1;
}
if (Number(y) < Number(_root.maxy)) {
y = Number(y) + 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if (Number(numc) == 6) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(y) < Number(_root.maxy)) {
y = Number(y) + 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if (Number(numc) == 7) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) > 1) {
x = x - 1;
}
if (Number(y) < Number(_root.maxy)) {
y = Number(y) + 1;
}
Set((("../:m_" + x) + "_") + y, "3");
} else if (Number(numc) == 8) {
nado = "0";
Set((("../:m_" + x) + "_") + y, "1");
if (Number(x) > 1) {
x = x - 1;
}
Set((("../:m_" + x) + "_") + y, "3");
}
}
}
}
if ((Number(_root.manx) == Number(x)) and (Number(_root.many) == Number(y))) {
tellTarget ("../") {
no = "1";
gotoAndPlay ("catch");
};
}
}
}
Symbol 70 MovieClip Frame 3
prevFrame();
play();
Symbol 74 Button
on (keyPress "<Up>") {
if (Number(no) == 0) {
tellTarget ("man") {
gotoAndStop ("up");
};
call("checkup");
if (Number(ok) == 1) {
if (Number(many) > 2) {
while (Number(county) < Number(many - 1)) {
Set((("m_" + manx) + "_") + county, "2");
county = Number(county) + 1;
}
}
many = many - 1;
Set((("m_" + manx) + "_") + many, "1");
call("drawup");
} else if (Number(ok) == 2) {
many = many - 1;
call("drawm");
}
if (eval ((("m_" + manx) + "_") + many) == 3) {
no = "1";
gotoAndPlay ("catch");
}
}
}
on (keyPress "<Down>") {
if (Number(no) == 0) {
tellTarget ("man") {
gotoAndStop ("down");
};
call("checkdown");
if (Number(ok) == 1) {
if (Number(many) < Number(maxy - 1)) {
while (Number(county) > Number(Number(many) + 1)) {
Set((("m_" + manx) + "_") + county, "2");
county = county - 1;
}
}
many = Number(many) + 1;
Set((("m_" + manx) + "_") + many, "1");
call("drawup");
} else if (Number(ok) == 2) {
many = Number(many) + 1;
call("drawm");
}
if (eval ((("m_" + manx) + "_") + many) == 3) {
no = "1";
gotoAndPlay ("catch");
}
}
}
on (keyPress "<Left>") {
if (Number(no) == 0) {
tellTarget ("man") {
gotoAndStop ("left");
};
call("checkleft");
if (Number(ok) == 1) {
if (Number(manx) > 2) {
while (Number(countx) < Number(manx - 1)) {
Set((("m_" + countx) + "_") + many, "2");
countx = Number(countx) + 1;
}
}
manx = manx - 1;
Set((("m_" + manx) + "_") + many, "1");
call("drawright");
} else if (Number(ok) == 2) {
manx = manx - 1;
call("drawm");
}
if (eval ((("m_" + manx) + "_") + many) == 3) {
no = "1";
gotoAndPlay ("catch");
}
}
}
on (keyPress "<Right>") {
if (Number(no) == 0) {
tellTarget ("man") {
gotoAndStop ("right");
};
call("checkright");
if (Number(ok) == 1) {
if (Number(manx) < Number(maxx - 1)) {
while (Number(countx) > Number(Number(manx) + 1)) {
Set((("m_" + countx) + "_") + many, "2");
countx = countx - 1;
}
}
manx = Number(manx) + 1;
Set((("m_" + manx) + "_") + many, "1");
call("drawright");
} else if (Number(ok) == 2) {
manx = Number(manx) + 1;
call("drawm");
}
if (eval ((("m_" + manx) + "_") + many) == 3) {
no = "1";
gotoAndPlay ("catch");
}
}
}
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 3
gotoAndStop ("s");
Symbol 80 MovieClip Frame 5
gotoAndStop ("s");
Symbol 80 MovieClip Frame 7
gotoAndStop ("s");
Symbol 85 MovieClip Frame 300
_root.gotoAndPlay("catch");
gotoAndPlay (1);
Symbol 86 MovieClip Frame 1
time1 = getTimer() / 1000;
_root.tfscore = _root.finalscore;
clock.gotoAndStop(1);
Symbol 86 MovieClip Frame 2
time2 = getTimer() / 1000;
time3 = time2 - time1;
_root.myscore = Math.ceil(300 - time3);
if (_root.myscore <= -1) {
gotoAndPlay ("catch");
}
if (_root.tfscore == 300) {
_root.tfscore = 0;
}
_root.finalscore = _root.tfscore + _root.myscore;
clock.gotoAndStop(300 - _root.myscore);
Symbol 86 MovieClip Frame 3
prevFrame();
play();