Page 1 of 1

Elemental Attribute 300/600 / edit /add

Posted: Tue Aug 25, 2009 3:37 am
by rockkth
If you want to receive support we need this info to help you properly.
» 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;	}}

Re: Elemental Attribute 300/600 / edit /add

Posted: Tue Aug 25, 2009 6:45 am
by janiii