• 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

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

Joined
Mar 24, 2018
RedCents
5,569¢
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 =)
 
Thanks both of you :) I try to figure everything out myself but this one escaped me and it is gonna be so worth it to do those enormous nukes!
 
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