SRL Archive - Reflection Help

Reflection Walking - Help!


0wn 4 skill

2008-08-13 20:26:48

I have been making a script and I have got to the walking part. I want the script to walk some points which i have set in an array.

Function LoadPathsBank: TPointArray;
begin
SetLength(Result, 7);

Result[0] := Point(3104, 3433);
Result[1] := Point(3092, 3443);
Result[2] := Point(3090, 3454);
Result[3] := Point(3089, 3465);
Result[4] := Point(3098, 3473);
Result[5] := Point(3099, 3484);
Result[6] := Point(3094, 3490);
end;

This Is the points i want it to walk.



And this is a procedure I tried with some half hearted help from some people on the SRL channel :p
Procedure WalkToBank;
Var
I: Integer;
Path: TPointArray;
Begin
If Not Loggedin then Exit;
Begin
Path := LoadPathsBank;
for i := 0 to High(Path) do
WalkToTile(Path[i], 3, 0);
end;
end;


If someone could write me a procedure to walk the paths and explain it with
// Notes
That would be more than helpful.

Thanx in Advance.

basic_i

2008-08-13 21:32:37

I believe the procedure is "walkthepath(somtin TPA)" umm Timer made a post explaining a lot about reflection…I am new to it myself…so I was just about to read the post…the procedure is also made my Timer.

Lee Lok Hin

2008-08-13 21:44:35

HalfHearted, eh :p

Procedure WalkToBank;
Var
I: Integer;
Path: TPointArray;

Begin
If Not Loggedin then Exit;
Path := LoadPathsBank; //You know how Sum's Path maker returns a TPA?
for i := 0 to High(Path) do //For each Point in the TPA of the path do
WalkToTile(Path[i], 3, 0); //WalkToTile Path[The iteration), randomness, FFlag distance.
end;

0wn 4 skill

2008-08-14 04:39:39

Ty, didnt mean to offend. Testing now…