Index: alchemists_belt.lua =================================================================== --- alchemists_belt.lua (revision 0) +++ alchemists_belt.lua (working copy) @@ -0,0 +1,48 @@ +----------------------------------------- +-- ID: 15450 +-- Item: Alchemist's belt +-- Enchantment: Synthesis image support +-- 2Min, All Races +----------------------------------------- +-- Enchantment: Synthesis image support +-- Duration: 2Min +-- Alchemy Skill +1 +----------------------------------------- + +require("scripts/globals/status"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) +local result = 0; + if (target:hasStatusEffect(EFFECT_ALCHEMY_IMAGERY) == true) then + result = 242; + end +return result; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + target:addStatusEffect(EFFECT_ALCHEMY_IMAGERY,55,0,120); +end; + +----------------------------------------- +-- onEffectGain Action +----------------------------------------- + +function onEffectGain(target,effect) + target:addMod(MOD_SKILL_ALC, 1); +end; + +----------------------------------------- +-- onEffectLose Action +----------------------------------------- + +function onEffectLose(target,effect) + target:delMod(MOD_SKILL_ALC, 1); +end; \ No newline at end of file Index: Anniversary_ring.lua =================================================================== --- Anniversary_ring.lua (revision 0) +++ Anniversary_ring.lua (working copy) @@ -0,0 +1,32 @@ +----------------------------------------- +-- ID: 15793 +-- Item: Anniversary Ring +-- Experience point bonus +----------------------------------------- +-- Bonus: +100% +-- Duration: 720 min +-- Max bonus: 3000 exp +----------------------------------------- + +require("scripts/globals/status"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) +local result = 0; + if (target:hasStatusEffect(EFFECT_DEDICATION) == true) then + result = 56; + end +return result; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + target:addStatusEffect(EFFECT_DEDICATION,100,0,43200); + target:addMod(MOD_DEDICATION_CAP, 3000); +end; \ No newline at end of file Index: blacksmiths_belt.lua =================================================================== --- blacksmiths_belt.lua (revision 0) +++ blacksmiths_belt.lua (working copy) @@ -0,0 +1,48 @@ +----------------------------------------- +-- ID: 15445 +-- Item: Blacksmith's Belt +-- Enchantment: Synthesis image support +-- 2Min, All Races +----------------------------------------- +-- Enchantment: Synthesis image support +-- Duration: 2Min +-- Smithing Skill +1 +----------------------------------------- + +require("scripts/globals/status"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) +local result = 0; + if (target:hasStatusEffect(EFFECT_SMITHING_IMAGERY) == true) then + result = 237; + end +return result; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + target:addStatusEffect(EFFECT_SMITHING_IMAGERY,50,0,120); +end; + +----------------------------------------- +-- onEffectGain Action +----------------------------------------- + +function onEffectGain(target,effect) + target:addMod(MOD_SKILL_SMT, 1); +end; + +----------------------------------------- +-- onEffectLose Action +----------------------------------------- + +function onEffectLose(target,effect) + target:delMod(MOD_SKILL_SMT, 1); +end; \ No newline at end of file Index: boneworkers_belt.lua =================================================================== --- boneworkers_belt.lua (revision 0) +++ boneworkers_belt.lua (working copy) @@ -0,0 +1,48 @@ +----------------------------------------- +-- ID: 15449 +-- Item: Boneworker's belt +-- Enchantment: Synthesis image support +-- 2Min, All Races +----------------------------------------- +-- Enchantment: Synthesis image support +-- Duration: 2Min +-- Bonecraft Skill +1 +----------------------------------------- + +require("scripts/globals/status"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) +local result = 0; + if (target:hasStatusEffect(EFFECT_BONECRAFT_IMAGERY) == true) then + result = 241; + end +return result; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + target:addStatusEffect(EFFECT_BONECRAFT_IMAGERY,54,0,120); +end; + +----------------------------------------- +-- onEffectGain Action +----------------------------------------- + +function onEffectGain(target,effect) + target:addMod(MOD_SKILL_BON, 1); +end; + +----------------------------------------- +-- onEffectLose Action +----------------------------------------- + +function onEffectLose(target,effect) + target:delMod(MOD_SKILL_BON, 1); +end; \ No newline at end of file Index: carpenters_belt.lua =================================================================== --- carpenters_belt.lua (revision 0) +++ carpenters_belt.lua (working copy) @@ -0,0 +1,48 @@ +----------------------------------------- +-- ID: 15444 +-- Item: Carpenter's belt +-- Enchantment: Synthesis image support +-- 2Min, All Races +----------------------------------------- +-- Enchantment: Synthesis image support +-- Duration: 2Min +-- Woodworking Skill +1 +----------------------------------------- + +require("scripts/globals/status"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) +local result = 0; + if (target:hasStatusEffect(EFFECT_WOODWORKING_IMAGERY) == true) then + result = 236; + end +return result; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + target:addStatusEffect(EFFECT_WOODWORKING_IMAGERY,49,0,120); +end; + +----------------------------------------- +-- onEffectGain Action +----------------------------------------- + +function onEffectGain(target,effect) + target:addMod(MOD_SKILL_WDW, 1); +end; + +----------------------------------------- +-- onEffectLose Action +----------------------------------------- + +function onEffectLose(target,effect) + target:delMod(MOD_SKILL_WDW, 1); +end; \ No newline at end of file Index: culinarians_belt.lua =================================================================== --- culinarians_belt.lua (revision 0) +++ culinarians_belt.lua (working copy) @@ -0,0 +1,48 @@ +----------------------------------------- +-- ID: 15451 +-- Item: Culinarian's Belt +-- Enchantment: Synthesis image support +-- 2Min, All Races +----------------------------------------- +-- Enchantment: Synthesis image support +-- Duration: 2Min +-- Alchemy Skill +1 +----------------------------------------- + +require("scripts/globals/status"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) +local result = 0; + if (target:hasStatusEffect(EFFECT_COOKING_IMAGERY) == true) then + result = 243; + end +return result; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + target:addStatusEffect(EFFECT_COOKING_IMAGERY,56,0,120); +end; + +----------------------------------------- +-- onEffectGain Action +----------------------------------------- + +function onEffectGain(target,effect) + target:addMod(MOD_SKILL_COK, 1); +end; + +----------------------------------------- +-- onEffectLose Action +----------------------------------------- + +function onEffectLose(target,effect) + target:delMod(MOD_SKILL_COK, 1); +end; \ No newline at end of file Index: ducal_guards_ring.lua =================================================================== --- ducal_guards_ring.lua (revision 0) +++ ducal_guards_ring.lua (working copy) @@ -0,0 +1,23 @@ +----------------------------------------- +-- ID: 14657 +-- Ducal Guard Ring +-- Enchantment: "Teleport-RuLude Gardens" +----------------------------------------- + +require("scripts/globals/teleports"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) + return 0; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + target:setPos(0, -23.5, 29.15, 63, 243); +end; \ No newline at end of file Index: goldsmiths_belt.lua =================================================================== --- goldsmiths_belt.lua (revision 0) +++ goldsmiths_belt.lua (working copy) @@ -0,0 +1,48 @@ +----------------------------------------- +-- ID: 15446 +-- Item: Goldsmith's Belt +-- Enchantment: Synthesis image support +-- 2Min, All Races +----------------------------------------- +-- Enchantment: Synthesis image support +-- Duration: 2Min +-- Goldsmithing Skill +1 +----------------------------------------- + +require("scripts/globals/status"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) +local result = 0; + if (target:hasStatusEffect(EFFECT_GOLDSMITHING_IMAGERY) == true) then + result = 238; + end +return result; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + target:addStatusEffect(EFFECT_GOLDSMITHING_IMAGERY,51,0,120); +end; + +----------------------------------------- +-- onEffectGain Action +----------------------------------------- + +function onEffectGain(target,effect) + target:addMod(MOD_SKILL_GLD, 1); +end; + +----------------------------------------- +-- onEffectLose Action +----------------------------------------- + +function onEffectLose(target,effect) + target:delMod(MOD_SKILL_GLD, 1); +end; \ No newline at end of file Index: kupofrieds_ring.lua =================================================================== --- kupofrieds_ring.lua (revision 0) +++ kupofrieds_ring.lua (working copy) @@ -0,0 +1,32 @@ +----------------------------------------- +-- ID: 15793 +-- Item: Anniversary Ring +-- Experience point bonus +----------------------------------------- +-- Bonus: +100% +-- Duration: 720 min +-- Max bonus: 3000 exp +----------------------------------------- + +require("scripts/globals/status"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) +local result = 0; + if (target:hasStatusEffect(EFFECT_DEDICATION) == true) then + result = 56; + end +return result; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + target:addStatusEffect(EFFECT_DEDICATION,100,0,86400); + target:addMod(MOD_DEDICATION_CAP, 6000); +end; \ No newline at end of file Index: republic_signet_staff.lua =================================================================== --- republic_signet_staff.lua (revision 0) +++ republic_signet_staff.lua (working copy) @@ -0,0 +1,24 @@ +----------------------------------------- +-- ID: 17584 +-- Item: Kingdom Signet Staff +-- Effect: Signet +----------------------------------------- + +require("scripts/globals/status"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) +return 0; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + player:delStatusEffect(EFFECT_SIGNET); + player:addStatusEffect(EFFECT_SIGNET,0,0,3600); +end; \ No newline at end of file Index: trump_card_case.lua =================================================================== --- trump_card_case.lua (revision 0) +++ trump_card_case.lua (working copy) @@ -0,0 +1,16 @@ +-- Trump Card Case +-- Lua By Reefed406 +-- ItemID : 5870 + +function onItemCheck(target) + local result = 0; + if(target:getFreeSlotsCount() == 0) then + result = 308; + end +return result; +end; + +-- OnItemUse +function onItemUse(target) + target:addItem(2974, 99); +end; \ No newline at end of file Index: weavers_belt.lua =================================================================== --- weavers_belt.lua (revision 0) +++ weavers_belt.lua (working copy) @@ -0,0 +1,48 @@ +----------------------------------------- +-- ID: 15447 +-- Item: Weaver's Belt +-- Enchantment: Synthesis image support +-- 2Min, All Races +----------------------------------------- +-- Enchantment: Synthesis image support +-- Duration: 2Min +-- Clothcraft Skill +1 +----------------------------------------- + +require("scripts/globals/status"); + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) +local result = 0; + if (target:hasStatusEffect(EFFECT_CLOTHCRAFT_IMAGERY) == true) then + result = 239; + end +return result; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + target:addStatusEffect(EFFECT_CLOTHCRAFT_IMAGERY,52,0,120); +end; + +----------------------------------------- +-- onEffectGain Action +----------------------------------------- + +function onEffectGain(target,effect) + target:addMod(MOD_SKILL_CLT, 1); +end; + +----------------------------------------- +-- onEffectLose Action +----------------------------------------- + +function onEffectLose(target,effect) + target:delMod(MOD_SKILL_CLT, 1); +end; \ No newline at end of file