Skip to content

Commit

Permalink
Merge branch 'main' into merge-branches
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Mar 16, 2024
2 parents 6453947 + af7126a commit 9a1ec1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions data-otservbr-global/npc/gnomadness.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,13 @@ local function creatureSayCallback(npc, creature, type, message)
end
if hazard:setPlayerCurrentLevel(player, desiredLevel) then
npcHandler:say("Your hazard level has been set to " .. desiredLevel .. ". Good luck!", npc, creature)
if desiredLevel >= hazard.maxLevel and not player:kv():scoped("primal-ordeal"):get("received-prize") then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Congratulations you received the Noxious Ripptor mount.")
if desiredLevel >= 6 and not player:kv():scoped("primal-ordeal"):get("received-prize") then
player:addMount(202)
npcHandler:say("You've achived the maximum hazard level. As a reward, you've received the Noxious Ripptor mount and a primal bag.", npc, creature)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Congratulations you received the Noxious Ripptor mount.")
player:addAchievement("Ripp-Ripp Hooray!")
player:addItem(PRIMAL_BAG, 1)
player:kv():scoped("primal-ordeal"):set("received-prize", true)
npcHandler:say("You've achieved the necessary hazard level. As a reward, you've received the Noxious Ripptor mount and a primal bag.", npc, creature)
end
else
npcHandler:say("You can't set your hazard level higher than your maximum unlocked level.", npc, creature)
Expand Down
1 change: 1 addition & 0 deletions data/scripts/lib/register_achievements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ ACHIEVEMENTS = {
[531] = { name = "First Achievement", grade = 1, points = 1, secret = true, description = "Congratulations to your very first achievement! ... Well, not really. But imagine, it is. Because at this point during your journey into Tibia's past, achievements have been introduced." },
[532] = { name = "Sharp Dressed", grade = 1, points = 2, description = "Just everyone will be crazy about you if you are wearing this formal dress. They will come running, promise!" },
[533] = { name = "Engine Driver", grade = 1, points = 3, description = "This glooth-driven locomotive will bring you to any party in the blink of an eye." },
[540] = { name = "Ripp-Ripp Hooray!", grade = 1, points = 3, description = "Don't get carried away by your success. Get carried away by your Ripptor." },
}

--[[
Expand Down

0 comments on commit 9a1ec1d

Please sign in to comment.