大佬发我了
- if msg == '/gsyd' or msg == "、gsyd" then--高速移动
- local isGsyd = tonumber(Field.Get(player,"加速走路"))
- if isGsyd == 0 then
- NLG.SystemMessage(player,'开启高速移动')
- Char.SetData(player,CONST.对象_移速,300)
- Field.Set(player,"加速走路",1)
- NLG.UpChar(player)
- else
- NLG.SystemMessage(player,'结束高速移动')
- Char.SetData(player,CONST.对象_移速,100)
- Field.Set(player,"加速走路",0)
- NLG.UpChar(player)
- end
- return 0
- end
复制代码
|