Esempio n. 1
0
 public static void CharacterCreated_Event(CharacterCreatedEventArgs e)
 {
     if (e.Mobile != null && e.Mobile.Serial != null)
     {
         LSGovernor.AttachLevelables(e.Mobile.Serial);
     }
 }
Esempio n. 2
0
        public static void Login_Event(LoginEventArgs e)
        {
            LSGovernor.AttachLevelables(e.Mobile.Serial);

            int         totalexp = 0;
            CombatLevel combat   = (CombatLevel)LSGovernor.GetAttached(e.Mobile.Serial, typeof(CombatLevel));

            for (int i = 0; i < combat.Level; i++)
            {
                totalexp += combat.LevelsAt[i];
            }

            if (combat.TotalExp < totalexp)
            {
                combat.TotalExp = totalexp;
            }
        }