- 0
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..
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.
Question
SQL Developer
Hello can someone guide me how to set this for normal enchant also?
I made this in order to disable/enable blessed,crystall enchant scrolls for some itemsids but i cant understand how normal scroll can be made like that
Project:L2JFrozen
Requestenchantitem.java file patch -> click
if(crystalScroll && item.getItemId() <= 9208) //ItemId check { activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); return; } if(blessedScroll && item.getItemId() >= 9208) //ItemId check { activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); return; }i allready try mane ways like this
for (final int normalarmorscroll : NORMAL_ARMOR_SCROLLS) { if (scroll.getItemId() == normalarmorscroll) { if(normalarmorscroll && item.getItemId() >= 9208) //ItemId check { activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); return; } } }or this
for (final int normalarmorscroll : NORMAL_ARMOR_SCROLLS) { if(normalarmorscroll && item.getItemId() >= 9208) //ItemId check { activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); return; } }or even this T.T
if(normalarmorscroll && item.getItemId() >= 9208) //ItemId check { activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); return; }but cant find the correct method .. thanks
Edited by L2LostWard9 answers to this question
Recommended Posts