View Single Post
10-27-19, 01:05 PM   #6
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Ahh, I see what you're doing there. Your buttons only open chat. Replace your OnClick handler with this:

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)

This is a simple way to do it. You can also do this for readycheck and roll as well, which are DoReadyCheck() and RandomRoll("1","100").
  Reply With Quote