diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-09-20 20:15:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-09-20 20:15:51 -0300 |
commit | 50842b7eecde5d0f0152256f07d6504d557a699b (patch) | |
tree | 718c62c6e70ac5f2867c0887d22086cf31756111 /src/emap/script_buildins.c | |
parent | 501d7834ba0bc674cb38e7e3bdcde6483352052f (diff) | |
download | evol-hercules-50842b7eecde5d0f0152256f07d6504d557a699b.tar.gz evol-hercules-50842b7eecde5d0f0152256f07d6504d557a699b.tar.bz2 evol-hercules-50842b7eecde5d0f0152256f07d6504d557a699b.tar.xz evol-hercules-50842b7eecde5d0f0152256f07d6504d557a699b.zip |
I'll need notice capability too
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 7fe408a..0163a6a 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -3107,6 +3107,26 @@ BUILDIN(consolebug) } /*========================================== + * + *------------------------------------------*/ +BUILDIN(consoleinfo) +{ + struct StringBuf buf; + StrBuf->Init(&buf); + + if (!script->sprintf_helper(st, 2, &buf)) { + StrBuf->Destroy(&buf); + script_pushint(st, 0); + return false; + } + + ShowNotice("script notice : %d %d : %s\n", st->rid, st->oid, StrBuf->Value(&buf)); + StrBuf->Destroy(&buf); + script_pushint(st, 1); + return true; +} + +/*========================================== * gmcommand [MouseJstr] *------------------------------------------*/ BUILDIN(atcommand) |