how do you get the screenshots for this script which vm software o.s. screen res are you using to make this work?
this is the macro I use with autohotkey
I use it inside a virtual box, so I can do other things on computer while macro runs
G and H are used for strafe and Z for attack, autotarget must be on
global playerx
global playery
global playerz
global playerh
global pzone
global enterbutton
global in
global out
global yesbutton
global recall
global diff
out = C:\Users\user\Desktop\ddobot\out.bmp
in = C:\Users\user\Desktop\ddobot\in.bmp
enterbutton = C:\Users\user\Desktop\ddobot\enterbutton.bmp
yesbutton = C:\Users\user\Desktop\ddobot\yesbutton.bmp
recall = C:\Users\user\Desktop\ddobot\recall.bmp
diff = C:\Users\user\Desktop\ddobot\elite.bmp
sleep 5000
while 1 = 1
{
WaitImage(out)
enterquest()
forward(7000)
Jumpforward(500)
sleep 1000
Sleft(2500)
forward(800)
speak(7)
back(500)
sright(5500)
ForwardAttack(6000)
sleft(1100)
forward(500)
speak(2)
recallout()
sleep 11000
}
exit
;;;;;;;;;;;;;;;;;;;;;;;;;;;
ClickImage(Image)
{
loop
{
sleep 100
ImageSearch, x, y, 1, 1, 1024, 768, %image%
}
until errorlevel = 0
click %x%,%y%
}
WaitImage(Image)
{
loop
{
sleep 100
ImageSearch, OutputVarX, OutputVarY, 1, 1, 1024, 768, %image%
}
until errorlevel = 0
}
recallout()
{
ClickImage(recall)
ClickImage(yesbutton)
}
forwardattack(Time)
{
click 300, 300
send {z down}
sleep 200
send {w down}
sleep %time%
send {w up}
sleep 200
send {z up}
}
speak(Times)
{
while a<times
{
send e
sleep 500
send {ctrl down}
send {F1}
sleep 200
send {F1}
sleep 200
send {F1}
sleep 200
send {F1}
sleep 200
send {ctrl up}
a += 1
}
}
jumpforward(jtime)
{
send {w down}
sleep 50
send {space}
sleep %jtime%
send {w up}
}
forward(jtime)
{
send {w down}
sleep %jtime%
send {w up}
}
SLeft(jtime)
{
send {g down}
sleep %jtime%
send {g up}
}
Sright(jtime)
{
send {h down}
sleep %jtime%
send {h up}
}
Back(jtime)
{
send {s down}
sleep %jtime%
send {s up}
}
TurnFFL(Times)
{
while a < times
{
send {a down}
sleep 290
send {a up}
a += 1
}
}
enterquest()
{
back(4000)
TurnFFL(4)
send q
send e
waitimage(enterbutton)
sleep 1000
click 530, 280
sleep 500
click 480, 460
sleep 1500
send q
send e
waitimage(enterbutton)
ImageSearch, OutputVarX, OutputVarY, 1, 1, 1024, 768, %diff%
click %OutputVarX%, %OutputVarY%
Click 280, 640
waitimage(in)
}