summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-14 00:39:22 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-14 00:39:22 -0200
commit1de81e10aa3efa99dfb15e4f931d4be8a33dcb19 (patch)
tree9d92396ba3909603c8cf8db0f49f7af6fd38af11
parenta9046d308843a5f9e7feb84ff33bad3ba9d34c19 (diff)
downloadserverdata-1de81e10aa3efa99dfb15e4f931d4be8a33dcb19.tar.gz
serverdata-1de81e10aa3efa99dfb15e4f931d4be8a33dcb19.tar.bz2
serverdata-1de81e10aa3efa99dfb15e4f931d4be8a33dcb19.tar.xz
serverdata-1de81e10aa3efa99dfb15e4f931d4be8a33dcb19.zip
Experiment, this time with a timer
-rw-r--r--npc/001-8/hub.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/npc/001-8/hub.txt b/npc/001-8/hub.txt
index 9a656bbc9..51abfc258 100644
--- a/npc/001-8/hub.txt
+++ b/npc/001-8/hub.txt
@@ -421,8 +421,7 @@ OnPCLogoutEvent:
// I want to know if it is already safe to read your current exp
// to implement a no-death-penalty and a halved-penalty system
if (is_staff() && @qhub_died) {
- dispbottom l("Exp: @@", readparam(BaseExp));
- dispbottom l("JExp: @@", readparam(JobExp));
+ addtimer(200, "#QuirinoHUB::OnNoPenaltyCommand");
}
@qhub_victor=0;
@@ -433,5 +432,10 @@ OnCancel:
setpcblock(PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_ITEM|PCBLOCK_MOVE|PCBLOCK_COMMANDS, false);
warp "Save", 0, 0;
end;
+
+OnNoPenaltyCommand:
+ dispbottom l("Exp: @@", readparam(BaseExp));
+ dispbottom l("JExp: @@", readparam(JobExp));
+ end;
}