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/bard.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'world/map/npc/001-1/bard.txt') diff --git a/world/map/npc/001-1/bard.txt b/world/map/npc/001-1/bard.txt index c4a340ba..c7f9de54 100644 --- a/world/map/npc/001-1/bard.txt +++ b/world/map/npc/001-1/bard.txt @@ -19,7 +19,7 @@ L_Main: "Have you heard any news?", L_News, "What do you know about...", L_Question, "Farewell!", -; - close; + goto L_Close; L_News: // mes "[" + @name$ + "]"; @@ -125,5 +125,11 @@ L_Song: mes "[" + @name$ + "]"; set @id, rand(3); mes @songs$[@id]; + goto L_Close; + +L_Close: + set @name$, ""; + set @id, 0; + cleararray songs$[0], "", 3; close; } -- cgit v1.2.3-60-g2f50