update msg rule
This commit is contained in:
parent
6f44d45ca6
commit
756c9a4bca
1
def.go
1
def.go
@ -526,6 +526,7 @@ const (
|
|||||||
objSubTypeMessageQuestResultAmbush = 397 // result from going to quest with ambush (not done)
|
objSubTypeMessageQuestResultAmbush = 397 // result from going to quest with ambush (not done)
|
||||||
objSubTypeMessageHealUpFirst = 398 // you should heal up first (done)
|
objSubTypeMessageHealUpFirst = 398 // you should heal up first (done)
|
||||||
objSubTypeMessageArenaFightAck = 399 // thirsty for blood ... (done)
|
objSubTypeMessageArenaFightAck = 399 // thirsty for blood ... (done)
|
||||||
|
objSubTypeMessageGoArenaAck = 400 // Welcome to Arena! (done)
|
||||||
objSubTypeJobPillage = 601
|
objSubTypeJobPillage = 601
|
||||||
objSubTypeJobTribute = 602
|
objSubTypeJobTribute = 602
|
||||||
objSubTypeJobStatus = 603
|
objSubTypeJobStatus = 603
|
||||||
|
7
rules.go
7
rules.go
@ -375,6 +375,13 @@ func resetMsgParsingRules() {
|
|||||||
`(?P<Link>\\/fight_[a-zA-Z0-9]+)$")
|
`(?P<Link>\\/fight_[a-zA-Z0-9]+)$")
|
||||||
,(5000, ` + strconv.Itoa(objSubTypeMessageHealUpFirst) + `, "Heal Up Message", "^You should heal up a bit first\\.$")
|
,(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(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")
|
failOnError(err, "resetMsgParsingRules : populate table msg_rules")
|
||||||
|
1
sql.go
1
sql.go
@ -553,6 +553,7 @@ func initDB() {
|
|||||||
,(` + strconv.Itoa(objSubTypeMessageStaminaRestored) + `, "stamina_restored", "Stamina Restored", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessageStaminaRestored) + `, "stamina_restored", "Stamina Restored", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeMessageHealUpFirst) + `, "heal_up", "Heal Up", ` + 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(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(objSubTypeJobPillage) + `, "job_pillage", "Pillage job", ` + strconv.Itoa(objTypeJob) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeJobTribute) + `, "job_tribute", "Tribute job", ` + strconv.Itoa(objTypeJob) + `)
|
,(` + strconv.Itoa(objSubTypeJobTribute) + `, "job_tribute", "Tribute job", ` + strconv.Itoa(objTypeJob) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeJobGWithdraw) + `, "job_gwithdraw", "GWithdrawal job", ` + strconv.Itoa(objTypeJob) + `)
|
,(` + strconv.Itoa(objSubTypeJobGWithdraw) + `, "job_gwithdraw", "GWithdrawal job", ` + strconv.Itoa(objTypeJob) + `)
|
||||||
|
Loading…
Reference in New Issue
Block a user