From d76220d21056da90f8eceb275552999f5fb13b6b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 17 Jan 2020 18:11:20 -0300 Subject: Rewrite a bit Pet Detective hopping logic --- npc/017-1/pet_detective.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'npc/017-1/pet_detective.txt') 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 ""; -- cgit v1.2.3-70-g09d2