From 66e6263d4780e7efbaaa22e836541f3ba27f4bc0 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 18 Jul 2009 08:07:48 -0600 Subject: Add do_npc_close commands to test NPCs --- maps/002-1.tmx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'maps/002-1.tmx') diff --git a/maps/002-1.tmx b/maps/002-1.tmx index 63119e61..a53d62e0 100644 --- a/maps/002-1.tmx +++ b/maps/002-1.tmx @@ -81,6 +81,7 @@ do_message(npc, ch, "You know what?") do_message(npc, ch, string.format("I have already asked this question %d times today.", nb_times)) nb_times = nb_times + 1 + do_npc_close(npc, ch) end @@ -91,6 +92,7 @@ function npc_handler(npc, ch) do_message(npc, ch, "Don't you think the guy behind me is my evil twin?") + do_npc_close(npc, ch) end @@ -106,6 +108,7 @@ elseif v == 2 then tmw.npc_trade(npc, ch, true, { {525, 0, 400}, {531, 0, 1500}, {530, 0, 4000}, {1199, 0, 1} }) end + do_npc_close(npc, ch) end @@ -116,6 +119,7 @@ function npc_handler(npc, ch) do_message(npc, ch, "This is really a nice place.\nDon't you think so?") + do_npc_close(npc, ch) end @@ -126,6 +130,7 @@ function npc_handler(npc, ch) do_message(npc, ch, "If I only had a tent...") + do_npc_close(npc, ch) end -- cgit v1.2.3-60-g2f50