markblank05
New member
- Messages
- 17
- Points
- 0
How to remove channel map text every time I change map? There is always You are now in the '#map' channel for 'prontera'. How to remove this?
if (!silent && !(chan->options&HCS_OPT_ANNOUNCE_JOIN)) { char output[CHAT_SIZE_MAX]; if (chan->type == HCS_TYPE_MAP) { sprintf(output, msg_sd(sd,1435), chan->name, map->list[chan->m].name); // You're now in the '#%s' channel for '%s' } else { sprintf(output, msg_sd(sd,1403), chan->name); // You're now in the '%s' channel } clif->colormes(sd->fd, COLOR_DEFAULT, output); }
is there any another way without eding the src? like just turning off this option?If you want to remove it from every single map you can just delete this from your channel.c
if (!silent && !(chan->options&HCS_OPT_ANNOUNCE_JOIN)) { char output[CHAT_SIZE_MAX]; if (chan->type == HCS_TYPE_MAP) { sprintf(output, msg_sd(sd,1435), chan->name, map->list[chan->m].name); // You're now in the '#%s' channel for '%s' } else { sprintf(output, msg_sd(sd,1403), chan->name); // You're now in the '%s' channel } clif->colormes(sd->fd, COLOR_DEFAULT, output); }
We use essential cookies to make this site work, and optional cookies to enhance your experience.