• 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

Check if a mob is undead type, how to do???

Crystane

Well-known member
Heya,

I searched and read alot and tried some stuff,
but am unable to find out how to check with a macro
if a mob is undead.
If anyone knows pls let me know.

I want to programm a line like: If mob x = undead ---->cast nuke against undead.

Thx in advance.
 
something like /if ${Target[ID].Body}==Undeath or something like that ...

/echo ${Target[ID].Body} gives the right answer Undeath but how can i put this into an /if ;) ?

i now it every time only to 50% ;) im to stupid to understand the structs
of MQ ...

Maybe someone can explain it ?

army ? godfather of tradeskillmacros :) ?
 
Heya, thx for reply.

First I cant access the topic linked to the MQ boards.....

But the Command lines with the TLO and refference types helped.

Sturmbringer (Kommste aus dt.?)
/if (${Select[${Target.Body},Undead]}) {
/cast "YourSpell"
}
Works just fine,
however my line will look like this
Rich (BB code):
/if (${Target.Body.Equal[Undead]}) /cast ${nukeundead} gem8 3s

I will of course fool around a bit with this select option thingy, seams it offers some neat options.

Thx you 2 for quick answer.
 
Rich (BB code):
/if (${Select[${Target.Body},Undead]}) {
/cast "YourSpell"
}

With this option I can with ease expand the types of body to check like e. g.

Rich (BB code):
/if (${Select[${Target.Body},Undead,Humanoid]}) {
/cast "YourSpell"
}

In this case it would cast the spell on Humanoid and Undead.

Thx I learned more then just one thing on just one question hehe.... and of course my macros will become more sofisticated now... tho I guess I cant spell that word yet haha.
 
Check if a mob is undead type, how to do???

Users who are viewing this thread

Back
Top
Cart