Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] The Source Code → [Solved] command /clan change

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 13

1

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...

2

Re: [Solved] command /clan change

Example :
http://forums.harpywar.com/extensions/hcs_image_uploader/uploads/0/4500/4634/thumb/p17dt3sfcc1fviijv10581vi61eql4.jpghttp://forums.harpywar.com/extensions/hcs_image_uploader/uploads/0/4500/4634/thumb/p17dt3sfcc1hiq1sdr1dl13l8s4r5.jpghttp://forums.harpywar.com/extensions/hcs_image_uploader/uploads/0/4500/4634/thumb/p17dt3sfcc19s63d28ra1vmj191i6.jpg

3

Re: [Solved] command /clan change

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?

Do not ask for support in PM.

4 (edited by H4rdb0y 10.12.2012 23:34)

Re: [Solved] command /clan change

how to change  clan channel  name?

please help me.

5

Re: [Solved] command /clan change

HarpyWar wrote:

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

6

Re: [Solved] command /clan change

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.

Do not ask for support in PM.

7

Re: [Solved] command /clan change

how source code to change record short in table clan?

8 (edited by H4rdb0y 26.12.2012 02:23)

Re: [Solved] command /clan change

http://forums.harpywar.com/extensions/hcs_image_uploader/uploads/0/4500/4697/thumb/p17fa2adofj9k3nf17041aum1i2t1.png

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..??

9

Re: [Solved] command /clan change

// get value
channelname = account_get_strattr(account, "BNET\\clan\\clan_channel")

// set value
account_set_strattr(account, "BNET\\clan\\clan_channel", channelname)
Do not ask for support in PM.

10 (edited by H4rdb0y 26.12.2012 16:16)

Re: [Solved] command /clan change

// 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

H4rdb0y wrote:

// 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

11

Re: [Solved] command /clan change

not work

12

Re: [Solved] command /clan change

can anyone explain how to make /clan change?

thanks

13

Re: [Solved] command /clan change

done, solve

Posts: 13

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [EN] The Source Code → [Solved] command /clan change



Generated in 0.072 seconds (84% PHP - 16% DB) with 20 queries