Crafting...
PostPosted: Fri Jul 23, 2004 10:43 am
Hi,
currently I´m working on the crafting issue and facing a serious problem:
There´s a packet sent by the client (packet type 0x45 ^ 0xa8) that specifies the item to be crafted. The only information provided is a 16bit object id, so I need to do the following:
1) Create a table that translates the oid to an itemtemplate id, then create an item from the itemtemplate table. I need to store the required tradeskill and the tradeskill level of that item in this table, too.
2) Create a table that holds the material requirements for that item. Because items need multiple materials there will be 2-4 db entries for each craftable items.
Unfortunately there´s a large number of craftable item, weaponcrafters in albion are able to craft about 800 different items. Most of these item can be grouped because the amount of materials stays the same, only the material changes. Daggers for example need X Material A and Y Material B. Bronze Daggers need X bars of Bronze and Y other stuff, Asterite Daggers need X bars of Asterite and Y other stuff. I plan to make a tool that takes care of this, so I need to enter data for the first (Bronze) item and that tool generates entries for the remaining items. This tool will be able to cover 90% of the items and reduces the amout of data to 10%.
The IDs provided by the client are hard coded in no specific order except for items of the same group (if a Bronze Sword has the item id 0x1500 then the Arcanite Sword hat the id 0x1509).
I´ve determined all IDs for albion weapons, the remaining IDs for all other tradeskills need to be figured out.
The icons for each item have to be set manually, too, so there´s a lot of work to do.
Please post advices and ideas, I´d be glad.
Regards,
Doc
currently I´m working on the crafting issue and facing a serious problem:
There´s a packet sent by the client (packet type 0x45 ^ 0xa8) that specifies the item to be crafted. The only information provided is a 16bit object id, so I need to do the following:
1) Create a table that translates the oid to an itemtemplate id, then create an item from the itemtemplate table. I need to store the required tradeskill and the tradeskill level of that item in this table, too.
2) Create a table that holds the material requirements for that item. Because items need multiple materials there will be 2-4 db entries for each craftable items.
Unfortunately there´s a large number of craftable item, weaponcrafters in albion are able to craft about 800 different items. Most of these item can be grouped because the amount of materials stays the same, only the material changes. Daggers for example need X Material A and Y Material B. Bronze Daggers need X bars of Bronze and Y other stuff, Asterite Daggers need X bars of Asterite and Y other stuff. I plan to make a tool that takes care of this, so I need to enter data for the first (Bronze) item and that tool generates entries for the remaining items. This tool will be able to cover 90% of the items and reduces the amout of data to 10%.
The IDs provided by the client are hard coded in no specific order except for items of the same group (if a Bronze Sword has the item id 0x1500 then the Arcanite Sword hat the id 0x1509).
I´ve determined all IDs for albion weapons, the remaining IDs for all other tradeskills need to be figured out.
The icons for each item have to be set manually, too, so there´s a lot of work to do.
Please post advices and ideas, I´d be glad.
Regards,
Doc