Frame 1
var loadingDone = 0;
var loadingDone2 = 0;
var pirated = false;
_quality = "BEST";
stop();
filmscreen.stop();
Stage.showMenu = false;
var fps = 0;
var pname = "";
var dwelling = 1;
var driving = 0;
var item_treadmill = 0;
var item_satellite = 0;
var item_books = 0;
var item_freezer = 0;
var item_minibar = 0;
var currentStock = "XXX";
var currentBought = "";
var currentPrice = 0;
var currentDiff = 0;
var currentYours = 0;
var offer = 0;
var boozeSell = 6;
var cokeSell = 5;
var whichCommodity = "";
var quantity = 0;
var sellSummary = "";
var dealMessage1 = 0;
var dealMessage2 = 0;
var dealMessage3 = 0;
var dealMessage4 = 0;
var dealMessage5 = 0;
var electionMessage = 0;
var karma = 0;
var charm = 0;
var intelligence = 0;
var strength = 0;
var hpmax = 0;
var hp = 0;
var cash = 100;
var bankcash = 0;
var bankloan = 0;
var bankloandays = -1;
var bankrate = ((random(50) / 10) + 1);
var packNumber = 0;
var item_smokes = 0;
var item_pills = 0;
var item_knife = 0;
var item_gun = 0;
var item_gun_ammo = 0;
var item_alarm = 0;
var item_cocaine = 0;
var item_skateboard = 0;
var item_car = 0;
var item_cellPhone = 0;
var item_bed = 0;
var item_tv = 0;
var item_computer = 0;
var haveBooze = 0;
rand = random(10) + 1;
var ABCprice = rand;
rand = random(10) + 1;
var XYZprice = rand;
rand = random(10) + 1;
var RTWprice = rand;
rand = random(10) + 1;
var LLGprice = rand;
rand = random(10) + 1;
var BIXprice = rand;
rand = random(10) + 1;
var IJAprice = rand;
var ABCprev = ABCprice;
var XYZprev = XYZprice;
var RTWprev = RTWprice;
var LLGprev = LLGprice;
var BIXprev = BIXprice;
var IJAprev = IJAprice;
var ABCunits = 0;
var XYZunits = 0;
var RTWunits = 0;
var LLGunits = 0;
var BIXunits = 0;
var IJAunits = 0;
var ABCbought = 0;
var XYZbought = 0;
var RTWbought = 0;
var LLGbought = 0;
var BIXbought = 0;
var IJAbought = 0;
var ABCdiff = 0;
var XYZdiff = 0;
var RTWdiff = 0;
var LLGdiff = 0;
var BIXdiff = 0;
var IJAdiff = 0;
var msgs = new Array();
msgs.push("Mmmmkay... Hiiii. It's Richard from McSticks calling. Yeaaah, Mmmmkay. I'm calling because you got the job, Riiiight. So you can just come in and start whenever. Mmmkay? Buh-Bye");
var job = 1;
var barfight = 1;
var gamelength = 0;
var music = 1;
var optimize = 1;
var day = 0;
var time = 8;
var car1s = 3;
var car2s = 3;
var xmove = 0;
var ymove = 0;
var mapx = 456;
var mapy = 630;
var prevmoving = 0;
var mapstate = 0;
var NPC2state = 0;
var NPC3state = 0;
var NPC2state2 = 0;
var fcount = 0;
var returnframe = 0;
var frate = 0;
var frameRate = "0 fps";
var stepcount = 0;
_root.fpsShower._visible = 0;
LoopA = new Sound();
LoopA.attachSound("Beginning.mp3");
LoopA.setVolume(50);
LoopB = new Sound();
LoopB.attachSound("main.mp3");
LoopC = new Sound();
LoopC.attachSound("fight.mp3");
LoopD = new Sound();
LoopD.attachSound("inside.mp3");
SFXclick = new Sound();
SFXclick.attachSound("_click.wav");
SFXerror = new Sound();
SFXerror.attachSound("_error.wav");
SFXeat = new Sound();
SFXeat.attachSound("_eat.wav");
SFXdrink = new Sound();
SFXdrink.attachSound("_drink.wav");
SFXwork = new Sound();
SFXwork.attachSound("_work.wav");
SFXpurchase = new Sound();
SFXpurchase.attachSound("_purchase.wav");
SFXfall = new Sound();
SFXfall.attachSound("_fall.wav");
SFXcarhit = new Sound();
SFXcarhit.attachSound("_carhit.wav");
SFXfootstep = new Sound();
SFXfootstep.attachSound("_footstep.wav");
SFXskate = new Sound();
SFXskate.attachSound("_Skate.wav");
SFXansmachine = new Sound();
SFXansmachine.attachSound("_Ansmachine.wav");
SFXwheelSpin = new Sound();
SFXwheelSpin.attachSound("_roulette");
SFXreel1 = new Sound();
SFXreel1.attachSound("firstReel");
SFXreel2 = new Sound();
SFXreel2.attachSound("secondReel");
SFXreel3 = new Sound();
SFXreel3.attachSound("thirdReel");
SFXhandle = new Sound();
SFXhandle.attachSound("handle");
SFXwinSound = new Sound();
SFXwinSound.attachSound("winSound");
SFXignition = new Sound();
SFXignition.attachSound("ignition");
SFXcrash = new Sound();
SFXcrash.attachSound("crash");
_global.karmaAdjust = function () {
if (karma >= 100) {
karma = 100;
}
if (karma <= -100) {
karma = -100;
}
};
_global.saveGame = function () {
saveName = "xgensrpg";
myLSO = SharedObject.getLocal(saveName);
if (myLSO.data.myObj == undefined) {
_root.saveText.text = "Game saved";
} else {
_root.saveText.text = "Previous game overwritten";
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = pname;
myObj.objArray[1] = dealMessage1;
myObj.objArray[2] = dealMessage2;
myObj.objArray[3] = dealMessage3;
myObj.objArray[4] = dealMessage4;
myObj.objArray[5] = dealMessage5;
myObj.objArray[6] = charm;
myObj.objArray[7] = intelligence;
myObj.objArray[8] = strength;
myObj.objArray[9] = hpmax;
myObj.objArray[10] = hp;
myObj.objArray[11] = cash;
myObj.objArray[12] = bankcash;
myObj.objArray[13] = bankloan;
myObj.objArray[14] = bankloandays;
myObj.objArray[15] = bankrate;
myObj.objArray[16] = packNumber;
myObj.objArray[17] = item_smokes;
myObj.objArray[18] = item_pills;
myObj.objArray[19] = item_knife;
myObj.objArray[20] = item_gun;
myObj.objArray[21] = item_gun_ammo;
myObj.objArray[22] = item_alarm;
myObj.objArray[23] = item_cocaine;
myObj.objArray[24] = item_skateboard;
myObj.objArray[25] = item_cellPhone;
myObj.objArray[26] = haveBooze;
myObj.objArray[27] = msgs;
myObj.objArray[28] = job;
myObj.objArray[29] = barfight;
myObj.objArray[30] = gamelength;
myObj.objArray[31] = music;
myObj.objArray[32] = optimize;
myObj.objArray[33] = day;
myObj.objArray[34] = time;
myObj.objArray[35] = frate;
myObj.objArray[36] = BIXbought;
myObj.objArray[37] = IJAbought;
myObj.objArray[38] = xmove;
myObj.objArray[39] = ymove;
myObj.objArray[40] = mapstate;
myObj.objArray[41] = NPC2state;
myObj.objArray[42] = NPC3state;
myObj.objArray[43] = NPC2state2;
myObj.objArray[44] = fps;
myObj.objArray[45] = item_bed;
myObj.objArray[46] = item_tv;
myObj.objArray[47] = item_computer;
myObj.objArray[48] = ABCprice;
myObj.objArray[49] = XYZprice;
myObj.objArray[50] = RTWprice;
myObj.objArray[51] = LLGprice;
myObj.objArray[52] = BIXprice;
myObj.objArray[53] = IJAprice;
myObj.objArray[54] = ABCprev;
myObj.objArray[55] = XYZprev;
myObj.objArray[56] = RTWprev;
myObj.objArray[57] = LLGprev;
myObj.objArray[58] = BIXprev;
myObj.objArray[59] = IJAprev;
myObj.objArray[60] = ABCunits;
myObj.objArray[61] = XYZunits;
myObj.objArray[62] = RTWunits;
myObj.objArray[63] = LLGunits;
myObj.objArray[64] = BIXunits;
myObj.objArray[65] = IJAunits;
myObj.objArray[66] = ABCbought;
myObj.objArray[67] = XYZbought;
myObj.objArray[68] = RTWbought;
myObj.objArray[69] = LLGbought;
myObj.objArray[70] = karma;
myObj.objArray[71] = dwelling;
myObj.objArray[72] = item_treadmill;
myObj.objArray[73] = item_satellite;
myObj.objArray[74] = item_books;
myObj.objArray[75] = item_freezer;
myObj.objArray[76] = item_minibar;
myObj.objArray[77] = item_car;
myObj.objArray[78] = electionMessage;
myLSO.data.myObj = myObj;
};
_global.loadGame = function () {
var _local1 = _root;
loadName = "xgensrpg";
myLSO = SharedObject.getLocal(loadName);
if (myLSO.data.myObj == undefined) {
_local1.SFXerror.start(0, 1);
} else {
pname = myLSO.data.myObj.objArray[0];
dealMessage1 = myLSO.data.myObj.objArray[1];
dealMessage2 = myLSO.data.myObj.objArray[2];
dealMessage3 = myLSO.data.myObj.objArray[3];
dealMessage4 = myLSO.data.myObj.objArray[4];
dealMessage5 = myLSO.data.myObj.objArray[5];
charm = myLSO.data.myObj.objArray[6];
intelligence = myLSO.data.myObj.objArray[7];
strength = myLSO.data.myObj.objArray[8];
hpmax = myLSO.data.myObj.objArray[9];
hp = myLSO.data.myObj.objArray[10];
cash = myLSO.data.myObj.objArray[11];
bankcash = myLSO.data.myObj.objArray[12];
bankloan = myLSO.data.myObj.objArray[13];
bankloandays = myLSO.data.myObj.objArray[14];
bankrate = myLSO.data.myObj.objArray[15];
packNumber = myLSO.data.myObj.objArray[16];
item_smokes = myLSO.data.myObj.objArray[17];
item_pills = myLSO.data.myObj.objArray[18];
item_knife = myLSO.data.myObj.objArray[19];
item_gun = myLSO.data.myObj.objArray[20];
item_gun_ammo = myLSO.data.myObj.objArray[21];
item_alarm = myLSO.data.myObj.objArray[22];
item_cocaine = myLSO.data.myObj.objArray[23];
item_skateboard = myLSO.data.myObj.objArray[24];
item_cellPhone = myLSO.data.myObj.objArray[25];
haveBooze = myLSO.data.myObj.objArray[26];
msgs = myLSO.data.myObj.objArray[27];
job = myLSO.data.myObj.objArray[28];
barfight = myLSO.data.myObj.objArray[29];
gamelength = myLSO.data.myObj.objArray[30];
music = myLSO.data.myObj.objArray[31];
optimize = myLSO.data.myObj.objArray[32];
day = myLSO.data.myObj.objArray[33];
time = myLSO.data.myObj.objArray[34];
frate = myLSO.data.myObj.objArray[35];
BIXbought = myLSO.data.myObj.objArray[36];
IJAbought = myLSO.data.myObj.objArray[37];
xmove = myLSO.data.myObj.objArray[38];
ymove = myLSO.data.myObj.objArray[39];
mapstate = myLSO.data.myObj.objArray[40];
NPC2state = myLSO.data.myObj.objArray[41];
NPC3state = myLSO.data.myObj.objArray[42];
NPC2state2 = myLSO.data.myObj.objArray[43];
fps = myLSO.data.myObj.objArray[44];
item_bed = myLSO.data.myObj.objArray[45];
item_tv = myLSO.data.myObj.objArray[46];
item_computer = myLSO.data.myObj.objArray[47];
ABCprice = myLSO.data.myObj.objArray[48];
XYZprice = myLSO.data.myObj.objArray[49];
RTWprice = myLSO.data.myObj.objArray[50];
LLGprice = myLSO.data.myObj.objArray[51];
BIXprice = myLSO.data.myObj.objArray[52];
IJAprice = myLSO.data.myObj.objArray[53];
ABCprev = myLSO.data.myObj.objArray[54];
XYZprev = myLSO.data.myObj.objArray[55];
RTWprev = myLSO.data.myObj.objArray[56];
LLGprev = myLSO.data.myObj.objArray[57];
BIXprev = myLSO.data.myObj.objArray[58];
IJAprev = myLSO.data.myObj.objArray[59];
ABCunits = myLSO.data.myObj.objArray[60];
XYZunits = myLSO.data.myObj.objArray[61];
RTWunits = myLSO.data.myObj.objArray[62];
LLGunits = myLSO.data.myObj.objArray[63];
BIXunits = myLSO.data.myObj.objArray[64];
IJAunits = myLSO.data.myObj.objArray[65];
ABCbought = myLSO.data.myObj.objArray[66];
XYZbought = myLSO.data.myObj.objArray[67];
RTWbought = myLSO.data.myObj.objArray[68];
LLGbought = myLSO.data.myObj.objArray[69];
karma = myLSO.data.myObj.objArray[70];
dwelling = myLSO.data.myObj.objArray[71];
item_treadmill = myLSO.data.myObj.objArray[72];
item_satellite = myLSO.data.myObj.objArray[73];
item_books = myLSO.data.myObj.objArray[74];
item_freezer = myLSO.data.myObj.objArray[75];
item_minibar = myLSO.data.myObj.objArray[76];
item_car = myLSO.data.myObj.objArray[77];
electionMessage = myLSO.data.myObj.objArray[78];
mapy = mapy - 8;
fps = 1;
_local1.loopA.stop();
_local1.loopB.setVolume(100);
_local1.loopB.start(0, 10000);
_local1.black.gotoAndPlay(11);
_local1.gotoAndStop(2);
}
};
Instance of Symbol 317 MovieClip "introscreen" in Frame 1
onClipEvent (load) {
this.stop();
this._visible = 0;
playOnce = 0;
}
onClipEvent (enterFrame) {
if ((_root.loadingDone2 == 1) && (playOnce == 0)) {
playOnce = 1;
this.play();
this._visible = 1;
_root.LoopA.start(0, 10000);
_root.pregameMC._x = _root.pregameMC._x - 1000;
}
}
Instance of Symbol 364 MovieClip "black" in Frame 1
onClipEvent (load) {
this.stop();
playOnce = 0;
}
onClipEvent (enterFrame) {
if ((_root.loadingDone2 == 1) && (playOnce == 0)) {
_quality = "BEST";
if (!_parent.pirated) {
this.play();
playOnce = 1;
} else {
getURL ("http://www.xgenstudios.com", "_top");
_parent.gotoAndStop("pirateFrame");
}
}
}
Instance of Symbol 367 MovieClip "loaderText" in Frame 1
onClipEvent (enterFrame) {
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes - loaded_bytes;
percentloaded1 = int((loaded_bytes / total_bytes) * 100);
percent_done = percentloaded1 + "%";
if (total_bytes == loaded_bytes) {
_root.loadingDone = 1;
this._visible = 0;
_root.pregameMC._visible = 1;
_root.pregameMC.gotoAndStop(2);
this.stop();
}
}
Instance of Symbol 378 MovieClip "pregameMC" in Frame 1
onClipEvent (load) {
this.stop();
this._visible = 0;
playOnce = 0;
}
Frame 2
stop();
_quality = "LOW";
person.gotoAndPlay(20);
if (day == 0) {
day = 1;
person.gotoAndPlay(231);
}
map_outside_1._x = mapx - 300;
map_outside_1._y = mapy - 709;
map_outside_2._x = mapx - 64.7;
map_outside_2._y = mapy - 440.6;
map_outside_3._x = mapx - 20;
map_outside_3._y = mapy - 201.9;
map_outside_4._x = mapx - 61;
map_outside_4._y = mapy + 48.1;
map_outside_5._x = mapx + 229.8;
map_outside_5._y = mapy + 325.1;
map_outside_6._x = mapx - 8;
map_outside_6._y = mapy + 612.7;
map_outside_7._x = mapx - 16.3;
map_outside_7._y = mapy + 865.2;
if (_root.packNumber >= 10) {
Map_Outside_1.Map1b.NPC3button._x = 2000;
Map_Outside_1.Map1b.NPC3button._alpha = 0;
}
if ((item_car == 1) || (item_car == 2)) {
Map_Outside_1.parkedCar._visible = 0;
} else {
Map_Outside_1.parkedCar._visible = 1;
}
if (dwelling == 5) {
Map_Outside_1.map1b.titleCastle._visible = 1;
} else {
Map_Outside_1.map1b.titleCastle._visible = 0;
}
if (dwelling == 4) {
Map_Outside_1.map1b.theMansion._visible = 1;
} else {
Map_Outside_1.map1b.theMansion._visible = 0;
}
fcount = 0;
if (((((((cash >= 200000) && (dwelling == 5)) && (electionMessage == 0)) && (intelligence >= 777)) && (strength >= 777)) && (charm >= 777)) && (karma < 0)) {
_root.msgs.push("Hello, this is the United Nations of Stick. You have been nominated for the position of Dictator for all Stick Nations because of your evil wealth and power. Call if you want to run a campaign!");
_root.electionMessage = 1;
}
if (((((((cash >= 200000) && (dwelling == 5)) && (electionMessage == 0)) && (intelligence >= 666)) && (strength >= 666)) && (charm >= 666)) && (karma > 0)) {
_root.msgs.push("Hello, this is the United Nations of Stick. You have been nominated for the position of President for all Stick Nations, because of your benevolent wealth and power. Call if you want to run a campaign!");
_root.electionMessage = 2;
}
if (intelligence >= 999) {
intelligence = 999;
}
if (strength >= 999) {
strength = 999;
}
if (charm >= 999) {
charm = 999;
}
Instance of Symbol 835 MovieClip "walk" in Frame 2
on (keyPress "c") {
if ((_root.item_car == 1) || (_root.item_car == 2)) {
if (_root.driving == 0) {
_root.SFXignition.start(0.25, 1);
}
_root.black.gotoAndPlay(1);
if (_root.driving == 0) {
_root.driving = 1;
} else if (_root.driving == 1) {
_root.driving = 0;
}
}
}
on (keyPress "C") {
if ((_root.item_car == 1) || (_root.item_car == 2)) {
if (_root.driving == 0) {
_root.SFXignition.start(0.25, 1);
}
_root.black.gotoAndPlay(1);
if (_root.driving == 0) {
_root.driving = 1;
} else if (_root.driving == 1) {
_root.driving = 0;
}
}
}
Frame 3
fcount = fcount + 1;
if (fcount == 40) {
_root.prevmoving = 0;
gotoAndStop (2);
}
if (_root.car1s < 2) {
if (_root.car1s == 0) {
_root.car1y = _root.car1y + 6;
}
if (_root.car1s == 1) {
_root.car1y = _root.car1y - 6;
}
if ((_root.car1y < -885) || (_root.car1y > 950)) {
_root.car1s = 2;
_root.car1.gotoAndPlay(2);
}
}
if (_root.car2s < 2) {
if (_root.car2s == 0) {
_root.car2y = _root.car2y + 6;
}
if (_root.car2s == 1) {
_root.car2y = _root.car2y - 6;
}
if ((_root.car2y < -885) || (_root.car2y > 950)) {
_root.car2s = 2;
_root.car2.gotoAndPlay(2);
}
}
_root.car1._x = _root.car1x + _root.mapx;
_root.car1._y = _root.car1y + _root.mapy;
_root.car2._x = _root.car2x + _root.mapx;
_root.car2._y = _root.car2y + _root.mapy;
Frame 4
gotoAndPlay (3);
Frame 5
stop();
_quality = "BEST";
Frame 6
stop();
_quality = "BEST";
if (_root.fps == 1) {
_root.fpsShower._visible = 1;
_root.statusbox.fpsOn.gotoAndStop(2);
_root.statusbox.fpsOff.gotoAndStop(1);
} else {
_root.fpsShower._visible = 0;
_root.statusbox.fpsOn.gotoAndStop(1);
_root.statusbox.fpsOff.gotoAndStop(2);
}
Frame 7
stop();
_quality = "BEST";
Frame 8
stop();
_quality = "BEST";
if (haveBooze == 0) {
give_booze._alpha = 0;
give_booze.enabled = false;
} else {
give_booze._alpha = 100;
give_booze.enabled = true;
}
var tempstr = "Could you spare some change?";
Frame 9
stop();
_quality = "BEST";
if (NPC3state == 0) {
tempstr = "Hey man! Do you have any smokes? I'm old enough to smoke, it's just...I.. uh.. er.. forgot my ID at home!\nPlease?";
} else {
tempstr = "Hey man!\n*Hack* *Cough*\nThanks for the *wheeze* cigarettes...";
}
Frame 10
tempstr = "Seems someone carelessly left their car unlocked and out on the grass.";
if (_root.item_car == 0) {
hotwire_car._visible = 1;
} else if (_root.item_car == 1) {
hotwire_car._visible = 0;
}
stop();
Frame 15
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
if ((item_gun > 0) && (item_gun_ammo > 9)) {
store_rob._visible = 1;
} else {
store_rob._visible = 0;
}
Frame 20
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
var jobtext = "JANITOR";
var wagetext = "Your wage is now $8 per hour.";
if (job == 1) {
new_apply_._visible = 1;
new_promotion_._visible = 0;
} else {
new_apply_._visible = 0;
new_promotion_._visible = 1;
}
new_work_janitor_._visible = 0;
new_work_mail_._visible = 0;
new_work_sales_._visible = 0;
new_work_exec_._visible = 0;
new_work_vice_._visible = 0;
new_work_ceo_._visible = 0;
if (job == 2) {
new_work_janitor_._visible = 1;
}
if (job == 3) {
new_work_mail_._visible = 1;
}
if (job == 4) {
new_work_sales_._visible = 1;
}
if (job == 5) {
new_work_exec_._visible = 1;
}
if (job == 6) {
new_work_vice_._visible = 1;
}
if (job == 7) {
new_work_ceo_._visible = 1;
new_promotion_._visible = 0;
}
if ((job == 8) || (job == 9)) {
new_work_ceo_._visible = 0;
new_promotion_._visible = 0;
}
Frame 24
if (dwelling == 2) {
apartment2._visible = 0;
}
if (dwelling == 3) {
apartment2._visible = 0;
penthouse._visible = 0;
}
if (dwelling == 4) {
apartment2._visible = 0;
penthouse._visible = 0;
mansion._visible = 0;
}
if (dwelling == 5) {
apartment2._visible = 0;
penthouse._visible = 0;
mansion._visible = 0;
castle._visible = 0;
}
Frame 25
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
var amount = 0;
if (bankloandays == -1) {
_bank_loan._visible = 1;
} else {
_bank_loan._visible = 0;
}
if (bankloandays > -1) {
_bank_repay._visible = 1;
} else {
_bank_repay._visible = 0;
}
if ((item_gun > 0) && (item_gun_ammo > 9)) {
bank_rob._visible = 1;
} else {
bank_rob._visible = 0;
}
Frame 28
_root.SFXwork.start(0, 1);
Frame 30
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
if (item_cellPhone == 1) {
pawn_cellPhone._visible = 0;
}
if (item_alarm == 1) {
pawn_alarm_._visible = 0;
}
if (item_knife == 1) {
pawn_knife_._visible = 0;
}
if (item_gun == 1) {
pawn_gun_._visible = 0;
pawn_ammo_._visible = 1;
} else {
pawn_ammo_._visible = 0;
}
Frame 35
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
Frame 37
dartThrows = 10;
dartPoints = 0;
lastThrow = "";
Instance of Symbol 1452 MovieClip "dart" in Frame 37
onClipEvent (load) {
startDrag ("", true);
stopShake = 0;
}
onClipEvent (enterFrame) {
Mouse.hide();
if (stopShake == 0) {
rand1 = random(7);
rand2 = random(8);
if (rand2 == 0) {
this._x = this._x + rand1;
} else if (rand2 == 1) {
this._x = this._x - rand1;
} else if (rand2 == 2) {
this._y = this._y + rand1;
} else if (rand2 == 3) {
this._y = this._y - rand1;
}
}
}
Frame 40
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
Frame 43
activeSpace = "None";
bet = 0;
rotationNumber = 0;
spinTime = 0;
activeBet = "";
spinResult.text = "";
bet00 = 0;
bet0 = 0;
bet1 = 0;
bet2 = 0;
bet3 = 0;
bet4 = 0;
bet5 = 0;
bet6 = 0;
bet7 = 0;
bet8 = 0;
bet9 = 0;
bet10 = 0;
bet11 = 0;
bet12 = 0;
bet13 = 0;
bet14 = 0;
bet15 = 0;
bet16 = 0;
bet17 = 0;
bet18 = 0;
bet19 = 0;
bet20 = 0;
bet21 = 0;
bet22 = 0;
bet23 = 0;
bet24 = 0;
bet25 = 0;
bet26 = 0;
bet27 = 0;
bet28 = 0;
bet29 = 0;
bet30 = 0;
bet31 = 0;
bet32 = 0;
bet33 = 0;
bet34 = 0;
bet35 = 0;
bet36 = 0;
betRed = 0;
betBlack = 0;
bet1st12 = 0;
bet2nd12 = 0;
bet3rd12 = 0;
betCol1 = 0;
betCol2 = 0;
betCol3 = 0;
betEven = 0;
betOdd = 0;
bet1_18 = 0;
bet19_36 = 0;
Instance of Symbol 1805 MovieClip "theWheel" in Frame 43
onClipEvent (load) {
rotating = 2;
_root.spinTime = 0;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + rotating;
if (_root.bet00 != 0) {
_root.ind00._visible = 1;
} else {
_root.ind00._visible = 0;
}
if (_root.bet0 != 0) {
_root.ind0._visible = 1;
} else {
_root.ind0._visible = 0;
}
if (_root.bet1 != 0) {
_root.ind1._visible = 1;
} else {
_root.ind1._visible = 0;
}
if (_root.bet2 != 0) {
_root.ind2._visible = 1;
} else {
_root.ind2._visible = 0;
}
if (_root.bet3 != 0) {
_root.ind3._visible = 1;
} else {
_root.ind3._visible = 0;
}
if (_root.bet4 != 0) {
_root.ind4._visible = 1;
} else {
_root.ind4._visible = 0;
}
if (_root.bet5 != 0) {
_root.ind5._visible = 1;
} else {
_root.ind5._visible = 0;
}
if (_root.bet6 != 0) {
_root.ind6._visible = 1;
} else {
_root.ind6._visible = 0;
}
if (_root.bet7 != 0) {
_root.ind7._visible = 1;
} else {
_root.ind7._visible = 0;
}
if (_root.bet8 != 0) {
_root.ind8._visible = 1;
} else {
_root.ind8._visible = 0;
}
if (_root.bet9 != 0) {
_root.ind9._visible = 1;
} else {
_root.ind9._visible = 0;
}
if (_root.bet10 != 0) {
_root.ind10._visible = 1;
} else {
_root.ind10._visible = 0;
}
if (_root.bet11 != 0) {
_root.ind11._visible = 1;
} else {
_root.ind11._visible = 0;
}
if (_root.bet12 != 0) {
_root.ind12._visible = 1;
} else {
_root.ind12._visible = 0;
}
if (_root.bet13 != 0) {
_root.ind13._visible = 1;
} else {
_root.ind13._visible = 0;
}
if (_root.bet14 != 0) {
_root.ind14._visible = 1;
} else {
_root.ind14._visible = 0;
}
if (_root.bet15 != 0) {
_root.ind15._visible = 1;
} else {
_root.ind15._visible = 0;
}
if (_root.bet16 != 0) {
_root.ind16._visible = 1;
} else {
_root.ind16._visible = 0;
}
if (_root.bet17 != 0) {
_root.ind17._visible = 1;
} else {
_root.ind17._visible = 0;
}
if (_root.bet18 != 0) {
_root.ind18._visible = 1;
} else {
_root.ind18._visible = 0;
}
if (_root.bet19 != 0) {
_root.ind19._visible = 1;
} else {
_root.ind19._visible = 0;
}
if (_root.bet20 != 0) {
_root.ind20._visible = 1;
} else {
_root.ind20._visible = 0;
}
if (_root.bet21 != 0) {
_root.ind21._visible = 1;
} else {
_root.ind21._visible = 0;
}
if (_root.bet22 != 0) {
_root.ind22._visible = 1;
} else {
_root.ind22._visible = 0;
}
if (_root.bet23 != 0) {
_root.ind23._visible = 1;
} else {
_root.ind23._visible = 0;
}
if (_root.bet24 != 0) {
_root.ind24._visible = 1;
} else {
_root.ind24._visible = 0;
}
if (_root.bet25 != 0) {
_root.ind25._visible = 1;
} else {
_root.ind25._visible = 0;
}
if (_root.bet26 != 0) {
_root.ind26._visible = 1;
} else {
_root.ind26._visible = 0;
}
if (_root.bet27 != 0) {
_root.ind27._visible = 1;
} else {
_root.ind27._visible = 0;
}
if (_root.bet28 != 0) {
_root.ind28._visible = 1;
} else {
_root.ind28._visible = 0;
}
if (_root.bet29 != 0) {
_root.ind29._visible = 1;
} else {
_root.ind29._visible = 0;
}
if (_root.bet30 != 0) {
_root.ind30._visible = 1;
} else {
_root.ind30._visible = 0;
}
if (_root.bet31 != 0) {
_root.ind31._visible = 1;
} else {
_root.ind31._visible = 0;
}
if (_root.bet32 != 0) {
_root.ind32._visible = 1;
} else {
_root.ind32._visible = 0;
}
if (_root.bet33 != 0) {
_root.ind33._visible = 1;
} else {
_root.ind33._visible = 0;
}
if (_root.bet34 != 0) {
_root.ind34._visible = 1;
} else {
_root.ind34._visible = 0;
}
if (_root.bet35 != 0) {
_root.ind35._visible = 1;
} else {
_root.ind35._visible = 0;
}
if (_root.bet36 != 0) {
_root.ind36._visible = 1;
} else {
_root.ind36._visible = 0;
}
if (_root.betRed != 0) {
_root.indRed._visible = 1;
} else {
_root.indRed._visible = 0;
}
if (_root.betBlack != 0) {
_root.indBlack._visible = 1;
} else {
_root.indBlack._visible = 0;
}
if (_root.bet1st12 != 0) {
_root.ind1st12._visible = 1;
} else {
_root.ind1st12._visible = 0;
}
if (_root.bet2nd12 != 0) {
_root.ind2nd12._visible = 1;
} else {
_root.ind2nd12._visible = 0;
}
if (_root.bet3rd12 != 0) {
_root.ind3rd12._visible = 1;
} else {
_root.ind3rd12._visible = 0;
}
if (_root.betCol1 != 0) {
_root.indCol1._visible = 1;
} else {
_root.indCol1._visible = 0;
}
if (_root.betCol2 != 0) {
_root.indCol2._visible = 1;
} else {
_root.indCol2._visible = 0;
}
if (_root.betCol3 != 0) {
_root.indCol3._visible = 1;
} else {
_root.indCol3._visible = 0;
}
if (_root.betEven != 0) {
_root.indEven._visible = 1;
} else {
_root.indEven._visible = 0;
}
if (_root.betOdd != 0) {
_root.indOdd._visible = 1;
} else {
_root.indOdd._visible = 0;
}
if (_root.bet1_18 != 0) {
_root.ind1_18._visible = 1;
} else {
_root.ind1_18._visible = 0;
}
if (_root.bet19_36 != 0) {
_root.ind19_36._visible = 1;
} else {
_root.ind19_36._visible = 0;
}
}
Instance of Symbol 1807 MovieClip "ind0" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1807 MovieClip "ind00" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind1" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind2" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind3" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind4" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind5" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind6" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind7" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind8" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind9" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind10" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind11" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind12" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind13" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind14" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind15" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind16" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind17" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind18" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind19" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind20" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind21" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind22" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind23" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind24" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind25" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind26" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind27" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind28" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind29" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind30" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind31" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind32" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind33" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind34" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind35" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "ind36" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "indCol1" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "indCol2" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1808 MovieClip "indCol3" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1809 MovieClip "ind1st12" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1809 MovieClip "ind2nd12" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1809 MovieClip "ind3rd12" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1810 MovieClip "ind1_18" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1810 MovieClip "indEven" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1810 MovieClip "indBlack" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1810 MovieClip "indRed" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1810 MovieClip "IndOdd" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1810 MovieClip "ind19_36" in Frame 43
onClipEvent (load) {
this._visible = 0;
}
Frame 45
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
if (job == 1) {
mc_work_._visible = 1;
} else {
mc_work_._visible = 0;
}
Frame 50
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
sellSummary = "";
Frame 51
if ((_root.offer == 0) && (_root.sellSummary == "")) {
_root.takeIt._visible = 0;
_root.sellSummary = "You've arrived in the city but can't find anyone to buy from you. Better luck next time, chump.";
} else if ((_root.offer == 0) && (_root.sellSummary != "")) {
_root.takeIt._visible = 0;
}
if (_root.offer > 0) {
_root.takeIt._visible = 1;
}
stop();
Frame 55
stop();
_quality = "BEST";
if (item_bed == 1) {
newBed._visible = 0;
}
if ((item_computer == 1) || (dwelling < 2)) {
buyComputer._visible = 0;
}
if ((item_tv == 1) || (dwelling < 3)) {
buyTV._visible = 0;
}
if ((item_freezer == 1) || (dwelling < 3)) {
buyFreezer._visible = 0;
}
if (((item_bed == 0) || (dwelling < 4)) || (item_treadmill == 1)) {
buyTreadmill._visible = 0;
}
if (((item_tv == 0) || (dwelling < 4)) || (item_satellite == 1)) {
buySatellite._visible = 0;
}
if (((item_computer == 0) || (dwelling < 4)) || (item_books == 1)) {
buyBooks._visible = 0;
}
if (((item_freezer == 0) || (dwelling < 4)) || (item_minibar == 1)) {
buyMinibar._visible = 0;
}
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
Frame 60
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
Frame 64
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
Frame 65
_quality = "BEST";
_root.black.gotoAndPlay(1);
if (item_tv == 0) {
apartment_tv._visible = 0;
}
if (item_computer == 0) {
apartment_comp._visible = 0;
}
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
saveText.text = "";
stop();
Frame 67
var msgtext = (("YOU HAVE (" + msgs.length) + ") NEW MESSAGES");
var msgbody = (("''" + msgs[0]) + "''");
if (msgs.length == 1) {
var msgtext = "YOU HAVE (1) NEW MESSAGE";
}
if (msgs.length == 0) {
msgbody = "";
}
Frame 68
rand = random(5);
if (time > 12) {
newstime = time - 12;
} else {
newstime = time;
}
if (rand == 0) {
newsbody = ("You're watching StickNews at " + newstime) + ". A body was found behind McSticks today. Reports indicate that the individual was drinking from the grease bin, killing him instantly...";
}
if (rand == 1) {
newsbody = ("You're watching StickNews at " + newstime) + ". The city's local coke dealer ventured out of the alley today, which means that spring will arrive 6 weeks early...";
}
if (rand == 2) {
newsbody = ("You're watching StickNews at " + newstime) + ". A new law was recently passed allowing motorists to ignore crossing pedestrians. In other news, the death toll due to hit and runs increased by 2000% yesterday.";
}
if (rand == 3) {
newsbody = ("You're watching StickNews at " + newstime) + ". People and vehicles plunging off of the sidewalks and road edges in the city is becoming an increasing problem. The Mayor's office has declined comment at this time.";
}
if (rand == 4) {
newsbody = ("You're watching StickNews at " + newstime) + ". Bar fights are at an all time high. Instead of using bar stools and pool cues, people have begun using fireballs and energy blasts. More on this story as it develops.";
}
stop();
Frame 70
ABCdiff = ABCprice - ABCprev;
if (ABCdiff < 0) {
ABCdiffText.textColor = 10027008 /* 0x990000 */;
} else if (ABCdiff > 0) {
ABCdiffText.textColor = 65280;
}
XYZdiff = XYZprice - XYZprev;
if (XYZdiff < 0) {
XYZdiffText.textColor = 10027008 /* 0x990000 */;
} else if (XYZdiff > 0) {
XYZdiffText.textColor = 65280;
}
RTWdiff = RTWprice - RTWprev;
if (RTWdiff < 0) {
RTWdiffText.textColor = 10027008 /* 0x990000 */;
} else if (RTWdiff > 0) {
RTWdiffText.textColor = 65280;
}
LLGdiff = LLGprice - LLGprev;
if (LLGdiff < 0) {
LLGdiffText.textColor = 10027008 /* 0x990000 */;
} else if (LLGdiff > 0) {
LLGdiffText.textColor = 65280;
}
BIXdiff = BIXprice - BIXprev;
if (BIXdiff < 0) {
BIXdiffText.textColor = 10027008 /* 0x990000 */;
} else if (BIXdiff > 0) {
BIXdiffText.textColor = 65280;
}
IJAdiff = IJAprice - IJAprev;
if (IJAdiff < 0) {
IJAdiffText.textColor = 10027008 /* 0x990000 */;
} else if (IJAdiff > 0) {
IJAdiffText.textColor = 65280;
}
ABCdiff = int(ABCdiff * 100) / 100;
XYZdiff = int(XYZdiff * 100) / 100;
RTWdiff = int(RTWdiff * 100) / 100;
LLGdiff = int(LLGdiff * 100) / 100;
BIXdiff = int(BIXdiff * 100) / 100;
IJAdiff = int(IJAdiff * 100) / 100;
ABCprice = int(ABCprice * 100) / 100;
XYZprice = int(XYZprice * 100) / 100;
RTWprice = int(RTWprice * 100) / 100;
LLGprice = int(LLGprice * 100) / 100;
BIXprice = int(BIXprice * 100) / 100;
IJAprice = int(IJAprice * 100) / 100;
Frame 71
var units = 0;
if (currentYours > 0) {
boughtIn.text = ("You bought in at $" + currentBought) + ". ";
} else {
boughtIn.text = "";
}
stop();
Frame 75
stop();
_quality = "BEST";
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopC.start(0, 10000);
}
hpbar2._visible = 1;
var fbugfix = 0;
var hpmax2 = (random(barfight * 5) + (barfight * 5));
var hp2 = hpmax2;
var hit = "!";
var att = 0;
var attpts = Math.min(int(strength / 20) + 1, 15);
var attmode = 0;
karma = karma - 2;
itfroze._visible = 1;
Frame 76
stop();
Frame 78
stop();
_quality = "BEST";
_root.black.gotoAndPlay(1);
if (item_tv == 0) {
apartment_tv._visible = 0;
}
if (item_computer == 0) {
apartment_comp._visible = 0;
}
_root.LoopB.stop();
if (_root.music == 1) {
_root.LoopD.start(0, 10000);
}
saveText.text = "";
Frame 80
var msgtext = (("YOU HAVE (" + msgs.length) + ") NEW MESSAGES");
var msgbody = (("''" + msgs[0]) + "''");
if (msgs.length == 1) {
var msgtext = "YOU HAVE (1) NEW MESSAGE";
}
if (msgs.length == 0) {
msgbody = "";
}
Frame 82
ABCdiff = ABCprice - ABCprev;
if (ABCdiff < 0) {
ABCdiffText.textColor = 10027008 /* 0x990000 */;
} else if (ABCdiff > 0) {
ABCdiffText.textColor = 65280;
}
XYZdiff = XYZprice - XYZprev;
if (XYZdiff < 0) {
XYZdiffText.textColor = 10027008 /* 0x990000 */;
} else if (XYZdiff > 0) {
XYZdiffText.textColor = 65280;
}
RTWdiff = RTWprice - RTWprev;
if (RTWdiff < 0) {
RTWdiffText.textColor = 10027008 /* 0x990000 */;
} else if (RTWdiff > 0) {
RTWdiffText.textColor = 65280;
}
LLGdiff = LLGprice - LLGprev;
if (LLGdiff < 0) {
LLGdiffText.textColor = 10027008 /* 0x990000 */;
} else if (LLGdiff > 0) {
LLGdiffText.textColor = 65280;
}
BIXdiff = BIXprice - BIXprev;
if (BIXdiff < 0) {
BIXdiffText.textColor = 10027008 /* 0x990000 */;
} else if (BIXdiff > 0) {
BIXdiffText.textColor = 65280;
}
IJAdiff = IJAprice - IJAprev;
if (IJAdiff < 0) {
IJAdiffText.textColor = 10027008 /* 0x990000 */;
} else if (IJAdiff > 0) {
IJAdiffText.textColor = 65280;
}
ABCdiff = int(ABCdiff * 100) / 100;
XYZdiff = int(XYZdiff * 100) / 100;
RTWdiff = int(RTWdiff * 100) / 100;
LLGdiff = int(LLGdiff * 100) / 100;
BIXdiff = int(BIXdiff * 100) / 100;
IJAdiff = int(IJAdiff * 100) / 100;
ABCprice = int(ABCprice * 100) / 100;
XYZprice = int(XYZprice * 100) / 100;
RTWprice = int(RTWprice * 100) / 100;
LLGprice = int(LLGprice * 100) / 100;
BIXprice = int(BIXprice * 100) / 100;
IJAprice = int(IJAprice * 100) / 100;
Frame 83
var units = 0;
if (currentYours > 0) {
boughtIn.text = ("You bought in at $" + currentBought) + ". ";
} else {
boughtIn.text = "";
}
stop();
Frame 85
rand = random(6);
if (time > 12) {
newstime = time - 12;
} else {
newstime = time;
}
if (rand == 0) {
newsbody = ("You're watching StickNews at " + newstime) + ". A body was found behind McSticks today. Reports indicate that the individual was drinking from the grease bin, killing him instantly...";
}
if (rand == 1) {
newsbody = ("You're watching StickNews at " + newstime) + ". The city's local coke dealer ventured out of the alley today, which means that spring will arrive 6 weeks early...";
}
if (rand == 2) {
newsbody = ("You're watching StickNews at " + newstime) + ". A new law was recently passed allowing motorists to ignore crossing pedestrians. In other news, the death toll due to hit and runs increased by 2000% yesterday.";
}
if (rand == 4) {
newsbody = ("You're watching StickNews at " + newstime) + ". People and vehicles plunging off of the sidewalks and road edges in the city is becoming an increasing problem. The Mayor's office has declined comment at this time.";
}
if (rand == 5) {
newsbody = ("You're watching StickNews at " + newstime) + ". Bar fights are at an all time high. Instead of using bar stools and pool cues, people have begun using fireballs and energy blasts. More on this story as it develops.";
}
stop();
Frame 87
rand = random(5);
if (rand == 0) {
newsbody = "Does the term 'First Base' feel extremely foreign to you? If so, be sure to watch the newest episode of 'Dating for Dimwits, only on the Dating Network.";
}
if (rand == 1) {
newsbody = "Tonight, we explore the underground world of the extreme Narcissist. Those who love themselves to death...literally...only on the Dating Network.";
}
if (rand == 2) {
newsbody = "Have you hit so rock bottom that you'll date anyone or anything under the sun? Then this might be the show you've been waiting for! Animal Planet and the Dating Network bring you 'Extreme Blind Date'! Coming up next!";
}
if (rand == 3) {
newsbody = "Welcome back to 'A Pimp's Tale', directed by Steven Stickberg. Due to partial Stick-nudity, viewer discretion is advised.";
}
if (rand == 4) {
newsbody = "The following is a paid commercial advertisment from the makers of Hypno-stick. The new fragrance from Stick-scents. Your TV has been locked for the next hour so you may fully enjoy this presentation.";
}
stop();
Frame 88
var successfulCampaign = 0;
newsbody = "Running a campaign will cost you. The more money you put in, the more chance you have of winning. If you win, you will be well revered and make good money. Do you want to run? You will not get another opportunity like this!";
Frame 89
if (successfulCampaign == 0) {
newsbody = "We have some bad news. The results came in and you did not win the election. What a shame considering all the money you put in. Ah well, g'nite!";
electionMessage = 3;
} else if (successfulCampaign == 1) {
newsbody = "Congratulations! You won the election! Enjoy your new life! (You will automatically make money when you go to bed each night)";
if (electionMessage == 1) {
job = 8;
}
if (electionMessage == 2) {
job = 9;
}
}
Frame 100
_quality = "BEST";
stop();
stopAllSounds();
hp = 0;
Frame 130
_quality = "HIGH";
gotoAndPlay (131);
karmaAdjust();
var netcalcfinal = ((_root.cash + _root.bankcash) - _root.bankloan);
var netcalc = (-_root.bankloan);
if (gamelength == 15) {
var categ = "Short Game (15 DAYS)";
}
if (gamelength == 40) {
var categ = "Medium Game (40 DAYS)";
}
if (gamelength == 100) {
var categ = "Long Game (100 DAYS)";
}
if (gamelength == 0) {
var categ = "Unlimited Game";
}
if (_root.job == 1) {
var jobtitle = "'McSlave'";
}
if (_root.job == 2) {
var jobtitle = "'Janitor'";
}
if (_root.job == 3) {
var jobtitle = "'Mail Room Clerk'";
}
if (_root.job == 4) {
var jobtitle = "'Salesperson'";
}
if (_root.job == 5) {
var jobtitle = "'Executive'";
}
if (_root.job == 6) {
var jobtitle = "'Vice President'";
}
if (_root.job == 7) {
var jobtitle = "'CEO'";
}
if (_root.job == 8) {
var jobtitle = "'Dictator of Sticks'";
}
if (_root.job == 9) {
var jobtitle = "'President of Sticks'";
}
if ((karma >= -20) && (karma <= 20)) {
var rank = "HOPELESS";
if (netcalcfinal > 0) {
rank = "UTTER FAILURE";
}
if (netcalcfinal > 100) {
rank = "LOSER";
}
if (netcalcfinal > 500) {
rank = "INCOMPETENT";
}
if (netcalcfinal > 1000) {
rank = "NOVICE";
}
if (netcalcfinal > 4000) {
rank = "MEDIOCRE";
}
if (netcalcfinal > 10000) {
rank = "EXCEPTIONAL";
}
if (netcalcfinal > 250000) {
rank = "EXTRAORDINARY";
}
if (netcalcfinal > 100000) {
rank = "GENIUS";
}
if (netcalcfinal > 1000000) {
rank = "MILLIONAIRE";
}
if (netcalcfinal > 2000000) {
rank = "MULTIMILLIONAIRE";
}
if (netcalcfinal > 10000000) {
rank = "DEMI GOD";
}
if (netcalcfinal > 100000000) {
rank = "GOD";
}
if (netcalcfinal > 1000000000) {
rank = "BILLIONAIRE GOD";
}
}
if (karma > 20) {
var rank = "HOPELESS";
if (netcalcfinal > 0) {
rank = "UTTER FAILURE";
}
if (netcalcfinal > 100) {
rank = "LOSER";
}
if (netcalcfinal > 500) {
rank = "INCOMPETENT";
}
if (netcalcfinal > 1000) {
rank = "WUSS";
}
if (netcalcfinal > 4000) {
rank = "GIRL SCOUT";
}
if (netcalcfinal > 10000) {
rank = "BOY SCOUT";
}
if (netcalcfinal > 250000) {
rank = "GOOD SAMARITAN";
}
if (netcalcfinal > 100000) {
rank = "EXTRAORDINARILY GOOD";
}
if (netcalcfinal > 1000000) {
rank = "SELFLESS MILLIONAIRE";
}
if (netcalcfinal > 2000000) {
rank = "PHILANTHROPIST";
}
if (netcalcfinal > 10000000) {
rank = "SAINT";
}
if (netcalcfinal > 100000000) {
rank = "APOSTLE";
}
if (netcalcfinal > 1000000000) {
rank = "MR. DOG";
}
}
if (karma < -20) {
var rank = "HOPELESS";
if (netcalcfinal > 0) {
rank = "UTTER FAILURE";
}
if (netcalcfinal > 100) {
rank = "LOSER";
}
if (netcalcfinal > 500) {
rank = "INCOMPETENT";
}
if (netcalcfinal > 1000) {
rank = "JUVENILE DELINQUENT";
}
if (netcalcfinal > 4000) {
rank = "WHITE COLLAR CRIMINAL";
}
if (netcalcfinal > 10000) {
rank = "PETTY CRIMINAL";
}
if (netcalcfinal > 250000) {
rank = "CAR JACKER";
}
if (netcalcfinal > 100000) {
rank = "EXTRAORDINARILY EVIL";
}
if (netcalcfinal > 1000000) {
rank = "DRUG LORD";
}
if (netcalcfinal > 2000000) {
rank = "UNDENIABLY WICKED";
}
if (netcalcfinal > 10000000) {
rank = "GENUINE HELLRAISER";
}
if (netcalcfinal > 100000000) {
rank = "SEED OF EVIL";
}
if (netcalcfinal > 1000000000) {
rank = "MR. NATAS";
}
}
Frame 131
if (netcalc < (netcalcfinal + 100)) {
netcalc = netcalc + Math.max(100, Math.round(netcalcfinal / 500));
} else {
netcalc = netcalcfinal;
gotoAndPlay (133);
}
SFXwork.stop();
SFXwork.start(0, 1);
Frame 132
gotoAndPlay (131);
Frame 161
stop();
Symbol 54 MovieClip [NPC3] Frame 65
if (random(5) != 0) {
gotoAndPlay (29);
}
Symbol 54 MovieClip [NPC3] Frame 130
if (random(5) != 0) {
gotoAndPlay (93);
}
Symbol 117 Button
on (release) {
_root.introscreen.sticktitle._visible = 0;
_root.introscreen.startbutton._visible = 0;
_root.introscreen.loadButton._visible = 0;
_root.introscreen.copyright._visible = 0;
_root.introscreen.instructionsbutton._visible = 0;
_root.introscreen.newgame._visible = 1;
}
Symbol 127 Button
on (release) {
_root.introscreen.sticktitle._visible = 0;
_root.introscreen.startbutton._visible = 0;
_root.introscreen.loadButton._visible = 0;
_root.introscreen.copyright._visible = 0;
_root.introscreen.instructionsbutton._visible = 0;
_root.introscreen.instructions._visible = 1;
}
Symbol 145 Button
on (release) {
if ((textname != null) && (textname != "")) {
_root.intelligence = intl;
_root.strength = str;
_root.charm = cha;
_root.hpmax = _root.strength + 15;
_root.hp = _root.hpmax;
_root.pname = textname;
if (textname == "HEYZEUS!!!!") {
_root.intelligence = 555;
_root.strength = 555;
_root.charm = 555;
_root.cash = 10000;
_root.hpmax = _root.strength + 15;
_root.hp = _root.hpmax;
_root.pname = "CHEATER!!!";
}
_root.LoopB.setVolume(100);
_root.LoopC.setVolume(100);
_root.LoopD.setVolume(100);
_root.loopA.stop();
_root.introscreen._visible = 0;
_root.black.gotoAndPlay(11);
_root.filmscreen.gotoAndPlay(2);
}
}
Symbol 167 Button
on (release) {
if (cha > 0) {
cha = cha - 1;
pts = pts + 1;
}
}
Symbol 168 Button
on (release) {
if (pts > 0) {
cha = cha + 1;
pts = pts - 1;
}
}
Symbol 170 Button
on (release) {
if (str > 0) {
str = str - 1;
pts = pts + 1;
}
}
Symbol 171 Button
on (release) {
if (pts > 0) {
str = str + 1;
pts = pts - 1;
}
}
Symbol 172 Button
on (release) {
if (intl > 0) {
intl = intl - 1;
pts = pts + 1;
}
}
Symbol 173 Button
on (release) {
if (pts > 0) {
intl = intl + 1;
pts = pts - 1;
}
}
Symbol 182 Button
on (release) {
pts = random(7) + 3;
str = random(10) + 1;
intl = random(10) + 1;
cha = random(10) + 1;
}
Symbol 183 MovieClip Frame 1
var textname = "Anonymous";
var pts = (random(7) + 3);
var str = (random(10) + 1);
var intl = (random(10) + 1);
var cha = (random(10) + 1);
Symbol 183 MovieClip Frame 2
stop();
Symbol 188 Button
on (release) {
loadGame();
}
Symbol 196 Button
on (release) {
gotoAndStop (2);
}
Symbol 234 Button
on (release) {
gotoAndStop (3);
}
Symbol 241 Button
on (release) {
gotoAndStop (4);
}
Symbol 248 Button
on (release) {
gotoAndStop (5);
}
Symbol 262 Button
on (release) {
gotoAndStop (6);
}
Symbol 271 Button
on (release) {
gotoAndStop (7);
}
Symbol 281 Button
on (release) {
_root.introscreen.sticktitle._visible = 1;
_root.introscreen.startbutton._visible = 1;
_root.introscreen.copyright._visible = 1;
_root.introscreen.loadButton._visible = 1;
_root.introscreen.instructionsbutton._visible = 1;
_root.introscreen.instructions._visible = 0;
gotoAndStop (1);
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 288 Button
on (release) {
_root.introscreen.newgame._visible = 0;
_root.introscreen.makechar._visible = 1;
}
Symbol 298 Button
on (release) {
_root.introscreen.newgame.gl1.gotoAndStop(2);
_root.introscreen.newgame.gl2.gotoAndStop(1);
_root.introscreen.newgame.gl3.gotoAndStop(1);
_root.introscreen.newgame.gl4.gotoAndStop(1);
_root.gamelength = 15;
}
Symbol 300 MovieClip Frame 1
stop();
Symbol 305 Button
on (release) {
_root.introscreen.newgame.gl1.gotoAndStop(1);
_root.introscreen.newgame.gl2.gotoAndStop(2);
_root.introscreen.newgame.gl3.gotoAndStop(1);
_root.introscreen.newgame.gl4.gotoAndStop(1);
_root.gamelength = 40;
}
Symbol 307 MovieClip Frame 2
stop();
Symbol 309 Button
on (release) {
_root.introscreen.newgame.gl1.gotoAndStop(1);
_root.introscreen.newgame.gl2.gotoAndStop(1);
_root.introscreen.newgame.gl3.gotoAndStop(2);
_root.introscreen.newgame.gl4.gotoAndStop(1);
_root.gamelength = 100;
}
Symbol 311 MovieClip Frame 1
stop();
Symbol 313 Button
on (release) {
_root.introscreen.newgame.gl1.gotoAndStop(1);
_root.introscreen.newgame.gl2.gotoAndStop(1);
_root.introscreen.newgame.gl3.gotoAndStop(1);
_root.introscreen.newgame.gl4.gotoAndStop(2);
_root.gamelength = 0;
}
Symbol 315 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 1
_root.gamelength = 0;
_root.introscreen.newgame.gl1.gotoAndStop(1);
_root.introscreen.newgame.gl2.gotoAndStop(1);
_root.introscreen.newgame.gl3.gotoAndStop(1);
_root.introscreen.newgame.gl4.gotoAndStop(2);
Symbol 316 MovieClip Frame 2
stop();
Symbol 317 MovieClip Frame 1
makechar._visible = 0;
newgame._visible = 0;
instructions._visible = 0;
var b1s = (random(75) + 25);
var b2s = (random(75) + 25);
var b3s = (random(75) + 25);
var b4s = (random(75) + 25);
var b5s = (random(75) + 25);
var b6s = (random(75) + 25);
var b7s = (random(75) + 25);
var b8s = (random(75) + 25);
var b1y = (b1s / 50);
var b2y = (b2s / 50);
var b3y = (b3s / 50);
var b4y = (b4s / 50);
var b5y = (b5s / 50);
var b6y = (b6s / 50);
var b7y = (b7s / 50);
var b8y = (b8s / 50);
b1._alpha = b1s / 1.2;
b2._alpha = b2s / 1.2;
b3._alpha = b3s / 1.2;
b4._alpha = b4s / 1.2;
b5._alpha = b5s / 1.2;
b6._alpha = b6s / 1.2;
b7._alpha = b7s / 1.2;
b8._alpha = b8s / 1.2;
b1._xscale = b1s;
b1._yscale = b1s;
b2._xscale = b2s;
b2._yscale = b2s;
b3._xscale = b3s;
b3._yscale = b3s;
b4._xscale = b4s;
b4._yscale = b4s;
b5._xscale = b5s;
b5._yscale = b5s;
b6._xscale = b6s;
b6._yscale = b6s;
b7._xscale = b7s;
b7._yscale = b7s;
b8._xscale = b8s;
b8._yscale = b8s;
Symbol 317 MovieClip Frame 2
b1._y = b1._y - b1y;
b2._y = b2._y - b2y;
b3._y = b3._y - b3y;
b4._y = b4._y - b4y;
b5._y = b5._y - b5y;
b6._y = b6._y - b6y;
b7._y = b7._y - b7y;
b8._y = b8._y - b8y;
if (b1._y < -225) {
b1._y = 215;
b1._x = random(535) - 285;
b1s = random(85) + 15;
b1y = b1s / 50;
b1._xscale = b1s;
b1._yscale = b1s;
b1._alpha = b1s / 1.2;
}
if (b2._y < -225) {
b2._y = 215;
b2._x = random(535) - 285;
b2s = random(85) + 15;
b2y = b2s / 50;
b2._xscale = b2s;
b2._yscale = b2s;
b2._alpha = b2s / 1.2;
}
if (b3._y < -225) {
b3._y = 215;
b3._x = random(535) - 285;
b3s = random(85) + 15;
b3y = b3s / 50;
b3._xscale = b3s;
b3._yscale = b3s;
b3._alpha = b3s / 1.2;
}
if (b4._y < -225) {
b4._y = 215;
b4._x = random(535) - 285;
b4s = random(85) + 15;
b4y = b4s / 50;
b4._xscale = b4s;
b4._yscale = b4s;
b4._alpha = b4s / 1.2;
}
if (b5._y < -225) {
b5._y = 215;
b5._x = random(535) - 285;
b5s = random(85) + 15;
b5y = b5s / 50;
b5._xscale = b5s;
b5._yscale = b5s;
b5._alpha = b5s / 1.2;
}
if (b6._y < -225) {
b6._y = 215;
b6._x = random(535) - 285;
b6s = random(85) + 15;
b6y = b6s / 50;
b6._xscale = b6s;
b6._yscale = b6s;
b6._alpha = b6s / 1.2;
}
if (b7._y < -225) {
b7._y = 215;
b7._x = random(535) - 285;
b7s = random(85) + 15;
b7y = b7s / 50;
b7._xscale = b7s;
b7._yscale = b7s;
b7._alpha = b7s / 1.2;
}
if (b8._y < -225) {
b8._y = 215;
b8._x = random(535) - 285;
b8s = random(85) + 15;
b8y = b8s / 50;
b8._xscale = b8s;
b8._yscale = b8s;
b8._alpha = b8s / 1.2;
}
Symbol 317 MovieClip Frame 3
gotoAndPlay (2);
Symbol 322 Button
on (release) {
gotoAndPlay (795);
}
Symbol 361 MovieClip Frame 727
_root.black.gotoAndPlay(1);
Symbol 361 MovieClip Frame 796
_root.SFXcarhit.start(0, 1);
_root.black.gotoAndStop(1);
Symbol 361 MovieClip Frame 850
stop();
_root.loopB.start(0, 10000);
_root.black.gotoAndPlay(11);
_root.gotoAndStop(2);
Symbol 362 MovieClip Frame 1
var frms = 0;
var date1 = new Date();
var systime = date.getSeconds();
_root.frate = 999;
Symbol 362 MovieClip Frame 2
frms = frms + 1;
date1 = new Date();
if ((date1.getSeconds() - systime) >= 1) {
_root.frate = int(frms);
_root.frameRate = _root.frate + " fps";
frms = 0;
systime = date1.getSeconds();
if (systime == 59) {
systime = -1;
}
}
Symbol 362 MovieClip Frame 3
gotoAndPlay (2);
Symbol 364 MovieClip Frame 10
stop();
Symbol 364 MovieClip Frame 30
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
if (_parent._parent.skipIntro) {
_parent._parent.doneIntro();
}
Symbol 372 MovieClip Frame 75
stop();
Symbol 372 MovieClip Frame 90
stop();
Symbol 377 MovieClip Frame 111
_root.loadingDone2 = 1;
stop();
Symbol 378 MovieClip Frame 1
function InitMovie() {
TransformMatrix = [[1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 0]];
f = 600;
moviewidth = 505;
movieheight = 250;
surfaces = 0;
}
function InitScene() {
_root.pregameMC.createEmptyMovieClip("Scene", 1);
Scene._x = 870;
Scene._y = 175;
s = 10;
makeACube(-1.76, 0.88, -9, s, 1.1);
makeACube(0, 3, 1, s, 1);
makeACube(2, 1, 0, s, 1);
makeACube(2.1, 3, 1, s, 1);
makeACube(1, 2, 0, s, 1);
makeACube(6, 0, random(2) / 4, s, 1.1);
makeACube(5, 0, random(2) / 4, s, 1.1);
makeACube(4, 0, random(2) / 4, s, 1.1);
makeACube(4, 1, random(2) / 2, s, 1.1);
makeACube(4, 2, random(2) / 2, s, 1.1);
makeACube(4, 3, random(2) / 2, s, 1.1);
makeACube(5, 3, random(2) / 2, s, 1.1);
makeACube(6, 3, random(2) / 2, s, 1.1);
makeACube(6, 2, random(2) / 2, s, 1.1);
makeACube(8, 0, random(2) / 2, s, 1.1);
makeACube(9, 0, random(2) / 2, s, 1.1);
makeACube(10, 0, random(2) / 2, s, 1.1);
makeACube(8, 1, random(2) / 2, s, 1.1);
makeACube(8, 2, random(2) / 2, s, 1.1);
makeACube(8, 3, random(2) / 2, s, 1.1);
makeACube(9, 3, random(2) / 2, s, 1.1);
makeACube(10, 3, random(2) / 2, s, 1.1);
makeACube(9, 1.5, random(2) / 2, s, 1.1);
makeACube(12, 0, random(2) / 2, s, 1.1);
makeACube(13, 0, random(2) / 2, s, 1.1);
makeACube(14, 0, random(2) / 2, s, 1.1);
makeACube(12, 1, random(2) / 2, s, 1.1);
makeACube(12, 2, random(2) / 2, s, 1.1);
makeACube(12, 3, random(2) / 2, s, 1.1);
makeACube(14, 1, random(2) / 2, s, 1.1);
makeACube(14, 2, random(2) / 2, s, 1.1);
makeACube(14, 3, random(2) / 2, s, 1.1);
s = 3;
makeACube(66, 1, 10, s);
makeACube(67, 2, 10, s);
makeACube(66, 3, 11, s);
makeACube(-51, 1, 10, s);
makeACube(-52, 2, 10, s);
makeACube(-51, 3, 11, s);
makeACube(8, 41, 10, s);
makeACube(9, 42, 10, s);
makeACube(10, 41, 11, s);
makeACube(8, -29, 10, s);
makeACube(9, -30, 10, s);
makeACube(10, -29, 11, s);
s = 2;
z = 150;
x = 19;
makeACube(1 + x, 10, z, s);
makeACube(2 + x, 10, z, s);
makeACube(0 + x, 11, z, s);
makeACube(0 + x, 12, z, s);
makeACube(1 + x, 12, z, s);
makeACube(2 + x, 12, z, s);
makeACube(2 + x, 13, z, s);
makeACube(0 + x, 14, z, s);
makeACube(1 + x, 14, z, s);
makeACube(4 + x, 10, z, s);
makeACube(5 + x, 10, z, s);
makeACube(6 + x, 10, z, s);
makeACube(5 + x, 11, z, s);
makeACube(5 + x, 12, z, s);
makeACube(5 + x, 13, z, s);
makeACube(5 + x, 14, z, s);
makeACube(8 + x, 10, z, s);
makeACube(8 + x, 11, z, s);
makeACube(8 + x, 12, z, s);
makeACube(8 + x, 13, z, s);
makeACube(8 + x, 14, z, s);
makeACube(9 + x, 14, z, s);
makeACube(10 + x, 10, z, s);
makeACube(10 + x, 11, z, s);
makeACube(10 + x, 12, z, s);
makeACube(10 + x, 13, z, s);
makeACube(10 + x, 14, z, s);
makeACube(12 + x, 10, z, s);
makeACube(12 + x, 11, z, s);
makeACube(12 + x, 12, z, s);
makeACube(12 + x, 13, z, s);
makeACube(12 + x, 14, z, s);
makeACube(13 + x, 10, z, s);
makeACube(13 + x, 14, z, s);
makeACube(14 + x, 11, z, s);
makeACube(14 + x, 12, z, s);
makeACube(14 + x, 13, z, s);
makeACube(16 + x, 10, z, s);
makeACube(16 + x, 11, z, s);
makeACube(16 + x, 12, z, s);
makeACube(16 + x, 13, z, s);
makeACube(16 + x, 14, z, s);
x = x - 1;
makeACube(19 + x, 11, z, s);
makeACube(19 + x, 12, z, s);
makeACube(19 + x, 13, z, s);
makeACube(19 + x, 14, z, s);
makeACube(20 + x, 10, z, s);
makeACube(20 + x, 14, z, s);
makeACube(21 + x, 10, z, s);
makeACube(21 + x, 11, z, s);
makeACube(21 + x, 12, z, s);
makeACube(21 + x, 13, z, s);
makeACube(24 + x, 10, z, s);
makeACube(25 + x, 10, z, s);
makeACube(23 + x, 11, z, s);
makeACube(23 + x, 12, z, s);
makeACube(24 + x, 12, z, s);
makeACube(25 + x, 12, z, s);
makeACube(25 + x, 13, z, s);
makeACube(23 + x, 14, z, s);
makeACube(24 + x, 14, z, s);
}
function makeACube(x, y, z, s, sizeBoost) {
var _local1 = s;
var _local3 = z;
var _local2 = y;
x = x - 8;
_local2 = _local2 - 2;
_local3 = _local3 - 10;
x = x * _local1;
_local2 = _local2 * _local1;
_local3 = _local3 * _local1;
if (sizeBoost == null) {
sizeBoost = 1;
}
_local1 = _local1 * sizeBoost;
make3Dobj([[[x, _local2, _local3], [x + _local1, _local2, _local3]], [[x + _local1, _local2, _local3], [x + _local1, _local2 + _local1, _local3]], [[x + _local1, _local2 + _local1, _local3], [x, _local2 + _local1, _local3]]]);
}
function make3Dobj(pointarray) {
obj = Scene.createEmptyMovieClip("surface_" + this.surfaces, surfaces - 10000);
obj.pointarray = pointarray;
this.surfaces++;
}
function eraseScene() {
i = 0;
while (i <= (surfaces - 1)) {
obj = Scene["surface_" + i];
obj.clear();
i++;
}
}
function RenderScene() {
i = 0;
while (i <= (surfaces - 1)) {
obj = Scene["surface_" + i];
obj.clear();
obj.lineStyle(0, "0xaaccee", 100 - (i * 5));
if (i < 32) {
obj.beginFill("0x88aacc", (i * 2) + (timer / 1.3));
} else {
obj.beginFill("0x88aacc", 100);
}
j = (xsum = (ysum = (zsum = 0)));
while (j <= (obj.pointarray.length - 1)) {
if (j == 0) {
point1 = MatrixVectorMultiply(TransformMatrix, obj.pointarray[j][0]);
obj.moveTo(point1[0] / (1 - (point1[2] / f)), point1[1] / (1 - (point1[2] / f)));
xsum = xsum + point1[0];
ysum = ysum + point1[1];
zsum = zsum + point1[2];
}
if (obj.pointarray[j].length == 2) {
point2 = MatrixVectorMultiply(TransformMatrix, obj.pointarray[j][1]);
obj.lineTo(point2[0] / (1 - (point2[2] / f)), point2[1] / (1 - (point2[2] / f)));
xsum = xsum + point2[0];
ysum = ysum + point2[1];
zsum = zsum + point2[2];
}
camdist = Math.sqrt((Math.pow(xsum / (j + 1), 2) + Math.pow(ysum / (j + 1), 2)) + Math.pow(f - (zsum / (j + 1)), 2));
obj.swapDepths(Math.pow(f, 3) - Math.floor(camdist * 100));
j++;
}
obj.endFill();
i++;
}
}
function SetTransformMatrix(x, y, z) {
var _local3 = x;
var _local2 = z;
var _local1 = y;
vectorLength = Math.sqrt(((_local3 * _local3) + (_local1 * _local1)) + (_local2 * _local2));
_local3 = _local3 / vectorLength;
_local1 = _local1 / vectorLength;
_local2 = _local2 / vectorLength;
var Theta = (vectorLength / 200);
var cosT = Math.cos(Theta);
var sinT = Math.sin(Theta);
var _loc1 = (1 - cosT);
TransformMatrix = MatrixMatrixMultiply([[((_loc1 * _local3) * _local3) + cosT, ((_loc1 * _local3) * _local1) - (sinT * _local2), ((_loc1 * _local3) * _local2) + (sinT * _local1)], [((_loc1 * _local3) * _local1) + (sinT * _local2), ((_loc1 * _local1) * _local1) + cosT, ((_loc1 * _local1) * _local2) - (sinT * _local3)], [((_loc1 * _local3) * _local2) - (sinT * _local1), ((_loc1 * _local1) * _local2) + (sinT * _local3), ((_loc1 * _local2) * _local2) + cosT]], InitialTransformMatrix);
}
function MatrixMatrixMultiply(A, B) {
var _local2 = B;
var _local1 = A;
var _local3 = [[], [], []];
_local3[0][0] = ((_local1[0][0] * _local2[0][0]) + (_local1[0][1] * _local2[1][0])) + (_local1[0][2] * _local2[2][0]);
_local3[0][1] = ((_local1[0][0] * _local2[0][1]) + (_local1[0][1] * _local2[1][1])) + (_local1[0][2] * _local2[2][1]);
_local3[0][2] = ((_local1[0][0] * _local2[0][2]) + (_local1[0][1] * _local2[1][2])) + (_local1[0][2] * _local2[2][2]);
_local3[1][0] = ((_local1[1][0] * _local2[0][0]) + (_local1[1][1] * _local2[1][0])) + (_local1[1][2] * _local2[2][0]);
_local3[1][1] = ((_local1[1][0] * _local2[0][1]) + (_local1[1][1] * _local2[1][1])) + (_local1[1][2] * _local2[2][1]);
_local3[1][2] = ((_local1[1][0] * _local2[0][2]) + (_local1[1][1] * _local2[1][2])) + (_local1[1][2] * _local2[2][2]);
_local3[2][0] = ((_local1[2][0] * _local2[0][0]) + (_local1[2][1] * _local2[1][0])) + (_local1[2][2] * _local2[2][0]);
_local3[2][1] = ((_local1[2][0] * _local2[0][1]) + (_local1[2][1] * _local2[1][1])) + (_local1[2][2] * _local2[2][1]);
_local3[2][2] = ((_local1[2][0] * _local2[0][2]) + (_local1[2][1] * _local2[1][2])) + (_local1[2][2] * _local2[2][2]);
return(_local3);
}
function MatrixVectorMultiply(A, B) {
var _local2 = B;
var _local1 = A;
C = [];
C[0] = ((_local1[0][0] * _local2[0]) + (_local1[0][1] * _local2[1])) + (_local1[0][2] * _local2[2]);
C[1] = ((_local1[1][0] * _local2[0]) + (_local1[1][1] * _local2[1])) + (_local1[1][2] * _local2[2]);
C[2] = ((_local1[2][0] * _local2[0]) + (_local1[2][1] * _local2[1])) + (_local1[2][2] * _local2[2]);
return(C);
}
function renderCube() {
Scene._x = Scene._x + (yVel / 8);
yVel = yVel * friction;
yPos = yPos + yVel;
if (timer < 88) {
SetTransformMatrix(-yVel, yPos, yVel * 10);
RenderScene();
if (timer > 40) {
if (timer > 80) {
f = f - 100;
} else if (timer == 78) {
BG.gotoAndPlay(76);
Scene._xscale = (Scene._yscale = 140);
}
}
} else if (timer == 100) {
_parent.doneIntro();
}
timer++;
}
stop();
var yVel = -476.7;
var yPos = 500;
var friction = 0.9;
timer = 0;
InitMovie();
InitScene();
InitialTransformMatrix = [[1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 0]];
Symbol 378 MovieClip Frame 2
_quality = "LOW";
BG.gotoAndPlay(2);
stop();
Instance of Symbol 57 MovieClip [emptyMC] in Symbol 378 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.renderCube();
}
Symbol 388 Button [NPC3_]
on (release) {
if (_root.mapstate == 0) {
_root.mapstate = 1;
_root.gotoAndPlay(9);
}
}
Symbol 396 MovieClip Frame 16
gotoAndPlay(random(12));
Symbol 401 MovieClip Frame 16
gotoAndPlay(random(12));
Symbol 407 MovieClip Frame 16
gotoAndPlay(random(12));
Symbol 428 Button
on (release) {
if (_root.mapstate == 0) {
_root.mapstate = 1;
_root.gotoAndStop(10);
}
}
Symbol 554 Button
on (release) {
if (_root.mapstate == 0) {
_root.mapstate = 1;
_root.gotoAndPlay(7);
}
}
Symbol 603 MovieClip Frame 45
if (random(5) != 0) {
gotoAndPlay (1);
}
Symbol 603 MovieClip Frame 140
if (random(5) != 0) {
gotoAndPlay (71);
}
Symbol 603 MovieClip Frame 165
gotoAndPlay (1);
Symbol 604 Button
on (release) {
if (_root.mapstate == 0) {
_root.mapstate = 1;
_root.gotoAndPlay(8);
}
}
Symbol 699 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 700 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 701 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 702 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 703 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 704 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 705 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 706 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 707 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 708 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 709 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 710 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 711 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 712 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 713 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 714 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 716 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 717 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 718 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 719 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 720 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 721 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 722 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 723 MovieClip Frame 1
if (_root.item_car == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 724 MovieClip Frame 1
if (_root.driving == 1) {
gotoAndStop (327);
}
_global.personColor = function () {
var _local1 = _root;
if (_local1.driving == 1) {
gotoAndStop (327);
}
theColor = new Color(_local1.person.stickBody);
if ((_local1.karma >= 0) && (_local1.karma <= 10)) {
theColor.setRGB(26316);
}
if ((_local1.karma > 10) && (_local1.karma <= 20)) {
theColor.setRGB(97528);
}
if ((_local1.karma > 20) && (_local1.karma <= 30)) {
theColor.setRGB(2199550);
}
if ((_local1.karma > 30) && (_local1.karma <= 40)) {
theColor.setRGB(4563710);
}
if ((_local1.karma > 40) && (_local1.karma <= 50)) {
theColor.setRGB(7387134);
}
if ((_local1.karma > 50) && (_local1.karma <= 60)) {
theColor.setRGB(9423102);
}
if ((_local1.karma > 60) && (_local1.karma <= 70)) {
theColor.setRGB(12574719);
}
if ((_local1.karma > 70) && (_local1.karma <= 80)) {
theColor.setRGB(14675967);
}
if ((_local1.karma > 80) && (_local1.karma <= 90)) {
theColor.setRGB(15661055);
}
if ((_local1.karma > 90) && (_local1.karma <= 100)) {
theColor.setRGB(16777215);
}
if (_local1.karma > 100) {
theColor.setRGB(16777215);
}
if ((_local1.karma >= -10) && (_local1.karma < 0)) {
theColor.setRGB(26316);
}
if ((_local1.karma >= -20) && (_local1.karma < -10)) {
theColor.setRGB(69833);
}
if ((_local1.karma >= -30) && (_local1.karma < -20)) {
theColor.setRGB(6619338);
}
if ((_local1.karma >= -40) && (_local1.karma < -30)) {
theColor.setRGB(9896138);
}
if ((_local1.karma >= -50) && (_local1.karma < -40)) {
theColor.setRGB(12190153);
}
if ((_local1.karma >= -60) && (_local1.karma < -50)) {
theColor.setRGB(13173133);
}
if ((_local1.karma >= -70) && (_local1.karma < -60)) {
theColor.setRGB(13238363);
}
if ((_local1.karma >= -80) && (_local1.karma < -70)) {
theColor.setRGB(13238298);
}
if ((_local1.karma >= -90) && (_local1.karma < -80)) {
theColor.setRGB(13238272);
}
if ((_local1.karma >= -100) && (_local1.karma < -90)) {
theColor.setRGB(13238272);
}
if (_local1.karma <= -100) {
theColor.setRGB(13238272);
}
_local1.person.attachMovie("bodyOutline", "bodyOutline1", 0);
};
Symbol 724 MovieClip Frame 14
personColor();
if (_root.driving == 0) {
gotoAndPlay (1);
} else {
gotoAndStop (327);
}
Symbol 724 MovieClip Frame 20
var count = 0;
personColor();
Symbol 724 MovieClip Frame 84
var count2 = 0;
personColor();
Symbol 724 MovieClip Frame 115
personColor();
count2 = count2 + 1;
if (count2 < 2) {
gotoAndPlay (85);
}
Symbol 724 MovieClip Frame 116
personColor();
gotoAndPlay (21);
count = count + 1;
if (count == 3) {
gotoAndPlay (120);
}
Symbol 724 MovieClip Frame 132
personColor();
Symbol 724 MovieClip Frame 180
personColor();
gotoAndPlay (132);
Symbol 724 MovieClip Frame 185
if (_root.driving == 1) {
gotoAndPlay (328);
}
_global.personColor2 = function () {
var _local1 = _root;
theColor = new Color(_local1.person.stickBody);
theColor1 = new Color(_local1.person.stickBody1);
theColor2 = new Color(_local1.person.stickBody2);
theColor3 = new Color(_local1.person.stickBody3);
theColor4 = new Color(_local1.person.stickBody4);
theColor5 = new Color(_local1.person.stickBody5);
theColor6 = new Color(_local1.person.stickBody6);
theColor7 = new Color(_local1.person.stickBody7);
theColor8 = new Color(_local1.person.stickBody8);
theColor9 = new Color(_local1.person.stickBody9);
theColor10 = new Color(_local1.person.stickBody10);
theColor11 = new Color(_local1.person.stickBody11);
theColor12 = new Color(_local1.person.stickBody12);
theColor13 = new Color(_local1.person.stickBody13);
theColor14 = new Color(_local1.person.stickBody14);
theColor15 = new Color(_local1.person.stickBody15);
theColor16 = new Color(_local1.person.stickBody16);
theColor17 = new Color(_local1.person.stickBody17);
theColor18 = new Color(_local1.person.stickBody18);
theColor19 = new Color(_local1.person.stickBody19);
theColor20 = new Color(_local1.person.stickBody20);
theColor21 = new Color(_local1.person.stickBody21);
theColor22 = new Color(_local1.person.stickBody22);
theColor23 = new Color(_local1.person.stickBody23);
theColor24 = new Color(_local1.person.stickBody24);
if ((_local1.karma >= 0) && (_local1.karma <= 10)) {
col = "0x0066CC";
}
if ((_local1.karma > 10) && (_local1.karma <= 20)) {
col = "0x017CF8";
}
if ((_local1.karma > 20) && (_local1.karma <= 30)) {
col = "0x218FFE";
}
if ((_local1.karma > 30) && (_local1.karma <= 40)) {
col = "0x45A2FE";
}
if ((_local1.karma > 40) && (_local1.karma <= 50)) {
col = "0x70B7FE";
}
if ((_local1.karma > 50) && (_local1.karma <= 60)) {
col = "0x8FC8FE";
}
if ((_local1.karma > 60) && (_local1.karma <= 70)) {
col = "0xBFDFFF";
}
if ((_local1.karma > 70) && (_local1.karma <= 80)) {
col = "0xDFEFFF";
}
if ((_local1.karma > 80) && (_local1.karma <= 90)) {
col = "0xEEF7FF";
}
if ((_local1.karma > 90) && (_local1.karma <= 100)) {
col = "0xFFFFFF";
}
if (_local1.karma > 100) {
col = "0xFFFFFF";
}
if ((_local1.karma >= -10) && (_local1.karma < 0)) {
col = "0x0066CC";
}
if ((_local1.karma >= -20) && (_local1.karma < -10)) {
col = "0x0110C9";
}
if ((_local1.karma >= -30) && (_local1.karma < -20)) {
col = "0x6500CA";
}
if ((_local1.karma >= -40) && (_local1.karma < -30)) {
col = "0x9700CA";
}
if ((_local1.karma >= -50) && (_local1.karma < -40)) {
col = "0xBA01C9";
}
if ((_local1.karma >= -60) && (_local1.karma < -50)) {
col = "0xC9018D";
}
if ((_local1.karma >= -70) && (_local1.karma < -60)) {
col = "0xCA005B";
}
if ((_local1.karma >= -80) && (_local1.karma < -70)) {
col = "0xCA001A";
}
if ((_local1.karma >= -90) && (_local1.karma < -80)) {
col = "0xCA0000";
}
if ((_local1.karma >= -100) && (_local1.karma < -90)) {
col = "0xCA0000";
}
if (_local1.karma <= -100) {
col = "0xCA0000";
}
colorSet(col);
};
_global.colorSet = function (col) {
var _local1 = col;
theColor.setRGB(_local1);
theColor1.setRGB(_local1);
theColor2.setRGB(_local1);
theColor3.setRGB(_local1);
theColor4.setRGB(_local1);
theColor5.setRGB(_local1);
theColor6.setRGB(_local1);
theColor7.setRGB(_local1);
theColor8.setRGB(_local1);
theColor9.setRGB(_local1);
theColor10.setRGB(_local1);
theColor11.setRGB(_local1);
theColor12.setRGB(_local1);
theColor13.setRGB(_local1);
theColor14.setRGB(_local1);
theColor15.setRGB(_local1);
theColor16.setRGB(_local1);
theColor17.setRGB(_local1);
theColor18.setRGB(_local1);
theColor19.setRGB(_local1);
theColor20.setRGB(_local1);
theColor21.setRGB(_local1);
theColor22.setRGB(_local1);
theColor23.setRGB(_local1);
theColor24.setRGB(_local1);
bodyOutline1.removeMovieClip();
};
_root.SFXfall.start(0, 1);
personColor2();
Symbol 724 MovieClip Frame 186
personColor2();
Symbol 724 MovieClip Frame 187
personColor2();
Symbol 724 MovieClip Frame 188
personColor2();
Symbol 724 MovieClip Frame 189
personColor2();
Symbol 724 MovieClip Frame 190
personColor2();
Symbol 724 MovieClip Frame 191
personColor2();
Symbol 724 MovieClip Frame 192
personColor2();
Symbol 724 MovieClip Frame 193
personColor2();
Symbol 724 MovieClip Frame 194
personColor2();
Symbol 724 MovieClip Frame 195
personColor2();
Symbol 724 MovieClip Frame 196
personColor2();
Symbol 724 MovieClip Frame 197
personColor2();
Symbol 724 MovieClip Frame 198
personColor2();
Symbol 724 MovieClip Frame 199
personColor2();
Symbol 724 MovieClip Frame 200
personColor2();
Symbol 724 MovieClip Frame 201
personColor2();
Symbol 724 MovieClip Frame 202
personColor2();
Symbol 724 MovieClip Frame 203
personColor2();
Symbol 724 MovieClip Frame 204
personColor2();
Symbol 724 MovieClip Frame 205
personColor2();
Symbol 724 MovieClip Frame 206
personColor2();
Symbol 724 MovieClip Frame 207
personColor2();
Symbol 724 MovieClip Frame 208
personColor2();
Symbol 724 MovieClip Frame 229
personColor();
gotoAndPlay (20);
Symbol 724 MovieClip Frame 230
personColor();
_root.person.bodyOutline1.removeMovieClip();
_root.SFXcarhit.start(0, 1);
rand = random(3);
if (rand == 0) {
_root.msgs.push("Hello, I'm calling from 'U-Hit-They-Run' Personal Injury Law. We have been informed that you were recently run over, and just wanted to let you know that we're here for you. Give us a call!");
}
if (rand == 1) {
_root.msgs.push("Hi there, I'm calling on behalf of 'Cash for Skid Marks' Inc. We'd like to talk to you about the markings you've received on your body due to a recent encounter with a vehicle. Talk to you soon!");
}
if (rand == 2) {
_root.msgs.push("Hello, its Debbie calling from StickNews. I've recently come into possession of eyewitness video from the recent hit-and-run you were involved in. Hope you don't mind me broadcasting it. Toodaloo!");
}
Symbol 724 MovieClip Frame 270
personColor();
gotoAndPlay (20);
Symbol 724 MovieClip Frame 275
personColor();
Symbol 724 MovieClip Frame 302
personColor();
gotoAndPlay (275);
Symbol 724 MovieClip Frame 305
personColor();
Symbol 724 MovieClip Frame 326
personColor();
gotoAndPlay (305);
Symbol 724 MovieClip Frame 327
_root.person.bodyOutline1.removeMovieClip();
stop();
Symbol 724 MovieClip Frame 360
_root.car2s = 500;
stop();
Symbol 724 MovieClip Frame 361
_root.SFXcrash.start(1.32, 1);
Symbol 724 MovieClip Frame 400
gotoAndStop (327);
Symbol 727 MovieClip Frame 1
stop();
Symbol 727 MovieClip Frame 33
_root.car1s = 500;
stop();
Symbol 728 MovieClip Frame 1
stop();
Symbol 728 MovieClip Frame 33
_root.car2s = 500;
stop();
Symbol 787 MovieClip Frame 4
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 4) {
gotoAndPlay (1);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 9
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 9) {
gotoAndPlay (5);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 14
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 14) {
gotoAndPlay (10);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 19
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 19) {
gotoAndPlay (15);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 24
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 24) {
gotoAndPlay (20);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 29
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 29) {
gotoAndPlay (25);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 34
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 34) {
gotoAndPlay (30);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 39
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int(((_root.hp / _root.hpmax) * 100) == 39)) {
gotoAndPlay (35);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 44
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int(((_root.hp / _root.hpmax) * 100) == 44)) {
gotoAndPlay (40);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 49
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int(((_root.hp / _root.hpmax) * 100) == 49)) {
gotoAndPlay (45);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 54
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int(((_root.hp / _root.hpmax) * 100) == 54)) {
gotoAndPlay (50);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 59
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 59) {
gotoAndPlay (55);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 64
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 64) {
gotoAndPlay (60);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 69
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 69) {
gotoAndPlay (65);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 74
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 74) {
gotoAndPlay (70);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 79
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 79) {
gotoAndPlay (75);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 84
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 84) {
gotoAndPlay (80);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 89
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 89) {
gotoAndPlay (85);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 94
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int((_root.hp / _root.hpmax) * 100) == 94) {
gotoAndPlay (90);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 99
if (_root.hp <= 0) {
_root.gotoAndStop(100);
}
if (int(((_root.hp / _root.hpmax) * 100) == 99)) {
gotoAndPlay (95);
} else {
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
}
Symbol 787 MovieClip Frame 104
gotoAndPlay(int((_root.hp / _root.hpmax) * 100));
Symbol 823 MovieClip Frame 3
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 5
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 7
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 9
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 11
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 13
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 15
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 17
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 19
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 21
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 23
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 25
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 27
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 29
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 31
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 33
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 35
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 37
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 39
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 41
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 43
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 45
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 47
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 49
gotoAndPlay((_root.time * 2) + 2);
Symbol 823 MovieClip Frame 65
gotoAndPlay((_root.time * 2) + 2);
Symbol 826 Button
on (release) {
gotoAndStop (5);
}
Symbol 831 Button
on (release) {
gotoAndStop (6);
}
Symbol 835 MovieClip Frame 1
var walkspeed = 1;
_root.ymove = 0;
_root.xmove = 0;
var kUp = 87;
var kDown = 83;
var kLeft = 65;
var kRight = 68;
if (key.isDown(16) && (_root.item_skateboard == 1)) {
walkspeed = 2;
}
if ((_root.driving == 1) && (_root.item_car == 1)) {
walkspeed = 3;
_root.person.gotoAndStop(327);
}
if ((_root.driving == 1) && (_root.item_car == 2)) {
walkspeed = 5;
_root.person.gotoAndStop(327);
}
if (key.isDown(37) || (key.isDown(kLeft))) {
_root.person._rotation = 270;
_root.xmove = 4;
} else if (key.isDown(39) || (key.isDown(kRight))) {
_root.person._rotation = 90;
_root.xmove = -4;
}
if (key.isDown(38) || (key.isDown(kUp))) {
_root.person._rotation = 360;
_root.ymove = 4;
} else if (key.isDown(40) || (key.isDown(kDown))) {
_root.person._rotation = 180;
_root.ymove = -4;
}
nowmoving = Math.abs(_root.xmove) + Math.abs(_root.ymove);
if (nowmoving != 0) {
if ((key.isDown(37) || (key.isDown(kLeft))) && (key.isDown(38) || (key.isDown(kUp)))) {
_root.person._rotation = 315;
}
if ((key.isDown(38) || (key.isDown(kUp))) && (key.isDown(39) || (key.isDown(kRight)))) {
_root.person._rotation = 45;
}
if ((key.isDown(39) || (key.isDown(kRight))) && (key.isDown(40) || (key.isDown(kDown)))) {
}
if ((key.isDown(40) || (key.isDown(kDown))) && (key.isDown(37) || (key.isDown(kLeft)))) {
_root.person._rotation = 225;
}
if ((_root.prevmoving == 0) || (walkspeed != prevwalkspeed)) {
if (walkspeed == 1) {
_root.person.gotoAndPlay(275);
}
if (walkspeed == 2) {
_root.person.gotoAndPlay(305);
}
if (walkspeed == 3) {
_root.person.gotoAndPlay(327);
}
}
_root.stepcount = _root.stepcount + Math.max(Math.abs(_root.xmove), Math.abs(_root.ymove));
if (_root.stepcount >= 12) {
_root.stepcount = 0;
if (walkspeed == 1) {
_root.SFXfootstep.start(0, 1);
}
if (walkspeed == 2) {
_root.SFXskate.start(0, 1);
}
}
if (nowmoving == 8) {
_root.xmove = (_root.xmove / 4) * 3;
_root.ymove = (_root.ymove / 4) * 3;
}
if (_root.optimize == 1) {
_quality = "LOW";
}
} else {
if (_root.driving == 0) {
_root.person.gotoAndPlay(20);
} else if (_root.driving == 1) {
_root.person.gotoAndStop(327);
}
_quality = "BEST";
}
i = 0;
while (i < walkspeed) {
if (_root.xmove < 0) {
if (_root.mapx > 119) {
_root.mapx = _root.mapx + _root.xmove;
} else {
if (((_root.mapy > -226) && (_root.mapy < -167)) && (_root.driving == 0)) {
_root.xmove = 0;
i++;
_root.gotoAndStop(15);
}
if (((_root.mapy > 485) && (_root.mapy < 541)) && (_root.driving == 0)) {
_root.xmove = 0;
i++;
_root.gotoAndStop(20);
}
if (((_root.mapy > 758) && (_root.mapy < 781)) && (_root.driving == 0)) {
_root.xmove = 0;
i++;
_root.gotoAndStop(25);
}
if (((_root.mapy > -524) && (_root.mapy < -501)) && (_root.driving == 0)) {
_root.xmove = 0;
i++;
_root.gotoAndStop(30);
}
if ((_root.mapy > -4) && (_root.mapy < 328)) {
_root.mapx = _root.mapx + _root.xmove;
}
}
if (_root.mapx < -660) {
_root.person.gotoAndPlay(185);
_root.mapx = _root.mapx + 20;
_root.xmove = 0;
_root.hp = _root.hp - 10;
i++;
_root.gotoAndPlay(3);
}
}
if (_root.xmove > 0) {
if (_root.mapx < 447) {
_root.mapx = _root.mapx + _root.xmove;
} else {
if (((_root.mapy > 65) && (_root.mapy < 97)) && (_root.driving == 0)) {
_root.xmove = 0;
i++;
_root.gotoAndStop(35);
}
if (((_root.mapy > -511) && (_root.mapy < -467)) && (_root.driving == 0)) {
_root.xmove = 0;
i++;
_root.gotoAndStop(40);
}
if (((_root.mapy > 302) && (_root.mapy < 346)) && (_root.driving == 0)) {
_root.xmove = 0;
i++;
_root.gotoAndStop(45);
}
if ((((_root.mapy > 888) && (_root.mapy < 920)) && ((_root.dwelling == 4) || (_root.dwelling == 5))) && (_root.driving == 0)) {
_root.xmove = 0;
i++;
_root.gotoAndStop(78);
}
if ((_root.mapy > 424) && (_root.mapy < 758)) {
_root.mapx = _root.mapx + _root.xmove;
}
}
if (_root.mapx > 1230) {
_root.person.gotoAndPlay(185);
_root.mapx = _root.mapx - 20;
_root.xmove = 0;
_root.hp = _root.hp - 10;
i++;
_root.gotoAndPlay(3);
}
}
if (_root.ymove < 0) {
if ((_root.mapx > 116) && (_root.mapx < 451)) {
_root.mapy = _root.mapy + _root.ymove;
} else {
if (_root.mapx < 119) {
if (_root.mapy > -1) {
_root.mapy = _root.mapy + _root.ymove;
} else if (((_root.mapx > -538) && (_root.mapx < -497)) && (_root.driving == 0)) {
_root.ymove = 0;
i++;
_root.gotoAndStop(50);
}
}
if (_root.mapx > 447) {
if (_root.mapy > 427) {
_root.mapy = _root.mapy + _root.ymove;
} else if (((_root.mapx > 889) && (_root.mapx < 930)) && (_root.driving == 0)) {
_root.ymove = 0;
i++;
_root.gotoAndStop(55);
}
}
}
if (_root.mapy < -690) {
_root.person.gotoAndPlay(185);
_root.mapy = _root.mapy + 20;
_root.ymove = 0;
_root.hp = _root.hp - 10;
_root.gotoAndPlay(3);
i++;
}
}
if (_root.ymove > 0) {
if ((_root.mapx > 116) && (_root.mapx < 450)) {
_root.mapy = _root.mapy + _root.ymove;
} else {
if (_root.mapx < 119) {
if (_root.mapy < 325) {
_root.mapy = _root.mapy + _root.ymove;
} else if (((_root.mapx < -405) && (_root.mapx > -426)) && (_root.driving == 0)) {
_root.ymove = 0;
i++;
_root.gotoAndStop(60);
}
}
if (_root.mapx > 448) {
if (_root.mapy < 754) {
_root.mapy = _root.mapy + _root.ymove;
} else if (((_root.mapx > 1043) && (_root.mapx < 1069)) && (_root.driving == 0)) {
_root.ymove = 0;
i++;
if (_root.dwelling > 3) {
_root.gotoAndStop(64);
} else {
_root.gotoAndStop(65);
}
}
}
}
if (_root.mapy > 1014) {
_root.person.gotoAndPlay(185);
_root.mapy = _root.mapy - 20;
_root.ymove = 0;
_root.hp = _root.hp - 10;
i++;
_root.gotoAndPlay(3);
}
}
i++;
}
if (_root.mapy > 537) {
_root.map_outside_1._x = _root.mapx - 300;
_root.map_outside_1._y = _root.mapy - 709;
_root.map_outside_1._visible = 1;
} else {
_root.map_outside_1._visible = 0;
}
if ((_root.mapy > 315) && (_root.mapy < 956)) {
_root.map_outside_2._x = _root.mapx - 64.7;
_root.map_outside_2._y = _root.mapy - 440.6;
_root.map_outside_2._visible = 1;
} else {
_root.map_outside_2._visible = 0;
}
if ((_root.mapy > 69) && (_root.mapy < 734)) {
_root.map_outside_3._x = _root.mapx - 20;
_root.map_outside_3._y = _root.mapy - 201.9;
_root.map_outside_3._visible = 1;
} else {
_root.map_outside_3._visible = 0;
}
if ((_root.mapy > -186) && (_root.mapy < 488)) {
_root.map_outside_4._x = _root.mapx - 61;
_root.map_outside_4._y = _root.mapy + 48.1;
_root.map_outside_4._visible = 1;
} else {
_root.map_outside_4._visible = 0;
}
if ((_root.mapy > -486) && (_root.mapy < 236)) {
_root.map_outside_5._x = _root.mapx + 229.8;
_root.map_outside_5._y = _root.mapy + 325.1;
_root.map_outside_5._visible = 1;
} else {
_root.map_outside_5._visible = 0;
}
if (_root.mapy < -64) {
_root.map_outside_6._x = _root.mapx - 8;
_root.map_outside_6._y = _root.mapy + 612.7;
_root.map_outside_6._visible = 1;
if (_root.mapy < -337) {
_root.map_outside_7._x = _root.mapx - 16.3;
_root.map_outside_7._y = _root.mapy + 865.2;
_root.map_outside_7._visible = 1;
} else {
_root.map_outside_7._visible = 0;
}
} else {
_root.map_outside_6._visible = 0;
}
if (_root.car1s < 2) {
if (_root.car1s == 0) {
_root.car1y = _root.car1y + 6;
}
if (_root.car1s == 1) {
_root.car1y = _root.car1y - 6;
}
if ((_root.car1y < -885) || (_root.car1y > 950)) {
_root.car1s = 2;
_root.car1.gotoAndPlay(2);
}
}
if (_root.car2s < 2) {
if (_root.car2s == 0) {
_root.car2y = _root.car2y + 6;
}
if (_root.car2s == 1) {
_root.car2y = _root.car2y - 6;
}
if ((_root.car2y < -885) || (_root.car2y > 950)) {
_root.car2s = 2;
_root.car2.gotoAndPlay(2);
}
}
if (_root.car1s > 2) {
_root.car1s = _root.car1s - 1;
if (random(_root.car1s) <= 2) {
var tran = random(100);
var t1 = random(2);
aColor = new Color(_root.car1);
aColorTransform = new Object();
aColorTransform.ba = 150;
aColorTransform.ra = 100 - (t1 * tran);
aColorTransform.ga = 100 - ((1 - t1) * tran);
aColor.setTransform(aColorTransform);
if (random(2) == 0) {
_root.car1._rotation = 0;
_root.car1s = 1;
_root.car1x = 15;
_root.car1y = 825;
} else {
_root.car1._rotation = 180;
_root.car1s = 0;
_root.car1x = -75;
_root.car1y = -800;
}
_root.car1.gotoAndStop(1);
}
}
if (_root.car2s > 2) {
_root.car2s = _root.car2s - 1;
if (random(_root.car2s) <= 2) {
var tran = random(100);
var t1 = random(2);
aColor = new Color(_root.car2);
aColorTransform = new Object();
aColorTransform.ba = 150;
aColorTransform.ra = 100 - (t1 * tran);
aColorTransform.ga = 100 - ((1 - t1) * tran);
aColor.setTransform(aColorTransform);
if (random(2) == 0) {
_root.car2._rotation = 0;
_root.car2s = 1;
_root.car2x = 15;
_root.car2y = 825;
} else {
_root.car2._rotation = 180;
_root.car2s = 0;
_root.car2x = -75;
_root.car2y = -800;
}
_root.car2.gotoAndStop(1);
}
}
_root.car1._x = _root.car1x + _root.mapx;
_root.car1._y = _root.car1y + _root.mapy;
_root.car2._x = _root.car2x + _root.mapx;
_root.car2._y = _root.car2y + _root.mapy;
a = 100 + (8 * (12 - _root.time));
if (_root.clouds._alpha != a) {
_root.clouds._alpha = a;
}
_root.prevmoving = nowmoving;
var prevwalkspeed = walkspeed;
Symbol 835 MovieClip Frame 2
i = 0;
while (i < walkspeed) {
if (_root.xmove < 0) {
if (_root.mapx > 119) {
_root.mapx = _root.mapx + _root.xmove;
} else if ((_root.mapy > -4) && (_root.mapy < 328)) {
_root.mapx = _root.mapx + _root.xmove;
}
if (_root.mapx < -660) {
_root.person.gotoAndPlay(185);
_root.mapx = _root.mapx + 20;
_root.xmove = 0;
_root.hp = _root.hp - 10;
i++;
_root.gotoAndPlay(3);
}
}
if (_root.xmove > 0) {
if (_root.mapx < 447) {
_root.mapx = _root.mapx + _root.xmove;
} else if ((_root.mapy > 424) && (_root.mapy < 758)) {
_root.mapx = _root.mapx + _root.xmove;
}
if (_root.mapx > 1230) {
_root.person.gotoAndPlay(185);
_root.mapx = _root.mapx - 20;
_root.xmove = 0;
_root.hp = _root.hp - 10;
i++;
_root.gotoAndPlay(3);
}
}
if (_root.ymove < 0) {
if ((_root.mapx > 116) && (_root.mapx < 451)) {
_root.mapy = _root.mapy + _root.ymove;
} else if ((_root.mapx < 119) && (_root.mapy > -1)) {
_root.mapy = _root.mapy + _root.ymove;
}
if ((_root.mapx > 447) && (_root.mapy > 427)) {
_root.mapy = _root.mapy + _root.ymove;
}
if (_root.mapy < -690) {
_root.person.gotoAndPlay(185);
_root.mapy = _root.mapy + 20;
_root.ymove = 0;
_root.hp = _root.hp - 10;
i++;
_root.gotoAndPlay(3);
}
}
if (_root.ymove > 0) {
if ((_root.mapx > 116) && (_root.mapx < 450)) {
_root.mapy = _root.mapy + _root.ymove;
} else if ((_root.mapx < 119) && (_root.mapy < 325)) {
_root.mapy = _root.mapy + _root.ymove;
}
if ((_root.mapx > 448) && (_root.mapy < 754)) {
_root.mapy = _root.mapy + _root.ymove;
}
if (_root.mapy > 1014) {
_root.person.gotoAndPlay(185);
_root.mapy = _root.mapy - 20;
_root.ymove = 0;
_root.hp = _root.hp - 10;
i++;
_root.gotoAndPlay(3);
}
}
i++;
}
if (_root.mapy > 537) {
_root.map_outside_1._x = _root.mapx - 300;
_root.map_outside_1._y = _root.mapy - 709;
_root.map_outside_1._visible = 1;
} else {
_root.map_outside_1._visible = 0;
}
if ((_root.mapy > 315) && (_root.mapy < 956)) {
_root.map_outside_2._x = _root.mapx - 64.7;
_root.map_outside_2._y = _root.mapy - 440.6;
_root.map_outside_2._visible = 1;
} else {
_root.map_outside_2._visible = 0;
}
if ((_root.mapy > 69) && (_root.mapy < 734)) {
_root.map_outside_3._x = _root.mapx - 20;
_root.map_outside_3._y = _root.mapy - 201.9;
_root.map_outside_3._visible = 1;
} else {
_root.map_outside_3._visible = 0;
}
if ((_root.mapy > -186) && (_root.mapy < 488)) {
_root.map_outside_4._x = _root.mapx - 61;
_root.map_outside_4._y = _root.mapy + 48.1;
_root.map_outside_4._visible = 1;
} else {
_root.map_outside_4._visible = 0;
}
if ((_root.mapy > -486) && (_root.mapy < 236)) {
_root.map_outside_5._x = _root.mapx + 229.8;
_root.map_outside_5._y = _root.mapy + 325.1;
_root.map_outside_5._visible = 1;
} else {
_root.map_outside_5._visible = 0;
}
if (_root.mapy < -64) {
_root.map_outside_6._x = _root.mapx - 8;
_root.map_outside_6._y = _root.mapy + 612.7;
_root.map_outside_6._visible = 1;
if (_root.mapy < -337) {
_root.map_outside_7._x = _root.mapx - 16.3;
_root.map_outside_7._y = _root.mapy + 865.2;
_root.map_outside_7._visible = 1;
} else {
_root.map_outside_7._visible = 0;
}
} else {
_root.map_outside_6._visible = 0;
}
if (_root.mapx > 590) {
_root.map_outside_1.map1a._visible = 1;
_root.map_outside_2.map2a._visible = 1;
_root.map_outside_3.map3a._visible = 1;
_root.map_outside_4.map4a._visible = 1;
} else {
_root.map_outside_1.map1a._visible = 0;
_root.map_outside_2.map2a._visible = 0;
_root.map_outside_3.map3a._visible = 0;
_root.map_outside_4.map4a._visible = 0;
}
if ((_root.mapx > 179) && (_root.mapx < 1162)) {
_root.map_outside_1.map1b._visible = 1;
_root.map_outside_2.map2b._visible = 1;
_root.map_outside_3.map3b._visible = 1;
_root.map_outside_4.map4b._visible = 1;
_root.map_outside_5.map5b._visible = 1;
_root.map_outside_6.map6b._visible = 1;
_root.map_outside_7.map7b._visible = 1;
} else {
_root.map_outside_1.map1b._visible = 0;
_root.map_outside_2.map2b._visible = 0;
_root.map_outside_3.map3b._visible = 0;
_root.map_outside_4.map4b._visible = 0;
_root.map_outside_5.map5b._visible = 0;
_root.map_outside_6.map6b._visible = 0;
_root.map_outside_7.map7b._visible = 0;
}
if ((_root.mapx > -310) && (_root.mapx < 748)) {
_root.map_outside_1.map1c._visible = 1;
_root.map_outside_2.map2c._visible = 1;
_root.map_outside_3.map3c._visible = 1;
_root.map_outside_4.map4c._visible = 1;
_root.map_outside_5.map5c._visible = 1;
_root.map_outside_6.map6c._visible = 1;
_root.map_outside_7.map7c._visible = 1;
} else {
_root.map_outside_1.map1c._visible = 0;
_root.map_outside_2.map2c._visible = 0;
_root.map_outside_3.map3c._visible = 0;
_root.map_outside_4.map4c._visible = 0;
_root.map_outside_5.map5c._visible = 0;
_root.map_outside_6.map6c._visible = 0;
_root.map_outside_7.map7c._visible = 0;
}
if (_root.mapx < 259) {
_root.map_outside_1.map1d._visible = 1;
_root.map_outside_2.map2d._visible = 1;
_root.map_outside_3.map3d._visible = 1;
_root.map_outside_4.map4d._visible = 1;
_root.map_outside_5.map5d._visible = 1;
_root.map_outside_6.map6d._visible = 1;
_root.map_outside_7.map7d._visible = 1;
} else {
_root.map_outside_1.map1d._visible = 0;
_root.map_outside_2.map2d._visible = 0;
_root.map_outside_3.map3d._visible = 0;
_root.map_outside_4.map4d._visible = 0;
_root.map_outside_5.map5d._visible = 0;
_root.map_outside_6.map6d._visible = 0;
_root.map_outside_7.map7d._visible = 0;
}
if (_root.mapx < -77) {
_root.map_outside_3.map3e._visible = 1;
_root.map_outside_4.map4e._visible = 1;
_root.map_outside_5.map5e._visible = 1;
} else {
_root.map_outside_3.map3e._visible = 0;
_root.map_outside_4.map4e._visible = 0;
_root.map_outside_5.map5e._visible = 0;
}
if (_root.car1s < 2) {
if (_root.car1s == 0) {
_root.car1y = _root.car1y + 6;
}
if (_root.car1s == 1) {
_root.car1y = _root.car1y - 6;
}
if ((_root.car1y < -885) || (_root.car1y > 950)) {
_root.car1s = 2;
_root.car1.gotoAndPlay(2);
}
}
if (_root.car2s < 2) {
if (_root.car2s == 0) {
_root.car2y = _root.car2y + 6;
}
if (_root.car2s == 1) {
_root.car2y = _root.car2y - 6;
}
if ((_root.car2y < -885) || (_root.car2y > 950)) {
_root.car2s = 2;
_root.car2.gotoAndPlay(2);
}
}
if (((((_root.person._x > (_root.car1._x - 35)) && (_root.person._x < (_root.car1._x + 30))) && (_root.person._y > (_root.car1._y - 52))) && (_root.person._y < (_root.car1._y + 55))) || ((((_root.person._x > (_root.car2._x - 35)) && (_root.person._x < (_root.car2._x + 30))) && (_root.person._y > (_root.car2._y - 52))) && (_root.person._y < (_root.car2._y + 55)))) {
if (_root.driving == 0) {
_root.person.gotoAndPlay(230);
_root.xmove = 0;
_root.ymove = 0;
_root.hp = _root.hp - 10;
_root.gotoAndPlay(3);
} else {
_root.person.gotoAndPlay(361);
_root.xmove = 0;
_root.ymove = 0;
_root.hp = _root.hp - 10;
_root.gotoAndPlay(3);
}
}
_root.car1._x = _root.car1x + _root.mapx;
_root.car1._y = _root.car1y + _root.mapy;
_root.car2._x = _root.car2x + _root.mapx;
_root.car2._y = _root.car2y + _root.mapy;
Symbol 847 Button
on (release) {
if ((_root.hp > 10) && (_root.time < 24)) {
_root.hp = _root.hp - 10;
_root.item_smokes = _root.item_smokes - 1;
_root.time = _root.time + 1;
_root.karma--;
if (_root.item_smokes == 0) {
this._visible = 0;
}
_root.inventory.gotoAndPlay(5);
}
}
Symbol 853 Button
on (release) {
_root.prevmoving = 0;
_root.gotoAndStop(2);
}
Symbol 880 Button
on (release) {
if (_root.dwelling == 1) {
_root.mapx = 1054;
_root.mapy = 748;
_root.gotoAndStop(65);
}
if (_root.dwelling == 2) {
_root.mapx = 1054;
_root.mapy = 748;
_root.gotoAndStop(65);
}
if (_root.dwelling == 3) {
_root.mapx = 1054;
_root.mapy = 748;
_root.gotoAndStop(65);
}
if (_root.dwelling == 4) {
_root.mapx = 447;
_root.mapy = 900;
_root.gotoAndStop(78);
}
if (_root.dwelling == 5) {
_root.mapx = 447;
_root.mapy = 900;
_root.gotoAndStop(78);
}
}
Symbol 909 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 944 MovieClip Frame 1
stop();
if (_root.item_smokes == 0) {
_item_smokes._visible = 0;
} else {
_item_smokes._visible = 1;
}
if (_root.item_knife == 0) {
_item_knife._visible = 0;
} else {
_item_knife._visible = 1;
}
if (_root.item_cellPhone == 0) {
yourCell._visible = 0;
} else {
yourCell._visible = 1;
}
if (_root.item_gun == 0) {
_item_gun._visible = 0;
} else {
_item_gun._visible = 1;
}
if (_root.haveBooze == 0) {
item_beer._visible = 0;
} else {
item_beer._visible = 1;
}
if (_root.item_pills == 0) {
_item_pills._visible = 0;
} else {
_item_pills._visible = 1;
}
if (_root.item_cocaine == 0) {
_item_cocaine._visible = 0;
} else {
_item_cocaine._visible = 1;
}
if (_root.item_skateboard == 0) {
_item_skateboard._visible = 0;
} else {
_item_skateboard._visible = 1;
}
Symbol 944 MovieClip Frame 15
_root.charm = Math.min(_root.charm + 1, 999);
Symbol 944 MovieClip Frame 60
gotoAndStop (1);
Symbol 962 Button
on (release) {
_root.music = 1;
_root.LoopB.start(0, 10000);
_root.statusbox.musicon.gotoAndStop(2);
_root.statusbox.musicoff.gotoAndStop(1);
}
Symbol 964 MovieClip Frame 2
stop();
Symbol 966 Button
on (release) {
_root.music = 0;
_root.LoopB.stop();
_root.statusbox.musicon.gotoAndStop(1);
_root.statusbox.musicoff.gotoAndStop(2);
}
Symbol 968 MovieClip Frame 1
stop();
Symbol 971 Button
on (release) {
gotoAndStop (2);
}
Symbol 976 Button
on (release) {
_root.optimize = 1;
_root.statusbox.optimizeon.gotoAndStop(2);
_root.statusbox.optimizeoff.gotoAndStop(1);
}
Symbol 977 MovieClip Frame 2
stop();
Symbol 978 Button
on (release) {
_root.optimize = 0;
_root.statusbox.optimizeon.gotoAndStop(1);
_root.statusbox.optimizeoff.gotoAndStop(2);
}
Symbol 979 MovieClip Frame 1
stop();
Symbol 981 Button
on (release) {
_root.fps = 1;
_root.fpsShower._visible = 1;
_root.statusbox.fpsOn.gotoAndStop(2);
_root.statusbox.fpsOff.gotoAndStop(1);
}
Symbol 982 MovieClip Frame 2
stop();
Symbol 983 Button
on (release) {
_root.fps = 0;
_root.fpsShower._visible = 0;
_root.statusbox.fpsOn.gotoAndStop(1);
_root.statusbox.fpsOff.gotoAndStop(2);
}
Symbol 984 MovieClip Frame 1
stop();
Symbol 997 Button
on (release) {
_root.gotoAndPlay(130);
}
Symbol 999 Button
on (release) {
gotoAndStop (1);
}
Symbol 1001 MovieClip Frame 1
stop();
var jobtitle = "";
var networth = ((_root.cash + _root.bankcash) - _root.bankloan);
var gamelen = (_root.gamelength + " Days");
if (_root.gamelength == 0) {
gamelen = "Unlimited";
}
if (_root.karma >= 100) {
_root.karma = 100;
}
if (_root.karma <= -100) {
_root.karma = -100;
}
if (_root.job == 1) {
jobtitle = "'McSlave'";
}
if (_root.job == 2) {
jobtitle = "'Janitor'";
}
if (_root.job == 3) {
jobtitle = "'Mail Room Clerk'";
}
if (_root.job == 4) {
jobtitle = "'Salesperson'";
}
if (_root.job == 5) {
jobtitle = "'Executive'";
}
if (_root.job == 6) {
jobtitle = "'Vice President'";
}
if (_root.job == 7) {
jobtitle = "'CEO'";
}
if (_root.job == 8) {
jobtitle = "'Dictator of Sticks'";
}
if (_root.job == 9) {
jobtitle = "'President of Sticks'";
}
if (_root.music == 0) {
_root.statusbox.musicon.gotoAndStop(1);
_root.statusbox.musicoff.gotoAndStop(2);
}
if (_root.optimize == 0) {
_root.statusbox.optimizeon.gotoAndStop(1);
_root.statusbox.optimizeoff.gotoAndStop(2);
}
if (_root.fps == 0) {
_root.statusbox.fpsOn.gotoAndStop(1);
_root.statusbox.fpsOff.gotoAndStop(2);
}
Symbol 1001 MovieClip Frame 2
stop();
Symbol 1027 MovieClip Frame 1
gotoAndPlay (5);
Symbol 1027 MovieClip Frame 19
gotoAndPlay (2);
Symbol 1030 Button
on (release) {
_root.prevmoving = 0;
_root.mapstate = 0;
gotoAndStop (2);
}
Symbol 1038 Button
on (release) {
if ((cash > 399) && (item_cocaine < 99)) {
cash = cash - 400;
item_cocaine = item_cocaine + 1;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1047 Button
on (release) {
if ((time < 24) && (cash > 9)) {
_root.SFXpurchase.start(0, 1);
cash = cash - 10;
time = time + 1;
_root.karma = _root.karma + 2;
karmaAdjust();
if (NPC2state == 0) {
tempstr = "Why thank you! What a charming gesture... *mumble*\n\n\n(CHARM INCREASED BY 6)";
charm = Math.min(charm + 6, 999);
NPC2state = 1;
} else {
rand = random(8);
if (rand == 0) {
tempstr = "Thank you kindly! I'm going to deposit this in the bank right away. Money in the bank earns interest overnight, you know.";
}
if (rand == 1) {
tempstr = "You are too generous! The way my luck was going, I was thinking of stealing a gun to rob the bank. Of course, I'm not charming enough, I'd never get away with it. Maybe the convenience store though... *mumble*";
}
if (rand == 2) {
tempstr = "I am very grateful, sir.";
}
if (rand == 3) {
tempstr = "Thank you sir, it's very cold without a home, very cold indeed. *Sigh* I wish I had a button in MY inventory to go home... *grumble grumble*";
}
if (rand == 4) {
tempstr = "Thank you kindly sir! Which reminds me of a story... *mumble*...so I says STALIN was CRAZY! CRAAAAZY!!! Exactly like...*mumble*... and THAT'S why I never went back to the mall.";
}
if (rand == 5) {
tempstr = "Your kindness reminds me... *mumble*... man I once knew... *mumble*... so I says to him, I says to him (this is right before he tells me about my liver) I says to him, Jimmy, what's that thing in your hands?";
}
if (rand == 6) {
tempstr = "Many thanks! *mumble*...back then, all we had was rocks and hats to play with. and you can't eat rocks, you know. Boy, I miss taily and scractchy and bitey and furry.";
}
if (rand == 7) {
tempstr = "My gratitude! But you MUST be careful! Once you pass through the first door... you're no longer on the inside, and no longer on the outside. LIMBO. You have Bhudda in your belly, your chahkra's will guide you... yes.. *mumble*";
}
}
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1055 Button
on (release) {
if ((time < 24) && (_root.haveBooze >= 1)) {
_root.haveBooze--;
time = time + 1;
if (NPC2state2 == 0) {
tempstr = "Booze! Precious booze!\n\n\n(CHARM INCREASED BY 8)";
charm = Math.min(charm + 8, 999);
NPC2state2 = 1;
} else {
rand = random(8);
if (rand == 0) {
tempstr = "Have I ever told you that I lo...*mumble*";
}
if (rand == 1) {
tempstr = "*hic*...Your generosity is much apprec...app...apprec...*hic*...thanks.";
}
if (rand == 2) {
tempstr = "*hic*...I...I...I'm not as think as you drunk I am...*buuuuurp*...I could use some more, good sir...*hic*";
}
if (rand == 3) {
tempstr = "Ah, sweet, sweet nectar...*hic*...its the reason I am where I am...*burp*...today...*mumble*";
}
if (rand == 4) {
tempstr = "*singing off key* You are my sunshine, my only sunshine...*hic*";
}
if (rand == 5) {
tempstr = "*chug chug chug* Ahhhhhh...*snort*...thank you very much...*hic*...ma'am.";
}
if (rand == 6) {
tempstr = "*sluuuurp*...I think I've gone blind...*hic*";
}
if (rand == 7) {
tempstr = "Are you trying to get me drunk? Cuz if you are...its working...*hic*";
}
}
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1057 Button
on (release) {
_root.prevmoving = 0;
_root.mapstate = 0;
gotoAndStop (2);
}
Symbol 1064 Button
on (release) {
if ((time < 24) && (item_smokes > 0)) {
time = time + 1;
item_smokes = item_smokes - 1;
_root.packNumber++;
_root.karma = _root.karma - 2;
karmaAdjust();
if (NPC3state == 0) {
tempstr = "Sweet man! You are sooo cool! Here, you can TAKE this!\n\n\n(SKATEBOARD RECEIVED - CHECK INVENTORY)";
item_skateboard = 1;
NPC3state = 1;
} else if (_root.packNumber >= 10) {
tempstr = "Thanks *cough cough* dude! ...*hack cough*...I think...I'm dying...*gag*";
_root.NPC_Smokes._visible = 0;
_root.msgs.push("This is Detective McHolland...I have reason to believe that you had something to do with a teenage boy dying of excess smoke inhalation. You'd better get a lawyer, punk..");
_root.karma = _root.karma - 30;
} else {
rand = random(8);
if (rand == 0) {
tempstr = "Sweet man! You are soooo cool!";
}
if (rand == 1) {
tempstr = "Wow dude, you rule! My girlfriend won't steal my smokes anymore!";
}
if (rand == 2) {
tempstr = "*hack hack* Ohhhh yeah...that's the good stuff.";
}
if (rand == 3) {
tempstr = "Yo, thanks for the cigs! I'm making tons of cash selling these at school!";
}
if (rand == 4) {
tempstr = "Sweet, thanks dude. Hey, you think you could get the Kings next time? Appreciate it.";
}
if (rand == 5) {
tempstr = "*cough cough* Sweeeeeeeeet...*hack*";
}
if (rand == 6) {
tempstr = "Man, I wish you were my dad.";
}
if (rand == 7) {
tempstr = "Thanks dude! And to think, I was actually thinking about quitting...ah well! You got a light?";
}
}
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1072 Button
on (release) {
if (_root.intelligence < 350) {
_root.time++;
_root.tempstr = "Attempt failed. You have to be smart enough to know what you're doing!";
} else {
_root.item_car = 1;
_root.hotwire_car._visible = 0;
_root.time++;
_root.tempstr = "You did it! Anytime you want to get behind the wheel, just press 'c'. If you want to stop driving, press 'c' again.";
}
}
Symbol 1087 Button
on (release) {
if (((cash > 3) && (hp < hpmax)) && (time < 24)) {
cash = cash - 4;
hp = hp + 7;
time = time + 1;
_root.SFXeat.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
if (hp > hpmax) {
hp = hpmax;
}
}
Symbol 1100 Button
on (release) {
if (((cash > 1) && (hp < hpmax)) && (time < 24)) {
cash = cash - 2;
hp = hp + 3;
time = time + 1;
_root.SFXeat.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
if (hp > hpmax) {
hp = hpmax;
}
}
Symbol 1101 Button
on (release) {
_root.LoopD.stop();
if (_root.music == 1) {
_root.LoopB.start(0, 10000);
}
mapx = mapx + 8;
_root.prevmoving = 0;
gotoAndStop (2);
}
Symbol 1107 Button
on (release) {
if (((cash > 0) && (time < 24)) && (hp < hpmax)) {
cash = cash - 1;
hp = hp + 1;
time = time + 1;
_root.SFXdrink.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1113 Button
on (release) {
if ((cash > 9) && (item_smokes < 99)) {
cash = cash - 10;
item_smokes = item_smokes + 1;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1120 Button
on (release) {
if ((cash > 44) && (item_pills < 99)) {
cash = cash - 45;
item_pills = item_pills + 1;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1127 Button
on (release) {
if (_root.time < 21) {
_root.time = 24;
_root.item_gun_ammo = _root.item_gun_ammo - (random(5) + 5);
rand = random(_root.charm);
if (rand > 40) {
_root.robamount = random(500);
_root.cash = _root.cash + _root.robamount;
_root.gotoAndStop(28);
} else {
_root.day = _root.day + 5;
_root.gotoAndStop(29);
}
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1137 Button
on (release) {
if (_root.intelligence > 19) {
_root.karma++;
_root.job = 2;
_root.msgs.push("Hey! Its Bob, your boss! I'm in the office. Really drunk...*blaaaargh* You're the new janitor, right?? Better bring a mop...*thud*");
_root.gotoAndStop(22);
} else {
_root.intreq = "(NEED 20 INTELLIGENCE)";
_root.gotoAndStop(21);
}
}
Symbol 1145 Button
on (release) {
if (_root.job == 2) {
if (_root.intelligence > 39) {
_root.jobtext = "MAIL ROOM CLERK";
_root.wagetext = "Your wage is now $10 per hour.";
_root.job = 3;
_root.msgs.push("Hey, its Gary from the mail room. Just wanted to let you know that a few of us went out for drinks to celebrate your promotion...uh...sorry you couldn't be there.");
_root.karma = _root.karma + 3;
_root.gotoAndStop(22);
} else {
_root.intreq = "(NEED 40 INTELLIGENCE)";
_root.gotoAndStop(21);
}
}
if (_root.job == 3) {
if (_root.intelligence > 74) {
_root.jobtext = "SALESPERSON";
_root.wagetext = "Your wage is now $15 per hour.";
_root.job = 4;
_root.msgs.push("This is Frank, your sales manager. Just thought I'd let you know that if you don't make the monthly sales quota, no one will ever find your body. See you at work!");
_root.karma = _root.karma + 3;
_root.gotoAndStop(22);
} else {
_root.intreq = "(NEED 75 INTELLIGENCE)";
_root.gotoAndStop(21);
}
}
if (_root.job == 4) {
if (_root.intelligence > 119) {
_root.jobtext = "EXECUTIVE";
_root.wagetext = "Your wage is now $25 per hour.";
_root.job = 5;
_root.msgs.push("Hi, its Sue from the Executive Board. Thought I'd remind you that you're due in court tomorrow for that sexual harrassment claim against you. Have a good one.");
_root.karma = _root.karma + 3;
_root.gotoAndStop(22);
} else {
_root.intreq = "(NEED 120 INTELLIGENCE)";
_root.gotoAndStop(21);
}
}
if (_root.job == 5) {
if (_root.intelligence > 179) {
_root.jobtext = "VICE PRESIDENT";
_root.wagetext = "Your wage is now $50 per hour.";
_root.msgs.push("Hey Mr. Vice Prez! Congrats! Its Stuart, your assistant. The CEO of the company has the flu, so you'll have to fill in for him volunteering at the hospital. Its bedpan Tuesday.");
_root.karma = _root.karma + 3;
_root.job = 6;
_root.gotoAndStop(22);
} else {
_root.intreq = "(NEED 180 INTELLIGENCE)";
_root.gotoAndStop(21);
}
}
if (_root.job == 6) {
if (_root.intelligence > 249) {
_root.jobtext = "CEO";
_root.wagetext = "Your wage is now $100 per hour.";
_root.msgs.push("Hey, its Stuart. Look...now that you're the CEO, I'm not your assistant anymore...you, uh...wanna go out sometime? Call me.");
_root.job = 7;
_root.karma = _root.karma + 3;
_root.gotoAndStop(22);
} else {
_root.intreq = "(NEED 250 INTELLIGENCE)";
_root.gotoAndStop(21);
}
}
}
Symbol 1154 Button
on (release) {
if (_root.time < 19) {
_root.karma++;
_root.cash = _root.cash + 48;
_root.time = _root.time + 6;
_root.SFXwork.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1162 Button
on (release) {
if (_root.time < 19) {
_root.karma++;
_root.cash = _root.cash + 60;
_root.time = _root.time + 6;
_root.SFXwork.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1170 Button
on (release) {
if (_root.time < 19) {
_root.karma++;
_root.cash = _root.cash + 90;
_root.time = _root.time + 6;
_root.SFXwork.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1178 Button
on (release) {
if (_root.time < 19) {
_root.karma++;
_root.cash = _root.cash + 150;
_root.time = _root.time + 6;
_root.SFXwork.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1186 Button
on (release) {
if (_root.time < 19) {
_root.karma++;
_root.cash = _root.cash + 300;
_root.time = _root.time + 6;
_root.SFXwork.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1194 Button
on (release) {
if (_root.time < 19) {
_root.karma++;
_root.cash = _root.cash + 600;
_root.time = _root.time + 6;
_root.SFXwork.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1219 Button
on (release) {
gotoAndStop (20);
}
Symbol 1227 Button
on (release) {
_root.LoopD.stop();
if (_root.music == 1) {
_root.LoopB.start(0, 10000);
}
mapx = mapx + 8;
_root.prevmoving = 0;
gotoAndStop (2);
}
Symbol 1235 Button
on (release) {
if (_root.cash > 24999) {
_root.cash = _root.cash - 25000;
_root.dwelling = 2;
_root.SFXpurchase.start(0, 1);
_root.apartment2._visible = 0;
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1243 Button
on (release) {
if (_root.cash > 49999) {
_root.cash = _root.cash - 50000;
_root.dwelling = 3;
_root.SFXpurchase.start(0, 1);
_root.penthouse._visible = 0;
_root.apartment2._visible = 0;
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1251 Button
on (release) {
if (_root.cash > 99999) {
_root.cash = _root.cash - 100000;
_root.dwelling = 4;
_root.SFXpurchase.start(0, 1);
_root.mansion._visible = 0;
_root.penthouse._visible = 0;
_root.apartment2._visible = 0;
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1259 Button
on (release) {
if (_root.cash > 499999) {
_root.cash = _root.cash - 500000;
_root.dwelling = 5;
_root.SFXpurchase.start(0, 1);
_root.castle._visible = 0;
_root.mansion._visible = 0;
_root.penthouse._visible = 0;
_root.apartment2._visible = 0;
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1270 Button
on (release) {
if ((_root.cash >= int(amount)) && (amount > 0)) {
_root.cash = _root.cash - int(amount);
_root.bankcash = _root.bankcash + int(amount);
}
}
Symbol 1275 Button
on (release) {
if ((_root.bankcash >= int(amount)) && (int(amount) > 0)) {
_root.bankcash = _root.bankcash - int(amount);
_root.cash = _root.cash + int(amount);
}
}
Symbol 1288 Button
on (release) {
_root.gotoAndStop(26);
}
Symbol 1296 Button
on (release) {
_root.gotoAndStop(27);
}
Symbol 1304 Button
on (release) {
_root.gotoAndStop(24);
}
Symbol 1311 Button
on (release) {
gotoAndStop (25);
}
Symbol 1312 Button
on (release) {
if ((int(amount) <= 1000) && (int(amount) > 0)) {
bankloan = bankloan + int(amount);
cash = cash + int(amount);
bankloandays = 15;
gotoAndStop (25);
}
}
Symbol 1316 Button
on (release) {
if ((int(amount) <= bankloan) && (int(amount) > 0)) {
if (int(cash) >= int(amount)) {
bankloan = bankloan - int(amount);
cash = cash - int(amount);
if (bankloan == 0) {
bankloandays = -1;
}
gotoAndStop (25);
}
}
}
Symbol 1321 Button
on (release) {
_root.karma = _root.karma - 10;
karmaAdjust();
mapx = 456;
mapy = 630;
gotoAndStop (2);
}
Symbol 1328 Button
on (release) {
_root.karma = _root.karma - 10;
karmaAdjust();
if ((day > gamelength) && (gamelength != 0)) {
gotoAndStop (130);
} else {
mapx = 456;
mapy = 630;
gotoAndStop (2);
}
}
Symbol 1334 Button
on (release) {
_root.LoopD.stop();
if (_root.music == 1) {
_root.LoopB.start(0, 10000);
}
mapx = mapx + 8;
gotoAndStop (2);
}
Symbol 1341 Button
on (release) {
if (_root.cash > 199) {
_root.cash = _root.cash - 200;
_root.item_alarm = 1;
_root.pawn_alarm_._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1348 Button
on (release) {
if (_root.cash > 99) {
_root.cash = _root.cash - 100;
_root.item_knife = 1;
_root.pawn_knife_._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1353 Button
on (release) {
if (_root.cash > 399) {
_root.cash = _root.cash - 400;
_root.item_gun = 1;
_root.pawn_gun_._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1361 Button
on (release) {
if ((_root.cash > 9) && (_root.item_gun_ammo < 95)) {
_root.cash = _root.cash - 10;
_root.item_gun_ammo = _root.item_gun_ammo + 5;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1369 Button
on (release) {
if (_root.cash > 199) {
_root.cash = _root.cash - 200;
_root.item_cellPhone = 1;
_root.pawn_cellPhone._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1372 Button
on (release) {
_root.LoopD.stop();
if (_root.music == 1) {
_root.LoopB.start(0, 10000);
}
mapx = mapx - 8;
_root.prevmoving = 0;
gotoAndStop (2);
}
Symbol 1379 Button
on (release) {
if ((time < 23) && (cash > 19)) {
cash = cash - 20;
time = time + 2;
gotoAndStop (36);
}
}
Symbol 1386 Button
on (release) {
if (time < 22) {
time = time + 3;
returnframe = 35;
gotoAndStop (75);
}
}
Symbol 1393 Button
on (release) {
if (cash > 29) {
cash = cash - 30;
_root.haveBooze++;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1402 Button
on (release) {
gotoAndStop (37);
}
Symbol 1429 MovieClip Frame 11
_root.charm = _root.charm + 2;
if (_root.charm > 999) {
_root.charm = 999;
}
Symbol 1429 MovieClip Frame 25
_root.gotoAndStop(35);
Symbol 1431 Button
on (rollOver) {
_root.dart.stopShake = 1;
}
on (rollOut) {
_root.dart.stopShake = 0;
}
on (release) {
Mouse.show();
gotoAndStop (35);
}
Symbol 1433 Button
on (press) {
if (_root.dartThrows > 0) {
_root.dartThrows--;
_root.lastThrow = "Wow, that was sad. Zero points.";
_root.dartPos._x = _root.dart._x;
_root.dartPos._y = _root.dart._y;
}
}
Symbol 1436 Button
on (press) {
if (_root.dartThrows > 0) {
_root.dartThrows--;
_root.dartPoints = _root.dartPoints + 50;
_root.lastThrow = "Bullseye!! 50 points!";
_root.SFXfootstep.start(0, 1);
}
}
Symbol 1438 Button
on (press) {
if (_root.dartThrows > 0) {
_root.dartThrows--;
_root.dartPoints = _root.dartPoints + 35;
_root.lastThrow = "Nice throw; good for 35 points!";
_root.SFXfootstep.start(0, 1);
}
}
Symbol 1440 Button
on (press) {
if (_root.dartThrows > 0) {
_root.dartThrows--;
_root.dartPoints = _root.dartPoints + 15;
_root.lastThrow = "15 points for that one.";
_root.SFXfootstep.start(0, 1);
}
}
Symbol 1442 Button
on (press) {
if (_root.dartThrows > 0) {
_root.dartThrows--;
_root.dartPoints = _root.dartPoints + 5;
_root.lastThrow = "That's 5 points, 'sucka.";
_root.SFXfootstep.start(0, 1);
}
}
Symbol 1472 MovieClip Frame 1
if (_root.slotmachine.sym1 == 1) {
stop();
}
Symbol 1472 MovieClip Frame 3
if (_root.slotmachine.sym1 == 2) {
stop();
}
Symbol 1472 MovieClip Frame 5
if (_root.slotmachine.sym1 == 3) {
stop();
}
Symbol 1476 MovieClip Frame 1
if (_root.slotmachine.sym2 == 1) {
stop();
}
Symbol 1476 MovieClip Frame 3
if (_root.slotmachine.sym2 == 2) {
stop();
}
Symbol 1476 MovieClip Frame 5
if (_root.slotmachine.sym2 == 3) {
stop();
}
Symbol 1481 MovieClip Frame 1
if (_root.slotmachine.sym3 == 1) {
stop();
}
Symbol 1481 MovieClip Frame 3
if (_root.slotmachine.sym3 == 2) {
stop();
}
Symbol 1481 MovieClip Frame 5
if (_root.slotmachine.sym3 == 3) {
stop();
}
Symbol 1486 Button
on (release) {
gotoAndStop (41);
}
Symbol 1499 Button
on (release) {
gotoAndStop (42);
}
Symbol 1506 Button
on (release) {
gotoAndStop (43);
}
Symbol 1508 Button
on (release) {
gotoAndStop (40);
}
Symbol 1528 Button
on (release) {
if (_root.slotmachine.betlock == 0) {
gotoAndStop (2);
}
}
Symbol 1532 Button
on (release) {
if (_root.slotmachine.betlock == 0) {
gotoAndStop (3);
}
}
Symbol 1534 Button
on (release) {
if (_root.slotmachine.betlock == 0) {
gotoAndStop (1);
}
}
Symbol 1535 MovieClip Frame 1
stop();
_root.slotmachine.bet = 5;
Symbol 1535 MovieClip Frame 2
_root.slotmachine.bet = 25;
Symbol 1535 MovieClip Frame 3
_root.slotmachine.bet = 100;
Symbol 1540 Button
on (release) {
if (_root.cash >= bet) {
_root.cash = _root.cash - bet;
_root.karma--;
karmaAdjust();
_root.SFXhandle.start(0, 1);
gotoAndPlay (2);
}
}
Symbol 1541 MovieClip Frame 1
var bet = 0;
var textwin = 0;
reel1.stop();
reel2.stop();
reel3.stop();
Symbol 1541 MovieClip Frame 2
stop();
var betlock = 0;
var sym1 = 0;
var sym2 = 0;
var sym3 = 0;
var spincherry = 0;
var spincash = 0;
var spindead = 0;
Symbol 1541 MovieClip Frame 3
reel1.play();
betlock = 1;
Symbol 1541 MovieClip Frame 9
reel2.play();
Symbol 1541 MovieClip Frame 15
reel3.play();
Symbol 1541 MovieClip Frame 23
_root.SFXreel1.start(0, 1);
Symbol 1541 MovieClip Frame 31
sym1 = random(3) + 1;
_root.SFXreel3.start(0, 1);
Symbol 1541 MovieClip Frame 39
sym2 = random(3) + 1;
_root.SFXreel2.start(0, 1);
Symbol 1541 MovieClip Frame 46
sym3 = random(3) + 1;
Symbol 1541 MovieClip Frame 47
textwin = 0;
if (sym1 == 1) {
spincash = spincash + 1;
}
if (sym2 == 1) {
spincash = spincash + 1;
}
if (sym3 == 1) {
spincash = spincash + 1;
}
if (sym1 == 2) {
spincherry = spincherry + 1;
}
if (sym2 == 2) {
spincherry = spincherry + 1;
}
if (sym3 == 2) {
spincherry = spincherry + 1;
}
if (sym1 == 3) {
spindead = spindead + 1;
}
if (sym2 == 3) {
spindead = spindead + 1;
}
if (sym3 == 3) {
spindead = spindead + 1;
}
if (spincherry == 3) {
textwin = bet * 5;
}
if (spincash == 3) {
textwin = bet * 15;
}
if (spindead == 3) {
textwin = bet * 2;
}
_root.cash = _root.cash + textwin;
if (textwin > 0) {
_root.SFXwinSound.start(0.1, 3);
}
Symbol 1541 MovieClip Frame 55
gotoAndStop (2);
Symbol 1551 Button
on (release) {
if (_root.cash > 99) {
_root.cash = _root.cash - 100;
bet = bet + 100;
}
}
Symbol 1557 Button
on (release) {
if (_root.cash > 4) {
_root.cash = _root.cash - 5;
bet = bet + 5;
}
}
Symbol 1568 Button
on (release) {
_root.cash = _root.cash + bet;
bet = 0;
}
Symbol 1574 Button
on (release) {
if (_root.cash > 24) {
_root.cash = _root.cash - 25;
bet = bet + 25;
}
}
Symbol 1575 Button
on (release) {
_root.cash = _root.cash + bet;
bet = 0;
_root.gotoAndStop(40);
}
Symbol 1581 Button
on (release) {
karma--;
karmaAdjust();
gotoAndPlay (5);
}
Symbol 1586 Button
on (release) {
if (_root.cash > 499) {
_root.cash = _root.cash - 500;
bet = bet + 500;
}
}
Symbol 1626 Button
on (release) {
if (_root.BJ21.pcards == 3) {
_root.BJ21.card4._visible = 1;
_root.BJ21.card4b._visible = 1;
_root.BJ21.phand = _root.BJ21.phand + _root.BJ21.cardn[_root.BJ21.pcards];
_root.BJ21.pcards = _root.BJ21.pcards + 1;
}
if (_root.BJ21.pcards == 2) {
_root.BJ21.card3._visible = 1;
_root.BJ21.card3b._visible = 1;
_root.BJ21.phand = _root.BJ21.phand + _root.BJ21.cardn[_root.BJ21.pcards];
_root.BJ21.pcards = _root.BJ21.pcards + 1;
}
var i = 0;
while (i < _root.BJ21.pcards) {
if (_root.BJ21.phand > 21) {
if (_root.BJ21.cardn[i] == 11) {
_root.BJ21.cardn[i] = 1;
_root.BJ21.phand = 0;
var ii = 0;
while (ii < _root.BJ21.pcards) {
_root.BJ21.phand = _root.BJ21.phand + _root.BJ21.cardn[ii];
ii++;
}
}
}
i++;
}
if (_root.BJ21.phand > 21) {
_root.BJ21.BJtext = "BUST!";
_root.BJ21.card10._visible = 0;
_root.BJ21.hit_._visible = 0;
_root.BJ21.stand_._visible = 0;
_root.BJ21.ok_._visible = 1;
}
}
Symbol 1632 Button
on (release) {
_root.BJ21.hit_._visible = 0;
_root.BJ21.stand_._visible = 0;
_root.BJ21.card10._visible = 0;
if (_root.BJ21.dhand < 17) {
_root.BJ21.card7._visible = 1;
_root.BJ21.dhand = _root.BJ21.dhand + _root.BJ21.cardn[6];
_root.BJ21.dcards = _root.BJ21.dcards + 1;
}
if (_root.BJ21.dhand < 17) {
_root.BJ21.card8._visible = 1;
_root.BJ21.dhand = _root.BJ21.dhand + _root.BJ21.cardn[7];
_root.BJ21.dcards = _root.BJ21.dcards + 1;
}
var i = 4;
while (i < (_root.BJ21.dcards + 4)) {
if (_root.BJ21.dhand > 21) {
if (_root.BJ21.cardn[i] == 11) {
_root.BJ21.cardn[i] = 1;
_root.BJ21.dhand = 0;
var ii = 4;
while (ii < (_root.BJ21.dcards + 4)) {
_root.BJ21.dhand = _root.BJ21.dhand + _root.BJ21.cardn[ii];
ii++;
}
}
}
i++;
}
if (_root.BJ21.dhand > 21) {
_root.BJ21.BJtext = "DEALER BUST!";
_root.cash = _root.cash + (_root.BJ21.bet * 2);
} else if (_root.BJ21.dhand > _root.BJ21.phand) {
_root.BJ21.BJtext = "DEALER WIN";
}
if (_root.BJ21.dhand == _root.BJ21.phand) {
_root.BJ21.BJtext = "PUSH";
_root.cash = _root.cash + _root.BJ21.bet;
}
if (_root.BJ21.dhand < _root.BJ21.phand) {
_root.BJ21.BJtext = "PLAYER WIN";
_root.cash = _root.cash + (_root.BJ21.bet * 2);
}
_root.BJ21.ok_._visible = 1;
}
Symbol 1635 Button
on (release) {
_root.BJ21.gotoAndStop(1);
}
Symbol 1637 MovieClip Frame 1
stop();
var bet = 0;
Symbol 1637 MovieClip Frame 5
stop();
var BJtext = "";
ok_._visible = 0;
card1.club._visible = 0;
card1.spade._visible = 0;
card1.heart._visible = 0;
card1.diamond._visible = 0;
card1.club2._visible = 0;
card1.spade2._visible = 0;
card1.heart2._visible = 0;
card1.diamond2._visible = 0;
card2.club._visible = 0;
card2.spade._visible = 0;
card2.heart._visible = 0;
card2.diamond._visible = 0;
card2.club2._visible = 0;
card2.spade2._visible = 0;
card2.heart2._visible = 0;
card2.diamond2._visible = 0;
card3.club._visible = 0;
card3.spade._visible = 0;
card3.heart._visible = 0;
card3.diamond._visible = 0;
card3.club2._visible = 0;
card3.spade2._visible = 0;
card3.heart2._visible = 0;
card3.diamond2._visible = 0;
card4.club._visible = 0;
card4.spade._visible = 0;
card4.heart._visible = 0;
card4.diamond._visible = 0;
card4.club2._visible = 0;
card4.spade2._visible = 0;
card4.heart2._visible = 0;
card4.diamond2._visible = 0;
card5.club._visible = 0;
card5.spade._visible = 0;
card5.heart._visible = 0;
card5.diamond._visible = 0;
card5.club2._visible = 0;
card5.spade2._visible = 0;
card5.heart2._visible = 0;
card5.diamond2._visible = 0;
card6.club._visible = 0;
card6.spade._visible = 0;
card6.heart._visible = 0;
card6.diamond._visible = 0;
card6.club2._visible = 0;
card6.spade2._visible = 0;
card6.heart2._visible = 0;
card6.diamond2._visible = 0;
card7.club._visible = 0;
card7.spade._visible = 0;
card7.heart._visible = 0;
card7.diamond._visible = 0;
card7.club2._visible = 0;
card7.spade2._visible = 0;
card7.heart2._visible = 0;
card7.diamond2._visible = 0;
card8.club._visible = 0;
card8.spade._visible = 0;
card8.heart._visible = 0;
card8.diamond._visible = 0;
card8.club2._visible = 0;
card8.spade2._visible = 0;
card8.heart2._visible = 0;
card8.diamond2._visible = 0;
card3._visible = 0;
card4._visible = 0;
card3b._visible = 0;
card4b._visible = 0;
card7._visible = 0;
card8._visible = 0;
card7b._visible = 0;
card8b._visible = 0;
var cardn = new Array();
var cardv = new Array();
var cards = new Array();
var i = 0;
while (i < 8) {
cardn.push(random(13) + 1);
cards.push(random(4) + 1);
if (cardn[i] == 2) {
cardv.push("2");
}
if (cardn[i] == 3) {
cardv.push("3");
}
if (cardn[i] == 4) {
cardv.push("4");
}
if (cardn[i] == 5) {
cardv.push("5");
}
if (cardn[i] == 6) {
cardv.push("6");
}
if (cardn[i] == 7) {
cardv.push("7");
}
if (cardn[i] == 8) {
cardv.push("8");
}
if (cardn[i] == 9) {
cardv.push("9");
}
if (cardn[i] == 10) {
cardv.push("10");
}
if (cardn[i] == 11) {
cardv.push("J");
cardn[i] = 10;
}
if (cardn[i] == 12) {
cardv.push("Q");
cardn[i] = 10;
}
if (cardn[i] == 13) {
cardv.push("K");
cardn[i] = 10;
}
if (cardn[i] == 1) {
cardv.push("A");
cardn[i] = 11;
}
i++;
}
var card1v = cardv[0];
var card2v = cardv[1];
var card3v = cardv[2];
var card4v = cardv[3];
var card5v = cardv[4];
var card6v = cardv[5];
var card7v = cardv[6];
var card8v = cardv[7];
if (cards[0] == 1) {
card1.club._visible = 1;
card1.club2._visible = 1;
}
if (cards[0] == 2) {
card1.spade._visible = 1;
card1.spade2._visible = 1;
}
if (cards[0] == 3) {
card1.heart._visible = 1;
card1.heart2._visible = 1;
}
if (cards[0] == 4) {
card1.diamond._visible = 1;
card1.diamond2._visible = 1;
}
if (cards[1] == 1) {
card2.club._visible = 1;
card2.club2._visible = 1;
}
if (cards[1] == 2) {
card2.spade._visible = 1;
card2.spade2._visible = 1;
}
if (cards[1] == 3) {
card2.heart._visible = 1;
card2.heart2._visible = 1;
}
if (cards[1] == 4) {
card2.diamond._visible = 1;
card2.diamond2._visible = 1;
}
if (cards[2] == 1) {
card3.club._visible = 1;
card3.club2._visible = 1;
}
if (cards[2] == 2) {
card3.spade._visible = 1;
card3.spade2._visible = 1;
}
if (cards[2] == 3) {
card3.heart._visible = 1;
card3.heart2._visible = 1;
}
if (cards[2] == 4) {
card3.diamond._visible = 1;
card3.diamond2._visible = 1;
}
if (cards[3] == 1) {
card4.club._visible = 1;
card4.club2._visible = 1;
}
if (cards[3] == 2) {
card4.spade._visible = 1;
card4.spade2._visible = 1;
}
if (cards[3] == 3) {
card4.heart._visible = 1;
card4.heart2._visible = 1;
}
if (cards[3] == 4) {
card4.diamond._visible = 1;
card4.diamond2._visible = 1;
}
if (cards[4] == 1) {
card5.club._visible = 1;
card5.club2._visible = 1;
}
if (cards[4] == 2) {
card5.spade._visible = 1;
card5.spade2._visible = 1;
}
if (cards[4] == 3) {
card5.heart._visible = 1;
card5.heart2._visible = 1;
}
if (cards[4] == 4) {
card5.diamond._visible = 1;
card5.diamond2._visible = 1;
}
if (cards[5] == 1) {
card6.club._visible = 1;
card6.club2._visible = 1;
}
if (cards[5] == 2) {
card6.spade._visible = 1;
card6.spade2._visible = 1;
}
if (cards[5] == 3) {
card6.heart._visible = 1;
card6.heart2._visible = 1;
}
if (cards[5] == 4) {
card6.diamond._visible = 1;
card6.diamond2._visible = 1;
}
if (cards[6] == 1) {
card7.club._visible = 1;
card7.club2._visible = 1;
}
if (cards[6] == 2) {
card7.spade._visible = 1;
card7.spade2._visible = 1;
}
if (cards[6] == 3) {
card7.heart._visible = 1;
card7.heart2._visible = 1;
}
if (cards[6] == 4) {
card7.diamond._visible = 1;
card7.diamond2._visible = 1;
}
if (cards[7] == 1) {
card8.club._visible = 1;
card8.club2._visible = 1;
}
if (cards[7] == 2) {
card8.spade._visible = 1;
card8.spade2._visible = 1;
}
if (cards[7] == 3) {
card8.heart._visible = 1;
card8.heart2._visible = 1;
}
if (cards[7] == 4) {
card8.diamond._visible = 1;
card8.diamond2._visible = 1;
}
var pcards = 2;
var phand = (cardn[0] + cardn[1]);
var dcards = 2;
var dhand = (cardn[4] + cardn[5]);
Instance of Symbol 1641 MovieClip "00" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "00";
_root.activeBet = _root.bet00;
}
Instance of Symbol 1643 MovieClip "0" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "0";
_root.activeBet = _root.bet0;
}
Instance of Symbol 1646 MovieClip "1" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "1";
_root.activeBet = _root.bet1;
}
Instance of Symbol 1648 MovieClip "2" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "2";
_root.activeBet = _root.bet2;
}
Instance of Symbol 1650 MovieClip "3" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "3";
_root.activeBet = _root.bet3;
}
Instance of Symbol 1652 MovieClip "4" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "4";
_root.activeBet = _root.bet4;
}
Instance of Symbol 1654 MovieClip "5" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "5";
_root.activeBet = _root.bet5;
}
Instance of Symbol 1656 MovieClip "6" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "6";
_root.activeBet = _root.bet6;
}
Instance of Symbol 1658 MovieClip "7" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "7";
_root.activeBet = _root.bet7;
}
Instance of Symbol 1660 MovieClip "8" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "8";
_root.activeBet = _root.bet8;
}
Instance of Symbol 1662 MovieClip "9" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "9";
_root.activeBet = _root.bet9;
}
Instance of Symbol 1664 MovieClip "10" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "10";
_root.activeBet = _root.bet10;
}
Instance of Symbol 1666 MovieClip "11" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "11";
_root.activeBet = _root.bet11;
}
Instance of Symbol 1668 MovieClip "12" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "12";
_root.activeBet = _root.bet12;
}
Instance of Symbol 1670 MovieClip "13" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "13";
_root.activeBet = _root.bet13;
}
Instance of Symbol 1672 MovieClip "14" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "14";
_root.activeBet = _root.bet14;
}
Instance of Symbol 1674 MovieClip "15" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "15";
_root.activeBet = _root.bet15;
}
Instance of Symbol 1676 MovieClip "16" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "16";
_root.activeBet = _root.bet16;
}
Instance of Symbol 1678 MovieClip "17" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "17";
_root.activeBet = _root.bet17;
}
Instance of Symbol 1680 MovieClip "18" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "18";
_root.activeBet = _root.bet18;
}
Instance of Symbol 1682 MovieClip "19" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "19";
_root.activeBet = _root.bet19;
}
Instance of Symbol 1684 MovieClip "20" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "20";
_root.activeBet = _root.bet20;
}
Instance of Symbol 1686 MovieClip "21" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "21";
_root.activeBet = _root.bet21;
}
Instance of Symbol 1688 MovieClip "22" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "22";
_root.activeBet = _root.bet22;
}
Instance of Symbol 1690 MovieClip "23" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "23";
_root.activeBet = _root.bet23;
}
Instance of Symbol 1692 MovieClip "24" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "24";
_root.activeBet = _root.bet24;
}
Instance of Symbol 1694 MovieClip "25" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "25";
_root.activeBet = _root.bet25;
}
Instance of Symbol 1696 MovieClip "26" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "26";
_root.activeBet = _root.bet26;
}
Instance of Symbol 1698 MovieClip "27" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "27";
_root.activeBet = _root.bet27;
}
Instance of Symbol 1700 MovieClip "28" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "28";
_root.activeBet = _root.bet28;
}
Instance of Symbol 1702 MovieClip "29" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "29";
_root.activeBet = _root.bet29;
}
Instance of Symbol 1704 MovieClip "30" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "30";
_root.activeBet = _root.bet30;
}
Instance of Symbol 1706 MovieClip "31" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "31";
_root.activeBet = _root.bet31;
}
Instance of Symbol 1708 MovieClip "32" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "32";
_root.activeBet = _root.bet32;
}
Instance of Symbol 1710 MovieClip "33" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "33";
_root.activeBet = _root.bet33;
}
Instance of Symbol 1712 MovieClip "34" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "34";
_root.activeBet = _root.bet34;
}
Instance of Symbol 1714 MovieClip "35" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "35";
_root.activeBet = _root.bet35;
}
Instance of Symbol 1716 MovieClip "36" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "36";
_root.activeBet = _root.bet36;
}
Instance of Symbol 1718 MovieClip "col1" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "2-1 (1-34)";
_root.activeBet = _root.col1;
}
Instance of Symbol 1720 MovieClip "col2" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "2-1 (2-35)";
_root.activeBet = _root.betcol2;
}
Instance of Symbol 1722 MovieClip "col3" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "2-1 (3-36)";
_root.activeBet = _root.betcol3;
}
Instance of Symbol 1725 MovieClip "1st12" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "1st 12";
_root.activeBet = _root.bet1st12;
}
Instance of Symbol 1727 MovieClip "2nd12" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "2nd 12";
_root.activeBet = _root.bet2nd12;
}
Instance of Symbol 1729 MovieClip "3rd12" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "3rd 12";
_root.activeBet = _root.bet3rd12;
}
Instance of Symbol 1732 MovieClip "1_18" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "1-18";
_root.activeBet = _root.bet1_18;
}
Instance of Symbol 1734 MovieClip "Even" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "Even";
_root.activeBet = _root.betEven;
}
Instance of Symbol 1736 MovieClip "colorBlack" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "Black";
_root.activeBet = _root.betBlack;
}
Instance of Symbol 1738 MovieClip "colorRed" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "Red";
_root.activeBet = _root.betRed;
}
Instance of Symbol 1740 MovieClip "Odd" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "Odd";
_root.activeBet = _root.betOdd;
}
Instance of Symbol 1742 MovieClip "19_36" in Symbol 1745 MovieClip Frame 1
on (release) {
_root.activeSpace = "19-36";
_root.activeBet = _root.bet19_36;
}
Symbol 1782 Button
on (release) {
if (((_root.cash > 99) && (bet < 1901)) && (activeSpace != "None")) {
_root.cash = _root.cash - 100;
bet = bet + 100;
amount = 100;
if (activeSpace == "00") {
bet00 = bet00 + amount;
activeBet = bet00;
}
if (activeSpace == "0") {
bet0 = bet0 + amount;
activeBet = bet0;
}
if (activeSpace == "1") {
bet1 = bet1 + amount;
activeBet = bet1;
}
if (activeSpace == "2") {
bet2 = bet2 + amount;
activeBet = bet2;
}
if (activeSpace == "3") {
bet3 = bet3 + amount;
activeBet = bet3;
}
if (activeSpace == "4") {
bet4 = bet4 + amount;
activeBet = bet4;
}
if (activeSpace == "5") {
bet5 = bet5 + amount;
activeBet = bet5;
}
if (activeSpace == "6") {
bet6 = bet6 + amount;
activeBet = bet6;
}
if (activeSpace == "7") {
bet7 = bet7 + amount;
activeBet = bet7;
}
if (activeSpace == "8") {
bet8 = bet8 + amount;
activeBet = bet8;
}
if (activeSpace == "9") {
bet9 = bet9 + amount;
activeBet = bet9;
}
if (activeSpace == "10") {
bet10 = bet10 + amount;
activeBet = bet10;
}
if (activeSpace == "11") {
bet11 = bet11 + amount;
activeBet = bet11;
}
if (activeSpace == "12") {
bet12 = bet12 + amount;
activeBet = bet12;
}
if (activeSpace == "13") {
bet13 = bet13 + amount;
activeBet = bet13;
}
if (activeSpace == "14") {
bet14 = bet14 + amount;
activeBet = bet14;
}
if (activeSpace == "15") {
bet15 = bet15 + amount;
activeBet = bet15;
}
if (activeSpace == "16") {
bet16 = bet16 + amount;
activeBet = bet16;
}
if (activeSpace == "17") {
bet17 = bet17 + amount;
activeBet = bet17;
}
if (activeSpace == "18") {
bet18 = bet18 + amount;
activeBet = bet18;
}
if (activeSpace == "19") {
bet19 = bet19 + amount;
activeBet = bet19;
}
if (activeSpace == "20") {
bet20 = bet20 + amount;
activeBet = bet20;
}
if (activeSpace == "21") {
bet21 = bet21 + amount;
activeBet = bet21;
}
if (activeSpace == "22") {
bet22 = bet22 + amount;
activeBet = bet22;
}
if (activeSpace == "23") {
bet23 = bet23 + amount;
activeBet = bet23;
}
if (activeSpace == "24") {
bet24 = bet24 + amount;
activeBet = bet24;
}
if (activeSpace == "25") {
bet25 = bet25 + amount;
activeBet = bet25;
}
if (activeSpace == "26") {
bet26 = bet26 + amount;
activeBet = bet26;
}
if (activeSpace == "27") {
bet27 = bet27 + amount;
activeBet = bet27;
}
if (activeSpace == "28") {
bet28 = bet28 + amount;
activeBet = bet28;
}
if (activeSpace == "29") {
bet29 = bet29 + amount;
activeBet = bet29;
}
if (activeSpace == "30") {
bet30 = bet30 + amount;
activeBet = bet30;
}
if (activeSpace == "31") {
bet31 = bet31 + amount;
activeBet = bet31;
}
if (activeSpace == "32") {
bet32 = bet32 + amount;
activeBet = bet32;
}
if (activeSpace == "33") {
bet33 = bet33 + amount;
activeBet = bet33;
}
if (activeSpace == "34") {
bet34 = bet34 + amount;
activeBet = bet34;
}
if (activeSpace == "35") {
bet35 = bet35 + amount;
activeBet = bet35;
}
if (activeSpace == "36") {
bet36 = bet36 + amount;
activeBet = bet36;
}
if (activeSpace == "Red") {
betRed = betRed + amount;
activeBet = betRed;
}
if (activeSpace == "Black") {
betBlack = betBlack + amount;
activeBet = betBlack;
}
if (activeSpace == "1st 12") {
bet1st12 = bet1st12 + amount;
activeBet = bet1st12;
}
if (activeSpace == "2nd 12") {
bet2nd12 = bet2nd12 + amount;
activeBet = bet2nd12;
}
if (activeSpace == "3rd 12") {
bet3rd12 = bet3rd12 + amount;
activeBet = bet3rd12;
}
if (activeSpace == "2-1 (1-34)") {
betCol1 = betCol1 + amount;
activeBet = betCol1;
}
if (activeSpace == "2-1 (2-35)") {
betCol2 = betCol2 + amount;
activeBet = betCol2;
}
if (activeSpace == "2-1 (3-36)") {
betCol3 = betCol3 + amount;
activeBet = betCol3;
}
if (activeSpace == "Even") {
betEven = betEven + amount;
activeBet = betEven;
}
if (activeSpace == "Odd") {
betOdd = betOdd + amount;
activeBet = betOdd;
}
if (activeSpace == "1-18") {
bet1_18 = bet1_18 + amount;
activeBet = bet1_18;
}
if (activeSpace == "19-36") {
bet19_36 = bet19_36 + amount;
activeBet = bet19_36;
}
}
}
Symbol 1783 Button
on (release) {
if (((_root.cash > 4) && (bet < 1996)) && (activeSpace != "None")) {
_root.cash = _root.cash - 5;
bet = bet + 5;
amount = 5;
if (activeSpace == "00") {
bet00 = bet00 + amount;
activeBet = bet00;
}
if (activeSpace == "0") {
bet0 = bet0 + amount;
activeBet = bet0;
}
if (activeSpace == "1") {
bet1 = bet1 + amount;
activeBet = bet1;
}
if (activeSpace == "2") {
bet2 = bet2 + amount;
activeBet = bet2;
}
if (activeSpace == "3") {
bet3 = bet3 + amount;
activeBet = bet3;
}
if (activeSpace == "4") {
bet4 = bet4 + amount;
activeBet = bet4;
}
if (activeSpace == "5") {
bet5 = bet5 + amount;
activeBet = bet5;
}
if (activeSpace == "6") {
bet6 = bet6 + amount;
activeBet = bet6;
}
if (activeSpace == "7") {
bet7 = bet7 + amount;
activeBet = bet7;
}
if (activeSpace == "8") {
bet8 = bet8 + amount;
activeBet = bet8;
}
if (activeSpace == "9") {
bet9 = bet9 + amount;
activeBet = bet9;
}
if (activeSpace == "10") {
bet10 = bet10 + amount;
activeBet = bet10;
}
if (activeSpace == "11") {
bet11 = bet11 + amount;
activeBet = bet11;
}
if (activeSpace == "12") {
bet12 = bet12 + amount;
activeBet = bet12;
}
if (activeSpace == "13") {
bet13 = bet13 + amount;
activeBet = bet13;
}
if (activeSpace == "14") {
bet14 = bet14 + amount;
activeBet = bet14;
}
if (activeSpace == "15") {
bet15 = bet15 + amount;
activeBet = bet15;
}
if (activeSpace == "16") {
bet16 = bet16 + amount;
activeBet = bet16;
}
if (activeSpace == "17") {
bet17 = bet17 + amount;
activeBet = bet17;
}
if (activeSpace == "18") {
bet18 = bet18 + amount;
activeBet = bet18;
}
if (activeSpace == "19") {
bet19 = bet19 + amount;
activeBet = bet19;
}
if (activeSpace == "20") {
bet20 = bet20 + amount;
activeBet = bet20;
}
if (activeSpace == "21") {
bet21 = bet21 + amount;
activeBet = bet21;
}
if (activeSpace == "22") {
bet22 = bet22 + amount;
activeBet = bet22;
}
if (activeSpace == "23") {
bet23 = bet23 + amount;
activeBet = bet23;
}
if (activeSpace == "24") {
bet24 = bet24 + amount;
activeBet = bet24;
}
if (activeSpace == "25") {
bet25 = bet25 + amount;
activeBet = bet25;
}
if (activeSpace == "26") {
bet26 = bet26 + amount;
activeBet = bet26;
}
if (activeSpace == "27") {
bet27 = bet27 + amount;
activeBet = bet27;
}
if (activeSpace == "28") {
bet28 = bet28 + amount;
activeBet = bet28;
}
if (activeSpace == "29") {
bet29 = bet29 + amount;
activeBet = bet29;
}
if (activeSpace == "30") {
bet30 = bet30 + amount;
activeBet = bet30;
}
if (activeSpace == "31") {
bet31 = bet31 + amount;
activeBet = bet31;
}
if (activeSpace == "32") {
bet32 = bet32 + amount;
activeBet = bet32;
}
if (activeSpace == "33") {
bet33 = bet33 + amount;
activeBet = bet33;
}
if (activeSpace == "34") {
bet34 = bet34 + amount;
activeBet = bet34;
}
if (activeSpace == "35") {
bet35 = bet35 + amount;
activeBet = bet35;
}
if (activeSpace == "36") {
bet36 = bet36 + amount;
activeBet = bet36;
}
if (activeSpace == "Red") {
betRed = betRed + amount;
activeBet = betRed;
}
if (activeSpace == "Black") {
betBlack = betBlack + amount;
activeBet = betBlack;
}
if (activeSpace == "1st 12") {
bet1st12 = bet1st12 + amount;
activeBet = bet1st12;
}
if (activeSpace == "2nd 12") {
bet2nd12 = bet2nd12 + amount;
activeBet = bet2nd12;
}
if (activeSpace == "3rd 12") {
bet3rd12 = bet3rd12 + amount;
activeBet = bet3rd12;
}
if (activeSpace == "2-1 (1-34)") {
betCol1 = betCol1 + amount;
activeBet = betCol1;
}
if (activeSpace == "2-1 (2-35)") {
betCol2 = betCol2 + amount;
activeBet = betCol2;
}
if (activeSpace == "2-1 (3-36)") {
betCol3 = betCol3 + amount;
activeBet = betCol3;
}
if (activeSpace == "Even") {
betEven = betEven + amount;
activeBet = betEven;
}
if (activeSpace == "Odd") {
betOdd = betOdd + amount;
activeBet = betOdd;
}
if (activeSpace == "1-18") {
bet1_18 = bet1_18 + amount;
activeBet = bet1_18;
}
if (activeSpace == "19-36") {
bet19_36 = bet19_36 + amount;
activeBet = bet19_36;
}
}
}
Symbol 1784 Button
on (release) {
if ((activeBet != "") && (activeSpace != "None")) {
_root.cash = _root.cash + activeBet;
bet = bet - activeBet;
amount = 0;
if (activeSpace == "00") {
bet00 = amount;
activeBet = bet00;
}
if (activeSpace == "0") {
bet0 = amount;
activeBet = bet0;
}
if (activeSpace == "1") {
bet1 = amount;
activeBet = bet1;
}
if (activeSpace == "2") {
bet2 = amount;
activeBet = bet2;
}
if (activeSpace == "3") {
bet3 = amount;
activeBet = bet3;
}
if (activeSpace == "4") {
bet4 = amount;
activeBet = bet4;
}
if (activeSpace == "5") {
bet5 = amount;
activeBet = bet5;
}
if (activeSpace == "6") {
bet6 = amount;
activeBet = bet6;
}
if (activeSpace == "7") {
bet7 = amount;
activeBet = bet7;
}
if (activeSpace == "8") {
bet8 = amount;
activeBet = bet8;
}
if (activeSpace == "9") {
bet9 = amount;
activeBet = bet9;
}
if (activeSpace == "10") {
bet10 = amount;
activeBet = bet10;
}
if (activeSpace == "11") {
bet11 = amount;
activeBet = bet11;
}
if (activeSpace == "12") {
bet12 = amount;
activeBet = bet12;
}
if (activeSpace == "13") {
bet13 = amount;
activeBet = bet13;
}
if (activeSpace == "14") {
bet14 = amount;
activeBet = bet14;
}
if (activeSpace == "15") {
bet15 = amount;
activeBet = bet15;
}
if (activeSpace == "16") {
bet16 = amount;
activeBet = bet16;
}
if (activeSpace == "17") {
bet17 = amount;
activeBet = bet17;
}
if (activeSpace == "18") {
bet18 = amount;
activeBet = bet18;
}
if (activeSpace == "19") {
bet19 = amount;
activeBet = bet19;
}
if (activeSpace == "20") {
bet20 = amount;
activeBet = bet20;
}
if (activeSpace == "21") {
bet21 = amount;
activeBet = bet21;
}
if (activeSpace == "22") {
bet22 = amount;
activeBet = bet22;
}
if (activeSpace == "23") {
bet23 = amount;
activeBet = bet23;
}
if (activeSpace == "24") {
bet24 = amount;
activeBet = bet24;
}
if (activeSpace == "25") {
bet25 = amount;
activeBet = bet25;
}
if (activeSpace == "26") {
bet26 = amount;
activeBet = bet26;
}
if (activeSpace == "27") {
bet27 = amount;
activeBet = bet27;
}
if (activeSpace == "28") {
bet28 = amount;
activeBet = bet28;
}
if (activeSpace == "29") {
bet29 = amount;
activeBet = bet29;
}
if (activeSpace == "30") {
bet30 = amount;
activeBet = bet30;
}
if (activeSpace == "31") {
bet31 = amount;
activeBet = bet31;
}
if (activeSpace == "32") {
bet32 = amount;
activeBet = bet32;
}
if (activeSpace == "33") {
bet33 = amount;
activeBet = bet33;
}
if (activeSpace == "34") {
bet34 = amount;
activeBet = bet34;
}
if (activeSpace == "35") {
bet35 = amount;
activeBet = bet35;
}
if (activeSpace == "36") {
bet36 = amount;
activeBet = bet36;
}
if (activeSpace == "Red") {
betRed = amount;
activeBet = betRed;
}
if (activeSpace == "Black") {
betBlack = amount;
activeBet = betBlack;
}
if (activeSpace == "1st 12") {
bet1st12 = amount;
activeBet = bet1st12;
}
if (activeSpace == "2nd 12") {
bet2nd12 = amount;
activeBet = bet2nd12;
}
if (activeSpace == "3rd 12") {
bet3rd12 = amount;
activeBet = bet3rd12;
}
if (activeSpace == "2-1 (1-34)") {
betCol1 = amount;
activeBet = betCol1;
}
if (activeSpace == "2-1 (2-35)") {
betCol2 = amount;
activeBet = betCol2;
}
if (activeSpace == "2-1 (3-36)") {
betCol3 = amount;
activeBet = betCol3;
}
if (activeSpace == "Even") {
betEven = amount;
activeBet = betEven;
}
if (activeSpace == "Odd") {
betOdd = amount;
activeBet = betOdd;
}
if (activeSpace == "1-18") {
bet1_18 = amount;
activeBet = bet1_18;
}
if (activeSpace == "19-36") {
bet19_36 = amount;
activeBet = bet19_36;
}
}
}
Symbol 1785 Button
on (release) {
if (((_root.cash > 24) && (bet < 1976)) && (activeSpace != "None")) {
_root.cash = _root.cash - 25;
bet = bet + 25;
amount = 25;
if (activeSpace == "00") {
bet00 = bet00 + amount;
activeBet = bet00;
}
if (activeSpace == "0") {
bet0 = bet0 + amount;
activeBet = bet0;
}
if (activeSpace == "1") {
bet1 = bet1 + amount;
activeBet = bet1;
}
if (activeSpace == "2") {
bet2 = bet2 + amount;
activeBet = bet2;
}
if (activeSpace == "3") {
bet3 = bet3 + amount;
activeBet = bet3;
}
if (activeSpace == "4") {
bet4 = bet4 + amount;
activeBet = bet4;
}
if (activeSpace == "5") {
bet5 = bet5 + amount;
activeBet = bet5;
}
if (activeSpace == "6") {
bet6 = bet6 + amount;
activeBet = bet6;
}
if (activeSpace == "7") {
bet7 = bet7 + amount;
activeBet = bet7;
}
if (activeSpace == "8") {
bet8 = bet8 + amount;
activeBet = bet8;
}
if (activeSpace == "9") {
bet9 = bet9 + amount;
activeBet = bet9;
}
if (activeSpace == "10") {
bet10 = bet10 + amount;
activeBet = bet10;
}
if (activeSpace == "11") {
bet11 = bet11 + amount;
activeBet = bet11;
}
if (activeSpace == "12") {
bet12 = bet12 + amount;
activeBet = bet12;
}
if (activeSpace == "13") {
bet13 = bet13 + amount;
activeBet = bet13;
}
if (activeSpace == "14") {
bet14 = bet14 + amount;
activeBet = bet14;
}
if (activeSpace == "15") {
bet15 = bet15 + amount;
activeBet = bet15;
}
if (activeSpace == "16") {
bet16 = bet16 + amount;
activeBet = bet16;
}
if (activeSpace == "17") {
bet17 = bet17 + amount;
activeBet = bet17;
}
if (activeSpace == "18") {
bet18 = bet18 + amount;
activeBet = bet18;
}
if (activeSpace == "19") {
bet19 = bet19 + amount;
activeBet = bet19;
}
if (activeSpace == "20") {
bet20 = bet20 + amount;
activeBet = bet20;
}
if (activeSpace == "21") {
bet21 = bet21 + amount;
activeBet = bet21;
}
if (activeSpace == "22") {
bet22 = bet22 + amount;
activeBet = bet22;
}
if (activeSpace == "23") {
bet23 = bet23 + amount;
activeBet = bet23;
}
if (activeSpace == "24") {
bet24 = bet24 + amount;
activeBet = bet24;
}
if (activeSpace == "25") {
bet25 = bet25 + amount;
activeBet = bet25;
}
if (activeSpace == "26") {
bet26 = bet26 + amount;
activeBet = bet26;
}
if (activeSpace == "27") {
bet27 = bet27 + amount;
activeBet = bet27;
}
if (activeSpace == "28") {
bet28 = bet28 + amount;
activeBet = bet28;
}
if (activeSpace == "29") {
bet29 = bet29 + amount;
activeBet = bet29;
}
if (activeSpace == "30") {
bet30 = bet30 + amount;
activeBet = bet30;
}
if (activeSpace == "31") {
bet31 = bet31 + amount;
activeBet = bet31;
}
if (activeSpace == "32") {
bet32 = bet32 + amount;
activeBet = bet32;
}
if (activeSpace == "33") {
bet33 = bet33 + amount;
activeBet = bet33;
}
if (activeSpace == "34") {
bet34 = bet34 + amount;
activeBet = bet34;
}
if (activeSpace == "35") {
bet35 = bet35 + amount;
activeBet = bet35;
}
if (activeSpace == "36") {
bet36 = bet36 + amount;
activeBet = bet36;
}
if (activeSpace == "Red") {
betRed = betRed + amount;
activeBet = betRed;
}
if (activeSpace == "Black") {
betBlack = betBlack + amount;
activeBet = betBlack;
}
if (activeSpace == "1st 12") {
bet1st12 = bet1st12 + amount;
activeBet = bet1st12;
}
if (activeSpace == "2nd 12") {
bet2nd12 = bet2nd12 + amount;
activeBet = bet2nd12;
}
if (activeSpace == "3rd 12") {
bet3rd12 = bet3rd12 + amount;
activeBet = bet3rd12;
}
if (activeSpace == "2-1 (1-34)") {
betCol1 = betCol1 + amount;
activeBet = betCol1;
}
if (activeSpace == "2-1 (2-35)") {
betCol2 = betCol2 + amount;
activeBet = betCol2;
}
if (activeSpace == "2-1 (3-36)") {
betCol3 = betCol3 + amount;
activeBet = betCol3;
}
if (activeSpace == "Even") {
betEven = betEven + amount;
activeBet = betEven;
}
if (activeSpace == "Odd") {
betOdd = betOdd + amount;
activeBet = betOdd;
}
if (activeSpace == "1-18") {
bet1_18 = bet1_18 + amount;
activeBet = bet1_18;
}
if (activeSpace == "19-36") {
bet19_36 = bet19_36 + amount;
activeBet = bet19_36;
}
}
}
Symbol 1789 Button
on (release) {
activeSpace = "None";
_root.cash = _root.cash + bet;
bet = 0;
activeBet = "";
bet00 = 0;
bet0 = 0;
bet1 = 0;
bet2 = 0;
bet3 = 0;
bet4 = 0;
bet5 = 0;
bet6 = 0;
bet7 = 0;
bet8 = 0;
bet9 = 0;
bet10 = 0;
bet11 = 0;
bet12 = 0;
bet13 = 0;
bet14 = 0;
bet15 = 0;
bet16 = 0;
bet17 = 0;
bet18 = 0;
bet19 = 0;
bet20 = 0;
bet21 = 0;
bet22 = 0;
bet23 = 0;
bet24 = 0;
bet25 = 0;
bet26 = 0;
bet27 = 0;
bet28 = 0;
bet29 = 0;
bet30 = 0;
bet31 = 0;
bet32 = 0;
bet33 = 0;
bet34 = 0;
bet35 = 0;
bet36 = 0;
betRed = 0;
betBlack = 0;
bet1st12 = 0;
bet2nd12 = 0;
bet3rd12 = 0;
betCol1 = 0;
betCol2 = 0;
betCol3 = 0;
betEven = 0;
betOdd = 0;
bet1_18 = 0;
bet19_36 = 0;
}
Symbol 1796 Button
on (release) {
_root.SFXwheelSpin.start(1, 1);
karma--;
karmaAdjust();
_root.rotationNumber = 0;
_root.theWheel.ball._visible = 0;
_root.spinner.ball2._visible = 1;
_root.spinner.ball2.play();
_root.spinButton._alpha = 50;
_root.spinButton.enabled = false;
_root.leaveButton._alpha = 50;
_root.leaveButton.enabled = false;
_root.spinResult.text = "";
_root.spinTime = getTimer();
}
Symbol 1801 MovieClip Frame 1
wantedAngle = 6;
wantedRotations = 5;
Symbol 1801 MovieClip Frame 10
if ((getTimer() - _root.spinTime) >= 6800) {
gotoAndStop (41);
}
Symbol 1801 MovieClip Frame 40
if (_root.theWheel.ball._visible == 0) {
_root.rotationNumber++;
}
gotoAndPlay (1);
Symbol 1801 MovieClip Frame 41
totalWinnings = 0;
rand = random(38);
if (rand == 0) {
spunNumber = "1";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet1 > 0) {
totalWinnings = totalWinnings + _root.bet1;
}
}
if (rand == 1) {
spunNumber = "2";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet2 > 0) {
totalWinnings = totalWinnings + _root.bet2;
}
}
if (rand == 2) {
spunNumber = "3";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet3 > 0) {
totalWinnings = totalWinnings + _root.bet3;
}
}
if (rand == 3) {
spunNumber = "4";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet4 > 0) {
totalWinnings = totalWinnings + _root.bet4;
}
}
if (rand == 4) {
spunNumber = "5";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet5 > 0) {
totalWinnings = totalWinnings + _root.bet5;
}
}
if (rand == 5) {
spunNumber = "6";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet6 > 0) {
totalWinnings = totalWinnings + _root.bet6;
}
}
if (rand == 6) {
spunNumber = "7";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet7 > 0) {
totalWinnings = totalWinnings + _root.bet7;
}
}
if (rand == 7) {
spunNumber = "8";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet8 > 0) {
totalWinnings = totalWinnings + _root.bet8;
}
}
if (rand == 8) {
spunNumber = "9";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet9 > 0) {
totalWinnings = totalWinnings + _root.bet9;
}
}
if (rand == 9) {
spunNumber = "10";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet10 > 0) {
totalWinnings = totalWinnings + _root.bet10;
}
}
if (rand == 10) {
spunNumber = "11";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet11 > 0) {
totalWinnings = totalWinnings + _root.bet11;
}
}
if (rand == 11) {
spunNumber = "12";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet12 > 0) {
totalWinnings = totalWinnings + _root.bet12;
}
}
if (rand == 12) {
spunNumber = "13";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet13 > 0) {
totalWinnings = totalWinnings + _root.bet13;
}
}
if (rand == 13) {
spunNumber = "14";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet14 > 0) {
totalWinnings = totalWinnings + _root.bet14;
}
}
if (rand == 14) {
spunNumber = "15";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet15 > 0) {
totalWinnings = totalWinnings + _root.bet15;
}
}
if (rand == 15) {
spunNumber = "16";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet16 > 0) {
totalWinnings = totalWinnings + _root.bet16;
}
}
if (rand == 16) {
spunNumber = "17";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet17 > 0) {
totalWinnings = totalWinnings + _root.bet17;
}
}
if (rand == 17) {
spunNumber = "18";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet18 > 0) {
totalWinnings = totalWinnings + _root.bet18;
}
}
if (rand == 18) {
spunNumber = "19";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet19 > 0) {
totalWinnings = totalWinnings + _root.bet19;
}
}
if (rand == 19) {
spunNumber = "20";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet20 > 0) {
totalWinnings = totalWinnings + _root.bet20;
}
}
if (rand == 20) {
spunNumber = "21";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet21 > 0) {
totalWinnings = totalWinnings + _root.bet21;
}
}
if (rand == 21) {
spunNumber = "22";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet22 > 0) {
totalWinnings = totalWinnings + _root.bet22;
}
}
if (rand == 22) {
spunNumber = "23";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet23 > 0) {
totalWinnings = totalWinnings + _root.bet23;
}
}
if (rand == 23) {
spunNumber = "24";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet24 > 0) {
totalWinnings = totalWinnings + _root.bet24;
}
}
if (rand == 24) {
spunNumber = "25";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet25 > 0) {
totalWinnings = totalWinnings + _root.bet25;
}
}
if (rand == 25) {
spunNumber = "26";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet26 > 0) {
totalWinnings = totalWinnings + _root.bet26;
}
}
if (rand == 26) {
spunNumber = "27";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet27 > 0) {
totalWinnings = totalWinnings + _root.bet27;
}
}
if (rand == 27) {
spunNumber = "28";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet28 > 0) {
totalWinnings = totalWinnings + _root.bet28;
}
}
if (rand == 28) {
spunNumber = "29";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet29 > 0) {
totalWinnings = totalWinnings + _root.bet29;
}
}
if (rand == 29) {
spunNumber = "30";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet2 > 30) {
totalWinnings = totalWinnings + _root.bet30;
}
}
if (rand == 30) {
spunNumber = "31";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet31 > 0) {
totalWinnings = totalWinnings + _root.bet31;
}
}
if (rand == 31) {
spunNumber = "32";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet32 > 0) {
totalWinnings = totalWinnings + _root.bet32;
}
}
if (rand == 32) {
spunNumber = "33";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet33 > 0) {
totalWinnings = totalWinnings + _root.bet33;
}
}
if (rand == 33) {
spunNumber = "34";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet34 > 0) {
totalWinnings = totalWinnings + _root.bet34;
}
}
if (rand == 34) {
spunNumber = "35";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -10;
if (_root.bet35 > 0) {
totalWinnings = totalWinnings + _root.bet35;
}
}
if (rand == 35) {
spunNumber = "36";
_root.theWheel.ball._x = -80;
_root.theWheel.ball._y = -22;
if (_root.bet2 > 36) {
totalWinnings = totalWinnings + _root.bet36;
}
}
if (rand == 36) {
spunNumber = "0";
_root.theWheel.ball._x = -11;
_root.theWheel.ball._y = -80;
if (_root.bet0 > 0) {
totalWinnings = totalWinnings + _root.bet0;
}
}
if (rand == 37) {
spunNumber = "00";
_root.theWheel.ball._x = -11;
_root.theWheel.ball._y = -80;
if (_root.bet00 > 0) {
totalWinnings = totalWinnings + _root.bet00;
}
}
if (_root.theWheel.ball._y == -10) {
theColor = ", black";
spunColor = "black";
}
if (_root.theWheel.ball._y == -22) {
theColor = ", red";
spunColor = "red";
}
if (_root.theWheel.ball._y == -80) {
theColor = "";
spunColor = "green";
}
totalWinnings = totalWinnings * 35;
if ((((rand + 1) % 2) == 0) && (rand < 36)) {
if (_root.betEven > 0) {
totalWinnings = totalWinnings + (_root.betEven * 2);
}
}
if ((((rand + 1) % 2) != 0) && (rand < 36)) {
if (_root.betOdd > 0) {
totalWinnings = totalWinnings + (_root.betOdd * 2);
}
}
if ((spunColor == "red") && (_root.betRed > 0)) {
totalWinnings = totalWinnings + (_root.betRed * 2);
}
if ((spunColor == "black") && (_root.betBlack > 0)) {
totalWinnings = totalWinnings + (_root.betBlack * 2);
}
if (((rand + 1) < 19) && (_root.bet1_18 > 0)) {
totalWinnings = totalWinnings + (_root.bet1_18 * 2);
}
if (((rand + 1) >= 19) && (_root.bet19_36 > 0)) {
totalWinnings = totalWinnings + (_root.bet19_36 * 2);
}
theNum = rand + 1;
if ((((((((((((theNum == 1) || (theNum == 4)) || (theNum == 7)) || (theNum == 10)) || (theNum == 13)) || (theNum == 16)) || (theNum == 19)) || (theNum == 22)) || (theNum == 25)) || (theNum == 28)) || (theNum == 31)) || ((theNum == 34) && (_root.betCol1 > 0))) {
totalWinnings = totalWinnings + (_root.betCol1 * 3);
}
if ((((((((((((theNum == 2) || (theNum == 5)) || (theNum == 8)) || (theNum == 11)) || (theNum == 14)) || (theNum == 17)) || (theNum == 20)) || (theNum == 23)) || (theNum == 26)) || (theNum == 29)) || (theNum == 32)) || ((theNum == 35) && (_root.betCol2 > 0))) {
totalWinnings = totalWinnings + (_root.betCol2 * 3);
}
if ((((((((((((theNum == 3) || (theNum == 6)) || (theNum == 9)) || (theNum == 12)) || (theNum == 15)) || (theNum == 18)) || (theNum == 21)) || (theNum == 24)) || (theNum == 27)) || (theNum == 30)) || (theNum == 33)) || ((theNum == 36) && (_root.betCol3 > 0))) {
totalWinnings = totalWinnings + (_root.betCol3 * 3);
}
if ((((((((((((theNum == 1) || (theNum == 2)) || (theNum == 3)) || (theNum == 4)) || (theNum == 5)) || (theNum == 6)) || (theNum == 7)) || (theNum == 8)) || (theNum == 9)) || (theNum == 10)) || (theNum == 11)) || ((theNum == 12) && (_root.bet1st12 > 0))) {
totalWinnings = totalWinnings + (_root.bet1st12 * 3);
}
if ((((((((((((theNum == 13) || (theNum == 14)) || (theNum == 15)) || (theNum == 16)) || (theNum == 17)) || (theNum == 18)) || (theNum == 19)) || (theNum == 20)) || (theNum == 21)) || (theNum == 22)) || (theNum == 23)) || ((theNum == 24) && (_root.bet2nd12 > 0))) {
totalWinnings = totalWinnings + (_root.bet2nd12 * 3);
}
if ((((((((((((theNum == 25) || (theNum == 26)) || (theNum == 27)) || (theNum == 28)) || (theNum == 29)) || (theNum == 30)) || (theNum == 31)) || (theNum == 32)) || (theNum == 33)) || (theNum == 34)) || (theNum == 35)) || ((theNum == 36) && (_root.bet3rd12 > 0))) {
totalWinnings = totalWinnings + (_root.bet3rd12 * 3);
}
_root.spinResult.text = (((spunNumber + theColor) + "! Player gets $") + totalWinnings) + ".";
_root.bet = 0;
_root.cash = _root.cash + totalWinnings;
_root.spinner.ball2.stop();
_root.spinButton._alpha = 100;
_root.spinButton.enabled = true;
_root.leaveButton._alpha = 100;
_root.leaveButton.enabled = true;
_root.theWheel.ball._visible = 1;
_root.activeSpace = "None";
_root.activeBet = "";
_root.bet00 = 0;
_root.bet0 = 0;
_root.bet1 = 0;
_root.bet2 = 0;
_root.bet3 = 0;
_root.bet4 = 0;
_root.bet5 = 0;
_root.bet6 = 0;
_root.bet7 = 0;
_root.bet8 = 0;
_root.bet9 = 0;
_root.bet10 = 0;
_root.bet11 = 0;
_root.bet12 = 0;
_root.bet13 = 0;
_root.bet14 = 0;
_root.bet15 = 0;
_root.bet16 = 0;
_root.bet17 = 0;
_root.bet18 = 0;
_root.bet19 = 0;
_root.bet20 = 0;
_root.bet21 = 0;
_root.bet22 = 0;
_root.bet23 = 0;
_root.bet24 = 0;
_root.bet25 = 0;
_root.bet26 = 0;
_root.bet27 = 0;
_root.bet28 = 0;
_root.bet29 = 0;
_root.bet30 = 0;
_root.bet31 = 0;
_root.bet32 = 0;
_root.bet33 = 0;
_root.bet34 = 0;
_root.bet35 = 0;
_root.bet36 = 0;
_root.betRed = 0;
_root.betBlack = 0;
_root.bet1st12 = 0;
_root.bet2nd12 = 0;
_root.bet3rd12 = 0;
_root.betCol1 = 0;
_root.betCol2 = 0;
_root.betCol3 = 0;
_root.betEven = 0;
_root.betOdd = 0;
_root.bet1_18 = 0;
_root.bet19_36 = 0;
_root.spinTime = 0;
stop();
Instance of Symbol 1801 MovieClip "ball2" in Symbol 1802 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
this.stop();
}
Symbol 1814 Button
on (release) {
_root.LoopD.stop();
if (_root.music == 1) {
_root.LoopB.start(0, 10000);
}
mapx = mapx - 8;
_root.prevmoving = 0;
gotoAndStop (2);
}
Symbol 1822 Button
on (release) {
if (((cash > 7) && (hp < hpmax)) && (time < 24)) {
cash = cash - 8;
hp = hp + 12;
time = time + 1;
if (hp > hpmax) {
hp = hpmax;
}
_root.SFXdrink.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1829 Button
on (release) {
if (((cash > 11) && (hp < hpmax)) && (time < 24)) {
cash = cash - 12;
hp = hp + 20;
time = time + 1;
if (hp > hpmax) {
hp = hpmax;
}
_root.SFXeat.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1836 Button
on (release) {
if (((cash > 24) && (hp < hpmax)) && (time < 24)) {
cash = cash - 25;
hp = hp + 40;
time = time + 1;
if (hp > hpmax) {
hp = hpmax;
}
_root.SFXeat.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1843 Button
on (release) {
if (((cash > 49) && (hp < hpmax)) && (time < 24)) {
cash = cash - 50;
hp = hp + 80;
time = time + 1;
if (hp > hpmax) {
hp = hpmax;
}
_root.SFXeat.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1851 Button
on (release) {
if (_root.time < 19) {
_root.karma++;
_root.cash = _root.cash + 36;
_root.time = _root.time + 6;
_root.SFXwork.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1867 Button
on (release) {
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
if ((_root.cash > 114) && (_root.time == 0)) {
_root.cash = _root.cash - 115;
_root.SFXpurchase.start(0, 1);
robbery = Math.round(Math.random() * 125) + 100;
if ((_root.item_cocaine == 0) && (_root.haveBooze == 0)) {
_root.sellSummary = "You arrive in the city with nothing to sell. Unless you just enjoy long, expensive bus rides, you should probably stock up before you go again.";
} else if (_root.item_gun == 0) {
rand = random(3);
if (rand == 0) {
_root.sellSummary = "While traveling on the bus, you are robbed of all your money and stash by a traveling pack of low-rate lawyers. Next time, pack some protection.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 1) {
_root.sellSummary = "You take one step off the bus in Brooklyn and are jumped by 3 guys and a chick. They take all your money and your stash. Maybe you should be packin' heat next time.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 2) {
_root.sellSummary = "You get lost in New York. A pimp gives you directions back to the bus station, then robs you. You've lost all your money and your stash. Maybe think about investing in a firearm.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
} else if ((_root.item_gun == 1) && (_root.item_gun_ammo == 0)) {
_root.sellSummary = "You strut down the city streets looking for action. A gang of street toughs with baseball bats eye you and walk in your direction. You pull out your gun and fire...*click* You've got no bullets. They have a homerun derby contest on your ass and take your stash and money.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
} else if (robbery > _root.strength) {
rand = random(3);
if (rand == 0) {
_root.sellSummary = "While in New York, you accidentally track dog crap onto a girl scout group's hop scotch layout. Troop 61 leaves you lying on the street with no cash and no stash, and a mouthful of stale cookies. Maybe you should buff up a bit more.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 1) {
_root.sellSummary = "You get off the bus and walk the streets of Brooklyn. You come across a dark alley and hear noises from behind. Three large cats attack you from all sides, leaving you unconscious near a dumpster. A passing bum raids your wallet and your stash. You're weak as a kitten!";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 2) {
_root.sellSummary = "Finding no action in New York, you start getting frustrated. Not paying attention, you slip on a used condom and hit your head on a park bench. Bleeding profusely, you can only watch as squirrels make off with your wallet and stash. Toughen' up!";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
} else if (_root.item_cellPhone == 0) {
_root.sellSummary = "After arriving, you spend the entire day looking for people who will buy from you, but no one wants to deal with a punk without a cell phone. How are they supposed to call you for supply when 'the craving' sets in??";
} else if ((_root.item_cocaine >= 50) || (_root.haveBooze >= 50)) {
_root.sellSummary = "Rolling into town with piles of product attacted plenty of attention - from the cops. They confiscate your goods, your gun, and your freedom; You serve the next 5 days in state pen.";
_root.day = _root.day + 5;
_root.haveBooze = 0;
_root.item_cocaine = 0;
_root.item_gun = 0;
_root.item_gun_ammo = 0;
} else if ((((_root.strength >= robbery) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
rand = random(10);
if (rand == 3) {
_root.sellSummary = "You meet some new contacts behind an abandoned building. Everything seems to be going well as you strike up a deal. All of a sudden, you get hit from behind by a blunt object. As you lie on the pavement, you realize what just happened; you've been screwed!\rYour stash got jacked.";
_root.haveBooze = 0;
_root.item_cocaine = 0;
} else {
passedAll = 1;
}
}
if (((((passedAll == 1) && (_root.strength >= robbery)) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
_root.whichCommodity = random(2);
if (_root.whichCommodity == 0) {
theCommodity = " bottles of booze ";
}
if (_root.whichCommodity == 1) {
theCommodity = " grams of cocaine ";
}
if (_root.whichCommodity == 0) {
_root.offer = _root.charm / _root.boozeSell;
if (_root.offer > 50) {
_root.offer = 50;
}
rand = random(5);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 5) {
_root.offer = 5;
}
}
if (_root.whichCommodity == 1) {
_root.offer = 10 * (_root.charm / _root.cokeSell);
if (_root.offer > 600) {
_root.offer = 600;
}
rand = random(50);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 50) {
_root.offer = 50;
}
}
if (_root.whichCommodity == 0) {
_root.quantity = _root.haveBooze;
}
if (_root.whichCommodity == 1) {
_root.quantity = _root.item_cocaine;
}
if (_root.quantity > 0) {
_root.offer = Math.round(_root.offer * _root.quantity);
_root.sellSummary = (((("You've arrived in the city and have received the following offer - " + quantity) + theCommodity) + "for $") + offer) + ".";
} else {
_root.sellSummary = "You've arrived in the city but can't find anyone to buy from you. Better luck next time, chump.";
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
}
}
gotoAndPlay (51);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1873 Button
on (release) {
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
if ((_root.cash > 99) && (_root.time == 0)) {
_root.cash = _root.cash - 100;
_root.SFXpurchase.start(0, 1);
robbery = Math.round(Math.random() * 150) + 100;
if ((_root.item_cocaine == 0) && (_root.haveBooze == 0)) {
_root.sellSummary = "You arrive in the city with nothing to sell. Unless you just enjoy long, expensive bus rides, you should probably stock up before you go again.";
} else if (_root.item_gun == 0) {
rand = random(3);
if (rand == 0) {
_root.sellSummary = "While traveling on the bus, you are robbed of all your money and stash by a traveling pack of low-rate lawyers. Next time, pack some protection.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 1) {
_root.sellSummary = "You take one step off the bus in Detroit and are jumped by 3 guys and a chick. They take all your money and your stash. Maybe you should be packin' heat next time.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 2) {
_root.sellSummary = "You get lost in the Motor City. A pimp gives you directions back to the bus station, then robs you. You've lost all your money and your stash. Maybe think about investing in a firearm.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
} else if ((_root.item_gun == 1) && (_root.item_gun_ammo == 0)) {
_root.sellSummary = "You strut down the city streets looking for action. A gang of street toughs with baseball bats eye you and walk in your direction. You pull out your gun and fire...*click* You've got no bullets. They have a homerun derby contest on your ass and take your stash and money.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
} else if (robbery > _root.strength) {
rand = random(3);
if (rand == 0) {
_root.sellSummary = "While in Detroit, you accidentally track dog crap onto a girl scout group's hop scotch layout. Troop 61 leaves you lying on the street with no cash and no stash, and a mouthful of stale cookies. Maybe you should buff up a bit more.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 1) {
_root.sellSummary = "You get off the bus and walk the streets of Detroit. You come across a dark alley and hear noises from behind. Three large cats attack you from all sides, leaving you unconscious near a dumpster. A passing bum raids your wallet and your stash. You're weak as a kitten!";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 2) {
_root.sellSummary = "Finding no action in Detroit, you start getting frustrated. Not paying attention, you slip on a used condom and hit your head on a park bench. Bleeding profusely, you can only watch as squirrels make off with your wallet and stash. Toughen' up!";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
} else if (_root.item_cellPhone == 0) {
_root.sellSummary = "After arriving, you spend the entire day looking for people who will buy from you, but no one wants to deal with a punk without a cell phone. How are they supposed to call you for supply when 'the craving' sets in??";
} else if ((_root.item_cocaine > 50) || (_root.haveBooze > 50)) {
_root.sellSummary = "Rolling into town with piles of product attacted plenty of attention - from the cops. They confiscate your goods, your gun, and your freedom; You serve the next 5 days in state pen.";
_root.day = _root.day + 5;
_root.haveBooze = 0;
_root.item_cocaine = 0;
_root.item_gun = 0;
_root.item_gun_ammo = 0;
} else if ((((_root.strength >= robbery) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
rand = random(10);
if (rand == 3) {
_root.sellSummary = "You meet some new contacts behind an abandoned building. Everything seems to be going well as you strike up a deal. All of a sudden, you get hit from behind by a blunt object. As you lie on the pavement, you realize what just happened; you've been screwed!\rYour stash got jacked.";
_root.haveBooze = 0;
_root.item_cocaine = 0;
} else {
passedAll = 1;
}
}
if (((((passedAll == 1) && (_root.strength >= robbery)) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
_root.whichCommodity = 1;
if (_root.whichCommodity == 0) {
theCommodity = " bottles of booze ";
}
if (_root.whichCommodity == 1) {
theCommodity = " grams of cocaine ";
}
if (_root.whichCommodity == 0) {
_root.offer = _root.charm / _root.boozeSell;
if (_root.offer > 50) {
_root.offer = 50;
}
rand = random(5);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 5) {
_root.offer = 5;
}
}
if (_root.whichCommodity == 1) {
_root.offer = 10 * (_root.charm / _root.cokeSell);
if (_root.offer > 600) {
_root.offer = 600;
}
rand = random(50);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 50) {
_root.offer = 50;
}
}
if (_root.whichCommodity == 0) {
_root.quantity = _root.haveBooze;
}
if (_root.whichCommodity == 1) {
_root.quantity = _root.item_cocaine;
}
if (_root.quantity > 0) {
_root.offer = Math.round(_root.offer * _root.quantity);
_root.sellSummary = (((("You've arrived in the city and have received the following offer - " + quantity) + theCommodity) + "for $") + offer) + ".";
} else {
_root.sellSummary = "You've arrived in the city but can't find anyone to buy from you. Better luck next time, chump.";
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
}
}
gotoAndPlay (51);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1879 Button
on (release) {
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
if ((_root.cash > 99) && (_root.time == 0)) {
_root.cash = _root.cash - 100;
_root.SFXpurchase.start(0, 1);
robbery = Math.round(Math.random() * 150) + 100;
if ((_root.item_cocaine == 0) && (_root.haveBooze == 0)) {
_root.sellSummary = "You arrive in the city with nothing to sell. Unless you just enjoy long, expensive bus rides, you should probably stock up before you go again.";
} else if (_root.item_gun == 0) {
rand = random(3);
if (rand == 0) {
_root.sellSummary = "While traveling on the bus, you are robbed of all your money and stash by a traveling pack of low-rate lawyers. Next time, pack some protection.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 1) {
_root.sellSummary = "You take one step off the bus in LA and are jumped by 3 guys and a chick. They take all your money and your stash. Maybe you should be packin' heat next time.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 2) {
_root.sellSummary = "You get lost in Los Angeles. A pimp gives you directions back to the bus station, then robs you. You've lost all your money and your stash. Maybe think about investing in a firearm.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
} else if ((_root.item_gun == 1) && (_root.item_gun_ammo == 0)) {
_root.sellSummary = "You strut down the city streets looking for action. A gang of street toughs with baseball bats eye you and walk in your direction. You pull out your gun and fire...*click* You've got no bullets. They have a homerun derby contest on your ass and take your stash and money.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
} else if (robbery > _root.strength) {
rand = random(3);
if (rand == 0) {
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
_root.sellSummary = "While in LA, you accidentally track dog crap onto a girl scout group's hop scotch layout. Troop 61 leaves you lying on the street with no cash and no stash, and a mouthful of stale cookies. Maybe you should buff up a bit more.";
}
if (rand == 1) {
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
_root.sellSummary = "You get off the bus and walk the streets of LA. You come across a dark alley and hear noises from behind. Three large cats attack you from all sides, leaving you unconscious near a dumpster. A passing bum raids your wallet and your stash. You're weak as a kitten!";
}
if (rand == 2) {
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
_root.sellSummary = "Finding no action in LA, you start getting frustrated. Not paying attention, you slip on a used condom and hit your head on a park bench. Bleeding profusely, you can only watch as squirrels make off with your wallet and stash. Toughen' up!";
}
} else if (_root.item_cellPhone == 0) {
_root.sellSummary = "After arriving, you spend the entire day looking for people who will buy from you, but no one wants to deal with a punk without a cell phone. How are they supposed to call you for supply when 'the craving' sets in??";
} else if ((_root.item_cocaine > 50) || (_root.haveBooze > 50)) {
_root.sellSummary = "Rolling into town with piles of product attacted plenty of attention - from the cops. They confiscate your goods, your gun, and your freedom; You serve the next 5 days in state pen.";
_root.day = _root.day + 5;
_root.haveBooze = 0;
_root.item_cocaine = 0;
_root.item_gun = 0;
_root.item_gun_ammo = 0;
} else if ((((_root.strength >= robbery) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
rand = random(10);
if (rand == 3) {
_root.sellSummary = "You meet some new contacts behind an abandoned building. Everything seems to be going well as you strike up a deal. All of a sudden, you get hit from behind by a blunt object. As you lie on the pavement, you realize what just happened; you've been screwed!\rYour stash got jacked.";
_root.haveBooze = 0;
_root.item_cocaine = 0;
} else {
passedAll = 1;
}
}
if (((((passedAll == 1) && (_root.strength >= robbery)) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
_root.whichCommodity = 1;
if (_root.whichCommodity == 0) {
theCommodity = " bottles of booze ";
}
if (_root.whichCommodity == 1) {
theCommodity = " grams of cocaine ";
}
if (_root.whichCommodity == 0) {
_root.offer = _root.charm / _root.boozeSell;
if (_root.offer > 50) {
_root.offer = 50;
}
rand = random(5);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 5) {
_root.offer = 5;
}
}
if (_root.whichCommodity == 1) {
_root.offer = 10 * (_root.charm / _root.cokeSell);
if (_root.offer > 600) {
_root.offer = 600;
}
rand = random(50);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 50) {
_root.offer = 50;
}
}
if (_root.whichCommodity == 0) {
_root.quantity = _root.haveBooze;
}
if (_root.whichCommodity == 1) {
_root.quantity = _root.item_cocaine;
}
if (_root.quantity > 0) {
_root.offer = Math.round(_root.offer * _root.quantity);
_root.sellSummary = (((("You've arrived in the city and have received the following offer - " + quantity) + theCommodity) + "for $") + offer) + ".";
} else {
_root.sellSummary = "You've arrived in the city but can't find anyone to buy from you. Better luck next time, chump.";
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
}
}
gotoAndPlay (51);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1885 Button
on (release) {
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
if ((_root.cash > 114) && (_root.time == 0)) {
_root.cash = _root.cash - 115;
_root.SFXpurchase.start(0, 1);
robbery = Math.round(Math.random() * 125) + 100;
if ((_root.item_cocaine == 0) && (_root.haveBooze == 0)) {
_root.sellSummary = "You arrive in the city with nothing to sell. Unless you just enjoy long, expensive bus rides, you should probably stock up before you go again.";
} else if (_root.item_gun == 0) {
rand = random(3);
if (rand == 0) {
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
_root.sellSummary = "While traveling on the bus, you are robbed of all your money and stash by a traveling pack of low-rate lawyers. Next time, pack some protection.";
}
if (rand == 1) {
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
_root.sellSummary = "You take one step off the bus in Chicago and are jumped by 3 guys and a chick. They take all your money and your stash. Maybe you should be packin' heat next time.";
}
if (rand == 2) {
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
_root.sellSummary = "You get lost in the Windy City. A pimp gives you directions back to the bus station, then robs you. You've lost all your money and your stash. Maybe think about investing in a firearm.";
}
} else if ((_root.item_gun == 1) && (_root.item_gun_ammo == 0)) {
_root.sellSummary = "You strut down the city streets looking for action. A gang of street toughs with baseball bats eye you and walk in your direction. You pull out your gun and fire...*click* You've got no bullets. They have a homerun derby contest on your ass and take your stash and money.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
} else if (robbery > _root.strength) {
rand = random(3);
if (rand == 0) {
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
_root.sellSummary = "While in Chicago, you accidentally track dog crap onto a girl scout group's hop scotch layout. Troop 61 leaves you lying on the street with no cash and no stash, and a mouthful of stale cookies. Maybe you should buff up a bit more.";
}
if (rand == 1) {
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
_root.sellSummary = "You get off the bus and walk the streets of Chicago. You come across a dark alley and hear noises from behind. Three large cats attack you from all sides, leaving you unconscious near a dumpster. A passing bum raids your wallet and your stash. You're weak as a kitten!";
}
if (rand == 2) {
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
_root.sellSummary = "Finding no action in Chicago, you start getting frustrated. Not paying attention, you slip on a used condom and hit your head on a park bench. Bleeding profusely, you can only watch as squirrels make off with your wallet and stash. Toughen' up!";
}
} else if (_root.item_cellPhone == 0) {
_root.sellSummary = "After arriving, you spend the entire day looking for people who will buy from you, but no one wants to deal with a punk without a cell phone. How are they supposed to call you for supply when 'the craving' sets in??";
} else if ((_root.item_cocaine > 50) || (_root.haveBooze > 50)) {
_root.sellSummary = "Rolling into town with piles of product attacted plenty of attention - from the cops. They confiscate your goods, your gun, and your freedom; You serve the next 5 days in state pen.";
_root.day = _root.day + 5;
_root.haveBooze = 0;
_root.item_cocaine = 0;
_root.item_gun = 0;
_root.item_gun_ammo = 0;
} else if ((((_root.strength >= robbery) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
rand = random(10);
if (rand == 3) {
_root.sellSummary = "You meet some new contacts behind an abandoned building. Everything seems to be going well as you strike up a deal. All of a sudden, you get hit from behind by a blunt object. As you lie on the pavement, you realize what just happened; you've been screwed!\rYour stash got jacked.";
_root.haveBooze = 0;
_root.item_cocaine = 0;
} else {
passedAll = 1;
}
}
if (((((passedAll == 1) && (_root.strength >= robbery)) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
_root.whichCommodity = 0;
if (_root.whichCommodity == 0) {
theCommodity = " bottles of booze ";
}
if (_root.whichCommodity == 1) {
theCommodity = " grams of cocaine ";
}
if (_root.whichCommodity == 0) {
_root.offer = _root.charm / _root.boozeSell;
if (_root.offer > 50) {
_root.offer = 50;
}
rand = random(5);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 5) {
_root.offer = 5;
}
}
if (_root.whichCommodity == 1) {
_root.offer = 10 * (_root.charm / _root.cokeSell);
if (_root.offer > 600) {
_root.offer = 600;
}
rand = random(50);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 50) {
_root.offer = 50;
}
}
if (_root.whichCommodity == 0) {
_root.quantity = _root.haveBooze;
}
if (_root.whichCommodity == 1) {
_root.quantity = _root.item_cocaine;
}
if (_root.quantity > 0) {
_root.offer = Math.round(_root.offer * _root.quantity);
_root.sellSummary = (((("You've arrived in the city and have received the following offer - " + quantity) + theCommodity) + "for $") + offer) + ".";
} else {
_root.sellSummary = "You've arrived in the city but can't find anyone to buy from you. Better luck next time, chump.";
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
}
}
gotoAndPlay (51);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1891 Button
on (release) {
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
if ((_root.cash > 129) && (_root.time == 0)) {
_root.cash = _root.cash - 130;
_root.SFXpurchase.start(0, 1);
robbery = Math.round(Math.random() * 110) + 100;
if ((_root.item_cocaine == 0) && (_root.haveBooze == 0)) {
_root.sellSummary = "You arrive in the city with nothing to sell. Unless you just enjoy long, expensive bus rides, you should probably stock up before you go again.";
} else if (_root.item_gun == 0) {
rand = random(3);
if (rand == 0) {
_root.sellSummary = "While traveling on the bus, you are robbed of all your money and stash by a traveling pack of low-rate lawyers. Next time, pack some protection.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 1) {
_root.sellSummary = "You take one step off the bus in Camden and are jumped by 3 guys and a chick. They take all your money and your stash. Maybe you should be packin' heat next time.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 2) {
_root.sellSummary = "You get lost in Camden. A pimp gives you directions back to the bus station, then robs you. You've lost all your money and your stash. Maybe think about investing in a firearm.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
} else if ((_root.item_gun == 1) && (_root.item_gun_ammo == 0)) {
_root.sellSummary = "You strut down the city streets looking for action. A gang of street toughs with baseball bats eye you and walk in your direction. You pull out your gun and fire...*click* You've got no bullets. They have a homerun derby contest on your ass and take your stash and money.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
} else if (robbery > _root.strength) {
rand = random(3);
if (rand == 0) {
_root.sellSummary = "While in Camden, you accidentally track dog crap onto a girl scout group's hop scotch layout. Troop 61 leaves you lying on the street with no cash and no stash, and a mouthful of stale cookies. Maybe you should buff up a bit more.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 1) {
_root.sellSummary = "You get off the bus and walk the streets of Camden. You come across a dark alley and hear noises from behind. Three large cats attack you from all sides, leaving you unconscious near a dumpster. A passing bum raids your wallet and your stash. You're weak as a kitten!";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 2) {
_root.sellSummary = "Finding no action in Camden, you start getting frustrated. Not paying attention, you slip on a used condom and hit your head on a park bench. Bleeding profusely, you can only watch as squirrels make off with your wallet and stash. Toughen' up!";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
} else if (_root.item_cellPhone == 0) {
_root.sellSummary = "After arriving, you spend the entire day looking for people who will buy from you, but no one wants to deal with a punk without a cell phone. How are they supposed to call you for supply when 'the craving' sets in??";
} else if ((_root.item_cocaine > 50) || (_root.haveBooze > 50)) {
_root.sellSummary = "Rolling into town with piles of product attacted plenty of attention - from the cops. They confiscate your goods, your gun, and your freedom; You serve the next 5 days in state pen.";
_root.day = _root.day + 5;
_root.haveBooze = 0;
_root.item_cocaine = 0;
_root.item_gun = 0;
_root.item_gun_ammo = 0;
} else if ((((_root.strength >= robbery) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
rand = random(10);
if (rand == 3) {
_root.sellSummary = "You meet some new contacts behind an abandoned building. Everything seems to be going well as you strike up a deal. All of a sudden, you get hit from behind by a blunt object. As you lie on the pavement, you realize what just happened; you've been screwed!\rYour stash got jacked.";
_root.haveBooze = 0;
_root.item_cocaine = 0;
} else {
passedAll = 1;
}
}
if (((((passedAll == 1) && (_root.strength >= robbery)) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
_root.whichCommodity = 0;
if (_root.whichCommodity == 0) {
theCommodity = " bottles of booze ";
}
if (_root.whichCommodity == 1) {
theCommodity = " grams of cocaine ";
}
if (_root.whichCommodity == 0) {
_root.offer = _root.charm / _root.boozeSell;
if (_root.offer > 50) {
_root.offer = 50;
}
rand = random(5);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 5) {
_root.offer = 5;
}
}
if (_root.whichCommodity == 1) {
_root.offer = 10 * (_root.charm / _root.cokeSell);
if (_root.offer > 600) {
_root.offer = 600;
}
rand = random(50);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 50) {
_root.offer = 50;
}
}
if (_root.whichCommodity == 0) {
_root.quantity = _root.haveBooze;
}
if (_root.whichCommodity == 1) {
_root.quantity = _root.item_cocaine;
}
if (_root.quantity > 0) {
_root.offer = Math.round(_root.offer * _root.quantity);
_root.sellSummary = (((("You've arrived in the city and have received the following offer - " + quantity) + theCommodity) + "for $") + offer) + ".";
} else {
_root.sellSummary = "You've arrived in the city but can't find anyone to buy from you. Better luck next time, chump.";
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
}
}
gotoAndPlay (51);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1897 Button
on (release) {
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
if ((_root.cash > 129) && (_root.time == 0)) {
_root.cash = _root.cash - 130;
_root.SFXpurchase.start(0, 1);
robbery = Math.round(Math.random() * 110) + 100;
if ((_root.item_cocaine == 0) && (_root.haveBooze == 0)) {
_root.sellSummary = "You arrive in the city with nothing to sell. Unless you just enjoy long, expensive bus rides, you should probably stock up before you go again.";
} else if (_root.item_gun == 0) {
rand = random(3);
if (rand == 0) {
_root.sellSummary = "While traveling on the bus, you are robbed of all your money and stash by a traveling pack of low-rate lawyers. Next time, pack some protection.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 1) {
_root.sellSummary = "You take one step off the bus in Las Vegas and are jumped by 3 guys and a chick. They take all your money and your stash. Maybe you should be packin' heat next time.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 2) {
_root.sellSummary = "You get lost in Vegas. A pimp gives you directions back to the bus station, then robs you. You've lost all your money and your stash. Maybe think about investing in a firearm.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
} else if ((_root.item_gun == 1) && (_root.item_gun_ammo == 0)) {
_root.sellSummary = "You strut down the city streets looking for action. A gang of street toughs with baseball bats eye you and walk in your direction. You pull out your gun and fire...*click* You've got no bullets. They have a homerun derby contest on your ass and take your stash and money.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
} else if (robbery > _root.strength) {
rand = random(3);
if (rand == 0) {
_root.sellSummary = "While in Vegas, you accidentally track dog crap onto a girl scout group's hop scotch layout. Troop 61 leaves you lying on the street with no cash and no stash, and a mouthful of stale cookies. Maybe you should buff up a bit more.";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 1) {
_root.sellSummary = "You get off the bus and walk the streets of Las Vegas. You come across a dark alley and hear noises from behind. Three large cats attack you from all sides, leaving you unconscious near a dumpster. A passing bum raids your wallet and your stash. You're weak as a kitten!";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
if (rand == 2) {
_root.sellSummary = "Finding no action in Vegas, you start getting frustrated. Not paying attention, you slip on a used condom and hit your head on a park bench. Bleeding profusely, you can only watch as squirrels make off with your wallet and stash. Toughen' up!";
_root.cash = 0;
_root.item_cocaine = 0;
_root.haveBooze = 0;
}
} else if (_root.item_cellPhone == 0) {
_root.sellSummary = "After arriving, you spend the entire day looking for people who will buy from you, but no one wants to deal with a punk without a cell phone. How are they supposed to call you for supply when 'the craving' sets in??";
} else if ((_root.item_cocaine > 50) || (_root.haveBooze > 50)) {
_root.sellSummary = "Rolling into town with piles of product attacted plenty of attention - from the cops. They confiscate your goods, your gun, and your freedom; You serve the next 5 days in state pen.";
_root.day = _root.day + 5;
_root.haveBooze = 0;
_root.item_cocaine = 0;
_root.item_gun = 0;
_root.item_gun_ammo = 0;
} else if ((((_root.strength >= robbery) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
rand = random(10);
if (rand == 3) {
_root.sellSummary = "You meet some new contacts behind an abandoned building. Everything seems to be going well as you strike up a deal. All of a sudden, you get hit from behind by a blunt object. As you lie on the pavement, you realize what just happened; you've been screwed!\rYour stash got jacked.";
_root.haveBooze = 0;
_root.item_cocaine = 0;
} else {
passedAll = 1;
}
}
if (((((passedAll == 1) && (_root.strength >= robbery)) && (_root.item_cellPhone == 1)) && (_root.item_gun == 1)) && ((_root.item_cocaine > 0) || (_root.haveBooze > 0))) {
_root.whichCommodity = random(2);
if (_root.whichCommodity == 0) {
theCommodity = " bottles of booze ";
}
if (_root.whichCommodity == 1) {
theCommodity = " grams of cocaine ";
}
if (_root.whichCommodity == 0) {
_root.offer = _root.charm / _root.boozeSell;
if (_root.offer > 50) {
_root.offer = 50;
}
rand = random(5);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 5) {
_root.offer = 5;
}
}
if (_root.whichCommodity == 1) {
_root.offer = 10 * (_root.charm / _root.cokeSell);
if (_root.offer > 600) {
_root.offer = 600;
}
rand = random(50);
sign = random(2);
if (sign == 0) {
_root.offer = _root.offer - rand;
}
if (sign == 1) {
_root.offer = _root.offer + rand;
}
if (_root.offer <= 50) {
_root.offer = 50;
}
}
if (_root.whichCommodity == 0) {
_root.quantity = _root.haveBooze;
}
if (_root.whichCommodity == 1) {
_root.quantity = _root.item_cocaine;
}
if (_root.quantity > 0) {
_root.offer = Math.round(_root.offer * _root.quantity);
_root.sellSummary = (((("You've arrived in the city and have received the following offer - " + quantity) + theCommodity) + "for $") + offer) + ".";
} else {
_root.sellSummary = "You've arrived in the city but can't find anyone to buy from you. Better luck next time, chump.";
_root.offer = 0;
_root.quantity = 0;
_root.whichCommodity = 0;
}
}
gotoAndPlay (51);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1906 Button
on (release) {
_root.LoopD.stop();
if (_root.music == 1) {
_root.LoopB.start(0, 10000);
}
_root.time = 24;
mapx = mapx + 8;
_root.takeIt._visible = 1;
gotoAndStop (2);
}
Symbol 1915 Button
on (release) {
_root.karma = _root.karma - 5;
karmaAdjust();
_root.takeIt._visible = 0;
rand = random(10);
if ((rand == 0) && (_root.dealMessage1 == 0)) {
_root.msgs.push("Hey dude...its Marco...from the city. Just wanted to let you know that the stuff you brought down was some good shit. Hope to do business again with you soon. Peace!");
_root.dealMessage1 = 1;
}
if ((rand == 1) && (_root.dealMessage2 == 0)) {
_root.msgs.push("Hey hun, its Taquisha...I bought some goods from you last night. I like your style. Keep pouring on that charm and I might pay you a bit more next time. See you soon, baby!");
_root.dealMessage2 = 1;
}
if ((rand == 2) && (_root.dealMessage3 == 0)) {
_root.msgs.push("Yo, its DJ Beefstick! Your stash was hot at the club last night! Bring down some more soon, but watch out! The cops will notice you if you're carrying too much...lata foo'!");
_root.dealMessage3 = 1;
}
if ((rand == 3) && (_root.dealMessage4 == 0)) {
_root.msgs.push("...its Antonio. Next time you're in the city, look me up. I know some guys who want in on your goods. If you're more convincing, you'll get a higher price. Ciao.");
_root.dealMessage4 = 1;
}
if ((rand == 4) && (_root.dealMessage5 == 0)) {
_root.msgs.push("Hey punk! Stay the hell off of my turf! If I see you dealin' there again, I'll bust a cap in yo ass!");
_root.dealMessage5 = 1;
}
_root.cash = _root.cash + _root.offer;
if (_root.whichCommodity == 0) {
_root.haveBooze = _root.haveBooze - _root.quantity;
}
if (_root.whichCommodity == 1) {
_root.item_cocaine = _root.item_cocaine - _root.quantity;
}
_root.SFXwork.start(0, 1);
}
Symbol 1920 Button
on (release) {
_root.LoopD.stop();
if (_root.music == 1) {
_root.LoopB.start(0, 10000);
}
mapy = mapy + 8;
_root.prevmoving = 0;
gotoAndStop (2);
}
Symbol 1927 Button
on (release) {
if (_root.cash > 499) {
_root.cash = _root.cash - 500;
_root.item_bed = 1;
_root.newBed._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1934 Button
on (release) {
if (_root.cash > 2499) {
_root.cash = _root.cash - 2500;
_root.item_tv = 1;
_root.buyTV._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1942 Button
on (release) {
if (_root.cash > 1999) {
_root.cash = _root.cash - 2000;
_root.item_computer = 1;
_root.buyComputer._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1949 Button
on (release) {
if (_root.cash > 2999) {
_root.cash = _root.cash - 3000;
_root.item_satellite = 1;
_root.buySatellite._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1957 Button
on (release) {
if (_root.cash > 1999) {
_root.cash = _root.cash - 2000;
_root.item_books = 1;
_root.buyBooks._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1965 Button
on (release) {
if (_root.cash > 3499) {
_root.cash = _root.cash - 3500;
_root.item_treadmill = 1;
_root.buyTreadmill._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1972 Button
on (release) {
if (_root.cash > 2499) {
_root.cash = _root.cash - 2500;
_root.item_freezer = 1;
_root.buyFreezer._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1981 Button
on (release) {
if (_root.cash > 4999) {
_root.cash = _root.cash - 5000;
_root.item_minibar = 1;
_root.buyMinibar._visible = 0;
_root.SFXpurchase.start(0, 1);
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 1985 Button
on (release) {
_root.LoopD.stop();
if (_root.music == 1) {
_root.LoopB.start(0, 10000);
}
mapy = mapy - 8;
_root.prevmoving = 0;
gotoAndStop (2);
}
Symbol 1995 Button
on (release) {
if (time < 23) {
_root.karma++;
karmaAdjust();
time = time + 2;
gotoAndStop (62);
}
}
Symbol 2002 Button
on (release) {
if ((time < 23) && (cash > 19)) {
_root.karma++;
karmaAdjust();
time = time + 2;
cash = cash - 20;
gotoAndStop (63);
}
}
Symbol 2009 Button
on (release) {
if (time < 23) {
_root.karma++;
karmaAdjust();
time = time + 2;
gotoAndStop (61);
}
}
Symbol 2041 MovieClip Frame 11
_root.strength = Math.min(_root.strength + 1, 999);
_root.hpmax = _root.hpmax + 1;
Symbol 2041 MovieClip Frame 24
_root.gotoAndStop(60);
Symbol 2060 MovieClip Frame 10
_root.intelligence = Math.min(_root.intelligence + 1, 999);
Symbol 2060 MovieClip Frame 25
_root.gotoAndStop(60);
Symbol 2085 MovieClip Frame 11
_root.intelligence = _root.intelligence + 2;
if (_root.intelligence > 999) {
_root.intelligence = 999;
}
Symbol 2085 MovieClip Frame 25
_root.gotoAndStop(60);
Symbol 2088 Button
on (release) {
_root.LoopD.stop();
if (_root.music == 1) {
_root.LoopB.start(0, 10000);
}
mapy = mapy - 8;
_root.saveText.text = "";
_root.prevmoving = 0;
gotoAndStop (2);
}
Symbol 2093 MovieClip Frame 1
if (_root.dwelling == 1) {
stop();
}
if (_root.dwelling == 2) {
gotoAndStop (2);
}
if (_root.dwelling == 3) {
gotoAndStop (3);
}
Symbol 2099 Button
on (release) {
day = day + 1;
stockRate = Math.random(1);
stockRate = stockRate * 0.25;
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
ABCprev = ABCprice;
ABCprice = ABCprice + (stockRate * direction);
if (ABCprice <= 1) {
ABCprice = 1;
}
stockRate = Math.random(1);
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
XYZprev = XYZprice;
XYZprice = XYZprice + (stockRate * direction);
if (XYZprice <= 1) {
XYZprice = 1;
}
stockRate = Math.random(1);
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
RTWprev = RTWprice;
RTWprice = RTWprice + (stockRate * direction);
if (RTWprice <= 1) {
RTWprice = 1;
}
stockRate = Math.random(1);
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
LLGprev = LLGprice;
LLGprice = LLGprice + (stockRate * direction);
if (LLGprice <= 1) {
LLGprice = 1;
}
stockRate = Math.random(1);
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
BIXprev = BIXprice;
BIXprice = BIXprice + (stockRate * direction);
if (BIXprice <= 1) {
BIXprice = 1;
}
stockRate = Math.random(1);
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
IJAprev = IJAprice;
IJAprice = IJAprice + (stockRate * direction);
if (IJAprice <= 1) {
IJAprice = 1;
}
bankcash = bankcash + int(bankcash * (bankrate / 100));
bankloan = bankloan + int(bankloan * (bankrate / 100));
bankrate = bankrate + ((random(10) / 10) - 0.5);
if (bankrate < 0) {
bankrate = 0;
}
var banktext = "";
if (bankloandays > 1) {
bankloandays = bankloandays - 1;
var banktext = (((bankloandays + " days left to pay off your loan ($") + bankloan) + ")");
}
if (bankloandays == 1) {
bankloandays = bankloandays - 1;
var banktext = (((bankloandays + " day left to pay off your loan ($") + bankloan) + ")");
}
if (bankloandays == 0) {
gotoAndStop (100);
}
if (_root.item_bed == 0) {
var hprestore = 20;
} else {
var hprestore = 30;
}
if (item_pills > 0) {
var pilltext = "(CAFFEINE PILLS USED)";
hprestore = hprestore - 20;
} else {
var pilltext = "";
}
hp = hp + hprestore;
if (hp > hpmax) {
hprestore = hprestore - (hp - hpmax);
hp = hpmax;
}
var hptext = (hprestore + " HP RESTORED!");
if (item_books == 1) {
var intelligencetext = "+1 INTELLIGENCE GAINED! (XGENICA COLL.)";
_root.intelligence++;
if (_root.intelligence > 999) {
_root.intelligence = 999;
}
} else {
var intelligencetext = "";
}
if (item_minibar == 1) {
var charmtext = "+1 CHARM GAINED! (MINIBAR)";
_root.charm++;
if (_root.charm > 999) {
_root.charm = 999;
}
} else {
var charmtext = "";
}
if (item_treadmill == 1) {
var strengthtext = "+1 STRENGTH GAINED! (TREADMILL)";
_root.strength++;
if (_root.strength > 999) {
_root.strength = 999;
}
_root.hpmax = _root.hpmax + 1;
} else {
var strengthtext = "";
}
time = 8;
if (item_pills > 0) {
item_pills = item_pills - 1;
time = time - 4;
}
if (item_alarm > 0) {
time = time - 4;
}
if (day == 365) {
msgs.push("Ello! This is the game developer calling to say CONGRATUFREAKINLATIONS! You managed to play for an entire virtual YEAR!!! You now own a new sports car. Press 'c' to toggle when walking.");
_root.item_car = 2;
}
if (day == (gamelength + 1)) {
gotoAndStop (130);
} else {
gotoAndStop (66);
}
}
Symbol 2103 MovieClip Frame 7
if (_root.msgs.length == 0) {
gotoAndPlay (1);
}
Symbol 2106 Button
on (release) {
gotoAndStop (67);
}
Symbol 2113 Button
on (release) {
saveGame();
}
Symbol 2120 Button
on (release) {
if (time < 23) {
gotoAndPlay (68);
}
}
Symbol 2126 Button
on (release) {
if (time < 23) {
gotoAndStop (69);
}
}
Symbol 2128 Button
on (release) {
gotoAndStop (65);
}
Symbol 2135 Button
on (release) {
gotoAndStop (65);
}
Symbol 2143 Button
on (release) {
if (msgs.length > 0) {
_root.SFXansmachine.start(0, 1);
i = 0;
while (i < (msgs.length - 1)) {
msgs[i] = msgs[i + 1];
i++;
}
msgs.splice(msgs.length - 1);
var msgtext = (("YOU HAVE (" + msgs.length) + ") NEW MESSAGES");
if (msgs.length == 1) {
var msgtext = "YOU HAVE (1) NEW MESSAGE";
}
var msgbody = (("''" + msgs[0]) + "''");
if (msgs.length == 0) {
msgbody = "";
}
} else {
_root.SFXerror.start(0, 1);
}
}
Symbol 2144 Button
on (release) {
time++;
gotoAndStop (65);
}
Symbol 2153 MovieClip Frame 19
_root.intelligence = Math.min(_root.intelligence + 2, 999);
Symbol 2153 MovieClip Frame 23
stop();
Symbol 2160 Button
on (release) {
gotoAndStop (70);
}
Symbol 2161 Button
on (release) {
gotoAndStop (69);
}
Symbol 2172 Button
on (release) {
_root.currentStock = "XGS";
_root.currentPrice = _root.ABCprice;
_root.currentDiff = _root.ABCdiff;
_root.currentYours = _root.ABCunits;
_root.currentBought = _root.ABCbought;
gotoAndPlay (71);
}
Symbol 2173 Button
on (release) {
_root.currentStock = "FSY";
_root.currentPrice = _root.XYZprice;
_root.currentDiff = _root.XYZdiff;
_root.currentYours = _root.XYZunits;
_root.currentBought = _root.XYZbought;
gotoAndPlay (71);
}
Symbol 2174 Button
on (release) {
_root.currentStock = "DYC";
_root.currentPrice = _root.RTWprice;
_root.currentDiff = _root.RTWdiff;
_root.currentYours = _root.RTWunits;
_root.currentBought = _root.RTWbought;
gotoAndPlay (71);
}
Symbol 2175 Button
on (release) {
_root.currentStock = "MLG";
_root.currentPrice = _root.LLGprice;
_root.currentDiff = _root.LLGdiff;
_root.currentYours = _root.LLGunits;
_root.currentBought = _root.LLGbought;
gotoAndPlay (71);
}
Symbol 2176 Button
on (release) {
_root.currentStock = "SR2";
_root.currentPrice = _root.BIXprice;
_root.currentDiff = _root.BIXdiff;
_root.currentYours = _root.BIXunits;
_root.currentBought = _root.BIXbought;
gotoAndPlay (71);
}
Symbol 2177 Button
on (release) {
_root.currentStock = "SAR";
_root.currentPrice = _root.IJAprice;
_root.currentDiff = _root.IJAdiff;
_root.currentYours = _root.IJAunits;
_root.currentBought = _root.IJAbought;
gotoAndPlay (71);
}
Symbol 2211 Button
on (release) {
if ((int(_root.units) > 0) && ((_root.currentYours + int(_root.units)) < 1000000)) {
if ((_root.currentPrice * int(_root.units)) <= _root.cash) {
_root.SFXpurchase.start(0, 1);
_root.currentYours = _root.currentYours + int(_root.units);
if (_root.currentStock == "XGS") {
_root.ABCunits = _root.ABCunits + int(_root.units);
_root.cash = _root.cash - Math.round(_root.currentPrice * int(_root.units));
_root.ABCbought = currentPrice;
}
if (_root.currentStock == "FSY") {
_root.XYZunits = _root.XYZunits + int(_root.units);
_root.cash = _root.cash - Math.round(_root.currentPrice * int(_root.units));
_root.XYZbought = currentPrice;
}
if (_root.currentStock == "DYC") {
_root.RTWunits = _root.RTWunits + int(_root.units);
_root.cash = _root.cash - Math.round(_root.currentPrice * int(_root.units));
_root.RTWbought = currentPrice;
}
if (_root.currentStock == "MLG") {
_root.LLGunits = _root.LLGunits + int(_root.units);
_root.cash = _root.cash - Math.round(_root.currentPrice * int(_root.units));
_root.LLGbought = currentPrice;
}
if (_root.currentStock == "SR2") {
_root.BIXunits = _root.BIXunits + int(_root.units);
_root.cash = _root.cash - Math.round(_root.currentPrice * int(_root.units));
_root.BIXbought = currentPrice;
}
if (_root.currentStock == "SAR") {
_root.IJAunits = _root.IJAunits + int(_root.units);
_root.cash = _root.cash - Math.round(_root.currentPrice * int(_root.units));
_root.IJAbought = currentPrice;
} else {
_root.SFXerror.start(0, 1);
}
}
}
}
Symbol 2215 Button
on (release) {
if ((int(_root.units) > 0) && (_root.currentYours >= int(_root.units))) {
_root.SFXwork.start(0, 1);
_root.currentYours = _root.currentYours - int(_root.units);
if (_root.currentStock == "XGS") {
_root.ABCunits = _root.ABCunits - int(_root.units);
_root.cash = _root.cash + Math.round(_root.currentPrice * int(_root.units));
}
if (_root.currentStock == "FSY") {
_root.XYZunits = _root.XYZunits - int(_root.units);
_root.cash = _root.cash + Math.round(_root.currentPrice * int(_root.units));
}
if (_root.currentStock == "DYC") {
_root.RTWunits = _root.RTWunits - int(_root.units);
_root.cash = _root.cash + Math.round(_root.currentPrice * int(_root.units));
}
if (_root.currentStock == "MLG") {
_root.LLGunits = _root.LLGunits - int(_root.units);
_root.cash = _root.cash + Math.round(_root.currentPrice * int(_root.units));
}
if (_root.currentStock == "SR2") {
_root.BIXunits = _root.BIXunits - int(_root.units);
_root.cash = _root.cash + Math.round(_root.currentPrice * int(_root.units));
}
if (_root.currentStock == "SAR") {
_root.IJAunits = _root.IJAunits - int(_root.units);
_root.cash = _root.cash + Math.round(_root.currentPrice * int(_root.units));
} else {
_root.SFXerror.start(0, 1);
}
}
}
Symbol 2223 MovieClip Frame 1
var xmove = (random(20) - 10);
var ymove = (random(10) + 1);
var xdir = -1;
Symbol 2223 MovieClip Frame 2
f1._y = f1._y + ymove;
f1._x = f1._x + xmove;
xmove = xmove + xdir;
if (xmove < -10) {
xdir = 1;
}
if (xmove > 10) {
xdir = -1;
}
if (f1._y > 700) {
ymove = random(8) + 3;
f1._y = random(400) - 600;
f1._x = random(1050) - 400;
f1.gotoAndPlay(random(49));
}
Symbol 2223 MovieClip Frame 3
gotoAndPlay (2);
Symbol 2231 MovieClip Frame 20
stop();
Symbol 2271 MovieClip Frame 41
stop();
Symbol 2300 MovieClip Frame 65
stop();
Symbol 2334 MovieClip Frame 11
_root.strength = _root.strength + 3;
if (_root.strength > 999) {
_root.strength = 999;
}
_root.hpmax = _root.hpmax + 3;
Symbol 2334 MovieClip Frame 24
stop();
Symbol 2341 Button
on (release) {
_root.karma = _root.karma - 3;
_root.gotoAndStop(_root.returnframe);
}
Symbol 2342 MovieClip Frame 10
gotoAndPlay (1);
Symbol 2342 MovieClip Frame 27
if (_root.att == 1) {
_root.hp2 = _root.hp2 - _root.hit;
pow._xscale = 100;
}
if (_root.att == 2) {
_root.hp = _root.hp - _root.hit;
pow._xscale = -100;
}
pow.gotoAndPlay(1);
Symbol 2342 MovieClip Frame 54
if (_root.att == 2) {
_root.attpts = Math.min(int(_root.strength / 20) + 1, 15);
}
_root.attmode = 0;
gotoAndPlay (1);
Symbol 2342 MovieClip Frame 67
if (_root.att == 1) {
_root.hp2 = _root.hp2 - _root.hit;
pow._xscale = 100;
}
if (_root.att == 2) {
_root.hp = _root.hp - _root.hit;
pow._xscale = -100;
}
pow.gotoAndPlay(1);
Symbol 2342 MovieClip Frame 89
if (_root.att == 2) {
_root.attpts = Math.min(int(_root.strength / 20) + 1, 15);
}
_root.attmode = 0;
gotoAndPlay (1);
Symbol 2342 MovieClip Frame 130
if (_root.att == 1) {
_root.hp2 = _root.hp2 - _root.hit;
pow._xscale = 100;
}
if (_root.att == 2) {
_root.hp = _root.hp - _root.hit;
pow._xscale = -100;
}
pow.gotoAndPlay(1);
Symbol 2342 MovieClip Frame 150
if (_root.att == 2) {
_root.attpts = Math.min(int(_root.strength / 20) + 1, 15);
}
_root.attmode = 0;
gotoAndPlay (1);
Symbol 2342 MovieClip Frame 185
if (_root.att == 1) {
_root.hp2 = _root.hp2 - _root.hit;
pow._xscale = 100;
}
if (_root.att == 2) {
_root.hp = _root.hp - _root.hit;
pow._xscale = -100;
}
pow.gotoAndPlay(1);
Symbol 2342 MovieClip Frame 215
if (_root.att == 2) {
_root.attpts = Math.min(int(_root.strength / 20) + 1, 15);
}
_root.attmode = 0;
gotoAndPlay (1);
Symbol 2342 MovieClip Frame 216
_root.LoopC.stop();
Symbol 2342 MovieClip Frame 234
_root.itfroze._visible = 0;
Symbol 2342 MovieClip Frame 285
fstrength.gotoAndPlay(1);
Symbol 2342 MovieClip Frame 350
var ftext;
var fwin;
fwin = int(random(_root.barfight * 5) + (_root.barfight * 5));
ftext = ("You find $" + fwin) + " in the dead guy's wallet.";
_root.cash = _root.cash + fwin;
_root.barfight = _root.barfight + 1;
Symbol 2342 MovieClip Frame 370
stop();
Symbol 2349 Button
on (release) {
if ((_root.attmode == 0) && (_root.attpts > 0)) {
_root.attmode = 1;
_root.attpts = _root.attpts - 1;
_root.att = 1;
_root.hit = int(random((_root.strength + 10) / 10) + (_root.item_knife * 2));
if (_root.hit == 0) {
_root.hit = 1;
}
p1.gotoAndPlay(11);
}
}
Symbol 2355 Button
on (release) {
if ((_root.attmode == 0) && (_root.attpts > 1)) {
_root.attmode = 1;
_root.attpts = _root.attpts - 2;
_root.att = 1;
_root.hit = int((random(_root.strength / 4.5) + (_root.item_knife * 2)) + 1);
if (_root.hit == 0) {
_root.hit = 1;
}
p1.gotoAndPlay(55);
}
}
Symbol 2364 Button
on (release) {
if ((_root.attmode == 0) && (_root.attpts > 2)) {
_root.attmode = 1;
_root.attpts = _root.attpts - 3;
_root.att = 1;
_root.hit = int(random(_root.strength / 2.5));
if (_root.hit == 0) {
_root.hit = 1;
}
p1.gotoAndPlay(90);
}
}
Symbol 2371 Button
on (release) {
if ((_root.attmode == 0) && (_root.attpts > 3)) {
_root.attmode = 1;
_root.attpts = _root.attpts - 4;
_root.att = 1;
_root.hit = int(random(_root.strength / 1.5));
if (_root.hit == 0) {
_root.hit = 1;
}
p1.gotoAndPlay(151);
}
}
Symbol 2378 Button
on (release) {
if (_root.attmode == 0) {
_root.gotoAndStop(_root.returnframe);
_root.LoopC.stop();
}
}
Symbol 2387 Button
on (release) {
if ((_root.fbugfix == 1) || (_root.attmode == 0)) {
if (_root.hp2 > 0) {
_root.fbugfix = 0;
_root.attmode = 1;
_root.att = 2;
var retack1 = (int(random(_root.strength)) + 1);
if (retack1 > 40) {
_root.fight.p2.gotoAndPlay(151);
_root.hit = int(random(_root.strength / 1.5));
if (_root.hit == 0) {
_root.hit = 1;
}
retack1 = 0;
}
if (retack1 > 20) {
_root.fight.p2.gotoAndPlay(90);
_root.hit = int(random(_root.strength / 2.5));
if (_root.hit == 0) {
_root.hit = 1;
}
retack1 = 0;
}
if (retack1 > 10) {
_root.fight.p2.gotoAndPlay(55);
_root.hit = int(random(_root.strength / 4.5));
if (_root.hit == 0) {
_root.hit = 1;
}
retack1 = 0;
}
if (retack1 > 0) {
_root.fight.p2.gotoAndPlay(11);
_root.hit = int(random(_root.strength / 10)) + 1;
if (_root.hit == 0) {
_root.hit = 1;
}
retack1 = 0;
}
_root.attpts = Math.min(int(_root.strength / 20) + 1, 15);
}
}
}
Symbol 2389 MovieClip Frame 1
if ((_root.hp2 <= 0) && (_root.attmode == 0)) {
_root.attmode = 1;
_root.hpbar2._visible = 0;
_root.fight.p2.gotoAndPlay(216);
_root.fight.p1.stop();
}
if (((_root.attpts == 0) && (_root.attmode == 0)) && (_root.hp2 > 0)) {
_root.fbugfix = 1;
_root.att = 2;
var retack1 = (int(random(_root.strength)) + 1);
if (retack1 > 40) {
_root.hit = int(random(_root.strength / 1.5));
retack1 = -1;
_root.fight.p2.gotoAndPlay(151);
}
if (retack1 > 20) {
_root.fight.p2.gotoAndPlay(90);
_root.hit = int(random(_root.strength / 2.5));
retack1 = -1;
}
if (retack1 > 10) {
_root.fight.p2.gotoAndPlay(55);
_root.hit = int(random(_root.strength / 4.5));
retack1 = -1;
}
if (retack1 >= 0) {
_root.fight.p2.gotoAndPlay(11);
_root.hit = int(random(_root.strength / 10)) + 1;
retack1 = -1;
}
_root.attmode = 1;
}
Symbol 2390 MovieClip Frame 1
stop();
p2.gotoAndPlay(5);
Symbol 2394 Button
on (release) {
gotoAndStop (76);
}
Symbol 2403 MovieClip Frame 4
if (int((_root.hp2 / _root.hpmax2) * 100) == 4) {
gotoAndPlay (1);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 9
if (int((_root.hp2 / _root.hpmax2) * 100) == 9) {
gotoAndPlay (5);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 14
if (int((_root.hp2 / _root.hpmax2) * 100) == 14) {
gotoAndPlay (10);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 19
if (int((_root.hp2 / _root.hpmax2) * 100) == 19) {
gotoAndPlay (15);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 24
if (int((_root.hp2 / _root.hpmax2) * 100) == 24) {
gotoAndPlay (20);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 29
if (int((_root.hp2 / _root.hpmax2) * 100) == 29) {
gotoAndPlay (25);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 34
if (int((_root.hp2 / _root.hpmax2) * 100) == 34) {
gotoAndPlay (30);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 39
if (int(((_root.hp2 / _root.hpmax2) * 100) == 39)) {
gotoAndPlay (35);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 44
if (int(((_root.hp2 / _root.hpmax2) * 100) == 44)) {
gotoAndPlay (40);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 49
if (int(((_root.hp2 / _root.hpmax2) * 100) == 49)) {
gotoAndPlay (45);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 54
if (int(((_root.hp2 / _root.hpmax2) * 100) == 54)) {
gotoAndPlay (50);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 59
if (int((_root.hp2 / _root.hpmax2) * 100) == 59) {
gotoAndPlay (55);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 64
if (int((_root.hp2 / _root.hpmax2) * 100) == 64) {
gotoAndPlay (60);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 69
if (int((_root.hp2 / _root.hpmax2) * 100) == 69) {
gotoAndPlay (65);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 74
if (int((_root.hp2 / _root.hpmax2) * 100) == 74) {
gotoAndPlay (70);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 79
if (int((_root.hp2 / _root.hpmax2) * 100) == 79) {
gotoAndPlay (75);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 84
if (int((_root.hp2 / _root.hpmax2) * 100) == 84) {
gotoAndPlay (80);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 89
if (int((_root.hp2 / _root.hpmax2) * 100) == 89) {
gotoAndPlay (85);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 94
if (int((_root.hp2 / _root.hpmax2) * 100) == 94) {
gotoAndPlay (90);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 99
if (int(((_root.hp2 / _root.hpmax2) * 100) == 99)) {
gotoAndPlay (95);
} else {
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
}
Symbol 2403 MovieClip Frame 104
gotoAndPlay(int((_root.hp2 / _root.hpmax2) * 100));
Symbol 2406 Button
on (release) {
gotoAndStop (35);
}
Symbol 2410 MovieClip Frame 1
if (_root.dwelling == 4) {
gotoAndStop (2);
} else if (_root.dwelling == 5) {
gotoAndStop (3);
}
Symbol 2411 Button
on (release) {
day = day + 1;
stockRate = Math.random(1);
stockRate = stockRate * 0.25;
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
ABCprev = ABCprice;
ABCprice = ABCprice + (stockRate * direction);
if (ABCprice <= 1) {
ABCprice = 1;
}
stockRate = Math.random(1);
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
XYZprev = XYZprice;
XYZprice = XYZprice + (stockRate * direction);
if (XYZprice <= 1) {
XYZprice = 1;
}
stockRate = Math.random(1);
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
RTWprev = RTWprice;
RTWprice = RTWprice + (stockRate * direction);
if (RTWprice <= 1) {
RTWprice = 1;
}
stockRate = Math.random(1);
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
LLGprev = LLGprice;
LLGprice = LLGprice + (stockRate * direction);
if (LLGprice <= 1) {
LLGprice = 1;
}
stockRate = Math.random(1);
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
BIXprev = BIXprice;
BIXprice = BIXprice + (stockRate * direction);
if (BIXprice <= 1) {
BIXprice = 1;
}
stockRate = Math.random(1);
direction = random(2);
if (direction == 0) {
direction = -1;
}
if (direction == 1) {
direction = 1;
}
IJAprev = IJAprice;
IJAprice = IJAprice + (stockRate * direction);
if (IJAprice <= 1) {
IJAprice = 1;
}
bankcash = bankcash + int(bankcash * (bankrate / 100));
bankloan = bankloan + int(bankloan * (bankrate / 100));
bankrate = bankrate + ((random(10) / 10) - 0.5);
if (bankrate < 0) {
bankrate = 0;
}
var banktext = "";
if (bankloandays > 1) {
bankloandays = bankloandays - 1;
var banktext = (((bankloandays + " days left to pay off your loan ($") + bankloan) + ")");
}
if (bankloandays == 1) {
bankloandays = bankloandays - 1;
var banktext = (((bankloandays + " day left to pay off your loan ($") + bankloan) + ")");
}
if (bankloandays == 0) {
gotoAndStop (100);
}
if ((_root.item_bed == 0) && (_root.item_freezer == 0)) {
var hprestore = 20;
} else if ((_root.item_bed == 1) && (_root.item_freezer == 0)) {
var hprestore = 30;
} else if ((_root.item_bed == 1) && (_root.item_freezer == 1)) {
var hprestore = 40;
} else {
var hprestore = 20;
}
if (item_pills > 0) {
var pilltext = "(CAFFEINE PILLS USED)";
hprestore = hprestore - 20;
} else {
var pilltext = "";
}
hp = hp + hprestore;
if (hp > hpmax) {
hprestore = hprestore - (hp - hpmax);
hp = hpmax;
}
var hptext = (hprestore + " HP RESTORED!");
if (item_books == 1) {
var intelligencetext = "+1 INTELLIGENCE GAINED! (XGENICA COLL.)";
_root.intelligence++;
if (_root.intelligence >= 999) {
_root.intelligence = 999;
}
} else {
var intelligencetext = "";
}
if (item_minibar == 1) {
var charmtext = "+1 CHARM GAINED! (MINIBAR)";
_root.charm++;
if (_root.charm >= 999) {
_root.charm = 999;
}
} else {
var charmtext = "";
}
if (item_treadmill == 1) {
var strengthtext = "+1 STRENGTH GAINED! (TREADMILL)";
_root.strength++;
if (_root.strength >= 999) {
_root.strength = 999;
}
_root.hpmax = _root.hpmax + 1;
} else {
var strengthtext = "";
}
if ((_root.job == 8) || (_root.job == 9)) {
_root.SFXwork.start(0, 1);
earningtext = "Political career earns you $5000 today.";
cash = cash + 5000;
} else {
earningtext = "";
}
time = 8;
if (item_pills > 0) {
item_pills = item_pills - 1;
time = time - 4;
}
if (item_alarm > 0) {
time = time - 4;
}
if (day == 365) {
msgs.push("Ello! This is the game developer calling to say CONGRATUFREAKINLATIONS! You managed to play for an entire virtual YEAR!!! You now own a new sports car. Press 'c' to toggle when walking.");
_root.item_car = 2;
}
if (day == (gamelength + 1)) {
gotoAndStop (130);
} else {
gotoAndStop (79);
}
}
Symbol 2412 Button
on (release) {
gotoAndStop (80);
}
Symbol 2414 Button
on (release) {
if (time < 23) {
gotoAndStop (81);
}
}
Symbol 2415 Button
on (release) {
if (_root.time < 23) {
if (_root.item_satellite == 0) {
gotoAndStop (85);
} else if (_root.item_satellite == 1) {
gotoAndStop (84);
}
}
}
Symbol 2417 Button
on (release) {
gotoAndStop (78);
}
Symbol 2424 Button
on (release) {
if ((_root.electionMessage == 1) || (_root.electionMessage == 2)) {
gotoAndStop (88);
} else {
gotoAndStop (78);
}
}
Symbol 2427 Button
on (release) {
gotoAndStop (82);
}
Symbol 2428 Button
on (release) {
gotoAndStop (81);
}
Symbol 2429 Button
on (release) {
_root.currentStock = "XGS";
_root.currentPrice = _root.ABCprice;
_root.currentDiff = _root.ABCdiff;
_root.currentYours = _root.ABCunits;
_root.currentBought = _root.ABCbought;
gotoAndPlay (83);
}
Symbol 2430 Button
on (release) {
_root.currentStock = "FSY";
_root.currentPrice = _root.XYZprice;
_root.currentDiff = _root.XYZdiff;
_root.currentYours = _root.XYZunits;
_root.currentBought = _root.XYZbought;
gotoAndPlay (83);
}
Symbol 2431 Button
on (release) {
_root.currentStock = "DYC";
_root.currentPrice = _root.RTWprice;
_root.currentDiff = _root.RTWdiff;
_root.currentYours = _root.RTWunits;
_root.currentBought = _root.RTWbought;
gotoAndPlay (83);
}
Symbol 2432 Button
on (release) {
_root.currentStock = "MLG";
_root.currentPrice = _root.LLGprice;
_root.currentDiff = _root.LLGdiff;
_root.currentYours = _root.LLGunits;
_root.currentBought = _root.LLGbought;
gotoAndPlay (83);
}
Symbol 2433 Button
on (release) {
_root.currentStock = "SR2";
_root.currentPrice = _root.BIXprice;
_root.currentDiff = _root.BIXdiff;
_root.currentYours = _root.BIXunits;
_root.currentBought = _root.BIXbought;
gotoAndPlay (83);
}
Symbol 2434 Button
on (release) {
_root.currentStock = "SAR";
_root.currentPrice = _root.IJAprice;
_root.currentDiff = _root.IJAdiff;
_root.currentYours = _root.IJAunits;
_root.currentBought = _root.IJAbought;
gotoAndPlay (83);
}
Symbol 2465 Button
on (release) {
gotoAndStop (85);
}
Symbol 2471 Button
on (release) {
gotoAndStop (86);
}
Symbol 2476 Button
on (release) {
gotoAndStop (87);
}
Symbol 2477 Button
on (release) {
gotoAndStop (78);
}
Symbol 2478 Button
on (release) {
time++;
gotoAndStop (78);
}
Symbol 2496 MovieClip Frame 19
_root.strength = Math.min(_root.strength + 2, 999);
_root.hpmax = _root.hpmax + 2;
Symbol 2496 MovieClip Frame 23
stop();
Symbol 2503 MovieClip Frame 19
_root.charm = Math.min(_root.charm + 2, 999);
Symbol 2503 MovieClip Frame 23
stop();
Symbol 2512 Button
on (release) {
rand = random(2);
if (rand == 0) {
_root.successfulCampaign = 1;
}
if (rand == 1) {
_root.successfulCampaign = 0;
}
_root.cash = _root.cash - 50000;
_root.SFXpurchase.start(0, 1);
_root.gotoAndStop(89);
}
Symbol 2519 Button
on (release) {
rand = random(4);
if (((rand == 0) || (rand == 1)) || (rand == 2)) {
_root.successfulCampaign = 1;
}
if (rand == 3) {
_root.successfulCampaign = 0;
}
_root.cash = _root.cash - 100000;
_root.SFXpurchase.start(0, 1);
_root.gotoAndStop(89);
}
Symbol 2526 Button
on (release) {
_root.successfulCampaign = 1;
_root.cash = _root.cash - 200000;
_root.SFXpurchase.start(0, 1);
_root.gotoAndStop(89);
}
Symbol 2527 Button
on (release) {
_root.electionMessage = 3;
gotoAndStop (78);
}
Symbol 2548 MovieClip Frame 150
_root.gotoAndStop(130);
Symbol 2569 Button
on (release) {
_root.netcalc = _root.netcalcfinal;
gotoAndPlay (150);
}
Symbol 2635 MovieClip Frame 50
stop();
Symbol 2662 Button
on (release) {
if (pname == "CHEATER!!!") {
}
gotoAndStop (1);
}