Hello I am trying to find a work around for equiping and unequiping items as far as the event. I know there is RegisterPlayerEvent() for on equip and not one for unequip at this time. So I know there is obviously a packet being sent to the server to signify that change. What I can't seem to find is how to go about finding that packet or what one it would be. I have looked over the opcodes and still no dice.
What I am trying to overall accomplish is a player equips an item. This triggers a script that gives them a buff. If the player unequips that item the script would remove the buff.
I also should mention that it's more then likely that I am using the RegisterPacketEvent( entry, event, function ) wrong. Here is an example of that I have tried to do as for testing.
RegisterPacketEvent( 914, 7, test )[/COLOR]
-- what I believe to be the entry packet is CMSG_TIME_SYNC_RESP
Anyway if anyone could please shed some light on how to use this and how to get the correct packet I would greatly appreciate it.
P.S. I am using Mangos 3.3.5a latest Development 21