This trigger makes item descriptions in shops clickable links!
perl-regex pattern:
- Code: Select all
^[ *!&]?\d+\s+([a-zA-Z\s'’-]+?)(?=\s*(?:\[\d+\])?(?:\.\.|$))
lua:
- Code: Select all
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)