检测是否为沙城成员
procedure Main(Npc: TNormNpc; Player: TPlayObject; Args: TArgs);
begin
if Player.ISCastleGuild then
begin
Npc.MessageBox(Player, '你是沙城的成员');
end;
end;
判断PK值
procedure Main(Npc: TNormNpc; Player: TPlayObject; Args: TArgs);
begin
Npc.MessageBox(Player, Format('你的PK等级为%d,PK点数为%d', [Player.PkLevel, Player.PkPoint])); //Format函数为格式化显示
end;
|
|