SRL Archive - OSR Help

X and Y's


Keepin_green

2013-03-28 05:09:10

Anyone know the X and Y coordinates for seers Yew trees?

rj

2013-03-28 05:10:59

They are different each time you go to them

Justin

2013-03-28 05:11:05

What exactly do you mean X and Y Coords? Are you talking about SPS? If yes, then it depends on how the map was made.

If you are talking about the object on the screen, it will be where the colours are found (That you select)

Runehack123

2013-03-28 05:14:20

the x and y would depend on where you're stand

Keepin_green

2013-03-28 05:20:01

procedure GoToTrees;
var x, y: integer;
begin
P07_MakeCompassNorth;
WaitHumanClick;
if(findDTM(BankDTM, x, y, 565, 7, 717, 157)) then
begin
case Location of
'Willow': Mouse(RandomRange(X - 5, x - 15), RandomRange(Y + 15, Y + 25), random(3), random(3), true);

This is an example.

Justin

2013-03-28 05:21:37

From: Keepin_green
procedure GoToTrees;
var x, y: integer;
begin
P07_MakeCompassNorth;
WaitHumanClick;
if(findDTM(BankDTM, x, y, 565, 7, 717, 157)) then
begin
case Location of
'Willow': Mouse(RandomRange(X - 5, x - 15), RandomRange(Y + 15, Y + 25), random(3), random(3), true);

This is an example.



if(findDTM(BankDTM, x, y, 565, 7, 717, 157)) then

The x and y would be the set locations to where the DTM was found

Keepin_green

2013-03-28 05:25:32

Could you explain it a bit more? I'm trying to make it so it walks to the Trees.

xtrapsp

2013-03-28 05:32:03

I don't think you're getting it.


ok so lets look at it this way.

X and Y is the co-ordinates of where your mouse is… so if you did

x= 300;
y= 300;

the mouse would move to the co-ordinates 300,300.

if we are using dtm's or colors etc what we initially doing is filling that x and y value.

so

X, Y = (NO VALUE)

if(findDTM(BankDTM, x, y, 565, 7, 717, 157)) then

IF it finds the DTM called "BankDTM" it will replace x and y with the co-ordinates of wherever it finds that DTM

Justin

2013-03-28 05:34:00

Also I done a quick Google search (Home Internet is down, using 3G data);
Have a look at this video, Hope it explains it. http://www.youtube.com/watch?v=gj7yaRU-7no

Keepin_green

2013-03-28 05:52:42

'Willow': Mouse(RandomRange(X - 5, x - 15), RandomRange(Y + 15, Y + 25), random(3), random(3), true);

So the same goes for this one also?

xtrapsp

2013-03-28 06:06:12

From: Keepin_green
'Willow': Mouse(RandomRange(X - 5, x - 15), RandomRange(Y + 15, Y + 25), random(3), random(3), true);

So the same goes for this one also?


What this is doing is using the Mouse function which moves the mouse to a random value between the ranges of whatever x is and y. With a random offset of 3


So for an example lets say

X = 100;

The mouse will click between a random value of X - 5 and X - 15.

So Mouse (RandomRange 100 - 5 , 100 - 15))

What this will do is pick a random number between 95 and 85.

Keepin_green

2013-03-28 23:54:04

I didn't explain myself very well.

What I am trying to do is get the script to run from the yews to the bank and back again, are you able to help me find the code and get this to work? I have teamviewer if required.

Thanks.

tealc

2013-03-29 00:34:46

Due to the distance your going to need a different walking method or add more minimap dtms

My advice would be to make dtms/tpas and walk this path for yews
catherby bank
general store south west of catherby bank
radial walk west 2 or 3 times
untill you find the high level tree icon on the minimap (yews by beehives and flax)