Hopefully this is helpful for other people.
check if CWTN plugin is loaded
generic function to check if macro or CWTN plugin is paused
Enjoy!
check if CWTN plugin is loaded
Lua:
-- check if a class plugin is loaded to determine how to handle
-- pausing and resuming the toon
local function class_plugin_loaded()
-- plugin array
local cPlugin = {
BER='mq2berzerker',
BST='mq2bst',
CLR='mq2cleric',
ENC='mq2enchanter',
MAG='mq2mage',
MNK='mq2monk',
NEC='mq2necro',
PAL='mq2paladin',
ROG='mq2rogue',
SHD='mq2eskay',
SHM='mq2shaman',
WAR='mq2war'
}
if mq.TLO.Plugin(cPlugin[mq.TLO.Me.Class.ShortName()]).IsLoaded() == true then
return true
else
return false
end
end
generic function to check if macro or CWTN plugin is paused
Code:
-- generic function to check if macro or cwtn plugin is paused
local function is_util_paused()
if class_plugin_loaded() == true and mq.TLO.Macro.Name() == nil then
return mq.TLO.CWTN.Paused()
elseif mq.TLO.Macro.Name() ~= nil then
return mq.TLO.Macro.Paused()
end
return false
end
Enjoy!

