Jump to content
  • 0

Changing Mercenary Loyalty Rates?


Question

Posted

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.

4 answers to this question

Recommended Posts

  • 0
Posted
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 )

  • 0
Posted
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...