Follow up to 15fdc12

* Adjusted the item database parser cast type.
* Adjusted the SQL tables to reflect the increased limit.
This commit is contained in:
aleos89 2016-06-14 17:37:04 -04:00
parent 15fdc12f72
commit a14e21f4dd
6 changed files with 12 additions and 5 deletions

View File

@ -15,7 +15,7 @@ CREATE TABLE `item_db` (
`defence` smallint(5) unsigned DEFAULT NULL,
`range` tinyint(2) unsigned DEFAULT NULL,
`slots` tinyint(2) unsigned DEFAULT NULL,
`equip_jobs` int(10) unsigned DEFAULT NULL,
`equip_jobs` bigint(20) unsigned DEFAULT NULL,
`equip_upper` tinyint(2) unsigned DEFAULT NULL,
`equip_genders` tinyint(1) unsigned DEFAULT NULL,
`equip_locations` mediumint(7) unsigned DEFAULT NULL,

View File

@ -15,7 +15,7 @@ CREATE TABLE `item_db2` (
`defence` smallint(5) unsigned DEFAULT NULL,
`range` tinyint(2) unsigned DEFAULT NULL,
`slots` tinyint(2) unsigned DEFAULT NULL,
`equip_jobs` int(10) unsigned DEFAULT NULL,
`equip_jobs` bigint(20) unsigned DEFAULT NULL,
`equip_upper` tinyint(2) unsigned DEFAULT NULL,
`equip_genders` tinyint(1) unsigned DEFAULT NULL,
`equip_locations` mediumint(7) unsigned DEFAULT NULL,

View File

@ -15,7 +15,7 @@ CREATE TABLE `item_db2_re` (
`defence` smallint(5) unsigned DEFAULT NULL,
`range` tinyint(2) unsigned DEFAULT NULL,
`slots` tinyint(2) unsigned DEFAULT NULL,
`equip_jobs` int(10) unsigned DEFAULT NULL,
`equip_jobs` bigint(20) unsigned DEFAULT NULL,
`equip_upper` tinyint(2) unsigned DEFAULT NULL,
`equip_genders` tinyint(1) unsigned DEFAULT NULL,
`equip_locations` mediumint(7) unsigned DEFAULT NULL,

View File

@ -15,7 +15,7 @@ CREATE TABLE `item_db_re` (
`defence` smallint(5) unsigned DEFAULT NULL,
`range` tinyint(2) unsigned DEFAULT NULL,
`slots` tinyint(2) unsigned DEFAULT NULL,
`equip_jobs` int(10) unsigned DEFAULT NULL,
`equip_jobs` bigint(20) unsigned DEFAULT NULL,
`equip_upper` tinyint(2) unsigned DEFAULT NULL,
`equip_genders` tinyint(1) unsigned DEFAULT NULL,
`equip_locations` mediumint(7) unsigned DEFAULT NULL,

View File

@ -0,0 +1,7 @@
ALTER TABLE `item_db` MODIFY COLUMN `equip_jobs` bigint(20) unsigned DEFAULT NULL;
ALTER TABLE `item_db_re` MODIFY COLUMN `equip_jobs` bigint(20) unsigned DEFAULT NULL;
ALTER TABLE `item_db2` MODIFY COLUMN `equip_jobs` bigint(20) unsigned DEFAULT NULL;
ALTER TABLE `item_db2_re` MODIFY COLUMN `equip_jobs` bigint(20) unsigned DEFAULT NULL;

View File

@ -1280,7 +1280,7 @@ static bool itemdb_parse_dbrow(char** str, const char* source, int line, int scr
id->slot = MAX_SLOTS;
}
itemdb_jobid2mapid(id->class_base, (unsigned int)strtoul(str[11],NULL,0));
itemdb_jobid2mapid(id->class_base, (uint64)strtoul(str[11],NULL,0));
id->class_upper = atoi(str[12]);
id->sex = atoi(str[13]);
id->equip = atoi(str[14]);