summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-30 18:50:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-30 18:50:08 +0300
commitc3c009a7e2c3ad40048935de0d0538081cf613be (patch)
tree382fab456507ce0759d28b2ecd6dcd84737a4be0 /src/map/script.c
parent21ec9caab9010b3109050dd891228c191e2b0dd0 (diff)
downloadevol-hercules-c3c009a7e2c3ad40048935de0d0538081cf613be.tar.gz
evol-hercules-c3c009a7e2c3ad40048935de0d0538081cf613be.tar.bz2
evol-hercules-c3c009a7e2c3ad40048935de0d0538081cf613be.tar.xz
evol-hercules-c3c009a7e2c3ad40048935de0d0538081cf613be.zip
Add script command for change npc dialog title.
New script command: setnpcdialogtitle newtitle
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c13
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;
+}