logs.sql 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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 `loginlog`
  67. --
  68. CREATE TABLE IF NOT EXISTS `loginlog` (
  69. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  70. `ip` varchar(15) NOT NULL default '',
  71. `user` varchar(23) NOT NULL default '',
  72. `rcode` tinyint(4) NOT NULL default '0',
  73. `log` varchar(255) NOT NULL default '',
  74. INDEX (`ip`)
  75. ) ENGINE=MyISAM ;
  76. --
  77. -- Table structure for table `mvplog`
  78. --
  79. CREATE TABLE IF NOT EXISTS `mvplog` (
  80. `mvp_id` mediumint(9) unsigned NOT NULL auto_increment,
  81. `mvp_date` datetime NOT NULL default '0000-00-00 00:00:00',
  82. `kill_char_id` int(11) NOT NULL default '0',
  83. `monster_id` smallint(6) NOT NULL default '0',
  84. `prize` smallint(5) unsigned NOT NULL default '0',
  85. `mvpexp` mediumint(9) NOT NULL default '0',
  86. `map` varchar(11) NOT NULL default '',
  87. PRIMARY KEY (`mvp_id`)
  88. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  89. --
  90. -- Table structure for table `npclog`
  91. --
  92. CREATE TABLE IF NOT EXISTS `npclog` (
  93. `npc_id` mediumint(9) unsigned NOT NULL auto_increment,
  94. `npc_date` datetime NOT NULL default '0000-00-00 00:00:00',
  95. `account_id` int(11) unsigned NOT NULL default '0',
  96. `char_id` int(11) unsigned NOT NULL default '0',
  97. `char_name` varchar(25) NOT NULL default '',
  98. `map` varchar(11) NOT NULL default '',
  99. `mes` varchar(255) NOT NULL default '',
  100. PRIMARY KEY (`npc_id`),
  101. INDEX (`account_id`),
  102. INDEX (`char_id`)
  103. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  104. --
  105. -- Table structure for table `picklog`
  106. --
  107. # PickLog types
  108. # (M)onsters Drop
  109. # (P)layers Drop/Take
  110. # Mobs Drop (L)oot Drop/Take
  111. # Players (T)rade Give/Take
  112. # Players (V)ending Sell/Take
  113. # (S)hop Sell/Take
  114. # (N)PC Give/Take
  115. # (C)onsumable Items
  116. # (A)dministrators Create/Delete
  117. # Sto(R)age
  118. # (G)uild Storage
  119. # (E)mail attachment
  120. # (B)uying Store
  121. # Pr(O)duced Items/Ingredients
  122. # Auct(I)oned Items
  123. # (X) Other
  124. # (D) Stolen from mobs
  125. # (U) MVP Prizes
  126. # (F) Guild/Party Bound retrieval
  127. # Lotter(Y)
  128. # (Z) Merged Items
  129. # (Q)uest
  130. CREATE TABLE IF NOT EXISTS `picklog` (
  131. `id` int(11) NOT NULL auto_increment,
  132. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  133. `char_id` int(11) NOT NULL default '0',
  134. `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',
  135. `nameid` smallint(5) unsigned NOT NULL default '0',
  136. `amount` int(11) NOT NULL default '1',
  137. `refine` tinyint(3) unsigned NOT NULL default '0',
  138. `card0` smallint(5) unsigned NOT NULL default '0',
  139. `card1` smallint(5) unsigned NOT NULL default '0',
  140. `card2` smallint(5) unsigned NOT NULL default '0',
  141. `card3` smallint(5) unsigned NOT NULL default '0',
  142. `unique_id` bigint(20) unsigned NOT NULL default '0',
  143. `map` varchar(11) NOT NULL default '',
  144. `bound` tinyint(1) unsigned NOT NULL default '0',
  145. PRIMARY KEY (`id`),
  146. INDEX (`type`)
  147. ) ENGINE=MyISAM AUTO_INCREMENT=1;
  148. --
  149. -- Table structure for table `zenylog`
  150. --
  151. # ZenyLog types
  152. # (M)onsters # (T)rade # (V)ending Sell/Buy # (S)hop Sell/Buy # (N)PC Change amount
  153. # (A)dministrators # (E)Mail # (B)uying Store # Ban(K) Transactions
  154. CREATE TABLE IF NOT EXISTS `zenylog` (
  155. `id` int(11) NOT NULL auto_increment,
  156. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  157. `char_id` int(11) NOT NULL default '0',
  158. `src_id` int(11) NOT NULL default '0',
  159. `type` enum('T','V','P','M','S','N','D','C','A','E','I','B','K') NOT NULL default 'S',
  160. `amount` int(11) NOT NULL default '0',
  161. `map` varchar(11) NOT NULL default '',
  162. PRIMARY KEY (`id`),
  163. INDEX (`type`)
  164. ) ENGINE=MyISAM AUTO_INCREMENT=1;