View Single Post
10-27-19, 01:23 PM   #7
BloodDragon
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2017
Posts: 32
Ok Pulltimer works very nice now thx a lot.

Lua Code:
  1. Button:SetScript("OnClick", function()
  2.         if command=="/pull 6" then
  3.             SlashCmdList.DEADLYBOSSMODSPULL(6)
  4.         else
  5.             Open_chat(command)
  6.         end
  7.     end)
  8.     return Button;

So now i must add the the other commands
on the same place like:

Lua Code:
  1. Button:SetScript("OnClick", function()
  2.         if command=="/pull 6" then
  3.             SlashCmdList.DEADLYBOSSMODSPULL(6)
  4.         else
  5.         if command=="/readycheck" then
  6.             SlashCmdList.DoReadyCheck()
  7.         else
  8.             Open_chat(command)
  9.         end
  10.     end)
  11.     return Button;

But this dont work.
  Reply With Quote