예제 #1
0
 public Player()
 {
     GameOptions = new GameOptions();
     Wallet      = new Wallet(this);
     Levels      = new Levels(this, 70, 0, 0, 100, 0, new List <MasteryExp>());
 }
예제 #2
0
 public Player()
 {
     GameOptions = new GameOptions();
     Wallet      = new Wallet(this);
     Levels      = new Levels(this, 70, 0, 0, 100, 0);
 }
예제 #3
0
 // Initializes all values to be saved into the database
 public Player(long accountId, string name, byte gender, Job job, SkinColor skinColor)
 {
     AccountId   = accountId;
     Name        = name;
     Gender      = gender;
     Job         = job;
     GameOptions = new GameOptions();
     GameOptions.Initialize();
     Wallet = new Wallet(this, meso: 0, meret: 0, gameMeret: 0, eventMeret: 0, valorToken: 0, treva: 0, rue: 0,
                         haviFruit: 0, mesoToken: 0, bank: 0);
     Levels = new Levels(this, playerLevel: 1, exp: 0, restExp: 0, prestigeLevel: 1, prestigeExp: 0, new List <MasteryExp>()
     {
         new MasteryExp(MasteryType.Fishing, 0, 0),
         new MasteryExp(MasteryType.Performance, 0, 0),
         new MasteryExp(MasteryType.Mining, 0, 0),
         new MasteryExp(MasteryType.Foraging, 0, 0),
         new MasteryExp(MasteryType.Ranching, 0, 0),
         new MasteryExp(MasteryType.Farming, 0, 0),
         new MasteryExp(MasteryType.Smithing, 0, 0),
         new MasteryExp(MasteryType.Handicraft, 0, 0),
         new MasteryExp(MasteryType.Alchemy, 0, 0),
         new MasteryExp(MasteryType.Cooking, 0, 0),
         new MasteryExp(MasteryType.PetTaming, 0, 0)
     });
     Timestamps             = new TimeInfo(DateTimeOffset.UtcNow.ToUnixTimeSeconds());
     MapId                  = 52000065;
     Coord                  = CoordF.From(-675, 525, 600); // Intro map (52000065)
     Stats                  = new PlayerStats(strBase: 10, dexBase: 10, intBase: 10, lukBase: 10, hpBase: 500, critRateBase: 10);
     Motto                  = "Motto";
     ProfileUrl             = "";
     HomeName               = "HomeName";
     CreationTime           = DateTimeOffset.Now.ToUnixTimeSeconds() + Environment.TickCount;
     TitleId                = 0;
     InsigniaId             = 0;
     Titles                 = new List <int>();
     PrestigeRewardsClaimed = new List <int>();
     ChatSticker            = new List <ChatSticker>();
     FavoriteStickers       = new List <int>();
     Emotes                 = new List <int>()
     {
         90200011, 90200004, 90200024, 90200041, 90200042, 90200057, 90200043, 90200022, 90200031, 90200005, 90200006, 90200003, 90200092, 90200077, 90200073, 90200023, 90200001, 90200019, 90200020, 90200021
     };
     SkillTabs = new List <SkillTab> {
         new SkillTab(job)
     };
     StatPointDistribution = new StatDistribution(20);
     Inventory             = new Inventory();
     BankInventory         = new BankInventory();
     Mailbox     = new Mailbox();
     BuddyList   = new List <Buddy>();
     QuestList   = new List <QuestStatus>();
     TrophyCount = new int[3] {
         0, 0, 0
     };
     ReturnMapId   = (int)Map.Tria;
     ReturnCoord   = CoordF.From(-900, -900, 3000);
     GroupChatId   = new int[3];
     SkinColor     = skinColor;
     UnlockedTaxis = new List <int>();
     UnlockedMaps  = new List <int>();
     CharacterId   = DatabaseManager.CreateCharacter(this);
 }
예제 #4
0
 public Player()
 {
     Wallet = new Wallet(this);
     Levels = new Levels(this, 70, 0, 0, 100, 0);
 }
예제 #5
0
 // Initializes all values to be saved into the database
 public Player(Account account, string name, byte gender, Job job, SkinColor skinColor)
 {
     AccountId   = account.Id;
     Account     = account;
     Name        = name;
     Gender      = gender;
     Job         = job;
     GameOptions = new GameOptions();
     Wallet      = new Wallet(meso: 0, valorToken: 0, treva: 0, rue: 0, haviFruit: 0);
     Levels      = new Levels(playerLevel: 1, exp: 0, restExp: 0, prestigeLevel: 1, prestigeExp: 0, new List <MasteryExp>()
     {
         new MasteryExp(MasteryType.Fishing),
         new MasteryExp(MasteryType.Performance),
         new MasteryExp(MasteryType.Mining),
         new MasteryExp(MasteryType.Foraging),
         new MasteryExp(MasteryType.Ranching),
         new MasteryExp(MasteryType.Farming),
         new MasteryExp(MasteryType.Smithing),
         new MasteryExp(MasteryType.Handicraft),
         new MasteryExp(MasteryType.Alchemy),
         new MasteryExp(MasteryType.Cooking),
         new MasteryExp(MasteryType.PetTaming)
     });
     Timestamps             = new TimeInfo(DateTimeOffset.UtcNow.ToUnixTimeSeconds());
     MapId                  = JobMetadataStorage.GetStartMapId((int)job);
     Coord                  = MapEntityStorage.GetRandomPlayerSpawn(MapId).Coord.ToFloat();
     Stats                  = new PlayerStats(strBase: 10, dexBase: 10, intBase: 10, lukBase: 10, hpBase: 500, critRateBase: 10);
     Motto                  = "Motto";
     ProfileUrl             = "";
     CreationTime           = DateTimeOffset.Now.ToUnixTimeSeconds();
     TitleId                = 0;
     InsigniaId             = 0;
     Titles                 = new List <int>();
     PrestigeRewardsClaimed = new List <int>();
     ChatSticker            = new List <ChatSticker>();
     FavoriteStickers       = new List <int>();
     Emotes                 = new List <int>()
     {
         90200011, 90200004, 90200024, 90200041, 90200042, 90200057, 90200043, 90200022, 90200031, 90200005, 90200006, 90200003, 90200092, 90200077, 90200073, 90200023, 90200001, 90200019, 90200020, 90200021
     };
     StatPointDistribution = new StatDistribution(20);
     Inventory             = new Inventory();
     Mailbox        = new List <Mail>();
     BuddyList      = new List <Buddy>();
     QuestList      = new List <QuestStatus>();
     GatheringCount = new List <GatheringCount>();
     TrophyCount    = new int[3] {
         0, 0, 0
     };
     ReturnMapId      = (int)Map.Tria;
     ReturnCoord      = MapEntityStorage.GetRandomPlayerSpawn(ReturnMapId).Coord.ToFloat();
     GroupChatId      = new int[3];
     SkinColor        = skinColor;
     UnlockedTaxis    = new List <int>();
     UnlockedMaps     = new List <int>();
     ActiveSkillTabId = 1;
     CharacterId      = DatabaseManager.Characters.Insert(this);
     SkillTabs        = new List <SkillTab> {
         new SkillTab(CharacterId, job, 1, $"Build {(SkillTabs == null ? "1" : SkillTabs.Count + 1)}")
     };
 }