Question, if I write a packet hook for instance deny pick up, does this override or interfere with the server's normal handling of this?
I'm trying to write an improved open paper doll function so that I can send a flag to allow staff or players to remove or change clothing on another player and npc for staff and npcs in certain situations like player vendors. The issue is I think the deny lifting packet is interfering with me dragging an item from the mobile. The item is picked up for a split second then snaps back and I get the "you can't move this" error. (May not be that exact message but it's one of the 5 messages).
Regarding Packet Hooks
Moderator: POL Developer
Re: Regarding Packet Hooks
if i remember correctly It depends on return value of your packet hook.
return 1 - core will not handle this packet
return 0 - core will handle packet after your hook is done.
Re: Regarding Packet Hooks
Cool thanks, I will try this out and see. Appreciate you taking the time to answer.
Re: Regarding Packet Hooks
The problem with this is that if you block the deny packet, the client will have a ghost item on it but the server still denied it so it's not moved. The server has to accept that the item can be moved otherwise it will not be.