Apexx 60 Posted September 11, 2018 Share Posted September 11, 2018 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 https://wrobot.eu/forums/topic/10084-mists-of-pandaria-memoryreadint32-main-hand-id/ Share on other sites More sharing options...
Ordush 185 Posted September 11, 2018 Share Posted September 11, 2018 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 https://wrobot.eu/forums/topic/10084-mists-of-pandaria-memoryreadint32-main-hand-id/#findComment-47373 Share on other sites More sharing options...
Apexx 60 Posted September 11, 2018 Author Share Posted September 11, 2018 Thanks @Ordush I wonder if GetInventoryItemID will work the same? return _mainhandid = Lua.LuaDoString<Int32>("GetInventoryItemID(\"target\", 16);"); Link to comment https://wrobot.eu/forums/topic/10084-mists-of-pandaria-memoryreadint32-main-hand-id/#findComment-47374 Share on other sites More sharing options...
Ordush 185 Posted September 11, 2018 Share Posted September 11, 2018 58 minutes ago, Apexx said: Thanks @Ordush I wonder if GetInventoryItemID will work the same? return _mainhandid = Lua.LuaDoString<Int32>("GetInventoryItemID(\"target\", 16);"); Try. ? Link to comment https://wrobot.eu/forums/topic/10084-mists-of-pandaria-memoryreadint32-main-hand-id/#findComment-47375 Share on other sites More sharing options...
Apexx 60 Posted September 13, 2018 Author Share Posted September 13, 2018 I cannot seem to get it to work. I am attempting to check if my target is humanoid, in combat, range, and has a weapon in hand before using 'Disarm'. Link to comment https://wrobot.eu/forums/topic/10084-mists-of-pandaria-memoryreadint32-main-hand-id/#findComment-47403 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now