LightbulbOutdatedAdventure Bot

Posts 115 of 15 · Page 1 of 1
Adventure Bot
Adventure Bot

Info :
You can try here my first attempt at creating an adventure bot.
It's still bugged but i'm in search of ideas to improve it.
To make it work "proper" you have to put the "Dungeon_Star.png" file in the same folder as the script.
Run the script from anywhere inside any prime world you want to farm in.
Don't move your mouse during farm.

Explanations :
If you don't want to download the image file, you will have to extract it from a swf in a packed game file,
you can find it here : Trove\Live\extracted\ui\questtracker.swf after using the extract batch (devtool_unpack_client.bat).
This script will make you respawn.
Respawn will reset the X value of the cursor's position.
The script will change the Y value of the cursor's position to look at the bottom.
Then it sends keys to move to the rally blade and use it.
Once teleported, it checks if you are in a dungeon by searching for it's logo on the top right of the screen.
If the logo is found, the script checks every 0.5s if this logo is still here.
Two cases can occur now :
  1. The dungeon is cleared, there is no more dungeon logo => return to start of the script (respawn and re tp)
  2. 20s have passed and the dungeon is still uncleared => return to start of the script (respawn and re tp)

To-do :
Change the way the script detect if you are in dungeon (image detection is still bugged).
Find the dungeon pointer (that shows up the dungeon logo).
Improve delays between keys sending.

I'm opened to all of your ideas and suggestions


AHK Script :
Code:
IfNotExist Dungeon_Star.png 
{
	MsgBox Error: Put Dungeon_Star.png in the same folder as this script.
}else{
	WinGetPos, null, null, Window_Width, Window_Height, Trove
	TopLeftX:=(Window_Width/1.3)
	BotRightY:=(Window_Height/2.5)
	Loop {	
		WinActivate, Trove
		Send {enter}/respawn{enter}
		Sleep 1000
		Send {e}
		Sleep 500
		MouseGetPos, Cur_Pos_X, Cur_Pos_Y
		MouseMove,Cur_Pos_X , Window_Height
		Send {w}
		Send {z down}
		Send {q down}
		Sleep 200
		Send {z up}
		Sleep 150
		Send {q up}
		Sleep 2000
		Send {e}
		Sleep 1000
		TimeOut = 0
		Loop {
			ImageSearch, Found_X,Found_Y, TopLeftX,0, Window_Width,BotRightY, *150 *Trans000000 Dungeon_Star.png
			if ErrorLevel = 0
			{
				MouseMove,Found_X , Found_Y
				if (TimeOut = 40) 
				{
					break
				}
				TimeOut++
				Sleep 500
			}
			else if ErrorLevel = 1	
			{
				break
			}
			else if ErrorLevel = 2	
			{
				break
			}
		}
	}
}
Esc::ExitApp
seems like my charachter isnt going to the rally? D:
Yea it's still bugged tho, it depends on you pc specs and many other things, that's why there is only one adventure bot on this site...
Quote Originally Posted by limacezzz View Post
Yea it's still bugged tho, it depends on you pc specs and many other things, that's why there is only one adventure bot on this site...
Might upgrade it
If you help me finding some pointers, maybe i could make something better
can minimize window ? or run few accounts same time?
my character doesnt move after respawning. it will do things like taking pots when the key is used in the script but whatever i change i wont move.(camera does move)
pls upgrade this bot. it would be realy helpful

Edit: ok i managed to make myself move but i dont get why you use Z and Q in your script
I can't seem to get it working, rip
so i was able to fix the script but is there way to become invisible to other players? because i dont want to get reported.
who tf plays trove
Quote Originally Posted by MrBuschMann View Post
Edit: ok i managed to make myself move but i dont get why you use Z and Q in your script
French keyboard basically...
can somone help me get the file?? i have no idea how to get the batch extracting file or whatever it is called q.q
Posts 115 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?