Elemental Attribute 300/600 / edit /add

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
rockkth
Posts: 196
Joined: Sat Jul 04, 2009 8:54 am

Elemental Attribute 300/600 / edit /add

Post 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;	}}
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Elemental Attribute 300/600 / edit /add

Post by janiii »

DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Post Reply