-- 基础信息
local base_info = {
	group_id = 133103906
}

--================================================================
-- 
-- 配置
-- 
--================================================================

-- 怪物
monsters = {
	{ config_id = 906017, monster_id = 21011201, pos = { x = 737.481, y = 407.303, z = 1831.569 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, drop_id = 1000100, area_id = 6 },
	{ config_id = 906018, monster_id = 21011201, pos = { x = 722.574, y = 405.814, z = 1859.460 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, drop_id = 1000100, area_id = 6 },
	{ config_id = 906019, monster_id = 21011201, pos = { x = 698.692, y = 411.197, z = 1877.050 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, drop_id = 1000100, area_id = 6 },
	{ config_id = 906020, monster_id = 21011201, pos = { x = 706.549, y = 411.702, z = 1845.068 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, drop_id = 1000100, area_id = 6 },
	{ config_id = 906021, monster_id = 20011501, pos = { x = 706.786, y = 411.765, z = 1845.484 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, drop_id = 1000100, area_id = 6 },
	{ config_id = 906022, monster_id = 20011301, pos = { x = 737.217, y = 407.306, z = 1831.717 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, drop_id = 1000100, area_id = 6 },
	{ config_id = 906023, monster_id = 20011501, pos = { x = 699.019, y = 411.183, z = 1877.475 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, drop_id = 1000100, area_id = 6 },
	{ config_id = 906024, monster_id = 20011301, pos = { x = 722.657, y = 405.954, z = 1859.439 }, rot = { x = 0.000, y = 280.106, z = 0.000 }, level = 24, drop_id = 1000100, area_id = 6 },
	{ config_id = 906031, monster_id = 21010101, pos = { x = 737.180, y = 406.973, z = 1831.805 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, drop_id = 1000100, area_id = 6 },
	{ config_id = 906032, monster_id = 21010101, pos = { x = 706.203, y = 411.489, z = 1845.380 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, drop_id = 1000100, area_id = 6 }
}

-- NPC
npcs = {
}

-- 装置
gadgets = {
	{ config_id = 906001, gadget_id = 70360045, pos = { x = 722.432, y = 405.134, z = 1859.518 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906002, gadget_id = 70360045, pos = { x = 698.926, y = 410.448, z = 1877.153 }, rot = { x = 0.000, y = 318.747, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906003, gadget_id = 70360045, pos = { x = 737.338, y = 406.620, z = 1831.374 }, rot = { x = 0.000, y = 293.903, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906004, gadget_id = 70360045, pos = { x = 706.453, y = 410.973, z = 1845.225 }, rot = { x = 0.000, y = 314.588, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906005, gadget_id = 70360045, pos = { x = 722.491, y = 405.109, z = 1859.520 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906006, gadget_id = 70360045, pos = { x = 698.985, y = 410.422, z = 1877.155 }, rot = { x = 0.000, y = 318.747, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906007, gadget_id = 70360045, pos = { x = 737.397, y = 406.595, z = 1831.376 }, rot = { x = 0.000, y = 293.903, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906008, gadget_id = 70360045, pos = { x = 706.512, y = 410.947, z = 1845.227 }, rot = { x = 0.000, y = 314.588, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906009, gadget_id = 70360045, pos = { x = 722.367, y = 405.084, z = 1859.516 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906010, gadget_id = 70360045, pos = { x = 698.862, y = 410.397, z = 1877.151 }, rot = { x = 0.000, y = 318.747, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906011, gadget_id = 70360045, pos = { x = 737.273, y = 406.570, z = 1831.372 }, rot = { x = 0.000, y = 293.903, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906012, gadget_id = 70360045, pos = { x = 706.388, y = 410.922, z = 1845.223 }, rot = { x = 0.000, y = 314.588, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906013, gadget_id = 70360045, pos = { x = 722.427, y = 405.058, z = 1859.518 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906014, gadget_id = 70360045, pos = { x = 698.921, y = 410.372, z = 1877.153 }, rot = { x = 0.000, y = 318.747, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906015, gadget_id = 70360045, pos = { x = 737.333, y = 406.544, z = 1831.374 }, rot = { x = 0.000, y = 293.903, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906016, gadget_id = 70360045, pos = { x = 706.447, y = 410.897, z = 1845.225 }, rot = { x = 0.000, y = 314.588, z = 0.000 }, level = 24, area_id = 6 },
	{ config_id = 906025, gadget_id = 70500000, pos = { x = 706.483, y = 411.377, z = 1845.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, point_type = 9113, is_enable_interact = false, area_id = 6 },
	{ config_id = 906026, gadget_id = 70500000, pos = { x = 736.988, y = 406.729, z = 1831.338 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, point_type = 9113, is_enable_interact = false, area_id = 6 },
	{ config_id = 906027, gadget_id = 70500000, pos = { x = 698.756, y = 410.805, z = 1877.392 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, point_type = 9113, is_enable_interact = false, area_id = 6 },
	{ config_id = 906028, gadget_id = 70500000, pos = { x = 722.781, y = 405.529, z = 1859.623 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, point_type = 9113, is_enable_interact = false, area_id = 6 },
	{ config_id = 906029, gadget_id = 70500000, pos = { x = 722.988, y = 405.674, z = 1859.572 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, point_type = 3001, is_enable_interact = false, area_id = 6 },
	{ config_id = 906030, gadget_id = 70500000, pos = { x = 699.415, y = 411.001, z = 1877.466 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, point_type = 2002, is_enable_interact = false, area_id = 6 }
}

-- 区域
regions = {
}

-- 触发器
triggers = {
	{ config_id = 1906033, name = "GADGET_STATE_CHANGE_906033", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906033", action = "action_EVENT_GADGET_STATE_CHANGE_906033", trigger_count = 0 },
	{ config_id = 1906034, name = "GADGET_STATE_CHANGE_906034", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906034", action = "action_EVENT_GADGET_STATE_CHANGE_906034", trigger_count = 0 },
	{ config_id = 1906035, name = "GADGET_STATE_CHANGE_906035", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906035", action = "action_EVENT_GADGET_STATE_CHANGE_906035", trigger_count = 0 },
	{ config_id = 1906036, name = "GADGET_STATE_CHANGE_906036", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906036", action = "action_EVENT_GADGET_STATE_CHANGE_906036", trigger_count = 0 },
	{ config_id = 1906037, name = "GADGET_STATE_CHANGE_906037", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906037", action = "action_EVENT_GADGET_STATE_CHANGE_906037", trigger_count = 0 },
	{ config_id = 1906038, name = "GADGET_STATE_CHANGE_906038", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906038", action = "action_EVENT_GADGET_STATE_CHANGE_906038", trigger_count = 0 },
	{ config_id = 1906039, name = "GADGET_STATE_CHANGE_906039", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906039", action = "action_EVENT_GADGET_STATE_CHANGE_906039", trigger_count = 0 },
	{ config_id = 1906040, name = "GADGET_STATE_CHANGE_906040", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906040", action = "action_EVENT_GADGET_STATE_CHANGE_906040", trigger_count = 0 },
	{ config_id = 1906041, name = "GADGET_STATE_CHANGE_906041", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906041", action = "action_EVENT_GADGET_STATE_CHANGE_906041", trigger_count = 0 },
	{ config_id = 1906042, name = "GADGET_STATE_CHANGE_906042", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906042", action = "action_EVENT_GADGET_STATE_CHANGE_906042", trigger_count = 0 },
	{ config_id = 1906043, name = "GADGET_STATE_CHANGE_906043", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906043", action = "action_EVENT_GADGET_STATE_CHANGE_906043", trigger_count = 0 },
	{ config_id = 1906044, name = "GADGET_STATE_CHANGE_906044", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906044", action = "action_EVENT_GADGET_STATE_CHANGE_906044", trigger_count = 0 },
	{ config_id = 1906045, name = "GADGET_STATE_CHANGE_906045", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906045", action = "action_EVENT_GADGET_STATE_CHANGE_906045", trigger_count = 0 },
	{ config_id = 1906046, name = "GADGET_STATE_CHANGE_906046", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906046", action = "action_EVENT_GADGET_STATE_CHANGE_906046", trigger_count = 0 },
	{ config_id = 1906047, name = "GADGET_STATE_CHANGE_906047", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906047", action = "action_EVENT_GADGET_STATE_CHANGE_906047", trigger_count = 0 },
	{ config_id = 1906048, name = "GADGET_STATE_CHANGE_906048", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_906048", action = "action_EVENT_GADGET_STATE_CHANGE_906048", trigger_count = 0 }
}

-- 变量
variables = {
}

--================================================================
-- 
-- 初始化配置
-- 
--================================================================

-- 初始化时创建
init_config = {
	suite = 1,
	end_suite = 0,
	rand_suite = false
}

--================================================================
-- 
-- 小组配置
-- 
--================================================================

suites = {
	{
		-- suite_id = 1,
		-- description = ,
		monsters = { },
		gadgets = { },
		regions = { },
		triggers = { },
		rand_weight = 100,
		ban_refresh = true
	},
	{
		-- suite_id = 2,
		-- description = ,
		monsters = { },
		gadgets = { 906009, 906010, 906011, 906012, 906025, 906029 },
		regions = { },
		triggers = { "GADGET_STATE_CHANGE_906033", "GADGET_STATE_CHANGE_906034", "GADGET_STATE_CHANGE_906043", "GADGET_STATE_CHANGE_906044" },
		rand_weight = 100,
		ban_refresh = true
	},
	{
		-- suite_id = 3,
		-- description = ,
		monsters = { },
		gadgets = { 906005, 906006, 906007, 906008, 906026, 906030 },
		regions = { },
		triggers = { "GADGET_STATE_CHANGE_906035", "GADGET_STATE_CHANGE_906036", "GADGET_STATE_CHANGE_906045", "GADGET_STATE_CHANGE_906046" },
		rand_weight = 100,
		ban_refresh = true
	},
	{
		-- suite_id = 4,
		-- description = ,
		monsters = { },
		gadgets = { 906001, 906002, 906003, 906004, 906027 },
		regions = { },
		triggers = { "GADGET_STATE_CHANGE_906037", "GADGET_STATE_CHANGE_906038", "GADGET_STATE_CHANGE_906042", "GADGET_STATE_CHANGE_906047" },
		rand_weight = 100,
		ban_refresh = true
	},
	{
		-- suite_id = 5,
		-- description = ,
		monsters = { },
		gadgets = { 906013, 906014, 906015, 906016, 906028 },
		regions = { },
		triggers = { "GADGET_STATE_CHANGE_906039", "GADGET_STATE_CHANGE_906040", "GADGET_STATE_CHANGE_906041", "GADGET_STATE_CHANGE_906048" },
		rand_weight = 100
	}
}

--================================================================
-- 
-- 触发器
-- 
--================================================================

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906033(context, evt)
	if 906010 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906033(context, evt)
	-- 延迟0秒刷怪
	if 0 ~= ScriptLib.CreateMonster(context, { config_id = 906023, delay_time = 0 }) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906034(context, evt)
	if 906011 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906034(context, evt)
	-- 延迟0秒刷怪
	if 0 ~= ScriptLib.CreateMonster(context, { config_id = 906017, delay_time = 0 }) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906035(context, evt)
	if 906008 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906035(context, evt)
	-- 延迟0秒刷怪
	if 0 ~= ScriptLib.CreateMonster(context, { config_id = 906020, delay_time = 0 }) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906036(context, evt)
	if 906005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906036(context, evt)
	-- 延迟0秒刷怪
	if 0 ~= ScriptLib.CreateMonster(context, { config_id = 906024, delay_time = 0 }) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906037(context, evt)
	if 906001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906037(context, evt)
	-- 延迟0秒刷怪
	if 0 ~= ScriptLib.CreateMonster(context, { config_id = 906018, delay_time = 0 }) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906038(context, evt)
	if 906004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906038(context, evt)
	-- 延迟0秒刷怪
	if 0 ~= ScriptLib.CreateMonster(context, { config_id = 906021, delay_time = 0 }) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906039(context, evt)
	if 906014 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906039(context, evt)
	-- 延迟0秒刷怪
	if 0 ~= ScriptLib.CreateMonster(context, { config_id = 906019, delay_time = 0 }) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906040(context, evt)
	if 906015 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906040(context, evt)
	-- 延迟0秒刷怪
	if 0 ~= ScriptLib.CreateMonster(context, { config_id = 906022, delay_time = 0 }) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906041(context, evt)
	if 906016 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906041(context, evt)
	-- 延迟0秒刷怪
	if 0 ~= ScriptLib.CreateMonster(context, { config_id = 906032, delay_time = 0 }) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906042(context, evt)
	if 906002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906042(context, evt)
	-- 开启交互
	if 0 ~= ScriptLib.SetGadgetEnableInteract(context, 133103906, 906027, true) then
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906043(context, evt)
	if 906012 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906043(context, evt)
	-- 开启交互
	if 0 ~= ScriptLib.SetGadgetEnableInteract(context, 133103906, 906025, true) then
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906044(context, evt)
	if 906009 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906044(context, evt)
	-- 开启交互
	if 0 ~= ScriptLib.SetGadgetEnableInteract(context, 133103906, 906029, true) then
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906045(context, evt)
	if 906007 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906045(context, evt)
	-- 开启交互
	if 0 ~= ScriptLib.SetGadgetEnableInteract(context, 133103906, 906026, true) then
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906046(context, evt)
	if 906006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906046(context, evt)
	-- 开启交互
	if 0 ~= ScriptLib.SetGadgetEnableInteract(context, 133103906, 906030, true) then
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906047(context, evt)
	if 906003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906047(context, evt)
	-- 延迟0秒刷怪
	if 0 ~= ScriptLib.CreateMonster(context, { config_id = 906031, delay_time = 0 }) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
	  return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_906048(context, evt)
	if 906013 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_906048(context, evt)
	-- 开启交互
	if 0 ~= ScriptLib.SetGadgetEnableInteract(context, 133103906, 906028, true) then
	  return -1
	end
	
	return 0
end