Here's a little example:
Code
function self_command(command) if command:lower() == 'bp70' then if pet.name == 'Ifrit' then windower.send_command('input /pet "Flaming Crush" <t>') elseif pet.name == 'Garuda' then windower.send_command('input /pet "Predator Claws" <t>') end end end
Then you would just type (or make a macro) "//gs c bp70" to use it. Obviously you would want to add all the Avatars and you could probably make it more efficient with a table but it's just a quick example.