Jump to content
  • 0

HP/SP Drain


Rizta

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   5
  • Joined:  08/12/17
  • Last Seen:  

Hi!

How can i edit HP/SP Drain bonuses to work with Magic and Misc type skills? 

Edited by Rizta
forgot to tell is magic and misc skills
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   189
  • Joined:  11/27/11
  • Last Seen:  

I Don't really understand the problem. Can you specify which skills you would like to be affected ?

Edited by Vykimo
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   5
  • Joined:  08/12/17
  • Last Seen:  

On 11/8/2018 at 7:32 AM, Vykimo said:

I Don't really understand the problem. Can you specify which skills you would like to be affected ?

Anyone tagged as Magic or Misc. Magic Ex: any bolts, stormgust, lov, meteor storm etc.  Misc Ex: Falcon Assault, Blitz Beat etc...

Currently drain hp and sp only work with skill IF these skills r Weapon type.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   189
  • Joined:  11/27/11
  • Last Seen:  

Partial answer :

Go in skill.cpp, search for : 

	if( sd && src != bl && damage > 0 && ( dmg.flag&BF_WEAPON ||
		(dmg.flag&BF_MISC && (skill_id == RA_CLUSTERBOMB || skill_id == RA_FIRINGTRAP || skill_id == RA_ICEBOUNDTRAP)) ) )
	{

replace by this

	if( sd && src != bl && damage > 0 && ( dmg.flag&BF_WEAPON || dmg.flag&BF_MISC || dmg.flag&BF_MAGIC ) )
	{

 

This answer could partially answer your problem, but i'm not sure it would be enough..

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   5
  • Joined:  08/12/17
  • Last Seen:  

Thank you. I'll try this !

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