This commit is contained in:
shoopea 2019-12-29 20:57:26 +08:00
parent c572bc652e
commit 36803894e6
3 changed files with 225 additions and 225 deletions

File diff suppressed because it is too large Load Diff

View File

@ -103,9 +103,9 @@
"auction": "false",
"names": ["Cord"],
"craft": {"cmd": "/craft_12",
"mana": "15",
"items":[{"item": "01", "quantity": "7"},
{"item": "19", "quantity": "1"}]}
"mana": 15,
"items":[{"item": "01", "quantity": 7},
{"item": "19", "quantity": 1}]}
},
{
"item_type": "item_res",
@ -2675,11 +2675,11 @@
"auction": "true",
"names": ["Bottle of Rage"],
"craft": {"cmd": "/brew_p03",
"mana": "30",
"items":[{"item": "63", "quantity": "2"},
{"item": "43", "quantity": "1"},
{"item": "59", "quantity": "1"},
{"item": "52", "quantity": "1"}]}
"mana": 30,
"items":[{"item": "63", "quantity": 2},
{"item": "43", "quantity": 1},
{"item": "59", "quantity": 1},
{"item": "52", "quantity": 1}]}
},
{
"item_type": "item_misc",

View File

@ -20,8 +20,6 @@ func resetMsgParsingRules2() error {
for k, _ := range rules {
r := rules[k]
b, err := json.Marshal(r)
log.Printf("Rule : %s\n", string(b))
r.MsgTypeID64, err = codeObjSubTypeId(r.MsgType)
logOnError(err, "resetMsgParsingRules2 : codeObjSubTypeId("+r.MsgType+")")
@ -34,6 +32,8 @@ func resetMsgParsingRules2() error {
if err != nil {
return err
}
b, err := json.Marshal(r)
log.Printf("Rule : %s\n", string(b))
}
_, err = db.Exec(`TRUNCATE TABLE msg_rules;`)