Results 1 to 13 of 13

Thread: Why won't this work.

  1. #1
    Join Date
    Jul 2007
    Posts
    137
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Why won't this work.

    SCAR Code:
    {.include srl/srl.scar}
    var
      yewcolor1 : integer;
    begin
      yewcolor1:= DTMFromString('78DA634C666260D0626440061E218A0CDC401' +
           'A24FA1F080029050557');
    repeat
      wait(random(1000)+4000);
      if finddtm(yewcolor1,x,y,0,0,509, 330) then
      begin
        mmouse(x, y, 0, 0);
        wait(200+random(100));
        if isuptext('Yew') then
        begin
          mouse(x,y,0,0,true);
          wait(200+random(200));
        end;
      end;
    Until invcount = 28;
    end.

    why doesn't that work?

    it moves to a tree, then starts clicking on game tab 4.
    Do not propose an idea of peculation without evidence of such action.

    http://cashcrate.com/704591 click here and make money!

  2. #2
    Join Date
    Mar 2007
    Location
    Eugene, Oregon
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im not a scripter but i have read a little about them, In the variables section try removing the space in the "Yewcolor1 (here): Integer" And try adding an "=" so it looks like this "Yewcolor:= integer". Sorry if im wrong but its an attempt.

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

    Default

    Its prolly something wrong with DTM

    but no the Var is fine how it is.

    vars with := is when you are asigning a value you it.

    so if you wan A to equal 99 you would put

    A:= 99;
    STOP PM'ING ME

  4. #4
    Join Date
    Aug 2007
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    just an idea but try getting rid of the (until invcount function) dont think the tabs are reliable now the library is OOD.

  5. #5
    Join Date
    Mar 2007
    Location
    Eugene, Oregon
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh thank you. That makes sense. Im still learning

  6. #6
    Join Date
    Jul 2007
    Posts
    137
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    as you can see, i didn't use gametab. And there is nothing wrong with the dtm, it goes to the tree, then to the inventory tab...
    Do not propose an idea of peculation without evidence of such action.

    http://cashcrate.com/704591 click here and make money!

  7. #7
    Join Date
    Aug 2007
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    did you at least TRY to take that loop out at the bottom? I'm pretty sure that function opens up gametab4 to see if the invent is full... just an idea like i said.

  8. #8
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    until has to have a () in it so
    SCAR Code:
    {.include srl/srl.scar}
    var
      yewcolor1 : integer;
    begin
      yewcolor1:= DTMFromString('78DA634C666260D0626440061E218A0CDC401' +
           'A24FA1F080029050557');
    repeat
      wait(random(1000)+4000);
      if finddtm(yewcolor1,x,y,0,0,509, 330) then
      begin
        mmouse(x, y, 0, 0);
        wait(200+random(100));
        if isuptext('Yew') then
        begin
          mouse(x,y,0,0,true);
          wait(200+random(200));
        end;
      end;
    Until( invcount = 28);
    end.

    you could just use until invfull cus it does the same thing.

  9. #9
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Yep, use invfull. I'm pretty sure it still works, so you could test it too.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  10. #10
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What Dude said, InvCount and InvFull try to open up Gametab(4) to count the items in the inventory, but gametab isn't working. Wait for SRL 4.

  11. #11
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Why not making your own counter?

    When it finds the tree etc., add one to a variable.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  12. #12
    Join Date
    Aug 2007
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I got one right ....I must be learning somthing then!

  13. #13
    Join Date
    Jul 2007
    Posts
    137
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, if that works
    Do not propose an idea of peculation without evidence of such action.

    http://cashcrate.com/704591 click here and make money!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how come this does not work?
    By takeout in forum OSR Help
    Replies: 3
    Last Post: 09-14-2007, 03:44 PM
  2. how come this does not work?
    By takeout in forum OSR Help
    Replies: 2
    Last Post: 09-11-2007, 09:19 PM
  3. Been Trying To Get This To Work : /
    By Speci in forum OSR Help
    Replies: 15
    Last Post: 07-21-2007, 12:17 PM
  4. how does rc work
    By del_signo in forum OSR Help
    Replies: 4
    Last Post: 05-10-2007, 02:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •