Jump to content
  • 0

How to add custom OnPCAttack Events?


Venture

Question


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  179
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

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
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:  10018
  • Reputation:   2372
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  179
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

Does it support the custom variable to get the attacked monster's GID? <Required>

How do I remove the mapflag limitation?

Edited by gekigengar
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...