function on_DropItem(x, y, looks, color, effectId, name, expand1, dbIdx, count, seeMode)
local d_item = c.item.getDBItem(dbIdx)
local _std = d_item:getStdMode()
local sta={[5]=0,[6]=0,[19]=0,[20]=0,}
local _T={"攻速","幸运"}
local _st={
[5]={"幸运","暴击","强度","攻速","准确","诅咒","","刺术","道术","魔法","攻击",},
[6]={"幸运","暴击","强度","攻速","准确","诅咒","","刺术","道术","魔法","攻击",},
[19]={"","","","","","躲避","幸运","刺术","道术","魔法","攻击",},
[20]={"","","","","","准确","敏捷","刺术","道术","魔法","攻击",},
[99]={"","","","","","物防","魔防","刺术","道术","魔法","攻击",}
}
local itype={11000,10000,9000,8000,7000,6000,5000,4000,3000,2000,1000}
local nts=""
local tab={}
local Mxv=0
local smg=0
if _st[_std] then tab=_st[_std] else tab=_st[99] end
local _s={['攻速']=0,['幸运']=0,['道术']=0,['魔法']=0,['攻击']=0}
if _SM[expand1] then
smg=1
local _k=_SM[expand1]
return {showName = name.."【".._k.mg.."】",color = 251,effectId = k4[_k.id]}
end
if smg==0 then for i,k in pairs(itype) do if expand1 >= k then nts,expand1=tab[i],expand1-k break end end end
if nts~="" and _s[nts] then
local _c=expand1
if nts==_T[1] or nts==_T[2] then
if nts==_T[1] and _c > 0 then return {showName = name.."【"..nts.."+".._c.."】", color = 254,effectId = k2[_c]} end
if nts==_T[2] and _c > 0 then return {showName = name.."【"..nts.."+".._c.."】", color = 253,effectId = k1[_c]} end
else
if _c > 0 then return {showName = name.."【"..nts.."+".._c.."】", color = 250,effectId = k3[_c]} end
end
end
end |