Jump to content

Mists of Pandaria (Memory.ReadInt32) Main Hand ID


Apexx
 Share

Recommended Posts

Hello, I was wondering if anyone had the offset value for MoP 5.4.8 (18414) Main hand item id for player as well as unit? Thanks in advance!

public static int MainHandId(WoWUnit unit)
{
    // Using 3.3.5a(12340) offsets.
    if (unit.PlayerControlled)
        return wManager.Wow.Memory.WowMemory.Memory.ReadInt32(unit.GetDescriptorAddress(0x4E4));

    return wManager.Wow.Memory.WowMemory.Memory.ReadInt32(unit.GetDescriptorAddress(0xE0));
}

 

Link to comment
Share on other sites

40 minutes ago, Apexx said:

Hello, I was wondering if anyone had the offset value for MoP 5.4.8 (18414) Main hand item id for player as well as unit? Thanks in advance!

public static int MainHandId(WoWUnit unit)
{
    // Using 3.3.5a(12340) offsets.
    if (unit.PlayerControlled)
        return wManager.Wow.Memory.WowMemory.Memory.ReadInt32(unit.GetDescriptorAddress(0x4E4));

    return wManager.Wow.Memory.WowMemory.Memory.ReadInt32(unit.GetDescriptorAddress(0xE0));
}

 

I believe I've seen a list of offsets on owned core.
I am at work atm. But i will check when i get home. ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...