This script will add server-side auto looting. This means that when you kill a creature, it is automatically looted without the player having to right-click it.
Right now, it only works when the player is not in a group. The reason being is that group looting is a bit more complicated than solo looting, so I will try and implement this in the next release.
Here's the C++ code:
https://pastebin.com/ZdFD6Qdh
I'm not very knowledgeable when it comes to Trinity, so any input on what I did wrong is appreciated. I'm open to any feedback when it comes to the code.
If anyone uses this, please report any bugs on this thread.
Right now, it only works when the player is not in a group. The reason being is that group looting is a bit more complicated than solo looting, so I will try and implement this in the next release.
Here's the C++ code:
https://pastebin.com/ZdFD6Qdh
I'm not very knowledgeable when it comes to Trinity, so any input on what I did wrong is appreciated. I'm open to any feedback when it comes to the code.
If anyone uses this, please report any bugs on this thread.