House Finder Macro

Started 5 Apr 2019
by lurker
in Support Center
Thought I would share this as it saved me a lot of hassle...

Devs, I'm pretty sure this is within the rules, but feel free to correct me if I'm wrong.

With this AutoHotKey script you can take some of the hassle out finding an available plot.

Instructions:
- Edit the script and update 'plotNumber := 1' to the plot number of that you want to start your search at.
- Start the script by double clicking it. (Have AHK installed obviously)
- Load phoneix, load a character and port into a housing zone (any one).
- Now repetitively press '1' and it will work through the plot numbers trying to /houseface each one. (or hold down 1)
- Keep an eye on your combat log. eventually you will see 'We cannot find the house you are searching for'.
- Take a look at the previous house faced in the combat log and add 1, this plot should be available for purchase.

Some Notes:
This is the same as typing /houseface loads of times or using shift+up and editing the number. Nothing fancy going on here, you have to pay attention.
There is a 2 second gap between /houseface commands as the server wont respond to quick successive requests (or the client doesn't submit them, not sure which) so it will take a bit of time.


#IfWinActive, ahk_class DAoCMWC

plotNumber := 1
secondsToWait := 2
timeLastReturn := A_Now
typeOrEnter := 0
return

$1::
if (typeOrEnter = 0) {
send {Enter}/houseface %plotNumber%
plotNumber += 1
typeOrEnter := 1
} else {
compareTime := timeLastReturn
compareTime += secondsToWait, s
if (compareTime <= A_Now) {
send {Enter}
timeLastReturn := A_Now
typeOrEnter := 0
}
}
return
Fri 5 Apr 2019 5:43 PM by Roto23
pretty slick man. I don't use AHK, but hear good things about it.
This topic is locked and you can't reply.

Return to Support Center or the latest topics