From 332152078d3340213f36cba531a5cf3874a789c1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 25 Oct 2018 08:02:32 -0300 Subject: Penalty for bad player + correct recovery() so it doesn't heals THE WHOLE MAPSERVER ie. all currently connected players --- npc/001-8/hub.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'npc/001-8') diff --git a/npc/001-8/hub.txt b/npc/001-8/hub.txt index fcf565786..e5b24ed65 100644 --- a/npc/001-8/hub.txt +++ b/npc/001-8/hub.txt @@ -379,13 +379,19 @@ OnPCLogoutEvent: } // TODO: Checks which doesn't belong here shouldn't be here! - if (.@mapa$ == "015-6") { + if (.@mapa$ == "015-6" && @qhub_died) { if (readparam(BaseExp) < readparam(BaseExp)*2/100) end; recovery(getcharid(3)); getexp readparam(BaseExp)*2/100, 0; warp "Save", 0, 0; } + if (.@mapa$ == "021-4" && strcharinfo(0) == $@CINDY_HERO) { + recovery(getcharid(3)); + warp any("010-1", "010-2"), 0, 0; + percentheal -100, -100; + sc_start2 SC_POISON, 1, 90, 10000; + } @qhub_victor=0; @qhub_died=0; -- cgit v1.2.3-60-g2f50