Jump to content
  • 0

Enable/disable Weapon Visible Enchant Effect


Question

Posted

Hello.

How to disable / enable visible enchant effect?

i want to make option for player that they can disable enchant effect and his weapon will look like +0 

if someone could point me where to search about that

thanks.

2 answers to this question

Recommended Posts

  • 0
Posted

network/serverpackets/userinfo.java && charinfo.java here you must edit , find any comment about enchant or something , i item.getEnchantLevel()  . if im not wrong

also you must make something like .menu and so with this character can set Enable / Disable this feature

  • 0
Posted

Create a getter and setter in L2PcInstance along with an boolean property, then in the packets which .Thug said check if the getter returns true, if it's not true set the opcode to 0 else use the current state. In your .menu you should use the setter to switch between true and false.

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