landsandboat/scripts/items/toolbag_chonofuda.lua

17 lines
425 B
Lua

-----------------------------------
-- ID: 5869
-- Toolbag Cho
-- When used, you will obtain one stack of chonofuda
-----------------------------------
---@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.CHONOFUDA, 99 } })
end
return itemObject