summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/003-4/sorfina.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/003-4/sorfina.txt b/npc/003-4/sorfina.txt
index 1f919f170..99d589c4d 100644
--- a/npc/003-4/sorfina.txt
+++ b/npc/003-4/sorfina.txt
@@ -75,6 +75,7 @@ L_OpenDoors:
.@x=34;//rand(29, 45);
.@y=33;//rand(29, 41);
monster(.@MAP_NAME$, .@x, .@y, l("Murderer Scorpion"), MurdererScorpion, 1, "Sorfina::OnKillMurderer");
+ addtimer(60000, "Sorfina::OnWarn");
mesn;
mesq l("Just go to the basement, past this door. Good luck, @@!", strcharinfo(0));
@@ -103,6 +104,15 @@ OnKillMurderer:
dispbottom l("I will take a claw and show Hasan.");
end;
+OnWarn:
+ .@q3=getq3(TulimsharQuest_Hasan);
+ dispbottom l("Time left: @@ remaining", FuzzyTime(.@q3));
+ if (.@q3-gettimetick(2) > 60)
+ addtimer(60000, "Sorfina::OnWarn");
+ else if (.@q3-gettimetick(2) > 15)
+ addtimer(15000, "Sorfina::OnWarn");
+ end;
+
OnInit:
.@npcId = getnpcid(0, .name$);
setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);