Add CHAR_STYLE table to store the current locked item IDs for each visible slot. Modify CHARS table to include a flag to indicate current style lock status. Add styleItem array to store current locked item IDs for each visible slot. Remove copy of equipped look to main look when setting style lock status. Modify charutils::LoadChar to load char_style. Modify charutils::UpdateItem to update style look when items are removed. Add charutils:SetStyleLock to maintain locked item status and push enable/disable messages. Add handling of 0x53 packet (new LockStyle packet). Modify char_look save routine to save the locked style and locked style items.
26 lines
No EOL
897 B
SQL
26 lines
No EOL
897 B
SQL
/*
|
|
MySQL Data Transfer
|
|
Source Host: localhost
|
|
Source Database: dspdb
|
|
Target Host: localhost
|
|
Target Database: dspdb
|
|
Date: 03/05/2015 09:21:00 PM
|
|
*/
|
|
|
|
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
|
-- ----------------------------
|
|
-- Table structure for char_style
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `char_style`;
|
|
CREATE TABLE IF NOT EXISTS `char_style` (
|
|
`charid` int(10) unsigned NOT NULL,
|
|
`head` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`body` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`hands` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`legs` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`feet` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`main` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`sub` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`ranged` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`charid`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=20; |