How To Close The Macro Warning Screen
Hey guys,
Just whipped up this piece of work to help out anyone who has trouble botting because of the Macro Warning Screen that Jagex forces you to view when you log in.
So, here is the script:
Simba Code:
{
This Script Closes the Warning Window that pops up when you log in.
If you have any questions, feel free to Message me back.
What it should do:
1. Log the player in.
2. World select and choose a random world.
3. After the player has logged in, it should automatically find the blue close button.
4. Once it sees the close button, it will click it.
5. It will then adjust the directions of the player to face north and as far up as it can.
And there you have it!
~ StickToTheScript
}
program closeWarningScript;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}
procedure declarePlayers();
begin
setLength(players, 1);
with players[0] do
begin
loginName := '';
password := '';
isActive := true;
isMember := true;
end
currentPlayer := 0;
end;
procedure closeWarning();
var
closeButton: Tbox;
TPA: TPointArray;
begin
closeButton := intToBox(617, 525, 745, 543);
wait(randomrange(2000, 4500));
if (findColors(TPA, 14325012, 606, 522, 746, 545)) then
begin
mouseBox(closeButton, MOUSE_LEFT);
wait(randomrange(500, 1500));
end
else
writeln('Did not find Warninig Screen. :D');
end;
begin
clearDebug();
smartEnableDrawing := true;
setupSRL();
declarePlayers();
if not isLoggedIn() then
begin
players[currentPlayer].login();
end;
closeWarning();
exitTreasure();
minimap.setAngle(MM_DIRECTION_NORTH);
mainScreen.setAngle(MS_ANGLE_HIGH);
end.
To make life simple, you can copy and paste the 'closeWarning' procedure and then paste it into whatever script you are using.
Once pasted, make sure that the closeWarning Procedure is placed after the login function (The login function may differ from script to script).
If you have any questions, feel free to post or PM me!
Edit: I should point out that it only works for the standard SMART sized screen. If you change the dimensions, I cannot guarantee it will find the button.
This function is now built into the SRL include. It has been pushed as of today.