update msg rule

This commit is contained in:
shoopea 2019-12-16 11:05:43 +08:00
parent 6f44d45ca6
commit 756c9a4bca
3 changed files with 9 additions and 0 deletions

1
def.go
View File

@ -526,6 +526,7 @@ const (
objSubTypeMessageQuestResultAmbush = 397 // result from going to quest with ambush (not done)
objSubTypeMessageHealUpFirst = 398 // you should heal up first (done)
objSubTypeMessageArenaFightAck = 399 // thirsty for blood ... (done)
objSubTypeMessageGoArenaAck = 400 // Welcome to Arena! (done)
objSubTypeJobPillage = 601
objSubTypeJobTribute = 602
objSubTypeJobStatus = 603

View File

@ -375,6 +375,13 @@ func resetMsgParsingRules() {
`(?P<Link>\\/fight_[a-zA-Z0-9]+)$")
,(5000, ` + strconv.Itoa(objSubTypeMessageHealUpFirst) + `, "Heal Up Message", "^You should heal up a bit first\\.$")
,(5000, ` + strconv.Itoa(objSubTypeMessageArenaFightAck) + `, "Arena Fight Ack", "^Thirsty for blood, you went to the Arena. You'll be back soon\\.$")
,(5000, ` + strconv.Itoa(objSubTypeMessageGoArenaAck) + `, "Go Arena Ack", "^📯Welcome to Arena!\\n` +
`Dirty air is soaked with the thick smell of blood\\. No one ends up here by an accident: you can't leave once you begin your battle\\. I hope, your sword is sharp and your shield is steady\\.\\n\\n` +
`Your rank: (?P<Rank>[0-9]+)\\n` +
`Your fights: (?P<Fights>[0-9]+)/5\\n\\n` +
`Combat Ranking: /top5\\n` +
`Fastest-growing: /top6\\n\\n` +
`Entrance fee: 5💰$")
;`)
failOnError(err, "resetMsgParsingRules : populate table msg_rules")

1
sql.go
View File

@ -553,6 +553,7 @@ func initDB() {
,(` + strconv.Itoa(objSubTypeMessageStaminaRestored) + `, "stamina_restored", "Stamina Restored", ` + strconv.Itoa(objTypeMessage) + `)
,(` + strconv.Itoa(objSubTypeMessageHealUpFirst) + `, "heal_up", "Heal Up", ` + strconv.Itoa(objTypeMessage) + `)
,(` + strconv.Itoa(objSubTypeMessageArenaFightAck) + `, "arena_fight_ack", "Arena Fight Ack", ` + strconv.Itoa(objTypeMessage) + `)
,(` + strconv.Itoa(objSubTypeMessageGoArenaAck) + `, "go_arena_ack", "Go Arena Ack", ` + strconv.Itoa(objTypeMessage) + `)
,(` + strconv.Itoa(objSubTypeJobPillage) + `, "job_pillage", "Pillage job", ` + strconv.Itoa(objTypeJob) + `)
,(` + strconv.Itoa(objSubTypeJobTribute) + `, "job_tribute", "Tribute job", ` + strconv.Itoa(objTypeJob) + `)
,(` + strconv.Itoa(objSubTypeJobGWithdraw) + `, "job_gwithdraw", "GWithdrawal job", ` + strconv.Itoa(objTypeJob) + `)