• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Recognize multiple killers of PK victim

vonuzur

New Member
Joined
Nov 27, 2012
Messages
30
Reaction score
0
Hello everybody.

I have created a script that works when someone is PKed. It recognizes the Victim's XP and then gives the Killer a % of that XP. The only problem is that it only gives experience to the person that got the last hit.

I was wondering if it would be possible for the script to recognize that there were actually multiple people taking part in the attack and split the experiences evenly between the killers.

For example, there are 3 killers and 1 victim, killer 3 gets the last hit but killer 1 dealt 45% of the damage and killer 2 dealt 45% as well, leaving killer 3 dealing only 10% of the damage. Is there anyway to indicate how much damage each killer dealt and then have the script split it up depending on that?

I am very grateful for any assistance I can get..
Thank you,
Vonuzur
 
Back
Top