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.



  • Posts

    • 저는 시스템을 한국어로 번역하고 인터페이스를 다운로드하여 적용했습니다. /target /attack 명령이 작동하지 않습니다. actionname.commandname을 변경했는데, 어디에서 변경해야 할까요? 전문가 여러분, 말씀해 주세요. 이걸 해결할 수 없어서 다음 단계로 넘어갈 수가 없어요 ㅠㅠ 명령어 이름이 문제인 것 같아요. 한국어로 번역하면 단축키가 안 먹히고, 영어로 번역하면 /attack 같은 명령어가 안 먹히네요. ㅠㅠ
    • thanks for the reply,   This is the Cadmus project  And i need  to adapt this community board to This is L2jOrion project  
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Hi does this still work for new update on varkas server??
  • Topics

×
×
  • Create New...