diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-02-22 18:01:31 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-02-22 18:01:31 -0300 |
commit | 4f5d098468ad13848c2c0f4589a8478d8d3f6176 (patch) | |
tree | 7278f37d5d52895efdfcb40c5928da6a445829d4 /npc/001-8 | |
parent | 8e4d975deb5d56fa1d8243367b0aa81a27490251 (diff) | |
download | serverdata-4f5d098468ad13848c2c0f4589a8478d8d3f6176.tar.gz serverdata-4f5d098468ad13848c2c0f4589a8478d8d3f6176.tar.bz2 serverdata-4f5d098468ad13848c2c0f4589a8478d8d3f6176.tar.xz serverdata-4f5d098468ad13848c2c0f4589a8478d8d3f6176.zip |
Handle death and logout at ship travels
Diffstat (limited to 'npc/001-8')
-rw-r--r-- | npc/001-8/hub.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/npc/001-8/hub.txt b/npc/001-8/hub.txt index d581659a3..4a0cc7e19 100644 --- a/npc/001-8/hub.txt +++ b/npc/001-8/hub.txt @@ -418,6 +418,20 @@ OnPCLogoutEvent: if (PC_DIE_COUNTER <= 1 && @qhub_died) { dispbottom l("Dying outside a town square will cause EXP loss."); } + // If you were travelling and died/logged out, cleaning is needed + if (@timer_navio_running) { + @timer_navio_running=0; + // Logged out? Correct your position to inside the ship + // Of course, this is messy... But still better than Save Point + if (!@qhub_died) { + if (.@mapa$ ~= "016-*") + warp "016-1", 28, 27; + else if (.@mapa$ ~= "002-*") + warp "002-1", 55, 40; + else + warp "Save", 0, 0; + } + } // This allows code to override death penalty, just once: // @deathpenalty_override |