public Character(CharacterRecord record, WorldClient client) { this.Client = client; this.Record = record; this.Look = ContextActorLook.Parse(Record.Look); this.HumanOptions = new List<HumanOption>(); this.Inventory = new Inventory(this); this.PlayerStatus = new PlayerStatus((sbyte)PlayerStatusEnum.PLAYER_STATUS_AVAILABLE); }
public static CharacterRecord Default(string name, int accountid, string look, sbyte breed, bool sex) { return(new CharacterRecord(CharacterRecord.FindFreeId(), name, accountid, look, 1, breed, sex, ConfigurationManager.Instance.StartMapId, ConfigurationManager.Instance.StartCellId, 3, ConfigurationManager.Instance.StartKamas, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, new List <ushort>(), new List <ushort>(), 0, 0, new List <byte>() { 1 }, -1, 0, new List <int>(), ArenaProvider.DEFAULT_RANK, ArenaProvider.DEFAULT_RANK, ArenaProvider.DEFAULT_RANK, 0, 0, false)); }