Ir para conteúdo
  • Cadastre-se

Classificação de Membros

Popular Content

Showing content with the highest reputation on 01/02/18 em todas as áreas

  1. More Info [Hidden Content] Gostou e espera Mais conteúdo? Curta o tópico! Creditos/Password: SHEV
    1 point
  2. Boa noite Encontrei um código para visualizar o HP das portas e muros dos Castelos e vim compartilhar, acabei de testar e funciona perfeitamente! Já que os que sabem ou dizem saber não compartilham (Muitos por aqui!!), sempre que eu encontrar correções e etc irei ficar postando aqui! Pois o fórum é para isso para compartilhar conhecimento e ideias com os demais membros! Código: Index: head-src/com/l2jfrozen/gameserver/model/actor/knownlist/PcKnownList.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/actor/knownlist/PcKnownList.java (revision 1113) +++ head-src/com/l2jfrozen/gameserver/model/actor/knownlist/PcKnownList.java (working copy) @@ -126,7 +126,14 @@ } else if (object instanceof L2DoorInstance) { - active_char.sendPacket(new DoorInfo((L2DoorInstance) object, false)); + if (((L2DoorInstance) object).getCastle() != null) + { + getActiveChar().sendPacket(new DoorInfo((L2DoorInstance) object, true)); + } + else + { + getActiveChar().sendPacket(new DoorInfo((L2DoorInstance) object, false)); + } active_char.sendPacket(new DoorStatusUpdate((L2DoorInstance) object)); } else if (object instanceof L2BoatInstance) Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRecordInfo.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRecordInfo.java (revision 1113) +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRecordInfo.java (working copy) @@ -90,7 +90,14 @@ } else if (object instanceof L2DoorInstance) { - _activeChar.sendPacket(new DoorInfo((L2DoorInstance) object, false)); + if (((L2DoorInstance) object).getCastle() != null) + { + _activeChar.sendPacket(new DoorInfo((L2DoorInstance) object, true)); + } + else + { + _activeChar.sendPacket(new DoorInfo((L2DoorInstance) object, false)); + } _activeChar.sendPacket(new DoorStatusUpdate((L2DoorInstance) object)); } else if (object instanceof L2BoatInstance) Index: head-src/com/l2jfrozen/gameserver/network/serverpackets/DoorInfo.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/serverpackets/DoorInfo.java (revision 1113) +++ head-src/com/l2jfrozen/gameserver/network/serverpackets/DoorInfo.java (working copy) @@ -28,10 +28,12 @@ { private static final String _S__60_DOORINFO = "[S] 4c DoorInfo"; private final L2DoorInstance _door; + private final boolean _showHp; public DoorInfo(final L2DoorInstance door, final boolean showHp) { _door = door; + _showHp = showHp; } @Override @@ -40,6 +42,7 @@ writeC(0x4c); writeD(_door.getObjectId()); writeD(_door.getDoorId()); + writeD(_showHp ? 1 : 0); } /* Créditos: Tessa Segue o prints: Porta: Muro:
    1 point
  3. Olá, Passei a acompanhar o projeto de perto. Raapaaaz, to gostando do que vi. Realmente precisamos de ideias assim para o fórum! Parabéns pelo projeto, amigo. Sem duvidas seria algo que eu usaria!
    1 point
×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.