Page 1 of 1

[Info] Java isJewel

Posted: Wed May 12, 2010 1:34 pm
by Mage
L2J Revision Number: Last Epilogue
L2JDP Revision Number: Last Epiloge

Hello,

I'am creating a new script that i will share. I must separeate Weapon, Armor and Jewel. I use:

i.isWeapon() for weapon

i.isArmor() for armor


What can i use for Jewel?


I'm looking for it for these three different config:

EnchantMaxWeapon =
EnchantMaxArmor =
EnchantMaxJewelry =

I'm creating a script for Anti-OverEnchant like this:


If (i.isJewel() && i.getEnchantLevel() > Config.ENCHANT_MAX_JEWELRS )
{
bla bla
}



Thank u,

Mage :)

Re: [Info] Java isJewel

Posted: Wed May 12, 2010 7:30 pm
by jurchiks
isAccessory?

Re: [Info] Java isJewel

Posted: Wed May 12, 2010 9:58 pm
by Mage
Thank u. :)

SOLVED.

Re: [Info] Java isJewel

Posted: Thu May 13, 2010 8:55 am
by Probe
actually jewels are included inside isArmor() if I'm not mistaken..
isAccessory is for hair accessories etc