Results 1 to 19 of 19

Thread: Road Transition Issue

  1. #1
    Join Date
    Oct 2007
    Location
    everywhere you aint lookin
    Posts
    131
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default Road Transition Issue

    Can someone please help im having issues with trasitioning from one road to another... road south of falador to falador to be exact, the script compiles but for somereason radial walk wont change from one road to the other...

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

    Var x,y: Integer;
    begin
     Setupsrl;
     ActivateClient;
     Wait(300);
     if RadialWalk(FindRoadColor, 0, 15, 73, -2, 1) then
      if RadialWalk(FindRoadColor, 310, 360, 73, -2, 1) then
        repeat
         RadialWalk(FindRoadColor, 350, 360, 30+random(30), -2, 1)
           until (FindColor(x,y,FindFallyRoadColor,0,0,725,163));
            repeat
              RadialWalk(FindFallyRoadColor, 0, 10, 30+random(30), -2, 1)
              until FindSymbol(x,y,'bank');




    end.

  2. #2
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    I think that's a place where the road color changes. You use FindRoadColor for the south part, then you have to switch to FindFallyRoadColor.

  3. #3
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah and have you checked the angles your using in RadialWalk? plus just use RadialRoadWalk :P


  4. #4
    Join Date
    Oct 2007
    Location
    everywhere you aint lookin
    Posts
    131
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    ok the angles are good... and i already knew the color changes... and i dont know how radialroadwalk works =-/ i was just using the, FindFallyRoadColor and FindRoadColor, auto colors

  5. #5
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Are you calling the FindFallyRoadColor and FindRoadColor functions before each time you're walking?

  6. #6
    Join Date
    Oct 2007
    Location
    everywhere you aint lookin
    Posts
    131
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    well im home now so ill just post it

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

    Var x,y: Integer;
    begin
     Setupsrl;
     ActivateClient;
     Wait(300);
     if RadialWalk(FindRoadColor, 0, 15, 73, -2, 1) then
      if RadialWalk(FindRoadColor, 310, 360, 73, -2, 1) then
        repeat
         RadialWalk(FindRoadColor, 350, 360, 30+random(30), -2, 1)
           until (FindColor(x,y,FindFallyRoadColor,0,0,725,163));
            repeat
              RadialWalk(FindFallyRoadColor, 0, 10, 30+random(30), -2, 1)
              until FindSymbol(x,y,'bank');




    end.

    Works Fine up until it has to transfer to the fally road

  7. #7
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Try changing this:
    SCAR Code:
    RadialWalk(FindFallyRoadColor, 0, 10, 30+random(30), -2, 1)
    to this:
    SCAR Code:
    RadialWalk(FindFallyRoadColor, 0, 10, 50+random(20), -2, 1)

    Also, try it using RadialRoadWalk. That might not make any difference, but you never know.

  8. #8
    Join Date
    Oct 2007
    Location
    everywhere you aint lookin
    Posts
    131
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    ok it does pretty much the same thing... but better... more accurate(radialroadwalk) and less detectable(extra random)... now it spams the Debug with

    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451
    Falador RoadColor = 7309451

    lol

  9. #9
    Join Date
    Oct 2007
    Location
    everywhere you aint lookin
    Posts
    131
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    I added a wait time and i seems like its not getting past

    (FindColor(x,y,FindFallyRoadColor,0,0,725,163));

    because it just keeps repeating the same Falador RoadColor = 7309451 message and the mouse doesnt move

  10. #10
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    With all those co-ords in your findcolor(), yuck! For thee last 4 params' use

    MMX1, MMY1, MMX2, MMY2
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  11. #11
    Join Date
    Oct 2007
    Location
    everywhere you aint lookin
    Posts
    131
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    lol ok ill try that... those were just the coords thatt had the mini-map



    EDIT: same result =-/ but it does look nicer =-D

  12. #12
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    SRL has built in co-ors for those kinds of things. [There more accurate]
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  13. #13
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    That debug spam means it keeps calling the walking procedure over and over, which in turn keeps calling the FindFallyRoadColor. Sounds like your angles aren't actually right, because although it's finding the road color, it isn't clicking on in.

    Edit: Try replacing your FindColor line with the following:
    SCAR Code:
    until (FindFallyRoadColor<>0);

  14. #14
    Join Date
    Oct 2007
    Location
    everywhere you aint lookin
    Posts
    131
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    SUCCESS!!!! I LOVE YOU FOREVER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! and if you want i can get you an account with 19magic... i as one im not using

  15. #15
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Nah, that's okay. My accounts are almost there. Thanks for the offer, though.

  16. #16
    Join Date
    Oct 2007
    Location
    everywhere you aint lookin
    Posts
    131
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    One more thing... if you know soo much... why arnt you a member................. out of curiosity

  17. #17
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Because I've never gotten around to actually writing a real script. Also, I'm not good with the more advanced things like TPAs.

  18. #18
    Join Date
    Oct 2007
    Location
    everywhere you aint lookin
    Posts
    131
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    OIC... well im working on my 1st one =-D and thanks for all the help

  19. #19
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Glad I could help. And good luck with it.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Yet again another issue
    By Rubix in forum OSR Help
    Replies: 5
    Last Post: 07-13-2008, 01:35 PM
  2. The KYAB Issue..
    By Hugolord in forum Misc. Links and Programs
    Replies: 211
    Last Post: 02-11-2008, 03:22 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
  •