From 8d0b225fbbeb4301462c0494cfe621c0498edc6e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 May 2015 22:44:03 +0300 Subject: Add test waiting room and small script for warp to playeground test map. --- npc/test/npc1.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc') diff --git a/npc/test/npc1.txt b/npc/test/npc1.txt index 9273bddc..33ed9978 100644 --- a/npc/test/npc1.txt +++ b/npc/test/npc1.txt @@ -135,6 +135,7 @@ OnTimer340: OnInit: setnpcsex G_MALE; setnpcdistance 5; + waitingroom "test room", 2, "npc1::OnReadyCheck", 1; end; OnWhisperGlobal: @@ -144,4 +145,10 @@ OnWhisperGlobal: OnSkillInvoke: skillInvoke[@skillId] = skillInvoke[@skillId] + 1; end; + +OnReadyCheck: + debugmes "OnReadyCheck"; + $@bgid1 = waitingroom2bg("testbg", 10, 10, "bgnpc1::OnLogout","bgnpc1:OnDie"); + debugmes "bgid=" + str($@bgid1); + bg_warp $@bgid1, "testbg", 10, 10; } -- cgit v1.2.3-70-g09d2