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.
×
×
  • Create New...