Jump to content
  • 0
KirieZ

Get everyone who killed a monster

Question

Hello everyone,

I would like to know if it's possible to get all the players who "helped" killing a monster, instead of only the one who killed it.

Like OnNPCKillEvent, but instead of running on one player, to run on all of them.

 

Does it needs changes in the source? Can you give me some tips from where to start?

 

Thanks in advance.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Well i would look in the source code for the OnNPCKillEvent and try to create something like a OnNPCSupportKillEvent based on this.

 

Theoretically you have to track who attacked that mob and afterwards trigger that label for all players that got tracked earlier..

Edited by Winterfox

Share this post


Link to post
Share on other sites
  • 0

I was thinking about using the part where the server does the exp distribution, but I don't know how and where labels are called in source.

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.