↓ Skip to main content

EQ Search

·54 words·1 min

Are you sick of typing out EQ searches?

This trigger makes item descriptions in shops clickable links!

perl-regex pattern:

^[ *!&]?\d+\s+([a-zA-Z\s'’-]+?)(?=\s*(?:\[\d+\])?(?:\.\.|$))

lua:

local item_string = matches[2]
local baseURL = "https://eq.slothmud.org/?search="
selectString(item_string, 1)
setLink([[openUrl("]]..baseURL..item_string:gsub(" ", "+")..[[")]], "Search EQ list for: "..item_string)

Let me know if you find any item descriptions which don’t work.

Woody (Slice)