• 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 - Groundfarm.mac

asmotic

Member
Just another Groundfarm macro. Wanted to farm up a bunch of mushrooms in North Kadadim, but was having trouble with some of the other macros i've found. Decided to just write up my own. This uses Posse, so you could let it run overnight and it will pause when someone comes in range. This whole section can be commented out if you don't care. Also made the groundspawn a variable, so you could use this to farm up other spawns if wanted. Also worth mentioning, this does require MQ2NAV and a meshed zone.

It bugged on me once, kept picking up a ground spawn somewhere on the otherside of the zone. Found that if I just manually did a "/ItemTarget * Mushroom", the macro would take over normally. Only happened once, but thought i'd mention. Hopefully someone finds it useful.

Code:
|###############################################################################
|##
|##  GroundFarm.mac by:        AsmoTiC
|##
|###############################################################################
|##
|##    Requires MQ2Posse to check for Players.
|##    Comment out "/Call CheckForPlayers" to bypass
|##
|###############################################################################

Sub Main

/echo Groundspawn Farming Macro v11.17.18
/popup Groundspawn Farming Macro v11.17.18

| ----------------------------- Declarations -----------------------------
        /declare    PauseMacro        bool    outer    FALSE
        /declare    RespawnPause    bool    outer    FALSE
        /declare    GroundSpawn                outer    * Mushroom
        /declare    DistanceCheck    int        outer    500
      
| ----------------------- House Keeping for Posse ------------------------
        /posse on
        /posse load
      
| ------------------------------ Main Loop -------------------------------
    :Loop
        /Call CheckForPlayers
        /Call CheckforSpawns
        /if (${PauseMacro} == TRUE) /goto :Loop
        /if (${RespawnPause} == TRUE) /goto :Loop
        /Call TargetItem
        /Call MoveToItem
        /Call GetItem
    /goto :Loop
/return

Sub CheckForPlayers
        /if (${Posse.Count} > 0) {
            /echo There is a player in range, Pausing macro for 10sec
            /varset PauseMacro TRUE
            /delay 10s
        }
        /if (${Posse.Count} == 0) {
            /varset PauseMacro FALSE
        }
/return

Sub CheckForSpawns
        /if (${Ground.Distance} >= ${DistanceCheck}) {
            /echo Waiting on Respawn . . .
            /varset RespawnPause TRUE
            /delay 30s
        }
        /if (${Ground.Distance} < ${DistanceCheck}) {
            /varset RespawnPause FALSE
        }
/return 

Sub TargetItem
        /echo Targeting a Groundspan . . .
        /ItemTarget ${GroundSpawn}
/return

Sub MoveToItem
        /nav item
        /delay 1s
        /ItemTarget ${GroundSpawn}
/return

Sub GetItem
       /click left item
       /delay 1s
       /autoinventory
       /delay 1s
       /autoinventory
/return
 
Macro - Groundfarm.mac

Users who are viewing this thread

Back
Top
Cart