I tried to use a non protected code:
Code:
-- Protected code
-- CastSpellByName(mounts[category][number])
-- Trying to use a non protected functions
for index = 1, GetNumCompanions("MOUNT"), 1 do
creatureID, creatureName, spellID, icon, active, mountFlags = GetCompanionInfo("MOUNT", index)
if (creatureName == mounts[category][number]) then
CallCompanion("MOUNT", index)
end
end
-- End the non protected code
And it works .. :-)