首先先去找几个节日NPC把任务做了,任务奖励大概有50左右的签子(具体数目忘了),然后找NPC马莉颖用签子买小银锤,也就花了几G而已
然后,新建一个宏命令
我习惯把宏按键放在1
宏全文如下:
/script
bZiDongZa = bZiDongZa or false
bZiDongZa2 = bZiDongZa2 or false
if not bZiDongZa then
Output("自动砸开启")
bZiDongZa = true
else
Output("自动砸关闭")
bZiDongZa = false
end
if not bZiDongZa2 then
RegisterEvent("NPC_ENTER_SCENE", function()
if not bZiDongZa then return end
bZiDongZa2 = true
if GetNpc(arg0).szName == "年兽陶罐" and GetCharacterDistance(GetClientPlayer().dwID,arg0) / 64 <= 4 then
SetTarget(3,arg0)
OnUseItem(1,1)
end
frame_CloseMessageBox()
end)
end
RegisterEvent("RENDER_FRAME_UPDATE",function() if bZiDongZa then if GetLogicFrameCount() % 2 == 0 then frame_CloseMessageBox() end end end)
function frame_CloseMessageBox(szName)
local frame = Station.Lookup("Topmost/MB_PlayerMessageBoxCommon")
if frame then
local btn = frame:Lookup("Wnd_All/Btn_Option1")
if btn and btn:IsEnabled() then
btn.fnAction(1)
CloseMessageBox("PlayerMessageBoxCommon")
end
end
end
注意!!!: 小银锤一定要放在背包第二个格子里:
然后找几个罐子中间站着,按一下1,宏就开始自动运行了
再按一下1,宏关闭
剑网3相关资讯: