Skip to content

Commit 2682065

Browse files
authored
fix: npc zoltan giving free ferumbras hat (#2945)
Change the NPC Zoltan to prevent exploits and having Ferumbras Hat for free.
1 parent 2591213 commit 2682065

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data-otservbr-global/npc/zoltan.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ local function creatureSayCallback(npc, creature, type, message)
7676
if player:getSex() == PLAYERSEX_MALE and not player:hasOutfit(130, 2) then
7777
if MsgContains(message, "yes") then
7878
if player:getItemCount(5903) == 1 then
79-
npcHandler:say("Sorry you don't have the Ferumbras' hat.", npc, creature)
80-
else
8179
npcHandler:say("I bow to you, player, and hereby grant you the right to wear Ferumbras' hat as accessory. Congratulations!", npc, creature)
8280
player:removeItem(5903, 1)
8381
player:addOutfitAddon(130, 2) -- male mage addon
84-
player:addOutfitAddon(133, 2) -- male summoner addon
82+
player:addOutfitAddon(141, 2) -- female summoner addon
8583
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
84+
else
85+
npcHandler:say("Sorry you don't have the Ferumbras' hat.", npc, creature)
8686
end
8787
else
8888
npcHandler:say("This task is only available for male players who don't already have the addon.", npc, creature)

0 commit comments

Comments
 (0)