I Am Legend
2011-12-11 05:05:27
Any ideas on how to make the person continiouslly follow the the blinking blue arrow on minimap ?


2011-12-11 05:05:27

2011-12-11 05:08:42
2011-12-11 05:09:46
2011-12-11 05:20:12
2011-12-11 05:33:26
2011-12-11 05:41:03
From: Flight
http://villavu.com/forum/showthread.php?t=64368
I even posted a test script on the first page. Lots of people didn't like this idea, so I went no further.
2011-12-11 06:14:20
procedure WalkMarker;
var
X,Y:integer;
begin
DTM1 := DTMFromString('mbQAAAHicY2VgYPBgZmBwA2IfIA4BYlsgDmNkYHCCYh8oZmNjY+CT+AnGIDYI8wP1o2NGLBgMAJnABbs=');
DTM := DTMFromString('mWAAAAHicY2FgYOhiYWDog+JJQHwGKHYOiE9AMbvAeRTMDxRDxoxoGAQAHa4JTw==');
repeat
if FindDTM(BA,x,y, MMX1, MMY1, MMX2, MMY2) then
begin
// Mouse(x,y,5,5,true);
MouseFlag(x,y,5,5,5);
end;
until FindDTM(BA1,x,y, MsX1, MsY1, MsX2, MsY2)
freeDTM(dtm);
freeDTM(dtm1);
end;
2011-12-11 06:16:35
2011-12-11 06:19:45
From: YoHoJo
How was DTM made? What points on the arrow? (It's of the arrow right?)
2011-12-11 06:28:07
2011-12-11 06:30:06
From: YoHoJo
That is actually a pretty DAMN smart idea ROFL WOW!
We can have scripts click the world map which ALWAYS looks the same, and then have a function that types in city names/navigates to specific locations, and then simply follows the blue MM arrow to get there!
I think this idea has some real potential! Woo Woo!
E: Is that your username in the bottom picture? Might want to edit it.
2011-12-11 06:42:26
2011-12-11 08:29:08
2011-12-11 08:42:33
From: DaWu
Even tho this isnt something viable for long walks, I think this has some potential for walks that pretty much just go in straight line.
2011-12-11 19:35:02
From: sjlou
i dont think its a good idea cause you'll be walking in a straight line to the arrow and you might get stuck somewhere.
2011-12-15 13:29:15
for radius:= 60 to 80 do
for angle:= 0 to 360 do
begin
x = radius * cos(angle)
y = radius * sin(angle)
if(FindColor(x, y, BlueArrowColor, x, y, x+1, y+1))then
break
end
Mouse(x, y, 3, 3, True);
FFlag(15);
2011-12-15 14:22:33
From: Yakman
A great way of finding the arrow is doing what RadialWalk does
If you read the source you may notice it uses polar coordinates (radius and angle) rather than x, y like FindColor.
Since the minimap is a circle and the blue arrow always appears around its edge (Except for the very end of the walk which is a special case), we should use some like out of radial walk.
Here's some pseudocode
This searches for the blue arrow only in the Annulus between 60 and 80 pixels in radius.
(map radius is 80 pixels iirc)
for radius:= 60 to 80 do
for angle:= 0 to 360 do
begin
x = radius * cos(angle)
y = radius * sin(angle)
if(FindColor(x, y, BlueArrowColor, x, y, x+1, y+1))then
break
end
Mouse(x, y, 3, 3, True);
FFlag(15);
2011-12-15 14:24:49
2011-12-15 14:33:08
function RadialWalk(TheColor, StartRadial, EndRadial, Radius, Xmod, Ymod: Integer): Boolean;
var
TPA: TPointArray;
I: Integer;
begin
Result := False;
if RadialWalkEx(tpa, MMCX, MMCY, TheColor, 0, 0, 720, 72) then
for i := 0 to High(tpa) do
if MFNF(tpa[i].x, tpa[i].y, -1, 1) then //XMod YMod
begin
FFlag(10);
Result := True;
Exit;
end;
end; 2011-12-16 08:05:07
2011-12-16 08:11:04
From: kyocera
This would only be useful for really simple things though…
2011-12-16 08:15:51
From: kyoceraThis is very true indeed, and would not be the best thing to use for i.e world-walking, but in open areas (or areas that is not walled in like falador) it's great :)
This would only be useful for really simple things though…
2011-12-16 08:58:39
From: Zyt3x
This is very true indeed, and would not be the best thing to use for i.e world-walking, but in open areas (or areas that is not walled in like falador) it's great :)
2011-12-16 12:12:16
2011-12-17 20:41:21
2011-12-17 21:28:37
2011-12-18 01:58:55
From: I Am Legend
Uploaded with ImageShack.us
2011-12-18 21:21:50
2011-12-18 22:26:53
2011-12-20 09:32:27
2011-12-20 21:40:51
2011-12-26 19:23:49
2011-12-27 17:34:31
2011-12-27 17:41:58