Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead. There is no support for other server builds than the official provided by l2jserver.com
private static final void removeBuffs(L2Character ch) { for (L2Effect e : ch.getAllEffects()) { if (e == null) continue; L2Skill skill = e.getSkill(); if (skill.isDebuff() || skill.isStayAfterDeath()) continue; if (Arrays.binarySearch(BUFFS_WHITELIST, skill.getId()) >= 0) continue; e.exit(); } if (ch.getPet() != null) { for (L2Effect e : ch.getPet().getAllEffects()) { if (e == null) continue; L2Skill skill = e.getSkill(); if (skill.isDebuff() || skill.isStayAfterDeath()) continue; if (Arrays.binarySearch(BUFFS_WHITELIST, skill.getId()) >= 0) continue; e.exit(); } } }
find in code where it says removeBuffs(player); or smth like that and comment out that line with //...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste! Discussion breeds innovation.
private static final void removeBuffs(L2Character ch) { for (L2Effect e : ch.getAllEffects()) { if (e == null) continue; L2Skill skill = e.getSkill(); if (skill.isDebuff() || skill.isStayAfterDeath()) continue; if (Arrays.binarySearch(BUFFS_WHITELIST, skill.getId()) >= 0) continue; e.exit(); } if (ch.getPet() != null)
comment out lines 582 (removeBuffs(player);) and 626 (removeBuffs(partyMember);)...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste! Discussion breeds innovation.
1. WARNING in \Kamaloka.java (at line 497)
private static final void removeBuffs(L2Character ch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method removeBuffs(L2Character) from the type Kamaloka is never used locally
----------
1 problem (1 warning)[EnhanceYourWeapon] Loaded 54 Soul Crystal data.
and i got this problem after i made what u said...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste! Discussion breeds innovation.
fixed //626 (removeBuffs(partyMember);)... only this line and is just fine cause th other line with remove buffsplayer is pointless...cause in instance u get inside only in party thank you very much Jurchiks
private static final void removeBuffs(L2Character ch)
{
for (L2Effect e : ch.getAllEffects())
{
if (e == null)
continue;
L2Skill skill = e.getSkill();
if (skill.isDebuff() || skill.isStayAfterDeath())
continue;
if (Arrays.binarySearch(BUFFS_WHITELIST, skill.getId()) >= 0)
continue;
e.exit();
}
if (ch.getPet() != null)
{
for (L2Effect e : ch.getPet().getAllEffects())
{
if (e == null)
continue;
L2Skill skill = e.getSkill();
if (skill.isDebuff() || skill.isStayAfterDeath())
continue;
if (Arrays.binarySearch(BUFFS_WHITELIST, skill.getId()) >= 0)
continue;
e.exit();
}
}
}
To
*/
private static final void removeBuffs(L2Character ch)
{
for (L2Effect e : ch.getAllEffects())
{
if (e == null)
continue;
L2Skill skill = e.getSkill();
if (skill.isDebuff() || skill.isStayAfterDeath())
continue;
if (Arrays.binarySearch(BUFFS_WHITELIST, skill.getId()) >= 0)
continue;
e.exit();
}
if (ch.getPet() != null)
{
for (L2Effect e : ch.getPet().getAllEffects())
{
if (e == null)
continue;
L2Skill skill = e.getSkill();
if (skill.isDebuff() || skill.isStayAfterDeath())
continue;
if (Arrays.binarySearch(BUFFS_WHITELIST, skill.getId()) >= 0)
continue;
e.exit();
}
} */
}