Adblock breaks this site

Scar script questions

Discussion in 'Scar/Simba Help' started by apocalypsefu, Sep 7, 2009.

  1. apocalypsefu

    apocalypsefu Active Member

    Joined:
    Aug 16, 2009
    Posts:
    128
    Referrals:
    0
    Sythe Gold:
    0
    Scar script questions

    Hello, I have recently started to learn scar, and I am making a very basic auto miner. How would I let scar know that the inventory is full and to start dropping everything? And also, how do I let scar know when the char is done mining and is ready to start mining again?
     
  2. radiclerobby

    radiclerobby Apprentice
    Banned

    Joined:
    Mar 9, 2008
    Posts:
    720
    Referrals:
    0
    Sythe Gold:
    0
    Scar script questions

    this procdure that i just made should work

    Code:
    procedure checkanddrop;
    var
    b:integer;
    begin
      if(invfull) then
      begin
        repeat
          dropitem(b);
          inc(b)
        until(b>=28) or (invcount<=2)
        b:=1; {change that to 2 if pick is in first inven slot }
      end;
    end;
     
  3. apocalypsefu

    apocalypsefu Active Member

    Joined:
    Aug 16, 2009
    Posts:
    128
    Referrals:
    0
    Sythe Gold:
    0
    Scar script questions

    Ok well first off this is not a script on real rs, im using it on a private server i set up to start learning off of. And I made this script and have no idea what is wrong with it, all that happens is it starts to cut the tree then the mouse slowly moves to the inventory. Nothing else.

    Code:
    program PrivServCutFletchNDrop;
    {.include SRL/SRL.scar}
    
    var
    b:integer;
    l:integer;
    
    const
    treex= 320;   //set to the trees x position
    treey= 110;   //set to the trees y position
    knifex= 717;  //knife must be in last slot
    knifey= 436;  //same as above
    logx= 665;    //do not touch
    logy= 440;    //do not touch
    
    
    
              
    procedure fletch;
              begin
                   if(invfull) then
                   begin
                        repeat
                              MoveMouse(knifex,knifey);
                              wait(100);
                              ClickMouse(knifex,knifey,true);
                              wait(100);
                              MoveMouse(logx,logy);
                              wait(100);
                              ClickMouse(logx,logy,true);
                              inc(l);
                        until(l=27)
                        l:=1;
                   end;
              end;
              
    procedure cuttree;
              begin
                   MoveMouse(treex,treey);
                   wait(100);
                   ClickMouse(treex,treey,true);
              end;
    
    procedure dropbows;
              begin
                   repeat
                      dropitem(b);
                      inc(b);
                   until(b>=27) or (invcount<=2)
                   b:=1;
              end;
    begin
         repeat
               cuttree;
               if(invfull) then
               begin
                    fletch;
               end;
               dropbows;
         until(false)
    
    end.
    
     
  4. M_A_I_N_FTW

    M_A_I_N_FTW Guru

    Joined:
    Dec 22, 2007
    Posts:
    1,336
    Referrals:
    1
    Sythe Gold:
    0
    Scar script questions

    Hi this is main_ftw from srl.
    If you need help, please stick with the scar community at villavu.com
     
< scar agilty script | Question... >


 
 
Adblock breaks this site