From 637b1fee7f79c6acae420a2a1968ee55905d5b92 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 25 Jan 2019 11:47:41 -0200 Subject: Fix some regex glitches, warn player on first deaths that death penalty is there --- npc/001-8/hub.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'npc/001-8') diff --git a/npc/001-8/hub.txt b/npc/001-8/hub.txt index 061ef5061..d581659a3 100644 --- a/npc/001-8/hub.txt +++ b/npc/001-8/hub.txt @@ -399,7 +399,7 @@ OnPCLogoutEvent: setq HurnscaldQuest_BloodDonor, 0, gettimetick(2)+3600; // one hour penalty } // Logout/Death on Nard's ship hold - if (.@mapa$ ~= "002-2") { + if (.@mapa$ ~= "002-2" || .@mapa$ ~= "nard*") { setq2 ShipQuests_Peter, 0; setq3 ShipQuests_Peter, -1; } @@ -414,6 +414,10 @@ OnPCLogoutEvent: @deathpenalty_realvalue=readparam(BaseExp); @deathpenalty_realvaljob=readparam(JobExp); } + // First death produces a warning message + if (PC_DIE_COUNTER <= 1 && @qhub_died) { + dispbottom l("Dying outside a town square will cause EXP loss."); + } // This allows code to override death penalty, just once: // @deathpenalty_override -- cgit v1.2.3-70-g09d2