logs.sql 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #PickLog types (M)onsters Drop, (P)layers Drop/Take, Mobs Drop (L)oot Drop/Take,
  2. # Players (T)rade Give/Take, Players (V)ending Sell/Take, (S)hop Sell/Take, (N)PC Give/Take,
  3. # (C)onsumable Items, (A)dministrators Create/Delete, Sto(R)age, (G)uild Storage,
  4. # (E)mail attachment,(B)uying Store, Pr(O)duced Items/Ingredients, Auct(I)oned Items,
  5. # (X) Other, (D) Stolen from mobs, (U) MVP Prizes
  6. #Database: ragnarok
  7. #Table: picklog
  8. CREATE TABLE `picklog` (
  9. `id` int(11) NOT NULL auto_increment,
  10. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  11. `char_id` int(11) NOT NULL default '0',
  12. `type` enum('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X','D','U') NOT NULL default 'P',
  13. `nameid` int(11) NOT NULL default '0',
  14. `amount` int(11) NOT NULL default '1',
  15. `refine` tinyint(3) unsigned NOT NULL default '0',
  16. `card0` int(11) NOT NULL default '0',
  17. `card1` int(11) NOT NULL default '0',
  18. `card2` int(11) NOT NULL default '0',
  19. `card3` int(11) NOT NULL default '0',
  20. `map` varchar(11) NOT NULL default '',
  21. PRIMARY KEY (`id`),
  22. INDEX (`type`)
  23. ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
  24. #ZenyLog types (M)onsters,(T)rade,(V)ending Sell/Buy,(S)hop Sell/Buy,(N)PC Change amount,(A)dministrators,(E)Mail,(B)uying Store
  25. #Database: ragnarok
  26. #Table: zenylog
  27. CREATE TABLE `zenylog` (
  28. `id` int(11) NOT NULL auto_increment,
  29. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  30. `char_id` int(11) NOT NULL default '0',
  31. `src_id` int(11) NOT NULL default '0',
  32. `type` enum('M','T','V','S','N','A','E','B','I','D') NOT NULL default 'S',
  33. `amount` int(11) NOT NULL default '0',
  34. `map` varchar(11) NOT NULL default '',
  35. PRIMARY KEY (`id`),
  36. INDEX (`type`)
  37. ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
  38. #Database: ragnarok
  39. #Table: branchlog
  40. CREATE TABLE `branchlog` (
  41. `branch_id` mediumint(9) unsigned NOT NULL auto_increment,
  42. `branch_date` datetime NOT NULL default '0000-00-00 00:00:00',
  43. `account_id` int(11) NOT NULL default '0',
  44. `char_id` int(11) NOT NULL default '0',
  45. `char_name` varchar(25) NOT NULL default '',
  46. `map` varchar(11) NOT NULL default '',
  47. PRIMARY KEY (`branch_id`),
  48. INDEX (`account_id`),
  49. INDEX (`char_id`)
  50. ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
  51. #Database: ragnarok
  52. #Table: mvplog
  53. CREATE TABLE `mvplog` (
  54. `mvp_id` mediumint(9) unsigned NOT NULL auto_increment,
  55. `mvp_date` datetime NOT NULL default '0000-00-00 00:00:00',
  56. `kill_char_id` int(11) NOT NULL default '0',
  57. `monster_id` smallint(6) NOT NULL default '0',
  58. `prize` int(11) NOT NULL default '0',
  59. `mvpexp` mediumint(9) NOT NULL default '0',
  60. `map` varchar(11) NOT NULL default '',
  61. PRIMARY KEY (`mvp_id`)
  62. ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
  63. #Database: ragnarok
  64. #Table: atcommandlog
  65. CREATE TABLE `atcommandlog` (
  66. `atcommand_id` mediumint(9) unsigned NOT NULL auto_increment,
  67. `atcommand_date` datetime NOT NULL default '0000-00-00 00:00:00',
  68. `account_id` int(11) unsigned NOT NULL default '0',
  69. `char_id` int(11) unsigned NOT NULL default '0',
  70. `char_name` varchar(25) NOT NULL default '',
  71. `map` varchar(11) NOT NULL default '',
  72. `command` varchar(255) NOT NULL default '',
  73. PRIMARY KEY (`atcommand_id`),
  74. INDEX (`account_id`),
  75. INDEX (`char_id`)
  76. ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
  77. #Database: ragnarok
  78. #Table: npclog
  79. CREATE TABLE `npclog` (
  80. `npc_id` mediumint(9) unsigned NOT NULL auto_increment,
  81. `npc_date` datetime NOT NULL default '0000-00-00 00:00:00',
  82. `account_id` int(11) unsigned NOT NULL default '0',
  83. `char_id` int(11) unsigned NOT NULL default '0',
  84. `char_name` varchar(25) NOT NULL default '',
  85. `map` varchar(11) NOT NULL default '',
  86. `mes` varchar(255) NOT NULL default '',
  87. PRIMARY KEY (`npc_id`),
  88. INDEX (`account_id`),
  89. INDEX (`char_id`)
  90. ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
  91. #ChatLog types Gl(O)bal,(W)hisper,(P)arty,(G)uild,(M)ain chat
  92. #Database: ragnarok
  93. #Table: chatlog
  94. CREATE TABLE `chatlog` (
  95. `id` bigint(20) NOT NULL auto_increment,
  96. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  97. `type` enum('O','W','P','G','M') NOT NULL default 'O',
  98. `type_id` int(11) NOT NULL default '0',
  99. `src_charid` int(11) NOT NULL default '0',
  100. `src_accountid` int(11) NOT NULL default '0',
  101. `src_map` varchar(11) NOT NULL default '',
  102. `src_map_x` smallint(4) NOT NULL default '0',
  103. `src_map_y` smallint(4) NOT NULL default '0',
  104. `dst_charname` varchar(25) NOT NULL default '',
  105. `message` varchar(150) NOT NULL default '',
  106. PRIMARY KEY (`id`),
  107. INDEX (`src_accountid`),
  108. INDEX (`src_charid`)
  109. ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
  110. #Database: ragnarok
  111. #Table: loginlog
  112. CREATE TABLE `loginlog` (
  113. `time` datetime NOT NULL default '0000-00-00 00:00:00',
  114. `ip` varchar(15) NOT NULL default '',
  115. `user` varchar(23) NOT NULL default '',
  116. `rcode` tinyint(4) NOT NULL default '0',
  117. `log` varchar(255) NOT NULL default '',
  118. INDEX (`ip`)
  119. ) ENGINE=MyISAM ;