[SOLVED] Calculate crystal count

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
xalis
Posts: 17
Joined: Tue Jan 29, 2008 12:00 am
Location: Toulouse (France)

[SOLVED] Calculate crystal count

Post by xalis »

L2J Revision Number: 3959
L2JDP Revision Number: 7106

Hi, someone know if there is any kind of formula to obtain the crystal_count in DP?
Last edited by xalis on Thu Jun 10, 2010 5:39 am, edited 1 time in total.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Calculate crystal count

Post by jurchiks »

armor/weapon tables?
but if you want the values for enchanted items, then you need to look for the formula in core, not dp
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.
xalis
Posts: 17
Joined: Tue Jan 29, 2008 12:00 am
Location: Toulouse (France)

Re: Calculate crystal count

Post by xalis »

Yes, in armor and weapon tables :)

Is there a formula to obtain values?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Calculate crystal count

Post by jurchiks »

what formula? it's getCrystalCount() for java and jython, and a simple query for sql
you should read L2Item.java, specifically line 364
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.
xalis
Posts: 17
Joined: Tue Jan 29, 2008 12:00 am
Location: Toulouse (France)

Re: Calculate crystal count

Post by xalis »

Hmm not that.

Code: Select all

 	/**	 * Returns the quantity of crystals for crystallization	 * @return int	 */	public final int getCrystalCount()	{		return _crystalCount;	} 
How L2J obtain the crystal_count values from official?
There is a formula or something else?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Calculate crystal count

Post by jurchiks »

so that's what you meant? should have told so earlier
somebody on official crystallizes the item and writes down the amount of crystals
the formula to calculate cry amount when item is enchanted is where I said, l2item.java line 364
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.
xalis
Posts: 17
Joined: Tue Jan 29, 2008 12:00 am
Location: Toulouse (France)

Re: Calculate crystal count

Post by xalis »

They have also crystalize vesper? Oo They are mad?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Calculate crystal count

Post by jurchiks »

who cares jeez... maybe someone broke it while enchanting so they just asked the lvl and crystal count
besides looks like you don't know the situation on official server, there is a shitload of people running around in dynasty and vesper sets
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.
Post Reply