PDA

View Full Version : Guide to walking



danrox2004
03-01-2007, 12:02 PM
Ok this is my first tutorial =) Its on walking, using symbols, colours (for example of trees) and radial road walk.

When walking from place to place you can combine all three methods. You could walk from a bank to a tree, then to a mining symbol and follow a road for example.

First, Walking with symbols
In Core/Symbols.scar there are a few useful functions - GetSymbolColor, FindSymbol and FindSymbolColorIfNeeded.

In this tutorial i am going to teach you how to use FindSymbol to do your symbol walking.

FindSymbol:
function FindSymbol(var rx, ry: Integer; Name: String): Boolean;

rx and ry are the x, y coordinated of the symbol, the name is the name. The different symbols available are:

- bank
- mining site, mining spot
- transportation
- magic shop
- water source, water
- furnace
- anvil
- rare trees, tree
- fishing spot, fish
- cookery, cook
- quest
- mill
- weave
- pottery, pot
- spinning wheel, spin
- guide
- shop, store
- shield
- altar
- arrow
- bar
- dungeon
- churn
- house
- Axe Shop
- Cookery Shop
- Windmill
- minigame
- fur trader
- Archery Shop
- staff Shop
- clothes shop
- farming spot
- apothecary
- Sword shop
- platebody shop
- scimitar shop
- gem stall
- silk stall
- plateskirt shop
- agility
- training dummy
- food shop/food store
- fishing shop/fish store
- Jewelery
- Crafing shop
- portal (to player owned houses)
- Makeover Mage
- Mace Shop
- Hair Dresser
- Mining Shop
- silver stall
- spice stall
- farming shop
- slayer master
- herbalist
- candle shop
- Saw Mill
- Kebab shop
- Short cut
- hunter store
- hunter training
To use just put the name in Name, for example:
if(FindSymbol(x, y, "altar")) then
begin
end
Next we are going to make a simple function to repeat until it finds a symbol, or the time limit is exceeded, then click on the symbol and wait for the flag to dissapear.

To do this we repeat until it finds the symbol, then click on it and wait for the flag to disappear, then we will add in failsafes.


function FindAndClickSymbol(SymbolName: String): Boolean;
begin
repeat
Wait(50+random(100))
until(FindSymbol(x, y, SymbolName)) //Repeats until find symbol
Mouse(x, y, 5, 5, true) //Clicks on symbol
Flag; //Waits for flag to dissapear
Result:=True; //Returns True
end;


Now we will add some failsafes.

function FindAndClickSymbol(SymbolName: String): Boolean;
var
Start: Integer;
begin
MarkTime(Start); //Marks Time
repeat
Wait(50+random(100))
until((FindSymbol(x, y, SymbolName)) or (TimeFromMark(Start)>=15000)) //Repeats until find symbol or if function took more then 15 seconds
if(TimeFromMark(Start)>=15000) then
Result:=False; //Returns False
DoLogoutProcedure; //Logs out or whatever
else
begin
Mouse(x, y, 5, 5, true) //Clicks on symbol
Flag; //Waits for flag to dissapear
Result:=True; //Returns True
end
end;


Now to use that we use FindAndClickSymbol(Symbol).

Using Colours to walk
Using colours to walk is fairly simple, we just need a colour. Im not going to go over Automatically selecting colours yet so for now just manually define them.

Now when would you want to use colours to walk?
You would use colours to walk if there are no roads or symbols in sight, as this is probarbly the worst method of walking.

In this tutorial i will show you how to use the colour of trees to walk, and this can be adapted for other colours and objects.

I cant go on runescape right now so there wont be any pics yet. Notice on trees how it is all mostly one colour, then near the top center the colour is lighter? Thats what we will be using to walk (Sorry WT-Fawaki, got this off one of your scripts...) First you need to get that colour. Only use this method if it is the only colour on the minimap, as it may click the wrong colour. This is really easy, all we do is use Stupid's procedure ClickMMColorTol. This will click on the colour, then we use Flag to wait until it walks to the colour. And example is:

procedure ClickMMColorTol(color, tol: Integer);

ClickMMColorTol(TreeColour, 10)
Flag;

All this does is click on the colour with a tolerance of 10, then waits until it has walked there.

Radial Road Walking (RRW)
I havent got very much experience with RRW as i havent really needed to use it, but apparently it works VERY well. It will automatically detect new road colours as it walks.

For help using RRW there is a tutorial here:
http://www.villavu.com/forum/showthread.php?t=372
by WT-FAWAKI.

However, i will try to explain it quite simply here.

What radial road walk does is it looks for the road colour, starting at a specified radius and working inwards. It also starts at an angle and ends at an angle. I am unsure of how to explain this without the aid of diagrams so i wont :S

Basically to use just follow the tutorial at:
http://www.villavu.com/forum/showthread.php?t=372

An example of use is:

RadialWalk(TheColor,320,400,40,xmod,ymod)

An example of this all together is

RadialWalk(TheColor,320,400,40,xmod,ymod) //Walks the road colour from northeast to northwest.
RadialWalk(TheColor,320,400,40,xmod,ymod) //Same again
ClickMMColorTol(TreeColour, 10) //Clicks on a tree
Flag;
FindAndClickSymbol('bank'); //Clicks on the bank
ToBankers(BankColor,Adjustx,Adjusty); //Walks to bankers
OpenBank; //Opens Bank
FixBank; //Scrolls bank screen to top
DepositAll; //Deposits all items in inventory
Withdraw(5,3,20); //Withdraws 20 of the item in col 5 row 3
CloseBank; //Closes the bank screen
Logout; //Logs out player;


Will finish this later, got to go sorry.

