Jump to content
  • 0

[Request] Restart countdown screen message


Question

Posted

Hey guys!

It's been a while since I last asked for your help.

 

I need a code that makes a countdown until the restart/ shutdown show up on the bottom right corner of the screen, not only on the chat window.

I've seen it on many servers but I've been searching for it for a long time and I can't find it.

 

Thanks in advance. ::)

5 answers to this question

Recommended Posts

  • 0
Posted

For the countdown code itself (wasn't really clear if you asked only the second or/and the first part of your question too), you can see Shutdown.java file which use a countdown to shutdown server.

 

For what happen in the countdown code : you got a class named Broadcast.java listing all methods to broadcast things. On shutdown you use notably SendServerQuit( method using it (from my memories of basic L2JIL, it doesn't, but it should).

 

	private static void SendServerQuit(int seconds)
{
	SystemMessage sysm = SystemMessage.getSystemMessage(SystemMessageId.THE_SERVER_WILL_BE_COMING_DOWN_IN_S1_SECONDS);
	sysm.addNumber(seconds);
	Broadcast.toAllOnlinePlayers(sysm);
}

 

Instead of SystemMessage, use the packet I have given the name above. About the right corner thing you have to know how the given packet is working, and so find some documentations about parameters the packet can use.

 

PS : THE_SERVER_WILL_BE_COMING_DOWN_IN_S1_SECONDS is supposed to show a message as a ExShowScreenMessage. Some SystemMessage got that property. So if your ask got nothing to do with customs, and you want simply add the function correctly, I got no idea why it is wrong for you (or eventually you are using a chronicle where such packet wasn't *EVENTUALLY* existing).

  • 0
Posted

private static void SendServerQuit(int seconds)

{

SystemMessage sysm = SystemMessage.getSystemMessage(SystemMessageId.THE_SERVER_WILL_BE_COMING_DOWN_IN_S1_SECONDS);

sysm.addNumber(seconds);

Broadcast.toAllOnlinePlayers(sysm);

 

I'm assuming you meant to change the highlighted part with ExShowScreenMessage. I did that and sadly, it didn't work.

I should probably mention that there was no "ExShowScreenMessage.java" file in my serverpackets, so I added one I found online.

 

(I forgot to say in my first post that I use L2j Server Interlude)

  • 0
Posted

L2J IL hasn't that packet registered. You can find correct implementation on aCis for exemple. L2JFrozen probably got it aswell.

 

About the use :

 

Broadcast.toAllOnlinePlayers(new ExShowScreenMessage(param1, 2, 3, ...));

 

You didn't answer about if you wanted to use for custom or to fix Shutdown.java. As I stated, if you want to fix Shutdown.java, you have to search elsewhere, probably SystemMessage system itself is broken.

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

    • 🔥 Lineage 2 Haruna x3 – Interlude 🔥   Grand Opening 06.02.2026  Welcome to L2 Haruna x3, a classic Interlude server focused on retail-like gameplay, fair competition, and long-term stability. No pay-to-win, no broken customs — just real Lineage 2 the way it was meant to be played.   Website: https://l2haruna.com/ Discord: https://discord.gg/7DDC9Dsxnh Chronicle: Interlude Rates:  EXP/SP: x3   Adena: x2   Drop/Spoil: x1   Seal Stones: x1   Boss EXP/SP: x2 More Info: Click me Server Time: UTC +2 📈 Core Gameplay • Classic Interlude mechanics & formulas • Balanced economy • Real PvP, clan wars, sieges, and Olympiad 🏆 Olympiad Information • Olympiad starts 3 months after server opening • Participation only through the Olympiad Master • Competition time: 20:00 – 02:00 (UTC +2) ⚙️ Website & Account System • Master Account (MA) system on website • Game accounts must be created via Master Account • Vote system inside MA • Website rankings: PvP, PK, Clans, Castles 🧙 NPCs, Buffs & Utilities • Server Manager NPC in all towns and villages • Adventurer’s Guide (Miss Queen) in all towns and villages • Offline Buff Shops (.buffshop) allowed only in Monster Derby Track • In-game Mailbox system • Start-Up Bonus for all characters • FREE Teleport in all towns/villages until level 40 🎮 Interface & Quality of Life • ALT + K – Skill Panel (learn and enchant skills) • Alt + Click – Buff removal • Shift + Click on monsters – Drop and spoil information • Offline Shop system (set shop and exit game) • 35 seconds spawn protection • Captcha system in game (anti-bot protection) 💬 Chat System • Global chat (!) – Free, requires level 15 • Trade chat (+) – Free, requires level 15 • (!) Global chat • (+) Regional trade chat 🛡 Fair Play & Restrictions • Maximum 2 game clients per IP • Donate Coins and Vote Coins cannot be sold, dropped, traded, or destroyed • Cursed weapons disabled until first Heroes • Wedding system disabled (will be activated later) ⚔️ Class Progression • 1st Class Transfer – Quest required • 2nd Class Transfer – Quest required • 3rd Class Transfer – Full quest required • Subclass – Full quest required • Noblesse – Full quest required   🗡 Equipment • Shadow Weapons (D / C / B Grade) available via Shadow Weapon Manager 🧠 Technical & Protection • High-quality geodata and geo-engine • Advanced protection against DDoS attacks • Protection against third-party programs and cheats   Join Us Now! https://l2haruna.com/ 
    • High Five Part 5 can be uploaded?
    • do you have a Shinemaker Compiler?
  • 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..