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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.



×
×
  • Create New...