提取hpbrief信息出错
为节约资源,用hpbrief代替HP我用的是2行匹配方式。
mushclient
匹配字符串:
[[^#(.*),(\d+),(\d+),(\d+),(\d+),(\d+)$\n#(\d+),(\d+),(\d+),(\d+),(\d+),(\d+)$]]
发送:
hp["js"] = "%12"
hp["jsmax"] = "%10"
hp["jsbi"] = "11"
hp["jl"] = "%6"
hp["jlmax"] = "%5"
hp["qx"] = "%9"
hp["qxmax"] = "%7"
hp["qxbi"] = "%8"
hp["nl"] = "%4"
hp["nlmax"] = "%3"
hp["pot"] = "%2"
hp["exp"] = "%1"
匹配是成功了,其他值都取对了,但 精神%12,精神最大值%10,精神百分比%11,都取成exp值了。
北大侠客行MUD,中国最好的MUD 超过9的用<10%>吧 我记得是这样 还是错误 回复 3# lvzhida
试试<10>% 半角尖括号。手机打不上。
页:
[1]