SRL Archive - Reflection Help

Reflection Path Walker?!?!?


Blender

2009-01-28 11:03:14

I looked at a lot of reflection walking scripts, but none of them work for me. Can I please have some examples?

Thanks!

MasterKill

2009-01-28 12:42:45

Function WalkTileWalkPath(PathPoints: TPointArray; FailPlayerLock: String): Boolean; // By MasterKill
Var
MK: Integer;
Resulter: TPoint;
Begin
SetRun(True);
For MK := 0 To High(PathPoints) Do
Begin
Status('[MOVING] Walking path step ' + IntToStr(MK) + '/' + IntToStr(High(PathPoints)) + '. To (' + IntToStr(PathPoints[MK].X + 1) + ',' + IntToStr(PathPoints[MK].Y + 1) + ')');
If Not LoggedIn Then Exit;
If TileOnMM(PathPoints[MK]) Then
Begin
Resulter := TileToMM(PathPoints[MK]);
Mouse(Resulter.x, Resulter.y, 4, 4, True);
Repeat
Case Random(2) Of
0: Wait(RandomRange(300, 600));
1: SleepAndMoveMouse(RandomRange(300, 600));
End;
//RandomZor; << add your anti random procedure here
If Not (MK = High(PathPoints)) Then
If TileOnMM(PathPoints[MK + 1]) Then
Break;
Until (Not CharacterMoving)
End Else
Begin
WriteZor('Not found your paths tile');
LogOut;
Players[CurrentPlayer].Loc := FailPlayerLock;
Exit;
End;
End;
Result := True;
End;

fre

2009-01-28 13:26:32

i think reflection is outdated atm
because rs update hooks need to be updated to
i hope i won't take to long because i m about to have 1 week vacation ^^

MasterKill

2009-01-28 13:29:31

From: fre
i think reflection is outdated atm
because rs update hooks need to be updated to
i hope i won't take to long because i m about to have 1 week vacation ^^


The hooks are outdated, but they are prolly updated tomorrow ;)

Blender

2009-01-28 19:43:21

Sorry MasterKill, but I have not the slightest idea why your function (or my script) doesn't work.
I used Summilion's path maker, and created my path. Then, I set it up like the (outdated I think) tutorial said for me to do. The script ran, but it didn't do anything…

Help!

Could the "hooks" be messing up my path maker script that I made?
If they are, sweeeeet; I don't suck at coding. If they aren't, well, :garfield:.

MasterKill

2009-01-29 01:10:05

From: xXxBlender3DxXx
Sorry MasterKill, but I have not the slightest idea why your function (or my script) doesn't work.
I used Summilion's path maker, and created my path. Then, I set it up like the (outdated I think) tutorial said for me to do. The script ran, but it didn't do anything…

Help!

Could the "hooks" be messing up my path maker script that I made?
If they are, sweeeeet; I don't suck at coding. If they aren't, well, :garfield:.


The function works perfectly for me ;) and the hooks are updated now. Install the latest version of reflection and it'll work for you :)

and you should add something like this to your script: (make sure your player is logged in when you do this)
If Not (Lowercase(GetMyName) = Lowercase(Players[CurrentPlayer].Name)) Then
Begin
Logout;
WriteLn('Reflection hooks ' + IntToStr(RSBuild) + ' are outdated!');
TerminateScript;
End;

Blender

2009-01-29 15:36:48

Thanks MasterKill!

I'll look more into developing reflection!