Skip to content

Instantly share code, notes, and snippets.

@LaBlazer
Last active June 17, 2020 08:14
Show Gist options
  • Save LaBlazer/442d8eed354777f5455b9014de5bc60d to your computer and use it in GitHub Desktop.
Save LaBlazer/442d8eed354777f5455b9014de5bc60d to your computer and use it in GitHub Desktop.
CheatEngine WoW 1.12.1 ObjectManager/PlayerBase memory offset finder
--Tiny ObjectManager/PlayerBase finder for WoW 1.12.1
--Made by LBLZR_
objType = {"None", "Item", "Container", "Unit", "Player", "GameObject", "DynamicObject", "Corpse"}
curObj = readInteger("[0xB41414]+0xAC")
playerGuid = readInteger("[0xB41414]+0xC0")
playerAddress = 0
while ((curObj ~= 0) and ((curObj & 1) == 0)) do --iterate over all objects
print("Obj: ", string.format('0x%0X', curObj),
"\t| Type: ", objType[readInteger(curObj + "0x14")+1],
"\t| Guid: ", readQword(curObj + "0x30"),
"\t| Descriptor: ", string.format('0x%0X', readInteger(curObj + "0x8")))
if((readInteger(curObj + "0x14") == 4) and --if object type is player and guid is our guid
(readQword(curObj + "0x30") == playerGuid)) then
playerAddress = curObj
print("Found local player!")
end
curObj=readInteger(curObj + "0x3C") --get next object
end
print("Local player base address: ", string.format('0x%0X', playerAddress))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment