Results 1 to 14 of 14

Thread: until not FindFallyRoadColor ?

  1. #1
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default until not FindFallyRoadColor ?

    Well i've been messing around with RadialRoadWalking and it seems to finally be working for me, but i was wondering how i would go about using until not FindFallyRoadColor, or maybe if not FindFallyRoadColor then.. but when i try either i get errors. I tried until(FindColor(x,y,FindFallyRoadColor,etc) which compiled, but when i ran it all i got was "Could not find Falador Road Color!" and it ended. Is there any way i could do this..?

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

    Default

    The black color (0) is always on the MM. If it cant find the falador road color, it returns 0 as the color and it says "Can't find Falador Road Color".
    Just do something like until(FindFallyRoadColor <> 0). That will only exit the loop if the Falador roadcolor isn't 0.
    I made a new script, check it out!.

  3. #3
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I just realized i said that wrong. I meant untiil (FindFallyRoadColor) and yeah, i kind of thought that was what was happening.

    Edit: I think i get what you're saying and i think it helps me regardless O_o

  4. #4
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Didn't work. When i tried

    SCAR Code:
    repeat
        begin
          RadialRoadWalk(TheColor,320,410,50,2,2);
          FFlag(4);
        end;
      until (FindFallyRoadColor <>0)

    it just kept saying "Could not find Falador Road Color!" and didn't keep walking. I ended it manually after it said it couldn't find it six times.

  5. #5
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    was the fally road color on the map?

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

    Default

    Can I ask you what color TheColor is?
    I made a new script, check it out!.

  7. #7
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nope, because what i was trying to do was make it repeat the RadialWalk that made it go north on the old road, until it found the fally road. Then from there i was gonna have it take the fally road up to the bank.

    Edit: TheColor := FindRoadColor;

    I'm trying to walk it from the Rimmington Mine to Fally east bank, which takes a regular road and then once i reach fally i have to switch it to use the color of the fally road.

    Edit2: And TheColor (or in otherwords, the color of the road i was taking from the start) was still on the map at this point, in case that helps solve the problem.

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

    Default

    You know that the colors change everytime you login and after a loading screen? If you're roadwalking then you shouldn't use TheColor but FindRoadColor.
    I made a new script, check it out!.

  9. #9
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    TheRoadColor:=FindRoadColor;
    repeat
    if(Not(FindMMColor(x,y,TheRoadColor)))then
     TheRoadColor:=FindRoadColor;
    RadialRoadWalk(TheRoadColor,320,410,50,0,1);
    until(RadialRoadWalk(FindFallyRoadColor,320,410,50,0,1))

    TheRoadColor:=FindFallyRoadColor;
    repeat
    if(Not(FindMMColor(x,y,TheRoadColor)))then
     TheRoadColor:=FindFallyRoadColor;
    RadialRoadWalk(TheRoadColor,335,385,50,0,1);
    until(ItIsInTheBank)

  10. #10
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It worked fine up until there though..? And if you mean put FindRoadColor on all of the commands..wouldn't that fill up the debug box with the same number for each time it walked somewhere (or at least, the same color four times or so before the color changed and so on)

    Edit: Thanks Pentti, i think i kind of get it. At the same time it really confuses me though, i'll try it out though and see if that helps me understand.

  11. #11
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Actually, i don't get it. Wouldn't if(not(FindMMColor(x,y,TheRoadColor))) then.. not work, since it would always find the color of the road that i'm on? Because if i'm following a road, i'd still be on the road, and it would find the part (of the road) that was behind or in front of me. And what is "ItIsInTheBank"? I appreciate the help, but i just can't seem to get it

  12. #12
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NewToAutoing View Post
    Actually, i don't get it. Wouldn't if(not(FindMMColor(x,y,TheRoadColor))) then.. not work, since it would always find the color of the road that i'm on? Because if i'm following a road, i'd still be on the road, and it would find the part (of the road) that was behind or in front of me. And what is "ItIsInTheBank"? I appreciate the help, but i just can't seem to get it
    if(not(FindMMColor(x,y,TheRoadColor))) then
    TheRoadColor:=FindRoadColor;

    If the road color has changed when runescape screen is loading (=Cant find the color on minimap), it will get a new color of the road again (TheRoadColor:=FindRoadColor).

    Lol, ItIsInTheBank was just an example, to repeat it until it is in bank...

  13. #13
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay, i get that part now. But...I dunno. I still can't understand the entire thing.. Thanks for all the help though.

  14. #14
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OKAY. I get it now. I used until(FindBank('feb')) for the "ItIsInTheBank" part, lol. Now, it worked perfectly up until around there. First off, when it hit the until(RadialRoadWalk(FindFallyRoadColor,etc..) it gave me Could not find Falador Road Color (which is normal in this case, i believe) and then clicked to the north, but not on the road..It clicked somewhat to the left of it on grass or dirt or something. This got it close enough to the fally road for it to find it on the next try though, so that's fine i think.

    Then, it kept walking north on the fally road, and when it got near the bank it kept going, i let it keep going just in case maybe it'd work, but nope. It went past the bank and i stopped it once the bank was no longer on the screen.

    I'm guessing that has something to do with the FindBank part, so i'll mess around a bit more and see if i can get it to work.

    Much thanks to everyone who helped me, and sorry it took so long for me to understand

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •