public PartyInvitationMemberInformations GetPartyInvitationMemberInformations() { CharacterRecord record = this.Character.Record; StatsRecord stats = this.Character.StatsRecord; BasicStats current = this.Character.CurrentStats; int id = record.Id; int level = (int)record.Level; string name = record.Name; EntityLook entityLook = this.Character.Look.ToEntityLook(); int breed = (int)(sbyte)record.Breed; bool sex = record.Sex; int mapid = (int)(short)record.MapId; PartyCompanionMemberInformations[] memberInformationsArray = new PartyCompanionMemberInformations[0]; return new PartyInvitationMemberInformations((uint)id, (byte)level, name, entityLook, (sbyte)breed, sex,(short)this.Character.Map.Position.x, (short)this.Character.Map.Position.y, this.Character.Map.Id, (ushort)this.Character.SubAreaId, memberInformationsArray); }
public PartyMemberInformations GetPartyMemberInformations() { CharacterRecord record = this.Character.Record; StatsRecord stats = this.Character.StatsRecord; BasicStats current = this.Character.CurrentStats; int id = record.Id; int level = (int)record.Level; string name = record.Name; EntityLook entityLook = this.Character.Look.ToEntityLook(); int breed = (int)(sbyte)record.Breed; bool sex = record.Sex; int hp = (int)this.Character.CurrentStats.LifePoints; int maxhp = stats.LifePoints; int regen = (int)1; int align = (int)(sbyte)record.AlignmentSide; int mapid = (int)(short)record.MapId; PlayerStatus status = this.Character.PlayerStatus; PartyCompanionMemberInformations[] memberInformationsArray = new PartyCompanionMemberInformations[0]; return new PartyMemberInformations((uint)id, (byte)level, name, entityLook, (sbyte)breed, sex, (uint)hp, (uint)maxhp, (ushort)stats.Prospecting, (byte)regen, (ushort)this.Character.Initiative, (sbyte)align, (short)this.Character.Map.Position.x, (short)this.Character.Map.Position.y, this.Character.Map.Id, (ushort)this.Character.SubAreaId, status, (IEnumerable<PartyCompanionMemberInformations>)memberInformationsArray); }