I think we are ready to move forward on this. Need help with DB tables...
Code: Select all
CREATE TABLE `collections` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`collection_name` VARCHAR(512) NOT NULL DEFAULT 'Unknown',
`collection_category` VARCHAR(512) NOT NULL DEFAULT 'Unknown',
`level` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
)
Code: Select all
CREATE TABLE `collection_items` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`collection_id` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`item_name` VARCHAR(255) NOT NULL DEFAULT 'Unknown',
`item_id` INT(11) NOT NULL DEFAULT '0',
`item_crc` INT(11) NOT NULL DEFAULT '0',
`item_index` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
)
Don't know how to go about creating the character tables.
I found 2 commands related to collections.
/collection_additem
- takes two parameters, collection_id, slot
/collection_filter_matchitem
- takes one parameter, slot
One of the things we need to figure out is how to run the collection_additem command when you examine a collection item from your inventory, but scatman probably already knows how to do this.
