Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

  • 0

Help Classic Kamael - Castle info window


Go to solution Solved by Rootware,

Question

14 answers to this question

Recommended Posts

  • 0
  • Solution

This packet sending common info for another place, e.g. for Castles Status in Map window. You need to find packet which sending single castle info.

Share this post


Link to post
Share on other sites
  • 0
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.

Share this post


Link to post
Share on other sites
  • 0
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.

Share this post


Link to post
Share on other sites
  • 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

Share this post


Link to post
Share on other sites
  • 0

this is an interface, packages are responsible for them
client

  ExCastleWarInfo, ExRequestMercenaryCastleWarCastleSiegeAttacker, ExRequestMercenaryCastleWarCastleSiegeDefender, ExRequestMercenaryCastleWarCastleSiegeInfo

server

ExMercenaryCastleWarCastleInfo, ExMercenaryCastleWarCastleSiegeInfo, ExMercenarySiegeHUDInfo

Share this post


Link to post
Share on other sites
  • 0

This is most likely a client side window. Since it gathers information correctly, you have to check your interface

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0
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.

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

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

Edited by Rootware

Share this post


Link to post
Share on other sites
  • 0
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;
	}
}

 

 

 

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.