Scar script questions

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

Scar script questions
  1. Unread #1 - Sep 7, 2009 at 12:57 PM
  2. apocalypsefu
    Joined:
    Aug 16, 2009
    Posts:
    128
    Referrals:
    0
    Sythe Gold:
    0

    apocalypsefu Active Member

    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?
     
  3. Unread #2 - Sep 9, 2009 at 2:19 AM
  4. radiclerobby
    Joined:
    Mar 9, 2008
    Posts:
    720
    Referrals:
    0
    Sythe Gold:
    0

    radiclerobby Apprentice
    Banned

    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;
     
  5. Unread #3 - Sep 9, 2009 at 8:38 PM
  6. apocalypsefu
    Joined:
    Aug 16, 2009
    Posts:
    128
    Referrals:
    0
    Sythe Gold:
    0

    apocalypsefu Active Member

    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.
    
     
  7. Unread #4 - Sep 20, 2009 at 5:25 PM
  8. M_A_I_N_FTW
    Joined:
    Dec 22, 2007
    Posts:
    1,336
    Referrals:
    1
    Sythe Gold:
    0

    M_A_I_N_FTW Guru

    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... >

Users viewing this thread
1 guest


 
 
Adblock breaks this site