From 64986a278938d132db6b224d87ebf711b77be86c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 7 Jun 2018 19:41:44 -0300 Subject: Use @SorenWarpOnline to prevent spamming warp activations --- npc/001-6/warp.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'npc/001-6/warp.txt') diff --git a/npc/001-6/warp.txt b/npc/001-6/warp.txt index 35ff5613c..ceb19c8d8 100644 --- a/npc/001-6/warp.txt +++ b/npc/001-6/warp.txt @@ -9,11 +9,15 @@ end; OnTouch: + if (@SorenWarpOnline == 1) + end; dispbottom l("Loading warp, be at this spot in 15 seconds."); + @SorenWarpOnline=1; addtimer 15000, "Soren Village::OnWarper"; end; OnWarper: + @SorenWarpOnline=0; if (isin("001-6", 159, 157, 159, 157)) { if (!ispcdead()) warp "soren", 179, 76; -- cgit v1.2.3-60-g2f50