summaryrefslogtreecommitdiff
path: root/npc/003-4/sorfina.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-08 12:57:02 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-08 12:57:02 -0300
commit59294dbe57a8903f35288e7d41d64244a62a50aa (patch)
tree39f1ec48253a8c8dbdcec5505857e50f2e9f0f9e /npc/003-4/sorfina.txt
parentebafaa3d1c55eda8b68a5e3bc4efb23d1468b569 (diff)
downloadserverdata-59294dbe57a8903f35288e7d41d64244a62a50aa.tar.gz
serverdata-59294dbe57a8903f35288e7d41d64244a62a50aa.tar.bz2
serverdata-59294dbe57a8903f35288e7d41d64244a62a50aa.tar.xz
serverdata-59294dbe57a8903f35288e7d41d64244a62a50aa.zip
Report how much time you have to kill Murderer Scorpion
Diffstat (limited to 'npc/003-4/sorfina.txt')
-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);