Ir para conteúdo

Ricardo junenho

Membro
  • Total de itens

    395
  • Registro em

  • Última visita

  • Prêmios recebidos

    1

Ricardo junenho last won the day on Setembro 13

Ricardo junenho had the most liked content!

Reputação

114 Bom

Sobre Ricardo junenho

  • Rank
    Noob
  • Data de Nascimento 08-01-1994

Profile Information

  • Gênero:
    Masculino
  • Interesses:
    Aprender sempre Mais.

Contact Methods

  • Facebook:
    https://www.facebook.com/ricardoflajr
  • Skype:
    junenhol2
  • Site:
    http://www.facebook.com/l2server

Últimos Visitantes

4.535 visualizações
  1. Set Evil [Interlude]

    Amigo, me envia as UTX, vou tentar fazer o Armorgrp.
  2. Red Dark Knight 5 Partes + Skills

    Amigo, infelizmente eu não mecho com a Dream. Peça ajuda na área de dúvidas. Assim que eu chegar em casa eu do uma olhada no meu pra vê.
  3. New NPC with Effects and Logo for Halloween. Any chronicle compatible ◄√i®uS►

    very cooll. ;)
  4. Script Erro Log

    Obrigado por tentar me ajudar. :aqui: :)
  5. Interface Classic to Interlude

    Ficou mais de 3 horas e não tomei critical. seria ótimo se pudesse mudar o nome da system.
  6. Script Erro Log

    Agora apareceu isso: Failed executing script: C:\Users\RicardoJre\Desktop\Severo\gameserver\data\scri pts\custom\AugmentShop\AugmentShop.java. See AugmentShop.java.error.log for deta ils. Esse erro que apareceu no script.java.error: Error on: C:\Users\RicardoJre\Desktop\Severo\gameserver\data\scripts\custom\AugmentShop\AugmentShop.java.error.log Line: -1 - Column: -1 no main method in custom.AugmentShop.AugmentShop Aqui o Script Completo: package custom.AugmentShop; import com.l2jlionna.gameserver.model.actor.instance.L2ItemInstance; import com.l2jlionna.gameserver.model.actor.instance.L2NpcInstance; import com.l2jlionna.gameserver.model.actor.instance.L2PcInstance; import com.l2jlionna.gameserver.model.quest.Quest; import com.l2jlionna.gameserver.model.quest.QuestState; import com.l2jlionna.util.database.L2DatabaseFactory; import com.l2jlionna.gameserver.model.Inventory; import java.sql.Connection; import java.sql.PreparedStatement; import java.util.logging.Level; /** * * @author adapted by Samar 2011 RUSSIA * */ public class AugmentShop extends Quest { private final static int ITEM_ID = 57; private final static int ITEM_COUNT = 1000000; private final static String qn = "AugmentShop"; private final static int NPC = 53; public AugmentShop(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(NPC); addTalkId(NPC); } @Override public String onAdvEvent(String event, L2NpcInstance npc, L2PcInstance player) { String htmltext = ""; if (event.equalsIgnoreCase("active1")) { htmltext = "active1.htm"; } else if (event.equalsIgnoreCase("active2")) { htmltext = "active2.htm"; } else if (event.equalsIgnoreCase("passive1")) { htmltext = "passive1.htm"; } else if (event.equalsIgnoreCase("passive2")) { htmltext = "passive2.htm"; } else if (event.equalsIgnoreCase("main")) { htmltext = "main.htm"; } else { updateAugment(player, Integer.parseInt(event.substring(0,5)), Integer.parseInt(event.substring(6,10)), Integer.parseInt(event.substring(11,13))); } return htmltext; } @Override public String onTalk(L2NpcInstance npc, L2PcInstance player) { String htmltext = ""; QuestState qs = player.getQuestState(qn); if (qs == null) qs = newQuestState(player); htmltext = "main.htm"; return htmltext; } public static void main(String[] args) { new AugmentShop(-1, qn, "AugmentShop"); } private static void updateAugment(L2PcInstance player, int attributes, int skill, int level) { L2ItemInstance item = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); if (player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) == null) { player.sendMessage("You have to equip a weapon."); return; } if (player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND).isAugmented()) { player.sendMessage("The weapon is already augmented."); return; } if (player.getInventory().getInventoryItemCount(ITEM_ID, -1) < ITEM_COUNT) { player.sendMessage("You dont have enough item."); return; } Connection con = null; try { player.destroyItemByItemId("Consume", ITEM_ID, ITEM_COUNT, player, true); con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("REPLACE INTO augmentations VALUES(?,?,?,?)"); statement.setInt(1, item.getObjectId()); statement.setInt(2, attributes*65536+1); statement.setInt(3, skill); statement.setInt(4, level); statement.executeUpdate(); player.sendMessage("Succesfully augmented. You have to relog now."); statement.close(); } catch (Exception e) { _log.log(Level.WARNING, "Could not augment item: "+item.getObjectId()+" ", e); } finally { try { /*L2DatabaseFactory.close(con);*/ con.close(); } catch (Exception e) { } } } }
  7. Script Erro Log

    Deu esse erro: ---------- 1. ERROR in \AugmentShop.java (at line 132) _log.error("Could not augment item: "+item.getObjectId()+" ", e); ^^^^^ The method error(String, Exception) is undefined for the type Logger ---------- 1 problem (1 error)The method error(java.lang.String, java.lang.Exception) is un defined for the type java.util.logging.Logger Failed executing script: C:\Users\RicardoJre\Desktop\Severo\gameserver\data\scri pts\custom\AugmentShop\AugmentShop.java. See AugmentShop.java.error.log for deta ils.
  8. [L2 Privado] Interlude 1000x Recrutamento

    Nome completo: Ricardo Jr Informações do servidor: Servidor Interlude, XP: 1000x. Com itens custom. Cargos pretendidos e número de vagas: Quero 1 ADM e 1 GM. ADM: Ficará observando o servidor e ajudará na administração do servidor, GM- Divulgador: será responsável pordivulgador o servidor e fara eventos. Interesses e benefícios: Eu já tenho dedicado, o adm terá que ajudar financeiramente. Todos ganharam conforme seu desempenho. Equipe atual: Eu. Informações adicionais: Tenho servidor (privado), site, domínio e pagina para divulgação. Quero montar um servidor voltado ao pvp-farm, que não seja monótono. Quem tiver interesse envie MP, ou responda aqui.
  9. Como alterar o limite do Attack Speed?

    onde editar isso ?
  10. [Interlude] [L2jDream v1] AugmentShop

    quando eu chegar em casa eu te passo mano.
  11. Script Erro Log

    Boa noite. Estou tento problemas ao adicionar um script java no meu servidor. um amigo do fórum gabrieljdb, está me ajudando e resolveu vários erros. Até o momento ele não conseguiu resolver este que vou postar abaixo. uso a pack l2jlionna. Esse erro que aparece no gs. ---------- 1. ERROR in \AugmentShop.java (at line 132) _log.log("Could not augment item: "+item.getObjectId()+" ", e); ^^^ The method log(Level, String) in the type Logger is not applicable for the argum ents (String, Exception) ---------- 1 problem (1 error)The method log(java.util.logging.Level, java.lang.String) in the type java.util.logging.Logger is not applicable for the arguments (java.lang .String, java.lang.Exception) Failed executing script: C:\Users\RicardoJre\Desktop\Severo\gameserver\data\scri pts\custom\AugmentShop\AugmentShop.java. See AugmentShop.java.error.log for deta ils.
  12. [Interlude] [L2jDream v1] AugmentShop

    Estranho mano, pois os py funciona tudo certinho.
  13. [Interlude] [L2jDream v1] AugmentShop

    é projeto privado, baseado em frozen. os scripts aqui são tudo em py.
  14. [Interlude] [L2jDream v1] AugmentShop

    Mas vai continuar em java ou tem que mudar pra py ? Gabrieljdb Deu esse erro. ---------- 1. ERROR in \AugmentShop.java (at line 3) import net.l2jlionna.gameserver.model.actor.instance.L2ItemInstance; ^^^ The import net cannot be resolved ---------- 2. ERROR in \AugmentShop.java (at line 4) import net.l2jlionna.gameserver.model.actor.instance.L2NpcInstance; ^^^ The import net cannot be resolved ---------- 3. ERROR in \AugmentShop.java (at line 5) import net.l2jlionna.gameserver.model.actor.instance.L2PcInstance; ^^^ The import net cannot be resolved ---------- 4. ERROR in \AugmentShop.java (at line 6) import net.l2jlionna.gameserver.model.quest.Quest; ^^^ The import net cannot be resolved ---------- 5. ERROR in \AugmentShop.java (at line 7) import net.l2jlionna.gameserver.model.quest.QuestState; ^^^ The import net cannot be resolved ---------- 6. ERROR in \AugmentShop.java (at line 8) import net.l2jlionna.util.database.L2DatabaseFactory; ^^^ The import net cannot be resolved ---------- 7. ERROR in \AugmentShop.java (at line 9) import net.l2jlionna.gameserver.model.Inventory; ^^^ The import net cannot be resolved ---------- 8. ERROR in \AugmentShop.java (at line 12) import org.apache.log4j.Logger; ^^^^^^^^^^^^^^^^ The import org.apache.log4j cannot be resolved ---------- 9. ERROR in \AugmentShop.java (at line 19) public class AugmentShop extends Quest ^^^^^ Quest cannot be resolved to a type ---------- 10. ERROR in \AugmentShop.java (at line 30) addStartNpc(NPC); ^^^^^^^^^^^ The method addStartNpc(int) is undefined for the type AugmentShop ---------- 11. ERROR in \AugmentShop.java (at line 31) addTalkId(NPC); ^^^^^^^^^ The method addTalkId(int) is undefined for the type AugmentShop ---------- 12. ERROR in \AugmentShop.java (at line 35) public String onAdvEvent(String event, L2NpcInstance npc, L2PcInstance p layer) ^^^^^^^^^^^^^ L2NpcInstance cannot be resolved to a type ---------- 13. ERROR in \AugmentShop.java (at line 35) public String onAdvEvent(String event, L2NpcInstance npc, L2PcInstance p layer) ^^^^^^^^^^^^ L2PcInstance cannot be resolved to a type ---------- 14. ERROR in \AugmentShop.java (at line 75) public String onTalk(L2NpcInstance npc, L2PcInstance player) ^^^^^^^^^^^^^ L2NpcInstance cannot be resolved to a type ---------- 15. ERROR in \AugmentShop.java (at line 75) public String onTalk(L2NpcInstance npc, L2PcInstance player) ^^^^^^^^^^^^ L2PcInstance cannot be resolved to a type ---------- 16. ERROR in \AugmentShop.java (at line 78) QuestState qs = player.getQuestState(qn); ^^^^^^^^^^ QuestState cannot be resolved to a type ---------- 17. ERROR in \AugmentShop.java (at line 91) private static void updateAugment(L2PcInstance player, int attributes, i nt skill, int level) ^^^^^^^^^^^^ L2PcInstance cannot be resolved to a type ---------- 18. ERROR in \AugmentShop.java (at line 93) L2ItemInstance item = player.getInventory().getPaperdollItem(Inventory.P APERDOLL_RHAND); ^^^^^^^^^^^^^^ L2ItemInstance cannot be resolved to a type ---------- 19. ERROR in \AugmentShop.java (at line 93) L2ItemInstance item = player.getInventory().getPaperdollItem(Inventory.P APERDOLL_RHAND); ^^^^^^^^^ Inventory cannot be resolved to a variable ---------- 20. ERROR in \AugmentShop.java (at line 94) if (player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) == null) ^^^^^^^^^ Inventory cannot be resolved to a variable ---------- 21. ERROR in \AugmentShop.java (at line 101) if (player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND).is Augmented()) ^^^^^^^^^ Inventory cannot be resolved to a variable ---------- 22. ERROR in \AugmentShop.java (at line 117) con = L2DatabaseFactory.getInstance().getConnection(); ^^^^^^^^^^^^^^^^^ L2DatabaseFactory cannot be resolved ---------- 23. ERROR in \AugmentShop.java (at line 132) LOGGER.warn("Could not augment item: "+item.getObjectId()+" ", e); ^^^^^^ LOGGER cannot be resolved ---------- 23 problems (23 errors)Quest cannot be resolved to a type L2NpcInstance cannot be resolved to a type L2PcInstance cannot be resolved to a type L2NpcInstance cannot be resolved to a type L2PcInstance cannot be resolved to a type L2PcInstance cannot be resolved to a type The import net cannot be resolved The import net cannot be resolved The import net cannot be resolved The import net cannot be resolved The import net cannot be resolved The import net cannot be resolved The import net cannot be resolved The import org.apache.log4j cannot be resolved The method addStartNpc(int) is undefined for the type custom.AugmentShop.Augment Shop The method addTalkId(int) is undefined for the type custom.AugmentShop.AugmentSh op QuestState cannot be resolved to a type L2ItemInstance cannot be resolved to a type Inventory cannot be resolved to a variable Inventory cannot be resolved to a variable Inventory cannot be resolved to a variable L2DatabaseFactory cannot be resolved LOGGER cannot be resolved Failed executing script: C:\Users\RicardoJre\Desktop\Severo\gameserver\data\scri pts\custom\AugmentShop\AugmentShop.java. See AugmentShop.java.error.log for deta ils.
  15. [Interlude] [L2jDream v1] AugmentShop

    se conseguir posta pra nós.
×