Originally Posted by
Deet
Hi DPV,
I'm a software developer and also use Linux as my primary operating system - if your bot is open source, I'd love to work with you and help complete this.
If you don't wish for any help building it, I'd happily be a beta tester.
Well, the core is done, I just have to find some more memory addresses, and then write some scripts for it.
I will probably release parts of the source when im done with my script for skilling at target dummies.
If you are intrested in how it works:
1. My shared object hijacks the XNextEvent to change the send_event member to false, so tibia can't detect that the events are simulated.( my bot works like elfbot by simulating events, not by hooking the tibia send packet function )
2. The shared object also creates a new thread.
3. The new thread will run a lua script that will accept commands. The commands i have atm are "start <script name> <randomTime 1> <randomTime 2>" and "stop <script name>"
4. If the user wants to "start" a script, the lua script will call a c++ function that will create a new thread with a private scripting environment for the script and execute the script with a random time between <randomTime 1> and <randomTime 2>
5. The "stop" command will cancel the thread running the script.
As you can see the main stuff happens inside lua scripts, the only reason why you should change the c++ code is to add or remove c++ functions that can be called from lua.
The most important c++ function that can be called from lua is the "readMemory" function that accepts the address and size to read.
So if tibia has a new version you should only edit "constants.lua" which contains the addresses.
Anyway if you need more info, just ask