From c68a045918da5bf72ac24b4a68aa37927840652b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 29 Jun 2018 18:59:49 -0300 Subject: Debug it --- npc/001-8/hub.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/npc/001-8/hub.txt b/npc/001-8/hub.txt index e917f8e8d..bacee697b 100644 --- a/npc/001-8/hub.txt +++ b/npc/001-8/hub.txt @@ -55,8 +55,8 @@ // Only one player standing! CONGRATULATIONS, YOU HAVE WON!! OnGameOver: - debugmes "OnGameOver Check"; .@u=getmapusers("001-8"); + debugmes "OnGameOver Check: "+str(.@u); if (.@u == 1) { $@EQ_STATUS=2; maptimer("001-8", 10, "#QuirinoHUB::OnVictory"); @@ -313,6 +313,8 @@ OnTimer900000: OnVictory: @qhub_victor=1; + debugmes "We have a victor"; + dispbottom l("Winner is you"); OnPCDieEvent: @qhub_died=1; OnPCLogoutEvent: @@ -337,7 +339,7 @@ OnPCLogoutEvent: HUBspawn(Wolvern, 4); HUBspawn(NightScorpion, 2); } - if (.@u == 1) { + if (.@u == 1 && !@qhub_victor) { donpcevent "#QuirinoHUB::OnGameOver"; } -- cgit v1.2.3-60-g2f50