[Help] change sub bug fix

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
JustLikeMe
Posts: 91
Joined: Fri Feb 05, 2010 8:12 pm

[Help] change sub bug fix

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

Re: [Help] change sub bug fix

Post by jurchiks »

actually i think it might work just by applying it manually
why don't you try first, and then ask?
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
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: [Help] change sub bug fix

Post by qwerty13 »

flood protector?
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: [Help] change sub bug fix

Post by qwerty13 »

Bug with sub-class solved a long time ago, look into gameserver\config\floodprotector.properties
Post Reply