Log in

View Full Version : Dragging crosshair.



Heavenzeyez1
10-22-2012, 05:36 PM
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:
http://www.upload.ee/image/2766012/bug.png
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
10-22-2012, 05:41 PM
Blame stupid RS updates. This is normal.

Heavenzeyez1
10-22-2012, 05:43 PM
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
10-22-2012, 05:44 PM
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
10-22-2012, 05:45 PM
What about inventory coords etc? For example existsitem doesn't seem to work?

~Eerik.

litoris
10-22-2012, 05:48 PM
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
10-22-2012, 06:09 PM
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.