Results 1 to 5 of 5

Thread: just check this procedure

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

    Default just check this procedure

    SCAR Code:
    procedure roadwalking;
    var x,y,i,logedout,roadcolor: integer;
    begin
      roadcolor:=autocolorthis(Bitmap[0],6,MMX1,MMY1,MMX2,MMY2)
      i:=0;
      logedout:=0;
      repeat
        if radialroadwalk(roadcolor,356,365,65,1,1) then
        begin
          disguisescar('found road');
          flag;
          wait(300+random(300));
        end else;
        i:=i+1;
        if (i>=20) then
        begin
          logout;
          logedout:=logedout+1;
          i:=0;
          Loginplayer;
          if logedout>=8 then
          begin
            nextplayer(false);
            logedout:=0;
          end;
        end;
      until(finddtm(dtm[0],x,y,MMX1,MMY1,MMX2,MMY2))
      repeat
        if finddtm(dtm[0],x,y,MMX1,MMY1,MMX2,MMY2) then
        begin
          Mouse(x,y,2,2,true);
        end else;
        i:=i+1;
        if (i>=20) then
        begin
          logout;
          logedout:=logedout+1;
          i:=0;
          Loginplayer;
          if logedout>=8 then
          begin
            nextplayer(false);
            logedout:=0;
          end;
        end;
      until(false)
    end;

    it works and all but its the first attempt iv had at walking so i want to know if its good or suggest what could help. i know the until(false) is there its not done but i would like to know if this looks correct. i would like checks on the failsafes mostly but any help would be appreciated.

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    1. Maximum tolerance for the Road bitmap should be at least 50.

    2. You could have used FindRoadColor instead.


    From what I saw, it looked good.. (I think). I don't have a lot of time to look at your logic behind the I think, but it is probably good there

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

    Default

    well i tried find road color and its for al-karid and it found it 1/20 times so i used autocolor this insted. it seems to work. thanks for the tolerance suggestion though

  4. #4
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    FindRoadColor is for the normal roadcolor.
    And is it just me or aren't you telling where to start it, or how it walks, or the DTMs it uses?
    I made a new script, check it out!.

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

    Default

    this is not the whole procedure there is symbol walking before this but i wanted to seperate that from everything else. and find road color didnt work
    so i used autocolorthis and it works much better so stop talking about that.
    this isnt the whole script.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Procedure TypeSendRandom & Procedure AutoResponder!
    By Ultra in forum Research & Development Lounge
    Replies: 12
    Last Post: 01-08-2008, 07:04 PM
  2. Replies: 8
    Last Post: 05-24-2007, 11:57 PM
  3. Procedure that calls random procedure?
    By Secet in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 03:56 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
  •