summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-04 13:08:24 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-04 13:08:24 -0300
commit6b23cb7f0e5479ae13d15b4ea4bf832c570943ff (patch)
tree56ae6dec7dc95cd4d24c25edd452dc3dad98a7bc
parentf4807bf1dd414d8fbc0c6e45e65b34b216368bb7 (diff)
downloadserverdata-6b23cb7f0e5479ae13d15b4ea4bf832c570943ff.tar.gz
serverdata-6b23cb7f0e5479ae13d15b4ea4bf832c570943ff.tar.bz2
serverdata-6b23cb7f0e5479ae13d15b4ea4bf832c570943ff.tar.xz
serverdata-6b23cb7f0e5479ae13d15b4ea4bf832c570943ff.zip
Fix some bugs on mobhunter, and update Exception() code
-rw-r--r--npc/functions/main.txt2
-rw-r--r--npc/functions/mobhunter.txt5
2 files changed, 4 insertions, 3 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 2cfcbe25c..3568f5f92 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -355,7 +355,7 @@ function script Exception {
if (.@gf & RB_ISFATAL) {
if (.@gf & RB_SPEECH) {
- mesc l("This error is fatal."), 1;
+ mesc l("This error is fatal, we stop execution."), 1;
close;
}
if (.@gf & RB_DISPBOTTOM)
diff --git a/npc/functions/mobhunter.txt b/npc/functions/mobhunter.txt
index e7bf03421..a19a595a1 100644
--- a/npc/functions/mobhunter.txt
+++ b/npc/functions/mobhunter.txt
@@ -180,7 +180,7 @@ function script GHQ_Assign {
.@id=GHQ_GetQuestIDByMonsterID(.@mobId);
.@q=getq(General_Hunter);
.@p=getq2(General_Hunter);
- next;
+ //next;
//mesq l("Current Quest Progress: @@/10,000 kills", .@p);
mesn;
mes l("I represent the @@ Hunters. We hunt @@.", .@loc$, getmonsterlink(.@mobId));
@@ -189,7 +189,8 @@ function script GHQ_Assign {
else
mes l("The great prize is to unlock a pet!");
- GHQ_GetRewardsOnMilestone();
+ if (.@q)
+ GHQ_GetRewardsOnMilestone();
if (.@q == .@id) {
.@m=GHQ_GetMonsterIDByQuestID(.@q);
mes l("You are currently hunting @@/10000 @@.", .@p, getmonsterlink(.@m));