--界面相关配置
local Dialog = {
	-- 试炼成功图片偏移
	["CompleteX"] = 0,
	["CompleteY"] = 10,
	-- 问好图片偏移
	["WenHaoX"] = 30,
	["WenHaoY"] = 25,
}

--主线任务配置
local MainTask = {
	["Count"] = 7,
	[0] = {
		-- 任务ID
		["TaskID"] = 10017,
		["BtnAni"] = "task_zj1Btn",
		["BtnText"] = "",
		-- 名字图片
		["NameAni"] = "task_wzqfly",
		-- 图标图片
		["IconAni"] = "task_tbqfly",
		-- 任务描述
		["Describe"] = "STR_INI_LUA_QUESTINFO_TASK10017_DESC_0",
		-- 任务完成描述
		["DoneDescribe"] = "STR_INI_LUA_QUESTINFO_TASK10017_DESC_0",
		-- 任务目标数量（最大3个）
		["IntentionCount"] = 1,
		-- 任务背景
                ["BGAni"] = "task_no1bg",
		[0] = {
			-- 目标文本
			["Text"] = "STR_INI_LUA_QUESTINFO_TASK10017_TEXT_0",
			-- 目标进度
			["Goal"] = 30,
			-- 目标对应数据的存储位置
			["GoalPos"] = 1,
			--打开窗口ID（当窗口ID配置成""或者不配置时候，再检查地图ID）窗口ID可以主窗口ID-子控件ID格式(比如: 345-2019)，也可以只配主窗口。目前只有锻造界面345支持配置子控件
			["DlgID"] = "",
			--地图ID（当地图ID配置成0时候，打开如何达成的界面）
			["MapID"] = 0,
			--范围
			["Radius"] = 0,
			--地图位置
			["MapX"] = 0,
			["MapY"] = 0,
			--NPCID
			["NpcID"] = 0,
			-- 如何达成界面内容配置（当地图ID为-1时候需要配置）
			-- 如何达成界面有两个功能，寻路到某点、寻到到某个npc
			-- 如何达成的地图图片
			["ReachMapAni"] = "Questinfo_Map_slc",
			-- 如何达成的地图名字
			["ReachMapName"] = "STR_INI_LUA_QUESTINFO_TASK10017_REACHMAPNAME_0",
			-- 如何达成寻路到某点
			["ReachMapID"] = 10364,
			["ReachRadius"] = 5,
			["ReachMapX"] = 444,
			["ReachMapY"] = 674,
			-- 如何达成任务名字
			["ReachTaskName"] = "STR_INI_LUA_QUESTINFO_TASK10017_REACHTASKNAME_0",
			-- 如何达成寻路到NPC
			-- ["ReachNpcMapID"] = 1002,
			-- ["ReachNpcRadius"] = 5,
			-- ["ReachNpcMapX"] = 395,
			-- ["ReachNpcMapY"] = 358,
			-- ["ReachNpcID"] = 6135,
		},
		-- [0] = {
			-- -- 目标文本
			-- ["Text"] = "平定清风妖乱，封印妖后瑶姬。",
			-- -- 目标进度
			-- ["Goal"] = 1,
			-- -- 目标对应数据的存储位置
			-- ["GoalPos"] = 1,
			-- --地图ID（当地图ID配置成0时候，打开如何达成的界面）
			-- ["MapID"] = 10364,
			-- --范围
			-- ["Radius"] = 0,
			-- --地图位置
			-- ["MapX"] = 302,
			-- ["MapY"] = 148,
			-- --NPCID
			-- ["NpcID"] = 23860,
			-- -- 如何达成界面内容配置（当地图ID为-1时候需要配置）
			-- -- 如何达成界面有两个功能，寻路到某点、寻到到某个npc
			-- -- -- 如何达成的地图图片
			-- -- ["ReachMapAni"] = "task_cijititle",
			-- -- -- 如何达成的地图名字
			-- -- ["ReachMapName"] = "<color=0xffefbd3e>隔壁</color><color=0xff777777>（55-65）</color>",
			-- -- -- 如何达成寻路到某点
			-- -- ["ReachMapID"] = 1002,
			-- -- ["ReachRadius"] = 5,
			-- -- ["ReachMapX"] = 395,
			-- -- ["ReachMapY"] = 358,
			-- -- -- 如何达成任务名字
			-- -- ["ReachTaskName"] = "安慰发哇安慰发",
			-- -- -- 如何达成寻路到NPC
			-- -- ["ReachNpcMapID"] = 1002,
			-- -- ["ReachNpcRadius"] = 5,
			-- -- ["ReachNpcMapX"] = 395,
			-- -- ["ReachNpcMapY"] = 358,
			-- -- ["ReachNpcID"] = 6135,
		-- },
	},
	[1] = {
		-- 任务ID
		["TaskID"] = 10034,
		["BtnAni"] = "task_zj2Btn",
		["BtnText"] = "",
		-- 名字图片
		["NameAni"] = "task_wzfxbb",
		-- 图标图片
		["IconAni"] = "task_tbfxbb",
		-- 任务描述
		["Describe"] = "STR_INI_LUA_QUESTINFO_TASK10034_DESC_0",
		-- 任务完成描述
		["DoneDescribe"] = "STR_INI_LUA_QUESTINFO_TASK10034_DESC_0",
		-- 任务目标数量（最大3个）
		["IntentionCount"] = 1,
		-- 任务背景
                ["BGAni"] = "task_no2bg",
		[0] = {
			-- 目标文本
			["Text"] = "STR_INI_LUA_QUESTINFO_TASK10034_TEXT_0",
			-- 目标进度
			["Goal"] = 50,
			-- 目标对应数据的存储位置
			["GoalPos"] = 1,
			--地图ID（当地图ID配置成0时候，打开如何达成的界面）
			["MapID"] = 0,
			--范围
			["Radius"] = 0,
			--地图位置
			["MapX"] = 0,
			["MapY"] = 0,
			--NPCID
			["NpcID"] = 0,
			-- 如何达成界面内容配置（当地图ID为-1时候需要配置）
			-- 如何达成界面有两个功能，寻路到某点、寻到到某个npc
			-- 如何达成的地图图片
			["ReachMapAni"] = "Questinfo_Map_fxl",
			-- 如何达成的地图名字
			["ReachMapName"] = "STR_INI_LUA_QUESTINFO_TASK10034_REACHMAPNAME_0",
			-- 如何达成寻路到某点
			["ReachMapID"] = 10365,
			["ReachRadius"] = 5,
			["ReachMapX"] = 558,
			["ReachMapY"] = 780,
			-- 如何达成任务名字
			["ReachTaskName"] = "STR_INI_LUA_QUESTINFO_TASK10017_REACHTASKNAME_0",
			-- -- 如何达成寻路到NPC
			-- ["ReachNpcMapID"] = 1002,
			-- ["ReachNpcRadius"] = 5,
			-- ["ReachNpcMapX"] = 395,
			-- ["ReachNpcMapY"] = 358,
			-- ["ReachNpcID"] = 6135,
		},
		-- [0] = {
			-- -- 目标文本
			-- ["Text"] = "消灭枫溪匪军，拯救鸣凤军民。",
			-- -- 目标进度
			-- ["Goal"] = 1,
			-- -- 目标对应数据的存储位置
			-- ["GoalPos"] = 1,
			-- --地图ID（当地图ID配置成0时候，打开如何达成的界面）
			-- ["MapID"] = 10365,
			-- --范围
			-- ["Radius"] = 0,
			-- --地图位置
			-- ["MapX"] = 220,
			-- ["MapY"] = 312,
			-- --NPCID
			-- ["NpcID"] = 24011,
			-- -- 如何达成界面内容配置（当地图ID为-1时候需要配置）
			-- -- 如何达成界面有两个功能，寻路到某点、寻到到某个npc
			-- -- -- 如何达成的地图图片
			-- -- ["ReachMapAni"] = "task_cijititle",
			-- -- -- 如何达成的地图名字
			-- -- ["ReachMapName"] = "<color=0xffefbd3e>隔壁</color><color=0xff777777>（55-65）</color>",
			-- -- -- 如何达成寻路到某点
			-- -- ["ReachMapID"] = 1002,
			-- -- ["ReachRadius"] = 5,
			-- -- ["ReachMapX"] = 395,
			-- -- ["ReachMapY"] = 358,
			-- -- -- 如何达成任务名字
			-- -- ["ReachTaskName"] = "安慰发哇安慰发",
			-- -- -- 如何达成寻路到NPC
			-- -- ["ReachNpcMapID"] = 1002,
			-- -- ["ReachNpcRadius"] = 5,
			-- -- ["ReachNpcMapX"] = 395,
			-- -- ["ReachNpcMapY"] = 358,
			-- -- ["ReachNpcID"] = 6135,
		-- },
	},
	[2] = {
		["TaskID"] = 10051,
		["BtnAni"] = "task_zj3Btn",
		["BtnText"] = "",
		["NameAni"] = "task_wzjqsh",
		["IconAni"] = "task_tbjqsh",
		["Describe"] = "STR_INI_LUA_QUESTINFO_TASK10051_DESC_0",
		["DoneDescribe"] = "STR_INI_LUA_QUESTINFO_TASK10051_DESC_0",
		["IntentionCount"] = 1,
		-- 任务背景
                ["BGAni"] = "task_no3bg",
		[0] = {
			-- 目标文本
			["Text"] = "STR_INI_LUA_QUESTINFO_TASK10051_TEXT_0",
			-- 目标进度
			["Goal"] = 70,
			-- 目标对应数据的存储位置
			["GoalPos"] = 1,
			--地图ID（当地图ID配置成0时候，打开如何达成的界面）
			["MapID"] = 0,
			--范围
			["Radius"] = 0,
			--地图位置
			["MapX"] = 0,
			["MapY"] = 0,
			--NPCID
			["NpcID"] = 0,
			-- 如何达成界面内容配置（当地图ID为-1时候需要配置）
			-- 如何达成界面有两个功能，寻路到某点、寻到到某个npc
			-- 如何达成的地图图片
			["ReachMapAni"] = "Questinfo_Map_jqg",
			-- 如何达成的地图名字
			["ReachMapName"] = "STR_INI_LUA_QUESTINFO_TASK10051_REACHMAPNAME_0",
			-- 如何达成寻路到某点
			["ReachMapID"] = 10366,
			["ReachRadius"] = 5,
			["ReachMapX"] = 317,
			["ReachMapY"] = 590,
			-- 如何达成任务名字
			["ReachTaskName"] = "STR_INI_LUA_QUESTINFO_TASK10017_REACHTASKNAME_0",
			-- -- 如何达成寻路到NPC
			-- ["ReachNpcMapID"] = 1002,
			-- ["ReachNpcRadius"] = 5,
			-- ["ReachNpcMapX"] = 395,
			-- ["ReachNpcMapY"] = 358,
			-- ["ReachNpcID"] = 6135,
		},
		-- [0] = {
			-- ["Text"] = "荡扫罪渊妖魔，斩杀金毛狮王。",
			-- ["Goal"] = 1,
			-- ["GoalPos"] = 1,
			-- ["MapID"] = 10366,
			-- ["Radius"] = 5,
			-- ["MapX"] = 565,
			-- ["MapY"] = 626,
			-- ["NpcID"] = 23879,
			-- -- ["ReachMapAni"] = "e",
			-- -- ["ReachMapName"] = "可以的",
			-- -- ["ReachMapID"] = 1002,
			-- -- ["ReachRadius"] = 5,
			-- -- ["ReachMapX"] = 395,
			-- -- ["ReachMapY"] = 358,
			-- -- ["ReachTaskName"] = "安慰发哇安慰发",
			-- -- ["ReachNpcMapID"] = 1002,
			-- -- ["ReachNpcRadius"] = 5,
			-- -- ["ReachNpcMapX"] = 395,
			-- -- ["ReachNpcMapY"] = 358,
			-- -- ["ReachNpcID"] = 6135,
		-- },
	},
	[3] = {
		["TaskID"] = 10064,
		["BtnAni"] = "task_zj4Btn",
		["BtnText"] = "",
		["NameAni"] = "task_wzdmwj",
		["IconAni"] = "task_tbdmwj",
		["Describe"] = "STR_INI_LUA_QUESTINFO_TASK10064_DESC_0",
		["DoneDescribe"] = "STR_INI_LUA_QUESTINFO_TASK10064_DESC_0",
		["IntentionCount"] = 1,
		-- 任务背景
                ["BGAni"] = "task_no4bg",
		[0] = {
			-- 目标文本
			["Text"] = "STR_INI_LUA_QUESTINFO_TASK10064_TEXT_0",
			-- 目标进度
			["Goal"] = 85,
			-- 目标对应数据的存储位置
			["GoalPos"] = 1,
			--地图ID（当地图ID配置成0时候，打开如何达成的界面）
			["MapID"] = 0,
			--范围
			["Radius"] = 0,
			--地图位置
			["MapX"] = 0,
			["MapY"] = 0,
			--NPCID
			["NpcID"] = 0,
			-- 如何达成界面内容配置（当地图ID为-1时候需要配置）
			-- 如何达成界面有两个功能，寻路到某点、寻到到某个npc
			-- 如何达成的地图图片
			["ReachMapAni"] = "Questinfo_Map_dmhy",
			-- 如何达成的地图名字
			["ReachMapName"] = "STR_INI_LUA_QUESTINFO_TASK10064_REACHMAPNAME_0",
			-- 如何达成寻路到某点
			["ReachMapID"] = 10367,
			["ReachRadius"] = 5,
			["ReachMapX"] = 340,
			["ReachMapY"] = 292,
			-- 如何达成任务名字
			["ReachTaskName"] = "STR_INI_LUA_QUESTINFO_TASK10017_REACHTASKNAME_0",
			-- -- 如何达成寻路到NPC
			-- ["ReachNpcMapID"] = 1002,
			-- ["ReachNpcRadius"] = 5,
			-- ["ReachNpcMapX"] = 395,
			-- ["ReachNpcMapY"] = 358,
			-- ["ReachNpcID"] = 6135,
		},
		-- [0] = {
			-- ["Text"] = "消灭大漠邪魔，解除云门危机。",
			-- ["Goal"] = 1,
			-- ["GoalPos"] = 1,
			-- ["MapID"] = 10367,
			-- ["Radius"] = 5,
			-- ["MapX"] = 539,
			-- ["MapY"] = 644,
			-- ["NpcID"] = 23867,
			-- -- ["ReachMapAni"] = "e",
			-- -- ["ReachMapName"] = "可以的",
			-- -- ["ReachMapID"] = 1002,
			-- -- ["ReachRadius"] = 5,
			-- -- ["ReachMapX"] = 395,
			-- -- ["ReachMapY"] = 358,
			-- -- ["ReachTaskName"] = "安慰发哇安慰发",
			-- -- ["ReachNpcMapID"] = 1002,
			-- -- ["ReachNpcRadius"] = 5,
			-- -- ["ReachNpcMapX"] = 395,
			-- -- ["ReachNpcMapY"] = 358,
			-- -- ["ReachNpcID"] = 6135,
		-- },
	},
	[4] = {
		["TaskID"] = 10083,
		["BtnAni"] = "task_zj5Btn",
		["BtnText"] = "",
		["NameAni"] = "task_wzlhhx",
		["IconAni"] = "task_tblhhx",
		["Describe"] = "STR_INI_LUA_QUESTINFO_TASK10083_DESC_0",
		["DoneDescribe"] = "STR_INI_LUA_QUESTINFO_TASK10083_DESC_0",
		["IntentionCount"] = 1,
		-- 任务背景
                ["BGAni"] = "task_no5bg",
		[0] = {
			-- 目标文本
			["Text"] = "STR_INI_LUA_QUESTINFO_TASK10083_TEXT_0",
			-- 目标进度
			["Goal"] = 100,
			-- 目标对应数据的存储位置
			["GoalPos"] = 1,
			--地图ID（当地图ID配置成0时候，打开如何达成的界面）
			["MapID"] = 0,
			--范围
			["Radius"] = 0,
			--地图位置
			["MapX"] = 0,
			["MapY"] = 0,
			--NPCID
			["NpcID"] = 0,
			-- 如何达成界面内容配置（当地图ID为-1时候需要配置）
			-- 如何达成界面有两个功能，寻路到某点、寻到到某个npc
			-- 如何达成的地图图片
			["ReachMapAni"] = "Questinfo_Map_lhd",
			-- 如何达成的地图名字
			["ReachMapName"] = "STR_INI_LUA_QUESTINFO_TASK10083_REACHMAPNAME_0",
			-- 如何达成寻路到某点
			["ReachMapID"] = 10368,
			["ReachRadius"] = 5,
			["ReachMapX"] = 415,
			["ReachMapY"] = 230,
			-- 如何达成任务名字
			["ReachTaskName"] = "STR_INI_LUA_QUESTINFO_TASK10017_REACHTASKNAME_0",
			-- -- 如何达成寻路到NPC
			-- ["ReachNpcMapID"] = 1002,
			-- ["ReachNpcRadius"] = 5,
			-- ["ReachNpcMapX"] = 395,
			-- ["ReachNpcMapY"] = 358,
			-- ["ReachNpcID"] = 6135,
		},
		-- [0] = {
			-- ["Text"] = "击溃妖匪联盟，斩灭白虎魔神。",
			-- ["Goal"] = 1,
			-- ["GoalPos"] = 1,
			-- ["MapID"] = 10368,
			-- ["Radius"] = 5,
			-- ["MapX"] = 734,
			-- ["MapY"] = 624,
			-- ["NpcID"] = 24002,
			-- -- ["ReachMapAni"] = "e",
			-- -- ["ReachMapName"] = "可以的",
			-- -- ["ReachMapID"] = 1002,
			-- -- ["ReachRadius"] = 5,
			-- -- ["ReachMapX"] = 395,
			-- -- ["ReachMapY"] = 358,
			-- -- ["ReachTaskName"] = "安慰发哇安慰发",
			-- -- ["ReachNpcMapID"] = 1002,
			-- -- ["ReachNpcRadius"] = 5,
			-- -- ["ReachNpcMapX"] = 395,
			-- -- ["ReachNpcMapY"] = 358,
			-- -- ["ReachNpcID"] = 6135,
		-- },
	},
	[5] = {
		["TaskID"] = 10274,
		["BtnAni"] = "task_zj6Btn",
		["BtnText"] = "",
		["NameAni"] = "task_wzdhxm",
		["IconAni"] = "task_tbdhxm",
		["Describe"] = "STR_INI_LUA_QUESTINFO_TASK10274_DESC_0",
		["DoneDescribe"] = "STR_INI_LUA_QUESTINFO_TASK10274_DESC_0",
		["IntentionCount"] = 1,
		-- 任务背景
                ["BGAni"] = "task_no6bg",
		[0] = {
			-- 目标文本
			["Text"] = "STR_INI_LUA_QUESTINFO_TASK10274_TEXT_0",
			-- 目标进度
			["Goal"] = 110,
			-- 目标对应数据的存储位置
			["GoalPos"] = 1,
			--地图ID（当地图ID配置成0时候，打开如何达成的界面）
			["MapID"] = 0,
			--范围
			["Radius"] = 0,
			--地图位置
			["MapX"] = 0,
			["MapY"] = 0,
			--NPCID
			["NpcID"] = 0,
			-- 如何达成界面内容配置（当地图ID为-1时候需要配置）
			-- 如何达成界面有两个功能，寻路到某点、寻到到某个npc
			-- 如何达成的地图图片
			["ReachMapAni"] = "Questinfo_Map_dh",
			-- 如何达成的地图名字
			["ReachMapName"] = "STR_INI_LUA_QUESTINFO_TASK10274_REACHMAPNAME_0",
			-- 如何达成寻路到某点
			["ReachMapID"] = 10369,
			["ReachRadius"] = 5,
			["ReachMapX"] = 349,
			["ReachMapY"] = 268,
			-- 如何达成任务名字
			["ReachTaskName"] = "STR_INI_LUA_QUESTINFO_TASK10017_REACHTASKNAME_0",
			-- -- 如何达成寻路到NPC
			-- ["ReachNpcMapID"] = 1002,
			-- ["ReachNpcRadius"] = 5,
			-- ["ReachNpcMapX"] = 395,
			-- ["ReachNpcMapY"] = 358,
			-- ["ReachNpcID"] = 6135,
		},
		-- [0] = {
			-- ["Text"] = "击败死灵法师，恢复敦煌安宁。",
			-- ["Goal"] = 1,
			-- ["GoalPos"] = 1,
			-- ["MapID"] = 10367,
			-- ["Radius"] = 5,
			-- ["MapX"] = 291,
			-- ["MapY"] = 449,
			-- ["NpcID"] = 24024,
			-- -- ["ReachMapAni"] = "e",
			-- -- ["ReachMapName"] = "可以的",
			-- -- ["ReachMapID"] = 1002,
			-- -- ["ReachRadius"] = 5,
			-- -- ["ReachMapX"] = 395,
			-- -- ["ReachMapY"] = 358,
			-- -- ["ReachTaskName"] = "安慰发哇安慰发",
			-- -- ["ReachNpcMapID"] = 1002,
			-- -- ["ReachNpcRadius"] = 5,
			-- -- ["ReachNpcMapX"] = 395,
			-- -- ["ReachNpcMapY"] = 358,
			-- -- ["ReachNpcID"] = 6135,
		-- },
	},
	[6] = {
		["TaskID"] = 10192,
		["BtnAni"] = "task_zj7Btn",
		["BtnText"] = "",
		["NameAni"] = "task_wzbftt",
		["IconAni"] = "task_tbbftt",
		["Describe"] = "STR_INI_LUA_QUESTINFO_TASK10192_DESC_0",
		["DoneDescribe"] = "STR_INI_LUA_QUESTINFO_TASK10192_DESC_0",
		["IntentionCount"] = 1,
		-- 任务背景
                ["BGAni"] = "task_no7bg",
		[0] = {
			-- 目标文本
			["Text"] = "STR_INI_LUA_QUESTINFO_TASK10192_TEXT_0",
			-- 目标进度
			["Goal"] = 130,
			-- 目标对应数据的存储位置
			["GoalPos"] = 1,
			--地图ID（当地图ID配置成0时候，打开如何达成的界面）
			["MapID"] = 0,
			--范围
			["Radius"] = 0,
			--地图位置
			["MapX"] = 0,
			["MapY"] = 0,
			--NPCID
			["NpcID"] = 0,
			-- 如何达成界面内容配置（当地图ID为-1时候需要配置）
			-- 如何达成界面有两个功能，寻路到某点、寻到到某个npc
			-- 如何达成的地图图片
			["ReachMapAni"] = "Questinfo_Map_bfdx",
			-- 如何达成的地图名字
			["ReachMapName"] = "STR_INI_LUA_QUESTINFO_TASK10192_REACHMAPNAME_0",
			-- 如何达成寻路到某点
			["ReachMapID"] = 10370,
			["ReachRadius"] = 5,
			["ReachMapX"] = 516,
			["ReachMapY"] = 446,
			-- 如何达成任务名字
			["ReachTaskName"] = "STR_INI_LUA_QUESTINFO_TASK10017_REACHTASKNAME_0",
			-- -- 如何达成寻路到NPC
			-- ["ReachNpcMapID"] = 1002,
			-- ["ReachNpcRadius"] = 5,
			-- ["ReachNpcMapX"] = 395,
			-- ["ReachNpcMapY"] = 358,
			-- ["ReachNpcID"] = 6135,
		},
		-- [0] = {
			-- ["Text"] = "勇闯冰封地穴，消灭冰霜泰坦。",
			-- ["Goal"] = 1,
			-- ["GoalPos"] = 1,
			-- ["MapID"] = 10367,
			-- ["Radius"] = 5,
			-- ["MapX"] = 511,
			-- ["MapY"] = 617,
			-- ["NpcID"] = 23901,
			-- -- ["ReachMapAni"] = "e",
			-- -- ["ReachMapName"] = "可以的",
			-- -- ["ReachMapID"] = 1002,
			-- -- ["ReachRadius"] = 5,
			-- -- ["ReachMapX"] = 395,
			-- -- ["ReachMapY"] = 358,
			-- -- ["ReachTaskName"] = "安慰发哇安慰发",
			-- -- ["ReachNpcMapID"] = 1002,
			-- -- ["ReachNpcRadius"] = 5,
			-- -- ["ReachNpcMapX"] = 395,
			-- -- ["ReachNpcMapY"] = 358,
			-- -- ["ReachNpcID"] = 6135,
		-- },
	},
}

