test
This commit is contained in:
parent
c572bc652e
commit
36803894e6
File diff suppressed because it is too large
Load Diff
@ -103,9 +103,9 @@
|
|||||||
"auction": "false",
|
"auction": "false",
|
||||||
"names": ["Cord"],
|
"names": ["Cord"],
|
||||||
"craft": {"cmd": "/craft_12",
|
"craft": {"cmd": "/craft_12",
|
||||||
"mana": "15",
|
"mana": 15,
|
||||||
"items":[{"item": "01", "quantity": "7"},
|
"items":[{"item": "01", "quantity": 7},
|
||||||
{"item": "19", "quantity": "1"}]}
|
{"item": "19", "quantity": 1}]}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"item_type": "item_res",
|
"item_type": "item_res",
|
||||||
@ -2675,11 +2675,11 @@
|
|||||||
"auction": "true",
|
"auction": "true",
|
||||||
"names": ["Bottle of Rage"],
|
"names": ["Bottle of Rage"],
|
||||||
"craft": {"cmd": "/brew_p03",
|
"craft": {"cmd": "/brew_p03",
|
||||||
"mana": "30",
|
"mana": 30,
|
||||||
"items":[{"item": "63", "quantity": "2"},
|
"items":[{"item": "63", "quantity": 2},
|
||||||
{"item": "43", "quantity": "1"},
|
{"item": "43", "quantity": 1},
|
||||||
{"item": "59", "quantity": "1"},
|
{"item": "59", "quantity": 1},
|
||||||
{"item": "52", "quantity": "1"}]}
|
{"item": "52", "quantity": 1}]}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"item_type": "item_misc",
|
"item_type": "item_misc",
|
||||||
|
4
rules.go
4
rules.go
@ -20,8 +20,6 @@ func resetMsgParsingRules2() error {
|
|||||||
|
|
||||||
for k, _ := range rules {
|
for k, _ := range rules {
|
||||||
r := rules[k]
|
r := rules[k]
|
||||||
b, err := json.Marshal(r)
|
|
||||||
log.Printf("Rule : %s\n", string(b))
|
|
||||||
|
|
||||||
r.MsgTypeID64, err = codeObjSubTypeId(r.MsgType)
|
r.MsgTypeID64, err = codeObjSubTypeId(r.MsgType)
|
||||||
logOnError(err, "resetMsgParsingRules2 : codeObjSubTypeId("+r.MsgType+")")
|
logOnError(err, "resetMsgParsingRules2 : codeObjSubTypeId("+r.MsgType+")")
|
||||||
@ -34,6 +32,8 @@ func resetMsgParsingRules2() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
b, err := json.Marshal(r)
|
||||||
|
log.Printf("Rule : %s\n", string(b))
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = db.Exec(`TRUNCATE TABLE msg_rules;`)
|
_, err = db.Exec(`TRUNCATE TABLE msg_rules;`)
|
||||||
|
Loading…
Reference in New Issue
Block a user