Results 1 to 4 of 4

Thread: How to use Smart_Drawbox?

  1. #1
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default How to use Smart_Drawbox?

    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
    Simba 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

  2. #2
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    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
    Last edited by putonajonny; 06-07-2012 at 12:59 PM.

  3. #3
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

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

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

    Script source code available here: Github

  4. #4
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    Quote Originally Posted by J J View Post
    Add this on top
    {$i SRL/SRL/misc/paintsmart.simba}

    Eg.
    Simba Code:
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •