OnPCUseItem, OnPCGetHit, OnPCHit

tedexx

New member
Messages
79
Points
0
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)

 
yes, they are completely viable and are not to hard to implement.

If i have time i will make a plugin for this events!

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

 
Last edited by a moderator:
OnPCGetHit and OnPCHit will conflict with current executed script.

OnPCUseItem should works fine.

 
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?

 
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.

 
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?

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

 
Back
Top