From 5843032c1974caac3fc3f03b436a36fb3c1ae361 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Sun, 22 Aug 2010 02:31:17 +0000 Subject: Mob chat now strips "#unique" names off monsters, curtosy of Daegaladh. Touched up the Airship scripts. Fixed up some content based on official files. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14392 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map') diff --git a/src/map/mob.c b/src/map/mob.c index e1ba9cfea..4f98b8a39 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2991,6 +2991,10 @@ int mobskill_use(struct mob_data *md, unsigned int tick, int event) if (ms[i].msg_id){ //Display color message [SnakeDrak] struct mob_chat *mc = mob_chat(ms[i].msg_id); char temp[CHAT_SIZE_MAX]; + char name[NAME_LENGTH]; + snprintf(name, sizeof name,"%s", md->name); + strtok(name, "#"); // discard extra name identifier if present [Daegaladh] + snprintf(temp, sizeof temp,"%s : %s", name, mc->msg); snprintf(temp, sizeof temp,"%s : %s", md->name, mc->msg); clif_messagecolor(&md->bl, mc->color, temp); } -- cgit v1.2.3-70-g09d2