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pKZUrBINAeWOOPBOWPCCwFJ6LLHFEHigTszyaedfOVFUD6HVi)jUxUqtTJNqtNU30RtADr3LUO7sx0D3ErJrSQ1yVuTGg6cTCJO5WfPwvZtQOurE(7inhNe)wcPu(TY4Qzzd96sp8GuR3bUF8bhXzxd()qpec8))p

设置1跟随,2停止跟随:

则在代码修改:把11改成1,把22改成2,完成即可

进入改代码的步骤如下:
队伍打/wa
魔兽跟随字符串_第1张图片
可以看到原来的代码如下:

function(event,arg1,_,_,_,arg5,_,_,_,_,_,_,_,_)    
    if event == "CHAT_MSG_PARTY" or event =="CHAT_MSG_PARTY_LEADER"or event =="CHAT_MSG_RAID_LEADER" or event =="CHAT_MSG_RAID" then
        local name= UnitName("player")
        if (arg1 =="11"or arg1=="111")  and name ~= arg5 then
            print("开始跟随玩家->"..arg5)
            FollowUnit(arg5)
        end
        if arg1=="22" or arg1=="222"  then
            print("停止跟随")
            FollowUnit("player")            
        end        
    end    
end

11改成1,把22改成2,完成即可
魔兽跟随字符串_第2张图片
或直接复制粘贴下面:

function(event,arg1,_,_,_,arg5,_,_,_,_,_,_,_,_)    
    if event == "CHAT_MSG_PARTY" or event =="CHAT_MSG_PARTY_LEADER"or event =="CHAT_MSG_RAID_LEADER" or event =="CHAT_MSG_RAID" then
        local name= UnitName("player")
        if (arg1 =="1"or arg1=="111")  and name ~= arg5 then
            print("开始跟随玩家->"..arg5)
            FollowUnit(arg5)
        end
        if arg1=="2" or arg1=="222"  then
            print("停止跟随")
            FollowUnit("player")            
        end        
    end    
end

本设置适应装有爱,加载了wa的用户,大脚插件请在大脚界面单体插件下载weakauras,再导入设置

你可能感兴趣的:(魔兽)