Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

[Share-Updated] On Subclass Add/Change Freaze Players


Recommended Posts

Hello.

I whanna share you again one simple script that is very useful !

This script will fix the SA Stuck exploit.

Index: /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 345)
+++ /Server/SkyLanceR's_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)
    {
    	if (getTotalSubClasses() == 3 || classIndex == 0)
    		return false;
@@ -8430,4 +8432,8 @@
    	if (getSubClasses().containsKey(classIndex))
    		return false;
+    	
+    	startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+    	setIsParalyzed(true);
+    	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.");
+        
+        setIsParalyzed(false);
+        stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+        sendMessage("You are unparalized.");

        return true;


I hope that I helped a little :):)

 

 

Share this post


Link to post
Share on other sites
  • Replies 59
  • Created
  • Last Reply

Top Posters In This Topic

Quite helpful, added at the AIO but..

 

Just perfect, its working...

+1 Karma by me (a Mod correct me if i am wrong)

 

 

+1 karma for that?

 

player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);

    player.setIsParalyzed(true);

 

-

 

player.setIsParalyzed(false);

       player.stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);

 

 

Well, it would be insane if we gave karma for each 3 lines restriction we added, wouldn't it?

Share this post


Link to post
Share on other sites

Quite helpful, added at the AIO but..

 

+1 karma for that?

 

player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);

    player.setIsParalyzed(true);

 

-

 

player.setIsParalyzed(false);

       player.stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);

 

 

Well, it would be insane if we gave karma for each 3 lines restriction we added, wouldn't it?

+1, we don't give karma for java strings.

Karma restored.

Share this post


Link to post
Share on other sites

Quite helpful, added at the AIO but..

 

+1 karma for that?

 

player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);

    player.setIsParalyzed(true);

 

-

 

player.setIsParalyzed(false);

        player.stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);

 

 

Well, it would be insane if we gave karma for each 3 lines restriction we added, wouldn't it?

Yeah but i have seen a lot of "silly" karma on forum thats why i gave him a +1,it was my first "false" karma and the last, thnx for correcting it...

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.