Frame 1
onLoad = function () {
GameSecs = 0;
GameTimer = 0;
var _local2 = new ContextMenu();
_local2.builtInItems.print = false;
_local2.builtInItems.forward_back = false;
_local2.builtInItems.play = false;
_local2.builtInItems.loop = false;
_local2.builtInItems.zoom = false;
_local2.builtInItems.rewind = false;
this.menu = _local2;
xps = 0;
xpneeds = 0;
level = 1;
xp = 0;
xpneed = level * 10;
money = 100;
wonbets = 0;
lostbets = 0;
hoursworked = 0;
moneygambled = 0;
purchased = 0;
purchase1 = 0;
purchase2 = 0;
purchase3 = 0;
purchase4 = 0;
purchase5 = 0;
purchase6 = 0;
purchase7 = 0;
purchase8 = 0;
purchase9 = 0;
purchase10 = 0;
purchase11 = 0;
purchase12 = 0;
purchase13 = 0;
purchase14 = 0;
purchase15 = 0;
purchase16 = 0;
purchase17 = 0;
purchase18 = 0;
purchase19 = 0;
purchase20 = 0;
purchase21 = 0;
purchase22 = 0;
};
Frame 2
stop();
onEnterFrame = function () {
playername = pname;
};
Instance of Symbol 85 MovieClip in Frame 2
on (press) {
_root.gotoAndStop("gamble");
}
Instance of Symbol 98 MovieClip in Frame 2
on (press) {
this.play();
}
Frame 3
stop();
team1 = "team1";
team2 = "team2";
bet1 = 0;
bet2 = 0;
bets1 = 0;
bets2 = 0;
teamgo = false;
_root.Playgame.onPress = function () {
PlayGame();
moneygambled = moneygambled + bet1;
moneygambled = moneygambled + bet2;
if (bet1 > bet2) {
if (score1 > score2) {
xp = xp + 20;
_root.money = _root.money + bet1;
wonbets = wonbets + 1;
} else {
bet1 = 0;
lostbets = lostbets + 1;
}
}
if (bet2 > bet1) {
if (score2 > score1) {
xp = xp + 20;
_root.money = _root.money + (bet2 * level);
wonbets = wonbets + 1;
} else {
bet2 = 0;
lostbets = lostbets + 1;
}
}
};
onEnterFrame = function () {
xps = xp;
xpneeds = xpneed;
if (xp >= xpneed) {
level = level + 1;
}
xpneed = ((10 * level) * level) * 1.5;
if (team2n == 1) {
team2 = "killers";
}
if (team2n == 2) {
team2 = "chemicals";
}
if (team2n == 3) {
team2 = "bacteria";
}
if (team2n == 4) {
team2 = "cancer";
}
if (team2n == 5) {
team2 = "Animation";
}
if (team1n == 1) {
team1 = "noobs";
}
if (team1n == 2) {
team1 = "cows";
}
if (team1n == 3) {
team1 = "bread";
}
if (team1n == 4) {
team1 = "Action Script";
}
if (team1n == 5) {
team1 = "mixas";
}
if (teamgo == true) {
team1n = random(5) + 1;
team2n = random(5) + 1;
teamgo = false;
}
};
PlayGame = function () {
_root.score1 = random(50) + random(10);
_root.score2 = random(50) + random(10);
};
Instance of Symbol 104 MovieClip in Frame 3
on (press) {
_root.teamgo = true;
}
Instance of Symbol 115 MovieClip in Frame 3
on (press) {
if (_root.money >= 5) {
_root.money = _root.money - 5;
_root.bet1 = _root.bet1 + 5;
}
}
on (keyPress "4") {
if (_root.money >= 5) {
_root.money = _root.money - 5;
_root.bet1 = _root.bet1 + 5;
}
}
Instance of Symbol 117 MovieClip in Frame 3
on (press) {
if (_root.money >= 10) {
_root.money = _root.money - 10;
_root.bet1 = _root.bet1 + 10;
}
}
on (keyPress "3") {
if (_root.money >= 10) {
_root.money = _root.money - 10;
_root.bet1 = _root.bet1 + 10;
}
}
Instance of Symbol 119 MovieClip in Frame 3
on (press) {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.bet1 = _root.bet1 + 50;
}
}
on (keyPress "2") {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.bet1 = _root.bet1 + 50;
}
}
Instance of Symbol 121 MovieClip in Frame 3
on (press) {
if (_root.money >= 100) {
_root.money = _root.money - 100;
_root.bet1 = _root.bet1 + 100;
}
}
on (keyPress "1") {
if (_root.money >= 100) {
_root.money = _root.money - 100;
_root.bet1 = _root.bet1 + 100;
}
}
Instance of Symbol 115 MovieClip in Frame 3
on (press) {
if (_root.money >= 5) {
_root.money = _root.money - 5;
_root.bet2 = _root.bet2 + 5;
}
}
Instance of Symbol 117 MovieClip in Frame 3
on (press) {
if (_root.money >= 10) {
_root.money = _root.money - 10;
_root.bet2 = _root.bet2 + 10;
}
}
Instance of Symbol 119 MovieClip in Frame 3
on (press) {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.bet2 = _root.bet2 + 50;
}
}
Instance of Symbol 121 MovieClip in Frame 3
on (press) {
if (_root.money >= 100) {
_root.money = _root.money - 100;
_root.bet2 = _root.bet2 + 100;
}
}
Instance of Symbol 123 MovieClip in Frame 3
on (press) {
_root.money = _root.money + _root.bet1;
_root.bet1 = 0;
}
on (keyPress "5") {
_root.money = _root.money + _root.bet1;
_root.bet1 = 0;
}
Instance of Symbol 123 MovieClip in Frame 3
on (press) {
_root.money = _root.money + _root.bet2;
_root.bet2 = 0;
}
Instance of Symbol 125 MovieClip in Frame 3
on (press) {
_root.gotoAndStop("work");
}
Instance of Symbol 127 MovieClip in Frame 3
on (press) {
_root.gotoAndStop("play");
}
Instance of Symbol 129 MovieClip in Frame 3
on (press) {
_root.gotoAndStop("race");
}
Instance of Symbol 131 MovieClip in Frame 3
on (press) {
_root.gotoAndStop("fight");
}
Instance of Symbol 135 MovieClip in Frame 3
on (press) {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.bet1 = _root.bet1 + 1000;
}
}
on (keyPress "`") {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.bet1 = _root.bet1 + 1000;
}
}
Instance of Symbol 140 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.GameTimer = _root.GameTimer + 1;
if (_root.GameTimer >= 30) {
_root.GameSecs = _root.GameSecs + 1;
_root.GameTimer = 0;
}
}
Frame 4
delete onEnterFrame;
onEnterFrame = function () {
xps = xp;
xpneeds = xpneed;
xpneed = ((10 * level) * level) * 1.5;
if (xp >= xpneed) {
level = level + 1;
}
};
Instance of Symbol 145 MovieClip in Frame 4
on (press) {
_root.gotoAndStop("steady");
}
Instance of Symbol 147 MovieClip in Frame 4
on (press) {
_root.gotoAndStop("balance");
}
Instance of Symbol 149 MovieClip in Frame 4
on (press) {
_root.gotoAndStop("click");
}
Instance of Symbol 151 MovieClip in Frame 4
on (press) {
_root.gotoAndStop("gamble");
}
Instance of Symbol 153 MovieClip in Frame 4
on (press) {
_root.gotoAndStop("typing");
}
Frame 5
timer = 600;
onEnterFrame = function () {
timer = timer - 1;
if (timer <= 0) {
xp = xp + 10;
hoursworked = hoursworked + 1;
_root.gotoAndStop("work");
}
};
Instance of Symbol 159 MovieClip in Frame 5
onClipEvent (enterFrame) {
this.stop();
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.play();
_root.money = _root.money + (2 * _root.level);
}
}
Frame 6
timer = 600;
onEnterFrame = function () {
timer = timer - 1;
if (timer <= 0) {
xp = xp + 10;
hoursworked = hoursworked + 1;
_root.gotoAndStop("work");
}
};
Instance of Symbol 165 MovieClip in Frame 6
onClipEvent (enterFrame) {
this._x = this._x + (random(21) - 10);
if (_root.bar.great.hitTest(_x, _y, true)) {
_root.money = _root.money + (0.5 * _root.level);
}
if (_root.bar.ok1.hitTest(_x, _y, true)) {
_root.money = _root.money + (0.25 * _root.level);
}
if (_root.bar.ok2.hitTest(_x, _y, true)) {
_root.money = _root.money + (0.25 * _root.level);
}
}
Instance of Symbol 173 MovieClip "bar" in Frame 6
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this._x = this._x - 5;
}
if (Key.isDown(39)) {
this._x = this._x + 5;
}
}
Frame 7
timer = 600;
onEnterFrame = function () {
timer = timer - 1;
if (timer <= 0) {
xp = xp + 10;
hoursworked = hoursworked + 1;
_root.gotoAndStop("work");
}
};
Instance of Symbol 181 MovieClip in Frame 7
on (press) {
this.gotoAndStop(2);
_root.money = _root.money + (1 * _root.level);
}
on (release) {
this.gotoAndStop(1);
}
Frame 8
timer = 600;
needthing = random(5) + 1;
onEnterFrame = function () {
if (needthing == 1) {
needtype = "Jon, the crazy boy, crossed the street to find his ball.";
if (typedword == "Jon, the crazy boy, crossed the street to find his ball.") {
_root.xp = _root.xp + 10;
_root.workedhours = _root.workedhours + 1;
_root.money = _root.money + (random(20) + (20 * level));
typedword = "";
_root.gotoAndStop("work");
}
}
if (needthing == 2) {
needtype = "The coffee hour will be from 4:00 p.m. until 5:00 p.m.";
if (typedword == "The coffee hour will be from 4:00 p.m. until 5:00 p.m.") {
_root.xp = _root.xp + 10;
_root.workedhours = _root.workedhours + 1;
_root.money = _root.money + (random(20) + (20 * level));
typedword = "";
_root.gotoAndStop("work");
}
}
if (needthing == 3) {
needtype = "The lazy dog jumped over the ragu isle.";
if (typedword == "The lazy dog jumped over the ragu isle.") {
_root.xp = _root.xp + 10;
_root.workedhours = _root.workedhours + 1;
_root.money = _root.money + (random(20) + (20 * level));
typedword = "";
_root.gotoAndStop("work");
}
}
if (needthing == 4) {
needtype = "Designating or exhibiting a form of magnetism characterized by an antiparallel alignment.";
if (typedword == "Designating or exhibiting a form of magnetism characterized by an antiparallel alignment.") {
_root.xp = _root.xp + 20;
_root.workedhours = _root.workedhours + 1;
_root.money = _root.money + (random(20) + (60 * level));
typedword = "";
_root.gotoAndStop("work");
}
}
if (needthing == 5) {
needtype = "Making this game was fun and easy, and I made it for you.";
if (typedword == "Making this game was fun and easy, and I made it for you.") {
_root.xp = _root.xp + 10;
_root.workedhours = _root.workedhours + 1;
_root.money = _root.money + (random(20) + (20 * level));
typedword = "";
_root.gotoAndStop("work");
}
}
timer = timer - 1;
if (timer <= 0) {
typedword = "";
hoursworked = hoursworked + 1;
_root.gotoAndStop("work");
}
};
Instance of Symbol 249 MovieClip in Frame 9
on (press) {
if (_root.purchase2 == 0) {
if (_root.money >= 2000) {
_root.money = _root.money - 2000;
_root.purchase2 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase2 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase2 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 253 MovieClip in Frame 9
on (press) {
if (_root.purchase1 == 0) {
if (_root.money >= 500) {
_root.money = _root.money - 500;
_root.purchase1 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase1 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase1 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 256 MovieClip in Frame 9
on (press) {
if (_root.purchase3 == 0) {
if (_root.money >= 4000) {
_root.money = _root.money - 4000;
_root.purchase3 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase3 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase3 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 259 MovieClip in Frame 9
on (press) {
if (_root.purchase4 == 0) {
if (_root.money >= 300) {
_root.money = _root.money - 300;
_root.purchase4 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase4 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase4 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 264 MovieClip in Frame 9
on (press) {
if (_root.purchase6 == 0) {
if (_root.money >= 5000) {
_root.money = _root.money - 5000;
_root.purchase6 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase6 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase6 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 267 MovieClip in Frame 9
on (press) {
if (_root.purchase5 == 0) {
if (_root.money >= 2200) {
_root.money = _root.money - 2200;
_root.purchase5 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase5 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase5 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 272 MovieClip in Frame 9
on (press) {
_root.gotoAndStop("work");
}
Instance of Symbol 151 MovieClip in Frame 9
on (press) {
_root.gotoAndStop("gamble");
}
Instance of Symbol 275 MovieClip in Frame 9
on (press) {
if (_root.purchase7 == 0) {
if (_root.money >= 10000) {
_root.money = _root.money - 10000;
_root.purchase7 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase7 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase7 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 280 MovieClip in Frame 9
on (press) {
if (_root.purchase8 == 0) {
if (_root.money >= 80000) {
_root.money = _root.money - 80000;
_root.purchase8 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase8 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase8 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 283 MovieClip in Frame 9
on (press) {
if (_root.purchase9 == 0) {
if (_root.money >= 60000) {
_root.money = _root.money - 60000;
_root.purchase9 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase9 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase9 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 288 MovieClip in Frame 9
on (press) {
if (_root.purchased >= 9) {
_root.gotoAndStop("realstate");
}
}
onClipEvent (enterFrame) {
if (_root.purchased >= 9) {
this.gotoAndStop(2);
}
}
Frame 10
bet1 = 0;
bet2 = 0;
bet3 = 0;
bet4 = 0;
onEnterFrame = function () {
xps = xp;
xpneeds = xpneed;
xpneed = ((10 * level) * level) * 1.5;
if (xp >= xpneed) {
level = level + 1;
}
if (cows == true) {
_root.racer1._x = _root.racer1._x + (random(8) + 1.2);
_root.racer2._x = _root.racer2._x + (random(8) + 1);
_root.racer3._x = _root.racer3._x + (random(8) + 1);
_root.racer4._x = _root.racer4._x + (random(8) + 1);
_root.dubu.gotoAndStop(2);
_root.que.gotoAndStop(2);
_root.ninja.gotoAndStop(2);
_root.one.gotoAndStop(2);
_root.two.gotoAndStop(2);
_root.three.gotoAndStop(2);
_root.four.gotoAndStop(2);
_root.five.gotoAndStop(2);
}
};
finishs = function () {
cows = false;
_root.racer1._x = 0;
_root.racer2._x = 0;
_root.racer3._x = 0;
_root.racer4._x = 0;
_root.dubu.gotoAndStop(1);
_root.que.gotoAndStop(1);
_root.ninja.gotoAndStop(1);
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(1);
};
Instance of Symbol 295 MovieClip "racer1" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.finish)) {
_root.finishs();
_root.money = _root.money + ((_root.bet1 * _root.level) * 1.5);
_root.moneygambled = _root.moneygambled + _root.bet1;
if (_root.bet1 > 0) {
_root.xp = _root.xp + 60;
_root.wonbets = _root.wonbets + 1;
}
}
}
Instance of Symbol 295 MovieClip "racer2" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.finish)) {
_root.finishs();
_root.moneygambled = _root.moneygambled + _root.bet1;
_root.lostbets = _root.lostbets + 1;
_root.bet1 = 0;
}
}
Instance of Symbol 295 MovieClip "racer3" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.finish)) {
_root.finishs();
_root.moneygambled = _root.moneygambled + _root.bet1;
_root.lostbets = _root.lostbets + 1;
_root.bet1 = 0;
}
}
Instance of Symbol 295 MovieClip "racer4" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.finish)) {
_root.finishs();
_root.moneygambled = _root.moneygambled + _root.bet1;
_root.lostbets = _root.lostbets + 1;
_root.bet1 = 0;
}
}
Instance of Symbol 301 MovieClip "racerz" in Frame 10
on (press) {
_root.cows = true;
}
Instance of Symbol 125 MovieClip in Frame 10
on (press) {
_root.gotoAndStop("work");
}
Instance of Symbol 115 MovieClip "four" in Frame 10
on (press) {
if (_root.money >= 5) {
_root.money = _root.money - 5;
_root.bet1 = _root.bet1 + 5;
}
}
on (keyPress "4") {
if (this._currentframe == 1) {
if (_root.money >= 5) {
_root.money = _root.money - 5;
_root.bet1 = _root.bet1 + 5;
}
}
}
Instance of Symbol 117 MovieClip "three" in Frame 10
on (press) {
if (_root.money >= 10) {
_root.money = _root.money - 10;
_root.bet1 = _root.bet1 + 10;
}
}
on (keyPress "3") {
if (this._currentframe == 1) {
if (_root.money >= 10) {
_root.money = _root.money - 10;
_root.bet1 = _root.bet1 + 10;
}
}
}
Instance of Symbol 119 MovieClip "two" in Frame 10
on (press) {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.bet1 = _root.bet1 + 50;
}
}
on (keyPress "2") {
if (this._currentframe == 1) {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.bet1 = _root.bet1 + 50;
}
}
}
Instance of Symbol 121 MovieClip "one" in Frame 10
on (press) {
if (_root.money >= 100) {
_root.money = _root.money - 100;
_root.bet1 = _root.bet1 + 100;
}
}
on (keyPress "1") {
if (this._currentframe == 1) {
if (_root.money >= 100) {
_root.money = _root.money - 100;
_root.bet1 = _root.bet1 + 100;
}
}
}
Instance of Symbol 123 MovieClip "five" in Frame 10
on (press) {
_root.money = _root.money + _root.bet1;
_root.bet1 = 0;
}
on (keyPress "5") {
if (this._currentframe == 1) {
_root.money = _root.money + _root.bet1;
_root.bet1 = 0;
}
}
Instance of Symbol 135 MovieClip "ninja" in Frame 10
on (press) {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.bet1 = _root.bet1 + 1000;
}
}
on (keyPress "`") {
if (this._currentframe == 1) {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.bet1 = _root.bet1 + 1000;
}
}
}
Instance of Symbol 305 MovieClip "que" in Frame 10
on (press) {
if (_root.money >= 10000) {
_root.money = _root.money - 10000;
_root.bet1 = _root.bet1 + 10000;
}
}
on (keyPress "q") {
if (this._currentframe == 1) {
if (_root.money >= 10000) {
_root.money = _root.money - 10000;
_root.bet1 = _root.bet1 + 10000;
}
}
}
Instance of Symbol 308 MovieClip "dubu" in Frame 10
on (press) {
if (_root.money >= 100000) {
_root.money = _root.money - 100000;
_root.bet1 = _root.bet1 + 100000;
}
}
on (keyPress "w") {
if (this._currentframe == 1) {
if (_root.money >= 100000) {
_root.money = _root.money - 100000;
_root.bet1 = _root.bet1 + 100000;
}
}
}
Frame 11
life2 = 100;
life1 = 100;
bet1 = 0;
onEnterFrame = function () {
xps = xp;
xpneeds = xpneed;
xpneed = ((10 * level) * level) * 1.5;
if (xp >= xpneed) {
level = level + 1;
}
if (life1 <= 0) {
_root.player1.alive = false;
}
if (life2 <= 0) {
_root.player2.alive = false;
}
};
Instance of Symbol 389 MovieClip "player1" in Frame 11
onClipEvent (enterFrame) {
cow = random(3) + 1;
if (cowz == 1) {
this.gotoAndStop(cow);
cowz = 0;
}
if (alive == true) {
if (_root.player2.alive == true) {
this.punch.play();
this.kick.play();
this.mage.play();
if (this.punch._currentframe == 4) {
_root.life2 = _root.life2 - (random(5) + 5);
}
if (this.punch._currentframe == 8) {
this.gotoAndStop(cow);
}
if (this.mage._currentframe == 33) {
_root.life2 = _root.life2 - (random(5) + 10);
this.gotoAndStop(cow);
}
if (this.kick._currentframe == 5) {
_root.life2 = _root.life2 - (random(5) + 5);
}
if (this.kick._currentframe == 14) {
this.gotoAndStop(cow);
}
} else {
this.punch.stop();
this.kick.stop();
this.mage.stop();
}
}
if (alive == false) {
if (_root.life1 <= 0) {
this.gotoAndStop(4);
if (this.dead._currentframe <= 5) {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(1);
_root.moneygambled = _root.moneygambled + _root.bet1;
_root.lostbets = _root.lostbets + 1;
_root.bet1 = 0;
}
}
}
}
onClipEvent (load) {
alive = false;
cowz = 0;
}
Instance of Symbol 389 MovieClip "player2" in Frame 11
onClipEvent (enterFrame) {
cow = random(3) + 1;
if (cowz == 1) {
this.gotoAndStop(cow);
cowz = 0;
}
if (_root.player1.alive == true) {
if (alive == true) {
this.punch.play();
this.kick.play();
this.mage.play();
if (this.punch._currentframe == 4) {
_root.life1 = _root.life1 - (random(5) + 5);
}
if (this.punch._currentframe == 8) {
this.gotoAndStop(cow);
}
if (this.mage._currentframe == 33) {
_root.life1 = _root.life1 - (random(5) + 10);
this.gotoAndStop(cow);
}
if (this.kick._currentframe == 5) {
_root.life1 = _root.life1 - (random(5) + 5);
}
if (this.kick._currentframe == 14) {
this.gotoAndStop(cow);
}
}
} else {
this.punch.stop();
this.kick.stop();
this.mage.stop();
}
if (alive == false) {
if (_root.life2 <= 0) {
this.gotoAndStop(4);
if (this.dead._currentframe == 5) {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(1);
_root.money = _root.money + (_root.bet1 * 1.5);
_root.moneygambled = _root.moneygambled + _root.bet1;
_root.xp = _root.xp + 20;
_root.wonbets = _root.wonbets + 1;
}
}
}
}
onClipEvent (load) {
alive = false;
cowz = 0;
}
Instance of Symbol 131 MovieClip in Frame 11
on (press) {
_root.one.gotoAndStop(2);
_root.two.gotoAndStop(2);
_root.three.gotoAndStop(2);
_root.four.gotoAndStop(2);
_root.five.gotoAndStop(2);
_root.player1.cowz = 1;
_root.player2.cowz = 1;
_root.player1.alive = true;
_root.player2.alive = true;
_root.life1 = 100;
_root.life2 = 100;
}
Instance of Symbol 396 MovieClip in Frame 12
on (press) {
if (_root.purchase10 == 0) {
if (_root.money >= 250000) {
_root.money = _root.money - 250000;
_root.purchase10 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase10 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase10 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 405 MovieClip in Frame 12
on (press) {
if (_root.purchase11 == 0) {
if (_root.money >= 10000) {
_root.money = _root.money - 10000;
_root.purchase11 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase11 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase11 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 411 MovieClip in Frame 12
on (press) {
if (_root.purchase12 == 0) {
if (_root.money >= 150000) {
_root.money = _root.money - 150000;
_root.purchase12 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase12 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase12 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 414 MovieClip in Frame 12
on (press) {
if (_root.purchase13 == 0) {
if (_root.money >= 1500000) {
_root.money = _root.money - 1500000;
_root.purchase13 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase13 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase13 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 417 MovieClip in Frame 12
on (press) {
if (_root.purchase14 == 0) {
if (_root.money >= 900000) {
_root.money = _root.money - 900000;
_root.purchase14 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase14 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase14 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 288 MovieClip in Frame 12
on (press) {
if (_root.purchased >= 14) {
_root.gotoAndStop("states");
}
}
onClipEvent (enterFrame) {
if (_root.purchased >= 14) {
this.gotoAndStop(2);
}
}
Instance of Symbol 426 MovieClip in Frame 13
on (press) {
if (_root.purchase18 == 0) {
if (_root.money >= 50000000) {
_root.money = _root.money - 50000000;
_root.purchase18 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase18 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase18 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 431 MovieClip in Frame 13
on (press) {
if (_root.purchase16 == 0) {
if (_root.money >= 75000000) {
_root.money = _root.money - 75000000;
_root.purchase16 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase16 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase16 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 435 MovieClip in Frame 13
on (press) {
if (_root.purchase17 == 0) {
if (_root.money >= 75000000) {
_root.money = _root.money - 75000000;
_root.purchase17 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase17 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase17 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 439 MovieClip in Frame 13
on (press) {
if (_root.purchase15 == 0) {
if (_root.money >= 100000000) {
_root.money = _root.money - 100000000;
_root.purchase15 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase15 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase15 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 444 MovieClip in Frame 13
on (press) {
if (_root.purchase19 == 0) {
if (_root.money >= 50000000) {
_root.money = _root.money - 50000000;
_root.purchase19 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase19 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase19 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 448 MovieClip in Frame 13
on (press) {
if (_root.purchase20 == 0) {
if (_root.money >= 25000000) {
_root.money = _root.money - 25000000;
_root.purchase20 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase20 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase20 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 452 MovieClip in Frame 13
on (press) {
if (_root.purchase21 == 0) {
if (_root.money >= 15000000) {
_root.money = _root.money - 15000000;
_root.purchase21 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase21 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase21 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 288 MovieClip in Frame 13
on (press) {
if (_root.purchased >= 21) {
_root.gotoAndStop("earth");
}
}
onClipEvent (enterFrame) {
if (_root.purchased >= 21) {
this.gotoAndStop(2);
}
}
Instance of Symbol 472 MovieClip in Frame 14
on (press) {
if (_root.purchase22 == 0) {
if (_root.money >= 1000000000) {
_root.money = _root.money - 1000000000;
_root.purchase22 = 1;
_root.purchased = _root.purchased + 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.purchase22 == 0) {
this.gotoAndStop(1);
}
if (_root.purchase22 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 288 MovieClip in Frame 14
on (press) {
if (_root.purchased >= 22) {
_root.gotoAndStop("credits");
}
}
onClipEvent (enterFrame) {
if (_root.purchased >= 22) {
this.gotoAndStop(2);
}
}
Frame 15
slotsgo = function () {
cherry = 0;
lemon = 0;
seven = 0;
slot1.play();
slot2.play();
slot3.play();
timer1 = 30;
timer2 = 60;
timer3 = 90;
cow1 = true;
cow2 = true;
cow3 = true;
yes = true;
};
onEnterFrame = function () {
_root.lemon1 = lemon;
_root.cherry1 = cherry;
_root.seven1 = seven;
if (gonow == true) {
if (cherry == 2) {
money = money + (bet1 * 2);
}
if (lemon == 2) {
money = money + (bet1 * 2);
}
if (seven == 2) {
money = money + (bet1 * 2);
}
if (cherry == 3) {
money = money + (((bet1 * 2) * level) * 1.5);
}
if (lemon == 3) {
money = money + (((bet1 * 2) * level) * 1.5);
}
if (seven == 3) {
money = money + (((bet1 * 2) * level) * 1.5);
}
if (cherry == 1) {
if (lemon == 1) {
if (seven == 1) {
bet1 = 0;
}
}
}
crapodapo = true;
}
if (crapodapo == true) {
gonow = false;
crapodapo = false;
}
if (yes == true) {
if (timer1 <= 0) {
if (cow1 == true) {
_root.slot1.gotoAndStop(random(3) + 2);
cow1 = false;
}
}
if (timer2 <= 0) {
if (cow2 == true) {
_root.slot2.gotoAndStop(random(3) + 2);
cow2 = false;
}
}
if (timer3 <= 0) {
if (cow3 == true) {
_root.slot3.gotoAndStop(random(3) + 2);
gonow = true;
yes = false;
cow3 = false;
}
}
timer1 = timer1 - 1;
timer2 = timer2 - 1;
timer3 = timer3 - 1;
}
};
timer1 = 30;
timer2 = 60;
timer3 = 90;
cow1 = true;
cow2 = true;
cow3 = true;
yes = false;
cherry = 0;
lemon = 0;
seven = 0;
gonow = false;
bet1 = 0;
crapodapo = false;
Instance of Symbol 492 MovieClip in Frame 15
on (press) {
_root.slotsgo();
}
Instance of Symbol 115 MovieClip "four" in Frame 15
on (press) {
if (_root.money >= 5) {
_root.money = _root.money - 5;
_root.bet1 = _root.bet1 + 5;
}
}
on (keyPress "4") {
if (this._currentframe == 1) {
if (_root.money >= 5) {
_root.money = _root.money - 5;
_root.bet1 = _root.bet1 + 5;
}
}
}
Instance of Symbol 117 MovieClip "three" in Frame 15
on (press) {
if (_root.money >= 10) {
_root.money = _root.money - 10;
_root.bet1 = _root.bet1 + 10;
}
}
on (keyPress "3") {
if (this._currentframe == 1) {
if (_root.money >= 10) {
_root.money = _root.money - 10;
_root.bet1 = _root.bet1 + 10;
}
}
}
Instance of Symbol 119 MovieClip "two" in Frame 15
on (press) {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.bet1 = _root.bet1 + 50;
}
}
on (keyPress "2") {
if (this._currentframe == 1) {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.bet1 = _root.bet1 + 50;
}
}
}
Instance of Symbol 121 MovieClip "one" in Frame 15
on (press) {
if (_root.money >= 100) {
_root.money = _root.money - 100;
_root.bet1 = _root.bet1 + 100;
}
}
on (keyPress "1") {
if (this._currentframe == 1) {
if (_root.money >= 100) {
_root.money = _root.money - 100;
_root.bet1 = _root.bet1 + 100;
}
}
}
Instance of Symbol 123 MovieClip "five" in Frame 15
on (press) {
_root.money = _root.money + _root.bet1;
_root.bet1 = 0;
}
on (keyPress "5") {
if (this._currentframe == 1) {
_root.money = _root.money + _root.bet1;
_root.bet1 = 0;
}
}
Instance of Symbol 135 MovieClip "ninja" in Frame 15
on (press) {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.bet1 = _root.bet1 + 1000;
}
}
on (keyPress "`") {
if (this._currentframe == 1) {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.bet1 = _root.bet1 + 1000;
}
}
}
Frame 17
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = playername;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = GameSecs;
__rankz_send__("MjgzM2olZSVhJW4lcw==", "UXdXdXdmYVk=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
Symbol 62 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 64 MovieClip Frame 40
stop();
Symbol 75 Button
on (release) {
_root.play();
}
Symbol 76 MovieClip Frame 1
function onEnterFrame() {
if (!loaded) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
if (_local3 >= 1) {
play();
bar._x = initX;
loaded = true;
} else {
bar._x = initX + ((_local3 - 1) * bar._width);
}
}
var _local4 = getTimer() - time;
timeAccum = timeAccum + _local4;
while (timeAccum >= FRAME_TIME) {
var _local2 = 0;
while (_local2 < timeClips.length) {
if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) {
timeClips[_local2].nextFrame();
} else {
timeClips[_local2].gotoAndStop(1);
}
_local2++;
}
if (loaded && (_currentframe < _totalframes)) {
nextFrame();
}
timeAccum = timeAccum - FRAME_TIME;
}
time = time + _local4;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.3333333333333;
var timeAccum = 0;
var loaded = false;
timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0];
var i = 0;
while (i < timeClips.length) {
timeClips[i].stop();
i++;
}
Symbol 76 MovieClip Frame 51
Symbol 502 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 98 MovieClip Frame 1
_root.sound.play();
stop();
Symbol 98 MovieClip Frame 2
_root.sound.stop();
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 21
stop();
_root.turn = "dead";
Symbol 389 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 5
stop();
_root.cherry = _root.cherry + 1;
Symbol 483 MovieClip Frame 5
stop();
_root.lemon = _root.lemon + 1;
Symbol 486 MovieClip Frame 5
stop();
_root.seven = _root.seven + 1;
Symbol 500 MovieClip Frame 505
_root.nextFrame();