Frame 1
soundbgm.gotoAndPlay(2);
stop();
Instance of Symbol 110 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(Key.getCode())) {
_root.nextFrame();
}
}
onClipEvent (mouseDown) {
_root.nextFrame();
}
Frame 2
stopAllSounds();
stop();
Frame 3
stopAllSounds();
soundbgm.gotoAndStop(3);
stop();
Instance of Symbol 140 MovieClip "obj" in Frame 3
onClipEvent (load) {
if (_root.strtx == null) {
_root.strtx = _root.road._x;
_root.strty = _root.road._y;
}
_root.road._x = _root.map_x;
_root.road._y = _root.map_y;
_root.road.gotoAndStop(_root.map_cf);
_root.road.path.gotoAndStop(_root.map_cfp);
_root.road.exits.gotoAndStop(_root.map_cfe);
_root.obj._x = _root.arrow_x;
_root.obj._y = _root.arrow_y;
_root.mobCaught = 30 + Math.ceil(Math.random() * 10);
delete _root.map_x;
}
onClipEvent (enterFrame) {
if (_root.road.path._currentframe >= 8) {
_root.gotoAndStop("56");
}
mousLimit = 3;
if (mous_input == 1) {
if (mous_Counter >= mousLimit) {
delete mous_Counter;
} else {
mous_Counter++;
}
}
if ((mous_input == 1) && (mous_Counter >= mousLimit)) {
_root.mobEncounter++;
dest_y = Math.ceil(_root.targ._y / 48) * 48;
dest_x = Math.ceil(_root.targ._x / 48) * 48;
player_y = Math.ceil(this._y / 48) * 48;
player_x = Math.ceil(this._x / 48) * 48;
trace((("X" + (Math.abs(dest_x - player_x) / 48)) + "Y") + (Math.abs(dest_y - player_y) / 48));
if (((Math.abs(dest_x - player_x) / 48) >= 1) && ((Math.abs(dest_y - player_y) / 48) >= 1)) {
} else if ((Math.abs(dest_x - player_x) / 48) >= 1) {
if ((((dest_x / 48) > (player_x / 48)) && (_root.road.hitTest(player_x + 48, player_y, false))) && (_root.road.path.hitTest(this._x + 48, this._y, true))) {
_root.road._x = _root.road._x + -48;
this._rotation = -90;
trace("RIGHT");
}
if ((((dest_x / 48) < (player_x / 48)) && (_root.road.hitTest(player_x - 48, player_y, false))) && (_root.road.path.hitTest(this._x - 48, this._y, true))) {
_root.road._x = _root.road._x + 48;
this._rotation = 90;
trace("LEFT");
}
}
if ((Math.abs(dest_y - player_y) / 48) >= 1) {
if ((((dest_y / 48) > (player_y / 48)) && (_root.road.hitTest(player_x, player_y + 48, false))) && (_root.road.path.hitTest(this._x, this._y + 48, true))) {
_root.road._y = _root.road._y + -48;
this._rotation = 0;
trace("DOWN");
}
if ((((dest_y / 48) < (player_y / 48)) && (_root.road.hitTest(player_x, player_y - 48, false))) && (_root.road.path.hitTest(this._x, this._y - 48, true))) {
_root.road._y = _root.road._y + 48;
this._rotation = -180;
trace("UP");
}
}
}
if (_root.mobEncounter >= _root.mobCaught) {
delete _root.mobCaught;
delete _root.mobEncounter;
delete _root.map_x;
if (_root.map_x == null) {
_root.map_x = _root.road._x;
_root.map_y = _root.road._y;
_root.map_cf = _root.road._currentframe;
_root.map_cfp = _root.road.path._currentframe;
_root.map_cfe = _root.road.exits._currentframe;
_root.arrow_x = this._x;
_root.arrow_y = this._y;
}
_root.play();
} else {
_root.stop();
}
}
onClipEvent (mouseUp) {
delete mous_input;
delete _root.m_input;
}
onClipEvent (mouseDown) {
mous_input = 1;
_root.m_input = 1;
}
Instance of Symbol 142 MovieClip "targ" in Frame 3
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (this._x < Math.ceil((_root._xmouse / 48) * 48)) {
this._x = this._x + 48;
}
if (this._x > Math.ceil((_root._xmouse / 48) * 48)) {
this._x = this._x - 48;
}
if (this._y < Math.ceil((_root._ymouse / 48) * 48)) {
this._y = this._y + 48;
}
if (this._y > Math.ceil((_root._ymouse / 48) * 48)) {
this._y = this._y - 48;
}
}
Instance of Symbol 152 MovieClip "battlecode" in Frame 3
onClipEvent (load) {
if (_root.ply_healthmax == null) {
_root.ply_health = 9000;
_root.ply_healthmax = 9000;
}
}
onClipEvent (enterFrame) {
if (_root.ply_healthmax == null) {
_root.ply_health = 9000;
_root.ply_healthmax = 9000;
}
}
Instance of Symbol 158 MovieClip "txt" in Frame 3
onClipEvent (load) {
this.swapDepths(4000);
mapDialogue[21];
dialogue = new Array();
txtcap = 0;
read = 1;
txt = " ";
_visible = true;
dialogue[1] = "No, not this room";
dialogue[2] = "Lets get out of this room";
dialogue[3] = null;
dialogue[4] = "God dam, I need a smoke, just a bit farther tho....";
dialogue[5] = null;
dialogue[6] = "This is the final Haul! Don't Give up!";
dialogue[7] = "Corner Store here I come!!!";
dialogue[8] = "Thanks for your help, now I can uhhh.... Make a better game?... I dont really Smoke anymore..";
}
onClipEvent (enterFrame) {
if (line == null) {
line = _root.road.path._currentframe;
}
trace(_root._currentframe);
if (strtx == null) {
strtx = this._x;
}
if (_root._currentframe >= 4) {
this._x = -99999;
} else {
this._x = strtx;
}
if (Key.isDown(Key.getCode()) || (_root.m_input == 1)) {
if (txtstop == null) {
spdUp = 2.5;
}
diag_input = 1;
} else {
delete spdUp;
delete diag_input;
}
if (txtstop == 1) {
if ((diag_input == 1) && (spdUp == null)) {
read = 0;
line++;
delete txt_sign;
delete txtstop;
}
}
if (dialogue[line] == null) {
_visible = false;
} else {
_visible = true;
}
output = dialogue[line].toString();
if (read > dialogue[line].length) {
if (txt_sign == null) {
txt = txt + "..";
txt_sign = 1;
}
txtstop = 1;
} else if (read < dialogue[line].length) {
read = read + (0.8 + spdUp);
txt = output.slice(0, read).toString();
_root.soundeffect1.gotoAndStop(4);
}
}
Frame 4
stopAllSounds();
soundbgm.gotoAndStop(4);
function playerEfxAtk() {
if (efxTimer >= 2) {
delete efxTimer;
} else {
if (efxTimer == 1) {
_root._y = _root._y - 10;
}
if (efxTimer == 2) {
_root._y = _root._y + 10;
}
}
}
function chat(text, textLimit, textMaxLine) {
if (userLog == null) {
userLog = new Array();
z_Infotext_input = new Array();
}
var linLimit = 30;
linOutput = text;
var count = (count + 1);
z_Infotext_input.push(((name + "") + text) + count);
if (userLine >= textLimit) {
delete userLog[userLine - textLimit];
ch_display++;
userLine++;
userLog[userLine] = userLog[userLine] + linOutput;
} else if (userLine >= textMaxLine) {
ch_display++;
userLine++;
userLog[userLine] = userLog[userLine] + linOutput;
} else {
userLine++;
userLog[userLine] = userLog[userLine] + linOutput;
}
ch_display = _root.ch_display;
ch_display = userLine - textMaxLine;
chatOutput = ((((((((((((((((((((((userLog[1 + ch_display] + "<br>") + userLog[2 + ch_display]) + "<br>") + userLog[3 + ch_display]) + "<br>") + userLog[4 + ch_display]) + "<br>") + userLog[5 + ch_display]) + "<br>") + userLog[6 + ch_display]) + "<br>") + userLog[7 + ch_display]) + "<br>") + userLog[8 + ch_display]) + "<br>") + userLog[9 + ch_display]) + "<br>") + userLog[10 + ch_display]) + "<br>") + userLog[11 + ch_display]) + "<br>") + userLog[12 + ch_display]) + "<br>";
}
Instance of Symbol 170 MovieClip "mobA" in Frame 4
onClipEvent (load) {
if (_root.mobA.typem == null) {
_root.mobA.typem = Math.ceil(Math.random() * 2);
_root.mobB.typem = Math.ceil(Math.random() * 2);
_root.mobC.typem = Math.ceil(Math.random() * 2);
_root.mobD.typem = Math.ceil(Math.random() * 2);
}
}
Frame 13
stop();
Instance of Symbol 182 MovieClip "atk" in Frame 13
onClipEvent (mouseDown) {
if (_root.battleEnd == null) {
if (_root.dmgHt == 1) {
counter++;
_root.chat(((_parent.typemon + " received ") + _root.plydmg) + " damage", 30, 5);
_root.dmg.duplicateMovieClip("dmgx" + counter, 9000 + counter);
_root["dmgx" + counter].gotoAndStop(2);
_root["dmgx" + counter]._x = _root._xmouse;
_root["dmgx" + counter]._y = _root._ymouse;
delete _root.dmgHt;
}
_root.plydmg = (7 - this._currentframe) * 100;
this.gotoAndStop(atk);
atk = Math.ceil(Math.random() * 7);
delete atk.cht;
}
}
Instance of Symbol 152 MovieClip "battlecode" in Frame 13
onClipEvent (load) {
lvl_counter = 1;
_root.chat("The Battle Begins!!", 30, 5);
_root.road._x = _root.map_x;
_root.road._y = _root.map_y;
_root.road.gotoAndStop(_root.map_cf);
_root.obj._x = _root.arrow_x;
_root.obj._y = _root.arrow_y;
}
onClipEvent (enterFrame) {
if (_root.ply_health <= 0) {
_root.gotoAndStop("56");
}
_root.readout = (("player:" + _root.ply_health) + "/") + _root.ply_healthmax;
if (totalExp >= (1200 * lvl_counter)) {
lvl_counter++;
_root.chat("You have LEVELED UP", 30, 5);
_root.ply_health = _root.ply_healthmax;
_root.ply_healthmax = _root.ply_healthmax + (100 * lvl_counter);
_root.chat(("You now have " + _root.ply_healthmax) + "HP", 30, 5);
delete totalExp;
}
if ((((_root.mobA.behav == 0) && (_root.mobB.behav == 0)) && (_root.mobC.behav == 0)) && (_root.mobD.behav == 0)) {
if (bTimer >= 125) {
delete bTimer;
delete _root.battleEnd;
_root.gotoAndStop(_root._currentframe - 10);
_root.road._x = _root.map_x;
_root.road._y = _root.map_y;
_root.obj._x = _root.arrow_x;
_root.obj._y = _root.arrow_y;
} else {
bTimer++;
}
if (_root.battleEnd == null) {
stopAllSounds();
_root.soundbgm.gotoAndStop(5);
battleexp = Math.ceil(Math.random() * 500) * 4;
totalExp = totalExp + battleexp;
_root.chat(("You earned " + battleexp) + " experience!!", 30, 5);
_root.battleEnd = 1;
trace(totalExp);
_root.chat("You have Won the Battle!!!!", 30, 5);
}
}
if (_root.mobA.typem == null) {
_root.mobA.typem = Math.ceil(Math.random() * 2);
_root.mobB.typem = Math.ceil(Math.random() * 2);
_root.mobC.typem = Math.ceil(Math.random() * 2);
_root.mobD.typem = Math.ceil(Math.random() * 2);
}
if (_root.mobD.mobhealth <= 0) {
_root.mobD.behav = 6;
_root.mobD.gotoAndStop(_root.mobD.behav);
_root.mobD.behav = 0;
}
if (_root.mobC.mobhealth <= 0) {
_root.mobC.behav = 6;
_root.mobC.gotoAndStop(_root.mobC.behav);
_root.mobC.behav = 0;
}
if (_root.mobB.mobhealth <= 0) {
_root.mobB.behav = 6;
_root.mobB.gotoAndStop(_root.mobB.behav);
_root.mobB.behav = 0;
}
if (_root.mobA.mobhealth <= 0) {
_root.mobA.behav = 6;
_root.mobA.gotoAndStop(_root.mobA.behav);
_root.mobA.behav = 0;
}
if (_root.battTimer >= 30) {
if (_root.mobA.behav == 5) {
_root.mobA.behav = 0;
}
if (_root.mobB.behav == 5) {
_root.mobB.behav = 0;
}
if (_root.mobC.behav == 5) {
_root.mobC.behav = 0;
}
if (_root.mobD.behav == 5) {
_root.mobD.behav = 0;
}
if (_root.mobA.behav == 0) {
} else {
_root.mobA.behav = Math.ceil(Math.random() * 5);
}
if (_root.mobB.behav == 0) {
} else {
_root.mobB.behav = Math.ceil(Math.random() * 5);
}
if (_root.mobC.behav == 0) {
} else {
_root.mobC.behav = Math.ceil(Math.random() * 5);
}
if (_root.mobD.behav == 0) {
} else {
_root.mobD.behav = Math.ceil(Math.random() * 5);
}
_root.battTimer = 1;
_root.mobA.gotoAndStop(_root.mobA.behav);
_root.mobB.gotoAndStop(_root.mobB.behav);
_root.mobC.gotoAndStop(_root.mobC.behav);
_root.mobD.gotoAndStop(_root.mobD.behav);
} else {
_root.battTimer++;
}
}
Instance of Symbol 203 MovieClip in Frame 55
onClipEvent (enterFrame) {
if (_root.credits == 1) {
if (c_Timer >= 75) {
} else {
c_Timer++;
}
}
}
Symbol 5 MovieClip Frame 1
stop();
Symbol 5 MovieClip Frame 2
gotoAndStop (1);
Symbol 5 MovieClip Frame 3
gotoAndStop (1);
Symbol 5 MovieClip Frame 4
gotoAndStop (1);
Symbol 5 MovieClip Frame 5
gotoAndStop (1);
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 3
stop();
Symbol 128 MovieClip Frame 4
stop();
Symbol 128 MovieClip Frame 5
stop();
Symbol 128 MovieClip Frame 6
stop();
Symbol 128 MovieClip Frame 7
stop();
Symbol 128 MovieClip Frame 8
stop();
Symbol 128 MovieClip Frame 9
stop();
Symbol 128 MovieClip Frame 10
stop();
Symbol 131 MovieClip Frame 1
stop();
Instance of Symbol 130 MovieClip "f_exit" in Symbol 131 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.obj)) {
_root.road._x = _root.r_strtx;
_root.road._y = _root.r_strty;
_parent._parent.path.gotoAndStop(_parent._parent.path._currentframe + 1);
_parent._parent.exits.gotoAndStop(_parent._parent.exits._currentframe + 1);
}
}
Symbol 131 MovieClip Frame 2
stop();
Instance of Symbol 130 MovieClip "b_exit" in Symbol 131 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.obj)) {
if (_root.r_strtx == null) {
_root.r_strtx = _root.road._x;
_root.r_strty = _root.road._y - 48;
}
_root.road._x = _root.strtx;
_root.road._y = _root.strty;
_parent._parent.path.gotoAndStop(_parent._parent.path._currentframe - 1);
_parent._parent.exits.gotoAndStop(_parent._parent.exits._currentframe - 1);
}
}
Instance of Symbol 130 MovieClip "f_exit" in Symbol 131 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.obj)) {
_root.road._x = _root.strtx;
_root.road._y = _root.strty;
_parent._parent.path.gotoAndStop(_parent._parent.path._currentframe + 1);
_parent._parent.exits.gotoAndStop(_parent._parent.exits._currentframe + 1);
}
}
Symbol 131 MovieClip Frame 3
stop();
Symbol 131 MovieClip Frame 4
stop();
Symbol 131 MovieClip Frame 5
stop();
Symbol 131 MovieClip Frame 6
stop();
Symbol 131 MovieClip Frame 7
stop();
Symbol 132 MovieClip Frame 1
stop();
Instance of Symbol 128 MovieClip "path" in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
if (_root.map_cf == null) {
this.gotoAndStop(2);
}
}
Instance of Symbol 131 MovieClip "exits" in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
if (_root.map_cf == null) {
this.gotoAndStop(2);
}
}
Symbol 132 MovieClip Frame 2
stop();
Symbol 132 MovieClip Frame 3
stop();
Symbol 132 MovieClip Frame 4
stop();
Symbol 132 MovieClip Frame 5
stop();
Symbol 132 MovieClip Frame 6
stop();
Symbol 132 MovieClip Frame 7
stop();
Instance of Symbol 145 MovieClip in Symbol 148 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._width > ((_root.ply_health * 212) / _root.ply_healthmax)) {
this._width = this._width - 1;
}
}
Instance of Symbol 145 MovieClip in Symbol 148 MovieClip Frame 1
onClipEvent (enterFrame) {
trace(_root.ply_health);
this._width = (_root.ply_health * 212) / 9000;
}
Symbol 162 MovieClip Frame 1
_parent._parent._parent.typemon = "rat";
_parent._parent._parent.mobhealth = 400;
stop();
Instance of Symbol 160 MovieClip in Symbol 162 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_parent._parent._parent._parent.typem);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_parent._parent._parent._parent.typem);
}
Symbol 162 MovieClip Frame 2
_parent._parent._parent.typemon = "snake";
_parent._parent._parent.mobhealth = 800;
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 29
delete _parent.behav;
Instance of Symbol 162 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_parent.typem);
}
Symbol 166 MovieClip Frame 2
_root.chat((_parent.typemon + " ") + "is attacking..", 30, 5);
Symbol 166 MovieClip Frame 26
_root.player_dmg = 200;
_root.playerEfxAtk();
_root.chat(((_parent.typemon + " ") + "dealt ") + _root.player_dmg, 30, 5);
_root.ply_health = _root.ply_health - _root.player_dmg;
Symbol 166 MovieClip Frame 30
delete _parent.behav;
Instance of Symbol 162 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_parent.typem);
}
Symbol 168 MovieClip Frame 2
_root.chat((_parent.typemon + " ") + "has fled the battle..", 30, 5);
Symbol 168 MovieClip Frame 19
_parent.behav = 0;
Symbol 168 MovieClip Frame 20
stop();
Symbol 169 MovieClip Frame 2
_root.chat((_parent.typemon + "") + " has been slain..", 30, 5);
_root.soundEfx.gotoAndPlay(2);
_root.soundEfx.gotoAndPlay(2);
_root.soundEfx.gotoAndPlay(2);
Symbol 169 MovieClip Frame 19
_parent.behav = 0;
Symbol 169 MovieClip Frame 20
stop();
Symbol 170 MovieClip Frame 1
stop();
Instance of Symbol 164 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.atk) && (_root.dmgHt == null)) {
_parent.mobHealth = _parent.mobHealth - _root.plydmg;
_root.dmgHt = 1;
}
}
Symbol 170 MovieClip Frame 2
stop();
Symbol 170 MovieClip Frame 3
stop();
Symbol 170 MovieClip Frame 4
stop();
Symbol 170 MovieClip Frame 5
stop();
Symbol 170 MovieClip Frame 6
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
gotoAndStop (1);
Symbol 173 MovieClip Frame 3
gotoAndStop (1);
Symbol 173 MovieClip Frame 4
gotoAndStop (1);
Symbol 173 MovieClip Frame 5
gotoAndStop (1);
Symbol 177 MovieClip Frame 11
stop();
Symbol 180 MovieClip Frame 10
stop();
Symbol 181 MovieClip Frame 13
stop();
Symbol 182 MovieClip Frame 2
_root.chat("You Missed", 30, 5);
stop();
Symbol 182 MovieClip Frame 3
_root.chat("Critical Strike!!!", 30, 5);
_root.soundEfx.gotoAndPlay(2);
_root.soundEfx.gotoAndPlay(3);
stop();
Symbol 182 MovieClip Frame 4
_root.chat("Critical Strike!!!", 30, 5);
_root.soundEfx.gotoAndPlay(2);
_root.soundEfx.gotoAndPlay(3);
stop();
Symbol 182 MovieClip Frame 5
_root.soundEfx.gotoAndPlay(3);
stop();
Symbol 182 MovieClip Frame 6
_root.soundEfx.gotoAndPlay(3);
stop();
Symbol 182 MovieClip Frame 7
_root.soundEfx.gotoAndPlay(3);
stop();
Symbol 182 MovieClip Frame 8
_root.soundEfx.gotoAndPlay(3);
stop();
Instance of Symbol 190 MovieClip in Symbol 195 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._width > ((_root.ply_health * 422) / _root.ply_healthmax)) {
this._width = this._width - 1;
}
}
Instance of Symbol 192 MovieClip in Symbol 195 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = (_root.ply_health * 422) / 9000;
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
delete _root.atk.cht;
play();
Symbol 200 MovieClip Frame 3
delete _root.atk.cht;
Symbol 200 MovieClip Frame 4
delete _root.atk.cht;
Symbol 200 MovieClip Frame 5
delete _root.atk.cht;
Symbol 200 MovieClip Frame 6
delete _root.atk.cht;
Symbol 200 MovieClip Frame 7
delete _root.atk.cht;
Symbol 200 MovieClip Frame 8
delete _root.atk.cht;
Symbol 200 MovieClip Frame 9
delete _root.atk.cht;
Symbol 200 MovieClip Frame 10
delete _root.atk.cht;
Symbol 200 MovieClip Frame 11
delete _root.atk.cht;
Symbol 200 MovieClip Frame 12
delete _root.atk.cht;
Symbol 200 MovieClip Frame 13
delete _root.atk.cht;
Symbol 200 MovieClip Frame 14
delete _root.atk.cht;
Symbol 200 MovieClip Frame 15
delete _root.atk.cht;
Symbol 200 MovieClip Frame 16
delete _root.atk.cht;
removeMovieClip(this);
Symbol 203 MovieClip Frame 1
if (_root.ply_health <= 0) {
finalDial = "....I never escaped my basement apartment.... :( (G A M E O V E R )";
} else {
finalDial = "And so... I made it through the basement apartment full of rats and garbage to the 7-11 for an Iced Coffee, and decided to skip the fukkin smokes for once . Hahahahahaha Right on, GG <br> -Discolad";
}
if (reader == finalDial.length) {
_root.credits = 1;
}
reader++;
txt = finalDial.slice(0, reader).toString();