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)
Multi-drag script for Mudlet
Multi-drag script for Mudlet
Vooku (50 Barb Shammy)
Re: Multi-drag script for Mudlet
well done sir
i would add that you can replace corpse with pcorpse and if you have consent this would work as well
i would add that you can replace corpse with pcorpse and if you have consent this would work as well
Re: Multi-drag script for Mudlet
Here is the player drag script. Works good unless someone is dead in that room and isn't consenting.
TRIGGER:
Name: Who Consenting
Pattern: ^(\w+) is consenting you (regex)
ALIAS1:
Name: Consent
Alias: ^whoconsent$
ALIAS2:
Name: Multidrag Pcorpse
Alias: ^dragall (\w+)
TRIGGER:
Name: Who Consenting
Pattern: ^(\w+) is consenting you (regex)
Code: Select all
if matches[2] ~= whoami() then
table.insert(consent_tbl,matches[2])
end
ALIAS1:
Name: Consent
Alias: ^whoconsent$
Code: Select all
consent_tbl = {}
enableTrigger("Who Consenting")
send("consent")
tempTimer(5,[[disableTrigger("Who Consenting")]])
ALIAS2:
Name: Multidrag Pcorpse
Alias: ^dragall (\w+)
Code: Select all
local cmd = matches[2]
for k,v in ipairs(consent_tbl) do
cmd = string.format("drag %s %s", v, cmd)
end
send(cmd)
Vooku (50 Barb Shammy)
Who is online
Users browsing this forum: No registered users and 16 guests