• 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

Question - Is there a condition that counts the number of nearby pets?

I have been ignoring this for so long but there is a Mage nuke that is just too tempting...! It is Strike of Many and the damage goes up hugely if there are a lot of pets around. I just noticed my bard makes a lot of swarm pets, and my shm does too, so I sometimes have a huge amount of pets. I wouldn't want to use the nuke most of the time, but if I could do a condition to count the pets and if > 9 pets use the nuke, that would be great. Anyone know if this is possible? Thanks =)
 
This will cast Volley of Many if your pet needs Theft of Essence or there are 10+ pets nearby. Thanks for the tips.
Rich (BB code):
DPS4=Volley of Many|99|Mob
DPSCond4=!${Me.PetBuff[Theft of Essence Effect IX]}>0 || ${SpawnCount[radius 50 pcpet]}>9
 
I've also seen pets counted like this...

Rich (BB code):
${SpawnCount[pet Radius 30]}

so I'm like hmmmmm...

the difference is the spawncount method you showed will count MOB's / npc's pets in that number, where the pcpets one will only count player's pets.. not that it happens all the time that mobs pets will be jamming in there with large numbers.. but it could give you false positive conditions...
 
No offense, but I have to say all the conditions above are not accurate enough.

First,
${SpawnCount[radius 50 pcpet]}
Means there are how many pcpet around YOU where could be like 200ft away from the group's attacking targets.

Well,
Rich (BB code):
${SpawnCount[pcpet loc ${Target.X} ${Target.Y} radius 30]}
is the right TLO that will return how many pcpet around your target within 30ft

And
!${Me.PetBuff[Theft of Essence Effect IX]}>0
is wrong logically.
Rich (BB code):
${Me.PetBuff[Theft of Essence Effect IX]}
will return the pet buff id of said Theft of essence.

So
Rich (BB code):
!${Me.PetBuff[Theft of Essence Effect IX]}
is what you need, the >0 is redundant.
 
This is the most proper way of doing it.
Rich (BB code):
${Spawn[${Target.ID}].NearestSpawn[9,pcpet radius 35].ID}


The spell looks for number of mobs in melee with your target, so this code looks for your target, then if there is 9 or more pcpet within melee radius of it, takes the 9th pets ID, meanning it has a value, so the condition is true, else its null and not true.
 
This is the most proper way of doing it.
Rich (BB code):
${Spawn[${Target.ID}].NearestSpawn[9,pcpet radius 35].ID}


The spell looks for number of mobs in melee with your target, so this code looks for your target, then if there is 9 or more pcpet within melee radius of it, takes the 9th pets ID, meanning it has a value, so the condition is true, else its null and not true.

I had run outta redcents the day you posted this but just thought today to come back and properly thank you for this. I'm using this on both my enchanter (when to fire Chromatic Haze) and my magician (when to cast Volley of Many).
 
Question - Is there a condition that counts the number of nearby pets?

Users who are viewing this thread

Back
Top
Cart