View Single Post
10-04-12, 08:50 AM   #1
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
Slash command not registering??

So I for some reason or another, my slash commands for SLASH_OSDUNGCHAL1 = "/c5"; and SLASH_OSDUNGCHAL2 = "/dchallenge"; don't get executed. Any ideas?

Lua Code:
  1. function osSetType(type, index)
  2.     if type == "party" then
  3.         SetDungeonDifficultyID(index)
  4.     elseif type == "raid" then
  5.         SetRaidDifficulty(index)
  6.     end
  7. end
  8.  
  9. -- 5 man
  10.  
  11. SlashCmdList.OSDREGFIVE = function()
  12.     osSetType("party",1)
  13. end
  14.  
  15. SlashCmdList.OSDHERFIVE = function()
  16.     osSetType("party",2)
  17. end
  18.  
  19. SlashCmdList.OSDUNGCHAL1 = function()
  20.     osSetType("party",8)
  21. end
  22.  
  23. SlashCmdList.OSDUNGCHAL2 = function()
  24.     osSetType("party",8)
  25. end
  26.  
  27. SLASH_OSDREGFIVE1 = "/r5";
  28. SLASH_OSDHERFIVE1 = "/h5";
  29. SLASH_OSDUNGCHAL1 = "/c5";
  30. SLASH_OSDUNGCHAL2 = "/dchallenge";
  31.  
  32. -- 10 man
  33.  
  34. SlashCmdList.OSDREGTEN = function()
  35.     osSetType("raid",1)
  36. end
  37.  
  38. SlashCmdList.OSDHERTEN = function()
  39.     osSetType("raid",3)
  40. end
  41.  
  42. SLASH_OSDREGTEN1 = "/r10";
  43. SLASH_OSDHERTEN1 = "/h10";
  44.  
  45. -- 25 man
  46.  
  47. SlashCmdList.OSDREGTWOFIVE = function()
  48.     osSetType("raid",2)
  49. end
  50.  
  51. SlashCmdList.OSDHERTWOFIVE = function()
  52.     osSetType("raid",4)
  53. end
  54.  
  55. SLASH_OSDREGTWOFIVE1 = "/r25";
  56. SLASH_OSDHERTWOFIVE1 = "/h25";
  Reply With Quote