@feelreset @hatereset commands for normal players

Thyr

New member
Messages
78
Points
0
Github
warcraftfrozen
How can i add these commands to normal players? @feelreset and @hatereset also @skillall command

 
Last edited by a moderator:
Add them in /conf/groups.conf to the group that has id: 0, usually this group is named "Player".

In the Commands section of this group, add the following:

feelreset: true
allskill: true


For @hatereset I could not find this command in the source.

 
hatereset is a custom command.

someone gave me this code long ago.

not sure if I should share, but this should probably be in our official code thing.

atcommand.c

ACMD(hatredreset)
{
    pc->resethate(sd);
    clif->message(fd, msg_fd(fd,1552));  //Hatred mark target has been reset.

    return true;
}
pc.c
Code:
int pc_resethate(struct map_session_data* sd)
{
    int i;
    nullpo_ret(sd);

    for (i = 0; i < MAX_PC_FEELHATE; i++) {
        sd->hate_mob[i] = -1;
        pc_setglobalreg(sd,script->add_str(pc->sg_info[i].hate_var),0);
    }
    return 0;
}
 You need to add msg 1552 or whatever number you want to conf/messages.conf

also there might be more to it cos this was just inside a plugin on my server.

good luck lol. maybe someone who reads this post can help put my stuff together. i am kind of lazy right now sorry.

 
Last edited by a moderator:
@True Zeal

thanks for that info

For commands introduced by plugins I believe you can simply add them to groups.conf like any other command. For commands introduced by scripts though you have to set the group in bindatcmd, but soon you'll be able to specify for each individual group.

----------------------------------------------------------------

@CraftNCheez

simply add the following to your groups.conf, in the Commands section of the Player group:

feelreset: true
allskill: true
hatredreset: true


Hope it helps

 
Last edited by a moderator:
Back
Top