Jump to content
  • 0

[Help]Deathmatch Multi Winner


Question

Posted

Howdy! I'm wondering if anyone can help me with the deathmacth event reward... I wanted to make 3 winners like 1st, 2nd and 3rd.. I've been trying to make it work but unfortunately it didn't work at all.. I'm using l2jfrozen source. Below is the code for the deathmatch... Thank you in advance... I'm not a professional java dev, and my capabilities are limited, so a handful help from pro dev's would be great...

 

DeathMatch Event

1 answer to this question

Recommended Posts

  • 0
Posted

You have to edit processTopPlayer() in order it processes the 3 best instead of only one.

 

The advantage with your crap it is already storing the winner under a List, so you haven't a lot to do. The easiest would be to order the list by kills, and then retrieve the 3 first., so your goal is to sort _players according their kills and then feed _topPlayers with the 3 first rows from sorted _players.

 

Good luck.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock