Yesterday I asked about the possibility of using a Lua script to control a summon's movement, combat etc, but got no answer, so I suppose there no standard API for that.
Another way to achieve the same result would be to run a script once per "server tick", and find pet-owning players and their pet via a getByGUIDxx() call or by using shared storage to communicate between scripts.
So the question ... is there any existing event/callback that can be made to run once per server cycle?
It doesn't matter what is used to call the script - it could be an autonomous item-related event like decay, or player-related, npc-related, tile-related, creature-related, etc. All that matters is that it's a Lua script that's called once per cycle.
Note: I'm aware this alone doesn't necessarily give me the "hooks" I'm looking for to control creatures, but I have other requirements for the same thing, so it would be a reasonable place to start if there isn't a full creature-control API available.
Another way to achieve the same result would be to run a script once per "server tick", and find pet-owning players and their pet via a getByGUIDxx() call or by using shared storage to communicate between scripts.
So the question ... is there any existing event/callback that can be made to run once per server cycle?
It doesn't matter what is used to call the script - it could be an autonomous item-related event like decay, or player-related, npc-related, tile-related, creature-related, etc. All that matters is that it's a Lua script that's called once per cycle.
Note: I'm aware this alone doesn't necessarily give me the "hooks" I'm looking for to control creatures, but I have other requirements for the same thing, so it would be a reasonable place to start if there isn't a full creature-control API available.