Пример #1
0
 public void SetLevel(short level)
 {
     Level = level;
     Exp   = 0;
     Player.Session.Send(ExperiencePacket.ExpUp(0, Exp, 0));
     Player.Session.Send(ExperiencePacket.LevelUp(Player.Session.FieldPlayer, Level));
 }
Пример #2
0
    public void SetLevel(short level)
    {
        Level = level;
        Exp   = 0;
        Session.Send(ExperiencePacket.ExpUp(0, Exp, 0));
        Session.Send(ExperiencePacket.LevelUp(FieldPlayer.ObjectId, Level));

        QuestHelper.GetNewQuests(Player);
    }
Пример #3
0
        public void SetLevel(short level)
        {
            Level = level;
            Exp   = 0;
            Player.Session.Send(ExperiencePacket.ExpUp(0, Exp, 0));
            Player.Session.Send(ExperiencePacket.LevelUp(Player.Session.FieldPlayer, Level));
            DatabaseManager.Update(this);

            QuestHelper.GetNewQuests(Player.Session, Level);
        }
Пример #4
0
        public bool LevelUp()
        {
            if (!ExpMetadataStorage.LevelExist((short)(Level + 1)))
            {
                return(false);
            }

            Level++;
            // TODO: Gain max HP and heal to max hp
            Player.StatPointDistribution.AddTotalStatPoints(5);
            Player.Session.Send(StatPointPacket.WriteTotalStatPoints(Player));
            Player.Session.Send(ExperiencePacket.LevelUp(Player.Session.FieldPlayer, Level));
            return(true);
        }
Пример #5
0
        public bool LevelUp()
        {
            if (!ExpMetadataStorage.LevelExist((short)(Level + 1)))
            {
                return(false);
            }

            Level++;
            Player.StatPointDistribution.AddTotalStatPoints(5);
            Player.Session.FieldManager.BroadcastPacket(ExperiencePacket.LevelUp(Player.Session.FieldPlayer, Level));
            // TODO: Gain max HP
            Player.RecoverHp(Player.Stats[PlayerStatId.Hp].Max);
            Player.Session.Send(StatPointPacket.WriteTotalStatPoints(Player));

            QuestHelper.GetNewQuests(Player.Session, Level);
            return(true);
        }
Пример #6
0
    public bool LevelUp()
    {
        if (!ExpMetadataStorage.LevelExist((short)(Level + 1)))
        {
            return(false);
        }

        Level++;

        TrophyManager.OnLevelUp(Player);

        Player.Stats.AddBaseStats(Player);
        Player.FieldPlayer.RecoverHp(FieldPlayer.Stats[StatId.Hp].Bonus);

        Session.FieldManager.BroadcastPacket(ExperiencePacket.LevelUp(FieldPlayer.ObjectId, Level));
        Session.Send(StatPacket.SetStats(FieldPlayer));

        QuestHelper.GetNewQuests(Player);
        return(true);
    }