diff --git a/rules.go b/rules.go index 588875c..4b1c479 100644 --- a/rules.go +++ b/rules.go @@ -133,7 +133,20 @@ func resetMsgParsingRules() { ,(4900, ` + strconv.Itoa(objSubTypeMessageUnionWar) + `, "Union war rep only union", "^(🏠Trade union news:\n)(?P(?s:.*))(🎪State of exclusive rights:\n){0}(?P(?s:.*))$") ,(4900, ` + strconv.Itoa(objSubTypeMessageUnionWar) + `, "Union war rep only fair", "^(🏠Trade union news:\n){0}(?P(?s:.*))(🎪State of exclusive rights:\n)(?P(?s:.*))$") ,(5000, ` + strconv.Itoa(objSubTypeMessageTimeout) + `, "Generic timeout", "^Too late. Action is not available.$") - ,(5000, ` + strconv.Itoa(objSubTypeMessageMeAck) + `, "Me ack", "^(?s:.*)Battle(.*)of the seven castles in .*!\\n(?s:.*)\\n(?P.)(\\[(?P[A-Z0-9]+)\\]){0,1}(?P.*?) ((?P(Knight|Ranger|Sentinel|Collector|Blacksmith|Alchemist|Esquire|Master)) ){0,1}of (?P[a-zA-Z]*) Castle\\n.+?Level: (?P[0-9]+)\\n.+?Atk: (?P[0-9]+) .+?Def: (?P[0-9]+)\\n.+?Exp: (?P[0-9]+)\\/(?P[0-9]+)\\n(.+?Hp: (?P[0-9]+)\\/(?P[0-9]+).*\\n){0,1}.+?Stamina: (?P[0-9]+)\\/(?P[0-9]+).*?\\n(.+?(?P(-){0,1}[0-9]+)){0,1}( .+?(?P[0-9]+)){0,1}( .+?(?P[0-9]+)){0,1}\\n\\n(.*?)(🎽Equipment \\+(?P[0-9]+).\\+(?P[0-9]+).){0,1}\\n🎒Bag: (?P[0-9]+)\\/(?P[0-9]+) \\/inv\\n\\nState:\\n(?P.*)\\n\\nMore: \\/hero(?s:.*)$") + ,(5000, ` + strconv.Itoa(objSubTypeMessageMeAck) + `, "Me ack", "^(?s:.*)Battle(.*)of the seven castles in .*!\\n` + + `(?s:.*)\\n` + + `(?P.)(\\[(?P[A-Z0-9]+)\\]){0,1}(?P.*?) ((?P(Knight|Ranger|Sentinel|Collector|Blacksmith|Alchemist|Esquire|Master)) ){0,1}of (?P[a-zA-Z]*) Castle\\n` + + `.+?Level: (?P[0-9]+)\\n` + + `.+?Atk: (?P[0-9]+) .+?Def: (?P[0-9]+)\\n` + + `.+?Exp: (?P[0-9]+)\\/(?P[0-9]+)\\n` + + `(.+?Hp: (?P[0-9]+)\\/(?P[0-9]+).*\\n){0,1}` + + `.+?Stamina: (?P[0-9]+)\\/(?P[0-9]+).*?\\n` + + `(.+?Mana: (?P[0-9]+)\\/(?P[0-9]+).*\\n){0,1}` + + `(.+?(?P(-){0,1}[0-9]+)){0,1}( .+?(?P[0-9]+)){0,1}( .+?(?P[0-9]+)){0,1}\\n\\n` + + `(.*?)(🎽Equipment \\+(?P[0-9]+).\\+(?P[0-9]+).){0,1}\\n` + + `🎒Bag: (?P[0-9]+)\\/(?P[0-9]+) \\/inv\\n\\n` + + `State:\\n(?P.*)\\n\\n` + + `More: \\/hero(?s:.*)$") ,(5000, ` + strconv.Itoa(objSubTypeMessageGoQuestAck) + `, "Go Quest Ack Forest", "^In a dire need for an adventure, you went to a (?P[a-zA-Z ]+). You'll be back in (?P