The first thing to consider is that EVERY millisecond counts! Why? when you run a script for lets say 100 times if you save 2 seconds on it, you'll be saving 200 seconds, that is more than 3 minutes. The thing is if you have a 5% drop rate on golden eggs, every 1000 eggs you get 50, if you optimize it you might get 1500 done in the same time and thus get 65 eggs instead!
the more you optimize the more eggs you get in the same amount of time = more €€€ (yes, € not $ --> Go EU!).
If one is interested in selling the eggs for profit, selling millers cake will get you nowhere since they are cheap in ah, so lets skip the delivery part. just go accept the quest and go get feed, hens and then eggs and so on until infinity, thus never delivering the quest! This saves the time the bots takes to chat to Jenna, deliver and accept!
A second optimization is that if one does not deliver the quest then fresh eggs are useless to us! and after testing I realized if we don't need fresh eggs simply don't even get them! you can leave the fresh egg there that the chicken will go sit there anyway and will lay another egg anyway and if there are any golden eggs laid by the chicken one can collect only those!
The only optimization I have left to test or try to improve are:
- test if luck skills/potions/sigils influence the golden egg drop rate.*
- try to decrease every pause made by the bot in between every targetObject(..) and movement.**
- Try to find exact positions that NEVER cause the bot to get stuck or collide with obstacles.***
** so far I'm working on a waittime_delta script. EDIT: using a lagtime variable that should be modified to suit each machine/situation.
***If using the teleport modded version this becomes no longer an issue.
--------------------------------------
--- Teleport addon --------------
--------------------------------------
This teleport function doesn't seem to be maintained by the developer anymore.
You can find an updated, fixed version here. rock5
Here Will be maintained the teleport addon file.
V1.2 - uses (most)values from addresses.lua instead! V1.1 - includes all three coordinates, at least 1 coordinate is required of the three. plus Minor Fix. V1.0 (removed because of 5 files cap)
--------------------------------------------------------------
--- Teleport Golden Egg Script Waypoint File --------------
--------------------------------------------------------------
Here Will be maintained the Teleport Egg script Waypoint file. (modded from rock5's Miller's Ranch Egg Script)
V1.3 - fixed a problem where the bot gets stuck after delivering and fixed the problem with disabling deliver that wasn't working. V1.2 - Added option to deliver the quest (is set to deliver at 100 eggs), added a few tweaks and a lagtime variable. V1.1