Page 1 of 1

Drop Hook doesn't work.

Posted: Tue Feb 19, 2013 4:41 am
by RusseL
Why? Something is wrong or broken? I use rev 572 from svn.

DropPacketHook.src

Code: Select all

use uo;

program drag()
        print( "INSTALLING: Item Drop Hook..." );
        return 1;
endprogram

exported function drophook( character, byref packet )
        print ("ITEM DROPPED");
        SendSysMessage(character, "DROP!!!!");
        return 0;
endfunction
pkg.cfg

Code: Select all

Enabled       1
Name          DropPacketHook
CoreRequired  99
Maintainer    CWO
Email         admin@cwo333.com
uopacket.cfg

Code: Select all

Packet 0x08
{
	Length 15
	ReceiveFunction DropPacketHook:drophook
}
Length = 15 because of 6.0.13 client version.
Hook doesn't print anything... Doesn't work at all....

Re: Drop Hook doesn't work.

Posted: Wed Feb 20, 2013 12:27 pm
by RusseL
Got it.
It must be set "Version 2" in uopacket.cfg, because of new length of this packet :)

Re: Drop Hook doesn't work.

Posted: Fri Feb 22, 2013 6:02 am
by Terciob
I thought it was bug too, and its working with "Version 2", thanks Russel :P