This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Outfitter script
Post Reply
Return to board index
Post by
Xieje
Hello,
I've a small problem with Outfitter script.
When it automatically switch to a outfit from party, solo or raid, i've added this script:
SendChatMessage("Tier 6 activated!", "WHISPER", "Orcish", "Xieje")
But then he whispered me non-stop.. How can u fix it that he just whisper me 1 time.
Thanks in advanced..! :)
Post by
MeanMachine
Well if you're using the scripts outfitter provides you just have to specify the correct event (OUTFIT_EQUIPPED in your case). Also, instead of whispering yourself you could add a message directly to the chat window. I'll give you a quick run through:
1. Define the events that you'll be using via a comment:
-- $EVENTS OUTFIT_EQUIPPED
2. If you're going to use multiple events, put an "if" statement to ensure that your actions will only happen during the event you want:
if event == "OUTFIT_EQUIPPED" then
-- your code here
end
Of course, since you'll only be using OUTFIT_EQUIPPED, that is obsolete.
3. And finally, the action which the script will perform:
DEFAULT_CHAT_FRAME:AddMessage("Tier 6 Activated!")
This will put the message "Tier 6 Activated!" in your chat frame with white color (you can change that).
Here's the final result:
-- $EVENTS OUTFIT_EQUIPPED
DEFAULT_CHAT_FRAME:AddMessage("Tier 6 Activated!")
Simple and clean solution.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.