Frame 1
stop();
Instance of Symbol 457 MovieClip in Frame 1
onClipEvent (enterFrame) {
Total = _root.getBytesTotal();
Loaded = _root.getBytesLoaded();
if (loaded >= Total) {
_root.play();
} else {
parcent = (Loaded / Total) * 100;
parcent_text = Math.round(parcent);
Bar.p_Bar(parcent_text);
cycle._alpha = 100 - parcent_text;
_root.stop();
}
}
Frame 2
function Continue() {
save = SharedObject.getLocal("save_00");
PPexp = save.data.exp;
PPlv = save.data.lv;
PPMexp = save.data.Mexp;
PPpow = save.data.pow;
PPHP = save.data.HP;
PPMHP = save.data.MHP;
PPstageNum = save.data.stageNum;
PPeNum = save.data.eNum;
PcXpos = save.data.PcXpos;
PcYpos = save.data.PcYpos;
PPgold = save.data.gold;
PPrevives = save.data.revives;
UserName = save.data.UserName;
if (PPexp == undefined) {
PPexp = 0;
}
if (PPMexp == undefined) {
PPMexp = 100;
}
if (PPlv == undefined) {
PPlv = 1;
}
if (PPpow == undefined) {
PPpow = 30;
}
if (PPHP == undefined) {
PPHP = 100;
}
if (PPMHP == undefined) {
PPMHP = 100;
}
if (PPstageNum == undefined) {
PPstageNum = 1;
}
if (PPeNum == undefined) {
PPeNum = 2;
}
if (PPgold == undefined) {
PPgold = 0;
}
if (PPrevives == undefined) {
PPrevives = 0;
}
if (UserName == undefined) {
UserName = "NoName";
}
dev = ("LV:" + PPlv) + newline;
dev = dev + (((("EXP:" + PPexp) + "/") + PPMexp) + newline);
dev = dev + ((("HP:" + PPHP) + "/") + PPMHP);
}
Continue();
loadData.name = UserName;
loadData.pow = PPpow;
loadData.exp = PPexp;
loadData.lv = PPlv;
loadData.gold = PPgold;
function PlayStart() {
PPexp = 0;
PPMexp = 100;
PPlv = 1;
PPpow = 30;
PPHP = 100;
PPMHP = 100;
PPstageNum = 1;
PPeNum = 2;
PcXpos = (PcYpos = 0);
PPrevives = (PPgold = 0);
play();
}
stop();
Instance of Symbol 425 MovieClip "ChoseSelectionMc" in Frame 2
onClipEvent (load) {
_parent.msg = "";
y = _y;
sw = 1;
}
onClipEvent (enterFrame) {
if (sw) {
if (Key.isDown(87)) {
menu--;
sw = 0;
}
if (Key.isDown(83)) {
menu++;
sw = 0;
}
if (Key.isDown(84)) {
if (menu == 1) {
_parent.play();
}
if (menu == 2) {
_parent.PlayStart();
_parent.play();
}
if (menu == 3) {
}
sw = 0;
}
}
if (menu <= 1) {
menu = 1;
}
if (menu >= 3) {
menu = 3;
}
if (menu == 1) {
_y = (y + 0);
Selection.setFocus(null);
}
if (menu == 2) {
_y = (y + 95);
Selection.setFocus(null);
}
if (menu == 3) {
_y = (y + 155);
selectionF = Selection.getFocus();
if (selectionF.indexOf("F1") == undefined) {
Selection.setFocus("_parent.F1");
}
}
}
onClipEvent (keyUp) {
sw = 1;
}
Frame 3
function StageClear() {
StageClearMc._x = 400;
StageClearMc._y = 300;
StageClearMc.gotoAndPlay(2);
world.stopSc(10000);
}
function SaveStatus() {
PPMexp = status.expMc.Mexp;
PPexp = status.expMc.exp;
PPlv = status.lv;
PPpow = world.pc.pow;
PPHP = world.pc.pc.hp.HP;
PPMHP = world.pc.pc.hp.MHP;
PPtime = world.pc.pc.timeMc.time;
PPgold = status.gold;
PPrevives = status.revives;
}
function CleanUp() {
world.stopSc(5000);
CleanUpMc._x = 400;
CleanUpMc._y = 300;
CleanUpMc.gotoAndPlay(2);
}
function SaveFc() {
SaveStage = status.stageNum;
SavePcXpos = world.pc._x + 30;
SavePcYpos = world.pc._y + 30;
world.StatusUp(world.pc.pc.hp.MHP, "Hp+", 0, -255, -255);
world.pc.pc.hp.NHP = world.pc.pc.hp.MHP;
world.stopSc(5000);
SaveMc._x = 400;
SaveMc._y = 300;
SaveMc.gotoAndPlay(2);
}
trace("main");
_quality = "low";
status.stageNum = PPstageNum;
formData = new LoadVars();
recvData = new LoadVars();
recvData.onLoad = function () {
};
stop();
Instance of Symbol 621 MovieClip "world" in Frame 3
onClipEvent (load) {
scale = 100;
Speed = 0.05;
Pscale = 100;
Oscale = 30;
camY = (camX = 0);
x = _parent.PcXpos * -1;
y = _parent.PcYpos * -1;
}
onClipEvent (enterFrame) {
if (camera and stopMc.Play) {
if (MonNum > 0) {
ki = 1;
Kdata = 0;
while (ki < MonNum) {
Kdata = Kdata + kyoriSc("pc", "e" + ki);
ki++;
}
Kdata = (Kdata / (MonNum - 1)) * 0.2;
if (Kdata > 50) {
Kdata = 50;
}
} else {
Kdata = 50;
}
scale = scale + (((((Pscale - Kdata) - scale) + Oscale) * 0.1) + camX);
_yscale = scale;
_xscale = scale;
Px = pc._x * -1;
Py = pc._y * -1;
x = x + ((Px - x) * Speed);
y = y + ((Py - y) * Speed);
_x = ((((x + (400 * (100 / scale))) + camX) * scale) / 100);
_y = ((((y + (250 * (100 / scale))) + camY) * scale) / 100);
}
}
Instance of Symbol 625 MovieClip "CleanUpMc" in Frame 3
onClipEvent (load) {
this.gotoAndPlay(15);
}
Instance of Symbol 628 MovieClip "SaveMc" in Frame 3
onClipEvent (load) {
_x = 5000;
_y = 5000;
}
Instance of Symbol 639 MovieClip "StageClearMc" in Frame 3
onClipEvent (load) {
_x = 5000;
_y = 5000;
}
Instance of Symbol 665 MovieClip "status" in Frame 3
onClipEvent (load) {
gold = _parent.PPgold + 0;
revives = _parent.PPrevives + 0;
UserName = _parent.UserName;
}
Instance of Symbol 668 MovieClip in Frame 3
onClipEvent (load) {
Stime = getTimer();
timer = 0;
}
onClipEvent (enterFrame) {
ffps++;
Ntime = getTimer();
Ntime = (Ntime - Stime) / 1000;
if (Ntime >= 0.5) {
Stime = getTimer();
FPS = ffps * 2;
ffps = 0;
}
}
Frame 4
trace("clean up");
this.gotoAndStop(3);
Symbol 8 MovieClip [hit_point] Frame 30
this.removeMovieClip();
Symbol 79 MovieClip Frame 26
gotoAndPlay (1);
Symbol 79 MovieClip Frame 62
gotoAndPlay (27);
Symbol 79 MovieClip Frame 87
gotoAndPlay (27);
Symbol 79 MovieClip Frame 100
gotoAndPlay (27);
Symbol 152 MovieClip Frame 26
gotoAndPlay (1);
Symbol 152 MovieClip Frame 62
gotoAndPlay (21);
Symbol 152 MovieClip Frame 87
gotoAndPlay (21);
Symbol 152 MovieClip Frame 100
gotoAndPlay (27);
Symbol 223 MovieClip Frame 26
gotoAndPlay (1);
Symbol 223 MovieClip Frame 62
gotoAndPlay (27);
Symbol 223 MovieClip Frame 87
gotoAndPlay (21);
Symbol 223 MovieClip Frame 100
gotoAndPlay (27);
Symbol 294 MovieClip Frame 26
gotoAndPlay (1);
Symbol 294 MovieClip Frame 62
gotoAndPlay (21);
Symbol 294 MovieClip Frame 87
gotoAndPlay (21);
Symbol 294 MovieClip Frame 100
gotoAndPlay (27);
Symbol 365 MovieClip Frame 26
gotoAndPlay (1);
Symbol 365 MovieClip Frame 61
gotoAndPlay (21);
Symbol 365 MovieClip Frame 86
gotoAndPlay (21);
Symbol 365 MovieClip Frame 99
gotoAndPlay (27);
Symbol 412 MovieClip Frame 9
if (_parent._parent.boss) {
_parent._parent._parent._parent.StageClear();
}
Symbol 412 MovieClip Frame 50
if (_parent._parent.name eq "pc") {
_parent.hp.NHP = _parent.hp.MHP;
}
Symbol 412 MovieClip Frame 69
stop();
if (_parent._parent.name eq "pc") {
_parent.hp.HP = (_parent.hp.NHP = _parent.hp.MHP);
if (_parent._parent._parent._parent.status.revives) {
_parent._parent._parent._parent.status.revives--;
_parent.Play = 1;
_parent.gotoAndPlay(30);
} else {
if (SaveStage == 0) {
SaveStage = 1;
}
_parent._parent._parent._parent.PPstageNum = _parent._parent._parent._parent.SaveStage;
_parent._parent._parent._parent.PcXpos = _parent._parent._parent._parent.SavePcXpos;
_parent._parent._parent._parent.PcYpos = _parent._parent._parent._parent.SavePcXpos;
_parent._parent._parent._parent.SaveStatus();
_parent._parent._parent._parent.CleanUp();
}
}
Symbol 412 MovieClip Frame 74
gotoAndPlay (65);
Symbol 413 MovieClip Frame 1
stop();
Instance of Symbol 81 MovieClip "hp" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
NHP = HP;
_xscale = 0;
}
onClipEvent (enterFrame) {
HP = HP + ((NHP - HP) * 0.3);
scale = (HP / MHP) * 100;
}
Instance of Symbol 81 MovieClip "timeMc" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._parent.stopMc.Play) {
if (time < 100) {
time = time + addSpeed;
}
}
}
Symbol 413 MovieClip Frame 5
stop();
Symbol 413 MovieClip Frame 10
stop();
Symbol 413 MovieClip Frame 15
stop();
Symbol 413 MovieClip Frame 20
stop();
Symbol 413 MovieClip Frame 25
stop();
Symbol 413 MovieClip Frame 30
stop();
Symbol 413 MovieClip Frame 35
stop();
Symbol 413 MovieClip Frame 40
stop();
Instance of Symbol 413 MovieClip "pc" in Symbol 415 MovieClip [root_e] Frame 1
onClipEvent (load) {
time = 0;
name = _parent.name;
Patk = 30 + random(70);
Play = 1;
SyokiX = _parent._x;
SyokiY = _parent._y;
}
onClipEvent (enterFrame) {
if (((timeMc.time > 15) and Play) and _parent._parent.stopMc.Play) {
_parent._x = _parent._x + (x * speed);
_parent._y = _parent._y + (y * speed);
if ((x == -1) and (y == 0)) {
gotoAndStop (1);
}
if ((x == -1) and (y == -1)) {
gotoAndStop (5);
}
if ((x == 0) and (y == -1)) {
gotoAndStop (10);
}
if ((x == 1) and (y == -1)) {
gotoAndStop (15);
}
if ((x == 1) and (y == 0)) {
gotoAndStop (20);
}
if ((x == 1) and (y == 1)) {
gotoAndStop (25);
}
if ((x == 0) and (y == 1)) {
gotoAndStop (30);
}
if ((x == -1) and (y == 1)) {
gotoAndStop (35);
}
if ((Ox != x) or (Oy != y)) {
if ((x == 0) and (y == 0)) {
ani.gotoAndPlay(27);
} else {
ani.gotoAndPlay(1);
}
}
Ox = x;
Oy = y;
}
if (_parent._x > 1000) {
_parent._x = 1000;
}
if (_parent._x < -1000) {
_parent._x = -1000;
}
if (_parent._y > 1000) {
_parent._y = 1000;
}
if (_parent._y < -1000) {
_parent._y = -1000;
}
}
onClipEvent (enterFrame) {
if (_parent._parent.stopMc.Play) {
time++;
if (Play) {
if ((time > 10) and (timeMc.time > 20)) {
if (random(5)) {
kyori = _parent._parent.KyoriSc(_parent.name, "pc");
_parent.dev = Math.floor(kyori);
X1 = _parent._x;
Y1 = _parent._y;
if (kyori < 450) {
X2 = _parent._parent.pc._x;
Y2 = _parent._parent.pc._y;
if (timeMc.time > Patk) {
_parent._parent.Attack(name);
Patk = 30 + random(70);
}
} else {
X2 = SyokiX;
Y2 = SyokiY;
}
rad = Math.atan2(Y1 - Y2, X1 - X2);
rot = (rad * 180) / Math.PI;
Prot = Math.floor(rot / 45);
if (Prot == 0) {
x = -1;
y = 0;
}
if (Prot == 1) {
x = -1;
y = -1;
}
if (Prot == 2) {
x = 0;
y = -1;
}
if (Prot == 3) {
x = 1;
y = -1;
}
if (Prot == -4) {
x = 1;
y = 0;
}
if (Prot == -3) {
x = 1;
y = 1;
}
if (Prot == -2) {
x = 0;
y = 1;
}
if (Prot == -1) {
x = -1;
y = 1;
}
time = 0;
} else {
x = 0;
y = 0;
time = -20;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_parent._parent.stopMc.Play == 0) {
pc.ani.stop();
}
}
onClipEvent (enterFrame) {
if (_parent._parent.stopMc.Play) {
if (atk > 0) {
atk = atk - 3;
_parent._parent.Attack2(_parent.name);
}
_parent._x = _parent._x + (x * atk);
_parent._y = _parent._y + (y * atk);
}
}
Instance of Symbol 81 MovieClip "hp" in Symbol 415 MovieClip [root_e] Frame 1
onClipEvent (enterFrame) {
_xscale = _parent.pc.hp.scale;
}
Instance of Symbol 81 MovieClip in Symbol 415 MovieClip [root_e] Frame 1
onClipEvent (enterFrame) {
_xscale = _parent.pc.timeMc.time;
}
Instance of Symbol 425 MovieClip "ChoseSelectionMc" in Symbol 427 MovieClip Frame 1
onClipEvent (load) {
_parent.msg = "";
y = _y;
sw = 1;
}
onClipEvent (enterFrame) {
if (sw) {
if (Key.isDown(87)) {
menu--;
sw = 0;
}
if (Key.isDown(83)) {
menu++;
sw = 0;
}
if (Key.isDown(84)) {
gold = _parent._parent._parent._parent.status.gold;
if (menu == 1) {
if (gold >= 200) {
_parent.msg = "";
_parent._parent._parent.stopSc(30);
_parent._parent._parent.pc.pc.hp.HP = _parent._parent.pc.pc.hp.MHP;
_parent._parent._parent.StatusUp(_parent._parent._parent.pc.pc.hp.MHP, "Hp+", 0, -255, -255);
_parent._parent._parent._parent.status.gold = _parent._parent._parent._parent.status.gold - 200;
_parent._parent.gotoAndStop(1);
} else {
_parent.msg = "Gold is not worth. ";
}
}
if (menu == 2) {
if (gold >= 1000) {
_parent._parent._parent.stopSc(30);
_parent._parent._parent._parent.status.revives++;
_parent._parent._parent.StatusUp(1, "Rev+", -100, -100, 255);
_parent._parent._parent._parent.status.gold = _parent._parent._parent._parent.status.gold - 1000;
_parent._parent.gotoAndStop(1);
} else {
_parent.msg = "Gold is not worth. ";
}
}
if (menu == 3) {
if (gold >= 9000) {
_parent._parent._parent.stopSc(30);
_parent._parent._parent.StatusUp(9000, "Exp+", 0, 0, -255);
_parent._parent._parent.pc.exp = _parent._parent._parent.pc.exp + 9000;
_parent._parent._parent._parent.status.gold = _parent._parent._parent._parent.status.gold - 9000;
_parent._parent.gotoAndStop(1);
} else {
_parent.msg = "Gold is not worth. ";
}
}
if (menu == 4) {
_parent._parent._parent.stopSc(0);
_parent._parent.gotoAndStop(1);
}
sw = 0;
}
}
if (menu <= 1) {
menu = 1;
}
if (menu >= 4) {
menu = 4;
}
if (menu == 1) {
_y = (y + 0);
}
if (menu == 2) {
_y = (y + 22);
}
if (menu == 3) {
_y = (y + 44);
}
if (menu == 4) {
_y = (y + 66);
}
}
onClipEvent (keyUp) {
sw = 1;
}
Symbol 428 MovieClip [root_NPC] Frame 1
stop();
Instance of Symbol 418 MovieClip "pc" in Symbol 428 MovieClip [root_NPC] Frame 1
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = _parent._x;
X2 = _parent._parent.pc._x;
Y1 = _parent._y - 50;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 200) and sw) {
_parent._parent.stopSc(9999);
_parent.gotoAndStop(2);
sw = 0;
}
if (kyori > 210) {
sw = 1;
}
}
Symbol 428 MovieClip [root_NPC] Frame 2
stop();
Instance of Symbol 427 MovieClip in Symbol 428 MovieClip [root_NPC] Frame 2
onClipEvent (load) {
_x = ((_parent._x * -1) + _parent._parent.pc._x);
_y = ((_parent._y * -1) + _parent._parent.pc._y);
}
Instance of Symbol 413 MovieClip "pc" in Symbol 429 MovieClip [root_PC] Frame 1
onClipEvent (load) {
Play = 1;
atk = 0;
}
onClipEvent (enterFrame) {
if ((((timeMc.time > 15) and Play) and _parent._parent.stopMc.Play) and (atk < 1)) {
_parent._x = _parent._x + (x * speed);
_parent._y = _parent._y + (y * speed);
if ((x == -1) and (y == 0)) {
gotoAndStop (1);
ax = -1;
ay = 0;
}
if ((x == -1) and (y == -1)) {
gotoAndStop (5);
ax = -1;
ay = -1;
}
if ((x == 0) and (y == -1)) {
gotoAndStop (10);
ax = 0;
ay = -1;
}
if ((x == 1) and (y == -1)) {
gotoAndStop (15);
ax = 1;
ay = -1;
}
if ((x == 1) and (y == 0)) {
gotoAndStop (20);
ax = 1;
ay = 0;
}
if ((x == 1) and (y == 1)) {
gotoAndStop (25);
ax = 1;
ay = 1;
}
if ((x == 0) and (y == 1)) {
gotoAndStop (30);
ax = 0;
ay = 1;
}
if ((x == -1) and (y == 1)) {
gotoAndStop (35);
ax = -1;
ay = 1;
}
if ((Ox != x) or (Oy != y)) {
if ((x == 0) and (y == 0)) {
ani.gotoAndPlay(27);
} else {
ani.gotoAndPlay(1);
}
}
Ox = x;
Oy = y;
}
if (_parent._x > 1000) {
_parent._x = 1000;
}
if (_parent._x < -1000) {
_parent._x = -1000;
}
if (_parent._y > 1000) {
_parent._y = 1000;
}
if (_parent._y < -1000) {
_parent._y = -1000;
}
}
onClipEvent (enterFrame) {
if (_parent._parent.stopMc.Play) {
if (atk > 0) {
atk = atk - 3;
_parent._parent.Attack2(_parent.name);
}
_parent._x = _parent._x + (ax * atk);
_parent._y = _parent._y + (ay * atk);
}
}
onClipEvent (enterFrame) {
if (_parent._parent.stopMc.Play == 0) {
pc.ani.stop();
}
_parent.dev = (_parent._x + newline) + _parent._y;
}
Symbol 435 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 2
stop();
Symbol 440 MovieClip [item] Frame 1
if (Type eq "gold") {
ani.gotoAndStop("2");
}
Symbol 440 MovieClip [item] Frame 35
stop();
Instance of Symbol 439 MovieClip in Symbol 440 MovieClip [item] Frame 35
onClipEvent (enterFrame) {
X1 = _parent._x;
X2 = _parent._parent._parent.pc._x;
Y1 = _parent._y - 50;
Y2 = _parent._parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if (kyori < 70) {
_parent.play();
}
}
Symbol 440 MovieClip [item] Frame 36
if (Type eq "hp") {
_parent._parent.StatusUp(point, "Hp+", 0, -255, -255);
_parent._parent.pc.pc.hp.NHP = _parent._parent.pc.pc.hp.NHP + point;
if (_parent._parent.pc.pc.hp.NHP > _parent._parent.pc.pc.hp.MHP) {
_parent._parent.pc.pc.hp.NHP = _parent._parent.pc.pc.hp.MHP;
}
}
if (Type eq "pow") {
_parent._parent.StatusUp(point, "Pow+", -150, -150, 0);
_parent._parent.pc.pow = _parent._parent.pc.pow + point;
_parent._parent._parent.status.pow = _parent._parent._parent.status.pow + point;
}
if (Type eq "exp") {
_parent._parent.StatusUp(point, "Exp+", 0, 0, -255);
_parent._parent.pc.exp = _parent._parent.pc.exp + point;
}
if (Type eq "gold") {
_parent._parent.StatusUp(point, "Gold+", 0, 0, -150);
_parent._parent._parent.status.gold = _parent._parent._parent.status.gold + point;
}
this.removeMovieClip();
Instance of Symbol 454 MovieClip "Bar" in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
function p_Bar(parcent) {
_xscale = parcent;
}
}
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 24
stop();
Symbol 620 MovieClip Frame 1
function CreateCharactor(name, pow, speed, addSpeed, time, exp, HP, MHP, SCALE, gold, BOSS, R, G, B) {
var _local1 = name;
var _local2 = _parent;
Num++;
if (_local1 ne "pc") {
i = (Num - 1) + "";
} else {
i = "";
}
_local2.attachMovie("root_" + _local1, _local1 + i, Num);
if (_local1 ne "pc") {
EXpos = EXpos + ((800 / MonNum) + 100);
if (EXpos > ((800 / MonNum) * 5)) {
EYpos = EYpos + 200;
EXpos = (800 / MonNum) * -1;
}
setProperty(("_parent." + _local1) + i, _x , (EXpos + random(100)) - 200);
setProperty(("_parent." + _local1) + i, _y , (EYpos + random(100)) - 200);
} else {
setProperty(("_parent." + _local1) + i, _x , _local2._parent.PcXpos);
setProperty(("_parent." + _local1) + i, _y , _local2._parent.PcYpos);
}
setProperty(("_parent." + _local1) + i, _xscale , SCALE * 100);
setProperty(("_parent." + _local1) + i, _yscale , SCALE * 100);
Set((("_parent." + _local1) + i) + ".name", _local1 + i);
Set((("_parent." + _local1) + i) + ".pow", pow);
Set((("_parent." + _local1) + i) + ".exp", exp);
Set((("_parent." + _local1) + i) + ".pc.hp.HP", HP);
Set((("_parent." + _local1) + i) + ".pc.hp.MHP", MHP);
Set((("_parent." + _local1) + i) + ".pc.speed", speed);
Set((("_parent." + _local1) + i) + ".pc.timeMc.addSpeed", addSpeed);
Set((("_parent." + _local1) + i) + ".pc.timeMc.time", time);
Set((("_parent." + _local1) + i) + ".gold", gold);
Set((("_parent." + _local1) + i) + ".boss", BOSS);
MyName = (_local1 + i) + ".pc";
_local2.Fcolor(MyName, R, G, B);
}
function CreateNPC(xpos, ypos, R, G, B) {
NpcNum++;
MyName = "NPC" + NpcNum;
_parent.attachMovie("root_NPC", MyName, NpcNum);
MyName = "_parent." + MyName;
setProperty(MyName, _x , xpos);
setProperty(MyName, _y , ypos);
setProperty(MyName, _xscale , 200);
setProperty(MyName, _yscale , 200);
Set(MyName + ".name", name + i);
_parent.Fcolor(MyName + ".pc", R, G, B);
}
NpcNum = 20;
stop();
Symbol 620 MovieClip Frame 2
CreateCharactor("pc", _parent._parent.PPpow, 8, 1, _parent._parent.PPtime, _parent._parent.PPexp, _parent._parent.PPHP, _parent._parent.PPMHP, 2, 0, 0, 0, 0, 0);
CreateNPC(500, -1110, 0, 0, 0);
if (_parent._parent.status.lv < 2) {
_parent.setItem("gold", 5, 100 + random(50), 100 + random(50));
_parent.setItem("gold", 50, -100 + random(50), 100 + random(50));
_parent.setItem("gold", 150, 100 + random(50), -100 + random(50));
_parent.setItem("gold", 500, -100 + random(50), -100 + random(50));
_parent.setItem("gold", 500, 0 + random(50), 0 + random(50));
}
if (_root.UserName eq "mutekI") {
mui = 0;
Mmax = 10;
MYpos = -800;
while (mui < Mmax) {
MXpos = MXpos + ((800 / Mmax) + 100);
if (MXpos > ((800 / Mmax) * 5)) {
MYpos = MYpos + 200;
MXpos = (800 / Mmax) * -1;
}
_parent.setItem("exp", 1000 * mui, (MXpos + random(100)) - 200, (MYpos + random(100)) - 200);
_parent.setItem("gold", 1000 * mui, (MXpos + random(100)) - 200, (MYpos + random(100)) - 200);
_parent.setItem("pow", 1000 * mui, (MXpos + random(100)) - 200, (MYpos + random(100)) - 200);
mui++;
}
}
Instance of Symbol 510 MovieClip in Symbol 620 MovieClip Frame 2
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = (_x * _parent._xscale) / 100;
X2 = _parent._parent.pc._x;
Y1 = (_y * _parent._xscale) / 100;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 200) and sw) {
_parent._parent._parent.PcXpos = -800;
_parent._parent._parent.PcYpos = 800;
_parent._parent._parent.SaveStatus();
_parent._parent._parent.CleanUp();
_parent._parent._parent.PPstageNum++;
sw = 0;
}
}
Instance of Symbol 612 MovieClip in Symbol 620 MovieClip Frame 2
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = (_x * _parent._xscale) / 100;
X2 = _parent._parent.pc._x;
Y1 = (_y * _parent._xscale) / 100;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 150) and sw) {
_parent._parent._parent.SaveFc();
sw = 0;
play();
}
}
Symbol 620 MovieClip Frame 3
CreateCharactor("pc", _parent._parent.PPpow, 8, 1, _parent._parent.PPtime, _parent._parent.PPexp, _parent._parent.PPHP, _parent._parent.PPMHP, 2, 0, 0, 0, 0, 0);
MonNum = 2;
i = 0;
MonNum++;
_parent.MonNum = MonNum;
POW = 5;
SPEED = 3;
addSpeed = 1;
TIME = 100;
EXP = 80;
HP = 100;
SCALE = 2;
gold = 100;
R = 0;
G = -150;
B = -150;
while (i < MonNum) {
CreateCharactor("e", POW, SPEED, addSpeed, TIME, EXP, HP, HP, SCALE, gold, BOSS, R, G, B);
i++;
}
Instance of Symbol 510 MovieClip in Symbol 620 MovieClip Frame 3
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = (_x * _parent._xscale) / 100;
X2 = _parent._parent.pc._x;
Y1 = (_y * _parent._xscale) / 100;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 200) and sw) {
_parent._parent._parent.PcXpos = 800;
_parent._parent._parent.PcYpos = -800;
_parent._parent._parent.SaveStatus();
_parent._parent._parent.CleanUp();
_parent._parent._parent.PPstageNum--;
sw = 0;
}
}
Symbol 620 MovieClip Frame 4
CreateCharactor("pc", _parent._parent.PPpow, 8, 1, _parent._parent.PPtime, _parent._parent.PPexp, _parent._parent.PPHP, _parent._parent.PPMHP, 2, 0, 0, 0, 0, 0);
MonNum = 5;
i = 0;
MonNum++;
_parent.MonNum = MonNum;
POW = 10;
SPEED = 4;
addSpeed = 1;
TIME = 100;
EXP = 150;
HP = 150;
SCALE = 2;
gold = 150;
R = -150;
G = 0;
B = -150;
while (i < MonNum) {
CreateCharactor("e", POW, SPEED, addSpeed, TIME, EXP, HP, HP, SCALE, gold, BOSS, R, G, B);
i++;
}
Symbol 620 MovieClip Frame 5
CreateCharactor("pc", _parent._parent.PPpow, 8, 1, _parent._parent.PPtime, _parent._parent.PPexp, _parent._parent.PPHP, _parent._parent.PPMHP, 2, 0, 0, 0, 0, 0);
MonNum = 3;
i = 0;
MonNum++;
_parent.MonNum = MonNum;
POW = 30;
SPEED = 2;
addSpeed = 2;
TIME = 100;
EXP = 300;
HP = 300;
SCALE = 2;
gold = 200;
R = -200;
G = -200;
B = -200;
while (i < MonNum) {
CreateCharactor("e", POW, SPEED, addSpeed, TIME, EXP, HP, HP, SCALE, gold, BOSS, R, G, B);
i++;
}
if (_parent._parent.status.lv < 2) {
_parent.setItem("pow", 5, 100 + random(50), 100 + random(50));
_parent.setItem("gold", 50, -100 + random(50), 100 + random(50));
_parent.setItem("exp", 150, 100 + random(50), -100 + random(50));
_parent.setItem("gold", 500, -100 + random(50), -100 + random(50));
_parent.setItem("gold", 500, 0 + random(50), 0 + random(50));
}
Instance of Symbol 510 MovieClip in Symbol 620 MovieClip Frame 5
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = (_x * _parent._xscale) / 100;
X2 = _parent._parent.pc._x;
Y1 = (_y * _parent._xscale) / 100;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 200) and sw) {
_parent._parent._parent.PcXpos = 800;
_parent._parent._parent.PcYpos = 800;
_parent._parent._parent.SaveStatus();
_parent._parent._parent.CleanUp();
_parent._parent._parent.PPstageNum++;
sw = 0;
}
}
Symbol 620 MovieClip Frame 6
CreateCharactor("pc", _parent._parent.PPpow, 8, 1, _parent._parent.PPtime, _parent._parent.PPexp, _parent._parent.PPHP, _parent._parent.PPMHP, 2, 0, 0, 0, 0, 0);
MonNum = 4;
i = 0;
MonNum++;
_parent.MonNum = MonNum;
POW = 5;
SPEED = 3;
addSpeed = 1;
TIME = 100;
EXP = 100;
HP = 100;
SCALE = 2;
gold = 100;
R = 0;
G = -150;
B = -150;
while (i < MonNum) {
CreateCharactor("e", POW, SPEED, addSpeed, TIME, EXP, HP, HP, SCALE, gold, BOSS, R, G, B);
i++;
}
Instance of Symbol 510 MovieClip in Symbol 620 MovieClip Frame 6
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = (_x * _parent._xscale) / 100;
X2 = _parent._parent.pc._x;
Y1 = (_y * _parent._xscale) / 100;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 200) and sw) {
_parent._parent._parent.PcXpos = -800;
_parent._parent._parent.PcYpos = -800;
_parent._parent._parent.SaveStatus();
_parent._parent._parent.CleanUp();
_parent._parent._parent.PPstageNum--;
sw = 0;
}
}
Instance of Symbol 510 MovieClip in Symbol 620 MovieClip Frame 6
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = (_x * _parent._xscale) / 100;
X2 = _parent._parent.pc._x;
Y1 = (_y * _parent._xscale) / 100;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 200) and sw) {
_parent._parent._parent.PcXpos = 800;
_parent._parent._parent.PcYpos = 800;
_parent._parent._parent.SaveStatus();
_parent._parent._parent.CleanUp();
_parent._parent._parent.PPstageNum++;
sw = 0;
}
}
Instance of Symbol 612 MovieClip in Symbol 620 MovieClip Frame 6
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = (_x * _parent._xscale) / 100;
X2 = _parent._parent.pc._x;
Y1 = (_y * _parent._xscale) / 100;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 150) and sw) {
_parent._parent._parent.SaveFc();
sw = 0;
play();
}
}
Symbol 620 MovieClip Frame 7
CreateCharactor("pc", _parent._parent.PPpow, 8, 1, _parent._parent.PPtime, _parent._parent.PPexp, _parent._parent.PPHP, _parent._parent.PPMHP, 2, 0, 0, 0, 0, 0);
MonNum = 2;
i = 0;
MonNum++;
_parent.MonNum = MonNum;
POW = 15;
SPEED = 8;
addSpeed = 4;
TIME = 100;
EXP = 500;
HP = 220;
SCALE = 3;
gold = 1000;
R = -200;
G = -200;
B = 0;
while (i < MonNum) {
CreateCharactor("e", POW, SPEED, addSpeed, TIME, EXP, HP, HP, SCALE, gold, BOSS, R, G, B);
i++;
}
Instance of Symbol 510 MovieClip in Symbol 620 MovieClip Frame 7
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = (_x * _parent._xscale) / 100;
X2 = _parent._parent.pc._x;
Y1 = (_y * _parent._xscale) / 100;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 200) and sw) {
_parent._parent._parent.PcXpos = -800;
_parent._parent._parent.PcYpos = 800;
_parent._parent._parent.SaveStatus();
_parent._parent._parent.CleanUp();
_parent._parent._parent.PPstageNum++;
sw = 0;
}
}
Instance of Symbol 510 MovieClip in Symbol 620 MovieClip Frame 7
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = (_x * _parent._xscale) / 100;
X2 = _parent._parent.pc._x;
Y1 = (_y * _parent._xscale) / 100;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 200) and sw) {
_parent._parent._parent.PcXpos = -800;
_parent._parent._parent.PcYpos = -800;
_parent._parent._parent.SaveStatus();
_parent._parent._parent.CleanUp();
_parent._parent._parent.PPstageNum--;
sw = 0;
}
}
Symbol 620 MovieClip Frame 8
CreateCharactor("pc", _parent._parent.PPpow, 8, 1, _parent._parent.PPtime, _parent._parent.PPexp, _parent._parent.PPHP, _parent._parent.PPMHP, 2, 0, 0, 0, 0, 0);
MonNum = 1;
i = 0;
MonNum++;
_parent.MonNum = MonNum;
POW = 150;
SPEED = 10;
addSpeed = 4;
TIME = 100;
EXP = 5000;
HP = 5000;
SCALE = 3.5;
gold = 9000;
BOSS = 1;
R = -200;
G = -200;
B = -200;
while (i < MonNum) {
CreateCharactor("e", POW, SPEED, addSpeed, TIME, EXP, HP, HP, SCALE, gold, BOSS, R, G, B);
i++;
}
_parent.setItem("hp", 5, 100, 100);
_parent.setItem("hp", 50, -100, 100);
_parent.setItem("hp", 150, 100, -100);
_parent.setItem("hp", 500, -100, -100);
_parent.setItem("hp", 3000, 0, 0);
Instance of Symbol 510 MovieClip in Symbol 620 MovieClip Frame 8
onClipEvent (load) {
sw = 1;
}
onClipEvent (enterFrame) {
X1 = (_x * _parent._xscale) / 100;
X2 = _parent._parent.pc._x;
Y1 = (_y * _parent._xscale) / 100;
Y2 = _parent._parent.pc._y;
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
if ((kyori < 200) and sw) {
_parent._parent._parent.PcXpos = 800;
_parent._parent._parent.PcYpos = -800;
_parent._parent._parent.SaveStatus();
_parent._parent._parent.CleanUp();
_parent._parent._parent.PPstageNum--;
sw = 0;
}
}
Symbol 621 MovieClip Frame 1
function stopSc(pTime) {
stopMc.time = pTime * -1;
stopMc.sw1 = 1;
stopMc.sw2 = 1;
}
function outItem(My) {
Type = random(3);
Type++;
if (Type == 1) {
Type = "hp";
point = eval (My + ".pc.hp.MHP") / 2;
}
if (Type == 2) {
Type = "pow";
point = Math.floor(eval (My + ".pow") / 3);
}
if (Type == 3) {
Type = "exp";
point = eval (My + ".exp") * 2;
}
Num++;
if (Num > 7) {
Num = 0;
}
Myname = ("item" + Type) + Num;
dummyMc.attachMovie("item", Myname, Num + itemNum);
Myname = "dummyMc." + Myname;
setProperty(Myname, _x , getProperty(My, _x));
setProperty(Myname, _y , getProperty(My, _y));
setProperty(Myname, _xscale , 200);
setProperty(Myname, _yscale , 200);
Set(Myname + ".Type", Type);
Set(Myname + ".point", point);
if (Type eq "hp") {
Fcolor(Myname, 0, -150, -150);
}
if (Type eq "pow") {
Fcolor(Myname, -150, -150, 0);
}
if (Type eq "exp") {
Fcolor(Myname, 0, 0, -150);
}
}
function setItem(Type, point, x, y) {
var _local1 = Type;
Num++;
if (Num > 7) {
Num = 0;
}
Myname = ("item" + _local1) + Num;
dummyMc.attachMovie("item", Myname, Num + itemNum);
Myname = "dummyMc." + Myname;
setProperty(Myname, _x , x);
setProperty(Myname, _y , y);
setProperty(Myname, _xscale , 200);
setProperty(Myname, _yscale , 200);
Set(Myname + ".Type", _local1);
Set(Myname + ".point", point);
if (_local1 eq "hp") {
Fcolor(Myname, 0, -150, -150);
}
if (_local1 eq "pow") {
Fcolor(Myname, -150, -150, 0);
}
if (_local1 eq "exp") {
Fcolor(Myname, 0, 0, -150);
}
}
function outGold(My) {
Type = "gold";
point = eval (My + ".gold");
Num++;
if (Num > 7) {
Num = 0;
}
Myname = ("item" + Type) + Num;
dummyMc.attachMovie("item", Myname, Num + itemNum);
Myname = "dummyMc." + Myname;
setProperty(Myname, _x , getProperty(My, _x));
setProperty(Myname, _y , getProperty(My, _y));
setProperty(Myname, _xscale , 200);
setProperty(Myname, _yscale , 200);
Set(Myname + ".Type", Type);
Set(Myname + ".point", point);
}
itemNum = 400;
itemNum = 500;
GoldNum = 600;
function expAni(Point) {
Num++;
if (Num > 7) {
Num = 0;
}
attachMovie("hit_point", "exp_point" + Num, Num + expNum);
setProperty("exp_point" + Num, _x , getProperty("pc", _x));
setProperty("exp_point" + Num, _y , getProperty("pc", _y));
Set(("exp_point" + Num) + ".point", Point);
Set(("exp_point" + Num) + ".txt", "Exp");
Fcolor("exp_point" + Num, 0, 0, -255);
}
function LvUp(Point) {
stopSc(40);
Num++;
if (Num > 7) {
Num = 0;
}
attachMovie("hit_point", "LvUp" + Num, Num + LvNum);
setProperty("LvUp" + Num, _x , getProperty("pc", _x) - 100);
setProperty("LvUp" + Num, _y , getProperty("pc", _y) - 0);
setProperty("LvUp" + Num, _xscale , 300);
setProperty("LvUp" + Num, _yscale , 300);
Set(("LvUp" + Num) + ".point", Point);
Set(("LvUp" + Num) + ".txt", "LvUp!");
Fcolor("LvUp" + Num, -150, 0, -150);
}
function StatusUp(Point, ptxt, R, G, B) {
stopSc(15);
Num++;
if (Num > 7) {
Num = 0;
}
attachMovie("hit_point", "StatusUp" + Num, Num + StatusNum);
setProperty("StatusUp" + Num, _x , getProperty("pc", _x));
setProperty("StatusUp" + Num, _y , getProperty("pc", _y));
setProperty("StatusUp" + Num, _xscale , 200);
setProperty("StatusUp" + Num, _yscale , 200);
Set(("StatusUp" + Num) + ".point", Point);
Set(("StatusUp" + Num) + ".txt", ptxt);
Fcolor("StatusUp" + Num, R, G, B);
}
expNum = 200;
LvNum = 400;
StatusNum = 300;
function die(Target) {
SoundSc("s_die1");
Set(Target + ".pc.Revival", 1);
if (Target ne "pc") {
pc.exp = pc.exp + eval (Target + ".exp");
expAni(eval (Target + ".exp"));
pRand = random(10);
if (pRand > 6) {
outItem(Target);
} else if (pRand < 4) {
outGold(Target);
}
}
tellTarget (Target + ".pc") {
gotoAndPlay (40);
};
Set(Target + ".pc.Play", 0);
}
function Attack(My) {
MyTime = eval (My + ".pc.timeMc.time");
if (MyTime > 20) {
Set(My + ".pc.atk", 30);
tellTarget (My + ".pc.ani") {
gotoAndPlay (63);
};
}
}
function Attack2(My) {
MyTime = eval (My + ".pc.timeMc.time");
if (MyTime > 20) {
if (My eq "pc") {
var TargetData = MonKyori();
Target = TargetData[0];
deleteTime = 10;
} else {
Target = "pc";
deleteTime = 30;
}
Set(My + ".pc.timeMc.time", MyTime - deleteTime);
TargetHP = eval (Target + ".pc.hp.NHP");
TargetDED = eval (Target + ".pc.Play");
kyori = kyoriSc(My, Target);
if (((kyori < 120) and (TargetHP > 0)) and TargetDED) {
stopSc(5);
SoundSc("s_atk1");
Pow = eval (My + ".Pow");
Set(Target + ".pc.time", time.time - (30 - (Pow * 2)));
Set(Target + ".pc.x", 0);
Set(Target + ".pc.y", 0);
Point = Math.floor(((MyTime * MyTime) * 0.0001) * Pow);
if (Point == 0) {
Point = 1;
}
hit(Point, Target);
Set(Target + ".pc.timeMc.time", 0);
HP = eval (Target + ".pc.hp.NHP");
if ((HP - Point) > 0) {
shindou(Target, Point);
Set(Target + ".pc.hp.NHP", HP - Point);
Fcolor(Target, 255, 255, 255);
tellTarget (Target + ".pc.ani") {
gotoAndPlay (99);
};
Set(Target + ".pc.ani.Target", Target);
} else {
Set(Target + ".pc.hp.NHP", 0);
die(Target);
}
}
}
}
function hit(Point, Target) {
var _local1 = Point;
Num++;
if (Num > 7) {
Num = 0;
}
attachMovie("hit_point", "hit_point" + Num, Num + hitNum);
setProperty("hit_point" + Num, _x , getProperty(Target, _x));
setProperty("hit_point" + Num, _y , getProperty(Target, _y));
if (_local1 > 200) {
HitScale = 200;
} else {
HitScale = _local1;
}
setProperty("hit_point" + Num, _xscale , 100 + HitScale);
setProperty("hit_point" + Num, _yscale , 100 + HitScale);
Set(("hit_point" + Num) + ".point", _local1);
Set(("hit_point" + Num) + ".txt", "Hit");
Fcolor("hit_point" + Num, 0, _local1 * -1, _local1 * -1);
}
function shindou(Target, Point) {
attackMc.time = 20;
attackMc.Point = Point;
attackMc.Target = Target;
}
hitNum = 100;
function kyoriSc(My, Target) {
X1 = getProperty(My, _x);
X2 = getProperty(Target, _x);
Y1 = getProperty(My, _y);
Y2 = getProperty(Target, _y);
kyori = Math.sqrt(Math.pow(Math.abs(X1 - X2), 2) + Math.pow(Math.abs(Y1 - Y2), 2));
return(kyori);
}
function MonKyori() {
i = 1;
setKyori = 1E17;
while (i < MonNum) {
getKyori = kyoriSc("pc", "e" + i);
if (getKyori < setKyori) {
KyoriName = "e" + i;
setKyori = getKyori;
}
i++;
}
var _local1 = [KyoriName, setKyori];
return(_local1);
}
function SoundSc(Target) {
SoundMc[Target].stop();
SoundMc[Target].start();
}
function houkou(My, Target) {
var _local1 = Target;
var _local2 = My;
X1 = getProperty(_local2, _x);
Y1 = getProperty(_local2, _y);
X2 = getProperty(_local1, _x);
Y2 = getProperty(_local1, _y);
rad = Math.atan2(Y1 - Y2, X1 - X2);
rot = (rad * 180) / Math.PI;
Prot = Math.floor(rot / 45);
if (Prot == -4) {
tellTarget (_local1 + ".pc") {
gotoAndStop (1);
};
}
if (Prot == -3) {
tellTarget (_local1 + ".pc") {
gotoAndStop (5);
};
}
if (Prot == -2) {
tellTarget (_local1 + ".pc") {
gotoAndStop (10);
};
}
if (Prot == -1) {
tellTarget (_local1 + ".pc") {
gotoAndStop (15);
};
}
if (Prot == 0) {
tellTarget (_local1 + ".pc") {
gotoAndStop (20);
};
}
if (Prot == 1) {
tellTarget (_local1 + ".pc") {
gotoAndStop (25);
};
}
if (Prot == 2) {
tellTarget (_local1 + ".pc") {
gotoAndStop (30);
};
}
if (Prot == 3) {
tellTarget (_local1 + ".pc") {
gotoAndStop (35);
};
}
if (Prot == 0) {
tellTarget (_local2 + ".pc") {
gotoAndStop (1);
};
}
if (Prot == 1) {
tellTarget (_local2 + ".pc") {
gotoAndStop (5);
};
}
if (Prot == 2) {
tellTarget (_local2 + ".pc") {
gotoAndStop (10);
};
}
if (Prot == 3) {
tellTarget (_local2 + ".pc") {
gotoAndStop (15);
};
}
if (Prot == -4) {
tellTarget (_local2 + ".pc") {
gotoAndStop (20);
};
}
if (Prot == -3) {
tellTarget (_local2 + ".pc") {
gotoAndStop (25);
};
}
if (Prot == -2) {
tellTarget (_local2 + ".pc") {
gotoAndStop (30);
};
}
if (Prot == -1) {
tellTarget (_local2 + ".pc") {
gotoAndStop (35);
};
}
}
function Fcolor(Target, r, g, b) {
myColor = new Color(Target);
myColorTransform = new Object();
myColorTransform.rb = r;
myColorTransform.gb = g;
myColorTransform.bb = b;
myColor.setTransform(myColorTransform);
}
function NumtoString(Yst) {
var _local1 = Yst;
if (_local1 < 0) {
_local1 = _local1 * -1;
i = 0;
while (_local1.length < 5) {
_local1 = "0" + _local1;
i++;
}
_local1 = "Z" + _local1;
} else {
_local1 = 100000 - _local1;
_local1 = "A" + _local1;
}
return(_local1);
}
Instance of Symbol 479 MovieClip in Symbol 621 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.stopMc.Play) {
_parent.pc.pc.y = (_parent.pc.pc.x = 0);
if (Key.isDown(65)) {
_parent.pc.pc.x = -1;
}
if (Key.isDown(87)) {
_parent.pc.pc.y = -1;
}
if (Key.isDown(68)) {
_parent.pc.pc.x = 1;
}
if (Key.isDown(83)) {
_parent.pc.pc.y = 1;
}
if (Key.isDown(84) and (_parent.pc.pc.Play == 1)) {
_parent.Attack("pc");
}
}
}
Instance of Symbol 483 MovieClip "kyori" in Symbol 621 MovieClip Frame 1
onClipEvent (load) {
hantei = 100;
sw = 1;
}
onClipEvent (enterFrame) {
function atari(ball_1, ball_2) {
var _local1 = ball_2;
ball_1X = getProperty("_parent." + ball_1, _x);
ball_1Y = getProperty("_parent." + ball_1, _y);
ball_1W = hantei;
ball_2X = getProperty("_parent." + _local1, _x);
ball_2Y = getProperty("_parent." + _local1, _y);
ball_2W = hantei;
kyori = Math.sqrt(Math.pow(Math.abs(ball_1X - ball_2X), 2) + Math.pow(Math.abs(ball_1Y - ball_2Y), 2));
if (kyori <= ((ball_1W / 2) + (ball_2W / 2))) {
sin = (ball_1X - ball_2X) / kyori;
cos = (ball_1Y - ball_2Y) / kyori;
sabun = ((ball_1W / 2) + (ball_2W / 2)) - kyori;
bx = sin * sabun;
by = cos * sabun;
xx = ball_2X;
yy = ball_2Y;
xx = xx - bx;
yy = yy - by;
setProperty("_parent." + _local1, _x , xx);
setProperty("_parent." + _local1, _y , yy);
}
}
if (_parent.stopMc.Play) {
var TargetData = _parent.MonKyori();
if (hantei > TargetData[1]) {
atari("pc", TargetData[0]);
}
}
}
Instance of Symbol 487 MovieClip "time" in Symbol 621 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.stopMc.Play) {
time++;
dev = time;
}
}
Instance of Symbol 491 MovieClip "attackMc" in Symbol 621 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_parent.stopMc.Play) {
if (sw) {
if (Target eq "pc") {
_parent._parent.world.camX = random(time) * 0.5;
_parent._parent.world.camY = random(time) * 0.5;
}
if (time == 0) {
_parent._parent.world.camX = (_parent._parent.world.camY = 0);
}
}
time--;
if (time < 0) {
time = 0;
sw = 0;
} else {
sw = 1;
}
}
}
Instance of Symbol 495 MovieClip "SwapMc" in Symbol 621 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.stopMc.Play) {
if (time > 5) {
time = 0;
var Ylist = new Array();
var Ylist = [];
Yst = _parent.NumtoString(Math.floor(getProperty("_parent.pc", _y)));
Ylist.push({name:"pc", Ypos:Yst});
i = 1;
while (i < _parent.MonNum) {
Yst = _parent.NumtoString(Math.floor(getProperty("_parent.e" + i, _y)));
Ylist.push({name:"e" + i, Ypos:Yst});
i++;
}
Ylist.sortOn("Ypos");
i = 0;
YlistSt = "";
while (i < _parent.MonNum) {
YlistSt = YlistSt + Ylist[i].name;
i++;
}
if (OYlistSt ne YlistSt) {
OYlistSt = YlistSt;
i = 0;
while (i < _parent.MonNum) {
tellTarget ("_parent." + Ylist[i].name) {
swapDepths(i + 1);
};
i++;
}
}
}
time++;
}
}
Instance of Symbol 499 MovieClip "SoundMc" in Symbol 621 MovieClip Frame 1
onClipEvent (load) {
s_atk1 = new Sound();
s_atk1.attachSound("atk1");
s_die1 = new Sound();
s_die1.attachSound("die1");
}
Instance of Symbol 503 MovieClip "stopMc" in Symbol 621 MovieClip Frame 1
onClipEvent (load) {
time = 1;
}
onClipEvent (enterFrame) {
time++;
if (time > 0) {
Play = 1;
} else {
Play = 0;
}
if (sw1) {
_parent.pc.pc.ani.stop();
i = 1;
while (i < _parent.MonNum) {
tellTarget (("_parent.e" + i) + ".pc.ani") {
stop();
};
i++;
}
sw1 = 0;
}
if (Play and sw2) {
_parent.pc.pc.ani.play();
_parent.Fcolor("pc", 0, 0, 0);
i = 1;
while (i < _parent.MonNum) {
tellTarget (("_parent.e" + i) + ".pc.ani") {
play();
};
_parent.Fcolor("e" + i, 0, 0, 0);
i++;
}
sw2 = 0;
}
}
Instance of Symbol 620 MovieClip "MapMc" in Symbol 621 MovieClip Frame 1
onClipEvent (load) {
_xscale = 300;
_yscale = 300;
gotoAndStop(_parent._parent.PPstageNum + 1);
}
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 14
_parent.play();
Symbol 625 MovieClip Frame 15
play();
Symbol 625 MovieClip Frame 23
_x = 5000;
_y = 5000;
Symbol 628 MovieClip Frame 1
function SaveFc() {
var _local1 = _root;
var _local2 = _parent;
_local1.save.data.exp = _local2.status.expMc.exp;
_local1.save.data.Mexp = _local2.status.expMc.Mexp;
_local1.save.data.lv = _local2.status.lv;
_local1.save.data.pow = _local2.world.pc.pow;
_local1.save.data.HP = Math.floor(_local2.world.pc.pc.hp.HP);
_local1.save.data.MHP = _local2.world.pc.pc.hp.MHP;
_local1.save.data.eNum = _local2.PPeNum;
_local1.save.data.stageNum = _local2.PPstageNum;
_local1.save.data.PcXpos = _local2.PcXpos;
_local1.save.data.PcYpos = _local2.PcYpos;
_local1.save.data.gold = _local2.status.gold;
_local1.save.data.revives = _local2.status.revives;
_local1.save.data.UserName = _local2.UserName;
_local1.save.flush();
}
stop();
Symbol 628 MovieClip Frame 2
SaveFc();
Symbol 628 MovieClip Frame 45
_y = 5000;
_x = 5000;
_parent.world.stopSc(1);
gotoAndStop (1);
Symbol 639 MovieClip Frame 1
stop();
Symbol 639 MovieClip Frame 2
_quality = "high";
Symbol 639 MovieClip Frame 83
stop();
Instance of Symbol 643 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _parent._parent.world.pc.pc.hp.scale;
_parent.hp = Math.floor(_parent._parent.world.pc.pc.hp.HP);
_parent.MHP = _parent._parent.world.pc.pc.hp.MHP;
}
Instance of Symbol 643 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _parent._parent.world.pc.pc.timeMc.time;
_parent.time = _parent._parent.world.pc.pc.timeMc.time;
}
Instance of Symbol 645 MovieClip "expMc" in Symbol 665 MovieClip Frame 1
onClipEvent (load) {
Mexp = _parent._parent.PPMexp;
addExp = 2.523;
_parent.lv = _parent._parent.PPlv;
_parent.pow = _parent._parent.PPpow;
}
onClipEvent (enterFrame) {
exp = _parent._parent.world.pc.exp;
if (exp > Mexp) {
_parent._parent.world.pc.exp = exp - Mexp;
Mexp = Math.floor(Mexp * addExp);
_parent.lv = _parent.lv + 1;
_parent._parent.world.pc.pc.hp.MHP = _parent._parent.world.pc.pc.hp.MHP + (_parent.lv * 10);
_parent._parent.world.pc.pc.hp.NHP = _parent._parent.world.pc.pc.hp.MHP;
_parent._parent.world.pc.pow = _parent._parent.world.pc.pow + (_parent.lv * 5);
_parent.pow = _parent._parent.world.pc.pow;
_parent._parent.world.LvUp(_parent.lv);
}
percent = (exp / Mexp) * 100;
_xscale = percent;
_parent.Mexp = Mexp;
_parent.exp = exp;
}