• Log in or sign up for an account here: https://www.sythe.org/login

Scar Script Help

pure1FM

Newcomer
Joined
Sep 12, 2009
Sythe Gold
0
Messages
6
Okay so I just read the http://www.sythe.org/showthread.php?t=148839 ' TUT on scar '.

Decided to learn how to write a script.
And I have a question.

So instead of using COLOR FINDER I TRIED using Bitmap, but it isnt going as expected.

Here is what I am trying to do - PROGRESS
[ ]Run to Tenzing -Working On it-
[ ]Buy Climbing Boots
[ ]Teleport to City For Bank
[ ]Repeat.


program BitmapExample6;

var
Tenzing2: Integer;
x,y: Integer;

procedure LoadBmps;
begin
Tenzing2 := BitmapFromString(37, 85, 'beNqtmYdXVGmaxitXQZGz' +etc etc etc )

end;

procedure UseBitmap;
begin
if(FindBitmapIn(Tenzing2,x,y,0,0,505,424)) then
begin
MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
Wait(1000+random(100));
ClickMouse(x,y,true);
end;
end;

procedure FreeBmps;
begin
FreeBitmap(Tenzing2);
end;

begin
LoadBmps;
UseBitmap;
FreeBmps;
end.
 
Have you heard of reflection?

Though it is offline for now, Method should hopefully have it updated soon :S.
 
It's a system that (I think) reads the game client, and can walk, click, deposit, etc. almost 100% accurately. Your biggest problem would be knowing when to right click - IDs and Tiles can accurately find just about anything in the game.

Also, unless you're using reflection, I think that this, as a first script, will be to hard for you. It's a very long path, and then you have a gate and a door to script past, as well as buying and making sure you've bought what you need, etc. It's generally a good idea to start with a power cutter or power miner, and slowly make it better, add banking and walking, etc., and go from there.

If you decide to continue with this script, I wish you luck!

~Sandstorm
 
Runescape Gamblingrunescape gambling
Back
Top