Jump to content
  • 0

Modify OnAttack Mod to detect ALL attacks not only Melee


Celsius

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  64
  • Reputation:   2
  • Joined:  11/14/11
  • Last Seen:  

Hi All.

Hope all can be fine ^^

I was testing a Mod i want to try some time ago.

http://www.eathena.ws/board/index.php?showtopic=258339&view=findpost&p=1414071

I already apply it to the latest revision of rAthena and work fine, almost like i need for a great idea ^^

The Only issue i find is that it wont detect when you are Hit with a Magical Skills or Ranged Skills

I trying already to figure out how to modify it to do it, but my Source Level is too low at the moment.

So I hhope someone can help me find how to do it.

Thanks in Advance ^^

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

i think you have to edit the content inside this function , just like what you did on the

static struct Damage battle_calc_weapon{
...............blablabla.......................
}

/*==========================================
* battle_calc_magic_attack [DracoRPG]
*------------------------------------------*/
struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list *target,int skill_num,int skill_lv,int mflag)
{

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  64
  • Reputation:   2
  • Joined:  11/14/11
  • Last Seen:  

Hmmm... you right, may due i was in a "zombie" status when i was checking it i dont see it xDD

Only is modified for damage and weapon attack, i'll try to check if i can do something with magic.

If i can i can add it here

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