main.sql 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022
  1. --
  2. -- Table structure for table `acc_reg_num`
  3. --
  4. CREATE TABLE IF NOT EXISTS `acc_reg_num` (
  5. `account_id` int(11) unsigned NOT NULL default '0',
  6. `key` varchar(32) binary NOT NULL default '',
  7. `index` int(11) unsigned NOT NULL default '0',
  8. `value` int(11) NOT NULL default '0',
  9. PRIMARY KEY (`account_id`,`key`,`index`),
  10. KEY `account_id` (`account_id`)
  11. ) ENGINE=MyISAM;
  12. --
  13. -- Table structure for table `acc_reg_str`
  14. --
  15. CREATE TABLE IF NOT EXISTS `acc_reg_str` (
  16. `account_id` int(11) unsigned NOT NULL default '0',
  17. `key` varchar(32) binary NOT NULL default '',
  18. `index` int(11) unsigned NOT NULL default '0',
  19. `value` varchar(254) NOT NULL default '0',
  20. PRIMARY KEY (`account_id`,`key`,`index`),
  21. KEY `account_id` (`account_id`)
  22. ) ENGINE=MyISAM;
  23. --
  24. -- Table structure for table `auction`
  25. --
  26. CREATE TABLE IF NOT EXISTS `auction` (
  27. `auction_id` bigint(20) unsigned NOT NULL auto_increment,
  28. `seller_id` int(11) unsigned NOT NULL default '0',
  29. `seller_name` varchar(30) NOT NULL default '',
  30. `buyer_id` int(11) unsigned NOT NULL default '0',
  31. `buyer_name` varchar(30) NOT NULL default '',
  32. `price` int(11) unsigned NOT NULL default '0',
  33. `buynow` int(11) unsigned NOT NULL default '0',
  34. `hours` smallint(6) NOT NULL default '0',
  35. `timestamp` int(11) unsigned NOT NULL default '0',
  36. `nameid` smallint(5) unsigned NOT NULL default '0',
  37. `item_name` varchar(50) NOT NULL default '',
  38. `type` smallint(6) NOT NULL default '0',
  39. `refine` tinyint(3) unsigned NOT NULL default '0',
  40. `attribute` tinyint(4) unsigned NOT NULL default '0',
  41. `card0` smallint(5) unsigned NOT NULL default '0',
  42. `card1` smallint(5) unsigned NOT NULL default '0',
  43. `card2` smallint(5) unsigned NOT NULL default '0',
  44. `card3` smallint(5) unsigned NOT NULL default '0',
  45. `option_id0` smallint(5) unsigned NOT NULL default '0',
  46. `option_val0` smallint(5) unsigned NOT NULL default '0',
  47. `option_parm0` tinyint(3) unsigned NOT NULL default '0',
  48. `option_id1` smallint(5) unsigned NOT NULL default '0',
  49. `option_val1` smallint(5) unsigned NOT NULL default '0',
  50. `option_parm1` tinyint(3) unsigned NOT NULL default '0',
  51. `option_id2` smallint(5) unsigned NOT NULL default '0',
  52. `option_val2` smallint(5) unsigned NOT NULL default '0',
  53. `option_parm2` tinyint(3) unsigned NOT NULL default '0',
  54. `option_id3` smallint(5) unsigned NOT NULL default '0',
  55. `option_val3` smallint(5) unsigned NOT NULL default '0',
  56. `option_parm3` tinyint(3) unsigned NOT NULL default '0',
  57. `option_id4` smallint(5) unsigned NOT NULL default '0',
  58. `option_val4` smallint(5) unsigned NOT NULL default '0',
  59. `option_parm4` tinyint(3) unsigned NOT NULL default '0',
  60. `unique_id` bigint(20) unsigned NOT NULL default '0',
  61. PRIMARY KEY (`auction_id`)
  62. ) ENGINE=MyISAM;
  63. --
  64. -- Table structure for `db_roulette`
  65. --
  66. CREATE TABLE IF NOT EXISTS `db_roulette` (
  67. `index` int(11) NOT NULL default '0',
  68. `level` smallint(5) unsigned NOT NULL,
  69. `item_id` smallint(5) unsigned NOT NULL,
  70. `amount` smallint(5) unsigned NOT NULL DEFAULT '1',
  71. `flag` smallint(5) unsigned NOT NULL DEFAULT '1',
  72. PRIMARY KEY (`index`)
  73. ) ENGINE=MyISAM;
  74. --
  75. -- Table structure for table `bonus_script`
  76. --
  77. CREATE TABLE IF NOT EXISTS `bonus_script` (
  78. `char_id` INT(11) UNSIGNED NOT NULL,
  79. `script` TEXT NOT NULL,
  80. `tick` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  81. `flag` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
  82. `type` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
  83. `icon` SMALLINT(3) NOT NULL DEFAULT '-1'
  84. ) ENGINE=InnoDB;
  85. --
  86. -- Table structure for table `buyingstore_items`
  87. --
  88. CREATE TABLE IF NOT EXISTS `buyingstore_items` (
  89. `buyingstore_id` int(10) unsigned NOT NULL,
  90. `index` smallint(5) unsigned NOT NULL,
  91. `item_id` int(10) unsigned NOT NULL,
  92. `amount` smallint(5) unsigned NOT NULL,
  93. `price` int(10) unsigned NOT NULL
  94. ) ENGINE=MyISAM;
  95. --
  96. -- Table structure for table `buyingstores`
  97. --
  98. CREATE TABLE IF NOT EXISTS `buyingstores` (
  99. `id` int(10) unsigned NOT NULL,
  100. `account_id` int(11) unsigned NOT NULL,
  101. `char_id` int(10) unsigned NOT NULL,
  102. `sex` enum('F','M') NOT NULL DEFAULT 'M',
  103. `map` varchar(20) NOT NULL,
  104. `x` smallint(5) unsigned NOT NULL,
  105. `y` smallint(5) unsigned NOT NULL,
  106. `title` varchar(80) NOT NULL,
  107. `limit` int(10) unsigned NOT NULL,
  108. `body_direction` CHAR( 1 ) NOT NULL DEFAULT '4',
  109. `head_direction` CHAR( 1 ) NOT NULL DEFAULT '0',
  110. `sit` CHAR( 1 ) NOT NULL DEFAULT '1',
  111. `autotrade` tinyint(4) NOT NULL,
  112. PRIMARY KEY (`id`)
  113. ) ENGINE=MyISAM;
  114. --
  115. -- Table structure for table `cart_inventory`
  116. --
  117. CREATE TABLE IF NOT EXISTS `cart_inventory` (
  118. `id` int(11) NOT NULL auto_increment,
  119. `char_id` int(11) NOT NULL default '0',
  120. `nameid` smallint(5) unsigned NOT NULL default '0',
  121. `amount` int(11) NOT NULL default '0',
  122. `equip` int(11) unsigned NOT NULL default '0',
  123. `identify` smallint(6) NOT NULL default '0',
  124. `refine` tinyint(3) unsigned NOT NULL default '0',
  125. `attribute` tinyint(4) NOT NULL default '0',
  126. `card0` smallint(5) unsigned NOT NULL default '0',
  127. `card1` smallint(5) unsigned NOT NULL default '0',
  128. `card2` smallint(5) unsigned NOT NULL default '0',
  129. `card3` smallint(5) unsigned NOT NULL default '0',
  130. `option_id0` smallint(5) unsigned NOT NULL default '0',
  131. `option_val0` smallint(5) unsigned NOT NULL default '0',
  132. `option_parm0` tinyint(3) unsigned NOT NULL default '0',
  133. `option_id1` smallint(5) unsigned NOT NULL default '0',
  134. `option_val1` smallint(5) unsigned NOT NULL default '0',
  135. `option_parm1` tinyint(3) unsigned NOT NULL default '0',
  136. `option_id2` smallint(5) unsigned NOT NULL default '0',
  137. `option_val2` smallint(5) unsigned NOT NULL default '0',
  138. `option_parm2` tinyint(3) unsigned NOT NULL default '0',
  139. `option_id3` smallint(5) unsigned NOT NULL default '0',
  140. `option_val3` smallint(5) unsigned NOT NULL default '0',
  141. `option_parm3` tinyint(3) unsigned NOT NULL default '0',
  142. `option_id4` smallint(5) unsigned NOT NULL default '0',
  143. `option_val4` smallint(5) unsigned NOT NULL default '0',
  144. `option_parm4` tinyint(3) unsigned NOT NULL default '0',
  145. `expire_time` int(11) unsigned NOT NULL default '0',
  146. `bound` tinyint(3) unsigned NOT NULL default '0',
  147. `unique_id` bigint(20) unsigned NOT NULL default '0',
  148. PRIMARY KEY (`id`),
  149. KEY `char_id` (`char_id`)
  150. ) ENGINE=MyISAM;
  151. --
  152. -- Table structure for table `char`
  153. --
  154. CREATE TABLE IF NOT EXISTS `char` (
  155. `char_id` int(11) unsigned NOT NULL auto_increment,
  156. `account_id` int(11) unsigned NOT NULL default '0',
  157. `char_num` tinyint(1) NOT NULL default '0',
  158. `name` varchar(30) NOT NULL DEFAULT '',
  159. `class` smallint(6) unsigned NOT NULL default '0',
  160. `base_level` smallint(6) unsigned NOT NULL default '1',
  161. `job_level` smallint(6) unsigned NOT NULL default '1',
  162. `base_exp` bigint(20) unsigned NOT NULL default '0',
  163. `job_exp` bigint(20) unsigned NOT NULL default '0',
  164. `zeny` int(11) unsigned NOT NULL default '0',
  165. `str` smallint(4) unsigned NOT NULL default '0',
  166. `agi` smallint(4) unsigned NOT NULL default '0',
  167. `vit` smallint(4) unsigned NOT NULL default '0',
  168. `int` smallint(4) unsigned NOT NULL default '0',
  169. `dex` smallint(4) unsigned NOT NULL default '0',
  170. `luk` smallint(4) unsigned NOT NULL default '0',
  171. `max_hp` mediumint(8) unsigned NOT NULL default '0',
  172. `hp` mediumint(8) unsigned NOT NULL default '0',
  173. `max_sp` mediumint(6) unsigned NOT NULL default '0',
  174. `sp` mediumint(6) unsigned NOT NULL default '0',
  175. `status_point` int(11) unsigned NOT NULL default '0',
  176. `skill_point` int(11) unsigned NOT NULL default '0',
  177. `option` int(11) NOT NULL default '0',
  178. `karma` tinyint(3) NOT NULL default '0',
  179. `manner` smallint(6) NOT NULL default '0',
  180. `party_id` int(11) unsigned NOT NULL default '0',
  181. `guild_id` int(11) unsigned NOT NULL default '0',
  182. `pet_id` int(11) unsigned NOT NULL default '0',
  183. `homun_id` int(11) unsigned NOT NULL default '0',
  184. `elemental_id` int(11) unsigned NOT NULL default '0',
  185. `hair` tinyint(4) unsigned NOT NULL default '0',
  186. `hair_color` smallint(5) unsigned NOT NULL default '0',
  187. `clothes_color` smallint(5) unsigned NOT NULL default '0',
  188. `body` smallint(5) unsigned NOT NULL default '0',
  189. `weapon` smallint(6) unsigned NOT NULL default '0',
  190. `shield` smallint(6) unsigned NOT NULL default '0',
  191. `head_top` smallint(6) unsigned NOT NULL default '0',
  192. `head_mid` smallint(6) unsigned NOT NULL default '0',
  193. `head_bottom` smallint(6) unsigned NOT NULL default '0',
  194. `robe` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0',
  195. `last_map` varchar(11) NOT NULL default '',
  196. `last_x` smallint(4) unsigned NOT NULL default '53',
  197. `last_y` smallint(4) unsigned NOT NULL default '111',
  198. `save_map` varchar(11) NOT NULL default '',
  199. `save_x` smallint(4) unsigned NOT NULL default '53',
  200. `save_y` smallint(4) unsigned NOT NULL default '111',
  201. `partner_id` int(11) unsigned NOT NULL default '0',
  202. `online` tinyint(2) NOT NULL default '0',
  203. `father` int(11) unsigned NOT NULL default '0',
  204. `mother` int(11) unsigned NOT NULL default '0',
  205. `child` int(11) unsigned NOT NULL default '0',
  206. `fame` int(11) unsigned NOT NULL default '0',
  207. `rename` SMALLINT(3) unsigned NOT NULL default '0',
  208. `delete_date` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  209. `moves` int(11) unsigned NOT NULL DEFAULT '0',
  210. `unban_time` int(11) unsigned NOT NULL default '0',
  211. `font` tinyint(3) unsigned NOT NULL default '0',
  212. `uniqueitem_counter` int(11) unsigned NOT NULL default '0',
  213. `sex` ENUM('M','F','U') NOT NULL default 'U',
  214. `hotkey_rowshift` tinyint(3) unsigned NOT NULL default '0',
  215. `clan_id` int(11) unsigned NOT NULL default '0',
  216. `last_login` datetime DEFAULT NULL,
  217. PRIMARY KEY (`char_id`),
  218. UNIQUE KEY `name_key` (`name`),
  219. KEY `account_id` (`account_id`),
  220. KEY `party_id` (`party_id`),
  221. KEY `guild_id` (`guild_id`),
  222. KEY `online` (`online`)
  223. ) ENGINE=MyISAM AUTO_INCREMENT=150000;
  224. --
  225. -- Table structure for table `char_reg_num`
  226. --
  227. CREATE TABLE IF NOT EXISTS `char_reg_num` (
  228. `char_id` int(11) unsigned NOT NULL default '0',
  229. `key` varchar(32) binary NOT NULL default '',
  230. `index` int(11) unsigned NOT NULL default '0',
  231. `value` int(11) NOT NULL default '0',
  232. PRIMARY KEY (`char_id`,`key`,`index`),
  233. KEY `char_id` (`char_id`)
  234. ) ENGINE=MyISAM;
  235. --
  236. -- Table structure for table `char_reg_str`
  237. --
  238. CREATE TABLE IF NOT EXISTS `char_reg_str` (
  239. `char_id` int(11) unsigned NOT NULL default '0',
  240. `key` varchar(32) binary NOT NULL default '',
  241. `index` int(11) unsigned NOT NULL default '0',
  242. `value` varchar(254) NOT NULL default '0',
  243. PRIMARY KEY (`char_id`,`key`,`index`),
  244. KEY `char_id` (`char_id`)
  245. ) ENGINE=MyISAM;
  246. --
  247. -- Table structure for table `charlog`
  248. --
  249. CREATE TABLE IF NOT EXISTS `charlog` (
  250. `time` datetime NOT NULL,
  251. `char_msg` varchar(255) NOT NULL default 'char select',
  252. `account_id` int(11) NOT NULL default '0',
  253. `char_num` tinyint(4) NOT NULL default '0',
  254. `name` varchar(23) NOT NULL default '',
  255. `str` int(11) unsigned NOT NULL default '0',
  256. `agi` int(11) unsigned NOT NULL default '0',
  257. `vit` int(11) unsigned NOT NULL default '0',
  258. `int` int(11) unsigned NOT NULL default '0',
  259. `dex` int(11) unsigned NOT NULL default '0',
  260. `luk` int(11) unsigned NOT NULL default '0',
  261. `hair` tinyint(4) NOT NULL default '0',
  262. `hair_color` int(11) NOT NULL default '0'
  263. ) ENGINE=MyISAM;
  264. --
  265. -- Table structure for table `clan`
  266. --
  267. CREATE TABLE IF NOT EXISTS `clan` (
  268. `clan_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  269. `name` varchar(24) NOT NULL DEFAULT '',
  270. `master` varchar(24) NOT NULL DEFAULT '',
  271. `mapname` varchar(24) NOT NULL DEFAULT '',
  272. `max_member` smallint(6) unsigned NOT NULL DEFAULT '0',
  273. PRIMARY KEY (`clan_id`)
  274. ) ENGINE=MyISAM AUTO_INCREMENT=5;
  275. -- ----------------------------
  276. -- Records of clan
  277. -- ----------------------------
  278. INSERT INTO `clan` VALUES ('1', 'Swordman Clan', 'Raffam Oranpere', 'prontera', '500');
  279. INSERT INTO `clan` VALUES ('2', 'Arcwand Clan', 'Devon Aire', 'geffen', '500');
  280. INSERT INTO `clan` VALUES ('3', 'Golden Mace Clan', 'Berman Aire', 'prontera', '500');
  281. INSERT INTO `clan` VALUES ('4', 'Crossbow Clan', 'Shaam Rumi', 'payon', '500');
  282. -- ----------------------------
  283. -- Table structure for `clan_alliance`
  284. -- ----------------------------
  285. CREATE TABLE IF NOT EXISTS `clan_alliance` (
  286. `clan_id` int(11) unsigned NOT NULL DEFAULT '0',
  287. `opposition` int(11) unsigned NOT NULL DEFAULT '0',
  288. `alliance_id` int(11) unsigned NOT NULL DEFAULT '0',
  289. `name` varchar(24) NOT NULL DEFAULT '',
  290. PRIMARY KEY (`clan_id`,`alliance_id`),
  291. KEY `alliance_id` (`alliance_id`)
  292. ) ENGINE=MyISAM;
  293. -- ----------------------------
  294. -- Records of clan_alliance
  295. -- ----------------------------
  296. INSERT INTO `clan_alliance` VALUES ('1', '0', '3', 'Golden Mace Clan');
  297. INSERT INTO `clan_alliance` VALUES ('2', '0', '3', 'Golden Mace Clan');
  298. INSERT INTO `clan_alliance` VALUES ('2', '1', '4', 'Crossbow Clan');
  299. INSERT INTO `clan_alliance` VALUES ('3', '0', '1', 'Swordman Clan');
  300. INSERT INTO `clan_alliance` VALUES ('3', '0', '2', 'Arcwand Clan');
  301. INSERT INTO `clan_alliance` VALUES ('3', '0', '4', 'Crossbow Clan');
  302. INSERT INTO `clan_alliance` VALUES ('4', '0', '3', 'Golden Mace Clan');
  303. INSERT INTO `clan_alliance` VALUES ('4', '1', '2', 'Arcwand Clan');
  304. --
  305. -- Table structure for table `elemental`
  306. --
  307. CREATE TABLE IF NOT EXISTS `elemental` (
  308. `ele_id` int(11) unsigned NOT NULL auto_increment,
  309. `char_id` int(11) NOT NULL,
  310. `class` mediumint(9) unsigned NOT NULL default '0',
  311. `mode` int(11) unsigned NOT NULL default '1',
  312. `hp` int(12) NOT NULL default '1',
  313. `sp` int(12) NOT NULL default '1',
  314. `max_hp` mediumint(8) unsigned NOT NULL default '0',
  315. `max_sp` mediumint(6) unsigned NOT NULL default '0',
  316. `atk1` MEDIUMINT(6) unsigned NOT NULL default '0',
  317. `atk2` MEDIUMINT(6) unsigned NOT NULL default '0',
  318. `matk` MEDIUMINT(6) unsigned NOT NULL default '0',
  319. `aspd` smallint(4) unsigned NOT NULL default '0',
  320. `def` smallint(4) unsigned NOT NULL default '0',
  321. `mdef` smallint(4) unsigned NOT NULL default '0',
  322. `flee` smallint(4) unsigned NOT NULL default '0',
  323. `hit` smallint(4) unsigned NOT NULL default '0',
  324. `life_time` int(11) NOT NULL default '0',
  325. PRIMARY KEY (`ele_id`)
  326. ) ENGINE=MyISAM;
  327. --
  328. -- Table structure for table `friends`
  329. --
  330. CREATE TABLE IF NOT EXISTS `friends` (
  331. `char_id` int(11) NOT NULL default '0',
  332. `friend_account` int(11) NOT NULL default '0',
  333. `friend_id` int(11) NOT NULL default '0',
  334. KEY `char_id` (`char_id`)
  335. ) ENGINE=MyISAM;
  336. --
  337. -- Table structure for table `global_acc_reg_num`
  338. --
  339. CREATE TABLE IF NOT EXISTS `global_acc_reg_num` (
  340. `account_id` int(11) unsigned NOT NULL default '0',
  341. `key` varchar(32) binary NOT NULL default '',
  342. `index` int(11) unsigned NOT NULL default '0',
  343. `value` int(11) NOT NULL default '0',
  344. PRIMARY KEY (`account_id`,`key`,`index`),
  345. KEY `account_id` (`account_id`)
  346. ) ENGINE=MyISAM;
  347. --
  348. -- Table structure for table `global_acc_reg_str`
  349. --
  350. CREATE TABLE IF NOT EXISTS `global_acc_reg_str` (
  351. `account_id` int(11) unsigned NOT NULL default '0',
  352. `key` varchar(32) binary NOT NULL default '',
  353. `index` int(11) unsigned NOT NULL default '0',
  354. `value` varchar(254) NOT NULL default '0',
  355. PRIMARY KEY (`account_id`,`key`,`index`),
  356. KEY `account_id` (`account_id`)
  357. ) ENGINE=MyISAM;
  358. --
  359. -- Table structure for table `guild`
  360. --
  361. CREATE TABLE IF NOT EXISTS `guild` (
  362. `guild_id` int(11) unsigned NOT NULL auto_increment,
  363. `name` varchar(24) NOT NULL default '',
  364. `char_id` int(11) unsigned NOT NULL default '0',
  365. `master` varchar(24) NOT NULL default '',
  366. `guild_lv` tinyint(6) unsigned NOT NULL default '0',
  367. `connect_member` tinyint(6) unsigned NOT NULL default '0',
  368. `max_member` tinyint(6) unsigned NOT NULL default '0',
  369. `average_lv` smallint(6) unsigned NOT NULL default '1',
  370. `exp` bigint(20) unsigned NOT NULL default '0',
  371. `next_exp` int(11) unsigned NOT NULL default '0',
  372. `skill_point` tinyint(11) unsigned NOT NULL default '0',
  373. `mes1` varchar(60) NOT NULL default '',
  374. `mes2` varchar(120) NOT NULL default '',
  375. `emblem_len` int(11) unsigned NOT NULL default '0',
  376. `emblem_id` int(11) unsigned NOT NULL default '0',
  377. `emblem_data` blob,
  378. PRIMARY KEY (`guild_id`,`char_id`),
  379. UNIQUE KEY `guild_id` (`guild_id`),
  380. KEY `char_id` (`char_id`)
  381. ) ENGINE=MyISAM;
  382. --
  383. -- Table structure for table `guild_alliance`
  384. --
  385. CREATE TABLE IF NOT EXISTS `guild_alliance` (
  386. `guild_id` int(11) unsigned NOT NULL default '0',
  387. `opposition` int(11) unsigned NOT NULL default '0',
  388. `alliance_id` int(11) unsigned NOT NULL default '0',
  389. `name` varchar(24) NOT NULL default '',
  390. PRIMARY KEY (`guild_id`,`alliance_id`),
  391. KEY `alliance_id` (`alliance_id`)
  392. ) ENGINE=MyISAM;
  393. --
  394. -- Table structure for table `guild_castle`
  395. --
  396. CREATE TABLE IF NOT EXISTS `guild_castle` (
  397. `castle_id` int(11) unsigned NOT NULL default '0',
  398. `guild_id` int(11) unsigned NOT NULL default '0',
  399. `economy` int(11) unsigned NOT NULL default '0',
  400. `defense` int(11) unsigned NOT NULL default '0',
  401. `triggerE` int(11) unsigned NOT NULL default '0',
  402. `triggerD` int(11) unsigned NOT NULL default '0',
  403. `nextTime` int(11) unsigned NOT NULL default '0',
  404. `payTime` int(11) unsigned NOT NULL default '0',
  405. `createTime` int(11) unsigned NOT NULL default '0',
  406. `visibleC` int(11) unsigned NOT NULL default '0',
  407. `visibleG0` int(11) unsigned NOT NULL default '0',
  408. `visibleG1` int(11) unsigned NOT NULL default '0',
  409. `visibleG2` int(11) unsigned NOT NULL default '0',
  410. `visibleG3` int(11) unsigned NOT NULL default '0',
  411. `visibleG4` int(11) unsigned NOT NULL default '0',
  412. `visibleG5` int(11) unsigned NOT NULL default '0',
  413. `visibleG6` int(11) unsigned NOT NULL default '0',
  414. `visibleG7` int(11) unsigned NOT NULL default '0',
  415. PRIMARY KEY (`castle_id`),
  416. KEY `guild_id` (`guild_id`)
  417. ) ENGINE=MyISAM;
  418. --
  419. -- Table structure for table `guild_expulsion`
  420. --
  421. CREATE TABLE IF NOT EXISTS `guild_expulsion` (
  422. `guild_id` int(11) unsigned NOT NULL default '0',
  423. `account_id` int(11) unsigned NOT NULL default '0',
  424. `name` varchar(24) NOT NULL default '',
  425. `mes` varchar(40) NOT NULL default '',
  426. PRIMARY KEY (`guild_id`,`name`)
  427. ) ENGINE=MyISAM;
  428. --
  429. -- Table structure for table `guild_member`
  430. --
  431. CREATE TABLE IF NOT EXISTS `guild_member` (
  432. `guild_id` int(11) unsigned NOT NULL default '0',
  433. `account_id` int(11) unsigned NOT NULL default '0',
  434. `char_id` int(11) unsigned NOT NULL default '0',
  435. `hair` tinyint(6) unsigned NOT NULL default '0',
  436. `hair_color` smallint(6) unsigned NOT NULL default '0',
  437. `gender` tinyint(6) unsigned NOT NULL default '0',
  438. `class` smallint(6) unsigned NOT NULL default '0',
  439. `lv` smallint(6) unsigned NOT NULL default '0',
  440. `exp` bigint(20) unsigned NOT NULL default '0',
  441. `exp_payper` tinyint(11) unsigned NOT NULL default '0',
  442. `online` tinyint(4) unsigned NOT NULL default '0',
  443. `position` tinyint(6) unsigned NOT NULL default '0',
  444. `name` varchar(24) NOT NULL default '',
  445. PRIMARY KEY (`guild_id`,`char_id`),
  446. KEY `char_id` (`char_id`)
  447. ) ENGINE=MyISAM;
  448. --
  449. -- Table structure for table `guild_position`
  450. --
  451. CREATE TABLE IF NOT EXISTS `guild_position` (
  452. `guild_id` int(9) unsigned NOT NULL default '0',
  453. `position` tinyint(6) unsigned NOT NULL default '0',
  454. `name` varchar(24) NOT NULL default '',
  455. `mode` tinyint(11) unsigned NOT NULL default '0',
  456. `exp_mode` tinyint(11) unsigned NOT NULL default '0',
  457. PRIMARY KEY (`guild_id`,`position`)
  458. ) ENGINE=MyISAM;
  459. --
  460. -- Table structure for table `guild_skill`
  461. --
  462. CREATE TABLE IF NOT EXISTS `guild_skill` (
  463. `guild_id` int(11) unsigned NOT NULL default '0',
  464. `id` smallint(11) unsigned NOT NULL default '0',
  465. `lv` tinyint(11) unsigned NOT NULL default '0',
  466. PRIMARY KEY (`guild_id`,`id`)
  467. ) ENGINE=MyISAM;
  468. --
  469. -- Table structure for table `guild_storage`
  470. --
  471. CREATE TABLE IF NOT EXISTS `guild_storage` (
  472. `id` int(10) unsigned NOT NULL auto_increment,
  473. `guild_id` int(11) unsigned NOT NULL default '0',
  474. `nameid` smallint(5) unsigned NOT NULL default '0',
  475. `amount` int(11) unsigned NOT NULL default '0',
  476. `equip` int(11) unsigned NOT NULL default '0',
  477. `identify` smallint(6) unsigned NOT NULL default '0',
  478. `refine` tinyint(3) unsigned NOT NULL default '0',
  479. `attribute` tinyint(4) unsigned NOT NULL default '0',
  480. `card0` smallint(5) unsigned NOT NULL default '0',
  481. `card1` smallint(5) unsigned NOT NULL default '0',
  482. `card2` smallint(5) unsigned NOT NULL default '0',
  483. `card3` smallint(5) unsigned NOT NULL default '0',
  484. `option_id0` smallint(5) unsigned NOT NULL default '0',
  485. `option_val0` smallint(5) unsigned NOT NULL default '0',
  486. `option_parm0` tinyint(3) unsigned NOT NULL default '0',
  487. `option_id1` smallint(5) unsigned NOT NULL default '0',
  488. `option_val1` smallint(5) unsigned NOT NULL default '0',
  489. `option_parm1` tinyint(3) unsigned NOT NULL default '0',
  490. `option_id2` smallint(5) unsigned NOT NULL default '0',
  491. `option_val2` smallint(5) unsigned NOT NULL default '0',
  492. `option_parm2` tinyint(3) unsigned NOT NULL default '0',
  493. `option_id3` smallint(5) unsigned NOT NULL default '0',
  494. `option_val3` smallint(5) unsigned NOT NULL default '0',
  495. `option_parm3` tinyint(3) unsigned NOT NULL default '0',
  496. `option_id4` smallint(5) unsigned NOT NULL default '0',
  497. `option_val4` smallint(5) unsigned NOT NULL default '0',
  498. `option_parm4` tinyint(3) unsigned NOT NULL default '0',
  499. `expire_time` int(11) unsigned NOT NULL default '0',
  500. `bound` tinyint(3) unsigned NOT NULL default '0',
  501. `unique_id` bigint(20) unsigned NOT NULL default '0',
  502. PRIMARY KEY (`id`),
  503. KEY `guild_id` (`guild_id`)
  504. ) ENGINE=MyISAM;
  505. --
  506. -- Table structure for table `homunculus`
  507. --
  508. CREATE TABLE IF NOT EXISTS `homunculus` (
  509. `homun_id` int(11) NOT NULL auto_increment,
  510. `char_id` int(11) NOT NULL,
  511. `class` mediumint(9) unsigned NOT NULL default '0',
  512. `prev_class` mediumint(9) NOT NULL default '0',
  513. `name` varchar(24) NOT NULL default '',
  514. `level` smallint(4) NOT NULL default '0',
  515. `exp` bigint(20) unsigned NOT NULL default '0',
  516. `intimacy` int(12) NOT NULL default '0',
  517. `hunger` smallint(4) NOT NULL default '0',
  518. `str` smallint(4) unsigned NOT NULL default '0',
  519. `agi` smallint(4) unsigned NOT NULL default '0',
  520. `vit` smallint(4) unsigned NOT NULL default '0',
  521. `int` smallint(4) unsigned NOT NULL default '0',
  522. `dex` smallint(4) unsigned NOT NULL default '0',
  523. `luk` smallint(4) unsigned NOT NULL default '0',
  524. `hp` int(12) NOT NULL default '1',
  525. `max_hp` int(12) NOT NULL default '1',
  526. `sp` int(12) NOT NULL default '1',
  527. `max_sp` int(12) NOT NULL default '1',
  528. `skill_point` smallint(4) unsigned NOT NULL default '0',
  529. `alive` tinyint(2) NOT NULL default '1',
  530. `rename_flag` tinyint(2) NOT NULL default '0',
  531. `vaporize` tinyint(2) NOT NULL default '0',
  532. PRIMARY KEY (`homun_id`)
  533. ) ENGINE=MyISAM;
  534. --
  535. -- Table structure for table `hotkey`
  536. --
  537. CREATE TABLE IF NOT EXISTS `hotkey` (
  538. `char_id` INT(11) NOT NULL,
  539. `hotkey` TINYINT(2) unsigned NOT NULL,
  540. `type` TINYINT(1) unsigned NOT NULL default '0',
  541. `itemskill_id` INT(11) unsigned NOT NULL default '0',
  542. `skill_lvl` TINYINT(4) unsigned NOT NULL default '0',
  543. PRIMARY KEY (`char_id`,`hotkey`)
  544. ) ENGINE=MyISAM;
  545. --
  546. -- Table structure for table `interlog`
  547. --
  548. CREATE TABLE IF NOT EXISTS `interlog` (
  549. `time` datetime NOT NULL,
  550. `log` varchar(255) NOT NULL default ''
  551. ) ENGINE=MyISAM;
  552. --
  553. -- Table structure for table `interreg`
  554. --
  555. CREATE TABLE IF NOT EXISTS `interreg` (
  556. `varname` varchar(11) NOT NULL,
  557. `value` varchar(20) NOT NULL,
  558. PRIMARY KEY (`varname`)
  559. ) ENGINE=InnoDB;
  560. --
  561. -- Table structure for table `inventory`
  562. --
  563. CREATE TABLE IF NOT EXISTS `inventory` (
  564. `id` int(11) unsigned NOT NULL auto_increment,
  565. `char_id` int(11) unsigned NOT NULL default '0',
  566. `nameid` smallint(5) unsigned NOT NULL default '0',
  567. `amount` int(11) unsigned NOT NULL default '0',
  568. `equip` int(11) unsigned NOT NULL default '0',
  569. `identify` smallint(6) NOT NULL default '0',
  570. `refine` tinyint(3) unsigned NOT NULL default '0',
  571. `attribute` tinyint(4) unsigned NOT NULL default '0',
  572. `card0` smallint(5) unsigned NOT NULL default '0',
  573. `card1` smallint(5) unsigned NOT NULL default '0',
  574. `card2` smallint(5) unsigned NOT NULL default '0',
  575. `card3` smallint(5) unsigned NOT NULL default '0',
  576. `option_id0` smallint(5) unsigned NOT NULL default '0',
  577. `option_val0` smallint(5) unsigned NOT NULL default '0',
  578. `option_parm0` tinyint(3) unsigned NOT NULL default '0',
  579. `option_id1` smallint(5) unsigned NOT NULL default '0',
  580. `option_val1` smallint(5) unsigned NOT NULL default '0',
  581. `option_parm1` tinyint(3) unsigned NOT NULL default '0',
  582. `option_id2` smallint(5) unsigned NOT NULL default '0',
  583. `option_val2` smallint(5) unsigned NOT NULL default '0',
  584. `option_parm2` tinyint(3) unsigned NOT NULL default '0',
  585. `option_id3` smallint(5) unsigned NOT NULL default '0',
  586. `option_val3` smallint(5) unsigned NOT NULL default '0',
  587. `option_parm3` tinyint(3) unsigned NOT NULL default '0',
  588. `option_id4` smallint(5) unsigned NOT NULL default '0',
  589. `option_val4` smallint(5) unsigned NOT NULL default '0',
  590. `option_parm4` tinyint(3) unsigned NOT NULL default '0',
  591. `expire_time` int(11) unsigned NOT NULL default '0',
  592. `favorite` tinyint(3) unsigned NOT NULL default '0',
  593. `bound` tinyint(3) unsigned NOT NULL default '0',
  594. `unique_id` bigint(20) unsigned NOT NULL default '0',
  595. PRIMARY KEY (`id`),
  596. KEY `char_id` (`char_id`)
  597. ) ENGINE=MyISAM;
  598. --
  599. -- Table structure for table `ipbanlist`
  600. --
  601. CREATE TABLE IF NOT EXISTS `ipbanlist` (
  602. `list` varchar(255) NOT NULL default '',
  603. `btime` datetime NOT NULL,
  604. `rtime` datetime NOT NULL,
  605. `reason` varchar(255) NOT NULL default '',
  606. KEY (`list`)
  607. ) ENGINE=MyISAM;
  608. --
  609. -- Table structure for table `login`
  610. --
  611. CREATE TABLE IF NOT EXISTS `login` (
  612. `account_id` int(11) unsigned NOT NULL auto_increment,
  613. `userid` varchar(23) NOT NULL default '',
  614. `user_pass` varchar(32) NOT NULL default '',
  615. `sex` enum('M','F','S') NOT NULL default 'M',
  616. `email` varchar(39) NOT NULL default '',
  617. `group_id` tinyint(3) NOT NULL default '0',
  618. `state` int(11) unsigned NOT NULL default '0',
  619. `unban_time` int(11) unsigned NOT NULL default '0',
  620. `expiration_time` int(11) unsigned NOT NULL default '0',
  621. `logincount` mediumint(9) unsigned NOT NULL default '0',
  622. `lastlogin` datetime,
  623. `last_ip` varchar(100) NOT NULL default '',
  624. `birthdate` DATE,
  625. `character_slots` tinyint(3) unsigned NOT NULL default '0',
  626. `pincode` varchar(4) NOT NULL DEFAULT '',
  627. `pincode_change` int(11) unsigned NOT NULL DEFAULT '0',
  628. `vip_time` int(11) unsigned NOT NULL default '0',
  629. `old_group` tinyint(3) NOT NULL default '0',
  630. PRIMARY KEY (`account_id`),
  631. KEY `name` (`userid`)
  632. ) ENGINE=MyISAM AUTO_INCREMENT=2000000;
  633. -- added standard accounts for servers, VERY INSECURE!!!
  634. -- inserted into the table called login which is above
  635. INSERT INTO `login` (`account_id`, `userid`, `user_pass`, `sex`, `email`) VALUES ('1', 's1', 'p1', 'S','athena@athena.com');
  636. --
  637. -- Table structure for table `mail`
  638. --
  639. CREATE TABLE IF NOT EXISTS `mail` (
  640. `id` bigint(20) unsigned NOT NULL auto_increment,
  641. `send_name` varchar(30) NOT NULL default '',
  642. `send_id` int(11) unsigned NOT NULL default '0',
  643. `dest_name` varchar(30) NOT NULL default '',
  644. `dest_id` int(11) unsigned NOT NULL default '0',
  645. `title` varchar(45) NOT NULL default '',
  646. `message` varchar(255) NOT NULL default '',
  647. `time` int(11) unsigned NOT NULL default '0',
  648. `status` tinyint(2) NOT NULL default '0',
  649. `zeny` int(11) unsigned NOT NULL default '0',
  650. `nameid` smallint(5) unsigned NOT NULL default '0',
  651. `amount` int(11) unsigned NOT NULL default '0',
  652. `refine` tinyint(3) unsigned NOT NULL default '0',
  653. `attribute` tinyint(4) unsigned NOT NULL default '0',
  654. `identify` smallint(6) NOT NULL default '0',
  655. `card0` smallint(5) unsigned NOT NULL default '0',
  656. `card1` smallint(5) unsigned NOT NULL default '0',
  657. `card2` smallint(5) unsigned NOT NULL default '0',
  658. `card3` smallint(5) unsigned NOT NULL default '0',
  659. `option_id0` smallint(5) unsigned NOT NULL default '0',
  660. `option_val0` smallint(5) unsigned NOT NULL default '0',
  661. `option_parm0` tinyint(3) unsigned NOT NULL default '0',
  662. `option_id1` smallint(5) unsigned NOT NULL default '0',
  663. `option_val1` smallint(5) unsigned NOT NULL default '0',
  664. `option_parm1` tinyint(3) unsigned NOT NULL default '0',
  665. `option_id2` smallint(5) unsigned NOT NULL default '0',
  666. `option_val2` smallint(5) unsigned NOT NULL default '0',
  667. `option_parm2` tinyint(3) unsigned NOT NULL default '0',
  668. `option_id3` smallint(5) unsigned NOT NULL default '0',
  669. `option_val3` smallint(5) unsigned NOT NULL default '0',
  670. `option_parm3` tinyint(3) unsigned NOT NULL default '0',
  671. `option_id4` smallint(5) unsigned NOT NULL default '0',
  672. `option_val4` smallint(5) unsigned NOT NULL default '0',
  673. `option_parm4` tinyint(3) unsigned NOT NULL default '0',
  674. `unique_id` bigint(20) unsigned NOT NULL default '0',
  675. `bound` tinyint(1) unsigned NOT NULL default '0',
  676. PRIMARY KEY (`id`)
  677. ) ENGINE=MyISAM;
  678. --
  679. -- Table structure for table `mapreg`
  680. --
  681. CREATE TABLE IF NOT EXISTS `mapreg` (
  682. `varname` varchar(32) binary NOT NULL,
  683. `index` int(11) unsigned NOT NULL default '0',
  684. `value` varchar(255) NOT NULL,
  685. PRIMARY KEY (`varname`,`index`)
  686. ) ENGINE=MyISAM;
  687. --
  688. -- Table `market` for market shop persistency
  689. --
  690. CREATE TABLE IF NOT EXISTS `market` (
  691. `name` varchar(50) NOT NULL DEFAULT '',
  692. `nameid` SMALLINT(5) UNSIGNED NOT NULL,
  693. `price` INT(11) UNSIGNED NOT NULL,
  694. `amount` SMALLINT(5) UNSIGNED NOT NULL,
  695. `flag` TINYINT(2) UNSIGNED NOT NULL DEFAULT '0',
  696. PRIMARY KEY (`name`,`nameid`)
  697. ) ENGINE = MyISAM;
  698. --
  699. -- Table structure for table `memo`
  700. --
  701. CREATE TABLE IF NOT EXISTS `memo` (
  702. `memo_id` int(11) unsigned NOT NULL auto_increment,
  703. `char_id` int(11) unsigned NOT NULL default '0',
  704. `map` varchar(11) NOT NULL default '',
  705. `x` smallint(4) unsigned NOT NULL default '0',
  706. `y` smallint(4) unsigned NOT NULL default '0',
  707. PRIMARY KEY (`memo_id`),
  708. KEY `char_id` (`char_id`)
  709. ) ENGINE=MyISAM;
  710. --
  711. -- Table structure for table `mercenary`
  712. --
  713. CREATE TABLE IF NOT EXISTS `mercenary` (
  714. `mer_id` int(11) unsigned NOT NULL auto_increment,
  715. `char_id` int(11) NOT NULL,
  716. `class` mediumint(9) unsigned NOT NULL default '0',
  717. `hp` int(12) NOT NULL default '1',
  718. `sp` int(12) NOT NULL default '1',
  719. `kill_counter` int(11) NOT NULL,
  720. `life_time` int(11) NOT NULL default '0',
  721. PRIMARY KEY (`mer_id`)
  722. ) ENGINE=MyISAM;
  723. --
  724. -- Table structure for table `mercenary_owner`
  725. --
  726. CREATE TABLE IF NOT EXISTS `mercenary_owner` (
  727. `char_id` int(11) NOT NULL,
  728. `merc_id` int(11) NOT NULL default '0',
  729. `arch_calls` int(11) NOT NULL default '0',
  730. `arch_faith` int(11) NOT NULL default '0',
  731. `spear_calls` int(11) NOT NULL default '0',
  732. `spear_faith` int(11) NOT NULL default '0',
  733. `sword_calls` int(11) NOT NULL default '0',
  734. `sword_faith` int(11) NOT NULL default '0',
  735. PRIMARY KEY (`char_id`)
  736. ) ENGINE=MyISAM;
  737. -- ----------------------------
  738. -- Table structure for `sales`
  739. -- ----------------------------
  740. CREATE TABLE IF NOT EXISTS `sales` (
  741. `nameid` smallint(5) unsigned NOT NULL,
  742. `start` datetime NOT NULL,
  743. `end` datetime NOT NULL,
  744. `amount` int(11) NOT NULL,
  745. PRIMARY KEY (`nameid`)
  746. ) ENGINE=MyISAM;
  747. --
  748. -- Table structure for table `sc_data`
  749. --
  750. CREATE TABLE IF NOT EXISTS `sc_data` (
  751. `account_id` int(11) unsigned NOT NULL,
  752. `char_id` int(11) unsigned NOT NULL,
  753. `type` smallint(11) unsigned NOT NULL,
  754. `tick` int(11) NOT NULL,
  755. `val1` int(11) NOT NULL default '0',
  756. `val2` int(11) NOT NULL default '0',
  757. `val3` int(11) NOT NULL default '0',
  758. `val4` int(11) NOT NULL default '0',
  759. KEY (`account_id`),
  760. KEY (`char_id`)
  761. ) ENGINE=MyISAM;
  762. --
  763. -- Table structure for table `skillcooldown`
  764. --
  765. CREATE TABLE IF NOT EXISTS `skillcooldown` (
  766. `account_id` int(11) unsigned NOT NULL,
  767. `char_id` int(11) unsigned NOT NULL,
  768. `skill` smallint(11) unsigned NOT NULL DEFAULT '0',
  769. `tick` int(11) NOT NULL,
  770. KEY `account_id` (`account_id`),
  771. KEY `char_id` (`char_id`)
  772. ) ENGINE=MyISAM;
  773. --
  774. -- Table structure for table `party`
  775. --
  776. CREATE TABLE IF NOT EXISTS `party` (
  777. `party_id` int(11) unsigned NOT NULL auto_increment,
  778. `name` varchar(24) NOT NULL default '',
  779. `exp` tinyint(11) unsigned NOT NULL default '0',
  780. `item` tinyint(11) unsigned NOT NULL default '0',
  781. `leader_id` int(11) unsigned NOT NULL default '0',
  782. `leader_char` int(11) unsigned NOT NULL default '0',
  783. PRIMARY KEY (`party_id`)
  784. ) ENGINE=MyISAM;
  785. --
  786. -- Table structure for table `pet`
  787. --
  788. CREATE TABLE IF NOT EXISTS `pet` (
  789. `pet_id` int(11) unsigned NOT NULL auto_increment,
  790. `class` mediumint(9) unsigned NOT NULL default '0',
  791. `name` varchar(24) NOT NULL default '',
  792. `account_id` int(11) unsigned NOT NULL default '0',
  793. `char_id` int(11) unsigned NOT NULL default '0',
  794. `level` smallint(4) unsigned NOT NULL default '0',
  795. `egg_id` smallint(5) unsigned NOT NULL default '0',
  796. `equip` mediumint(8) unsigned NOT NULL default '0',
  797. `intimate` smallint(9) unsigned NOT NULL default '0',
  798. `hungry` smallint(9) unsigned NOT NULL default '0',
  799. `rename_flag` tinyint(4) unsigned NOT NULL default '0',
  800. `incubate` int(11) unsigned NOT NULL default '0',
  801. PRIMARY KEY (`pet_id`)
  802. ) ENGINE=MyISAM;
  803. --
  804. -- Table structure for table `quest`
  805. --
  806. CREATE TABLE IF NOT EXISTS `quest` (
  807. `char_id` int(11) unsigned NOT NULL default '0',
  808. `quest_id` int(10) unsigned NOT NULL,
  809. `state` enum('0','1','2') NOT NULL default '0',
  810. `time` int(11) unsigned NOT NULL default '0',
  811. `count1` mediumint(8) unsigned NOT NULL default '0',
  812. `count2` mediumint(8) unsigned NOT NULL default '0',
  813. `count3` mediumint(8) unsigned NOT NULL default '0',
  814. PRIMARY KEY (`char_id`,`quest_id`)
  815. ) ENGINE=MyISAM;
  816. --
  817. -- Table structure for table `ragsrvinfo`
  818. --
  819. CREATE TABLE IF NOT EXISTS `ragsrvinfo` (
  820. `index` int(11) NOT NULL default '0',
  821. `name` varchar(255) NOT NULL default '',
  822. `exp` int(11) unsigned NOT NULL default '0',
  823. `jexp` int(11) unsigned NOT NULL default '0',
  824. `drop` int(11) unsigned NOT NULL default '0'
  825. ) ENGINE=MyISAM;
  826. --
  827. -- Table structure for table `skill`
  828. --
  829. CREATE TABLE IF NOT EXISTS `skill` (
  830. `char_id` int(11) unsigned NOT NULL default '0',
  831. `id` smallint(11) unsigned NOT NULL default '0',
  832. `lv` tinyint(4) unsigned NOT NULL default '0',
  833. `flag` TINYINT(1) UNSIGNED NOT NULL default 0,
  834. PRIMARY KEY (`char_id`,`id`)
  835. ) ENGINE=MyISAM;
  836. --
  837. -- Table structure for table `skill_homunculus`
  838. --
  839. CREATE TABLE IF NOT EXISTS `skill_homunculus` (
  840. `homun_id` int(11) NOT NULL,
  841. `id` int(11) NOT NULL,
  842. `lv` smallint(6) NOT NULL,
  843. PRIMARY KEY (`homun_id`,`id`)
  844. ) ENGINE=MyISAM;
  845. --
  846. -- Table structure for table `sstatus`
  847. --
  848. CREATE TABLE IF NOT EXISTS `sstatus` (
  849. `index` tinyint(4) unsigned NOT NULL default '0',
  850. `name` varchar(255) NOT NULL default '',
  851. `user` int(11) unsigned NOT NULL default '0'
  852. ) ENGINE=MyISAM;
  853. --
  854. -- Table structure for table `storage`
  855. --
  856. CREATE TABLE IF NOT EXISTS `storage` (
  857. `id` int(11) unsigned NOT NULL auto_increment,
  858. `account_id` int(11) unsigned NOT NULL default '0',
  859. `nameid` smallint(5) unsigned NOT NULL default '0',
  860. `amount` smallint(11) unsigned NOT NULL default '0',
  861. `equip` int(11) unsigned NOT NULL default '0',
  862. `identify` smallint(6) unsigned NOT NULL default '0',
  863. `refine` tinyint(3) unsigned NOT NULL default '0',
  864. `attribute` tinyint(4) unsigned NOT NULL default '0',
  865. `card0` smallint(5) unsigned NOT NULL default '0',
  866. `card1` smallint(5) unsigned NOT NULL default '0',
  867. `card2` smallint(5) unsigned NOT NULL default '0',
  868. `card3` smallint(5) unsigned NOT NULL default '0',
  869. `option_id0` smallint(5) unsigned NOT NULL default '0',
  870. `option_val0` smallint(5) unsigned NOT NULL default '0',
  871. `option_parm0` tinyint(3) unsigned NOT NULL default '0',
  872. `option_id1` smallint(5) unsigned NOT NULL default '0',
  873. `option_val1` smallint(5) unsigned NOT NULL default '0',
  874. `option_parm1` tinyint(3) unsigned NOT NULL default '0',
  875. `option_id2` smallint(5) unsigned NOT NULL default '0',
  876. `option_val2` smallint(5) unsigned NOT NULL default '0',
  877. `option_parm2` tinyint(3) unsigned NOT NULL default '0',
  878. `option_id3` smallint(5) unsigned NOT NULL default '0',
  879. `option_val3` smallint(5) unsigned NOT NULL default '0',
  880. `option_parm3` tinyint(3) unsigned NOT NULL default '0',
  881. `option_id4` smallint(5) unsigned NOT NULL default '0',
  882. `option_val4` smallint(5) unsigned NOT NULL default '0',
  883. `option_parm4` tinyint(3) unsigned NOT NULL default '0',
  884. `expire_time` int(11) unsigned NOT NULL default '0',
  885. `bound` tinyint(3) unsigned NOT NULL default '0',
  886. `unique_id` bigint(20) unsigned NOT NULL default '0',
  887. PRIMARY KEY (`id`),
  888. KEY `account_id` (`account_id`)
  889. ) ENGINE=MyISAM;
  890. --
  891. -- Table structure for table `vending_items`
  892. --
  893. CREATE TABLE IF NOT EXISTS `vending_items` (
  894. `vending_id` int(10) unsigned NOT NULL,
  895. `index` smallint(5) unsigned NOT NULL,
  896. `cartinventory_id` int(10) unsigned NOT NULL,
  897. `amount` smallint(5) unsigned NOT NULL,
  898. `price` int(10) unsigned NOT NULL
  899. ) ENGINE=MyISAM;
  900. --
  901. -- Table structure for table `vendings`
  902. --
  903. CREATE TABLE IF NOT EXISTS `vendings` (
  904. `id` int(10) unsigned NOT NULL,
  905. `account_id` int(11) unsigned NOT NULL,
  906. `char_id` int(10) unsigned NOT NULL,
  907. `sex` enum('F','M') NOT NULL DEFAULT 'M',
  908. `map` varchar(20) NOT NULL,
  909. `x` smallint(5) unsigned NOT NULL,
  910. `y` smallint(5) unsigned NOT NULL,
  911. `title` varchar(80) NOT NULL,
  912. `body_direction` CHAR( 1 ) NOT NULL DEFAULT '4',
  913. `head_direction` CHAR( 1 ) NOT NULL DEFAULT '0',
  914. `sit` CHAR( 1 ) NOT NULL DEFAULT '1',
  915. `autotrade` tinyint(4) NOT NULL,
  916. PRIMARY KEY (`id`)
  917. ) ENGINE=MyISAM;