Ir para conteúdo
  • Cadastre-se

Chaazy

Membro
  • Total de itens

    110
  • Registro em

  • Última visita

  • Prêmios recebidos

    1

Tudo que Chaazy postou

  1. @SuppressWarnings("null") private synchronized void storeEffect() { if (!Config.STORE_SKILL_COOLTIME) return; Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement statement; // Delete all current stored effects for char to avoid dupe statement = con.prepareStatement(DELETE_SKILL_SAVE); statement.setInt(1, getObjectId()); statement.setInt(2, getClassIndex()); statement.execute(); DatabaseUtils.close(statement); // Store all effect data along with calulated remaining // reuse delays for matching skills. 'restore_type'= 0. final L2Effect[] effects = getAllEffects(); statement = con.prepareStatement(ADD_SKILL_SAVE); final List<Integer> storedSkills = new FastList<>(); int buff_index = 0; for (final L2Effect effect : effects) { final int skillId = effect.getSkill().getId(); if (storedSkills.contains(skillId)) continue; storedSkills.add(skillId); if (effect != null && effect.getInUse() && !effect.getSkill().isToggle() && !effect.getStackType().equals("BattleForce") && !effect.getStackType().equals("SpellForce") && effect.getSkill().getSkillType() != SkillType.FORCE_BUFF) { statement.setInt(1, getObjectId()); statement.setInt(2, skillId); statement.setInt(3, effect.getSkill().getLevel()); statement.setInt(4, effect.getCount()); statement.setInt(5, effect.getTime()); if (ReuseTimeStamps.containsKey(effect.getSkill().getReuseHashCode())) { final TimeStamp t = ReuseTimeStamps.get(effect.getSkill().getReuseHashCode()); statement.setLong(6, t.hasNotPassed() ? t.getReuse() : 0); statement.setLong(7, t.hasNotPassed() ? t.getStamp() : 0); } else { statement.setLong(6, 0); statement.setLong(7, 0); } statement.setInt(8, 0); statement.setInt(9, getClassIndex()); statement.setInt(10, ++buff_index); statement.execute(); } } // Store the reuse delays of remaining skills which // lost effect but still under reuse delay. 'restore_type' 1. for (final TimeStamp t : ReuseTimeStamps.values()) { if (t.hasNotPassed()) { final int skillId = t.getSkill().getId(); final int skillLvl = t.getSkill().getLevel(); if (storedSkills.contains(skillId)) continue; storedSkills.add(skillId); statement.setInt(1, getObjectId()); statement.setInt(2, skillId); statement.setInt(3, skillLvl); statement.setInt(4, -1); statement.setInt(5, -1); statement.setLong(6, t.getReuse()); statement.setLong(7, t.getStamp()); statement.setInt(8, 1); statement.setInt(9, getClassIndex()); statement.setInt(10, ++buff_index); statement.execute(); } } DatabaseUtils.close(statement); } catch (final Exception e) { LOGGER.warn("Could not store char effect data: "); e.printStackTrace(); } finally { CloseUtil.close(con); } } Seria isso?
  2. public void restoreEffects(final boolean activateEffects) { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement statement; ResultSet rset; /** * Restore Type 0 These skill were still in effect on the character upon logout. Some of which were self casted and might still have had a long reuse delay which also is restored. */ statement = con.prepareStatement(RESTORE_SKILL_SAVE); statement.setInt(1, getObjectId()); statement.setInt(2, getClassIndex()); statement.setInt(3, 0); rset = statement.executeQuery(); while (rset.next()) { final int skillId = rset.getInt("skill_id"); final int skillLvl = rset.getInt("skill_level"); final int effectCount = rset.getInt("effect_count"); final int effectCurTime = rset.getInt("effect_cur_time"); final long reuseDelay = rset.getLong("reuse_delay"); // Just incase the admin minipulated this table incorrectly :x if (skillId == -1 || effectCount == -1 || effectCurTime == -1 || reuseDelay < 0) { continue; } if (activateEffects) { L2Skill skill = SkillTable.getInstance().getInfo(skillId, skillLvl); skill.getEffects(this, this, false, false, false); skill = null; for (final L2Effect effect : getAllEffects()) { if (effect.getSkill().getId() == skillId) { effect.setCount(effectCount); effect.setFirstTime(effectCurTime); } } } if (reuseDelay > 10) { final L2Skill skill = SkillTable.getInstance().getInfo(skillId, skillLvl); if (skill == null) continue; disableSkill(skill, reuseDelay); addTimeStamp(new TimeStamp(skill, reuseDelay)); } } DatabaseUtils.close(rset); DatabaseUtils.close(statement); rset = null; statement = null; /** * Restore Type 1 The remaning skills lost effect upon logout but were still under a high reuse delay. */ statement = con.prepareStatement(RESTORE_SKILL_SAVE); statement.setInt(1, getObjectId()); statement.setInt(2, getClassIndex()); statement.setInt(3, 1); rset = statement.executeQuery(); while (rset.next()) { final int skillId = rset.getInt("skill_id"); final int skillLvl = rset.getInt("skill_level"); final long reuseDelay = rset.getLong("reuse_delay"); if (reuseDelay <= 0) { continue; } final L2Skill skill = SkillTable.getInstance().getInfo(skillId, skillLvl); if (skill == null) continue; disableSkill(skill, reuseDelay); addTimeStamp(new TimeStamp(skill, reuseDelay)); } DatabaseUtils.close(rset); DatabaseUtils.close(statement); rset = null; statement = con.prepareStatement(DELETE_SKILL_SAVE); statement.setInt(1, getObjectId()); statement.setInt(2, getClassIndex()); statement.executeUpdate(); DatabaseUtils.close(statement); statement = null; } catch (final Exception e) { if (Config.ENABLE_ALL_EXCEPTIONS) e.printStackTrace(); LOGGER.warn("Could not restore active effect data: " + e); } finally { CloseUtil.close(con); } updateEffectIcons(); } pode me dizer onde devo alterar?
  3. Obrigado mesmo assim, já é um ponto de partida!
  4. [Hidden Content] Ta ai amigo. System limpa
  5. [Hidden Content] Uso essa system no meu win 10
  6. Ha algum tempo venho tentando resolver um problema na l2jfrozen 1132, ja pesquisei em vários fóruns,porem sem sucesso. O que acontece é o seguinte. Skills que contem o reusedelay maior (buffs como heroic, battle roar, rage, frenzy, zealot, ultimate defense etc...) assim que você os usa e deixa ele carregar 30,50,90% que seja, se o player tomar dc, critical error ou ate mesmo dar restart, o skill volta do 0! Ele simplesmente não volta de onde parou, e mesmo ficando 1 hora sem entrar no jogo a skill não termina de carregar, é como se não salva-se os dados das skills. Alguém pode ajudar?
  7. [Hidden Content] Link tirado de um fórum espanhol! Nenhuma das alternativas aqui da l2jBrasil funcionou comigo. Essa system do link esta funcionando perfeitamente! System limpa.
  8. Chaazy

    #DUVIDA GORDON

    Também não encontrei aonde coloco ele pra correr.
  9. Essas tem que ser removidas no java,na Core do l2jfrozen com.l2jfrozen.gameserver.network.clientpackets + if(Config.SHOW_SERVER_VERSION) + { // Credits to L2jfrozen activeChar.sendMessage("This server uses L2JFrozen, a project founded by L2Chef and"); activeChar.sendMessage("developed by the L2JFrozen Dev Team at l2jfrozen.com"); + }
  10. A mensagem do "announcecements " voce pode mudar em gameserver/data no arquivo de texto "announcecements " As outras ficam em config/frozen/frozen.properties
  11. Chaazy

    Editar Quest

    Pra galera que ta com esse problema, basta apagar essa linha na core } qs = player.getQuestState("234_FatesWhisper"); if (qs == null || !qs.isCompleted()) { player.sendMessage("You must have completed the Fate's Whisper quest to continue adding your sub class."); player.setLocked(false); return; Assim ela cancela a necessidade da quest.
  12. Chaazy

    Scroll Scape

    Bom Galera,queria saber como eu altero o tempo do scoll Scape Especificamente o Scroll Town Of Aden. Quero deixar ele "como um blessed scroll" usar ele em 1 segundo e ja voltar para Aden
  13. link do 4shared esta quebrado aki,se puder repassar,ou poder hospedar em outro, para eu poder baixar,ficaria muito agradesçido!
  14. Chaazy

    Problema No Navicat!

    mais nenhuma scrip q ponha da certo! na tabela 'raidboss_spawnlist' tem lah 'respawn_time', mais quando eu mato os boss la fica 0! Ta errado isso,por isso que no site mostra ele vivo,mesmo tando morto
  15. descobri um problema no meu navicat! ele nao ta dando respawn_time !! Tipo quando vc mata o boss,aparece um respawn_time, mais nao esta aparecendo,ai mesmo com o bopss morto, no site mostra vivo! alguem sabe como arruma isso? Agradesço Muito!
  16. Chaazy

    Problemas Com Itens

    mais eu add no armor,e no iten name tbm '-'
  17. E ae gente, entaum ta uma coisa eskesita d+,pq eu fis uma aio a uns dias atrais, e ele caiu com a dual certinho! Mais do nada todos os aiox q estou fazendo nao esta mais saindo com a dual, ta tudo configurado certinho,pa sai a dual no aio,e a dual nao sai +! E no meu aio q fis a uns dias atrais a dual ta nele,quer dizer q a dual ainda existe mais nao quer aparecer! E depois disso nenhum item q ponho tbm n quer aparecer,puis a TT e qdo eu crio o item ela nao sai!!! Me AJUDEM por favor Agradesço Desde Jah!
  18. Queria Saber como eu mudo o respawn do baraka Para logar de 6 em 6 horas! Ajudem por favor Agradesço desde Jah!
  19. Vish! Meu AIO fica pulando de um lugar para o outro quando eu do restart nele A cada restart ele ta em um lugar! Me Ajudem Ai PF Agradesço Desde jah!
  20. Chaazy

    Ajuda No DM

    Obrigado cara!
  21. Chaazy

    Ajuda No DM

    Obrigado cara!
  22. Chaazy

    Ajuda No DM

    Bom. Ja configurei todos os meus eventos, mais to com problema no DM, o local aonde ele fica,é no meio do hunters mais eu nao quero ele la, puis o TvT e o CTF no mesmo lugar com os comando //tvt , //ctf mas o problema é q nao tem o comando //dm Ajudem ai por favor! Agradesço Desde Jah!
  23. Help. Queria saber como eu fasso para conseguir dar dano nos hits em mobs de level baixo, tipo nas formiguinhas do Ant Queen. Queria poder dar dano nelas para os lvls 80 matar as formigas. Mais quando eu hito as formigas o dano sai 0 de damge! E tem outra coisa tambem, eu ja consegui tirar o Raid Curse de fighter (o que pedrifica) mais estou com problemas no de Mage (o silence),nao consigo tirar ele! Me Ajudem! Agradesço Desde Jah!
×
×
  • 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.