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

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