Page 1 of 1
Kamaloka Instance
Posted: Fri Aug 19, 2011 2:53 pm
by jamaica
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
Number:
L2JDP Revision
Number:
how can i modify Kamaloka instance to NOT REMOVE BUFFS anymore?
Code: Select all
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(); } } }
Re: Kamaloka Instance
Posted: Fri Aug 19, 2011 3:55 pm
by goncafa
You can comment call to this method.
Re: Kamaloka Instance
Posted: Fri Aug 19, 2011 4:28 pm
by jamaica
goncafa wrote:You can comment call to this method.
can you please reform? i dont understand what u mean...
Re: Kamaloka Instance
Posted: Fri Aug 19, 2011 4:55 pm
by jurchiks
find in code where it says removeBuffs(player); or smth like that and comment out that line with //...
Re: Kamaloka Instance
Posted: Fri Aug 19, 2011 5:09 pm
by jamaica
one moment i did //for (L2Effect e : ch.getAllEffects()) and now i`m testing.....stay arround please maybe u`r my lucky charm ^.^
P.S : nop not working i was looking for what u said Jurckis but i dont have such a line....can u take a look at this please?
Code: Select all
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)
Re: Kamaloka Instance
Posted: Fri Aug 19, 2011 5:15 pm
by jurchiks
comment out lines 582 (removeBuffs(player);) and 626 (removeBuffs(partyMember);)...
Re: Kamaloka Instance
Posted: Fri Aug 19, 2011 5:32 pm
by jamaica
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...
Re: Kamaloka Instance
Posted: Fri Aug 19, 2011 5:48 pm
by jurchiks
it is a warning, not an error, it is normal.
Re: Kamaloka Instance
Posted: Fri Aug 19, 2011 6:28 pm
by jamaica
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
Re: Kamaloka Instance
Posted: Fri Aug 19, 2011 8:44 pm
by pavel2451
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();
}
}
*/
}
NEXT
Instance inst = InstanceManager.getInstance().getInstance(world.instanceId);
if (inst != null)
{
removeBuffs(player);
teleportPlayer(player, TELEPORTS[index], world.instanceId);
to
Instance inst = InstanceManager.getInstance().getInstance(world.instanceId);
if (inst != null)
{
//removeBuffs(player);
teleportPlayer(player, TELEPORTS[index], world.instanceId);
NEXT
if (partyMember.getQuestState(qn) == null)
newQuestState(partyMember);
world.allowed.add(partyMember.getObjectId());
removeBuffs(partyMember);
teleportPlayer(partyMember, TELEPORTS[index], instanceId);
to
if (partyMember.getQuestState(qn) == null)
newQuestState(partyMember);
world.allowed.add(partyMember.getObjectId());
//removeBuffs(partyMember);
teleportPlayer(partyMember, TELEPORTS[index], instanceId);
[/quote]
Re: Kamaloka Instance
Posted: Fri Aug 19, 2011 9:10 pm
by jamaica
thank you