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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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