[Info] Java isJewel

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Mage
Posts: 277
Joined: Fri Apr 17, 2009 2:29 pm

[Info] Java isJewel

Post 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 :)
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: [Info] Java isJewel

Post by jurchiks »

isAccessory?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Mage
Posts: 277
Joined: Fri Apr 17, 2009 2:29 pm

Re: [Info] Java isJewel

Post by Mage »

Thank u. :)

SOLVED.
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: [Info] Java isJewel

Post by Probe »

actually jewels are included inside isArmor() if I'm not mistaken..
isAccessory is for hair accessories etc
Post Reply