///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: UN-Dead // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; using Phoenix; using Phoenix.WorldData; using System.Linq; using Phoenix.Communication; using Phoenix.Runtime; using Phoenix.Runtime.Reflection; namespace Phoenix { public static class Undead { [ServerMessageHandler(0x2C)] public static CallbackResult OnDeath(byte[] data, CallbackResult prevResult) { UO.Print("You are DEAD!"); return CallbackResult.Eat; } [ServerMessageHandler(0x20)] public static CallbackResult OnBlackAndWhite(byte[] data, CallbackResult prevResult) { if ((prevResult < CallbackResult.Sent) && (ByteConverter.BigEndian.ToInt16(data, 5) == 0x192)) { byte[] buffer = data; ByteConverter.BigEndian.ToBytes((ushort) 0x3db, buffer, 5); Core.SendToClient(buffer); return CallbackResult.Sent; } return CallbackResult.Normal; } } }