From 5b7eb05126487ef9abad405f37abaeaa17cd4b3a Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Sun, 17 Apr 2011 13:51:06 +0200 Subject: Fixing erroneous execution of "Give all" from Ishi If a character has monster points for less than 10 rewards and asks for the maximum number of items, then he got at the end the false message: "It looks like your Monster Points were over estimated." Also fixed initialization of array. Reviewed-by: Stefan Beller --- npc/001-1_Tulimshar/rewards_master.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc') diff --git a/npc/001-1_Tulimshar/rewards_master.txt b/npc/001-1_Tulimshar/rewards_master.txt index bd55b0ae..028b24c1 100644 --- a/npc/001-1_Tulimshar/rewards_master.txt +++ b/npc/001-1_Tulimshar/rewards_master.txt @@ -12,7 +12,7 @@ next; set @i, 0; - setarray @Menu$, "", "", "", "", "", "", "", "", "", "", ""; + setarray @Menu$, "", "", "", "", "", "", "", "", "", "", "", ""; callsub SUB_prep_menu; menu @@ -32,7 +32,7 @@ // this is for the last entry "No thanks": if (@menu > @i) close; // this is for the "Give all" entry: - if (@menu == @i) goto L_Give_all; + if (@menu == 11) goto L_Give_all; set @req, @menu; set @rec, 0; @@ -79,8 +79,8 @@ L_Give_all_next: mes "[Ishi the Rewards Master]"; mes "\"You have brought lots of items now. You have still " + Mobpt + " monster points. Shall we continue?\""; menu - "yes", L_Give_all, - "no", L_Give_all_done; + "Yes", L_Give_all, + "No", L_Give_all_done; close; L_Give_all_done: -- cgit v1.2.3-70-g09d2