ewlol wrote:notalbanian wrote:DatOneGuy wrote:More than half the significant people would be gone, just about everyone worth their weight in salt used macros at some point.
Also, there can be very different macros, there can be for example macros to unload smelters, there could also however be macros to grind LP.
It's a lot better to edit these into the game client as part of it, but it's also significantly harder to learn Java than it is to learn AutoHotKey. If I knew how to set something like an empty smelters button in a client I'd try my hardest to do it, but I'm stuck with a crappy AHK script instead.
It would be nice if there was a bulk load/unload container option in the game.
Shift + mouse-scroll (to take/out dump extremely fast)
Shift + ctrl + mouse-scroll (to dump/take out by ql)
That's to dump to inventory, not to floor. The idea is to take out the bars and then dump the stones. My current method uses image correction (to ensure that they are all dumped without a problem), it relies on images and the code is ugly and bloated, but:
- Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
F3::SetTimer, Sendit, -500
^#z::SetTimer, Sendit, off
sendit:
WinWait, Haven and Hearth,
IfWinNotActive, Haven and Hearth, , WinActivate, Haven and Hearth,
WinWaitActive, Haven and Hearth,
ImageSearch, SmeltX, SmeltY, 0,0,%A_ScreenWidth%, %A_ScreenHeight%, *40 *TransWhite images\Smeltertext.png
if ErrorLevel = 1
Msgbox No open Smelter
if ErrorLevel = 0
{
SmeltX1:= SmeltX - 60
SmeltX2:= SmeltX + 110
SmeltY1:= SmeltY + 10
SmeltY2:= SmeltY + 190
Loop
{
ImageSearch, FoundX, FoundY, %SmeltX1%, %SmeltY1%, %SmeltX2%, %SmeltY2%, *40 *Transff00c0 images\Cast.png
if ErrorLevel = 1
break
if ErrorLevel = 0
{
FoundX+=16
FoundY+=16
Send, {Shiftdown}
Sleep, 50
MouseClick, left, %FoundX%, %FoundY%
Sleep, 50
Send, {Shiftup}
MouseMove,200,30,,R
}
}
Loop
{
ImageSearch, StoneX, StoneY, %SmeltX1%, %SmeltY1%, %SmeltX2%, %SmeltY2%, *40 *Transff00c0 images\Stone.png
if ErrorLevel = 1
break
if ErrorLevel = 0
{
StoneX+=9
StoneY+=5
Send, {Ctrldown}
Sleep, 50
MouseClick, left, %StoneX%, %StoneY%
Sleep, 50
Send, {Ctrlup}
MouseMove,200,30,,R
}
}
}
return
#^a::Pause
As Granger said though bots (I guess you can call them robots, but I always just call them bots) are best done in Java, you really just `can't` make them in AHK, it won't work, it'll be way too big, AHK is best for small scripts at most a 'stupid macro', for example easily repetition, very light decision making, never factoring into account more than one thing. Bad for long amounts of time too.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .Hi. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .