脚本:卖装备,删装备,分解装备,存装备宏
<1>一键卖掉1-4背包包含关键字的装备(检测到NPC窗口才会运行)
/run s={"段紫","伍※长"} for b=1,4 do p=GetContainerNumSlots(b) for i=1,p do e=GetContainerItemLink(b,i) for k,v in pairs(s) do if e and MerchantFrame:IsVisible() and string.find(e,v) then UseContainerItem(b,i); end end end end
<2>
一键删除前88个背包物品
/run for i=1,88 do q=GetContainerItemLink(i/37,i%37)if q then PickupContainerItem(i/37,i%37)DeleteCursorItem()end;end
<3>
一键删除包含名字的装备(背包1-4号)
/run s={"┃魂师┃"} for b=1,4 do p=GetContainerNumSlots(b) for i=1,p do e=GetContainerItemLink(b,i) for k,v in pairs(s) do if e and string.find(e,v) then PickupContainerItem(b,i); DeleteCursorItem(); end end end end
<4>
一键分解装备(资源化改成你要分解的装备名)
/use 分解工具
/run local bag,slot,wp if UnitHealth('player')>1 then for bag=0,4 do for slot=1,GetContainerNumSlots(bag)do wp=GetContainerItemLink(bag,slot)if wp and string.find(wp, "资源化") then UseContainerItem(bag,slot)return end end end end
<5>
打开银行界面存入:传说·瑞文戴尔之剑
/run s={"传说·瑞文戴尔之剑"} for b=0,4 do p=GetContainerNumSlots(b) for i=1,p do e=GetContainerItemLink(b,i) for k,v in pairs(s) do if e and string.find(e,v) then UseContainerItem(b,i);end end end end
脚本都是自用的忘珍惜,有lua基础的可以自己优化,分享到本论坛!~ 多谢分享
页:
[1]