summaryrefslogtreecommitdiff
path: root/npc
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
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')
-rw-r--r--npc/001-8/hub.txt8
-rw-r--r--npc/006-1/crazyfefe.txt2
-rw-r--r--npc/017-3/dimonds.txt2
-rw-r--r--npc/021-4/main.txt2
4 files changed, 10 insertions, 4 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;
diff --git a/npc/006-1/crazyfefe.txt b/npc/006-1/crazyfefe.txt
index bccfb3eb1..a6c3088a1 100644
--- a/npc/006-1/crazyfefe.txt
+++ b/npc/006-1/crazyfefe.txt
@@ -245,7 +245,7 @@ L_CleanUp:
// Rewards surviving players between rounds, according to performance, and get rid of dead PCs.
OnReward:
if (ispcdead()) {
- recovery();
+ recovery(getcharid(3));
warp "Save", 0, 0;
end;
}
diff --git a/npc/017-3/dimonds.txt b/npc/017-3/dimonds.txt
index b8491884c..685a12d95 100644
--- a/npc/017-3/dimonds.txt
+++ b/npc/017-3/dimonds.txt
@@ -615,7 +615,7 @@ OnInit:
if (@menu == 2)
close;
Zeny=Zeny-100;
- recovery();
+ recovery(getcharid(3));
if (rand(1,2) == 1)
sc_start SC_POISON, 60000, 0, 10000;
else
diff --git a/npc/021-4/main.txt b/npc/021-4/main.txt
index 7921e0f5b..75d6bff9e 100644
--- a/npc/021-4/main.txt
+++ b/npc/021-4/main.txt
@@ -141,7 +141,7 @@ OnFail:
OnReward:
if (ispcdead()) {
- recovery();
+ recovery(getcharid(3));
warp "Save", 0, 0;
end;
}