Jump to content
  • 0

Classic Kamael - Castle info window


Question

14 answers to this question

Recommended Posts

  • 0
Posted
13 hours ago, Irrelevant said:

shift + target at npc ~> find npc id ~> go to html and find that id as htm

There is no NPC.

This function is button in the system menu.

  • 0
Posted
42 minutes ago, Ilusioner said:

There is no NPC.

This function is button in the system menu.

find siege manager~>shift target~>find npc id and type~>go to html,type~>open id.htm <~edit

  • 0
Posted
2 hours ago, Irrelevant said:

find siege manager~>shift target~>find npc id and type~>go to html,type~>open id.htm <~edit

Siege manager has no castle infomation function.

So these htmls useless for my problem.

  • 0
Posted (edited)

if its system htm open ur admin "Showwindowname" and then use xdateditor to open interface.u and search for it. in there it will also say where it is located

 

Edited by Drazeal
  • 0
Posted

this is an interface, packages are responsible for them
client

  ExCastleWarInfo, ExRequestMercenaryCastleWarCastleSiegeAttacker, ExRequestMercenaryCastleWarCastleSiegeDefender, ExRequestMercenaryCastleWarCastleSiegeInfo

server

ExMercenaryCastleWarCastleInfo, ExMercenaryCastleWarCastleSiegeInfo, ExMercenarySiegeHUDInfo

  • 0
Posted

If you need fix wrong data in this window then you need check the server packet. Always siege info sending in packet and displaying in separated window.

 

For cosmetic fixes and string/textures typos you need edit interface.u file.

  • 0
Posted
4 hours ago, Rootware said:

If you need fix wrong data in this window then you need check the server packet. Always siege info sending in packet and displaying in separated window.

 

For cosmetic fixes and string/textures typos you need edit interface.u file.

I need to fix the clan/castle informations, not cosmetic fix.

I cant find in server side this script.

  • 0
Posted
9 hours ago, Rootware said:

I think what server sending CastleSiegeInfo packet. And he can have wrong structure, as example.

 

 

I dont have CastleSiegeInfo packet. I have ExShowCastleInfo packet.

 

 

package org.l2j.gameserver.network.serverpackets;

import java.util.Collection;

import org.l2j.commons.network.PacketWriter;
import org.l2j.gameserver.data.sql.ClanTable;
import org.l2j.gameserver.enums.TaxType;
import org.l2j.gameserver.instancemanager.CastleManager;
import org.l2j.gameserver.model.siege.Castle;
import org.l2j.gameserver.network.OutgoingPackets;


public class ExShowCastleInfo implements IClientOutgoingPacket
{
	public static final ExShowCastleInfo STATIC_PACKET = new ExShowCastleInfo();
	
	private ExShowCastleInfo()
	{
	}
	
	@Override
	public boolean write(PacketWriter packet)
	{
		OutgoingPackets.EX_SHOW_CASTLE_INFO.writeId(packet);
		
		final Collection<Castle> castles = CastleManager.getInstance().getCastles();
		packet.writeD(castles.size());
		for (Castle castle : castles)
		{
			packet.writeD(castle.getResidenceId());
			if (castle.getOwnerId() > 0)
			{
				if (ClanTable.getInstance().getClan(castle.getOwnerId()) != null)
				{
					packet.writeS(ClanTable.getInstance().getClan(castle.getOwnerId()).getName());
				}
				else
				{
					LOGGER.warning("Castle owner with no name! Castle: " + castle.getName() + " has an OwnerId = " + castle.getOwnerId() + " who does not have a  name!");
					packet.writeS("");
				}
			}
			else
			{
				packet.writeS("");
			}
			packet.writeD(castle.getTaxPercent(TaxType.BUY));
			packet.writeD((int) (castle.getSiege().getSiegeDate().getTimeInMillis() / 1000));
			
			packet.writeC(castle.getSiege().isInProgress() ? 0x01 : 0x00); // Grand Crusade
			packet.writeC(castle.getSide().ordinal()); // Grand Crusade
		}
		return true;
	}
}

 

 

 

 

Guest
This topic is now closed to further replies.


  • Posts

    • Γεια σε ολους, προσπαθω εδω και 2 μερες να κανω αυτο το πραγμα να λειτουργει. το καταφερα για ενα διαστημα 5 ωρων. αλλα φαινεται οτι το discord μου κανει block to dll. ή κατι αλλο που δεν μπορω να ειμαι σιγουρος για το τι φταιει... αν καποιος γνωριζει κατι ας στειλει ενα pm να το δουμε μαζι.  *το source το εφιαξα εγω. https://youtu.be/kMvrbo9VBZc  ενα βιντεο που δειχνει πως δουλευε πριν σταματησει να δουλευει...   
    • thank you, please move to the desired category
    • wrong section, you need move this post to https://maxcheaters.com/forum/72-marketplace-l2packs-files/
    • Unlock Unlimited Access with GoProxy's Residential Proxies!   Experience seamless, secure, and unrestricted connectivity worldwide with GoProxy's Unlimited Residential Proxies. Our service offers access to a global network of rotating residential IPs, ensuring top performance for your large-scale data collection, streaming, and more.     ✔️Unlimited Traffic & IPs: Enjoy unrestricted access with our rotating residential proxies, delivering high performance through a vast global IP pool. ✔️High Success Rate: Achieve a 99.96% success rate with a rapid 0.6-second response time, ensuring efficient and reliable operations. ✔️Flexible Sessions: Customize IP rotation to fit your project needs, with options for automatic rotation and sticky sessions lasting up to 60 minutes. ✔️Global Coverage: Access IPs from over 120 countries, making it ideal for businesses requiring high bandwidth without region-specific constraints.     All plans include unlimited traffic and IPs, unlimited concurrent requests, and access to real residential IP addresses. Elevate your online operations with GoProxy's Unlimited Residential Proxies—your smart choice for large-scale projects.   👉 Learn more and get started today: GoProxy Unlimited Proxies
  • Topics

×
×
  • Create New...