landsandboat/scripts/items/death_penalty.lua

20 lines
468 B
Lua

-----------------------------------
-- ID: 19007
-- Item: Death Penalty
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
if target:getFreeSlotsCount() == 0 then
return xi.msg.basic.ITEM_UNABLE_TO_USE
end
return 0
end
itemObject.onItemUse = function(target)
npcUtil.giveItem(target, { { xi.item.LIVING_BULLET, 99 } }) -- Living Bullet x99
end
return itemObject