How to remove channel map text every time I change map?

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 you want to remove it from every single map you can just delete this from your channel.c

Code:
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);	}
 
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); }
is there any another way without eding the src? like just turning off this option?

 
You can disable autojoin to #map channel.

In file conf/channels.conf change

map_local_channel_autojoin: true
to

Code:
map_local_channel_autojoin: false
 
Back
Top