|
为节约资源,用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 |
|