Frame 2
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__("7f8e67e5", this, 10301, true);
Frame 3
function resetGame() {
hitpoints = 100;
curhp = hitpoints;
wd1 = ["Small Wood Building", "Purchased", 100];
wd2 = ["Small Wood Fort", 200, 200];
wd3 = ["Wood Fortress", 500, 300];
wd4 = ["Wood Castle", 1000, 400];
wd5 = ["Wood Citadel", 2000, 500];
stn1 = ["Small Stone Building", 3000, 600];
stn2 = ["Small Stone Fort", 5000, 700];
stn3 = ["Stone Fortress", 8000, 800];
stn4 = ["Stone Castle", 12000, 1000];
stn5 = ["Stone Citadel", 20000, 1500];
stn6 = ["Large Stone Citadel", 50000, 2000];
mtl1 = ["Metal Building", 2800, 750];
mtl2 = ["Metal Double", 4200, 1000];
mtl3 = ["Metal Triple", 6000, 1200];
mtl4 = ["Metal Pyramid", 8000, 1400];
bnk1 = ["Bunker", 7000, 1300];
bnk2 = ["Advanced Bunker", 10000, 1500];
cry1 = ["Crystal Construction", 20000, 1600];
cry2 = ["Crystal Court", 30000, 1800];
cry3 = ["Crystal Citadel", 50000, 2000];
ub1 = ["Uber Building", 100000, 2500];
ub2 = ["Uber Fort", 200000, 3000];
ub3 = ["Uber Castle", 300000, 3500];
ub4 = ["Uber Citadel", 500000, 4000];
plt1 = ["Planet", 1000000, 5000];
castleinfo = [wd1, wd2, wd3, wd4, wd5, stn1, stn2, stn3, stn4, stn5, stn6];
}
function resetGame2() {
normlvl = 1;
normd = [0, 2, 4, 8, 16, 35, 80, 150, 250, 360, 500];
normef = "No effect.";
normc = [20, 40, 80, 160, 350, 800, 1500, 2500, 3600, 5000];
norm = ["Normal Arrow", normd, normef, normc];
shrplvl = 0;
shrpd = [5, 5, 10, 15, 30, 60, 120, 220, 400, 600, 800];
shrpef = "No effect.";
shrpc = [40, 80, 120, 240, 480, 960, 1760, 3200, 4800, 6400];
shrp = ["Sharp Arrow", shrpd, shrpef, shrpc];
hvylvl = 0;
hvyd = [10, 10, 20, 30, 60, 120, 250, 500, 800, 1200, 2000];
hvyef = "No effect.";
hvyc = [100, 200, 300, 600, 1200, 2500, 5000, 6000, 8000, 10000];
hvy = ["Heavy Arrow", hvyd, hvyef, hvyc];
sklvl = 0;
skd = [5, 5, 10, 15, 30, 60, 120, 220, 400, 600, 800];
skef = "10% chance for double damage.";
skc = [140, 280, 420, 640, 980, 1560, 2460, 4000, 5700, 7400];
sk = ["Seeker Arrow", skd, skef, skc];
inrlvl = 0;
inrd = [6, 6, 12, 18, 35, 70, 150, 280, 500, 750, 1000];
inref = "Will go through enemies. 2 Slot Points";
inrc = [250, 500, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000];
inr = ["Inertia Arrow", inrd, inref, inrc];
frlvl = 0;
frd = [5, 5, 11, 22, 33, 66, 133, 233, 444, 655, 888];
frdef = [1, 1, 1, 2, 3, 5, 10, 15, 20, 25, 30];
fref = ("Creates a hotspot that deals " + frdef[frlvl]) + " damage per frame. 3 Slot Points";
frc = [330, 660, 990, 1650, 2310, 3300, 4290, 5940, 7590, 9900];
fr = ["Fire Arrow", frd, fref, frc, frdef];
exlvl = 0;
exd = [2, 2, 4, 6, 8, 10, 20, 30, 40, 50, 60];
exef = "Explodes and deals its damage per frame. 4 Slot Points";
exc = [500, 1000, 1500, 2000, 3000, 4000, 6000, 8000, 10000, 15000];
ex = ["Exploding Arrow", exd, exef, exc];
lilvl = 0;
lid = [2, 2, 4, 8, 16, 35, 80, 150, 250, 360, 500];
lidef = [0, 10, 20, 30, 60, 120, 250, 500, 800, 1200, 2000];
lief = "Calls a lightning strike that deals extreme damage. 4 Slot Points";
lic = [1000, 2000, 4000, 6000, 8000, 10000, 13000, 16000, 20000, 25000];
li = ["Lightning Arrow", lid, lief, lic, iidef];
vvlvl = 0;
vvd = [50, 50, 100, 200, 400, 600, 1000, 2500, 2000, 3000, 5000];
vvef = "Deals a random amount of damage from 0 to the damage cap. 4 Slot Points";
vvc = [800, 1600, 2400, 3200, 4000, 4800, 5600, 6400, 7500, 10000];
vv = ["Void Arrow", vvd, vvef, vvc];
rtlvl = 0;
rtd = [6, 6, 12, 18, 35, 70, 150, 280, 500, 750, 1000];
rtef = "Forces enemies to fly back. 3 Slot Points";
rtc = [800, 1100, 1500, 2000, 2600, 3300, 3900, 5000, 7000, 10000];
rt = ["Reset Arrow", rtd, rtef, rtc];
allinfo = [norm, shrp, hvy, sk];
levels = [normlvl, shrplvl, hvylvl, sklvl];
dmgar = new Array(10);
}
function resetGame3() {
sco = 0;
cash = 50;
stage = 0;
end = 1;
gameover = 0;
}
function resetGame4() {
mod = 0;
arn = 1;
nn = 0;
rad = 57.2957795130823;
reload = 90;
dit = 20;
arp = 5;
pwr = 10;
pow = 0;
pac = 3;
dmm = 1;
art = 2;
bvang = 115;
tvang = 100;
}
function checkStats() {
if (curhp < 1) {
gameover = 1;
end = 1;
}
arn = 0;
a = 0;
while (a < 4) {
((levels[a] != 0) ? (arn++) : null);
a++;
}
arp = arn * 3;
pm._x = _xmouse;
pm._y = _ymouse;
}
function pntAim() {
dx = _xmouse - cnn._x;
dy = _ymouse - cnn._y;
dr = Math.atan2(dy, dx) * rad;
(((dr < bvang) && (dr > 0)) ? ((dr = bvang)) : null);
(((dr > (-tvang)) && (dr < 0)) ? ((dr = -tvang)) : null);
pnt._rotation = dr;
pnt._x = cnn._x + (Math.sin((dr + 90) / rad) * dit);
pnt._y = cnn._y + (Math.cos((dr + 90) / rad) * (-dit));
diva = Math.floor(arn / 2);
a = 0;
while (a < 10) {
ua = a;
art = arp / arn;
ddr = (dr - (diva * art)) + (ua * art);
holdxy["xx" + ua] = cnn._x + (Math.sin((ddr + 90) / rad) * dit);
holdxy["yy" + ua] = cnn._y + (Math.cos((ddr + 90) / rad) * (-dit));
holdxy["rr" + ua] = ddr;
a++;
}
if (mtim <= 0) {
if (pow == 1) {
pwr = pwr + pac;
((pwr > 99) ? ((pow = 2)) : null);
pm._visible = true;
} else if (pow == 2) {
pwr = pwr - pac;
((pwr < 10) ? ((pow = 1)) : null);
pm._visible = true;
}
}
bow._x = pnt._x;
bow._y = pnt._y;
bow._rotation = pnt._rotation + 180;
((mod == 1) ? ((pbar.b._height = ((pwr - 10) / 90) * 200)) : null);
rbar.b._height = 200 - ((mtim / reload) * 200);
bow.s.gotoAndPlay((60 / reload) * (reload - mtim));
ccguy._x = cnn._x;
ccguy._y = cnn._y;
a = 0;
while (a < 10) {
dmgar[a] = allinfo[a][1][levels[a]];
a++;
}
((curhp < 0) ? ((curhp = 0)) : null);
((curhp > hitpoints) ? ((curhp = hitpoints)) : null);
}
function arrowMode() {
if (mod == 0) {
((den > (arn * 5)) ? ((nn = 0)) : null);
fen = nn;
a = 0;
while (a < arn) {
arr.duplicateMovieClip("rr" + nn, 9000 + nn);
q = this["rr" + nn];
q._visible = false;
q._x = pnt._x;
q._y = pnt._y;
q.aty = a;
q.gotoAndStop(a + 1);
q.dmg = dmgar[a] * dmm;
nn++;
a++;
}
if (levels[0] > 9) {
arr.duplicateMovieClip("rr" + nn, 9000 + nn);
q = this["rr" + nn];
q._visible = false;
q._x = pnt._x;
q._y = pnt._y;
q.aty = 0;
q.gotoAndStop(1);
q.dmg = dmgar[0] * dmm;
nn++;
}
if (levels[1] > 9) {
arr.duplicateMovieClip("rr" + nn, 9000 + nn);
q = this["rr" + nn];
q._visible = false;
q._x = pnt._x;
q._y = pnt._y;
q.aty = 1;
q.gotoAndStop(2);
q.dmg = dmgar[1] * dmm;
nn++;
}
if (levels[2] > 9) {
arr.duplicateMovieClip("rr" + nn, 9000 + nn);
q = this["rr" + nn];
q._visible = false;
q._x = pnt._x;
q._y = pnt._y;
q.aty = 2;
q.gotoAndStop(3);
q.dmg = dmgar[2] * dmm;
nn++;
}
if (levels[3] > 9) {
arr.duplicateMovieClip("rr" + nn, 9000 + nn);
q = this["rr" + nn];
q._visible = false;
q._x = pnt._x;
q._y = pnt._y;
q.aty = 3;
q.gotoAndStop(4);
q.dmg = dmgar[3] * dmm;
nn++;
}
den = nn;
mod = 1;
} else if (mod == 1) {
a = fen;
while (a < den) {
q = this["rr" + a];
q._x = holdxy["xx" + (a - fen)];
q._y = holdxy["yy" + (a - fen)];
q._rotation = holdxy["rr" + (a - fen)];
q._visible = true;
a++;
}
} else if (mod == 3) {
a = fen;
while (a < den) {
q = this["rr" + a];
q.p = pwr;
q.k = 1;
a++;
}
mtim = reload;
pwr = 10;
mod = 4;
bow.s.gotoAndPlay(1);
} else if (mod == 4) {
((mtim < 1) ? ((mod = 0)) : (mtim--));
}
}
function healthBar() {
hbar.b._height = (curhp / hitpoints) * 400;
if ((curhp / hitpoints) >= 0.25) {
if ((curhp / hitpoints) >= 0.5) {
(hbar.b.gotoAndStop(1));// not popped
} else {
(hbar.b.gotoAndStop(2));// not popped
}
} else {
(hbar.b.gotoAndStop(3));// not popped
}
hpsho = ((" " + curhp) + " / ") + hitpoints;
}
function cenmove() {
if (Key.isDown(38) || (Key.isDown(87))) {
((cpu == cpl) ? (cpl++) : null);
((cpl > fort.xp) ? ((cpl = 1)) : (((cpl < 1) ? ((cpl = fort.xp)) : null)));
} else {
cpu = cpl;
}
if (Key.isDown(40) || (Key.isDown(83))) {
((cpd == cpl) ? (cpl--) : null);
((cpl > fort.xp) ? ((cpl = 1)) : (((cpl < 1) ? ((cpl = fort.xp)) : null)));
} else {
cpd = cpl;
}
cnn._x = fort._x + fort["s" + cpl]._x;
cnn._y = fort._y + fort["s" + cpl]._y;
}
function spawn() {
if (((ten < 1) && (aer > 0)) && (end == 0)) {
org.duplicateMovieClip("ee" + en, 4000 + en);
aer--;
en++;
ten = 10 + random(190);
} else {
ten--;
}
if (end == 2) {
aen = 1 + Math.ceil(Math.pow(stage, 0.8));
aer = aen;
ten = random(30);
en = 0;
stage++;
end = 0;
}
if (((aen < 1) && (aer < 1)) && (end == 0)) {
cash = cash + (stage * 10);
end = 1;
}
}
stop();
var holdxy = new Object();
reset = 1;
onEnterFrame = function () {
if (reset) {
resetGame();
resetGame2();
resetGame3();
resetGame4();
reset = 0;
} else {
checkStats();
pntAim();
arrowMode();
healthBar();
cenmove();
spawn();
}
};
bow.swapDepths(10);
pm._visible = false;
onMouseDown = function () {
pow = 1;
};
onMouseUp = function () {
pm._visible = false;
((((pow == 2) || (pow == 1)) && (mod == 1)) ? ((pow = 3)(mod = 3)sbow.start()) : ((pow = 0)(pwr = 10)));
};
cpl = 1;
aen = Math.ceil(Math.pow(stage, 0.8));
aer = aen;
ten = random(30);
en = 0;
pm.swapDepths(10000);
this.createEmptyMovieClip("sfx", 20001);
sbow = new Sound(sfx);
sbow.attachSound("bbb");
sbow.setVolume(25);
this.createEmptyMovieClip("hitt", 20002);
he = new Sound(hitt);
he.attachSound("bba");
he.setVolume(25);
this.createEmptyMovieClip("mus", 20000);
music = new Sound(mus);
music.attachSound("bgm");
music.start();
music.onSoundComplete = function () {
music.start();
};
Symbol 4 MovieClip Frame 61
stop();
_parent.nextFrame();
Symbol 6 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 1
onEnterFrame = function () {
dd = new Date();
ss._rotation = (dd.getHours() * 30) + (dd.getMinutes() * 0.5);
ll._rotation = dd.getMinutes() * 6;
};
Symbol 51 MovieClip Frame 1
a = 1;
while (a < 11) {
aa = this["a" + a];
aa.xx = aa._x;
aa.yy = aa._y;
aa._x = 0;
aa._y = 0;
aa._alpha = 0;
aa.dd = 0;
a++;
}
w1._alpha = 0;
w2._alpha = 0;
rot = 0;
det = 0;
spd = 0;
rad = 57.2957795130823;
_parent.spp._xscale = 1;
_parent.spp._yscale = 1;
_parent.spp._alpha = 0;
onEnterFrame = function () {
per = _root.getBytesLoaded() / _root.getBytesTotal();
spd = (det - rot) / 20;
spd = Math.min(spd, 1.5);
rot = rot + spd;
det = per * 360;
_rotation = (360 - rot);
a = 1;
while (a < 11) {
if (((per * 10) >= a) && ((aa.dd == 1) || (a == 1))) {
aa = this["a" + a];
aa._alpha = aa._alpha + 2;
aa._x = aa._x + ((aa.xx - aa._x) / 10);
aa._y = aa._y + ((aa.yy - aa._y) / 10);
xc = Math.abs(Math.abs(aa._x) - Math.abs(aa.xx));
yc = Math.abs(Math.abs(aa._y) - Math.abs(aa.yy));
if ((xc < 5) && (yc < 5)) {
aa.dd = 1;
}
}
a++;
}
if (per == 1) {
((_parent.spp._xscale < 100) ? (_parent.spp._xscale++) : null);
_parent.spp._yscale = _parent.spp._xscale;
_parent.spp._alpha = _parent.spp._xscale;
if (a10._alpha > 10) {
w1._alpha++;
w2._alpha++;
}
}
};
Symbol 69 MovieClip Frame 1
onEnterFrame = function () {
perpos = (_root.getBytesLoaded() / _root.getBytesTotal()) * 285;
bar._y = bar._y + (((-300 - bar._y) + perpos) / 5);
if (bar._y > -16) {
_alpha = (_alpha-1);
}
};
Symbol 73 MovieClip Frame 1
_parent.stop();
bb.onRelease = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_parent.play();
} else {
getURL ("http://www.clockcrew.cc/talk/portal.php", "_blank");
}
};
Symbol 78 MovieClip Frame 1
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);
}
_visible = false;
__com_mochibot__("3ac51931", this, 10301, true);
Symbol 83 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
_visible = false;
Symbol 107 MovieClip Frame 1
stop();
xp = 2;
Symbol 107 MovieClip Frame 2
xp = 3;
Symbol 107 MovieClip Frame 3
xp = 3;
Symbol 107 MovieClip Frame 4
xp = 4;
Symbol 107 MovieClip Frame 5
xp = 5;
Symbol 107 MovieClip Frame 6
xp = 2;
Symbol 107 MovieClip Frame 7
xp = 3;
Symbol 107 MovieClip Frame 8
xp = 3;
Symbol 107 MovieClip Frame 9
xp = 4;
Symbol 107 MovieClip Frame 10
xp = 5;
Symbol 107 MovieClip Frame 11
xp = 6;
Symbol 107 MovieClip Frame 12
xp = 3;
Symbol 107 MovieClip Frame 13
xp = 4;
Symbol 107 MovieClip Frame 14
xp = 5;
Symbol 107 MovieClip Frame 15
xp = 6;
Symbol 107 MovieClip Frame 16
xp = 1;
Symbol 107 MovieClip Frame 17
xp = 1;
Symbol 107 MovieClip Frame 18
xp = 2;
Symbol 107 MovieClip Frame 19
xp = 3;
Symbol 107 MovieClip Frame 20
xp = 3;
Symbol 118 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (k == 1) {
rad = 57.2957795130823;
p = p + (5 - random(10));
_rotation = (_rotation + ((10 - random(20)) / 10));
p = p * 0.5;
xx = (Math.sin((_rotation + 90) / rad) * p) * 0.5;
yy = (Math.cos((_rotation + 90) / rad) * (-p)) * 0.5;
k = 2;
}
if (k == 2) {
_x = (_x + xx);
_y = (_y + yy);
_rotation = (Math.atan2(yy, xx) * rad);
yy = yy + 0.5;
yd = _y - 380;
((_y > 380) ? (_x = (_x - (xx * (yd / p)))_x - (xx * (yd / p))_y = 380380(k = 3)) : null);
}
((k == 3) ? (((_alpha > 1) ? (_alpha = (_alpha * 0.9)_alpha * 0.9) : (this.removeMovieClip()))) : null);
};
stop();
Symbol 122 MovieClip Frame 60
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
date = new Date();
onEnterFrame = function () {
a._rotation = (date.getMinutes() / 60) * 360;
b._rotation = (date.getHours() / 24) * 360;
};
Symbol 162 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
tr = 1;
score = _parent.sco;
((score > 100) ? (tr++) : null);
((score > 200) ? (tr++) : null);
((score > 400) ? (tr++) : null);
((score > 800) ? (tr++) : null);
((score > 1500) ? (tr++) : null);
((score > 2500) ? (tr++) : null);
((score > 5000) ? (tr++) : null);
((score > 10000) ? (tr++) : null);
((score > 20000) ? (tr++) : null);
type = random(tr) + 1;
bod.eye.gotoAndStop(type);
switch (type) {
case 1 :
speed = 0.3 + (random(100) / 100);
hp = 1 + Math.floor(random(50) * (score / 5000));
at = 1 + Math.floor(random(25) * (score / 10000));
mov = 1;
_y = 380;
ss = 5;
cc = 2 + Math.floor(2 * (score / 8000));
break;
case 2 :
speed = 0.4 + (random(180) / 100);
hp = 1 + Math.floor(random(50) * (score / 5000));
at = 2 + Math.floor(random(60) * (score / 10000));
mov = 1;
_y = 380;
ss = 10;
cc = 5 + Math.floor(5 * (score / 8000));
break;
case 3 :
speed = 0.2 + (random(130) / 100);
hp = 10 + Math.floor(random(120) * (score / 5000));
at = 4 + Math.floor(random(90) * (score / 10000));
mov = 1;
_y = 380;
ss = 20;
cc = 6 + Math.floor(6 * (score / 8000));
break;
case 4 :
speed = 0.4 + (random(200) / 100);
hp = 10 + Math.floor(random(120) * (score / 5000));
at = 3 + Math.floor(random(80) * (score / 10000));
mov = 2;
_y = 380;
ss = 25;
cc = 10 + Math.floor(10 * (score / 8000));
break;
case 5 :
speed = 0.6 + (random(240) / 100);
hp = 6 + Math.floor(random(200) * (score / 10000));
at = 2 + Math.floor(random(60) * (score / 10000));
mov = 3;
_y = (60 + random(60));
ss = 35;
cc = 15 + Math.floor(15 * (score / 8000));
break;
case 6 :
speed = 0.1 + (random(130) / 100);
hp = 60 + Math.floor(random(300) * (score / 5000));
at = 2 + Math.floor(random(80) * (score / 10000));
mov = 1;
_y = 380;
ss = 40;
cc = 15 + Math.floor(15 * (score / 8000));
break;
case 7 :
speed = 0.2 + (random(200) / 100);
hp = 15 + Math.floor(random(200) * (score / 5000));
at = 1 + Math.floor(random(150) * (score / 10000));
mov = 1;
_y = 380;
ss = 60;
cc = 20 + Math.floor(20 * (score / 8000));
break;
case 8 :
speed = 0.1 + (random(280) / 100);
hp = 1 + Math.floor(random(220) * (score / 5000));
at = 1 + Math.floor(random(100) * (score / 10000));
mov = 1;
_y = 380;
ss = 80;
cc = 25 + Math.floor(25 * (score / 8000));
break;
case 9 :
speed = 0.4 + (random(200) / 100);
hp = 20 + Math.floor(random(160) * (score / 5000));
at = 6 + Math.floor(random(70) * (score / 10000));
mov = 4;
_y = (60 + random(120));
ss = 100;
cc = 50 + Math.floor(50 * (score / 8000));
break;
case 10 :
speed = 0.5 + (random(250) / 100);
hp = 50 + Math.floor(random(300) * (score / 5000));
at = 10 + Math.floor(random(150) * (score / 9000));
mov = 5;
ss = 200;
cc = 80 + Math.floor(80 * (score / 8000));
}
_x = -50;
speed = speed * (0.97 + (Math.sqrt(score + 900) / 1000));
j = 33;
f = 0;
ff = 1;
t = 0;
onEnterFrame = function () {
if (_name != "org") {
if (mov == 2) {
_y = (_y - (j / 5));
((j < -32) ? ((j = 33)) : (j--));
}
if (mov == 3) {
_y = (_y - (f / 5));
(ff ? (f--) : (f++));
((f > 9) ? ((ff = 1)) : (((f < -9) ? ((ff = 0)) : null)));
}
if (mov == 4) {
_y = (_y - (f / 3));
(ff ? (f--) : (f++));
((f > 24) ? ((ff = 1)) : (((f < -24) ? ((ff = 0)) : null)));
}
if (mov == 5) {
((t < 1) ? (_y = (40 + random(250))40 + random(250)(t = 20 + random(80))) : (t--));
}
a = 0;
while (a < 40) {
q = _parent["rr" + a];
if (q.k != 3) {
if (this.hitTest(q._x, q._y, true)) {
if ((q.aty == 3) && (random(10) == 1)) {
hp = hp - q.dmg;
}
hp = hp - q.dmg;
st.play();
_parent.he.start();
q.removeMovieClip();
}
}
a++;
}
if (hp < 1) {
_parent.sco = _parent.sco + ss;
_parent.cash = _parent.cash + (cc * 2);
_parent.aen--;
this.removeMovieClip();
}
(_parent.gameover ? (this.removeMovieClip()) : null);
((_x > 690) ? (_x = (_x - (15 * speed))_x - (15 * speed)(_parent.curhp = _parent.curhp - at)) : (_x = (_x + speed)_x + speed));
}
};
Symbol 197 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
function scroller() {
if (mod) {
ss._x = _xmouse - 10;
ss._x = Math.max(bar._x, Math.min(ss._x, (bar._x + bar._width) - ss._width));
cur = Math.round(((ss._x - bar._x) / (bar._width - ss._width)) * (al.length - 1));
} else {
ss._x = bar._x + ((cur / (al.length - 1)) * (bar._width - ss._width));
}
}
cur = 0;
mod = 0;
onEnterFrame = function () {
_parent._parent.allinfo[5][2] = ("Creates a hotspot that deals " + _parent._parent.allinfo[5][4][al[5]]) + " damage per frame. 3 Slot Points";
af = _parent._parent.allinfo;
al = _parent._parent.levels;
lvl = al[cur];
nam = af[cur][0];
dmg = af[cur][1][al[cur]];
eff = af[cur][2];
((al[cur] > 9) ? ((cost = "Max")) : ((cost = af[cur][3][al[cur]])));
dip.gotoAndStop(1 + cur);
scroller();
};
by.onRelease = function () {
if (_parent._parent.levels[cur] < 10) {
if (_parent._parent.cash >= af[cur][3][al[cur]]) {
_parent._parent.cash = _parent._parent.cash - af[cur][3][al[cur]];
_parent._parent.levels[cur]++;
}
}
};
ss.onPress = function () {
mod = 1;
};
ss.onRelease = function () {
mod = 0;
};
ss.onReleaseOutside = function () {
mod = 0;
};
ff.onRelease = function () {
((cur > 0) ? (cur--) : ((cur = al.length - 1)));
};
bb.onRelease = function () {
((cur < (al.length - 1)) ? (cur++) : ((cur = 0)));
};
Symbol 205 MovieClip Frame 1
function scroller() {
if (mod) {
ss._x = _xmouse - 10;
ss._x = Math.max(bar._x, Math.min(ss._x, (bar._x + bar._width) - ss._width));
cur = Math.round(((ss._x - bar._x) / (bar._width - ss._width)) * (cin.length - 1));
} else {
ss._x = bar._x + ((cur / (cin.length - 1)) * (bar._width - ss._width));
}
}
cur = 0;
mod = 0;
onEnterFrame = function () {
cin = _parent._parent.castleinfo;
nam = cin[cur][0];
cost = cin[cur][1];
hp = cin[cur][2];
fort.gotoAndStop(1 + cur);
scroller();
};
by.onRelease = function () {
if (!isNaN(cin[cur][1])) {
if (_parent._parent.cash >= cin[cur][1]) {
_parent._parent.cash = _parent._parent.cash - cin[cur][1];
a = 0;
while (a < cin.length) {
if (a != cur) {
if (_parent._parent.castleinfo[cur][1] >= _parent._parent.castleinfo[a][1]) {
_parent._parent.castleinfo[a][1] = "Purchased";
} else {
_parent._parent.castleinfo[a][1] = _parent._parent.castleinfo[a][1] - _parent._parent.castleinfo[cur][1];
}
}
a++;
}
_parent._parent.castleinfo[cur][1] = "Purchased";
_parent._parent.fort.gotoAndStop(1 + cur);
_parent._parent.curhp = cin[cur][2];
_parent._parent.hitpoints = cin[cur][2];
}
}
};
ss.onPress = function () {
mod = 1;
};
ss.onRelease = function () {
mod = 0;
};
ss.onReleaseOutside = function () {
mod = 0;
};
ff.onRelease = function () {
((cur > 0) ? (cur--) : ((cur = cin.length - 1)));
};
bb.onRelease = function () {
((cur < (cin.length - 1)) ? (cur++) : ((cur = 0)));
};
Symbol 219 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 1
dcost = 100;
rcost = 100;
onEnterFrame = function () {
if (_parent.end == 1) {
_y = (_y + ((50 - _y) / 10));
} else {
_y = (_y + ((-400 - _y) / 10));
}
if (_parent.reset) {
dcost = 100;
rcost = 100;
}
dmgsho = "Damage Multipler x" + _parent.dmm;
rsho = ("Reload Time " + _parent.reload) + " frames";
shosho = _parent.sco + _parent.cash;
};
nam.text = "";
sub.onRelease = function () {
if (_name != "") {
bXlnYW1lX25hbWVfdmFyaWFibGU = nam.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = shosho;
__rankz_send__("Mjg4N2olZSVhJW4lcw==", "T2pjWXhoa00=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/strawberryarchery/", "_blank");
suu.play();
nam.text = "";
_parent.reset = 1;
}
};
dd.onRelease = function () {
if (!gameover) {
_parent.end = 2;
}
};
by.onRelease = function () {
if (_parent.cash >= dcost) {
_parent.dmm = _parent.dmm + 0.1;
_parent.cash = _parent.cash - dcost;
dcost = dcost * _parent.dmm;
dcost = Math.floor(dcost);
}
};
byb.onRelease = function () {
if (!isNaN(rcost)) {
if (_parent.cash >= rcost) {
_parent.reload = _parent.reload - 10;
_parent.cash = _parent.cash - rcost;
rcost = rcost * 2;
}
((_parent.reload < 20) ? ((rcost = "Max")) : null);
}
};
rr10.onRelease = function () {
if (_parent.curhp < _parent.hitpoints) {
if (_parent.cash >= 15) {
_parent.curhp = _parent.curhp + 10;
_parent.cash = _parent.cash - 15;
}
}
};
rr100.onRelease = function () {
if (_parent.curhp < _parent.hitpoints) {
if (_parent.cash >= 100) {
_parent.curhp = _parent.curhp + 100;
_parent.cash = _parent.cash - 100;
}
}
};