Jump to content

Recommended Posts

Posted

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 :):)

 

 

Posted

I kinda think that this paralizes the player only in "add subclass" or in "cancel current subclass bla bla" :P

not in "change sublass" part ...

 

you can add it w/e you want ;]

Posted

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?

Posted

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.

Posted

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...
  • 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.
Note: Your post will require moderator approval before it will be visible.

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.




×
×
  • Create New...