Results 1 to 14 of 14

Thread: Few Questions

  1. #1
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Few Questions

    Im building a script to kill cows and collect hides in fally, and have a few questions.

    1. Should i build multi walking paths into the script?
    2. How should i find the cowhide on the floor?
    3. How would i get to the middle of the pen after fighting? Because you can end up all over the place.
    4. Can i use symbols in radial walking? or do i have to find the color of the symbol? At the moment i use findsymbol but this presents a problem when the two yew symbols are visible.
    5.Is the antiban sufficient?
    SCAR Code:
    procedure WereHuman;
    begin
      if not (LoggedIn) then Exit;
        begin
         case Random(31) of
          0: HoverSkill('attack', false);
          5: AlmostLogout;
          10:  begin
              GameTab(1 + Random(12));
              Wait(1500 + Random(500));
              GameTab(4);
              end;
          15: HoverSkill('random', false);
          20: begin
             case random(16) of
               0: TypeSend('Attack lvls?');
               3: TypeSend('Strength levels');
               5: TypeSend('defence lvls');
               7: TypeSend('prayer levels');
               9: TypeSend('hp?');
               11: TypeSend('only a few more');
               13: TypeSend('mooooo');
               15: TypeSend('And to think its' + TheTime);
             end;
           end;
          25: begin
              GameTab(5);
              Wait(1500 + Random(500));
              GameTab(4);
             end;
          30: begin
              GameTab(1);
              Wait(1500 + Random(500));
              GameTab(4);
            end;
        end;
      end
    end;
    8. Where would i take bitmap cuts from the following picture?


    Edit: i developed a from bank walking path a week ago, but now it isnt working and is producing the error (Could not find Falador Road Color!)

    thanks

  2. #2
    Join Date
    Apr 2007
    Posts
    220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)
    1. You can start with just 1 path and later to make your script less detectable add other paths.
    2. You can use commands like FindObj(just a color with tolerance) or make a dtm and use FindDTM or make a bitmap and use FindBitmap(Tolerance(In)).
    3. Why do you wanna do that? If you go after every fight to the same point and start again you will be detected by JaGeX very soon.
    4. I prefer to use the radialwalking aid by Yakman and find the roadcolor or a bitmap of the grass or sometin(For the bitmap you can use AutoColorThis). And then you can put in the symbols. You just let your script walk with radialwalking and then the symbols as failsafes. Example:

    Code:
    procedure WalkToTanner;
    begin 
    If(Radialwalk(FindRoadColor, 87, 92, 58, 1, 1))then //this is the walking
    begin
    if(FindSymbol(x, y, 'tanner'))then //Now it looks for the tanner symbol after
                                                 //the walking.
    begin
    writeln('We walked to the tanner')
    end else
    begin
    writeln('Cant find the tanner')
    writeln('We walked the wrong way')
    end;
    end;
    end;
    5. If you add more paths than 1 and just use the SRL normal randoms it will be allright.
    8. I dont understand your question

    Fearlesssss

  3. #3
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    na the question 3 was more aimed at helping me exit the pen, to resume a walking path.

    8. Were would i take a bitmap slice of the image to be able to find the bank easily to open and bank?

    Fallador has a different roadcolor to the rest of runescape. So anyhelp on this?

  4. #4
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    1. Not needed.. You don't walk much.

    2. Dtm / Deformed bitmaps - You could use colors, but I don't recommend it.

    3. Are there any symbols in the area. You could use the gate also (doorprofiles).

    4. You have to use the color of the symbol if you are going to use RadialWalk. But if there are 2 symbols; you can use FindSymbols.

    5. I think you could do Random(70) or something. Then you'll have less AntiBan.

    8. Small slices of the window, or just the regular booth (also small slices).
    Hup Holland Hup!

  5. #5
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    The problem is with symbols is because im walking out of falador and their are two yew symbols that go in the opposite direction my characters can get lost, i was thinking maybe geting a color out of the symbol and use that.

    I havent investigated into the doorprofiles yet but i will.

    What about using the below for finding a bank booth?

    SCAR Code:
    {======================================================================
                           Finds and Opens the Bank
                  Modified verison of openbankglass by wizzup?
    =======================================================================}


    procedure OpenAccount;
    var BB :TPoint;
    begin
     if FindColorTolerance(BB.x, BB.y, 10594993, MSX1, MSY1, MSX2, MSY2, 4) then
      begin
        MMouse(BB.x, BB.y, 4, 4);
        if IsUpTextMulti('ank', 'booth', 'ooth') then
        begin
          Mouse(BB.x, BB.y, 0, 0, False);
          Wait(100);
          ChooseOption(BB.x, BB.y, 'uickly');
          FFlag(0);
          Wait(2000 + Random(500));
          BankHides;
        end;
      end
      else
      begin
        if FindObj(BB.x, BB.y, 'ank', 10594993, 14) then
        begin
          Mouse(BB.x, BB.y, 0, 0, False);
          Wait(50);
          ChooseOption(BB.x, BB.y, 'uickly');
          FFlag(0);
          Wait(2000 + Random(500));
          BankHides;
        end;
      end;
    end;

  6. #6
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    I have some functions (released in member section) that can arrange your symbols. Can you tell me which symbol you need of the 2? Maybe I can help you with it .
    To get a color out of a symbol use GetSymbolColor. Or maybe you could use FindSymbolIn?

    The bank function looks nice, but I would take out the FindColorTolerance and add more FindObj with other colors.
    Hup Holland Hup!

  7. #7
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Thanks for the help, I want it to click the yew on the right side. Do you have anything that will help me? or am i best just to find the color and use it in radial walking?



    I cant wait to get members there seems to be alot of things in their that seem useful.

  8. #8
    Join Date
    Nov 2006
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    for the fally road color i think they have is and its called FindFallyRoadColor
    or something like that

  9. #9
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Yes I have some functions that will help you .
    But from that position you could use FindSymbolIn?
    Hup Holland Hup!

  10. #10
    Join Date
    Nov 2006
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea fally road is findfallyRoadColor
    you can do that or make a bitmap and do autocolorthis.

  11. #11
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    @neil I end up at the exit of fally just at the gate. Thanks alot for your help.

    Can someone preread this and just check that its correct i want it to repeat slaughter until its true than when its true move onto the other procedures.

    SCAR Code:
    repeat
                if(SlaughterCow) then
                begin
                   Patience;
                   CollectHide;
                   RunRandoms;
                   if (DangerRange = True) then break;
                end;
            until ((InvFull))

    In terms of the script I only have to tweak a bit of the walking and make a pickup function and i think im done. It has nearly everything you need, failsafes and everything. Should i add anything special into the script?

  12. #12
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Yes, that should do it.. Maybe add a Failsafe?

    For the symbol you could use:

    SCAR Code:
    if FindSymbolIn(x, y, 'special tree', MMCX, MMY1, MMX2, MMY2) then Mouse(x, y, 0, 0, True);

    {OR}

    Color1 := GetSymbolColor(x, y, 'special tree');
    x := MMCX;
    y := MMY2;
    if FindColorSpiral(x, y, Color1, MMX1, MMY1, MMX2, MMY2) then Mouse(x, y, 0, 0, True);

    {OR}

    //You can get the color and use radialwalk.

    {OR}

    //You can use FindSymbols and arrange by distance from the Middle-Right of the MM.
    //That's pretty the same as the FindColorSpiral from above.
    Hup Holland Hup!

  13. #13
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Yeah im going to get the symbol color and than use RadialWalkEx.

    There is so far the following failsafes, if there is over 50 unsuccesful attempts at killing a cow than it terminates the script. Going to add in a timed failsafe to walking. And as far as it goes thats about it really that i can think of.

    Anyways thanks everyone for your help, but its 10.30pm and i got work tomorow at 6am so im hitting the sack.

  14. #14
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Why use RadialWalkEx? If you get the color of the symbol, you don't need tolerance
    Hup Holland Hup!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Few questions.
    By Dervish in forum OSR Help
    Replies: 6
    Last Post: 03-09-2009, 08:43 PM
  2. A few questions
    By RSMacroLegend in forum OSR Help
    Replies: 6
    Last Post: 11-29-2007, 03:23 AM
  3. several questions
    By lnknprkn in forum RuneScape News and General
    Replies: 0
    Last Post: 11-14-2007, 02:37 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
  •