• 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

Problem - Shiny Macro (1 Viewer)

I'm sure its been done before but i couldn't find it. Currently I'm building a macro that can search for glowing globes in zones and I'm editing TreeHuginDruids original code for 12th anni mission but i ran into an issue. After about 10 mins every time the macro either targets a glowing globe not in map or mq2nav is running into difficulties. Can someone take a look at the code and see whats going on? I've been live testing it in shard's landing with a basic mesh
 

Attachments

Doesn't use fancy pathing plugins, but it sucks em up like a hoover as long as there isn't a wall... :)

Rich (BB code):
|Targets the nearest shiny...
|Goes to THE shiny it sees.
|Straight to it.
|Picks up the shiny.
|Targets the nearest shiny...
|A handy command when using this macro is
| /mqp
| that stands for /MacroquestPause...
|pauses it so you can move around a wall or mob or whatever
| /MQP again and it unpauses.
|doesn't recheck for close shiny things until it picks up the one it's after
|Kinda like a raccoon...

Sub Main

:Loop
/call TargetItem
/call MoveToItem ${Macro.Return}
/call GetItem
/goto :loop

/return

Sub TargetItem
:GetTarget
/echo Targeting the closest Glowing Globe
/if (${Bool[${Ground[Glowing Globe].DisplayName}]}) {
	/ItemTarget Glowing Globe
	/face item
	/return ${Ground.ID}
	} Else {
		/echo NO MORE SHIINY!!!!!!!!!???
		/delay 5s
		/goto :GetTarget
		}
/return

Sub MoveToItem(int ${Shiny})
/echo ${Ground.Distance}

:keepmoving
/squelch /face item
/keypress forward hold
/delay 2
/if (${Ground[Glowing Globe].Distance3D}>10) /goto :keepmoving
/keypress back

/return

Sub GetItem
/if (${Ground[Glowing Globe].LineOfSight}) /echo ${Ground[Glowing Globe].Grab}
/delay 1s
/if (${Cursor.ID}) /autoinv
/if (${Window[InventoryWindow].Open}) /windowstate InventoryWindow close
/echo SSSSHHHHIIIIIINNNNNNYYYYY!!!!
/autoinv

/return
 
Short of warping to it, there seems to be shinys that you're just not going to be able to get to and a macro will just get stuck looping on trying to get it. How do you add a check in, where if you try to target and grab it 5 or 10 times and it doesn't happen, you ignore the shiny at that location and just move on to the next?
 
Problem - Shiny Macro

Users who are viewing this thread

Back
Top
Cart