• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

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

hytiek

✨Broken TA Owner✨
Moderator
Commits
5
Hopefully this is helpful for other people.

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!
 
Lua - I use this to decide how to pause / resume macros and plugins

Users who are viewing this thread

Back
Top
Cart