Results 1 to 6 of 6

Thread: Auto Potter Help

  1. #1
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Auto Potter Help

    I've tried several different scripts but I can't seem to find a working way to go about this. I want it to read the number for the health and when it reaches a certain point it presses F1 and refills health. I'm kinda lazy and don't want to make the effort (but I will spend the time to write a macro for it ).



    Eventually once I get this to work I'll make an auto mana potter but right now I just want to get the health thing. So how can I do this? Could I get a sample script. Don't need to write the whole thing or do the work for me. I just need to be pointed in the right direction at least.

  2. #2
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use this:
    SCAR Code:
    While GetColor(ThePointInTheBarWhereYouWantToWaitFor.X, ThePointInTheBarWhereYouWantToWaitFor.Y) = TheColorInThatCoord Do
      Wait(100);
    KeyDown(VK_F1);
    Wait(50);
    KeyUp(VK_F1);


  3. #3
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    1,124
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Do a if statement on if it finds the color of the unfilled bar it will press f1

  4. #4
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Cazax View Post
    Use this:
    SCAR Code:
    While GetColor(ThePointInTheBarWhereYouWantToWaitFor.X, ThePointInTheBarWhereYouWantToWaitFor.Y) = TheColorInThatCoord Do
      Wait(100);
    KeyDown(VK_F1);
    Wait(50);
    KeyUp(VK_F1);
    Ahh! Smart kid. So is the "TheColorInThatCoord" just the color code from the color picker?

    EDIT:

    Nevermind. After looking the script up I understand where you were going with it. Thank you

  5. #5
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    1,124
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Yes.

  6. #6
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    WHAT THE FACK DOES IT MEAN INVALID PARAMETERS?!

    The scar manual needs to be revised. All the codes are screwed up-

    Their code-
    Code:
    GetColor(x, y: Integer): Integer;
    My code-
    Code:
    GetColor(127, 67); 
    //OR
    GetColor(127, 67) = color;
    Both end up being invalid number of parameters. Honestly I've tried so many variations to try and get this to work but these seem the most logical. Why is it having so much trouble doing simple things?!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Your Full Guide to Preparing to Auto [SCAR, SRL, SVN, HowTo Auto]
    By Runescapian321 in forum Outdated Tutorials
    Replies: 71
    Last Post: 10-11-2008, 03:46 AM
  2. Harry Potter Movie Trailer
    By OLDSCHOOLMACRO'ER in forum The Bashing Club / BBQ Pit
    Replies: 5
    Last Post: 09-03-2008, 10:16 AM
  3. W00t Just Saw Harry Potter 5!!
    By itSchRis917 in forum Music, Movies and TV
    Replies: 64
    Last Post: 10-16-2007, 03:03 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
  •