View Single Post
11-13-12, 01:32 PM   #19
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
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 .. :-)
Attached Files
File Type: zip MountRndCat-v0.3.zip (1.5 KB, 425 views)

Last edited by gmarco : 11-13-12 at 02:17 PM.
  Reply With Quote