PetAttack/Defend/Stay/Passive bla bla bla
Ok, so my next project, and I've already started it when I ran into this brick wall is a better pet bar.
I've done some research and it isn't looking good. So far, I've found that all the pet manipulation commands are protected. That is, I probably can't call them while in combat..... Which is precisely when I'd want to.
Now, I'm not trying to make a pet ai or anything. I am just making buttons that do the various actions.
The first thing someone finds when researching this is that there is an attribute type you can give to a secure button of "pet". However, the action is then only a number that corresponds to the pet action bar. That's no good. The best I can do with that is make a copy of the already existing and inadequate pet action bar.
If this is the case, the ability to cast pet abilities is very limiting.
I have not yet tried to CastSpell(xxx,BOOKTYPE_PET) from a pet spellbook. That may or may not work. However, the attack/stay/aggressivemode/passivemode et. al. are not in the spellbook (so far as I have been able to find. Someone may show me that I'm wrong).
Should I work this out, and I'll keep researching until I have to go out to work again, the new bar will be one that has the 6 standard buttons (for stance and attack mode) followed by a variable length bar of buttons that correspond to the pet's activate-able abilities. No setup required, just like all the rest of my mods.
***
Well crap, its Tuesday. I can't do any testing.
Last edited by BDelacroix : 10-07-08 at 07:26 AM.
|