// TMW2/LOF Script.
// Author:
// Jesusalva
// Description:
// Part from the EPISODE and the Well Quest
// TODO: Walking NPC, clothes, etc;
019-1-1,41,24,0 script Miler NPC_PLAYER,{
.@q=getq(LoFQuest_EPISODE);
.@w=getq(NivalisQuest_Well);
// Force players upon Cordo quest
if (!THIEF_RANK && !MERC_RANK)
goto L_Rejected;
mesn;
if (MERC_RANK)
mesq l("Hello, @@.", mercrank());
else
mesq l("Hello, @@.", thiefrank());
mes "";
menu
l("Hello."), -,
rif(.@w == 1, l("I need help.")), L_Well,
rif(.@q == 3 && countitem(HerbalTea), l("The Doctor sent you some tea.")), L_Doctor,
rif(.@q == 4, l("So, could I help you?")), L_Quest;
close;
// Well Quest Subplot
L_Well:
mes "";
mesn;
mesq l("What's the problem?");
next;
select
l("Someone fell into the well.");
mes "";
mesn;
mesq l("Ho! I'll help them!");
getexp (BaseLevel * 111), 0;
setq NivalisQuest_Well, 2;
close;
// Well Quest Subplot
L_Doctor:
mes "";
delitem HerbalTea, 1;
getexp 111, 11;
setq LoFQuest_EPISODE, 4;
mesn;
mesq l("Many thanks, the Doctor always know what's best for you."); // you or your health? Are you sure?
next;
mesn;
mesq l("Lemme just fetch a small something for you....");
next;
mesn;
mesq l("Oh dear, oh dear, where could I have possibly left it?!");
close;
// Not on Cordo quest
L_Rejected:
mesn;
mesq l("Hey, did you know there are two mouboos which constantly fight against themselves?!");
next;
mesn;
mesq l("One claims to be a constable and teach people to sell high and buy low.");
mesq l("The other one claims to be a dangerous bandit and to teach how to steal from monsters!");
next;
mesn;
mesq l("Well, I heard you needed to have some Job levels to sign up with them, and couldn't resign later.");
mesq l("But it is a so silly fight, that whoever you join with shouldn't do much difference.");
next;
mesn;
mesq l("Anyway, I heard both were disciples from Cordo-whatever, a powerful person from LoF Village.");
mesq l("I think you should get initiated on any side before speaking to me again.");
close;
// Main Quest
L_Quest:
mes "";
mesn;
mesq l("Not at the moment, I'm afraid. Maybe later.");
close;
OnInit:
.@npcId = getnpcid(0, .name$);
setunitdata(.@npcId, UDT_HEADTOP, KnitHat);
setunitdata(.@npcId, UDT_HEADMIDDLE, CreasedShirt);
setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes);
setunitdata(.@npcId, UDT_WEAPON, JeansShorts);
setunitdata(.@npcId, UDT_HAIRSTYLE, rand(2,15));
setunitdata(.@npcId, UDT_HAIRCOLOR, rand(4,14));
.sex = G_MALE;
.distance = 5;
end;
}