Results 1 to 16 of 16

Thread: Been Trying To Get This To Work : /

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

    Default Been Trying To Get This To Work : /

    Well first off I am glad to know that there is a large helpful community here to support people like me that can't simple get things to work correctly. Well anyways I have already read tutorials on RadialWalk and have set it up according to the way it is set up in other scripts that I have looked through. Now when I try and run it, first off it doesn't activate the client even when I have Activeclient or whatever the function is, I forget! Anyways, well it grabs the colors correctly and everything but it refuses to place a flag on the mini-map in the alloted area. Does anyone know why it does not place the flag? I have tried to use different variations of RadialWalk usage I have seen in other scripts and they don't work for me Oh and guys, some of you are amazing scripters! I love running Wizzup's Ess miner because it works perfectly and some others out there.

    Oh and what I am trying to use this for is to make an air crafter than can do more than 4 runs (seems like the average with other's). And so I can craft the 10k ess I have because of Wizzup now

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

    Default

    why not post your script. if it doesn't work dont worry no leechers will try to fix it.

  3. #3
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    post or pm a sample its hard to fix what you cant see
    "your always where you supposed to be"

  4. #4
    Join Date
    Jul 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok sorry I didn't post anything lol, just can't figure out why none of the flag placing procedures work, I will finish the rest of it before I send it to you guys, like add banking etc. But thank you for at least responding : D

    SCAR Code:
    procedure Fally1;
    begin
     MakeCompass('n')
     RadialRoadWalk(FindFallyRoadColor, 198, 200, 50, 1, 1);
    end;

    Sorry that is the only one I have right now since obviously the Radial walk isn't working for me. I have another issue, which is kinda strange, sometimes it doesn't even make the compass north, it just says it executed but nothing happens, and I am starting with the compass off at an angle to try and force it to fix it, so who knows what is wrong : / Oh and I did call SetupSRL, Fally1 and ActivateClient in the main loop so don't think those could be the issues, don't really know what is wrong... I had it with Flag; after it before but still didn't work, except ONCE I got it to click but then I tried adding a second radialwalk and stopped working again

  5. #5
    Join Date
    Jul 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well this is very interesting, it is now clicking however once I add another RadialWalk after it, it gets messed up and doesn't always go to the correct spot and sometimes doesn't even finish, just does 1 of them and stops... I am sooooooo lost

  6. #6
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    please post all of what you have...
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  7. #7
    Join Date
    Jul 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    And again it stopped working... I am so confused... ok lol all I have now is me trying to get the walking from bank to work, so litterly like 10 lines!

    SCAR Code:
    program AirCrafter;
    {.include SRL/SRL.scar}

    procedure Fally1;
    begin
     MakeCompass('n');
     RadialRoadWalk(FindFallyRoadColor, 195, 197, 55, 1, 1);
    end;

    begin
     SetupSRL;
     ActivateClient;
     Fally1;
    end.

    Should I make the parameters for the RadialWalk wider than a total of 3? like instead of 195, 197 make it like 190, 200?

  8. #8
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    wow that is way to small, unless you are having them start on an axact spot and getting it to the exact same angle every time then make it bigger
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  9. #9
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I make mine around 20. And yeah, that's probably the problem. Also, when scripts don't do anything when you call ActivateClient, it's usually because you didn't select RS with the crosshair.

  10. #10
    Join Date
    Jul 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well I am trying to make the walking as accurate as possible and I ALWAYS drag the crosshair onto RS before I run a script, sometimes multi times just incase, trust me it is something I didn't forget, and again the reason it so short is because I am just trying to even get walking to work, later I will add the actual crafting and banking. I think it is a sensible way about doing it, so you have no ideas why it doesn't want to function properly?

  11. #11
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I can tell you 20 is way more safe than 3 pixels. Just give it a shot. If it doesn't work perfectly try adding or subtracting 5. Just keep testing until it works perfectly.

  12. #12
    Join Date
    Jul 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well I HAD them working until it would get lost outside Falador because of stupid road colors and then my inside fally road walking stopped working, so I am trying to reenter my radialwalks again, I am writing down my stuff on paper so I can remember them, oh and a distance of about 10 worked perfectly actually... It went right where I wanted it to until the whole color mess up...

    Thanks for telling me to expand the pixel range also. You guys are just proving what I said in my first post, alot of helpful people in this community

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

    Default

    Just a thought, if I ever get this to work, can DTMs be used to locate the air altar maybe? same with maybe getting to the altar accurately, I just read YoHoJo (or whatever his name is I forget *Sorry*) and thought it was an interesting idea, maybe others have already used it I don't know, just been thinking about it. I am gonna keep having to rewrite it until I can get all accurate, working Radials...

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

    Default

    Don't double post but yes DDtm's are a great idea for walking.

  15. #15
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Here are some ideas you can use to get (somewhat) to the altar if radial walking doesn't work.
    1. The bank symbol (not recommended, it gets covered) with something along the lines of x - 20, y + 40
    2. The midpoint of the two tree symbols (FindSymbolIn), and if it can only find one, figure out if it's the left or right symbol, and adjust the x and y accordingly.
    3. DTM (or DDTM) of a rock and tree together, and adjust x and y accordingly. Will probably need to be found with rotation.

    And for altar finding, take a look at this function I have made. FindColorsTolerance is a really cool procedure. (change "if(IsUpTextMulti('', '', ''))then" to whatever the uptext is) Oh and this will work IF the light coming out of the altar is red. If not, won't work.
    SCAR Code:
    function MiddleOfPoints(P: TPointArray): TPoint;
    var
      I: Integer;
    begin
      for I:= 0 to Length(P) - 1 do
      begin
        Result.x:= Result.x + P[I].x;
        Result.y:= Result.y + P[I].y;
      end;
      Result.x:= Result.x div Length(P);
      Result.y:= Result.y div Length(P);
    end;

    function FindAltar(var x, y: Integer): Boolean;
    var
      Time: Integer;
      P: TPointArray;
      MiddlePoint: TPoint;
    begin
      MarkTime(Time);
      repeat
        wait(10);
        FindColorsSpiralTolerance(MSCX, MSCY, P, 5136766, MSX1, MSY1, MSX2, MSY2, 15);
      until(Length(P) > 5) or (TimeFromMark(Time) > 15000)
      if(not(TimeFromMark(Time) > 15000))then
      begin
        MiddlePoint:= MiddleOfPoints(P);
        MMouse(MiddlePoint.x, MiddlePoint.y, 10, 10);
        wait(10);
        if(IsUpTextMulti('', '', ''))then
        begin
          Result:= True;
        end;
      end;
    end;

  16. #16
    Join Date
    Jul 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just wondering, why does it have to be red light coming out of the altar? Oh and I am gonna stick with radial to walk I think but to enter, craft and exit the altar I am gonna try something like that, thank you.

    Oh and I am spending a bit of time also working on a script for buying silk and selling it in... well I forget the name of where you sell it but I am working on that and RadialWalk is working somewhat for me now. I think basically have it down now Just need to figure out how to make it enter the altar, craft and exit the altar and for the silk script, how to find the guy because he is walking around...

    I am back to using 3 pixel width for radialwalk because the wider one got lost easily, so now my next issue is, I am not sure what to fill in for thecolor for the road outside of Falador, I tried simply FindRoadColor but it wouldn't then place a flag...

    SCAR Code:
    program AirCrafter;
    {.include SRL/SRL.scar}

    procedure Fally;
    begin
     MakeCompass('n');
     RadialRoadWalk(FindFallyRoadColor, 193, 195, 54, 1, 1);
     RadialRoadWalk(FindFallyRoadColor, 197, 199, 65, 1, 1);
     RadialRoadWalk(FindRoadColor, 177, 179, 60, 1, 1);
    end;

    begin
     SetupSRL;
     ActivateClient;
     Fally;
    end.

    Can anyone explain to me how I can make it search for the west yew symbol south of Falador and make it place a flag on or near it, I have never read about the usage of a function like that.

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. 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
  •