Jump to content
  • 0

Archer Concentration skill stats modifier


Question

Posted

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.

4 answers to this question

Recommended Posts

  • 1
Posted

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

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;

 

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

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