Jump to content
  • 0

How to fix battle force bug


Question

Posted

whats the code to fix battle force bug via eclipse?i was thinking how to stop ppl from battle forcing inside towns,any ideas?

 

kaneis p na kserei pws na fixarw to battle force bug?na mn mporoune oi players na to kanoune mesa stin poli

h me allon tropo..

2 answers to this question

Recommended Posts

  • 0
Posted

1. u can stop all efect when change subclass (this i snot good idea... boring to take all time buffs)

 

player.stopAllEffect

 

2. beter dont make the 1st...take this

 

java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 1724)
java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -9091,7 +9091,18 @@

             getCubics().clear();
         }
+        
+        // Delete a force buff upon class change.
+        if(_forceBuff != null)
+			_forceBuff.delete();

+        // Stop casting for any player that may be casting a force buff on this l2pcinstance.
+		for(L2Character character : getKnownList().getKnownCharacters())
+		{
+			if(character.getForceBuff() != null && character.getForceBuff().getTarget() == this)
+				character.abortCast();
+		}
+
         for (L2Skill oldSkill : getAllSkills())
             super.removeSkill(oldSkill);

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
Answer this question...

×   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...