We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The modules that read from the item_db/item_db2 table need to be updated to match the new table structure, or it'll break. Focus points:
NULL
Table structure is (item_db2, but it's the same for item_db and item_db_re)
item_db2
item_db
item_db_re
CREATE TABLE `item_db2` ( `id` smallint(5) unsigned NOT NULL DEFAULT '0', `name_english` varchar(50) NOT NULL DEFAULT '', `name_japanese` varchar(50) NOT NULL DEFAULT '', `type` tinyint(2) unsigned NOT NULL DEFAULT '0', `price_buy` mediumint(10) DEFAULT NULL, `price_sell` mediumint(10) DEFAULT NULL, `weight` smallint(5) unsigned DEFAULT NULL, `atk` smallint(5) unsigned DEFAULT NULL, `matk` smallint(5) unsigned DEFAULT NULL, `defence` smallint(5) unsigned DEFAULT NULL, `range` tinyint(2) unsigned DEFAULT NULL, `slots` tinyint(2) unsigned DEFAULT NULL, `equip_jobs` int(12) unsigned DEFAULT NULL, `equip_upper` tinyint(8) unsigned DEFAULT NULL, `equip_genders` tinyint(2) unsigned DEFAULT NULL, `equip_locations` smallint(4) unsigned DEFAULT NULL, `weapon_level` tinyint(2) unsigned DEFAULT NULL, `equip_level_min` smallint(5) unsigned DEFAULT NULL, `equip_level_max` smallint(5) unsigned DEFAULT NULL, `refineable` tinyint(1) unsigned DEFAULT NULL, `view` smallint(3) unsigned DEFAULT NULL, `script` text, `equip_script` text, `unequip_script` text, PRIMARY KEY (`id`) ) ENGINE=MyISAM;
Discussion of each field, and their default values:
id
name_english
name_japanese
type
price_buy
price_sell * 2
price_sell
price_buy / 2
weight
atk
matk
defence
range
slots
equip_jobs
0xffffffff
equip_upper
0x63
equip_genders
2
equip_locations
weapon_level
equip_level_min
equip_level_max
MAX_LEVEL
refineable
type == 4 || type == 5
view
script
equip_script
unequip_script
The text was updated successfully, but these errors were encountered:
does this mean item_db 1 is alrdy updated to the new strucutre ? edit: aah i readed it again both db needs update :D would love to see this fixed fast
Sorry, something went wrong.
Merge pull request #10 from vthibault/master
7c3e06d
Security patch
No branches or pull requests
The modules that read from the item_db/item_db2 table need to be updated to match the new table structure, or it'll break. Focus points:
NULL
, and NULL means that the server decides their default values.Table structure is (
item_db2
, but it's the same foritem_db
anditem_db_re
)Discussion of each field, and their default values:
id
No changes from before.name_english
No changesname_japanese
No changestype
No changesprice_buy
IfNULL
, defaults toprice_sell * 2
(zero if both areNULL
)price_sell
ifNULL
, defaults toprice_buy / 2
(zero if both areNULL
)weight
ifNULL
, defaults to zeroatk
ifNULL
, defaults to zeromatk
ifNULL
, defaults to zero (in pre-renewal it exists but it shall be ignored and not displayed)defence
ifNULL
, defaults to zerorange
ifNULL
, defaults to zeroslots
ifNULL
, defaults to zeroequip_jobs
ifNULL
, defaults to "All Jobs" (0xffffffff
)equip_upper
ifNULL
, defaults to "No Restrictions" (0x63
)equip_genders
ifNULL
, defaults to "No Restrictions" (2
)equip_locations
ifNULL
, defaults to zeroweapon_level
ifNULL
, defaults to zeroequip_level_min
ifNULL
, defaults to zeroequip_level_max
ifNULL
, defaults to the server'sMAX_LEVEL
, in both renewal and pre-renewalrefineable
ifNULL
, defaults to true (for weapons and gears,type == 4 || type == 5
- it can be ignored for other items)view
ifNULL
, defaults to zeroscript
ifNULL
, defaults to no scriptequip_script
ifNULL
, defaults to no scriptunequip_script
ifNULL
, defaults to no scriptThe text was updated successfully, but these errors were encountered: