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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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