本帖最后由 大玩家123 于 2024-2-17 19:46 编辑  
 
QFunction内容: 
[@PickUpItemEX] 
#IF  
#ACT  
testcustom <$CURRTEMMAKEINDEX> <$CURRTEMNAME> 
 
LuaFunc-0.lua内容: 
function testcustom(actor,itemOnlyID,itemName) 
    local itemobj = getitembymakeindex(actor,itemOnlyID) 
    local tbl = { 
        ["abil"] = { 
            { 
                ["i"] = 0, 
                ["t"] = "[测试]", 
                ["c"] = 94, 
                ["v"] = { 
                    {254,4,15,0,54,0,0}, 
                    {254,4,15,0,54,1,1}, 
                    {254,4,15,0,54,2,2}, 
                    {254,4,15,0,54,3,3}, 
                    {254,4,15,0,54,4,4}, 
                    {254,4,15,0,54,5,5}, 
                    {254,4,15,0,54,6,6}, 
                    {254,4,15,0,54,7,7}, 
                }, 
            }, 
        }, 
        ["name"] = itemName .. "[锻造 + 1]", 
    } 
    setitemcustomabil(actor,itemobj,tbl2json(tbl)) 
    refreshitem(actor,itemobj) 
end 
 
LuaFuncList.txt内容: 
testcustom 
 
自定义的属性条目越多,耗时差距会越大 |