View Full Version : RadialRoadWalk?!
Eicca
11-03-2007, 01:04 PM
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
11-03-2007, 01:15 PM
try to make the radial 65, instand of 70.
on my computer 70 mess up sometimes.
Eicca
11-03-2007, 01:24 PM
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
11-03-2007, 01:30 PM
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
11-03-2007, 01:41 PM
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
11-03-2007, 01:51 PM
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
11-03-2007, 02:23 PM
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
11-03-2007, 02:35 PM
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
11-03-2007, 02:44 PM
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
11-08-2007, 10:34 PM
Or just use symbols? FindSymbol(x,y,'Symbol')
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.