• 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

Request - Condition check for a class

Ordell

Well-known member
I would like to set my shaman ini up so he will cast Celerity if no chanter is in the group, but I cannot find an example of a conditional check for a player class. Could some kind soul post such a condition check? Thanks.
 
I'd just check to see if the target has the enchanter haste buff
Code:
!${Target.Buff[chanter haste].ID}
you could use Spawn[pc class enchanter radius 30], but I think the buff check would be easier
 
One of the holyshits I use on my paladin is


Code:
holyshit12=/if (!${Target.Slowed.ID} && ${Me.Inventory[mainhand].ID}!=133167  && (!${SpawnCount[pc slower group]}  || ${SpawnCount[pc group slower]} && ${Spawn[pc group slower].Type.Equal[Corpse]}) && ${Target.Body.Name.NotEqual[Undead]}) /Bandolier Activate Slow

Which basically has him use a slow weapon if there is no slower in the group.

To this end I expect you ought to be able to use !${SpawnCount[PC Group class enchanter]} though I am unable to test it right now. Test it out some ingame using "/echo !${SpawnCount[PC Group class enchanter]}" while grouped and make sure you get a "!TRUE" return (the ! inverts the result, so a !TRUE is a FALSE when processed by MQ)

Check out https://www.redguides.com/docs/projects/macroquest/reference/top-level-objects/tlo-spawncount/ for more details.

Once you do figure it out, I recommend putting in the "check if enchanter is dead" part too.
 
Request - Condition check for a class

Users who are viewing this thread

Back
Top
Cart