blueboy / portal

This portal repo is for development purposes only
http://github.com/blueboy/portal
GNU General Public License v2.0
27 stars 24 forks source link

bots have no time to drink/eat #42

Closed kennumen closed 12 years ago

kennumen commented 12 years ago

Bots will eat and/or drink, but will (generally) only stay seated until next Update loop.

Proposed solution: My intended solution would be to have some sort of toggle (boolean) set after drinking and/or eating (you can do both simultaneously) which ignores everything except battle for 20 seconds (and when refined, however long the drink/food lasts). Bool check must be done outside of class AI as preventing movement is as important as preventing any other actions.

kennumen commented 12 years ago

will be introduced alongside pull functionality. After checks and such, quite similar

kennumen commented 12 years ago

functionality added in, all that's left is to cast SetCombatOrder(ORDERS_TEMP_WAIT_OOC) and set the update wait to 21 seconds (i think drinks go up to 30 though, tweaking may be required).

kennumen commented 12 years ago

should be ok: https://github.com/blueboy/portal/commit/e4d2e185cc4e7e2b8f3356ac3491f9fb7288028b