• 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 - Having issues using XTarget

Howdy guys, I have been working on mycmd and in it I use XTarget. I am getting some random issues popping up. I have been using ${Spawn[${Me.XTarget[1]}].ID} to get the mob id in the first XTarget slot.

The issues that I am seeing during my testing is I will have two mobs in my extended targets.

${Spawn[${Me.XTarget[1]}].ID} to get the first slot mob id - ID 4358 - Mob Name in XTarget Window - a temple patroller
${Spawn[${Me.XTarget[2]}].ID} - ID 4358 - Mob Name in XTarget Window - a temple patroller

When I kill off a mob and only 1 mob is in XTarget it will correctly return 0 as the ID for XTarget slot 2.

Anyone have any ideas as to what I am doing wrong?

EDIT * I forgot to add that these XTarget slots are set to Auto and are two different mobs.
 
Last edited:
I found the issue. Upon further testing, I was able to narrow down the above mentioned issue where the XTarget slot 1 id is the same as the XTarget slot 2 id. I noticed that this was occurring when there were two of the same named mobs in the XTarget window. I was able to stop this from happening by just using ${Me.XTarget[1].ID}. This returned the proper ID each time.
 
Question - Having issues using XTarget

Users who are viewing this thread

Back
Top
Cart