damn, I guess I need to install x32 then, because x64 is a mean handicap =\
Quote:
OMG that's awesome :OO
Is it possible for you to PM me the function code for it in the dll? Or give me pointers on how to find that? Many thanks in advanced!!
Ended up not being able to sleep, so I got up and fixed it. This function is starting to piss me off. :P Anyway let me know if it is working everyone.Quote:
Well atlesat it's a damn good first step ^^. Go get some rest, you'll need it to recharge your brain juice to finish up that function tomorow XD
Congrats =D.Quote:
Ended up not being able to sleep, so I got up and fixed it. This function is starting to piss me off. :P Anyway let me know if it is working everyone.
You should be able to use all items in your inventory now. Just wasted a ton of potions testing it to get it working. lol
I am currently doing something like the asm code below. Going to see if I can find a different way to invoke it.Quote:
are the registrars needed necessarily? isn't it just Push Offset Push 0 Push w.e., Call function? can't you do a Push All at the begining and then a Pop All after functions' done? or am I being dumb with my newby knowledge XD. Haven't took a look at the function, have no idea how it works XD
mov eax, EAX_Offset //Constant
mov ecx, ECX_Offset //Constant
mov edx, EDX_Offset //Changes everytime
mov ebx, SlotIndex //slot number
mov esi, ESI_Offset //Changes everytime
mov edi, EDI_Offset
push 1
push SlotIndex //slot number
push 0 //Something, but idk what
push 0
call [Function_Addr]
SendPckStruct* pStruct = new SendPckStruct;
byte * CNetworkInputPtr = (byte*)(*(dword*)Mem->GetAddress("CNetworkInputPtr"));
pStruct->header = 0x12;
pStruct->zero = 0;
pStruct->op = 0x426A;
pStruct->opEx = 0x0000;
pStruct->id[0] = 0x00;
pStruct->id[1] = (byte)index;
pStruct->id[2] = 0xFF;
pStruct->id[3] = 0xFF;
_asm {
PUSH pStruct
MOV ECX,CNetworkInputPtr
CALL SendPckFunctionPtr
}
struct SendPckStruct
{
dword header;
dword zero;
word op;
word opEx;
byte id[4];
};
it works for me, for about 5 minutes or so, using any bag index, and then my game.exe crashesQuote:
To be determined, it is working for some and not for others. All I can think of is that my registers are different since I am running x64 and they are possibly on x32.