diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-07-03 21:32:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-07-03 21:32:55 -0300 |
commit | 59b97a01daa8ab83cbd4da3686676130788cf522 (patch) | |
tree | e7eb9eba650c4e46a3dffb2d24762f460ed5ef5b /npc/001-8 | |
parent | ca4d5581b1059467861403ea9563cacd4f827314 (diff) | |
download | serverdata-59b97a01daa8ab83cbd4da3686676130788cf522.tar.gz serverdata-59b97a01daa8ab83cbd4da3686676130788cf522.tar.bz2 serverdata-59b97a01daa8ab83cbd4da3686676130788cf522.tar.xz serverdata-59b97a01daa8ab83cbd4da3686676130788cf522.zip |
Remove more bloat
Diffstat (limited to 'npc/001-8')
-rw-r--r-- | npc/001-8/hub.txt | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/npc/001-8/hub.txt b/npc/001-8/hub.txt index 9ba3cf5..50d3a59 100644 --- a/npc/001-8/hub.txt +++ b/npc/001-8/hub.txt @@ -386,9 +386,6 @@ OnPCLogoutEvent: warp "000-1", 22, 22; } - // TODO: Checks which doesn't belong here shouldn't be here! - HUB_Logout(@qhub_died); - @qhub_victor=0; @qhub_died=0; end; @@ -397,37 +394,5 @@ OnCancel: setpcblock(PCBLOCK_SOFT, false); warp "Save", 0, 0; end; - -// No penalty override -OnNoPenaltyCommand: - @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); - - // 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; - else if (@deathpenalty_override == 2) - getexp @realvalue/2, @realvaljob/2; - else - dispbottom l("BUG, REPORT ME: QHUB PENALTY OVERRIDE INVALID SIGNAL @@", @deathpenalty_override); - - // Clear temporary variables - @deathpenalty_override=0; - @deathpenalty_realvalue=0; - @deathpenalty_realvaljob=0; - @realvalue=0; - @realvaljob=0; - end; } |