SRL Archive - Research & Development Lounge

RadialRoadWalk?!


Eicca

2007-11-03 09:04:28

Procedure ToTheShop;
begin
writeln('>> Going to the shop')
SetRun(True);
RadialRoadWalk(RoadColor,0,45,70,0,0); // First walk, road at north-east.
end;
Why does this procedure click the position for like 5 times? There is no loops for this procedure.

Rikje

2007-11-03 09:15:37

try to make the radial 65, instand of 70.
on my computer 70 mess up sometimes.

Eicca

2007-11-03 09:24:48

Damn, it worked :D Thanks alot, +rep and added you to credits.

EDIT: Is there btw procedure/function that finds the shops floor color on minimap? The road color finder works fine. If there is no such procedure/function, then how should I make the script find the color?

n3ss3s

2007-11-03 09:30:20

Eicca, rofl, if you'd looked to the code of RadialRoadWalk you'd see it includes MouseFindFlag and that clicks the pos until flag is present.

So, you clicked so far that only a lil part of the flag was visible.

Sorry people, no aliens here!

Eicca

2007-11-03 09:41:24

From: n3ss3s
Eicca, rofl, if you'd looked to the code of RadialRoadWalk you'd see it includes MouseFindFlag and that clicks the pos until flag is present.

So, you clicked so far that only a lil part of the flag was visible.

Sorry people, no aliens here!

Lol, I only readed WT-Fakawis tutorial and he recommended the 70. But please answer my question, how can i make the script autodetect the color of the shops floor?

mastaraymond

2007-11-03 09:51:07

From: Eicca
Lol, I only readed WT-Fakawis tutorial and he recommended the 70. But please answer my question, how can i make the script autodetect the color of the shops floor?
You need to write a 'autocolor'. There are a few tutorials on those to ;). It basicly, finds all the colors with a certain tolerance, then it bruteforces the right color out of it :).

Eicca

2007-11-03 10:23:43

Okay, I went to ~10 servers and got these:

Red: 114 Green: 83 Blue: 53
Red: 84 Green: 54 Blue: 29
Red: 86 Green: 56 Blue: 31
Red: 112 Green: 81 Blue: 51


What should I do now?

mastaraymond

2007-11-03 10:35:10

From: Eicca
Okay, I went to ~10 servers and got these:

Red: 114 Green: 83 Blue: 53
Red: 84 Green: 54 Blue: 29
Red: 86 Green: 56 Blue: 31
Red: 112 Green: 81 Blue: 51


What should I do now?

Hmm, first of all read some tutorials, then try to understand AutoColor.scar in your include folder ;). I can't make you an autocolor :rolleyes:.

Eicca

2007-11-03 10:44:18

Hmm.. I think that I'll just leave it to manual, anyway you can pick the color from the starting point of the script, so it is not that big deal :D

otoole123

2007-11-08 17:34:33

Or just use symbols? FindSymbol(x,y,'Symbol')