diff options
author | Ridley <ridley8819@gmail.com> | 2020-01-08 01:21:21 +0100 |
---|---|---|
committer | Ridley <ridley8819@gmail.com> | 2020-01-09 01:00:55 +0100 |
commit | e6199edca8ad4eee32b7e34318f99f365d8520db (patch) | |
tree | 7b1a6e123e80bc667530b7abaac28812035b41a0 /src/map/script.c | |
parent | bf99547843038bc15dc1948748d969950e866465 (diff) | |
download | hercules-e6199edca8ad4eee32b7e34318f99f365d8520db.tar.gz hercules-e6199edca8ad4eee32b7e34318f99f365d8520db.tar.bz2 hercules-e6199edca8ad4eee32b7e34318f99f365d8520db.tar.xz hercules-e6199edca8ad4eee32b7e34318f99f365d8520db.zip |
Adding PCBLOCK_NPC to setpcblock script command
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index 396d084a3..b1f3af14c 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -19126,6 +19126,9 @@ static BUILDIN(setpcblock) if ((type & PCBLOCK_COMMANDS) != 0) sd->block_action.commands = state; + if ((type & PCBLOCK_NPC) != 0) + sd->block_action.npc = state; + return true; } @@ -19163,6 +19166,9 @@ static BUILDIN(checkpcblock) if (sd->block_action.commands != 0) retval |= PCBLOCK_COMMANDS; + if (sd->block_action.npc != 0) + retval |= PCBLOCK_NPC; + script_pushint(st, retval); return true; } @@ -27228,6 +27234,7 @@ static void script_hardcoded_constants(void) script->set_constant("PCBLOCK_IMMUNE", PCBLOCK_IMMUNE, false, false); script->set_constant("PCBLOCK_SITSTAND", PCBLOCK_SITSTAND, false, false); script->set_constant("PCBLOCK_COMMANDS", PCBLOCK_COMMANDS, false, false); + script->set_constant("PCBLOCK_NPC", PCBLOCK_NPC, false, false); script->constdb_comment("private airship responds"); script->set_constant("P_AIRSHIP_NONE", P_AIRSHIP_NONE, false, false); |