找回密码
 立即注册
服务器名版本类型版本介绍玩家QQ群号星级
查看: 379|回复: 0

[通用宏] 脚本:卖装备,删装备,分解装备,存装备宏

[复制链接]

38

主题

0

回帖

122

积分

超级版主

积分
122
发表于 2023-12-14 19:48:41 | 显示全部楼层 |阅读模式
138wow.com
<1>
一键卖掉1-4背包包含关键字的装备(检测到NPC窗口才会运行)
  1. /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个背包物品
  1. /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号)
  1. /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>
一键分解装备(资源化改成你要分解的装备名)
  1. /use 分解工具
  2. /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>
打开银行界面存入:传说·瑞文戴尔之剑
  1. /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基础的可以自己优化,分享到本论坛!~
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|138wow魔兽私服论坛

GMT+8, 2024-5-20 19:50 , Processed in 0.043218 second(s), 20 queries .

Powered by Discuz! X3.5 Designed by 138wow.com © 魔兽世界私服,魔兽世界私服论坛

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表