Optimized Inventory, Cart Inventory, and Storage usage (#1115)
* These storage types now mimic Guild Storage and can be loaded/saved whenever needed. * Relieves mmo_charstatus from having to send storage types and lets the char-server handle it. * All storage types now have an increased max amount. * Implemented Premium Storage System. Thanks to @cydh! * Fixes #441 - Players will no longer be required to log out to resync cart item data before opening a Vending Store. * Refactored player weight and cart weight calculations into their own functions. * Added script commands openstorage2, guildstoragecountitem[2] and guildstoragedelitem[2]. * Refactored several function return types as well as documentation. Thanks to @lighta and @cydh for their help with it!
This commit is contained in:
38
sql-files/upgrades/premium_storage.sql
Normal file
38
sql-files/upgrades/premium_storage.sql
Normal file
@@ -0,0 +1,38 @@
|
||||
--
|
||||
-- Table structure for table `storage_1`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `storage_1` (
|
||||
`id` int(11) unsigned NOT NULL auto_increment,
|
||||
`account_id` int(11) unsigned NOT NULL default '0',
|
||||
`nameid` smallint(5) unsigned NOT NULL default '0',
|
||||
`amount` smallint(11) unsigned NOT NULL default '0',
|
||||
`equip` int(11) unsigned NOT NULL default '0',
|
||||
`identify` smallint(6) unsigned NOT NULL default '0',
|
||||
`refine` tinyint(3) unsigned NOT NULL default '0',
|
||||
`attribute` tinyint(4) unsigned NOT NULL default '0',
|
||||
`card0` smallint(5) unsigned NOT NULL default '0',
|
||||
`card1` smallint(5) unsigned NOT NULL default '0',
|
||||
`card2` smallint(5) unsigned NOT NULL default '0',
|
||||
`card3` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_id0` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_val0` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_parm0` tinyint(3) unsigned NOT NULL default '0',
|
||||
`option_id1` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_val1` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_parm1` tinyint(3) unsigned NOT NULL default '0',
|
||||
`option_id2` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_val2` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_parm2` tinyint(3) unsigned NOT NULL default '0',
|
||||
`option_id3` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_val3` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_parm3` tinyint(3) unsigned NOT NULL default '0',
|
||||
`option_id4` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_val4` smallint(5) unsigned NOT NULL default '0',
|
||||
`option_parm4` tinyint(3) unsigned NOT NULL default '0',
|
||||
`expire_time` int(11) unsigned NOT NULL default '0',
|
||||
`bound` tinyint(3) unsigned NOT NULL default '0',
|
||||
`unique_id` bigint(20) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `account_id` (`account_id`)
|
||||
) ENGINE=MyISAM;
|
||||
Reference in New Issue
Block a user