Drop Hook doesn't work.

Bug reports and feature requests. New features can only be added to the current development version. Bug-fixes may be back-ported.

Current release: 099 / Current development: 100
Post Reply
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

Drop Hook doesn't work.

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

Re: Drop Hook doesn't work.

Post by RusseL »

Got it.
It must be set "Version 2" in uopacket.cfg, because of new length of this packet :)
Terciob
Master Poster
Posts: 90
Joined: Fri Nov 07, 2008 3:47 am

Re: Drop Hook doesn't work.

Post by Terciob »

I thought it was bug too, and its working with "Version 2", thanks Russel :P
Post Reply