• 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

mob location

dobey

Member
I was wondering if you can check a specific location to see if a mob is there. Obviously the map knows the loc of each npc on it, and I have seen ui's that give the location of the user, and target of user's loc. I am looking for a way to check a list of locations I have of static spawns, check each loc for a mob, and if it returns true path to it to pull the mob. Last thing I want to do is run a path over and over with a radius check though, would like to sit there not moving, and check if each mob is up in a certain order. I know I am rambling lol but wanted to be clear why I wanted the info.

so basically something like

is there a mob at x x x loc? no? got to next

is mob at x x x loc? yes? goto pull it

ect... can this be done?
 
You could use a spawn tracker, to track your spawns, and when one is up, have it call your pull event. This will work as long as the mobs name is unique.

or, Could use a line like:

Rich (BB code):
/if (${Spawn[npc Mob Name Here].ID}) {
   /call pull
}
 
Rich (BB code):
/if (${SpawnCount[npc loc x.xx y.yy radius 5 zradius 5]}) {
    /call Pull
}
Replace x.xx with the X coordinate, and y.yy with the Y coordinate. If there's any spawns within 5 units of the specified location, the subroutine "Pull" will be called.
 
mob location

Users who are viewing this thread

Back
Top
Cart