summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2020-05-31 10:53:09 +0800
committerJedzkie <jedzkie13@rocketmail.com>2020-05-31 12:47:25 +0800
commit0b7768837bed2aa521de5b9b76b2348943d7db20 (patch)
tree292b40fa3ad99ca71e34c63b6fc6a2fa6c0e561d /src/map/script.c
parentec0584ac41434766e528b25730812da22ff31fc5 (diff)
downloadhercules-0b7768837bed2aa521de5b9b76b2348943d7db20.tar.gz
hercules-0b7768837bed2aa521de5b9b76b2348943d7db20.tar.bz2
hercules-0b7768837bed2aa521de5b9b76b2348943d7db20.tar.xz
hercules-0b7768837bed2aa521de5b9b76b2348943d7db20.zip
Added configuration on allowing actions on player when dead.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 45c954dc0..1ae20c42a 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -27871,6 +27871,11 @@ static void script_hardcoded_constants(void)
script->set_constant("P_AIRSHIP_INVALID_END_MAP", P_AIRSHIP_INVALID_END_MAP, false, false);
script->set_constant("P_AIRSHIP_ITEM_NOT_ENOUGH", P_AIRSHIP_ITEM_NOT_ENOUGH, false, false);
script->set_constant("P_AIRSHIP_ITEM_INVALID", P_AIRSHIP_ITEM_INVALID, false, false);
+
+ script->constdb_comment("player allowed actions when dead");
+ script->set_constant("PCALLOWACTION_NONE", PCALLOWACTION_NONE, false, false);
+ script->set_constant("PCALLOWACTION_TRADE", PCALLOWACTION_TRADE, false, false);
+ script->set_constant("PCALLOWACTION_CHAT", PCALLOWACTION_CHAT, false, false);
script->constdb_comment("questinfo types");
script->set_constant("QINFO_JOB", QINFO_JOB, false, false);