Results 1 to 3 of 3

Thread: Is GetAllLevels outdated?

  1. #1
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default Is GetAllLevels outdated?

    Description of GetAllLevels:
    Simba Code:
    procedure GetAllLevels;
    Bsy: WT-Fakawi & ZephyrsFury
    Description: Sets all 25 skilllevels to Players.Level[1..25]

     *  1   8   15
     *  2   9   16
     *  3  10   17
     *  4  11   18
     *  5  12   19
     *  6  13   20
     *  7  14   21
     *  22 23   24

     * 1   = attack
     * 2   = strength
     * 3   = defence
     * 4   = range
     * 5   = prayer
     * 6   = magic
     * 7   = runecrafting
     * 8   = hitpoints
     * 9   = agility
     * 10  = herblore
     * 11  = thieving
     * 12  = crafting
     * 13  = fletching
     * 14  = slayer
     * 15  = mining
     * 16  = smithing
     * 17  = fishing
     * 18  = cooking
     * 19  = firemaking
     * 20  = woodcutting
     * 21  = farming
     * 22  = construction
     * 23  = hunting
     * 24  = summoning
     * 25 =  dungeoning


    This is the debug script i ran
    Simba Code:
    Program Rawr;

    {$i SRL\SRL.scar}

    Var
      I : Integer;

    procedure DeclarePlayers;
    Begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := '';
      Players[0].Active := True;
      Players[0].Level[8] := 88;
    End;

    Begin
      Cleardebug;
      SetupSRL;
      DeclarePlayers;
      GetAllLevels;
      for I := 0 to 25 do
      Begin
        Writeln( 'Skill ' + IntToStr( i) + ' is ' + inttostr(Players[CurrentPlayer].Level[i]) + '.');
      End;
    End.

    And here are the result


    BTW This is my mates account, I just asked him to log in for me and he is not aware of this.:P
    Last edited by Main; 08-10-2011 at 10:30 PM.
    Oh Hai Dar

  2. #2
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    0..24 btw

    There are consts for it to.
    Simba Code:
    SKILL_ATTACK        = 0;
      SKILL_DEFENCE       = 1;
      SKILL_STRENGTH      = 2;
      SKILL_HITPOINTS     = 3;    SKILL_HP = SKILL_HITPOINTS;
      SKILL_RANGE         = 4;
      SKILL_PRAYER        = 5;
      SKILL_MAGIC         = 6;
      SKILL_COOKING       = 7;
      SKILL_WOODCUTTING   = 8;
      SKILL_FLETCHING     = 9;
      SKILL_FISHING       = 10;
      SKILL_FIREMAKING    = 11;
      SKILL_CRAFTING      = 12;
      SKILL_SMITHING      = 13;
      SKILL_MINING        = 14;
      SKILL_HERBLORE      = 15;
      SKILL_AGILITY       = 16;
      SKILL_THIEVING      = 17;
      SKILL_SLAYER        = 18;
      SKILL_FARMING       = 19;
      SKILL_RUNECRAFTING  = 20;
      SKILL_HUNTER        = 21;
      SKILL_CONSTRUCTION  = 22;
      SKILL_SUMMONING     = 23;
      SKILL_DUNGEONEERING = 24;

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

  3. #3
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    THANKS MATE

    Someone should update it in the current srl.
    Oh Hai Dar

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
  •