THeMaxPoweR Posted June 11, 2016 Posted June 11, 2016 hey guys.. ihave problem in my l2j sever . iam using rin4e buffer it working well in fact it's perfect for me .. but i lose song and dance buffers after logout .. hop u help me with this problem .. thnx.
0 Gam3Master Posted June 12, 2016 Posted June 12, 2016 It seems you have config store or not dances and songs. Find it in configs. otherwise delete // Dances and songs are not kept in retail. if (skill.isDance() && !Config.ALT_STORE_DANCES) { continue; }
0 Gam3Master Posted June 11, 2016 Posted June 11, 2016 you mean you lose it in scheme or you dont have it in buffs?
0 Gam3Master Posted June 11, 2016 Posted June 11, 2016 That is not buffer's problem. check storeEffect void in l2pcinstance
0 THeMaxPoweR Posted June 12, 2016 Author Posted June 12, 2016 could u plz tell me which line I have to edit? public synchronized void store(boolean storeActiveEffects) { storeCharBase(); storeCharSub(); storeEffect(storeActiveEffects); storeItemReuseDelay(); if (Config.STORE_RECIPE_SHOPLIST) { storeRecipeShopList(); } if (Config.STORE_UI_SETTINGS) { storeUISettings(); } SevenSigns.getInstance().saveSevenSignsData(getObjectId()); final PlayerVariables vars = getScript(PlayerVariables.class); if (vars != null) { vars.storeMe(); } final AccountVariables aVars = getScript(AccountVariables.class); if (aVars != null) { aVars.storeMe(); }
0 THeMaxPoweR Posted June 12, 2016 Author Posted June 12, 2016 public void storeEffect(boolean storeEffects) { if (!Config.STORE_SKILL_COOLTIME) { return; } try (Connection con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement delete = con.prepareStatement(DELETE_SKILL_SAVE); PreparedStatement statement = con.prepareStatement(ADD_SKILL_SAVE);) { // Delete all current stored effects for char to avoid dupe delete.setInt(1, getObjectId()); delete.setInt(2, getClassIndex()); delete.execute(); int buff_index = 0; final List<Integer> storedSkills = new ArrayList<>(); // Store all effect data along with calulated remaining // reuse delays for matching skills. 'restore_type'= 0. if (storeEffects) { for (BuffInfo info : getEffectList().getEffects()) { if (info == null) { continue; } final Skill skill = info.getSkill(); // Do not save heals. if (skill.getAbnormalType() == AbnormalType.LIFE_FORCE_OTHERS) { continue; } if (skill.isToggle()) { continue; } // Dances and songs are not kept in retail. if (skill.isDance() && !Config.ALT_STORE_DANCES) { continue; } if (storedSkills.contains(skill.getReuseHashCode())) { continue; } storedSkills.add(skill.getReuseHashCode()); statement.setInt(1, getObjectId()); statement.setInt(2, skill.getId()); statement.setInt(3, skill.getLevel()); statement.setInt(4, info.getTime()); final TimeStamp t = getSkillReuseTimeStamp(skill.getReuseHashCode()); statement.setLong(5, (t != null) && t.hasNotPassed() ? t.getReuse() : 0); statement.setDouble(6, (t != null) && t.hasNotPassed() ? t.getStamp() : 0); statement.setInt(7, 0); // Store type 0, active buffs/debuffs. statement.setInt(8, getClassIndex()); statement.setInt(9, ++buff_index); statement.execute(); } }
0 THeMaxPoweR Posted June 13, 2016 Author Posted June 13, 2016 deleted this but no thing -_- still disappear when login any other idea? ALT_STORE_DANCES = Character.getBoolean("AltStoreDances", false);
0 THeMaxPoweR Posted June 13, 2016 Author Posted June 13, 2016 Solved . I had to enable dance storing from Character properties . thnx for ur time . Cya in next problem :D
Question
THeMaxPoweR
hey guys..
ihave problem in my l2j sever .
iam using rin4e buffer it working well in fact it's perfect for me ..
but i lose song and dance buffers after logout ..
hop u help me with this problem ..
thnx.
9 answers to this question
Recommended Posts