Code:
Target_adr = 0x0094ABD0;
Target_offset = 316;
TargetSelected_adr = 0x0094ABD4;
TargetSelected_offset = 316;
function CheckTarget()
Target = memoryReadIntPtr(proc, Target_adr, Target_offset);
if( Target == 1 and TargetSelected == 0 ) then
mouseRClick();
rest(10);
mouseSet(511, 440);
mouseSet(511, 270);
end
TargetSelected = memoryReadIntPtr(proc, TargetSelected_adr, TargetSelected_offset);
if( TargetSelected == 1 ) then
rest(100);
end
if( Target == 0 and TargetSelected == 0 ) then
X = math.random(1000);
Y = math.random(700);
if( X > 400 and X < 565) then
mouseSet(0,0);
end
if( Y > 285 and Y < 439 ) then
mouseSet(0,0);
end
mouseSet(X, Y);
rest(10);
end
end
function main()
attach( findWindow("FW Client - Beta - Final : *") );
proc = openProcess( findProcess("FW Client - Beta - Final : *") );
setPriority(PRIORITY_HIGH);
while(true) do
CheckTarget();
rest(2);
end
end
startMacro(main, true);
Very old Bot of mine and poorly written. It's very simple.
GetPixel wasn't used because you can't use it on windows in the backround,
that explains the way to finding monsters. Also, Adresses are different.
This only looks for monsters on the screen and attacks them. Nothing more.
If you want to try it, port it into your favourite programming languange.