Hey all,
Im updating some VERY old code for a friend, this code was made around 4.0.1 or whatever.
Everything needs to work for 5.4.8!
Anyway, I am trying to call ClntObjMgrObjectPtr which as I understand it is currently used like this
Code:
ClntObjMgrObjectPtr (guid, guidHigh, filter)
In my external code, I use ASM injection and I am doing this
Code:
"push 1",
"push " + (uint) (GUID >> 32),
"push " + (uint) GUID,
"call " + (uint) ((int) GeneralHelper.RebaseAddress(Offsets.WoWFunctions.ClntObjMgrObjectPtr)),
in the code for my friend its injected C# I am doing this
Code:
ulong guidhigh = localPlayerGuid >> 32;
var localPlayerPointer = _getObjectByGuid(localPlayerGuid, guidhigh, 1);
localPlayerPointer is always 0! Can anyone see what I am doing wrong here? The function I am using is GetObjectByGuid = 0x39BA5B;
EDIT:
As l0l1dk pointed out to me on skype _getObjectByGuid now takes two uint's and not ulong!
/Fixed