• 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
Resource icon

Release ZFix - 'You cannot see your target' fixer (1 Viewer) .8

I think you need to change these 2 lines to remove the /dgge from them.

Code:
 mq.cmd('/dgge /cwtn mode 0')


Code:
 mq.cmdf('/dgge /cwtn mode %s',cwtn_group_mode)


The /cwtn is already doing a /dgge so with the /dgge /cwtn you're telling every client to do a /cwtn which causes the other clients to tell the tank to go into mode 0 and end up in mode 2.
 
I think you need to change these 2 lines to remove the /dgge from them.

Code:
 mq.cmd('/dgge /cwtn mode 0')


Code:
 mq.cmdf('/dgge /cwtn mode %s',cwtn_group_mode)


The /cwtn is already doing a /dgge so with the /dgge /cwtn you're telling every client to do a /cwtn which causes the other clients to tell the tank to go into mode 0 and end up in mode 2.
no.

/cwtn blah
 
no.

/cwtn blah

I think we're saying the same thing? The Lua has /dgge /cwtn, which you wouldn't want to do because it causes the non-driver accounts to /cwtn and send whatever you are trying to send to your group back to your driver. If you wanted to do that you would just /cwtna.

So as is when the Lua executes /dgge /cwtn mode 2 at the end it causes the tank to be in mode 2, rather than tank or hunter or whatever you were doing beforehand.
 
Right - sorry i definitely mis-read/mis-understood what you wrote Tibs
Diff:
- mq.cmd('/dgge /cwtn mode 0')
+ mq.cmd('/cwtn mode 0')
- mq.cmdf('/dgge /cwtn mode %s',cwtn_group_mode)
+ mq.cmdf('/cwtn mode %s',cwtn_group_mode)
 
BTW, I have been running into some issues with zfix, I added this to counter the occasional "you cannot see your target" messages:

[ninja edit to fix my crap]

Lua:
local timer = os.time()

Lua:
local function Event_BrokenZ()
    local dist = mq.TLO.Target.Distance() or -1
    if dist > 0 and dist < 20 then
        if timer < os.time() - 2 then
            count = 0
            timer = os.time()
            debug("resetting counter")
            return true
        end
        count = count + 1
        debug("increasing counter to "..count)
        timer = os.time()
    end

[...]
 
Last edited:
I had a solo toon running into this bug while farming low level stuff, but was unable to run this because it expects you to be the MA. I added a check for grouped to the clause below (line 133) to fix it if you want to incorporate that into the main branch:

Lua:
if mq.TLO.Me.Grouped() and mq.TLO.Group.MainAssist.Name() ~= me then
        print('Only run this on your MA')
        mq.exit()
    end
 
because my MA is always the first to load and the group is never set when my Lua scripts all load. I did this for a work around.
added an argument check so if you run /lua run zfix ma you are telling the script you intend to be the MA even if the group isn't here yet.

Code:
--- insert at top with variables
local meMA = false -- variable to hold MA setting

--- insert before the init function
local args = {...}  -- check arguments on load for ma tag.
if #args > 0 then
    if args[1] == "ma" then
        meMA = true  -- set var to true denoting we are the ma even if group is missing still
    end
end

-- adjusted check inside of init function
if not (mq.TLO.Group.MainAssist.Name() == me or meMA) then -- check if you are not MA and didn't say you were exit
    print('Only run this on your MA')
    mq.exit()
end
 
Release ZFix - 'You cannot see your target' fixer

Users who are viewing this thread

Back
Top
Cart