landsandboat/scripts/items/toolbag_soshi.lua

17 lines
419 B
Lua

-----------------------------------
-- ID: 5734
-- Toolbag Soshi
-- When used, you will obtain one stack of soshi
-----------------------------------
---@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.SOSHI, 99 } })
end
return itemObject