SRL Archive - OSR Help

Painting on Smart


Sax

2013-05-12 09:29:49

I want to paint a box centered in my player while running the script. How do I do that?

Flight

2013-05-12 09:45:51


SMART_DrawBox(IntToBox(X1,Y1,X2,Y2));

You'll have to change those to the coordinates of your box. Probably it will be something like "IntToBox(MSCX-20,MSCY-20,MSCX+20,MSCY+20)" which will draw a 40x40 box around the center of your screen (assuming that's where your player is located).

Also you'll need to include the SmartGraphics file like so:

For OSR:

{$i SRL-OSR/SRL/misc/SmartGraphics.simba}
For EoC:

{$i SRL/SRL/misc/SmartGraphics.simba}

Sax

2013-05-12 09:53:09

Thank you for the fast reply. We were of a great help :D

Hoodz

2013-05-12 10:28:10

I got the exact x and y coords. If you need them just say it :)