Do your AutoUse of buff scrolls, etc, work? Does your autofarm window "activate/toggle" (the animation activates)?
Because it looks like you might not be sending the "ExAutofarmSettings", "ExActivateAutoShortcut()" etc packets, or at least not with the correct Packet IDs/Opcodes.
From the little I know about scripts, I can tell the Autofarm is clearly doing its job - handling targeting and pickup logic.
Attacks are done via the AutoShortcuts. You must send the ExActivateAutoShortcut() packet with the correct page and index under certain conditions.
The most obvious sign, for me, is if your Autofarm does not get "activated" on the client side, as it appears to be the case from your screenshot, which leads me to believe you have an Opcode problem.
Furthermore, they tend to add or remove a packet or two here and there, so you can end up with a bunch of wrong packet IDs.
Most recently I faced an almost identical issue to yours as part of a task given to me by a client. It turned out that they were using the wrong ServerPacketOpcodes Enum, namely, their server was p152/p166 and they had tried upgrading it to p192/228. However, they have copied the Enum from a later protocol version (looked like p362 to me), and as a result, they had many extra Opcos and some missing too, because they had been depreciated somewhere between p192 and p362 or whichever they took the Opcos from.
So, my suggestion for a solution would be for you to verify the integrity of your ServerPacketOpcodes Enum for the protocol version you are adapting your source to.
Here is a sneak-peak. Hope it helps!
Посмотреть вложение 87792