julle13
03-01-2007, 12:30 PM
Ok tut, helped me in some things :)

legendaryhero90
03-02-2007, 02:17 AM
ah failsafes...

there are more than that but thats good

Thick As Blood
03-02-2007, 04:25 AM
very nice tut, ever notice their's no tanner symbol? damn, i bet you havent. i bet no one has except me, because it makes my autotanner just THAT much harder :( :p

danrox2004
03-02-2007, 09:51 AM
Really? if there isnt ill make one sometime. Will update this tutorial just not tonight becuase im going out.

3Garrett3
03-14-2007, 03:32 PM
why does it say this :::

Line 11: [Error] (17672:24): Unknown identifier 'furnace' in script C:\Program Files\SCAR 2.03\Scripts\DTMS\Radialwalk.scar

here is my line,,,

repeat
RadialRoadWalk(FindRoadColor,0,90,60,1,1)
until (FindSymbol(c, d,furnace)


EDIT: i figured out that you have to put it in '' things,, but i dont see it in ur guide,,




if(FindSymbol(x, y, altar)) then
begin
end

EotT
03-14-2007, 06:29 PM
When i made scripts (some years ago ) , there were a lot less functions with text. This is much easier. Thanx for this , I will you this :)

tylanbo
03-14-2007, 11:53 PM
very nice tut, ever notice their's no tanner symbol? damn, i bet you havent. i bet no one has except me, because it makes my autotanner just THAT much harder :( :p

I've noticed, but only because I am making a hide tanner as well :)

I tried out your tanner, works nicely , good job. I'm working on the crafter for the most part, since you already made that tanner :)

Tut helped me alot, I needed something to help with my fire crafter :D

danrox2004
03-15-2007, 12:52 PM
why does it say this :::

Line 11: [Error] (17672:24): Unknown identifier 'furnace' in script C:\Program Files\SCAR 2.03\Scripts\DTMS\Radialwalk.scar

here is my line,,,

repeat
RadialRoadWalk(FindRoadColor,0,90,60,1,1)
until (FindSymbol(c, d,furnace)


EDIT: i figured out that you have to put it in '' things,, but i dont see it in ur guide,,

Sorry, ill put that in the guide... but i figured most intermediates would know it... putting strings in "" is just basic scar knowledge...

3Garrett3
03-16-2007, 04:41 PM
sry then, im just learning, im not intermediate but somehow i managed to get it to work, my script now walks all the way from lumby castle to draynor bank thanks to your guide and the radial walking aid by yakman

danrox2004
03-17-2007, 10:34 AM
sry then, im just learning, im not intermediate but somehow i managed to get it to work, my script now walks all the way from lumby castle to draynor bank thanks to your guide and the radial walking aid by yakman

Nice work! Thats quite a long way to walk

masterdest
03-31-2007, 10:33 AM
...THANK YOU so much this has helped me make a script for my friend to get him 76 fishing <3 fishing guild, but i Love this tut more

Thanks again
~Masterdest~

JokeAss
03-31-2007, 12:15 PM
very nice tut, ever notice their's no tanner symbol? damn, i bet you havent. i bet no one has except me, because it makes my autotanner just THAT much harder :( :p

There is a tanner symbol, I just think he forgot it. Specify 'tanner' as the param ;)

n3ss3s
04-05-2007, 07:29 PM
Tylan and thick as blood , create a script together!
As WT-Fakawi and Wizzup? did with a mining guilder.
Im sure it would be good script.

omfg2007
04-15-2007, 07:52 PM
Thanks for the tut it helped a lil bit.

kemico2
04-20-2007, 09:51 PM
I use this tutorial all the time thank you so much. I would be very hard for me without this.

takemu
06-09-2007, 05:36 PM
thanks a lot! this will come in handy

takemu
06-09-2007, 05:53 PM
i can do the symbol walking, but what's wrong with this?

RadialRoadWalk(RoadColor, 43, 64, 69, Xmod, Ymod);

edit: just tried tree color walking.
program New;
{.include SRL/SRL.scar}

function FindAndClickSymbol(SymbolName: String): Boolean;
var
Start: Integer;
begin
MarkTime(Start);
repeat
Wait(50+random(100))
until((FindSymbol(x, y, 'quest')) or (TimeFromMark(Start)>=15000))
if(TimeFromMark(Start)>=15000) then
Result:=False;
if(not(LoggedIn))then
Exit;
else
begin
Mouse(x, y, 5, 5, true)
Flag;
Result:=True;
end
end;

function FindAndClickSymbol2(SymbolName: String): Boolean;
var
Start: Integer;
begin
MarkTime(Start);
repeat
Wait(50+random(100))
until((FindSymbol(x, y, 'Short cut')) or (TimeFromMark(Start)>=15000))
if(TimeFromMark(Start)>=15000) then
Result:=False;
if(not(LoggedIn))then
Exit;
else
begin
Mouse(x, y, 5, 5, true)
Flag;
Result:=True;
ClickMMColorTol(TreeColour, 10,2252610)
Flag;

end
end;
Line 41: [Error] (14792:1): Unknown identifier 'ClickMMColorTol' in script C:\Program Files\SCAR 2.03\Scripts\symbol walking.scar



begin
FindAndClickSymbol('quest');
FindAndClickSymbol2('Short cut',2252610);
end.

this one was working until i added the tree color. any help????

dialeyj2
06-09-2007, 08:46 PM
to use the FindAndClickSymbol function do i need to download that SRL thing:( I done have WinRAR so i can't get it:(

q3ick
04-29-2008, 10:36 PM
thanks helped some.

randy marsh
07-25-2008, 07:09 PM
thnks used this in my script!