SRL Archive - OSR Help

How to use Smart_Drawbox?


Syntax

2012-06-07 08:49:12

Hi guys I thought I'd be able to use this to debug for me where the script is searching for the object here's the code

SearchArea :=IntToBox((MSCX-200),(MSCY-100),(MSCX),(MSCY+150));
SMART_DrawBoxEx(True,SearchArea,clPurple);

Does anybody know how to get this to work? For example with Narcles fighter it shows the blue box where its searching.

Thank you guys :)

putonajonny

2012-06-07 08:54:50

Does that not work for you? Works for me:
Make sure on the buttons at the bottom of SMART you have debug enabled

btw if you put the colour to Random(clWhite) then it uses a random colour every time

J J

2012-06-07 08:59:38

Add this on top
{$i SRL/SRL/misc/paintsmart.simba}

Eg.
program JJsSoulWars;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}
{$i SRL/SRL/misc/paintsmart.simba}
{$i SRL/SRL/misc/debug.simba}

Syntax

2012-06-07 09:01:36

From: J J
Add this on top
{$i SRL/SRL/misc/paintsmart.simba}

Eg.
program JJsSoulWars;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}
{$i SRL/SRL/misc/paintsmart.simba}
{$i SRL/SRL/misc/debug.simba}


Thanks answered my question perfectly, got it to work thanks to you :)