Jump to content

Question

Posted

public static String calculateRewards()

{

TreeSet<DMPlayer> players = orderPosition(_dmPlayer.values());

 

String _htmlPrefix = null;

for (int j = 0; j < Config.DM_REWARD_FIRST_PLAYERS; j++)

{

if (players.isEmpty())

break;

 

DMPlayer player = players.first();

 

if (player.getPoints() == 0)

break;

 

rewardPlayer(player, j + 1);

players.remove(player);

 

 

{

 

for (L2PcInstance Player : L2World.getInstance().getAllPlayers().values())

Player.sendPacket(new ExShowScreenMessage("The Hunter Killer is "  + player.getPlayer().getName() + " whit " + player.getPoints()+ " kills.", 12000));

 

 

}

 

int playerPointPrev = player.getPoints();

 

if (!Config.DM_REWARD_PLAYERS_TIE)

continue;

 

while (!players.isEmpty())

{

player = players.first();

if (player.getPoints() != playerPointPrev)

break;

rewardPlayer(player, j + 1);

players.remove(player);

}

}

{

// Set state REWARDING so nobody can point anymore

setState(EventState.REWARDING);

return "";

}

}

 

hi, wanted to know if you can help me with this ....

I want the last line that says this:

{

/ / Set state point rewarding dog anymore so nobody

setState (EventState.REWARDING)

return "";

}

not exit in the form of general notice. I want to eliminate this form or directly that it is not announced anything.

return true removing fails me!

2 answers to this question

Recommended Posts

  • 0
Posted

Give more infos about chronicle / pack used, event used, and more, a detailed request, because I understood nothing (and I'm the sort of person who can understand a sentence from a russian using 2 words and ingame emotes, so...).

 

I have to add your code is messy or you deleted parts of it, some {  } have no need to exist.

 

I suppose you have created your file from an exemple, which one ?

  • 0
Posted

public static String calculateRewards()

{

TreeSet<DMPlayer> players = orderPosition(_dmPlayer.values());

 

String _htmlPrefix = null;

for (int j = 0; j < Config.DM_REWARD_FIRST_PLAYERS; j++)

{

if (players.isEmpty())

break;

 

DMPlayer player = players.first();

 

if (player.getPoints() == 0)

break;

 

rewardPlayer(player, j + 1);

players.remove(player);

 

 

{

 

for (L2PcInstance Player : L2World.getInstance().getAllPlayers().values())

Player.sendPacket(new ExShowScreenMessage("The Hunter Killer is "  + player.getPlayer().getName() + " whit " + player.getPoints()+ " kills.", 12000));

 

 

}

 

int playerPointPrev = player.getPoints();

 

if (!Config.DM_REWARD_PLAYERS_TIE)

continue;

 

while (!players.isEmpty())

{

player = players.first();

if (player.getPoints() != playerPointPrev)

break;

rewardPlayer(player, j + 1);

players.remove(player);

}

}

{

// Set state REWARDING so nobody can point anymore

setState(EventState.REWARDING);

return "";

}

}

 

hi, wanted to know if you can help me with this ....

I want the last line that says this:

{

/ / Set state point rewarding dog anymore so nobody

setState (EventState.REWARDING)

return "";

}

not exit in the form of general notice. I want to eliminate this form or directly that it is not announced anything.

return true removing fails me!

Add it to code

Give more informations

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