Multi-drag script for Mudlet

Scripts and support for your favorite MUD client.
Vooku
Sojourner
Posts: 23
Joined: Tue Jul 24, 2007 5:02 pm

Multi-drag script for Mudlet

Postby Vooku » Thu Jul 19, 2018 1:03 pm

Format to use: dragX Y (X=number of corpses, Y=direction)

Pattern:

^drag(\d+) (\w+)

Code:

local cmd = ""
for k = 1,matches[2] do
cmd = string.format("%s drag %d.corpse",cmd, k)
end
cmd = cmd .. " " .. matches[3]
cmd = string.trim(cmd)
send(cmd)
Vooku (50 Barb Shammy)
Afu
Sojourner
Posts: 71
Joined: Sun Oct 01, 2017 3:58 pm

Re: Multi-drag script for Mudlet

Postby Afu » Tue Jul 24, 2018 8:50 pm

well done sir
i would add that you can replace corpse with pcorpse and if you have consent this would work as well
Vooku
Sojourner
Posts: 23
Joined: Tue Jul 24, 2007 5:02 pm

Re: Multi-drag script for Mudlet

Postby Vooku » Thu Jul 26, 2018 12:52 am

Good idea.
Vooku (50 Barb Shammy)

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 1 guest