diff --git a/game/modules/tome/data/achievements/quests.lua b/game/modules/tome/data/achievements/quests.lua index fa06a1f75eed6561f1bc90767aa48160f935e7fa..0fd8bd2c9f7816cfb71307ceef4f9fafc91d0c5b 100644 --- a/game/modules/tome/data/achievements/quests.lua +++ b/game/modules/tome/data/achievements/quests.lua @@ -113,3 +113,7 @@ newAchievement{ name = "Curse Lifter", id = "CURSE_ERASER", desc = [[Killed Ben Cruthdar the Cursed.]], } +newAchievement{ + name = "There and back again", id = "WEST_PORTAL", + desc = [[Opened a portal to Middle-earth from the Far East.]], +} diff --git a/game/modules/tome/data/quests/west-portal.lua b/game/modules/tome/data/quests/west-portal.lua index 236cbd5bb5c9a89937043f4c0ad36c32c1948974..afa7ac94e1d6bfe8c103d271954f77a40b3b3a7e 100644 --- a/game/modules/tome/data/quests/west-portal.lua +++ b/game/modules/tome/data/quests/west-portal.lua @@ -116,14 +116,8 @@ This one seems to go near the town of Minas Tirith in the West.]], game.zone:addEntity(game.level, zemekkys, "actor", 41, 17) game.zone:addEntity(game.level, g, "terrain", 41, 16) - game.player:move(40, 16, true) -end + player:move(40, 16, true) -on_status_change = function(self, who, status, sub) - if sub then --- if self:isCompleted() then --- who:setQuestStatus(self.id, engine.Quest.COMPLETED) --- world:gainAchievement("ORC_PRIDE", game.player) --- end - end + player:setQuestStatus(self.id, engine.Quest.DONE) + world:gainAchievement("WEST_PORTAL", game.player) end