Ilusioner Posted March 22, 2021 Share Posted March 22, 2021 Hi! Anyone knows hot to fix Castle information window? I didnt found any config for it. Link to comment Share on other sites More sharing options...
0 Rootware Posted April 3, 2021 Share Posted April 3, 2021 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 More sharing options...
0 Irrelevant Posted March 23, 2021 Share Posted March 23, 2021 Its html Link to comment Share on other sites More sharing options...
0 Ilusioner Posted March 23, 2021 Author Share Posted March 23, 2021 11 hours ago, Irrelevant said: Its html Can you tell me which file? Link to comment Share on other sites More sharing options...
0 Irrelevant Posted March 23, 2021 Share Posted March 23, 2021 9 minutes ago, Ilusioner said: Can you tell me which file? shift + target at npc ~> find npc id ~> go to html and find that id as htm Link to comment Share on other sites More sharing options...
0 Ilusioner Posted March 24, 2021 Author Share Posted March 24, 2021 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 More sharing options...
0 Irrelevant Posted March 24, 2021 Share Posted March 24, 2021 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 Link to comment Share on other sites More sharing options...
0 Ilusioner Posted March 24, 2021 Author Share Posted March 24, 2021 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 More sharing options...
0 Drazeal Posted March 24, 2021 Share Posted March 24, 2021 (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 March 24, 2021 by Drazeal Link to comment Share on other sites More sharing options...
0 LexaKAZAN Posted March 24, 2021 Share Posted March 24, 2021 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 More sharing options...
0 Zake Posted March 25, 2021 Share Posted March 25, 2021 This is most likely a client side window. Since it gathers information correctly, you have to check your interface 1 Link to comment Share on other sites More sharing options...
0 Rootware Posted April 2, 2021 Share Posted April 2, 2021 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 More sharing options...
0 Ilusioner Posted April 2, 2021 Author Share Posted April 2, 2021 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 More sharing options...
0 Rootware Posted April 2, 2021 Share Posted April 2, 2021 (edited) I think what server sending CastleSiegeInfo packet. And he can have wrong structure, as example. Edited April 2, 2021 by Rootware Link to comment Share on other sites More sharing options...
0 Ilusioner Posted April 3, 2021 Author Share Posted April 3, 2021 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 More sharing options...
Question
Ilusioner
Hi!
Anyone knows hot to fix Castle information window?
I didnt found any config for it.
Link to comment
Share on other sites
14 answers to this question
Recommended Posts