Skip to content

Commit

Permalink
fix: npc zoltan giving free ferumbras hat (#2945)
Browse files Browse the repository at this point in the history
Change the NPC Zoltan to prevent exploits and having Ferumbras Hat for free.
  • Loading branch information
FelipePaluco authored Oct 14, 2024
1 parent 2591213 commit 2682065
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data-otservbr-global/npc/zoltan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2682065

Please sign in to comment.