SRL Archive - Reflection Help

Reflection walking script


orange

2008-08-09 15:17:27

So i'm trying to make one, and i'm trying to find positions, but every time i try GetMyPos using this script:

program Position;
{.Include SRL/SRL/Misc/SMART.SCAR}
{.Include SRL/SRL.SCAR}
{.Include SRL/SRL/REFLECTION/REFLECTION.SCAR}

Var
x, y : Integer;

procedure SetUps;

begin
SMARTSetUp('world16.runescape.com/p0,s1', True, True, False); {World prefix, safe mode, unsigned, RS-HD}
SetTargetDC(SMARTGetDC);
SetUpSRL;
end;

begin
GetMyPos(x, y);
Writeln('Tile x = '+IntTostr(x)+' - Tile y = '+IntToStr(y));
end.

i get Tile x = 33554430 - Tile y = 33554430
which is obviously wrong, halp? :/

skilld u

2008-08-09 15:20:06

you dont call setup in your main loop?

SMARTSetUp('world16.runescape.com/p0,s1', True, True, False);
should just be:

SMARTSetUp('world16', True, True, False);

Shuttleu

2008-08-09 15:23:55

make sure you have the latest hooks and make sure you load smart and login
program Position;
{.Include SRL/SRL/Misc/SMART.SCAR}
{.Include SRL/SRL.SCAR}
{.Include SRL/SRL/REFLECTION/REFLECTION.SCAR}

Var
x, y : Integer;

procedure SetUps;

begin
SMARTSetUp('world16', True, True, False); {World prefix, safe mode, unsigned, RS-HD}
SetTargetDC(SMARTGetDC);
SetUpSRL;
end;

begin
SetUps;
GetMyPos(x, y);
Writeln('Tile x = '+IntTostr(x)+' - Tile y = '+IntToStr(y));
end.
try that
run it and it should start smart and then come up as to very long numbers
then login to runescape and run it again

~shut

orange

2008-08-09 15:40:08

Still not working :/

Method

2008-08-09 15:45:04

You need to call LoadHooks before you start using reflection functions.

Shuttleu

2008-08-09 15:46:38

From: Method
You need to call LoadHooks before you start using reflection functions.

you dont with the latest revision of reflection (rev#60)

~shut

Method

2008-08-09 15:52:14

From: Shuttleu
you dont with the latest revision of reflection (rev#60)

~shut


I doubt he has the latest version, so that's something he needs to do, then.

orange

2008-08-09 16:47:43

rev#60? I thought rev#20 was latest..

Shuttleu

2008-08-09 16:50:10

From: orange
rev#60? I thought rev#20 was latest..

SRL rev#20
Reflection rev#60
:)

~shut

Kasi

2008-08-09 17:16:51

timer's code…


program New;
{.Include SRL\SRL\Misc\Smart.Scar}
{.Include SRL\SRL.Scar}
{.Include SRL\SRL\Reflection\Reflection.Scar}

Var
X, Y: Integer;

Begin
SmartSetup('world106', True, True, False);
SetTargetDC(SmartGetDC);
SetupSRL;
SetupReflection;
ActivateClient;
Wait(2000 + Random(500));
Repeat
If (IsFKeyDown(2)) Then
Begin
GetMyPos(X, Y);

writeln('WalkToTile('+inttostr(x)+', '+inttostr(y)+', 5, 5);');

While (IsFKeyDown(2)) Do
Wait(1);
End;
Until False;
End.

i edited a bit…

check out his tut

http://www.villavu.com/forum/showthread.php?t=33551?t=36307&highlight=reflection

TViYH

2008-08-09 21:40:21

You needed to call SetupReflection; i think.