summaryrefslogtreecommitdiff
path: root/npc/001-8/hub.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-21 23:41:45 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-21 23:41:45 -0300
commit18a5a44ad2500d202caa7cbec86371d084d9dac8 (patch)
treecd90dc6421ece6ca7c561af0b3c83a2f91e7369a /npc/001-8/hub.txt
parent97d0666d9444922b4c35d2f8e22d01bc95f8520e (diff)
downloadserverdata-18a5a44ad2500d202caa7cbec86371d084d9dac8.tar.gz
serverdata-18a5a44ad2500d202caa7cbec86371d084d9dac8.tar.bz2
serverdata-18a5a44ad2500d202caa7cbec86371d084d9dac8.tar.xz
serverdata-18a5a44ad2500d202caa7cbec86371d084d9dac8.zip
Hotfix
Diffstat (limited to 'npc/001-8/hub.txt')
-rw-r--r--npc/001-8/hub.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/npc/001-8/hub.txt b/npc/001-8/hub.txt
index 4a0cc7e19..b43420346 100644
--- a/npc/001-8/hub.txt
+++ b/npc/001-8/hub.txt
@@ -432,6 +432,26 @@ OnPCLogoutEvent:
warp "Save", 0, 0;
}
}
+ // Crazyfefe hot fix
+ if (@qhub_died) {
+ // It was PK
+ if (killerrid > 2000000 && killerrid < 2100000) {
+ // PVP flag was off
+ if (!getmapflag(.@mapa$, mf_pvp) && !getmapflag(.@mapa$, mf_pvp_noparty) && !getmapflag(.@mapa$, mf_pvpnoguild)) {
+ recovery(getcharid(3));
+ dispbottom l("REVENGE TIME!");
+ .@trueid=getcharid(3);
+ //detachrid();
+ attachrid(killerrid);
+ setpcblock(PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_ITEM|PCBLOCK_COMMANDS, true);
+ sc_start SC_WALKSPEED,20000,50;
+ addtimer(15000, "#mobptsys::OnUnlock");
+ percentheal -10, -100;
+ detachrid();
+ attachrid(.@trueid);
+ }
+ }
+ }
// This allows code to override death penalty, just once:
// @deathpenalty_override