Results 1 to 13 of 13

Thread: Agility.scar

  1. #1
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default Agility.scar

    Updated for the new agility courses. And I also added in abbreviations for ease of use but kept old ones for compatibility for any other scripts that may use it.

    SCAR Code:
    //-----------------------------------------------------------------//
    //--               Scar Standard Resource Library                --//
    //-----------------------------------------------------------------//

    // * function GetCourseXP(Course : String) : Extended; //by Mad Cow

    {*******************************************************************************
    function GetCourseXP(Course: String): Extended;
    By: Mad Cow and Hobbit
    Description: Returns the experience for a certain agility course.
    Course list:
      adl = agility dungeon ledge
      gc = gnome course
      bc = barbarian course
      pc = penguin course
      wec = werewolves course
      wic = wilderness course
      aac = ape atoll course
      ap = agility pyramid
      dklg = dorgesh-kaan long grapple
      dkdl = dorgesh-kaan double long
    *******************************************************************************}


    function GetCourseXP(Course: string): Extended;
    var
      CourseXP: Extended;
    begin
      case LowerCase(Course) of
        'adl', 'agility dungeon ledge': CourseXP := 22.5;
        'gc', 'gnome course': CourseXP := 86;
        'bc', 'barbarian course': CourseXP := 153.2;
        'pc', 'penguin course' : CourseXP := 540;
        'wec', 'werewolves course': CourseXP := 540;
        'wic', 'wilderness course': CourseXP := 571.5;
        'aac', 'ape atoll course': CourseXP := 580;
        'ap', 'agility pryamid': CourseXP := 1014;
        'dklg', 'dorgesh-kaan long grapple' : CourseXP := 1429;
        'dkdl', 'dorgesh-kaan double long' : CourseXP := 2750;
      end;
      Result := CourseXP;
    end;
    STOP PM'ING ME

  2. #2
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Why bother? Haha, SRL isn't much good for agility. Unless we plan on just doing it for scriptors.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  3. #3
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hobbit View Post
    Updated for the new agility courses. And I also added in abbreviations for ease of use but kept old ones for compatibility for any other scripts that may use it.

    SCAR Code:
    //-----------------------------------------------------------------//
    //--               Scar Standard Resource Library                --//
    //-----------------------------------------------------------------//

    // * function GetCourseXP(Course : String) : Extended; //by Mad Cow

    {*******************************************************************************
    function GetCourseXP(Course: String): Extended;
    By: Mad Cow and Hobbit
    Description: Returns the experience for a certain agility course.
    Course list:
      adl = agiliy dungeon ledge
      gc = gnome course
      bc = barbarian course
      pc = penguin course
      wec = werewolves course
      wic = wilderness course
      aac = ape atoll course
      ap = agility pyramid
      dklg = dorgesh-kaan long grapple
      dkdl = dorgesh-kaan double long
    *******************************************************************************}

    function GetCourseXP(Course: string): Extended;
    var
      CourseXP: Extended;
    begin
      case LowerCase(Course) of
        'adl', 'agiliy dungeon ledge': CourseXP := 22.5;
        'gc', 'gnome course': CourseXP := 86;
        'bc', 'barbarian course': CourseXP := 153.2;
        'pc', 'penguin course' : CourseXP := 540;
        'wec', 'werewolves course': CourseXP := 540;
        'wic', 'wilderness course': CourseXP := 571.5;
        'aac', 'ape atoll course': CourseXP := 580;
        'ap', 'agility pryamid': CourseXP := 1014;
        'dklg', 'dorgesh-kaan long grapple' : CourseXP := 1429;
        'dkdl', 'dorgesh-kaan double long' : CourseXP := 2750;
      end;
      Result := CourseXP;
    end;
    Very good job Hobbit, but since these are constant, why not just put them in the include as comments?

    Quote Originally Posted by Nava2 View Post
    Why bother? Haha, SRL isn't much good for agility. Unless we plan on just doing it for scriptors.
    What'cha talkin' 'bout son? I'm in the process of creating my second agility script.

  4. #4
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    Quote Originally Posted by EvilChicken! View Post
    Very good job Hobbit, but since these are constant, why not just put them in the include as comments?
    What do you mean?

    @Nava, cause i was looking through SRL and noticed it wasn't fully updated.
    STOP PM'ING ME

  5. #5
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    agility scripts can be better than ever... with reflection so can be in a good use.

  6. #6
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    I mean that you should just write the XP for each lap as a comment instead of that function which no-one will use anyway, because they just need to know it once.


    Understand?

  7. #7
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    SCAR Code:
    'adl', 'agiliy dungeon ledge': CourseXP := 22.5;

    Typo.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  8. #8
    Join Date
    Apr 2008
    Location
    Northwest england
    Posts
    1,179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    EC! its so you can remember the function and do var:=getcoursexp('adl');
    instead of having to open the include.
    Blank!

  9. #9
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Waddo View Post
    EC! its so you can remember the function and do var:=getcoursexp('adl');
    instead of having to open the include.
    And tell me why should'nt we just open up the include ONCE, add the XP you want to your script as a comment, and be happy that you just saved
    • a slight bit of memory
    • the annoyance of having to include a useless skill to your script
    • a slightly faster compiling time


    Understand what I mean now?

  10. #10
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    I agree with EC, comments would be useful. Its like some of the other parts of SRL, there are useless things that won't be used except once to find a number. ALTHOUGH I wish I had the FindXP function for my fletcher before I made a better one...
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  11. #11
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Quote Originally Posted by EvilChicken! View Post
    And tell me why should'nt we just open up the include ONCE, add the XP you want to your script as a comment, and be happy that you just saved
    • a slight bit of memory
    • the annoyance of having to include a useless skill to your script
    • a slightly faster compiling time


    Understand what I mean now?
    Want to save memory?

    TheXP := 0;

    There.

  12. #12
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    SCAR Code:
    'adl', 'agiliy dungeon ledge': CourseXP := 22.5;

    Typo.
    That was Mad Cow

    @ EC and Nava

    I'm merely updating an old function already in SRL. Wether of not it you deem it useful or useless is seemingly unimportant to the devs considering it is already included.
    STOP PM'ING ME

  13. #13
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Hobbit View Post
    That was Mad Cow

    @ EC and Nava

    I'm merely updating an old function already in SRL. Wether of not it you deem it useful or useless is seemingly unimportant to the devs considering it is already included.
    Smart ass.

    I still think it should be constants.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Agility for jr. members plz
    By slackeru in forum RS3 Outdated / Broken Scripts
    Replies: 3
    Last Post: 03-03-2009, 08:44 PM
  2. Ape atoll agility
    By ConneX in forum RS3 Outdated / Broken Scripts
    Replies: 7
    Last Post: 09-29-2008, 05:15 AM
  3. Mouse agility!
    By deviney in forum RS3 Outdated / Broken Scripts
    Replies: 10
    Last Post: 09-16-2007, 06:28 PM

Posting Permissions

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