EQ Search

EQ Search

Postby Woody » Sat Dec 07, 2024 6:38 pm

Are you sick of typing out EQ searches?
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)
Woody
 
Posts: 13
Joined: Sat Aug 31, 2024 8:33 am
Status: Offline

Return to Mudlet - unlimited possibilities

Who is online

Users browsing this forum: No registered users and 1 guest

cron