View Single Post
Unread 11-13-12, 01:32 PM   #19
A Chromatic Dragonspawn
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 155
I tried to use a non protected 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 the non protected code
And it works .. :-)
Attached Files
File Type: zip (1.5 KB, 266 views)

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