Sup guys, I am new to scripting and i am tryng to make SPS walk to magics in seers village but it just keep walking and walking and walking.
I wanna use Mousebox to click on the seers vilalge lodestone.
Soemone explain mousebox please
Sup guys, I am new to scripting and i am tryng to make SPS walk to magics in seers village but it just keep walking and walking and walking.
I wanna use Mousebox to click on the seers vilalge lodestone.
Soemone explain mousebox please
I don't know much about SPS, but here is a little overview of MouseBox:
x1, y1 = top-left coordinate of the area you want to click in.Code:procedure MouseBox(x1, y1, x2, y2: Integer; ClickType: Integer);
x2, y2 = bottom-right coordinate of the area you want to click in.
ClickType = type of click (left, right, none). Use mouse_left, mouse_right, or mouse_move.
The procedure will take the box created with the coordinates you input and will randomly click anywhere within that area. Here's and example of calling it:
Simba Code:MouseBox(120, 250, 180, 300, mouse_left);
// This will left click randomly between a x value of 120 -> 180 and a y value of 250 -> 300
Last edited by Runaway; 06-15-2012 at 07:02 PM.
Well I was messing around with that area and can get it to make it to the area its just too hard with SPS1 to have it stop when it reaches the trees since you need to modify the tolerance a little bit. The areas there are constantly changing colors.
For Teleporting I wouldn't use mouse-box just cause so many things can go wrong with lag etc.
For using the seers lodestone I would use WaitColor function ex below.
Simba Code:function WaitColor(X, Y, Color, Tol, MaxTime: Integer): Boolean;
//X, Y are the coordinates you choose with the color picker, drag the crosshairs to the runescape box,
//then pick a color on the lodestone icon, for seers its black, white + blue.
//Ill use the center of the eye ( blue color ) as an example.
Simba Code://Picked colour: 9515824 at (191, 155) so this is what I got, the two coords and the color
function WaitColor(X, Y, Color, Tol, MaxTime: Integer): Boolean;
If WaitColor(191, 155, 9515824, 10, 7000) Then
Begin
{Now once it finds the color if it does you want to move the mouse there}
MMouse(191, 155, 4, 4); // using the same coordinates with a randomness
Clickmouse2(true); // then click
end;
There are also some includes functions for the lodestones but I can;t remember what they were off the top off my head. Also if you were going to use mouse-box your going to want a function for detecting the obelisk screen.
Edit: So I messed around with it for a few more minutes and I managed to get a working path for 9 tries, I will post it below. The only problem is it stops right outside the magics area on the green fence seems to be the only way to get that spot to work since that's the only unique color area.
Simba Code:Procedure walkmagics;
var
mypath: Tpointarray;
Begin
SPS_Setup(runescape_other,['seers_bank1']);
mypath := [Point(207, 94), Point(209, 107), Point(209, 124), Point(206, 146), Point(205, 162), Point(204, 177), Point(204, 190), Point(201, 210), Point(199, 228), Point(199, 252), Point(197, 268), Point(197, 281), Point(198, 294), Point(195, 315), Point(196, 327), Point(192, 337), Point(188, 349), Point(190, 365), Point(191, 381), Point(187, 396), Point(181, 411), Point(181, 431), Point(178, 441), Point(165, 460), Point(140, 459)];
sps_Walkpath(mypath);
if sps_walkpath(mypath) then
begin
writeln('we made it');
terminatescript();
End;
end;
and below is the map I used, you can fool around with it just remember to name it seers_bank1 and put it into runescape_other folder.
Cheers
Last edited by Google; 06-15-2012 at 07:37 PM.
Tutorials: Creating Custom SPS Minimap Maps + How to Use SPS | Bitmap Tutorial (For Finding Items In Inventory + Bank) + Implementing Into A Script
Private: RS3 AstralRcRunner
Currently: Looking for a script request
but where to ge tcoordinates for the mousebox?
EDIT: google i aint walking ;S
Simba Code:begin
Bank;
walkmagics;
WriteLn('HEading to tha treez');
ChopTree;
end;
Last edited by xDutch; 06-16-2012 at 07:02 AM.
Did you add the map to your SPS images?
C:\Simba\Includes\SPS\img\runescape_other\seers_ba nk1.png
And do you have SPS 2.0?
You can get the coords of the mousebox by using the color picker tool. Just get the top left corner first and then the bottom right corner, fill in those coords and it will work.
I dont know if i have sps 2.0 how to check- how to update?
and yes i've the image else it wil lcause an error
Hey guys, just wanted to let you all know that this tanners till works, but you will have to do a bit of modifying. If any of you noticed, the tanner menu changed a lot. I had to manually set it for hard leather. Just reset the coords with the color picker tool, and change it from right click to left click. You can then delete the other two lines for each procedure.
It is really a piece of cake fixing it. I can't code with simba for anything and I was able to code it to work.
There are currently 1 users browsing this thread. (0 members and 1 guests)