Thread Tools Display Modes
02-03-07, 04:16 PM   #1
Inokis
EQInterface Staff
 
Inokis's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 156
Chat Event Pet Feeder Script help

This script works fine if you type in the pet name manually, as it appears in the Chat Frame (substituting UnitName('Pet') for the actual name):

Code:
function PetActionEXPBar_FeedPet()
	local petname = UnitName("Pet");
	if ( event == "CHAT_MSG_SPELL_PERIODIC_SELF_BUFFS") then
		if arg1 == ( "UnitName('Pet') gains 1 Happiness from Feed Pet Effect." ) then
		PetEXPBarFeedText:Show();
		PetEXPBarFeedText:SetText("1 Loyalty Gain");
		end
	end
end
Is there any way to insert the local 'petname' variable into the Arg 1 conditional and have it match the chat frame text?
__________________
If not yourself, who can you count on...
  Reply With Quote
02-06-07, 07:21 PM   #2
Inokis
EQInterface Staff
 
Inokis's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 156
If anyone has any ideas or workarounds for making this work, feel free to chime in.
__________________
If not yourself, who can you count on...
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Chat Event Pet Feeder Script help


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off