Results 1 to 7 of 7

Thread: Walking??????

  1. #1
    Join Date
    Aug 2006
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Walking??????

    Well im making my Willow Wanker which is my first script to walk and i just dont get how to do it. Lets say i try to find the color of a tree on minimap and i use
    SCAR Code:
    If(findcolorspiralTolerance(x,y,mmtreec,MSX1,MSY1,MSX2,MSY2,20))Then
      mmouse(x,y,3,3)
    How do i tell it to clikc thier and wait would i just tell it to wait(500) as a guess to the time it takes to walk thier until going onto cutting procedure or what
    Im reealy cunfused please help

  2. #2
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    If(FindColorSpiralTolerance(x,y,mmtree,msx1,msy1,msx2,msy2,15))Then
    Begin
      Mouse(x,y,8,8,True) //will click on the tree symbol
      Flag; //<-- will wait until flagon minimap disapears, then start next
              //procedure

    does that help?

  3. #3
    Join Date
    Sep 2006
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Also possible to use FFlag function :

    SCAR Code:
    {*******************************************************************************
    procedure FFlag(Distance: Integer);
    By: Wizzup? / WT-Fakawi.
    Description: Waits until Flag is within "Distance" distance.
    *******************************************************************************}

    procedure FFlag(Distance: Integer);
    var
      XK, YK, XL, YL: Integer;
    var
      T1, T2: Extended;
    begin
      T1 := GetTickCount;
      repeat
        T2 := GetTickCount;
        Wait(100);
        if HumanCircleFlag(Distance) then
          Break;
        Wait(100);
        if T2 - T1 > 30000 then
        begin
          if FindColor(XL, YL, 255, MMX1, MMY1, MMX2, MMY2) then
            MouseFindFlag(XL, YL, 1, 1)
          else Mouse(MMCX, MMCY, 0, 0, True);
          break;
        end;
        if Random(20) = 1 then IdleTime(500, 1000, 0.01);
      until (not FindColor(XK, YK, 255, MMX1, MMY1, MMX2, MMY2));
    end;

  4. #4
    Join Date
    Aug 2006
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Junior View Post
    SCAR Code:
    If(FindColorSpiralTolerance(x,y,mmtree,msx1,msy1,msx2,msy2,15))Then
    Begin
      Mouse(x,y,8,8,True) //will click on the tree symbol
      Flag; //<-- will wait until flagon minimap disapears, then start next
              //procedure

    does that help?
    Do i need include for flag procedure and how do i make it clikc on minimap it only looks for it on screen does the findcolorspiral only look for the color within the normal screen?

  5. #5
    Join Date
    Aug 2006
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bibi26 View Post
    Also possible to use FFlag function :

    SCAR Code:
    {*******************************************************************************
    procedure FFlag(Distance: Integer);
    By: Wizzup? / WT-Fakawi.
    Description: Waits until Flag is within "Distance" distance.
    *******************************************************************************}

    procedure FFlag(Distance: Integer);
    var
      XK, YK, XL, YL: Integer;
    var
      T1, T2: Extended;
    begin
      T1 := GetTickCount;
      repeat
        T2 := GetTickCount;
        Wait(100);
        if HumanCircleFlag(Distance) then
          Break;
        Wait(100);
        if T2 - T1 > 30000 then
        begin
          if FindColor(XL, YL, 255, MMX1, MMY1, MMX2, MMY2) then
            MouseFindFlag(XL, YL, 1, 1)
          else Mouse(MMCX, MMCY, 0, 0, True);
          break;
        end;
        if Random(20) = 1 then IdleTime(500, 1000, 0.01);
      until (not FindColor(XK, YK, 255, MMX1, MMY1, MMX2, MMY2));
    end;
    For this one where would i put the color and would it look for it on the minimap......and what if i need it to click twice would i jsut put the second same procedure right after it?

    i put it in main loop and in script and i get this error when i try to run Line 87: [Error] (16209:11): Duplicate identifier 'FFLAG' in script is thier an include i need?

    Sorry for double post

  6. #6
    Join Date
    Apr 2006
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    places you put msx1,msy1,msx2,msy2 are the x1,y1,x2,y2 of where it searches for the color. Also, to use fflag, dont put the whole thing, just put FFlag(...)

  7. #7
    Join Date
    Aug 2006
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by dontpanic View Post
    places you put msx1,msy1,msx2,msy2 are the x1,y1,x2,y2 of where it searches for the color. Also, to use fflag, dont put the whole thing, just put FFlag(...)
    What do u mena by dont put whole thing jsut put procedure name?
    could u tell me on msn realy quick mine is crazyirishman84@hotmail.com im on now

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. walking help?
    By Rubix in forum OSR Help
    Replies: 0
    Last Post: 07-15-2008, 02:35 AM
  2. Walking
    By imskate182 in forum OSR Help
    Replies: 4
    Last Post: 12-20-2007, 05:18 AM
  3. Map walking
    By boberman in forum OSR Help
    Replies: 1
    Last Post: 12-06-2007, 12:48 AM
  4. help with walking
    By Jake_453 in forum OSR Help
    Replies: 7
    Last Post: 05-15-2007, 12:49 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
  •