修改生肖碎片双击事件

This commit is contained in:
admin 2026-06-13 01:18:13 +08:00
parent 14ff3f74c1
commit 5aba455371
2 changed files with 42 additions and 0 deletions

View file

@ -271,6 +271,48 @@ ClickOnItem.cfg = {
return false return false
end, end,
---* 10个生肖碎片 → 随机黄金生肖
["生肖碎片"] = function(actor, ...)
if Func.takeitmes(actor, { { "生肖碎片", 10, 0 } }, true, true) then
local cfg = {
"黄金鼠", "黄金牛", "黄金虎", "黄金兔", "黄金龙", "黄金蛇",
"黄金马", "黄金羊", "黄金猴", "黄金鸡", "黄金狗", "黄金猪",
}
local idx = math.random(1, #cfg)
giveitem(actor, cfg[idx], 1, 0, "生肖碎片")
Func.sendmsg9(actor, string.format("[生肖碎片]:#70|恭喜获得#251|%s#249|!", cfg[idx]))
end
return false
end,
---* 10个黄金生肖精华 → 随机钻石生肖
["黄金生肖精华"] = function(actor, ...)
if Func.takeitmes(actor, { { "黄金生肖精华", 10, 0 } }, true, true) then
local cfg = {
"钻石鼠", "钻石牛", "钻石虎", "钻石兔", "钻石龙", "钻石蛇",
"钻石马", "钻石羊", "钻石猴", "钻石鸡", "钻石狗", "钻石猪",
}
local idx = math.random(1, #cfg)
giveitem(actor, cfg[idx], 1, 0, "黄金生肖精华")
Func.sendmsg9(actor, string.format("[黄金生肖精华]:#70|恭喜获得#251|%s#249|!", cfg[idx]))
end
return false
end,
---* 10个钻石生肖精华 → 随机至尊生肖
["钻石生肖精华"] = function(actor, ...)
if Func.takeitmes(actor, { { "钻石生肖精华", 10, 0 } }, true, true) then
local cfg = {
"至尊鼠", "至尊牛", "至尊虎", "至尊兔", "至尊龙", "至尊蛇",
"至尊马", "至尊羊", "至尊猴", "至尊鸡", "至尊狗", "至尊猪",
}
local idx = math.random(1, #cfg)
giveitem(actor, cfg[idx], 1, 0, "钻石生肖精华")
Func.sendmsg9(actor, string.format("[钻石生肖精华]:#70|恭喜获得#251|%s#249|!", cfg[idx]))
end
return false
end,
["살晨鉅튬괜芎"] = function(actor, ...) ["살晨鉅튬괜芎"] = function(actor, ...)
local result1, result2 = ransjstr("살晨濫원[鉅튬]#1|살晨濫졍[鉅튬]#1|살晨濫碇[鉅튬]#1|살晨濫썰[鉅튬]#1|살晨濫藍[鉅튬]#1|살晨濫棄[鉅튬]#1", 1, 3) local result1, result2 = ransjstr("살晨濫원[鉅튬]#1|살晨濫졍[鉅튬]#1|살晨濫碇[鉅튬]#1|살晨濫썰[鉅튬]#1|살晨濫藍[鉅튬]#1|살晨濫棄[鉅튬]#1", 1, 3)
giveitem(actor, result1, 1, 0) giveitem(actor, result1, 1, 0)