update rules

This commit is contained in:
shoopea 2019-12-16 10:56:53 +08:00
parent 1b5909ca0a
commit 6f44d45ca6
3 changed files with 6 additions and 0 deletions

2
def.go
View File

@ -524,6 +524,8 @@ const (
objSubTypeMessageStaminaRestored = 395 // Stamina Restored
objSubTypeMessageTopReq = 396
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)
objSubTypeJobPillage = 601
objSubTypeJobTribute = 602
objSubTypeJobStatus = 603

View File

@ -373,6 +373,8 @@ func resetMsgParsingRules() {
`(?P<Monsters>(((([0-9] x ){0,1}[a-zA-Z ]* lvl\\.[0-9]*)|( ╰ [a-z ]*))\\n{0,1})+)\\n` +
`((It's an ambush)|(It is ambush))!\\n\\n` +
`(?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\\.$")
;`)
failOnError(err, "resetMsgParsingRules : populate table msg_rules")

2
sql.go
View File

@ -551,6 +551,8 @@ func initDB() {
,(` + strconv.Itoa(objSubTypeMessageOrderCancelReq) + `, "order_cancel_req", "Order Cancel Req", ` + strconv.Itoa(objTypeMessage) + `)
,(` + strconv.Itoa(objSubTypeMessageOrderCancelAck) + `, "order_cancel_ack", "Order Cancel Ack", ` + 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(objSubTypeMessageArenaFightAck) + `, "arena_fight_ack", "Arena Fight 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) + `)