Jump to content
  • 0

Issues adding Stats to Soul Links


Question

Posted (edited)

Does anyone know how I might be able to add stats, or a percentage of stats to each Soul link? 
 

			if (skill_id == AS_SONICBLOW && sc->data[SC_SPIRIT]->val2 == SL_ASSASIN) {
				ATK_ADDRATE(wd->damage, wd->damage2, map_flag_gvg2(src->m) ? 25 : 100); //+25% dmg on woe/+100% dmg on nonwoe
				RE_ALLATK_ADDRATE(wd, map_flag_gvg2(src->m) ? 25 : 100 + &battle_config.delay_rate,100); //+25% dmg on woe/+100% dmg on nonwoe +-100% delay rate

 

Edited by Rivers

1 answer to this question

Recommended Posts

  • 0
Posted

In status.cpp, under the status_calc_x function.

eg. Increasing STR by 10% while under the Assassin Soul Link effect would require the changes be made under the status_calc_str function

static unsigned short status_calc_str(struct block_list *bl, struct status_change *sc, int str)
{
	...
    if(sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2==SL_ASSASIN)
      	str += (str * 20) / 100;
	...
}

 

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