Skip to content

Commit

Permalink
Merge pull request #5857 from The-Aerec/fixItemCheck
Browse files Browse the repository at this point in the history
Fix Lua onItemCheck
  • Loading branch information
claywar authored May 30, 2024
2 parents ef0ea42 + 94bcd90 commit a400d72
Show file tree
Hide file tree
Showing 2,026 changed files with 2,033 additions and 2,033 deletions.
2 changes: 1 addition & 1 deletion scripts/items/acid_bolt_quiver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.itemBoxOnItemCheck(target)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/acorn_cookie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/acrobats_belt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
local effect = target:getStatusEffect(xi.effect.ENCHANTMENT)
if effect ~= nil and effect:getSubType() == 15866 then
target:delStatusEffect(xi.effect.ENCHANTMENT)
Expand Down
2 changes: 1 addition & 1 deletion scripts/items/adaman_bolt_quiver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.itemBoxOnItemCheck(target)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/adaman_bullet_pouch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.itemBoxOnItemCheck(target)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/adloquium_schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return target:canLearnSpell(xi.magic.spell.ADLOQUIUM)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/aero_mufflers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return 0
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/agaricus_mushroom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/agility_potion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
if target:hasStatusEffect(xi.effect.MEDICINE) then
return xi.msg.basic.ITEM_NO_USE_MEDICATED
end
Expand Down
2 changes: 1 addition & 1 deletion scripts/items/aileens_delight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/air_rider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return 0
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/air_spirit_pact.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return target:canLearnSpell(xi.magic.spell.AIR_SPIRIT)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/airborne.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return 0
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/alabaligi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.RAW_FISH)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/alchemists_belt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
local result = 0
if target:hasStatusEffect(xi.effect.ALCHEMY_IMAGERY) then
result = 242
Expand Down
2 changes: 1 addition & 1 deletion scripts/items/allied_ring.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
local result = 0
if target:hasStatusEffect(xi.effect.DEDICATION) then
result = xi.msg.basic.ITEM_UNABLE_TO_USE_2
Expand Down
2 changes: 1 addition & 1 deletion scripts/items/allies_die.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return target:canLearnAbility(xi.jobAbility.ALLIES_ROLL)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/altanas_repast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/altanas_repast_+1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/altanas_repast_+2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/anchovy_pizza.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/anchovy_pizza_+1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/anemohelix_schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return target:canLearnSpell(xi.magic.spell.ANEMOHELIX)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/angelwing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return 0
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/angler_stewpot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/anglers_cassoulet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/animus_augeo_schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return target:canLearnSpell(xi.magic.spell.ANIMUS_AUGEO)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/animus_minuo_schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return target:canLearnSpell(xi.magic.spell.ANIMUS_MINUO)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/annihilator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
if target:getFreeSlotsCount() == 0 then
return xi.msg.basic.ITEM_UNABLE_TO_USE
end
Expand Down
2 changes: 1 addition & 1 deletion scripts/items/anniversary_ring.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
local result = 0
if target:hasStatusEffect(xi.effect.DEDICATION) then
result = xi.msg.basic.ITEM_UNABLE_TO_USE_2
Expand Down
2 changes: 1 addition & 1 deletion scripts/items/antidote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return 0
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/antlion_quiver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.itemBoxOnItemCheck(target)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/anubiss_knife.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return 0
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/apingaut_snow_cone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/apkallu_egg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/apple_au_lait_tank.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.itemBoxOnItemCheck(target)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/apple_pie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/apple_pie_+1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/aries_mantle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return 0
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/armageddon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
if target:getFreeSlotsCount() == 0 then
return xi.msg.basic.ITEM_UNABLE_TO_USE
end
Expand Down
2 changes: 1 addition & 1 deletion scripts/items/armored_ring.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
local effect = target:getStatusEffect(xi.effect.ENCHANTMENT)
if effect ~= nil and effect:getSubType() == 15783 then
target:delStatusEffect(xi.effect.ENCHANTMENT)
Expand Down
2 changes: 1 addition & 1 deletion scripts/items/army_biscuit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/items/assailants_axe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
local effect = target:getStatusEffect(xi.effect.ENCHANTMENT)
if effect ~= nil and effect:getSubType() == 18488 then
target:delStatusEffect(xi.effect.ENCHANTMENT)
Expand Down
2 changes: 1 addition & 1 deletion scripts/items/assassins_ring.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-----------------------------------
local itemObject = {}

itemObject.onItemCheck = function(target)
itemObject.onItemCheck = function(target, item, param, caster)
local effect = target:getStatusEffect(xi.effect.ENCHANTMENT)
if effect ~= nil and effect:getSubType() == 14678 then
target:delStatusEffect(xi.effect.ENCHANTMENT)
Expand Down
Loading

0 comments on commit a400d72

Please sign in to comment.