View Single Post
10-17-08, 01:57 AM   #6
Cirk
A Cobalt Mageweaver
 
Cirk's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 226
Originally Posted by lordkarthas View Post
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
__________________
Cirk's Addons
  Reply With Quote