Jump to content

Question

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


httpwwwgamesites200coml.jpg

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Isso pode mudar para cada revisão, geralmente elas já possuem isso se forem Hellbound+, porém  há tópicos sobre isso no forum

Acho que isso é o que vc precisa:
 

 

  • Thanks 1

EJoOSOj.gif

Sua pergunta foi respondida? Certifique-se de marcar a resposta como a solução aceita.
Se existe mais de uma resposta, utilize o "vote up" para destacá-la.
Se você achar uma resposta útil, diga obrigado clicando no botão "Gostei".

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...




     



  • Recently Browsing

    No registered users viewing this page.

  • Similar Content

    • By LineageXP
      Qual é o acesso level que todos podem criar itens mais não pode bannir etc..?
      Todos serem GM algo do tipo?
    • By Luther
      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; } }  
    • By willamwallace
      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)
    • By Luther
      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á 😀
  • Posts

×
×
  • Create New...