summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r--npc/functions/hub.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 8632b3e0d..eb535d9f6 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -63,6 +63,18 @@ function script HUB_Logout {
if (.@mapa$ == "020-7-1") {
callfunc("BSClearNest", @nestid);
}
+ // Died or logged out on Player Story 5 - Forgotten Throne Room
+ if (.@mapa$ ~= "hmc*") {
+ .@n$=instance_npcname("#Core02331");
+ deltimer(.@n$+"::OnW01");
+ deltimer(.@n$+"::OnW02");
+ deltimer(.@n$+"::OnE07");
+ deltimer(.@n$+"::OnE08");
+ deltimer(.@n$+"::OnE09");
+ deltimer(.@n$+"::OnE10");
+ deltimer(.@n$+"::OnE11");
+ deltimer(.@n$+"::OnE12");
+ }
// Died or logged out during Sagratha Fight
if (.@mapa$ ~= "sgt2*") {
setq1 HurnscaldQuest_Sagratha, 3;
@@ -94,6 +106,7 @@ function script HUB_Logout {
if (!getmapflag(.@mapa$, mf_pvp) && !getmapflag(.@mapa$, mf_pvp_noparty) && !getmapflag(.@mapa$, mf_pvpnoguild)) {
recovery(getcharid(3));
warp .@mapa$, .@a, .@b;
+ percentheal 100, 100;
dispbottom l("REVENGE TIME!");
.@trueid=getcharid(3);
//detachrid();
@@ -104,6 +117,8 @@ function script HUB_Logout {
sc_end SC_OVERLAPEXPUP;
sc_start SC_OVERLAPEXPUP, 300000, -20;
dispbottom l("For cowardingly killing in a \"secure\" area, you will be severely punished.");
+ //Karma+=1;
+ sc_start SC_STUN, 15000, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK;
addtimer(15000, "#mobptsys::OnUnlock");
percentheal -88, -100;
detachrid();