From 50942892bc740d31eb6d70630602c30da9b6adfc Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 18 May 2019 23:06:26 +0800 Subject: [PATCH] test --- sql.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sql.go b/sql.go index b12524e..682a10e 100644 --- a/sql.go +++ b/sql.go @@ -1335,12 +1335,19 @@ func resetMsgParsingRules() { ,(5000, ` + strconv.Itoa(objSubTypeMessagePillageGo) + `,"Pillage Go", "^You lift up your sword and charge at the violator.$") ,(5000, ` + strconv.Itoa(objSubTypeMessagePillageWin) + `,"Pillage Win", "^You successfully defeated (\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*). As he was crawling away, you picked up some of the gold he left behind. Received (?P[0-9]+) gold and (?P[0-9]+) exp.$") ,(5000, ` + strconv.Itoa(objSubTypeMessagePillageTimeout) + `,"Pillage Timeout", "^You\\'ve failed to protect the villagers. No more rewards for you.$") - ,(5000, ` + strconv.Itoa(objSubTypeMessageDuelFight) + `, "Duel Fight result", "(?P(\\-){0,1}[0-9]+).*(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘])(\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*)\\n` + + ,(5000, ` + strconv.Itoa(objSubTypeMessageDuelFight) + `, "Duel Fight result #2", "(?P(\\-){0,1}[0-9]+).*(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘])(\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*)\\n` + `VS\\n` + `(?P(\\-){0,1}[0-9]+).*(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘])(\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*)\\n` + `(?s:.*)\\n` + `(\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*) from .*(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘]).* Castle stands victorious over (\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*) from .*(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘]).* Castle, with blood slowly dripping from his (?P.*).\\n` + `You received: (?P[0-9]+) exp.\\n` + + `(?s:.*)$") + ,(5000, ` + strconv.Itoa(objSubTypeMessageDuelFight) + `, "Duel Fight result #1", "(?P(\\-){0,1}[0-9]+).*(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘])(\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*)\\n` + + `VS\\n` + + `(?P(\\-){0,1}[0-9]+).*(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘])(\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*)\\n` + + `(?s:.*)\\n` + + `(\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*) from .*(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘]).* Castle was stronger than (\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*) from .*(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘]).* Castle.\\n` + + `You received: (?P[0-9]+) exp.\\n` + `(?s:.*)$") ;`) failOnError(err, "resetMsgParsingRules : populate table msg_rules")