Jump to content
  • 0

Archer Concentration skill stats modifier


agent66

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  01/27/22
  • Last Seen:  

I have tried to search for it everywhere in code, but I can't find where I can modify the amount of dex and agi gained from the skill Improve Concentration of archer.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  155
  • Reputation:   51
  • Joined:  07/15/13
  • Last Seen:  

go to src/map/status.cpp and search case SC_CONCENTRATE: then if you find this line

 

		case SC_CONCENTRATE:
			val2 = 2 + val1;
			if (sd) { // Store the card-bonus data that should not count in the %
				val3 = sd->indexed_bonus.param_bonus[1]; // Agi
				val4 = sd->indexed_bonus.param_bonus[4]; // Dex
			} else
				val3 = val4 = 0;
			break;

change value 2 to your desired number. Need remember this skill upgrades your agi/dex by one per level, if you put 8, at max level you'll have +18 AGI/DEX

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  01/27/22
  • Last Seen:  

Thank you Elysium, I was trying to search for AC_CONCENTRATION since I though AC meant archer, anyway, I actually wanted to modify the agi separetly, but thanks to you I found out that this code below change the agi stats.

if(sc->data[SC_CONCENTRATE] && !sc->data[SC_QUAGMIRE])
agi += (agi-sc->data[SC_CONCENTRATE]->val3)*sc->data[SC_CONCENTRATE]->val2/100;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  155
  • Reputation:   51
  • Joined:  07/15/13
  • Last Seen:  

On 2/22/2022 at 10:43 AM, agent66 said:

Thank you Elysium, I was trying to search for AC_CONCENTRATION since I though AC meant archer, anyway, I actually wanted to modify the agi separetly, but thanks to you I found out that this code below change the agi stats.

if(sc->data[SC_CONCENTRATE] && !sc->data[SC_QUAGMIRE])
agi += (agi-sc->data[SC_CONCENTRATE]->val3)*sc->data[SC_CONCENTRATE]->val2/100;

 

You're welcome ?

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