summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-07-14 00:41:17 -0300
committerJesusaves <cpntb1@ymail.com>2021-07-14 00:41:17 -0300
commita462574856c4c9584948014a90da6a09acd2ba86 (patch)
tree96a445157b2f13ec1df53776556f0d68e9fa1137 /npc/functions/main.txt
parentb2db2b045374e6960f6b1657de4c479f02350d3a (diff)
downloadserverdata-a462574856c4c9584948014a90da6a09acd2ba86.tar.gz
serverdata-a462574856c4c9584948014a90da6a09acd2ba86.tar.bz2
serverdata-a462574856c4c9584948014a90da6a09acd2ba86.tar.xz
serverdata-a462574856c4c9584948014a90da6a09acd2ba86.zip
Make GM Robe and GM Cap weightless (Big Crunch request)
Also, minor code edits (no visible effects ingame)
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt12
1 files changed, 4 insertions, 8 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 06b12a30..abdaa5dd 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -292,15 +292,11 @@ function script any_of {
}
function script die {
- if ($HARDCORE) {
+ // Distinguish scripted deaths for perma-death mode
+ if ($HARDCORE)
@grace=true;
- addtimer 10, "#GlobalHandler::OnDie"; // Wait script execution to finish
- //setparam(Hp, 1);
- //warp "000-1", 22, 22;
- //end; // MUST be end; to mimic official behavior
- } else {
- addtimer 10, "#GlobalHandler::OnDie"; // Wait script execution to finish
- }
+ // Wait script execution to finish
+ addtimer 10, "#GlobalHandler::OnDie";
return;
}