/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package custom.BossRespawn;
import javolution.text.TextBuilder;
import com.l2jserver.gameserver.instancemanager.GrandBossManager;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jserver.gameserver.datatables.NpcTable;
public class BossRespawn extends Quest
{
private static final int NPC_ID = 93000;
private static final int[] BOSSES = {29001, 29006, 29014, 29019, 29020, 29022, 29028, 29045};
public BossRespawn(int questid, String name, String descr)
{
super(questid, name, descr);
addFirstTalkId(NPC_ID);
}
public String onFirstTalk(L2Npc npc, L2PcInstance pc)
{
if(npc == null || pc == null)
return null;
if(npc.getNpcId() == NPC_ID)
{
sendInfo(pc);
}
return null;
}
private void sendInfo(L2PcInstance activeChar)
{
TextBuilder tb = new TextBuilder();
tb.append("<html><title>Grand Boss Info By Dleogr</title><body><br><center>");
tb.append("<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><br>");
for(int boss : BOSSES)
{
String name = NpcTable.getInstance().getTemplate(boss).getName();
long delay = GrandBossManager.getInstance().getStatsSet(boss).getLong("respawn_time");
if (delay <= System.currentTimeMillis())
{
tb.append("<font color=\"00C3FF\">" + name + "</color>: " + "<font color=\"9CC300\">Is Alive</color>"+"<br1>");
}
else
{
int hours = (int) ((delay - System.currentTimeMillis()) / 1000 / 60 / 60);
int mins = (int) (((delay - (hours * 60 * 60 * 1000)) - System.currentTimeMillis()) / 1000 / 60);
int seconts = (int) (((delay - ((hours * 60 * 60 * 1000) + (mins * 60 * 1000))) - System.currentTimeMillis()) / 1000);
tb.append("<font color=\"00C3FF\">" + name + "</color>" + "<font color=\"FFFFFF\">" +" " + "Respawn in :</color>" + " " + " <font color=\"32C332\">" + hours + " : " + mins + " : " + seconts + "</color><br1>");
}
}
tb.append("<br><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>");
tb.append("</center></body></html>");
NpcHtmlMessage msg = new NpcHtmlMessage(NPC_ID);
msg.setHtml(tb.toString());
activeChar.sendPacket(msg);
}
public static void main(String[] args)
{
new BossRespawn(-1, "BossRespawn", "custom");
}
}
the script works on NPC but he only show's "ALIVE" :S
if you kill the Grand Boss like Baium etc. he always show alive.
Hello,
I’m working on decrypting the Init packet that the server sends to the client during login. This packet is treated specially and contains the Blowfish keys used to encrypt and decrypt subsequent packets. Although it isn’t encrypted irreversibly and should be reversible, I haven’t succeeded yet.
My goal is to extract the Blowfish key to decrypt certain client packets without disrupting the normal session flow. I can inject a DLL to sniff the packets, and with that I plan to develop a module that extends the client’s functionality. For example, after logging in, this module would capture all the data the client receives (character data, etc.). Additionally, it could listen for real-time server events, enabling integrations with Discord SDKs or other systems, thereby expanding Lineage 2’s capabilities.
Init packet(0x00) LoginServer.
Currently in the java Cores I checked there is no decode function for this package, only encript.
Information
Selling a premium Lineage 2 High Five (L2J) project with active development, available by subscription.
Includes Git support and access to compiled or full source code.
Ideal for serious server owners seeking stability and performance, uniqueness and well-done features.
General Project Specifications:
JDK Version: 23 -> 24
Chronicle: HighFive
Structure: Core & Datapack merged into a single project
Database: MariaDB
Database Driver: HicariCP
GIT Website: gitlab.com
Features include (but are not limited to):
1. Tournament Single & Party (Check Youtube Video)
2. Faction (Check Youtube Video)
3. Event Engine (Check Youtube Video)
4. Sell Buff System (Check Youtube Video)
5. Start UP System (Check Youtube Video)
6. User Panel
7. Visual - Dress me System
8. Donate Store
9. Automatic Farm System (Check Youtube Video)
10. Captcha (Anti-BOT) (Check Youtube Video)
11. Auction (Check Youtube Video)
12. Vote (API)
13. Admin Real Time Balance (Check Youtube Video)
14. Achievements (Check Youtube Video)
15. Daily Mission (Check Youtube Video)
16. A.I. Bot (Check Youtube Video)
17. Rebirth
18. Daily Reward
19. Skill Tree - Ability System
20. Craft System
21. Twitch Automatic Reward (Check Youtube Video)
22. Quiz Game (Check Youtube Video)
23. Automatic Item Enchant (Check Youtube Video)
24. Secondary Auth Using Google Authenticator (Check Youtube Video)
25. Gm Shop - Gatekeeper - Scheme Buffer
How to get Access (Payment Subscription):
To get Access you either pay monthly subscription to GIT for source or Compiled. Project is currently active and has at least 1-2 commit / day.
Clients in both Compiled & Source subscription can request features or any addon in already existing mods inside discord.
Price per Month (Source) in GIT: 250 Eur
Price per Month (Compiled) in GIT: 100 Eur
Contact:
To get Access or ask further information join discord
https://discord.gg/gKAsAhJNuq
Question
mrnapz
the script works on NPC but he only show's "ALIVE" :S
if you kill the Grand Boss like Baium etc. he always show alive.
9 answers to this question
Recommended Posts