can;t hook 0x08 packet on fresh clients

Here you can discuss packets, implementation and design, and software related to the packet sniffing and such. This is not the place to post packages for POL, but rather discuss the packet side of them.

Moderator: POL Developer

Post Reply
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

can;t hook 0x08 packet on fresh clients

Post 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
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

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

Post by RusseL »

try this

Code: Select all

Packet 0x08
{
	Length 15
	ReceiveFunction dropping:dropping
	Version 2
}
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

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

Post 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.
Post Reply