logs.sql 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. --
  2. -- Table structure for table `atcommandlog`
  3. --
  4. CREATE TABLE IF NOT EXISTS `atcommandlog` (
  5. `atcommand_id` mediumint(9) unsigned NOT NULL auto_increment,
  6. `atcommand_date` datetime NOT NULL default '0000-00-00 00:00:00',
  7. `account_id` int(11) unsigned NOT NULL default '0',
  8. `char_id` int(11) unsigned NOT NULL default '0',
  9. `char_name` varchar(25) NOT NULL default '',
  10. `map` varchar(11) NOT NULL default '',
  11. `command` varchar(255) NOT NULL default '',
  12. PRIMARY KEY (`atcommand_id`),
  13. INDEX (`account_id`),
  14. INDEX (`char_id`)
  15. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  16. --
  17. -- Table structure for table `branchlog`
  18. --
  19. CREATE TABLE IF NOT EXISTS `branchlog` (
  20. `branch_id` mediumint(9) unsigned NOT NULL auto_increment,
  21. `branch_date` datetime NOT NULL default '0000-00-00 00:00:00',
  22. `account_id` int(11) NOT NULL default '0',
  23. `char_id` int(11) NOT NULL default '0',
  24. `char_name` varchar(25) NOT NULL default '',
  25. `map` varchar(11) NOT NULL default '',
  26. PRIMARY KEY (`branch_id`),
  27. INDEX (`account_id`),
  28. INDEX (`char_id`)
  29. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  30. --
  31. -- Table structure for table `cashlog`
  32. --
  33. CREATE TABLE IF NOT EXISTS `cashlog` (
  34. `id` int(11) NOT NULL AUTO_INCREMENT,
  35. `time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  36. `char_id` int(11) NOT NULL DEFAULT '0',
  37. `type` enum('T','V','P','M','S','N','D','C','A','E','I','B','$') NOT NULL DEFAULT 'S',
  38. `cash_type` enum('O','K','C') NOT NULL DEFAULT 'O',
  39. `amount` int(11) NOT NULL DEFAULT '0',
  40. `map` varchar(11) NOT NULL DEFAULT '',
  41. PRIMARY KEY (`id`),
  42. INDEX `type` (`type`)
  43. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  44. --
  45. -- Table structure for table `chatlog`
  46. --
  47. # ChatLog types
  48. # Gl(O)bal # (W)hisper # (P)arty # (G)uild # (M)ain chat
  49. CREATE TABLE IF NOT EXISTS `chatlog` (
  50. `id` bigint(20) NOT NULL auto_increment,
  51. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  52. `type` enum('O','W','P','G','M') NOT NULL default 'O',
  53. `type_id` int(11) NOT NULL default '0',
  54. `src_charid` int(11) NOT NULL default '0',
  55. `src_accountid` int(11) NOT NULL default '0',
  56. `src_map` varchar(11) NOT NULL default '',
  57. `src_map_x` smallint(4) NOT NULL default '0',
  58. `src_map_y` smallint(4) NOT NULL default '0',
  59. `dst_charname` varchar(25) NOT NULL default '',
  60. `message` varchar(150) NOT NULL default '',
  61. PRIMARY KEY (`id`),
  62. INDEX (`src_accountid`),
  63. INDEX (`src_charid`)
  64. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  65. --
  66. -- Table structure for table `feedinglog`
  67. --
  68. CREATE TABLE IF NOT EXISTS `feedinglog` (
  69. `id` INT(11) NOT NULL AUTO_INCREMENT,
  70. `time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
  71. `char_id` INT(11) NOT NULL,
  72. `target_id` INT(11) NOT NULL,
  73. `target_class` SMALLINT(11) NOT NULL,
  74. `type` ENUM('P','H','O') NOT NULL, -- P: Pet, H: Homunculus, O: Other
  75. `intimacy` INT(11) UNSIGNED NOT NULL,
  76. `item_id` SMALLINT(5) UNSIGNED NOT NULL,
  77. `map` VARCHAR(11) NOT NULL,
  78. `x` SMALLINT(5) UNSIGNED NOT NULL,
  79. `y` SMALLINT(5) UNSIGNED NOT NULL,
  80. PRIMARY KEY (`id`)
  81. ) ENGINE = MyISAM AUTO_INCREMENT = 1;
  82. --
  83. -- Table structure for table `loginlog`
  84. --
  85. CREATE TABLE IF NOT EXISTS `loginlog` (
  86. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  87. `ip` varchar(15) NOT NULL default '',
  88. `user` varchar(23) NOT NULL default '',
  89. `rcode` tinyint(4) NOT NULL default '0',
  90. `log` varchar(255) NOT NULL default '',
  91. INDEX (`ip`)
  92. ) ENGINE=MyISAM ;
  93. --
  94. -- Table structure for table `mvplog`
  95. --
  96. CREATE TABLE IF NOT EXISTS `mvplog` (
  97. `mvp_id` mediumint(9) unsigned NOT NULL auto_increment,
  98. `mvp_date` datetime NOT NULL default '0000-00-00 00:00:00',
  99. `kill_char_id` int(11) NOT NULL default '0',
  100. `monster_id` smallint(6) NOT NULL default '0',
  101. `prize` smallint(5) unsigned NOT NULL default '0',
  102. `mvpexp` mediumint(9) NOT NULL default '0',
  103. `map` varchar(11) NOT NULL default '',
  104. PRIMARY KEY (`mvp_id`)
  105. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  106. --
  107. -- Table structure for table `npclog`
  108. --
  109. CREATE TABLE IF NOT EXISTS `npclog` (
  110. `npc_id` mediumint(9) unsigned NOT NULL auto_increment,
  111. `npc_date` datetime NOT NULL default '0000-00-00 00:00:00',
  112. `account_id` int(11) unsigned NOT NULL default '0',
  113. `char_id` int(11) unsigned NOT NULL default '0',
  114. `char_name` varchar(25) NOT NULL default '',
  115. `map` varchar(11) NOT NULL default '',
  116. `mes` varchar(255) NOT NULL default '',
  117. PRIMARY KEY (`npc_id`),
  118. INDEX (`account_id`),
  119. INDEX (`char_id`)
  120. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  121. --
  122. -- Table structure for table `picklog`
  123. --
  124. # PickLog types
  125. # (M)onsters Drop
  126. # (P)layers Drop/Take
  127. # Mobs Drop (L)oot Drop/Take
  128. # Players (T)rade Give/Take
  129. # Players (V)ending Sell/Take
  130. # (S)hop Sell/Take
  131. # (N)PC Give/Take
  132. # (C)onsumable Items
  133. # (A)dministrators Create/Delete
  134. # Sto(R)age
  135. # (G)uild Storage
  136. # (E)mail attachment
  137. # (B)uying Store
  138. # Pr(O)duced Items/Ingredients
  139. # Auct(I)oned Items
  140. # (X) Other
  141. # (D) Stolen from mobs
  142. # (U) MVP Prizes
  143. # (F) Guild/Party Bound retrieval
  144. # Lotter(Y)
  145. # (Z) Merged Items
  146. # (Q)uest
  147. CREATE TABLE IF NOT EXISTS `picklog` (
  148. `id` int(11) NOT NULL auto_increment,
  149. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  150. `char_id` int(11) NOT NULL default '0',
  151. `type` enum('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X','D','U','$','F','Z','Q') NOT NULL default 'P',
  152. `nameid` smallint(5) unsigned NOT NULL default '0',
  153. `amount` int(11) NOT NULL default '1',
  154. `refine` tinyint(3) unsigned NOT NULL default '0',
  155. `card0` smallint(5) unsigned NOT NULL default '0',
  156. `card1` smallint(5) unsigned NOT NULL default '0',
  157. `card2` smallint(5) unsigned NOT NULL default '0',
  158. `card3` smallint(5) unsigned NOT NULL default '0',
  159. `unique_id` bigint(20) unsigned NOT NULL default '0',
  160. `map` varchar(11) NOT NULL default '',
  161. `bound` tinyint(1) unsigned NOT NULL default '0',
  162. PRIMARY KEY (`id`),
  163. INDEX (`type`)
  164. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  165. --
  166. -- Table structure for table `zenylog`
  167. --
  168. # ZenyLog types
  169. # (M)onsters # (T)rade # (V)ending Sell/Buy # (S)hop Sell/Buy # (N)PC Change amount
  170. # (A)dministrators # (E)Mail # (B)uying Store # Ban(K) Transactions
  171. CREATE TABLE IF NOT EXISTS `zenylog` (
  172. `id` int(11) NOT NULL auto_increment,
  173. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  174. `char_id` int(11) NOT NULL default '0',
  175. `src_id` int(11) NOT NULL default '0',
  176. `type` enum('T','V','P','M','S','N','D','C','A','E','I','B','K') NOT NULL default 'S',
  177. `amount` int(11) NOT NULL default '0',
  178. `map` varchar(11) NOT NULL default '',
  179. PRIMARY KEY (`id`),
  180. INDEX (`type`)
  181. ) ENGINE=MyISAM AUTO_INCREMENT=1;