TFunctionFlag
TFunctionFlag(枚举类型) 属性名称 功能 属性 ffJewelryBox 首饰盒 ffZodiac 十二生肖
范例:
{
首饰盒和十二生肖按钮在Prguse.data 65-70
}
unit Q28;
interface
uses Classes, SysUtils;
procedure Main(Npc: TNormNpc; Player: TPlayObject; Args: TArgs);
implementation
procedure Main(Npc: TNormNpc; Player: TPlayObject; Args: TArgs);
begin
//开启人物首饰盒
Player.FunctionState[ffJewelryBox] := True;
//关闭人物首饰盒
Player.FunctionState[ffJewelryBox] := False;
//开启人物十二生肖
Player.FunctionState[ffZodiac] := True;
//关闭人物十二生肖
Player.FunctionState[ffZodiac] := False;
end;
end.