Cheesehunk
2006-02-21 17:13:13
I just started SRL scripting, and I am making a powercutter…
But I just cannot seem to figure out RadialWalk.
I have looked in the manual, and the actual script to see how it works, but I cannot seem to figure it out.
If you could help me that would be great!
Is the StartRadial your starting coordinates?
EndRadial ending?
What is a radius?
Xmod? Ymod?
In other words, I have no idea what they are…
any help would be appreciated.
Also, why do I get this error:
This is the version if you wish to test the function in it's own script without doing anything:
If so, SRL Developer's, and possibly scripters shpuld start with 15 rep…
Also, is talking about Rep against the rules?
Thanks,
Cheesehunk.
But I just cannot seem to figure out RadialWalk.
function RadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: integer): Boolean;
By: WT-Fakawi & Wizzup?
Description:
Walks TheColor from StartRadial to EndRadial for Radius DistanceI have looked in the manual, and the actual script to see how it works, but I cannot seem to figure it out.
If you could help me that would be great!
Is the StartRadial your starting coordinates?
EndRadial ending?
What is a radius?
Xmod? Ymod?
In other words, I have no idea what they are…
any help would be appreciated.
Also, why do I get this error:
Failed when compiling
Line 14: [Error] (8172:38): Close round expected in script When I run this Function:function WeAreInDraynorBank: Boolean;
var InBank: Boolean;
begin
InBank:=False;
PerfectNorth;
if FindSymbol(x,y,'bank') and
FindMMColorTol(x,y,1196903,40) then
begin
Players[CurrentPlayer].Loc;='Draynor'
Inbank:=True;
end;
begin
if (not(FindSymbol(x,y,'bank')) and
(not(FindMMColorTol(x,y,1196903,40)) then //Line 14
InBank:=False;
Writeln('Please Restart Script In Draynor Bank'}
TerminateScript;
end;
end;This is the version if you wish to test the function in it's own script without doing anything:
{.include SRL/SRL.scar}
function WeAreInDraynorBank: Boolean;
var InBank: Boolean;
begin
SetupSRL;
InBank:=False;
PerfectNorth;
if FindSymbol(x,y,'bank') and
FindMMColorTol(x,y,1196903,40) then
begin
Players[CurrentPlayer].Loc;='Draynor'
Inbank:=True;
end;
begin
if (not(FindSymbol(x,y,'bank')) and
(not(FindMMColorTol(x,y,1196903,40)) then
InBank:=False;
Writeln('Please Restart Script In Draynor Bank'}
TerminateScript;
end;
end;Do I need 15 rep to give out Reputation?If so, SRL Developer's, and possibly scripters shpuld start with 15 rep…
Also, is talking about Rep against the rules?
Thanks,
Cheesehunk.