• 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

Problem - DoTs on mobs

Joined
Mar 20, 2024
RedCents
1,051¢
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