Log in

View Full Version : Somebody school me on this v. guildraper



Browning1981
09-09-2006, 01:04 AM
Im having a problem getting close enough to the ladder when coming back from guild. Cheesehunk helped me a little and I think he got tired of my noobness:confused:

Anyhow, he edited the walking part and in which got me closer to the ladder, but not cl;ose enough. I need to move west like 2 more inches in order for this to work. Can anybody help me out and explain this part of the code, or go ahead and do it for me?

repeat
c:=c+1;
RadialWalk(MapOreColor,200,290,45,-1,0);
if FindColor(x,y,LadderColor,MMX1,MMY1,MMX2,MMY2) then break;
if c=15 then begin Logout; exit; end;
until( FindColor(x,y,LadderColor,MMX1,MMY1,MMX2,MMY2) or(c>15) )
IdleTime(3000, 1000, 1.0);
If FindColor(x,y,LadderColor,MMX1,MMY1,MMX2,MMY2) Then Mouse(x,y,2,2,True);

Dankness
09-09-2006, 01:36 AM
Im having a problem getting close enough to the ladder when coming back from guild. Cheesehunk helped me a little and I think he got tired of my noobness:confused:

Anyhow, he edited the walking part and in which got me closer to the ladder, but not cl;ose enough. I need to move west like 2 more inches in order for this to work. Can anybody help me out and explain this part of the code, or go ahead and do it for me?


repeat
c:=c+1; // Counts Attempts
RadialWalk(MapOreColor,200,290,45,-1,0); // Walks Minimap ORE Color, Degress 200-290 at Distance of 45
if FindColor(x,y,LadderColor,MMX1,MMY1,MMX2,MMY2) then
break; // If Find LadderColor on MINIMAP then Break Repeat Loop
if c=15 then begin Logout; exit; end; // If C > 15 then Logout cuz your lost
until( FindColor(x,y,LadderColor,MMX1,MMY1,MMX2,MMY2) or(c>15) ) // if Ladder Colors or C then exit
IdleTime(3000, 1000, 1.0);
If FindColor(x,y,LadderColor,MMX1,MMY1,MMX2,MMY2) Then Mouse(x,y,2,2,True);


just so you know RadialWalk Degress are like

0 North, 90 East, 180 South, 270 West

so 200-290 is like Southeast to atiny tiny biit Northwest searching in a Clockwise Manner

hope that helps

Browning1981
09-09-2006, 01:46 AM
Ok well Im just beginning so im not sure. When i run the script, once im full of coal it clicks west toward the ladder once, but doesnt take me far. Cheesehunk got me further when he changed those numbers. I just want to move west like 2 inches on screen.

Im stuck here and need to have the ladder in view for it to work for me. So I need to figure out how to make him move more westward. Make sense?


http://img361.imageshack.us/img361/8315/stuck2bm6.th.jpg (http://img361.imageshack.us/my.php?image=stuck2bm6.jpg)