diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-09 14:55:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-09 14:55:53 -0300 |
commit | 177914a338aa2c74656651bfa9ee6f10412b49b4 (patch) | |
tree | d7e7e42e997a9a1c70290f6ff87c869eb62008e0 /src/emap/script_buildins.c | |
parent | 4d3a66b4eab50397d6b4ee02b8e2f2b5c00aa527 (diff) | |
download | evol-hercules-177914a338aa2c74656651bfa9ee6f10412b49b4.tar.gz evol-hercules-177914a338aa2c74656651bfa9ee6f10412b49b4.tar.bz2 evol-hercules-177914a338aa2c74656651bfa9ee6f10412b49b4.tar.xz evol-hercules-177914a338aa2c74656651bfa9ee6f10412b49b4.zip |
WONT-FIX
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r-- | src/emap/script_buildins.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 263e3a6..a86b0ea 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -2687,3 +2687,23 @@ BUILDIN(getskillname) return true; } +/*========================================== + * + *------------------------------------------*/ +BUILDIN(debugmes) +{ + struct StringBuf buf; + StrBuf->Init(&buf); + + if (!script->sprintf_helper(st, 2, &buf)) { + StrBuf->Destroy(&buf); + script_pushint(st, 0); + return false; + } + + ShowDebug("script debug : %d %d : %s\n", st->rid, st->oid, StrBuf->Value(&buf)); + StrBuf->Destroy(&buf); + script_pushint(st, 1); + return true; +} + |