Page 1 of 1

Where argument in database?

Posted: Wed May 06, 2009 7:50 pm
by aggonn
Hi,

How can I add/change a argument effect on a weapon?
I want to Give a weapon as argument celestial shield and some crit rate.

Where is this data in the databse?
and how can I add a effect?

Greetz,
Aggonn

Re: Where argument in database?

Posted: Wed May 06, 2009 8:21 pm
by Zealar
data\stats\augmentation = Skill + stats

Add here ->

Navicat -> item_attributes

Re: Where argument in database?

Posted: Wed May 06, 2009 8:27 pm
by janiii

Re: Where argument in database?

Posted: Wed May 06, 2009 9:43 pm
by MELERIX
argument ? wth :?

Re: Where argument in database?

Posted: Wed May 06, 2009 10:10 pm
by janiii
MELERIX wrote:argument ? wth :?
..augment.. not the first time someone writes it wrong way..

Re: Where argument in database?

Posted: Thu May 07, 2009 6:34 am
by Zealar

Code: Select all

<augmentation id="14691"> <!-- Active: Renders you momentarily invincible. -->        <skillId val="3158" /> <!-- Item Skill: Lesser Celestial Shield: Active: Bestows temporary invincibility. -->        <skillLevel val="1" />         <type val="red" />    </augmentation>

get aug id = 14691
*65536

14691*65536 = 962789376 # And you will get this skill (but only skill no stats)

For get some stats you need resut to have (.)

962789376 + 1 = 962789377

962789377 / 65536 = 14691,0000152587890625

Red simbols will get you stats , but im no sure how this numbers get stats from tables.

Re: Where argument in database?

Posted: Thu May 07, 2009 6:59 am
by janiii
Zealar is right :)


-----------------------------------------------------------------------------------------------------------------------
if you have the aug attribute, e.g. 969343077:
969343077 % 65536 => this is division with the rest (http://en.wikipedia.org/wiki/Modulo)

=> 969343077 / 65536 = 14791,0015411376953125
=> the bold number is the augment id which you find in the augmentation_skillmap.xml and gives you the skill id and its level

=> the rest of the division 969343077 % 65536 = 101
(the rest of the division can be also calculated as: 969343077 - 14791*65536 = 101)
=> this are the stats and it is defined in the client

-----------------------------------------------------------------------------------------------------------------------
if you want to give you an augment:
=> find the skill id of the skill you want to have on l2jdp.com/l2jdb, it has to be an item skill (active/passive/chance)
=> find the appropriate augment id in the augmentation_skillmap.xml (there can be more than 1 augment id for 1 skill and skill lvl)
=> augmentId * 65536 gives you the base for your aug attribute
=> if you want also stats, add the stats id (in client) to the base aug attribute calculated in the previous step (so you have: augId*65536 + statId = aug attribute )
=> in database, table item_attributes, check if the weapon has already a record (search after its objectId), if not then add a new record for the weapon with its objectId (you get it from the items table searching for charId and itemId), fill in the aug attribute you calculated, fill in also the skillId and skillLvl (this is what you really get!), elem can be set to -1 if you don't want any elemental enhancement (not the matter of this topic)

Re: Where argument in database?

Posted: Thu May 07, 2009 3:35 pm
by aggonn
oke, but is there a list of "stat id's"?
It says it is in the client.. but I can't client mod :P

Re: Where argument in database?

Posted: Tue Jul 28, 2009 7:11 am
by s5n4K3s
aggonn wrote:oke, but is there a list of "stat id's"?
It says it is in the client.. but I can't client mod :P
Yes...i need too :cry:

Re: Where argument in database?

Posted: Fri Aug 14, 2009 5:31 pm
by warfare
aggonn wrote:oke, but is there a list of "stat id's"?
It says it is in the client.. but I can't client mod :P
basically do the following...

just get to navicat>item_attributes
and considering that you have your desired augment (eg passive focus-3249 i think) in augmentskillid and thus the augattribute calculated the way janii said (14732*65536=965476352)

get the augmentattribute and:
-add 1 (that means augattribute:965476353) if you want extra stat p def
-add 2 (965476354) if you want extra stat m def....
-3 for max hp
-4 for max mp
........
8 (or something) for hp regen
9 ................. for mp regen
........
18 ................. for pdef + p att

and so on.
I cant remember exery single stat by heart but i checked them all and it seems that there is a table somewhere that get the bonuses each time (i mean +1 always gives +pdef, +2 m def and so on as mentioned above)... and adds the bonus.

these are my tested conclusions... :P