Jump to content
  • 0
Thyr

@feelreset @hatereset commands for normal players

Question

How can i add these commands to normal players? @feelreset and @hatereset also @skillall command

Edited by CraftNCheez

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

Edited by True Zeal

Share this post


Link to post
Share on other sites
  • 0

@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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.