diff options
Diffstat (limited to 'src/map/npc_chat.c')
-rw-r--r-- | src/map/npc_chat.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/map/npc_chat.c b/src/map/npc_chat.c index 7d8e0e21f..eaab82aff 100644 --- a/src/map/npc_chat.c +++ b/src/map/npc_chat.c @@ -372,20 +372,6 @@ 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
*/
@@ -491,6 +477,14 @@ int npc_chat_sub(struct block_list *bl, va_list ap) return 0;
}
+int mob_chat_sub(struct block_list *bl, va_list ap){
+ struct mob_data *md = (struct mob_data *)bl;
+ if(md->nd){
+ npc_chat_sub(&md->nd->bl, ap);
+ }
+ return 0;
+}
+
// Various script builtins used to support these functions
int buildin_defpattern(struct script_state *st) {
|