PDA

View Full Version : Radial Get Road Color



YoHoJo
06-02-2007, 03:08 AM
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


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

Special Ed
06-02-2007, 07:27 PM
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.

YoHoJo
06-02-2007, 08:33 PM
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.

Special Ed
06-02-2007, 10:52 PM
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?

YoHoJo
06-02-2007, 11:59 PM
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!)

rkroxpunk
06-03-2007, 05:24 AM
finish and release it free plzzz then they won't be begging me to finish mine which just won't work :D.....and yeah ur right about having to have X:=MMCX and blah

YoHoJo
06-03-2007, 05:41 AM
Test it? =0
Please

rkroxpunk
06-03-2007, 08:30 AM
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

YoHoJo
06-04-2007, 04:46 AM
Thanks very much.
Im going to try to add a few things and make it a lot more advanced/better and work more often .

YoHoJo
06-11-2007, 02:27 AM
100% Completely Updated.
Read First Post
Test Pl0x.

nielsie95
06-12-2007, 06:11 PM
Nice, worked great for VW and Draynor.. :)

YoHoJo
06-12-2007, 08:02 PM
=) 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.

Naum
10-02-2007, 04:18 PM
Good help. Worked alot for me Thx YoHoJo

->{Nauman}<-

faster789
10-02-2007, 09:43 PM
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)

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

YoHoJo
10-03-2007, 01:06 AM
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 =).

osmm
12-24-2007, 02:59 PM
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?

Rikje
12-24-2007, 03:29 PM
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 ;)