View Single Post
12-08-09, 01:48 AM   #2
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
lua Code:
  1. local testing1 = true
  2. local testing2 = true
  3.  
  4. SLASH_TEST1 = "/test"
  5. SlashCmdList["TEST"] = function(msg)
  6.     msg = string.lower(msg)    
  7.     if (msg == "testing1") then
  8.         if testing1 then
  9.             testing1 = false
  10.             print("testing1 set to false")
  11.         else
  12.             testing1 = true
  13.             print("testing1 set to true")
  14.         end    
  15.     elseif (msg == "testing2") then
  16.         if testing2 then
  17.             testing2 = false
  18.             print("testing2 set to false")
  19.         else
  20.             testing2 = true
  21.             print("testing2 set to true")
  22.         end
  23.     end
  24. end
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
  Reply With Quote