@Rock5
This works ok, thanks. Ive noticed that too, when playing manually. That delay sucks really. What problems did you get with clicking ? Did you use a function to click on coordinates or how ?rock5 wrote:You could try something like this;Unfortunately the required delay between the first and second hen seems to be different than the required delay between the second and third hen. It seems that whatever wait value I use causes wasted time. I've been trying continuously clicking the hen until an egg appears but that introduces other problems.Code: Select all
while player:target_Object(112955,8500) do -- Check for hens player:target_Object(112958,2000,true) -- Fresh Eggs player:target_Object(114931,2000,true) -- Gold Eggs end
Well i managed to make a fast version of feeding and collecting eggs. I just dont know if thats correct and maybe cause trouble over running a long time.
Code: Select all
player:target_Object(_objname, _waittime, _harvestall, _donotignore);
_waittime = time to wait if the object takes time to open in ms. (Optional, default is 0)
Code: Select all
while player:target_Object(112955,500) do -- Check for hens
while player:target_Object(112958,500) do -- Fresh Eggs
yrest(7000);
end
end
while player:target_Object(114931,500) do -- Gold Eggs
yrest(2000);
end
A player doing it active ingame needs 39-40 seconds and my new version does it 39 seconds too. Your 2 versions need both 51-52 seconds.
This means 11 seconds per 3 eggs, which i won. It is still not the best solution, cause after the last egg, it waits those 7 seconds bevore it starts moving. The 7 seconds is the time from collecting egg 1 to starting to feed hen 2. Its a minimum time, before it starts searching for a hen, which can be clicked. I just dont know, if checking every half second for hen/egg might cause any trouble... You might tell me.
The timings are like:
Time between feeding 1 and feeding hen 2 is around 14.6 seconds
Time between feeding 2 and feeding hen 3 is around 16.6 seconds
AND
Time between feeding one hen and egg being available is always 6 seconds.
What do you think ? I think it can be done maybe alittle better code wise(more elegant), speed not anymore.