From 445c2557320270e84469e2d3d6781f1374931873 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 18 May 2019 21:25:29 +0800 Subject: [PATCH] test --- sql.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sql.go b/sql.go index 9ea0064..bd09835 100644 --- a/sql.go +++ b/sql.go @@ -1333,6 +1333,13 @@ 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]+)\\x{2764}(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘])(\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*)\\n` + + `VS\\n` + + `(?P(\\-){0,1}[0-9]+)\\x{2764}(?P[πŸ‰πŸ¦…πŸΊπŸ¦ˆπŸ¦ŒπŸ₯”πŸŒ‘])(\\[(?P[A-Z0-9]{1,3})\\]){0,1}(?P.*)\\n` + + `(?s:.*)` + + `(\\[(?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 weapon.\\n` + + `You received: (?P[0-9]+) exp.\\n` + + `Leaderboard of fighters are updated: /top5 \\& /top6. Congratulations!$") ;`) failOnError(err, "resetMsgParsingRules : populate table msg_rules") }