• 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: AESize.mac (for MQ2Size)

EvenLessSpam

Active member
I know I saw a macro like this, that summoned corpses and shrinked them, but couldn't find it. Just needed something to size everything around me, be it raid or just everyone, so I wrote this:
Rich (BB code):
Sub Main(string TargetType, int Size, int Radius)
    /if (!${Defined[TargetType]})   /declare TargetType string  local   raid
    /if (!${Defined[Size]})         /declare Size       int     local   1
    /if (!${Defined[Radius]})       /declare Radius     int     local   500
    /if (${TargetType.Lower.Equal[raid]}) /call RaidSize ${Size}
    /if (${TargetType.Lower.Equal[ae]}) /call AESize ${Size} ${Radius}
    /if (${TargetType.Lower.Equal[help]}) /call HelpSize
/return

Sub RaidSize(int Size)
    /declare i          int     local   0
    /declare LastTarget string  local   NONE
    /for i 1 to ${Raid.Members}
        /target ${Raid.Member[${i}]}
        /delay 2s (${Target.Name.NotEqual[${LastTarget}]})
        /size ${Size}
        /varset LastTarget ${Target.Name}
    /next i
/return

Sub AESize(int Size, int Radius)
    /declare i              int     local   0
    /declare LastTarget     int     local   0
    /declare PCArray[100]   int     local   0
    /declare PCsInRange     int     local   ${SpawnCount[pc radius ${Radius} zradius 50]}
    /for i 1 to ${PCsInRange}
        /varset PCArray[${i}] ${NearestSpawn[${i}, pc].ID}
    /next i
    /for i 1 to ${PCsInRange}
        /if (${Spawn[${PCArray[${i}]}].Type.NotEqual[corpse]}) {
            /target id ${PCArray[${i}]}
            /delay 2s (${Target.ID} != ${LastTarget})
            /size ${Size}
            /varset LastTarget ${Target.ID}
        }
    /next i
/return

Sub HelpSize
    /echo Syntax: /macro ${Macro.Name} [raid|ae|help] [size] [radius
/return
 
Macro: AESize.mac (for MQ2Size)

Users who are viewing this thread

Back
Top
Cart