diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-02-06 13:11:22 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-02-06 13:11:22 +0100 |
commit | 6b0a6e31c8b283be14d5607409eecca5d588c725 (patch) | |
tree | 170473bcbb2a403798894d28ddf5ed46a323b7f2 /npc/009-2_Hurnscald | |
parent | 8ba54244eb2842b9182b143d804d4bdba5343476 (diff) | |
download | serverdata-6b0a6e31c8b283be14d5607409eecca5d588c725.tar.gz serverdata-6b0a6e31c8b283be14d5607409eecca5d588c725.tar.bz2 serverdata-6b0a6e31c8b283be14d5607409eecca5d588c725.tar.xz serverdata-6b0a6e31c8b283be14d5607409eecca5d588c725.zip |
Fixing some deleting of items without a check for the items right before in Alan and Agostine
Diffstat (limited to 'npc/009-2_Hurnscald')
-rw-r--r-- | npc/009-2_Hurnscald/alan.txt | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/npc/009-2_Hurnscald/alan.txt b/npc/009-2_Hurnscald/alan.txt index 28ca7d47..ea00fe31 100644 --- a/npc/009-2_Hurnscald/alan.txt +++ b/npc/009-2_Hurnscald/alan.txt @@ -19,7 +19,7 @@ if (@Q_status == 3) goto L_State_3; if (@Q_status == 4) goto L_State_4; if (@Q_status == 5) goto L_State_5; - + mes "[Alan]"; mes "\"When you want to buy something then please speak to my apprentice. I am only doing special requests.\""; next; @@ -33,7 +33,7 @@ "OK, thanks", -, "Can you make me a really good bow?", L_State_0_1; close; - + L_State_0_1: mes "[Alan]"; mes "\"You mean like one of my legendary forest bows?\""; @@ -91,7 +91,7 @@ L_State_1_1: mes "[Alan]"; mes "\"When you leave my shop just go southwest over the village plaza. You can't miss it.\""; close; - + L_State_2: mes "[Alan]"; mes "\"Did you already ask Jack why he won't deliver me any more living wood?\""; @@ -112,7 +112,7 @@ L_State_2: callsub S_Update_Var; close; - + L_State_3: mes "[Alan]"; mes "\"How is the hunt going? Did you bring me any wood?\""; @@ -130,11 +130,12 @@ L_State_3: close; L_State_3_try: + if (countitem(569) < 1) goto L_No_Log; + delitem "RawLog", 1; mes "[Alan]"; mes "\"Hmmm... looks ok, but is it strong enough?\""; mes "Alan bends the log over his knee."; next; - delitem "RawLog", 1; set @Temp1, rand(20); if (@Temp1 == 0) goto L_State_3_success; mes "The log breaks with a loud crack"; @@ -147,7 +148,7 @@ L_State_3_try: "Sure, here you go.", L_State_3_try, "Hey! Stop breaking my stuff!", -; close; - + L_State_3_success: mes "Alan tries as hard as he can but the log won't bend."; next; @@ -156,7 +157,7 @@ L_State_3_success: next; set @Q_status, 4; callsub S_Update_Var; - + L_State_4: mes "[Alan]"; mes "\"I can make you a really nice forest bow out of this. I just need 10,000 GP for material and work time.\""; @@ -210,6 +211,11 @@ L_NohMask_Answer: mes "\"No.\""; close; +L_No_Log: + mes "[Alan]"; + mes "\"Where should I look at? You don't have a raw log.\""; + close; + S_Update_Var: set QUEST_Forestbow_state, (QUEST_Forestbow_state & ~(@Q_MASK) |