Jump to content

Search the Community

Showing results for tags 'l2jfrozen'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • L2J
    • Help and Support
    • Tutoriais
    • Servidores
    • Sites
    • Download
    • Java MODs
    • Desenvolvimento
    • Recrutamento
    • Conteúdo Offline
  • Players
  • L2JBR Labs
  • Outros Assuntos
  • Publicidade Privada
  • Administração
  • Top L2jBrasil
  • Central de Reciclagem
  • Lineage 2 Old-School's Bate-papo
  • Lineage 2 Old-School's Fotos & Vídeos
  • Lineage 2 Old-School's Tópicos

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook:


Skype:


Site:


Localização:


Interesses:

Found 5 results

  1. Qual é o acesso level que todos podem criar itens mais não pode bannir etc..? Todos serem GM algo do tipo?
  2. Boa noite família jbr, sabe aquele npc do castelo, o blacksmith que troca aquelas sementes por alguns itens, então, só quem pode acessar a loja é o dono do castelo, até aí tudo bem, só que eu queria colocar para que os membros do clan também pudessem ter acesso, andei procurando o arquivo responsável por isso e achei, porém não consigo modificar como eu quero. Alguém com mais experiencia em java pode me dizer qual linha devo modificar ? uso o projeto L2jFrozen 1132. net.l2frozen.gameserver.model.actor.instance.L2CastleBlacksmithInstance.java package net.l2jfrozen.gameserver.model.actor.instance; import net.l2jfrozen.Config; import net.l2jfrozen.gameserver.ai.CtrlIntention; import net.l2jfrozen.gameserver.model.L2Clan; import net.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import net.l2jfrozen.gameserver.network.serverpackets.MyTargetSelected; import net.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; import net.l2jfrozen.gameserver.network.serverpackets.ValidateLocation; import net.l2jfrozen.gameserver.templates.L2NpcTemplate; public class L2CastleBlacksmithInstance extends L2FolkInstance { protected static final int COND_ALL_FALSE = 0; protected static final int COND_BUSY_BECAUSE_OF_SIEGE = 1; protected static final int COND_OWNER = 2; public L2CastleBlacksmithInstance(final int objectId, final L2NpcTemplate template) { super(objectId, template); } @Override public void onAction(final L2PcInstance player) { if (!canTarget(player)) return; // Check if the L2PcInstance already target the L2NpcInstance if (this != player.getTarget()) { // Set the target of the L2PcInstance player player.setTarget(this); // Send a Server->Client packet MyTargetSelected to the L2PcInstance player MyTargetSelected my = new MyTargetSelected(getObjectId(), 0); player.sendPacket(my); my = null; // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client player.sendPacket(new ValidateLocation(this)); } else { // Calculate the distance between the L2PcInstance and the L2NpcInstance if (!canInteract(player)) { // Notify the L2PcInstance AI with AI_INTENTION_INTERACT player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this); } else { showMessageWindow(player, 0); } } // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet player.sendPacket(ActionFailed.STATIC_PACKET); } @Override public void onBypassFeedback(final L2PcInstance player, final String command) { final int condition = validateCondition(player); if (condition <= COND_ALL_FALSE) return; if (condition == COND_BUSY_BECAUSE_OF_SIEGE) return; else if (condition == COND_OWNER) { if (command.startsWith("Chat")) { int val = 0; try { val = Integer.parseInt(command.substring(5)); } catch (IndexOutOfBoundsException | NumberFormatException ioobe) { if (Config.ENABLE_ALL_EXCEPTIONS) ioobe.printStackTrace(); } showMessageWindow(player, val); } else { super.onBypassFeedback(player, command); } } } private void showMessageWindow(final L2PcInstance player, final int val) { player.sendPacket(ActionFailed.STATIC_PACKET); String filename = "data/html/castleblacksmith/castleblacksmith-no.htm"; final int condition = validateCondition(player); if (condition > COND_ALL_FALSE) { if (condition == COND_BUSY_BECAUSE_OF_SIEGE) { filename = "data/html/castleblacksmith/castleblacksmith-busy.htm"; // Busy because of siege } else if (condition == COND_OWNER) { // Clan owns castle if (val == 0) { filename = "data/html/castleblacksmith/castleblacksmith.htm"; } else { filename = "data/html/castleblacksmith/castleblacksmith-" + val + ".htm"; } } } NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile(filename); html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%npcname%", getName()); html.replace("%castleid%", Integer.toString(getCastle().getCastleId())); player.sendPacket(html); filename = null; html = null; } protected int validateCondition(final L2PcInstance player) { if (player.isGM()) return COND_OWNER; if (getCastle() != null && getCastle().getCastleId() > 0) { if (player.getClan() != null) { if (getCastle().getSiege().getIsInProgress()) return COND_BUSY_BECAUSE_OF_SIEGE; // Busy because of siege else if (getCastle().getOwnerId() == player.getClanId() // Clan owns castle && (player.getClanPrivileges() & L2Clan.CP_CS_MANOR_ADMIN) == L2Clan.CP_CS_MANOR_ADMIN) // Leader of clan return COND_OWNER; // Owner } } return COND_ALL_FALSE; } }
  3. alguém de bobeira poderia me da uma força para adaptar o mod a seguir para a revisão L2JFrozen 1132, já tentei demais aqui mas não consigo de jeito nenhuma xD sou iniciante aí na área de Java... Segue o Código: Pastebin Pastebin Não consigo Adaptar a parte do L2PartyTeleporterInstance.java enquanto vou batendo cabeça aqui e enchendo meu eclipse de erros xD Agradeço desde já 😀
  4. alguem min ajudar pfv dizem q e so add as sql do mod e mesmo asim n vai por ? meu GS INFO Connecting to login on 127.0.0.1:9014 INFO Registered on login as Server 1 : Extreme ERROR Could not insert char data java.sql.SQLException: Column count doesn't match value count at row 1 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3603) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3535) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1989) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2150) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.ja va:2119) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java :2415) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java :2333) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java :2318)
  5. TrueBlood

    Criar item

    Gostaria de saber, como criar um item, que ao abri-lo, viria um dos itens que eu coloquei para vir nele, aleatoriamente, alguém sabe dizer? Abraço. interlude rev frozen
×
×
  • Create New...