Footy
08-08-2012, 04:33 PM
I've been reading on some radial walk tuts, and for road color, they say use "FindRoadColor, and it will find the road color automaticly, but that returns an unknown identifier error. Is there something else I'm supposed to be using?
~Footy
Recursive
08-08-2012, 04:37 PM
I'm actually using this in a script I am making, I believe the function is:
function RadialWalk(TheColor:Integer; StartRadial, EndRadial:Integer; Radius:Integer; Xmod, Ymod:integer): Boolean;// By Wizzup? and WT-Fakawi.
Here is a simulation by WT-Fakawi to show you how it works. Just drag the cross hairs on simba to paint and run the script and you will fall in love with radial walk, there is also linear walk 0.o:
program RadialWalk;
var x, y:integer;
//----------------------------------------------------------------------------//
function RadialWalk(TheColor:Integer; StartRadial, EndRadial:Integer; Radius:Integer; Xmod, Ymod:integer): Boolean;// By Wizzup? and WT-Fakawi.
var i: Integer;
var X1, Y1: integer;
begin
if StartRadial < EndRadial then
begin
repeat
for i:=StartRadial to EndRadial do
begin
X1:=Round ( Radius * Sin (i * Pi / 180)) + 646;
Y1:=Round (- Radius * Cos (i * Pi / 180)) + 84;
MoveMouse(X1, Y1);
HoldMouse(X1, Y1, 1);
ReleaseMouse(X1, Y1, 1);
end;
Radius:= Radius - 4;
until Radius <= 1 ;
end;
if StartRadial > EndRadial then
begin
repeat
for i:=StartRadial Downto EndRadial do
begin
X1:=Round ( Radius * Sin (i * Pi / 180)) + 646;
Y1:=Round (- Radius * Cos (i * Pi / 180)) + 84;
MoveMouse(X1, Y1);
HoldMouse(X1, Y1, 1);
ReleaseMouse(X1, Y1, 1);
end;
Radius := Radius - 4;
until Radius <= 1;
end
end;
//----------------------------------------------------------------------------//
function LinearWalk(TheColor : Integer; Direction : Integer; Radius : Integer; Xmod, Ymod : Integer) : Boolean;// By Wizzup? and WT-Fakawi.
var
i, j, StartRadial, EndRadial, InitRadius : Integer;
var
X1, Y1, Count : Integer;
begin
InitRadius := Radius;
repeat
StartRadial := 360 + Direction - Count;
EndRadial := 360 + Direction + Count;
repeat
for i := StartRadial to EndRadial do
begin
X1:=Round ( Radius * Sin (i * Pi / 180)) + 646;
Y1:=Round (- Radius * Cos (i * Pi / 180)) + 84;
MoveMouse(X1, Y1);
HoldMouse(x1, y1, 1);
ReleaseMouse(x1, y1, 1);
end;
for i := EndRadial downto StartRadial do
begin
X1:=Round ( Radius * Sin (i * Pi / 180)) + 646;
Y1:=Round (- Radius * Cos (i * Pi / 180)) + 84;
MoveMouse(X1,Y1);
HoldMouse(X1, Y1, 1);
ReleaseMouse(X1, Y1, 1);
end;
Radius := Radius - 4;
until Radius <= 10;
Radius := InitRadius;
Count := Count + 2;
until ((StartRadial < 2) or (EndRadial > 720));
end;
//----------------------------------------------------------------------------//
begin
RadialWalk(0, 0, 80, 40, -1, -1);
RadialWalk(0, 40, 50, 70, 0, -1);}
RadialWalk(0, 165, 180, 70, -1, 0);
RadialWalk(0,200, 130, 70, -1, -1);
RadialWalk(0, 260, 140, 40, -1, -1);
RadialWalk(0, 420, 300, 70, -1, -1);
LinearWalk(0, 320, 70, 1, 1);}
end.
x[Warrior]x3500
08-08-2012, 04:41 PM
i dont know if FindRoadColor is in SRL anymore. just create your own autocolor for the road. (its typically more accurate anyway)
Footy
08-08-2012, 05:25 PM
Ill just use ACA then, thanks guys
E: Im using radialwalk to go from the alhkarid bank to the tanner, but at times, the tanner map icon will go over where I need this to walk to. Is there a way to make sure it still walks to the right spot?
Also, I need my radialwalk to search between 350 and 10 degrees, that small slice at the top of the map, but it clicks all around the map. How do I fix this?
~Footy
Footy
08-08-2012, 06:27 PM
Edited last post with new question
x[Warrior]x3500
08-08-2012, 06:56 PM
determine mouse position of desired radialwalk. check if the autocolor picks up your color in taht area. if not, then just use symbol walking.
edit: also, use -10 to 10
Footy
08-08-2012, 07:09 PM
Thanks! Ill try that out!
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.