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…
2013-03-03 21:59:59
2013-03-03 22:22:06
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.
2013-03-03 22:31:46
2013-03-03 22:34:36
2013-03-03 23:01:35
From: Sin
You havent called ClickBank; in your main loop :p
2013-03-03 23:18:26
From: Sin
You havent called ClickBank; in your main loop :p
2013-03-03 23:27:37
Mouse(x,y,rx,ry,Mouse_Right);
Wait(50);
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 :)
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.
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.
2013-03-04 00:32:02
2013-03-04 04:17:06
2013-03-04 16:22:05
From: Itankbots
Up the color tolerance or pick a more unquie color
2013-03-04 16:45:22
From: Kozs
Now how do I walk to the Anvil even with the camera at different angles?
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.
Mouse(670,85,2,2,Mouse_Left); //Walk to Anvil
wait(6150);
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);
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
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.
2013-03-04 17:15:29
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.
2013-03-05 04:25:43