local function GetMainTaskCount()
	local keyValue = MainTask["Count"]

	if (keyValue) then
		return keyValue
	end
	
	return 0
end

local function GetMainTaskInfo(id, key)
	local keyValue = MainTask[id][key]

	if (keyValue) then
		return keyValue
	end
	
	return ""
end

local function GetMainTaskIntention(id, key1, key2)
	local keyValue = MainTask[id][key1][key2]

	if (keyValue) then
		return keyValue
	end
	
	if (key2 == "Text" or key2 == "ReachMapAni" or key2 == "ReachMapName" or key2 == "ReachTaskName") then
		return ""
	end
	
	return 0
end

local function GetDialog(key)
	local keyValue = Dialog[key]

	if (keyValue) then
		return keyValue
	end
	
	return 0
end

-- 点击领奖
-- idHero: 玩家id
-- TaskId:领奖的任务ID
local function OnClickReceiveReward(idHero, TaskId)
	-- 调用服务端领奖接口
	-- g_objLuaUIMgr:CallServerFution("</F>Test_OnClickReceiveReward</N>" .. tonumber(idHero) .. "</N>" .. tonumber(TaskId))
end


-- 取得主线任务图片ANI
--index=0: 取得intention列表背景图片
--index=1: 取得intention列表选中图片
--index=2: 取得intention列表"已达成"图片
local function GetIntentionImgAni(index)
	if index == 0 then
		return "task_jtrwbg"
	elseif index == 1 then
		return "task_xzt"
	elseif index == 2 then
		return "task_wanchengPic"
	end
