Custom Armor Enchant L2J 

Dox

Newbie Spellweaver
Joined
Oct 13, 2008
Messages
38
Reaction score
0
hi guy`s,

i need some help i got this custom epic armor s80grade in my server and it
workes and all. But when i want to enchant it, it wont show up in the list.
when i use a s grade weapon scroll. The rest of all s grade armor shows up even
some other custom armor i got in game. Except the epic light and heavy set who are also set to be
s80 grade.
Any1 knows where to search for this 'setting' or value

thnx in advance
 
Code:
			if (targetItem.isEtcItem() || targetItem.isWear() || targetItem.getItem().getItemType() == L2WeaponType.ROD || targetItem.isHeroItem() || targetItem.getItemId() >= 7816 && targetItem.getItemId() <= 7831
					|| targetItem.isShadowItem() || targetItem.getItem().isCommonItem())
This is the item restriction i found so i don't think you have to modify anything in java.
Try giving the item a smaller item id, something like 6000 or 14000 or any other small id that is not used.
 
Upvote 0
mm thnx guys, ill try that but i dont think its the problem
i had the same with 1 epic weapon ive put in couldent be enchanted either (wouldent show in list)
but after i replaced the epic weapon line inside weapongrp.dat for some other weapon line
(and editted the id`s and values a bit like matk,patk)
i was able to enchant the weapon again...

so now i have the same problem with this armor,,
my conclusion is that its some value inside the armorgrp.dat file but not sure and cannot find it ^^
 
Upvote 0
But i have more s80 gear in my server that can be enchanted and are in somewhere the same ID range,, So my guess is its not inside the core.. but in some client file
 
Upvote 0
there all matching the crystal_type
its on value 6 (this meens s80) in the client files.
And in the database the crystal_type is s80 to..
now i also found out Apella cannot be enchanted...
but the weird thing is i got this other custom armor in my server
that is based on the apella, and i can enchant those.. but the other custom armor
i based on the first custom armor aint working (the enchanting) skills/bonus and stats work normal
 
Upvote 0
yea i thought that should be the problem to but
i cannot find the value that has to do anything with enchants inside the armorgrp.dat file
only the crystal_type but thats just set as 6(s80)
 
Upvote 0
Its from database -
change at its item ID value this

58 Mithril Breastplate chest true heavy 8670 mithril d 0 -1 95 0 0 141100 260 true true true true -1 -1 -1

you see after mithril is d - thats armor type and enchant scroll type
 
Upvote 0
Back