Kamaloka Instance

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
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
jamaica
Posts: 288
Joined: Sat Jan 24, 2009 5:44 pm

Kamaloka Instance

Post 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();            }        }    }
Everybody L.I.E.S
User avatar
goncafa
Posts: 385
Joined: Thu Aug 05, 2010 2:10 pm
Location: Santiago, Chile

Re: Kamaloka Instance

Post by goncafa »

You can comment call to this method.
Best Regards

PS: im sorry my bad english.
Image
jamaica
Posts: 288
Joined: Sat Jan 24, 2009 5:44 pm

Re: Kamaloka Instance

Post by jamaica »

goncafa wrote:You can comment call to this method.
can you please reform? i dont understand what u mean...
Everybody L.I.E.S
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Kamaloka Instance

Post by jurchiks »

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.
jamaica
Posts: 288
Joined: Sat Jan 24, 2009 5:44 pm

Re: Kamaloka Instance

Post 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)
Everybody L.I.E.S
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Kamaloka Instance

Post by jurchiks »

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.
jamaica
Posts: 288
Joined: Sat Jan 24, 2009 5:44 pm

Re: Kamaloka Instance

Post 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...
Everybody L.I.E.S
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Kamaloka Instance

Post by jurchiks »

it is a warning, not an error, it is normal.
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.
jamaica
Posts: 288
Joined: Sat Jan 24, 2009 5:44 pm

Re: Kamaloka Instance

Post 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 :P thank you very much Jurchiks
Everybody L.I.E.S
pavel2451
Posts: 61
Joined: Thu Feb 17, 2011 1:52 pm

Re: Kamaloka Instance

Post 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]
jamaica
Posts: 288
Joined: Sat Jan 24, 2009 5:44 pm

Re: Kamaloka Instance

Post by jamaica »

thank you
Everybody L.I.E.S
Post Reply