Results 1 to 4 of 4

Thread: Using the Animating Command

  1. #1
    Join Date
    Jun 2012
    Location
    Toronto, CA
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Using the Animating Command

    I ran across the Animating command earlier today and it looks like it would solve a few problems in my script when it misclicks by chance. I'm just not sure how to set up the box to be looking at the character model. What I tried to do was this:
    Simba Code:
    var
     x, y: integer;
     box: TBox;
    begin
     box:= ([MSCX-15, MSCY+40], [MSCX+15, MSCY-40]);

    Simba Code:
    repeat
      Wait(1000);
     until(Animating(box, 5000, 2000)

    And when I do I get this error:Closing parenthesis expected at line 91(the line the box:= is on). I think I'm getting it because I'm just defining the box incorrectly, but I'm not entirely sure.
    Any help would be greatly appreciated

    Thanks,
    Mezz

  2. #2
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Define it like this:
    Simba Code:
    box := IntToBox(MSCX-15, MSCY+40, MSCX+15, MSCY-40);

    IntToBox converts those co-ordinates into a box, which is essentially what you want to do.

  3. #3
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    box := IntToBox(1, 2, 3, 4);



    EDIT: 'd

    Left the tab open for too long.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  4. #4
    Join Date
    Jun 2012
    Location
    Toronto, CA
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the help I love both of your tutorials, they've helped me a lot
    Thanks again,
    Mezz

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
  •