From 9cca1e384248bc6f043248066f5bcca284cc5403 Mon Sep 17 00:00:00 2001 From: mekolat Date: Fri, 22 May 2015 09:57:15 -0400 Subject: implement set title packet --- src/map/script-fun.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/map/script-fun.cpp') 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 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'), -- cgit v1.2.3-70-g09d2