Jump to content
  • 0

Issues adding Stats to Soul Links


Rivers

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   47
  • Joined:  12/04/13
  • Last Seen:  

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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   3
  • Joined:  04/29/14
  • Last Seen:  

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

 

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