SRL Archive - Help

Tiles


onilika

2011-07-23 17:37:49

ClickTile := Tile(2474, 3435);

Can someone explain me this?

Wizkid

2011-07-23 17:59:49

Where did you find that procedure? I haven't seen it before.

~ Wizkid

KingKong

2011-07-23 18:15:58

From: UNKNOWN69
ClickTile := Tile(2474, 3435);

Can someone explain me this?


It just means that clicktile is a variable and it is assigned a value of 2474,3435.

Gu3st...

2011-07-23 18:18:06

From: Wizkid
Where did you find that procedure? I haven't seen it before.

~ Wizkid
It's in the reflection library

Awkwardsaw

2011-07-23 18:36:37

ClickTile is a variable, TTile.

You use it like
walktotile(clicktile, 0, 0) or something or other.

onilika

2011-07-23 18:41:44

From: KingKong
It just means that clicktile is a variable and it is assigned a value of 2474,3435.


how do i get that value?

Geo

2011-07-23 18:59:07

From: UNKNOWN69
how do i get that value?


You can use RsBuddy to gather tiles.
To get the player position with RsBuddy go to the drop down menu called View then click Player Position.

onilika

2011-07-23 19:28:31

RsBuddy…gotta check that out! Thanks Everyone!

~UNKNOWN69

Smarter Child

2011-07-23 23:30:55

From: UNKNOWN69
RsBuddy…gotta check that out! Thanks Everyone!

~UNKNOWN69


Or Rsbot, you can also use Simba to debug it.

Flight

2011-07-24 00:00:37


program MyCoords;
{$define SMART}
{$i srl/srl.scar}
{$i Reflection/Reflection.simba}

Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := '';
Pass := '';
Nick := '';
Pin := '';
Active := True;
end;
end;

Procedure DisplayCoords;
begin
Wait(500);
ClearDebug;
Writeln('Tile('+IntToStr(R_GetMyPos.x)+','+IntToStr(R_GetMyPos.y)+')');
end;

begin
Smart_Server := 86;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
DeclarePlayers;

repeat
DisplayCoords;
until(false)
end.

onilika

2011-07-24 06:13:15

That's really nice Flight! Thank you!