View Single Post
06-14-18, 11:57 PM   #3
saxitoxin
A Theradrim Guardian
 
saxitoxin's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 60
Originally Posted by Ammako View Post
...
sorry, but I did not figure it out :/

but I made the button a secureActionButton and running a macro onClick

Lua Code:
  1. if InCombatLockdown() then return end
  2.         if activeStepIndex then
  3.             local mountID, itemID, pretext, place, kill, mode, note, chance, raidID, worldBossID, waypoint = unpack(cfg.infoList[activeStepIndex])
  4.             if waypoint then
  5.                 if IsAddOnLoaded("TomTom") then
  6.                 self:SetAttribute("macrotext", "/way "..waypoint)
  7.                 else
  8.                     print(waypoint)
  9.                 end
  10.             end
  11.         end
  Reply With Quote