Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] Tech Support → Bnet Allias

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 6

1 (edited by Saptago 12.07.2012 06:56)

Topic: Bnet Allias

Any one can help me to modify bnet allias ...
I want to make like this image :

http://img6.uploadhouse.com/fileuploads/16342/16342164a03b71b561891998bf4ccc0e2326c124.jpg

Any one suggest ??
Thx before

@
       //doubt //dt //d
       [0]/me looks with doubt
       [1+]/me looks at ${1-} with doubt
       @
       //numusers //nu
       [0]%IThere are %u users online.
       [0]%IThere are %g games online.
       [0]%IThere are %c channels online.
       [1+]%EThat command does not take any arguments.
       @
       //askban //ab
       [2+]/w $1 Please ban ${2-}.
       @
       //statsme //sm
       [0]/stats %u
       @
       //pvpgn
       [*]/announce PVPGN rulez!!

Thx before

2

Re: Bnet Allias

There are just aliases relating to commands that exist. Syntax is simple and it's documented in comments of the file bnalias.conf.

For instance:

@
//gadget //g
[1+]/help $1
@
//online //o
[1+]/whois $1
...

Usage example:

//gadget /msg
//o username

Some commands listed on the screenshot doesn't exist in a pvpgn.

Do not ask for support in PM.

3 (edited by Saptago 14.07.2012 17:44)

Re: Bnet Allias

HarpyWar wrote:

There are just aliases relating to commands that exist. Syntax is simple and it's documented in comments of the file bnalias.conf.

For instance:

@
//gadget //g
[1+]/help $1
@
//online //o
[1+]/whois $1
...

Usage example:

//gadget /msg
//o username

Some commands listed on the screenshot doesn't exist in a pvpgn.

I want to delete @ when i type // , i want display like //status not @ //status

do you understand the meaning of my question?

4

Re: Bnet Allias

Saptago wrote:

I want to delete @ when i type // , i want display like //status not @ //status

do you understand the meaning of my question?

Yes I do now.
Look at the function list_aliases in src/bnetd/alias_command.cpp
Remove unused code and it should looks like this:

static int list_aliases(t_connection * c)
{
    t_elem const *  elem1;
    t_elem const *  elem2;
    t_alias const * alias;
    t_output *      output;
    char            temp[MAX_MESSAGE_LEN];

    message_send_text(c,message_type_info,c,"Alias list:");
    LIST_TRAVERSE_CONST(aliaslist_head,elem1)
    {
    if (!(alias = (t_alias*)elem_get_data(elem1)))
        continue;

    std::sprintf(temp,"%.128s",alias->alias);
    message_send_text(c,message_type_info,c,temp);
    }
    return 0;
}
Do not ask for support in PM.

5

Re: Bnet Allias

HarpyWar wrote:
Saptago wrote:

I want to delete @ when i type // , i want display like //status not @ //status

do you understand the meaning of my question?

Yes I do now.
Look at the function list_aliases in src/bnetd/alias_command.cpp
Remove unused code and it should looks like this

static int list_aliases(t_connection * c)
{
    t_elem const *  elem1;
    t_elem const *  elem2;
    t_alias const * alias;
    t_output *      output;
    char            temp[MAX_MESSAGE_LEN];

    message_send_text(c,message_type_info,c,"Alias list:");
    LIST_TRAVERSE_CONST(aliaslist_head,elem1)
    {
    if (!(alias = (t_alias*)elem_get_data(elem1)))
        continue;

    std::sprintf(temp,"%.128s",alias->alias);
    message_send_text(c,message_type_info,c,temp);
    }
    return 0;
}

so I must build Pvpgn again to solve this problem with edit bnetallias handle ??
OK i will try this and give result for you harpy ..

Thx before

6

Re: Bnet Allias

thx harpywar

it works

Posts: 6

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] Tech Support → Bnet Allias