• 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 - Target.Slowed.SlowPct returns null rather than 0

If you attempt ${Target.Slowed.SlowPct}, and the mob has not yet been successfully slowed, it returns null. Shouldn't it return 0? If you try ${Target.Slowed.SlowPct}<70.... you can't do it because null is not an int so it craps out.

Workarounds to be able to compare int...

/declare SlowPct int local 0
/varcalc SlowPct ${Target.Slowed.SlowPct}+0

One can also do (${Target.Slowed.SlowPct}+0) as part of a condition within an ini.

Anyhoo...
 
Last edited:
How would I detect null? Target.Slowed.SlowPct returns type int when it has a numeric value, otherwise null. I tried a variety of ways. The only way that captured the state in adequate fashion was adding 0. Are you suggesting ${Target.Slowed.Equal[null]}? It still does not address that a type int returns null instead of 0, and one cannot compare null to int.
 
NULL and 0 are both false. You don't have to specifically test for it unless you specifically want to know if it's null, but automatically converting it to int would lose the capability to test for when it is null.
 
Last edited:
Better yet, dont worry about it. The percentage slow is mitigated in the calculations anyway, so you aren’t getting the headline number. Have a race to see who gets a slow on the mob, and be done with it. (Belt, chanter, counterbias, turgurs, beastlord).

Shaman AA slow is great, because while it is cast, there is no GCD, so your spells are instantly available for the next cast. Greatly improves Shaman efficiency
 
Shaman AA slow provides an additional casted cripple as well.

@Hylander : not shure if I understood your first sentence. ${Int[${Target.Slowed.SlowPct}]} shows the numbers of the spell, not the real effect on mobs. So this should do, whats supposed to do.
If ther's a slow applied as good or better than mine, skip my slow.
 
Last edited:
After reading the replies and going through the code, I believe I see how it works now. MQ2 itself is only concerned with exposing the gamestate, not crunching it further. Got it! Now that is settled, I think I will go through the KA12 doc and add some suggested conditional tests so I don't forget any details.
 
Problem - Target.Slowed.SlowPct returns null rather than 0

Users who are viewing this thread

Back
Top
Cart