From 59294dbe57a8903f35288e7d41d64244a62a50aa Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 8 Aug 2018 12:57:02 -0300 Subject: Report how much time you have to kill Murderer Scorpion --- npc/003-4/sorfina.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'npc/003-4/sorfina.txt') 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); -- cgit v1.2.3-60-g2f50