Jump to content

Recommended Posts

Posted

for those who have problem with very long html

 

can be configured:

 

 

Index: /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java
===================================================================
--- /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java (revision 674)
+++ /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java (revision 687)
@@ -917,4 +917,5 @@
    public static boolean   ALLOW_TITLE_FOR_NEW_CHARS; 
    public static String    TITLE_FOR_NEW_CHARS;
+   public static int       NPC_HTML_LIMIT;
    public static boolean   CASTLE_SHIELD; 
    public static boolean   CLANHALL_SHIELD; 
@@ -1288,5 +1289,5 @@
               ALT_NEW_SPAWN_Y = Integer.parseInt(L2JBrasil.getProperty("CustomSpawnY", ""));  
               ALT_NEW_SPAWN_Z = Integer.parseInt(L2JBrasil.getProperty("CustomSpawnZ", ""));  
+              NPC_HTML_LIMIT  = Integer.parseInt(L2JBrasil.getProperty("NpcHtmlLimit", "8192")); 
               TITLE_FOR_NEW_CHARS = L2JBrasil.getProperty("SetNewCharTitle", "L2JBrasil");
               SHOW_WELCOME_HTML_ON_PLAYER_LOGIN = Boolean.parseBoolean(L2JBrasil.getProperty("ShowWelcomeinfo", "False"));
Index: /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/serverpackets/NpcHtmlMessage.java
===================================================================
--- /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/serverpackets/NpcHtmlMessage.java (revision 623)
+++ /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/serverpackets/NpcHtmlMessage.java (revision 687)
@@ -169,5 +169,5 @@
	public void setHtml(String text)
	{
-        if(text.length() > 8192)
+        if(text.length() > Config.NPC_HTML_LIMIT)
		{
			_log.warning("Html is too long! this will crash the client!");
Index: /TrunK/L2JBrasil_CORE/config/L2JBrasil.properties
===================================================================
--- /TrunK/L2JBrasil_CORE/config/L2JBrasil.properties (revision 674)
+++ /TrunK/L2JBrasil_CORE/config/L2JBrasil.properties (revision 687)
@@ -271,2 +271,5 @@
ClanLevel8Members = 80
ClanLevel9Members = 100
+
+#html limitations size allowed 
+NpcHtmlLimit = 8192

Posted

has some npc q is very long .. html

as the drop of the mob, but of course you can reduce the drops ..

 

but if you even want a html faser with several lines can be configured with this option

 

I know several here do not need it, but those who already use compiled  pack is good.

Posted

Index: /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/serverpackets/NpcHtmlMessage.java

===================================================================

--- /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/serverpackets/NpcHtmlMessage.java (revision 623)

+++ /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/serverpackets/NpcHtmlMessage.java (revision 687)

@@ -169,5 +169,5 @@

public void setHtml(String text)

{

-        if(text.length() > 8192)

+        if(text.length() > Config.NPC_HTML_LIMIT)

{

_log.warning("Html is too long! this will crash the client!");

 

if it is > 8192 client will be crash ! :|

 

don't spam

Eh,it's very good

especially for the rbs.

 

Posted

yep i some time ago made that and like xAddytzu that rly crash client then that isnt recommendet,for rbs drop better thing is edite that script, add something like pages, 1page = 10items and you dont get any errors ;]

Posted

Seriously, why are you people editing things you shouldn't? What's the point to do that? Locked.

Guest
This topic is now closed to further replies.


  • Posts

    • 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.
    • whats password from the archivie ?
    • All that shit are false positives of the vanganth cliext, sources are well and who sell it is a big scammer
    • 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      
  • Topics

×
×
  • Create New...