• 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! 👋

Question - Is there a way to target marked pc 1-3? (2 Viewers)

error1082

Well-known member
Joined
Sep 27, 2025
RedCents
1,380¢
I see in the docs that you can check if a spawn is marked with what number, but I do no see a way to target marked npc 1 for instance. This is using the original MQ script, not Lua or Plugins. Can this be done?

int

Current Raid or Group marked npc mark number (raid first)

 
In Lua you could do something like this using filteredspawns to get all the marks: then its just a matter of deciding which one you want to target.

Lua:
local mq = require('mq')

local function spawnFilter(spawn)
    return spawn.Type() == 'NPC' and spawn.Mark() > 0
end

local spawns = mq.getFilteredSpawns(spawnFilter)
printf('Found %s spawns',#spawns)
for _,spawn in ipairs(spawns) do
    print(spawn())
end

filtered spawns does not exist in macroscript, so you would have to iterate through using nearestspawn and checking each spawn for their mark
 
Question - Is there a way to target marked pc 1-3?

Users who are viewing this thread

  • S
Back
Top
Cart