Jump to content

Recommended Posts

Posted
Index: java/com/l2jarchid/gameserver/model/actor/instance/L2PcInstance.java

===================================================================

--- java/com/l2jarchid/gameserver/model/actor/instance/L2PcInstance.java (revision 254)

+++ java/com/l2jarchid/gameserver/model/actor/instance/L2PcInstance.java (revision 254)

@@ -672,6 +672,7 @@

private int _expertiseIndex; // index in EXPERTISE_LEVELS

private int _expertisePenalty = 0;

-

- private L2ItemInstance _activeEnchantItem = null;

+

+ private boolean _isEnchanting = false;                                               

+    private L2ItemInstance _activeEnchantItem = null;

 

protected boolean _inventoryDisable = false;

@@ -2070,4 +2071,7 @@

public void setActiveEnchantItem(L2ItemInstance scroll)

{

+ // If we dont have a Enchant Item, we are not enchanting.

+     if (scroll == null)

+     setIsEnchanting(false);

_activeEnchantItem = scroll;

}

@@ -2077,4 +2081,15 @@

return _activeEnchantItem;

}

+

+ public void setIsEnchanting(boolean val)

+         {

+                 _isEnchanting = val;

+         }

+        

+         public boolean isEnchanting()

+         {

+         return _isEnchanting;

+         }

+                  

 

/**

 

Credits : L2jArchid Team

  • 2 months later...
  • 4 months later...

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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..