Page 1 of 1

can;t hook 0x08 packet on fresh clients

Posted: Mon Apr 16, 2018 6:41 am
by atreiu
i really can't hook it on newest clients, only old clients hooked. i know about 14/15 bytes
i've tried all lentgts Length 15 Length 14 Length variable
i don't know what to try :(
checked, only one hook in .cfg no other 0x8 0x08
.startlog show
Client -> Server: 0x7, 7 bytes
07 40 15 c8 6d 00 01 picked up

Server -> Client: 0x1D, 5 bytes
1d 40 15 c8 6d deleted

Client -> Server: 0x8, 15 bytes
08 40 15 c8 6d 00 80 00 47 00 0d 40 00 00 fc dropped

Code: Select all

Packet 0x08				
{
	Length 15
	ReceiveFunction  drop:dropitm
}
but exported function dropitm(character, byref packet) shows nothing on new clients not matter 2d or enhanced

Re: can;t hook 0x08 packet on fresh clients

Posted: Mon Apr 16, 2018 7:23 am
by RusseL
try this

Code: Select all

Packet 0x08
{
	Length 15
	ReceiveFunction dropping:dropping
	Version 2
}

Re: can;t hook 0x08 packet on fresh clients

Posted: Mon Apr 16, 2018 7:56 am
by atreiu
yes i;ve tried this, with that item stay on finger because client send 0x8 but server don't send [0x29] Drop Item Approved after that.

thanks to core code, version 2 work if exist version 1 therefore:

Code: Select all

Packet 0x08				
{
	Length 14
	ReceiveFunction  drop:dropitm
	Version	1
}

Packet 0x08				
{
	Length 15
	ReceiveFunction  drop:dropitm
	Version	2
}
thanks folks, solved.