Jump to content
  • 0

Help Classic Kamael - Castle info window


Ilusioner
 Share

Question

14 answers to this question

Recommended Posts

  • 0

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.

Link to comment
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.

Link to comment
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.

Link to comment
Share on other sites

  • 0

this is an interface, packages are responsible for them
client

  ExCastleWarInfo, ExRequestMercenaryCastleWarCastleSiegeAttacker, ExRequestMercenaryCastleWarCastleSiegeDefender, ExRequestMercenaryCastleWarCastleSiegeInfo

server

ExMercenaryCastleWarCastleInfo, ExMercenaryCastleWarCastleSiegeInfo, ExMercenarySiegeHUDInfo

Link to comment
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.

Link to comment
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.

Link to comment
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;
	}
}

 

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • 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