September 11, 20187 yr 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)); }
September 11, 20187 yr 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. ?
September 11, 20187 yr Author Thanks @Ordush I wonder if GetInventoryItemID will work the same? return _mainhandid = Lua.LuaDoString<Int32>("GetInventoryItemID(\"target\", 16);");
September 11, 20187 yr 58 minutes ago, Apexx said: Thanks @Ordush I wonder if GetInventoryItemID will work the same? return _mainhandid = Lua.LuaDoString<Int32>("GetInventoryItemID(\"target\", 16);"); Try. ?
September 13, 20187 yr Author 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'.
Create an account or sign in to comment