PDA

View Full Version : [Rune-Legacy] Barb Assault Auto



polo
02-10-2013, 06:40 PM
This script is a work in progress. Tested and seems to be working for the most part.


About: This script uses color detection to kill Khazard Guards at Barbarian Assault. Script will most likely work on some other servers with the same Barb Assault minigame.

Future Updates:
-Camera Rotation When No Npc's Visable
-Detect if another player is already attacking.

Barb-Assault Auto v0.1:

program RL_BarB;
{$I SRL/SRL.Simba}
// ** -CONFIG- **
const
NPC_COLOR = 6324905 ; // Set the color using the tool above.
var
X, Y: Integer;

procedure FindTarget;
begin
if (FindColor(X,Y,NPC_COLOR,0,0,760,500)) then
begin
Status('Looking for color...');
MoveMouse(X, Y);
GetMousePos(X, Y);
Wait(200 + Random(50));
ClickMouse(X, Y, mouse_left);
end;
end;

begin
ActivateClient;
ClearDebug;
repeat
FindTarget;
Wait(3000);
until(isKeyDown(113));
end.

Notes: There is sometimes a delay in attacking when the npc is far away. Script recommended for higher levels, 100+ combat. If you want to use at a lower level I'd recommend you change the delay time to around 6-7 seconds.