summaryrefslogtreecommitdiff
path: root/npc/001-8/hub.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-10-25 08:02:32 -0300
committerJesusaves <cpntb1@ymail.com>2018-10-25 08:02:32 -0300
commit332152078d3340213f36cba531a5cf3874a789c1 (patch)
tree5792831aba5e18b1ce9662fca6cfffacc53eb777 /npc/001-8/hub.txt
parent3ced1b801efa2d2dc061b6003b2dc56d6bb08121 (diff)
downloadserverdata-332152078d3340213f36cba531a5cf3874a789c1.tar.gz
serverdata-332152078d3340213f36cba531a5cf3874a789c1.tar.bz2
serverdata-332152078d3340213f36cba531a5cf3874a789c1.tar.xz
serverdata-332152078d3340213f36cba531a5cf3874a789c1.zip
Penalty for bad player + correct recovery() so it doesn't heals THE WHOLE MAPSERVER
ie. all currently connected players
Diffstat (limited to 'npc/001-8/hub.txt')
-rw-r--r--npc/001-8/hub.txt8
1 files changed, 7 insertions, 1 deletions
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;