Get everyone who killed a monster

KirieZ

Core Developers
Staff member
Messages
245
Points
0
Location
Brazil
Github
guilherme-gm
Emulator
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.

 
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..

 
Last edited by a moderator:
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.

 
Back
Top