View Single Post
Unread 11-13-12, 01:32 PM   #19
gmarco
Premium Member
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 97
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, 227 views)

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