summaryrefslogtreecommitdiff
path: root/npc/017-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-17 18:11:20 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-17 18:11:20 -0300
commitd76220d21056da90f8eceb275552999f5fb13b6b (patch)
treecf18707f0ef1b5b9b1487de53beaf4a1127ec976 /npc/017-1
parent8354b22e70f5bab38942dfd43725476c82bf9acf (diff)
downloadserverdata-d76220d21056da90f8eceb275552999f5fb13b6b.tar.gz
serverdata-d76220d21056da90f8eceb275552999f5fb13b6b.tar.bz2
serverdata-d76220d21056da90f8eceb275552999f5fb13b6b.tar.xz
serverdata-d76220d21056da90f8eceb275552999f5fb13b6b.zip
Rewrite a bit Pet Detective hopping logic
Diffstat (limited to 'npc/017-1')
-rw-r--r--npc/017-1/pet_detective.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/npc/017-1/pet_detective.txt b/npc/017-1/pet_detective.txt
index 155dc33f9..ba0b12693 100644
--- a/npc/017-1/pet_detective.txt
+++ b/npc/017-1/pet_detective.txt
@@ -6,8 +6,19 @@
// Sell pets (LoFQuest_Pets) (mesn Ace Ventura)
017-1,192,23,0 script Pet Detective NPC_PET_TAMER,{
+ // Not registered
.@q=getq(LoFQuest_Pets);
- if (.@q) goto L_Menu;
+ if (!.@q)
+ goto L_Register;
+
+ // Out Of Stock
+ if (!.stock)
+ goto L_OutOfStock;
+
+ // Normal
+ goto L_Menu;
+
+L_Register:
mesn l("Ace Ventura");
mesq l("I investigate missing pets. Many flee from their owners because they die pathetically or forgot to feed them.");
next;
@@ -43,8 +54,6 @@
close;
L_Menu:
- if (!.stock)
- goto L_OutOfStock;
mesn l("Ace Ventura");
mesq l("I currently have some pets with me. For most, you need to finish their Grand Hunter Quest, of course.");
mes "";