Page 1 of 1

Kamaloka Cancel Buffs on Enter

Posted: Fri Jan 22, 2010 3:27 pm
by Tan
Hai everyone, could anyone help me to make thats after you enter to kamaloka it won't cancel your buffs iv searching in forum but i couldnt find.
Ty for help

Re: Kamaloka Cancel Buffs on Enter

Posted: Fri Jan 22, 2010 4:27 pm
by jurchiks
you should check the script, not the forums

Re: Kamaloka Cancel Buffs on Enter

Posted: Fri Jan 22, 2010 5:21 pm
by janiii
Kamaloka.java -> removeBuffs method -> called in enterInstance method

Re: Kamaloka Cancel Buffs on Enter

Posted: Fri Jan 22, 2010 8:39 pm
by Vampyre
it should let you keep "adventurer guide" buffs

Re: Kamaloka Cancel Buffs on Enter

Posted: Mon Jan 25, 2010 6:38 pm
by Tan
janiii wrote:Kamaloka.java -> removeBuffs method -> called in enterInstance method
Thank you so much janiii you again saved me xD :mrgreen:

Re: Kamaloka Cancel Buffs on Enter

Posted: Tue Apr 27, 2010 11:50 pm
by PoRnosJH
i dont get it how i disable the removebuffs from my kamaloka instance...any help here??

Re: Kamaloka Cancel Buffs on Enter

Posted: Wed Apr 28, 2010 12:53 am
by kotk
Maybe something like

Code: Select all

Index: datapack_development/data/scripts/instances/Kamaloka/Kamaloka.java===================================================================--- datapack_development/data/scripts/instances/Kamaloka/Kamaloka.java  (revision 7319)+++ datapack_development/data/scripts/instances/Kamaloka/Kamaloka.java  (working copy)@@ -561,7 +561,7 @@                        Instance inst = InstanceManager.getInstance().getInstance(world.instanceId);                        if (inst != null)                        {-                               removeBuffs(player);+                               //removeBuffs(player);                                teleportPlayer(player, TELEPORTS[index], world.instanceId);                        }                        return;@@ -605,7 +605,7 @@                                        newQuestState(partyMember);                                world.allowed.add(partyMember.getObjectId()); -                               removeBuffs(partyMember);+                               //removeBuffs(partyMember);                                teleportPlayer(partyMember, TELEPORTS[index], instanceId);                        }                        return;@@ -930,4 +930,4 @@        {                new Kamaloka(-1, qn, "instances");        }-}\ No newline at end of file+} 

Re: Kamaloka Cancel Buffs on Enter

Posted: Wed Apr 28, 2010 12:56 am
by LasTravel
PoRnosJH wrote:i dont get it how i disable the removebuffs from my kamaloka instance...any help here??

Code: Select all

		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();			}		}
Try comment this lines...