Frame 1
_root.bBackFromOptions = false;
var sPreText = "Summoning...";
var sPreMC = "PreCatEyes";
var sPreColor = "0xff0000";
var sPreColor2 = "0xffff00";
var nPreScale = 150;
var bPreShowProc = true;
_root.stop();
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.gotoAndStop(2);
} else {
if (_root.sPreMC == null) {
var mcPreloader = _root.createEmptyMovieClip("PreloadMC", 0);
mcPreloader.onEnterFrame = function () {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
this.clear();
this.lineStyle(0.2, _root.sPreColor2, 100);
this.moveTo(0, 0);
this.lineTo(252, 0);
this.lineTo(252, 64);
this.lineTo(0, 64);
this.lineTo(0, 0);
this.beginFill(_root.sPreColor, 100);
this.moveTo(4, 5);
this.lineTo(4 + ((_root.getBytesLoaded() / _root.getBytesTotal()) * 242), 5);
this.lineTo(4 + ((_root.getBytesLoaded() / _root.getBytesTotal()) * 242), 59);
this.lineTo(4, 59);
this.lineTo(4, 5);
this.endFill();
if (tfPreText != undefined) {
tfPreText.text = _root.sPreText;
if (_root.bPreShowProc) {
tfPreText.text = tfPreText.text + ((newline + Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100)) + "%");
}
tfPreText.autoSize = true;
tfPreText._x = (Stage.width / 2) - (tfPreText._width / 2);
}
} else if ((_root.fPreCheck == undefined) || (_root.fPreCheck() == true)) {
resetVars();
_root.nextFrame();
_root.tfPreText.removeTextField();
this.removeMovieClip();
this.unloadMovie();
removeMovieClip(this);
}
};
mcPreloader.lineStyle(0.2, _root.sPreColor2, 100);
mcPreloader.moveTo(0, 0);
mcPreloader.lineTo(252, 0);
mcPreloader.lineTo(252, 64);
mcPreloader.lineTo(0, 64);
mcPreloader.lineTo(0, 0);
mcPreloader._xscale = nPreScale;
mcPreloader._x = (Stage.width / 2) - (mcPreloader._width / 2);
mcPreloader._y = Stage.height / 2;
} else {
var mcPreloader = _root.attachMovie(sPreMC, "PreloadMC", 0);
mcPreloader.onEnterFrame = function () {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
this.gotoAndStop(Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * this._totalframes));
if (tfPreText != undefined) {
tfPreText.text = _root.sPreText;
if (_root.bPreShowProc) {
tfPreText.text = tfPreText.text + ((newline + Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100)) + "%");
}
tfPreText.autoSize = true;
tfPreText._x = (Stage.width / 2) - (tfPreText._width / 2);
}
} else if ((_root.fPreCheck == undefined) || (_root.fPreCheck() == true)) {
_root.nextFrame();
_root.tfPreText.removeTextField();
this.removeMovieClip();
this.unloadMovie();
removeMovieClip(this);
}
};
}
if (((_root.sPreText != undefined) && (_root.sPreText != "")) || (_root.bPreShowProc)) {
if (_root.sPreText == undefined) {
_root.sPreText = "";
}
var tfFormat = new TextFormat();
tfFormat.align = "center";
tfFormat.color = _root.sPreColor2;
var tfPreText = _root.createTextField("PreText", 1, 0, Stage.height / 2, Stage.width / 2, 50);
tfPreText.setNewTextFormat(tfFormat);
}
}
Instance of Symbol 182 MovieClip in Frame 2
onClipEvent (load) {
var tout = 0;
var c = new Color(this);
var trans = new Object();
trans.ra = 0;
trans.ga = 0;
trans.ba = 0;
c.setTransform(trans);
this.onPress = function () {
getURL ("http://www.newgrounds.com", "_blank");
};
}
onClipEvent (enterFrame) {
tout++;
if (tout < 10) {
trans.ra = (1 + tout) * 10;
trans.ga = trans.ra;
trans.ba = trans.ra;
c.setTransform(trans);
} else if (tout > 60) {
if (tout > 70) {
_root.nextFrame();
}
trans.ra = (71 - tout) * 10;
trans.ga = trans.ra;
trans.ba = trans.ra;
c.setTransform(trans);
}
}
Instance of Symbol 236 MovieClip in Frame 3
onClipEvent (load) {
this.onPress = function () {
getURL ("http://www.4as.prv.pl", "_blank");
};
}
onClipEvent (enterFrame) {
if (this._currentframe >= this._totalframes) {
_root.nextFrame();
}
}
Frame 4
function setTimeFlow(b) {
_root.timeFlow = b;
_root.Inter.timex._visible = b;
}
function setSun(b) {
_root.Sun = b;
_root.doSunset();
}
function doSunset() {
if (_root.sunEffect) {
if (!_root.Sun) {
_root.trans.rb = 0;
_root.trans.gb = 0;
_root.trans.bb = 0;
_root.trans.ab = 0;
_root.playSound("cricket", false, -1);
} else if ((_root.hr >= 18) && (_root.hr <= 20)) {
_root.trans.rb = ((((_root.hr - 18) * 60) + _root.mi) / 180) * 100;
_root.trans.gb = 0;
_root.trans.bb = 0;
_root.trans.ab = 0;
} else if ((_root.hr >= 21) && (_root.hr <= 23)) {
_root.trans.rb = 100 - (((((_root.hr - 21) * 60) + _root.mi) / 180) * 250);
_root.trans.gb = -(((((_root.hr - 21) * 60) + _root.mi) / 180) * 150);
_root.trans.bb = -(((((_root.hr - 21) * 60) + _root.mi) / 180) * 100);
_root.trans.ab = 0;
} else if (_root.hr <= 5) {
_root.trans.rb = -150;
_root.trans.gb = -150;
_root.trans.bb = -100;
_root.trans.ab = 0;
_root.playSound("cricket", false, 999);
} else if ((_root.hr >= 6) && (_root.hr <= 8)) {
_root.trans.rb = -150 + (((((hr - 6) * 60) + _root.mi) / 180) * 150);
_root.trans.gb = -150 + (((((hr - 6) * 60) + _root.mi) / 180) * 150);
_root.trans.bb = -100 + (((((hr - 6) * 60) + _root.mi) / 180) * 100);
_root.trans.ab = 0;
_root.playSound("cricket", false, -1);
}
if (_root.tmpRB != _root.trans.rb) {
_root.sunset.setTransform(_root.trans);
_root.trans2.rb = -_root.trans.rb;
_root.trans2.gb = -_root.trans.gb;
_root.trans2.bb = -_root.trans.bb;
_root.trans2.ab = -_root.trans.ab;
_root.cInterColor.setTransform(_root.trans2);
if (_root.inFight) {
_root.cBInterColor.setTransform(_root.trans2);
}
_root.tmpRB = _root.trans.rb;
}
for (var _local2 in _root.aLights) {
_root.aLights[_local2].sunset.setTransform(_root.trans2);
}
}
}
Stage.scaleMode = "noScale";
var swidth = Stage.width;
var sheight = Stage.height;
var format = new TextFormat();
format.color = 16776960 /* 0xFFFF00 */;
format.bold = true;
format.font = "Fontex";
format.size = 11;
format.align = "center";
var playersCount = 3;
var monstersCount = 3;
var worldMap = -1;
var aPlayerTeam = new Array(playersCount + 1);
var aEnemyTeam = new Array(monstersCount + 1);
var PlayerMove = 0;
var charSelect = 0;
var arrayCopy = function (a) {
var _local3 = new Array(a.length);
var _local1 = 0;
while (_local1 < a.length) {
_local3[_local1] = a[_local1];
_local1++;
}
return(_local3);
};
var mc;
var mc2;
var tmpn;
var readDBPlayer = function (id, n) {
if ((n == null) || (n == "")) {
_root.aPlayerTeam[id] = new Array(3);
_root.refreshHUD();
return(true);
}
var _local2 = 0;
while (_local2 < _root.aCharsDB.length) {
if (_root.aCharsDB[_local2][0] == n) {
_root.aPlayerTeam[id] = new Array(3);
_root.aPlayerTeam[id][0] = _root.arrayCopy(_root.aCharsDB[_local2][1]);
_root.aPlayerTeam[id][1] = _root.arrayCopy(_root.aCharsDB[_local2][2]);
_root.aPlayerTeam[id][2] = _root.arrayCopy(_root.aCharsDB[_local2][3]);
_root.aPlayerTeam[id][0][13]();
_root.refreshHUD();
return(true);
}
_local2++;
}
return(false);
};
var getDBPlayer = function (n) {
var _local2 = 0;
while (_local2 < _root.aCharsDB.length) {
if (_root.aCharsDB[_local2][0] == n) {
return(_root.aCharsDB[_local2]);
}
_local2++;
}
return(null);
};
var readDBMonster = function (id, n) {
if ((n == null) || (n == "")) {
_root.aEnemyTeam[id] = new Array(3);
return(true);
}
var _local2 = 0;
while (_local2 < _root.aMonsDB.length) {
if (_root.aMonsDB[_local2][0] == n) {
_root.aEnemyTeam[id] = new Array(3);
_root.aEnemyTeam[id][0] = _root.arrayCopy(_root.aMonsDB[_local2][1]);
_root.aEnemyTeam[id][1] = _root.arrayCopy(_root.aMonsDB[_local2][2]);
_root.aEnemyTeam[id][2] = _root.arrayCopy(_root.aMonsDB[_local2][3]);
return(true);
}
_local2++;
}
return(false);
};
var joinDBPlayer = function (n) {
if (n == null) {
return(false);
}
var _local3 = 1;
while (_local3 <= _root.playersCount) {
if (_root.aPlayerTeam[_local3][0] == null) {
var _local2 = 0;
while (_local2 < _root.aCharsDB.length) {
if (_root.aCharsDB[_local2][0] == n) {
_root.aPlayerTeam[_local3][0] = _root.aCharsDB[_local2][1];
_root.aPlayerTeam[_local3][1] = _root.aCharsDB[_local2][2];
_root.aPlayerTeam[_local3][2] = _root.aCharsDB[_local2][3];
_root.aPlayerTeam[_local3][0][13]();
_root.refreshHUD();
_root.SMS(_root.aCharsDB[_local2][1][0] + " joins the party!", 50);
return(true);
}
_local2++;
}
}
_local3++;
}
return(false);
};
var readDBItem = function (s, n) {
if ((s == "") || (s == null)) {
return(false);
}
if (n == null) {
n = _root.aItemsDB[i][3];
}
var i = 0;
while (i < _root.aItemsDB.length) {
if (_root.aItemsDB[i][0] == s) {
_root.giveItem(_root.aItemsDB[i][0], _root.aItemsDB[i][1], _root.aItemsDB[i][2], n, _root.aItemsDB[i][4]);
return(true);
}
i++;
}
return(false);
};
var aCharTmp;
var aItemTmp;
var aSkillTmp;
var fLevelUp;
var aCharsDB = new Array(3);
fLevelUp = function (arc, ari, ars) {
if (_root.inFight) {
if (arc[11] == 5) {
_root.SMS("Sakaki learned a new skill: 'Snowball' !", 50);
ars[0][7] = true;
}
if (arc[11] == 10) {
_root.SMS("Sakaki learned a new skill: 'Mana Push' !", 50);
ars[2][7] = true;
}
} else {
if (arc[11] >= 5) {
ars[0][7] = true;
}
if (arc[11] >= 10) {
ars[2][7] = true;
}
}
if (_root.checkFlag("sakakiExtraPush")) {
ars[2][5] = 1;
}
ars[1][3] = (2 + Math.floor(arc[3] / 5)) + arc[11];
ars[1][4] = (7 + Math.floor(arc[3] / 4)) + arc[11];
if (arc[11] >= 5) {
ars[0][3] = -((7 + Math.floor(arc[1] / 5)) + (arc[11] * 2));
}
if (arc[11] >= 10) {
ars[2][3] = (6 + Math.floor(arc[4] / 5)) + arc[11];
ars[2][4] = 15 + (Math.floor(arc[4] / 5) + (arc[11] * 2));
}
};
aCharTmp = ["Sakaki", 10, 10, 10, 5, 10, 0, 2, 0, 0, 50, 1, 1, fLevelUp, "", false];
aItemTmp = [["hand", 10], [null, 0], [null, 0], [null, 0], [null, 0], 0];
aSkillTmp = new Array(3);
aSkillTmp[0] = ["Snowball", 1, 5, -10, 11, 0, 7, false, "Sakaki throws a snowball that delays enemy's next move.\nAffected by Strength."];
aSkillTmp[1] = ["Combo", 4, 1, 5, 10, 0, 6, true, "Sakaki does a two hit combo.\nAffected by Dexterity."];
aSkillTmp[2] = ["Mana Push", 5, 2, 10, 20, 0, 10, false, "Sakaki pushes a wave of air at enemy.\nAffected by Intelligence."];
aCharsDB[1] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
fLevelUp = function (arc, ari, ars) {
if (_root.inFight) {
if (arc[11] == 5) {
_root.SMS("Osaka learned a new skill: 'Focus' !", 50);
ars[1][7] = true;
}
if (arc[11] == 10) {
_root.SMS("Osaka learned a new skill: 'Knife Attack' !", 50);
ars[2][7] = true;
}
} else {
if (arc[11] >= 5) {
ars[1][7] = true;
}
if (arc[11] >= 10) {
ars[2][7] = true;
}
}
ars[0][3] = (7 + Math.floor(arc[4] / 5)) + arc[11];
ars[0][4] = ars[0][3];
if (arc[11] >= 5) {
ars[1][3] = -5 + (arc[11] + Math.floor(arc[3] / 5));
}
if (arc[11] >= 10) {
ars[2][3] = (Math.floor(arc[1] / 5) + arc[11]) - 1;
ars[2][4] = (Math.floor(arc[1] / 5) + (arc[11] * 2)) - 1;
}
};
aCharTmp = ["Osaka", 8, 9, 8, 10, 90, 0, 40, 0, 0, 50, 1, 2, fLevelUp, "", false];
aItemTmp = [["hand", 10], [null, 0], [null, 0], [null, 0], [null, 0], 0];
aSkillTmp = new Array(3);
aSkillTmp[0] = ["Throw Shoe", 6, 1, 10, 10, 1, 9, true, "Osaka throws a shoe to forecast the weather.\nAffected by Intelligence."];
aSkillTmp[1] = ["Focus", 2, 5, 1, 3, -2, 6, false, "Osaka charges the charms of all party members.\nAffected by Dexterity."];
aSkillTmp[2] = ["Knife Attack", 3, 2, 10, 20, 0, 5, false, "Osaka tries to wake up her target with a frying pan but doesnt notice she takes out the knife instead.\nAffected by Strength."];
aCharsDB[0] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
fLevelUp = function (arc, ari, ars) {
if (_root.inFight) {
if (arc[11] == 5) {
_root.SMS("Armisael learned a new skill: 'Spit' !", 50);
ars[1][7] = true;
}
if (arc[11] == 10) {
_root.SMS("Armisael learned a new skill: 'Flaming Combo' !", 50);
ars[2][7] = true;
}
} else {
if (arc[11] >= 5) {
ars[1][7] = true;
}
if (arc[11] >= 10) {
ars[2][7] = true;
}
}
if (_root.checkFlag("gotSpitomatic")) {
ars[1][5] = 1;
}
ars[0][3] = (7 + Math.floor(arc[1] / 5)) + arc[11];
ars[0][4] = ars[0][3];
if (arc[11] >= 5) {
ars[1][3] = (5 - Math.floor(arc[2] / 5)) - arc[11];
}
if (arc[11] >= 10) {
ars[2][3] = (Math.floor(arc[3] / 5) + (arc[11] / 2)) - 1;
ars[2][4] = (Math.floor(arc[3] / 5) + arc[11]) - 1;
}
};
aCharTmp = ["Armisael", 10, 12, 8, 5, 100, 0, 0, 0, 33, 55, 2, 7, fLevelUp, "", false];
aItemTmp = [["hand", 10], [null, 0], [null, 0], [null, 0], [null, 0], 0];
aSkillTmp = new Array(3);
aSkillTmp[0] = ["Seismic Punch", 7, 1, 10, 10, 1, 9, true, "Armisael hits the ground with a powerful punch.\nAffected by Strength."];
aSkillTmp[1] = ["Spit", 8, 5, -2, 10, 0, 6, false, "Armisael spits on the enemy lowering its defence.\nAffected by Vitality."];
aSkillTmp[2] = ["Flaming Combo", 9, 1, 6, 10, 0, 8, false, "Armisael does a multihit combo.\nAffected by Dexterity."];
aCharsDB[2] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
var aMonsDB = new Array(17);
aCharTmp = ["White Cat", 10, 5, 5, 5, 0, 0, 0, 0, "WhiteCat", 25];
aItemTmp = [["claw", 10], false, false, false, null, 10];
aMonsDB[0] = new Array(aCharTmp[0], aCharTmp, aItemTmp, null);
aCharTmp = ["White Kitten", 5, 3, 3, 3, 0, 0, 0, 0, "SmallWhite", 18];
aItemTmp = [["claw", 10], false, false, false, false, 10];
aMonsDB[1] = new Array(aCharTmp[0], aCharTmp, aItemTmp, null);
aCharTmp = ["Gray Kitten", 9, 4, 4, 4, 0, 0, 0, 0, "SmallGray", 28];
aItemTmp = [["claw", 10], true, false, false, false, 15];
aMonsDB[2] = new Array(aCharTmp[0], aCharTmp, aItemTmp, null);
aCharTmp = ["White Cat Leader", 28, 12, 15, 5, 0, 0, 0, 0, "WhiteCat", 55];
aItemTmp = [["claw", 20], true, false, true, false, 25];
aMonsDB[3] = new Array(aCharTmp[0], aCharTmp, aItemTmp, null);
aCharTmp = ["White Cat Fighter", 18, 8, 11, 5, 0, 0, 0, 0, "WhiteCat", 35];
aItemTmp = [["claw", 15], true, true, false, false, 15];
aMonsDB[4] = new Array(aCharTmp[0], aCharTmp, aItemTmp, null);
aCharTmp = ["Gray Cat", 20, 9, 25, 5, 5, 0, 0, 0, "GrayCat", 50];
aItemTmp = [["claw", 15], true, true, false, false, 20];
aMonsDB[5] = new Array(aCharTmp[0], aCharTmp, aItemTmp, null);
aCharTmp = ["Gray Cat Leader", 25, 11, 30, 5, 10, 0, 0, 0, "GrayCat", 70];
aItemTmp = [["claw", 20], true, false, true, false, 25];
aMonsDB[6] = new Array(aCharTmp[0], aCharTmp, aItemTmp, null);
aCharTmp = ["KaminekoJr", 30, 100, 33, 60, 0, 0, 0, 0, "KaminekoJr", 2000];
aItemTmp = [["claw", 20], false, false, true, false, 35];
aSkillTmp = new Array(1);
aSkillTmp[0] = ["RAY", 0, 1, 30, 70, 0, 5];
aMonsDB[7] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
aCharTmp = ["Shaolin Cat", 35, 30, 15, 10, 0, 0, 0, 0, "Monk", 90];
aItemTmp = [["claw", 20], true, false, false, false, 25];
aSkillTmp = new Array(1);
aSkillTmp[0] = ["Point Blank", 0, 5, -30, 11, 0, 7];
aMonsDB[8] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
aCharTmp = ["Predator Cat", 30, 25, 30, 10, 0, 0, 0, 0, "Predator", 100];
aItemTmp = [["claw", 20], true, true, false, false, 20];
aSkillTmp = new Array(1);
aSkillTmp[0] = ["Scratch Combo", 0, 1, 2, 6, 0, 5];
aMonsDB[9] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
aCharTmp = ["Assasin Cat", 40, 25, 35, 10, 0, 0, 0, 0, "Predator", 120];
aItemTmp = [["claw", 25], true, false, true, false, 30];
aSkillTmp = new Array(1);
aSkillTmp[0] = ["Scratch Combo", 0, 1, 5, 10, 0, 6];
aMonsDB[10] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
aCharTmp = ["Shadow Cat", 40, 25, 40, 15, 0, 0, 0, 0, "Shadow", 140];
aItemTmp = [["claw", 30], true, true, false, false, 35];
aSkillTmp = new Array(1);
aSkillTmp[0] = ["RIPE", 0, 1, 30, 60, 1, 15];
aMonsDB[11] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
aCharTmp = ["Shadow Cat Killer", 45, 25, 45, 20, 0, 0, 0, 0, "Shadow", 160];
aItemTmp = [["claw", 40], true, false, false, false, 45];
aSkillTmp = new Array(2);
aSkillTmp[0] = ["RIPE", 0, 1, 35, 80, 1, 15];
aSkillTmp[1] = ["FEAR", 0, 4, 3, 0, 0, 50];
aMonsDB[12] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
aCharTmp = ["Kamineko", 35, 150, 50, 100, 0, 0, 0, 0, "Kamineko", 0];
aItemTmp = [["claw", 25], true, true, true, true, 50];
aSkillTmp = new Array(3);
aSkillTmp[0] = ["RAY", 0, 1, 20, 60, 0, 5];
aSkillTmp[1] = ["ELECTROSTATIC", 0, 1, 10, 40, 1, 10];
aSkillTmp[2] = ["FURBALL", 0, 5, 1, 3, 1, 5];
aMonsDB[13] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
aCharTmp = ["Trickster", 10, 11, 10, 20, 0, 0, 0, 0, "Trickster", 200];
aItemTmp = [["claw", 5], true, true, false, false, 5];
aSkillTmp = new Array(3);
aSkillTmp[0] = ["FIRE", 0, 3, 5, 4, 0, 15];
aSkillTmp[1] = ["CONFUSE", 0, 4, 3, 0, 0, 50];
aSkillTmp[2] = ["LEECH", 0, 5, -10, 7, 0, 0];
aMonsDB[14] = new Array(aCharTmp[0], aCharTmp, aItemTmp, aSkillTmp);
aCharTmp = ["Undead Cat", 55, 30, 20, 10, 0, 0, 0, 0, "Skeleton", 180];
aItemTmp = [["claw", 40], true, false, false, false, 50];
aMonsDB[15] = new Array(aCharTmp[0], aCharTmp, aItemTmp, null);
aCharTmp = ["Undead Cat Leader", 60, 40, 25, 10, 0, 0, 0, 0, "Skeleton", 200];
aItemTmp = [["claw", 50], true, false, true, false, 60];
aSkillTmp = new Array(3);
aMonsDB[16] = new Array(aCharTmp[0], aCharTmp, aItemTmp, null);
var aItemsDB = new Array(2);
aItemsDB[0] = new Array("Cat'away", 10, true, 1, function () {
_root.nFightCancel++;
});
aItemsDB[1] = new Array("Power Stone", 11, true, 1, function () {
_root.aPlayerTeam[_root.charSelect][0][1] = _root.aPlayerTeam[_root.charSelect][0][1] + 2;
_root.aPlayerTeam[_root.charSelect][0][2] = _root.aPlayerTeam[_root.charSelect][0][2] + 2;
_root.aPlayerTeam[_root.charSelect][0][3] = _root.aPlayerTeam[_root.charSelect][0][3] + 2;
_root.aPlayerTeam[_root.charSelect][0][4] = _root.aPlayerTeam[_root.charSelect][0][4] + 2;
_root.aPlayerTeam[_root.charSelect][0][13]();
});
if (_root.Inter == null) {
_root.createEmptyMovieClip("Inter", _root.getNextHighestDepth());
}
if (_root.playersCount <= 0) {
_root.playersCount = 1;
}
if (_root.monstersCount <= 0) {
_root.monstersCount = 1;
}
var showPlayer = false;
var LBX;
var LBY;
var playerCanMove = true;
var speed = 5;
var scrollEffect = 0;
var playerAnimate = true;
var aProcessingModules = new Array();
if (_root.Player == null) {
throw new Error("== ERROR ==\n\"Player\" MovieClip not found on the main timeline");
}
_root.pDepth = _root.Player.getDepth();
_root.Player.gotoAndStop(1);
_root.Player.player.gotoAndStop(3);
_root.Player._visible = false;
_root.Player.dir = 2;
_root.Player.onEnterFrame = function () {
for (var _local5 in _root.aProcessingModules) {
_root.aProcessingModules[_local5]();
}
if (_root.showPlayer) {
if (_root.playerCanMove) {
var _local3 = 0;
this.test = 0;
_local3 = 0;
while (_local3 < _root.LBX.length) {
if (((_root.PBX + this._x) >= _root.LBX[_local3]) && ((_root.PBX + this._x) <= _root.LBX[_local3 + 1])) {
if (((_root.PBY + this._y) >= _root.LBY[_local3]) && ((_root.PBY + this._y) <= _root.LBY[_local3 + 1])) {
this.test++;
}
}
_local3 = _local3 + 2;
}
if ((_root.PlayerMove == 0) && (this.test > 0)) {
this._x = this._x + _root.PBX;
this._y = this._y + _root.PBY;
}
} else if (_root.playerAnimate) {
this.player.anim.gotoAndStop(1);
}
if (_root.scrollEffect > 0) {
if ((_root.scrollEffect == 1) || (_root.scrollEffect == 2)) {
_root._x = 240 - this._x;
} else {
_root._x = 0;
}
if ((_root.scrollEffect == 1) || (_root.scrollEffect == 3)) {
_root._y = 230 - this._y;
} else {
_root._y = 0;
}
if ((_root.scrollEffect == 1) || (_root.scrollEffect == 2)) {
_root.Inter._x = this._x - 240;
} else {
_root.Inter._x = 0;
}
if ((_root.scrollEffect == 1) || (_root.scrollEffect == 3)) {
_root.Inter._y = this._y - 230;
} else {
_root.Inter._y = 0;
}
if (_root.mcStaticBG != null) {
_root.mcStaticBG._x = -_root._x;
_root.mcStaticBG._y = -_root._y;
}
} else {
_root._x = 0;
_root._y = 0;
_root.Inter._x = 0;
_root.Inter._y = 0;
}
if (_root.PlayerMove == 1) {
_root.PlayerMove = 0;
}
_root.PBX = 0;
_root.PBY = 0;
if (_root.playerAnimate) {
this.player.gotoAndStop(this.dir + 1);
}
if (_root.playerCanMove) {
if (((Key.isDown(38) || (Key.isDown(37))) || (Key.isDown(40))) || (Key.isDown(39))) {
if (Key.isDown(38)) {
this.dir = 0;
_root.PBY = _root.PBY + (-_root.speed);
}
if (Key.isDown(40)) {
this.dir = 2;
_root.PBY = _root.PBY + _root.speed;
}
if (Key.isDown(37)) {
this.dir = 1;
_root.PBX = _root.PBX + (-_root.speed);
}
if (Key.isDown(39)) {
this.dir = 3;
_root.PBX = _root.PBX + _root.speed;
}
_root.closerToFight();
this.player.anim.play();
} else {
this.player.anim.gotoAndStop(1);
}
} else if (_root.worldMap > -1) {
this.player.gotoAndStop("head");
}
if (Key.isDown(77)) {
_root.setRandomFact(6);
_root.WalkBox.removeMovieClip();
var _local4 = _root.createEmptyMovieClip("WalkBox", _root.checkFree(_root, 0));
var _local3 = 0;
while (_local3 < _root.LBX.length) {
_local4.lineStyle(1, 16711680, 100);
_local4.moveTo(_root.LBX[_local3], _root.LBY[_local3]);
_local4.lineTo(_root.LBX[_local3 + 1], _root.LBY[_local3]);
_local4.lineTo(_root.LBX[_local3 + 1], _root.LBY[_local3 + 1]);
_local4.lineTo(_root.LBX[_local3], _root.LBY[_local3 + 1]);
_local4.lineTo(_root.LBX[_local3], _root.LBY[_local3]);
_local3 = _local3 + 2;
}
} else {
removeMovieClip(_root.WalkBox);
}
if (Key.isDown(66)) {
_root.PPS.removeMovieClip();
_root.createEmptyMovieClip("PPS", _root.checkFree(_root, 0));
_root.PPS.beginFill(16711935, 100);
_root.PPS.moveTo(-3, -3);
_root.PPS.lineTo(3, -3);
_root.PPS.lineTo(3, 3);
_root.PPS.lineTo(-3, 3);
_root.PPS.lineTo(-3, -3);
_root.PPS.endFill();
_root.PPS._x = this._x + _root.PBX;
_root.PPS._y = this._y + _root.PBY;
} else {
_root.PPS.removeMovieClip();
}
}
};
var displayPlayer = function (b) {
_root.showPlayer = b;
_root.Player._visible = b;
};
var changePlayerAvatar = function (s) {
var _local2 = _root.Player.player._currentframe;
_root.Player.gotoAndStop(s);
_root.Player.player.gotoAndStop(_local2);
};
var addProcessingModule = function (f) {
aProcessingModules.push(f);
};
var resetPlayer = function () {
if (_root.pDepth != _root.Player.getDepth()) {
_root.Player.swapDepths(_root.getInstanceAtDepth(_root.pDepth));
}
_root.PlayerMove = 0;
};
var setPlayerPos = function (nx, ny) {
_root.Player._x = nx;
_root.Player._y = ny;
};
var clearAll = function () {
_root._x = 0;
_root._y = 0;
for (var _local3 in _root) {
for (var _local2 in _root[_local3]) {
_root[_local3][_local2].removeMovieClip();
_root[_local3][_local2].removeTextField();
}
_root[_local3].removeMovieClip();
_root[_local3].removeTextField();
}
};
var removeMovie = function (mc) {
mc._visible = false;
mc.onEnterFrame = null;
mc.removeMovieClip();
mc.unloadMovie();
removeMovieClip(mc);
};
var allowKeys = true;
if (_root.oKeyListen == null) {
var oKeyListen = new Object();
}
_root.oKeyListen.onKeyDown = function () {
if (_root.allowKeys) {
if (Key.isDown(79)) {
if ((_root._currentframe > 4) && (!_root.WorldMapInterface._visible)) {
if (((_root.allowSave && (!_root.sell)) && (!_root.optionActive)) && (_root.playerCanMove)) {
_root.displayPlayer(false);
_root.displayOptions(true);
} else {
_root.displayPlayer(true);
_root.playerCanMove = true;
_root.displayOptions(false);
}
}
}
if (Key.isDown(67) && (Key.isDown(16))) {
_root.enableCheating(!_root.cheat);
}
if (Key.isDown(73)) {
if (_root.showItems) {
_root.displayItems(false);
} else {
_root.displayItems(true);
}
}
if (Key.isDown(83)) {
if (_root.showStats) {
_root.displayStatus(false);
} else {
_root.displayStatus(true);
}
}
if (Key.isDown(69)) {
if (_root.showEquip) {
_root.displayEquip(false);
} else {
_root.displayEquip(true);
}
}
if (Key.isDown(65)) {
if (_root.showIcons) {
_root.displayIcons(false);
} else {
_root.displayIcons(true);
}
}
if (Key.isDown(72)) {
_root.Inter.FAQ._visible = !_root.Inter.FAQ._visible;
} else {
_root.Inter.FAQ._visible = false;
}
if (Key.isDown(80)) {
if (_root.showPlay) {
_root.displayPlaylist(false);
} else {
_root.displayPlaylist(true);
}
}
if (Key.isDown(81) && (Key.isDown(16))) {
_root.setRandomFact(7);
_root.setRandomFact(8);
_root.moveTime(10);
_root.bCheater = true;
}
if (Key.isDown(76) && (Key.isDown(16))) {
_root.setRandomFact(7);
_root.setRandomFact(8);
_root.addCash(100);
_root.bCheater = true;
}
}
};
var disableKeyListener = function () {
Key.removeListener(_root.oKeyListen);
};
var enableKeyListener = function () {
Key.removeListener(_root.oKeyListen);
Key.addListener(_root.oKeyListen);
};
_root.enableKeyListener();
if (_root.Inter.mcOptions == null) {
mc = _root.Inter.createEmptyMovieClip("mcOptions", _root.Inter.getNextHighestDepth());
} else {
mc = _root.Inter.mcOptions;
}
if (_root.Inter.mcOptions.BSave == null) {
mc.attachMovie("Save", "BSave", mc.getNextHighestDepth(), {_x:150, _y:230});
}
mc.BSave.onPress = function () {
_root.Inter.mcOptions.MMBut.pressAgain = false;
_root.displayPlayer(true);
_root.displayOptions(false);
_root.saveGame();
};
if (_root.Inter.mcOptions.BLoad == null) {
mc.attachMovie("Load", "BLoad", mc.getNextHighestDepth(), {_x:250, _y:230});
}
mc.BLoad.onPress = function () {
_root.Inter.mcOptions.MMBut.pressAgain = false;
_root.displayPlayer(true);
_root.displayOptions(false);
_root.loadGame();
};
if (_root.Inter.mcOptions.ASBut == null) {
mc.attachMovie("BubbleBut", "ASBut", mc.getNextHighestDepth(), {_x:150, _y:270});
}
mc.ASBut.onRelease = function () {
if (_root.autoSave) {
this.lable = "Auto Save : NO";
_root.autoSave = false;
} else {
this.lable = "Auto Save : YES";
_root.autoSave = true;
}
};
if (_root.Inter.mcOptions.MMBut == null) {
mc.attachMovie("BubbleBut", "MMBut", mc.getNextHighestDepth(), {_x:150, _y:310});
}
mc.MMBut.onRelease = function () {
if (this.pressAgain) {
this.pressAgain = false;
_root.trans.rb = 0;
_root.trans.gb = 0;
_root.trans.bb = 0;
_root.trans.ab = 0;
_root.trans2.rb = 0;
_root.trans2.gb = 0;
_root.trans2.bb = 0;
_root.trans2.ab = 0;
_root.sunset.setTransform(_root.trans);
_root.cInterColor.setTransform(_root.trans2);
for (var _local3 in _root.aLights) {
_root.aLights[_local3].sunset.setTransform(_root.trans2);
}
_root.displayPlayer(true);
_root.displayOptions(false);
_root.Player._x = _root.swidth / 2;
_root.Player._y = _root.swidth / 2;
_root._x = 0;
_root._y = 0;
_root.Inter._x = 0;
_root.Inter._y = 0;
_root.scrollEffect = 0;
_root.warpTo("KamiInit");
} else {
_root.SMS("Press again, if you're sure you want to quit", 55);
this.pressAgain = true;
}
};
if (_root.Inter.mcOptions.GBut == null) {
mc.attachMovie("BubbleBut", "GBut", mc.getNextHighestDepth(), {_x:150, _y:350});
}
mc.GBut.onRelease = function () {
_root.displayPlayer(true);
_root.displayOptions(false);
};
mc._visible = false;
var displayOptions = function (b) {
_root.Inter.mcOptions.GBut.lable = "RETURN TO GAME";
_root.Inter.mcOptions.MMBut.lable = "QUIT TO MENU";
_root.Inter.mcOptions.ASBut.lable = (_root.autoSave ? "Auto Save : YES" : "Auto Save : NO");
_root.Inter.mcOptions.MMBut.pressAgain = false;
_root.setTimeFlow(!b);
_root.optionActive = b;
_root.Inter.mcOptions._visible = b;
};
var gameFlags = new Object();
var setFlag = function (flag, b) {
if (b == null) {
b = true;
}
_root.gameFlags[flag] = b;
};
var checkFlag = function (flag) {
return(_root.gameFlags[flag]);
};
var traceFlags = function () {
for (ind in _root.gameFlags) {
trace((("" + ind) + " : ") + _root.gameFlags[ind]);
}
};
var gameVars = new Object();
var setVar = function (v, n) {
_root.gameVars[v] = n;
};
var checkVar = function (v) {
return(_root.gameVars[v]);
};
var traceVars = function () {
for (ind in _root.gameVars) {
trace((("" + ind) + " : ") + _root.gameVars[ind]);
}
};
var loadGame = function () {
var _local3 = SharedObject.getLocal("Game-Kamineko", "/");
if (_local3.data.verKami != _root.verKami) {
_root.SMS("Save version mismatch!", 50);
return(undefined);
}
if (_local3.data.CurLevel != _root._currentframe) {
for (var _local4 in _root.aKamiObjects) {
_root.aKamiObjects[_local4].doUnload();
}
_root.aKamiObjects = new Array();
_root.aLights = new Array();
_root.playMusic("");
}
_root.verKami = _local3.data.verKami;
_root.gameFlags = _local3.data.gameFlags;
_root.gameVars = _local3.data.gameVars;
_root.showStats = _local3.data.showStats;
_root.showItems = _local3.data.showItems;
_root.showEquip = _local3.data.showEquip;
_root.showIcons = _local3.data.showIcons;
_root.showPlay = _local3.data.showPlay;
_root.showPlayer = _local3.data.showPlayer;
_root.showPotions = _local3.data.showPotions;
_root.showCash = _local3.data.showCash;
_root.showFightIcon = _local3.data.showFightIcon;
_root.displayStatus(_root.showStats);
_root.displayItems(_root.showItems);
_root.displayEquip(_root.showEquip);
_root.displayIcons(_root.showIcons);
_root.displayPlaylist(_root.showPlay);
_root.displayPlayer(_root.showPlayer);
_root.displayCashIcon(_root.showCash);
_root.displayFightIcon(_root.showFightIcon);
_root.cash = _local3.data.cash;
_root.refreshCash();
_root.cheat = _local3.data.cheat;
_root.bCheater = _local3.data.bCheater;
_root.Inter.tfCheater._visible = _root.cheat;
_root.heal = _local3.data.heal;
_root.mana = _local3.data.mana;
_root.displayPotions(_root.showPotions);
_root.playersCount = _local3.data.playersCount;
_root.monstersCount = _local3.data.monstersCount;
_root.playerAnimate = _local3.data.playerAnimate;
_root.playerCanMove = _local3.data.playerCanMove;
_root.speed = _local3.data.speed;
_root.scrollEffect = _local3.data.scrollEffect;
_root.blackMap = _local3.data.blackMap;
_root.battleFrame = _local3.data.battleFrame;
_root.eBack = _local3.data.eBack;
_root.deadFrame = _local3.data.deadFrame;
_root.timeFlow = _local3.data.timeFlow;
_root.setTimeFlow(_root.timeFlow);
_root.sunEffect = _local3.data.sunEffect;
_root.Sun = _local3.data.Sun;
_root.autoSave = _local3.data.autoSave;
_root.allowSave = _local3.data.allowSave;
_root.worldMap = _local3.data.worldMap;
_root.musicAuto = _local3.data.musicAuto;
_root.musVol = _local3.data.musVol;
_root.allowLights = _local3.data.allowLights;
_root.allowBattleRun = _local3.data.allowBattleRun;
_root.allowKeys = _local3.data.allowKeys;
_root.hr = _local3.data.hr;
_root.mi = _local3.data.mi;
_root.pickups = _local3.data.pickups;
_root.walky = _local3.data.walky;
_root._currentframe = _local3.data.CurLevel;
_root.Player._x = _local3.data.playerX;
_root.Player._y = _local3.data.playerY;
_root.chooseBattleSong = _local3.data.chooseBattleSong;
_root.noMusicFade = _local3.data.noMusicFade;
_root.battleSongs = _local3.data.battleSongs;
_root.daysPlayed = _local3.data.daysPlayed;
_root.aPlayerTeam = _local3.data.aPlayerTeam;
var _local2 = 1;
while (_local2 <= _root.playersCount) {
if (_root.aPlayerTeam[_local2][0][0] != null) {
_root.aPlayerTeam[_local2][0][13] = _root.getDBPlayer(_root.aPlayerTeam[_local2][0][0])[1][13];
_root.aPlayerTeam[_local2][0][13](_root.aPlayerTeam[_local2][0], _root.aPlayerTeam[_local2][1], _root.aPlayerTeam[_local2][2]);
}
_local2++;
}
_root.removeTalk(_root.tempTo);
_root.removeFollower(_root.Follower);
_root.SMS("", 0);
_root.moveTime(0);
_root.sunset.setTransform(_root.trans);
_root.refreshHUD();
_root.refreshItems();
_root.gotoAndStop(_local3.data.CurLevel);
};
var saveGame = function () {
var _local2 = SharedObject.getLocal("Game-Kamineko", "/");
_local2.clear();
_local2.data.aKamiObjects = _root.aKamiObjects;
_local2.data.aLights = _root.aLights;
_local2.data.verKami = _root.verKami;
_local2.data.gameFlags = _root.gameFlags;
_local2.data.gameVars = _root.gameVars;
_local2.data.showStats = _root.showStats;
_local2.data.showItems = _root.showItems;
_local2.data.showEquip = _root.showEquip;
_local2.data.showIcons = _root.showIcons;
_local2.data.showPlay = _root.showPlay;
_local2.data.showPlayer = _root.showPlayer;
_local2.data.showPotions = _root.showPotions;
_local2.data.showCash = _root.showCash;
_local2.data.showFightIcon = _root.showFightIcon;
_local2.data.playersCount = _root.playersCount;
_local2.data.monstersCount = _root.monstersCount;
_local2.data.playerAnimate = _root.playerAnimate;
_local2.data.playerCanMove = _root.playerCanMove;
_local2.data.speed = _root.speed;
_local2.data.cash = _root.cash;
_local2.data.scrollEffect = _root.scrollEffect;
_local2.data.blackMap = _root.blackMap;
_local2.data.battleFrame = _root.battleFrame;
_local2.data.eBack = _root.eBack;
_local2.data.deadFrame = _root.deadFrame;
_local2.data.timeFlow = _root.timeFlow;
_local2.data.sunEffect = _root.sunEffect;
_local2.data.Sun = _root.Sun;
_local2.data.autoSave = _root.autoSave;
_local2.data.allowSave = _root.allowSave;
_local2.data.worldMap = _root.worldMap;
_local2.data.musicAuto = _root.musicAuto;
_local2.data.musVol = _root.musVol;
_local2.data.allowLights = _root.allowLights;
_local2.data.allowBattleRun = _root.allowBattleRun;
_local2.data.allowKeys = _root.allowKeys;
_local2.data.hr = _root.hr;
_local2.data.mi = _root.mi;
_local2.data.heal = _root.heal;
_local2.data.mana = _root.mana;
_local2.data.pickups = _root.pickups;
_local2.data.walky = _root.walky;
_local2.data.cheat = _root.cheat;
_local2.data.bCheater = _root.bCheater;
_local2.data.CurLevel = _root._currentframe;
_local2.data.playerX = _root.Player._x;
_local2.data.playerY = _root.Player._y;
_local2.data.chooseBattleSong = _root.chooseBattleSong;
_local2.data.noMusicFade = _root.noMusicFade;
_local2.data.battleSongs = _root.battleSongs;
_local2.data.daysPlayed = _root.daysPlayed;
_local2.data.aPlayerTeam = _root.aPlayerTeam;
_local2.flush();
};
var checkFree = function (tar, di) {
if (di == null) {
di = 0;
}
while (tar.getInstanceAtDepth(di) != null) {
di++;
}
return(di);
};
var checkFreeBelow = function (tar, di) {
if (di == null) {
di = 0;
}
while (tar.getInstanceAtDepth(di) != null) {
di--;
if (di <= -16384) {
return(tar.getNextHighestDepth());
}
}
return(di);
};
var changeLevel = function (to, nx, ny) {
_root.resetPlayer();
_root.resetFollower(nx, ny);
_root.unloadObjects();
_root.setPlayerPos(nx, ny);
_root.removeTalk();
_root.gotoAndStop(to);
};
var checkWarp = function (tar, mc) {
var _local2 = tar.getBounds(_root);
if ((_local2.xMin < mc._x) && (_local2.xMax > mc._x)) {
if ((_local2.yMin < mc._y) && (_local2.yMax > mc._y)) {
return(true);
}
}
return(false);
};
var bSpaceState = false;
var aKamiObjects = new Array();
var compFun = function (a, b) {
if (a.getMC()._y < b.getMC()._y) {
return(1);
}
if (a.getMC()._y > b.getMC()._y) {
return(-1);
}
return(0);
};
var sortObjects = function () {
_root.aKamiObjects.sort(_root.compFun);
_root.aKamiObjects[0].setLowDepth(_root.checkFreeBelow(_root, _root.Player.getDepth()));
var _local2 = 1;
while (_local2 < _root.aKamiObjects.length) {
_root.aKamiObjects[_local2].setLowDepth(_root.checkFreeBelow(_root, _root.aKamiObjects[_local2 - 1].getLDepth() - 1));
_local2++;
}
};
var unloadObjects = function () {
for (var _local2 in _root.aKamiObjects) {
_root.aKamiObjects[_local2].doUnload();
}
_root.aKamiObjects = new Array();
};
var mcTalkBox;
_root.mcTalkBox = _root.Inter.createEmptyMovieClip("talkBox", _root.Inter.getNextHighestDepth());
_root.mcTalkBox._visible = false;
_root.mcTalkBox.i = 0;
_root.mcTalkBox.tar = null;
_root.mcTalkBox._x = 125;
_root.mcTalkBox._y = 370;
_root.mcTalkBox.lineStyle(1, 16776960, 100);
_root.mcTalkBox.beginGradientFill("linear", [8912896, 16711680], [100, 100], [0, 150], {matrixType:"box", x:0, y:0, w:250, h:80, r:121});
_root.mcTalkBox.moveTo(0, 0);
_root.mcTalkBox.lineTo(260, 0);
_root.mcTalkBox.lineTo(260, 90);
_root.mcTalkBox.lineTo(0, 90);
_root.mcTalkBox.lineTo(0, 0);
_root.mcTalkBox.endFill();
_root.mcTalkBox.createTextField("talkText", _root.mcTalkBox.getNextHighestDepth(), 5, 5, 250, 165);
_root.mcTalkBox.talkText.multiline = true;
_root.mcTalkBox.talkText.wordWrap = true;
_root.mcTalkBox.talkText.selectable = false;
_root.mcTalkBox.talkText.embedFonts = true;
_root.mcTalkBox.talkText.setTextFormat(_root.format);
_root.mcTalkBox.talkText.setNewTextFormat(_root.format);
_root.mcTalkBox.attachMovie("NextPage", "nextTalk", _root.mcTalkBox.getNextHighestDepth());
_root.mcTalkBox.nextTalk.gotoAndStop(1);
_root.mcTalkBox.nextTalk._x = 240;
_root.mcTalkBox.nextTalk._y = 80;
_root.mcTalkBox.nextTalk.onPress = function () {
if (_root.mcTalkBox.tar.say[_root.mcTalkBox.i + 1] != null) {
_root.mcTalkBox.i++;
_root.mcTalkBox.talkText.text = _root.mcTalkBox.tar.say[_root.mcTalkBox.i];
_root.playSound("paper");
if (_root.mcTalkBox.tar.say[_root.mcTalkBox.i + 1] == null) {
_root.mcTalkBox.nextTalk._visible = false;
}
}
};
var talkRefresh = function () {
_root.mcTalkBox.talkText.text = _root.mcTalkBox.tar.say[_root.mcTalkBox.i];
};
Key.addListener(_root.mcTalkBox);
_root.mcTalkBox.onKeyDown = function () {
if (Key.isDown(32) && (_root.mcTalkBox._visible)) {
_root.mcTalkBox.nextTalk.onPress();
}
};
var talk = function (mc) {
if (!_root.inFight) {
if (!_root.mcTalkBox._visible) {
_root.mcTalkBox._visible = true;
_root.mcTalkBox.tar = mc;
if (_root.mcTalkBox.tar.say[_root.mcTalkBox.i]) {
if (_root.mcTalkBox.tar.say[_root.mcTalkBox.i + 1]) {
_root.mcTalkBox.nextTalk._visible = true;
} else {
_root.mcTalkBox.nextTalk._visible = false;
}
_root.mcTalkBox.talkText.text = mc.say[_root.mcTalkBox.i];
} else {
_root.mcTalkBox.nextTalk._visible = false;
}
}
} else {
_root.mcTalkBox._visible = false;
_root.mcTalkBox.nextTalk._visible = false;
}
return(_root.mcTalkBox.i);
};
var removeTalk = function (mc) {
if ((_root.mcTalkBox.tar == mc) || (mc == null)) {
_root.mcTalkBox.i = 0;
_root.mcTalkBox.tar = null;
_root.mcTalkBox._visible = false;
_root.mcTalkBox.nextTalk._visible = false;
}
};
var mover = function (to, rx, ry, speed) {
if (to.t == undefined) {
to.t = 0;
to.cx = to._x;
to.cy = to._y;
}
if (to.t < 0) {
to.t = 40 + (Math.random() * 30);
to.vx = -1 + (Math.random() * 2);
to.vy = -1 + (Math.random() * 2);
} else {
if (to._x > (to.cx + rx)) {
to.vx = Math.abs(to.vx) * -1;
} else if (to._x < (to.cx - rx)) {
to.vx = Math.abs(to.vx);
}
to._x = to._x + (to.vx * speed);
if (to._y > (to.cy + ry)) {
to.vy = Math.abs(to.vy) * -1;
} else if (to._y < (to.cy - ry)) {
to.vy = Math.abs(to.vy);
}
to._y = to._y + (to.vy * speed);
to.t--;
}
};
var moverPath = function (to) {
if (to.tar == null) {
to.tar = 0;
to.spd = to.aPathPoints[0][2];
to.tout = 0;
to.ang = Math.atan2(to.aPathPoints[to.tar][1] - to._y, to.aPathPoints[to.tar][0] - to._x);
} else if (to.tout <= 0) {
if (((to.aPathPoints[to.tar][0] - to.spd) <= to._x) && ((to.aPathPoints[to.tar][0] + to.spd) >= to._x)) {
to._x = to.aPathPoints[to.tar][0];
} else {
to._x = to._x + (Math.cos(to.ang) * to.spd);
}
if (((to.aPathPoints[to.tar][1] - to.spd) <= to._y) && ((to.aPathPoints[to.tar][1] + to.spd) >= to._y)) {
to._y = to.aPathPoints[to.tar][1];
} else {
to._y = to._y + (Math.sin(to.ang) * to.spd);
}
if ((to._y == to.aPathPoints[to.tar][1]) && (to._x == to.aPathPoints[to.tar][0])) {
to.tout = to.aPathPoints[to.tar][3];
to.spd = to.aPathPoints[to.tar][2];
if (to.tar >= (to.aPathPoints.length - 1)) {
to.tar = 0;
} else {
to.tar++;
}
to.ang = Math.atan2(to.aPathPoints[to.tar][1] - to._y, to.aPathPoints[to.tar][0] - to._x);
}
} else {
to.tout--;
}
};
var sell = false;
if (_root.Inter.mcKamiShop == null) {
mc = _root.Inter.createEmptyMovieClip("mcKamiShop", _root.Inter.getNextHighestDepth());
mc.onEnterFrame = function () {
if (this._visible) {
_root.sellTalkBox(this.to);
}
};
mc.onKeyDown = function () {
if (Key.isDown(38)) {
this.to.b--;
}
if (Key.isDown(40)) {
this.to.b++;
}
if (Key.isDown(37)) {
this.to.a--;
}
if (Key.isDown(39)) {
this.to.a++;
}
if (this.to.a < 0) {
this.to.a = this.to.item.length - 1;
} else if (this.to.a > (this.to.item.length - 1)) {
this.to.a = 0;
}
if (this.to.b < 0) {
this.to.b = 0;
} else if (this.to.b > (this.to.item[this.to.a].length - 1)) {
this.to.b = this.to.item[this.to.a].length - 1;
}
if (Key.isDown(32)) {
if (_root.aPlayerTeam[_root.charSelect][1][this.to.a][1] >= this.to.item[this.to.a][this.to.b][1]) {
_root.SMS("You already have better or similiar item equipped!", 60);
} else if (((this.to.item[this.to.a][this.to.b][1] * 10) - (_root.aPlayerTeam[_root.charSelect][1][this.to.a][1] * 5)) <= _root.cash) {
_root.SMS("Thank You!", 50);
_root.playSound("register");
_root.addCash(-((this.to.item[this.to.a][this.to.b][1] * 10) - (_root.aPlayerTeam[_root.charSelect][1][this.to.a][1] * 5)));
_root.aPlayerTeam[_root.charSelect][1][this.to.a][0] = this.to.item[this.to.a][this.to.b][0];
_root.aPlayerTeam[_root.charSelect][1][this.to.a][1] = this.to.item[this.to.a][this.to.b][1];
_root.aPlayerTeam[_root.charSelect][1][5] = ((_root.aPlayerTeam[_root.charSelect][1][1][1] + _root.aPlayerTeam[_root.charSelect][1][2][1]) + _root.aPlayerTeam[_root.charSelect][1][3][1]) + _root.aPlayerTeam[_root.charSelect][1][4][1];
} else {
_root.SMS("Sorry, you cant afford that!", 50);
}
}
};
mc2 = mc.attachMovie("But_Basic", "basicDone", mc.getNextHighestDepth(), {_x:350, _y:370});
mc2.onPress = function () {
_root.Inter.mcKamiShop._visible = false;
Key.removeListener(_root.Inter.mcKamiShop);
_root.sell = false;
_root.setTimeFlow(true);
_root.displayPlayer(true);
};
mc2.createTextField("basicDoneText", mc.basicDone.getNextHighestDepth(), 0, 10, 80, 40);
mc2.basicDoneText.selectable = false;
mc2.basicDoneText.text = "Done";
mc2.basicDoneText.multiline = true;
mc2.basicDoneText.wordWrap = true;
mc2.basicDoneText.embedFonts = true;
mc2.basicDoneText.setTextFormat(_root.format);
mc2 = mc.createEmptyMovieClip("sellBox", mc.getNextHighestDepth());
mc2._x = 130;
mc2._y = 170;
mc2.lineStyle(1, 16776960, 100);
mc2.beginFill(16711680, 100);
mc2.moveTo(0, 0);
mc2.lineTo(250, 0);
mc2.lineTo(250, 180);
mc2.lineTo(0, 180);
mc2.lineTo(0, 0);
mc2.endFill();
mc2.createTextField("sellText", mc2.getNextHighestDepth(), 5, 5, 245, 175);
mc2.sellText.selectable = false;
mc2.sellText.multiline = true;
mc2.sellText.wordWrap = true;
mc2.sellText.embedFonts = true;
mc2.sellText.setNewTextFormat(_root.format);
mc2 = mc.attachMovie("But_Basic", "sellCompare1", mc.getNextHighestDepth());
mc2._x = 130;
mc2._y = 120;
mc2.createTextField("sellCompare1Text", mc2.getNextHighestDepth(), 0, 0, 80, 40);
mc2.sellCompare1Text.selectable = false;
mc2.sellCompare1Text.multiline = true;
mc2.sellCompare1Text.wordWrap = true;
mc2.sellCompare1Text.embedFonts = true;
mc2.sellCompare1Text.setNewTextFormat(_root.format);
mc2 = mc.attachMovie("But_Basic", "sellCompare2", _root.checkFree(mc, 0));
mc2._x = 215;
mc2._y = 120;
mc2.createTextField("sellCompare2Text", mc2.getNextHighestDepth(), 0, 0, 80, 40);
mc2.sellCompare2Text.selectable = false;
mc2.sellCompare2Text.multiline = true;
mc2.sellCompare2Text.wordWrap = true;
mc2.sellCompare2Text.embedFonts = true;
mc2.sellCompare2Text.setNewTextFormat(_root.format);
mc2 = mc.attachMovie("But_Basic", "sellCompare3", mc.getNextHighestDepth());
mc2._x = 300;
mc2._y = 120;
mc2.createTextField("sellCompare3Text", mc2.getNextHighestDepth(), 0, 0, 80, 40);
mc2.sellCompare3Text.selectable = false;
mc2.sellCompare3Text.multiline = true;
mc2.sellCompare3Text.wordWrap = true;
mc2.sellCompare3Text.embedFonts = true;
mc2.sellCompare3Text.setNewTextFormat(_root.format);
}
_root.Inter.mcKamiShop._visible = false;
var openShop = function (to) {
_root.sell = true;
_root.setTimeFlow(false);
_root.displayPlayer(false);
_root.Inter.mcKamiShop.to = to;
_root.Inter.mcKamiShop._visible = true;
to.a = 0;
to.b = 0;
Key.addListener(_root.Inter.mcKamiShop);
_root.sellTalkBox(to);
};
var sellTalkBox = function (to) {
var _local4 = "";
switch (to.a) {
case 0 :
_local4 = "WEAPONS:";
break;
case 1 :
_local4 = "HEADGEAR:";
break;
case 2 :
_local4 = "ARMORS:";
break;
case 3 :
_local4 = "SHOES:";
break;
case 4 :
_local4 = "SHIELDS:";
}
var _local3 = 0;
_local3 = 0;
while (_local3 < to.item[to.a].length) {
if (_local3 == to.b) {
_local4 = _local4 + (("\n>> " + to.item[to.a][_local3][0]) + " <<");
} else {
_local4 = _local4 + (newline + to.item[to.a][_local3][0]);
}
_local3++;
}
_root.Inter.mcKamiShop.sellBox.sellText.text = _local4;
_root.Inter.mcKamiShop.sellCompare1.sellCompare1Text.text = "THIS:\n" + to.item[to.a][to.b][1];
_root.Inter.mcKamiShop.sellCompare2.sellCompare2Text.text = "YOURS:\n" + _root.aPlayerTeam[_root.charSelect][1][to.a][1];
_root.Inter.mcKamiShop.sellCompare3.sellCompare3Text.text = "COST:\n" + ((to.item[to.a][to.b][1] * 10) - (_root.aPlayerTeam[_root.charSelect][1][to.a][1] * 5));
};
var nChooseCur = 0;
var nChooseRet = -1;
var sChooseItem = null;
if (_root.Inter.mcKamiChoose == null) {
mc = _root.Inter.createEmptyMovieClip("mcKamiChoose", _root.Inter.getNextHighestDepth());
} else {
mc = _root.Inter.mcKamiChoose;
}
mc.onKeyDown = function () {
if (Key.isDown(40)) {
_root.nChooseCur++;
if (_root.nChooseCur >= this.tab.length) {
_root.nChooseCur = 0;
}
} else if (Key.isDown(38)) {
_root.nChooseCur--;
if (_root.nChooseCur < 0) {
_root.nChooseCur = this.tab.length - 1;
}
}
if (Key.isDown(32)) {
_root.nChooseRet = _root.nChooseCur;
_root.sChooseItem = this.tab[_root.nChooseRet];
}
};
if (mc.tfText == null) {
mc.createTextField("tfText", mc.getNextHighestDepth(), 0, 0, 0, 0);
}
mc.tfText.autoSize = true;
mc.tfText.border = true;
mc.tfText.borderColor = 16776960 /* 0xFFFF00 */;
mc.tfText.background = true;
mc.tfText.backgroundColor = 16711680 /* 0xFF0000 */;
mc.tfText.multiline = true;
mc.tfText.wordWrap = false;
mc.tfText.selectable = false;
mc.tfText.embedFonts = true;
mc.tfText.setNewTextFormat(_root.format);
_root.Inter.mcKamiChoose._visible = false;
var choose = function (tab) {
var _local4 = "";
if ((tab == null) || (tab.length == 0)) {
throw new Error("Suppled Array is empty!");
}
if (!_root.Inter.mcKamiChoose._visible) {
_root.nChooseCur = 0;
_root.nChooseRet = -1;
_root.displayPlayer(false);
_root.Inter.mcKamiChoose._visible = true;
_root.Inter.mcKamiChoose.tab = tab;
_root.sChooseItem = null;
Key.addListener(_root.Inter.mcKamiChoose);
}
var _local2 = 0;
while (_local2 < tab.length) {
if (_root.nChooseCur == _local2) {
_local4 = _local4 + (("> " + tab[_local2]) + " <\n");
} else {
_local4 = _local4 + (("" + tab[_local2]) + newline);
}
_local2++;
}
_root.Inter.mcKamiChoose.tfText.text = _local4;
_root.Inter.mcKamiChoose.tfText._x = 250 - (_root.Inter.mcKamiChoose.tfText._width / 2);
_root.Inter.mcKamiChoose.tfText._y = 250 - (_root.Inter.mcKamiChoose.tfText._height / 2);
if (_root.nChooseRet != -1) {
Key.removeListener(_root.Inter.mcKamiChoose);
_root.displayPlayer(true);
_root.Inter.mcKamiChoose._visible = false;
}
return(_root.nChooseRet);
};
var pickups = new Array(10);
var nItemsCount = 0;
var giveItem = function (namex, idex, stack, amount, fun) {
if ((namex == "") || (namex == null)) {
return(false);
}
if (!stack) {
amount = null;
} else if (amount == null) {
amount = 1;
}
var _local2 = 0;
_local2 = 0;
while (_local2 < _root.pickups.length) {
if (_root.pickups[_local2][0] == null) {
_root.pickups[_local2] = new Array(namex, ((idex != null) ? (idex) : 1), ((stack != null) ? (stack) : false), amount, fun);
_root.nItemsCount++;
_root.refreshItems();
_root.playSound("pickup");
return(true);
}
if (_root.pickups[_local2][0] == namex) {
if (idex != null) {
_root.pickups[_local2][1] = idex;
}
if (amount != null) {
_root.pickups[_local2][3] = _root.pickups[_local2][3] + amount;
}
if (stack != null) {
_root.pickups[_local2][2] = stack;
if (!stack) {
_root.pickups[_local2][3] = null;
}
}
_root.playSound("pickup");
_root.refreshItems();
return(true);
}
_local2++;
}
return(false);
};
var checkItem = function (namex) {
var _local2 = 0;
_local2 = 0;
while (_local2 < _root.pickups.length) {
if (_root.pickups[_local2][0] == namex) {
return(true);
}
_local2++;
}
return(false);
};
var checkAmount = function (namex) {
var _local2 = 0;
_local2 = 0;
while (_local2 < _root.pickups.length) {
if (_root.pickups[_local2][0] == namex) {
return(_root.pickups[_local2][3]);
}
_local2++;
}
return(0);
};
var killItem = function (namex, amount) {
var _local2 = 0;
_local2 = 0;
while (_local2 < _root.pickups.length) {
if (_root.pickups[_local2][0] == namex) {
if (_root.pickups[_local2][2] && (amount != 0)) {
_root.pickups[_local2][3] = _root.pickups[_local2][3] - ((amount == null) ? 1 : (amount));
if (_root.pickups[_local2][3] > 0) {
_root.refreshItems();
return(undefined);
}
}
_root.pickups[_local2] = null;
_root.refreshItems();
_root.nItemsCount--;
return(undefined);
}
_local2++;
}
};
var itemPic = function (namex) {
var _local2 = 0;
_local2 = 0;
while (_local2 < _root.pickups.length) {
if (_root.pickups[_local2][0] == namex) {
return(_root.pickups[_local2][1]);
}
_local2++;
}
};
var hr = 10;
var mi = 22;
var daysPlayed = 0;
var allowSave = true;
var sunEffect = true;
var Sun = true;
var timeFlow = false;
var trans = new Object();
trans.ra = 100;
trans.rb = 0;
trans.ga = 100;
trans.gb = 0;
trans.ba = 100;
trans.bb = 0;
trans.aa = 100;
trans.ab = 0;
var tmpRB = 0;
var sunset = new Color(_root);
sunset.setTransform(trans);
var trans2 = new Object();
trans2.rb = -_root.trans.rb;
trans2.gb = -_root.trans.gb;
trans2.bb = -_root.trans.bb;
trans2.ab = -_root.trans.ab;
_root.Inter.createTextField("timex", _root.Inter.getNextHighestDepth(), 100, 83, 50, 32);
_root.Inter.timex.selectable = false;
_root.Inter.timex.embedFonts = true;
_root.Inter.timex.setNewTextFormat(_root.format);
_root.Inter.timex._visible = false;
var timeProcess = function () {
_root.moveTime(0.1);
};
_root.addProcessingModule(timeProcess);
var moveTime = function (ile) {
if (_root.timeFlow) {
_root.mi = _root.mi + ile;
if (_root.mi >= 60) {
_root.hr++;
_root.mi = _root.mi - 60;
}
if (_root.hr >= 24) {
_root.hr = 0;
_root.daysPlayed++;
if (_root.autoSave && (!this.beginSave)) {
this.beginSave = true;
}
}
if (_root.hr < 10) {
if (_root.mi < 10) {
_root.Inter.timex.text = (("0" + _root.hr) + ":0") + Math.floor(_root.mi);
} else {
_root.Inter.timex.text = (("0" + _root.hr) + ":") + Math.floor(_root.mi);
}
} else if (_root.mi < 10) {
_root.Inter.timex.text = (("" + _root.hr) + ":0") + Math.floor(_root.mi);
} else {
_root.Inter.timex.text = (("" + _root.hr) + ":") + Math.floor(_root.mi);
}
if (this.beginSave) {
if (((_root.allowSave && (!_root.sell)) && (!_root.inFight)) && (!_root.WorldMapInterface._visible)) {
_root.saveGame();
_root.SMS("Game has been automaticly saved", 45);
this.beginSave = false;
}
}
if ((_root.hr >= 21) && (_root.hr <= 23)) {
_root.setMusicVolume(100 - (((((_root.hr - 21) * 60) + _root.mi) / 180) * 100));
} else if ((_root.hr >= 6) && (_root.hr <= 8)) {
_root.setMusicVolume(((((_root.hr - 6) * 60) + _root.mi) / 180) * 100);
} else if ((_root.hr > 8) && (_root.hr < 21)) {
_root.setMusicVolume(100);
} else if (_root.hr < 6) {
_root.setMusicVolume(0);
}
}
_root.doSunset();
};
var aLights = new Array();
var lamp = function (to) {
_root.aLights[_root.aLights.length] = to;
to.sunset = new Color(to);
to.sunset.setTransform(_root.trans2);
};
if (_root.mcForShake == null) {
_root.createEmptyMovieClip("mcForShake", _root.getNextHighestDepth());
}
var shake = function (ti2, ri) {
_root.mcForShake.onEnterFrame = function () {
if (ti2 > 0) {
ti2--;
_root._x = (Math.random() - 0.5) * ri;
_root._y = (Math.random() - 0.5) * ri;
if (ti2 < 1) {
_root._x = 0;
_root._y = 0;
}
} else {
this.onEnterFrame = null;
}
};
};
if (_root.mcForFade == null) {
_root.createEmptyMovieClip("mcForFade", _root.getNextHighestDepth());
}
var fade = function (fi, f, t, fun) {
_root.trans.ra = 100;
_root.trans.ga = 100;
_root.trans.ba = 100;
_root.sunset.setTransform(_root.trans);
_root.mcForFade.onEnterFrame = function () {
if (fi < _root.trans.ra) {
_root.trans.ra = _root.trans.ra - t;
_root.trans.ga = _root.trans.ga - t;
_root.trans.ba = _root.trans.ba - t;
if (fi > _root.trans.ra) {
_root.trans.ra = fi;
}
} else if (f > 0) {
fun();
f--;
} else if (_root.trans.ra < 100) {
fi = 100;
_root.trans.ra = _root.trans.ra + t;
_root.trans.ga = _root.trans.ga + t;
_root.trans.ba = _root.trans.ba + t;
} else {
_root.trans.ra = 100;
_root.trans.ga = 100;
_root.trans.ba = 100;
_root.sunset.setTransform(_root.trans);
this.onEnterFrame = null;
}
_root.sunset.setTransform(_root.trans);
};
};
var joinParty = function (char, item, skill) {
var _local2 = 1;
while (_local2 <= _root.playersCount) {
if (_root.aPlayerTeam[_local2][0][0] == null) {
var _local3 = _root.Inter["fac" + _local2];
_local3._x = 5 + ((_root.swidth / 3) * (_local2 - 1));
_local3._y = 5;
_local3.id = _local2;
_root.aPlayerTeam[_local2][0] = char;
_root.aPlayerTeam[_local2][1] = item;
_root.aPlayerTeam[_local2][2] = skill;
_root.SMS(("" + char[0]) + " joins the party!", 50);
return(true);
}
_local2++;
}
return(false);
};
var showFollower = false;
if (_root.FollowerInstance == null) {
throw new Error("== ERROR ==\n\"FollowerInstance\" MovieClip not found on the main timeline!");
}
_root.fDepth = _root.FollowerInstance.getDepth();
var addFollower = function (mc) {
if (_root.Follower.isFollowing) {
_root.SMS("You can do only one \"Lead the way\" quest at the same time", 60);
return(false);
}
mc.swapDepths(_root.getNextHighestDepth());
mc.isFollowing = true;
_root.Follower = mc;
mc.onEnterFrame = function () {
if (this.getDepth() > _root.fDepth) {
_root.createEmptyMovieClip("Followers", _root.fDepth);
this.swapDepths(_root.fDepth);
}
if (_root.showFollower) {
if (_root.worldMap > -1) {
this._visible = false;
} else {
this._visible = true;
this.gotoAndStop(this.dir);
}
if (!this.hitTest(_root.Player)) {
var _local5 = Math.atan2(_root.Player._y - this._y, _root.Player._x - this._x);
var _local3 = Math.cos(_local5) * _root.speed;
var _local4 = Math.sin(_local5) * _root.speed;
this._x = this._x + _local3;
this._y = this._y + _local4;
if (Math.abs(_local3) > Math.abs(_local4)) {
if (_local3 > 0) {
this.dir = 4;
} else {
this.dir = 2;
}
} else if (_local4 > 0) {
this.dir = 3;
} else {
this.dir = 1;
}
}
}
};
mc.swapDepths(_root.fDepth);
_root.showFollower = true;
return(true);
};
var removeFollower = function () {
_root.Follower.isFollowing = false;
_root.removeMovie(_root.Follower);
_root.Follower = null;
_root.Followers.swapDepths(_root.fDepth);
};
var displayFollower = function (b) {
_root.Follower._visible = b;
_root.showFollower = b;
};
var resetFollower = function (nx, ny) {
if ((_root.Follower._name != null) && (_root.Follower._name != undefined)) {
_root.Follower.swapDepths(_root.getNextHighestDepth());
}
if (nx != null) {
_root.Follower._x = nx;
}
if (ny != null) {
_root.Follower._y = ny;
}
};
var showFightIcon = false;
var inFight = false;
var battleSongs = new Array();
var aFightMons = new Array(_root.monstersCount);
var nFightCancel = 0;
var chooseBattleSong = true;
var battleFrame = "BattleFrame";
var deadFrame = "StartGame";
var backFrame = 0;
var nReturnPosX = 0;
var nReturnPosY = 0;
var walky = Math.round(150 + (Math.random() * 100));
if (_root.Inter.FightSign == null) {
mc = _root.Inter.attachMovie("FightSign", "FightSign", _root.Inter.getNextHighestDepth());
} else {
mc = _root.Inter.FightSign;
}
mc._visible = false;
mc._x = _root.swidth - 100;
mc._y = 85;
var fightProcess = function () {
_root.Inter.FightSign._visible = _root.bEnemyArea && (_root.showFightIcon);
if (_root.bEnemyArea && (!_root.cheat)) {
if (_root.walky <= 0) {
_root.walky = Math.round(125 + (Math.random() * 175));
_root.forceFight(false);
}
}
};
_root.addProcessingModule(fightProcess);
var fightReturn = function (s) {
_root.inFight = false;
_root.aLights = new Array();
if ((s == null) || (s == "")) {
_root.Player._x = _root.nReturnPosX;
_root.Player._y = _root.nReturnPosY;
_root.changeLevel(_root.backFrame, _root.Player._x, _root.Player._y);
} else {
_root.changeLevel(s, _root.Player._x, _root.Player._y);
}
};
var fightStart = function () {
var _local2 = 0;
while (_local2 < _root.aFightMons.length) {
_root.readDBMonster(_local2, _root.aFightMons[_local2]);
_local2++;
}
_root._x = 0;
_root._y = 0;
_root.Inter._x = 0;
_root.Inter._y = 0;
_root.backFrame = _root._currentframe;
_root.nReturnPosX = _root.Player._x;
_root.nReturnPosY = _root.Player._y;
};
var closerToFight = function () {
if (_root.bEnemyArea) {
_root.walky--;
}
};
var setMonster = function (i, s) {
_root.aFightMons[i] = s;
};
var forceFight = function (noCancels) {
if (noCancels || (_root.nFightCancel <= 0)) {
_root.inFight = true;
if (_root.chooseBattleSong) {
var _local2 = Math.floor(Math.random() * _root.battleSongs.length);
_root.onRandomEncounter(_root.battleSongs[_local2]);
} else {
_root.onRandomEncounter();
}
} else {
_root.onFightCancel();
_root.nFightCancel--;
}
};
var displayFightIcon = function (b) {
_root.showFightIcon = b;
_root.Inter.FightSign._visible = b;
};
var showPlay = false;
var noMusicFade = false;
var musicAuto = true;
var musVol = 75;
var nFadeVol = _root.musVol;
var nFadeDir = 0;
var bMusicPlayerLoaded = false;
var aSongsList = null;
var playFormat = new TextFormat();
playFormat.align = "left";
playFormat.size = 12;
playFormat.font = "Fontex";
playFormat.color = 16776960 /* 0xFFFF00 */;
if (_root.Inter.MusicPlayer == null) {
_root.mc = null;
_root.Inter.createEmptyMovieClip("MusicPlayer", _root.Inter.getNextHighestDepth());
_root.Inter.MusicPlayer._y = _root.sheight - 20;
_root.Inter.MusicPlayer._x = 5;
_root.Inter.MusicPlayer.beginFill(16777215, 0);
_root.Inter.MusicPlayer.moveTo(0, 0);
_root.Inter.MusicPlayer.lineTo(20, 0);
_root.Inter.MusicPlayer.lineTo(20, 20);
_root.Inter.MusicPlayer.lineTo(0, 20);
_root.Inter.MusicPlayer.endFill();
_root.mc2 = _root.Inter.MusicPlayer.createEmptyMovieClip("btPlay", _root.Inter.MusicPlayer.getNextHighestDepth());
_root.mc2.lineStyle(1, 16776960, 100);
_root.mc2.moveTo(4, 4);
_root.mc2.lineTo(16, 10);
_root.mc2.lineTo(4, 16);
_root.mc2.lineTo(4, 4);
_root.mc2 = _root.Inter.MusicPlayer.createEmptyMovieClip("btStop", _root.Inter.MusicPlayer.getNextHighestDepth());
_root.mc2.lineStyle(1, 16776960, 100);
_root.mc2.moveTo(4, 4);
_root.mc2.lineTo(16, 4);
_root.mc2.lineTo(16, 16);
_root.mc2.lineTo(4, 16);
_root.mc2.lineTo(4, 4);
_root.mc2._visible = false;
_root.Inter.MusicPlayer.createTextField("tfName", _root.Inter.MusicPlayer.getNextHighestDepth(), 20, 2, 80, 20);
_root.Inter.MusicPlayer.tfName.multiline = false;
_root.Inter.MusicPlayer.tfName.wordWrap = false;
_root.Inter.MusicPlayer.tfName.selectable = false;
_root.Inter.MusicPlayer.tfName.setTextFormat(_root.playFormat);
_root.Inter.MusicPlayer.tfName.setNewTextFormat(_root.playFormat);
_root.Inter.MusicPlayer.onRollOver = function () {
if (_root.Inter.MusicPlayer.btStop._visible) {
_root.Inter.MusicPlayer.btStop._alpha = 50;
_root.Inter.MusicPlayer.btPlay._visible = true;
} else {
_root.Inter.MusicPlayer.btPlay._alpha = 50;
_root.Inter.MusicPlayer.btStop._visible = true;
}
};
_root.Inter.MusicPlayer.onRollOut = function () {
if (_root.Inter.MusicPlayer.btStop._alpha == 50) {
_root.Inter.MusicPlayer.btStop._alpha = 100;
_root.Inter.MusicPlayer.btPlay._visible = false;
} else {
_root.Inter.MusicPlayer.btPlay._alpha = 100;
_root.Inter.MusicPlayer.btStop._visible = false;
}
};
_root.Inter.MusicPlayer.onPress = function () {
_root.Inter.MusicPlayer.stopSong(_root.musicAuto);
_root.musicAuto = !_root.musicAuto;
if (_root.Inter.MusicPlayer.btStop._alpha == 50) {
_root.Inter.MusicPlayer.btStop._alpha = 100;
_root.Inter.MusicPlayer.btPlay._alpha = 50;
} else {
_root.Inter.MusicPlayer.btPlay._alpha = 100;
_root.Inter.MusicPlayer.btStop._alpha = 50;
}
};
_root.Inter.MusicPlayer.onEnterFrame = function () {
if (_root.Inter.MusicPlayer.tout1 < _root.Inter.MusicPlayer.tout2) {
_root.Inter.MusicPlayer.tout1++;
if (_root.Inter.MusicPlayer.tout1 > 40) {
_root.Inter.MusicPlayer.tfName.hscroll++;
}
} else {
_root.Inter.MusicPlayer.tfName._visible = false;
}
if (_root.nFadeVol != _root.musVol) {
_root.musVol = _root.musVol + _root.nFadeDir;
}
};
_root.Inter.MusicPlayer.curSong = null;
_root.Inter.MusicPlayer.curName = null;
_root.Inter.MusicPlayer.tout1 = 0;
_root.Inter.MusicPlayer.tout2 = 0;
_root.Inter.MusicPlayer.lista = null;
_root.Inter.MusicPlayer.songs = null;
_root.Inter.MusicPlayer.getSongs = function (a) {
_root.Inter.MusicPlayer.lista = a;
_root.Inter.MusicPlayer.songs = new Array(a.length);
var _local2 = 0;
while (_local2 < a.length) {
if (a[_local2][0].charAt(a[_local2][0].length - 1) == "3") {
_root.Inter.MusicPlayer.songs[_local2] = new Sound(_root.Inter.MusicPlayer);
_root.Inter.MusicPlayer.songs[_local2].loadSound(a[_local2][0], false);
} else {
_root.Inter.MusicPlayer.songs[_local2] = new Sound(_root.Inter);
_root.Inter.MusicPlayer.songs[_local2].attachSound("mus_" + a[_local2][0]);
}
_local2++;
}
};
_root.Inter.MusicPlayer.setSong = function (n) {
if (_root.Inter.MusicPlayer.curName == n) {
return(undefined);
}
_root.Inter.MusicPlayer.stopSong(true);
if (n == "") {
_root.Inter.MusicPlayer.curSong = null;
_root.Inter.MusicPlayer.curName = n;
} else {
var _local2 = 0;
while (_local2 < _root.Inter.MusicPlayer.lista.length) {
if (_root.Inter.MusicPlayer.lista[_local2][1] == n) {
_root.Inter.MusicPlayer.lista[_local2][2] = true;
_root.Inter.MusicPlayer.curSong = _root.Inter.MusicPlayer.songs[_local2];
_root.setMusicVolume(_root.musVol);
_root.Inter.MusicPlayer.curSong.setVolume(_root.musVol);
_root.Inter.MusicPlayer.curSong.start(0, 16777215);
_root.Inter.MusicPlayer.curName = n;
_root.Inter.MusicPlayer.tout1 = 0;
_root.Inter.MusicPlayer.tout2 = 80 + (n.length * 3);
_root.Inter.MusicPlayer.tfName.hscroll = 0;
_root.Inter.MusicPlayer.tfName._visible = true;
if (_root.Inter.MusicPlayer.curSong.getBytesLoaded() != _root.Inter.MusicPlayer.curSong.getBytesTotal()) {
_root.Inter.MusicPlayer.tfName.text = "LOADING";
} else {
_root.Inter.MusicPlayer.tfName.text = n;
}
return(undefined);
}
_local2++;
}
}
};
_root.Inter.MusicPlayer.stopSong = function (b) {
if (_root.Inter.MusicPlayer.curSong == null) {
return(undefined);
}
if (b) {
_root.Inter.MusicPlayer.curSong.stop();
} else {
_root.Inter.MusicPlayer.curSong.start(0, 16777215);
}
};
_root.Inter.MusicPlayer.unlockSong = function (n) {
if (_root.Inter.MusicPlayer.curName == n) {
return(undefined);
}
var _local2 = 0;
while (_local2 < _root.Inter.MusicPlayer.lista.length) {
if (_root.Inter.MusicPlayer.lista[_local2][1] == n) {
_root.Inter.MusicPlayer.lista[_local2][2] = true;
_root.Inter.MusicPlayer.curSong = _root.Inter.MusicPlayer.songs[_local2];
_root.Inter.MusicPlayer.curName = n;
_root.Inter.MusicPlayer.tout = 100;
_root.Inter.MusicPlayer.tfName.hscroll = 0;
_root.Inter.MusicPlayer.tfName._visible = true;
if (_root.Inter.MusicPlayer.curSong.getBytesLoaded() != _root.Inter.MusicPlayer.curSong.getBytesTotal()) {
_root.Inter.MusicPlayer.tfName.text = "LOADING";
} else {
_root.Inter.MusicPlayer.tfName.text = n;
}
return(undefined);
}
_local2++;
}
if (n == "") {
_root.Inter.MusicPlayer.curSong = null;
_root.Inter.MusicPlayer.curName = n;
}
};
_root.Inter.MusicPlayer.changeVolume = function (n) {
_root.musVol = n;
_root.Inter.MusicPlayer.curSong.setVolume(n);
};
_root.setSongList();
_root.bMusicPlayerLoaded = true;
_root.Inter.MusicPlayer._visible = false;
}
_root.Inter.MusicPlayer._visible = false;
var playMusic = function (n) {
if (_root.musicAuto) {
_root.Inter.MusicPlayer.setSong(n);
} else {
_root.Inter.MusicPlayer.unlockSong(n);
}
};
var forceMusic = function (n) {
_root.Inter.MusicPlayer.setSong(n);
};
var fadeMusic = function (fad) {
if (_root.musicAuto && (!_root.noMusicFade)) {
if (_root.nFadeVol > _root.musVol) {
_root.nFadeDir = 1;
} else if (_root.nFadeVol < _root.musVol) {
_root.nFadeDir = -1;
} else {
_root.nFadeDir = 0;
}
_root.nFadeVol = fad;
}
};
var forceMusicVolume = function (v) {
if (v > 100) {
v = 100;
} else if (v < 0) {
v = 0;
}
if (v == _root.musVol) {
return(undefined);
}
_root.Inter.MusicPlayer.changeVolume(v);
};
var setMusicVolume = function (v) {
if (_root.noMusicFade) {
return(undefined);
}
if (v > 100) {
v = 100;
} else if (v < 0) {
v = 0;
}
if (v == _root.musVol) {
return(undefined);
}
_root.Inter.MusicPlayer.changeVolume(v);
};
var displayPlaylist = function (b) {
_root.showPlay = b;
_root.Inter.MusicPlayer._visible = b;
};
var setSongList = function (a) {
if (a != null) {
_root.aSongsList = a;
_root.Inter.MusicPlayer.getSongs(a);
} else {
_root.Inter.MusicPlayer.getSongs(_root.aSongsList);
}
};
var sndVol = 100;
var nLastLoaded = 0;
var nLastLoadedLoop = 0;
var sLastPlayed = null;
var nTimePlayed = 0;
var SND = new Array();
var mcGlobalControl = _root.createEmptyMovieClip("GlobalSoundControler", _root.getNextHighestDepth());
var playSound = function (n, b, l) {
var _local2 = 0;
if ((l >= 0) || (l == null)) {
_local2 = 0;
while (_local2 < _root.SND.length) {
if (((_root.SND[_local2][0] == n) && (_root.SND[_local2][2] != 0)) && (_root.SND[_local2][2] != null)) {
return(undefined);
}
_local2++;
}
_local2 = 0;
while (_local2 <= _root.SND.length) {
if ((_root.SND[_local2][1] == null) || ((_root.SND[_local2][1].duration == _root.SND[_local2][1].position) && ((_root.SND[_local2][2] == 0) || (_root.SND[_local2][2] == null)))) {
if ((_root.sLastPlayed == n) && ((getTimer() - _root.nTimePlayed) < 200)) {
return(undefined);
}
_root.sLastPlayed = n;
_root.nTimePlayed = getTimer();
_root.SND[_local2] = new Array(n, new Sound(_root.mcGlobalControl), l);
_root.SND[_local2][1].attachSound("snd_" + n);
if (b) {
var _local4 = Math.cos(Math.random() * Math.PI) * 100;
_root.SND[_local2][1].setTransform({ll:_local4, lr:100 - _local4, rr:0, rl:0});
} else {
_root.SND[_local2][1].setTransform({ll:100, lr:100, rr:100, rl:100});
}
_root.SND[_local2][1].setVolume(_root.sndVol);
if (_root.SND[_local2][1].position == null) {
_root.SND[_local2][1].loadSound(("Sound/" + n) + ".mp3", true);
_root.SND[_local2][1].onLoad = _root.commonOnLoadEvent;
_root.nLastLoaded = _local2;
_root.nLastLoadedLoop = l;
} else {
_root.SND[_local2][1].start(0, l);
}
break;
}
_local2++;
}
} else {
for (var _local11 in _root.SND) {
if (_root.SND[_local11][0] == n) {
_root.SND[_local11][1].stop();
_root.SND[_local11] = null;
}
}
}
};
var commonOnLoadEvent = function (b) {
if (b) {
_root.SND[_root.nLastLoaded][1].start(0, _root.nLastLoadedLoop);
}
};
var resetSounds = function () {
for (var _local2 in _root.SND) {
_root.SND[_local2][1].stop();
_root.SND[_local2] = null;
}
};
var addFText = function (nx, ny, s, c) {
var fmc = _root.createEmptyMovieClip("Battle_Text" + Math.random(), _root.getNextHighestDepth());
fmc._x = nx;
fmc._y = ny;
fmc.createTextField("t2", fmc.getNextHighestDepth(), 0, 0, 30, 15);
if (c == null) {
c = 65280;
}
fmc.sunset = new Color(fmc);
var _local3 = new TextFormat();
_local3.color = c;
_local3.font = "Fontex";
_local3.size = 14;
fmc.t2.text = s;
fmc.t2.selectable = false;
fmc.t2.embedFonts = true;
fmc.t2.setTextFormat(_local3);
fmc.t2.setNewTextFormat(_local3);
fmc.t2.autoSize = true;
fmc.onEnterFrame = function () {
fmc.sunset.setTransform(_root.trans2);
this.t2._y = this.t2._y - 1;
if (this.t2._y < -15) {
this.t2._alpha = this.t2._alpha - 2;
if (this.t2._y < -45) {
this.removeMovieClip();
this.unloadMovie();
removeMovieClip(this);
}
}
};
};
var cInterColor = new Color(_root.Inter);
if (_root.Inter.FAQ == null) {
_root.Inter.attachMovie("FAQ", "FAQ", _root.Inter.getNextHighestDepth());
}
_root.Inter.FAQ.gotoAndStop(1);
_root.Inter.FAQ._visible = false;
_root.Inter.FAQ._x = (_root.swidth / 2) - (_root.Inter.FAQ._width / 2);
_root.Inter.FAQ._y = ((_root.sheight / 2) - (_root.Inter.FAQ._height / 2)) + 30;
var cheat = false;
var bCheater = false;
if (_root.Inter.tfCheater == null) {
_root.Inter.createTextField("tfCheater", _root.Inter.getNextHighestDepth(), (_root.swidth / 2) - 80, 105, 128, 32);
}
_root.Inter.tfCheater.selectable = false;
_root.Inter.tfCheater.embedFonts = true;
_root.Inter.tfCheater.text = "No Enemies Encounter!";
_root.Inter.tfCheater.setTextFormat(_root.format);
_root.Inter.tfCheater._visible = false;
var enableCheating = function (b) {
_root.Inter.tfCheater._visible = b;
_root.cheat = b;
_root.bCheater = b || (_root.bCheater);
_root.setRandomFact(8);
};
var showIcons = false;
var refreshHUD = function () {
var _local2 = 1;
while (_local2 <= _root.playersCount) {
_root.aIcons[_local2 - 1].doRefresh(_local2);
_local2++;
}
if (_root.charSelect == 0) {
_local2 = 1;
while (_local2 <= _root.playersCount) {
if (_root.aPlayerTeam[_local2][0] != null) {
_root.charSelect = _local2;
_root.changePlayerAvatar(_root.aPlayerTeam[_root.charSelect][0][0]);
break;
}
_local2++;
}
}
};
var displayIcons = function (b) {
_root.showIcons = b;
};
var aIcons = new Array();
var i = 1;
while (i <= _root.playersCount) {
_root.aIcons[i - 1] = new classes.KamiIcon(i);
i++;
}
_root.refreshHUD();
var showPotions = false;
var heal = new Array(new Array(0, 25), new Array(0, 125));
var mana = new Array(new Array(0, 15), new Array(0, 50));
if (_root.aHealMC == null) {
var aHealMC = new Array();
}
i = 0;
while (i < _root.heal.length) {
if (_root.aHealMC[i] == null) {
_root.aHealMC[i] = _root.Inter.attachMovie("PotionH", "mcHeal" + i, _root.Inter.getNextHighestDepth());
mc = _root.aHealMC[i];
} else {
mc = _root.aHealMC[i];
}
mc._visible = false;
mc._alpha = 75;
mc._x = 10;
mc._y = 95 + (mc._height * i);
mc.gotoAndStop(i + 1);
mc.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
mc.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
mc.onPress = function () {
if (_root.aPlayerTeam[_root.charSelect][0][5] <= 0) {
_root.SMS("Fainted character needs a full recovery first!", 60);
return(undefined);
}
if (_root.heal[this._currentframe - 1][0] > 0) {
_root.heal[this._currentframe - 1][0]--;
if (_root.heal[this._currentframe - 1][0] <= 0) {
_root.heal[this._currentframe - 1][0] = 0;
this._alpha = 75;
} else {
this._alpha = 100;
}
_root.Inter["tfHealText" + (this._currentframe - 1)].text = _root.heal[this._currentframe - 1][0];
_root.playSound("drinking");
_root.addFText(this._parent["fac" + _root.charSelect]._x + 25, this._parent["fac" + _root.charSelect]._y + 25, "+ " + _root.heal[this._currentframe - 1][1], 13369344);
_root.aPlayerTeam[_root.charSelect][0][5] = _root.aPlayerTeam[_root.charSelect][0][5] + _root.heal[this._currentframe - 1][1];
if (_root.aPlayerTeam[_root.charSelect][0][5] > _root.aPlayerTeam[_root.charSelect][0][6]) {
_root.aPlayerTeam[_root.charSelect][0][5] = _root.aPlayerTeam[_root.charSelect][0][6];
}
} else {
_root.SMS("You dont have any Healing Potions", 60);
}
};
if (_root.Inter["tfHealText" + i] == null) {
_root.Inter.createTextField("tfHealText" + i, _root.Inter.getNextHighestDepth(), mc._x + 30, mc._y + 4, 25, 25);
_root.Inter["tfHealText" + i].multiline = false;
_root.Inter["tfHealText" + i].selectable = false;
_root.Inter["tfHealText" + i].embedFonts = true;
_root.Inter["tfHealText" + i].setNewTextFormat(_root.format);
}
_root.Inter["tfHealText" + i]._visible = false;
i++;
}
var addHeal = function (t, a) {
if (a == null) {
a = 1;
}
_root.heal[t][0] = _root.heal[t][0] + a;
if (_root.heal[t][0] <= 0) {
_root.heal[t][0] = 0;
_root.Inter["mcHeal" + t]._alpha = 75;
} else {
_root.Inter["mcHeal" + t]._alpha = 100;
}
_root.Inter["tfHealText" + t].text = _root.heal[t][0];
};
var restoreHealth = function (b) {
if (b) {
var _local2 = 1;
while (_local2 <= _root.playersCount) {
if (_root.aPlayerTeam[_local2][0] != null) {
_root.aPlayerTeam[_local2][0][5] = _root.aPlayerTeam[_local2][0][6];
}
_local2++;
}
} else {
_root.aPlayerTeam[_root.charSelect][0][5] = _root.aPlayerTeam[_root.charSelect][0][6];
}
};
if (_root.aManaMC == null) {
var aManaMC = new Array();
}
i = 0;
while (i < _root.mana.length) {
if (_root.aManaMC[i] == null) {
_root.aManaMC[i] = _root.Inter.attachMovie("PotionM", "mcMana" + i, _root.Inter.getNextHighestDepth());
mc = _root.aManaMC[i];
} else {
mc = _root.aManaMC[i];
}
mc._visible = false;
mc._alpha = 75;
mc._x = (_root.swidth - mc._width) - 10;
mc._y = 95 + (mc._height * i);
mc.gotoAndStop(i + 1);
mc.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
mc.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
mc.onPress = function () {
if (_root.aPlayerTeam[_root.charSelect][0][5] <= 0) {
_root.SMS("Fainted character needs a full recovery first!", 60);
return(undefined);
}
if (_root.mana[this._currentframe - 1][0] > 0) {
_root.mana[this._currentframe - 1][0]--;
if (_root.mana[this._currentframe - 1][0] <= 0) {
_root.mana[this._currentframe - 1][0] = 0;
this._alpha = 75;
} else {
this._alpha = 100;
}
_root.Inter["tfManaText" + (this._currentframe - 1)].text = _root.mana[this._currentframe - 1][0];
_root.playSound("drinking");
_root.addFText(this._parent["fac" + _root.charSelect]._x + 25, this._parent["fac" + _root.charSelect]._y + 25, "+ " + _root.mana[this._currentframe - 1][1], 204);
_root.aPlayerTeam[_root.charSelect][0][7] = _root.aPlayerTeam[_root.charSelect][0][7] + _root.mana[this._currentframe - 1][1];
if (_root.aPlayerTeam[_root.charSelect][0][7] > _root.aPlayerTeam[_root.charSelect][0][8]) {
_root.aPlayerTeam[_root.charSelect][0][7] = _root.aPlayerTeam[_root.charSelect][0][8];
}
} else {
_root.SMS("You dont have any Mana Potions", 60);
}
};
if (_root.Inter["tfManaText" + i] == null) {
_root.Inter.createTextField("tfManaText" + i, _root.Inter.getNextHighestDepth(), mc._x - 35, mc._y + 4, 25, 25);
_root.Inter["tfManaText" + i].multiline = false;
_root.Inter["tfManaText" + i].selectable = false;
_root.Inter["tfManaText" + i].embedFonts = true;
_root.Inter["tfManaText" + i].setNewTextFormat(_root.format);
}
_root.Inter["tfManaText" + i]._visible = false;
i++;
}
var addMana = function (t, a) {
if (a == null) {
a = 1;
}
_root.mana[t][0] = _root.mana[t][0] + a;
if (_root.mana[t][0] <= 0) {
_root.mana[t][0] = 0;
_root.Inter["mcMana" + t]._alpha = 75;
} else {
_root.Inter["mcMana" + t]._alpha = 100;
}
_root.Inter["tfManaText" + t].text = _root.mana[t][0];
};
var restoreMana = function (b) {
if (b) {
var _local2 = 1;
while (_local2 <= _root.playersCount) {
if (_root.aPlayerTeam[_local2][0] != null) {
_root.aPlayerTeam[_local2][0][7] = _root.aPlayerTeam[_local2][0][8];
}
_local2++;
}
} else {
_root.aPlayerTeam[_root.charSelect][0][7] = _root.aPlayerTeam[_root.charSelect][0][8];
}
};
var displayPotions = function (b) {
_root.showPotions = b;
var _local2 = 0;
_local2 = 0;
while (_local2 < _root.aHealMC.length) {
_root.aHealMC[_local2]._visible = b;
_root.Inter["tfHealText" + _local2]._visible = b;
_root.Inter["tfHealText" + _local2].text = _root.heal[_local2][0];
if (_root.heal[_local2][0] <= 0) {
_root.heal[_local2][0] = 0;
_root.Inter["mcHeal" + _local2]._alpha = 75;
} else {
_root.Inter["mcHeal" + _local2]._alpha = 100;
}
_local2++;
}
_local2 = 0;
while (_local2 < _root.aManaMC.length) {
_root.aManaMC[_local2]._visible = b;
_root.Inter["tfManaText" + _local2]._visible = b;
_root.Inter["tfManaText" + _local2].text = _root.mana[_local2][0];
if (_root.mana[_local2][0] <= 0) {
_root.mana[_local2][0] = 0;
_root.Inter["mcMana" + _local2]._alpha = 75;
} else {
_root.Inter["mcMana" + _local2]._alpha = 100;
}
_local2++;
}
};
var refreshPotions = function () {
idx = 0;
while (idx < _root.aHealMC.length) {
_root.Inter["tfHealText" + idx].text = _root.heal[idx][0];
if (_root.heal[idx][0] <= 0) {
_root.heal[idx][0] = 0;
_root.Inter["mcHeal" + idx]._alpha = 75;
} else {
_root.Inter["mcHeal" + idx]._alpha = 100;
}
idx++;
}
idx = 0;
while (idx < _root.aManaMC.length) {
_root.Inter["tfManaText" + idx].text = _root.mana[idx][0];
if (_root.mana[idx][0] <= 0) {
_root.mana[idx][0] = 0;
_root.Inter["mcMana" + idx]._alpha = 75;
} else {
_root.Inter["mcMana" + idx]._alpha = 100;
}
idx++;
}
};
var showCash = false;
var cash = 20;
if (_root.Inter.CashIcon == null) {
_root.Inter.attachMovie("CashIcon", "CashIcon", _root.Inter.getNextHighestDepth());
}
_root.Inter.CashIcon._visible = false;
_root.Inter.CashIcon._x = (_root.swidth / 2) - 50;
_root.Inter.CashIcon._y = 85;
if (_root.Inter.CashIcon.cashText == null) {
_root.Inter.CashIcon.createTextField("cashText", _root.Inter.CashIcon.getNextHighestDepth(), 25, -2, 80, 32);
}
_root.Inter.CashIcon.cashText.selectable = false;
_root.Inter.CashIcon.cashText.multiline = false;
_root.Inter.CashIcon.cashText.embedFonts = true;
_root.Inter.CashIcon.cashText.setNewTextFormat(_root.format);
_root.Inter.CashIcon.cashText.text = _root.cash;
var displayCashIcon = function (b) {
_root.Inter.CashIcon._visible = b;
_root.showCash = b;
};
var addCash = function (n) {
_root.cash = _root.cash + n;
_root.Inter.CashIcon.cashText.text = _root.cash;
};
var refreshCash = function () {
_root.Inter.CashIcon.cashText.text = _root.cash;
};
var showStats = false;
if (_root.Inter.InfoStatus == null) {
mc = _root.Inter.attachMovie("InfoStatus", "InfoStatus", _root.Inter.getNextHighestDepth());
mc.createTextField("statusText", mc.getNextHighestDepth(), 16, 16, 80, 144);
mc.statusText.multiline = true;
mc.statusText.selectable = false;
mc.statusText.embedFonts = true;
mc.statusText.setNewTextFormat(_root.format);
} else {
mc = _root.Inter.InfoStatus;
}
mc._visible = false;
mc._y = (_root.sheight / 2) - (mc._height / 2);
mc._x = (-mc._width) + 20;
mc.useHandCursor = false;
mc.onRollOver = function () {
this._x = 0;
this.statusText.text = ((((((((((((_root.aPlayerTeam[_root.charSelect][0][0] + "(") + _root.aPlayerTeam[_root.charSelect][0][11]) + "lvl)") + "\n STR: ") + _root.aPlayerTeam[_root.charSelect][0][1]) + "\n VIT: ") + _root.aPlayerTeam[_root.charSelect][0][2]) + "\n DEX: ") + _root.aPlayerTeam[_root.charSelect][0][3]) + "\n INT: ") + _root.aPlayerTeam[_root.charSelect][0][4]) + "\n\n DEF: ") + _root.aPlayerTeam[_root.charSelect][1][5];
};
mc.onRollOut = function () {
this._x = (-this._width) + 20;
};
var displayStatus = function (b) {
_root.showStats = b;
_root.Inter.InfoStatus._visible = b;
};
var showEquip = false;
if (_root.Inter.Inventory == null) {
mc = _root.Inter.attachMovie("Inventory", "Inventory", _root.Inter.getNextHighestDepth());
} else {
mc = _root.Inter.Inventory;
}
if (_root.Inter.statusText == null) {
_root.Inter.createTextField("statusText", _root.Inter.getNextHighestDepth(), this._x, this._y, 144, 32);
}
_root.Inter.statusText.selectable = false;
_root.Inter.statusText.autoSize = true;
_root.Inter.statusText.multiline = true;
_root.Inter.statusText.embedFonts = true;
_root.Inter.statusText.setNewTextFormat(_root.format);
_root.Inter.statusText._visible = false;
mc._visible = false;
mc._y = (_root.sheight / 2) - (mc._height / 2);
mc._x = _root.swidth - 20;
mc.useHandCursor = false;
var bEquipMouseOver = false;
mc.onMouseMove = function () {
if (!_root.bEquipMouseOver) {
return(undefined);
}
this._x = _root.swidth - this._width;
var _local3 = 0;
if ((this._ymouse < 0) || (this._ymouse >= 180)) {
this._parent.statusText._visible = false;
} else {
this._parent.statusText._visible = true;
if (this._ymouse < 36) {
_local3 = 0;
} else if (this._ymouse < 72) {
_local3 = 1;
} else if (this._ymouse < 108) {
_local3 = 2;
} else if (this._ymouse < 144) {
_local3 = 3;
} else if (this._ymouse < 180) {
_local3 = 4;
}
}
if ((_root.aPlayerTeam[_root.charSelect][1][_local3][0] != "") && (_root.aPlayerTeam[_root.charSelect][1][_local3][0] != undefined)) {
this._parent.statusText.text = (_root.aPlayerTeam[_root.charSelect][1][_local3][0] + " : +") + _root.aPlayerTeam[_root.charSelect][1][_local3][1];
} else {
this._parent.statusText.text = "No item equipped";
}
this._parent.statusText._x = (this._parent._xmouse - this._parent.statusText._width) - 48;
this._parent.statusText._y = this._parent._ymouse - this._parent.statusText._height;
};
mc.onRollOver = function () {
_root.bEquipMouseOver = true;
};
mc.onRollOut = function () {
this._x = _root.swidth - 20;
_root.bEquipMouseOver = false;
this._parent.statusText._visible = false;
};
var addEquip = function (char, iid, a) {
if ((a == null) || (iid > 4)) {
return(false);
}
if (char == null) {
var _local2 = 1;
while (_local2 <= _root.playersCount) {
if ((_root.aPlayerTeam[_local2][0] != null) && (_root.aPlayerTeam[_local2][1][iid][0] != a[0])) {
char = _local2;
break;
}
_local2++;
}
}
if (char == null) {
return(false);
}
_root.aPlayerTeam[_local2][1][iid] = a;
if (iid > 0) {
_root.aPlayerTeam[_local2][1][5] = ((_root.aPlayerTeam[_local2][1][1][1] + _root.aPlayerTeam[_local2][1][2][1]) + _root.aPlayerTeam[_local2][1][3][1]) + _root.aPlayerTeam[_local2][1][4][1];
}
return(true);
};
var addBetterEquip = function (char, iid, a) {
if ((a == null) || (iid > 4)) {
return(false);
}
if (char == null) {
var _local2 = 1;
while (_local2 <= _root.playersCount) {
if ((_root.aPlayerTeam[_local2][0] != null) && (_root.aPlayerTeam[_local2][1][iid][1] < a[1])) {
char = _local2;
break;
}
_local2++;
}
}
if (char == null) {
return(false);
}
_root.aPlayerTeam[_local2][1][iid] = a;
if (iid > 0) {
_root.aPlayerTeam[_local2][1][5] = ((_root.aPlayerTeam[_local2][1][1][1] + _root.aPlayerTeam[_local2][1][2][1]) + _root.aPlayerTeam[_local2][1][3][1]) + _root.aPlayerTeam[_local2][1][4][1];
}
return(true);
};
var displayEquip = function (b) {
_root.showEquip = b;
_root.Inter.Inventory._visible = b;
};
var bDropDialog = false;
var showItems = false;
var aMCPickups = new Array();
if (_root.Inter.Items == null) {
mc = _root.Inter.attachMovie("Items", "Items", _root.Inter.getNextHighestDepth());
} else {
mc = _root.Inter.Items;
}
if (_root.Inter.itemsText == null) {
_root.Inter.createTextField("itemsText", _root.Inter.getNextHighestDepth(), 0, 0, 144, 32);
}
_root.Inter.itemsText.selectable = false;
_root.Inter.itemsText.autoSize = "center";
_root.Inter.itemsText.multiline = false;
_root.Inter.itemsText.embedFonts = true;
_root.Inter.itemsText.setNewTextFormat(_root.format);
_root.Inter.itemsText._visible = false;
mc._visible = false;
mc._x = ((_root.swidth / 2) - (mc._width / 2)) + 50;
mc._y = _root.sheight - 20;
mc.useHandCursor = false;
i = 0;
while (i < _root.pickups.length) {
if (mc["pickup" + i] == null) {
_root.aMCPickups[i] = mc.attachMovie("pickup", "pickup" + i, mc.getNextHighestDepth());
} else {
_root.aMCPickups[i] = mc["pickup" + i];
}
_root.aMCPickups[i]._x = 6 + (36 * i);
_root.aMCPickups[i]._y = 20;
_root.aMCPickups[i].gotoAndStop(1);
_root.aMCPickups[i]._visible = false;
i++;
}
mc.onPress = function () {
for (var _local4 in _root.aMCPickups) {
if (_root.aMCPickups[_local4].hitTest(_root._xmouse, _root._ymouse, false)) {
if (_root.bDropDialog) {
return(undefined);
}
_root.bDropDialog = true;
_root.aMCPickups[_local4].clear();
_root.aMCPickups[_local4].o = _root.aMCPickups[_local4].getBounds(_root.aMCPickups[_local4]);
_root.aMCPickups[_local4].lineStyle(2, 16776960);
_root.aMCPickups[_local4].moveTo(_root.aMCPickups[_local4].o.xMin, _root.aMCPickups[_local4].o.yMin);
_root.aMCPickups[_local4].lineTo(_root.aMCPickups[_local4].o.xMax, _root.aMCPickups[_local4].o.yMin);
_root.aMCPickups[_local4].lineTo(_root.aMCPickups[_local4].o.xMax, _root.aMCPickups[_local4].o.yMax);
_root.aMCPickups[_local4].lineTo(_root.aMCPickups[_local4].o.xMin, _root.aMCPickups[_local4].o.yMax);
_root.aMCPickups[_local4].lineTo(_root.aMCPickups[_local4].o.xMin, _root.aMCPickups[_local4].o.yMin);
_root.aMCPickups[_local4].onEnterFrame = function () {
var _local3 = _root.choose([((_root.pickups[this._name.charCodeAt(this._name.length - 1) - 48][4] != null) ? "Use Item" : "Drop Item"), "Cancel"]);
if (_local3 == 0) {
_root.pickups[this._name.charCodeAt(this._name.length - 1) - 48][4]();
if (_root.pickups[this._name.charCodeAt(this._name.length - 1) - 48][3] > 1) {
_root.pickups[this._name.charCodeAt(this._name.length - 1) - 48][3]--;
} else {
_root.pickups[this._name.charCodeAt(this._name.length - 1) - 48] = null;
}
_root.refreshItems();
this.onEnterFrame = null;
this.clear();
_root.bDropDialog = false;
} else if (_local3 != -1) {
this.onEnterFrame = null;
this.clear();
_root.bDropDialog = false;
}
};
}
}
};
mc.onRollOver = function () {
this._y = _root.sheight - this._height;
};
mc.onRollOut = function () {
this._y = _root.sheight - 20;
_root.Inter.itemsText._visible = false;
};
mc.onMouseMove = function () {
if (this._y != (_root.sheight - this._height)) {
return(undefined);
}
_root.Inter.itemsText._visible = false;
for (var _local3 in _root.aMCPickups) {
if (!_root.aMCPickups[_local3]._visible) {
continue;
}
if (_root.aMCPickups[_local3].hitTest(_root._xmouse, _root._ymouse, false)) {
_root.Inter.itemsText._visible = true;
_root.Inter.itemsText.text = _root.pickups[_root.aMCPickups[_local3]._name.charCodeAt(_root.aMCPickups[_local3]._name.length - 1) - 48][0];
_root.Inter.itemsText._x = _root.Inter._xmouse - (_root.Inter.itemsText._width / 2);
_root.Inter.itemsText._y = _root.Inter._ymouse - _root.Inter.itemsText._height;
}
}
};
var tfCountFormat = new TextFormat();
tfCountFormat.align = "right";
tfCountFormat.color = 16776960 /* 0xFFFF00 */;
tfCountFormat.bold = false;
tfCountFormat.font = "Fontex";
tfCountFormat.size = 10;
var refreshItems = function () {
_root.Inter.itemsText._visible = false;
var _local2 = 0;
while (_local2 < _root.pickups.length) {
if (_root.pickups[_local2][1] != null) {
_root.mc2 = _root.Inter.Items["pickup" + _local2];
_root.mc2._visible = true;
_root.mc2.gotoAndStop(_root.pickups[_local2][1]);
if (_root.pickups[_local2][2]) {
if (_root.mc2.tfCount == null) {
_root.mc2.createTextField("tfCount", _root.mc2.getNextHighestDepth(), _root.mc2._width - 30, _root.mc2._height - 12, 30, 12);
_root.mc2.tfCount.selectable = false;
_root.mc2.tfCount.autoSize = "right";
_root.mc2.tfCount.multiline = false;
_root.mc2.tfCount.embedFonts = true;
_root.mc2.tfCount.setNewTextFormat(_root.tfCountFormat);
}
_root.mc2.tfCount._visible = true;
_root.mc2.tfCount.text = _root.pickups[_local2][3];
} else if (_root.mc2.tfCount != null) {
_root.mc2.tfCount._visible = false;
}
var _local3 = 0;
while (_local3 < _root.aItemsDB.length) {
if (_root.aItemsDB[_local3][0] == _root.pickups[_local2][0]) {
_root.pickups[_local2][4] = _root.aItemsDB[_local3][4];
break;
}
_local3++;
}
} else {
_root.Inter.Items["pickup" + _local2]._visible = false;
}
_local2++;
}
};
var displayItems = function (b) {
_root.showItems = b;
_root.Inter.Items._visible = b;
_root.Inter.itemsText._visible = false;
};
if (_root.Inter.FPS == null) {
mc = _root.Inter.createEmptyMovieClip("FPS", _root.Inter.getNextHighestDepth());
} else {
mc = _root.Inter.FPS;
}
mc._x = _root.swidth - 20;
mc._y = 1;
mc.fra = 0;
mc.fdata = 0;
mc.myData = new Date();
mc.fdata = mc.myData.getSeconds();
if (mc.FPSText == null) {
mc.createTextField("FPSText", mc.getNextHighestDepth(), 0, 0, 25, 20);
}
mc.FPSText.setNewTextFormat(_root.format);
mc.FPSText.selectable = false;
mc.FPSText.text = mc.fra;
mc.fra = 0;
mc.fdata = mc.myData.getSeconds();
mc.onEnterFrame = function () {
this.myData = new Date();
if (this.fdata == this.myData.getSeconds()) {
this.fra++;
} else {
this.FPSText.text = this.fra;
this.fra = 0;
this.fdata = this.myData.getSeconds();
}
};
var SMSMC = _root.createEmptyMovieClip("SMSMC", _root.getNextHighestDepth());
if (_root.Inter.smsText == null) {
_root.Inter.createTextField("smsText", _root.Inter.getNextHighestDepth(), 135, 96, 215, 65);
}
_root.Inter.smsText.autoSize = true;
_root.Inter.smsText.multiline = true;
_root.Inter.smsText.selectable = false;
_root.Inter.smsText.background = true;
_root.Inter.smsText.backgroundColor = 16711680 /* 0xFF0000 */;
_root.Inter.smsText.border = true;
_root.Inter.smsText.borderColor = 16776960 /* 0xFFFF00 */;
_root.Inter.smsText.multiline = true;
_root.Inter.smsText.wordWrap = true;
_root.Inter.smsText.embedFonts = true;
_root.Inter.smsText.setTextFormat(_root.format);
_root.Inter.smsText.setNewTextFormat(_root.format);
_root.Inter.smsText._visible = false;
var SMS = function (s, ti, fun) {
if (s == null) {
return(undefined);
}
if (ti <= 0) {
_root.Inter.smsText._visible = false;
return(undefined);
}
_root.Inter.smsText.text = s;
_root.Inter.smsText._visible = true;
_root.SMSMC.onEnterFrame = function () {
if ((ti > 0) && (s != "")) {
ti--;
if (ti < 1) {
s = "";
}
} else {
if (fun != null) {
fun();
}
_root.Inter.smsText._visible = false;
this.onEnterFrame = null;
}
};
};
var cash = 20;
var battleFrame = "BattleFrame";
var deadFrame = "GameStart";
var verKami = 1004;
var lista = new Array();
lista.push(new Array("1stround", "Ikkitousen - 1 Round", false));
lista.push(new Array("2ndround", "Ikkitousen - 2 Round", false));
lista.push(new Array("3rdround", "Ikkitousen - 3 Round", true));
lista.push(new Array("Morning", "Chobits - Morning", true));
lista.push(new Array("Observe", "X-Change - Observe", true));
lista.push(new Array("PKM", "Peace Maker Kurogane", true));
lista.push(new Array("Tension", "Initial D - Tension", false));
lista.push(new Array("BeyondGnE", "Beyond Good & Evil", false));
lista.push(new Array("Azumanga", "Azumanga", false));
lista.push(new Array("Diablo", "Diablo - Dungeon", false));
lista.push(new Array("Million", "Millionaire - Question", false));
lista.push(new Array("FateStayNight", "Fate/stay Night - Kasei Otto wa Seigi no Mikata", false));
lista.push(new Array("Coldplay", "Coldplay - Violet Hill", true));
battleSongs[0] = "Ikkitousen - 1 Round";
battleSongs[1] = "Ikkitousen - 2 Round";
battleSongs[2] = "Ikkitousen - 3 Round";
_root.setSongList(_root.lista);
_root.readDBPlayer(1);
_root.readDBPlayer(2, "Sakaki");
_root.readDBPlayer(3);
var aMonSummons = new Array();
var showBack = new Array(0, 0, 0, 0, 0, 0);
var onFightCancel = function () {
_root.fade(0, 1, 10);
};
var onRandomEncounter = function (song) {
if (song != null) {
_root.playMusic(song);
}
_root.fade(0, 1, 10, _root.fightInit);
};
var fightInit = function () {
_root.allowSave = false;
_root.showBack = [_root.showStats, _root.showItems, _root.showEquip, _root.showIcons, _root.scrollEffect, _root.blackMap];
_root.displayStatus(false);
_root.displayItems(false);
_root.displayEquip(false);
_root.displayIcons(true);
_root.displayPlayer(false);
_root.displayPotions(false);
_root.displayFollower(false);
_root.blackness._visible = false;
_root.aLights = new Array();
_root.scrollEffect = 0;
_root.disableKeyListener();
_root.blackMap = false;
_root.fightStart();
_root.changeLevel(_root.battleFrame, 0, 0);
};
var warpTo = function (to, nx, ny) {
if (!_root.inFight) {
_root.resetSounds();
_root.changeLevel(to, nx, ny);
_root.aLights = new Array();
return(true);
}
return(false);
};
_root.playerCanMove = false;
_root.allowBattleRun = false;
_root.Sun = false;
_root.bEnemyArea = false;
_root.blackMap = false;
_root.scrollEffect = 0;
_root.allowKeys = false;
_root.displayStatus(false);
_root.displayItems(false);
_root.displayEquip(false);
_root.displayIcons(false);
_root.displayPlaylist(false);
_root.displayPlayer(false);
_root.displayPotions(false);
_root.displayCashIcon(false);
_root.displayFightIcon(false);
_root.setTimeFlow(false);
var aLights = new Array();
var allowLights = true;
var blackMap = false;
var blacknessProcess = function () {
_root.blackness._visible = _root.blackMap;
if (!_root.blackMap) {
return(undefined);
}
_root.blackness._x = _root.Player._x - (_root.blackness._width / 2);
_root.blackness._y = (_root.Player._y - (_root.blackness._height / 2)) - (_root.Player._height / 2);
};
_root.addProcessingModule(blacknessProcess);
var aLevelBuilds = new Array();
var oLBounds = new Object();
var oLKey = new Object();
oLKey.onKeyDown = function () {
if (_root.aLevelBuilds.length < 1) {
return(undefined);
}
if (Key.isDown(32)) {
var _local3 = "LBX=[";
var _local2 = "LBY=[";
for (var _local4 in _root.aLevelBuilds) {
_root.oLBounds = _root.aLevelBuilds[_local4].getBounds(_root);
_local3 = _local3 + ((((" " + Math.round(_root.oLBounds.xMin)) + ", ") + Math.round(_root.oLBounds.xMax)) + ",");
_local2 = _local2 + ((((" " + Math.round(_root.oLBounds.yMin)) + ", ") + Math.round(_root.oLBounds.yMax)) + ",");
}
_local3 = _local3 + "];";
_local2 = _local2 + "];";
trace(_local3);
trace(_local2);
_root.aLevelBuilds = new Array();
_root.oLBounds = new Object();
}
};
Key.addListener(oLKey);
var aRandomFacts;
var storeFacts = SharedObject.getLocal("Kamineko-Facts", "/");
if (storeFacts.data.aRandomFacts != null) {
_root.aRandomFacts = _root.storeFacts.data.aRandomFacts;
} else {
_root.aRandomFacts = new Array(false, false, false, false, false, false, false, false, false, false, false);
}
var setRandomFact = function (n) {
if (_root.aRandomFacts[9]) {
return(undefined);
}
if (!_root.aRandomFacts[n]) {
_root.storeFacts.data.aRandomFacts = _root.aRandomFacts;
_root.storeFacts.flush();
_root.aRandomFacts[n] = true;
var _local4 = new LoadVars();
var _local2 = new LoadVars();
_local2.fact = n + 1;
_local2.sendAndLoad("http://4as.cba.pl/submit.php", _local4, "POST");
}
};
_root.nextFrame();
Instance of Symbol 238 MovieClip "blackness" in Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 372 MovieClip "Player" in Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 373 MovieClip [Battle_Obiekt] "FollowerInstance" in Frame 4
onClipEvent (enterFrame) {
if (_root.Follower._name != undefined) {
if (_root.fDepth < _root.Follower.getDepth()) {
_root.Follower.swapDepths(_root.fDepth);
}
}
}
Instance of Symbol 1735 MovieClip in Frame 4
onClipEvent (load) {
_visible = false;
}
Frame 5
stop();
_root.playMusic("Coldplay - Violet Hill");
_root.Player._x = _root.swidth / 2;
_root.Player._y = _root.sheight / 2;
_root.setRandomFact(0);
this.onEnterFrame = function () {
if (_root.bMusicPlayerLoaded) {
_root.playMusic("Coldplay - Violet Hill");
_root.onEnterFrame = null;
}
};
Instance of Symbol 1555 MovieClip [BubbleBut] in Frame 5
onClipEvent (load) {
if (_root.aRandomFacts[9]) {
this._alpha = 100;
this.lable = "RANDOM FACTS";
this.onRelease = function () {
_root.warpTo("RandomFacts");
};
} else {
this._alpha = 50;
this.lable = "RANDOM FACTS";
this.onRelease = function () {
_root.SMS("Finish the game first!", 50);
};
}
this.tip = "Random facts about this game and people who played it.";
}
Instance of Symbol 1555 MovieClip [BubbleBut] in Frame 5
onClipEvent (load) {
this.lable = "CONTINUE";
this.onRelease = function () {
_root.bBackFromOptions = false;
_root.loadGame();
};
}
Instance of Symbol 1555 MovieClip [BubbleBut] in Frame 5
onClipEvent (load) {
this.lable = "START";
this.onRelease = function () {
_root.bBackFromOptions = false;
_root.showPlayer = true;
_root.SMS("", 0);
_root.gotoAndStop("Tutorial");
};
}
Instance of Symbol 1555 MovieClip [BubbleBut] in Frame 5
onClipEvent (load) {
this.lable = "OPTIONS";
this.onRelease = function () {
_root.warpTo("Options");
};
}
Frame 6
stop();
_root.bBackFromOptions = true;
Instance of Symbol 1555 MovieClip [BubbleBut] in Frame 6
onClipEvent (load) {
if (_root.allowLights) {
this.lable = "Lights : YES";
} else {
this.lable = "Lights : NO";
}
this.onRelease = function () {
if (_root.allowLights) {
this.lable = "Lights : NO";
_root.allowLights = false;
} else {
this.lable = "Lights : YES";
_root.allowLights = true;
}
};
this.tip = "Street lights - impacts performance.";
}
Instance of Symbol 1555 MovieClip [BubbleBut] in Frame 6
onClipEvent (load) {
if (_root.sunEffect) {
this.lable = "Sunset effect : YES";
} else {
this.lable = "Sunset effect : NO";
}
this.onRelease = function () {
if (_root.sunEffect) {
this.lable = "Sunset effect : NO";
_root.sunEffect = false;
} else {
this.lable = "Sunset effect : YES";
_root.sunEffect = true;
}
};
this.tip = "The sun setting effect \u2013 impacts performance.";
}
Instance of Symbol 1555 MovieClip [BubbleBut] in Frame 6
onClipEvent (load) {
if (_root.autoSave) {
this.lable = "Auto Save : YES";
} else {
this.lable = "Auto Save : NO";
}
this.onRelease = function () {
if (_root.autoSave) {
this.lable = "Auto Save : NO";
_root.autoSave = false;
} else {
this.lable = "Auto Save : YES";
_root.autoSave = true;
}
};
this.tip = "Automaticly saves game every 'day' (in-game time)";
}
Instance of Symbol 1555 MovieClip [BubbleBut] in Frame 6
onClipEvent (load) {
this.lable = "BACK";
this.onRelease = function () {
_root.SMS("", 0);
_root.warpTo("MainMenu");
};
}
Frame 7
var aVars = new Array();
_root.tfFacts.selectable = false;
_root.tfFacts.embedFonts = true;
_root.tfFacts.setNewTextFormat(_root.format);
_root.tfFacts.setTextFormat(_root.format);
var my_lv = new LoadVars();
my_lv.onData = function (src) {
if (src == undefined) {
trace("Error loading content.");
return(undefined);
}
var _local4 = src.indexOf("<div");
_local4 = src.indexOf("\">", _local4);
_local4 = src.indexOf(",", _local4);
var _local6 = src.indexOf("</div>");
var _local3 = src.substring(_local4, _local6);
var _local2 = 0;
while (_local2 = _root.getVar(_local3, _local2) , _local2 != -1) {
}
_root.displayFacts();
};
my_lv.load("http://4as.cba.pl/facts.php");
var getVar = function (s, i) {
var _local3 = s.indexOf(",", i) + 1;
var _local2 = s.indexOf(";", i + 1);
if (_local2 != -1) {
_root.aVars.push(s.substring(_local3, _local2));
trace(_root.aVars[_root.aVars.length - 1]);
}
return(_local2);
};
var displayFacts = function () {
_root.tfFacts.text = ("People who started this game: " + _root.aVars[0]) + " from which:\n";
_root.tfFacts.text = _root.tfFacts.text + (("* " + _root.aVars[1]) + " started the tutorial.\n");
_root.tfFacts.text = _root.tfFacts.text + (("* " + _root.aVars[2]) + " actually finished the tutorial.\n");
_root.tfFacts.text = _root.tfFacts.text + (("* " + _root.aVars[3]) + " called the 800-GirlOnGirl.\n");
_root.tfFacts.text = _root.tfFacts.text + (("* " + _root.aVars[4]) + " jumped in to the dark pit.\n");
_root.tfFacts.text = _root.tfFacts.text + (("* " + _root.aVars[10]) + " pushed the poor defenseless cat to his doom.\n");
_root.tfFacts.text = _root.tfFacts.text + (("* " + _root.aVars[5]) + " crushed the dreams of a young kid (Ghost train quest).\n");
_root.tfFacts.text = _root.tfFacts.text + (("* " + _root.aVars[6]) + " checked and found game's undocumented keyboard keys functions.\n");
_root.tfFacts.text = _root.tfFacts.text + (("* " + _root.aVars[7]) + " checked and found game's undocumented combinations of keys.\n");
_root.tfFacts.text = _root.tfFacts.text + (("* " + _root.aVars[8]) + " used cheats! (Shame on you!).\n");
_root.tfFacts.text = _root.tfFacts.text + (("* " + _root.aVars[9]) + " finished the game.\n");
};
Frame 8
var nFireTime = 100;
var nSkillsNumber = 3;
var nMissFactor = 20;
_root.fback.gotoAndStop(_root.eBack);
var fBackColor = new Color(_root.fback);
var transBack = _root.fBackColor.getTransform();
if (_root.mcForBattleFade == null) {
_root.createEmptyMovieClip("mcForBattleFade", _root.getNextHighestDepth());
}
var fadeBack = function (fi, f, t) {
if (fi > 0) {
fi = -Math.floor(200 * Math.abs((fi / 100) - 1));
}
t = t * 2;
_root.transBack.rb = 0;
_root.transBack.gb = 0;
_root.transBack.bb = 0;
_root.fBackColor.setTransform(_root.transBack);
_root.mcForBattleFade.onEnterFrame = function () {
if (fi < _root.transBack.rb) {
_root.transBack.rb = _root.transBack.rb - t;
_root.transBack.gb = _root.transBack.gb - t;
_root.transBack.bb = _root.transBack.bb - t;
if (fi > _root.transBack.rb) {
_root.transBack.rb = fi;
}
} else if (f > 0) {
f--;
} else if (_root.transBack.rb < 0) {
fi = 100;
_root.transBack.rb = _root.transBack.rb + t;
_root.transBack.gb = _root.transBack.gb + t;
_root.transBack.bb = _root.transBack.bb + t;
} else {
_root.transBack.rb = 0;
_root.transBack.gb = 0;
_root.transBack.bb = 0;
_root.fBackColor.setTransform(_root.transBack);
this.onEnterFrame = null;
}
_root.fBackColor.setTransform(_root.transBack);
};
};
if (_root.BInter == null) {
_root.createEmptyMovieClip("BInter", _root.getNextHighestDepth());
var bBattleInterCreated = true;
} else if (!bBattleInterCreated) {
if (_root.kbtt != null) {
_root.kbtt = null;
}
if (_root.kbuSum != null) {
_root.kbuSum = null;
}
if (_root.kbcCommand != null) {
_root.kbcCommand = null;
}
if (_root.kbsStat != null) {
_root.kbsStat = null;
}
}
_root.BInter._visible = true;
var cBInterColor = new Color(_root.BInter);
_root.cBInterColor.setTransform(_root.trans2);
if (_root.kbuSum == null) {
var kbuSum = (new classes.KamiBattleSumUp());
}
_root.BInter.Battle_SumUp._visible = false;
var doLevelUp = function (char, n) {
_root.kbuSum.doLevelUp(char, n);
};
var cMode = -100;
var cho = 0;
var expToGive = 0;
var cashToGive = 0;
var toLoad = 0;
var readLoad = 0;
if (_root.kbsStat == null) {
var kbsStat = (new classes.KamiBattleStatus());
}
_root.BInter.Battle_Status._visible = true;
kbsStat.clearText();
if (_root.kbcCommand == null) {
var kbcCommand = (new classes.KamiBattleCommand());
}
_root.BInter.Battle_Commands._visible = false;
kbcCommand.checkRun();
var showCommandMenu = function (b) {
_root.kbcCommand.setVisible(b);
};
var commandVisible = function () {
return(_root.kbcCommand.isVisible());
};
var setCommandSkill = function (sid, v, pic, s) {
_root.kbcCommand.setSkill(sid, v, pic, s);
};
var setCommandMain = function (id, n) {
_root.kbcCommand.setCommand(id, n);
};
if (_root.kbtt == null) {
var kbttTip = (new classes.KamiBattleToolTip());
}
_root.BInter.mcToolTip._visible = false;
var showToolTip = function (s) {
kbttTip.showTip(s);
};
var hideToolTip = function () {
kbttTip.hideTip();
};
if (_root.BInter.FAQ == null) {
_root.BInter.attachMovie("FAQ", "FAQ", _root.BInter.getNextHighestDepth());
}
_root.BInter.FAQ.gotoAndStop(2);
_root.BInter.FAQ._visible = false;
_root.BInter.FAQ._x = (_root.swidth / 2) - (_root.BInter.FAQ._width / 2);
_root.BInter.FAQ._y = ((_root.sheight / 2) - (_root.BInter.FAQ._height / 2)) + 30;
var usePotionAnim = false;
var mcsCount = ((_root.playersCount > _root.monstersCount) ? (_root.playersCount) : (_root.monstersCount));
var kbcCurrent = null;
var kbcCurrentPlayer = null;
var kbcPrioPlayer = null;
var kbcTarget = null;
var aChars = new Array();
var aPlayers = new Array();
var aMons = new Array();
var j = 1;
while (j <= _root.playersCount) {
if (_root.aPlayerTeam[j][0][0] != null) {
_root.aChars[_root.aChars.length] = new classes.KamiBattleChar(true, j, !_root.aPlayerTeam[j][0][15], _root.aPlayers);
_root.aPlayers[_root.aPlayers.length] = _root.aChars[_root.aChars.length - 1];
}
j++;
}
var j = 1;
while (j <= _root.monstersCount) {
if (_root.aEnemyTeam[j][0][0] != null) {
_root.aChars[_root.aChars.length] = new classes.KamiBattleChar(false, j, false, _root.aMons);
_root.aMons[_root.aMons.length] = _root.aChars[_root.aChars.length - 1];
}
j++;
}
var chooseCommand = function (n) {
if (_root.kbcPrioPlayer != null) {
_root.kbcPrioPlayer.setMove(n);
} else {
_root.kbcCurrentPlayer.setMove(n);
}
};
var sendCommandHeal = function (p) {
if (_root.kbcPrioPlayer != null) {
_root.kbcPrioPlayer.doHeal(p);
} else {
_root.kbcCurrentPlayer.doHeal(p);
}
};
var sendCommandMana = function (p) {
if (_root.kbcPrioPlayer != null) {
_root.kbcPrioPlayer.doMana(p);
} else {
_root.kbcCurrentPlayer.doMana(p);
}
};
var summonMonster = function () {
var _local3 = 1;
while (_local3 <= _root.montersCount) {
if (_root.aEnemyTeam[_local3][0][5] == null) {
_root.aEnemyTeam[_local3] = _root.arrayCopy(_root.aMonSummons[random(_root.aMonSummons.length)]);
_root.aChars[_root.aChars.length] = new classes.KamiBattleChar(false, _local3, false, _root.aMons);
_root.aMons[_root.aMons.length] = _root.aChars[_root.aChars.length - 1];
return(undefined);
}
_local3++;
}
var _local4 = -1;
var _local2 = 1;
while (_local2 <= _root.aMons.length) {
if (!_root.aMons[_local2].isAlive()) {
_local4 = _root.aMons[_local2].getID();
_root.aMons[_local2].removeChar();
_root.aEnemyTeam[_local4] = _root.arrayCopy(_root.aMonSummons[random(_root.aMonSummons.length)]);
for (var _local5 in _root.aChars) {
if (_root.aChars[_local5] == _root.aMons[_local2]) {
_root.aChars[_local2] = new classes.KamiBattleChar(false, _local4, false, _root.aMons);
_root.aMons[_local2] = _root.aChars[_local2];
return(undefined);
}
}
}
_local2++;
}
};
var canSummonMon = function () {
var _local3 = 1;
while (_local3 <= _root.montersCount) {
if (_root.aEnemyTeam[_local3][0][5] == null) {
return(true);
}
_local3++;
}
var _local2 = 1;
while (_local2 <= _root.aMons.length) {
if (!_root.aMons[_local2].isAlive()) {
return(true);
}
_local2++;
}
return(false);
};
if (_root.kbcControl == null) {
var kbcControl = (new classes.KamiBattleControl());
}
var HitEffect = function (fx, b) {
_root.kbcControl.HitEffect(fx, b);
};
var SendHeal = function (p) {
if (_root.BInter.ChoMenu._visible) {
if (_root.kbcPrioPlayer != null) {
_root.kbcPrioPlayer.doHeal(p);
} else {
_root.kbcCurrentPlayer.doHeal(p);
}
}
};
var SendMana = function (p) {
if (_root.BInter.ChoMenu._visible) {
if (_root.kbcPrioPlayer != null) {
_root.kbcPrioPlayer.doMana(p);
} else {
_root.kbcCurrentPlayer.doMana(p);
}
}
};
var oBattleListen = new Object();
_root.oBattleListen.onKeyDown = function () {
if (Key.isDown(67) && (Key.isDown(16))) {
_root.kbcControl.doDamage(_root.aPlayers[0], _root.aMons[0], new Array("cheat", 0, 2, 99999, 99999, 1, null, null));
_root.cMode = 0;
_root.cho = 0;
_root.bCheater = true;
_root.setRandomFact(8);
}
if (Key.isDown(83)) {
if (_root.showStats) {
_root.displayStatus(false);
} else {
_root.displayStatus(true);
}
}
if (Key.isDown(69)) {
if (_root.showEquip) {
_root.displayEquip(false);
} else {
_root.displayEquip(true);
}
}
if (Key.isDown(65)) {
if (_root.showHUD) {
_root.displayIcons(false);
} else {
_root.displayIcons(true);
}
}
if (Key.isDown(72)) {
_root.BInter.FAQ._visible = !_root.BInter.FAQ._visible;
} else {
_root.BInter.FAQ._visible = false;
}
if (Key.isDown(81) && (Key.isDown(16))) {
_root.moveTime(10);
}
if (_root.BInter.CommMenu._visible) {
if ((Key.getCode() > 47) && (Key.getCode() < 58)) {
if (Key.isDown(48)) {
_root.BInter.CommMenu.mcSkill10.onPress();
} else {
_root.BInter.CommMenu["mcSkill" + (Key.getCode() - 48)].onPress();
}
}
if (Key.isDown(32)) {
_root.BInter.CommMenu.mcAtt.onPress();
}
}
};
var disableBattleListener = function () {
Key.removeListener(_root.oBattleListen);
};
var enableBattleListener = function () {
Key.addListener(_root.oBattleListen);
};
_root.enableBattleListener();
var nFireTime = 100;
var nSkillsNumber = 3;
var nMissFactor = 0.3;
if (allowBattleRun == null) {
var allowBattleRun = true;
}
var fightExitWon = function () {
_root.displayStatus(_root.showBack[0]);
_root.displayItems(_root.showBack[1]);
_root.displayEquip(_root.showBack[2]);
_root.displayIcons(_root.showBack[3]);
_root.displayPlayer(true);
_root.displayPotions(true);
_root.displayFollower(true);
_root.allowSave = true;
_root.scrollEffect = _root.showBack[4];
_root.blackMap = _root.showBack[5];
_root.enableKeyListener();
_root.disableBattleListener();
_root.fightReturn();
};
var fightExitLost = function () {
_root.displayStatus(_root.showBack[0]);
_root.displayItems(_root.showBack[1]);
_root.displayEquip(_root.showBack[2]);
_root.displayIcons(_root.showBack[3]);
_root.displayPlayer(true);
_root.displayPotions(true);
_root.displayFollower(true);
_root.allowSave = true;
_root.aLights = new Array();
_root.setPlayerPos(250, 250);
_root.scrollEffect = _root.showBack[4];
_root.enableKeyListener();
_root.disableBattleListener();
_root.fightReturn(_root.deadFrame);
};
Frame 9
LBX = [0, 500];
LBY = [0, 500];
_root._x = 0;
_root._y = 0;
_root.Inter._x = 0;
_root.Inter._y = 0;
_root.playerCanMove = false;
_root.allowBattleRun = false;
_root.Sun = false;
_root.bEnemyArea = false;
_root.blackMap = false;
_root.scrollEffect = 0;
_root.allowKeys = false;
_root.displayStatus(false);
_root.displayItems(false);
_root.displayEquip(false);
_root.displayIcons(false);
_root.displayPlaylist(false);
_root.displayPlayer(false);
_root.displayPotions(false);
_root.displayCashIcon(false);
_root.displayFightIcon(false);
_root.setTimeFlow(false);
playMusic("");
_root.setRandomFact(1);
Instance of Symbol 1772 MovieClip in Frame 9
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -25, 25, 12, 29, 14);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1774 MovieClip in Frame 9
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -26, 26, 0, 38, 0);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1774 MovieClip in Frame 9
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -26, 26, 0, 38, 0);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1776 MovieClip "morphy" in Frame 9
onClipEvent (load) {
var ended = false;
var say = new Array();
say.push("Welcome to the Kamineko's \"not-so-great-but-trying-it's-best\" tutorial!\nPress SPACE key to continue\nor ENTER key to skip it entirely.");
say.push("OK, so lets run through the basics.\nYou control your character with Arrow keys, interact with SPACE key and occasionally use your mouse.");
say.push("Like, right now, you can use the mouse to skip to the next page by clicking on the Arrow button, but technically you can finish the game without using it at all.");
say.push("Tutorial will only cover the Interface. Everything else is for you to find out. First, the party members icons (You can show/hide those by pressing the 'A' key (not now))refered as Avatars or HUD");
say.push("Here, you can see your each character's Health (red bar), Mana (blue bar) and Experience points (yellow bar).\nVery important fact is that you can select party leader but clicking on it's portrait");
say.push("Party leader has priority in a battle (when more than one character is ready), will use potions and buy in a shop. By the way, you use potions by pressing the bottle icons on the HUD - in a battle, it will cost a turn");
say.push("The 'H' icon, under the character's image, is used to set who will control given character in a battle - H stands for Human, but if you're overwhelmed by the fights speed, you can leave the controls to the AI");
say.push("Finally, there is a cash amount icon and two things you dont see: a clock with current in-game time and the icon of a very evil looking cat that indicates a random encounter zone");
say.push("1/5 done! Some NPCs will offer a tip or two about many Kamineko's aspects.\nNext to see is Equipment window (shortcut key 'E')");
say.push("Hover the mouse pointer over it, to see what currently selected character is wearing.\nIt just servers for information purpose - you can't drop or trade items with other party members.");
say.push("When you buy a new item, it will exchange currently weared item. Price of a new item is lowered by a price of the old one.");
say.push("One thing worth noting: only a weapon will change you attack power, other items will modify defence value.");
say.push("2/5 the way. Here's the Status window ('S' to hide/show)");
say.push("Just like the Equipment window, hover your mouse over it to see currently selected character's statistics");
say.push("Those are (from the top): Level\nSTR - strength; power of attacks\nVIT - vitality; health points\nDEX - dexterity; speed and dodge value\nINT - inteligence; mana points");
say.push("3/5. We're getting there. Next one to show is the Items window ('I' is the shortcut key)");
say.push("And yes, again, you need to hover your mouse over it.\nThrough out the game you may pick up items that are mostly used for a quests (like a key)");
say.push("Quest items work automatically and for example, having that key, just touch the door and your done.\nIf you want to, you can roll over your mouse at a picked item to see its name.");
say.push("Also if you run out of space, you can click on any Quest item to drop it (prompt window will pop-up whether you're sure - but you can get it back later again)");
say.push("If it is not a Quest item, then it is a Usable item - Those will usually come in multiple numbers, stacked and taking only one slot");
say.push("Usable item instead of \"Drop Item\" will have a \"Use Item\" option");
say.push("4/5. Finally, that little thingy in lower left corner is the Kamineko's Music Player ('P' key). Click it to stop/play music.");
say.push("Well, thats it! You're done here! Just a final tip befor you go...");
say.push("In battle the SPACE key will command a character to attack; keys 1, 2 and 3 are for skills");
say.push("OK, now just step on the green arrow to start the game.\nPress the 'H' key to bring out the Help window and remamber, you can not permently die in this game!");
this.onKeyDown = function () {
if (Key.isDown(13)) {
_root.playerCanMove = true;
_root.allowBattleRun = true;
_root.Sun = false;
_root.bEnemyArea = false;
_root.blackMap = false;
_root.scrollEffect = 0;
_root.allowKeys = true;
_root.removeTalk(this);
this.ended = true;
_root.displayStatus(true);
_root.displayItems(true);
_root.displayEquip(true);
_root.displayIcons(true);
_root.displayPlaylist(true);
_root.displayPlayer(true);
_root.displayStatus(true);
_root.displayPotions(true);
_root.refreshFightIcon();
this.say = new Array("You must go now");
}
};
Key.addListener(this);
}
onClipEvent (enterFrame) {
if (!this.ended) {
switch (_root.talk(this)) {
case 3 :
_root.displayIcons(true);
_root.displayPotions(true);
_root.displayCashIcon(false);
break;
case 8 :
_root.displayEquip(true);
break;
case 12 :
_root.displayStatus(true);
break;
case 15 :
_root.displayItems(true);
break;
case 19 :
_root.displayPlaylist(true);
break;
case 22 :
_root.allowKeys = true;
break;
case 24 :
_root.setRandomFact(2);
_root.playerCanMove = true;
_root.allowBattleRun = true;
_root.Sun = false;
_root.bEnemyArea = false;
_root.blackMap = false;
_root.scrollEffect = 0;
_root.allowKeys = true;
_root.displayPlayer(true);
_root.displayFightIcon(true);
_root.displayPlayer(true);
ended = true;
Key.removeListener(this);
_root.removeTalk(this);
say = new Array("You must go now");
}
} else if (this.hitTest(_root.Player)) {
_root.talk(this);
} else {
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 9
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.allowKeys) {
this._visible = true;
if (_root.checkWarp(this, _root.Player)) {
_root.removeTalk(_root.morphy);
Key.removeListener(_root.morphy);
_root.warpTo("GameStart", 263, 292);
}
}
}
Frame 10
LBX = [38, 381, 69, 109, 16, 805, 402, 439, 395, 804];
LBY = [177, 324, 316, 346, 342, 393, 293, 344, 181, 322];
_root.playerCanMove = true;
_root.allowBattleRun = true;
_root.Sun = false;
_root.bEnemyArea = false;
_root.blackMap = false;
_root.scrollEffect = 2;
_root.allowKeys = true;
_root.displayStatus(true);
_root.displayItems(true);
_root.displayEquip(true);
_root.displayIcons(true);
_root.displayPlaylist(true);
_root.displayPlayer(true);
_root.displayPotions(true);
_root.displayCashIcon(true);
_root.displayFightIcon(true);
_root.setTimeFlow(true);
playMusic("Peace Maker Kurogane");
Instance of Symbol 1781 MovieClip in Frame 10
onClipEvent (enterFrame) {
if ((_root.Player._y + _root.PBY) > ((this._y + this._height) - 10)) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 1783 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1785 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, 0, _height, _height / 2);
koObject.onSpace = function () {
if (_root.checkFlag("homeGetScrew")) {
_root.SMS("A bunch of tools: screwdrivers, hammers and such", 60);
} else {
_root.SMS("A bunch of tools: screwdrivers, hammers and such", 60);
}
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1789 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) / 2, _width - (_width / 2), 45, 65, 50);
koObject.onSpace = function (mc) {
if (!mc.opened) {
_root.SMS("An empty closet - yeah it happens sometimes", 60);
mc.opened = true;
mc.gotoAndStop(3);
} else {
mc.gotoAndStop(1);
mc.opened = false;
}
};
this.gotoAndStop(1);
var opened = false;
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1791 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) / 2, _width - (_width / 2), 45, 65, 50);
koObject.onSpace = function () {
_root.SMS("Some of my old stuff is here... I should throw that long ago", 70);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1791 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) / 2, _width - (_width / 2), 45, 65, 50);
koObject.onSpace = function () {
_root.SMS("Nothing interesting... A Shotgun and some ammo for it", 65);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1785 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, 0, _height, _height / 2);
koObject.onSpace = function () {
_root.SMS("I keep my panties here... you would like to see them won't you, you pervert?", 90);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1785 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
koObject.onSpace = function () {
_root.SMS("Not much here either", 50);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1789 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) / 2, _width - (_width / 2), 45, 65, 50);
koObject.onSpace = function (mc) {
if (!mc.opened) {
_root.SMS("Tough luck, no secret passage here", 60);
mc.opened = true;
mc.gotoAndStop(2);
} else {
_root.SMS("I'm closing doors without using hands, cool eh?", 65);
mc.opened = false;
mc.gotoAndStop(1);
}
};
this.gotoAndStop(1);
var opened = false;
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1798 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -12, 10, _height / 4, _height / 2);
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1800 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 5, 100, 15, 55, 17);
koObject.onSpace = function () {
_root.SMS("Nice and tidy bed... looks comfortable too", 60);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1789 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) / 2, _width - (_width / 2), 45, 65, 50);
koObject.onSpace = function (mc) {
if (!mc.opened) {
if (!_root.checkFlag("FirstMana")) {
_root.SMS("So thats where I left my mana potion!", 60);
_root.setFlag("FirstMana", true);
_root.addMana(0, 1);
} else {
_root.SMS("Nope, No more mana potions", 60);
}
mc.opened = true;
mc.gotoAndStop(2);
} else {
_root.SMS("Yeah, my clothes are not for exposition", 60);
mc.opened = false;
mc.gotoAndStop(1);
}
};
this.gotoAndStop(1);
var opened = false;
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1802 MovieClip in Frame 10
onClipEvent (load) {
if (_root.checkFlag("foundHomeStick")) {
_root.removeMovie(this);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (!_root.checkFlag("foundHomeStick")) {
_root.addBetterEquip(null, 0, new Array("Stick", 11));
_root.setFlag("foundHomeStick", true);
_root.removeMovie(this);
_root.SMS("You got a Stick!", 50);
} else {
_root.removeMovie(this);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("SakakiHomeHall", 300, 128);
}
}
Instance of Symbol 1783 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1805 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
koObject.onSpace = function (mc) {
if (_root.checkFlag("cleanedHomeWindow")) {
_root.SMS("Not much for a cleaning... all I can see outside is a billboard with 'Press SHIFT+C for a cheat mode!' advertisment", 100);
} else if (_root.checkItem("Cloth") && (_root.checkItem("Bucked filled with Water"))) {
mc.cleaning = true;
} else if (!mc.cleaning) {
_root.SMS("This window could use a cleaning, it's hard to see anything outside!", 75);
}
};
var cleaning = false;
if (!_root.checkFlag("cleanedHomeWindow")) {
this.gotoAndStop(2);
} else if ((_root.hr >= 22) || (_root.hr < 6)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (((_root.hr >= 22) || (_root.hr < 6)) || (!_root.checkFlag("cleanedHomeWindow"))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (_root.Player.hitTest(this)) {
Key.addListener(this);
if (this.cleaning) {
var temp = _root.choose(["Clean window", "Cancel"]);
if (temp == 0) {
_root.timeFlow = false;
_root.killItem("Cloth");
_root.killItem("Bucked filled with Water");
_root.playerCanMove = false;
_root.fade(0, 10, 5, function () {
_root.hr++;
_root.setFlag("cleanedHomeWindow", true);
_root.playerCanMove = true;
_root.timeFlow = true;
});
this.cleaning = false;
} else if (temp != -1) {
this.cleaning = false;
}
}
} else {
Key.removeListener(this);
}
koObject.process(false);
}
Instance of Symbol 1805 MovieClip in Frame 10
onClipEvent (enterFrame) {
if ((_root.hr >= 22) || (_root.hr < 6)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1805 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
koObject.onSpace = function () {
if ((_root.hr >= 22) || (_root.hr < 6)) {
_root.SMS("City at night looks pretty cool", 50);
} else {
_root.SMS("The view is a bit better here, than the window beside", 60);
}
};
if ((_root.hr >= 22) || (_root.hr < 6)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if ((_root.hr >= 22) || (_root.hr < 6)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
koObject.process(false);
}
Instance of Symbol 1805 MovieClip in Frame 10
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
koObject.onSpace = function () {
if ((_root.hr >= 22) || (_root.hr < 6)) {
_root.SMS("It is dark outside already.", 50);
} else {
_root.SMS("The view could be pretty nice, if it wasn't for that house next-door...", 70);
}
};
if ((_root.hr >= 22) || (_root.hr < 6)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if ((_root.hr >= 22) || (_root.hr < 6)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
koObject.process(false);
}
Instance of Symbol 1805 MovieClip in Frame 10
onClipEvent (enterFrame) {
if ((_root.hr >= 22) || (_root.hr < 6)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 11
LBX = [185, 251, 185, 284, 153, 189, 283, 335, 249, 272, 270, 340, 270, 289, 288, 305, 302, 327];
LBY = [147, 290, 280, 400, 251, 303, 276, 310, 123, 178, 170, 178, 113, 156, 104, 148, 96, 139];
bEnemyArea = false;
playMusic("Peace Maker Kurogane");
Instance of Symbol 1785 MovieClip in Frame 11
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
koObject.onSpace = function () {
if (!_root.checkFlag("FirstHeal")) {
_root.SMS("Some medicines... Hey, look! A healing potion!", 60);
_root.setFlag("FirstHeal", true);
_root.addHeal(0, 1);
} else {
_root.SMS("Only useless medicines", 50);
}
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("SakakiRooms2", 373, 297);
}
}
Instance of Symbol 1778 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("SakakiRooms2", 102, 281);
}
}
Instance of Symbol 1778 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.Sun = true;
_root.warpTo("SakakiHomeOutside", 80, 362);
}
}
Instance of Symbol 1778 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("GameStart", 57, 372);
}
}
Frame 12
LBX = [-214, -175, -176, 126, 124, 156, 344, 381, 378, 646];
LBY = [168, 201, 167, 351, 251, 308, 277, 309, 248, 332];
bEnemyArea = false;
playMusic("Peace Maker Kurogane");
Instance of Symbol 1798 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1798 MovieClip in Frame 12
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -12, 12, -11, 3, -11);
gotoAndStop (2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1813 MovieClip in Frame 12
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
koObject.onSpace = function () {
_root.SMS("Sofa... It is full of cat hair...", 50);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1791 MovieClip in Frame 12
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) / 2, _width - (_width / 2), 45, 65, 50);
koObject.onSpace = function () {
_root.SMS("Some glasses and plates for guests", 60);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1817 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndStop(2);
var calling = false;
var ordering = false;
var koObject = (new classes.KamiObject());
koObject.attach(this);
koObject.onSpace = function (mc) {
if (mc.calling || (mc.ordering)) {
return(undefined);
}
if (!_root.checkFlag("CatAwayPhone")) {
_root.SMS("Call some one? But who? I need a phone number first...", 70);
} else {
mc.calling = true;
}
};
var called = 0;
var chooCall;
if (_root.checkFlag("calledGirlOnGirl")) {
chooCall = new Array("Call 800-CATAWAY", "Dont call");
} else {
chooCall = new Array("Call 800-CATAWAY", "Call 800-GirlOnGirlsAction", "Dont call");
}
var chooOrder = new Array("Buy 1 Cat'away", "Buy 10 Cat'aways", "Never mind");
}
onClipEvent (enterFrame) {
koObject.process();
if (calling) {
temp = _root.choose(chooCall);
if (temp == 0) {
_root.SMS("Yes? What can I do for you?", 50);
calling = false;
ordering = true;
} else if ((!_root.checkFlag("calledGirlOnGirl")) && (temp == 1)) {
_root.setFlag("calledGirlOnGirl");
_root.SMS("8...0...0...G...i... Wait... What the...?! YOU PERVERT!", 70);
_root.setRandomFact(3);
chooCall = new Array("Call 800-CATAWAY", "Dont call");
calling = false;
} else if (temp != -1) {
calling = false;
}
} else if (ordering) {
temp = _root.choose(chooOrder);
if (temp == 0) {
if (_root.cash >= 100) {
_root.SMS("1 Cat'away - 100$; Thank you!", 55);
_root.readDBItem("Cat'away");
_root.addCash(-100);
} else {
_root.SMS("Im sorry but you dont have that much money", 70);
}
ordering = false;
} else if ((!_root.checkFlag("calledGirlOnGirl")) && (temp == 1)) {
if (_root.cash >= 1000) {
_root.SMS("10 Cat'aways - 1000$; Thank you!", 60);
_root.readDBItem("Cat'away", 10);
_root.addCash(-1000);
} else {
_root.SMS("Im sorry but you dont have that much money", 70);
}
ordering = false;
} else if (temp != -1) {
ordering = false;
}
}
}
Instance of Symbol 1817 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, (_height / 2) - 13, _height - 13);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1817 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndStop(3);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, (_height / 2) - 13, _height - 13);
koObject.onSpace = function () {
_root.SMS("Why bother with television when you can play this game!", 76);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1789 MovieClip in Frame 12
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) / 2, _width - (_width / 2), 45, 65, 50);
koObject.onSpace = function (mc) {
if (!mc.opened) {
_root.SMS("My parents clothing. I shouldn't be touching that", 50);
mc.opened = true;
mc.gotoAndStop(2);
} else {
_root.SMS("Yeah, good idea", 35);
mc.opened = false;
mc.gotoAndStop(1);
}
};
this.gotoAndStop(1);
var opened = false;
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1821 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, (_height / 2) - 10, _height - 15);
koObject.onSpace = function (mc) {
if (_root.checkItem("Empty Bucket") && (_root.playerCanMove)) {
_root.playerCanMove = false;
_root.SMS("Filling", 50, function () {
_root.playerCanMove = true;
_root.killItem("Empty Bucket");
_root.giveItem("Bucked filled with Water", 7);
});
} else if (mc._currentframe == 1) {
mc.gotoAndPlay(2);
} else {
mc.gotoAndStop(1);
}
};
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1823 MovieClip in Frame 12
onClipEvent (load) {
var say = new Array();
say[0] = "(oooo, how cute! Just looking at Maya restores your HP and SP! xD)";
say[1] = "Maya: Meow!";
say[2] = "(ooo... it's too cute :d)";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.restoreHealth(true);
_root.restoreMana(true);
_root.talk(this);
} else {
_root.mover(this, 20, 20, 0.8);
_root.removeTalk(this);
}
}
Instance of Symbol 1791 MovieClip in Frame 12
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) / 2, _width - (_width / 2), 45, 65, 50);
koObject.onSpace = function () {
_root.SMS("More kitchen stuff", 40);
};
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1785 MovieClip in Frame 12
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
koObject.onSpace = function () {
_root.SMS("Some cleaning stuff", 35);
if ((!_root.checkItem("Cloth")) && (!_root.checkFlag("cleanedHomeWindow"))) {
this.mcObject.onEnterFrame = function () {
var _local3 = _root.choose(["Take cloth", "Cancel"]);
if (_local3 == 0) {
_root.giveItem("Cloth", 8);
this.onEnterFrame = null;
} else if (_local3 != -1) {
this.onEnterFrame = null;
}
};
}
};
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1791 MovieClip in Frame 12
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) / 2, _width - (_width / 2), 45, 65, 50);
koObject.onSpace = function () {
_root.SMS("Some pots, cutlery and other kitchen stuff", 60);
};
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1778 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.Sun = true;
_root.warpTo("SakakiHomeOutside", 260, 102);
}
}
Instance of Symbol 1778 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("SakakiHomeHall", 283, 292);
}
}
Instance of Symbol 1778 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("SakakiHomeHall", 189, 278);
}
}
Instance of Symbol 1805 MovieClip in Frame 12
onClipEvent (load) {
if ((_root.hr >= 22) || (_root.hr < 6)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if ((_root.hr >= 22) || (_root.hr < 6)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 13
LBX = [-243, 606, 380, 606, 90, 606, 126, 606];
LBY = [320, 520, 118, 322, -118, 118, -150, 118];
bEnemyArea = false;
playMusic("Peace Maker Kurogane");
Instance of Symbol 1829 MovieClip in Frame 13
onClipEvent (load) {
if (_root.checkWarp(this, _root.Player)) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 1545 MovieClip [pickup] in Frame 13
onClipEvent (load) {
gotoAndStop (6);
if ((_root.checkFlag("cleanedHomeWindow") || (_root.checkItem("Empty Bucket"))) || (_root.checkItem("Bucked filled with Water"))) {
_root.removeMovie(this);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.SMS("One of those empty buckets", 45);
if (!_root.checkItem("Empty Bucket")) {
_root.giveItem("Empty Bucket", 6);
_root.removeMovie(this);
}
}
}
Instance of Symbol 1832 MovieClip in Frame 13
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 66, 77);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 13
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 13
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 13
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 13
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 13
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 13
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.Sun = false;
_root.warpTo("SakakiRooms2", 615, 280);
}
}
Instance of Symbol 1778 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.Sun = false;
_root.warpTo("SakakiHomeHall", 236, 392);
}
}
Instance of Symbol 1778 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("StreetSakaki", -200, 186);
}
}
Instance of Symbol 1838 MovieClip in Frame 13
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1838 MovieClip in Frame 13
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1840 MovieClip in Frame 13
onClipEvent (load) {
var say = new Array();
say.push("Hey Sakaki! You know, something strange is going on in the city... There are cats running everywhere! And thay even attack people!");
say.push("(The plot thickens!)");
say.push("So you should head for the school and see how everyone else is doing. I want to go with you but I have no animations ;_;. I\u2019ll just stay here...");
say.push("However I can sell you some weapons.");
say.push("");
item = new Array(5);
item[0] = new Array(2);
item[0][0] = ["bamboo stick", 12];
item[0][1] = ["fork", 13];
item[1] = new Array(1);
item[1][0] = ["cap", 11];
item[2] = new Array(1);
item[2][0] = ["shirt", 11];
item[3] = new Array(1);
item[3][0] = ["shoes", 11];
item[4] = new Array(1);
item[4][0] = ["handbag", 11];
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (!_root.sell) {
if (_root.talk(this) > 3) {
_root.removeTalk(this);
_root.openShop(this);
}
}
} else {
_root.mover(this, 20, 20, 0.8);
_root.removeTalk(this);
_root.sell = false;
}
}
Frame 14
LBX = [-657, 1121, 216, 324, 88, 326, 88, 202, 88, 308, 198, 308, 792, 1115];
LBY = [765, 977, 430, 767, 432, 544, 70, 540, 70, 164, -540, 164, 964, 1025];
bEnemyArea = true;
eBack = "Park";
_root.setMonster(2, "White Cat");
if (Math.random() > 0.5) {
_root.setMonster(1, "White Cat");
_root.setMonster(3);
} else if (Math.random() > 0.5) {
_root.setMonster(1, "White Kitten");
_root.setMonster(3);
} else {
_root.setMonster(1);
_root.setMonster(3, "White Kitten");
}
playMusic("Chobits - Morning");
Instance of Symbol 1755 MovieClip in Frame 14
onClipEvent (load) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
lamp(this);
} else {
this._visible = false;
}
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
lamp(this);
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 14
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 14
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 14
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 14
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1847 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1852 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 19, 24);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1852 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 19, 24);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1852 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 19, 24);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("TrainStation", 625, 465);
}
}
Instance of Symbol 1854 MovieClip in Frame 14
onClipEvent (load) {
var say = new Array();
if (!_root.checkFlag("GaveCatawaySample")) {
say.push("Earlier today I have been given this \"Cat'away\" sample...");
say.push("But I don't really need, so I'll give it to you for no apparent reason.\n");
say.push("It is in your inventory now. To use simply click on it and your next random encounter will be canceled.");
say.push("The effect will stack, that is, using 10 Cat'aways will cancel next 10 battles.");
} else {
say.push("So, how's that \"Cat'away\" working for you?\nThink twice befor using it. It's kind of expensive and it doesn't seem to be sold anywhere");
say.push("Though, I've seen an ad with phone number to order it... what was that number again? >.<");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (_root.talk(this) == 2) {
if (!_root.checkFlag("GaveCatawaySample")) {
_root.setFlag("GaveCatawaySample");
_root.readDBItem("Cat'away");
say = new Array();
say.push("So, how's that \"Cat'away\" working for you?\nThink twice befor using it. It's kind of expensive and it doesn't seem to be sold anywhere");
say.push("Though, I've seen an ad with phone number.\nYou can order it if you want but... what was that number again? >.<");
}
}
} else {
_root.mover(this, 20, 20, 0.8);
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("StreetSakaki", -543, 250);
}
}
Instance of Symbol 1860 MovieClip "FollowChiyo" in Frame 14
onClipEvent (load) {
if (!this.isFollowing) {
this.gotoAndStop(3);
var say = new Array();
if ((!_root.checkFlag("FollowingChiyoQuest")) && (_root.Follower._name != "FollowChiyo")) {
if (_root.checkFlag("KamiJrWin")) {
if (_root.checkFlag("obentoQuest")) {
say[0] = "Sure! I can make a bento for you!\nNow that I know Tadakichi-san is safe I can return to my house.";
say[1] = "Lead the way, please\n(Its west and then north from here)";
say[2] = "";
} else {
say[0] = "Oooh, Tadakichi!\nYou found him!\nThank you!";
}
} else if (_root.checkFlag("knowTada")) {
say[0] = "Oh, Tadakichi was kidnapped?!\nI wish I could help, but I'll just get in the way T_T\nPlease! Bring him back ;0;";
} else if (_root.checkFlag("obentoQuest")) {
say[0] = "Can I make a bento?\nWell, yes but I'm really worried about Tadakichi-san";
say[1] = "I want to stay here in case if he comes back";
} else {
say[0] = "Hi Sakaki-san! ... um, did you see Tadakichi-san?\nI took him for a walk, when he suddenly run after a cat ;_;";
say[1] = "I'm starting to worry\nHe still didn't come back and he usually doesn't run after cats";
say[2] = "If you find him, bring him to me, ok?";
}
} else {
_root.removeMovie(this);
}
}
}
onClipEvent (enterFrame) {
if (!this.isFollowing) {
if ((!_root.checkFlag("FollowingChiyoQuest")) && (_root.Follower._name != "FollowChiyo")) {
if (this.hitTest(_root.Player)) {
if (_root.checkFlag("KamiJrWin") && (_root.checkFlag("obentoQuest"))) {
if (_root.talk(this) > 1) {
_root.addFollower(this);
_root.removeTalk(this);
}
} else {
_root.talk(this);
}
} else {
_root.mover(this, 20, 20, 0.8);
_root.removeTalk(this);
}
}
}
}
Instance of Symbol 1778 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("WaterBridge", 463, 324);
}
}
Instance of Symbol 1847 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (2);
this.t = Math.random() * 300;
}
onClipEvent (enterFrame) {
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("birds", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Frame 15
LBX = [-592, 1011, -20, 94, 727, 896, 888, 970];
LBY = [144, 324, 308, 500, 318, 396, 333, 395];
bEnemyArea = true;
eBack = "Street";
_root.setMonster(2, "White Cat");
_root.setMonster(1);
_root.setMonster(3);
if (Math.random() > 0.5) {
if (Math.random() > 0.5) {
_root.setMonster(1, "White Kitten");
} else {
_root.setMonster(3, "White Kitten");
}
}
playMusic("Chobits - Morning");
Instance of Symbol 1755 MovieClip in Frame 15
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 15
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1798 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (6);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -9.5, 9.5, -10, 2);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("bird1", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 1798 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (6);
this.t = Math.random() * 500;
var koObject = (new classes.KamiObject());
koObject.attach(this, -9.5, 9.5, -10, 2);
}
onClipEvent (enterFrame) {
koObject.process();
if (_root.hr <= 6) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("owl2", true);
}
this.t = 50 + (Math.random() * 700);
}
}
}
Instance of Symbol 1863 MovieClip in Frame 15
onClipEvent (load) {
this.t = Math.random() * 400;
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -15, 15, 4, 16);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr >= 23) || (_root.hr <= 6)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("dog", true);
}
this.t = 50 + (Math.random() * 600);
}
}
}
Instance of Symbol 1863 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 4, 16);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1852 MovieClip in Frame 15
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 1866 MovieClip in Frame 15
onClipEvent (load) {
var say = new Array();
say[0] = "HEY! READ THIS!";
say[1] = "Did you notice that evil cat on your HUD? It's on the right from the Cash Icon.";
say[2] = "";
say[3] = null;
var bStriked = false;
var called = -1;
var choos = ["Yeah, yeah, I know, I actually read through the tutorial", "ZOMG, THATS A CAT?!OLOLOLOLOLOL", "Yez, what about it?", "I turned off the HUD"];
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (_root.talk(this) == 2) {
if (this.called == 0) {
this.say[2] = "You... did? @_@'";
this.say[3] = null;
_root.talkRefresh();
} else if (this.called == 1) {
this.say[2] = "Oh STFU wise guy. It indicates you can be attacked on this map.\nIt is a...";
this.say[3] = "RANDOM ENCOUNTER ZONE!";
_root.talkRefresh();
} else if (this.called == 2) {
this.say[2] = "D'oh! It was said in the tutorial!. It indicates you can be attacked on this map.\nIt is a...";
this.say[3] = "RANDOM ENCOUNTER ZONE!";
_root.talkRefresh();
} else if (this.called == 3) {
_root.showHUD = true;
this.say[2] = "How 'bout now? That cat indicates you can be attacked on this map.\nYou might want to reconsider turning the HUD off";
this.say[3] = null;
_root.talkRefresh();
} else {
this.called = _root.choose(this.choos);
}
} else if (_root.talk(this) == 3) {
if (!this.bStriked) {
this.bStriked = true;
_root.fade(50, 20, 5);
_root.playSound("thunder");
}
} else {
this.bStriked = false;
this.called = -1;
this.say[2] = "";
this.say[3] = null;
}
} else {
_root.mover(this, 20, 20, 0.8);
_root.removeTalk(this);
}
}
Instance of Symbol 1870 MovieClip in Frame 15
onClipEvent (load) {
if (!_root.checkFlag("FollowingGuyQuest")) {
if (_root.Follower._name == "FollowGuy") {
this._visible = true;
} else {
this._visible = false;
}
this.say = new Array(2);
this.say[0] = "Hey, thanks!\nHow did I know where you live? Thats because... I... I... *runs away*";
this.say[1] = "";
} else {
_root.removeMovie(this);
}
_root.lamp(this);
}
onClipEvent (enterFrame) {
if (this._visible) {
if (this.hitTest(_root.Player)) {
if (!_root.FollowingGuyQuest) {
_root.playerCanMove = false;
if (_root.talk(this) > 0) {
_root.setFlag("FollowingGuyQuest", true);
_root.removeTalk(this);
_root.removeFollower();
this._visible = false;
_root.playerCanMove = true;
_root.SMS("That guy dropped something! Well, now it's yours!", 80);
_root.giveItem("Mystical stone", 2);
_root.removeMovie(this);
}
}
} else {
_root.removeTalk(this);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("Park", 1069, 893);
}
}
Instance of Symbol 1778 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("Crossroad1", 49, 286);
}
}
Instance of Symbol 1545 MovieClip [pickup] in Frame 15
onClipEvent (load) {
this.iName = "Flower";
this.iNr = 1;
this.gotoAndStop(iNr);
if (_root.checkFlag("gotLens") || (_root.checkItem(iName))) {
_root.removeMovie(this);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.SMS("Some kind of a rare flower, that grows on pavement oO", 60);
if (!_root.checkItem(iName)) {
_root.giveItem(iName, iNr);
_root.removeMovie(this);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("SakakiHomeOutside", 80, 482);
}
}
Instance of Symbol 1872 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 53, 60, 108, 72);
koObject.onSpace = function () {
if (_root.cash >= 15) {
_root.playSound("register");
_root.addCash(-15);
_root.addMana(0, 1);
} else {
_root.SMS("you wish!", 60);
}
};
koObject.onTouch = function () {
_root.SMS("Bluebull(25mp)! BUY ONE FOR 15$ AND YOU CAN BUY ANOTHER FOR 15$ TOO!", 90);
};
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1874 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 53, 60, 108, 72);
koObject.onSpace = function () {
if (_root.cash >= 15) {
_root.playSound("register");
_root.addCash(-15);
_root.addHeal(0, 1);
} else {
_root.SMS("Go hunt some cats!", 60);
}
};
koObject.onTouch = function () {
_root.SMS("Healing drink(25hp)! ONLY 14.99! (well, its 15$ actually ;p)", 90);
};
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Frame 16
LBX = [8, 91, 90, 412, 144, 500, 412, 500];
LBY = [177, 336, 0, 358, 359, 414, 160, 413];
bEnemyArea = true;
eBack = "Street";
_root.setMonster(2, "White Cat");
if (Math.random() > 0.5) {
_root.setMonster(1, "White Cat");
_root.setMonster(3);
} else if (Math.random() > 0.5) {
_root.setMonster(1, "White Kitten");
_root.setMonster(3);
} else {
_root.setMonster(1);
_root.setMonster(3, "White Kitten");
}
playMusic("Chobits - Morning");
Instance of Symbol 1880 MovieClip in Frame 16
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1755 MovieClip in Frame 16
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1852 MovieClip in Frame 16
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 26, 61);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1852 MovieClip in Frame 16
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 26, 61);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 16
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1880 MovieClip in Frame 16
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
objectex(this);
}
Instance of Symbol 1883 MovieClip in Frame 16
onClipEvent (load) {
var say = new Array();
if (!_root.checkFlag("gotLens")) {
if (!_root.checkItem("Flower")) {
say[0] = "you dont have the item im looking for :/";
} else if (_root.checkItem("Flower")) {
say[0] = "oh, what a beautiful flower :O\nGIMME! GIMME! XD";
say[1] = "For this generous gift, I'll grant you those beautiful lenses :0";
}
} else {
say[0] = "Thanks for the flower";
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (!_root.checkFlag("gotLens")) {
if (_root.talk(this) > 0) {
_root.killItem("Flower");
_root.giveItem("Red Lens", 3);
_root.giveItem("Green Lens", 4);
_root.giveItem("Blue Lens", 5);
_root.setFlag("gotLens");
say = new Array();
say[0] = "Thanks for the flower";
}
} else {
_root.talk(this);
if ((((!_root.checkFlag("openCave")) && (!_root.checkItem("Red Lens"))) && (!_root.checkItem("Green Lens"))) && (!_root.checkItem("Blue Lens"))) {
_root.giveItem("Red Lens", 3);
_root.giveItem("Green Lens", 4);
_root.giveItem("Blue Lens", 5);
}
}
} else {
_root.mover(this, 50, 50, 1);
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("StreetTunel", _root.Player._x, 442);
}
}
Instance of Symbol 1778 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("Crossroad2", -320, _root.Player._y);
}
}
Instance of Symbol 1778 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("StreetSakaki", 952, 244);
}
}
Frame 17
LBX = [108, 404, 90, 162, 36, 92, 158, 412];
LBY = [0, 292, 185, 500, 215, 306, 283, 500];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
_root.setMonster(1, "White Cat");
} else if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Kitten");
} else {
_root.setMonster(1, "White Kitten");
}
_root.setMonster(2, "White Cat Leader");
if (Math.random() > 0.5) {
_root.setMonster(3, "White Cat");
} else if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Kitten");
} else {
_root.setMonster(1, "White Kitten");
}
playMusic("X-Change - Observe");
Instance of Symbol 1755 MovieClip in Frame 17
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 17
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1847 MovieClip in Frame 17
onClipEvent (load) {
gotoAndStop (3);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("car", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("NyamoHome", _root.Player._x, 478);
}
}
Instance of Symbol 1778 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("Crossroad1", _root.Player._x, 72);
}
}
Frame 18
LBX = [116, 403, 32, 115, -10, 512, 179, 240, -10, 50];
LBY = [339, 499, 339, 390, 117, 340, 110, 120, 0, 121];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
_root.setMonster(1, "White Kitten");
_root.setMonster(3, "White Cat Fighter");
} else if (Math.random() > 0.5) {
_root.setMonster(1, "Gray Kitten");
_root.setMonster(3, "White Cat");
} else {
_root.setMonster(1, "White Cat");
_root.setMonster(3, "Gray Kitten");
}
_root.setMonster(2, "Gray Cat");
playMusic("X-Change - Observe");
Instance of Symbol 1755 MovieClip in Frame 18
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1835 MovieClip in Frame 18
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 18
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 18
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("ScienceStreet", -490, _root.Player._y);
}
}
Instance of Symbol 1778 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.Sun = false;
_root.scrollEffect = 0;
_root.warpTo("NyamoBuilding", 220, 480);
}
}
Instance of Symbol 1778 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("StreetTunel", _root.Player._x, 73);
}
}
Instance of Symbol 1778 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("old_citystart", 350, 450);
}
}
Frame 19
LBX = [-362, -114, -179, -30, -34, 233, 181, 230, 246, 506, 220, 466, 503, 725, 35, 162];
LBY = [162, 432, 183, 433, 198, 433, 0, 220, 0, 412, 219, 503, 254, 413, 181, 198];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
_root.setMonster(1, "White Cat");
} else if (Math.random() > 0.5) {
_root.setMonster(1, "Gray Kitten");
} else {
_root.setMonster(1, "White Kitten");
}
_root.setMonster(2, "White Cat Leader");
if (Math.random() > 0.5) {
_root.setMonster(3, "White Cat");
} else if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Kitten");
} else {
_root.setMonster(3, "White Kitten");
}
playMusic("Chobits - Morning");
Instance of Symbol 1847 MovieClip in Frame 19
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 1899 MovieClip in Frame 19
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1835 MovieClip in Frame 19
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 1755 MovieClip in Frame 19
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 19
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1838 MovieClip in Frame 19
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 1755 MovieClip in Frame 19
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1902 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.Player._y > this._y) {
if (this.hitTest(_root.Player)) {
_root.fakeOver._x = this._x;
_root.fakeOver._y = this._y;
}
}
}
Instance of Symbol 1902 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.Player._y > this._y) {
if (this.hitTest(_root.Player)) {
_root.fakeOver._x = this._x;
_root.fakeOver._y = this._y;
}
}
}
Instance of Symbol 1880 MovieClip in Frame 19
onClipEvent (load) {
this.gotoAndStop(4);
var koObject = (new classes.KamiObject());
koObject.attach(this, -6, 6, -3, 3);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1880 MovieClip in Frame 19
onClipEvent (load) {
_root.tex = Math.random() * 550;
this.gotoAndStop(3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -2, 10, -3, 3);
}
onClipEvent (enterFrame) {
koObject.process();
_root.tex++;
if (_root.tex > 550) {
_root.tex = 0;
}
}
Instance of Symbol 1852 MovieClip in Frame 19
onClipEvent (load) {
gotoAndStop (1);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 19, 24);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("car", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 1852 MovieClip in Frame 19
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 19, 24);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 19
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 19
onClipEvent (load) {
gotoAndStop (1);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("carhorn", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("trainBridge", _root.Player._x - 157, 460);
}
}
Instance of Symbol 1904 MovieClip in Frame 19
onClipEvent (load) {
var say = null;
var sayLight = new Array();
var sayNoLight = new Array();
sayLight[0] = "I love the city lights - night is when my day starts";
sayLight[1] = "Uh, you seem to have the Lights turned off... Dude! You're missing the best out of life.";
sayLight[2] = "You want to have them turned on? I can do that for ya! (Change will affect the game after you exit the map)";
sayNoLight[0] = "I love the city lights - night is when my day starts";
sayNoLight[1] = "Dude, thats the spirit! You seem to have the Lights turned on!";
sayNoLight[2] = "But if you REALLY want I can turn them off. Just observ my haxor skillz! (Change will affect the game after you exit the map)";
if (_root.allowLights) {
say = sayNoLight;
} else {
say = sayLight;
}
var called = -1;
var choos = ["Do the magic!", "Meh"];
var sid = 0;
this._y = -80;
if ((_root.hr > 20) || (_root.hr < 6)) {
this._y = 110;
this.sid = 2;
}
}
onClipEvent (enterFrame) {
if ((this.sid == 0) && (_root.hr > 20)) {
this.sid = 1;
} else if (this.sid == 1) {
this._y = this._y + 2;
if (this._y >= 110) {
this.sid = 2;
}
} else if (this.sid == 2) {
if (this.hitTest(_root.Player)) {
if (_root.talk(this) > 1) {
this.called = _root.choose(this.choos);
if (this.called == 0) {
_root.allowLights = !_root.allowLights;
_root.removeTalk(this);
if (_root.allowLights) {
this.say = this.sayNoLight;
} else {
this.say = this.sayLight;
}
} else if (called != -1) {
_root.removeTalk(this);
}
}
} else {
_root.mover(this, 50, 50, 1);
_root.removeTalk(this);
}
if ((_root.hr > 6) && (_root.hr < 20)) {
this.sid = 3;
}
} else if (this.sid == 3) {
this._y = this._y - 2;
if (this._y <= -80) {
this.sid = 0;
}
}
}
Instance of Symbol 1778 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("schoolStreet", -214, _root.Player._y);
}
}
Instance of Symbol 1778 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.worldMap = 0;
_root.warpTo("WorldMap", 147, -62);
}
}
Instance of Symbol 1778 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
if ((_root.hr >= 8) && (_root.hr < 20)) {
_root.scrollEffect = 0;
_root.Sun = false;
_root.warpTo("Shop1", 362, 452);
} else {
_root.SMS("Closed. Come back between 8 and 20", 5);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("Crossroad1", 414, _root.Player._y);
}
}
Frame 20
LBX = [20, 350];
LBY = [0, 500];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
_root.setMonster(1, "White Cat");
} else if (Math.random() > 0.5) {
_root.setMonster(1, "Gray Kitten");
} else {
_root.setMonster(1, "White Kitten");
}
_root.setMonster(2, "White Cat Leader");
if (Math.random() > 0.5) {
_root.setMonster(3, "White Cat");
} else if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Kitten");
} else {
_root.setMonster(3, "White Kitten");
}
playMusic("X-Change - Observe");
Instance of Symbol 1913 MovieClip "mcAchievement" in Frame 20
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1917 MovieClip in Frame 20
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 20
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1625 MovieClip [mon_WhiteCat] in Frame 20
onClipEvent (load) {
if (_root.checkFlag("pushedRailwayCat")) {
_root.removeMovie(this);
} else {
var say = new Array();
say.push("Seems like this cat didnt notice you.\nWhat will you do?");
var called = -1;
var pose = 0;
var tout = 0;
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (!_root.checkFlag("pushedRailwayCat")) {
if (this.hitTest(_root.Player)) {
_root.talk(this);
if (called == 0) {
_root.setRandomFact(10);
_root.setFlag("pushedRailwayCat");
_root.removeTalk(this);
_root.mcCatTrain.gotoAndPlay(21);
_root.playerCanMove = false;
_root.mcAchievement._visible = true;
} else if (called == -1) {
called = _root.choose(new Array("Push him!", "Too cute, leave him :3"));
}
} else {
_root.removeTalk(this);
called = -1;
}
} else {
switch (pose) {
case 0 :
tout++;
if (tout > 10) {
pose = 1;
tout = 0;
this.gotoAndStop(3);
this._xscale = -100;
} else {
this._x = this._x + Math.abs(tout - 13);
}
break;
case 1 :
tout++;
if (tout > 20) {
pose = 2;
tout = 0;
}
break;
case 2 :
tout++;
if (tout > 10) {
pose = 3;
tout = 0;
} else {
this._y = this._y + tout;
}
break;
case 3 :
_root.playerCanMove = true;
this._visible = false;
pose = 4;
break;
case 4 :
tout++;
if (tout <= 80) {
break;
}
pose = 5;
_root.mcAchievement._visible = false;
_root.removeMovie(this);
}
}
}
Instance of Symbol 1919 MovieClip in Frame 20
onClipEvent (load) {
gotoAndStop (1);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -12, 12, -20, 0);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("car", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 1919 MovieClip in Frame 20
onClipEvent (load) {
gotoAndStop (1);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -12, 12, -20, 0);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 20
onClipEvent (load) {
gotoAndStop (3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 20
onClipEvent (load) {
gotoAndStop (3);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("car", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 1922 MovieClip in Frame 20
onClipEvent (load) {
if (_root.checkFlag("GhostTrainFound") || (_root.checkFlag("GhostTrainFailed"))) {
_root.removeMovie(this);
}
var going = false;
var say = new Array();
if (!_root.checkFlag("CheckingGhostTrain")) {
say.push("I\u2019ve been living in nearby building for some quite time now and during that time I noticed that there are more trains passing by here then there are stopping at the train station.");
say.push("Some kind of ghost train or what?");
say.push("I was slowly checking those trains and I narrowed the list to those four: 6:45, 14:10, 20:30 and 22:15.");
say.push("Unfortunately I cannot check them myself.\nBecause of my father\u2019s work I will move to another city and right now I\u2019m busy with preparations.");
say.push("But before I go, I would like to know if that ghost train really exists.\nPlease check those four trains for me \u2013 is there one that doesn\u2019t stop at the train station?");
} else {
say.push("So? Which of those four trains doesnt stop at the train station?.");
say.push("");
}
var called = -1;
var choos = new Array("6:45", "14:10", "20:30", "22:15", "Neither. Your ghost train doesn\u2019t exist.", "Sorry, I didnt check it yet");
}
onClipEvent (enterFrame) {
if (going) {
this._y = this._y - 5;
if (this._y < 0) {
_root.removeMovie(this);
}
} else if (this.hitTest(_root.Player)) {
if (!_root.checkFlag("CheckingGhostTrain")) {
if (_root.talk(this) == 4) {
_root.setFlag("CheckingGhostTrain");
this.called = 5;
say[0] = "So? Which of those four trains doesnt stop at the train station?.";
say[2] = null;
}
} else {
_root.talk(this);
if (((this.called == 0) || (this.called == 1)) || (this.called == 3)) {
this.say[1] = "Hmm? You don\u2019t sound too convinced. Are you REALLY sure?";
_root.talkRefresh();
} else if (this.called == 2) {
this.say[1] = "Yes! I knew it! I feel complete now :D\nWell, Im off to pack my stuff. How about coming here at 20:30 and seeing it for yourself?";
_root.setFlag("GhostTrainFound");
_root.talkRefresh();
} else if (this.called == 4) {
this.say[1] = "What? All my time spend on looking for it was just wasted? It never existed? No... NO! NOOOOOOOO *runs away*";
_root.setFlag("GhostTrainFailed");
_root.setRandomFact(5);
_root.talkRefresh();
} else if (this.called == 5) {
this.say[1] = "Well, OK.\nI hope you will find it.";
_root.talkRefresh();
} else {
this.called = _root.choose(this.choos);
}
}
} else {
if (_root.checkFlag("CheckingGhostTrain")) {
this.say[1] = "";
this.called = -1;
}
if (_root.checkFlag("GhostTrainFound") || (_root.checkFlag("GhostTrainFailed"))) {
this.going = true;
}
_root.mover(this, 50, 50, 0.8);
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("ScienceStreet", _root.Player._x - 1.5, 480);
}
}
Instance of Symbol 1778 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("Crossroad2", _root.Player._x + 165, 35);
}
}
Instance of Symbol 1932 MovieClip "mcCatTrain" in Frame 20
onClipEvent (load) {
this.gotoAndStop(1);
var choosing = false;
var called = -1;
var choos = new Array("Jump on the train", "Pretend I dont hear it");
}
onClipEvent (enterFrame) {
if (_root.checkFlag("GhostTrainFound")) {
if ((_root.hr == 20) && (Math.floor(_root.mi) == 30)) {
if (!choosing) {
_root.SMS("The train is coming! What will you do?", 70);
choosing = true;
this.play();
_root.setTimeFlow(false);
} else if (called == -1) {
called = _root.choose(this.choos);
if (called == 0) {
choosing = false;
_root.mi = 31;
_root.scrollEfect = 0;
_root.fade(0, 1, 5, function () {
_root.playMusic("");
_root.setSun(false);
_root.warpTo("OldKami01", 250, 250);
});
} else if (called == 1) {
choosing = false;
_root.mi = 31;
_root.setTimeFlow(true);
}
}
}
}
}
Instance of Symbol 1932 MovieClip in Frame 20
onClipEvent (load) {
this.gotoAndStop(1);
var choosing = false;
var called = -1;
var choos = new Array("Jump on the train", "Pretend I dont hear it");
}
onClipEvent (enterFrame) {
if (_root.checkFlag("GhostTrainFound")) {
if ((_root.hr == 20) && (Math.floor(_root.mi) == 30)) {
if (!choosing) {
_root.SMS("The train is coming! What will you do?", 70);
choosing = true;
this.play();
_root.setTimeFlow(false);
} else if (called == -1) {
called = _root.choose(this.choos);
if (called == 0) {
choosing = false;
_root.mi = 31;
_root.scrollEfect = 0;
_root.fade(0, 1, 5, function () {
_root.playMusic("");
_root.setSun(false);
_root.warpTo("OldKami01", 250, 250);
});
} else if (called == 1) {
choosing = false;
_root.mi = 31;
_root.setTimeFlow(true);
}
}
}
}
}
Instance of Symbol 1755 MovieClip in Frame 20
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Frame 21
LBX = [108, 396];
LBY = [325, 468];
bEnemyArea = false;
Instance of Symbol 1939 MovieClip in Frame 21
onClipEvent (load) {
_root.sell = false;
var say = ["Want to see my warez?\n(SPACE to enter the shop)", ""];
item = new Array(5);
item[0] = new Array(3);
item[0][0] = ["stick", 11];
item[0][1] = ["bat", 15];
item[0][2] = ["knife", 17];
item[0][3] = ["small sword", 20];
item[0][4] = ["sword", 30];
item[1] = new Array(3);
item[1][0] = ["cap", 11];
item[1][1] = ["hat", 15];
item[1][2] = ["daddy hat", 17];
item[2] = new Array(3);
item[2][0] = ["shirt", 11];
item[2][1] = ["blouse", 15];
item[2][2] = ["uniform", 17];
item[2][3] = ["leather armor", 20];
item[3] = new Array(3);
item[3][0] = ["shoes", 11];
item[3][1] = ["pumels", 15];
item[3][2] = ["boots", 17];
item[4] = new Array(3);
item[4][0] = ["handbag", 11];
item[4][1] = ["bag", 15];
item[4][2] = ["small shield", 17];
}
onClipEvent (enterFrame) {
if ((_root.hr >= 20) && (_root.mi < 10)) {
_root.SMS("Sorry, but we are closing now. Come back some other time!", 3, function () {
_root.scrollEffect = 2;
_root.Sun = true;
_root.warpTo("Crossroad2", 140, 242);
});
}
if (this.hitTest(_root.Player)) {
if (!_root.sell) {
if (_root.talk(this) > 0) {
_root.removeTalk(this);
_root.openShop(this);
}
}
} else {
_root.mover(this, 50, 50, 0.5);
_root.removeTalk(this);
_root.sell = false;
}
}
Instance of Symbol 1778 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.Sun = true;
_root.warpTo("Crossroad2", 140, 242);
}
}
Frame 22
LBX = [0, 500, 50, 89, 90, 110];
LBY = [202, 411, 410, 500, 450, 500];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
if (Math.random() > 0.5) {
_root.setMonster(1, "Gray Cat");
} else {
_root.setMonster(1, "Gray Kitten");
}
} else {
_root.setMonster(1, "White Cat");
}
_root.setMonster(2, "White Cat Leader");
if (Math.random() > 0.5) {
if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Cat");
} else {
_root.setMonster(3, "White Kitten");
}
} else {
_root.setMonster(3, "White Cat Fighter");
}
playMusic("X-Change - Observe");
Instance of Symbol 1755 MovieClip in Frame 22
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 22
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1847 MovieClip in Frame 22
onClipEvent (load) {
gotoAndStop (4);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 22
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1798 MovieClip in Frame 22
onClipEvent (load) {
gotoAndStop (6);
this.t = Math.random() * 500;
var koObject = (new classes.KamiObject());
koObject.attach(this, -9.5, 9.5, -10, 2);
}
onClipEvent (enterFrame) {
koObject.process();
if (_root.hr <= 6) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("owl2", true);
}
this.t = 50 + (Math.random() * 700);
}
}
}
Instance of Symbol 1950 MovieClip "FollowGuy" in Frame 22
onClipEvent (load) {
var say;
if ((!_root.checkFlag("FollowingGuyQuest")) && (_root.Follower._name != "FollowGuy")) {
this.gotoAndStop(4);
this.say = new Array();
this.say[0] = "Hey, you have a sec?";
this.say[1] = "With all those wild cats running on the streets, I can't get to my house.";
this.say[2] = "Can you, like, escort me? I live next to you.";
this.say[3] = "";
} else {
_root.removeMovie(this);
}
}
onClipEvent (enterFrame) {
if (_root.checkFlag("FollowingGuyQuest") || (_root.Follower._name == "FollowGuy")) {
_root.removeMovie(this);
}
if (!this.isFollowing) {
if (this.hitTest(_root.Player)) {
if (_root.talk(this) >= 3) {
_root.addFollower(this);
_root.removeTalk(this);
}
} else {
_root.removeTalk(this);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("toChiyoCrossroad", 450, _root.Player._y);
}
}
Instance of Symbol 1778 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("Park", -537, 884);
}
}
Frame 23
LBX = [110, 340, 110, 500];
LBY = [0, 190, 190, 500];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
if (Math.random() > 0.5) {
_root.setMonster(1, "Gray Cat");
} else {
_root.setMonster(1, "Gray Kitten");
}
} else {
_root.setMonster(1, "White Cat");
}
_root.setMonster(2, "White Cat Leader");
if (Math.random() > 0.5) {
if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Cat");
} else {
_root.setMonster(3, "White Kitten");
}
} else {
_root.setMonster(3, "White Cat Fighter");
}
_root.playMusic("X-Change - Observe");
Instance of Symbol 1917 MovieClip in Frame 23
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 23
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 23
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1835 MovieClip in Frame 23
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 23
onClipEvent (load) {
gotoAndStop (3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 23
onClipEvent (load) {
gotoAndStop (3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1863 MovieClip in Frame 23
onClipEvent (load) {
this.t = Math.random() * 400;
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 4, 16);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr >= 23) || (_root.hr <= 6)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("dog", true);
}
this.t = 50 + (Math.random() * 600);
}
}
}
Instance of Symbol 1849 MovieClip in Frame 23
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 3;
_root.warpTo("gasStation", _root.Player._x + 100, -5);
}
}
Instance of Symbol 1778 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 3;
_root.warpTo("ChiyoStreet", _root.Player._x, 770);
}
}
Instance of Symbol 1778 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("WaterBridge", 40, _root.Player._y);
}
}
Frame 24
LBX = [30, 150, 30, 500];
LBY = [0, 330, 330, 480];
bEnemyArea = false;
_root.playMusic("Fate/stay Night - Kasei Otto wa Seigi no Mikata");
Instance of Symbol 1755 MovieClip in Frame 24
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 24
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1835 MovieClip in Frame 24
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 24
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 24
onClipEvent (load) {
gotoAndStop (1);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1973 MovieClip in Frame 24
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 37.5, 40, 50);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 24
onClipEvent (load) {
gotoAndStop (3);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("car", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 1917 MovieClip in Frame 24
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 371 MovieClip in Frame 24
onClipEvent (load) {
if (_root.checkFlag("OsakaJoined")) {
_root.removeMovie(this);
}
this.gotoAndStop(3);
var say = new Array();
say[0] = "Where I was going...\nI wonder...";
say[1] = "Osaka joins the party!";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (_root.talk(this) > 0) {
_root.joinDBPlayer("Osaka");
_root.setFlag("OsakaJoined");
_root.removeTalk(this);
_root.removeMovie(this);
}
} else {
_root.mover(this, 20, 20, 0.8);
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("old_citystart", 43, _root.Player._y);
}
}
Frame 25
LBX = [0, 100, 85, 340, 100, 340, 340, 360, 340, 500, 340, 480, 300, 430, 420, 500];
LBY = [470, 720, -210, 720, 720, 800, 320, 670, 320, 390, 630, 670, -210, 20, -210, -50];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
_root.setMonster(1, "Gray Cat");
} else {
_root.setMonster(3, "Trickster");
}
if (Math.random() > 0.5) {
_root.setMonster(2, "White Cat Leader");
} else {
_root.setMonster(2, "Gray Cat Leader");
}
if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Cat");
} else {
_root.setMonster(3, "Gray Kitten");
}
_root.playMusic("Fate/stay Night - Kasei Otto wa Seigi no Mikata");
Instance of Symbol 1917 MovieClip in Frame 25
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 25
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 25
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1852 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 26, 61);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1852 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 26, 61);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 25
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 25
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1798 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop (6);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -9.5, 9.5, -10, 2);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("bird1", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 1798 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop (6);
this.t = Math.random() * 500;
var koObject = (new classes.KamiObject());
koObject.attach(this, -9.5, 9.5, -10, 2);
}
onClipEvent (enterFrame) {
koObject.process();
if (_root.hr <= 6) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("owl2", true);
}
this.t = 50 + (Math.random() * 700);
}
}
}
Instance of Symbol 1835 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop (3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop (3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop (3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1979 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height - 10, _height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1979 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height - 10, _height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1863 MovieClip in Frame 25
onClipEvent (load) {
this.t = Math.random() * 400;
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 4, 16);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr >= 23) || (_root.hr <= 6)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("dog", true);
}
this.t = 50 + (Math.random() * 600);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("TrainStation", -505, 380);
}
}
Instance of Symbol 1778 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("ChiyoHouse", 470, 300);
}
}
Instance of Symbol 1778 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("ToChiyoCrossroad", _root.Player._x, 40);
}
}
Frame 26
LBX = [0, 500];
LBY = [185, 385];
bEnemyArea = false;
_root.playMusic("Peace Maker Kurogane");
Instance of Symbol 1917 MovieClip in Frame 26
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1870 MovieClip in Frame 26
onClipEvent (load) {
var say = new Array();
if (!_root.checkFlag("FollowingChiyoQuest")) {
if (_root.Follower._name == "FollowChiyo") {
this._visible = true;
} else {
this._visible = false;
}
this.say[0] = "My alchemy skill is pretty high but it will still take a few moments to finish :S\nPlease wait";
this.say[1] = "Ok, here it is! Obento filled with love!\nAnd heres a bottle of poison if plan \"A\" fails.";
this.say[2] = "Neh, just kidding";
this.say[3] = "...OR AM I?!";
this.say[4] = "Anyway, come back anytime and tell me how it worked out";
this.say[5] = "";
} else {
this._visible = false;
_root.removeMovie(this);
}
_root.lamp(this);
}
onClipEvent (enterFrame) {
if (this._visible) {
if (this.hitTest(_root.Player)) {
if (!_root.checkFlag("FollowingChiyoQuest")) {
_root.playerCanMove = false;
if ((_root.talk(this) == 1) && (_root.timeFlow)) {
_root.setTimeFlow(false);
_root.fade(0, 10, 5, function () {
_root.hr++;
});
} else if (_root.talk(this) >= 5) {
_root.setTimeFlow(true);
_root.setFlag("FollowingChiyoQuest");
_root.removeTalk(this);
_root.removeFollower();
_root.playerCanMove = true;
_root.removeMovie(this);
}
}
} else {
_root.removeTalk(this);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 3;
_root.warpTo("ChiyoStreet", 110, 0);
}
}
Frame 27
LBX = [0, 290, 290, 500];
LBY = [340, 480, 350, 480];
bEnemyArea = false;
_root.playMusic("Fate/stay Night - Kasei Otto wa Seigi no Mikata");
Instance of Symbol 1755 MovieClip in Frame 27
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1835 MovieClip in Frame 27
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 27
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 27
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1917 MovieClip in Frame 27
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1986 MovieClip in Frame 27
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1778 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("OsakaCity", 458, _root.Player._y);
}
}
Instance of Symbol 1778 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("NyamoHome", 33, 64);
}
}
Instance of Symbol 1872 MovieClip in Frame 27
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 53, 60, 108, 72);
koObject.onSpace = function () {
if (_root.cash >= 100) {
_root.playSound("register");
_root.addCash(-100);
_root.addMana(1, 1);
} else {
_root.SMS("Well, I could give it to you for free... BUT I DONT WANT TO >=O!", 90);
}
};
koObject.onTouch = function () {
_root.SMS("\"Mana Replenish\" - erm... Replenish your mana! (100$)", 70);
};
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1874 MovieClip in Frame 27
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 53, 60, 108, 72);
koObject.onSpace = function () {
if (_root.cash >= 100) {
_root.playSound("register");
_root.addCash(-100);
_root.addHeal(1, 1);
} else {
_root.SMS("This is a robbery! GIVE ME ALL YOUR MONEY! ... what? damn!... ", 90);
}
};
koObject.onTouch = function () {
_root.SMS("\"Power Health\" - Boosting your health since 2006 (100$)", 70);
};
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Frame 28
LBX = [-260, 762, 362, 762, -260, 323, 31, 111];
LBY = [253, 409, 221, 271, 430, 480, 402, 429];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
if (Math.random() > 0.5) {
_root.setMonster(1, "Gray Cat");
} else {
_root.setMonster(1, "Gray Kitten");
}
} else {
_root.setMonster(1, "White Cat");
}
_root.setMonster(2, "White Cat Leader");
if (Math.random() > 0.5) {
if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Cat");
} else {
_root.setMonster(3, "White Kitten");
}
} else {
_root.setMonster(3, "White Cat Fighter");
}
playMusic("X-Change - Observe");
Instance of Symbol 1755 MovieClip in Frame 28
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 28
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1863 MovieClip in Frame 28
onClipEvent (load) {
this.t = Math.random() * 400;
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 4, 16);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr >= 23) || (_root.hr <= 6)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("dog", true);
}
this.t = 50 + (Math.random() * 600);
}
}
}
Instance of Symbol 1847 MovieClip in Frame 28
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 28
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 28
onClipEvent (load) {
gotoAndStop (1);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
playSound("carhorn", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 1902 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.Player._y > this._y) {
if (this.hitTest(_root.Player)) {
_root.fakeOver._x = this._x;
_root.fakeOver._y = this._y;
}
}
}
Instance of Symbol 1902 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.Player._y > this._y) {
if (this.hitTest(_root.Player)) {
_root.fakeOver._x = this._x;
_root.fakeOver._y = this._y;
}
}
}
Instance of Symbol 1902 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.Player._y > this._y) {
if (this.hitTest(_root.Player)) {
_root.fakeOver._x = this._x;
_root.fakeOver._y = this._y;
}
}
}
Instance of Symbol 1902 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.Player._y > this._y) {
if (this.hitTest(_root.Player)) {
_root.fakeOver._x = this._x;
_root.fakeOver._y = this._y;
}
}
}
Instance of Symbol 1902 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.Player._y > this._y) {
if (this.hitTest(_root.Player)) {
_root.fakeOver._x = this._x;
_root.fakeOver._y = this._y;
}
}
}
Instance of Symbol 1902 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.Player._y > this._y) {
if (this.hitTest(_root.Player)) {
_root.fakeOver._x = this._x;
_root.fakeOver._y = this._y;
}
}
}
Instance of Symbol 1902 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.Player._y > this._y) {
if (this.hitTest(_root.Player)) {
_root.fakeOver._x = this._x;
_root.fakeOver._y = this._y;
}
}
}
Instance of Symbol 1778 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("schoolGate", -300, _root.Player._y);
}
}
Instance of Symbol 1778 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("CrossRoad2", 687, _root.Plaeyr._y);
}
}
Frame 29
LBX = [-330, 50, 49, 830, 490, 830, 510, 830];
LBY = [220, 430, 160, 430, 0, 160, 430, 500];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
if (Math.random() > 0.5) {
_root.setMonster(1, "Gray Cat");
} else {
_root.setMonster(3, "Trickster");
}
} else {
_root.setMonster(1, "White Cat Fighter");
}
_root.setMonster(2, "White Cat Leader");
if (Math.random() > 0.5) {
if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Cat");
} else {
_root.setMonster(3, "Gray Kitten");
}
} else {
_root.setMonster(3, "White Cat Fighter");
}
playMusic("X-Change - Observe");
Instance of Symbol 1917 MovieClip in Frame 29
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 29
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 29
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 29
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1997 MovieClip in Frame 29
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1917 MovieClip in Frame 29
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1852 MovieClip in Frame 29
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 19, 24);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1852 MovieClip in Frame 29
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 19, 24);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1852 MovieClip in Frame 29
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 19, 24);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2002 MovieClip "WatingGirl" in Frame 29
onClipEvent (load) {
var say = new Array();
if (_root.daysPlayed < 14) {
say[0] = "I'm waiting for my friend...";
say[1] = "*mumbles* I hope he didn't forgot...";
} else if (_root.daysPlayed < 30) {
say[0] = "Did you notice how I been waiting here for over two weeks now?";
say[1] = "Well, lets wait some more then!";
} else {
say[0] = "Still waiting... over a month now but whatever!";
say[1] = "By the way, did you know you can speed up time by pressing SHIFT+Q?\nIt is considered cheating so don\u2019t do it.";
}
var aPathPoints = new Array(2);
aPathPoints[0] = [178, 210, 2, 10];
aPathPoints[1] = [411, 210, 2, 10];
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0);
}
onClipEvent (enterFrame) {
koObject.process();
if (this.hitTest(_root.Player)) {
_root.talk(this);
} else {
_root.moverPath(this);
_root.removeTalk(this);
}
}
Instance of Symbol 1852 MovieClip in Frame 29
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 19, 24);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1798 MovieClip in Frame 29
onClipEvent (load) {
gotoAndStop (6);
this.t = Math.random() * 500;
var koObject = (new classes.KamiObject());
koObject.attach(this, -9.5, 9.5, -10, 2);
}
onClipEvent (enterFrame) {
koObject.process();
if (_root.hr <= 6) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("owl2", true);
}
this.t = 50 + (Math.random() * 700);
}
}
}
Instance of Symbol 1798 MovieClip in Frame 29
onClipEvent (load) {
gotoAndStop (6);
var koObject = (new classes.KamiObject());
koObject.attach(this, -9.5, 9.5, -10, 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1849 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2005 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -30, 30, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2007 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 0.5, 21);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2009 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 0.5, 21);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2005 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -30, 30, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2009 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 0.5, 21);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2007 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 0.5, 21);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
if (_root.checkFlag("shortSchoolVer")) {
_root.warpTo("school1-short", -22, _root.Player._y);
} else {
_root.warpTo("school1", -725, _root.Player._y);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("schoolStreet", 700, _root.Plaeyr._y);
}
}
Frame 30
LBX = [-757, 2220, 2220, 2366];
LBY = [-4, 496, 50, 500];
bEnemyArea = false;
_root.playMusic("Fate/stay Night - Kasei Otto wa Seigi no Mikata");
Instance of Symbol 2024 MovieClip in Frame 30
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
objectex(this);
}
Instance of Symbol 1778 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("SchoolLocker", 70, 320);
}
}
Instance of Symbol 1778 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("SchoolUp", 66, 470);
}
}
Instance of Symbol 1778 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("schoolGate", 790, _root.Plaeyr._y);
}
}
Frame 31
LBX = [-67, 450, 450, 600];
LBY = [-8, 500, 52, 500];
bEnemyArea = false;
_root.playMusic("Fate/stay Night - Kasei Otto wa Seigi no Mikata");
Instance of Symbol 1778 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.Sun = false;
_root.warpTo("SchoolLocker", 70, 320);
}
}
Frame 32
LBX = [0, 120, 120, 240, 240, 1020, 1000, 1180];
LBY = [0, 500, 130, 380, 290, 380, -10, 380];
bEnemyArea = false;
allowBattleRun = true;
_root.playMusic("Fate/stay Night - Kasei Otto wa Seigi no Mikata");
_root.setFlag("shortSchoolVer");
Instance of Symbol 1783 MovieClip in Frame 32
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1783 MovieClip in Frame 32
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1783 MovieClip in Frame 32
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1778 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
if ((((_root.aPlayerTeam[1] != null) && (_root.aPlayerTeam[2] != null)) && (_root.aPlayerTeam[3] != null)) || (_root.cheat)) {
_root.scrollEffect = 2;
_root.warpTo("SchoolBasketball", 665, 450);
} else {
_root.SMS("You dont want to enter there out-numbered, do you?", 5);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("schoolPar1", 44, _root.Player._y);
}
}
Instance of Symbol 1778 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
if (_root.checkFlag("shortSchoolVer")) {
_root.warpTo("school1-short", 405, 25);
} else {
_root.warpTo("school1", 2160, 66);
}
}
}
Frame 33
LBX = [0, 500, 50, 500];
LBY = [0, 380, 380, 450];
bEnemyArea = false;
playMusic("X-Change - Observe");
Instance of Symbol 1919 MovieClip in Frame 33
onClipEvent (load) {
gotoAndStop (1);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -12, 12, -20, 0);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("car", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 2031 MovieClip in Frame 33
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, _height - 20, _height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2032 MovieClip in Frame 33
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 0, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("SchoolUp", 1140, _root.Player._y);
}
}
Frame 34
LBX = [0, 500];
LBY = [120, 500];
bEnemyArea = false;
playMusic("X-Change - Observe");
_root.setFlag("shortSchoolVer");
Instance of Symbol 1870 MovieClip in Frame 34
onClipEvent (load) {
_root.lamp(this);
this.say = new Array();
this.say[0] = "Theres a letter here...\n\"Lets end this once and for all!\nMeet me at the gym behind the school\nCome with at least 3 team members...";
this.say[1] = "...or Tadakichi-san will get hurt!\"\n\t\t\tKamineko";
}
onClipEvent (enterFrame) {
if (this._visible) {
if (this.hitTest(_root.Player)) {
_root.setFlag("knowTada");
_root.talk(this);
} else {
_root.removeTalk(this);
}
}
}
Instance of Symbol 2035 MovieClip in Frame 34
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 80, 110);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2035 MovieClip in Frame 34
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 80, 110);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
if (_root.checkFlag("shortSchoolVer")) {
_root.warpTo("school1-short", 520, 320);
} else {
_root.warpTo("school1", 2280, 320);
}
}
}
Frame 35
LBX = [-300, 700];
LBY = [170, 500];
bEnemyArea = false;
eBack = "Gym";
_root.setMonster(1);
_root.setMonster(2, "KaminekoJr");
_root.setMonster(3);
playMusic("");
Instance of Symbol 31 MovieClip in Frame 35
onClipEvent (load) {
var say;
if (!_root.checkFlag("KamiJrWin")) {
_root.setFlag("KamiJrWin", (!_root.playerCanMove) && (!_root.allowBattleRun));
}
if (!_root.checkFlag("KamiJrWin")) {
this.say = new Array();
this.say[0] = "So you come. Care about the dog I see, well then, lets enjoy this while my father clones even more cats.";
this.say[1] = "Oh, yeah, I'm Kamineko's son. Didn't expect this one, eh? ... He has more important matters to a tend";
this.say[2] = "Ok, lets dance!";
this.say[3] = "";
} else {
if ((!_root.playerCanMove) && (!_root.allowBattleRun)) {
_root.playerCanMove = true;
_root.allowBattleRun = true;
_root.removeTalk(this);
_root.SMS("Tadakichi-san rescued!\nKey with Label: \"Secret Cave in the Woods\" found!", 100);
_root.giveItem("Cave Key", 9);
}
_root.removeMovie(this);
}
}
onClipEvent (enterFrame) {
if (_root.playerCanMove || (_root.allowBattleRun)) {
if (!_root.checkFlag("KamiJrWin")) {
if (_root.Player._x < 180) {
_root.playerCanMove = false;
if (_root.talk(this) >= 3) {
_root.removeTalk(this);
_root.allowBattleRun = false;
_root.removeMovie(this);
_root.forceFight();
}
} else {
_root.removeTalk(this);
}
}
} else {
_root.removeTalk(this);
_root.removeMovie(this);
}
}
Instance of Symbol 2042 MovieClip in Frame 35
onClipEvent (load) {
if (!_root.checkFlag("KamiJrWin")) {
(this.gotoAndStop(1));// not popped
} else {
(this.gotoAndStop(2));// not popped
}
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 60, 50, 70);
}
onClipEvent (enterFrame) {
koObject.process();
if (!_root.checkFlag("KamiJrWin")) {
(this.gotoAndStop(1));// not popped
} else {
(this.gotoAndStop(2));// not popped
}
}
Instance of Symbol 2044 MovieClip in Frame 35
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 80, 60, 80);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("SchoolUp", 1035, 235);
}
}
Frame 36
LBX = [203, 500, 0, 500];
LBY = [-40, 101, 101, 720];
bEnemyArea = true;
eBack = "Street";
_root.setMonster(1, "White Cat Fighter");
if (Math.random() > 0.5) {
_root.setMonster(2, "Gray Cat Leader");
} else {
_root.setMonster(2, "White Cat Leader");
}
_root.setMonster(3, "Trickster");
_root.playMusic("Fate/stay Night - Kasei Otto wa Seigi no Mikata");
Instance of Symbol 1917 MovieClip in Frame 36
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 36
onClipEvent (load) {
var n = 0;
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
if (this.n <= 0) {
this.n = random(15);
this._visible = !this._visible;
} else {
this.n--;
}
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 36
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1849 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 1917 MovieClip in Frame 36
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 36
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1973 MovieClip in Frame 36
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -37.5, 0, 40, 50);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2050 MovieClip in Frame 36
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, _width - 5, -10, 5);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1852 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 26, 61);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1852 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 26, 61);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2031 MovieClip in Frame 36
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, _height - 20, _height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop (3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop (3);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1835 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop (2);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2052 MovieClip in Frame 36
onClipEvent (load) {
var say = new Array();
if (_root.checkFlag("gotSpitomatic")) {
say[0] = "Sooo... how's the \"Spit'o'matic\" working?\n*snickers*";
} else if ((_root.checkVar("deliveryGuyDay") == null) || (_root.checkVar("deliveryGuyDay") == -1)) {
_root.setVar("deliveryGuyDay", -1);
say[0] = "What the hell?! Someone ordered a \"spit'o'matic\" on our cost! \"It makes you spit up to 3 times per spit\" my ass!";
say[1] = "Let me just get my hands on that prankster...";
say[2] = "...hey! You! You want to buy it?\n...meh, how am I kidding? No one will buy it...\n(It is an Armisael's item)";
say[3] = "Or am I wrong?! If you really want, bring it back from my home along with 1000$. And... you have to do it in less then 2 days! >=O";
say[4] = "";
} else if (((_root.daysPlayed - _root.checkVar("deliveryGuyDay")) <= 2) && (_root.checkFlag("gotPackageDelivery"))) {
say[0] = "Whoa, awesome, you actually made it!";
} else if ((_root.daysPlayed - _root.checkVar("deliveryGuyDay")) > 2) {
say[0] = "You a bit late... GIVE IT BACK!\nIt is going back to my house";
_root.setFlag("gotPackageDelivery", false);
_root.setVar("deliveryGuyDay", -1);
} else {
say[0] = "Can't find my house? Go a bit north, then east and then, after a while north again.";
}
var called = -1;
var choos = new Array("Yeah, I'll buy it!", "You failed at life");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (_root.checkFlag("gotSpitomatic")) {
_root.talk(this);
} else if (((_root.daysPlayed - _root.checkVar("deliveryGuyDay")) < 2) && (_root.checkFlag("gotPackageDelivery"))) {
if (_root.cash < 1000) {
say[1] = "...but you didnt bring enough cash -_-'\nThis package is going back to my house.";
_root.setFlag("gotPackageDelivery", false);
_root.setVar("deliveryGuyDay", -1);
_root.talk(this);
} else {
say[1] = "Thank you for the cash and heres your item!";
if (_root.talk(this) >= 1) {
if (!_root.checkFlag("gotSpitomatic")) {
_root.addCash(-1000);
_root.setFlag("gotSpitomatic");
if (_root.aPlayerTeam[1][0][0] == "Armisael") {
_root.aPlayerTeam[1][2][1][5] = 1;
} else if (_root.aPlayerTeam[3][0][0] == "Armisael") {
_root.aPlayerTeam[3][2][1][5] = 1;
}
say = new Array();
say[0] = "Sooo... how's the \"Spit'o'matic\" working?\n*snickers*";
}
}
}
} else if (_root.talk(this) >= 3) {
if (this.called == 0) {
this.say[4] = "Great! Remember, return with it in two days!\nProbably, now a fancy counter should pop-up BUT NO, count days yourself >=O";
_root.setVar("deliveryGuyDay", _root.daysPlayed);
_root.talkRefresh();
this.say[0] = "Oh yeah, to find my house, you need to go a bit north, then east and then, after a while, north again";
this.say[1] = null;
} else if (this.called == 1) {
this.say[4] = ";_;\nWhy you have to be so mean?";
_root.talkRefresh();
} else {
this.called = _root.choose(this.choos);
}
} else {
this.called = -1;
this.say[4] = "";
}
} else {
_root.mover(this, 50, 50, 0.8);
_root.removeTalk(this);
}
}
Instance of Symbol 1783 MovieClip in Frame 36
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1783 MovieClip in Frame 36
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1906 MovieClip in Frame 36
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1778 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("toChiyoCrossroad", _root.Player._x - 100, 470);
}
}
Frame 37
LBX = [140, 210, 210, 230, 223, 300, 140, 300];
LBY = [70, 287, 70, 208, 70, 490, 372, 490];
bEnemyArea = false;
Instance of Symbol 1778 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("NyamoBuilding2", 180, 400);
}
}
Instance of Symbol 1870 MovieClip in Frame 37
onClipEvent (load) {
if ((_root.checkVar("deliveryGuyDay") == null) || (_root.checkFlag("gotPackageDelivery"))) {
this._visible = false;
} else {
this._visible = true;
}
_root.lamp(this);
}
onClipEvent (enterFrame) {
if (this._visible) {
if (!_root.checkFlag("gotPackageDelivery")) {
if (this.hitTest(_root.Player)) {
_root.SMS("You picked up the \"Spit'o'matic\" package", 60);
_root.setFlag("gotPackageDelivery", true);
this._visible = false;
}
}
}
}
Instance of Symbol 1906 MovieClip in Frame 37
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1778 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.Sun = true;
_root.warpTo("NyamoHome", 210, 140);
}
}
Instance of Symbol 2032 MovieClip in Frame 37
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 0, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2032 MovieClip in Frame 37
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 0, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Frame 38
LBX = [140, 300, 230, 300, 140, 300];
LBY = [70, 192, 70, 490, 372, 490];
bEnemyArea = false;
Instance of Symbol 2032 MovieClip in Frame 38
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 0, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2032 MovieClip in Frame 38
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 0, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 38
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("NyamoBuilding", 180, 265);
}
}
Frame 39
LBX = [-548, -471, -478, -128, -132, 1162, 570, 679, 968, 1162, 522, 956, 949, 972, 785, 833, 785, 955, 913, 956, 852, 893, 572, 739];
LBY = [278, 500, 299, 472, 273, 481, 470, 491, 231, 273, 192, 280, 219, 283, 146, 197, 169, 202, 147, 198, 146, 197, 182, 215];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
_root.setMonster(1, "Gray Cat");
} else {
_root.setMonster(1, "Gray Kitten");
}
if (Math.random() > 0.5) {
_root.setMonster(2, "White Cat Leader");
} else {
_root.setMonster(2, "Gray Cat Leader");
}
if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Cat");
} else {
_root.setMonster(3, "Trickster");
}
_root.playMusic("Fate/stay Night - Kasei Otto wa Seigi no Mikata");
_root.setFlag("CatAwayPhone");
Instance of Symbol 1917 MovieClip in Frame 39
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 39
onClipEvent (load) {
var n = 0;
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
if (this.n <= 0) {
this.n = random(15);
this._visible = !this._visible;
} else {
this.n--;
}
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 39
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 39
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 39
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 39
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 39
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 39
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 39
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1755 MovieClip in Frame 39
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 39
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1849 MovieClip in Frame 39
onClipEvent (load) {
this.gotoAndStop(1);
var t = (Math.random() * 500);
var koObject = (new classes.KamiObject());
koObject.attach(this, -4.5, 4.5, 155, 162);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr > 6) && (_root.hr < 20)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("bird3", true);
}
this.t = 50 + (Math.random() * 700);
}
}
}
Instance of Symbol 1847 MovieClip in Frame 39
onClipEvent (load) {
gotoAndStop (4);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 39
onClipEvent (load) {
gotoAndStop (4);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 39
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 39
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 39
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2063 MovieClip in Frame 39
onClipEvent (load) {
var say = new Array();
if (!_root.checkFlag("RunningFasterTip")) {
say.push("Do you want to run faster?\nThen you come to the right man!");
say.push("My years of training thought me how to move faster! Just for 1000$ I can share with you my secret!");
say.push("So, how that sounds?");
say.push("");
say.push("");
} else {
say.push("I see you're putting my tip to a good use.");
}
var called = -1;
var choos = new Array("Sounds good! Hit me!", "Sounds... or rather something smells fishy");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (_root.talk(this) > 1) {
if (this.called == 0) {
_root.talkRefresh();
} else if (this.called == 1) {
this.say[3] = "Whatever! When you start doing your quests you will be begging me for faster movement!";
_root.talkRefresh();
} else {
this.called = _root.choose(this.choos);
if (this.called == 0) {
if (_root.cash >= 1000) {
_root.addCash(-1000);
_root.speed = 9;
_root.setFlag("RunningFasterTip");
this.say[0] = "I see you're putting my tip to a good use.";
this.say[1] = null;
this.say[3] = "OK, listen well! ... Ready? ... wait for it... wait...";
this.say[4] = "You need to move your legs faster!\n1000$!\nkthxbye!";
} else {
this.say[3] = "Uh, I kind of DO want to hit you... But I believe you will bring the money next time.";
}
}
}
}
} else {
this.called = -1;
_root.mover(this, 20, 20, 1);
_root.removeTalk(this);
}
}
Instance of Symbol 2066 MovieClip in Frame 39
onClipEvent (load) {
var touch = false;
var say = new Array();
say.push("Lets see...\n6:45 - To Yokohama\n14:10 - To Ichikawa\n22:15 - To Oyama");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (!touch) {
touch = true;
_root.SMS("I can check trains and buy tickets here", 55);
}
if (Key.isDown(32)) {
if ((_root.checkFlag("CheckingGhostTrain") && (!_root.checkFlag("GhostTrainFailed"))) && (!_root.checkFlag("GhostTrainFound"))) {
_root.talk(this);
} else {
_root.SMS("Is there a reason I should check trains or buy tickets?", 75);
}
}
} else {
touch = false;
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("Park", 255, -505);
}
}
Instance of Symbol 1778 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 3;
_root.warpTo("ChiyoStreet", 415, -175);
}
}
Frame 40
LBX = [-521, -343, -346, -304, -307, -263, -267, -230, -231, -188, -190, -148, -152, -107, -110, -68, -79, 421, 413, 500, -266, -214, -218, 206, 202, 435, 433, 505, 232, 406];
LBY = [121, 331, 121, 394, 121, 386, 104, 397, 139, 408, 150, 417, 161, 428, 171, 437, 181, 510, 180, 428, -41, 107, 52, 107, 61, 108, 53, 108, 32, 69];
bEnemyArea = true;
eBack = "Street";
if (Math.random() > 0.5) {
_root.setMonster(1, "White Cat");
} else if (Math.random() > 0.5) {
_root.setMonster(1, "Gray Kitten");
} else {
_root.setMonster(1, "White Kitten");
}
_root.setMonster(2, "White Cat Leader");
if (Math.random() > 0.5) {
_root.setMonster(3, "White Cat");
} else if (Math.random() > 0.5) {
_root.setMonster(3, "Gray Kitten");
} else {
_root.setMonster(3, "White Kitten");
}
_root.playMusic("Fate/stay Night - Kasei Otto wa Seigi no Mikata");
Instance of Symbol 1917 MovieClip in Frame 40
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 40
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 40
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 2075 MovieClip in Frame 40
onClipEvent (load) {
this._visible = true;
var topLBX = new Array(-348, -97, -348, -308);
var topLBY = new Array(388, 510, 370, 390);
var lowLBX = null;
var lowLBY = null;
}
onClipEvent (enterFrame) {
if (lowLBX == null) {
lowLBX = _root.LBX;
lowLBY = _root.LBY;
}
if (_root.Player._x < -306) {
if (_root.Player._y < 380) {
if (_root.LBX != lowLBX) {
_root.LBX = lowLBX;
_root.LBY = lowLBY;
this._visible = true;
}
} else if (_root.LBX != topLBX) {
this._visible = false;
_root.LBX = topLBX;
_root.LBY = topLBY;
}
}
}
Instance of Symbol 1755 MovieClip in Frame 40
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 2078 MovieClip in Frame 40
onClipEvent (load) {
var say = new Array();
if (!_root.checkFlag("PowerStoneSample")) {
say.push("I come here researching a very rare, almost mythical mineral.\nIf crushed, shattered to pieces, it releases powerful stimulation gas.");
say.push("Human who inhales that gas will become stronger, faster and all around better.\nI need money right now so I can sell you a sample.\n1000$ and it yours.");
say.push("What do you say?");
say.push("");
} else if (!_root.checkFlag("foundFirstStone")) {
say.push("So? Are you glad you bought it from me?.");
say.push("With that money you gave me I can continue my research.\nI think I'll start with nearby cementery.");
} else if (!_root.checkFlag("foundOldKamiStone")) {
say.push("Hmm, I searched through the cemetery\u2019s mausoleum and found nothing.\nI think I\u2019ll go check the old city district next.");
} else {
say.push("Darn! I dont know where to look next! ._.");
}
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0);
var called = -1;
var choos = new Array("Yo, thats trippin hot, gimme that stuff!", "*me thinks I should call the cops*");
}
onClipEvent (enterFrame) {
koObject.process();
if (this.hitTest(_root.Player)) {
if (_root.talk(this) > 1) {
if (this.called == 0) {
_root.talkRefresh();
} else if (this.called == 1) {
this.say[3] = "Well, if you ever change your mind I\u2019ll be right here, for... like... forever.";
_root.talkRefresh();
} else {
this.called = _root.choose(this.choos);
if (this.called == 0) {
if (_root.cash >= 1000) {
_root.addCash(-1000);
_root.readDBItem("Power Stone");
_root.setFlag("PowerStoneSample");
this.say[3] = "Thanks!\nWell, go on, use it; it is in you inventory now.";
this.say[0] = "So? Are you glad you bought it from me?.";
this.say[1] = "With that money you gave me I can continue my research.\nI think I'll start with nearby cementery.";
this.say[2] = null;
} else {
this.say[3] = "What was I thinking? No way a kid like you would have such amount of cash.";
}
}
}
}
} else {
this.say[3] = "";
this.called = -1;
_root.mover(this, 30, 30, 0.8);
_root.removeTalk(this);
}
}
Instance of Symbol 2080 MovieClip in Frame 40
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 15, _height + 5, 16);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 40
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1847 MovieClip in Frame 40
onClipEvent (load) {
gotoAndStop (3);
this.t = Math.random() * 300;
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, 10, 100, 115);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr < 18) && (_root.hr > 10)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("car", true);
}
this.t = 50 + (Math.random() * 500);
}
}
}
Instance of Symbol 1835 MovieClip in Frame 40
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (_width / 2) - (_width / 10), (_width / 2) + (_width / 10), _height - (_height / 8), _height - (_height / 50));
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("NyamoHome", 470, _root.Player._y);
}
}
Instance of Symbol 1778 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("trainBridge", _root.Player._x + 1.5, 30);
}
}
Instance of Symbol 1906 MovieClip in Frame 40
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1906 MovieClip in Frame 40
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Frame 41
var locs = new Array();
locs[0] = ["City", _root.wmCity._x, _root.wmCity._y, 5, 1, 3, 2, function () {
_root.scrollEffect = 2;
_root.WorldMapInterface._visible = false;
_root.warpTo("Crossroad2", 337, 470);
}];
locs[1] = ["Woods", _root.wmWoods._x, _root.wmWoods._y, "", "", "", 0, function () {
_root.scrollEffect = 2;
_root.WorldMapInterface._visible = false;
_root.warpTo("OutsideWoods", 40, 380);
}];
locs[2] = ["House On The Hill", _root.wmHouse._x, _root.wmHouse._y, "", 0, "", "", function () {
_root.scrollEffect = 0;
_root.WorldMapInterface._visible = false;
_root.warpTo("HillHouse", 58, 465);
}];
locs[3] = ["Mystical Alter", _root.wmAlter._x, _root.wmAlter._y, 0, 4, "", "", function () {
_root.scrollEffect = 0;
_root.WorldMapInterface._visible = false;
_root.warpTo("NekoEntry", 260, 460);
}];
locs[4] = ["Graveyard", _root.wmGrave._x, _root.wmGrave._y, "", "", "", 3, function () {
_root.scrollEffect = 0;
_root.WorldMapInterface._visible = false;
_root.warpTo("GraveEntry", 260, 460);
}];
locs[5] = ["Unknow Location", _root.wmTemple._x, _root.wmTemple._y, 6, "", 0, "", function () {
if (!_root.checkFlag("templeVisit")) {
_root.scrollEffect = 0;
_root.WorldMapInterface._visible = false;
_root.warpTo("TempleFall", 17, 202);
} else {
_root.scrollEffect = 2;
_root.warpTo("TempleEntry", 250, 450);
}
}];
locs[6] = ["Hermit's house", _root.wmHermit._x, _root.wmHermit._y, "", "", 5, "", function () {
_root.scrollEffect = 3;
_root.WorldMapInterface._visible = false;
_root.warpTo("HermitHouse", 260, 460);
}];
_root.playerCanMove = false;
_root.bEnemyArea = false;
_root.scrollEffect = 1;
if (_root.WorldMapInterface == null) {
mc = _root.createEmptyMovieClip("WorldMapInterface", _root.getNextHighestDepth());
mc.attachMovie("wmArrowUp", "arrowUp", mc.getNextHighestDepth());
mc.attachMovie("wmArrowLeft", "arrowLeft", mc.getNextHighestDepth());
mc.attachMovie("wmArrowDown", "arrowDown", mc.getNextHighestDepth());
mc.attachMovie("wmArrowRight", "arrowRight", mc.getNextHighestDepth());
} else {
mc = _root.WorldMapInterface;
if (mc.arrowUp == null) {
mc.attachMovie("wmArrowUp", "arrowUp", mc.getNextHighestDepth());
mc.attachMovie("wmArrowLeft", "arrowLeft", mc.getNextHighestDepth());
mc.attachMovie("wmArrowDown", "arrowDown", mc.getNextHighestDepth());
mc.attachMovie("wmArrowRight", "arrowRight", mc.getNextHighestDepth());
}
}
_root.WorldMapInterface._visible = true;
mc.arrowUp._visible = false;
mc.arrowLeft._visible = false;
mc.arrowDown._visible = false;
mc.arrowRight._visible = false;
mc.curpos = _root.worldMap;
mc.moving = false;
mc.a = 0;
_root.Player._x = _root.locs[_root.worldMap][1];
_root.Player._y = _root.locs[_root.worldMap][2];
mc.onKeyDown = function () {
if (!this.moving) {
if (this.curpos == _root.worldMap) {
if (Key.isDown(38)) {
if (_root.locs[_root.worldMap][3] != "") {
this.curpos = _root.locs[_root.worldMap][3];
this.arrowUp._visible = false;
this.arrowLeft._visible = false;
this.arrowDown._visible = false;
this.arrowRight._visible = false;
}
} else if (Key.isDown(37)) {
if (_root.locs[_root.worldMap][4] != "") {
this.curpos = _root.locs[_root.worldMap][4];
this.arrowUp._visible = false;
this.arrowLeft._visible = false;
this.arrowDown._visible = false;
this.arrowRight._visible = false;
}
} else if (Key.isDown(40)) {
if (_root.locs[_root.worldMap][5] != "") {
this.curpos = _root.locs[_root.worldMap][5];
this.arrowUp._visible = false;
this.arrowLeft._visible = false;
this.arrowDown._visible = false;
this.arrowRight._visible = false;
}
} else if (Key.isDown(39)) {
if (_root.locs[_root.worldMap][6] != "") {
this.curpos = _root.locs[_root.worldMap][6];
this.arrowUp._visible = false;
this.arrowLeft._visible = false;
this.arrowDown._visible = false;
this.arrowRight._visible = false;
}
}
} else if (Key.isDown(38)) {
if (_root.locs[this.curpos][3] == _root.worldMap) {
this.curpos = _root.worldMap;
_root.SMS("", 3);
}
} else if (Key.isDown(37)) {
if (_root.locs[this.curpos][4] == _root.worldMap) {
this.curpos = _root.worldMap;
_root.SMS("", 3);
}
} else if (Key.isDown(40)) {
if (_root.locs[this.curpos][5] == _root.worldMap) {
this.curpos = _root.worldMap;
_root.SMS("", 3);
}
} else if (Key.isDown(39)) {
if (_root.locs[this.curpos][6] == _root.worldMap) {
this.curpos = _root.worldMap;
_root.SMS("", 3);
}
}
if (Key.isDown(32)) {
if ((_root.Player._x == _root.locs[this.curpos][1]) && (_root.Player._y == _root.locs[this.curpos][2])) {
Key.removeListener(this);
_root.worldMap = -1;
_root.playerCanMove = true;
_root.locs[this.curpos][7]();
}
}
}
};
Key.addListener(mc);
mc.onEnterFrame = function () {
if (!this.moving) {
if ((_root.Player._x != _root.locs[this.curpos][1]) || (_root.Player._y != _root.locs[this.curpos][2])) {
this.a = Math.atan2(_root.locs[this.curpos][2] - _root.Player._y, _root.locs[this.curpos][1] - _root.Player._x);
this.moving = true;
} else {
_root.SMS("Press SPACE to enter the " + _root.locs[this.curpos][0], 3);
if (this.curpos == _root.worldMap) {
if (_root.locs[this.curpos][3] != "") {
this.arrowUp._visible = true;
this.arrowUp._x = _root.Player._x;
this.arrowUp._y = _root.Player._y - 90;
}
if (_root.locs[this.curpos][4] != "") {
this.arrowLeft._visible = true;
this.arrowLeft._x = _root.Player._x - 70;
this.arrowLeft._y = _root.Player._y - 20;
}
if (_root.locs[this.curpos][5] != "") {
this.arrowDown._visible = true;
this.arrowDown._x = _root.Player._x;
this.arrowDown._y = _root.Player._y + 50;
}
if (_root.locs[this.curpos][6] != "") {
this.arrowRight._visible = true;
this.arrowRight._x = _root.Player._x + 70;
this.arrowRight._y = _root.Player._y - 20;
}
}
}
} else if (Math.pow(Math.pow(_root.locs[this.curpos][2] - _root.Player._y, 2) + Math.pow(_root.locs[this.curpos][1] - _root.Player._x, 2), 0.5) <= (_root.speed * 3)) {
_root.Player._x = _root.locs[this.curpos][1];
_root.Player._y = _root.locs[this.curpos][2];
this.moving = false;
} else {
_root.Player._x = _root.Player._x + (Math.cos(this.a) * (_root.speed * 3));
_root.Player._y = _root.Player._y + (Math.sin(this.a) * (_root.speed * 3));
}
};
_root.playMusic("Initial D - Tension");
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2084 MovieClip "cloud" in Frame 41
onClipEvent (load) {
v = 1 + (Math.random() * 5);
_x = (-720 + (Math.random() * 1600));
_y = (-520 + (Math.random() * 1500));
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
onClipEvent (enterFrame) {
_x = (_x + this.v);
if (_x > 1220) {
_x = -720;
_y = (-520 + (Math.random() * 1500));
v = 1 + (Math.random() * 5);
_xscale = (100 * ((Math.random() * 2) + 0.5));
_yscale = (100 * ((Math.random() * 2) + 0.5));
}
}
Instance of Symbol 2089 MovieClip "wmTemple" in Frame 41
onClipEvent (load) {
if (_root.checkFlag("templeVisit")) {
this.gotoAndStop(2);
_root.locs[5][0] = "Temple";
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2097 MovieClip "wmWoods" in Frame 41
onClipEvent (load) {
this.t = Math.random() * 100;
}
onClipEvent (enterFrame) {
if ((_root.hr >= 23) || (_root.hr <= 6)) {
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("wolf", true);
}
this.t = 50 + (Math.random() * 100);
}
}
}
Frame 42
LBX = [185, 345, 169, 345, 343, 500, 145, 500, 122, 500];
LBY = [121, 180, 136, 295, 179, 297, 295, 344, 336, 462];
bEnemyArea = _root.MonkHelped;
eBack = "Woods";
if (Math.random() > 0.5) {
_root.setMonster(1, "Shaolin Cat");
} else {
_root.setMonster(1);
}
_root.setMonster(2, "Shaolin Cat");
if (Math.random() > 0.5) {
_root.setMonster(3, "Shaolin Cat");
} else {
_root.setMonster(3, "Shaolin Cat");
}
_root.playSound("trees", true, 999);
playMusic("");
Instance of Symbol 2105 MovieClip "mcEmot" in Frame 42
onClipEvent (load) {
if (_root.checkFlag("templeVisit")) {
_root.removeMovie(this);
}
}
Instance of Symbol 1992 MovieClip in Frame 42
onClipEvent (load) {
if (!_root.checkFlag("templeVisit")) {
_root.allowKeys = false;
_root.playerCanMove = false;
_root.playerAnimate = false;
var walkTime = 42;
var vy = 0.1;
var fallDist = 298;
_root.Player.player.gotoAndStop(4);
_root.Player.player.anim.play();
}
}
onClipEvent (enterFrame) {
if (!_root.checkFlag("templeVisit")) {
if (walkTime > 10) {
_root.Player._x = _root.Player._x + _root.speed;
walkTime--;
} else if (walkTime > 0) {
_root.mcEmot._x = _root.Player._x + 5;
_root.mcEmot._y = (_root.Player._y - _root.Player._height) + 5;
_root.Player.player.gotoAndStop(3);
_root.Player.player.anim.gotoAndStop(1);
walkTime--;
} else if (_root.Player._y < fallDist) {
_root.mcEmot._visible = false;
vy = vy + 0.4;
_root.Player._y = _root.Player._y + vy;
} else {
_root.setFlag("templeVisit");
_root.playerCanMove = true;
_root.allowKeys = true;
_root.playerAnimate = true;
}
}
}
Instance of Symbol 2106 MovieClip in Frame 42
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, ((-this._width) / 2) + 3, (this._width / 2) - 3, this._height / 10, this._height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2108 MovieClip in Frame 42
onClipEvent (load) {
this.gotoAndStop(1);
var t = (Math.random() * 100);
var tr = 0;
var koObject = (new classes.KamiObject());
koObject.attach(this, 4, 35);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr > 6) && (_root.hr < 20)) {
this.t--;
if (this.t <= 0) {
tr = Math.random();
if (tr < 0.33) {
_root.playSound("bird3", true);
} else if (tr < 0.67) {
_root.playSound("bird2", true);
} else {
_root.playSound("bird1", true);
}
this.t = 50 + (Math.random() * 300);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 42
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("TempleEntry", -348, 376);
}
}
Frame 43
LBX = [-375, 146, 140, 340, 332, 860, 156, 322];
LBY = [322, 438, 322, 362, 322, 438, 128, 500];
bEnemyArea = _root.MonkHelped;
eBack = "Woods";
if (Math.random() > 0.5) {
_root.setMonster(1, "Shaolin Cat");
} else {
_root.setMonster(1);
}
_root.setMonster(2, "Shaolin Cat");
if (Math.random() > 0.5) {
_root.setMonster(3, "Shaolin Cat");
} else {
_root.setMonster(3);
}
_root.playMusic("");
_root.setFlag("templeVisit");
Instance of Symbol 1778 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("TempleInside", 240, 465);
}
}
Instance of Symbol 1838 MovieClip in Frame 43
onClipEvent (load) {
gotoAndStop (1);
var tr = 0;
var t = (Math.random() * 200);
var koObject = (new classes.KamiObject());
koObject.attach(this, -_width, 0, _height / 2, _height);
}
onClipEvent (enterFrame) {
koObject.process(false);
if ((_root.hr > 6) && (_root.hr < 20)) {
this.t--;
if (this.t <= 0) {
tr = Math.random();
if (tr < 0.33) {
_root.playSound("bird3", true);
} else if (tr < 0.67) {
_root.playSound("bird2", true);
} else {
_root.playSound("bird1", true);
}
this.t = 50 + (Math.random() * 300);
}
}
}
Instance of Symbol 2112 MovieClip in Frame 43
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 16.5, 28);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 2118 MovieClip in Frame 43
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) / 2, _width / 2, 0, _height / 2);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 1778 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.worldMap = 5;
_root.warpTo("WorldMap", 420, 48);
}
}
Instance of Symbol 1778 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("TempleFall", 460, 374);
}
}
Frame 44
LBX = [0, 500, 20, 240, 260, 480];
LBY = [90, 500, 80, 90, 80, 90];
bEnemyArea = false;
eBack = "Temple";
_root.setMonster(1, "Shaolin Cat");
_root.setMonster(2);
_root.setMonster(3, "Shaolin Cat");
playMusic("");
Instance of Symbol 1832 MovieClip in Frame 44
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 66, 77);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1832 MovieClip in Frame 44
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 66, 77);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2122 MovieClip in Frame 44
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height - 10, _height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2122 MovieClip in Frame 44
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height - 10, _height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1328 MovieClip "mcCat1" in Frame 44
onClipEvent (load) {
if (_root.MonkHelped) {
_root.removeMovie(this);
}
}
Instance of Symbol 1328 MovieClip "mcCat2" in Frame 44
onClipEvent (load) {
if (_root.MonkHelped) {
_root.removeMovie(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("TempleEntry", 240, 162);
}
}
Instance of Symbol 1767 MovieClip in Frame 44
onClipEvent (load) {
var say;
if (!_root.checkFlag("MonkHelped")) {
_root.setFlag("MonkHelped", (!_root.playerCanMove) && (!_root.allowBattleRun));
}
if (!_root.checkFlag("MonkHelped")) {
this.say = new Array();
this.say[0] = "HELP!";
this.say[1] = "";
} else {
if ((!_root.playerCanMove) && (!_root.allowBattleRun)) {
_root.playerCanMove = true;
_root.allowBattleRun = true;
_root.removeTalk(this);
_root.removeMovie(_root.mcCat1);
_root.removeMovie(_root.mcCat2);
}
this.say = new Array();
if (_root.checkFlag("sakakiExtraPush")) {
this.say[0] = "Did the training paid off?";
} else {
this.say[0] = "Thank you for your help";
this.say[1] = "You know... em... - Sakaki-san, your fighting style reminds me of an old master who lived here";
this.say[2] = "He left, some time ago, to live rest of his life in loneliness... or something.";
this.say[3] = "Thought his old, he may still learn you a few tricks - he settled down just north from here.";
}
}
}
onClipEvent (enterFrame) {
if (_root.playerCanMove || (_root.allowBattleRun)) {
if (!_root.checkFlag("MonkHelped")) {
if (_root.Player._y < 325) {
_root.playerCanMove = false;
if (_root.talk(this) >= 1) {
_root.removeTalk(this);
_root.allowBattleRun = false;
_root.forceFight();
}
} else {
_root.removeTalk(this);
}
} else if (this.hitTest(_root.Player)) {
_root.talk(this);
} else {
_root.mover(this, 20, 20, 0.8);
_root.removeTalk(this);
}
}
}
Frame 45
LBX = [311, 454, 270, 501, 292, 500, 190, 405, 100, 390, 50, 100, 385, 451, 39, 500, 41, 90, 89, 109, 109, 130, 130, 150, 150, 170, 170, 395, 353, 395];
LBY = [185, 245, 206, 260, 196, 284, 249, 304, 294, 399, 294, 321, 370, 500, 398, 500, -51, 14, -50, 1, -65, -15, -80, -30, -95, -45, -110, -68, -180, -68];
bEnemyArea = _root.MonkHelped;
eBack = "Woods";
if (Math.random() > 0.5) {
_root.setMonster(1, "Shaolin Cat");
} else {
_root.setMonster(1);
}
_root.setMonster(2, "Shaolin Cat");
if (Math.random() > 0.5) {
_root.setMonster(3, "Shaolin Cat");
} else {
_root.setMonster(3);
}
playMusic("");
Instance of Symbol 2106 MovieClip in Frame 45
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, ((-this._width) / 2) + 3, (this._width / 2) - 3, 0, this._height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2108 MovieClip in Frame 45
onClipEvent (load) {
this.gotoAndStop(1);
var tr = 0;
var t = (Math.random() * 100);
var koObject = (new classes.KamiObject());
koObject.attach(this, 4, 35);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr > 6) && (_root.hr < 20)) {
this.t--;
if (this.t <= 0) {
tr = Math.random();
if (tr < 0.33) {
_root.playSound("bird3", true);
} else if (tr < 0.67) {
_root.playSound("bird2", true);
} else {
_root.playSound("bird1", true);
}
this.t = 50 + (Math.random() * 300);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("HermitInside", 420, 320);
}
}
Instance of Symbol 1778 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("HermitHouse", 391, 208);
}
}
Instance of Symbol 1778 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("HermitHouse", 66, -7);
}
}
Instance of Symbol 1778 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.worldMap = 6;
_root.warpTo("WorldMap", 251, -139);
}
}
Frame 46
LBX = [60, 140, 140, 150, 150, 460];
LBY = [140, 340, 290, 340, 140, 340];
bEnemyArea = false;
playMusic("");
Instance of Symbol 2130 MovieClip in Frame 46
onClipEvent (load) {
var say = new Array();
if (!_root.checkFlag("MonkHelped")) {
say[0] = "What on old man like me could do for you?";
} else if (!_root.checkFlag("obentoQuest")) {
say[0] = "I already know why are here.\n(bless the wonders of the Internet)";
say[1] = "Yes, I could train you but not for FREE";
say[2] = "You know - man got its desires\nand a fine lady you like should know how to fulfill them.\nI want...";
say[3] = "...";
say[4] = "...\n...";
say[5] = "...\n...\n...";
say[6] = "I want you to make ma a bento (japanese boxed lunch).\nShare a lunch with a schoolgirl would be like a dream come true.";
say[7] = "I leave its content to your taste";
} else if (_root.checkFlag("FollowingChiyoQuest")) {
if (!_root.checkFlag("sakakiExtraPush")) {
say[0] = "Oh! Wonderful!\nAs promised I'll train you...";
say[1] = "aaaaaaaaand...";
say[2] = "Done!";
_root.skil2[2][5] = 1;
say[3] = "You're ready to kick (push?) even more butts!\n(Check out the Sakaki's \"Mana Push\" skill)";
} else {
say[0] = "Leave me alone >=O";
}
} else {
say[0] = "I can see everything @_@\nYou didnt make that bento yet, have ya?";
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (!_root.checkFlag("obentoQuest")) {
if (_root.talk(this) >= 6) {
_root.setFlag("obentoQuest");
}
} else if (_root.checkFlag("FollowingChiyoQuest")) {
if (_root.talk(this) >= 2) {
_root.setFlag("sakakiExtraPush");
}
} else {
_root.talk(this);
}
} else {
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 3;
_root.warpTo("HermitHouse", 302, -88);
}
}
Frame 47
LBX = [15, 500, 155, 261, 262, 500];
LBY = [380, 500, 356, 384, 329, 389];
bEnemyArea = false;
playMusic("");
Instance of Symbol 2133 MovieClip in Frame 47
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2135 MovieClip in Frame 47
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2135 MovieClip in Frame 47
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2137 MovieClip in Frame 47
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2133 MovieClip in Frame 47
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2133 MovieClip in Frame 47
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2133 MovieClip in Frame 47
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2139 MovieClip in Frame 47
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2137 MovieClip in Frame 47
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 1778 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.worldMap = 4;
_root.warpTo("WorldMap", -67, 330);
}
}
Instance of Symbol 2141 MovieClip in Frame 47
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
koObject.onTouch = function () {
_root.SMS("Press SPACE to enter", 40);
};
koObject.onSpace = function () {
_root.warpTo("GraveCrypt", 255, 430);
};
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Frame 48
LBX = [-288, 212, 209, 276, 274, 772];
LBY = [331, 465, 381, 430, 332, 462];
Instance of Symbol 1917 MovieClip in Frame 48
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 48
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 2147 MovieClip in Frame 48
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -3, 3, 68, 73);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2147 MovieClip in Frame 48
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -3, 3, 68, 73);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.worldMap = 3;
_root.warpTo("WorldMap", 125, 385);
}
}
Instance of Symbol 2151 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("startForestTample", 30, 400);
}
}
Frame 49
LBX = [66, 433, 203, 306];
LBY = [315, 460, 217, 321];
bEnemyArea = false;
playMusic("");
Instance of Symbol 2133 MovieClip in Frame 49
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2135 MovieClip in Frame 49
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2135 MovieClip in Frame 49
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2137 MovieClip in Frame 49
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2133 MovieClip in Frame 49
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2133 MovieClip in Frame 49
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2133 MovieClip in Frame 49
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2139 MovieClip in Frame 49
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 2137 MovieClip in Frame 49
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > _root.swidth) {
this._x = -this._width;
}
}
Instance of Symbol 1778 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.Sun = false;
_root.warpTo("Dungeon01", 230, 455);
}
}
Instance of Symbol 1778 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("GraveEntry", 250, 390);
}
}
Frame 50
LBX = [142, 390, 0, 400, 370, 500, 140, 350];
LBY = [0, 170, 150, 450, 170, 450, 400, 500];
bEnemyArea = false;
_root.playSound("trees", true, 999);
playMusic("");
Instance of Symbol 2160 MovieClip in Frame 50
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 10, 65, 75);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2160 MovieClip in Frame 50
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 10, 65, 75);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2160 MovieClip in Frame 50
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 10, 65, 75);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2160 MovieClip in Frame 50
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 10, 65, 75);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2163 MovieClip in Frame 50
onClipEvent (load) {
var called = -1;
var aCho = ["Use the alter", "Don't use it"];
var bChoice = false;
if (!_root.checkFlag("FollowingGuyQuest")) {
this.gotoAndStop(1);
} else if (_root.checkItem("Mystical stone")) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 30, 10, 22.5);
koObject.onTouch = function (mc) {
if (!_root.checkFlag("FollowingGuyQuest")) {
_root.SMS("Some kind of alter... it seems to be missing something", 80);
} else {
mc.gotoAndStop(2);
_root.killItem("Mystical stone");
mc.bChoice = true;
_root.playerCanMove = false;
}
};
}
onClipEvent (enterFrame) {
if (bChoice) {
called = _root.choose(aCho);
if (called == 0) {
_root.playerCanMove = true;
_root.Sun = false;
_root.warpTo("armiHome", 250, 290);
} else if (called != -1) {
bChoice = false;
_root.playerCanMove = true;
}
}
koObject.process();
}
Instance of Symbol 2106 MovieClip in Frame 50
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, ((-this._width) / 2) + 3, (this._width / 2) - 3, this._height / 10, this._height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2108 MovieClip in Frame 50
onClipEvent (load) {
this.gotoAndStop(1);
var tr = 0;
var t = (Math.random() * 100);
var koObject = (new classes.KamiObject());
koObject.attach(this, 4, 35);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr > 6) && (_root.hr < 20)) {
this.t--;
if (this.t <= 0) {
tr = Math.random();
if (tr < 0.33) {
_root.playSound("bird3", true);
} else if (tr < 0.67) {
_root.playSound("bird2", true);
} else {
_root.playSound("bird1", true);
}
this.t = 50 + (Math.random() * 300);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.worldMap = 3;
_root.warpTo("WorldMap", 148, -62);
}
}
Instance of Symbol 1778 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.worldMap = 3;
_root.warpTo("WorldMap", 148, -62);
}
}
Instance of Symbol 1778 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.worldMap = 3;
_root.warpTo("WorldMap", 148, -62);
}
}
Instance of Symbol 1778 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.worldMap = 3;
_root.warpTo("WorldMap", 148, -62);
}
}
Frame 51
LBX = [0, 270, 150, 270, 150, 488, 360, 500, 360, 780, 590, 800, 736, 810];
LBY = [320, 410, 120, 410, 120, 230, 120, 500, 355, 500, 128, 420, 110, 285];
bEnemyArea = true;
eBack = "Woods";
_root.setMonster(1, "Predator Cat");
_root.setMonster(2, "Predator Cat");
_root.setMonster(3, "Predator Cat");
_root.playSound("trees", true, 999);
playMusic("");
Instance of Symbol 2112 MovieClip in Frame 51
onClipEvent (load) {
this.gotoAndStop(1);
var tr = 0;
var t = (Math.random() * 200);
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 16.5, 28);
}
onClipEvent (enterFrame) {
koObject.process();
if ((_root.hr > 6) && (_root.hr < 20)) {
this.t--;
if (this.t <= 0) {
tr = Math.random();
if (tr < 0.33) {
_root.playSound("bird3", true);
} else if (tr < 0.67) {
_root.playSound("bird2", true);
} else {
_root.playSound("bird1", true);
}
this.t = 50 + (Math.random() * 300);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("CaveEntry", 50, 360);
}
}
Instance of Symbol 1778 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.worldMap = 1;
_root.warpTo("WorldMap", 148, -62);
}
}
Frame 52
LBX = [58.5, 164.8, 58.5, 439.5, -145.6, 164.5, 332.5, 439.55, 332.5, 851.6, 842.35, 1160.05, 192.9, 276.15];
LBY = [40.7, 330.75, 326.8, 459.85, -223.4, 40.65, 84.35, 330.1, -24.3, 90.25, -92.95, 215.7, 456.85, 500.55];
bEnemyArea = false;
eBack = "Dungeon";
playMusic("Diablo - Dungeon");
Instance of Symbol 2169 MovieClip in Frame 52
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, this._height - 6, this._height);
this.gotoAndStop(1);
var say = new Array();
say.push("There\u2019s something written here...");
say.push("\"A tragedy struck.\nFamily knocks on the heavens door...\"");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.talk(this);
} else {
_root.removeTalk(this);
}
koObject.process();
}
Instance of Symbol 2171 MovieClip in Frame 52
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
if (!_root.checkFlag("DungeonMana")) {
_root.SMS("Nice! A pair of Mana Potions!", 60);
_root.setFlag("DungeonMana", true);
_root.addMana(1, 2);
} else {
_root.SMS("No second bottom.", 30);
}
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2171 MovieClip in Frame 52
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
_root.SMS("Ewww... you dont want to know.", 40);
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2174 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 15);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2177 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 5, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 5, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 5, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 5, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2177 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -_width, 0);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2174 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 15);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2177 MovieClip in Frame 52
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2171 MovieClip in Frame 52
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
if (!_root.checkFlag("DungeonHealing")) {
_root.SMS("Lucky! Two big potions of healing!", 50);
_root.setFlag("DungeonHealing", true);
_root.addHeal(1, 2);
} else {
_root.SMS("Empty. What did you expected?", 50);
}
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2171 MovieClip in Frame 52
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
_root.SMS("As empty as it can be.", 40);
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("Dungeon02", 265, 180);
}
}
Instance of Symbol 1778 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.Sun = true;
_root.warpTo("GraveCrypt", 255, 245);
}
}
Frame 53
LBX = [84, 356, 350, 500, 0, 500];
LBY = [250, 298, 255, 298, 284, 500];
bEnemyArea = true;
eBack = "Woods";
if (Math.random() > 0.5) {
_root.setMonster(1, "Assasin Cat");
} else {
_root.setMonster(1, "Predator Cat");
}
_root.setMonster(2, "Assasin Cat");
if (Math.random() > 0.5) {
_root.setMonster(3, "Assasin Cat");
} else {
_root.setMonster(3, "Predator Cat");
}
playMusic("");
Instance of Symbol 2108 MovieClip in Frame 53
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 4, 35);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2192 MovieClip in Frame 53
onClipEvent (load) {
var say = new Array();
say[0] = "If you lose an item needed for a quest, you can usually get it back where you found it.";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.talk(this);
} else {
_root.mover(this, 20, 20, 0.8);
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 53
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 3;
_root.Sun = false;
_root.warpTo("LightQuest", _root.Player._x, 462);
}
}
Instance of Symbol 1778 MovieClip in Frame 53
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("OutsideWoods", 765, 145);
}
}
Frame 54
LBX = [62, 405];
LBY = [160, 492];
bEnemyArea = false;
playMusic("");
Instance of Symbol 2196 MovieClip "ray3" in Frame 54
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 2196 MovieClip "ray2" in Frame 54
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 2196 MovieClip "ray1" in Frame 54
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 2207 MovieClip in Frame 54
onClipEvent (load) {
var say = new Array();
say[0] = "Welcome bright one, I am guardian of underground passage.\nDo you wish to pass?\n(press SPACE to go in)";
say[1] = "";
if (_root.checkFlag("openCave")) {
this.gotoAndStop(10);
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((((_root.pil1.c.getRGB() + _root.pil2.c.getRGB()) + _root.pil3.c.getRGB()) == 16777215) && (!_root.checkFlag("openCave"))) {
_visible = true;
this.play();
_root.ray1._visible = false;
_root.ray2._visible = false;
_root.ray3._visible = false;
_root.pil1.onEnterFrame = null;
_root.pil1.gotoAndStop(1);
_root.pil2.onEnterFrame = null;
_root.pil2.gotoAndStop(1);
_root.pil3.onEnterFrame = null;
_root.pil3.gotoAndStop(1);
_root.setFlag("openCave");
}
if (this.hitTest(_root.Player)) {
_root.talk(this);
if (Key.isDown(32)) {
_root.removeTalk(this);
_root.scrollEffect = 0;
_root.blackMap = true;
_root.warpTo("DarkCave1", 69, 382);
}
} else {
_root.removeTalk(this);
}
}
Instance of Symbol 2212 MovieClip "pil2" in Frame 54
onClipEvent (load) {
var aLens = new Array();
var sLens = -1;
var bTake = false;
var bTouch = false;
var i = 0;
if (_root.checkVar("lensPrism3") != null) {
this.gotoAndStop(_root.checkVar("lensPrism3"));
} else {
this.gotoAndStop(1);
}
var koObject = (new classes.KamiObject());
koObject.attach(this, -11, 11, -9, 14, -7);
koObject.onSpace = function (mc) {
if (!_root.checkFlag("openCave")) {
switch (mc._currentframe) {
case 2 :
_root.giveItem("Red Lens", 3);
_root.setVar("lensPrism3", 1);
break;
case 3 :
_root.giveItem("Green Lens", 4);
_root.setVar("lensPrism3", 1);
break;
case 4 :
_root.giveItem("Blue Lens", 5);
_root.setVar("lensPrism3", 1);
}
mc.gotoAndStop(1);
}
};
koObject.onTouch = function (mc) {
if (!_root.checkFlag("openCave")) {
if ((mc._currentframe == 1) && (!mc.bTouch)) {
mc.aLens = new Array();
mc.i = 0;
if (_root.checkItem("Red Lens")) {
mc.aLens[mc.i] = "Red Lens";
mc.i++;
}
if (_root.checkItem("Green Lens")) {
mc.aLens[mc.i] = "Green Lens";
mc.i++;
}
if (_root.checkItem("Blue Lens")) {
mc.aLens[mc.i] = "Blue Lens";
mc.i++;
}
mc.bTake = true;
mc.bTouch = true;
} else {
_root.SMS("Press SPACE to take the lens", 60);
}
}
};
}
onClipEvent (enterFrame) {
koObject.process();
if (!_root.checkFlag("openCave")) {
if (bTouch) {
if (!this.hitTest(_root.Player)) {
this.bTouch = false;
}
}
if (bTake && (aLens.length > 0)) {
sLens = _root.choose(aLens);
if (sLens > -1) {
if (_root.sChooseItem == "Red Lens") {
this.gotoAndStop(2);
_root.killItem("Red Lens");
_root.setVar("lensPrism3", 2);
} else if (_root.sChooseItem == "Green Lens") {
this.gotoAndStop(3);
_root.killItem("Green Lens");
_root.setVar("lensPrism3", 3);
} else if (_root.sChooseItem == "Blue Lens") {
this.gotoAndStop(4);
_root.killItem("Blue Lens");
_root.setVar("lensPrism3", 4);
}
bTake = false;
}
}
if ((this._currentframe == 2) || (this._currentframe == 4)) {
_root.ray3._visible = true;
c = new Color(_root.ray3);
if (this._currentframe == 2) {
c.setRGB(16711680);
} else {
c.setRGB(255);
}
} else {
_root.ray3._visible = false;
}
}
}
Instance of Symbol 2212 MovieClip "pil1" in Frame 54
onClipEvent (load) {
var aLens = new Array();
var sLens = -1;
var bTake = false;
var bTouch = false;
var i = 0;
if (_root.checkVar("lensPrism1") != null) {
this.gotoAndStop(_root.checkVar("lensPrism1"));
} else {
this.gotoAndStop(1);
}
var koObject = (new classes.KamiObject());
koObject.attach(this, -11, 11, -9, 14, -7);
koObject.onSpace = function (mc) {
if (!_root.checkFlag("openCave")) {
switch (mc._currentframe) {
case 2 :
_root.giveItem("Red Lens", 3);
_root.setVar("lensPrism1", 1);
break;
case 3 :
_root.giveItem("Green Lens", 4);
_root.setVar("lensPrism1", 1);
break;
case 4 :
_root.giveItem("Blue Lens", 5);
_root.setVar("lensPrism1", 1);
}
mc.gotoAndStop(1);
}
};
koObject.onTouch = function (mc) {
if (!_root.checkFlag("openCave")) {
if ((mc._currentframe == 1) && (!mc.bTouch)) {
mc.aLens = new Array();
mc.i = 0;
if (_root.checkItem("Red Lens")) {
mc.aLens[mc.i] = "Red Lens";
mc.i++;
}
if (_root.checkItem("Green Lens")) {
mc.aLens[mc.i] = "Green Lens";
mc.i++;
}
if (_root.checkItem("Blue Lens")) {
mc.aLens[mc.i] = "Blue Lens";
mc.i++;
}
mc.bTake = true;
mc.bTouch = true;
} else {
_root.SMS("Press SPACE to take the lens", 60);
}
}
};
}
onClipEvent (enterFrame) {
koObject.process();
if (!_root.checkFlag("openCave")) {
if (bTouch) {
if (!this.hitTest(_root.Player)) {
this.bTouch = false;
}
}
if (bTake && (aLens.length > 0)) {
sLens = _root.choose(aLens);
if (sLens > -1) {
if (_root.sChooseItem == "Red Lens") {
this.gotoAndStop(2);
_root.killItem("Red Lens");
_root.setVar("lensPrism1", 2);
} else if (_root.sChooseItem == "Green Lens") {
this.gotoAndStop(3);
_root.killItem("Green Lens");
_root.setVar("lensPrism1", 3);
} else if (_root.sChooseItem == "Blue Lens") {
this.gotoAndStop(4);
_root.killItem("Blue Lens");
_root.setVar("lensPrism1", 4);
}
bTake = false;
}
}
if (this._currentframe > 2) {
_root.ray2._visible = true;
c = new Color(_root.ray2);
if (this._currentframe == 3) {
c.setRGB(65280);
} else {
c.setRGB(255);
}
} else {
_root.ray2._visible = false;
}
}
}
Instance of Symbol 2212 MovieClip "pil3" in Frame 54
onClipEvent (load) {
var aLens = new Array();
var sLens = -1;
var bTake = false;
var bTouch = false;
var i = 0;
if (_root.checkVar("lensPrism2") != null) {
this.gotoAndStop(_root.checkVar("lensPrism2"));
} else {
this.gotoAndStop(1);
}
var koObject = (new classes.KamiObject());
koObject.attach(this, -11, 11, -9, 14, -7);
koObject.onSpace = function (mc) {
if (!_root.checkFlag("openCave")) {
switch (mc._currentframe) {
case 2 :
_root.giveItem("Red Lens", 3);
_root.setVar("lensPrism2", 1);
break;
case 3 :
_root.giveItem("Green Lens", 4);
_root.setVar("lensPrism2", 1);
break;
case 4 :
_root.giveItem("Blue Lens", 5);
_root.setVar("lensPrism2", 1);
}
mc.gotoAndStop(1);
}
};
koObject.onTouch = function (mc) {
if (!_root.checkFlag("openCave")) {
if ((mc._currentframe == 1) && (!mc.bTouch)) {
mc.aLens = new Array();
mc.i = 0;
if (_root.checkItem("Red Lens")) {
mc.aLens[mc.i] = "Red Lens";
mc.i++;
}
if (_root.checkItem("Green Lens")) {
mc.aLens[mc.i] = "Green Lens";
mc.i++;
}
if (_root.checkItem("Blue Lens")) {
mc.aLens[mc.i] = "Blue Lens";
mc.i++;
}
mc.bTake = true;
mc.bTouch = true;
} else {
_root.SMS("Press SPACE to take the lens", 60);
}
}
};
}
onClipEvent (enterFrame) {
koObject.process();
if (!_root.checkFlag("openCave")) {
if (bTouch) {
if (!this.hitTest(_root.Player)) {
this.bTouch = false;
}
}
if (bTake && (aLens.length > 0)) {
sLens = _root.choose(aLens);
if (sLens > -1) {
if (_root.sChooseItem == "Red Lens") {
this.gotoAndStop(2);
_root.killItem("Red Lens");
_root.setVar("lensPrism2", 2);
} else if (_root.sChooseItem == "Green Lens") {
this.gotoAndStop(3);
_root.killItem("Green Lens");
_root.setVar("lensPrism2", 3);
} else if (_root.sChooseItem == "Blue Lens") {
this.gotoAndStop(4);
_root.killItem("Blue Lens");
_root.setVar("lensPrism2", 4);
}
bTake = false;
}
}
if ((this._currentframe == 2) || (this._currentframe == 3)) {
_root.ray1._visible = true;
c = new Color(_root.ray1);
if (this._currentframe == 2) {
c.setRGB(16711680);
} else {
c.setRGB(65280);
}
} else {
_root.ray1._visible = false;
}
}
}
Instance of Symbol 1778 MovieClip in Frame 54
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.Sun = true;
_root.warpTo("CaveEntry", _root.Player._x, 298);
}
}
Frame 55
LBX = [91.5, 430.25, 215.5, 315.4, 426, 502.55, 500.6, 781.45, 777.5, 820.7, 819.25, 1041.5, 580.65, 711.75, 415.75, 793.15];
LBY = [228.5, 446.35, 141.45, 234.05, 358.7, 444.75, 321.45, 443.7, 350.7, 443.5, 216.3, 663.45, 440.7, 492.4, 490.25, 654.7];
bEnemyArea = false;
playMusic("Diablo - Dungeon");
Instance of Symbol 2169 MovieClip in Frame 55
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, this._height - 6, this._height);
this.gotoAndStop(1);
var say = new Array();
say.push("\"... Father was last to welcome death...\"");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.talk(this);
} else {
_root.removeTalk(this);
}
koObject.process();
}
Instance of Symbol 2171 MovieClip in Frame 55
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
_root.SMS(".ytpmE", 30);
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2171 MovieClip in Frame 55
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
_root.SMS("Whats with all those barrels anyway? Empty.", 60);
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2171 MovieClip in Frame 55
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
_root.SMS("My name is Barrel. Empty Barrel.", 60);
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2216 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (-_width) + 10, 10);
koObject.onSpace = function (mc) {
_root.SMS("No, seriously, I won't.", 40);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2216 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -10, _width - 10);
koObject.onSpace = function (mc) {
_root.SMS("A sarcophagus... I wont look inside.", 50);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2218 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 20, _width - 20, (_height / 2) + 10);
koObject.onSpace = function (mc) {
_root.SMS("Weird place for a torch IMO.", 50);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2177 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2174 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 15);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2177 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -_width, 0);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2177 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2177 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2224 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0, _height - 50);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2224 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0, _height - 50);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 55
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.blackMap = true;
_root.warpTo("Dungeon03", 425, 275);
}
}
Instance of Symbol 1778 MovieClip in Frame 55
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("Dungeon01", 980, 107);
}
}
Frame 56
LBX = [40, 108, 40, 494];
LBY = [144, 461, 144, 186];
bEnemyArea = true;
eBack = "Caves";
_root.setMonster(1, "Shadow Cat");
_root.setMonster(2);
_root.setMonster(3, "Shadow Cat");
playMusic("");
Instance of Symbol 2196 MovieClip in Frame 56
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.SMS("Press SPACE to return", 3);
if (Key.isDown(32)) {
_root.scrollEffect = 3;
_root.blackMap = false;
_root.warpTo("LightQuest", 243, 312);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 56
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("DarkCave2", 31, 196);
}
}
Frame 57
LBX = [-603.8, -331.25, -335.85, -168.75, -173.5, -126.1, -135, -93.45, -107.9, 21, -105.7, 313.05, -115.6, 309.45, 66.45, 419.2, 144.5, 229.15, 406.6, 511.6, 144.5, 229.15];
LBY = [89.9, 328.95, 225.5, 311.55, 175.95, 328.55, 132.4, 346.35, 94.75, 440, 29.75, 108.45, 424.8, 503.5, 144.75, 388.65, 380.75, 429.55, 224.75, 310.65, 100.75, 150.55];
bEnemyArea = true;
_root.setMonster(1);
_root.setMonster(2, "Undead Cat");
_root.setMonster(3);
_root.playSound("dungeon", false, 999);
playMusic("Diablo - Dungeon");
Instance of Symbol 2169 MovieClip in Frame 57
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, this._height - 6, this._height);
this.gotoAndStop(1);
var say = new Array();
say.push("\"... Son come just after Mother...\"");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.talk(this);
} else {
_root.removeTalk(this);
}
koObject.process();
}
Instance of Symbol 2224 MovieClip in Frame 57
onClipEvent (load) {
this.gotoAndStop(4);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0, _height - 5);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2224 MovieClip in Frame 57
onClipEvent (load) {
this.gotoAndStop(3);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0, _height - 5);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2177 MovieClip in Frame 57
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2174 MovieClip in Frame 57
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 15);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2177 MovieClip in Frame 57
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, -_width, 0);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 57
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 57
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2171 MovieClip in Frame 57
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
_root.SMS("WOW. IT IS FULL OF ... air.", 50);
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2177 MovieClip in Frame 57
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2224 MovieClip in Frame 57
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0, _height - 5);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2224 MovieClip in Frame 57
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0, _height - 5);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 57
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("Dungeon04", 260, 320);
}
}
Instance of Symbol 1778 MovieClip in Frame 57
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.blackMap = false;
_root.warpTo("Dungeon02", 575, 575);
}
}
Frame 58
LBX = [-8, 59, 57, 143, 132, 411, 409, 507];
LBY = [147, 198, 136, 255, 94, 260, 208, 291];
bEnemyArea = true;
eBack = "Caves";
_root.setMonster(1, "Shadow Cat");
_root.setMonster(2, "Shadow Cat Killer");
_root.setMonster(3, "Shadow Cat");
playMusic("");
Instance of Symbol 2236 MovieClip in Frame 58
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (!_root.checkFlag("KamiJrWin")) {
_root.SMS("Those doors seem to be shut for ages", 5);
} else {
_root.killItem("Cave Key");
_root.scrollEffect = 3;
_root.blackMap = false;
_root.warpTo("FinalCave", 200, 460);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 58
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("DarkCave3", 40, 340);
}
}
Instance of Symbol 1778 MovieClip in Frame 58
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("DarkCave1", 464, 182);
}
}
Frame 59
LBX = [-179, 72, 0, 70, 430, 500, 432, 679, 176, 350, 135, 386, 210, 299, -1, 180, 180, 350, 180, 350, 350, 500, 214, 310];
LBY = [2, 111, 107, 150, 106, 149, 12, 111, 391, 522, 513, 692, 684, 822, 142, 417, 142, 180, 307, 417, 142, 417, 279, 310];
bEnemyArea = true;
if (Math.random() > 0.5) {
_root.setMonster(1, "Undead Cat");
_root.setMonster(2, "Undead Cat");
_root.setMonster(3, "Undead Cat");
} else {
_root.setMonster(3, "Undead Cat");
_root.setMonster(2, "Undead Cat Leader");
_root.setMonster(1, "Undead Cat");
}
playMusic("Diablo - Dungeon");
Instance of Symbol 2169 MovieClip in Frame 59
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, this._height - 6, this._height);
this.gotoAndStop(1);
var say = new Array();
say.push("\"... Daughter come just befor Father...\"");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.talk(this);
} else {
_root.removeTalk(this);
}
koObject.process();
}
Instance of Symbol 2240 MovieClip in Frame 59
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, 10, (this._height / 2) + 5, (this._height / 2) - 5);
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2242 MovieClip "DungeonDoor01" in Frame 59
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -20, this._width + 20, 0, 50);
if (!_root.checkFlag("DungeonBox01")) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.checkFlag("DungeonBox01")) {
koObject.process();
}
}
Instance of Symbol 2171 MovieClip in Frame 59
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
_root.SMS("I think I just discovered a bunch of new mushrooms species.", 70);
};
koOBject.onTouch = function (mc) {
if (_root.checkFlag("DungeonHealing") && (_root.checkFlag("DungeonMana"))) {
_root.SMS("It is empty, move along.", 40);
}
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 59
onClipEvent (load) {
this.gotoAndStop(2);
var t = (50 + (Math.random() * 100));
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("drip", true);
}
this.t = 50 + (Math.random() * 300);
}
}
Instance of Symbol 2180 MovieClip in Frame 59
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("Dungeon05", 350, 245);
}
}
Instance of Symbol 2245 MovieClip "DragBox01" in Frame 59
onClipEvent (load) {
this.gotoAndStop(1);
var say;
if ((!_root.checkFlag("DungeonBox01")) && (_root.Follower._name != "DragBox01")) {
this.say = new Array();
this.say.push("Dunno...\nAn ancient chair?\nSeems like it have been moved recently.");
this.say.push("I'll take it with me.");
this.say.push("");
} else {
_root.removeMovie(this);
}
}
onClipEvent (enterFrame) {
if (!this.isFollowing) {
if (this.hitTest(_root.Player)) {
if (_root.talk(this) >= 2) {
_root.addFollower(this);
_root.removeTalk(this);
}
} else {
_root.removeTalk(this);
}
}
}
Instance of Symbol 1778 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("Dungeon03", -430, 180);
}
}
Instance of Symbol 2251 MovieClip in Frame 59
onClipEvent (load) {
var koObject = (new classes.KamiObject());
if (!_root.checkFlag("DungeonBox01")) {
this.gotoAndStop(1);
} else {
this.koObject.attach(this, 0, this._width, 0, this._height);
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (!_root.checkFlag("DungeonBox01")) {
if (this.hitTest(_root.Player._x, _root.Player._y, false)) {
_root.DungeonDoor01.gotoAndStop(2);
if (_root.Follower._name == "DragBox01") {
this.gotoAndStop(3);
_root.setFlag("DungeonBox01");
_root.removeFollower();
this.koObject.attach(this, 0, this._width, 0, this._height);
_root.setPlayerPos(253, 626);
} else {
this.gotoAndStop(2);
}
} else {
_root.DungeonDoor01.gotoAndStop(1);
this.gotoAndStop(1);
}
} else {
koObject.process();
}
}
Frame 60
LBX = [168, 264];
LBY = [-45, 540];
bEnemyArea = false;
eBack = "FinalFight";
_root.setMonster(1);
_root.setMonster(2, "Kamineko");
_root.setMonster(3);
_root.aMonSummons.push(new Array(aMonsDB[6][1], aMonsDB[6][2], aMonsDB[6][3]));
_root.aMonSummons.push(new Array(aMonsDB[8][1], aMonsDB[8][2], aMonsDB[8][3]));
_root.aMonSummons.push(new Array(aMonsDB[9][1], aMonsDB[9][2], aMonsDB[9][3]));
_root.aMonSummons.push(new Array(aMonsDB[1][1], aMonsDB[1][2], aMonsDB[1][3]));
playMusic("");
Instance of Symbol 2257 MovieClip in Frame 60
onClipEvent (load) {
var vy = 0;
var to = (Math.random() * 30);
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.to > 0) {
this.to--;
} else {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this._x = (Math.random() * 50) + 80;
this._y = (Math.random() * 40) + 270;
this.vy = 0;
this.to = Math.random() * 30;
this.gotoAndStop(1);
} else {
this.vy = this.vy + 1;
}
this._y = this._y - this.vy;
}
}
Instance of Symbol 2257 MovieClip in Frame 60
onClipEvent (load) {
var vy = 0;
var to = (Math.random() * 30);
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.to > 0) {
this.to--;
} else {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this._x = (Math.random() * 50) + 80;
this._y = (Math.random() * 40) + 270;
this.vy = 0;
this.to = Math.random() * 30;
this.gotoAndStop(1);
} else {
this.vy = this.vy + 1;
}
this._y = this._y - this.vy;
}
}
Instance of Symbol 2257 MovieClip in Frame 60
onClipEvent (load) {
var vy = 0;
var to = (Math.random() * 30);
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.to > 0) {
this.to--;
} else {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this._x = (Math.random() * 100) + 300;
this._y = (Math.random() * 70) + 280;
this.vy = 0;
this.to = Math.random() * 30;
this.gotoAndStop(1);
} else {
this.vy = this.vy + 1;
}
this._y = this._y - this.vy;
}
}
Instance of Symbol 2257 MovieClip in Frame 60
onClipEvent (load) {
var vy = 0;
var to = (Math.random() * 30);
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.to > 0) {
this.to--;
} else {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this._x = (Math.random() * 100) + 300;
this._y = (Math.random() * 70) + 280;
this.vy = 0;
this.to = Math.random() * 30;
this.gotoAndStop(1);
} else {
this.vy = this.vy + 1;
}
this._y = this._y - this.vy;
}
}
Instance of Symbol 2257 MovieClip in Frame 60
onClipEvent (load) {
var vy = 0;
var to = (Math.random() * 30);
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.to > 0) {
this.to--;
} else {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this._x = (Math.random() * 100) + 300;
this._y = (Math.random() * 70) + 280;
this.vy = 0;
this.to = Math.random() * 30;
this.gotoAndStop(1);
} else {
this.vy = this.vy + 1;
}
this._y = this._y - this.vy;
}
}
Instance of Symbol 2257 MovieClip in Frame 60
onClipEvent (load) {
var vy = 0;
var to = (Math.random() * 30);
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.to > 0) {
this.to--;
} else {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this._x = (Math.random() * 100) + 300;
this._y = (Math.random() * 70) + 280;
this.vy = 0;
this.to = Math.random() * 30;
this.gotoAndStop(1);
} else {
this.vy = this.vy + 1;
}
this._y = this._y - this.vy;
}
}
Instance of Symbol 2187 MovieClip in Frame 60
onClipEvent (load) {
this.gotoAndPlay(random(9) + 1);
}
Instance of Symbol 2260 MovieClip in Frame 60
onClipEvent (load) {
var say;
_root.setFlag("KaminekoEnd", (!_root.playerCanMove) && (!_root.allowBattleRun));
if (!_root.checkFlag("KaminekoEnd")) {
this.say = new Array();
this.say.push("Well, well, well... look who we got here! But you're far too late! Soon my army will take over the city! No one can stop me!");
this.say.push("Not only that, every cat in every back ally already knows about my plan and will aid me in our quest to wipe out those foolish beings know as \"Humans\"!");
this.say.push("But enough with the talk! I got my food just now and it gets cold here pretty fast...");
this.say.push("");
} else {
_root._x = 0;
_root._y = 0;
_root.Inter._x = 0;
_root.Inter._y = 0;
_root.playerCanMove = false;
_root.scrollEffect = 0;
_root.displayStatus(false);
_root.displayItems(false);
_root.displayEquip(false);
_root.displayIcons(false);
_root.displayPlaylist(false);
_root.displayPlayer(false);
_root.displayPotions(false);
_root.displayCashIcon(false);
_root.displayFightIcon(false);
_root.enableCheating(false);
_root.setTimeFlow(false);
_root.removeTalk(this);
_root.allowKeys = false;
_root.gotoAndStop("TheEnd");
}
}
onClipEvent (enterFrame) {
if (_root.playerCanMove || (_root.allowBattleRun)) {
if (!_root.checkFlag("KaminekoEnd")) {
if (_root.Player._y < -40) {
_root.playerCanMove = false;
if (_root.talk(this) >= 3) {
_root.chooseBattleSong = false;
_root.noMusicFade = true;
_root.musVol = 100;
_root.playMusic("Beyond Good & Evil");
_root.removeTalk(this);
_root.allowBattleRun = false;
_root.forceFight();
_root.removeMovie(this);
}
} else {
_root.removeTalk(this);
}
}
} else {
_root.removeTalk(this);
_root.removeMovie(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.blackMap = true;
_root.warpTo("DarkCave2", 275, 150);
}
}
Frame 61
LBX = [-525, -437, -446, -192, -202, -35, -61, 10, -59, 58, -61, 55, 0, 355, 297, 481, 293, 477, 346, 375];
LBY = [140, 341, 102, 382, 142, 348, 107, 393, 46, 111, 383, 461, 143, 349, 145, 189, 298, 349, 216, 270];
bEnemyArea = false;
_root.setMonster(1, "Undead Cat");
_root.setMonster(2, "Undead Cat Leader");
_root.setMonster(3, "Undead Cat");
playMusic("Diablo - Dungeon");
Instance of Symbol 2273 MovieClip "mcMillion" in Frame 61
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 2276 MovieClip "DungeonDoor02" in Frame 61
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, 30, 0, this._height);
if (!_root.checkFlag("dungeonFinalDoor")) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (!_root.checkFlag("dungeonFinalDoor")) {
koObject.process(false);
}
}
Instance of Symbol 2169 MovieClip "mcMillionStart" in Frame 61
onClipEvent (load) {
var nOldMusicVol = 0;
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, this._height - 6, this._height);
koObject.onSpace = function (mc) {
if (!_root.checkFlag("dungeonFinalDoor")) {
_root.displayPlayer(false);
_root.displayPotions(false);
_root.displayCash(false);
_root.displayStatus(false);
_root.displayItems(false);
_root.displayPlaylist(false);
_root.displayEquip(false);
_root.mcMillion._x = -_root._x;
_root.mcMillion._y = (-_root._y) + 300;
_root.mcMillion._visible = true;
_root.noMusicFade = true;
mc.nOldMusicVol = _root.musVol;
_root.setMusicVolume(100);
_root.playMusic("Millionaire - Question");
_root.playSound("million");
} else {
_root.SMS("\"You have already proven yourself\"", 60);
}
};
koObject.onTouch = function (mc) {
if (!_root.checkFlag("dungeonFinalDoor")) {
_root.SMS("A question and four answers are written here...", 60);
}
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2171 MovieClip in Frame 61
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
if (!_root.checkFlag("foundFirstStone")) {
_root.SMS("There IS something in here! ... Some gem I guess.", 60);
_root.readDBItem("Power Stone");
_root.setFlag("foundFirstStone");
} else {
_root.SMS("Hey! Another gem!... NOT", 50);
}
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2171 MovieClip in Frame 61
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, -5, this._width + 5, (this._height / 2) + 10, this._height);
koObject.onSpace = function (mc) {
_root.SMS("Actually, it is just a painting on the wall", 60);
};
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 61
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2180 MovieClip in Frame 61
onClipEvent (load) {
this.gotoAndStop(2);
var t = (50 + (Math.random() * 300));
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 10, 40);
}
onClipEvent (enterFrame) {
koObject.process();
this.t--;
if (this.t <= 0) {
if (Math.random() > 0.5) {
_root.playSound("drip", true);
}
this.t = 100 + (Math.random() * 500);
}
}
Instance of Symbol 2224 MovieClip in Frame 61
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0, _height - 5);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2224 MovieClip in Frame 61
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0, _height - 5);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2224 MovieClip in Frame 61
onClipEvent (load) {
this.gotoAndStop(2);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 0, 0, 0, _height - 5);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.blackMap = false;
_root.warpTo("DungeonFinal", 240, 470);
}
}
Instance of Symbol 1778 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("Dungeon04", 225, 725);
}
}
Frame 62
LBX = [0, 312, 312, 500, 380, 500, 390, 500, 400, 500, 410, 500];
LBY = [337, 500, 377, 500, 360, 377, 358, 360, 353, 358, 350, 353];
bEnemyArea = false;
_root.playSound("wind", true, 999);
_root.playMusic("");
Instance of Symbol 2281 MovieClip in Frame 62
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2283 MovieClip in Frame 62
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, this._width, 0, this._height, this._height - 10);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2106 MovieClip in Frame 62
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, ((-this._width) / 2) + 3, (this._width / 2) - 3, this._height / 10, this._height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2287 MovieClip in Frame 62
onClipEvent (load) {
var say = new Array();
if (_root.checkFlag("ArmisaelJoined")) {
_root.removeMovie(this);
}
say[0] = "My sisters was kidnapped by one of those cats...\nI see you got something agains them too...\nLet me join you.";
say[1] = "Armisael joins the party!";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (_root.talk(this) > 0) {
_root.setFlag("ArmisaelJoined");
_root.joinDBPlayer("Armisael");
_root.removeTalk(this);
_root.removeMovie(this);
}
} else {
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 62
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.playSound("wind", false, -1);
_root.scrollEffect = 1;
_root.worldMap = 2;
_root.warpTo("WorldMap", 539, 367);
}
}
Frame 63
LBX = [224, 260, 184, 301, 209, 266, 186, 285, 151, 335, 318, 411, 91, 177];
LBY = [91, 114, 110, 211, 206, 325, 317, 392, 388, 503, 441, 505, 461, 505];
bEnemyArea = false;
playMusic("Diablo - Dungeon");
Instance of Symbol 2292 MovieClip in Frame 63
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.onSpace = function () {
_root.SMS("Seems like someone took something from here recently", 70);
};
koObject.attach(this, null, null, this._height - 10);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2294 MovieClip in Frame 63
onClipEvent (load) {
var say = new Array();
say.push("A dark pit.\nYou dont see the bottom.");
say.push("Do you want to jump?");
say.push("");
var talkID = 0;
var called = -1;
var choos = ["FOR FAME AND GLOOOOORY! *jumps*", "What?! No!"];
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player._x, _root.Player._y, false)) {
this.talkID = _root.talk(this);
if (this.talkID > 3) {
if (_root.mcForFade.onEnterFrame == null) {
var i = 1;
while (i <= _root.playersCount) {
if (_root.aPlayerTeam[i][0] != null) {
_root.aPlayerTeam[i][0][5] = 1;
_root.aPlayerTeam[i][0][7] = 1;
}
i++;
}
_root.displayPlayer(true);
_root.warpTo(_root.deadFrame, 250, 250);
}
} else if (this.talkID > 0) {
if (this.called == 0) {
this.say[2] = "LOL. You died!";
this.say[3] = "Who the hell jumps in to a dark pit?";
this.say[4] = "";
_root.talkRefresh();
} else if (this.called == 1) {
this.say[2] = "Wise choice!";
this.say[3] = null;
this.say[4] = null;
_root.talkRefresh();
} else {
this.called = _root.choose(this.choos);
if (this.called == 0) {
_root.setRandomFact(4);
_root.fade(0, 1, 10, function () {
_root.displayPlayer(false);
});
}
}
}
} else {
this.called = -1;
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 63
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.blackMap = true;
_root.warpTo("Dungeon05", -500, 245);
}
}
Frame 64
LBX = [-2, 120, 100, 160, 155, 446];
LBY = [280, 350, 292, 344, 278, 408];
bEnemyArea = false;
_root.setMonster(1, "Shadow Cat Killer");
_root.setMonster(2, "Shadow Cat Killer");
_root.setMonster(3, "Shadow Cat Killer");
playMusic("");
Instance of Symbol 2299 MovieClip in Frame 64
onClipEvent (load) {
var called = -1;
var choos = ["Maia", "Naja", "Maya", "Naya"];
var say = new Array();
say[0] = "Call the name of the creature which cuteness can heal any wounds and your pass shall be granted";
say[1] = "You call...";
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, 12, -26, 76, 100);
}
onClipEvent (enterFrame) {
if (_root.checkFlag("slayerDoor")) {
this.gotoAndStop(2);
} else {
koObject.process();
this.gotoAndStop(1);
if (this.hitTest(_root.Player) && (!_root.inFight)) {
if (_root.talk(this) > 0) {
called = _root.choose(choos);
if (called == 2) {
_root.setFlag("slayerDoor");
this.swapDepths(_root.Player);
_root.removeTalk(this);
} else if (called != -1) {
if (!_root.cheat) {
_root.removeTalk(this);
_root.fight();
}
}
}
} else {
_root.removeTalk(this);
}
}
}
Instance of Symbol 2301 MovieClip "slay3" in Frame 64
onClipEvent (load) {
if (_root.checkFlag("gotSlayer3")) {
_root.removeMovie(this);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (!_root.checkFlag("gotSlayer3")) {
if (!_root.addEquip(null, 0, ["Cat Slayer", 50])) {
return(undefined);
}
_root.setFlag("gotSlayer3");
_root.removeMovie(this);
_root.SMS("You got Cat Slayer!", 50);
}
}
}
Instance of Symbol 2301 MovieClip "slay2" in Frame 64
onClipEvent (load) {
if (_root.checkFlag("gotSlayer2")) {
_root.removeMovie(this);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (!_root.checkFlag("gotSlayer2")) {
if (!_root.addEquip(null, 0, ["Cat Slayer", 50])) {
return(undefined);
}
_root.setFlag("gotSlayer2");
_root.removeMovie(this);
_root.SMS("You got Cat Slayer!", 50);
}
}
}
Instance of Symbol 2301 MovieClip "slay1" in Frame 64
onClipEvent (load) {
if (_root.checkFlag("gotSlayer1")) {
_root.removeMovie(this);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (!_root.checkFlag("gotSlayer1")) {
if (!_root.addEquip(null, 0, ["Cat Slayer", 50])) {
return(undefined);
}
_root.setFlag("gotSlayer1");
_root.removeMovie(this);
_root.SMS("You got Cat Slayer!", 50);
}
}
}
Instance of Symbol 2303 MovieClip in Frame 64
onClipEvent (load) {
i = 0;
if (_root.slayers == undefined) {
_root.slayers = new Array();
_root.slayers[0] = false;
_root.slayers[1] = false;
_root.slayers[2] = false;
}
}
Instance of Symbol 1778 MovieClip in Frame 64
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("DarkCave2", 473, 276);
}
}
Frame 65
LBX = [124, 400, 130, 180, 90, 210];
LBY = [171, 410, 407, 424, 420, 470];
Instance of Symbol 2308 MovieClip in Frame 65
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 2308 MovieClip in Frame 65
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 2310 MovieClip in Frame 65
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2308 MovieClip in Frame 65
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 2314 MovieClip in Frame 65
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2318 MovieClip in Frame 65
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 29);
}
onClipEvent (enterFrame) {
koObject.process(false);
}
Instance of Symbol 2151 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("armiParter", 290, 450);
}
}
Frame 66
LBX = [155, 400, 230, 400, 134, 221, 218, 234, 320, 370, 250, 400];
LBY = [170, 282, 281, 412, 290, 410, 320, 411, 408, 424, 420, 470];
Instance of Symbol 2327 MovieClip in Frame 66
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2327 MovieClip in Frame 66
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2318 MovieClip in Frame 66
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 2333 MovieClip in Frame 66
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, 0);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2151 MovieClip in Frame 66
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.Sun = true;
_root.warpTo("startTown", 70, 120);
}
}
Instance of Symbol 2151 MovieClip in Frame 66
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("armiHome", 160, 450);
}
}
Frame 67
LBX = [-186, -14, -266, 256, -376, -268, 240, 412, 412, 658, 84, 292, 292, 430, 430, 634, 534, 634, -250, 534, -248, -164, -172, 296];
LBY = [-34, 52, 44, 294, 124, 264, 84, 398, 138, 372, 360, 588, 500, 600, 500, 550, 362, 510, 290, 402, 362, 546, 522, 596];
Instance of Symbol 1917 MovieClip in Frame 67
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1917 MovieClip in Frame 67
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1999 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2340 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (-this._width) / 2, this._width / 2, 20, 23);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2340 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (-this._width) / 2, this._width / 2, 20, 23);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2340 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (-this._width) / 2, this._width / 2, 20, 23);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2147 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -3, 3, 68, 73);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2147 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -3, 3, 68, 73);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2112 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 16.5, 28);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2112 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 16.5, 28);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2112 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 16.5, 28);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2112 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 16.5, 28);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2342 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -3, 3, 27, 63);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2342 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -3, 3, 27, 63);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2342 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -3, 3, 27, 63);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2342 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -3, 3, 27, 63);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1999 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1994 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (-this._width) / 5, this._width / 5, this._height - (this._height / 10), this._height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1994 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 1999 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2281 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1992 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, this._height / 10);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1999 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1992 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, this._height / 10);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2344 MovieClip in Frame 67
onClipEvent (load) {
var say = new Array();
say[0] = "Yo! Welcome to the Neko Mortus preview!";
say[1] = "Theres nothing much to do here, actually...";
say[2] = "Thought, you might want to keep your eyes open for a certain item... if you have Osaka in your team B)";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.talk(this);
} else {
_root.removeTalk(this);
}
}
Instance of Symbol 2151 MovieClip in Frame 67
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.Sun = false;
_root.warpTo("armiParter", 360, 390);
}
}
Instance of Symbol 2151 MovieClip in Frame 67
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("startForest1", 624, 320);
}
}
Instance of Symbol 2347 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var tDiff = (Math.random() * 60);
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (_root.hr >= 22) {
if (_root.mi > this.tDiff) {
this.gotoAndStop(2);
}
}
} else {
lamp(this);
if (_root.hr <= 2) {
if ((_root.mi > this.tDiff) || (_root.hr > 1)) {
this.tDiff = Math.random() * 60;
this.gotoAndStop(1);
this.trans.rb = 0;
this.trans.gb = 0;
this.trans.bb = 0;
this.trans.ab = 0;
this.sunet.setTransform(this.trans);
}
}
}
}
Instance of Symbol 2347 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var tDiff = (Math.random() * 60);
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (_root.hr >= 22) {
if (_root.mi > this.tDiff) {
this.gotoAndStop(2);
}
}
} else {
lamp(this);
if (_root.hr <= 2) {
if ((_root.mi > this.tDiff) || (_root.hr > 1)) {
this.tDiff = Math.random() * 60;
this.gotoAndStop(1);
this.trans.rb = 0;
this.trans.gb = 0;
this.trans.bb = 0;
this.trans.ab = 0;
this.sunet.setTransform(this.trans);
}
}
}
}
Instance of Symbol 2347 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var tDiff = (Math.random() * 60);
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (_root.hr >= 22) {
if (_root.mi > this.tDiff) {
this.gotoAndStop(2);
}
}
} else {
lamp(this);
if (_root.hr <= 2) {
if ((_root.mi > this.tDiff) || (_root.hr > 1)) {
this.tDiff = Math.random() * 60;
this.gotoAndStop(1);
this.trans.rb = 0;
this.trans.gb = 0;
this.trans.bb = 0;
this.trans.ab = 0;
this.sunet.setTransform(this.trans);
}
}
}
}
Instance of Symbol 2347 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var tDiff = (Math.random() * 60);
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (_root.hr >= 22) {
if (_root.mi > this.tDiff) {
this.gotoAndStop(2);
}
}
} else {
lamp(this);
if (_root.hr <= 2) {
if ((_root.mi > this.tDiff) || (_root.hr > 1)) {
this.tDiff = Math.random() * 60;
this.gotoAndStop(1);
this.trans.rb = 0;
this.trans.gb = 0;
this.trans.bb = 0;
this.trans.ab = 0;
this.sunet.setTransform(this.trans);
}
}
}
}
Instance of Symbol 2347 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(1);
var tDiff = (Math.random() * 60);
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (_root.hr >= 22) {
if (_root.mi > this.tDiff) {
this.gotoAndStop(2);
}
}
} else {
lamp(this);
if (_root.hr <= 2) {
if ((_root.mi > this.tDiff) || (_root.hr > 1)) {
this.tDiff = Math.random() * 60;
this.gotoAndStop(1);
this.trans.rb = 0;
this.trans.gb = 0;
this.trans.bb = 0;
this.trans.ab = 0;
this.sunet.setTransform(this.trans);
}
}
}
}
Frame 68
LBX = [-336, -133, -140, -4, -1, 124, 120, 184, 180, 308, 307, 671, 355, 518];
LBY = [196, 404, 205, 404, 214, 404, 233, 404, 243, 404, 234, 404, 200, 246];
Instance of Symbol 2106 MovieClip in Frame 68
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, ((-this._width) / 2) + 3, (this._width / 2) - 3, this._height / 10, this._height / 2);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1994 MovieClip in Frame 68
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, (-this._width) / 5, this._width / 5, this._height - (this._height / 10), this._height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1999 MovieClip in Frame 68
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2112 MovieClip in Frame 68
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 16.5, 28);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2112 MovieClip in Frame 68
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, -17, 17, 16.5, 28);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2151 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("startForestTample", 457, 400);
}
}
Instance of Symbol 2151 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 1;
_root.warpTo("startTown", -313, 224);
}
}
Frame 69
LBX = [0, 500, 58, 390, 97, 327, 325, 360];
LBY = [313, 493, 255, 330, 139, 274, 180, 260];
Instance of Symbol 1917 MovieClip in Frame 69
onClipEvent (load) {
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 2354 MovieClip in Frame 69
onClipEvent (load) {
this.gotoAndStop(1);
if (_root.checkFlag("gotOsakaShoes")) {
_root.removeMovie(this);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.SMS("Shoes of Focus! Perfectly fitted for Osaka.", 60);
_root.setFlag("gotOsakaShoes");
_root.removeMovie(this);
}
}
Instance of Symbol 2108 MovieClip in Frame 69
onClipEvent (load) {
this.gotoAndStop(1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 4, 35);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2362 MovieClip in Frame 69
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2151 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("StartCityEnter", 730, 402);
}
}
Instance of Symbol 2151 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("startForest1", -294, 304);
}
}
Frame 70
LBX = [36, 482];
LBY = [101, 452];
bEnemyArea = false;
Instance of Symbol 1800 MovieClip in Frame 70
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, 5, 100, 15, 55, 17);
koObject.onSpace = function () {
_root.SMS("Nice and tidy bed... looks comfortable too", 60);
};
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("OldKami02", 305, 115);
}
}
Frame 71
LBX = [185, 251, 185, 284, 153, 189, 283, 335, 249, 272, 270, 340, 270, 289, 288, 305, 302, 327];
LBY = [147, 290, 280, 400, 251, 303, 276, 310, 123, 178, 170, 178, 113, 156, 104, 148, 96, 139];
bEnemyArea = false;
Instance of Symbol 1785 MovieClip in Frame 71
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1823 MovieClip in Frame 71
onClipEvent (load) {
var say = new Array();
say[0] = "(oooo, how cute! Just looking at Maya restores your HP and SP! xD)";
say[1] = "Maya: Meow!";
say[2] = "(ooo... it's too cute :d)";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.restoreHealth(true);
_root.restoreMana(true);
_root.talk(this);
} else {
_root.mover(this, 20, 20, 0.8);
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("OldKami03", 170, 165);
}
}
Instance of Symbol 1778 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("OldKami01", 60, 255);
}
}
Frame 72
LBX = [-2, 502];
LBY = [136, 460];
bEnemyArea = false;
Instance of Symbol 2369 MovieClip in Frame 72
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2369 MovieClip in Frame 72
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 72
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("OldKami04", 40, 290);
}
}
Instance of Symbol 1778 MovieClip in Frame 72
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("KamiOld02", 240, 380);
}
}
Frame 73
LBX = [-2, 502, 169, 346];
LBY = [136, 460, 36, 146];
bEnemyArea = false;
Instance of Symbol 1939 MovieClip in Frame 73
onClipEvent (load) {
var moving = false;
var say = new Array();
say.push("So, how did you like your visit to the old Kamineko?");
say.push("As you see, at first it was quite ... bad.\nWell, anyway, there is nothing more interesting to see - lets go back, ok?");
say.push("");
}
onClipEvent (enterFrame) {
if (!moving) {
if (this.hitTest(_root.Player)) {
if (_root.talk(this) >= 2) {
moving = true;
_root.removeTalk(this);
_root.fade(0, 1, 5, function () {
_root.setTimeFlow(true);
_root.setSun(true);
_root.warpTo("trainBridge", 250, 250);
});
}
} else {
_root.mover(this, 50, 50, 0.5);
_root.removeTalk(this);
}
}
}
Instance of Symbol 1883 MovieClip in Frame 73
onClipEvent (load) {
var say = new Array();
say.push("Good job finding this place!");
say.push("Heres a gift! (Check your Items)");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (_root.talk(this) == 1) {
if (!_root.checkFlag("foundOldKamiStone")) {
_root.setFlag("foundOldKamiStone");
_root.readDBItem("Power Stone");
}
}
} else {
_root.mover(this, 50, 50, 0.5);
_root.removeTalk(this);
}
}
Instance of Symbol 1778 MovieClip in Frame 73
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("OldKami05", 250, 460);
}
}
Instance of Symbol 1778 MovieClip in Frame 73
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 2;
_root.warpTo("OldKamiForst", -120, 340);
}
}
Instance of Symbol 1778 MovieClip in Frame 73
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("OldKami03", 460, 290);
}
}
Frame 74
LBX = [164, 341];
LBY = [1, 504];
bEnemyArea = false;
Instance of Symbol 1778 MovieClip in Frame 74
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("OldKami06", 250, 470);
}
}
Instance of Symbol 1778 MovieClip in Frame 74
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("OldKami04", 250, 70);
}
}
Frame 75
LBX = [167, 344, -5, 503];
LBY = [11, 504, 12, 259];
bEnemyArea = false;
Instance of Symbol 2376 MovieClip in Frame 75
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, this._height - 10, this._height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 2376 MovieClip in Frame 75
onClipEvent (load) {
var koObject = (new classes.KamiObject());
koObject.attach(this, null, null, this._height - 10, this._height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.warpTo("OldKami05", 250, 30);
}
}
Frame 76
LBX = [-155, 674];
LBY = [229, 497];
bEnemyArea = false;
Instance of Symbol 1838 MovieClip in Frame 76
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1838 MovieClip in Frame 76
onClipEvent (load) {
gotoAndStop (1);
var koObject = (new classes.KamiObject());
koObject.attach(this, 0, _width, _height / 2, _height);
}
onClipEvent (enterFrame) {
koObject.process();
}
Instance of Symbol 1778 MovieClip in Frame 76
onClipEvent (enterFrame) {
if (_root.checkWarp(this, _root.Player)) {
_root.scrollEffect = 0;
_root.warpTo("OldKami04", 460, 290);
}
}
Frame 78
_root.noMusicFade = true;
_root.setMusicVolume(100);
forceMusic("Azumanga");
Frame 79
_root.tfDaysCounter.text = "In-game days played: " + _root.daysPlayed;
_root.saveGame();
_root.forceMusic("");
_root.SMS("Game has been automaticly saved", 55);
_root.setRandomFact(9);
_root._x = 0;
_root._y = 0;
_root.Inter._x = 0;
_root.Inter._y = 0;
Instance of Symbol 1555 MovieClip [BubbleBut] in Frame 79
onClipEvent (load) {
this.lable = "BACK TO GAME";
this.onRelease = function () {
_root.noMusicFade = false;
_root.forceMusic("");
_root.warpTo("GameStart", 250, 250);
};
}
Instance of Symbol 1555 MovieClip [BubbleBut] in Frame 79
onClipEvent (load) {
this.lable = "BACK TO MAIN MENU";
this.onRelease = function () {
_root.gotoAndStop("MainMenu");
};
}
Symbol 3 MovieClip Frame 6
stop();
Symbol 4 MovieClip [PreCatEyes] Frame 1
stop();
Symbol 9 MovieClip [Battle_Add] Frame 1
stop();
Symbol 39 MovieClip Frame 7
stop();
Symbol 93 MovieClip Frame 21
_parent._parent.attacked = true;
Symbol 93 MovieClip Frame 33
_parent._parent.endex = true;
Symbol 140 MovieClip Frame 16
_parent._parent.attacked = true;
Symbol 140 MovieClip Frame 36
_parent._parent.endex = true;
Symbol 148 MovieClip Frame 28
_parent._parent.attacked = true;
Symbol 148 MovieClip Frame 31
_parent._parent.endex = true;
Symbol 2446 MovieClip [__Packages.classes.KamiObject] Frame 0
class classes.KamiObject
{
function KamiObject () {
_root.aKamiObjects[_root.aKamiObjects.length] = this;
}
function attach(tar, minx, maxx, miny, maxy, sp) {
mcObject = tar;
bbBound = tar.getBounds(_root);
if (minx == null) {
minX = -5;
} else {
minX = minx;
}
if (maxx == null) {
maxX = tar._width + 5;
} else {
maxX = maxx;
}
if (miny == null) {
minY = tar._height / 2;
} else {
minY = miny;
}
if (maxy == null) {
maxY = tar._height;
} else {
maxY = maxy;
}
if (sp == null) {
swapPoint = minY;
} else {
swapPoint = sp;
}
oDepth = tar.getDepth();
tar.onUnload = function () {
this.mcBound.removeMovieClip();
};
bbBound.xMin = bbBound.xMin - mcObject._x;
bbBound.yMin = bbBound.yMin - mcObject._y;
bbBound.xMax = bbBound.xMax - mcObject._x;
bbBound.yMax = bbBound.yMax - mcObject._y;
_root.sortObjects();
}
function process(bSwap) {
if ((((((mcObject._x + bbBound.xMin) + _root._x) > _root.swidth) || (((mcObject._x + bbBound.xMax) + _root._x) < 0)) || (((mcObject._y + bbBound.yMin) + _root._y) > _root.sheight)) || (((mcObject._y + bbBound.yMax) + _root._y) < 0)) {
mcObject._visible = false;
return(undefined);
}
mcObject._visible = true;
if (bSwap || (bSwap == null)) {
if (_root.Player._y > (mcObject._y + swapPoint)) {
if (mcObject.getDepth() == oDepth) {
mcObject.swapDepths(lDepth);
}
} else if (mcObject.getDepth() != oDepth) {
mcObject.swapDepths(oDepth);
}
}
if (minX != maxX) {
tx = _root.Player._x + _root.PBX;
ty = _root.Player._y + _root.PBY;
if (_root.PlayerMove != 2) {
if ((_root.Player._x >= (mcObject._x + minX)) && (_root.Player._x <= (mcObject._x + maxX))) {
if (((_root.Player._y <= (mcObject._y + minY)) && (ty > (mcObject._y + minY))) || ((_root.Player._y >= (mcObject._y + maxY)) && (ty < (mcObject._y + maxY)))) {
_root.PlayerMove = 2;
}
} else if ((_root.Player._y >= (mcObject._y + minY)) && (_root.Player._y <= (mcObject._y + maxY))) {
if (((_root.Player._x <= (mcObject._x + minX)) && (tx > (mcObject._x + minX))) || ((_root.Player._x >= (mcObject._x + maxX)) && (tx < (mcObject._x + maxX)))) {
_root.PlayerMove = 2;
}
}
} else {
_root.PlayerMove = 1;
}
if (((_root.Player._x + _root.speed) > (mcObject._x + bbBound.xMin)) && ((_root.Player._x - _root.speed) < (mcObject._x + bbBound.xMax))) {
if ((((_root.Player._y + _root.speed) > (mcObject._y + bbBound.yMin)) && ((_root.Player._y - _root.speed) < (mcObject._y + bbBound.yMax))) || (((_root.Player._y - (_root.Player._height / 2)) > (mcObject._y + bbBound.yMin)) && ((_root.Player._y - (_root.Player._height / 2)) < (mcObject._y + bbBound.yMax)))) {
if (!bTouch) {
onTouch(mcObject);
bTouch = true;
}
if (onSpace != null) {
if (Key.isDown(32)) {
if (!_root.bSpaceState) {
onSpace(mcObject);
_root.bSpaceState = true;
}
} else if (_root.bSpaceState) {
_root.bSpaceState = false;
}
}
} else {
bTouch = false;
}
} else {
bTouch = false;
}
}
if (Key.isDown(78)) {
if (mcObject.mcBound == null) {
_root.setRandomFact(6);
mcObject.createEmptyMovieClip("mcBound", mcObject.getNextHighestDepth());
var _local3 = checkFlip(mcObject);
mcObject.mcBound.lineStyle(1, (((_local3.x != 1) || (_local3.y != 1)) ? 1157870 : 65280), 100);
mcObject.mcBound.moveTo(minX * _local3.x, minY * _local3.y);
mcObject.mcBound.lineTo(maxX * _local3.x, minY * _local3.y);
mcObject.mcBound.lineTo(maxX * _local3.x, maxY * _local3.y);
mcObject.mcBound.lineTo(minX * _local3.x, maxY * _local3.y);
mcObject.mcBound.lineTo(minX * _local3.x, minY * _local3.y);
} else {
mcObject.mcBound._visible = true;
}
} else {
mcObject.mcBound._visible = false;
}
if (Key.isDown(86)) {
if (mcObject.mcBound2 == null) {
_root.setRandomFact(6);
mcObject.createEmptyMovieClip("mcBound2", mcObject.getNextHighestDepth());
mcObject.mcBound2.lineStyle(1, 2276130, 100);
var _local3 = checkFlip(mcObject);
mcObject.mcBound2.moveTo(bbBound.xMin * _local3.x, bbBound.yMin * _local3.y);
mcObject.mcBound2.lineTo(bbBound.xMax * _local3.x, bbBound.yMin * _local3.y);
mcObject.mcBound2.lineTo(bbBound.xMax * _local3.x, bbBound.yMax * _local3.y);
mcObject.mcBound2.lineTo(bbBound.xMin * _local3.x, bbBound.yMax * _local3.y);
mcObject.mcBound2.lineTo(bbBound.xMin * _local3.x, bbBound.yMin * _local3.y);
} else {
mcObject.mcBound2._visible = true;
}
} else {
mcObject.mcBound2._visible = false;
}
if (Key.isDown(66)) {
_root.setRandomFact(6);
if (mcObject.mcSP == null) {
mcObject.createEmptyMovieClip("mcSP", mcObject.getNextHighestDepth());
mcObject.mcSP.lineStyle(6, 16776960);
mcObject.mcSP.moveTo(0, swapPoint);
mcObject.mcSP.lineTo(0, swapPoint + 1);
mcObject.createTextField("tfDepth", mcObject.getNextHighestDepth(), 0, 0, 0, 0);
mcObject.tfDepth.selectable = false;
mcObject.tfDepth.embedFonts = true;
mcObject.tfDepth.autoSize = true;
mcObject.tfDepth.setNewTextFormat(_root.format);
} else {
mcObject.mcSP._visible = true;
mcObject.tfDepth._visible = true;
}
mcObject.tfDepth.text = "" + mcObject.getDepth();
} else {
mcObject.mcSP._visible = false;
mcObject.tfDepth._visible = false;
}
}
function doUnload() {
mcObject.swapDepths(mcObject._parent.getNextHighestDepth());
_root.removeMovie(mcObject);
}
function getMC() {
return(mcObject);
}
function setLowDepth(n) {
lDepth = n;
}
function getLDepth() {
return(lDepth);
}
function checkFlip(mc) {
var _local6 = mc._xscale;
var _local5 = mc._yscale;
mc._xscale = 100;
mc._yscale = 100;
var _local4 = new Object();
var _local3 = new Object();
var _local2 = new Object();
_local2.x = 1;
_local2.y = 1;
_local4.x = 10;
_local4.y = 10;
_local3.x = mc._x + 10;
_local3.y = mc._y + 10;
mc.localToGlobal(_local4);
mc._parent.localToGlobal(_local3);
if (_local4.x != _local3.x) {
if (_local4.y != _local3.y) {
_local2.x = -1;
_local2.y = -1;
} else {
_local2.x = -1;
}
} else if (_local4.y != _local3.y) {
_local2.y = -1;
}
mc._xscale = _local6;
mc._yscale = _local5;
_local6 = mc._xscale / 100;
_local5 = mc._yscale / 100;
_local2.x = _local2.x / _local6;
_local2.y = _local2.y / _local5;
return(_local2);
}
var minX = null;
var maxX = null;
var minY = null;
var maxY = null;
var swapPoint = null;
var oDepth = null;
var lDepth = null;
var mcObject = null;
var tx = null;
var ty = null;
var bTouch = null;
var bbBound = null;
var onSpace = null;
var onTouch = null;
}
Symbol 2447 MovieClip [__Packages.classes.KamiIcon] Frame 0
class classes.KamiIcon
{
var mcIcon, aChar, nID, nHP, nSP, nEP, mcBarHP, tfTextHP, mcBarSP, tfTextSP, mcBarEP, tfTextEP, mcControl, cColor, oTrans, bWarn, bUp, temp;
function KamiIcon (id) {
if (_root.Inter["fac" + id] == null) {
_root.Inter.attachMovie("statusAvatar", "fac" + id, _root.Inter.getNextHighestDepth());
}
mcIcon = _root.Inter["fac" + id];
mcIcon._visible = false;
mcIcon._x = 4 + (((_root.swidth - 4) / _root.playersCount) * (id - 1));
mcIcon._y = 5;
aChar = _root.aPlayerTeam[id][0];
nID = id;
mcIcon.id = id - 1;
nHP = -1;
nSP = -1;
nEP = -1;
_root.format.size = 10;
_root.format.bold = false;
if (mcIcon.barHP == null) {
mcIcon.createEmptyMovieClip("barHP", mcIcon.getNextHighestDepth());
}
mcBarHP = mcIcon.barHP;
if (mcIcon.textHP == null) {
mcIcon.createTextField("textHP", mcIcon.getNextHighestDepth(), 100, 8, 60, 25);
}
tfTextHP = mcIcon.textHP;
tfTextHP.selectable = false;
tfTextHP.embedFonts = true;
tfTextHP.setNewTextFormat(_root.format);
tfTextHP.text = (("" + aChar[5]) + "/") + aChar[6];
if (mcIcon.barSP == null) {
mcIcon.createEmptyMovieClip("barSP", mcIcon.getNextHighestDepth());
}
mcBarSP = mcIcon.barSP;
if (mcIcon.textSP == null) {
mcIcon.createTextField("textSP", mcIcon.getNextHighestDepth(), 110, 21, 60, 20);
}
tfTextSP = mcIcon.textSP;
tfTextSP.selectable = false;
tfTextSP.embedFonts = true;
tfTextSP.setNewTextFormat(_root.format);
tfTextSP.text = (("" + aChar[7]) + "/") + aChar[8];
if (mcIcon.barEP == null) {
mcIcon.createEmptyMovieClip("barEP", mcIcon.getNextHighestDepth());
}
mcBarEP = mcIcon.barEP;
if (mcIcon.textEP == null) {
mcIcon.createTextField("textEP", mcIcon.getNextHighestDepth(), 120, 35, 60, 20);
}
tfTextEP = mcIcon.textEP;
tfTextEP.selectable = false;
tfTextEP.embedFonts = true;
tfTextEP.setNewTextFormat(_root.format);
tfTextEP.text = (("" + aChar[9]) + "/") + aChar[10];
_root.format.size = 11;
_root.format.bold = true;
if (_root.Inter["c_type" + id] == null) {
_root.Inter.attachMovie("Control_Type", "c_type" + id, _root.Inter.getNextHighestDepth());
}
mcControl.id = id - 1;
mcControl = _root.Inter["c_type" + id];
mcControl._visible = false;
mcControl._x = mcIcon._x + 7;
mcControl._y = (mcIcon._y + mcIcon._height) - 5;
if (aChar[15]) {
mcControl.gotoAndStop(2);
} else {
mcControl.gotoAndStop(1);
}
cColor = new Color(mcIcon);
oTrans = cColor.getTransform();
mcIcon.onPress = function () {
_root.charSelect = this.id + 1;
_root.changePlayerAvatar(_root.aPlayerTeam[_root.charSelect][0][0]);
_root.refreshHUD();
};
mcControl.onPress = function () {
_root.aIcons[this.id].changeControl();
};
mcIcon.onEnterFrame = function () {
_root.aIcons[this.id].process();
};
}
function process() {
if (_root.showIcons && (aChar != null)) {
mcIcon._visible = true;
mcControl._visible = true;
if (bWarn) {
if (!bUp) {
oTrans.rb = oTrans.rb + 10;
if (oTrans.rb > 100) {
bUp = true;
}
} else {
oTrans.rb = oTrans.rb - 10;
if (oTrans.rb <= 0) {
bUp = false;
}
}
cColor.setTransform(oTrans);
}
if (nHP != aChar[5]) {
mcBarHP.clear();
temp = 60 + ((aChar[5] / aChar[6]) * 90);
mcBarHP.beginFill(16711680, 100);
mcBarHP.moveTo(60, 18);
mcBarHP.lineTo(temp, 18);
mcBarHP.lineTo(temp, 28);
mcBarHP.lineTo(60, 28);
mcBarHP.endFill();
mcBarHP.beginFill(16711680, 50);
mcBarHP.moveTo(temp, 18);
mcBarHP.lineTo(150, 18);
mcBarHP.lineTo(150, 28);
mcBarHP.lineTo(temp, 28);
mcBarHP.endFill();
tfTextHP.text = (("" + aChar[5]) + "/") + aChar[6];
nHP = aChar[5];
if (nHP < (aChar[6] / 4)) {
bWarn = true;
} else {
bWarn = false;
oTrans.rb = 0;
cColor.setTransform(oTrans);
}
}
if (nSP != aChar[7]) {
mcBarSP.clear();
temp = 65 + ((aChar[7] / aChar[8]) * 90);
mcBarSP.beginFill(255, 100);
mcBarSP.moveTo(65, 31);
mcBarSP.lineTo(temp, 31);
mcBarSP.lineTo(temp, 41);
mcBarSP.lineTo(65, 41);
mcBarSP.endFill();
mcBarSP.beginFill(255, 50);
mcBarSP.moveTo(temp, 31);
mcBarSP.lineTo(155, 31);
mcBarSP.lineTo(155, 41);
mcBarSP.lineTo(temp, 41);
mcBarSP.endFill();
tfTextSP.text = (("" + aChar[7]) + "/") + aChar[8];
nSP = aChar[7];
}
if (nEP != aChar[9]) {
mcBarEP.clear();
temp = 70 + ((aChar[9] / aChar[10]) * 90);
if (temp > 160) {
temp = 160;
}
mcBarEP.beginFill(16776960, 100);
mcBarEP.moveTo(70, 45);
mcBarEP.lineTo(temp, 45);
mcBarEP.lineTo(temp, 55);
mcBarEP.lineTo(70, 55);
mcBarEP.endFill();
mcBarEP.beginFill(16776960, 50);
mcBarEP.moveTo(temp, 45);
mcBarEP.lineTo(160, 45);
mcBarEP.lineTo(160, 55);
mcBarEP.lineTo(temp, 55);
mcBarEP.endFill();
tfTextEP.text = (("" + aChar[9]) + "/") + aChar[10];
nEP = aChar[9];
}
} else {
mcIcon._visible = false;
mcControl._visible = false;
}
}
function changeControl() {
aChar[15] = !aChar[15];
if (aChar[15]) {
mcControl.gotoAndStop(2);
} else {
mcControl.gotoAndStop(1);
}
}
function doRefresh(id) {
aChar = _root.aPlayerTeam[id][0];
if (aChar == null) {
mcIcon._visible = false;
mcControl._visible = false;
} else {
mcIcon.id = nID - 1;
mcControl.id = nID - 1;
if (_root.charSelect == nID) {
oTrans.aa = 100;
} else {
oTrans.aa = 75;
}
if (aChar[15]) {
mcControl.gotoAndStop(2);
} else {
mcControl.gotoAndStop(1);
}
if (aChar != null) {
mcIcon.gotoAndStop(aChar[12]);
}
aChar[6] = aChar[2] * 10;
aChar[8] = aChar[4] * 5;
nHP = -1;
nSP = -1;
nEP = -1;
}
}
}
Symbol 2448 MovieClip [__Packages.classes.KamiBattleToolTip] Frame 0
class classes.KamiBattleToolTip
{
var nDelay, bShow, mcTip, tfTip;
function KamiBattleToolTip () {
nDelay = 0;
bShow = false;
mcTip = _root.BInter.createEmptyMovieClip("mcToolTip", _root.BInter.getNextHighestDepth());
mcTip._visible = false;
mcTip.onEnterFrame = function () {
_root.kbttTip.process();
};
tfTip = mcTip.createTextField("tfTipText", mcTip.getNextHighestDepth(), 0, 0, 1, 1);
trace(tfTip._visible);
tfTip.autoSize = true;
tfTip.multiline = true;
tfTip.selectable = false;
tfTip.background = true;
tfTip.backgroundColor = 16711680 /* 0xFF0000 */;
tfTip.border = true;
tfTip.borderColor = 16776960 /* 0xFFFF00 */;
tfTip.multiline = true;
tfTip.wordWrap = false;
tfTip.embedFonts = true;
tfTip.setTextFormat(_root.format);
tfTip.setNewTextFormat(_root.format);
}
function process() {
if (!bShow) {
return(undefined);
}
if (nDelay > 0) {
nDelay--;
} else {
mcTip._visible = true;
mcTip._x = _root.BInter._xmouse + 5;
mcTip._y = (_root.BInter._ymouse - tfTip._height) - 5;
}
}
function showTip(s) {
nDelay = 5;
bShow = true;
tfTip.text = s;
}
function hideTip() {
bShow = false;
mcTip._visible = false;
}
}
Symbol 2449 MovieClip [__Packages.classes.KamiBattleCommand] Frame 0
class classes.KamiBattleCommand
{
function KamiBattleCommand () {
mcComm = _root.BInter.attachMovie("Battle_Commands", "CommMenu", _root.BInter.getNextHighestDepth());
mcComm.gotoAndStop(1);
mcComm._visible = false;
mcComm.mcAtt.onRollOver = function () {
_root.showToolTip("Default Attack\n(SPACE Key)");
this.gotoAndPlay(2);
};
mcComm.mcAtt.onRollOut = function () {
_root.hideToolTip();
this.gotoAndPlay(4);
};
mcComm.mcAtt.onPress = function () {
_root.hideToolTip();
this.gotoAndStop(1);
_root.showCommandMenu(false);
_root.chooseCommand(1);
};
mcComm.mcDef.onRollOver = function () {
_root.showToolTip("Defend\nHalfs damage and restores some Health and Mana.\nAffected by Character's Level.");
this.gotoAndPlay(2);
};
mcComm.mcDef.onRollOut = function () {
_root.hideToolTip();
this.gotoAndPlay(4);
};
mcComm.mcDef.onPress = function () {
_root.hideToolTip();
this.gotoAndStop(1);
_root.showCommandMenu(false);
_root.chooseCommand(2);
};
mcComm.mcRun.onRollOver = function () {
_root.showToolTip("Run Away\nYou got NO Experience points or Cash.\nMay not succeed.");
this.gotoAndPlay(2);
};
mcComm.mcRun.onRollOut = function () {
_root.hideToolTip();
this.gotoAndPlay(4);
};
mcComm.mcRun.onPress = function () {
if (this._alpha == 100) {
this.gotoAndStop(1);
_root.hideToolTip();
_root.showCommandMenu(false);
_root.chooseCommand(5);
} else {
_root.SMS("There's no where to run!", 60);
}
};
mcComm.mcSum.onRollOver = function () {
_root.showToolTip("Summon\nCalls for help from a powerful ally.");
this.gotoAndPlay(2);
};
mcComm.mcSum.onRollOut = function () {
_root.hideToolTip();
this.gotoAndPlay(4);
};
mcComm.mcSum.onPress = function () {
if (this._alpha == 100) {
_root.hideToolTip();
_root.chooseCommand(6);
this.gotoAndStop(1);
} else {
_root.SMS("No Summon is available!", 60);
}
};
aSkills = new Array();
i = 1;
while (i <= _root.nSkillsNumber) {
if (mcComm["mcSkill" + i] != null) {
aSkills.push(new Array(mcComm["mcSkill" + i]));
aSkills[i - 1][0].sid = i - 1;
aSkills[i - 1][0].onPress = function () {
if (this._alpha == 100) {
_root.hideToolTip();
this._xscale = 100;
this._yscale = 100;
_root.showCommandMenu(false);
_root.kbcCommand.doSkill(this.sid);
} else {
_root.SMS("You didn't learn that skill yet.", 60);
}
};
aSkills[i - 1][0].onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
_root.kbcCommand.showSkillTip(this.sid);
};
aSkills[i - 1][0].onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
_root.hideToolTip();
this.play();
};
}
i++;
}
aPotionsH = new Array();
i = 0;
while (i < _root.heal.length) {
if (mcComm["mcHP" + (i + 1)] != null) {
aPotionsH.push(new Array(mcComm["mcHP" + (i + 1)], null));
aPotionsH[i][0].pid = i;
aPotionsH[i][0].tfAmount.text = _root.heal[i][0];
if (_root.heal[i][0] <= 0) {
_root.heal[i][0] = 0;
aPotionsH[i][0]._alpha = 75;
} else {
aPotionsH[i][0]._alpha = 100;
}
aPotionsH[i][0].onPress = function () {
if (this._alpha == 100) {
_root.hideToolTip();
this._xscale = 100;
this._yscale = 100;
_root.showCommandMenu(false);
_root.kbcCommand.doHeal(this.pid);
} else {
_root.SMS("You dont have any Healing Potions.", 60);
}
};
aPotionsH[i][0].onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
_root.kbcCommand.showHealTip(this.pid);
};
aPotionsH[i][0].onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
_root.hideToolTip();
this.play();
};
}
i++;
}
aPotionsM = new Array();
i = 0;
while (i < _root.mana.length) {
if (mcComm["mcMP" + (i + 1)] != null) {
aPotionsM.push(new Array(mcComm["mcMP" + (i + 1)]));
aPotionsM[i][0].pid = i;
aPotionsM[i][0].tfAmount.text = _root.mana[i][0];
if (_root.mana[i][0] <= 0) {
_root.mana[i][0] = 0;
aPotionsM[i][0]._alpha = 75;
} else {
aPotionsM[i][0]._alpha = 100;
}
aPotionsM[i][0].onPress = function () {
if (this._alpha == 100) {
_root.hideToolTip();
this._xscale = 100;
this._yscale = 100;
_root.showCommandMenu(false);
_root.kbcCommand.doMana(this.pid);
} else {
_root.SMS("You dont have any Mana Potions.", 60);
}
};
aPotionsM[i][0].onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
_root.kbcCommand.showManaTip(this.pid);
};
aPotionsM[i][0].onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
_root.hideToolTip();
this.play();
};
}
i++;
}
}
function doSkill(n) {
_root.chooseCommand(9 + n);
}
function showSkillTip(n) {
_root.showToolTip(aSkills[n][1]);
}
function doHeal(n) {
_root.sendCommandHeal(n);
aPotionsH[n][0].tfAmount.text = _root.heal[n][0];
if (_root.heal[n][0] <= 0) {
_root.heal[n][0] = 0;
aPotionsH[n][0]._alpha = 75;
} else {
aPotionsH[n][0]._alpha = 100;
}
}
function showHealTip(n) {
_root.showToolTip("Healing Potion (+" + _root.heal[n][1]);
}
function doMana(n) {
_root.sendCommandMana(n);
aPotionsM[n][0].tfAmount.text = _root.mana[n][0];
if (_root.mana[n][0] <= 0) {
_root.mana[n][0] = 0;
aPotionsM[n][0]._alpha = 75;
} else {
aPotionsM[n][0]._alpha = 100;
}
}
function showManaTip(n) {
_root.showToolTip("Mana Potion (+" + _root.mana[n][1]);
}
function checkRun() {
if (!_root.allowBattleRun) {
mcComm.mcRun._alpha = 75;
} else {
mcComm.mcRun._alpha = 100;
}
}
function setSkill(sid, v, skill) {
if (v) {
aSkills[sid][0]._visible = true;
aSkills[sid][0].gotoAndStop(skill[1] + 1);
aSkills[sid][1] = ((skill[8] + "\n(MP cost: ") + skill[6]) + ")";
aSkills[sid][0].tfID.text = sid + 1;
aSkills[sid][0]._alpha = 100;
} else {
aSkills[sid][0]._visible = true;
aSkills[sid][0]._alpha = 75;
aSkills[sid][0].gotoAndStop(1);
aSkills[sid][1] = "LOCKED";
aSkills[sid][0].tfID.text = sid + 1;
}
}
function setCommand(id, n) {
switch (id) {
case 1 :
mcComm.mcAtt._alpha = n;
break;
case 2 :
mcComm.mcDef._alpha = n;
break;
case 3 :
mcComm.mcRun._alpha = n;
break;
case 4 :
mcComm.mcSum._alpha = n;
}
}
function isVisible() {
return(mcComm._visible);
}
function setVisible(b) {
mcComm._visible = b;
}
var mcComm = null;
var aSkills = null;
var aPotionsH = null;
var aPotionsM = null;
var i = 0;
}
Symbol 2450 MovieClip [__Packages.classes.KamiBattleSumUp] Frame 0
class classes.KamiBattleSumUp
{
var mcSum, nPoints, aChar;
function KamiBattleSumUp () {
mcSum = _root.BInter.attachMovie("Battle_SumUp", "LVLStatus", _root.BInter.getNextHighestDepth());
mcSum._x = (_root.swidth / 2) - (mcSum._width / 2);
mcSum._y = (_root.sheight / 2) - (mcSum._height / 2);
mcSum._visible = false;
mcSum.gotoAndStop(1);
mcSum.tfName.multiline = false;
mcSum.tfName.selectable = false;
mcSum.tfName.embedFonts = true;
mcSum.tfStr.multiline = false;
mcSum.tfStr.selectable = false;
mcSum.tfStr.embedFonts = true;
mcSum.tfVit.multiline = false;
mcSum.tfVit.selectable = false;
mcSum.tfVit.embedFonts = true;
mcSum.tfDex.multiline = false;
mcSum.tfDex.selectable = false;
mcSum.tfDex.embedFonts = true;
mcSum.tfInt.multiline = false;
mcSum.tfInt.selectable = false;
mcSum.tfInt.embedFonts = true;
mcSum.tfLeft.multiline = false;
mcSum.tfLeft.selectable = false;
mcSum.tfLeft.embedFonts = true;
mcSum.addStr.onRollOver = function () {
this.gotoAndStop(2);
};
mcSum.addStr.onRollOut = function () {
this.gotoAndStop(1);
};
mcSum.addStr.onPress = function () {
_root.kbuSum.addStat(1);
this.gotoAndPlay(3);
};
mcSum.addVit.onRollOver = function () {
this.gotoAndStop(2);
};
mcSum.addVit.onRollOut = function () {
this.gotoAndStop(1);
};
mcSum.addVit.onPress = function () {
_root.kbuSum.addStat(2);
this.gotoAndPlay(3);
};
mcSum.addDex.onRollOver = function () {
this.gotoAndStop(2);
};
mcSum.addDex.onRollOut = function () {
this.gotoAndStop(1);
};
mcSum.addDex.onPress = function () {
_root.kbuSum.addStat(3);
this.gotoAndPlay(3);
};
mcSum.addInt.onRollOver = function () {
this.gotoAndStop(2);
};
mcSum.addInt.onRollOut = function () {
this.gotoAndStop(1);
};
mcSum.addInt.onPress = function () {
_root.kbuSum.addStat(4);
this.gotoAndPlay(3);
};
}
function addStat(n) {
nPoints--;
aChar[n]++;
mcSum.tfStr.text = "Strength: " + aChar[1];
mcSum.tfVit.text = "Vitality: " + aChar[2];
mcSum.tfDex.text = "Dexterity: " + aChar[3];
mcSum.tfInt.text = "Intelligence: " + aChar[4];
mcSum.tfLeft.text = "Left: " + nPoints;
_root.refreshHUD();
if (nPoints <= 0) {
_root.setTimeFlow(true);
mcSum._visible = false;
return(undefined);
}
}
function doLevelUp(char, n) {
nPoints = n;
aChar = char;
_root.setTimeFlow(false);
mcSum.tfName.text = char[0];
mcSum.tfStr.text = "Strength: " + aChar[1];
mcSum.tfVit.text = "Vitality: " + aChar[2];
mcSum.tfDex.text = "Dexterity: " + aChar[3];
mcSum.tfInt.text = "Intelligence: " + aChar[4];
mcSum._visible = true;
}
function isVisible() {
return(mcSum._visible);
}
}
Symbol 2451 MovieClip [__Packages.classes.KamiBattleChar] Frame 0
class classes.KamiBattleChar
{
function KamiBattleChar (char, id, human, group) {
aGroup = group;
bHuman = human;
bAlly = char;
if (bAlly) {
sType = "char";
} else {
sType = "mon";
}
_root.toLoad++;
mcChar = _root.BChar.createEmptyMovieClip((sType + id) + "_c", _root.BChar.getNextHighestDepth());
mcChar._y = 250 + ((150 / _root.mcsCount) * (id - 1));
mcChar._x = ((!char) ? ((_root.swidth - (Math.abs((id + 1) % 2) * 35)) - 50) : (50 + (Math.abs((id + 1) % 2) * 35)));
if (char) {
aChar = _root.aPlayerTeam[id][0];
aItem = _root.aPlayerTeam[id][1];
aSkill = _root.aPlayerTeam[id][2];
mcCoolBar = _root.BChar.createEmptyMovieClip((sType + id) + "_bar", _root.BChar.getNextHighestDepth());
mcCoolBar._x = 50 + (((_root.swidth - 50) / _root.playersCount) * (id - 1));
mcCoolBar._y = 132;
sSummonName = aChar[14];
bSummon = false;
} else {
aChar = _root.aEnemyTeam[id][0];
aItem = _root.aEnemyTeam[id][1];
aSkill = _root.aEnemyTeam[id][2];
aChar[6] = aChar[2] * 10;
aChar[5] = aChar[6];
aChar[8] = aChar[4] * 5;
aChar[7] = aChar[8];
_root.expToGive = _root.expToGive + aChar[10];
_root.cashToGive = _root.cashToGive + aChar[10];
_root.kbsStat.addText(aChar[0] + " appears!\n");
_root.kbcTarget = this;
sSummonName = null;
bSummon = aItem[4];
}
mcPointer = _root.BInter.CommMenu.attachMovie("Battle_Pointer", (sType + id) + "_p", _root.BInter.CommMenu.getNextHighestDepth());
mcPointer._x = mcChar._x - _root.BInter.CommMenu._x;
mcPointer.parent = this;
mcPointer._visible = true;
mcPointer.onPress = function () {
this.gotoAndStop(2);
this.parent.setAutoTarget();
};
mcPointer.onEnterFrame = function () {
if (this.parent != _root.kbcTarget) {
if (this.parent.isCool()) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
} else {
this.gotoAndStop(2);
}
};
nID = id;
aStatChange = new Array("", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
aFire = new Array();
nFireOut = _root.nFireTime;
mcAnim = mcChar.attachMovie((sType + "_") + (bAlly ? (aChar[0]) : (aChar[9])), "anim", mcChar.getNextHighestDepth());
if (mcAnim == null) {
mcAnim = mcChar.createEmptyMovieClip("anim", mcChar.getNextHighestDepth());
mcLoad = new MovieClipLoader();
mcLoad.addListener(this);
mcLoad.loadClip(((sType + "_") + (bAlly ? (aChar[0]) : (aChar[9]))) + ".swf", mcAnim);
} else {
_root.readLoad++;
if (aChar[5] > 0) {
mcAnim.gotoAndStop(1);
} else {
mcAnim.gotoAndStop(4);
}
mcPointer._y = ((mcChar._y - mcAnim._height) - 30) - _root.BInter.CommMenu._y;
}
}
function onLoadInit(mc) {
mcPointer._y = ((mcChar._y - mc._height) - 30) - _root.BInter.CommMenu._y;
_root.readLoad++;
if (aChar[5] > 0) {
mc.gotoAndStop(1);
} else {
mc.gotoAndStop(4);
}
mcLoad.removeListener(this);
}
function onLoadError(mc) {
_root.kbsStat.addText(("\nERROR!\nFailed to load " + aChar[0]) + "'s animations");
mcLoad.removeListener(this);
}
function process(bShow) {
if (aChar[5] > 0) {
if (mcChar.attacked != null) {
bHit = mcChar.attacked;
mcChar.attacked = false;
} else {
bHit = mcChar.attack;
mcChar.attack = false;
}
if (mcChar.endex != null) {
bEnd = mcChar.endex;
mcChar.endex = false;
} else {
bEnd = mcChar.end;
mcChar.end = false;
}
if (_root.cho == 0) {
if (nMoveType != 0) {
_root.cho = nMoveType;
nMoveType = 0;
}
}
if (nFireOut > 0) {
nFireOut--;
} else {
for (var _local5 in aFire) {
aChar[5] = aChar[5] - aFire[_local5][0];
_root.playSound("firehit", false);
_root.kbcControl.ColorEffect(200, 200, 0, 25, mcChar);
_root.addFText(mcChar._x, mcChar._y - 50, aFire[_local5][0], 16776960);
aFire[_local5][1]--;
if (aFire[_local5][1] <= 0) {
aFire.splice(parseInt(_local5), 1);
}
if (checkDead()) {
_root.cho = 0;
nCooldown = 0;
return(false);
}
}
nFireOut = _root.nFireTime;
}
if (_root.cho == 0) {
if (bDef) {
bDef = false;
nHP = 3 + Math.floor((bAlly ? (aChar[11] * 2) : (aChar[10] / 5)));
aChar[5] = aChar[5] + nHP;
nMP = 1 + Math.floor((bAlly ? (aChar[11]) : (aChar[10] / 10)));
aChar[7] = aChar[7] + (1 + nMP);
if (aChar[5] > aChar[6]) {
aChar[5] = aChar[6];
}
if (aChar[7] > aChar[8]) {
aChar[7] = aChar[8];
}
_root.kbsStat.addText((((((newline + aChar[0]) + " regained ") + nHP) + "HP and ") + nMP) + "MP");
_root.addFText(mcChar._x - 10, mcChar._y - 55, "+" + nHP, 16711680);
_root.addFText(mcChar._x + 10, mcChar._y - 45, "+" + nMP, 255);
}
bHit = false;
bEnd = false;
mcAnim.gotoAndStop(1);
mcAnim._xscale = 100;
if (bHuman) {
if (!bShow) {
_root.showCommandMenu(true);
var _local4 = 0;
while (_local4 < _root.nSkillsNumber) {
if (aSkill[_local4][7]) {
_root.setCommandSkill(_local4, true, aSkill[_local4]);
if (aChar[14] == "") {
_root.setCommandMain(4, 75);
}
} else {
_root.setCommandSkill(_local4, false);
}
_local4++;
}
return(true);
}
} else if (!bBerserk) {
while (nMoveType == 0) {
nMoveType = random(mcAnim._totalframes) + 1;
if (nMoveType > 1) {
switch (nMoveType) {
case 2 :
if ((!aItem[1]) || (aChar[5] >= (aChar[6] / 2))) {
nMoveType = 1;
}
break;
case 3 :
if (aChar[5] < (aChar[6] / 2)) {
if (bAlly) {
var _local4 = 0;
while (_local4 < _root.heal.length) {
if (_root.heal[_local4] > 0) {
doHeal(_local4);
return(false);
}
_local4++;
}
nMoveType = 1;
} else if ((!aItem[3]) || (aChar[7] < 10)) {
nMoveType = 1;
}
} else {
nMoveType = 1;
}
break;
case 4 :
nMoveType = 0;
break;
case 5 :
if (((!aItem[2]) || (aChar[5] >= (aChar[6] / 4))) || (!_root.allowBattleRun)) {
nMoveType = 1;
}
break;
case 6 :
if ((((((!bAlly) && bSummon) && _root.canSummonMon()) && (_root.aMonSummons != null)) && (_root.aMonSummons.length > 0)) && (aChar[7] > 20)) {
nMoveType = 6;
break;
}
case 7 :
case 8 :
nMoveType = 0;
break;
default :
if ((aSkill == null) || (aSkill.length == 0)) {
nMoveType = 1;
} else {
nMoveType = 9 + ((nMoveType - 9) % (mcAnim._totalframes - 8));
if (aChar[7] < aSkill[nMoveType - 9][6]) {
nMoveType = 1;
} else {
if ((aSkill[nMoveType - 9][7] != null) && (!aSkill[nMoveType - 9][7])) {
var _local3 = 0;
while (_local3 < aSkill.length) {
if (aSkill[_local3][7]) {
nMoveType = 9 + _local3;
break;
}
_local3++;
}
}
if (aSkill[nMoveType - 9] != null) {
break;
}
var _local3 = 0;
for(;;){
if (_local3 >= aSkill.length) {
break;
}
if (aSkill[_local3] != null) {
nMoveType = 9 + _local3;
break;
}
_local3++;
};
}
}
}
}
}
if (bAlly) {
kbcTarget = _root.aMons[random(_root.aMons.length)];
while (!kbcTarget.isAlive()) {
kbcTarget = _root.aMons[random(_root.aMons.length)];
}
} else {
kbcTarget = _root.aPlayers[random(_root.aPlayers.length)];
while (!kbcTarget.isAlive()) {
kbcTarget = _root.aPlayers[random(_root.aPlayers.length)];
}
}
_root.cho = nMoveType;
nMoveType = 0;
} else {
nBerserkTime--;
if (nBerserkTime <= 0) {
bBerserk = false;
bHuman = bBerserkAI;
} else {
_root.addFText(mcChar._x, mcChar._y - 50, "" + nBerserkTime, 15597568);
_root.kbcControl.ColorEffect(200, 0, 0, 25, mcChar);
}
_root.cho = 1;
kbcTarget = _root.aChars[random(_root.aChars.length)];
while (!kbcTarget.isAlive()) {
kbcTarget = _root.aChars[random(_root.aChars.length)];
}
}
} else {
_root.kbcControl.mcCurrent = mcChar;
if (bHuman) {
_root.kbcControl.mcTarget = _root.kbcTarget.getChar();
} else {
_root.kbcControl.mcTarget = kbcTarget.getChar();
}
switch (_root.cho) {
case 1 :
mcAnim.gotoAndStop(5);
if (bHit) {
_root.kbcControl.doDamage(this, (bHuman ? (_root.kbcTarget) : (kbcTarget)), ["attack", 0, 0, (Math.round((aChar[1] + aItem[0][1]) / 2) + random(10)) - 5, null, 0, null, null]);
}
break;
case 2 :
bDef = true;
_root.kbsStat.addText((newline + aChar[0]) + " is defending");
mcAnim.gotoAndStop(3);
_root.cho = 0;
nCooldown = 0;
break;
case 3 :
if (bHit || (!_root.usePotionAnim)) {
_root.playSound("healing", false);
if (bAlly) {
if (bPotionType) {
aChar[7] = aChar[7] + _root.mana[nPotion][1];
if (aChar[7] > aChar[8]) {
aChar[7] = aChar[8];
}
_root.kbsStat.addText(((newline + aChar[0]) + " regain MP by: ") + _root.mana[nPotion][1]);
_root.kbcControl.ColorEffect(0, 0, 200, 20, mcChar);
_root.addFText(mcChar._x, mcChar._y - 50, "+" + _root.mana[nPotion][1], 255);
} else {
aChar[5] = aChar[5] + _root.heal[nPotion][1];
if (aChar[5] > aChar[6]) {
aChar[5] = aChar[6];
}
_root.kbcControl.ColorEffect(200, 0, 0, 20, mcChar);
_root.kbsStat.addText(((newline + aChar[0]) + " was healed for: ") + _root.heal[nPotion][1]);
_root.addFText(mcChar._x, mcChar._y - 50, "+" + _root.heal[nPotion][1], 16711680);
}
} else {
aChar[5] = aChar[5] + Math.floor(aChar[6] / 4);
if (aChar[5] > aChar[6]) {
aChar[5] = aChar[6];
}
aChar[7] = aChar[7] - 10;
_root.kbcControl.ColorEffect(200, 0, 0, 20, mcChar);
_root.kbsStat.addText(((newline + aChar[0]) + " was healed for: ") + (aChar[6] / 4));
_root.addFText(mcChar._x, mcChar._y - 50, "+" + (aChar[6] / 4), 16711680);
}
}
if (_root.usePotionAnim) {
mcAnim.gotoAndStop(6);
} else {
bEnd = true;
}
break;
case 5 :
if (bAlly) {
_root.kbsStat.addText("\nParty tries to run!");
mcAnim.gotoAndStop(1);
mcAnim._xscale = -100;
_root.kbsStat.setTimeout(30);
_root.cMode = -30;
nCooldown = 0;
} else {
if (mcAnim._totalframes >= 8) {
mcAnim.gotoAndStop(8);
if (mcAnim.anim == null) {
mcAnim._visible = false;
}
} else {
mcAnim._visible = false;
}
_root.expToGive = _root.expToGive - aChar[10];
_root.cashToGive = _root.cashToGive - aChar[10];
_root.kbsStat.addText((newline + aChar[0]) + " had run away!");
aChar[5] = 0;
mcPointer._visible = false;
mcPointer.onEnterFrame = null;
mcPointer.removeMovieClip();
mcPointer.unloadMovie();
if (_root.kbcTarget == this) {
for (var _local5 in _root.aMons) {
if (_root.aMons[_local5].isAlive()) {
_root.kbcTarget = _root.aMons[_local5];
break;
}
}
}
_root.cho = 0;
_root.cMode = 0;
}
break;
case 6 :
if (bAlly) {
if (!bHuman) {
_root.cho = 1;
return(false);
}
if (bSummon) {
_root.cho = 0;
_root.SMS("You can only summon once per battle", 50);
} else {
_root.kbsStat.addText((newline + aChar[0]) + " calls a Summon!");
mcAnim.gotoAndStop(7);
if (bHit) {
}
}
} else {
_root.kbsStat.addText((newline + aChar[0]) + " calles for backup!\n");
_root.summonMonster();
_root.cho = 0;
nCooldown = 0;
aChar[7] = aChar[7] - 20;
break;
}
break;
default :
if (aSkill[_root.cho - 9][6] <= aChar[7]) {
if (!bEnd) {
mcAnim.gotoAndStop(_root.cho);
if (bHit) {
_root.kbcControl.doDamage(this, (bHuman ? (_root.kbcTarget) : (kbcTarget)), aSkill[_root.cho - 9]);
}
} else {
aChar[7] = aChar[7] - aSkill[_root.cho - 9][6];
}
} else {
_root.SMS("NOT ENOUGH MANA POINTS!", 20);
_root.cho = 0;
}
}
if (bEnd) {
_root.cho = 0;
nCooldown = 0;
mcAnim.gotoAndStop(1);
if (nBerserkTime > 0) {
_root.kbcControl.ColorEffect(200, 0, 0, 50, mcChar);
}
}
}
}
return(false);
}
function cool() {
if (aChar[5] <= 0) {
return(false);
}
if (nCooldown < 100) {
if (_root.cho != 0) {
nCooldown = nCooldown + (0.5 + (Math.floor(Math.sqrt(aChar[3])) / 30));
} else {
nCooldown = nCooldown + (0.5 + (Math.floor(Math.sqrt(aChar[3])) / 10));
}
if (nCooldown > 100) {
nCooldown = 100;
}
if (mcCoolBar != null) {
mcCoolBar.clear();
mcCoolBar.beginFill(16711680, 100);
mcCoolBar.moveTo(0, 0);
mcCoolBar.lineTo(nCooldown, 0);
mcCoolBar.lineTo(nCooldown, 10);
mcCoolBar.lineTo(0, 10);
mcCoolBar.endFill();
mcCoolBar.beginFill(16711680, 25);
mcCoolBar.moveTo(nCooldown, 0);
mcCoolBar.lineTo(100, 0);
mcCoolBar.lineTo(100, 10);
mcCoolBar.lineTo(nCooldown, 10);
mcCoolBar.endFill();
}
return(false);
}
return(true);
}
function isCool() {
return(nCooldown >= 100);
}
function isAlive() {
return(aChar[5] > 0);
}
function dealDamage(type, dmg, maxDmg, caster, target) {
if (aChar[5] <= 0) {
return(0);
}
var _local8 = ((caster == null) || (target == null)) || ((type != 1) && (type != 0));
var _local10 = dmg < 0;
var _local4 = 0;
switch (type) {
case 0 :
case 1 :
case 2 :
if (type == 0) {
_local4 = dmg;
} else {
_local4 = dmg + random(maxDmg - dmg);
if (type == 2) {
_local8 = true;
}
}
if (!_local8) {
var _local11 = aChar[3] + caster.getStat(3);
if ((Math.random() * (aChar[3] / _local11)) > ((Math.random() * (caster.getStat(3) / _local11)) + _root.nMissFactor)) {
_local4 = 0;
} else {
_local4 = _local4 - (aItem[5] / 5);
}
if (bDef) {
_local4 = _local4 / 2;
}
}
_local4 = Math.floor(_local4);
if (_local10) {
if (_local4 > 0) {
_local4 = 0;
}
} else if (_local4 < 0) {
_local4 = 0;
}
aChar[5] = aChar[5] - _local4;
if (aChar[5] < 0) {
aChar[5] = 0;
}
if (_local4 == 0) {
if (Math.random() > 0.5) {
_root.playSound("miss", false);
} else {
_root.playSound("miss2", false);
}
_root.kbcControl.sMessage = _root.kbcControl.sMessage + ((" attacked " + aChar[0]) + " but missed");
_root.kbcControl.MissEffect(mcChar, mcAnim, 20, 5);
_root.addFText(mcChar._x, mcChar._y - 50, "MISS", 35020);
} else {
var _local12 = Math.random();
if (_local12 < 0.33) {
_root.playSound("punch3", false);
} else if (_local12 < 0.66) {
_root.playSound("punch2", false);
} else {
_root.playSound("punch", false);
}
_root.kbcControl.sMessage = _root.kbcControl.sMessage + (((" did " + _local4) + " damage to ") + aChar[0]);
_root.kbcControl.ShakeEffect(5, mcChar);
_root.addFText(mcChar._x, mcChar._y - 50, _local4, 56576);
}
break;
case 3 :
if (!_local8) {
var _local11 = aChar[3] + caster.getStat(3);
if ((Math.random() * (aChar[3] / _local11)) > ((Math.random() * (caster.getStat(3) / _local11)) + _root.nMissFactor)) {
return(0);
}
}
aFire.push([dmg, maxDmg]);
nDmg = dmg;
aChar[5] = aChar[5] - nDmg;
if (aChar[5] < 0) {
aChar[5] = 0;
}
_root.playSound("firehit", false);
_root.kbcControl.sMessage = (newline + aChar[0]) + " is on fire! (literally)";
_root.addFText(mcChar._x, mcChar._y - 50, nDmg, 16776960);
_root.kbcControl.ColorEffect(200, 200, 0, 25, mcChar);
break;
case 4 :
_local4 = Math.floor(dmg - Math.floor((aChar[4] - caster.getStat(4)) / 2));
if (_local4 > 0) {
_root.kbcControl.sMessage = _root.kbcControl.sMessage + ((" made " + aChar[0]) + " go berserk!");
_root.addFText(mcChar._x, mcChar._y - 50, "BERSERK!", 15597568);
_root.kbcControl.ColorEffect(200, 0, 0, 25, mcChar);
bBerserk = true;
bBerserkAI = bHuman;
bHuman = false;
nBerserkTime = _local4;
} else {
_root.kbcControl.MissEffect(mcChar, mcAnim, 20, 5);
_root.kbsStat.addText((" tried to make " + aChar[0]) + " go berserk but failed");
}
break;
case 5 :
var _local7 = "";
if (maxDmg != 0) {
_root.playSound("splat", false);
_local7 = ((dmg < 0) ? " lowered " : " rised ");
_local7 = _local7 + ((((aChar[0] + "'s ") + _root.kbcControl.aStatName[maxDmg]) + " by ") + dmg);
_root.addFText(mcChar._x, mcChar._y - 50, ((dmg < 0) ? ("" + dmg) : ("+" + dmg)), 10027161);
_root.kbcControl.ColorEffect(200, 0, 200, 20, mcChar);
}
switch (maxDmg) {
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
case 8 :
if (aChar[maxDmg] <= 0) {
dmg = 0;
} else if ((aChar[maxDmg] + dmg) < 0) {
dmg = -aChar[maxDmg];
}
aChar[maxDmg] = aChar[maxDmg] + dmg;
aStatChange[maxDmg] = aStatChange[maxDmg] - dmg;
break;
case 9 :
if (aItem[0][1] <= 0) {
dmg = 0;
} else if ((aItem[0][1] + dmg) < 0) {
dmg = -aItem[0][1];
}
aItem[0][1] = aItem[0][1] + dmg;
aStatChange[maxDmg] = aStatChange[maxDmg] - dmg;
break;
case 10 :
if (aItem[5] <= 0) {
dmg = 0;
} else if ((aItem[5] + dmg) < 0) {
dmg = -aItem[5];
}
aItem[5] = aItem[5] + dmg;
aStatChange[maxDmg] = aStatChange[maxDmg] - dmg;
break;
case 11 :
dmg = Math.floor(dmg * (caster.getStat(3) / aChar[3]));
nCooldown = nCooldown + dmg;
if (nCooldown < 0) {
nCooldown = 0;
} else if (nCooldown > 100) {
nCooldown = 100;
}
break;
default :
_root.kbsStat.addText("ERROR: wrong Stat Change value");
}
_root.kbcControl.sMessage = _root.kbcControl.sMessage + _local7;
break;
case 6 :
_local4 = dmg + random(maxDmg - dmg);
if (_local10) {
if (_local4 > 0) {
_local4 = 0;
}
} else if (_local4 < 0) {
_local4 = 0;
}
aChar[5] = aChar[5] + _local4;
if (aChar[5] < 0) {
aChar[5] = 0;
}
_root.kbcControl.sMessage = _root.kbcControl.sMessage + (((" healed " + aChar[0]) + " for ") + _local4);
_root.addFText(mcChar._x, mcChar._y - 50, _local4, 65280);
_root.kbcControl.ColorEffect(0, 250, 0, 25, mcChar);
}
if (checkDead()) {
if (caster == target) {
_root.cho = 0;
nCooldown = 0;
}
}
return(_local4);
}
function checkDead() {
if (aChar[5] <= 0) {
aChar[5] = 0;
mcPointer._visible = false;
mcPointer.onEnterFrame = null;
mcPointer.removeMovieClip();
mcPointer.unloadMovie();
mcAnim.gotoAndStop(4);
mcCoolBar._visible = false;
nCooldown = 0;
_root.kbsStat.addText((newline + aChar[0]) + " has fainted!");
if (!bHuman) {
for (var _local3 in _root.aMons) {
if (_root.aMons[_local3].isAlive()) {
_root.kbcTarget = _root.aMons[_local3];
break;
}
}
}
return(true);
}
return(false);
}
function doHeal(p) {
if (aChar[5] <= 0) {
return(undefined);
}
if ((_root.cho == 0) && (bAlly)) {
_root.heal[p][0]--;
nPotion = p;
nMoveType = 3;
bPotionType = false;
}
}
function doMana(p) {
if (aChar[5] <= 0) {
return(undefined);
}
if ((_root.cho == 0) && (bAlly)) {
_root.mana[p][0]--;
nPotion = p;
nMoveType = 3;
bPotionType = true;
}
}
function resetStat() {
var _local2 = 1;
while (_local2 < 9) {
aChar[_local2] = aChar[_local2] + aStatChange[_local2];
_local2++;
}
aItem[5] = aItem[5] + aStatChange[10];
}
function removeChar() {
mcChar.removeMovieClip();
mcChar.unloadMovie();
mcAnim.removeMovieClip();
mcAnim.unloadMovie();
mcPointer.removeMovieClip();
mcPointer.unloadMovie();
mcCoolBar.removeMovieClip();
mcCoolBar.unloadMovie();
}
function getGroup() {
return(aGroup);
}
function getStat(id) {
if (id == 0) {
return(-1);
}
return(aChar[id]);
}
function getName() {
return(aChar[0]);
}
function getItem(id) {
return(aItem[id][1]);
}
function getChar() {
return(mcChar);
}
function getID() {
return(nID);
}
function setAnim(f) {
if (aChar[5] > 0) {
mcAnim.gotoAndStop(f);
}
}
function setMove(m) {
nMoveType = m;
}
function setAutoTarget() {
_root.kbcTarget = this;
}
function setStat(id, n) {
switch (id) {
case 0 :
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
case 8 :
aChar[id] = n;
break;
case 9 :
aItem[0][1] = n;
break;
case 10 :
aItem[5] = n;
break;
case 11 :
nCooldown = n;
if (nCooldown > 100) {
nCooldown = 100;
} else if (nCooldown < 0) {
nCooldown = 0;
}
break;
case 12 :
nBerserkTime = n;
}
}
var bHuman = true;
var bAlly = true;
var sType = "";
var bHit = false;
var bEnd = false;
var bDef = false;
var nID = 0;
var nCooldown = 0;
var nDmg = 0;
var nMoveType = 0;
var bBerserk = false;
var bBerserkAI = false;
var nBerserkTime = 0;
var nPotion = 0;
var bPotionType = false;
var bSummon = false;
var sSummonName = "";
var aFire = null;
var nFireOut = 0;
var aChar = null;
var aItem = null;
var aSkill = null;
var aStatChange = null;
var aGroup = null;
var kbcTarget = null;
var mcChar = null;
var mcAnim = null;
var mcPointer = null;
var mcCoolBar = null;
var nHP = 0;
var nMP = 0;
var mcLoad = null;
}
Symbol 2452 MovieClip [__Packages.classes.KamiBattleControl] Frame 0
class classes.KamiBattleControl
{
function KamiBattleControl () {
}
function doDamage(char, target, skill) {
if (!target.isAlive()) {
return(undefined);
}
mcCurrent = char.getChar();
aTargetGroup = target.getGroup();
aAllyGroup = char.getGroup();
sMessage = "";
if (skill[0] == "cheat") {
sCaster = "Cheater";
} else {
sCaster = char.getName();
}
switch (skill[5]) {
case -2 :
for (var _local6 in aAllyGroup) {
if (aAllyGroup[_local6].isAlive()) {
sMessage = sMessage + (newline + sCaster);
aAllyGroup[_local6].dealDamage(skill[2], skill[3], skill[4], char, target);
}
}
_root.kbsStat.addText(sMessage);
break;
case -1 :
sMessage = sMessage + (newline + sCaster);
char.dealDamage(skill[2], skill[3], skill[4], char, target);
_root.kbsStat.addText(sMessage);
break;
case 0 :
sMessage = sMessage + (newline + sCaster);
target.dealDamage(skill[2], skill[3], skill[4], char, target);
_root.kbsStat.addText(sMessage);
break;
case 1 :
for (var _local6 in aTargetGroup) {
if (aTargetGroup[_local6].isAlive()) {
sMessage = sMessage + (newline + sCaster);
aTargetGroup[_local6].dealDamage(skill[2], skill[3], skill[4], char, target);
}
}
_root.kbsStat.addText(sMessage);
break;
case 2 :
nDmg = target.dealDamage(skill[2], skill[3], skill[4], char, target);
if (nDmg != 0) {
char.dealDamage(skill[2], -nDmg, -skill[4]);
}
_root.kbsStat.addText(((newline + sCaster) + " leeched ") + nDmg);
break;
case 3 :
nDmg = 0;
for (var _local6 in aTargetGroup) {
nDmg = nDmg + aTargetGroup[_local6].dealDamage(skill[2], skill[3], skill[4], char, target);
}
if (nDmg != 0) {
char.dealDamage(skill[2], -nDmg, -skill[4]);
}
_root.kbsStat.addText(((newline + sCaster) + " leeched ") + nDmg);
break;
case 4 :
for (var _local6 in aTargetGroup) {
if (aTargetGroup[_local6].isAlive()) {
sMessage = sMessage + (newline + sCaster);
aTargetGroup[_local6].dealDamage(skill[2], skill[3], skill[4], char, target);
}
}
for (var _local6 in aAllyGroup) {
if (aAllyGroup[_local6].isAlive()) {
sMessage = sMessage + (newline + sCaster);
aAllyGroup[_local6].dealDamage(skill[2], skill[3], skill[4], char, target);
}
}
_root.kbsStat.addText(sMessage);
}
}
function sendMsg(to, txt, d, c) {
_root.addFText(to._x, to._y - to.anim.hi, "" + d, c);
_root.kbsStat.addText(txt);
}
function HitEffect(fx, b) {
var _local3 = _root.attachMovie(fx, fx, _root.getNextHighestDepth());
if (b) {
_local3._x = mcTarget._x;
_local3._y = mcTarget._y;
} else {
_local3._x = mcCurrent._x;
_local3._y = mcCurrent._y;
}
_local3.onEnterFrame = function () {
if (this._currentframe >= this._totalframes) {
_root.removeMovie(this);
}
};
}
function MissEffect(who, tar, a, t) {
var _local3 = who.createEmptyMovieClip("moved", who.getNextHighestDepth());
_local3.tar = tar;
a = Math.abs(a);
if (who._x < (_root.swidth / 2)) {
_local3.amp = -a;
} else {
_local3.amp = a;
}
_local3.ti = t;
_local3.onEnterFrame = function () {
this.tar._x = this.amp;
this.ti--;
if (this.ti <= 0) {
this.tar._x = 0;
_root.removeMovie(this);
}
};
}
function ShakeEffect(a, tar) {
var _local3 = tar.createEmptyMovieClip("shaked", tar.getNextHighestDepth());
_local3.parent = tar;
_local3._x = tar._x;
_local3._y = tar._y;
_local3.amp = a;
_local3.onEnterFrame = function () {
this.parent._x = this._x + (random(this.amp * 2) - this.amp);
this.parent._y = this._y + (random(this.amp * 2) - this.amp);
this.amp--;
if (this.amp <= 0) {
this.parent._x = this._x;
this.parent._y = this._y;
_root.removeMovie(this);
}
};
}
function ColorEffect(cr, cg, cb, a, tar) {
var _local3 = tar.createEmptyMovieClip("colored", tar.getNextHighestDepth());
_local3.ceffect = new Color(tar);
_local3.trans = _local3.ceffect.getTransform();
_local3.doback = false;
_local3.amp = a;
_local3.cr = cr;
_local3.cg = cg;
_local3.cb = cb;
_local3.onEnterFrame = function () {
if (!this.doback) {
if (this.trans.rb < this.cr) {
this.trans.rb = this.trans.rb + this.amp;
}
if (this.trans.gb < this.cg) {
this.trans.gb = this.trans.gb + this.amp;
}
if (this.trans.bb < this.cb) {
this.trans.bb = this.trans.bb + this.amp;
}
this.doback = ((this.trans.rb >= this.cr) && (this.trans.gb >= this.cg)) && (this.trans.bb >= this.cb);
} else {
if (this.trans.rb > 0) {
this.trans.rb = this.trans.rb - this.amp;
}
if (this.trans.gb > 0) {
this.trans.gb = this.trans.gb - this.amp;
}
if (this.trans.bb > 0) {
this.trans.bb = this.trans.bb - this.amp;
}
if (((this.trans.rb <= 0) && (this.trans.gb <= 0)) && (this.trans.bb <= 0)) {
this.trans.rb = 0;
this.trans.gb = 0;
this.trans.bb = 0;
this.ceffect.setTransform(this.trans);
_root.removeMovie(this);
}
}
this.ceffect.setTransform(this.trans);
};
}
var aStatName = ["name", "STR", "VIT", "DEX", "INT", "HP", "MaxHP", "MP", "MaxMP", "ATK", "DEF", "Move time"];
var mcTarget = null;
var mcCurrent = null;
var sMessage = null;
var sCaster = null;
var aTargetGroup = null;
var aAllyGroup = null;
var nDmg = 0;
}
Symbol 2453 MovieClip [__Packages.classes.KamiBattleStatus] Frame 0
class classes.KamiBattleStatus
{
function KamiBattleStatus () {
mcStat = _root.BInter.attachMovie("Battle_Status", "stat", _root.BInter.getNextHighestDepth());
mcStat._x = (_root.swidth - mcStat._width) - 5;
mcStat._y = (_root.sheight - mcStat._height) - 5;
mcStat.gotoAndStop(1);
mcStat.onEnterFrame = function () {
if (!_root.BInter._visible) {
return(undefined);
}
_root.kbsStat.process();
};
tfStat = mcStat.createTextField("subtext", mcStat.getNextHighestDepth(), 0, 0, mcStat._width, mcStat._height);
tfStat.selectable = false;
tfStat.multiline = true;
tfStat.embedFonts = true;
tfStat.wordWrap = true;
var _local3 = _root.format.size;
var _local4 = _root.format.bold;
_root.format.size = 10;
_root.format.bold = false;
tfStat.setTextFormat(_root.format);
tfStat.setNewTextFormat(_root.format);
_root.format.size = _local3;
_root.format.bold = _local3;
}
function process() {
bPlayerDead = true;
bEnemyDead = true;
if (_root.cMode >= 0) {
_root.showCommandMenu(false);
if (_root.cho == 0) {
_root.kbcCurrent = null;
var _local5 = 0;
while (_local5 < _root.aMons.length) {
if (_root.aMons[_local5].cool()) {
_root.aMons[_local5].process();
if (_root.cho != 0) {
_root.kbcCurrent = _root.aMons[_local5];
break;
}
}
_local5++;
}
if (_root.kbcCurrent == null) {
bGotCurrent = false;
_root.kbcCurrentPlayer = null;
_local5 = 0;
while (_local5 < _root.aPlayers.length) {
if (_root.aPlayers[_local5].cool()) {
if (_root.charSelect == _root.aPlayers[_local5].getID()) {
_root.kbcPrioPlayer = _root.aPlayers[_local5];
bGotCurrent = false;
}
if (_root.aPlayers[_local5].process(bGotCurrent)) {
_root.kbcCurrentPlayer = _root.aPlayers[_local5];
bGotCurrent = true;
}
if (_root.cho != 0) {
_root.kbcCurrent = _root.aPlayers[_local5];
break;
}
} else if (_root.charSelect == _root.aPlayers[_local5].getID()) {
_root.kbcPrioPlayer = null;
}
_local5++;
}
if (_root.kbcCurrent == null) {
if (Key.isDown(32)) {
if (_root.kbcPrioPlayer != null) {
_root.kbcPrioPlayer.setMove(1);
} else {
_root.kbcCurrentPlayer.setMove(1);
}
}
}
}
} else {
_root.kbcCurrent.process();
var _local5 = 0;
while (_local5 < _root.aChars.length) {
_root.aChars[_local5].cool();
_local5++;
}
}
if (_root.cho == 0) {
var _local3 = 1;
while (_local3 <= _root.playersCount) {
if ((_root.aPlayerTeam[_local3][0][5] > 0) && (_root.aPlayerTeam[_local3][0][5] != null)) {
bPlayerDead = false;
}
_local3++;
}
_local3 = 1;
while (_local3 <= _root.monstersCount) {
if ((_root.aEnemyTeam[_local3][0][5] > 0) && (_root.aEnemyTeam[_local3][0][5] != null)) {
bEnemyDead = false;
}
_local3++;
}
if (bEnemyDead) {
if (_root.cMode > -10) {
_root.showCommandMenu(false);
_root.cMode = -21;
nLvlPlayer = 1;
nTimeout = 60;
var _local4 = 0;
while (_local4 <= _root.aPlayers.length) {
_root.aPlayers[_local4].resetStat();
_root.aPlayers[_local4].setAnim(2);
_local4++;
}
_local4 = 1;
while (_local4 <= _root.playersCount) {
if (_root.aPlayerTeam[_local4][0][11] != null) {
_root.expToGive = Math.floor(_root.expToGive / _root.aPlayerTeam[_local4][0][11]);
break;
}
_local4++;
}
addText("\nPlayer wins!");
addText(("\nPlayer earned: " + _root.cashToGive) + " $");
_root.addCash(_root.cashToGive);
_root.cashToGive = 0;
}
} else if (bPlayerDead) {
if (_root.cMode > -10) {
_root.showCommandMenu(false);
_root.cMode = -10;
nTimeout = 60;
for (var _local8 in _root.aPlayers) {
_root.aPlayers[_local8].resetStat();
}
for (var _local8 in _root.aMons) {
_root.aMons[_local8].setAnim(2);
}
addText("\nParty has been defeated!");
}
}
}
} else {
switch (_root.cMode) {
case -10 :
if (nTimeout > 0) {
nTimeout--;
} else {
var _local4 = 1;
while (_local4 <= _root.playersCount) {
if (_root.aPlayerTeam[_local4][0][5] != null) {
_root.aPlayerTeam[_local4][0][5] = 1;
}
_local4++;
}
_root.cMode = -50;
_root.kbcCurrent = null;
_root.kbcCurrentPlayer = null;
_root.kbcPrioPlayer = null;
_root.kbcTarget = null;
_root.aChars = new Array();
_root.aPlayers = new Array();
_root.aMons = new Array();
_root.BInter._visible = false;
_root.fade(0, 1, 10, _root.fightExitLost);
}
break;
case -11 :
if (nTimeout > 0) {
nTimeout--;
} else {
_root.cMode = -50;
_root.kbcCurrent = null;
_root.kbcCurrentPlayer = null;
_root.kbcPrioPlayer = null;
_root.kbcTarget = null;
_root.aChars = new Array();
_root.aPlayers = new Array();
_root.aMons = new Array();
_root.BInter._visible = false;
_root.fade(0, 1, 10, _root.fightExitWon);
}
break;
case -21 :
if (!_root.kbuSum.isVisible()) {
if (nLvlPlayer > _root.playersCount) {
_root.cMode = -11;
break;
}
if ((_root.aPlayerTeam[nLvlPlayer][0][9] != null) && (_root.aPlayerTeam[nLvlPlayer][0][5] > 0)) {
_root.aPlayerTeam[nLvlPlayer][0][9] = _root.aPlayerTeam[nLvlPlayer][0][9] + _root.expToGive;
if (_root.aPlayerTeam[nLvlPlayer][0][9] >= _root.aPlayerTeam[nLvlPlayer][0][10]) {
addText((newline + _root.aPlayerTeam[nLvlPlayer][0][0]) + " levels up!");
_root.aPlayerTeam[nLvlPlayer][0][5] = _root.aPlayerTeam[nLvlPlayer][0][6];
_root.aPlayerTeam[nLvlPlayer][0][7] = _root.aPlayerTeam[nLvlPlayer][0][8];
_root.aPlayerTeam[nLvlPlayer][0][11]++;
_root.aPlayerTeam[nLvlPlayer][0][9] = 0;
_root.aPlayerTeam[nLvlPlayer][0][10] = Math.floor(_root.aPlayerTeam[nLvlPlayer][0][10] + (_root.aPlayerTeam[nLvlPlayer][0][10] / 10));
_root.aPlayerTeam[nLvlPlayer][0][13](_root.aPlayerTeam[nLvlPlayer][0], _root.aPlayerTeam[nLvlPlayer][1], _root.aPlayerTeam[nLvlPlayer][2]);
_root.doLevelUp(_root.aPlayerTeam[nLvlPlayer][0], 5);
nTimeout = 0;
}
}
nLvlPlayer++;
}
break;
case -30 :
if (nTimeout > 0) {
nTimeout--;
} else {
var _local6 = 0;
var _local7 = 0;
var _local4 = 1;
while (_local4 <= _root.playersCount) {
if (_root.aPlayerTeam[_local4][0][3] != null) {
_local6 = _local6 + _root.aPlayerTeam[_local4][0][3];
}
_local4++;
}
_local4 = 1;
while (_local4 <= _root.monstersCount) {
if (_root.aEnemyTeam[_local4][0][3] != null) {
_local7 = _local7 + _root.aEnemyTeam[_local4][0][3];
}
_local4++;
}
_local6 = (_local6 / 3) * Math.random();
_local7 = (_local7 / 3) * Math.random();
if (_local6 >= _local7) {
for (var _local8 in _root.aPlayers) {
_root.aPlayers[_local8].resetStat();
_root.aPlayers[_local8].setAnim(8);
}
addText("\nPlayer runs away!");
nTimeout = 30;
_root.cMode = -11;
} else {
addText("\nPlayer failed to run!");
_root.cho = 0;
_root.cMode = 0;
}
}
break;
case -100 :
_root.SMS((("Loading\n" + _root.readLoad) + "/") + _root.toLoad, 3);
if (_root.toLoad != _root.readLoad) {
break;
}
var _local6 = 0;
for (var _local8 in _root.aChars) {
_local6 = _local6 + _root.aChars[_local8].getStat(3);
}
for (var _local8 in _root.aChars) {
_root.aChars[_local8].setStat(11, Math.floor(_root.aChars[_local8].getStat(3) - (_local6 / _root.aChars.length)) * 5);
}
_root.cMode = 0;
}
}
}
function addText(s) {
tfStat.text = tfStat.text + s;
tfStat.maxscroll = tfStat.length;
tfStat.scroll = tfStat.length;
}
function clearText() {
tfStat.text = "";
tfStat.maxscroll = 0;
tfStat.scroll = 0;
}
function setTimeout(n) {
nTimeout = n;
}
var bPlayerDead = false;
var bEnemyDead = false;
var bGotCurrent = false;
var nLvlPlayer = 0;
var nTimeout = 0;
var mcStat = null;
var tfStat = null;
}
Symbol 433 MovieClip Frame 3
stop();
Symbol 459 MovieClip Frame 51
stop();
Symbol 468 MovieClip Frame 5
_parent._parent.attacked = true;
Symbol 468 MovieClip Frame 18
_parent._parent.endex = true;
Symbol 509 MovieClip Frame 17
_parent._parent.attacked = true;
_root.fadeBack(50, 20, 5);
_root.shake(5, 5);
Symbol 509 MovieClip Frame 28
_parent._parent.endex = true;
Symbol 515 MovieClip Frame 33
_parent._parent.attacked = true;
_root.HitEffect("SpitEffect", true);
Symbol 515 MovieClip Frame 38
_parent._parent.endex = true;
Symbol 536 MovieClip Frame 5
_parent._parent.attacked = true;
Symbol 536 MovieClip Frame 7
_parent._parent.attacked = true;
Symbol 536 MovieClip Frame 9
_parent._parent.attacked = true;
Symbol 536 MovieClip Frame 11
_parent._parent.attacked = true;
Symbol 536 MovieClip Frame 13
_parent._parent.attacked = true;
Symbol 536 MovieClip Frame 16
_parent._parent.attacked = true;
Symbol 536 MovieClip Frame 20
_parent._parent.endex = true;
Symbol 556 MovieClip [CatRazor] Frame 1
_root.playSound("razor", false);
Symbol 587 MovieClip Frame 7
stop();
Symbol 607 MovieClip Frame 15
stop();
Symbol 629 MovieClip Frame 13
_root.HitEffect("CatRazor", true);
Symbol 629 MovieClip Frame 25
_parent._parent.attacked = true;
Symbol 629 MovieClip Frame 43
_parent._parent.end = true;
Symbol 659 MovieClip Frame 1
stop();
Symbol 659 MovieClip Frame 3
stop();
Symbol 662 MovieClip Frame 1
stop();
Symbol 662 MovieClip Frame 3
stop();
Symbol 665 MovieClip Frame 1
stop();
Symbol 665 MovieClip Frame 3
stop();
Symbol 668 MovieClip Frame 1
stop();
Symbol 668 MovieClip Frame 3
stop();
Symbol 721 MovieClip Frame 9
stop();
Symbol 724 MovieClip Frame 2
stop();
Symbol 733 MovieClip Frame 14
stop();
Symbol 790 MovieClip Frame 11
if (!_root.checkFlag("gotOsakaShoes")) {
if (Math.random() < 0.2) {
this.gotoAndPlay(47);
}
}
Symbol 790 MovieClip Frame 17
_parent._parent.attack = true;
Symbol 790 MovieClip Frame 46
_parent._parent.end = true;
Symbol 790 MovieClip Frame 47
_root.kbsStat.addText("\nOsaka attacked but got distracted!");
Symbol 790 MovieClip Frame 87
_parent._parent.end = true;
Symbol 811 MovieClip Frame 4
_root.fadeBack(75, 25, 5);
Symbol 811 MovieClip Frame 28
_root.HitEffect("OsakaTruck", true);
Symbol 811 MovieClip Frame 31
_parent._parent.attack = true;
Symbol 811 MovieClip Frame 40
_parent._parent.end = true;
Symbol 863 MovieClip Frame 13
_root.fadeBack(70, 10, 5);
Symbol 863 MovieClip Frame 25
_parent._parent.attack = true;
Symbol 863 MovieClip Frame 36
_parent._parent.end = true;
Symbol 898 MovieClip Frame 1
_root.fadeBack(80, 17, 5);
Symbol 898 MovieClip Frame 9
_parent._parent.attack = true;
Symbol 898 MovieClip Frame 14
_parent._parent.attack = true;
Symbol 898 MovieClip Frame 19
_parent._parent.attack = true;
Symbol 898 MovieClip Frame 48
_parent._parent.end = true;
Symbol 940 MovieClip Frame 14
stop();
Symbol 948 MovieClip Frame 5
stop();
Symbol 973 MovieClip Frame 25
stop();
Symbol 1023 MovieClip Frame 31
_parent._parent.attacked = true;
Symbol 1023 MovieClip Frame 58
_parent._parent.end = true;
Symbol 1046 MovieClip Frame 8
_root.fadeBack(50, 25, 20);
Symbol 1046 MovieClip Frame 23
_root.HitEffect("Trick_Flame", true);
Symbol 1046 MovieClip Frame 26
_parent._parent.attacked = true;
Symbol 1046 MovieClip Frame 40
_parent._parent.end = true;
Symbol 1064 MovieClip Frame 7
_root.fadeBack(50, 25, 20);
Symbol 1064 MovieClip Frame 24
_root.HitEffect("Trick_Hipno", true);
Symbol 1064 MovieClip Frame 41
_parent._parent.attacked = true;
Symbol 1064 MovieClip Frame 46
_parent._parent.end = true;
Symbol 1086 MovieClip Frame 7
_root.fadeBack(50, 25, 20);
Symbol 1086 MovieClip Frame 10
_root.HitEffect("Trick_Leech", true);
Symbol 1086 MovieClip Frame 38
_parent._parent.attacked = true;
Symbol 1086 MovieClip Frame 44
_parent._parent.end = true;
Symbol 1146 MovieClip Frame 8
stop();
Symbol 1151 MovieClip Frame 4
stop();
Symbol 1157 MovieClip Frame 9
stop();
Symbol 1189 MovieClip Frame 12
_parent._parent.attack = true;
Symbol 1189 MovieClip Frame 32
_parent._parent.end = true;
Symbol 1235 MovieClip Frame 1
_root.fadeBack(70, 30, 5);
Symbol 1235 MovieClip Frame 32
_parent._parent.attack = true;
_root.HitEffect("SakakiSnowBall", true);
Symbol 1235 MovieClip Frame 47
_parent._parent.end = true;
Symbol 1278 MovieClip Frame 1
_root.fadeBack(70, 25, 10);
Symbol 1278 MovieClip Frame 10
_parent._parent.attack = true;
Symbol 1278 MovieClip Frame 16
_parent._parent.attack = true;
Symbol 1278 MovieClip Frame 34
_parent._parent.end = true;
Symbol 1319 MovieClip Frame 5
_root.fadeBack(70, 10, 5);
Symbol 1319 MovieClip Frame 16
_parent._parent.attack = true;
Symbol 1319 MovieClip Frame 33
_parent._parent.end = true;
Symbol 1347 MovieClip Frame 6
stop();
Symbol 1352 MovieClip Frame 7
stop();
Symbol 1360 MovieClip Frame 13
stop();
Symbol 1392 MovieClip Frame 17
_parent._parent.attacked = true;
Symbol 1392 MovieClip Frame 40
_parent._parent.endex = true;
Symbol 1426 MovieClip Frame 17
_parent._parent.attacked = true;
Symbol 1426 MovieClip Frame 40
_parent._parent.endex = true;
Symbol 1437 MovieClip Frame 41
stop();
Symbol 1438 MovieClip [FinalForground] Frame 1
this.onEnterFrame = function () {
if (_root._currentframe != 8) {
this.onEnterFrame = null;
this._visible = false;
this.removeMovieClip();
this.unloadMovie();
removeMovieClip(this);
}
};
Instance of Symbol 1437 MovieClip in Symbol 1438 MovieClip [FinalForground] Frame 1
onClipEvent (load) {
var tout = (Math.random() * 180);
}
onClipEvent (enterFrame) {
if (this.tout > 0) {
this.tout--;
} else if (this._y > 0) {
this._y = this._y - 10;
} else {
this._x = Math.random() * 500;
this._y = 500;
this.gotoAndPlay(1);
}
}
Instance of Symbol 1437 MovieClip in Symbol 1438 MovieClip [FinalForground] Frame 1
onClipEvent (load) {
var tout = (Math.random() * 180);
}
onClipEvent (enterFrame) {
if (this.tout > 0) {
this.tout--;
} else if (this._y > 0) {
this._y = this._y - 10;
} else {
this._x = Math.random() * 500;
this._y = 500;
this.gotoAndPlay(1);
}
}
Instance of Symbol 1437 MovieClip in Symbol 1438 MovieClip [FinalForground] Frame 1
onClipEvent (load) {
var tout = (Math.random() * 180);
}
onClipEvent (enterFrame) {
if (this.tout > 0) {
this.tout--;
} else if (this._y > 0) {
this._y = this._y - 10;
} else {
this._x = Math.random() * 500;
this._y = 500;
this.gotoAndPlay(1);
}
}
Instance of Symbol 1437 MovieClip in Symbol 1438 MovieClip [FinalForground] Frame 1
onClipEvent (load) {
var tout = (Math.random() * 180);
}
onClipEvent (enterFrame) {
if (this.tout > 0) {
this.tout--;
} else if (this._y > 0) {
this._y = this._y - 10;
} else {
this._x = Math.random() * 500;
this._y = 500;
this.gotoAndPlay(1);
}
}
Instance of Symbol 1437 MovieClip in Symbol 1438 MovieClip [FinalForground] Frame 1
onClipEvent (load) {
var tout = (Math.random() * 180);
}
onClipEvent (enterFrame) {
if (this.tout > 0) {
this.tout--;
} else if (this._y > 0) {
this._y = this._y - 10;
} else {
this._x = Math.random() * 500;
this._y = 500;
this.gotoAndPlay(1);
}
}
Symbol 1482 MovieClip Frame 38
_root.fadeBack(50, 10, 20);
_root.playSound("sword", false);
Symbol 1482 MovieClip Frame 43
_parent._parent.attacked = true;
_root.playSound("slice", false);
Symbol 1482 MovieClip Frame 50
_parent._parent.endex = true;
Symbol 1494 MovieClip [FightSign] Frame 1
stop();
Symbol 1510 MovieClip [CatClaws2] Frame 2
_root.playSound("slice", false);
Symbol 1510 MovieClip [CatClaws2] Frame 5
_root.playSound("slice", false);
Symbol 1510 MovieClip [CatClaws2] Frame 8
_root.playSound("slice", false);
Symbol 1510 MovieClip [CatClaws2] Frame 11
_root.playSound("slice", false);
Symbol 1510 MovieClip [CatClaws2] Frame 14
_root.playSound("slice", false);
Symbol 1510 MovieClip [CatClaws2] Frame 17
_root.playSound("slice", false);
Symbol 1511 MovieClip [CatClaws1] Frame 1
_root.playSound("slice", false);
Symbol 1532 MovieClip [SpitEffect] Frame 5
_parent._parent.endex = true;
Symbol 1555 MovieClip [BubbleBut] Frame 1
stop();
this.onPress = function () {
this.gotoAndStop(3);
};
this.onRollOver = function () {
this.gotoAndStop(2);
if ((this.tip != null) && (this.tip != "")) {
_root.SMS(this.tip, this.tip.length + (this.tip.length / 10));
}
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = this.onRollOut;
Instance of Symbol 1555 MovieClip [BubbleBut] in Symbol 1560 MovieClip [FAQ] Frame 1
onClipEvent (load) {
this.lable = "JUMP TO TUTORIAL";
this.onRelease = function () {
_root.Inter.FAQ._visible = false;
_root.Player._x = _root.swidth / 2;
_root.Player._y = _root.sheight / 2;
_root.showStats = false;
_root.showItems = false;
_root.showEquip = false;
_root.showHUD = false;
_root.showPlayer = true;
_root.showPlay = false;
_root.timeFlow = false;
_root.playerCanMove = true;
_root.Sun = false;
_root.bEnemyArea = false;
_root.blackMap = false;
_root.scrollEffect = 0;
_root.moveTime(0);
_root.SMS("", 0);
_root.warpTo("Tutorial");
};
}
Symbol 1624 MovieClip Frame 30
_root.fadeBack(50, 10, 20);
Symbol 1624 MovieClip Frame 35
_parent._parent.attacked = true;
_root.HitEffect("CatClaws1", true);
Symbol 1624 MovieClip Frame 50
_parent._parent.endex = true;
Symbol 1644 MovieClip Frame 27
_root.fade(0, 1, 100);
Symbol 1644 MovieClip Frame 35
_parent._parent.attacked = true;
_root.HitEffect("Blood1", true);
Symbol 1644 MovieClip Frame 40
_parent._parent.endex = true;
Symbol 1655 MovieClip Frame 31
_root.fade(0, 5, 20);
Symbol 1655 MovieClip Frame 49
_parent._parent.attacked = true;
_root.HitEffect("Blood2", true);
Symbol 1655 MovieClip Frame 55
_parent._parent.endex = true;
Symbol 1658 MovieClip Frame 5
_root.HitEffect("Shadow_Fear", true);
Symbol 1658 MovieClip Frame 31
_parent._parent.attacked = true;
Symbol 1658 MovieClip Frame 33
_parent._parent.endex = true;
Symbol 1681 MovieClip Frame 28
_parent._visible = false;
_parent.gotoAndStop(4);
Symbol 1688 MovieClip Frame 5
_root.fadeBack(50, 20, 5);
Symbol 1688 MovieClip Frame 14
_root.HitEffect("CatClaws2", true);
Symbol 1688 MovieClip Frame 15
_parent._parent.attacked = true;
Symbol 1688 MovieClip Frame 18
_parent._parent.attacked = true;
Symbol 1688 MovieClip Frame 21
_parent._parent.attacked = true;
Symbol 1688 MovieClip Frame 24
_parent._parent.attacked = true;
Symbol 1688 MovieClip Frame 27
_parent._parent.attacked = true;
Symbol 1688 MovieClip Frame 30
_parent._parent.attacked = true;
Symbol 1688 MovieClip Frame 35
_parent._parent.endex = true;
Symbol 1735 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 1755 MovieClip Frame 1
if (!_root.allowLights) {
_root.removeMovie(this);
}
Instance of Symbol 1755 MovieClip in Symbol 1770 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
_root.lamp(this);
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 1770 MovieClip Frame 6
_root.ForeEffects.attachMovie("FinalForground", "FinalForground", _root.ForeEffects.getNextHighestDepth());
Symbol 1821 MovieClip Frame 4
this.gotoAndPlay(2);
Symbol 1880 MovieClip Frame 3
this.onEnterFrame = function () {
if (_root.tex < 250) {
green._visible = false;
yellow._visible = false;
red._visible = true;
} else if (_root.tex < 300) {
green._visible = false;
yellow._visible = true;
red._visible = true;
} else if (_root.tex < 550) {
green._visible = true;
yellow._visible = false;
red._visible = false;
}
};
Instance of Symbol 1755 MovieClip "red" in Symbol 1880 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(4);
_root.lamp(this);
}
Instance of Symbol 1755 MovieClip "yellow" in Symbol 1880 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(3);
_root.lamp(this);
}
Instance of Symbol 1755 MovieClip "green" in Symbol 1880 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(5);
_root.lamp(this);
}
Symbol 1880 MovieClip Frame 4
this.onEnterFrame = function () {
if (_root.tex < 250) {
green._visible = false;
yellow._visible = false;
red._visible = true;
} else if (_root.tex < 300) {
green._visible = false;
yellow._visible = true;
red._visible = true;
} else if (_root.tex < 550) {
green._visible = true;
yellow._visible = false;
red._visible = false;
}
};
Instance of Symbol 1755 MovieClip "red" in Symbol 1880 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(4);
_root.lamp(this);
}
Instance of Symbol 1755 MovieClip "yellow" in Symbol 1880 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(3);
_root.lamp(this);
}
Instance of Symbol 1755 MovieClip "green" in Symbol 1880 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(5);
_root.lamp(this);
}
Symbol 1917 MovieClip Frame 1
if (!_root.allowLights) {
this.unloadMovie();
this.removeMovieClip();
removeMovieClip(this);
}
Symbol 1932 MovieClip Frame 361
this.gotoAndStop(1);
Symbol 2021 MovieClip Frame 1
this.gotoAndPlay(Math.floor(Math.random() * 14) + 1);
Instance of Symbol 1755 MovieClip in Symbol 2047 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(5);
_root.lamp(this);
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.hr > 20) || (_root.hr < 7)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 2151 MovieClip Frame 1
var bds = this.getBounds(_root);
var checkWarp = function (mc) {
if ((this.bds.xMin < mc._x) && (this.bds.xMax > mc._x)) {
if ((this.bds.yMin < mc._y) && (this.bds.yMax > mc._y)) {
return(true);
}
}
return(false);
};
Symbol 2207 MovieClip Frame 1
stop();
Symbol 2207 MovieClip Frame 10
stop();
Symbol 2273 MovieClip Frame 1
function answerWrong() {
if (!_root.cheat) {
this._visible = false;
_root.displayPlayer(true);
_root.displayPotions(true);
_root.displayCash(true);
_root.displayStatus(true);
_root.displayItems(true);
_root.displayPlaylist(true);
_root.displayEquip(true);
_root.setMusicVolume(_root.mcMillionStart.nOldMusicVol);
_root.noMusicFade = false;
_root.playMusic("Diablo - Dungeon");
_root.removeTalk(null);
_root.forceFight();
}
}
function answerRight() {
this._visible = false;
_root.displayPlayer(true);
_root.displayPotions(true);
_root.displayCash(true);
_root.displayStatus(true);
_root.displayItems(true);
_root.displayPlaylist(true);
_root.displayEquip(true);
_root.setMusicVolume(_root.mcMillionStart.nOldMusicVol);
_root.noMusicFade = false;
_root.playMusic("Diablo - Dungeon");
_root.setFlag("dungeonFinalDoor");
_root.removeTalk(this);
_root.DungeonDoor02.gotoAndStop(2);
}
Instance of Symbol 2265 MovieClip in Symbol 2273 MovieClip Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.answerRight();
};
}
Instance of Symbol 2265 MovieClip in Symbol 2273 MovieClip Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.answerWrong();
};
}
Instance of Symbol 2265 MovieClip in Symbol 2273 MovieClip Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.answerWrong();
};
}
Instance of Symbol 2265 MovieClip in Symbol 2273 MovieClip Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.answerWrong();
};
}
Symbol 2392 MovieClip Frame 1
this._visible = false;
var tout = (Math.random() * 20);
this.onEnterFrame = function () {
if (this.tout > 0) {
this.tout--;
} else {
this._visible = true;
this._x = this._x + 5;
this._y = this._y - 5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this._parent.posx = this._parent.posx + 5;
this._x = (this._parent.posx - 30) + (Math.random() * 60);
this._y = 15 + (Math.random() * 15);
this._alpha = 100;
}
}
};
Symbol 2396 MovieClip Frame 36
var posx = 0;
Instance of Symbol 2392 MovieClip in Symbol 2396 MovieClip Frame 37
onClipEvent (load) {
this._visible = false;
var tout = (Math.random() * 20);
}
onClipEvent (enterFrame) {
if (this.tout > 0) {
this.tout--;
} else {
this._visible = true;
this._x = this._x + (5 + Math.random());
this._y = this._y - (5 + Math.random());
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this._parent.posx = this._parent.posx + 10;
this._x = this._parent.posx + (Math.random() * 10);
this._y = 22 + (Math.random() * 10);
this._alpha = 100;
}
}
}
Instance of Symbol 2392 MovieClip in Symbol 2396 MovieClip Frame 37
onClipEvent (load) {
this._visible = false;
var tout = (Math.random() * 20);
}
onClipEvent (enterFrame) {
if (this.tout > 0) {
this.tout--;
} else {
this._visible = true;
this._x = this._x + (5 + Math.random());
this._y = this._y - (5 + Math.random());
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this._parent.posx = this._parent.posx + 10;
this._x = this._parent.posx + (Math.random() * 10);
this._y = 22 + (Math.random() * 10);
this._alpha = 100;
}
}
}
Instance of Symbol 2392 MovieClip in Symbol 2396 MovieClip Frame 37
onClipEvent (load) {
this._visible = false;
var tout = (Math.random() * 20);
}
onClipEvent (enterFrame) {
if (this.tout > 0) {
this.tout--;
} else {
this._visible = true;
this._x = this._x + (5 + Math.random());
this._y = this._y - (5 + Math.random());
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this._parent.posx = this._parent.posx + 10;
this._x = this._parent.posx + (Math.random() * 10);
this._y = 22 + (Math.random() * 10);
this._alpha = 100;
}
}
}
Instance of Symbol 2392 MovieClip in Symbol 2396 MovieClip Frame 37
onClipEvent (load) {
this._visible = false;
var tout = (Math.random() * 20);
}
onClipEvent (enterFrame) {
if (this.tout > 0) {
this.tout--;
} else {
this._visible = true;
this._x = this._x + (5 + Math.random());
this._y = this._y - (5 + Math.random());
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this._parent.posx = this._parent.posx + 10;
this._x = this._parent.posx + (Math.random() * 10);
this._y = 22 + (Math.random() * 10);
this._alpha = 100;
}
}
}
Instance of Symbol 2392 MovieClip in Symbol 2396 MovieClip Frame 37
onClipEvent (load) {
this._visible = false;
var tout = (Math.random() * 20);
}
onClipEvent (enterFrame) {
if (this.tout > 0) {
this.tout--;
} else {
this._visible = true;
this._x = this._x + (5 + Math.random());
this._y = this._y - (5 + Math.random());
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this._parent.posx = this._parent.posx + 10;
this._x = this._parent.posx + (Math.random() * 10);
this._y = 22 + (Math.random() * 10);
this._alpha = 100;
}
}
}
Symbol 2396 MovieClip Frame 123
stop();
this.onKeyDown = function () {
if (Key.isDown(32)) {
_root.removeTalk(this);
Key.removeListener(this);
_root.gotoAndStop("Credits");
}
};
Key.addListener(this);
var say = new Array();
say[0] = "What is going on?!\nIt seems he also was a clone!\n...\nBut where is the real one then?";
_root.talk(this);
Symbol 2410 MovieClip Frame 160
this._parent.nextFrame();
Instance of Symbol 1852 MovieClip in Symbol 2422 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
objectex(this);
}
Symbol 2422 MovieClip Frame 119
this._parent.nextFrame();
Symbol 2431 MovieClip Frame 120
this._parent.nextFrame();
Symbol 2442 MovieClip Frame 121
_root.gotoAndStop("RetryScene");
Symbol 2443 MovieClip Frame 25
stop();