SRL Archive - OSR Help

Need Help with coordinates and general information


RlagkRud

2013-05-13 01:00:22

Hey guys!

So I'm trying to implement radial walk and mousebox but I'm having trouble guessing what the exact angle,radius or x,y coordinates are for the point of interest.

Also the maximum radius for the minimap, size of the game window, etc.

Is there a template or some kind of guideline that has this information?
It would be reallly helpful.

Thanks a lot!

x[Warrior]x3500

2013-05-13 01:24:18

there are multiple tools that should help you with radial walking. look on a tutorial and the author should point u towards one of these tools.

as far as x/y coords go, simply use the color picker tool or just move your cursor to the spot you wish to extract an x/y from. on the bottom left of the simba program, there is a little section that constantly updates your mouse's x/y, so u can get x/y like that.

The Mayor

2013-05-13 01:30:49

From: RlagkRud
Hey guys!

So I'm trying to implement radial walk and mousebox but I'm having trouble guessing what the exact angle,radius or x,y coordinates are for the point of interest.

Also the maximum radius for the minimap, size of the game window, etc.

Is there a template or some kind of guideline that has this information?
It would be reallly helpful.

Thanks a lot!


There are coordinates for different portions of the screen built into the SRL include to make scripting easier. The runescape screen is essentially broken down into 3 parts:
  • MainScreen (MS)
  • MainInventory (MI)
  • MiniMap (MM)

Each of these have coordinates for the 4 corners (X1, Y1, X2, Y2) and a center point (CX, CY).

For example, the coordinates of the MainScreen would be MSX1, MSY1, MSX2, MSY2. The center is written as MSCX, MSCY.

Let's say I wanted to find a colour on the screen, but only search in the inventory. I could use something like:


FindColorTolerance(x, y, 1342737, MIX1, MIY1, MIX2, MIY2, 45)

This would search for the colour 1342737 (with a tolerance of 45) in the inventory, and save the point where it finds the colour to x and y.

Flight

2013-05-13 01:31:58

Check out this guide by ZephyrsFury.

RlagkRud

2013-05-13 14:57:37

From: The Mayor
There are coordinates for different portions of the screen built into the SRL include to make scripting easier. The runescape screen is essentially broken down into 3 parts:
  • MainScreen (MS)
  • MainInventory (MI)
  • MiniMap (MM)

Each of these have coordinates for the 4 corners (X1, Y1, X2, Y2) and a center point (CX, CY).

For example, the coordinates of the MainScreen would be MSX1, MSY1, MSX2, MSY2. The center is written as MSCX, MSCY.

Let's say I wanted to find a colour on the screen, but only search in the inventory. I could use something like:


FindColorTolerance(x, y, 1342737, MIX1, MIY1, MIX2, MIY2, 45)

This would search for the colour 1342737 (with a tolerance of 45) in the inventory, and save the point where it finds the colour to x and y.


This is really quite useful, thanks! So do I type it as, for example MI200, MI300 etc, or just leave it as MIX1, MIY1 and it'll start at 0, 0? And I assume that it starts from the top left as the starting coordinates?

From: Flight
Check out this guide by ZephyrsFury.


I already checked out that guide which is why I'm asking here ;P
He doesn't state the radius of the minimap but he does show the angles. I need to know the radius to properly implement it.


Also it'd be great if someone could explain color tolerance speed to me. I know what color tolerance is but how do you stick a speed on that?

The Mayor

2013-05-13 16:33:11

From: RlagkRud
This is really quite useful, thanks! So do I type it as, for example MI200, MI300 etc, or just leave it as MIX1, MIY1 and it'll start at 0, 0? And I assume that it starts from the top left as the starting coordinates?


Sorry, I realised you were asking for radial walk help after I posted. All I read was "size of the game window…is there a template" :(

It is useful to know nonetheless!


P.S.You may find the RadialWalkAid useful.

RlagkRud

2013-05-13 18:16:03

From: The Mayor
Sorry, I realised you were asking for radial walk help after I posted. All I read was "size of the game window…is there a template" :(

It is useful to know nonetheless!


P.S.You may find the RadialWalkAid useful.


Whaaat? noooo what you told me as useful too.
Was the example I typed above correct? (for the MI stuff)

The Mayor

2013-05-13 18:24:40

From: RlagkRud
Whaaat? noooo what you told me as useful too.
Was the example I typed above correct? (for the MI stuff)


Not quite, just leave them as is. In the include MIX1 and MIY1 etc. are defined as constants:


const
MIX1 = 547;
MIY1 = 202;
MIX2 = 737;
MIY2 = 466

So instead of remembering all of those coordinates, you just write MIX1, MIY1 etc.

PS: You can Ctrl + click a SRL function and it will open up the portion of the include where that function is located, so you can see how it works :)

RlagkRud

2013-05-14 19:22:17

From: The Mayor
Not quite, just leave them as is. In the include MIX1 and MIY1 etc. are defined as constants:


const
MIX1 = 547;
MIY1 = 202;
MIX2 = 737;
MIY2 = 466

So instead of remembering all of those coordinates, you just write MIX1, MIY1 etc.

PS: You can Ctrl + click a SRL function and it will open up the portion of the include where that function is located, so you can see how it works :)


alright! thanks a bunch for your help!
on a side note, thanks for your alcher too ;)