From 94e5167aec9df772eb04140f93ddc9155ba62416 Mon Sep 17 00:00:00 2001 From: jesusalva Date: Wed, 14 Feb 2018 08:33:00 -0200 Subject: Prevent infinite XP from Dausen, but this is a weird bug and fix is temporary. --- npc/003-1/lieutenantdausen.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'npc') diff --git a/npc/003-1/lieutenantdausen.txt b/npc/003-1/lieutenantdausen.txt index 7e3e1b5aa..63bd9b426 100644 --- a/npc/003-1/lieutenantdausen.txt +++ b/npc/003-1/lieutenantdausen.txt @@ -14,7 +14,7 @@ 003-1,111,84,0 script Lieutenant Dausen NPC_PLAYER,{ - function quest_findAllKids + function quest_waterForGuard { setq TulimsharQuest_WaterForGuard, 1; speech S_FIRST_BLANK_LINE | S_LAST_NEXT, @@ -23,6 +23,10 @@ } .@has = getq(TulimsharQuest_WaterForGuard); + if (.@has > 1) { + npctalk3 l("ERROR: Quest state is @@, should be 0 or 1!", .@has); + .@has=3; + } if (.@has == 0) { speech S_FIRST_BLANK_LINE | S_LAST_NEXT, @@ -36,7 +40,7 @@ switch (@menu) { case 1: - quest_findAllKids; + quest_waterForGuard; break; } } while (@menu != 2); @@ -183,9 +187,10 @@ OnInit: end; } 003-1,58,100,0 script Guard Popaul NPC_GUARD1,{ + legiontalk; if (getq(CandorQuest_HAS) == 1) { - //CheckEnfant(); // FIXME and everywhere else: Missing Function + //CheckGuard(); // TODO: TBD } end; -- cgit v1.2.3-70-g09d2