From 9f208b6d7a1c2e15fcd32725aee2eac0c7178cd9 Mon Sep 17 00:00:00 2001 From: coffee Date: Sun, 4 Sep 2011 20:00:45 -0300 Subject: Clear temporary variables after you close npc window. Npcs from 001-1. --- world/map/npc/001-1/rewards_master.txt | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'world/map/npc/001-1/rewards_master.txt') diff --git a/world/map/npc/001-1/rewards_master.txt b/world/map/npc/001-1/rewards_master.txt index 290deccc..0cec114c 100644 --- a/world/map/npc/001-1/rewards_master.txt +++ b/world/map/npc/001-1/rewards_master.txt @@ -30,7 +30,7 @@ @Menu$[11], -; // this is for the last entry "No thanks": - if (@menu > @i) close; + if (@menu > @i) goto L_Close; // this is for the "Give all" entry: if (@menu == 11) goto L_Give_all; @@ -46,17 +46,17 @@ L_Item_Loop: L_Item_Done: if (@rec < @req) mes "It looks like your Monster Points were over estimated."; - close; + goto L_Close; L_Register: mes "[Ishi the Rewards Master]"; mes "\"Hey, it seems like you didn't register as a quest participant yet! You can sign up with Aidan.\""; - close; + goto L_Close; L_NotEnough: mes "[Ishi the Rewards Master]"; mes "\"You don't have enough Monster Points for a reward. You'll need to kill some more monsters first.\""; - close; + goto L_Close; @@ -80,10 +80,16 @@ L_Give_all_next: 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; - close; + "No", L_Close; -L_Give_all_done: +L_Close: + set @gotocounter, 0; + set @itemgiveerror, 0; + set @pts, 0; + set @dif, 0; + set @i, 0; + cleararray @Menu$[0], "", 10; + cleararray @Items$[0], "", 10; close; ////////////////////////////////////////////////// -- cgit v1.2.3-60-g2f50