Clutch
2015-03-25 21:30:27
So been attempting at a Pest Control script. I have alot more code then posted but I decided to start from scratch as I began to have issues getting it to run. See below for the errors.
When SMART's already open and account is logged in:
—- attempting to spawn smart, attempt #: 1
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found 1 free client(s), attempting to pair to one…
———- smartSetAsTarget(): Succesfully set SMART[2432] as Simba's target
——– Succesfully paired to a existing client, SMART[2432]
—— smartPairToExistingClient(): result = true
—— Succesfully initialized via pairing to a previously spawned client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
When SMART doesn't exist, it logs in and logs in successfully but then doesn't pick up that it has hit play:
—— Succesfully initialized via spawning a new client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
—— __setInputBoxes(): Set username and password boxes
—- Client is ready.
—- Setup SRL in 20 Seconds
– setupSRL(): True
– TPlayer.login()
—- TPlayer.loginToLobby()
—— Attempt 1: removed my e-mail ()
——– Entering username…
——– Entering password…
——– Saving screenshot: IP_address.png
—- TPlayer.loginToLobby(): True
—— TRSLobbyWorlds.selectRandomWorld(): Random world is 21
—- TRSLobby.getCurrentTab(): Current tab is 0
—- TRSLobby.getCurrentTab(): Current tab is 0
—- TRSLobby.getCurrentTab(): Current tab is 1
—- TRSLobby.openTab(): Result = True
—- TRSLobby.getCurrentTab(): Current tab is 1
—- TRSLobbyWorlds.selectWorld()
—— TRSLobby.getCurrentTab(): Current tab is 1
——– TRSLobbyWorlds.getCurrentWorld(): Current world is 14
—— TRSLobby.getCurrentTab(): Current tab is 1
—— Scrolled to and found world 21
—— Selected world 21
—- TRSLobbyWorlds.selectWorld(): True
—— TRSLobby.findPlayButton(): result = True
—— TRSLobby.findPlayButton(): result = False
—— TRSLobby.findPlayButton(): result = False
—— TRSLobby.findPlayButton(): result = False
—— TRSLobby.findPlayButton(): result = False
—— TRSLobby.findPlayButton(): result = False
—— TRSLobby.findPlayButton(): result = False
program KlutchPC;
{$DEFINE SMART} // Always have this to load smart
{$I SRL-6/SRL.simba} // To load the SRL include files
{$I SPS/lib/SPS-RS3.Simba} // To load the SPS include files
Var
x, y, u, i: integer;
AttackTimer: TTimeMarker;
TPA: TPointArray;
ATPA: T2DPointArray;
procedure declarePlayers();
begin
setLength(players, 1);
with players[0] do
begin
loginName := '';
password := '';
isActive := true;
isMember := true;
end
currentPlayer := 0;
end;
procedure CrossPlank;
begin
if not isLoggedIn() then
exit;
minimap.setAngle(MM_DIRECTION_SOUTH);
mainScreen.setAngle(MS_ANGLE_HIGH);
repeat
findColorsSpiralTolerance(x, y, TPA, 3432580, mainScreen.getBounds(), 2, colorSetting(4, 0.02, 0.16));
if (Length(TPA) < 1) then
exit;
ATPA := TPA.toATPA(10, 10);
ATPA.filterBetween(0, 0);
ATPA.sortFromMidPoint(mainscreen.playerPoint);
smartImage.debugATPA(ATPA);
for i := 0 to high(ATPA) do
begin
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['ross', 'angplank'], 500) then
begin
fastClick(MOUSE_RIGHT);
if chooseOption.select(['ross', 'angplank'], 500) then
wait (randomRange(2500,4000));
end;
end;
until false;
end;
begin
clearDebug();
smartEnableDrawing := true;
setupSRL();
declarePlayers();
if not isLoggedIn() then
begin
players[currentPlayer].login();
exitTreasure();
minimap.setAngle(MM_DIRECTION_NORTH);
mainScreen.setAngle(MS_ANGLE_HIGH);
end;
CrossPlank;
end. When SMART's already open and account is logged in:
—- attempting to spawn smart, attempt #: 1
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found 1 free client(s), attempting to pair to one…
———- smartSetAsTarget(): Succesfully set SMART[2432] as Simba's target
——– Succesfully paired to a existing client, SMART[2432]
—— smartPairToExistingClient(): result = true
—— Succesfully initialized via pairing to a previously spawned client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
When SMART doesn't exist, it logs in and logs in successfully but then doesn't pick up that it has hit play:
—— Succesfully initialized via spawning a new client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
—— __setInputBoxes(): Set username and password boxes
—- Client is ready.
—- Setup SRL in 20 Seconds
– setupSRL(): True
– TPlayer.login()
—- TPlayer.loginToLobby()
—— Attempt 1: removed my e-mail ()
——– Entering username…
——– Entering password…
——– Saving screenshot: IP_address.png
—- TPlayer.loginToLobby(): True
—— TRSLobbyWorlds.selectRandomWorld(): Random world is 21
—- TRSLobby.getCurrentTab(): Current tab is 0
—- TRSLobby.getCurrentTab(): Current tab is 0
—- TRSLobby.getCurrentTab(): Current tab is 1
—- TRSLobby.openTab(): Result = True
—- TRSLobby.getCurrentTab(): Current tab is 1
—- TRSLobbyWorlds.selectWorld()
—— TRSLobby.getCurrentTab(): Current tab is 1
——– TRSLobbyWorlds.getCurrentWorld(): Current world is 14
—— TRSLobby.getCurrentTab(): Current tab is 1
—— Scrolled to and found world 21
—— Selected world 21
—- TRSLobbyWorlds.selectWorld(): True
—— TRSLobby.findPlayButton(): result = True
—— TRSLobby.findPlayButton(): result = False
—— TRSLobby.findPlayButton(): result = False
—— TRSLobby.findPlayButton(): result = False
—— TRSLobby.findPlayButton(): result = False
—— TRSLobby.findPlayButton(): result = False
—— TRSLobby.findPlayButton(): result = False