Jump to content

Question

Posted

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

  • 0
Posted

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
Posted

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
Posted


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();

}

}

 

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...