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.

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