end


-- 取得主线任务intention列表可见个数
local function GetIntentionVisibleCount()
	return 4
end

-- 是否在当前服务器显示
local function IsShowInServeType()
    if UserData_IsOldSoldierServer() then
        return false
    elseif UserData_IsCoinsServer() then
        return false
    end
    return true
end


local Questinfo = {
    GetMainTaskCount = GetMainTaskCount,
	GetMainTaskInfo = GetMainTaskInfo,
	GetMainTaskIntention = GetMainTaskIntention,
	GetBtnEven = GetBtnEven,
	GetDialog = GetDialog,
	GetIntentionImgAni = GetIntentionImgAni,
	GetIntentionVisibleCount = GetIntentionVisibleCount,
	OnClickReceiveReward = OnClickReceiveReward,
	IsShowInServeType = IsShowInServeType,
    Unload = Unload,
}

-- global
Questinfo_GetMainTaskCount = Questinfo.GetMainTaskCount
Questinfo_GetMainTaskInfo = Questinfo.GetMainTaskInfo
Questinfo_GetMainTaskIntention = Questinfo.GetMainTaskIntention
Questinfo_GetDialog = Questinfo.GetDialog
Questinfo_GetIntentionImgAni = Questinfo.GetIntentionImgAni
Questinfo_GetIntentionVisibleCount = Questinfo.GetIntentionVisibleCount
Questinfo_OnClickReceiveReward = Questinfo.OnClickReceiveReward
Questinfo_IsShowInServeType = Questinfo.IsShowInServeType
Questinfo_Unload = Questinfo.Unload

return Questinfo
