Hello,
I've written a bot that uses Qt and compiles to a shared library. It currently runs only under Linux, but since it uses Qt (and also a cross-platform detour library) it shouldn't be to hard to port it to Windows.
The code is hosted on GitHub:
https://github.com/supergillis/tibia-hook
https://github.com/supergillis/tibia-hook-scripts
There is a README in the first repository that explains the design.
The core stuff is actually already pretty solid and you can script a lot of stuff already. Examples of scripts are in the second repository.
An example of a script:
Main.js
Code:
receiveFromClient = function(packet) {
var type = packet.readU8();
print("received packet of type" + type);
return true; // return true to allow this packet, return false to block it
};
receiveFromServer = function(packet) {
// do nothing
};
For better examples, see the second repository.
I am currently working on a lot of stuff, so development isn't really fast.
Enjoy!
Gillis