» Find Revision
L2J Revision Number:
L2JDP Revision Number:
i was trying yesterday night to see if elemental attribute level 4+ is implemented. i was pleasently surprised to see that i can put attribute to level 6 with the new core. IT just doesent seam to add the damage as it should.
the thing is, i am not sure it works, truth to be told i m almost sure it doesent work, so, what i `m asking is where can i find the table from wich the game takes how much elemental/dmg should add with every enchant level...
i found in RequestExEnchantItemAttribute.java some interesting things, as i see it here, elemental crystals (lvl 6) shouldnt work, but in game with latest core they do, they just dont seam to add damage.
and since diego vargas posted 0->300 Attribute Breakpoint Map and 0->600 Defense Attribute Breakpoint Map here viewforum.php?f=91 if it`s not implemented maybe, just maybe it wouldn`t be so hard...
Code: Select all
public int getPowerToAdd(int stoneId, int oldValue, L2ItemInstance item) { boolean stone = false, crystal = false; // boolean jewel = false, energy = false; for (int id : Elementals.STONES) { if (id == stoneId) { stone = true; break; } } if (!stone) { for (int id : Elementals.CRYSTALS) { if (id == stoneId) { crystal = true; break; } } if (!crystal) { for (int id : Elementals.JEWELS) { if (id == stoneId) { [b]//jewel = true; break; } } //if (!jewel) // energy = true;[/b] } } if (stone || crystal) { if (item.isWeapon()) { if (oldValue == 0) return Elementals.FIRST_WEAPON_BONUS; else return Elementals.NEXT_WEAPON_BONUS; } else if (item.isArmor()) return Elementals.ARMOR_BONUS; } [b]// Others not implemented[/b] return 0; } @Override public String getType() { return D0_38_REQUEST_EX_ENCHANT_ITEM_ATTRIBUTE; }}