Jump to content
  • 0

How to add custom OnPCAttack Events?


Question

Posted (edited)

I am trying to create a custom OnPCAttack event, which gets the Attacked monster's ID when a player does physical strikes.

How do I do this..?

 

I saw something similar on eAthena,

 

http://www.eathena.ws/board/index.php?showtopic=205005

 

But that is when the NPC attacks the Player.

 

Which part of the source should I add this?

 

npc_event_doall("OnEventName");
pc_setglobalreg(sd,"var name =o",var from source which you want to import);

 

 

How do I do On PC Attack?

 

And can I actually attach Temporary NPC variable to monsters with script?

Edited by gekigengar

2 answers to this question

Recommended Posts

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