Syntax
2012-06-09 04:23:05
Just wondering I use waits which are bad if there is competition around (and a bit more detectable) what should i use to detect when the ore is mined? And then move ont o the next one.
Thanks.
Thanks.
2012-06-09 04:23:05
2012-06-09 04:26:47
2012-06-09 05:14:27
From: YoHoJo
My powerminer uses inventory count checks, and a timer (set by user).
If inventory count increases, ore is mined.
If there is competition and someone gets ore before, once timer elapses it will move on to another ore. Ideally user sets timer to appx how long it takes them to mine an ore so not very much time is wasted if someone beats you to the ore.
Also ideally there is no competition so inventory count just always works.
2012-06-09 13:16:48
2012-06-09 13:20:39
FTab(Tab_Inv);//So that it doesn't move the mouse away from the rock to click
StoredInvCount := InvCount;GetMousePos(x, y);
StoredPoint := Point(x, y);Then do:MarkTime(Time);
While(CountColorTolerance(RockColour, StoredPoint.x1 - 10, StoredPoint.y1 - 10, StoredPoint.x1 + 10, StoredPoint.y1 + 10, 10) > 5)do
begin
if(StoredInvCount <> InvCount)then
break;
if(TimeFromMark(Time) > 10000)then
break;
Wait(50+Random(50));
end;
2012-06-09 15:51:48
2012-06-09 17:02:08
From: YoHoJo
Nice way to track the rock, only reason I don't use that is because it only works if the rock is adjacent to you. If your player moves at all after the click/point store then the storepoint will be wrong :(.
2012-06-09 17:11:22
2012-06-09 18:08:00
From: YoHoJo
Nice way to track the rock, only reason I don't use that is because it only works if the rock is adjacent to you. If your player moves at all after the click/point store then the storepoint will be wrong :(.
2012-06-12 09:28:15