2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
2018-01-05 17:56:39 -07:00
|
|
|
-- ID: 18336, 18337, 18649, 18663, 18677, 19758, 19851, 21260, 21261, 21267
|
|
|
|
|
-- Item: Annihilator
|
2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
2024-08-24 12:32:37 -04:00
|
|
|
---@type TItem
|
2022-10-06 17:25:46 +03:00
|
|
|
local itemObject = {}
|
2018-01-05 17:56:39 -07:00
|
|
|
|
2026-05-25 20:42:11 -06:00
|
|
|
itemObject.onItemCheck = function(target, item, caster)
|
2018-11-14 23:42:27 -07:00
|
|
|
if target:getFreeSlotsCount() == 0 then
|
2021-04-01 15:10:15 -04:00
|
|
|
return xi.msg.basic.ITEM_UNABLE_TO_USE
|
2018-01-05 17:56:39 -07:00
|
|
|
end
|
|
|
|
|
|
2018-08-07 19:36:44 -04:00
|
|
|
return 0
|
2018-01-05 17:56:39 -07:00
|
|
|
end
|
2018-07-06 10:43:36 -07:00
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
itemObject.onItemUse = function(target)
|
2023-08-21 17:36:27 -04:00
|
|
|
npcUtil.giveItem(target, { { xi.item.ERADICATING_BULLET, 99 } })
|
2018-08-07 19:36:44 -04:00
|
|
|
end
|
2021-01-17 11:55:03 -05:00
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
return itemObject
|