summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-14 01:22:20 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-14 01:22:20 -0200
commit07eeaa78fcf69750b6f8f7ad759c512e93f2500d (patch)
tree3175182b09af23c971216e870efe6e42fd345217
parent73df3705d1b74f6e56c1346dd06769756a3e4ac7 (diff)
downloadserverdata-07eeaa78fcf69750b6f8f7ad759c512e93f2500d.tar.gz
serverdata-07eeaa78fcf69750b6f8f7ad759c512e93f2500d.tar.bz2
serverdata-07eeaa78fcf69750b6f8f7ad759c512e93f2500d.tar.xz
serverdata-07eeaa78fcf69750b6f8f7ad759c512e93f2500d.zip
[skip ci] What, am I really that bond to timers?
-rw-r--r--npc/001-8/hub.txt18
1 files changed, 12 insertions, 6 deletions
diff --git a/npc/001-8/hub.txt b/npc/001-8/hub.txt
index bd6b3e07c..7e217c93a 100644
--- a/npc/001-8/hub.txt
+++ b/npc/001-8/hub.txt
@@ -421,7 +421,7 @@ OnPCLogoutEvent:
if (@deathpenalty_override && @qhub_died) {
if (is_staff())
debugmes("Old values: %d %d Current Values: %d %d", @deathpenalty_realvalue, @deathpenalty_realvaljob, readparam(BaseExp), readparam(JobExp));
- addtimer(200, "#QuirinoHUB::OnNoPenaltyCommand");
+ addtimer(300, "#QuirinoHUB::OnNoPenaltyCommand");
}
@qhub_victor=0;
@@ -433,23 +433,27 @@ OnCancel:
warp "Save", 0, 0;
end;
+// No penalty override
OnNoPenaltyCommand:
- .@realvalue=@deathpenalty_realvalue-readparam(BaseExp);
- .@realvaljob=@deathpenalty_realvaljob-readparam(JobExp);
+ @realvalue=@deathpenalty_realvalue-readparam(BaseExp);
+ @realvaljob=@deathpenalty_realvaljob-readparam(JobExp);
// GM Report
if (is_staff())
- debugmes("Old values: %d %d Current Values: %d %d Real Difference: %d %d", @deathpenalty_realvalue, @deathpenalty_realvaljob, readparam(BaseExp), readparam(JobExp), .@realvalue, .@realvaljob);
+ debugmes("Old values: %d %d Current Values: %d %d Real Difference: %d %d", @deathpenalty_realvalue, @deathpenalty_realvaljob, readparam(BaseExp), readparam(JobExp), @realvalue, @realvaljob);
// Revive and Warp you to save point or it'll have no effect
recovery(getcharid(3));
warp "Save", 0, 0;
+ addtimer(500, "#QuirinoHUB::OnNoPenaltyCommand2");
+ end;
+OnNoPenaltyCommand2:
// Restitute the lost experience
if (@deathpenalty_override == 1)
- getexp .@realvalue, .@realvaljob;
+ getexp @realvalue, @realvaljob;
else if (@deathpenalty_override == 2)
- getexp .@realvalue/2, .@realvaljob/2;
+ getexp @realvalue/2, @realvaljob/2;
else
dispbottom l("BUG, REPORT ME: QHUB PENALTY OVERRIDE INVALID SIGNAL @@", @deathpenalty_override);
@@ -457,6 +461,8 @@ OnNoPenaltyCommand:
@deathpenalty_override=0;
@deathpenalty_realvalue=0;
@deathpenalty_realvaljob=0;
+ @realvalue=0;
+ @realvaljob=0;
end;
}