Jump to content
  • 0

Modify OnAttack Mod to detect ALL attacks not only Melee


Question

Posted

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

2 answers to this question

Recommended Posts

Posted

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)
{

Posted

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

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