Kamaloka Cancel Buffs on Enter

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
User avatar
Tan
L2j Veteran
L2j Veteran
Posts: 873
Joined: Wed Jun 10, 2009 10:31 pm
Location: Poland

Kamaloka Cancel Buffs on Enter

Post 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
Some people believe in God... i believe in Music... some people pray..... I turn on Winamp
http://www.last.fm/user/L2jTan
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Kamaloka Cancel Buffs on Enter

Post by jurchiks »

you should check the script, not the forums
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.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Kamaloka Cancel Buffs on Enter

Post by janiii »

Kamaloka.java -> removeBuffs method -> called in enterInstance method
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Vampyre
Posts: 88
Joined: Tue Jun 30, 2009 7:43 am

Re: Kamaloka Cancel Buffs on Enter

Post by Vampyre »

it should let you keep "adventurer guide" buffs
User avatar
Tan
L2j Veteran
L2j Veteran
Posts: 873
Joined: Wed Jun 10, 2009 10:31 pm
Location: Poland

Re: Kamaloka Cancel Buffs on Enter

Post by Tan »

janiii wrote:Kamaloka.java -> removeBuffs method -> called in enterInstance method
Thank you so much janiii you again saved me xD :mrgreen:
Some people believe in God... i believe in Music... some people pray..... I turn on Winamp
http://www.last.fm/user/L2jTan
PoRnosJH
Posts: 332
Joined: Wed Mar 17, 2010 10:33 am
Location: Greece
Contact:

Re: Kamaloka Cancel Buffs on Enter

Post by PoRnosJH »

i dont get it how i disable the removebuffs from my kamaloka instance...any help here??
Image
kotk
Posts: 99
Joined: Wed Jan 04, 2006 12:51 am

Re: Kamaloka Cancel Buffs on Enter

Post 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+} 
User avatar
LasTravel
Posts: 888
Joined: Tue Jan 05, 2010 12:08 am
Location: Spain

Re: Kamaloka Cancel Buffs on Enter

Post 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...
Post Reply