diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-05-22 09:57:15 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-06-16 16:13:41 -0400 |
commit | 9cca1e384248bc6f043248066f5bcca284cc5403 (patch) | |
tree | af34cf882bce2622bc71cf93b241d8013a34cc43 /src/map/script-fun.cpp | |
parent | 182e82a79c0455b6e6734b1cb6d83cfcd7f28d61 (diff) | |
download | tmwa-9cca1e384248bc6f043248066f5bcca284cc5403.tar.gz tmwa-9cca1e384248bc6f043248066f5bcca284cc5403.tar.bz2 tmwa-9cca1e384248bc6f043248066f5bcca284cc5403.tar.xz tmwa-9cca1e384248bc6f043248066f5bcca284cc5403.zip |
implement set title packet
Diffstat (limited to 'src/map/script-fun.cpp')
-rw-r--r-- | src/map/script-fun.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index 3949627..4ef480a 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -2675,6 +2675,16 @@ void builtin_message(ScriptState *st) } +static +void builtin_title(ScriptState *st) +{ + dumb_ptr<map_session_data> sd = script_rid2sd(st); + ZString msg = ZString(conv_str(st, &AARG(0))); + if (sd == nullptr) + return; + clif_npc_send_title(sd->sess, st->oid, msg); +} + /*========================================== * npctalk (sends message to surrounding * area) [Valaris] @@ -3145,6 +3155,7 @@ BuiltinFunction builtin_functions[] = BUILTIN(npcareawarp, "xyxyis"_s, '\0'), BUILTIN(message, "Ps"_s, '\0'), BUILTIN(npctalk, "s"_s, '\0'), + BUILTIN(title, "s"_s, '\0'), BUILTIN(getlook, "i"_s, 'i'), BUILTIN(getsavepoint, "i"_s, '.'), BUILTIN(areatimer, "MxyxytE"_s, '\0'), |