Results 1 to 18 of 18

Thread: Radial Get Road Color

  1. #1
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default Radial Get Road Color

    Updates:
    6-18-07: Changed DDTM and make search box smaller.
    7-1-07: Made it loop more and add less tol each loop to return more acceptable colors. Also Added YoHoRoadWalk

    Here is a new and working updated version of YoHoRadialGetRoadColor.
    It now uses a DDTM (<3 Fakawi and Freddy) and works completely different from the last one.

    I set up a small journey for my character from lumbridge to varock east mine using the function at random stops and manually picking the color to check it.

    This is an edited version of Radial Road Walk, which searches for a DDTM and slowly adds tolerance/area if the DDTM if its not found.
    Code speaks for itself, DDTMs are fun.

    May not work in falador due to very whiteish road color.

    Iv also added YohoRadialRoadWalk whcih works exactly like RRW. It just automatically obtains a road color using RaidalGetRoadColor and uses it to walk on.

    Please test this anywhere you please and show results/errors.
    The parameters are exactly like RRW.

    YoHoRadialGetRoadColor(StartRadial,EndRadial)


    Here are my tests in the order
    Location
    Color Returned
    Ms taken
    Manual Color Picked

    Code:
    Lumby Spawn
    6185062
    31
    Color Picked: 6185062 at (709, 93)
    
    
    General Store
    6185062
    31
    Color Picked: 6185062 at (605, 81)
    
    
    North West Coop
    6316648
    31
    Color Picked: 6316648 at (662, 85)
    
    
    Lumbridge to Draynor Raoad (Neat Wheat)
    6448490
    32
    Color Picked: 6448490 at (651, 104)
    
    
    Draynor Bank
    6316392
    31
    Color Picked: 6316392 at (596, 58)
    
    
    Dryanor To Falador Road
    6316392
    31
    Color Picked: 6316392 at (601, 87)
    
    
    South Falador Road
    6316136
    16
    Color Picked: 6316136 at (617, 71)
    
    
    Falador South Gate(WOW, roadcolor drastically cahnges here!)
    6386811
    31
    Color Picked: 6386811 at (631, 63)
    
    
    Falador Bank
    6386811
    32
    Color Picked: 6386811 at (690, 109)
    
    
    Falador Center
    6386811
    15
    Color Picked: 6386811 at (650, 70)
    
    
    Faador to Babarian(RoadColor Changes Here also)
    6184550
    31
    Color Picked: 6184550 at (656, 68)
    
    Road Between Babarian And Varock
    6447722
    31
    Color Picked: 6447722 at (682, 93)
    
    
    Varock West Bank
    7963012
    16
    Color Picked: 7963012 at (691, 69)
    
    
    Varock Center
    8094598
    31
    Color Picked: 8094598 at (643, 93)
    
    
    Varock East Bank 
    8094598
    16
    Color Picked: 8094598 at (679, 79)
    
    
    Varrock East Mine
    7963012
    31
    Color Picked: 7963012 at (660, 82)


    Thanks To Ron For Some Shit and Shat <3

  2. #2
    Join Date
    Oct 2006
    Location
    C:\Program Files\SCAR 2.03
    Posts
    1,194
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It only finds the road color if the Minimap is perfect North for me, or sometimes in between, I couldn't help but notice, what is the point of declaring x:= MMCX, and y:= MMCY, could you just use both those co-ordinates. Also * I know this is beta * but shouldn't you have z:=1 to 2 do I know its probably just for testing but I thought I should but something constructive in. Otherwise it looks like a good concept but I think there may be something wrong with one of the DTM's.

    For me it either finds the Road color, the Wooden color "like shop floors" or the player dot color of white.
    [FONT="Garamond"][SIZE="3"]
    Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.
    [/SIZE][/FONT][URL="http://www.villavu.com/forum/forumdisplay.php?f=125"][IMG]http://i40.tinypic.com/r1lzdv.jpg[/IMG][/URL]

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    x:= MMCX, and y:= MMCY, could you just use both those co-ordinates?
    Wha?

    Hmm thats weird that it got shop color, was the shop even close to the road?
    It should work from all angles =/ maybe ill remake DTMs.
    Thanks for testing.

  4. #4
    Join Date
    Oct 2006
    Location
    C:\Program Files\SCAR 2.03
    Posts
    1,194
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    x:= MMCX, and y:= MMCY, could you just use both those co-ordinates?
    Wha?

    Hmm thats weird that it got shop color, was the shop even close to the road?
    It should work from all angles =/ maybe ill remake DTMs.
    Thanks for testing.

    why do you have x = MMCX and y = MMCY couldn't you just use MMCX and MMCY instead of declaring them as x and y?

    No problem, and yes I was close to the road. Btw is there any particular reason you are making this?
    [FONT="Garamond"][SIZE="3"]
    Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.
    [/SIZE][/FONT][URL="http://www.villavu.com/forum/forumdisplay.php?f=125"][IMG]http://i40.tinypic.com/r1lzdv.jpg[/IMG][/URL]

  5. #5
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    No you cant i dont think.
    x = MMCX and y = MMCY
    Makes the colorspiral/dtm finder start from those cords and search outward.
    But if i use If findDTM(MMCX,MMCY ect ect)
    I would have to say Mouse(MMCX,MMCY ect) Which would just click the center of the mini map.

    Im making this to get the road color for dynamic DTMs in my VEM which im proably never going to finish.

    (yea thats right watch out wizzup!)

  6. #6
    Join Date
    Jan 2007
    Location
    Not here
    Posts
    1,604
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    finish and release it free plzzz then they won't be begging me to finish mine which just won't work .....and yeah ur right about having to have X:=MMCX and blah
    Sleeping...

  7. #7
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Test it? =0
    Please

  8. #8
    Join Date
    Jan 2007
    Location
    Not here
    Posts
    1,604
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    DTM 2Returned Road Color 7368568 - that one was right.....was standing in gob house

    DTM 2Returned Road Color 3246218 - That was the colour of the ground in cow paddock in lumby was once again standing in gob house

    DTM 2Returned Road Color 2967648 - Was in new Varrock got shop colour floor not the road.....

    Worked pretty dang well, and worked using different angles too keep it up, hoped it helped
    Sleeping...

  9. #9
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Thanks very much.
    Im going to try to add a few things and make it a lot more advanced/better and work more often .

  10. #10
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    100% Completely Updated.
    Read First Post
    Test Pl0x.

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

    Default

    Nice, worked great for VW and Draynor..
    Hup Holland Hup!

  12. #12
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    =) Thanks,
    The only problems iv seen are in falador because the road is pretty white, except for that it works nicely.
    I made make a separate one for falador.

    EDIT:
    Updated again.
    It now loops longer and adds tolerance in smaller increments, creating less acceptance of other way off colors.

  13. #13
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Good help. Worked alot for me Thx YoHoJo

    ->{Nauman}<-

  14. #14
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    im kinda a beginner but why u write for example like;
    faladar bank
    545645
    31(wats does this mean?)
    Color Picked: 6447722 at (682, 93)

  15. #15
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Grave Diggers? 06-12-2007, 01:02 PM look at the date...2 months old...almost 3

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  16. #16
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by faster789 View Post
    im kinda a beginner but why u write for example like;
    faladar bank
    545645
    31(wats does this mean?)
    Color Picked: 6447722 at (682, 93)
    The '31' is the number of milliseconds it took to find the road color.
    This script is kind of old, but thats cool that it still works for some of you =).

  17. #17
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Do you think it would be smart to use this on the grass near draynor willow trees? Right now my willow cutter clicks on fish symbol, and if it won't find willow I want it to walk up some (using DDTM), so would it be smart to use the DDTM where mostly all colors are same?

  18. #18
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no its not that smart to use a DDTM when there a lot of the same colors.
    tough,, you could use the water to walk north

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Useing grass color as road color??????
    By ronny.m.p in forum OSR Help
    Replies: 7
    Last Post: 04-28-2007, 09:42 PM
  2. Need a little bit of on Radial Road Walking
    By Buckleyindahouse in forum OSR Help
    Replies: 8
    Last Post: 02-23-2007, 10:41 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
  •