Page 1 of 1

[Help] change sub bug fix

Posted: Wed Feb 10, 2010 12:11 am
by JustLikeMe
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:3216
L2JDP Revision Number:6306

Is there any script for gracia that freezes the player for 10 secs when he changes sub, to avoid the bug with SA?

Edit: I found this

Code: Select all

Index: /Server/IL_GS/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java===================================================================--- /Server/IL_GS/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 345)+++ /Server/IL_GS/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 346)@@ -8425,4 +8425,6 @@     public boolean addSubClass(int classId, int classIndex)     {+    	L2PcInstance player = getClient().getActiveChar();+    	     	if (getTotalSubClasses() == 3 || classIndex == 0)     		return false;@@ -8430,4 +8432,8 @@     	if (getSubClasses().containsKey(classIndex))     		return false;+    	+    	player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);+    	player.setIsParalyzed(true);+    	player.sendMessage("You are paralized untill your subclass load.");      	// Note: Never change _classIndex in any method other than setActiveClass().@@ -8492,4 +8498,8 @@         if (Config.DEBUG)             _log.info(getName() + " was given " + getAllSkills().length + " skills for their new sub class.");+        +        player.setIsParalyzed(false);+        player.stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);+        player.sendMessage("You are unparalized.");          return true;
But this is for interlude can someone convert it to gracia? I know i should change net/sf/l2j to com/l2jserver/ but i think it needs more.

Re: [Help] change sub bug fix

Posted: Fri Feb 12, 2010 10:34 am
by jurchiks
actually i think it might work just by applying it manually
why don't you try first, and then ask?

Re: [Help] change sub bug fix

Posted: Sun Feb 14, 2010 7:19 pm
by qwerty13
flood protector?

Re: [Help] change sub bug fix

Posted: Mon Feb 15, 2010 1:38 pm
by qwerty13
Bug with sub-class solved a long time ago, look into gameserver\config\floodprotector.properties