slay
musicmud-2.1.6/data/verbs/slay · 563 B
From the archive musicmud2.1.6.tar.gz
Download the archive « Back to the archive contents
--lua PFL_BOOT 0 2
local victims = match(pl, arg)
if getn(victims)==0 then
send(pl, "Slay who?")
return
end
if getn(victims)>1 then
send(pl, "You may only slay one person at a time.")
return
end
for i, v in victims do
if v == pl then
send(pl, "You can't slay yourself.")
else
if not person(v) then
send(pl, "You can only slay beings.")
else
act(pl, "%1 %[slays/slay] %a.", v)
local c = kill(v, "slain by "..getstr(pl, "name"))
if c then
set(c, "desc", acts(v, "%1 %[has/have] been slain."))
end
end
end
end