public static Corpse Create(Player player) { var corpse = new Corpse { Owner = player, OwnerGuid = player.Guid, //PartyGuid = , Facing = player.Facing, PosX = player.PosX, PosY = player.PosY, PosZ = player.PosZ, DisplayId = player.DisplayId, //Bytes1_0 = , // classe? Race = player.Race, Gender = player.Gender, Skin = player.Skin, Face = player.Face, HairStyle = player.HairStyle, HairColor = player.HairColor, FacialHair = player.FacialHair, GuildId = player.GuildMember.With(x=>x.Guild.Id), //Flags = CorpseFlags.Bones, DynamicFlags = CorpseDynamicFlags.None, }; return corpse; }
private static IPacket GetCorpseQuery(Corpse corpse) { IPacket pkt = WorldPacketFactory.Create(WMSG.MSG_CORPSE_QUERY); BinaryWriter writer = pkt.CreateWriter(); writer.Write((byte)1); writer.Write(corpse.MapId); writer.Write(corpse.PosX); writer.Write(corpse.PosY); writer.Write(corpse.PosZ); writer.Write(corpse.MapId); return pkt; }