diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index 6d9a5d0..da63a29 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -815,3 +815,16 @@ BUILDIN(changeMusic) send_changemusic_brodcast(m, music); return true; } + +BUILDIN(setNpcDialogTitle) +{ + const char *const name = script_getstr(st, 2); + if (!name) + return false; + struct map_session_data *sd = script->rid2sd (st); + if (!sd) + return false; + + send_changenpc_title(sd, st->oid, name); + return true; +} |