Frame 1
f = 22;
function delay(seconds) {
trace("in delay");
c = getTimer();
while ((c - s) < seconds) {
trace("c-s" + (c - s));
c = getTimer();
}
return(1);
}
s = getTimer();
Frame 6
_root.loaded = _currentframe;
loaded = 50;
t = 100;
f = 22;
Frame 69
play();
Frame 70
_root.loaded = _currentframe;
trace(_currentframe);
loaded = 1000;
if (loaded >= 100) {
play();
} else {
prevFrame();
}
Frame 72
f = 100;
Mouse.hide();
startDrag (_root.cursor, true);
Frame 91
stop();
Frame 92
function clearguys() {
i = 1;
while (_root.maxguy >= i) {
removeMovieClip(_root["guy" + i]);
i++;
}
}
inairsound = new Sound();
inairsound.attachSound("inairsound");
hitsound = new Sound();
hitsound.attachSound("hit");
birdsound = new Sound();
birdsound.attachSound("bird");
throwsound = new Sound();
throwsound.attachSound("throw");
_root.maxguy = 3;
_root.round = 0;
_root.score = 0;
_root.animmax = 30;
_root.victory = 0;
_root.accuracy = 0;
_root.maxgoodhits = 0;
_root.coloredbonus = 0;
_root.maxbadball = 4000;
Mouse.show();
Instance of Symbol 49 MovieClip in Frame 92
onClipEvent (enterFrame) {
r = random(_root.animmax);
if (r == 1) {
gotoAndStop (93);
} else if (r == 2) {
gotoAndStop (92);
}
}
Instance of Symbol 53 MovieClip in Frame 92
onClipEvent (enterFrame) {
r = random(_root.animmax);
if (r == 1) {
gotoAndStop (93);
} else if (r == 2) {
gotoAndStop (92);
}
}
Instance of Symbol 53 MovieClip in Frame 92
onClipEvent (enterFrame) {
r = random(_root.animmax);
if (r == 1) {
gotoAndStop (93);
} else if (r == 2) {
gotoAndStop (92);
}
}
Instance of Symbol 53 MovieClip in Frame 92
onClipEvent (enterFrame) {
r = random(_root.animmax);
if (r == 1) {
gotoAndStop (93);
} else if (r == 2) {
gotoAndStop (92);
}
}
Instance of Symbol 53 MovieClip in Frame 92
onClipEvent (enterFrame) {
r = random(_root.animmax);
if (r == 1) {
gotoAndStop (93);
} else if (r == 2) {
gotoAndStop (92);
}
}
Instance of Symbol 55 MovieClip in Frame 92
onClipEvent (enterFrame) {
r = random(1000);
if ((r == 1) and (n != 1)) {
n = 1;
gotoAndPlay (93);
} else if (r == 200) {
gotoAndStop (92);
}
}
Instance of Symbol 56 MovieClip in Frame 92
onClipEvent (enterFrame) {
r = random(_root.animmax);
if (r == 1) {
gotoAndStop (93);
} else if (r == 2) {
gotoAndStop (92);
}
}
Instance of Symbol 59 MovieClip "snowball" in Frame 92
onClipEvent (load) {
if (0 < this.index) {
this._x = (original_x = _root["guy" + father]._x);
this._y = _root["guy" + father]._y;
}
hitting = new Array();
}
onClipEvent (enterFrame) {
trace("=---2309720342-934-09284092840928340-29830492830498230");
trace("=---2309720342-934-09284092840928340-29830492830498230");
trace("=---2309720342-934-09284092840928340-29830492830498230");
trace("=---2309720342-934-09284092840928340-29830492830498230");
trace("this is snowball " + _root.maxball);
good = _root["guy" + father].good;
i = 1;
while (_root.maxguy >= i) {
if (this.hittest(_root["guy" + i].hitzone) and (i != father)) {
if ((this.good == 0) and (_root["guy" + i].good == 0)) {
_root["guy" + i].goodart.gotoAndPlay("backhit");
} else if (hitting[i] == 1) {
} else {
if (good == 1) {
_root.maxgoodhits++;
}
hitting[i] = 1;
_root.hitsound.start();
_root["guy" + i].father = this.father;
_root["guy" + i].health_g = _root["guy" + i].health_g - this.power;
_root["guy" + i].health_b = _root["guy" + i].health_b - this.power;
_root["guy" + i].stun = this.power;
trace("snowballs father" + this.father);
trace("guyi's father" + _root["guy" + i].father);
this.gotoAndPlay("hitguy");
removeMovieClip(this);
}
}
i++;
}
if (0 < this.index) {
distance_x = Math.sqrt((original_x - _x) * (original_x - _x));
limit = power * 30;
dx = 20;
dy = 10;
if (distance_x < limit) {
_root.inair.start();
if (good == 1) {
_x = (_x - dx);
_y = (_y - dy);
} else {
_x = (_x + dx);
_y = (_y + dy);
}
} else {
removeMovieClip(this);
}
}
}
Instance of Symbol 106 MovieClip "guy" in Frame 92
onClipEvent (load) {
_x = (_x + random(20));
_y = (_y + random(20));
health_g = 20;
health_b = 20 + _root.bonushealth;
alive = 1;
stun = 0;
if (this.good == 1) {
goodart._visible = 1;
badart._visible = 0;
} else {
goodart._visible = 0;
badart._visible = 1;
if ((this.index == _root.coloredguy) and (random(10) == 1)) {
_root.uncolored = 0;
if ((!_root.uncolored) == 1) {
_root.uncolored = 1;
_root.coloredbonus = _root.coloredbonus + 1;
kaucolor = new Color(this);
kaucolorobject = new Object();
redr = 60;
redp = 80;
greenr = 80;
greenp = 80;
bluer = 0;
bluep = 0;
kaucolorobject = {ra:redr, rb:redp, ga:greenr, gb:greenp, ba:bluer, bb:bluep};
kaucolor.setTransform(kaucolorobject);
}
}
}
}
onClipEvent (enterFrame) {
if (good == 0) {
trace("good" + good);
trace("health_b" + health_b);
trace("and health_b - 5 is " + (health_b - 5));
trace("_root.baddead" + _root.baddead);
}
if (alive == 1) {
if (good == 1) {
if (health_g < 1) {
this.gotoAndPlay("die");
stun = 0;
alive = 0;
_root.gooddead++;
}
}
if (good == 0) {
if (health_b < 1) {
this.gotoAndPlay("die");
stun = 0;
alive = 0;
_root.baddead++;
}
}
if (stun != 0) {
if (9 >= stun) {
this.gotoAndPlay("stunhit");
} else if ((9 < stun) and (12 >= stun)) {
this.gotoAndPlay("stun1sec");
} else if ((12 < stun) and (stun < 14)) {
this.gotoAndPlay("stunstars");
} else if (14 < stun) {
this.gotoAndPlay("stunfall");
}
stun = 0;
}
}
}
Frame 100
_root.round++;
_root.roundstarttime = getTimer();
_root.maxbadball = 4000;
_root.totalball = _root.maxball;
stop();
_root.win = 0;
_root.lose = 0;
_root.gooddead = 0;
_root.baddead = 0;
if (28 < _root.round) {
_root.bonushealth = 50 + _root.round;
_root.walk_r = 38;
_root.backup_r = 1;
_root.throw_r = _root.round;
_root.tripmax = 200 + (300 - (10 * _root.round));
} else if (21 < _root.round) {
_root.bonushealth = 80 + _root.round;
_root.walk_r = 38;
_root.backup_r = 1;
_root.throw_r = 12;
_root.tripmax = 500 - (10 * _root.round);
} else if (14 < _root.round) {
_root.bonushealth = 100 + _root.round;
_root.walk_r = 12;
_root.backup_r = 1;
_root.throw_r = 2;
_root.tripmax = 380 - _root.round;
} else if (7 < _root.round) {
_root.bonushealth = 70 + _root.round;
_root.walk_r = 11;
_root.backup_r = 1;
_root.throw_r = 2;
_root.tripmax = 380;
} else {
_root.bonushealth = 20 + _root.round;
_root.walk_r = 10;
_root.backup_r = 1;
_root.throw_r = 2;
_root.tripmax = 400;
}
if (_root.tripmax < 150) {
_root.tripmax = 150;
trace("ok its lower");
}
Frame 101
if (21 < _root.round) {
_root.maxguy = (3 + _root.round) - 21;
} else if (14 < _root.round) {
_root.maxguy = (3 + _root.round) - 14;
} else if (7 < _root.round) {
_root.maxguy = (3 + _root.round) - 7;
} else {
_root.maxguy = 3 + _root.round;
}
_root.coloredguy = random(_root.maxguy - 3) + 4;
i = 1;
while (_root.maxguy >= i) {
duplicateMovieClip (_root.guy, "guy" + i, i);
with (_root["guy" + i]) {
index = _root.i;
if (3 >= index) {
_x = 310 + (i * 50);
_y = 315 - (i * 50);
good = 1;
} else {
adj = i - 3;
_x = (350 - (adj * 35)) + random(50);
_y = (50 + (adj * 25)) + random(50);
good = 0;
}
}
i++;
}
Frame 106
play();
Frame 107
if (_root.gooddead == 3) {
trace("gooddeadis 3");
_root.lose = 1;
}
if (_root.baddead == (_root.maxguy - 3)) {
_root.win = 1;
trace("bad dead is 3");
}
if (_root.lose == 1) {
gotoAndPlay (123);
_root.score = _root.score + _root.baddead;
} else if (_root.win == 1) {
gotoAndPlay (132);
_root.score = _root.score + _root.baddead;
}
prevFrame();
Frame 123
_root.clearguys();
_root.animmax = 5;
_root.roundbonus = 5;
_root.victorybonus = 5;
_root.accuracy = int((_root.maxgoodhits / _root.maxball) * 100);
_root.round--;
_root.roundtotal = _root.roundbonus * _root.round;
_root.victorytotal = _root.victorybonus * _root.victory;
_root.totalcolored = 2 * _root.coloredbonus;
if ((_root.accuracy >= 90) and (_root.accuracy < 100)) {
_root.accuracytotal = _root.accuracy;
} else {
_root.accuracytotal = 0;
}
_root.newscore = (((_root.coloredbonus * 2) + _root.roundtotal) + _root.victorytotal) + _root.accuracytotal;
_root.score = _root.newscore;
Frame 132
_root.clearguys();
gotoAndPlay (100);
_root.roundendtime = getTimer();
_root.roundtotaltime = int((_root.roundendtime - _root.roundstarttime) / 1000);
trace("*************************************************");
trace("time is " + _root.roundtotaltime);
if (_root.roundtotaltime < 16) {
_root.victory++;
trace("vict " + _root.victory);
}
Frame 142
_root.clearguys();
Frame 150
Set("/:adc", _root.score * 1);
Set("/:tpr", _root.score);
Set("/:shm", 31);
Set("/:sar", 0);
Set("/:version", 3);
Mouse.hide();
startDrag (_root.cursor, true);
Instance of Symbol 197 MovieClip "get_var2" in Frame 150
onClipEvent (data) {
_root.play();
trace("got2");
}
Instance of Symbol 199 MovieClip "get_var1" in Frame 150
onClipEvent (data) {
source = sar;
trace("the received value for sar, now source is " + sar);
trace("Length is " + length(source));
clean = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
dirty = new Array("8", "2", "7", "0", "4", "1", "5", "3", "6", "9");
target = "";
i = 1;
while (length(source) >= i) {
source = String(source);
digit = substring(source, i, 1);
trace((("digit #" + i) + "= the number ") + digit);
k = 0;
while (k < length(source)) {
if (digit eq dirty[k]) {
trace("and is switched with" + clean[k]);
trace("targetlengtgh " + length(target));
target = target + clean[k];
k = length(source);
}
k++;
}
i++;
}
trace("target is " + target);
_root.target = target;
_root.sar = target;
_root.play();
}
Frame 164
loadVariables ("http://www.neopets.com/high_scores/1.phtml", _root.get_var1, "GET");
stop();
Frame 188
loadVariables ("http://www.neopets.com/high_scores/2.phtml", _root.get_var2, "POST");
stop();
Frame 196
stop();
Symbol 11 MovieClip Frame 35
stop();
Symbol 23 Button
on (press) {
play();
}
Symbol 24 Button
on (press) {
getURL ("http://www.neopets.com/gamescores.phtml?game_id=31", "_blank");
}
Symbol 49 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 160
gotoAndStop (1);
Symbol 56 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 42
gotoAndPlay (1);
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
play();
Symbol 59 MovieClip Frame 7
removeMovieClip(this);
Symbol 59 MovieClip Frame 14
play();
Symbol 59 MovieClip Frame 16
removeMovieClip(this);
Symbol 85 MovieClip Frame 188
gotoAndStop (1);
Symbol 85 MovieClip Frame 238
gotoAndStop (1);
Symbol 85 MovieClip Frame 263
gotoAndStop (1);
Symbol 85 MovieClip Frame 270
gotoAndStop (1);
Symbol 85 MovieClip Frame 281
stop();
Symbol 85 MovieClip Frame 295
stop();
Symbol 95 MovieClip Frame 39
trace("in the badarts thorw too");
if (_parent.good == 0) {
_root.maxbadball++;
duplicateMovieClip ("_root.snowball", "snowball" + _root.maxball, _root.maxbadball + 50);
strength = random(10) + 5;
_root["snowball" + _root.maxball].power = strength;
_root["snowball" + _root.maxball].index = _root.maxball;
_root["snowball" + _root.maxball].father = _parent.index;
}
Symbol 95 MovieClip Frame 53
trace("in the goto of the badart");
Symbol 95 MovieClip Frame 188
gotoAndStop (7);
Symbol 95 MovieClip Frame 238
gotoAndStop (7);
Symbol 95 MovieClip Frame 263
gotoAndStop (7);
Symbol 95 MovieClip Frame 270
gotoAndStop (7);
Symbol 95 MovieClip Frame 283
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 28
gotoAndStop (1);
_parent.gotoAndPlay("stand");
Symbol 102 MovieClip Frame 1
if (3 >= _parent.index) {
stop();
}
Symbol 102 MovieClip Frame 3
trip = random(_root.tripmax);
walk_r = _root.walk_r;
backup_r = _root.backup_r;
throw_r = _root.throw_r;
if (10 >= distance_x) {
distance_x = random(100) + 50;
}
distance_y = distance_x * 0.5;
if (target._x < 0) {
target._x = 50;
}
if (target._y < 0) {
target._y = 50;
}
dest_x = target._x - distance_x;
dest_y = target._y - distance_y;
if (dest_x < 0) {
dest_x = _parent._x;
}
if (dest_y < 0) {
dest_y = _parent._y;
}
trace("dest_x" + dest_x);
trace("dest_y" + dest_y);
_parent.dx = (dx = 5);
_parent.dy = (dy = 1);
if (((40 - walk_r) < trip) and (trip < (40 + walk_r))) {
if (_parent._x == dest_x) {
} else if (dest_x < _parent._x) {
_parent._x = _parent._x - dx;
} else {
_parent._x = _parent._x + dx;
}
if (_parent._y == dest_y) {
} else if (dest_y < _parent._y) {
_parent._y = _parent._y - dx;
} else {
_parent._y = _parent._y + dx;
}
} else if (((80 - backup_r) < trip) and (trip < (80 + backup_r))) {
trace("backup***********************");
backmax = random(10);
_parent._x = _parent._x - (dx * backmax);
_parent._y = _parent._y - (dy * backmax);
backmax = 0;
backup = 0;
} else if (((120 - throw_r) < trip) and (trip < (120 + throw_r))) {
_parent.gotoAndPlay("windup");
}
gotoAndPlay(_currentframe - 1);
Symbol 105 Button
on (press) {
_root.cursor._x = 1000;
Mouse.show();
startDrag (this, true, 200, 150, 580, 380);
gotoAndStop (29);
meter.play();
}
on (release) {
stopDrag();
if (0 < index) {
stopDrag();
if (meter._currentFrame >= 7) {
gotoAndPlay (39);
_root.maxball++;
duplicateMovieClip ("_root.snowball", "snowball" + _root.maxball, _root.maxball + 50);
power = meter._currentFrame;
trace("regpower" + power);
if (15 < power) {
power = power - (2 * (power - 15));
trace("newpow" + power);
}
_root["snowball" + _root.maxball].power = power;
_root["snowball" + _root.maxball].index = _root.maxball;
_root["snowball" + _root.maxball].father = this.index;
} else {
gotoAndStop (1);
}
meter.gotoAndStop(1);
}
}
Symbol 106 MovieClip Frame 1
if (0 >= index) {
stop();
}
name = _name;
if (good == 0) {
gotoAndStop (7);
} else if (good == 1) {
gotoAndStop (17);
}
Instance of Symbol 102 MovieClip in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
if (_parent.target == "n") {
_parent.target = (target = _root["guy" + (random(3) + 1)]);
_parent.father = 0;
}
}
onClipEvent (enterFrame) {
if (0 < _parent.father) {
_parent.target = (target = _root["guy" + _parent.father]);
}
if (((target.alive == 0) and (_root.win == 0)) and (_root.lose == 0)) {
do {
_parent.target = (target = _root["guy" + (random(3) + 1)]);
_parent.father = target.index;
} while (target.alive == 0);
}
}
Symbol 106 MovieClip Frame 7
badart.gotoAndStop(_currentframe);
Symbol 106 MovieClip Frame 17
goodart.gotoAndStop(_currentframe);
badart.gotoAndStop(_currentframe);
Symbol 106 MovieClip Frame 29
goodart.gotoAndStop(_currentframe);
badart.gotoAndPlay(_currentframe);
Symbol 106 MovieClip Frame 39
trace("throw");
_root.throwsound.start();
if (good == 1) {
goodart.gotoAndStop(_currentframe);
} else {
badart.gotoAndPlay(_currentframe);
}
Symbol 106 MovieClip Frame 53
gotoAndStop (1);
goodart.gotoAndStop(_currentframe);
badart.gotoAndStop(_currentframe);
Symbol 106 MovieClip Frame 64
stopDrag();
goodart.gotoAndPlay(_currentframe);
badart.gotoAndPlay(_currentframe);
Symbol 106 MovieClip Frame 188
gotoAndStop (1);
Symbol 106 MovieClip Frame 189
stopDrag();
_root.birdsound.start();
goodart.gotoAndStop(_currentframe);
badart.gotoAndPlay(_currentframe);
Symbol 106 MovieClip Frame 238
gotoAndStop (1);
Symbol 106 MovieClip Frame 239
stopDrag();
goodart.gotoAndStop(_currentframe);
badart.gotoAndPlay(_currentframe);
Symbol 106 MovieClip Frame 263
gotoAndStop (1);
Symbol 106 MovieClip Frame 264
stopDrag();
goodart.gotoAndStop(_currentframe);
badart.gotoAndPlay(_currentframe);
Symbol 106 MovieClip Frame 270
gotoAndStop (1);
Symbol 106 MovieClip Frame 271
stopDrag();
goodart.gotoAndPlay(_currentframe);
badart.gotoAndPlay(_currentframe);
Symbol 106 MovieClip Frame 281
stop();
Symbol 108 Button
on (press) {
_root.clearguys();
gotoAndPlay (100);
trace("round" + round);
}
Symbol 109 Button
on (press) {
gotoAndStop (123);
}
Symbol 143 MovieClip Frame 1
gotoAndStop(_root.round);
Symbol 145 MovieClip Frame 60
_root.play();
Symbol 146 Button
on (release) {
_root.clearguys();
gotoAndPlay (72);
}
Symbol 147 Button
on (release) {
_root.clearguys();
gotoAndPlay (150);
}
Symbol 201 Button
on (release) {
gotoAndPlay (150);
}
Symbol 209 Button
on (release) {
gotoAndPlay (72);
}