Jump to content
  • 0

Changing Mercenary Loyalty Rates?


behelit

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  07/04/13
  • Last Seen:  

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.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

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 )

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  07/04/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  07/04/13
  • Last Seen:  

Sorry, still in the semi noob zone here. ?

Link to comment
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.

×
×
  • Create New...