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


  • Posts

    • Name: Giran Castle Town (Autumn Version) Type: Map Location: 22_22 Chronicle: Interlude Credits: AzukaChan Notes: Includes effects that are not visible in the preview. Chronicle Coders Have server/client development questions? Join the Chronicle Coders Discord: https://discord.gg/5zHzFGyGns   < DOWNLOAD LINK >
    • 🔒 Direct account upgrade: No passwords required. Unlock 5TB Drive storage and Google One AI integrations instantly.     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
    • We provide DDoS protection for Perfect World, Jade Dynasty, and other game servers. Your server connects through a dedicated DDoS-protected IP address. Traffic is filtered and forwarded to your game server over a secure connection. What we offer: Protection against L3/L4 DDoS attacks; Protection for TCP and UDP game servers; Filtering of malicious and abnormal traffic; Protection against game port overload; Hiding your game server’s real IP address; Preserving players’ real IP addresses; Protection configured specifically for your gaming project; A stable connection with minimal impact on latency; Bandwidth tailored to your requirements. Free 3-day DDoS protection trial for everyone. You can connect your existing server and test latency, connection stability, and protection performance under real traffic loads. Pricing is calculated individually for each client, based on the project, required bandwidth, and protection configuration. Setup and support: Telegram: @alex_protection Products: Alex DDoS-Guard | Reliable Protection for Your Services and Game Servers
    • That sounds great, but the download link is dead for me too. Could you re-upload it or send it directly? Thanks for sharing the event
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..