• 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

Macro - NoS Partisan Power Corrupts

In this task, you have to follow Commander Yaminshavraylin without getting too close. Seems the range to get banished is about 100, I'm guessing you need to be less than 150 or 200 to get update, not sure. The whole cycle seems to take 15-20 min. I found this part very annoying to do.

I wasn't able to run this on a fresh character, but my character who was missing an update did finish it. Let me know if works for all updates, and i can make it a resource

BE INVIS

/mac stalk Yaminshavraylin 140

stalk.mac
Code:
|------------------------------------------------------------
| Name: stalk.mac
|------------------------------------------------------------
| Author: Winnower
|
| example: /mac stalk Yaminshavraylin 140
|------------------------------------------------------------

Sub Main(string prey, int dist)
  /while (1) {
    /if (!${Navigation.Active}) {
      /nav spawn ${prey}
    }
    /if (${Nav.Paused}) {
      /if (${Spawn[${prey}].Distance} > ${dist}) {
        /squelch /nav pause
      }
    } else {
      /if (${Spawn[${prey}].Distance} < ${dist}) {
        /squelch /nav pause
      }
    }
    /delay 1
  }
 
@winnower here's a Lua version for you

stalk.lua
Lua:
------------------------------------------------------------
-- Name: stalk.mac
-------------------------------------------------------------
-- Author: Winnower
--
-- example: /lua run stalk Yaminshavraylin 140
------------------------------------------------------------

---@type Mq
local mq = require("mq")

local TLO = mq.TLO
local Navigation = TLO.Navigation
local Spawn = TLO.Spawn

---@param prey string
---@param dist integer
local function Main(prey, dist)
    if (not prey or prey == "" or dist < 30) then
        print("prey is unspecified or distance is too close")

        return
    end

    local spawn = Spawn(prey)

    if (spawn.ID() == 0) then
        print("prey is not found")

        return
    end

    while (true) do
        if (not Navigation.Active()) then
            mq.cmdf("/nav spawn %s", prey)
        end

        if (Navigation.Paused()) then
            if (spawn.Distance() > dist) then
                mq.cmd("/squelch /nav pause")
            end
        else
            if (spawn.Distance() < dist) then
                mq.cmd("/squelch /nav pause")
            end
        end

        mq.delay(10)
    end
end

local args = {...}
local prey = ""
local dist = 100

if (#args ~= 2) then
    error("Invalid number of arguments supplied. Must have two")
else
    prey = args[1]
    dist = tonumber(args[2]) --[[@as integer]]

    if (dist == nil) then
        error("Incoming arguments must be in the format prey:string dist:integer")
    end
end

Main(prey, dist)
 
Last edited:
Macro - NoS Partisan Power Corrupts

Users who are viewing this thread

Back
Top
Cart