summaryrefslogtreecommitdiff
path: root/src/map/npc_chat.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-16 15:39:49 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-16 15:39:49 +0000
commitd5155d42388cf3540fdf415512c2bfad0c8d5f8e (patch)
treeb7072b6cbe41a2520075d5d8761a6deed4b39d6b /src/map/npc_chat.c
parent31e195ae1d7b165be2f2a404ece5d90f1d6a4785 (diff)
downloadhercules-d5155d42388cf3540fdf415512c2bfad0c8d5f8e.tar.gz
hercules-d5155d42388cf3540fdf415512c2bfad0c8d5f8e.tar.bz2
hercules-d5155d42388cf3540fdf415512c2bfad0c8d5f8e.tar.xz
hercules-d5155d42388cf3540fdf415512c2bfad0c8d5f8e.zip
* BL_PC and BL_MOB control script commands (experimental).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5627 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc_chat.c')
-rw-r--r--src/map/npc_chat.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/npc_chat.c b/src/map/npc_chat.c
index 6c5b513e8..7d8e0e21f 100644
--- a/src/map/npc_chat.c
+++ b/src/map/npc_chat.c
@@ -372,6 +372,20 @@ void npc_chat_finalize(struct npc_data *nd)
aFree(npcParse);
}
+int mob_chat_sub(struct block_list *bl, va_list ap){
+ int len;
+ unsigned char *msg = NULL;
+ struct map_session_data *sd = NULL;
+ struct mob_data *md = (struct mob_data *)bl;
+ if(md->nd){
+ msg = va_arg(ap,unsigned char*);
+ len = va_arg(ap,int);
+ sd = va_arg(ap,struct map_session_data *);
+ npc_chat_sub(&md->nd->bl, msg, len, sd);
+ }
+ return 0;
+}
+
/**
* Handler called whenever a global message is spoken in a NPC's area
*/