--------------------------------------------------------------------------------
-- English template of AutoSelectDialog config.
-- Replace the default config.txt with this one.
-- Everything that starts with -- will be ignored by game client.
-- Some options work good, the rest (e.g. the commented out) need updating.
-- To enable any config option remove -- before it.
--------------------------------------------------------------------------------
-- Created: 2014-05-23
-- Updated: 2014-10-16
-- Support: https://alloder.pro/topic/1371-autoselectdialog/
--------------------------------------------------------------------------------
-- Autoselect and autofinish quests
--------------------------------------------------------------------------------
Global("autoSelectQuests", {
-- Syntax:
-- ["Interactor name"] = "Quest name",
-- ["Interactor name"] = { "Quest name 1", "Quest name 2", "Quest name 3" },

-- Power of Intention quests
-- Works ok! Remove leading -- symbols if you need these quests.
--	["Keeper of the Universe"] = { "Power of Intention: Chaos Incarnate", "Power of Intention: Cunning Incarnate", "Power of Intention: Darkness Incarnate", "Power of Intention: Death Incarnate", "Power of Intention: Life Incarnate", "Power of Intention: Madness Incarnate", "Power of Intention: Power Incarnate", "Power of Intention: Rage Incarnate", "Power of Intention: Spirit Incarnate", "Power of Intention: Thought Incarnate" }

-- Guild quests
	["Semer Khendjer"] = { "Pledge of Eulogy", "Pledge of Dueling" },
	["Oleg Shpilev"] = { "Pledge of Eulogy", "Pledge of Dueling" },

-- Tear of the Dragon quests
	["Yulia Dobrynina"] = { "He Who Brings Peace", "Rest for the Restless", "Mercy to the Fallen", "Go to the Purgatory", "Secure Cover", "Strong Cover" },
	["Anna Kavelina"] = { "He Who Brings Peace", "Rest for the Restless", "Mercy to the Fallen", "Go to the Purgatory", "Secure Cover", "Strong Cover" },

-- Personal allod
	["Bob Jackhammer"] = { "Mysterious Parcel", "Get Off My Land!", "Rat Invasion", "Small Pests" },

-- Tka-Rik cave
	-- Not recommended! Really, you will hate this :)
	--["Klavdia Kalugina"] = { "Path of Trials", },
})
--------------------------------------------------------------------------------
-- Autoselect dialogs
--------------------------------------------------------------------------------
Global("autoSelectDialog", {
-- Syntax:
-- ["Interactor name"] = "Dialog answer",
-- ["Interactor name"] = { "Dialog answer 1", "Dialog answer 2", "Dialog answer 3" },

	--["Auctioneer"] = "Auctioneer", -- Does not work!!
	["Stepan Orlov"] = function() if not avatar.HasInteractorQuest() then mailBox.Open() end end,
	["Yuri Kopeykin"] = { "Trade", RETURN },
	["Lyubava Grosheva"] = { "Trade", RETURN },
	--["Sarbaz Harakhte"] = "Teleport", -- Does not work!!

-- Dragons in Dead City
	["Dragon"] = "Ride the dragon",
-- Go to Dead City
	["Keeper of the Universe"] = "Yes",
-- Lab Thirteen Golem
	["Worn June Golem"] = "Control the golem",
-- Quick Ressurection in Purgatory
	["Goblin Spirit"] = "Give the goblin some drops of mirra",
-- Boutique entrance
	["Boutique Headquarters"] = "Go to the Boutique",
-- Twilight Isle
	--["Headquarter Astralophone"] = "Get concentrated acid",
-- Irdrich
	--["June Ruins"] = "Go to the ship",

-- Tka-Rik cave
	--["Klavdia Kalugina"] = "...",
	-- Extended edition:
	--["Klavdia Kalugina"] = { "...", "Start the trial" },

-- Reincarnation
	--["Sarang Bisanu"] = { "Show list of reincarnations", function() avatar.ReturnToStartCue() end },
	--["Mara de Doucer"] = { "Show list of reincarnations", function() avatar.ReturnToStartCue() end },

-- Mercy to the Fallen
	--["Dead Kanian"] = "Give some mirra",
	--["Dead Gibberlings"] = "Give some mirra",
	--["Dead Xadaganian"] = "Give some mirra",
	--["Perished Elf"] = "Give some mirra",

-- Hangar
	--["Ruslan Kruglov"] = "Go to hangar",
	--["Astral Academy Portal"] = "Go to hangar",

-- Trainers
	["Vlad Kononov"] = "Trade",
	["Aurora Bulatina"] = "Trade",

-- Summerhold
	["92 Arty"] = "Choose a tank",
	["IS-7 Heavy"] = "Choose a tank",
	["Type 59 ST"] = "Choose a tank",
	["T50-2 Firefly"] = "Choose a tank",
})
--------------------------------------------------------------------------------
-- Autostart interaction
--------------------------------------------------------------------------------
Global("autoStartDialog", {
-- Syntax:
-- "NPC name",

	"Stepan Orlov",
	"Alexey Platov",
	"Auctioneer",
	"Banker",

-- Personal allod
	"Bob Jackhammer",

-- Mercy to the Fallen
	"Yulia Dobrynina",
	"Anna Kavelina",
	"Dead Kanian",
	"Dead Gibberlings",
	"Dead Xadaganian",
	"Perished Elf",

-- Guild Master
	"Semer Khendjer",
	"Oleg Shpilev",

-- Reincarnation
	"Sarang Bisanu",
	"Mara de Doucer",

-- Portal Keepers
	"Sarbaz Harakhte",
	"Vasily Baturin",
	"Dmitry Makunin",
	"Hugues de Delice",
})