mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-22 04:00:49 +00:00
macrotweak: add /use and /equip command to vanilla
This commit is contained in:
@@ -17,4 +17,14 @@ pfUI:RegisterModule("macrotweak", "vanilla", function ()
|
|||||||
userinput = nil
|
userinput = nil
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- add /use and /equip to the macro api
|
||||||
|
_G.SLASH_PFUSE1, _G.SLASH_PFUSE2, _G.SLASH_PFUSE3, _G.SLASH_PFUSE4 = '/use', '/pfuse', '/equip', '/pfequip'
|
||||||
|
function _G.SlashCmdList.PFUSE(msg)
|
||||||
|
if not msg or msg == "" then return end
|
||||||
|
local bag, slot = FindItem(msg)
|
||||||
|
if bag and slot then
|
||||||
|
UseContainerItem(bag, slot)
|
||||||
|
end
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user