• 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

Request - Request for Level 2: Macro Google Search Item Links and Targets From Within EQ

jmac

Member
Not sure if posting stuff for temporary level 2 access is still a thing, but here's a macro I created to search google from within eq. It can take item links, targets or raw phrases.


Code:
Sub Main

    /declare searchQuery string local ${Param0}
   
    /echo Incoming Query ${searchQuery}
   
   
    /if (${searchQuery.Find[00000]}) {
        |- From Item Link
        /varset searchQuery ${searchQuery.Right[${Math.Calc[${searchQuery.Length} - 51]}]}
        /varset searchQuery ${searchQuery.Replace[ ,+]}
    } else /if (${searchQuery.Find[_]}) {
        |- From ${Target.Name}
        /varset searchQuery ${searchQuery}
        /varset searchQuery ${searchQuery.Replace[_,+]}
    } else /if (${searchQuery.Find[ ]}) {
        |- From Raw String With Spaces
        /varset searchQuery ${searchQuery}
        /varset searchQuery ${searchQuery.Replace[ ,+]}
    } else {
        |- From Raw String No Spaces
        /varset searchQuery ${searchQuery}
    }
    /echo Parsed Query ${searchQuery}
   
    /exec "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://google.com/search?q=eq+${searchQuery} bg


/return

it will open chrome.exe with search params "eq commandLineParameter" so you need to have correct path to chrome.exe

usage:
/mac google ${Target.Name}
/mac google "Item Link"
Must have quotes around the item link
/mac google "north ro"


*btw the item link parsing is from Underfoot client, need 57 if doing RoF2
 
With start, make sure it works from command line since if you're including quotes it needs to be
Bash:
start "" "https://etc"

Should work, but alternatively you can also use
Bash:
cmd /c start
to launch the cmd.exe with the start command.

I always test commands from command line first to get them working.
 
Request - Request for Level 2: Macro Google Search Item Links and Targets From Within EQ

Users who are viewing this thread

Back
Top
Cart