View Single Post
02-23-05, 06:40 PM   #1
Random
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 93
Toggling Pet Abilites

hey everyone, Im trying to make a mod that automatically toggles the hunter pet abilities "Growl" and "Cower" on entering a PvP battle.

Code:
if (event == "PLAYER_REGEN_DISABLED") then
	
	if (UnitIsPlayer("target")) then

			if (name == "Growl") and (autoCastEnabled) then
				TogglePetAutocast(DunnoWhatGoesHere);
			end
	end
end
that's about all I have...

and I tried adding the following code to Rauen's PetDefend because he had a premade toggle function that already worked but my code didnt work I guess....

Code:
-- Toggle Growl On PvP Enter
	if (event == "PLAYER_REGEN_DISABLED") then
		
		if (UnitIsPlayer("target")) then	
			
			PetDefend_Config.Growl = false;
		else
			PetDefend_Config.Growl = true;
		end
	end
so anyway, I would like it very much if somone could help me out here, I perfer to start from stratch but if u get Rauen's premade toggle thing to work Im cool with that too.

Thanks
  Reply With Quote