• 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

Problem - DoTs on mobs

I have searched all over the forum before posting this question, but I havent found the answer :(

I run a multi-necro group and I am trying to determine whether a mob has on it a particular DoT (say, of example, Vampiric Curse) but only if it was cast by me, as opposed to the other necros in the group.

I got this code:
Code:
local DoTspell = "Vampiric Curse"
mq.TLO.Spawn(333).MyBuff(DoTspell)()

being 333 the ID of the mob.

Unfortunately, the output is always "nil" even though my DoT is indeed on the mob. What am I doing wrong?
 
I have searched all over the forum before posting this question, but I havent found the answer :(

I run a multi-necro group and I am trying to determine whether a mob has on it a particular DoT (say, of example, Vampiric Curse) but only if it was cast by me, as opposed to the other necros in the group.

I got this code:
Code:
local DoTspell = "Vampiric Curse"
mq.TLO.Spawn(333).MyBuff(DoTspell)()

being 333 the ID of the mob.

Unfortunately, the output is always "nil" even though my DoT is indeed on the mob. What am I doing wrong?
you can't do spawn, you can do target tho

1714057952753.png
 
Oh man, I just figured out what the problem is! It is the stinky single quote symbol!

If instead of...
Code:
local DoTspell = "Vampiric Curse"
mq.TLO.Spawn(333).MyBuff(DoTspell)()

I hardcode the DoT name intro the instruction...
Code:
mq.TLO.Spawn(333).MyBuff('Vampiric Curse')()

Then it works. Unfortunately I cannothard code the DoT name because the variable DoTspell is updated depending on other parameters.

I have now tried...
Code:
mq.TLO.Spawn(333).MyBuff('DoTspell')()

But, of course, now the code thinks that the DoT's actual name is "DoTspell". GGrrrrr.... how do you solve this?
 
Oh man, I just figured out what the problem is! It is the stinky single quote symbol!

If instead of...
Code:
local DoTspell = "Vampiric Curse"
mq.TLO.Spawn(333).MyBuff(DoTspell)()

I hardcode the DoT name intro the instruction...
Code:
mq.TLO.Spawn(333).MyBuff('Vampiric Curse')()

Then it works. Unfortunately I cannothard code the DoT name because the variable DoTspell is updated depending on other parameters.

I have now tried...
Code:
mq.TLO.Spawn(333).MyBuff('DoTspell')()

But, of course, now the code thinks that the DoT's actual name is "DoTspell". GGrrrrr.... how do you solve this?
Code:
mq.TLO.Target.MyBuff(DoTspell)()
Or

mq.TLO.Target.MyBuff(string.format('%s',DoTspell))()
 
I thought all buffs and debuffs were cached now? If they cast a DoT while MQ was running and then changed target why wouldn't they be able to check the Spawn for MyBuff?
 
I thought all buffs and debuffs were cached now? If they cast a DoT while MQ was running and then changed target why wouldn't they be able to check the Spawn for MyBuff?

I believe you can indeed check the Spawn. The problem here is not Spawn vs Target, but the syntax of the single quote symbol, as per my previous post above.
 
Last edited:
Problem - DoTs on mobs

Users who are viewing this thread

Back
Top
Cart