function cb(mb,id,stk,time)
r=false
s=0
l=0
for z,x in pairs(mb.GetBuffList() or {}) do
if x.dwID==id then
r=true
s=x.nStackNum
l=(x.nEndFrame-GetLogicFrameCount())/16
end
end
if r==true and s>=stk and l>=time then return true else return false end
end
Bữa mới lụm được cái hàm này bên...