diff --git a/data-otservbr-global/npc/altar.lua b/data-otservbr-global/npc/altar.lua index 7c5f27bed5c..057c1cb2c1a 100644 --- a/data-otservbr-global/npc/altar.lua +++ b/data-otservbr-global/npc/altar.lua @@ -50,13 +50,15 @@ local function creatureSayCallback(npc, creature, type, message) end message = message:lower() - if MsgContains(message, "offer") then - npcHandler:say("Five tainted hearts and five darklight hearts drowned in a worldly wealth of 50000000 gold pieces for the righteous. Are you prepared?", npc, creature) + if MsgContains(message, "kneel") then + npcHandler:say("Prepare your offer and cling to the sanctitity of this place.", npc, creature) npcHandler:setTopic(playerId, 1) - elseif MsgContains(message, "yes") and npcHandler:getTopic(playerId) == 1 then + elseif MsgContains(message, "offer") and npcHandler:getTopic(playerId) == 1 then + npcHandler:say("Five tainted hearts and five darklight hearts drowned in a worldly wealth of 50000000 gold pieces for the righteous. Are you prepared?", npc, creature) + npcHandler:setTopic(playerId, 2) + elseif MsgContains(message, "yes") and npcHandler:getTopic(playerId) == 2 then npcHandler:setTopic(playerId, 0) if player:getItemCount(43855) < 5 or player:getItemCount(43854) < 5 then - -- Verifica se o jogador tem menos de 5 de cada item npcHandler:say("Sorry, you don't have all items.", npc, creature) return true end @@ -67,7 +69,7 @@ local function creatureSayCallback(npc, creature, type, message) end if player:removeItem(43855, 5) and player:removeItem(43854, 5) then - player:addItem(43895, 1) + player:addItem(BAG_YOU_COVET, 1) npcHandler:say("Your sacrifice has been accepted, mortal. Embrace your reward!", npc, creature) end elseif MsgContains(message, "no") and npcHandler:getTopic(playerId) == 1 then diff --git a/data-otservbr-global/world/otservbr-npc.xml b/data-otservbr-global/world/otservbr-npc.xml index e707a58c248..b6a6456979b 100644 --- a/data-otservbr-global/world/otservbr-npc.xml +++ b/data-otservbr-global/world/otservbr-npc.xml @@ -2986,4 +2986,7 @@ + + +