summaryrefslogtreecommitdiff
path: root/doc/mapserver-logging
diff options
context:
space:
mode:
Diffstat (limited to 'doc/mapserver-logging')
-rw-r--r--doc/mapserver-logging67
1 files changed, 67 insertions, 0 deletions
diff --git a/doc/mapserver-logging b/doc/mapserver-logging
new file mode 100644
index 0000000..e7088eb
--- /dev/null
+++ b/doc/mapserver-logging
@@ -0,0 +1,67 @@
+Log format:
+
+LOGLINE ::= int'.'int <MESSAGE>
+
+MESSAGE ::= 'log-start'
+ | 'log-start v2'
+ | 'log-start v3'
+ | <PC> <COORD> <PC-MESSAGE>
+ | <MOB> <MOB-MESSAGE>
+
+COORD ::= int':'int','int
+
+PC ::= 'PC'int
+
+MOB ::= 'MOB'int
+
+TARGET ::= <PC> | <MOB>
+
+SPELLRESULT ::= 'SUCCESS' | 'FAILURE'
+
+STATPLACE ::= 'LOGIN' | 'STATUP' | 'STATUP2' | 'STATRESET'
+
+XPPLACE ::= 'LOGIN' | 'LEVELUP'
+
+XPREASON ::= 'SCRIPTXP' 'HEALXP' 'KILLXP'
+
+ZEROTARGET ::= 'null' | <TARGET>
+
+MOB-MESSAGE ::= 'DEAD'
+
+PC-MESSAGE ::= 'WPNDMG' <TARGET> int 'FOR' int WPN int # "WPNDMG MOB01 type FOR damage WPN weapon-item"
+ | 'WPNINJURY' <TARGET> int 'FOR' int
+ | 'SPELLHEAL-INSTA' <PC> FOR int
+ | 'SPELLDMG' <MOB> FOR int BY spell-id
+ | 'CAST' spell-id <SPELLRESULT>
+ | 'STAT' int int int int int int <STATPLACE> # str agi vit int dex luk
+ | 'XP' int int ZENY int '+' int <XPPLACE> # level xp zeny bank-zeny
+ | 'MAGIC' int int int int int int 'EXP' int int 'LOGIN' # magic life war transmute nature ether magic-xp healer-xp
+ | 'SKILL-ACTIVATE' int int int # skillid skilllvl skillpower
+ | 'SKILL-UP' int int int # skillid skilllvl skillpower
+ | 'SKILL-DEACTIVATE' int
+ | 'MAGIC-ABSORB-DMG' int
+ | 'GAINXP' int <XPREASON>
+ | 'PICKUP' int int # item-id count
+ | 'INJURED-BY' <ZEROTARGET> 'FOR' int
+ | 'DEAD'
+ | 'LOGOUT'
+ | 'TRADECOMMIT' 'WITH' int 'GIVE' int 'GET' int # pc-id give-zeny get-zeny
+ | 'TRADECANCEL'
+ | 'TRADEOK'
+
+
+
+NOTES:
+------
+1. Any PICKUP between TRADECOMMIT and TRADEOK is part of the trade.
+2. TRADECOMMIT is issued for both participants in a trade.
+3. INJURED-BY seems to only duplicate information we already have.
+
+
+Illegal items
+
+645, 668, 659, 731, 734, 744, 745, 755, 756, 757, 747, 748, 721, 722
+
+Restricted access
+
+725, 726, 647, 646 \ No newline at end of file