After a bit of digging around here and trial and error, i got a few things working now:
Detect the needed packets (when a trade is requested, started, changed, accepted, cancelled, and so on)
Print the own inventory as a message (for testing)
Grab all Item IDs, names and if it is soulbound from the objects.xml.
Now that i have the hooked packets, how does one handle them?
I mean for example, how can i read out of the TRADESTART packet, wich Items the other dude has?
How can i see wich item's the other dude has selected in an TRADECHANGED packet?
(i know these packets exists, may the spelling here is wrong as i am currently not looking at the source code)
Last but not least how do i select items myself?
- Guess here would be to create my own tradechange packet using the packetwriter.
Regards,
Maik8