Results 1 to 4 of 4

Thread: Painting on Smart

  1. #1
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default Painting on Smart

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

  2. #2
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Simba Code:
    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:
    Simba Code:
    {$i SRL-OSR/SRL/misc/SmartGraphics.simba}
    For EoC:
    Simba Code:
    {$i SRL/SRL/misc/SmartGraphics.simba}

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  3. #3
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

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

  4. #4
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

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

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
  •