• 0
Sign in to follow this  
behelit

Changing Mercenary Loyalty Rates?

Question

Hi all! I figured out how to change homunculus and pet friendliness rates... But how do you change the Mercenary Loyalty rates? I can't find the configuration for it anywhere.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
16 minutes ago, behelit said:

Hi all! I figured out how to change homunculus and pet friendliness rates... But how do you change the Mercenary Loyalty rates? I can't find the configuration for it anywhere.

I think this is it:

void mercenary_kills(struct mercenary_data *md){
	if(md->mercenary.kill_count <= (INT_MAX-1)) //safe cap to INT_MAX
		md->mercenary.kill_count++;

	if( (md->mercenary.kill_count % 50) == 0 )
	{
		mercenary_set_faith(md, 1);
		mercenary_killbonus(md);
	}

	if( md->master )
		clif_mercenary_updatestatus(md->master, SP_MERCKILLS);
}

Try to change this value:
if( (md->mercenary.kill_count % 50) == 0 )

Share this post


Link to post
Share on other sites
  • 0

I could only find that in 

src/map/mercenary.hpp
src/map/mercenary.cpp

Does that mean I have to rebuild the server after the change? O_O

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, behelit said:

I could only find that in 

src/map/mercenary.hpp
src/map/mercenary.cpp

Does that mean I have to rebuild the server after the change? O_O

yes

Share this post


Link to post
Share on other sites
  • 0

Sorry, still in the semi noob zone here. 😅

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.   Paste as plain text instead

  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...
Sign in to follow this