Jump to content

[Share][Int] Fix potions, when attacking with skill.


Recommended Posts

Potion Fix: - When you target a distant mob, and use a skill the Char starts to run to the mob. BUT WHEN you click on a potions, char stops running. Same as when you are attacking PCs.

 

Okay here is a patch to fix it, for Interlude L2J.

Index: /trunk/Eclipse-Game/java/net/sf/l2j/gameserver/model/L2Character.java
===================================================================
--- /trunk/Eclipse-Game/java/net/sf/l2j/gameserver/model/L2Character.java (revision 124)
+++ /trunk/Eclipse-Game/java/net/sf/l2j/gameserver/model/L2Character.java (revision 149)
@@ -5604,4 +5604,8 @@
            L2PcInstance currPlayer = (L2PcInstance)this;
            SkillDat queuedSkill = currPlayer.getQueuedSkill();
+            
+            // Rescuing old skill cast task if exist
+            if (skill.isPotion())
+            	queuedSkill = currPlayer.getCurrentSkill();

            currPlayer.setCurrentSkill(null, false, false);

 

Credits: ŚyśţęmƒяәдҚς

Link to comment
Share on other sites

  • 3 years later...
  • 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.

 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock