Ejemplo n.º 1
0
 public static void SendNormalChat(ZoneCharacter character, string chat, byte color = (byte) 0x2a)
 {
     using (var packet = new Packet(SH8Type.ChatNormal))
         {
             packet.WriteUShort(character.MapObjectID);
             packet.WriteByte((byte)chat.Length);
             packet.WriteByte(color);
             packet.WriteString(chat, chat.Length);
             character.Broadcast(packet, true);
         }
 }
Ejemplo n.º 2
0
 private void Anim(ZoneCharacter character, params string[] param)
 {
     byte animid = param.Length >= 2 ? byte.Parse(param[1]) : (byte)50;
     using (var broad = Handler8.Animation(character, animid))
     {
         character.Broadcast(broad, true);
     }
 }