For all you people that don't know what "Gag" is, it's an addon that plays a custom sound and an emote if you type, for instance, /dkp.
You can get it here!
------------------------
So, anyways, today I was playing around with Gag, I tried editing it with my small knowledge with LUA.
What I was trying to do, is make a custom emote, which plays "Run To The Hills" by Iron Maiden.
Well, it worked, so now, all you Gag lovers, I'm going to show you a guide!
I'm going to try and make this guide as clear as possible.
-------------------------
[Gag1] Step One
Find the [.mp3] sound file you want to use for your emote.
Navigate to the file, "Gag_DefaultSoundPack" in "World of Warcraft/Interface/AddOns".
Open up the "Sounds" file.
Place your [.mp3] sound file inside there.
[Gag2] Step Two
Go back to "Gag_DefaultSoundPack".
Right click on gag_pkg.lua, select "Open With", and select, "Notepad" or any other simple text program like Wordpad.
Scroll down to the very bottem.
[Gag3] Step Three
Copy this code and place it at the very bottem.
Code:
gag_data["rtth"] = {
["text"] = "* Run to the hills! *",
["msg"] = "is running from the settlers!",
["emote"] = "gasp",
["category"] = "Music",
["file"] = dir.."rtth.mp3",
};
[Gag4] Step Four
Code:
gag_data["rtth"] = {
Replace "rtth" with whatever you what the emote to be.
Example: If you make it "hai", then type /hai it activate the sound and emote.
[Gag5] Step Five
Code:
["text"] = "* Run to the hills! *",
Replace, "Run to the hills!" with whatever you want it to say above your head when you activate the emote.
[Gag6] Step Six
Code:
["msg"] = "is running from the settlers!",
Replace "is running from the settlers!" with whatever you want it to say in orange text in the chat box.
It will put your name before "is running from the settlers!".
[Gag7] Step Seven
Code:
["emote"] = "gasp",
Replace gasp with whatever the emote you want to play when you activate your custom emote. So since mine says "gasp", it will make me type, "/gasp" when I activate my emote.
[Gag8] Step Eight
Code:
["category"] = "Music",
Replace "Music" with whatever category you want your emote to be in for the Mini-Map icon.
[Gag9] Step Nine
Code:
["file"] = dir.."rtth.mp3",
Replace "rtth.mp3" with the name of your [.mp3] sound file that will play when you activate your Gag emote! This sound file has to be in the "Sounds" file in "Gag_DefaultSoundPack".
-----------------------
Now go and play it!
Note:
Other players without Gag will have to get the [.mp3] sound file also to hear it once somebody activates it.
Original topic by me: EchelonedWoW Discussion and Support Forum • View topic - Guide - "Gag" - Add Your Own Sounds