From 0229a1220a74121c3926113302197b80188a5e85 Mon Sep 17 00:00:00 2001 From: Felipe Paluco <87909998+FelipePaluco@users.noreply.github.com> Date: Fri, 4 Oct 2024 19:58:30 -0300 Subject: [PATCH] fix: fix wrongly giving ferumbras hat free --- data-otservbr-global/npc/zoltan.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data-otservbr-global/npc/zoltan.lua b/data-otservbr-global/npc/zoltan.lua index 9d783dd0441..c9c23cfe803 100644 --- a/data-otservbr-global/npc/zoltan.lua +++ b/data-otservbr-global/npc/zoltan.lua @@ -76,13 +76,13 @@ local function creatureSayCallback(npc, creature, type, message) if player:getSex() == PLAYERSEX_MALE and not player:hasOutfit(130, 2) then if MsgContains(message, "yes") then if player:getItemCount(5903) == 1 then - npcHandler:say("Sorry you don't have the Ferumbras' hat.", npc, creature) - else npcHandler:say("I bow to you, player, and hereby grant you the right to wear Ferumbras' hat as accessory. Congratulations!", npc, creature) player:removeItem(5903, 1) player:addOutfitAddon(130, 2) -- male mage addon - player:addOutfitAddon(133, 2) -- male summoner addon + player:addOutfitAddon(141, 2) -- female summoner addon player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED) + else + npcHandler:say("Sorry you don't have the Ferumbras' hat.", npc, creature) end else npcHandler:say("This task is only available for male players who don't already have the addon.", npc, creature)