summaryrefslogtreecommitdiff
path: root/npc/commands/resync.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-13 23:33:30 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-13 23:33:30 -0300
commite4dd8127069b3540d74135a057217e7920bbdc24 (patch)
tree3f65e76474b447dfc52bb9747a161263d7c596d0 /npc/commands/resync.txt
parent87e0cd4e5e828d01387f1a86a26a7383c4d5552d (diff)
downloadserverdata-e4dd8127069b3540d74135a057217e7920bbdc24.tar.gz
serverdata-e4dd8127069b3540d74135a057217e7920bbdc24.tar.bz2
serverdata-e4dd8127069b3540d74135a057217e7920bbdc24.tar.xz
serverdata-e4dd8127069b3540d74135a057217e7920bbdc24.zip
Safeguard
Diffstat (limited to 'npc/commands/resync.txt')
-rw-r--r--npc/commands/resync.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/commands/resync.txt b/npc/commands/resync.txt
index f96e1e05f..8e7b5e02e 100644
--- a/npc/commands/resync.txt
+++ b/npc/commands/resync.txt
@@ -11,6 +11,10 @@
end;
OnCall:
+ if (ispcdead()) {
+ dispbottom l("Impossible to resync: You are dead.");
+ end;
+ }
if (@rsync_delay > gettimetick(2) && readparam(Hp) < readparam(MaxHp))
dispbottom l("Not resync'ing to prevent flood.");
getmapxy(.@m$, .@x, .@y, 0);