Originally Posted by
ninjagameplayer
Originally Posted by
Blaster_89
It's open source, you can just take a quick look to see what parameters it takes
How??
I program in delphi
Just tell me what are the parameters of SendPacket function :O
Check the packet.asm file. You'll find a line like this:
Code:
SendPacket PROC ProcessID:DWORD,Packet:DWORD
This means the function takes 2 parameters: PID of the Tibia process (an unsigned 32-bit int) and the pointer to the packet data. Also, by analysing the rest of the function, you can see it doesn't put anything into eax, so it doesn't return anything useful. Also, the usual calling convention for functions in dll is stdcall.
So the declaration in Delphi would look like this:
Code:
procedure SendPacket(ProcessID: LongWord; Packet: Pointer); stdcall; external 'packet.dll';