diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-08-22 02:31:17 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-08-22 02:31:17 +0000 |
commit | 5843032c1974caac3fc3f03b436a36fb3c1ae361 (patch) | |
tree | 199fec42d8d893b339feec3ca7cd38a5918a42a1 /src/map/mob.c | |
parent | a1761224ba058570943bed7f38d0ecfee22aa621 (diff) | |
download | hercules-5843032c1974caac3fc3f03b436a36fb3c1ae361.tar.gz hercules-5843032c1974caac3fc3f03b436a36fb3c1ae361.tar.bz2 hercules-5843032c1974caac3fc3f03b436a36fb3c1ae361.tar.xz hercules-5843032c1974caac3fc3f03b436a36fb3c1ae361.zip |
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
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |