Skip to content
Snippets Groups Projects
Commit 25d4a51d authored by DarkGod's avatar DarkGod
Browse files

Fixed dying as you win the Derth arena

parent 12249155
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,6 @@ newChat{ id="go",
newChat{ id="win",
action = function(npc, player) player:attr("invulnerable", 1) end,
text = [[#LIGHT_GREEN#*The Cornac rogue comes back from the shadows*#WHITE#
Well done, @playerdescriptor.race@! I knew you had potential.
#LIGHT_GREEN#*The rogue takes off his hood, showing a fairly young, but unmistakably
......@@ -126,9 +125,7 @@ But we can make you a true champion, beloved by many and bathing in diamonds.
Good luck in your adventures, and come visit us when you are done!
]],
answers = {
{ "I will. Farewell for now.", action = function (self, player)
player:attr("invulnerable", -1)
{ "I will. Farewell for now.", action = function (self, player) game:onLevelLoad("arena-unlock-1", function()
local g = game.zone:makeEntityByName(game.level, "terrain", "SAND_UP_WILDERNESS")
g.change_level = 1
g.change_zone = "town-derth"
......@@ -141,8 +138,7 @@ Good luck in your adventures, and come visit us when you are done!
game:setAllowedBuild("campaign_arena", true)
game.player:setQuestStatus("arena-unlock", engine.Quest.COMPLETED)
world:gainAchievement("THE_ARENA", game.player)
end
},
end) end},
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment