wServer.realm.entities.player.Player.SendError C# (CSharp) Method

SendError() public method

public SendError ( string text ) : void
text string
return void
        public void SendError(string text)
        {
            psr.SendPacket(new TextPacket
            {
                BubbleTime = 0,
                Stars = -1,
                Name = "*Error*",
                Text = text
            });
        }

Usage Example

Ejemplo n.º 1
0
 public void Execute(Player player, string[] args)
 {
     if (player.GuildRank == 40)
     {
         foreach (var e in from i in RealmManager.Worlds
             where i.Key != 0
             from e in i.Value.Players
             where string.Equals(e.Value.Client.Account.Name, args[0], StringComparison.CurrentCultureIgnoreCase)
             select e)
         {
             if (e.Value.Client.Account.Guild.Rank == 40)
             {
                 player.SendInfo(e.Value.Client.Account.Name + " has been invited to ally with your guild!");
                 e.Value.Client.SendPacket(new GuildAllyRequestPacket
                 {
                     Name = player.Client.Account.Name,
                     Guild = player.Client.Account.Guild.Name
                 });
             }
             else
                 player.SendError(e.Value.Client.Account.Guild.Name + " is already one of your allys!");
         }
     }
     else
         player.SendInfo("Only founders can ally with other guilds!");
 }
All Usage Examples Of wServer.realm.entities.player.Player::SendError