• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Lua - I use this to decide how to pause / resume macros and plugins

hytiek

✨Broken TA Owner✨
Moderator
Joined
May 21, 2019
RedCents
16,692¢
Hopefully this is helpful for other people.

[CODE lang="Lua" title="check if CWTN plugin is loaded"]-- 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[/CODE]

[CODE title="generic function to check if macro or CWTN plugin is paused"]-- 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[/CODE]

Enjoy!
 
Lua - I use this to decide how to pause / resume macros and plugins

Users who are viewing this thread

Back
Top
Cart