Jump to content
  • 0
Sign in to follow this  
ThyroDree

@hatredreset?

Question

8 answers to this question

Recommended Posts

  • 0

Well there's a way to reset hatred:

ACMD(hatereset){	pc->resethate(sd);	clif->message(fd, "Reset 'hate' mobs, kicking...");	clif->GM_kick(NULL, sd);	return true;}
Although I'm not sure if this is going to work...

Share this post


Link to post
Share on other sites
  • 0

I don't think so, I've just searched Hercules' source and found nothing with any of those names...

Share this post


Link to post
Share on other sites
  • 0

 

set PC_HATE_MOB_SUN,0;set PC_HATE_MOB_MOON,0;set PC_HATE_MOB_STAR,0;

The only way to Hatred reset from what I know is through an NPC.

Share this post


Link to post
Share on other sites
  • 0

 

 

set PC_HATE_MOB_SUN,0;set PC_HATE_MOB_MOON,0;set PC_HATE_MOB_STAR,0;

The only way to Hatred reset from what I know is through an NPC.

 

You could use a bindatcmd feature to make it into a command, just note that doing it this way requires a player to log off and back on for it to reset properly

Share this post


Link to post
Share on other sites
  • 0

Go look in src/map/atcommand.c

 

Basically, add it after another atcommand code has finished (for example, after the ACMD(skdebug) code) and you've got to also add a definition.

 

For adding an atcommand definition, just search this on the file:

ACMD_DEF(skdebug),

and add an the corresponding definition for the atcommand after it:

ACMD_DEF(hatereset),

 

That's it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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