private int getMoveSpeed() { MemoryManager x = new MemoryManager(); x.Attach("League of Legends"); var GoldLv1Adress = (IntPtr)(x.ReadInteger(LeagueAdressesOffsets.PlayerObject.BaseAdress) + LeagueAdressesOffsets.PlayerObject.Attributes.Offset); var GoldAdress = (IntPtr)(x.ReadInteger(GoldLv1Adress.ToInt32()) + LeagueAdressesOffsets.PlayerObject.Attributes.MoveSpeed.Offset); var gold = x.ReadFloat(GoldAdress.ToInt32()); x.Disconnect(); return Convert.ToInt32(Math.Round(gold)); }
private int getUserGold() { MemoryManager x = new MemoryManager(); x.Attach("League of Legends"); var GoldLv1Adress = (IntPtr)(x.ReadInteger(LeagueAdressesOffsets.PlayerObject.BaseAdress) + LeagueAdressesOffsets.PlayerObject.Attributes.Offset); var GoldAdress = (IntPtr)(x.ReadInteger(GoldLv1Adress.ToInt32()) + LeagueAdressesOffsets.PlayerObject.Attributes.Gold.Offset); var gold = x.ReadInteger(GoldAdress.ToInt32()); x.Disconnect(); return gold; }
private int getMaximumHealth() { MemoryManager x = new MemoryManager(); x.Attach("League of Legends"); var GoldLv1Adress = (IntPtr)(x.ReadInteger(LeagueAdressesOffsets.PlayerObject.BaseAdress) + LeagueAdressesOffsets.PlayerObject.Stats.Offset); var GoldAdress = (IntPtr)(x.ReadInteger(GoldLv1Adress.ToInt32()) + LeagueAdressesOffsets.PlayerObject.Stats.MaxHealth.Offset); var gold = x.ReadInteger(GoldAdress.ToInt32()); x.Disconnect(); return gold; }