GSpellTimer
GSpellTimer, which Glider used extensively to measure cooldowns and the lot, has been “replicated” – well, not quite – to be used once more by the general public.
Now, the version by the BabBot team can be found here: http://pastie.org/723230
They implement every requirement for a properly working GSpellTimer, yet it doesn’t work. The main mistake is made in the isReady(); method – it doesn’t return true or false properly.
Now, the fix is quite easy. Make a bool IsReady, and use get/set{} to return true or false according to the situation. Make that go along with a bit of modifications in the core class, and you’re off.
I’ll post up a finite and properly working GSpellTimer class soon.
Distance and facing
Many people are having a hard time on determining the distance and the facing required from one X,Y,Z to another, for example to a mob or to a waypoint.
However, both can be quite easy. We’ll be using Vector3D to determine the distance, and Shynd’s has written an excellent post on movement which includes how to face objects. I’ll be providing some code to determine the distance between two points today.
Accessing the ObjectManager
So lately I’ve been reading up on every thread I could get my hands on on GD/MMOwned which would point me in the right direction to access WoW’s Object Manager.
If you wonder what the Object Manager – hereinafter OM – is, it’s a linked list which contains information regarding all objects in the game world.
Obviously, we are interested in having some information of the objects around us when making any sort of WoW bot/tool. There are plenty of threads on MMOwned about people asking how to get their X,Y,Z co-ords. The OM is where you begin, get the OM, iterate through it, and then you will be able to find any object’s X,Y,Z, among other things.
As Shynd said before:
Other people, before you and me, have done the really hard work and we’re privileged enough to simply ride along atop their findings. Never–and I mean never–let their work go unappreciated.
And I agree to this hands down. We’re in a state of welfare really.