From 7242d6b1599b876334f70495c743ed35788f0625 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 1 Jun 2018 12:35:45 -0300 Subject: Use a helper for Grand Hunter Quest --- npc/003-1/aidan.txt | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'npc/003-1/aidan.txt') diff --git a/npc/003-1/aidan.txt b/npc/003-1/aidan.txt index 6ac6611a3..415cf9bd6 100644 --- a/npc/003-1/aidan.txt +++ b/npc/003-1/aidan.txt @@ -20,8 +20,7 @@ l("Not at the moment"), l("Information"); - switch (@menu) - { + switch (@menu) { case 1: mes ""; Zeny=Zeny-2000; @@ -102,25 +101,8 @@ L_Register: } L_Assign: - mes ""; - mesn; - mes l("I represent the Tulimshar Hunters. We hunt Maggots."); - mes l("The great prize is @@, a pet which eats Bug Legs.", getitemlink(MaggotCocoon)); - select - l("I'm not interested."), - rif(GHMEMO[1] < 10000,l("I'll hunt 10,000 maggots.")); - - switch (@menu) { - case 2: - GHMEMO[getq(General_Hunter)]=getq2(General_Hunter); - setq(General_Hunter, 1, GHMEMO[1]); - mesn; - mesq l("Good luck! Don't come back until you reach 10000 kills!"); - close; - break; - default: - close; - } + GHQ_Assign(Maggot, "Tulimshar", getitemlink(MaggotCocoon)); + close; L_Finish: GHMEMO[getq(General_Hunter)]=getq2(General_Hunter); -- cgit v1.2.3-60-g2f50