Hey guys :),
Im trying since hours to find the catshopId uff
I can find it somehow when i set a breakpoint in Olly at sendpackage. There i can see the catshopId, but from there, i dont know where it came from. I tried to search for it in CE....couldnt find it. I tried to search the ID itself, reversed, etc....
Last thing i did now, cause i think its close to the PlayerID oder TargetID was going from those addresses in 0x04 increments up and down. Couldnt find the right one either :/ or maybe i did and im just blind ?
Im trying to make buying from a catshop work and the only thing missing is this catshopid....
the function is like this:
Func buyItemShop($itemTypeId, $amount, $pid)
Local $packet, $packetSize
$packet = '2500'
$packet &= '13000000'
$packet &= '1C000000'
$packet &= '44459052' ; <------here is the ID which changes
$packet &= '00000000'
$packet &= '00000000'
$packet &= '01000000'
$packet &= _RevHex($itemTypeId)
$packet &= '00000000'
$packet &= _RevHex($amount)
$packetSize = 38
sendPacket($packet, $packetSize, $pid)
EndFunc ;==>buyItemShop
I guess its also rev as the other are also rev, as i saw in olly.
Would be awesome if someone has an idea
Aaaaaaaaaaaaaand I just found it ^^ was easier than i thought :D
Just as i wrote this and was about to make something to eat, came it into my mind!!!
How could i be so stupid.....i didnt search the reversed hex in CE -.- so silly....
I found it now ^^ offset is 0xF70 like this:
$POINTER_BASE = _MemoryRead(_MemoryRead($ADDRESS_BASE, $hprocess) + 0x1C, $hprocess)
$POINTER_CHAR = _MemoryRead($POINTER_BASE + 0x28, $hprocess)
$POINTER_SHOPID = _MemoryRead($POINTER_CHAR + 0xF70, $hprocess)
Just a RevHex then on this and there ya go :D