WoWInterface - View Single Post - /count different depending on right or left click.
View Single Post
06-28-20, 09:22 PM   #2
A Firelord
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 495
I'm assuming you're talking about the new countdown feature on the alpha. Unfortunately, the /countdown command does not parse any secure macro options and only accepts numbers. However, you can skip the command and go straight to the function.

Lua Code:
  1. /run if SecureCmdOptionParse("[btn:2]") then C_PartyInfo.DoCountdown(3) else C_PartyInfo.DoCountdown(10) end

Here's the command implementation if anyone's curious:

Lua Code:
  1. SlashCmdList["COUNTDOWN"] = function(msg)
  2.     local num1 = gsub(msg, "(%s*)(%d+)", "%2");
  3.     if(num1 ~= "" and tonumber(num1) <= MAX_COUNTDOWN_SECONDS) then
  4.         C_PartyInfo.DoCountdown(num1);
  5.     end
  6. end

MAX_COUNTDOWN_SECONDS is currently 3600 seconds, or one hour.
  Reply With Quote