函数所在文件:F:\醉江山\最新明文补丁\Interface\SuperToolTip\supertooltip.lua
function Lua_GetSuperWeaponQual(nEquipData)
local nByQual,nCanEnsoul,nFit,nStarNum,iSTongLing = 0,-1,0,0,0
if nEquipData ~= nil then
local Pos1,Pos2,nTongLing,nIndex,nQiHe,nAttrData = string.find(nEquipData,"&SQ(%w)(%w%w)(%w%w)("..string.rep("%w",17)..")")
if Pos1 ~= nil and Pos2 ~= nil then
if tonumber(nTongLing) == 0 then
nCanEnsoul = 1
end
if tonumber(nTongLing) == 1 then
nCanEnsoul = 2
end
iSTongLing = tonumber(nTongLing)
nByQual = tonumber(nIndex)
nFit = tonumber(nQiHe)
nStarNum = nSuperWeaponSX[nByQual][2]
if nStarNum == 6 or nStarNum == 7 then
if nFit == 9 then
nCanEnsoul = 3
end
end
end
end
-- PushDebugMessage("nCanEnsoul "..nCanEnsoul)
return nByQual,nCanEnsoul,nFit,nStarNum,iSTongLing
end
|