Detect Danger Bot

08/05/2023 12:33 dralogh#1
Hi all,

I am a complete novice, trying to create a bot that will automatically escape to the guild hall when my character HP goes below X%.

I was wondering if any knowledgeable folk on this forum could point me in the right direction on how to create this bot.

I was planning on adapting lines of code from bots released by others (e.g. Kilroy or pre searing bot), but with zero coding experience I'm not 100% sure where to start.

Any advice or guidance would be greatly appreciated!
08/23/2023 23:17 Wobbly jelly#2
Quote:
Originally Posted by dralogh View Post
Hi all,

Any advice or guidance would be greatly appreciated!

I would suggest looking at these function in GWA2:
GetLoadState()
GetHealth()
TravelGH()

Make a Health check and if it’s below x then call TravelGh()
Put this in a loop while LoadState equals Explorable

Hopefully that helps point you in the right direction :)
09/14/2023 02:20 Mrjambix#3
Quote:
Originally Posted by Wobbly jelly View Post
I would suggest looking at these function in GWA2:
GetLoadState()
GetHealth()
TravelGH()

Make a Health check and if it’s below x then call TravelGh()
Put this in a loop while LoadState equals Explorable

Hopefully that helps point you in the right direction :)
Quote:
Originally Posted by dralogh View Post
Hi all,

I am a complete novice, trying to create a bot that will automatically escape to the guild hall when my character HP goes below X%.

I was wondering if any knowledgeable folk on this forum could point me in the right direction on how to create this bot.

I was planning on adapting lines of code from bots released by others (e.g. Kilroy or pre searing bot), but with zero coding experience I'm not 100% sure where to start.

Any advice or guidance would be greatly appreciated!
Here's your script based on Wobbly's suggestions: :feelsgoodman:
It's all open-source. Simply replace <20> which is Your Threshold Value with the health values you desire.

Edit:
Keep in mind this is just simple function you'll need to do the rest.