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?
[SOLVED] Calculate crystal count
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 17
- Joined: Tue Jan 29, 2008 12:00 am
- Location: Toulouse (France)
[SOLVED] Calculate crystal count
Last edited by xalis on Thu Jun 10, 2010 5:39 am, edited 1 time in total.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Calculate crystal count
armor/weapon tables?
but if you want the values for enchanted items, then you need to look for the formula in core, not dp
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 17
- Joined: Tue Jan 29, 2008 12:00 am
- Location: Toulouse (France)
Re: Calculate crystal count
Yes, in armor and weapon tables 
Is there a formula to obtain values?

Is there a formula to obtain values?
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Calculate crystal count
what formula? it's getCrystalCount() for java and jython, and a simple query for sql
you should read L2Item.java, specifically line 364
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 17
- Joined: Tue Jan 29, 2008 12:00 am
- Location: Toulouse (France)
Re: Calculate crystal count
Hmm not that.
How L2J obtain the crystal_count values from official?
There is a formula or something else?
Code: Select all
/** * Returns the quantity of crystals for crystallization * @return int */ public final int getCrystalCount() { return _crystalCount; }
There is a formula or something else?
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Calculate crystal count
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
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 17
- Joined: Tue Jan 29, 2008 12:00 am
- Location: Toulouse (France)
Re: Calculate crystal count
They have also crystalize vesper? Oo They are mad?
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Calculate crystal count
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
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.