Просмотр исходного кода

Update the comment of Log System and Fixed stylist logging (#6776)

CairoLee 3 лет назад
Родитель
Сommit
2172bb835d
3 измененных файлов с 41 добавлено и 28 удалено
  1. 29 26
      conf/log_athena.conf
  2. 8 2
      sql-files/logs.sql
  3. 4 0
      sql-files/upgrades/upgrade_20220401_logs.sql

+ 29 - 26
conf/log_athena.conf

@@ -8,34 +8,37 @@
 //--------------------------------------------------------------
 
 // Enable Logs? (Note 3)
-// 0x000000 - Don't log at all
-// 0x000001 - (T) Log trades
-// 0x000002 - (V) Log vending transactions
-// 0x000004 - (P) Log items drop/picked by players
-// 0x000008 - (L) Log items drop/looted by monsters
-// 0x000010 - (S) Log NPC transactions (buy/sell)
-// 0x000020 - (N) Log Script transactions (items deleted/acquired through quests)
-// 0x000040 - (D) Log items stolen from mobs (Steal/Gank)
-// 0x000080 - (C) Log player-used items (consumables/pet&hom&merc food/items used for skills&attacks)
-// 0x000100 - (O) Log produced/ingredient items
-// 0x000200 - (U) Log MVP prize items
-// 0x000400 - (A) Log player created/deleted items (through @/# commands)
-// 0x000800 - (R) Log items placed/retrieved from storage.
-// 0x001000 - (G) Log items placed/retrieved from guild storage.
-// 0x002000 - (E) Log mail system transactions.
-// 0x004000 - (I) Log auction system transactions.
-// 0x008000 - (B) Log buying store transactions
-// 0x010000 - (X) Log all other transactions (rentals expiring/inserting cards/items removed by item_check/
-//           rings deleted by divorce/pet egg (un)hatching/pet armor (un)equipping/Weapon Refine skill/Remove Trap skill)
-// 0x020000 - ($) Log cash transactions
-// 0x040000 - (K) Log account bank transactions
-// 0x080000 - (F) Removed bound items when guild/party is broken
-// 0x100000 - (Y) Roulette Lottery
-// 0x200000 - (Z) Merged items from item mergers process.
-// 0x400000 - (Q) Log items given from quest-granted drops.
+// 0x0000000 - Don't log at all
+// 0x0000001 - (T) Log trades
+// 0x0000002 - (V) Log vending transactions
+// 0x0000004 - (P) Log items drop/picked by players
+// 0x0000008 - (L) Log items drop/looted by monsters
+// 0x0000010 - (S) Log NPC transactions (buy/sell)
+// 0x0000020 - (N) Log Script transactions (items deleted/acquired through quests)
+// 0x0000040 - (D) Log items stolen from mobs (Steal/Gank)
+// 0x0000080 - (C) Log player-used items (consumables/pet&hom&merc food/items used for skills&attacks)
+// 0x0000100 - (O) Log produced/ingredient items
+// 0x0000200 - (U) Log MVP prize items
+// 0x0000400 - (A) Log player created/deleted items (through @/# commands)
+// 0x0000800 - (R) Log items placed/retrieved from storage.
+// 0x0001000 - (G) Log items placed/retrieved from guild storage.
+// 0x0002000 - (E) Log mail system transactions.
+// 0x0004000 - (I) Log auction system transactions.
+// 0x0008000 - (B) Log buying store transactions
+// 0x0010000 - (X) Log all other transactions (rentals expiring/inserting cards/items removed by item_check/
+//           rings deleted by divorce/pet egg (un)hatching/pet armor (un)equipping/Weapon Refine skill/Remove Trap skill/Stylist)
+// 0x0020000 - ($) Log cash transactions
+// 0x0040000 - (K) Log account bank transactions
+// 0x0080000 - (F) Removed bound items when guild/party is broken
+// 0x0100000 - (Y) Log Roulette Lottery
+// 0x0200000 - (Z) Merged items from item mergers process.
+// 0x0400000 - (Q) Log items given from quest-granted drops.
+// 0x0800000 - (H) Log items consumed by Private Airship system
+// 0x1000000 - (J) Log Barter Shop transactions
+// 0x2000000 - (W) Log Laphine system transactions
 // Example: Log trades+vending+script items+created items: 1+2+32+1024 = 1059
 // Please note that moving items from inventory to cart and back is not logged by design.
-enable_logs: 0xFFFFFF
+enable_logs: 0xFFFFFFF
 
 // Use MySQL Logs? (Note 1)
 sql_logs: yes

+ 8 - 2
sql-files/logs.sql

@@ -161,6 +161,7 @@ CREATE TABLE IF NOT EXISTS `npclog` (
 # (X) Other
 # (D) Stolen from mobs
 # (U) MVP Prizes
+# ($) Cash
 # (F) Guild/Party Bound retrieval
 # Lotter(Y)
 # (Z) Merged Items
@@ -208,23 +209,28 @@ CREATE TABLE IF NOT EXISTS `picklog` (
 -- Table structure for table `zenylog`
 --
 # ZenyLog types
-# (M)onsters
 # (T)rade
 # (V)ending Sell/Buy
+# (P)layers Drop/Take
+# (M)onsters
 # (S)hop Sell/Buy
 # (N)PC Change amount
+# (D) Stolen from mobs
+# (C)onsumable Items
 # (A)dministrators
 # (E)Mail
+# Auct(I)on
 # (B)uying Store
 # Ban(K) Transactions
 # Barter Shop (J)
+# (X) Other
 
 CREATE TABLE IF NOT EXISTS `zenylog` (
   `id` int(11) NOT NULL auto_increment,
   `time` datetime NOT NULL,
   `char_id` int(11) NOT NULL default '0',
   `src_id` int(11) NOT NULL default '0',
-  `type` enum('T','V','P','M','S','N','D','C','A','E','I','B','K','J') NOT NULL default 'S',
+  `type` enum('T','V','P','M','S','N','D','C','A','E','I','B','K','J','X') NOT NULL default 'S',
   `amount` int(11) NOT NULL default '0',
   `map` varchar(11) NOT NULL default '',
   PRIMARY KEY  (`id`),

+ 4 - 0
sql-files/upgrades/upgrade_20220401_logs.sql

@@ -0,0 +1,4 @@
+
+ALTER TABLE `zenylog`
+	MODIFY `type` enum('T','V','P','M','S','N','D','C','A','E','I','B','K','J','X') NOT NULL default 'S'
+;