Jump to content
  • 0
tedexx

OnPCUseItem, OnPCGetHit, OnPCHit

Question

Are any of those events viable to Hercules? I don't know much about the event trigger workflow, wouldn't they be heavy to perform?

 

- OnPCUseItem: When a player consume an item

- OnPCGetHit: When a player get hit by something (return the damage taken)

- OnPCHit: When a player hit something (return the damage dealt)

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Awesome! If I can help you with anything, I'm really interested to learn more about Herc core and plugins too.

Edited by tedexx

Share this post


Link to post
Share on other sites
  • 0

OnPCGetHit and OnPCHit will conflict with current executed script.

OnPCUseItem should works fine.

Share this post


Link to post
Share on other sites
  • 0

OnPCGetHit and OnPCHit will conflict with current executed script.

OnPCUseItem should works fine.

 

Could you be more specific about the conflicts? Is there any way to track the amount of damage dealt or taken?

Share this post


Link to post
Share on other sites
  • 0

Start talking with any npc. And you got hit by some one, new script will be called. Now you have two scripts running.

But really can works only one script at time. This mean probably npc script will be terminated.

Share this post


Link to post
Share on other sites
  • 0

Start talking with any npc. And you got hit by some one, new script will be called. Now you have two scripts running.

But really can works only one script at time. This mean probably npc script will be terminated.

 

Hmm, I see. Do you think that there's no way to overcome this?

Share this post


Link to post
Share on other sites
  • 0

You can avoid this if not attach OnXXX events to player.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.