// TMW2 scripts.
// Author:
// Jesusalva
// Description:
// 023-3-1 The First Monster King's Throne Room Configuration File
023-3-1 mapflag zone MMO
023-3-1,45,27,0 script #Finish02331 NPC_HIDDEN,0,0,{
end;
OnTouch:
.@n=getq(General_Narrator);
.@q=getq(FrostiaQuest_Homunculus);
// Cheater Detected
if (.@n < 15) {
warp "Save", 0, 0;
percentheal -100, -100;
return false;
}
if (.@q < 3) {
dispbottom l("The magic power outflowing in the room prevents you from leaving.");
end;
}
.@mapn$="023-3-2";
warp .@mapn$, any(39,40), 58;
end;
}
023-3-1,45,80,0 script #Exit02331 NPC_HIDDEN,1,0,{
end;
OnTouch:
.@n=getq(General_Narrator);
.@q=getq3(FrostiaQuest_Homunculus);
// Cheater Detected
if (.@n < 15) {
warp "Save", 0, 0;
percentheal -100, -100;
return false;
}
if (.@n == 15) {
dispbottom lg("I'm not a coward! I must press forward!");
end;
}
.@mapn$="001-7";
warp .@mapn$, 59, 45;
end;
}
// To the traps!
023-3-1,45,63,0 script #Ambush02331 NPC_HIDDEN,10,0,{
OnTouch:
.@q=getq3(FrostiaQuest_Homunculus);
if (!.@q) {
.@m$=getmap();
.@mobID1=monster(.@m$, 43, 55, l("Assassin"), HoodedNinja, 1);
.@mobID2=monster(.@m$, 48, 55, l("Assassin"), HoodedNinja, 1);
monster(.@m$, 43, 60, l("Assassin"), Assassin, 1);
monster(.@m$, 43, 65, l("Assassin"), Assassin, 1);
monster(.@m$, 48, 60, l("Assassin"), Assassin, 1);
monster(.@m$, 48, 65, l("Assassin"), Assassin, 1);
if (any(true,false))
unitalk(.@mobID1, l("Kill 'em!"));
else
unitalk(.@mobID2, l("Kill 'em!"));
setq3 FrostiaQuest_Homunculus, 1;
}
end;
}
// Main event core
023-3-1,45,52,0 script #Core02331 NPC_HIDDEN,10,0,{
OnTouch:
.@q=getq3(FrostiaQuest_Homunculus);
if (.@q == 1) {
// Begin the event core
setq3 FrostiaQuest_Homunculus, 2;
addtimer(1100, .name$+"::OnEvent01");
}
end;
OnEvent01:
slide 45, 45;
@ISBAMUTH=monster(.@m$, 45, 34, l("Isbamuth"), Isbamuth, 1);
end;
}