diff options
Diffstat (limited to 'src/map/npc_chat.c')
-rw-r--r-- | src/map/npc_chat.c | 14 |
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
*/
|