Results 1 to 7 of 7

Thread: a quick question

  1. #1
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default a quick question

    is it faster to use

    {.include srl/srl/skillmining.scar}

    or is it fast jsut to use autocolor

    if it auto color can u point me to a tutorial or just do autocolor for like iron or tin ot something and then explain what u did and how to do it


    ty in advance

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

    Default

    Faster as in execution of the commands by SCAR or faster to learn?
    If you are meaning execution time the difference is negligible.
    Learning... probably negligible also...
    STOP PM'ING ME

  3. #3
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Hobbit View Post
    Faster as in execution of the commands by SCAR or faster to learn?
    If you are meaning execution time the difference is negligible.
    Learning... probably negligible also...
    i mean time but can u point me to a good auto coloring tut so i dont get the

    rock index '3' doesn't exist

    error

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

    Default

    Just use ACA it comes with SRL it's in the scripting tools folder.
    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

  5. #5
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Just use ACA it comes with SRL it's in the scripting tools folder.
    is ACA

    Code:
    if FindObjRock(x, y, varrock_iron)then
        begin
          Inc(u);
          Disguise('Found primary rock... mining');
          Case (Random(3)) of
            0,2 : begin
                    Mouse(x, y, 2, 2, False);
                    Wait(Random(100));
                    ChooseOption('Mine');//otherwise it may Examine
                  end;
            1 :  Mouse(x, y, 2, 2, True);
        end;
    or is it something diffrent

  6. #6
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by J_Pizzle View Post
    is ACA

    Code:
    if FindObjRock(x, y, varrock_iron)then
        begin
          Inc(u);
          Disguise('Found primary rock... mining');
          Case (Random(3)) of
            0,2 : begin
                    Mouse(x, y, 2, 2, False);
                    Wait(Random(100));
                    ChooseOption('Mine');//otherwise it may Examine
                  end;
            1 :  Mouse(x, y, 2, 2, True);
        end;
    or is it something diffrent
    ACA = auto coloring aid. So if you want to make it a Tpa or use an autocolor for It, I'd open that up and give it a go. However, if you want to Fix your current problem I think I might be able to help. Ummm, if I recall maybe your problem is using Varrok_Iron? Try changing the rock type and see what happens. Maybe post all your code because I'm not entirly sure of your problem atm.

    edit:

    ah k found your problem (I think). Its saying your rock index is incorrect yes? If you look in your mining.scar you should have somthing like

    SCAR Code:
    const
      rimmington_Clay   = 0;
      rimmington_Copper = 1;
      rimmington_Tin    = 2;
      rimmington_Iron   = 3;
      rimmington_Gold   = 4;
     
      old_Clay          = 5;
      old_Copper        = 6;
      old_Tin           = 7;
      old_Iron          = 8;
      old_Coal          = 9;
      old_Mithril       = 10;
      old_Adamant       = 11;
     
      varrock_Clay      = rimmington_Clay;
      varrock_Copper    = 12;
      varrock_Tin       = rimmington_Tin;
      varrock_Iron      = rimmington_Iron;

    And underneath it should all be loaded by "LoadRockRecords". My thoughts are they you may have not called "LoadRockRecords" in your script, or that you might have edited mining.scar or something. If thats the case pm and ill send you mine and you can compare if they are similiar. If they're both the same and the LoadRockRecords thing doesnt work then I'm stumped
    “Ignorance, the root and the stem of every evil.”

  7. #7
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    ty is this what u meant

    Code:
    begin
      g:= 0;
      l:=0;
      u:=0;
      j:=0;
      f:=0;
      switches:=1;
      Setup;
      LoadRockRecords;
      DeclarePlayers;
      GraphicsSet := true;
      LoginPlayer;
      repeat
        repeat
          GetTimeRunning;
          ClearDebug;
          Proggy;
          if g = 25 + random(25) then
          break;
          SkillCheck;
          MineTheStuff;
          OreDropping;
          if Players[CurrentPlayer].Booleans[0]=true then
          Gemdroping;
          Inc(g);
        until (g= (Players[CurrentPlayer].Integers[1])) or (not LoggedIn);
        NextPlayer(Players[CurrentPlayer].Active);
      until(AllPlayersInactive);
      Freeeverything;
    end.
    thts just the main loop

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
  •