landsandboat/scripts/items/toolbag_uchitake.lua

17 lines
424 B
Lua

-----------------------------------
-- ID: 5308
-- Toolbag Uchi
-- When used, you will obtain one stack of uchitake
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
return xi.itemUtils.itemBoxOnItemCheck(target)
end
itemObject.onItemUse = function(target)
npcUtil.giveItem(target, { { xi.item.UCHITAKE, 99 } })
end
return itemObject