• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore 3.3.5 command to re-load action bar

Intouch

Respected Member
Hello!

I've been trying to create a command which will allow player to disable and enable pet action bar

So far I coded part which will disable action bar but I don't know how to code part which will reload (enable) action bar from pet.

So for instance, player has pet already spawned and he disabled action bar, then instead of re-spawning pet, he should be able to use command again to reload action bar once again.

Here are some functions I found but I am not sure which one to use and how:

Code:
        bool AddSpellToActionBar(SpellInfo const* spellInfo, ActiveStates newstate = ACT_DECIDE);
        bool RemoveSpellFromActionBar(uint32 spell_id);
        void LoadPetActionBar(const std::string& data);
        void BuildActionBar(WorldPacket* data);
        void SetSpellAutocast(SpellInfo const* spellInfo, bool state);
        void SetActionBar(uint8 index, uint32 spellOrAction, ActiveStates type);
 
Top