Frame 1
status_txt.text = "Loading...";
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentage = Math.ceil((loadedbytes / totalbytes) * 100);
if (percentage == 100) {
gotoAndPlay (3);
}
Frame 2
prevFrame();
Frame 4
stop();
Instance of Symbol 32 MovieClip in Frame 4
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.play();
}
}
Instance of Symbol 34 MovieClip in Frame 4
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("load");
}
}
Instance of Symbol 44 MovieClip in Frame 8
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 1;
_root.gotoAndPlay("new");
}
}
Instance of Symbol 46 MovieClip in Frame 8
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 2;
_root.gotoAndPlay("new");
}
}
Instance of Symbol 48 MovieClip in Frame 8
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 3;
_root.gotoAndPlay("new");
}
}
Instance of Symbol 44 MovieClip in Frame 10
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 1;
_root.gotoAndPlay("new");
}
}
Instance of Symbol 46 MovieClip in Frame 10
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 2;
_root.gotoAndPlay("new");
}
}
Instance of Symbol 48 MovieClip in Frame 10
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 3;
_root.gotoAndPlay("new");
}
}
Frame 12
stop();
Instance of Symbol 44 MovieClip in Frame 12
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 1;
_root.gotoAndPlay("new");
}
}
Instance of Symbol 46 MovieClip in Frame 12
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 2;
_root.gotoAndPlay("new");
}
}
Instance of Symbol 48 MovieClip in Frame 12
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 3;
_root.gotoAndPlay("new");
}
}
Instance of Symbol 44 MovieClip in Frame 14
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 1;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 46 MovieClip in Frame 14
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 2;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 48 MovieClip in Frame 14
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 3;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 44 MovieClip in Frame 16
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 1;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 46 MovieClip in Frame 16
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 2;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 48 MovieClip in Frame 16
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 3;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 44 MovieClip in Frame 18
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 1;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 46 MovieClip in Frame 18
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 2;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 48 MovieClip in Frame 18
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 3;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 44 MovieClip in Frame 20
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 1;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 46 MovieClip in Frame 20
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 2;
_root.gotoAndPlay("loaddick");
}
}
Instance of Symbol 48 MovieClip in Frame 20
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.filenumber = 3;
_root.gotoAndPlay("loaddick");
}
}
Frame 22
stop();
Frame 23
gotoAndPlay (25);
Frame 24
gotoAndPlay (46);
Frame 25
_root.blooddepth = 9113;
_root.bulletdepth = 9500;
_root.agility = 2;
_root.strength = 5;
_root.weaponsize = 10;
_root.maxhealth = 15;
_root.health = maxhealth;
_root.double = 0;
_root.speedbonus = 0;
_root.attackbonus = 0;
_root.stat = 20;
_root.skill = 2;
_root.level = 1;
_root.exp = 0;
_root.nextexp = 250;
_root.shifter = 0;
_root.money = 0;
_root.maxbutcher = 50;
_root.butcher = _root.maxbutcher;
_root.haveheal = 0;
_root.weaponshow = 1;
_root.haveone = 1;
_root.havetwo = 0;
_root.havethree = 0;
_root.havefour = 0;
_root.armorshow = 1;
_root.darkarmor = 0;
_root.lightarmor = 0;
_root.goldarmor = 0;
_root.potion = 0;
_root.potion2 = 0;
Frame 26
if (_root.filenumber == 1) {
var file1 = SharedObject.getLocal("file1");
file1.data.agility = _root.agility;
file1.data.strength = _root.strength;
file1.data.weaponsize = _root.weaponsize;
file1.data.maxhealth = _root.maxhealth;
file1.data.double = _root.double;
file1.data.speedbonus = _root.speedbonus;
file1.data.attackbonus = _root.attackbonus;
file1.data.stat = _root.stat;
file1.data.skill = _root.skill;
file1.data.level = _root.level;
file1.data.exp = _root.exp;
file1.data.nextexp = _root.nextexp;
file1.data.shifter = _root.shifter;
file1.data.money = _root.money;
file1.data.maxbutcher = _root.maxbutcher;
file1.data.haveheal = _root.haveheal;
file1.data.butcher = _root.butcher;
file1.data.weaponshow = _root.weaponshow;
file1.data.weaponshow = _root.weaponshow;
file1.data.havetwo = _root.havetwo;
file1.data.havethree = _root.havethree;
file1.data.havefour = _root.havefour;
file1.data.armorshow = _root.armorshow;
file1.data.goldarmor = _root.goldarmor;
file1.data.darkarmor = _root.darkarmor;
file1.data.lightarmor = _root.lightarmor;
file1.data.potion = _root.potion;
file1.data.potion2 = _root.potion2;
file1.flush();
}
if (_root.filenumber == 2) {
var file2 = SharedObject.getLocal("file2");
file2.data.agility = _root.agility;
file2.data.strength = _root.strength;
file2.data.weaponsize = _root.weaponsize;
file2.data.maxhealth = _root.maxhealth;
file2.data.double = _root.double;
file2.data.speedbonus = _root.speedbonus;
file2.data.attackbonus = _root.attackbonus;
file2.data.stat = _root.stat;
file2.data.skill = _root.skill;
file2.data.level = _root.level;
file2.data.exp = _root.exp;
file2.data.nextexp = _root.nextexp;
file2.data.shifter = _root.shifter;
file2.data.money = _root.money;
file2.data.maxbutcher = _root.maxbutcher;
file2.data.haveheal = _root.haveheal;
file2.data.butcher = _root.butcher;
file2.data.weaponshow = _root.weaponshow;
file2.data.weaponshow = _root.weaponshow;
file2.data.havetwo = _root.havetwo;
file2.data.havethree = _root.havethree;
file2.data.havefour = _root.havefour;
file2.data.armorshow = _root.armorshow;
file2.data.goldarmor = _root.goldarmor;
file2.data.darkarmor = _root.darkarmor;
file2.data.lightarmor = _root.lightarmor;
file2.data.potion = _root.potion;
file2.data.potion2 = _root.potion2;
file2.flush();
}
if (_root.filenumber == 3) {
var file3 = SharedObject.getLocal("file3");
file3.data.agility = _root.agility;
file3.data.strength = _root.strength;
file3.data.weaponsize = _root.weaponsize;
file3.data.maxhealth = _root.maxhealth;
file3.data.double = _root.double;
file3.data.speedbonus = _root.speedbonus;
file3.data.attackbonus = _root.attackbonus;
file3.data.stat = _root.stat;
file3.data.skill = _root.skill;
file3.data.level = _root.level;
file3.data.exp = _root.exp;
file3.data.nextexp = _root.nextexp;
file3.data.shifter = _root.shifter;
file3.data.money = _root.money;
file3.data.maxbutcher = _root.maxbutcher;
file3.data.haveheal = _root.haveheal;
file3.data.butcher = _root.butcher;
file3.data.weaponshow = _root.weaponshow;
file3.data.weaponshow = _root.weaponshow;
file3.data.havetwo = _root.havetwo;
file3.data.havethree = _root.havethree;
file3.data.havefour = _root.havefour;
file3.data.armorshow = _root.armorshow;
file3.data.goldarmor = _root.goldarmor;
file3.data.darkarmor = _root.darkarmor;
file3.data.lightarmor = _root.lightarmor;
file3.data.potion = _root.potion;
file3.data.potion2 = _root.potion2;
file3.flush();
}
Frame 39
stop();
Frame 40
_root.exprate = 2.5;
Instance of Symbol 84 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.exprate == 1.1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 84 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.exprate == 2.5) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 84 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.exprate == 4.5) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 41
stop();
Instance of Symbol 92 MovieClip in Frame 41
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
percentage = 30;
this.gotoAndStop(percentage);
}
Instance of Symbol 100 MovieClip in Frame 41
onClipEvent (enterFrame) {
percentage = 76;
this.gotoAndStop(percentage);
}
Frame 42
if (_root.filenumber == 1) {
var file1 = SharedObject.getLocal("file1");
file1.data.agility = _root.agility;
file1.data.strength = _root.strength;
file1.data.weaponsize = _root.weaponsize;
file1.data.maxhealth = _root.maxhealth;
file1.data.double = _root.double;
file1.data.speedbonus = _root.speedbonus;
file1.data.attackbonus = _root.attackbonus;
file1.data.stat = _root.stat;
file1.data.skill = _root.skill;
file1.data.level = _root.level;
file1.data.exp = _root.exp;
file1.data.nextexp = _root.nextexp;
file1.data.shifter = _root.shifter;
file1.data.money = _root.money;
file1.data.maxbutcher = _root.maxbutcher;
file1.data.haveheal = _root.haveheal;
file1.data.butcher = _root.butcher;
file1.data.weaponshow = _root.weaponshow;
file1.data.weaponshow = _root.weaponshow;
file1.data.havetwo = _root.havetwo;
file1.data.havethree = _root.havethree;
file1.data.havefour = _root.havefour;
file1.data.armorshow = _root.armorshow;
file1.data.goldarmor = _root.goldarmor;
file1.data.darkarmor = _root.darkarmor;
file1.data.lightarmor = _root.lightarmor;
file1.data.potion = _root.potion;
file1.data.potion2 = _root.potion2;
file1.data.health = _root.health;
file1.data.exprate = _root.exprate;
file1.flush();
}
if (_root.filenumber == 2) {
var file2 = SharedObject.getLocal("file2");
file2.data.agility = _root.agility;
file2.data.strength = _root.strength;
file2.data.weaponsize = _root.weaponsize;
file2.data.maxhealth = _root.maxhealth;
file2.data.double = _root.double;
file2.data.speedbonus = _root.speedbonus;
file2.data.attackbonus = _root.attackbonus;
file2.data.stat = _root.stat;
file2.data.skill = _root.skill;
file2.data.level = _root.level;
file2.data.exp = _root.exp;
file2.data.nextexp = _root.nextexp;
file2.data.shifter = _root.shifter;
file2.data.money = _root.money;
file2.data.maxbutcher = _root.maxbutcher;
file2.data.haveheal = _root.haveheal;
file2.data.butcher = _root.butcher;
file2.data.weaponshow = _root.weaponshow;
file2.data.weaponshow = _root.weaponshow;
file2.data.havetwo = _root.havetwo;
file2.data.havethree = _root.havethree;
file2.data.havefour = _root.havefour;
file2.data.armorshow = _root.armorshow;
file2.data.goldarmor = _root.goldarmor;
file2.data.darkarmor = _root.darkarmor;
file2.data.lightarmor = _root.lightarmor;
file2.data.potion = _root.potion;
file2.data.potion2 = _root.potion2;
file2.data.health = _root.health;
file2.data.exprate = _root.exprate;
file2.flush();
}
if (_root.filenumber == 3) {
var file3 = SharedObject.getLocal("file3");
file3.data.agility = _root.agility;
file3.data.strength = _root.strength;
file3.data.weaponsize = _root.weaponsize;
file3.data.maxhealth = _root.maxhealth;
file3.data.double = _root.double;
file3.data.speedbonus = _root.speedbonus;
file3.data.attackbonus = _root.attackbonus;
file3.data.stat = _root.stat;
file3.data.skill = _root.skill;
file3.data.level = _root.level;
file3.data.exp = _root.exp;
file3.data.nextexp = _root.nextexp;
file3.data.shifter = _root.shifter;
file3.data.money = _root.money;
file3.data.maxbutcher = _root.maxbutcher;
file3.data.haveheal = _root.haveheal;
file3.data.butcher = _root.butcher;
file3.data.weaponshow = _root.weaponshow;
file3.data.weaponshow = _root.weaponshow;
file3.data.havetwo = _root.havetwo;
file3.data.havethree = _root.havethree;
file3.data.havefour = _root.havefour;
file3.data.armorshow = _root.armorshow;
file3.data.goldarmor = _root.goldarmor;
file3.data.darkarmor = _root.darkarmor;
file3.data.lightarmor = _root.lightarmor;
file3.data.potion = _root.potion;
file3.data.potion2 = _root.potion2;
file3.data.health = _root.health;
file3.data.exprate = _root.exprate;
file3.flush();
}
stop();
Instance of Symbol 130 MovieClip in Frame 43
onClipEvent (enterFrame) {
percentage = Math.ceil((_root.butcher / _root.maxbutcher) * 100);
this.gotoAndStop(percentage);
if (_root.butcher > _root.maxbutcher) {
_root.butcher = _root.maxbutcher;
}
if (delay != 0) {
delay = delay - 1;
} else {
_root.butcher = _root.butcher + 1;
delay = 20;
}
}
onClipEvent (load) {
delay = 20;
}
Frame 44
if (_root.filenumber == 1) {
var file1 = SharedObject.getLocal("file1");
file1.data.agility = _root.agility;
file1.data.strength = _root.strength;
file1.data.weaponsize = _root.weaponsize;
file1.data.maxhealth = _root.maxhealth;
file1.data.double = _root.double;
file1.data.speedbonus = _root.speedbonus;
file1.data.attackbonus = _root.attackbonus;
file1.data.stat = _root.stat;
file1.data.skill = _root.skill;
file1.data.level = _root.level;
file1.data.exp = _root.exp;
file1.data.nextexp = _root.nextexp;
file1.data.shifter = _root.shifter;
file1.data.money = _root.money;
file1.data.maxbutcher = _root.maxbutcher;
file1.data.haveheal = _root.haveheal;
file1.data.butcher = _root.butcher;
file1.data.weaponshow = _root.weaponshow;
file1.data.weaponshow = _root.weaponshow;
file1.data.havetwo = _root.havetwo;
file1.data.havethree = _root.havethree;
file1.data.havefour = _root.havefour;
file1.data.armorshow = _root.armorshow;
file1.data.goldarmor = _root.goldarmor;
file1.data.darkarmor = _root.darkarmor;
file1.data.lightarmor = _root.lightarmor;
file1.data.potion = _root.potion;
file1.data.potion2 = _root.potion2;
file1.data.health = _root.health;
file1.data.exprate = _root.exprate;
file1.flush();
}
if (_root.filenumber == 2) {
var file2 = SharedObject.getLocal("file2");
file2.data.agility = _root.agility;
file2.data.strength = _root.strength;
file2.data.weaponsize = _root.weaponsize;
file2.data.maxhealth = _root.maxhealth;
file2.data.double = _root.double;
file2.data.speedbonus = _root.speedbonus;
file2.data.attackbonus = _root.attackbonus;
file2.data.stat = _root.stat;
file2.data.skill = _root.skill;
file2.data.level = _root.level;
file2.data.exp = _root.exp;
file2.data.nextexp = _root.nextexp;
file2.data.shifter = _root.shifter;
file2.data.money = _root.money;
file2.data.maxbutcher = _root.maxbutcher;
file2.data.haveheal = _root.haveheal;
file2.data.butcher = _root.butcher;
file2.data.weaponshow = _root.weaponshow;
file2.data.weaponshow = _root.weaponshow;
file2.data.havetwo = _root.havetwo;
file2.data.havethree = _root.havethree;
file2.data.havefour = _root.havefour;
file2.data.armorshow = _root.armorshow;
file2.data.goldarmor = _root.goldarmor;
file2.data.darkarmor = _root.darkarmor;
file2.data.lightarmor = _root.lightarmor;
file2.data.potion = _root.potion;
file2.data.potion2 = _root.potion2;
file2.data.health = _root.health;
file2.data.exprate = _root.exprate;
file2.flush();
}
if (_root.filenumber == 3) {
var file3 = SharedObject.getLocal("file3");
file3.data.agility = _root.agility;
file3.data.strength = _root.strength;
file3.data.weaponsize = _root.weaponsize;
file3.data.maxhealth = _root.maxhealth;
file3.data.double = _root.double;
file3.data.speedbonus = _root.speedbonus;
file3.data.attackbonus = _root.attackbonus;
file3.data.stat = _root.stat;
file3.data.skill = _root.skill;
file3.data.level = _root.level;
file3.data.exp = _root.exp;
file3.data.nextexp = _root.nextexp;
file3.data.shifter = _root.shifter;
file3.data.money = _root.money;
file3.data.maxbutcher = _root.maxbutcher;
file3.data.haveheal = _root.haveheal;
file3.data.butcher = _root.butcher;
file3.data.weaponshow = _root.weaponshow;
file3.data.weaponshow = _root.weaponshow;
file3.data.havetwo = _root.havetwo;
file3.data.havethree = _root.havethree;
file3.data.havefour = _root.havefour;
file3.data.armorshow = _root.armorshow;
file3.data.goldarmor = _root.goldarmor;
file3.data.darkarmor = _root.darkarmor;
file3.data.lightarmor = _root.lightarmor;
file3.data.potion = _root.potion;
file3.data.potion2 = _root.potion2;
file3.data.health = _root.health;
file3.data.exprate = _root.exprate;
file3.flush();
}
Frame 45
play();
Frame 46
_root.blooddepth = 9113;
_root.bulletdepth = 9500;
if (_root.filenumber == 1) {
var file1 = SharedObject.getLocal("file1");
_root.agility = file1.data.agility;
_root.strength = file1.data.strength;
_root.weaponsize = file1.data.weaponsize;
_root.maxhealth = file1.data.maxhealth;
_root.double = file1.data.double;
_root.speedbonus = file1.data.speedbonus;
_root.attackbonus = file1.data.attackbonus;
_root.stat = file1.data.stat;
_root.skill = file1.data.skill;
_root.level = file1.data.level;
_root.exp = file1.data.exp;
_root.nextexp = file1.data.nextexp;
_root.shifter = file1.data.shifter;
_root.money = file1.data.money;
_root.haveheal = file1.data.haveheal;
_root.maxbutcher = file1.data.maxbutcher;
_root.butcher = file1.data.butcher;
_root.weaponshow = file1.data.weaponshow;
_root.havetwo = file1.data.havetwo;
_root.havethree = file1.data.havethree;
_root.havefour = file1.data.havefour;
_root.armorshow = file1.data.armorshow;
_root.goldarmor = file1.data.goldarmor;
_root.health = file1.data.health;
_root.darkarmor = file1.data.darkarmor;
_root.lightarmor = file1.data.lightarmor;
_root.potion = file1.data.potion;
_root.potion2 = file1.data.potion2;
_root.exprate = file1.data.exprate;
}
if (_root.filenumber == 2) {
var file2 = SharedObject.getLocal("file2");
_root.agility = file2.data.agility;
_root.strength = file2.data.strength;
_root.weaponsize = file2.data.weaponsize;
_root.maxhealth = file2.data.maxhealth;
_root.double = file2.data.double;
_root.speedbonus = file2.data.speedbonus;
_root.attackbonus = file2.data.attackbonus;
_root.stat = file2.data.stat;
_root.skill = file2.data.skill;
_root.level = file2.data.level;
_root.exp = file2.data.exp;
_root.nextexp = file2.data.nextexp;
_root.health = file2.data.health;
_root.shifter = file2.data.shifter;
_root.money = file2.data.money;
_root.haveheal = file2.data.haveheal;
_root.maxbutcher = file2.data.maxbutcher;
_root.butcher = file2.data.butcher;
_root.weaponshow = file2.data.weaponshow;
_root.havetwo = file2.data.havetwo;
_root.havethree = file2.data.havethree;
_root.havefour = file2.data.havefour;
_root.armorshow = file2.data.armorshow;
_root.goldarmor = file2.data.goldarmor;
_root.darkarmor = file2.data.darkarmor;
_root.lightarmor = file2.data.lightarmor;
_root.potion = file2.data.potion;
_root.exprate = file2.data.exprate;
_root.potion2 = file2.data.potion2;
}
if (_root.filenumber == 3) {
var file3 = SharedObject.getLocal("file3");
_root.agility = file3.data.agility;
_root.strength = file3.data.strength;
_root.weaponsize = file3.data.weaponsize;
_root.maxhealth = file3.data.maxhealth;
_root.double = file3.data.double;
_root.speedbonus = file3.data.speedbonus;
_root.attackbonus = file3.data.attackbonus;
_root.stat = file3.data.stat;
_root.skill = file3.data.skill;
_root.level = file3.data.level;
_root.exp = file3.data.exp;
_root.health = file3.data.health;
_root.nextexp = file3.data.nextexp;
_root.shifter = file3.data.shifter;
_root.money = file3.data.money;
_root.haveheal = file3.data.haveheal;
_root.maxbutcher = file3.data.maxbutcher;
_root.butcher = file3.data.butcher;
_root.weaponshow = file3.data.weaponshow;
_root.havetwo = file3.data.havetwo;
_root.havethree = file3.data.havethree;
_root.havefour = file3.data.havefour;
_root.armorshow = file3.data.armorshow;
_root.goldarmor = file3.data.goldarmor;
_root.darkarmor = file3.data.darkarmor;
_root.lightarmor = file3.data.lightarmor;
_root.potion = file3.data.potion;
_root.potion2 = file3.data.potion2;
_root.exprate = file3.data.exprate;
}
Frame 48
_root.blooddepth = 9113;
_root.bulletdepth = 9500;
if (_root.filenumber == 1) {
var file1 = SharedObject.getLocal("file1");
_root.agility = file1.data.agility;
_root.strength = file1.data.strength;
_root.weaponsize = file1.data.weaponsize;
_root.maxhealth = file1.data.maxhealth;
_root.double = file1.data.double;
_root.speedbonus = file1.data.speedbonus;
_root.attackbonus = file1.data.attackbonus;
_root.stat = file1.data.stat;
_root.skill = file1.data.skill;
_root.level = file1.data.level;
_root.exp = file1.data.exp;
_root.nextexp = file1.data.nextexp;
_root.shifter = file1.data.shifter;
_root.money = file1.data.money;
_root.haveheal = file1.data.haveheal;
_root.maxbutcher = file1.data.maxbutcher;
_root.butcher = file1.data.butcher;
_root.weaponshow = file1.data.weaponshow;
_root.havetwo = file1.data.havetwo;
_root.havethree = file1.data.havethree;
_root.havefour = file1.data.havefour;
_root.armorshow = file1.data.armorshow;
_root.goldarmor = file1.data.goldarmor;
_root.health = file1.data.health;
_root.darkarmor = file1.data.darkarmor;
_root.lightarmor = file1.data.lightarmor;
_root.potion = file1.data.potion;
_root.potion2 = file1.data.potion2;
_root.version = file1.data.version;
}
if (_root.filenumber == 2) {
var file2 = SharedObject.getLocal("file2");
_root.agility = file2.data.agility;
_root.strength = file2.data.strength;
_root.weaponsize = file2.data.weaponsize;
_root.maxhealth = file2.data.maxhealth;
_root.double = file2.data.double;
_root.speedbonus = file2.data.speedbonus;
_root.attackbonus = file2.data.attackbonus;
_root.stat = file2.data.stat;
_root.skill = file2.data.skill;
_root.level = file2.data.level;
_root.exp = file2.data.exp;
_root.nextexp = file2.data.nextexp;
_root.health = file2.data.health;
_root.shifter = file2.data.shifter;
_root.money = file2.data.money;
_root.haveheal = file2.data.haveheal;
_root.maxbutcher = file2.data.maxbutcher;
_root.butcher = file2.data.butcher;
_root.weaponshow = file2.data.weaponshow;
_root.havetwo = file2.data.havetwo;
_root.havethree = file2.data.havethree;
_root.havefour = file2.data.havefour;
_root.armorshow = file2.data.armorshow;
_root.goldarmor = file2.data.goldarmor;
_root.darkarmor = file2.data.darkarmor;
_root.lightarmor = file2.data.lightarmor;
_root.potion = file2.data.potion;
_root.potion2 = file2.data.potion2;
_root.version = file2.data.version;
}
if (_root.filenumber == 3) {
var file3 = SharedObject.getLocal("file3");
_root.agility = file3.data.agility;
_root.strength = file3.data.strength;
_root.weaponsize = file3.data.weaponsize;
_root.maxhealth = file3.data.maxhealth;
_root.double = file3.data.double;
_root.speedbonus = file3.data.speedbonus;
_root.attackbonus = file3.data.attackbonus;
_root.stat = file3.data.stat;
_root.skill = file3.data.skill;
_root.level = file3.data.level;
_root.exp = file3.data.exp;
_root.health = file3.data.health;
_root.nextexp = file3.data.nextexp;
_root.shifter = file3.data.shifter;
_root.money = file3.data.money;
_root.haveheal = file3.data.haveheal;
_root.maxbutcher = file3.data.maxbutcher;
_root.butcher = file3.data.butcher;
_root.weaponshow = file3.data.weaponshow;
_root.havetwo = file3.data.havetwo;
_root.havethree = file3.data.havethree;
_root.havefour = file3.data.havefour;
_root.armorshow = file3.data.armorshow;
_root.goldarmor = file3.data.goldarmor;
_root.darkarmor = file3.data.darkarmor;
_root.lightarmor = file3.data.lightarmor;
_root.potion = file3.data.potion;
_root.potion2 = file3.data.potion2;
_root.version = file3.data.version;
}
Frame 68
_root.displayexp = (Math.ceil(_root.exp) + " / ") + Math.ceil(_root.nextexp);
Mouse.show();
stopAllSounds();
stop();
Instance of Symbol 173 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("weapon");
}
}
Instance of Symbol 175 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("agility");
}
}
Instance of Symbol 177 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("skills");
}
}
Instance of Symbol 179 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("strength");
}
}
Instance of Symbol 181 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("overall");
}
}
Instance of Symbol 183 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("next");
}
}
Instance of Symbol 195 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("shop");
}
}
Instance of Symbol 197 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("equip");
}
}
Frame 69
stop();
Instance of Symbol 224 MovieClip in Frame 69
onClipEvent (enterFrame) {
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 236 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("health");
}
}
Frame 70
stop();
Instance of Symbol 173 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("weapon");
}
}
Instance of Symbol 270 MovieClip in Frame 70
onClipEvent (load) {
wait = 50;
}
onClipEvent (enterFrame) {
if (wait >= 1) {
wait = wait - (_root.agility + _root.speedbonus);
} else {
wait = 50;
this.gotoAndPlay("attack1");
}
}
Frame 71
stop();
Instance of Symbol 274 MovieClip in Frame 71
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.nextFrame();
}
}
Instance of Symbol 84 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.double == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 84 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.shifter == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 175 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("agility");
}
}
Frame 72
stop();
Instance of Symbol 274 MovieClip in Frame 72
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.prevFrame();
}
}
Instance of Symbol 84 MovieClip in Frame 72
onClipEvent (enterFrame) {
if (_root.haveheal == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 73
_root.displayexp = (Math.ceil(_root.exp) + " / ") + Math.ceil(_root.nextexp);
Mouse.show();
stop();
Instance of Symbol 177 MovieClip in Frame 73
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("skills");
}
}
Instance of Symbol 321 MovieClip in Frame 73
onClipEvent (load) {
this.tail.stop();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.hitter)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
Instance of Symbol 270 MovieClip "player" in Frame 73
onClipEvent (load) {
wait = 50;
}
onClipEvent (enterFrame) {
if (wait >= 1) {
wait = wait - (_root.agility + _root.speedbonus);
} else {
wait = 50;
this.gotoAndPlay("attack1");
}
}
Instance of Symbol 323 MovieClip "blood" in Frame 73
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 325 MovieClip "damager" in Frame 73
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
removeMovieClip(this);
this._xscale = this._xscale - 1;
this._yscale = this._yscale - 1;
}
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
}
Frame 74
stop();
Instance of Symbol 179 MovieClip in Frame 74
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("strength");
}
}
Frame 75
_root.displayexp = (Math.ceil(_root.exp) + " / ") + Math.ceil(_root.nextexp);
Mouse.show();
stop();
Instance of Symbol 274 MovieClip in Frame 75
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.nextFrame();
}
}
Instance of Symbol 347 MovieClip in Frame 75
onClipEvent (load) {
levelname = "Dick's Shop";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
Instance of Symbol 347 MovieClip in Frame 75
onClipEvent (load) {
levelname = "Forest";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Instance of Symbol 347 MovieClip in Frame 75
onClipEvent (load) {
levelname = "Forest 2";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Instance of Symbol 347 MovieClip in Frame 75
onClipEvent (load) {
levelname = "Dick's Shop 2";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Instance of Symbol 347 MovieClip in Frame 75
onClipEvent (load) {
levelname = "Big Mouse of Doom";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Instance of Symbol 347 MovieClip in Frame 75
onClipEvent (load) {
levelname = "Town";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Instance of Symbol 181 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("overall");
}
}
Frame 76
_root.displayexp = (Math.ceil(_root.exp) + " / ") + Math.ceil(_root.nextexp);
Mouse.show();
stop();
Instance of Symbol 274 MovieClip in Frame 76
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.prevFrame();
}
}
Instance of Symbol 347 MovieClip in Frame 76
onClipEvent (load) {
levelname = "Orcs";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Instance of Symbol 347 MovieClip in Frame 76
onClipEvent (load) {
levelname = "Invasion of the Big Green Man";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Instance of Symbol 347 MovieClip in Frame 76
onClipEvent (load) {
levelname = "Edana";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Instance of Symbol 347 MovieClip in Frame 76
onClipEvent (load) {
levelname = "Real Town";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Instance of Symbol 347 MovieClip in Frame 76
onClipEvent (load) {
levelname = "Momma Spider";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Instance of Symbol 347 MovieClip in Frame 76
onClipEvent (load) {
levelname = "Dick's Shop";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("dickshop", 1);
}
}
Frame 77
stop();
Instance of Symbol 274 MovieClip in Frame 77
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.nextFrame();
}
}
Instance of Symbol 183 MovieClip in Frame 77
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("next");
}
}
Instance of Symbol 388 MovieClip in Frame 77
//component parameters
onClipEvent (construct) {
label = "Buy";
wide = 35;
c1 = 255;
c2 = 255;
c3 = 255;
hc1 = 200;
hc2 = 200;
hc3 = 200;
baseMode = true;
widthMode = true;
rgb = 16777215 /* 0xFFFFFF */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 13158600 /* 0xC8C8C8 */;
}
onClipEvent (enterFrame) {
if (_root.havetwo == 1) {
this._x = this._x + 50000;
this._y = this._y + 50000;
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.money >= 500)) {
_root.havetwo = 1;
_root.money = _root.money - 500;
}
}
Instance of Symbol 388 MovieClip in Frame 77
//component parameters
onClipEvent (construct) {
label = "Buy";
wide = 35;
c1 = 255;
c2 = 255;
c3 = 255;
hc1 = 200;
hc2 = 200;
hc3 = 200;
baseMode = true;
widthMode = true;
rgb = 16777215 /* 0xFFFFFF */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 13158600 /* 0xC8C8C8 */;
}
onClipEvent (enterFrame) {
if (_root.havethree == 1) {
this._x = this._x + 50000;
this._y = this._y + 50000;
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.money >= 1000)) {
_root.havethree = 1;
_root.money = _root.money - 1000;
}
}
Frame 78
stop();
Instance of Symbol 274 MovieClip in Frame 78
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.prevFrame();
}
}
Instance of Symbol 388 MovieClip in Frame 78
//component parameters
onClipEvent (construct) {
label = "Buy";
wide = 35;
c1 = 255;
c2 = 255;
c3 = 255;
hc1 = 200;
hc2 = 200;
hc3 = 200;
baseMode = true;
widthMode = true;
rgb = 16777215 /* 0xFFFFFF */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 13158600 /* 0xC8C8C8 */;
}
onClipEvent (enterFrame) {
if (_root.havefour == 1) {
this._x = this._x + 50000;
this._y = this._y + 50000;
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.money >= 2000)) {
_root.havefour = 1;
_root.money = _root.money - 2000;
}
}
Instance of Symbol 388 MovieClip in Frame 78
//component parameters
onClipEvent (construct) {
label = "Buy";
wide = 35;
c1 = 255;
c2 = 255;
c3 = 255;
hc1 = 200;
hc2 = 200;
hc3 = 200;
baseMode = true;
widthMode = true;
rgb = 16777215 /* 0xFFFFFF */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 13158600 /* 0xC8C8C8 */;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if ((this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.money >= 20)) && (_root.potion != 99)) {
_root.potion = _root.potion + 1;
_root.money = _root.money - 20;
}
}
Instance of Symbol 388 MovieClip in Frame 78
//component parameters
onClipEvent (construct) {
label = "Buy";
wide = 35;
c1 = 255;
c2 = 255;
c3 = 255;
hc1 = 200;
hc2 = 200;
hc3 = 200;
baseMode = true;
widthMode = true;
rgb = 16777215 /* 0xFFFFFF */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 13158600 /* 0xC8C8C8 */;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if ((this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.money >= 20)) && (_root.potion2 != 99)) {
_root.potion2 = _root.potion2 + 1;
_root.money = _root.money - 20;
}
}
Instance of Symbol 388 MovieClip in Frame 79
//component parameters
onClipEvent (construct) {
label = "Buy";
wide = 35;
c1 = 255;
c2 = 255;
c3 = 255;
hc1 = 200;
hc2 = 200;
hc3 = 200;
baseMode = true;
widthMode = true;
rgb = 16777215 /* 0xFFFFFF */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 13158600 /* 0xC8C8C8 */;
}
onClipEvent (enterFrame) {
if (_root.lightarmor == 1) {
this._x = this._x + 50000;
this._y = this._y + 50000;
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.money >= 500)) {
_root.lightarmor = 1;
_root.money = _root.money - 500;
}
}
Instance of Symbol 388 MovieClip in Frame 79
//component parameters
onClipEvent (construct) {
label = "Buy";
wide = 35;
c1 = 255;
c2 = 255;
c3 = 255;
hc1 = 200;
hc2 = 200;
hc3 = 200;
baseMode = true;
widthMode = true;
rgb = 16777215 /* 0xFFFFFF */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 13158600 /* 0xC8C8C8 */;
}
onClipEvent (enterFrame) {
if (_root.darkarmor == 1) {
this._x = this._x + 50000;
this._y = this._y + 50000;
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.money >= 1000)) {
_root.darkarmor = 1;
_root.money = _root.money - 1000;
}
}
Instance of Symbol 274 MovieClip in Frame 80
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.prevFrame();
}
}
Instance of Symbol 388 MovieClip in Frame 80
//component parameters
onClipEvent (construct) {
label = "Buy";
wide = 35;
c1 = 255;
c2 = 255;
c3 = 255;
hc1 = 200;
hc2 = 200;
hc3 = 200;
baseMode = true;
widthMode = true;
rgb = 16777215 /* 0xFFFFFF */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 13158600 /* 0xC8C8C8 */;
}
onClipEvent (enterFrame) {
if (_root.goldarmor == 1) {
this._x = this._x + 50000;
this._y = this._y + 50000;
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.money >= 2000)) {
_root.goldarmor = 1;
_root.money = _root.money - 2000;
}
}
Frame 81
stop();
_root.haveone = 1;
Instance of Symbol 399 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (_root.weaponshow == 5) {
this._alpha = 100;
} else {
this._alpha = 50;
}
if (_root.havefour == 0) {
this._alpha = 0;
}
}
onClipEvent (mouseDown) {
if ((_root.havefour == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.weaponshow = 5;
}
}
Instance of Symbol 211 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (_root.weaponshow == 1) {
this._alpha = 100;
} else {
this._alpha = 50;
}
if (_root.haveone == 0) {
this._alpha = 0;
}
}
onClipEvent (mouseDown) {
if ((_root.haveone == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.weaponshow = 1;
}
}
Instance of Symbol 213 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (_root.weaponshow == 2) {
this._alpha = 100;
} else {
this._alpha = 50;
}
if (_root.havetwo == 0) {
this._alpha = 0;
}
}
onClipEvent (mouseDown) {
if ((_root.havetwo == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.weaponshow = 2;
}
}
Instance of Symbol 215 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (_root.weaponshow == 3) {
this._alpha = 100;
} else {
this._alpha = 50;
}
if (_root.havethree == 0) {
this._alpha = 0;
}
}
onClipEvent (mouseDown) {
if ((_root.havethree == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.weaponshow = 3;
}
}
Instance of Symbol 431 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (_root.armorshow == 4) {
this._alpha = 100;
} else {
this._alpha = 50;
}
if (_root.goldarmor == 0) {
this._alpha = 0;
}
}
onClipEvent (mouseDown) {
if ((_root.goldarmor == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.armorshow = 4;
}
}
Instance of Symbol 433 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (_root.armorshow == 3) {
this._alpha = 100;
} else {
this._alpha = 50;
}
if (_root.darkarmor == 0) {
this._alpha = 0;
}
}
onClipEvent (mouseDown) {
if ((_root.darkarmor == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.armorshow = 3;
}
}
Instance of Symbol 435 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (_root.armorshow == 2) {
this._alpha = 100;
} else {
this._alpha = 50;
}
if (_root.lightarmor == 0) {
this._alpha = 0;
}
}
onClipEvent (mouseDown) {
if ((_root.lightarmor == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.armorshow = 2;
}
}
Instance of Symbol 437 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (_root.armorshow == 1) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.armorshow = 1;
}
}
Instance of Symbol 195 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 90;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("shop");
}
}
Frame 82
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 323 MovieClip "blood" in Frame 82
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 82
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 82
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
removeMovieClip(this);
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 321 MovieClip in Frame 82
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 75;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
strength = 1;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + 70;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 82
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 175;
strength = 1;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 82
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 75;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
strength = 1;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + 70;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 82
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 75;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
strength = 1;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + 70;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 82
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 175;
strength = 1;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 82
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 175;
strength = 1;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 82
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 175;
strength = 1;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 82
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 175;
strength = 1;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 82
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 175;
strength = 1;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 82
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 175;
strength = 1;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 449 MovieClip in Frame 82
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 82
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 82
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 82
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 466 MovieClip in Frame 82
onClipEvent (load) {
health = 500;
maxhealth = 500;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player.area) && (Key.isDown(32))) && (_root.ratkill >= 1)) {
_root.ratkill = _root.ratkill - 1;
_root.money = _root.money + 5;
_root.message = "Current Money: $" + _root.money;
} else if ((this.hitTest(_root.player.area) && (Key.isDown(32))) && (_root.ratkill == 0)) {
_root.message = "$5 for every rat!";
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
if (this.hitTest(_root.player.hitter)) {
_root.message = "Don't hit me! Hit the rats!";
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
damage = ((10 + _root.strength) + (_root.weaponsize / 2)) + (random(5) / 2);
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
}
Instance of Symbol 469 MovieClip "camera" in Frame 82
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 471 MovieClip "boundry" in Frame 82
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 475 MovieClip in Frame 82
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 82
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 83
gotoAndPlay (68);
Frame 84
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 323 MovieClip "blood" in Frame 84
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 84
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 84
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
removeMovieClip(this);
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 321 MovieClip in Frame 84
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 175;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 84
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 175;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 84
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 175;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 84
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 175;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 84
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 175;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 84
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 175;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner3._x + random(60);
respawny = _root.spawner3._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 84
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 175;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner3._x + random(60);
respawny = _root.spawner3._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 84
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 175;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner3._x + random(60);
respawny = _root.spawner3._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 84
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 175;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner3._x + random(60);
respawny = _root.spawner3._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 321 MovieClip in Frame 84
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 1 + random(2);
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 175;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner3._x + random(60);
respawny = _root.spawner3._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 449 MovieClip in Frame 84
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 84
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 84
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 84
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 466 MovieClip in Frame 84
onClipEvent (load) {
health = 500;
maxhealth = 500;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player.area) && (Key.isDown(32))) && (_root.ratkill >= 1)) {
_root.ratkill = _root.ratkill - 1;
_root.money = _root.money + 5;
_root.message = "Current Money: $" + _root.money;
} else if ((this.hitTest(_root.player.area) && (Key.isDown(32))) && (_root.ratkill == 0)) {
_root.message = "$5 for every rat!";
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
if (this.hitTest(_root.player.hitter)) {
_root.message = "Don't hit me! Hit the rats!";
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
damage = ((10 + _root.strength) + (_root.weaponsize / 2)) + (random(5) / 2);
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
}
Instance of Symbol 469 MovieClip "camera" in Frame 84
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 508 MovieClip "boundry" in Frame 84
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 475 MovieClip in Frame 84
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 84
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 85
gotoAndPlay (68);
Frame 86
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 323 MovieClip "blood" in Frame 86
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 86
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 86
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
removeMovieClip(this);
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 516 MovieClip in Frame 86
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 86
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 86
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 86
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 86
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 86
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 86
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 86
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 86
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 86
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 449 MovieClip in Frame 86
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 86
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 86
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack.gotoAndStop(_root.weaponshow);
this.attack2.gotoAndStop(_root.weaponshow);
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 86
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 469 MovieClip "camera" in Frame 86
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 521 MovieClip "boundry" in Frame 86
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 523 MovieClip in Frame 86
onClipEvent (load) {
night = random(2);
}
onClipEvent (enterFrame) {
if (night == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 475 MovieClip in Frame 86
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 86
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 87
gotoAndPlay (68);
Frame 88
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 323 MovieClip "blood" in Frame 88
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 88
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 88
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
removeMovieClip(this);
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 516 MovieClip in Frame 88
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 88
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 88
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 88
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 300;
strength = 5;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 88
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 800;
strength = 20;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 88
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 800;
strength = 20;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 88
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 800;
strength = 20;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 516 MovieClip in Frame 88
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 800;
strength = 20;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 449 MovieClip in Frame 88
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 88
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 88
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 88
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 469 MovieClip "camera" in Frame 88
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 525 MovieClip "boundry" in Frame 88
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 526 MovieClip in Frame 88
onClipEvent (load) {
night = random(2);
}
onClipEvent (enterFrame) {
if (night == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 475 MovieClip in Frame 88
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 88
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 89
gotoAndPlay (68);
Frame 90
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 323 MovieClip "blood" in Frame 90
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 90
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 90
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
removeMovieClip(this);
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 449 MovieClip in Frame 90
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 90
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 90
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 90
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 516 MovieClip in Frame 90
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 8;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 55;
maxhealth = 12000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
spider_attack = new Sound();
spider_attack.attachSound("spider_attack");
spider_hurt = new Sound();
spider_hurt.attachSound("spider_hurt");
spider_die = new Sound();
spider_die.attachSound("spider_die");
spider_attack.setVolume(5);
spider_hurt.setVolume(5);
spider_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
spider_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
spider_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
spider_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 469 MovieClip "camera" in Frame 90
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 527 MovieClip "boundry" in Frame 90
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 526 MovieClip in Frame 90
onClipEvent (load) {
night = random(2);
}
onClipEvent (enterFrame) {
if (night == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 475 MovieClip in Frame 90
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 90
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 91
gotoAndPlay (68);
Frame 92
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 323 MovieClip "blood" in Frame 92
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 92
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 92
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
this.gotoAndPlay(1);
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
this.gotoAndStop("end");
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 449 MovieClip in Frame 92
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 92
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 92
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 92
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 532 MovieClip in Frame 92
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 35;
maxhealth = 1000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 532 MovieClip in Frame 92
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 35;
maxhealth = 1000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 532 MovieClip in Frame 92
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 35;
maxhealth = 1000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 532 MovieClip in Frame 92
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 35;
maxhealth = 1000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 469 MovieClip "camera" in Frame 92
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 534 MovieClip "boundry" in Frame 92
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 523 MovieClip in Frame 92
onClipEvent (load) {
night = random(2);
}
onClipEvent (enterFrame) {
if (night == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 475 MovieClip in Frame 92
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 92
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 93
gotoAndPlay (68);
Frame 94
_root.boarkill = 0;
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 323 MovieClip "blood" in Frame 94
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 94
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 94
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
this.gotoAndPlay(1);
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
this.gotoAndStop("end");
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 542 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 4;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 3;
maxhealth = 300;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(5);
rat_hurt.setVolume(5);
rat_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 449 MovieClip in Frame 94
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 94
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 94
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 94
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 544 MovieClip in Frame 94
onClipEvent (load) {
health = 500;
maxhealth = 500;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player.area) && (Key.isDown(32))) && (_root.boarkill == 0)) {
_root.message = "Kill boars for me, I'll give you $20 a kill.";
} else if ((this.hitTest(_root.player.area) && (Key.isDown(32))) && (_root.boarkill >= 1)) {
_root.boarkill = _root.boarkill - 1;
_root.money = _root.money + 20;
_root.message = "Current Money: $" + _root.money;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
if (this.hitTest(_root.player.hitter)) {
_root.message = "Don't hit me! Hit the rats!";
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
damage = ((10 + _root.strength) + (_root.weaponsize / 2)) + (random(5) / 2);
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
}
Instance of Symbol 549 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 500;
strength = 7;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 10;
delay = delayback;
boar_attack = new Sound();
boar_attack.attachSound("boar_attack");
boar_hurt = new Sound();
boar_hurt.attachSound("boar_hurt");
boar_die = new Sound();
boar_die.attachSound("boar_die");
boar_attack.setVolume(5);
boar_hurt.setVolume(5);
boar_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
boar_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
boar_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
boar_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
boar_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 549 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 500;
strength = 7;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 10;
delay = delayback;
boar_attack = new Sound();
boar_attack.attachSound("boar_attack");
boar_hurt = new Sound();
boar_hurt.attachSound("boar_hurt");
boar_die = new Sound();
boar_die.attachSound("boar_die");
boar_attack.setVolume(5);
boar_hurt.setVolume(5);
boar_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
boar_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
boar_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
boar_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
boar_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 549 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 500;
strength = 7;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 10;
delay = delayback;
boar_attack = new Sound();
boar_attack.attachSound("boar_attack");
boar_hurt = new Sound();
boar_hurt.attachSound("boar_hurt");
boar_die = new Sound();
boar_die.attachSound("boar_die");
boar_attack.setVolume(5);
boar_hurt.setVolume(5);
boar_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
boar_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
boar_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
boar_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
boar_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 549 MovieClip in Frame 94
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 500;
strength = 7;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 10;
delay = delayback;
boar_attack = new Sound();
boar_attack.attachSound("boar_attack");
boar_hurt = new Sound();
boar_hurt.attachSound("boar_hurt");
boar_die = new Sound();
boar_die.attachSound("boar_die");
boar_attack.setVolume(5);
boar_hurt.setVolume(5);
boar_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
boar_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
boar_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
boar_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
boar_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 469 MovieClip "camera" in Frame 94
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 552 MovieClip "boundry" in Frame 94
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 523 MovieClip in Frame 94
onClipEvent (load) {
night = random(2);
}
onClipEvent (enterFrame) {
if (night == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 475 MovieClip in Frame 94
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 94
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 95
gotoAndPlay (68);
Frame 96
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 323 MovieClip "blood" in Frame 96
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 96
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 96
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
removeMovieClip(this);
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 449 MovieClip in Frame 96
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 96
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 96
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 96
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 532 MovieClip in Frame 96
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
maxhealth = 50000;
strength = 100;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 469 MovieClip "camera" in Frame 96
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 554 MovieClip "boundry" in Frame 96
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 523 MovieClip in Frame 96
onClipEvent (load) {
night = random(2);
}
onClipEvent (enterFrame) {
if (night == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 475 MovieClip in Frame 96
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 96
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 97
gotoAndPlay (68);
Frame 98
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 323 MovieClip "blood" in Frame 98
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 98
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 98
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
removeMovieClip(this);
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 555 MovieClip in Frame 98
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speed = 7;
maxhealth = 3000;
moving = false;
followed = _root.player;
health = maxhealth;
died = 0;
strength = 15;
exp = ((speed * speed) * strength) + maxhealth;
delayback = 20;
delay = delayback;
rat_attack = new Sound();
rat_attack.attachSound("rat_attack");
rat_hurt = new Sound();
rat_hurt.attachSound("rat_hurt");
rat_die = new Sound();
rat_die.attachSound("rat_die");
rat_attack.setVolume(25);
rat_hurt.setVolume(25);
rat_die.setVolume(25);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
speed = 7;
followed = _root.player;
this.tail.play();
} else {
speed = 0;
this.tail.stop();
followed = _root.spawner2;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
rat_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
rat_attack.start();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.buff;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
rat_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
Instance of Symbol 449 MovieClip in Frame 98
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 98
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 98
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 98
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 466 MovieClip in Frame 98
onClipEvent (load) {
health = 500;
maxhealth = 500;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player.area) && (Key.isDown(32))) && (_root.ratkill >= 1)) {
_root.ratkill = _root.ratkill - 1;
_root.money = _root.money + 150;
_root.message = "Current Money: $" + _root.money;
} else if ((this.hitTest(_root.player.area) && (Key.isDown(32))) && (_root.ratkill == 0)) {
_root.message = "Big mouse for $150";
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
if (this.hitTest(_root.player.hitter)) {
_root.message = "Don't hit me! Hit the rats!";
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
damage = ((10 + _root.strength) + (_root.weaponsize / 2)) + (random(5) / 2);
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
}
Instance of Symbol 469 MovieClip "camera" in Frame 98
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 471 MovieClip "boundry" in Frame 98
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 475 MovieClip in Frame 98
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 98
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 99
gotoAndPlay (68);
Frame 100
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 558 MovieClip "boundry2" in Frame 100
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 323 MovieClip "blood" in Frame 100
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 100
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 100
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
removeMovieClip(this);
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 449 MovieClip in Frame 100
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 100
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 100
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 100
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 532 MovieClip in Frame 100
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
strength = 20;
this._rotation = random(360);
maxhealth = 1000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 532 MovieClip in Frame 100
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 25;
maxhealth = 2000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 532 MovieClip in Frame 100
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 25;
maxhealth = 2000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 532 MovieClip in Frame 100
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 25;
maxhealth = 2000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 532 MovieClip in Frame 100
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 25;
maxhealth = 2000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 532 MovieClip in Frame 100
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
strength = 20;
this._rotation = random(360);
maxhealth = 1000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 532 MovieClip in Frame 100
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
strength = 20;
this._rotation = random(360);
maxhealth = 1000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 532 MovieClip in Frame 100
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
strength = 20;
this._rotation = random(360);
maxhealth = 1000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner2._x + random(60);
respawny = _root.spawner2._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
speed = speedback;
followed = _root.player;
this.tail.play();
spotplayer = 0;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (delay <= 0)) {
orc_attack.start();
this.tail.stop();
followed = _root.player;
_root.health = _root.health - (strength / _root.def);
delay = delayback;
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 469 MovieClip "camera" in Frame 100
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 559 MovieClip "boundry" in Frame 100
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 526 MovieClip in Frame 100
onClipEvent (load) {
night = random(2);
}
onClipEvent (enterFrame) {
if (night == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 475 MovieClip in Frame 100
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 100
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 101
gotoAndPlay (68);
Frame 102
stop();
_root.dead = 0;
_root.ratkill = 0;
_root.buff = 0;
Instance of Symbol 323 MovieClip "blood" in Frame 102
onClipEvent (load) {
this._x = _root.gotox;
this._y = _root.gotoy;
alive = 50;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (alive != 0) {
alive = alive - 1;
} else {
removeMovieClip(this);
}
}
Instance of Symbol 272 MovieClip "slash" in Frame 102
onClipEvent (load) {
this._rotation = _root.player._rotation;
this._x = _root.player._x;
this._y = _root.player._y;
this._xscale = (_root.weaponsize + 100) / 1.4;
this._yscale = (_root.weaponsize + 100) / 1.4;
}
Instance of Symbol 325 MovieClip "damager" in Frame 102
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
damage = _root.damagedealt;
this._x = _root.gotox;
this._y = _root.gotoy;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0) {
removeMovieClip(this);
this._x = this._x + 50000;
this._y = this._y + 50000;
} else {
this._x = this._x + random(5);
this._y = this._y + random(5);
this._x = this._x - random(5);
this._y = this._y - random(5);
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 449 MovieClip in Frame 102
onClipEvent (load) {
_root.player._x = this._x;
_root.player._y = this._y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.message = "Press SPACE to return to the main menu!";
}
if (this.hitTest(_root.player._x, _root.player._y, true) && (Key.isDown(32))) {
_root.play();
}
}
Instance of Symbol 458 MovieClip "playerfeet" in Frame 102
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
if (((Key.isDown(83) || (Key.isDown(87))) || (Key.isDown(65))) || (Key.isDown(68))) {
this._visible = true;
play();
} else {
this._visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == 1) {
this._visible = false;
stop();
}
if (Key.isDown(68)) {
this._rotation = 90;
}
if (Key.isDown(65)) {
this._rotation = 270;
}
if (Key.isDown(87)) {
this._rotation = 0;
}
if (Key.isDown(83)) {
this._rotation = 180;
}
}
Instance of Symbol 462 MovieClip "player" in Frame 102
onClipEvent (enterFrame) {
this.attack._xscale = _root.weaponsize + 100;
this.attack._yscale = _root.weaponsize + 100;
this.attack2._xscale = _root.weaponsize + 100;
this.attack2._yscale = _root.weaponsize + 100;
this.hitter._xscale = _root.weaponsize + 100;
this.hitter._yscale = _root.weaponsize + 100;
if (_root.blooddepth >= 9130) {
_root.blooddepth = 9113;
}
if (_root.blooddepth >= 9520) {
_root.blooddepth = 9500;
}
this._rotation = (-Math.atan2(_x - _parent._xmouse, _y - _parent._ymouse)) / 0.017;
}
onClipEvent (keyDown) {
if (((Key.isDown(16) && (_root.butcher >= 10)) && (_root.shifter == 1)) && (_root.dead == 0)) {
this.gotoAndPlay("shifter");
}
}
onClipEvent (mouseDown) {
if ((wait <= 0) && (_root.dead == 0)) {
wait = 50;
this.gotoAndPlay("attack1");
}
}
onClipEvent (load) {
_root.moveSpeed = 8 + (_root.agility / 4);
_root.pause = 0;
wait = 50;
}
onClipEvent (enterFrame) {
if ((wait != 0) && (_root.dead == 0)) {
wait = wait - (_root.agility + _root.speedbonus);
}
if ((Key.isDown(87) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y - _root.moveSpeed;
}
if ((Key.isDown(83) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._y = _root.player._y + _root.moveSpeed;
}
if ((Key.isDown(65) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x - _root.moveSpeed;
}
if ((Key.isDown(68) && (_root.pause == 0)) && (_root.dead == 0)) {
_root.player._x = _root.player._x + _root.moveSpeed;
}
if ((Key.isDown(49) && (_root.haveheal == 1)) && (_root.butcher >= 25)) {
_root.butcher = _root.butcher - 25;
_root.health = _root.health + 25;
}
}
Instance of Symbol 464 MovieClip "playerarea" in Frame 102
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 564 MovieClip in Frame 102
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 5;
maxhealth = 150502430000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (Key.isDown(32))) {
_root.message = "Do you know where my wife is?";
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 566 MovieClip in Frame 102
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 5;
maxhealth = 150502430000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (Key.isDown(32))) {
_root.message = "I want some food..";
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 568 MovieClip in Frame 102
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 5;
maxhealth = 150502430000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (Key.isDown(32))) {
_root.message = "Do you know where the bar is?";
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 544 MovieClip in Frame 102
onClipEvent (load) {
health = 500;
maxhealth = 500;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.area) && (Key.isDown(32))) {
_root.message = "Welcome to town.";
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
if (this.hitTest(_root.player.hitter)) {
_root.message = "Don't hit me!";
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
damage = ((10 + _root.strength) + (_root.weaponsize / 2)) + (random(5) / 2);
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
}
Instance of Symbol 544 MovieClip in Frame 102
onClipEvent (load) {
health = 500;
maxhealth = 500;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.area) && (Key.isDown(32))) {
_root.message = "There are no ladies here..";
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
if (this.hitTest(_root.player.hitter)) {
_root.message = "Don't hit me!";
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
damage = ((10 + _root.strength) + (_root.weaponsize / 2)) + (random(5) / 2);
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
}
Instance of Symbol 564 MovieClip in Frame 102
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 5;
maxhealth = 150502430000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (Key.isDown(32))) {
_root.message = "Hmmm... chicken..";
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 564 MovieClip in Frame 102
onClipEvent (load) {
rad = 0.0174532925199433 /* Math.PI/180 */;
speedback = 6;
speed = speedback;
walkingspeed = speedback / 2;
this._rotation = random(360);
strength = 5;
maxhealth = 150502430000;
exp = ((speedback * speedback) * strength) + maxhealth;
moving = false;
respawnx = _root.spawner._x + random(60);
respawny = _root.spawner._y + random(60);
followed = _root.player;
health = maxhealth;
died = 0;
spotplayer = 1;
delayback = 20;
delay = delayback;
orc_attack = new Sound();
orc_attack.attachSound("orc_attack");
orc_hurt = new Sound();
orc_hurt.attachSound("orc_hurt");
orc_die = new Sound();
orc_die.attachSound("orc_die");
orc_attack.setVolume(5);
orc_hurt.setVolume(5);
orc_die.setVolume(5);
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.finder)) {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
} else {
speed = walkingspeed;
spotplayer = 1;
followed = dd;
}
if (_root.boundry.hitTest(this._x, this._y, true)) {
this._x = prevx;
this._y = prevy;
} else {
prevx = this._x;
prevy = this._y;
}
if (_root.boundry.hitTest(this._x, this._y, true) && (spotplayer == 1)) {
this._rotation = this._rotation - 180;
}
if (delay != 0) {
delay = delay - 1;
}
if ((health <= 0) && (died == 0)) {
orc_die.start();
_root.exp = _root.exp + exp;
died = 1;
play();
}
if (spotplayer == 0) {
mcx = _x - followed._x;
mcy = _y - followed._y;
_rotation = ((-Math.atan2(mcx, mcy)) / rad);
mr = _rotation * rad;
}
if (died == 1) {
speed = 0;
}
if (Math.sqrt((mcx * mcx) + (mcy * mcy)) > speed) {
_y = (_y - (speed * Math.cos(mr)));
_x = (_x - (-(speed * Math.sin(mr))));
} else {
_x = followed._x;
_y = followed._y;
}
if (this.area.hitTest(_root.player.area) && (Key.isDown(32))) {
_root.message = "What do ya want?";
}
if (this.area.hitTest(_root.player.hitter) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) + _root.weaponaddon;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
trace("dick");
}
if ((this.hitTest(_root.player.attack) && (_root.double == 1)) && (died == 0)) {
orc_hurt.start();
damage = (((10 + _root.strength) + (_root.weaponsize / 2)) + random(5)) / 2;
health = health - damage;
_root.damagedealt = damage;
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.blood, _root.blooddepth, _root.blooddepth);
_root.blooddepth = _root.blooddepth + 1;
_root.gotox = this._x;
_root.gotoy = this._y;
duplicateMovieClip (_root.damager, _root.blooddepth, _root.blooddepth);
}
}
onClipEvent (enterFrame) {
if (spotplayer == 1) {
mY = speed * Math.cos((Math.PI/180) * _rotation);
mX = speed * Math.sin((Math.PI/180) * _rotation);
}
if (_rotation > 180) {
_y = (_y + mY);
_x = (_x - mX);
} else {
_y = (_y - mY);
_x = (_x + mX);
}
shcd++;
if (shcd >= omg) {
if (blim) {
blim = 0;
shcd = 0;
omg = random(20) + 15;
} else {
blim = 1;
shcd = 0;
omg = random(20) + 15;
}
}
if (blim) {
_rotation = (_rotation + 5);
} else {
_rotation = (_rotation - 5);
}
}
Instance of Symbol 469 MovieClip "camera" in Frame 102
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 6);
this._y = this._y + ((_root.player._y - this._y) / 6);
this._x = this._x + ((_root._xmouse - this._x) / 12);
this._y = this._y + ((_root._ymouse - this._y) / 12);
}
onClipEvent (mouseDown) {
this._x = this._x + random(10);
this._y = this._y + random(10);
this._y = this._y - random(10);
this._x = this._x - random(10);
}
Instance of Symbol 571 MovieClip "boundry" in Frame 102
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = prevx;
_root.player._y = prevy;
} else {
prevx = _root.player._x;
prevy = _root.player._y;
}
}
Instance of Symbol 523 MovieClip in Frame 102
onClipEvent (load) {
night = random(2);
}
onClipEvent (enterFrame) {
if (night == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 475 MovieClip in Frame 102
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this.area.hitTest(_root.player.area)) {
this._alpha = 70;
} else {
this._alpha = 20;
}
this._rotation = (-Math.atan2(_x - _root.player._x, _y - _root.player._y)) / 0.017;
this._x = _root._xmouse;
this._y = _root._ymouse;
this._xscale = _root.weaponsize + 100;
this._yscale = _root.weaponsize + 100;
}
Instance of Symbol 506 MovieClip "bar" in Frame 102
onClipEvent (enterFrame) {
this._x = _root.camera._x;
this._y = _root.camera._y;
}
Frame 103
gotoAndPlay (68);
Symbol 15 Button
on (release) {
gotoAndPlay (3);
}
Symbol 29 MovieClip Frame 11
stop();
Symbol 40 Button
on (release) {
gotoAndPlay (4);
}
Symbol 70 Button
on (release) {
if (_root.stat >= 1) {
_root.stat = _root.stat - 1;
_root.maxbutcher = _root.maxbutcher + ((2 + random(3)) + (_root.level * 2));
}
}
Symbol 71 Button
on (release) {
if ((_root.agility != 30) && (_root.stat >= 1)) {
_root.stat = _root.stat - 1;
_root.agility = _root.agility + 0.1;
}
}
Symbol 72 Button
on (release) {
if (_root.stat >= 1) {
_root.stat = _root.stat - 1;
_root.strength = _root.strength + 1;
}
}
Symbol 73 Button
on (release) {
_root.strength = 1;
_root.agility = 1;
_root.maxhealth = 5;
_root.maxbutcher = 50;
_root.stat = 10;
}
Symbol 74 Button
on (release) {
nextFrame();
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 85 Button
on (release) {
_root.exprate = 1.1;
}
Symbol 86 Button
on (release) {
_root.exprate = 2.5;
}
Symbol 87 Button
on (release) {
_root.exprate = 4.5;
}
Symbol 158 Button
on (release) {
if (_root.stat >= 1) {
_root.stat = _root.stat - 1;
_root.maxbutcher = _root.maxbutcher + ((2 + random(3)) + (_root.level * 2));
}
}
Symbol 187 Button
on (release) {
if (_root.filenumber == 1) {
_root.saver.gotoAndPlay(2);
var file1 = SharedObject.getLocal("file1");
file1.data.agility = _root.agility;
file1.data.strength = _root.strength;
file1.data.weaponsize = _root.weaponsize;
file1.data.maxhealth = _root.maxhealth;
file1.data.double = _root.double;
file1.data.speedbonus = _root.speedbonus;
file1.data.attackbonus = _root.attackbonus;
file1.data.stat = _root.stat;
file1.data.skill = _root.skill;
file1.data.level = _root.level;
file1.data.exp = _root.exp;
file1.data.nextexp = _root.nextexp;
file1.data.shifter = _root.shifter;
file1.data.money = _root.money;
file1.data.butcher = _root.butcher;
file1.data.maxbutcher = _root.maxbutcher;
file1.data.health = _root.health;
file1.data.haveheal = _root.haveheal;
file1.data.weaponshow = _root.weaponshow;
file1.data.havetwo = _root.havetwo;
file1.data.havethree = _root.havethree;
file1.data.havefour = _root.havefour;
file1.data.armorshow = _root.armorshow;
file1.data.goldarmor = _root.goldarmor;
file1.data.darkarmor = _root.darkarmor;
file1.data.lightarmor = _root.lightarmor;
file1.data.potion = _root.potion;
file1.data.potion2 = _root.potion2;
file1.data.exprate = _root.exprate;
file1.flush();
}
if (_root.filenumber == 2) {
_root.saver.gotoAndPlay(2);
var file2 = SharedObject.getLocal("file2");
file2.data.agility = _root.agility;
file2.data.strength = _root.strength;
file2.data.weaponsize = _root.weaponsize;
file2.data.maxhealth = _root.maxhealth;
file2.data.double = _root.double;
file2.data.speedbonus = _root.speedbonus;
file2.data.attackbonus = _root.attackbonus;
file2.data.stat = _root.stat;
file2.data.skill = _root.skill;
file2.data.level = _root.level;
file2.data.exp = _root.exp;
file2.data.nextexp = _root.nextexp;
file2.data.shifter = _root.shifter;
file2.data.money = _root.money;
file2.data.butcher = _root.butcher;
file2.data.maxbutcher = _root.maxbutcher;
file2.data.health = _root.health;
file2.data.haveheal = _root.haveheal;
file2.data.weaponshow = _root.weaponshow;
file2.data.havetwo = _root.havetwo;
file2.data.havethree = _root.havethree;
file2.data.havefour = _root.havefour;
file2.data.armorshow = _root.armorshow;
file2.data.goldarmor = _root.goldarmor;
file2.data.darkarmor = _root.darkarmor;
file2.data.lightarmor = _root.lightarmor;
file2.data.potion = _root.potion;
file2.data.potion2 = _root.potion2;
file2.data.exprate = _root.exprate;
file2.flush();
}
if (_root.filenumber == 3) {
_root.saver.gotoAndPlay(2);
var file3 = SharedObject.getLocal("file3");
file3.data.agility = _root.agility;
file3.data.strength = _root.strength;
file3.data.weaponsize = _root.weaponsize;
file3.data.maxhealth = _root.maxhealth;
file3.data.double = _root.double;
file3.data.speedbonus = _root.speedbonus;
file3.data.attackbonus = _root.attackbonus;
file3.data.stat = _root.stat;
file3.data.skill = _root.skill;
file3.data.level = _root.level;
file3.data.exp = _root.exp;
file3.data.nextexp = _root.nextexp;
file3.data.shifter = _root.shifter;
file3.data.money = _root.money;
file3.data.butcher = _root.butcher;
file3.data.maxbutcher = _root.maxbutcher;
file3.data.health = _root.health;
file3.data.haveheal = _root.haveheal;
file3.data.weaponshow = _root.weaponshow;
file3.data.havetwo = _root.havetwo;
file3.data.havethree = _root.havethree;
file3.data.havefour = _root.havefour;
file3.data.armorshow = _root.armorshow;
file3.data.goldarmor = _root.goldarmor;
file3.data.darkarmor = _root.darkarmor;
file3.data.lightarmor = _root.lightarmor;
file3.data.potion = _root.potion;
file3.data.potion2 = _root.potion2;
file3.data.exprate = _root.exprate;
file3.flush();
}
}
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 2
play();
Symbol 191 MovieClip Frame 8
play();
Symbol 191 MovieClip Frame 37
stop();
Symbol 191 MovieClip Frame 38
gotoAndPlay (8);
Symbol 191 MovieClip Frame 39
gotoAndPlay (8);
Symbol 199 Button
on (release) {
play();
}
Symbol 204 Button
on (release) {
_root.stat = _root.stat + 5000;
}
Symbol 205 Button
on (release) {
_root.skill = _root.skill + 5000;
}
Symbol 206 Button
on (release) {
_root.money = _root.money + 5000;
}
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 14
stop();
Symbol 224 MovieClip Frame 1
_root.weaponaddon = 0;
stop();
Symbol 224 MovieClip Frame 2
_root.weaponaddon = 20;
stop();
Symbol 224 MovieClip Frame 3
_root.weaponaddon = 55;
stop();
Symbol 224 MovieClip Frame 4
_root.weaponaddon = 200;
stop();
Symbol 224 MovieClip Frame 5
_root.weaponaddon = 80;
stop();
Symbol 224 MovieClip Frame 6
_root.weaponaddon = 5;
stop();
Symbol 230 Button
on (release) {
if ((_root.money >= 100) && (_root.weaponsize != 250)) {
_root.money = _root.money - 100;
_root.weaponsize = _root.weaponsize + 10;
}
}
Symbol 234 Button
on (release) {
if ((_root.money >= 50) && (_root.weaponsize != 0)) {
_root.money = _root.money - 50;
_root.weaponsize = _root.weaponsize - 10;
}
}
Symbol 245 Button
on (release) {
if ((_root.stat >= 1) && (_root.agility <= 30)) {
_root.stat = _root.stat - 1;
_root.agility = _root.agility + 0.1;
}
}
Symbol 257 MovieClip Frame 1
_root.def = 1;
Symbol 257 MovieClip Frame 2
_root.def = 2;
Symbol 257 MovieClip Frame 3
_root.def = 3;
Symbol 257 MovieClip Frame 4
_root.def = 4;
Symbol 270 MovieClip Frame 1
stop();
stop();
Instance of Symbol 224 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.weaponshow);
size = _root.weaponsize + 100;
this._xscale = size;
this._yscale = size;
}
Instance of Symbol 252 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.armorshow);
}
Instance of Symbol 257 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.armorshow);
}
Symbol 270 MovieClip Frame 2
play();
Instance of Symbol 224 MovieClip "attack" in Symbol 270 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.weaponshow);
}
Symbol 270 MovieClip Frame 3
play();
Symbol 270 MovieClip Frame 4
duplicateMovieClip (_root.slash, 9111, 9111);
play();
Instance of Symbol 224 MovieClip "attack2" in Symbol 270 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(_root.weaponshow);
}
Symbol 270 MovieClip Frame 5
if (_root.double == 1) {
duplicateMovieClip (_root.slash, 9112, 9112);
}
play();
Instance of Symbol 224 MovieClip "attack" in Symbol 270 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(_root.weaponshow);
}
Symbol 270 MovieClip Frame 6
play();
Symbol 272 MovieClip Frame 7
stop();
Symbol 284 Button
on (release) {
if (_root.skill >= 10) {
_root.attackbonus = _root.attackbonus + 5;
_root.skill = _root.skill - 10;
}
}
Symbol 285 Button
on (release) {
if ((_root.skill >= 15) && (_root.double == 0)) {
_root.double = 1;
_root.skill = _root.skill - 15;
}
}
Symbol 286 Button
on (release) {
if ((_root.skill >= 5) && (_root.speedbonus != 2)) {
_root.skill = _root.skill - 5;
_root.speedbonus = _root.speedbonus + 1;
}
}
Symbol 288 Button
on (release) {
if ((_root.skill >= 25) && (_root.shifter != 1)) {
_root.shifter = 1;
_root.skill = _root.skill - 25;
}
}
Symbol 290 Button
on (release) {
if ((_root.haveheal != 1) && (_root.skill >= 10)) {
_root.haveheal = 1;
_root.skill = _root.skill - 10;
}
}
Symbol 305 Button
on (release) {
if (_root.stat >= 1) {
_root.stat = _root.stat - 1;
_root.strength = _root.strength + 1;
}
}
Symbol 321 MovieClip Frame 1
stop();
stop();
died = 0;
Symbol 321 MovieClip Frame 2
speed = 0;
died = 1;
_root.ratkill = _root.ratkill + 1;
Symbol 321 MovieClip Frame 93
this._x = respawnx;
this._y = respawny;
Symbol 321 MovieClip Frame 101
health = maxhealth;
died = 0;
speed = speedback;
Symbol 323 MovieClip Frame 12
stop();
Symbol 325 MovieClip Frame 17
stop();
Symbol 348 Button
on (release) {
gotoAndPlay (82);
}
Symbol 349 Button
on (release) {
gotoAndPlay (86);
}
Symbol 350 Button
on (release) {
gotoAndPlay (88);
}
Symbol 351 Button
on (release) {
gotoAndPlay (84);
}
Symbol 352 Button
on (release) {
gotoAndPlay (98);
}
Symbol 353 Button
on (release) {
gotoAndPlay (92);
}
Symbol 354 Button
on (release) {
gotoAndPlay (100);
}
Symbol 355 Button
on (release) {
gotoAndPlay (96);
}
Symbol 356 Button
on (release) {
gotoAndPlay (94);
}
Symbol 357 Button
on (release) {
gotoAndPlay (102);
}
Symbol 358 Button
on (release) {
gotoAndPlay (90);
}
Symbol 388 MovieClip Frame 1
this.onPress = function () {
pressing = true;
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(3355443);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:"200", ga:"0", gb:"200", ba:"0", bb:"200", aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
};
this.onRelease = function () {
pressing = false;
};
this.onReleaseOutside = function () {
pressing = false;
};
this.onEnterFrame = function () {
if (pressing != true) {
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(rgb);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:hc1, ga:"0", gb:hc2, ba:"0", bb:hc3, aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
}
};
with (piece2) {
_width = _parent.wide;
piece1._x = _x - (_width / 2);
piece3._x = _x + (_width / 2);
_parent.midshadow._width = _width;
_parent.leftshadow._x = _x - (_width / 2);
_parent.rightshadow._x = _x + (_width / 2);
}
label1.autoSize = "center";
label2.autoSize = "center";
Symbol 462 MovieClip Frame 1
_root.pause = 0;
stop();
Instance of Symbol 224 MovieClip in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.weaponshow);
size = _root.weaponsize + 100;
this._xscale = size;
this._yscale = size;
}
Instance of Symbol 252 MovieClip in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.armorshow);
}
Instance of Symbol 257 MovieClip in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.armorshow);
}
Symbol 462 MovieClip Frame 2
play();
_root.pause = 1;
Instance of Symbol 224 MovieClip "attack" in Symbol 462 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.weaponshow);
}
Symbol 462 MovieClip Frame 3
play();
Symbol 462 MovieClip Frame 4
duplicateMovieClip (_root.slash, 9111, 9111);
play();
Instance of Symbol 224 MovieClip "attack2" in Symbol 462 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(_root.weaponshow);
}
Symbol 462 MovieClip Frame 5
if (_root.double == 1) {
duplicateMovieClip (_root.slash, 9112, 9112);
}
play();
Instance of Symbol 224 MovieClip "attack" in Symbol 462 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(_root.weaponshow);
}
Symbol 462 MovieClip Frame 6
play();
Symbol 462 MovieClip Frame 7
gotoAndPlay (1);
Symbol 462 MovieClip Frame 8
_root.butcher = _root.butcher - 2;
Instance of Symbol 224 MovieClip "hitter" in Symbol 462 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.weaponshow);
size = _root.weaponsize + 100;
this._xscale = size;
this._yscale = size;
}
Instance of Symbol 257 MovieClip in Symbol 462 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.armorshow);
}
Symbol 462 MovieClip Frame 10
if (Key.isDown(16) && (_root.butcher >= 2)) {
gotoAndPlay ("shifter");
}
Instance of Symbol 224 MovieClip "hitter" in Symbol 462 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.weaponshow);
size = _root.weaponsize + 100;
this._xscale = size;
this._yscale = size;
}
Symbol 462 MovieClip Frame 11
gotoAndPlay (1);
Symbol 469 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 490 Button
on (release) {
stopAllSounds();
}
Symbol 505 Button
on (release) {
_root.health = _root.maxhealth / 2;
_root.play();
}
Symbol 506 MovieClip Frame 1
stop();
Instance of Symbol 92 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
stop();
levelupsound = new Sound();
levelupsound.attachSound("item3");
}
onClipEvent (enterFrame) {
percentage = Math.ceil((_root.exp / _root.nextexp) * 100);
this.gotoAndStop(percentage);
if (_root.exp >= _root.nextexp) {
levelupsound.start();
_root.exp = _root.exp - _root.nextexp;
_root.level = _root.level + 1;
_root.nextexp = (_root.nextexp * _root.exprate) + random(20);
_root.strength = _root.strength + 1;
_root.maxbutcher = _root.maxbutcher + random(10);
_root.stat = _root.stat + 4;
_root.skill = _root.skill + 2;
_root.maxhealth = _root.maxhealth + ((2 * _root.level) + random(5));
_root.health = _root.maxhealth;
_root.message = "Leveled up! Current Level: " + _root.level;
}
}
Instance of Symbol 100 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (enterFrame) {
percentage = Math.ceil((_root.health / _root.maxhealth) * 100);
this.gotoAndStop(percentage);
if (_root.health > _root.maxhealth) {
_root.health = _root.maxhealth;
}
if (_root.health <= 0) {
_root.dead = 1;
_root.bar.play();
}
if (delay != 0) {
delay = delay - 1;
} else {
_root.health = _root.health + 1;
delay = 200;
}
}
onClipEvent (load) {
delay = 200;
}
Instance of Symbol 130 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (enterFrame) {
percentage = Math.ceil((_root.butcher / _root.maxbutcher) * 100);
this.gotoAndStop(percentage);
if (_root.butcher > _root.maxbutcher) {
_root.butcher = _root.maxbutcher;
}
if (delay != 0) {
delay = delay - 1;
} else {
_root.butcher = _root.butcher + 1;
delay = 20;
}
}
onClipEvent (load) {
delay = 20;
}
Instance of Symbol 487 MovieClip "messager" in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
message = _root.message;
this._alpha = 100;
this._x = _root.originx;
this._y = _root.originy;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha - 0.05;
this._y = this._y - 1.2;
}
Instance of Symbol 492 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
_root.message = "Welcome to " + _root.levelname;
previousmessage = _root.message;
_root.messagedepth = 5000;
_root.messagecount = 1;
_root.originx = _root.bar.messager._x;
_root.originy = _root.bar.messager._y;
}
onClipEvent (enterFrame) {
if (_root.messagedepth == 5020) {
_root.messagedepth = 5000;
}
if (previousmessage != _root.message) {
_root.messagedepth = _root.messagedepth + 1;
duplicateMovieClip (_root.bar.messager, _root.messagedepth, _root.messagedepth);
previousmessage = _root.message;
}
}
Instance of Symbol 493 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.isDown(90) && (_root.potion >= 1)) {
_root.potion = _root.potion - 1;
_root.health = _root.health + 100;
}
if (Key.isDown(88) && (_root.potion2 >= 1)) {
_root.potion2 = _root.potion2 - 1;
_root.butcher = _root.butcher + 100;
}
}
Symbol 506 MovieClip Frame 2
stop();
Mouse.show();
_root.buff = 0;
Instance of Symbol 501 MovieClip in Symbol 506 MovieClip Frame 2
onClipEvent (load) {
lose = _root.exp * 0.1;
_root.exp = _root.exp - lose;
}
Symbol 516 MovieClip Frame 1
stop();
stop();
died = 0;
Symbol 516 MovieClip Frame 2
speed = 0;
died = 1;
Symbol 516 MovieClip Frame 58
this._x = respawnx;
this._y = respawny;
Symbol 516 MovieClip Frame 66
health = maxhealth;
died = 0;
speed = speedback;
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 2
stop();
Symbol 526 MovieClip Frame 1
stop();
Symbol 526 MovieClip Frame 2
stop();
Symbol 532 MovieClip Frame 1
stop();
stop();
died = 0;
Symbol 532 MovieClip Frame 2
speed = 0;
followed = dd;
died = 1;
Symbol 532 MovieClip Frame 3
speed = 0;
Symbol 532 MovieClip Frame 58
this._x = respawnx;
this._y = respawny;
Symbol 532 MovieClip Frame 60
followed = _root.player;
Symbol 532 MovieClip Frame 66
health = maxhealth;
died = 0;
speed = speedback;
Symbol 542 MovieClip Frame 1
stop();
stop();
died = 0;
Symbol 542 MovieClip Frame 2
speed = 0;
died = 1;
_root.ratkill = _root.ratkill + 1;
Symbol 542 MovieClip Frame 93
this._x = respawnx;
this._y = respawny;
Symbol 542 MovieClip Frame 101
health = maxhealth;
died = 0;
speed = 2;
Symbol 549 MovieClip Frame 1
stop();
died = 0;
speed = 5;
Symbol 549 MovieClip Frame 2
died = 1;
_root.boarkill;
Symbol 549 MovieClip Frame 64
this._x = respawnx;
this._y = respawny;
Symbol 549 MovieClip Frame 71
died = 0;
speed = speedback;
health = maxhealth;
Symbol 555 MovieClip Frame 1
stop();
stop();
died = 0;
Symbol 555 MovieClip Frame 2
speed = 0;
died = 1;
_root.ratkill = _root.ratkill + 1;
Symbol 555 MovieClip Frame 466
health = maxhealth;
died = 0;
speed = 7;