Results 1 to 4 of 4

Thread: Basic function help?

  1. #1
    Join Date
    Jan 2007
    Location
    Nomming bits in your RAM
    Posts
    385
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Basic function help?

    Hello all.

    Just a few quick questions about SCAR functions:
    1. rs_getCompassAngleDegrees; is still the function used to get the current compass angle in degrees, correct? And all I need to include for it is SRL/SRL.scar?

    2. How would one get the remainder of a division operation? Does SCAR have a built-in equivalent of %?

    ex.
    95 / 10 (integer) = 9. How do I get the 5 out of that? >.<

    Thanks,
    Macro

  2. #2
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    For #1, that should be correct, however I do not really script for RuneScape so I am not sure.

    For #2, mod gives the remainder.

  3. #3
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  4. #4
    Join Date
    Jan 2007
    Location
    Nomming bits in your RAM
    Posts
    385
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright. Thanks!

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
  •