Exemplo n.º 1
0
        private static bool ReadLevel()
        {
            int  currentLevel = tibia11_addresses ? (int)Tibia11Level.GetValue() : ReadInt32(GetAddress(LevelAddress));
            bool levelChanged = level == currentLevel;

            level = currentLevel;

            return(levelChanged);
        }
Exemplo n.º 2
0
        private static bool ReadMagicLevel()
        {
            int  currentMagicLevel = tibia11_addresses ? (int)Tibia11SkillsMagicLevelCurrent.GetValue() : ReadInt32(GetAddress(MagicLevelAddress));
            bool magicLevelChanged = currentMagicLevel == magicLevel;

            magicLevel = currentMagicLevel;

            return(magicLevelChanged);
        }
Exemplo n.º 3
0
        private static bool ReadExperience()
        {
            long currentExperience = tibia11_addresses ? Tibia11Experience.GetValue() : ReadInt64(GetAddress(ExperienceAddress));
            bool experienceChanged = currentExperience == experience;

            experience = currentExperience;

            return(experienceChanged);
        }
Exemplo n.º 4
0
        private static bool ReadSouls()
        {
            int currentSouls = !tibia11_addresses?ReadProperty(SoulAddress) : (int)Tibia11MySoul.GetValue();

            //bool healthChanged = currentSouls != souls;
            souls = currentSouls;

            return(true);
        }
Exemplo n.º 5
0
        private static bool ReadMana()
        {
            int currentMana = !tibia11_addresses?ReadProperty(ManaAddress) : (int)Tibia11MyMana.GetValue();

            bool manaChanged = currentMana != mana;

            mana = currentMana;

            return(manaChanged);
        }
Exemplo n.º 6
0
        private static bool ReadMaxHealth()
        {
            int currentMaxHealth = !tibia11_addresses?ReadProperty(MaxHealthAddress) : (int)Tibia11MyMaxHP.GetValue();

            bool maxHealthChanged = currentMaxHealth != maxHealth;

            maxHealth = currentMaxHealth;

            return(maxHealthChanged);
        }
Exemplo n.º 7
0
        private static bool ReadHealth()
        {
            int currentHealth = !tibia11_addresses?ReadProperty(HealthAddress) : (int)Tibia11MyHP.GetValue();

            bool healthChanged = currentHealth != health;

            health = currentHealth;

            return(healthChanged);
        }