Example #1
0
        public void SetLevel(byte Level)
        {
            CurrentXp    = WorldMgr.GetXp_Info(Level);
            _Value.Level = Level;

            if (_Loaded)
            {
                SendLevelUp(ApplyLevel());
                SendXp();
            }

            ApplyLevel();
        }
Example #2
0
File: Player.cs Project: uvbs/DoR
        public void SetLevel(byte NewLevel)
        {
            CurrentXp    = WorldMgr.GetXp_Info(NewLevel);
            _Value.Level = NewLevel;
            Dictionary <byte, UInt16> Values = ApplyLevel();

            if (_Loaded && _Inited)
            {
                SendLevelUp(Values);
                SendXp();
            }

            ApplyLevel();
        }