|
登录时候会有个初始状态,JSON格式。
"gmcp_type":"status",这个属于类型说明,这里说明是状态改变,还可能是message或者other(不在这个讨论范围内,暂时不提)
{"max_qi":66909,"qi":1,"jingli":17124,"name":"体贴体","gmcp_type":"status","potential":182851683,"eff_jing":83079,"food":-1,"id":"zine","jing":83082,"comba
t_exp":289240000,"vigour/qi":0,"max_jing":83079,"vigour/yuan":0,"max_jingli":17124,"neili":17124,"water":0,"eff_qi":66909,"max_neili":17124}
以后每次状态中任何一个改变
call me->add(qi,1)
GMCP也会通知
{"qi":2,"name":"体贴体","gmcp_type":"status","id":"zine"}
战斗中对手状态改变,也会用类似格式通知玩家对手
你对着不死神将吼道:「臭贼!你死期已到,今天就让老子送你上西天吧!」
看起来不死神将想杀死你!
>
{"qi":50000000,"name":"不死神将","gmcp_type":"status","id":"shen jiang"}{"name":"不死神将","gmcp_type":"status","id":"shen jiang","jing":50000000}{"qi":49999718,"name":"不死神将","gmcp_type":"status","id":"shen jiang"}结果只是轻轻地碰到,比拍苍蝇稍微重了点。
( 不死神将似乎有些疲惫,但是仍然十分有活力。)『不死神将(damage:+282 气血:99%/100%)』
你在攻击中不断积蓄攻势。(气势:4%)
当然这里提到的所有gmcp状态传输,正常情况下是不会显示在客户端屏幕上,这里只是为了演示把gmcp的的文本内容显示出来 |
|