From f68a894825e63cbde116e6eaa06ffaa09557f476 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 16 Jun 2018 00:03:29 -0300 Subject: Add extra case to MobHunter: You cannot switch to the same mob you're hunting. --- npc/functions/mobhunter.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc') diff --git a/npc/functions/mobhunter.txt b/npc/functions/mobhunter.txt index 8fc6ecad0..6f99c5451 100644 --- a/npc/functions/mobhunter.txt +++ b/npc/functions/mobhunter.txt @@ -59,6 +59,12 @@ function script GHQ_Assign { mesn; mes l("I represent the @@ Hunters. We hunt @@.", getarg(1), getmonsterlink(getarg(0))); mes l("The great prize is @@. It can be claimed with Aidan, on Tulimshar.", getarg(2)); + if (getq(General_Hunter) == .@id) { + mes l("You are currently hunting @@/10000 @@. When done, remember to claim rewards with Aidan, on Tulimshar!", getq2(General_Hunter), getmonsterlink(GHQ_GetMonsterIDByQuestID(getq(General_Hunter)))); + next; + closedialog; + goodbye; + } if (getq(General_Hunter)) mes l("You are currently hunting @@/10000 @@. Do you want to switch?", getq2(General_Hunter), getmonsterlink(GHQ_GetMonsterIDByQuestID(getq(General_Hunter)))); select l("I'm not interested."), -- cgit v1.2.3-70-g09d2