BUFF叠加层数
你好,我添加了一个增加属性的buf。在buff表的 overlap 列叠加上限里填写了5。用addbuff 添加,可以触发单层效果,但是多次触发无法叠加更多层数效果。
if itemcount(actor,"每周红毒") < 1 then
sendmsg9(actor,"每周红毒不足!")
return
end
takeitem(actor,"每周红毒",1)
if not hasbuff(actor,50541) then
addbuff(actor,50541)
else
shengyu = getbuffinfo(actor,50541,2)
if shengyu > 0 then
delbuff(actor,50541)
addbuff(actor,50541,shengyu+604800)
end
end
页:
[1]