View Single Post
Old 19.06.2006, 00:38   #32
Alien003
Архивный участник
 
Join Date: Jun 2005
Posts: 143
Default

Quote:
Originally Posted by testdude
wait a minute... so... the socket as in the one for the user? cos if so im gonna scream ^_^
scream :P

dunno what arguments your hook function is using, I'm catching them using the function table, just like normal packets

my functions prototypes are

BOOL function(void* pSocket, const char* pData);

DS:[pSocket + 1394h] = pUser

DS:[DS:[pUser + 0f54h] + numberFromAI] = same parameter as in AI

DS:[pUser + 0f60h] = CInventory


and just correcting a thing testdude said

Quote:
the user struct in the l2server, as told to me by alien003, is stored in ECX for any User:: function
thats only valid at the start of the function, after that it's ALWAYS copyed to other register , usually EDI, ESI or EBX
Alien003 is offline