Topic: [Solved] command /clan change
how to make /clan change <channel> for change name clan...
Added: 08.12.2012 14:31
to make multi Chieftain...
PvPGN Community Forums |
forums.pvpgn.pro → [EN] The Source Code → [Solved] command /clan change
how to make /clan change <channel> for change name clan...
Added: 08.12.2012 14:31
to make multi Chieftain...
Example :
I don't understand from your screenshots how that command works. Your clan name is K24, so why do you change it to K24 and why will it have multiple chieftain?
how to change clan channel name?
please help me.
I don't understand from your screenshots how that command works. Your clan name is K24, so why do you change it to K24 and why will it have multiple chieftain?
i think he means
his clan channel home is K-24
he want to change his channel home to K-25
#2
he want clan chieftain more than 1
so if 1 chieftain busy, other chieftain can handle the clan
sorry if my english bad
i hope you understand
Open src/bnetd/command.cpp and examine function _handle_clan_command.
You have to add there new else condition to handle "/clan change <ChannelName>" behavior.
how source code to change record short in table clan?
field as the name of the channel for each clan.
in file handle_bnet.cpp
case CLIENT_JOINCHANNEL_NORMAL:
eventlog(eventlog_level_info, __FUNCTION__, "[%d] CLIENT_JOINCHANNEL_NORMAL channel \"%s\"", conn_get_socket(c), cname);
if (prefs_get_ask_new_channel() && (!(channellist_find_channel_by_name(cname, conn_get_country(c), realm_get_name(conn_get_realm(c)))))) {
found = 0;
eventlog(eventlog_level_info, __FUNCTION__, "[%d] didn't find channel \"%s\" to join", conn_get_socket(c), cname);
message_send_text(c, message_type_channeldoesnotexist, c, cname);
}
break;
case CLIENT_JOINCHANNEL_GENERIC:
if ((user_clan = account_get_clan(account)) && (chsname = clan_get_channel_name(user_clan)))
{
std::ostringstream ostr;
ostr << "" << chsname;
tmpstr = ostr.str();
cname = tmpstr.c_str();
}
eventlog(eventlog_level_info, __FUNCTION__, "[%d] CLIENT_JOINCHANNEL_GENERIC channel \"%s\"", conn_get_socket(c), cname);
/* don't have to do anything here */
break;
case CLIENT_JOINCHANNEL_CREATE:
eventlog(eventlog_level_info, __FUNCTION__, "[%d] CLIENT_JOINCHANNEL_CREATE channel \"%s\"", conn_get_socket(c), cname);
eventlog(eventlog_level_info, __FUNCTION__, "[%d] CLIENT_JOINCHANNEL_CREATE channel \"%s\"", conn_get_socket(c), cname);
/* don't have to do anything here */
break;
and who to write data tu table clan..??
// get value
channelname = account_get_strattr(account, "BNET\\clan\\clan_channel")
// set value
account_set_strattr(account, "BNET\\clan\\clan_channel", channelname)
// get value
account_set_strattr(account, "BNET\\clan\\clan_channel") or account_get_strattr(account, "BNET\\clan\\clan_channel")?
// set value
account_set_strattr(account, "BNET\\clan\\clan_channel", newchannelname)
Added: 26.12.2012 15:55
Added: 26.12.2012 16:16
// get value
account_set_strattr(account, "BNET\\clan\\clan_channel") or account_get_strattr(account, "BNET\\clan\\clan_channel")?// set value
account_set_strattr(account, "BNET\\clan\\clan_channel", newchannelname)not work.
Added: 26.12.2012 15:55
can anyone explain how to make /clan change?
thanks
done, solve
forums.pvpgn.pro → [EN] The Source Code → [Solved] command /clan change