SRL Archive - Help

Dragging crosshair.


Heavenzeyez1

2012-10-22 13:36:17

Hi guys!

So after long time I decided to write a script.
But I'm doing it in the web client but I'm getting a problem.
While dragging Simba's crosshair over to web client, it doesn't make the screen go normal size.
Here's the picture explaining it:
You can see from the picture that the crosshair also includes the upper things such as Home/Support etc, but that screws up the coords.

Thanks in advance,
~Eerik.

Markus

2012-10-22 13:41:57

Blame stupid RS updates. This is normal.

Heavenzeyez1

2012-10-22 13:43:48

Thanks,
But how am I then supposed to test my script in web client? o.O

~Eerik.

E: Because (0,0) is now (0, 50)

litoris

2012-10-22 13:44:22

All functions work with an offset of -50 on y coordinates after you do SetupSRL, which accounts for those buttons at the top. Any coordinates you take manually need to be offset by that much. Getcolor also tends to screw up, so watch out.

Heavenzeyez1

2012-10-22 13:45:50

What about inventory coords etc? For example existsitem doesn't seem to work?

~Eerik.

litoris

2012-10-22 13:48:34

From: Heavenzeyez1
What about inventory coords etc? For example existsitem doesn't seem to work?

~Eerik.


It should? It works with SMART, that I know. Maybe you should test with SMART? It's actually better to use SMART because the colors are somewhat different in the web client.

Heavenzeyez1

2012-10-22 14:09:38

Ooh, it works with smart o.O
That's really interesting and weird.
It's harder to test now, but w/e. It still works. :)

Thanks guys!
~Eerik.