// TMW2/LOF Script.
// Author:
// Jesusalva
// Description:
// Part of Katze quest (Lv 49 Quest)
// See also
// npc/config/inspector.txt
017-1,77,104,0 script Anselmo NPC_ANSELMO_BR,{
.@q = getq(LoFQuest_Inspector);
mesn;
mesq l("Hello. My name is Anselmo and I'm investigating a recent string of robberies.");
next;
if (BaseLevel < 49) goto L_Close;
if (.@q == 0) goto L_Start;
if (.@q == 1) goto L_Arc1;
if (.@q == 2) goto L_Arc2;
goto L_Close;
L_Start:
mesn;
mesq l("Well... Not robberies per se... Just cheese vanishing and being replaced by %s, which is super weird.", getitemlink(GoldenApple));
next;
mesn;
mesq l("You look capable, will you help me solve these robberies? Of course, not for free.");
next;
if (askyesno() == ASK_NO)
goto L_Close;
mesn;
mesq l("Excellent. I'd like you to ask around about the recent string of robberies.");
next;
mesn;
mesq l("I'll just... put this tiny coat of arms on you. This will let everyone know you are acting on an official capacity.");
next;
mesn;
mesq l("But remember, they're stealing %s, not shinies, so try to limit your search a bit.", getitemlink(Cheese));
setq LoFQuest_Inspector, 1, 0;
next;
goto L_Close;
L_Arc1:
.@q2 = getq2(LoFQuest_Inspector);
if (.@q2 == (1024-1)) {
mesn;
mesq l("Cool, you have collected enough evidence. I also have some of my own, so we can proceed.");
next;
mesn;
mesq l("So, what have we concluded thus far?");
next;
mesc l("You spend some time going over the evidence with Anselmo. You mention which kind of cheese was stolen and the thief description, the time of the robbery and the victims, the route they used from the portal to the kitchen depot, the scratch marks and the odd aversion to loud instruments the thief had.");
next;
mesn;
mesq l("Excellent. So, this time, we should follow the other lead we had - the %s found in the scene of the crime.", getitemlink(GoldenApple));
next;
mesn;
mesq l("We know our thief is likely either a squirrel or a cat, although one intelligent enough and resourceful enough to make the travel every day. So I'm going to assume it was bought in some store as some sort of prank.");
next;
mesn;
mesq l("Considering the direction they came from, we should check Hurnscald next. Ask them if they saw a squirrel robbing Golden Apples, or anything which could help.");
next;
mesn;
mesq l("Ah, and you don't need to ask all of them, that would be a real bother. Ask maybe %d, and try to prioritize shop keepers, unless you feel you found a trail. You can also ask inside La Marine.", 7);
next;
mesn;
mesq l("My authority won't do you any good, but we have good relations with Hurnscald so you should have no problem. Good luck, %s!", strcharinfo(0));
getexp 60000, 600;
setq LoFQuest_Inspector, 2, 0;
} else {
.@p = bitmask_count(.@q2);
mesn;
mesq l("Keep investigating. You've found %d/%d pieces of evidence thus far.", .@p, 10);
if (!TUTORIAL) {
next;
goto L_Close;
}
.@THIEF_DESCRIPTION = 1; // Know how thief looked alike
.@TIME_OF_THEFT = 4; // Know the time the theft happened
.@VICTIM_CHEF = 8; // Talked to Dimond Cove chef
.@UNDERGROUND_PASS = 32; // Know the route used in Dimond
.@RAT_RULEOUT = 64; // Ruled out the possibility of rats
.@PORTAL_USE = 128; // Concluded the Portal was used by thief
.@TROUPE_DISGUISE = 256; // Learned about thief run-in with musics (no noise)
.@SCRATCH_EVIDENCE = 512; // Learned about the scratch marks left by thief
if (!(.@q2 & THIEF_DESCRIPTION))
mesc l("- I don't know how the thief looks like.");
if (!(.@q2 & TIME_OF_THEFT))
mesc l("- I don't know when the theft happened.");
if (!(.@q2 & VICTIM_CHEF))
mesc l("- I don't know the victims of the thievery.");
if (!(.@q2 & UNDERGROUND_PASS))
mesc l("- I don't know how the theft happened.");
if (!(.@q2 & RAT_RULEOUT))
mesc l("- I don't know the possible culprits for this.");
if (!(.@q2 & PORTAL_USE))
mesc l("- I don't know if the thief is from LoF or not.");
if (!(.@q2 & SCRATCH_EVIDENCE))
mesc l("- I don't know any supporting evidence from the crome.");
}
next;
goto L_Close;
L_Arc2:
mesc l("@@ You need to wait further releases to continue this quest!", b(l("WARNING:"))), 1;
next;
if (!is_staff()) goto L_Close; // FIXME
//...
// ... ... ... ......
mesn;
mesq l("Hmm, none of them saw anything? What did we miss... Oh right, Golden Apples grows in the Desert Canyon as well. Snakes often carry them, although we already discarded the possibility of a snake being the thief.");
next;
mesn;
mesq l("Sorry for wasting so much of your time, but go in Halinarzo and ask about it. Who knows, one of them might have seen our little thief crossing the Eternal Swamps, and it would match the time range if they had to occasionally wait for the floods to stop, and the fact no one in Hurnscald saw anything.");
next;
mesn;
mesq l("But be careful, they won't like an inspector snooping there.");
next;
goto L_Close;
L_Close:
closeclientdialog;
if (rand2(100) < 2)
npctalk3 l("And remember to never sit on Paxel! He hates that!");
else
goodbye();
close;
OnInit:
.distance=5;
.sex = G_MALE;
end;
}