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 everyone, we are one of the top gaming currency stores. We work exclusively with top projects. If you are interested in anything like Adena, Coins, Equip, write to us Discord - pchelacoin Telegram - https://t.me/ipchelacoin BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM TOP PRICE !!!!!!!
    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock