Skip to content
Snippets Groups Projects
Commit 8ab1ade6 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4173 51575b47-30f0-44d4-a5cc-537603b46e54
parent d2f5e174
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@
newChat{ id="welcome",
text = [[What may I do for you?]],
answers = {
{"Lady Aeryn, at last I am back home! [tell her your story]", jump="return", cond=function(npc, player) return player:hasQuest("start-sunwall") and not player:isQuestStatus("start-sunwall", engine.Quest.COMPLETED, "return") end, action=function(npc, player) player:setQuestStatus("start-sunwall", engine.Quest.COMPLETED, "return") end},
{"Lady Aeryn, at last I am back home! [tell her your story]", jump="return", cond=function(npc, player) return player:hasQuest("start-sunwall") and not player:isQuestStatus("start-sunwall", engine.Quest.COMPLETED, "slazish") and not player:isQuestStatus("start-sunwall", engine.Quest.COMPLETED, "return") end, action=function(npc, player) player:setQuestStatus("start-sunwall", engine.Quest.COMPLETED, "return") end},
{"Tell me more about the Gates of Morning.", jump="explain-gates", cond=function(npc, player) return player.faction ~= "sunwall" end},
{"Before I came here, I happened upon members of the Sunwall in Maj'Eyal. Do you know of this?.", jump="sunwall_west", cond=function(npc, player) return game.state.found_sunwall_west and not npc.been_asked_sunwall_west end, action=function(npc, player) npc.been_asked_sunwall_west = true end},
{"I need help in my hunt for clues about the staff.", jump="clues", cond=function(npc, player) return game.state:isAdvanced() and not player:hasQuest("orc-pride") end},
......
......@@ -45,6 +45,19 @@ newChat{ id="fool",
game.level.map:particleEmitter(player.x, player.y, 1, "teleport_water")
game.level.map:particleEmitter(sx, sy, 1, "teleport_water")
game:onLevelLoad("wilderness-1", function(zone, level, data)
local list = {}
for i = 0, level.map.w - 1 do for j = 0, level.map.h - 1 do
local idx = i + j * level.map.w
if level.map.map[idx][engine.Map.TERRAIN] and level.map.map[idx][engine.Map.TERRAIN].change_zone == data.from then
list[#list+1] = {i, j}
end
end end
if #list > 0 then
game.player.wild_x, game.player.wild_y = unpack(rng.table(list))
end
end, {from=game.zone.short_name})
local chat = require("engine.Chat").new("zoisla", npc, player)
chat:invoke("kill")
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