public enum BattleNet
{
NetClientPtr = 0x8BF1B4, // 4.0.6 13623
nbAccounts = 0x1144, // 4.0.6 13623 // lua_GetGameAccountInfo
AccountName1 = 0x1148, // 4.0.6 13623 // lua_GetGameAccountInfo
AccountName2 = 0x104, // 4.0.6 13623 // lua_GetGameAccountInfo
}
Code:
public static String GetBattleNetAccountNameByIndex(int Index)
{
return MyWoW.Memory.ReadUTF8String(MyWoW.Memory.ReadUInt(MyWoW.Memory.ReadUInt((uint)Resources.Offsets.BattleNet.NetClientPtr, "Wow.exe") + (uint)Resources.Offsets.BattleNet.AccountName1) + (uint)Resources.Offsets.BattleNet.AccountName2 * (uint)Index + 4, 96);
}
public static Int32 GetNumBattleNetAccount
{
get
{
return MyWoW.Memory.ReadInt(MyWoW.Memory.ReadUInt((uint)Resources.Offsets.BattleNet.NetClientPtr, "Wow.exe") + (uint)Resources.Offsets.BattleNet.nbAccounts);
}
}