PDA

View Full Version : xs, ys, xe, ye ...



The Un-Named
05-14-2006, 09:36 AM
Yes, I know kane has one but 5+ people on msn wanted help, so by using simple 5 second pictures on paint I managed to help them. To be honest, typing for 15 mins is really tiring. ;)

Ok, lets get started. Before we learn about them, we should know what they do. Basically, when you get somthing like xs, ys, xe, ye, or somthing similar(x1, y1, x2, y2) it probally means coordinates for a box to search in, you get these in FindColor and some DTM finding procedure. There are lots more but we'll use these as an example.

So, where to start? ok, have a look here: http://img275.imageshack.us/img275/5551/xsysxeye6sc.jpg

This shows where the xs, ys, xe, ye box coords start, xs being top right, ys being top left, now, if you move your color picker(it has a little crosshair, will discribe later) to the top right corner and click, this will give us xs, ys. By "top right" or "top left", it means "top right going down" or "top right going left", so, if you click bottom left, xe, ye will be "bottom left going right" and "bottom left going up". If you still having trouble, look below.

Have a look at this: http://img81.imageshack.us/img81/2851/xsysxeye13cd.png

This is basically the imaginary box it will search in, the green lines are where the 2 crosshair's meet. I put some random numbers as xs, ys, xe, ys and haven't noted them, so here they are: 24 : xs, 63 : ys, 36 : xe, 134 ye. STILL having problems? No problem! (Look below...)

So, say you wanted to pick a box over a rock(not adviced to make it this small incase of camera/character movement).. http://img275.imageshack.us/img275/711/xsysxeye26tg.jpg

Basically you just click 2 times where the black crosshair's are. This will give you xs, ys on the first click, xe, ye on the second. This is basically so you don't forget what I written above :D. (Look below for last picture. ;))

Ok, final picture: http://img275.imageshack.us/img275/4542/xsysxeye32kv.jpg

This shows the whole box picked, xs, ys, xe and ye positions and where to click. Now, at the bottom I've manually added some random clicks, the first coords/color picked indicate xs, ys in that order, the second show xe, ye.

If you still having trouble add my msn email: niallcoates (at) msn (dot) com. Last of all, I hope you enjoyed this tutorial.

*Notes: Must get better pictures, these where simply 5 second ones and are not perfect.*

WhiteShadow
05-14-2006, 04:38 PM
I don't like to click links me busy. imgashackaa ;D

Avaphi
05-18-2006, 03:32 AM
Is this like...

function FindRockBounds(var xstart, ystart, sx, sy: integer): boolean;
By: Stupid3ooo
Description:
Finds Rock Boundaries.

If so thanks for the tut :D

The Prince of Randomness?
05-18-2006, 03:40 AM
no. More like If FindColorTolerance(X,y,0,0,1023,767