tedexx 7 Posted April 5, 2017 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) Quote Share this post Link to post Share on other sites
0 Arduino 10 Posted April 5, 2017 yes, they are completely viable and are not to hard to implement. If i have time i will make a plugin for this events! 1 tedexx reacted to this Quote Share this post Link to post Share on other sites
0 tedexx 7 Posted April 6, 2017 (edited) Awesome! If I can help you with anything, I'm really interested to learn more about Herc core and plugins too. Edited April 6, 2017 by tedexx Quote Share this post Link to post Share on other sites
0 4144 364 Posted April 8, 2017 OnPCGetHit and OnPCHit will conflict with current executed script. OnPCUseItem should works fine. Quote Share this post Link to post Share on other sites
0 tedexx 7 Posted April 8, 2017 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? Quote Share this post Link to post Share on other sites
0 4144 364 Posted April 8, 2017 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. Quote Share this post Link to post Share on other sites
0 tedexx 7 Posted April 8, 2017 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? Quote Share this post Link to post Share on other sites
0 4144 364 Posted April 8, 2017 You can avoid this if not attach OnXXX events to player. Quote Share this post Link to post Share on other sites
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