Originally Posted by lordkarthas
The "NPCIgnore is loaded." message appears, there are no errors, and the script you provided returns nil.
|
Hmmm, that means that as far as the SlashCmdList is concerned, you don't have anything registered there fore "NPCIGNORE".
So, options:
1. Using the previous script, print out the values of npcIgnore_ChatCommand, SLASH_NPCIGNORE1, SLASH_NPCIGNORE2. (i.e., look and see if any of those got foobar'd).
2. Try with something like
Code:
SlashCmdList["NPCIGNORE"] = function(text) npcIgnore_ChatCommand(text) end;
Which should at least get you a valid function in the SlashCmdList, and then you can try and debug from there.
Hope that helps