SRL Archive - Help and Support

Need help with RadialWalk


Richard

2008-03-29 12:47:40

Reomved because people started yelling at me

Cazax

2008-03-29 13:02:57

RadialWalk(TheColor,StartRadial,EndRadial,Radius,Xmod,Ymod): boolean

For the color you just put the color you want to click, the best way is autocoloring it.

StartRadial, EndRadial:

StartRadial: Put the angle you want to start searching the color, between 0 - 720.

EndRadial: Put the angle you want to end searchingthe color, between 0 - 720. Example: if you want to search a color between 90 to 45, you have to put RadialWalk(Color, 45, 90, etc….).

Radius:
The distance from the center of the MM to click the color.

Xmod, Ymod:

* Xmod: The distance on the X axis the mouse will move every time the function tries to click but the flag doesn’t appear. (MouseFindNoFlag). So if it finds the colour and clicks but the flag doesn’t appear (can’t reach it), it will move the mouse Xmod units along the X axis until the flag appears. (negative is left, postive is right).
* Ymod: Same with Xmod except along the Y axis. (negative for up, positive for down).

Wrote by Zephyrs Fury.

: boolean: just a note, some people doesnt use it, very useful as a failsafe, so you put: if RadialWalk() then bla…
e.g:

if RadialWalk(FindFallyRoadColor, 0, 360, 1, 1) then Writeln('We are at fally');

Richard

2008-03-29 13:09:09

Cheers, I'll try it now.

I didn't have radial walk on my script for my app and I got lucky I guess so I never learn this.

EDIT: How would you do auto-coloring?

Cazax

2008-03-29 13:24:36

AutoColor.scar:

//-----------------------------------------------------------------//
//-- Scar Standard Resource Library --//
//-- » AutoColorFinding Routines --//
//-----------------------------------------------------------------//

// » function FindWaterColor: Integer; | by Tarajunky
// » function FindRoadColor: Integer; | by Tarajunky
// » function FindVarrockRoadColor: Integer; | by Tarajunky
// » function FindFallyRoadColor: Integer; | by Tarajunky
// » function FindRockColor: Integer; | by Tarajunky
// » function FindStoneColor: Integer; | by Tarajunky
// » function FindDirtRoadColor: Integer; | by Tarajunky
// » function FindBridgeColor: Integer; | by Tarajunky
// » function FindLadderColor: Integer; | by Tarajunky
// » function AutoColorThis(Bitmap, MaxTol, X1, Y1, X2, Y2:Integer) : integer; | by Sumilion


function FindWaterColor: Integer;
Will find the water color and store it as a result.

function FindRoadColor: Integer;
Will find the road color and store it as a result. Note: Only works on any other road than Varrock and Fally.

function FindVarrockRoadColor: Integer;
Will find the varrock road color and store it as a result. Note: Only works in Varrock.

function FindFallyRoadColor: Integer; Will find the fally road color and store it as a result. Note: Only works in Fally.

function FindRockColor: Integer;
Will find the rock color and store it as a result.

function FindStoneColor: Integer;
Will find the stone color and store it as a result.

function FindDirtRoadColor: Integer;
Will find the dirt road color and store it as a result.

function FindBridgeColor: Integer; Will find the bridge color and store it as a result.
function FindLadderColor: Integer; Will find the ladder color and store it as a result.

function AutoColorThis(Bitmap, MaxTol, X1, Y1, X2, Y2:Integer) : integer;
*(Read my tut on it)*.

See the SRL includes to see all functions/procedures in SRL.

n3ss3s

2008-03-29 14:12:00

You are an SRL Member, you are supposed to know how to radialwalk and autocolor…

Richard

2008-03-29 14:19:13

I know how to auto color, just with items though, I know how to RadialRoadWalk, I'm just not very good at normal RadialWalk

Torrent of Flame

2008-03-29 14:31:13

Cmon people, its a bit harsh to yell at him.

ShowerThoughts

2008-03-29 14:34:09

From: Torrent of Flame
Cmon people, its a bit harsh to yell at him.


Then we yell At You :p but there is almost no diff between Radialroadwalk And RadialWalk I always use RadialRoadWalk

Torrent of Flame

2008-03-29 14:34:58

Bring it on. Im an arsehole when Im pissed off.

But dont piss me off. I dont want nay infractions 0_o