Results 1 to 12 of 12

Thread: problem

  1. #1
    Join Date
    Dec 2006
    Location
    Birmingham/UK
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default problem

    how do i fix this ? im trying my best


    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    var mes,mess:string;
    procedure messges;
    begin
    mes:='27'
    end;
    procedure Closing;
    begin
    MMouse  (487, 39,2,3);
    wait(400+random(30))
    Cmouse(487, 39,3,3,true)
    end;
    procedure makebows;
    begin
    messges;
     mouseitem(28,true);
      mouseitem(27,true);
     MMouse (265, 409,3,3)
     wait(1000+random(400))
     CMouse (265,409,3,3,false)
     wait(1000+random(400))
    end;
    begin
    SetupSRL;
    Repeat
    OpenBank;
    DepositAll;
    FixBank;
    Withdraw(1, 1, 0);
    closing;
    wait(4000+random(30))
    makebows;
    wait(4000+random(30))
    sendkeyssilent (mes+chr(13))
    wait(48000+random(100))
    until (false)
    end.

  2. #2
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Diagnose, then post the problem, so I can help you. Otherwise, if you don't tell me the problem I'm unable to do anything.

    It's been a while... but I'm BACK!!!

  3. #3
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    edit: should compile now lol
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}


    const  mes='27';

    procedure makebows;
    begin
     mouseitem(28,true);
     mouseitem(27,true);
     MMouse (265, 409,3,3)
     wait(1000+random(400))
     getmousepos(x,y);
     Mouse(x,y,1,1,false)
     wait(1000+random(400))
    end;

    begin
      SetupSRL;
      Repeat
        OpenBank;
        DepositAll;
        FixBank;
        Withdraw(1, 1, 0);
        closebank;
        wait(4000+random(30))
        makebows;
        wait(4000+random(30))
        typesend(mes)
        wait(48000+random(100))
      until (isfkeydown(12))
    end.

    I changed a few things, any questions ask.
    What else do you want it to do?

  4. #4
    Join Date
    Dec 2006
    Location
    Birmingham/UK
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default just befor

    (isfkeydown(12)) what does this do? i always use false because carries on forever

  5. #5
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    whats in spots 28 and 27?

  6. #6
    Join Date
    Dec 2006
    Location
    Birmingham/UK
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default i have tht problem with the edited version u made =[

    Failed when compiling
    Line 5: [Error] (17666:8): Duplicate identifier '' in script

  7. #7
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    i forgot to take out
    var mes:string;

  8. #8
    Join Date
    Dec 2006
    Location
    Birmingham/UK
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Line 3: [Error] (17664:10): is ('=') expected in script
    Failed when compiling =[ another lol oh dear i am bad

  9. #9
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    my fault, editing my other post now

    until(iskeydown(12)) means if f12 key is held down when it gets to the end of the loop it will stop

    whats in spost 27 and 28?

  10. #10
    Join Date
    Dec 2006
    Location
    Birmingham/UK
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok am gonna post this in free scripts i added a little bit to finish it do u think i should add anti randoms for this kind of script ?

  11. #11
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    changing the waits to ftwait wouldn't hurt, although this is in bank so not really needed

  12. #12
    Join Date
    Dec 2006
    Location
    Birmingham/UK
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks anyhow i can learn from this now to make more detailed scripts then hopefully make that earth rune crafter ive been wanting

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problem...
    By Blumblebee in forum OSR Help
    Replies: 4
    Last Post: 12-28-2008, 07:22 AM
  2. help big problem
    By goblanca in forum OSR Help
    Replies: 3
    Last Post: 05-19-2007, 10:41 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
  •