Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: npc zoltan giving free ferumbras hat #2945

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading