Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-17-08, 12:56 AM   #1
lordkarthas
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 35
Trouble making slash commands

This is relevant segment of the code I am using. There are no errors, and the message prints to the chat window. The slash commands just don't work (I get the type /help message).

Code:
function npcIgnore_onLoad()
	SlashCmdList["NPCIGNORE"] = npcIgnore_ChatCommand;
	SLASH_NPCIGNORE1 = "/npcignore";
	SLASH_NPCIGNORE2 = "/npci";
	ChatFrame_AddMessageEventFilter("CHAT_MSG_MONSTER_SAY", npcChatFilter);
	ChatFrame_AddMessageEventFilter("CHAT_MSG_MONSTER_WHISPER", npcChatFilter);
	ChatFrame_AddMessageEventFilter("CHAT_MSG_MONSTER_EMOTE", npcChatFilter);
	DEFAULT_CHAT_FRAME:AddMessage("NPCIgnore is loaded.");
end
Yes, the function does exist.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Trouble making slash commands


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