文章编辑人员:雪舞
内容测试时间:2023-6-29 12:07:37
测试版本:新武侠世界
x900014_DW_DWSIGIN = "&DW(%w)(%w%w)(%w)(%w%w)"
function x900014_DWShikeJC( sceneId, selfId, nPos )
local nLevel_1,nLevel_2 = 0,0
local _, nCreaterData = LuaFnGetItemCreator(sceneId, selfId, nPos);
if nCreaterData == nil then
return nLevel_1,nLevel_2
end
local pos1,pos2,_,nData_1,_,nData_2 = strfind( nCreaterData,x900014_DW_DWSIGIN)
if pos1 == nil or pos2 == nil then
return nLevel_1,nLevel_2
end
if nData_1 ~= nil and nData_1 ~= "00" then
nLevel_1 = tonumber(nData_1)
end
if nData_2 ~= nil and nData_2 ~= "00" then
nLevel_2 = tonumber(nData_2)
end
return nLevel_1,nLevel_2
end
检查是否有雕纹案例:
local IsDW = CallScriptFunction(900014, "DWShikeJC",sceneId,selfId,pos) --雕文检查
if IsDW > 0 then
x900018_Tips( sceneId, selfId, "#{DECOW_160126_30}") --已蚀刻雕纹的武器不可进行幻饰武器锻造操作,请先拆除雕纹。
return
end
|