添加特戒碎片双击随机特戒

This commit is contained in:
admin 2026-06-13 00:09:52 +08:00
parent 9dc815d02d
commit cfa8dbdaeb

View file

@ -244,6 +244,33 @@ ClickOnItem.cfg = {
ZhiJinHuLuOBJ:addjiuqi(actor, 1)
return false
end,
["ÌØ½äË鯬"] = function(actor, ...)
if Func.takeitmes(actor, { { "ÌØ½äË鯬", 10, 0 } }, true, true) then
local cfg = {
{ "¸´»î½äÖ¸", 2 },
{ "Âé±Ô½äÖ¸", 2 },
{ "»¤Éí½äÖ¸", 2 },
{ "ÒþÉí½äÖ¸", 17 },
{ "·ÀÓù½äÖ¸", 17 },
{ "»ðÑæ½äÖ¸", 15 },
{ "аÑÛÖ¸»·", 15 },
{ "±ùѩǬÀ¤½ä", 15 },
{ "±ùÑ©ÁúÔ¨½ä", 15 },
}
local random = math.random(1, 100)
local total = 0
for _, v in ipairs(cfg) do
total = total + v[2]
if random <= total then
giveitem(actor, v[1], 1, 0, "ÌØ½äË鯬")
Func.sendmsg9(actor, string.format("[ÌØ½äË鯬]:#70|¹§Ï²»ñµÃ#251|%s#249|!", v[1]))
break
end
end
end
return false
end,
["살晨鉅튬괜芎"] = function(actor, ...)
local result1, result2 = ransjstr("살晨濫원[鉅튬]#1|살晨濫졍[鉅튬]#1|살晨濫碇[鉅튬]#1|살晨濫썰[鉅튬]#1|살晨濫藍[鉅튬]#1|살晨濫棄[鉅튬]#1", 1, 3)
giveitem(actor, result1, 1, 0)