summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-03-28 00:12:00 +0100
committerJesusaves <cpntb1@ymail.com>2021-02-14 16:27:55 -0300
commit562e8f2822060bdfc9802dd1f45285515ca71b12 (patch)
treef0fc6eb941c8835c59d1b116f57fc2a629de2dd3 /src/map
parent235e261e5376951811bb016fcadf77ebef6ed606 (diff)
downloadhercules-562e8f2822060bdfc9802dd1f45285515ca71b12.tar.gz
hercules-562e8f2822060bdfc9802dd1f45285515ca71b12.tar.bz2
hercules-562e8f2822060bdfc9802dd1f45285515ca71b12.tar.xz
hercules-562e8f2822060bdfc9802dd1f45285515ca71b12.zip
Add optional paramter <account id> to checkpcblock() script command
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 536061307..4756fa73b 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -18992,7 +18992,7 @@ static BUILDIN(setpcblock)
static BUILDIN(checkpcblock)
{
- struct map_session_data *sd = script->rid2sd(st);
+ struct map_session_data *sd = script_hasdata(st, 2) ? script->id2sd(st, script_getnum(st, 2)) : script->rid2sd(st);
int retval = PCBLOCK_NONE;
if (sd == NULL) {
@@ -26443,8 +26443,8 @@ static void script_parse_builtin(void)
BUILDIN_DEF(pcfollow,"ii"),
BUILDIN_DEF(pcstopfollow,"i"),
BUILDIN_DEF_DEPRECATED(pcblockmove,"ii"), // Deprecated 2018-05-04
- BUILDIN_DEF(setpcblock, "ii"),
- BUILDIN_DEF(checkpcblock, ""),
+ BUILDIN_DEF(setpcblock, "ii?"),
+ BUILDIN_DEF(checkpcblock, "?"),
// <--- [zBuffer] List of player cont commands
// [zBuffer] List of mob control commands --->
BUILDIN_DEF(getunittype,"i"),