SRL Archive - Script Requests

I'm very confused here.


Kozs

2013-03-03 21:59:59

I want to hook up Simba to a RSPS but how do I know if it worked? I click the Cross and Drag it to the screen but idk if it worked…

rj

2013-03-03 22:22:06

post the code

Kozs

2013-03-03 22:26:22

Program SmithingRune2h;
{$i srl/srl.simba}
Procedure ClickBank;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 1065811, 256, 155, 256, 155, 5) then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
end;
end;
Begin
MouseSpeed := 15;
SetupSRL;
end.

rj

2013-03-03 22:31:46

The area your searching in is the size of 1 pixel you need for it to search in a wider area, I'm going to bed if you need further refer to the help section

Sin

2013-03-03 22:34:36

You havent called ClickBank; in your main loop :p

Kozs

2013-03-03 23:01:35

From: Sin
You havent called ClickBank; in your main loop :p



Yay that worked!

Kozs

2013-03-03 23:18:26

From: Sin
You havent called ClickBank; in your main loop :p


Ok so now what do I do the coordnates and color id of the rune bar is

6971985, 1106, 176

Sin

2013-03-03 23:27:37

Those coordinates seem horribly wrong…
You're going to want to drag the green crosshair on the simba icon onto the client before grabbing the coordinates.
Once you have them, verify the bank screen is open via a simple color check, then run this:


Mouse(x,y,rx,ry,Mouse_Right);
Wait(50);

x/y: coordinates of rune bar
rx/ry: randomization (leave at 2,2)

Then get the coordinates of the 'Withdraw All' option and do the same thing as above :)

Kozs

2013-03-03 23:42:35

From: Sin
Those coordinates seem horribly wrong…
You're going to want to drag the green crosshair on the simba icon onto the client before grabbing the coordinates.
Once you have them, verify the bank screen is open via a simple color check, then run this:


Mouse(x,y,rx,ry,Mouse_Right);
Wait(50);

x/y: coordinates of rune bar
rx/ry: randomization (leave at 2,2)

Then get the coordinates of the 'Withdraw All' option and do the same thing as above :)


any idea what's wrong with this? @Sin;

Program SmithingRune2h;
{$i srl/srl.simba}
Procedure ClickBank;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 6909549, 254, 137, 256, 155, 5) then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
wait(1150);
Mouse(268,142,2,2,Mouse_Right); //selects rune bar
wait(1150);
Mouse(260,250,2,2,Mouse_Left); //withdraw all
end;
end;
Begin
MouseSpeed := 15;
ClickBank;
SetupSRL;
end.

Sin

2013-03-04 00:24:38


Program SmithingRune2h;
{$i srl/srl.simba}
Procedure ClickBank;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 6909549, 254, 137, 256, 155, 5) then
begin
mouse(X, Y,0,0 mouse_Left)
wait(1150);
Mouse(268,142,2,2,Mouse_Right); //selects rune bar
wait(1150);
Mouse(260,250,2,2,Mouse_Left); //withdraw all
end;
end;
Begin
SetupSRL;
MouseSpeed := 15;
ClickBank;
end.

Kozs

2013-03-04 00:32:02

The Color keeps changing for the bank I put my color to low but if I move my screen a little bit I need to redo it

Any suggestions? @Sin;

Itankbots

2013-03-04 04:17:06

Up the color tolerance or pick a more unquie color

Kozs

2013-03-04 16:22:05

From: Itankbots
Up the color tolerance or pick a more unquie color


Now how do I walk to the Anvil even with the camera at different angles?

Sjoe

2013-03-04 16:45:22

From: Kozs
Now how do I walk to the Anvil even with the camera at different angles?


Mouse(268,142,2,2,Mouse_Right); Because 2, 2 are the random pixels off-shift.

If u want to precisely click the same pixel everytime change it to 0, 0 .
But that makes it more detectable.

Kozs

2013-03-04 16:51:43

From: Sjoekeloe
Mouse(268,142,2,2,Mouse_Right); Because 2, 2 are the random pixels off-shift.

If u want to precisely click the same pixel everytime change it to 0, 0 .
But that makes it more detectable.


that did not work heres what i'm using.
.


    Mouse(670,85,2,2,Mouse_Left); //Walk to Anvil
wait(6150);

Sjoe

2013-03-04 16:54:42

From: Kozs
that did not work heres what i'm using.
.


    Mouse(670,85,2,2,Mouse_Left); //Walk to Anvil
wait(6150);


I wouldn't use Coordclicking for mapwalking.
Try FindSymbol(x, y, 'furnace')

EDIT: tutorial on methods of mapwalking http://villavu.com/forum/showthread.php?t=19162

Kozs

2013-03-04 17:10:31

From: Sjoekeloe
I wouldn't use Coordclicking for mapwalking.
Try FindSymbol(x, y, 'furnace')

EDIT: tutorial on methods of mapwalking http://villavu.com/forum/showthread.php?t=19162



Looking for an anvil, and I just want to walk like 30 steps I should not need to learn map walking for that..

Program SmithingRune2h;
{$i srl/srl.simba}
Procedure ClickBank;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 6909549, 254, 137, 256, 155, 50) then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
wait(2150);
Mouse(268,142,2,2,Mouse_Right); //selects rune bar
wait(2150);
Mouse(260,250,2,2,Mouse_Left); //withdraw all
wait(2150);
FindSymbol(x, y, 'anvil')
end
end;
Begin
MouseSpeed := 15;
ClickBank;
SetupSRL;
end.


I compile that it says

Error: Exception: Out of memory at line 7

How do I fix that?

Sjoe

2013-03-04 17:15:29

Always call SetupSRL; at the beginning of yoru mainloop.

sorry, didn't read it clearly. FindSymbol(x, y, 'anvil');

Kozs

2013-03-04 17:21:34

From: Sjoekeloe
Always call SetupSRL; at the beginning of yoru mainloop.

sorry, didn't read it clearly. FindSymbol(x, y, 'anvil');


Program SmithingRune2h;
{$i srl/srl.simba}
Procedure ClickBank;
var
X,Y:Integer;
begin
SetupSRL;
if FindColorTolerance(X, Y, 6909549, 254, 137, 256, 155, 50) then
begin

mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
wait(2150);
Mouse(268,142,2,2,Mouse_Right); //selects rune bar
wait(2150);
Mouse(260,250,2,2,Mouse_Left); //withdraw all
wait(2150);
FindSymbol(x, y, 'anvil')
end
end;
Begin
MouseSpeed := 15;
ClickBank;
SetupSRL;
end.

Is there a way were it automatically makes the Camera angel that angel? I don't really care what angel I can make the coords work with it, the location i'm botting at no one goes to so its no problem

Itankbots

2013-03-05 04:25:43

Check out the SRL include, in your simba folder. Simba>includes>srl>srl>core>mapwalk

Has all the angle setting functions etc