public static void CreateMobInfo(PlayerSocket socket, Packet packet) { MobileSpawn ms = new MobileSpawn(); ms.MapID = packet.ReadByte(); ms.MobileID = packet.ReadInt16(); ms.MobType = packet.ReadByte(); ms.SpawnDelay = packet.ReadInt16(); Rect bounds = new Rect(); bounds.X = packet.ReadInt16(); bounds.Width = packet.ReadInt16(); bounds.Y = packet.ReadInt16(); bounds.Height = packet.ReadInt16(); ms.Bounds = bounds; int X = packet.ReadInt16(); int Y = packet.ReadInt16(); byte Z = socket.Mobile.Z; ms.SpawnLocation = new Point3D(X, Y, Z); ms.ScriptName = packet.ReadString(16); World.ServerManager.AddSpawn(socket, ms); }
public void AddSpawn(PlayerSocket socket, MobileSpawn ms) { }