xx1=0
Delegate.RegDelTalkEvent("prtest_TalkEvent");
function prtest_TalkEvent(player,msg,color,range,size) -- 格式 /testride 骑宠编号
if(string.find (msg,"/testride"))then
if xx1 == 0 then
local sv = string.gsub(msg, "/testride ", "");
NLG.SystemMessage(player,sv);
NLG.SetRideEffect(player,tonumber(sv),0,600)
xx1=1
else
NLG.SetRideEffect(player,-1,0,100)
xx1=0
end
end
end