77M2引擎的服务端如何操作Check状态检查
如何操作Check状态检查unit Q2;
inte**ce
uses Classes, SysUtils;
procedure Main(Npc: TNormNpc; Player: TPlayObject; Args: TArgs);
implementation
procedure Main(Npc: TNormNpc; Player: TPlayObject; Args: TArgs);
begin
//Player.Check状态的范围为1-1024,即Player.Check到Player.Check都是被允许的
//小于1或大于1024返回为False,并且无法写入值
if Player.Check then //判断Check是否为真
begin
Player.SendMessage('Check的值为True');
Player.Check := False; //将Check的值设置为False
end
else
begin
Player.SendMessage('Check的值为False');
Player.Check := True; //将Check的值设置为True
end;
end;
end.
页:
[1]