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

-- 怪物
monsters = {
}

-- NPC
npcs = {
}

-- 装置
gadgets = {
	{ config_id = 481, gadget_id = 70290010, pos = { x = 2734.7, y = 207.5, z = 324.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 482, gadget_id = 70500000, pos = { x = 2734.7, y = 207.5, z = 324.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 481 },
	{ config_id = 489, gadget_id = 70290010, pos = { x = 2730.4, y = 207.8, z = 339.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 490, gadget_id = 70500000, pos = { x = 2730.4, y = 207.8, z = 339.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 489 },
	{ config_id = 491, gadget_id = 70290010, pos = { x = 2616.5, y = 208.4, z = 232.8 }, rot = { x = 0.0, y = 79.5, z = 0.0 }, level = 1 },
	{ config_id = 492, gadget_id = 70500000, pos = { x = 2616.5, y = 208.4, z = 232.8 }, rot = { x = 0.0, y = 79.5, z = 0.0 }, level = 1, point_type = 3006, owner = 491 },
	{ config_id = 537, gadget_id = 70290010, pos = { x = 2535.1, y = 181.7, z = 346.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 538, gadget_id = 70500000, pos = { x = 2535.1, y = 181.7, z = 346.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 537 },
	{ config_id = 539, gadget_id = 70290010, pos = { x = 2596.9, y = 180.3, z = 397.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 540, gadget_id = 70500000, pos = { x = 2596.9, y = 180.3, z = 397.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 539 },
	{ config_id = 541, gadget_id = 70290010, pos = { x = 2589.7, y = 180.2, z = 380.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 542, gadget_id = 70500000, pos = { x = 2589.7, y = 180.2, z = 380.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 541 },
	{ config_id = 543, gadget_id = 70290010, pos = { x = 2874.8, y = 211.4, z = 349.1 }, rot = { x = 0.0, y = 259.3, z = 0.0 }, level = 1 },
	{ config_id = 544, gadget_id = 70500000, pos = { x = 2874.8, y = 211.4, z = 349.1 }, rot = { x = 0.0, y = 259.3, z = 0.0 }, level = 1, point_type = 3006, owner = 543 },
	{ config_id = 545, gadget_id = 70290010, pos = { x = 2707.1, y = 206.8, z = 241.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 546, gadget_id = 70500000, pos = { x = 2707.1, y = 206.8, z = 241.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 545 },
	{ config_id = 547, gadget_id = 70290010, pos = { x = 3024.0, y = 216.4, z = 275.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 548, gadget_id = 70500000, pos = { x = 3024.0, y = 216.4, z = 275.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 547 },
	{ config_id = 549, gadget_id = 70290010, pos = { x = 2883.1, y = 215.7, z = 86.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 550, gadget_id = 70500000, pos = { x = 2883.1, y = 215.7, z = 86.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 549 },
	{ config_id = 551, gadget_id = 70290010, pos = { x = 2940.1, y = 217.0, z = -99.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 552, gadget_id = 70500000, pos = { x = 2940.1, y = 217.0, z = -99.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 551 },
	{ config_id = 553, gadget_id = 70290010, pos = { x = 2743.4, y = 206.9, z = 84.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 554, gadget_id = 70500000, pos = { x = 2743.4, y = 206.9, z = 84.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 553 },
	{ config_id = 555, gadget_id = 70290010, pos = { x = 2776.5, y = 233.5, z = -169.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 556, gadget_id = 70500000, pos = { x = 2776.5, y = 233.5, z = -169.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 555 },
	{ config_id = 557, gadget_id = 70290010, pos = { x = 2488.6, y = 208.5, z = 258.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 558, gadget_id = 70500000, pos = { x = 2488.6, y = 208.5, z = 258.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 557 },
	{ config_id = 671, gadget_id = 70290010, pos = { x = 2433.3, y = 226.2, z = 151.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 672, gadget_id = 70500000, pos = { x = 2433.3, y = 226.2, z = 151.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 671 },
	{ config_id = 851, gadget_id = 70290010, pos = { x = 2486.5, y = 213.0, z = 386.1 }, rot = { x = 0.0, y = 214.9, z = 0.0 }, level = 1 },
	{ config_id = 852, gadget_id = 70500000, pos = { x = 2486.5, y = 213.0, z = 386.1 }, rot = { x = 0.0, y = 214.9, z = 0.0 }, level = 1, point_type = 3006, owner = 851 },
	{ config_id = 853, gadget_id = 70290010, pos = { x = 2524.2, y = 206.9, z = 453.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 854, gadget_id = 70500000, pos = { x = 2524.2, y = 206.9, z = 453.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 853 },
	{ config_id = 899, gadget_id = 70290010, pos = { x = 2604.1, y = 215.0, z = 500.8 }, rot = { x = 0.0, y = 153.8, z = 0.0 }, level = 1 },
	{ config_id = 900, gadget_id = 70500000, pos = { x = 2604.1, y = 215.0, z = 500.8 }, rot = { x = 0.0, y = 153.8, z = 0.0 }, level = 1, point_type = 3006, owner = 899 },
	{ config_id = 901, gadget_id = 70290010, pos = { x = 2599.2, y = 215.3, z = 500.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 902, gadget_id = 70500000, pos = { x = 2599.2, y = 215.3, z = 500.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 901 },
	{ config_id = 903, gadget_id = 70290010, pos = { x = 2624.9, y = 211.4, z = 494.3 }, rot = { x = 0.0, y = 230.2, z = 0.0 }, level = 1 },
	{ config_id = 904, gadget_id = 70500000, pos = { x = 2624.9, y = 211.4, z = 494.3 }, rot = { x = 0.0, y = 230.2, z = 0.0 }, level = 1, point_type = 3006, owner = 903 },
	{ config_id = 918, gadget_id = 70290010, pos = { x = 2498.5, y = 199.2, z = 327.3 }, rot = { x = 0.0, y = 0.0, z = 351.4 }, level = 1 },
	{ config_id = 919, gadget_id = 70500000, pos = { x = 2498.5, y = 199.2, z = 327.3 }, rot = { x = 0.0, y = 0.0, z = 351.4 }, level = 1, point_type = 3006, owner = 918 },
	{ config_id = 920, gadget_id = 70290010, pos = { x = 2682.8, y = 187.6, z = 420.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 921, gadget_id = 70500000, pos = { x = 2682.8, y = 187.6, z = 420.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 920 },
	{ config_id = 935, gadget_id = 70290010, pos = { x = 2059.2, y = 217.4, z = -59.9 }, rot = { x = 358.2, y = 28.2, z = 0.0 }, level = 1 },
	{ config_id = 936, gadget_id = 70500000, pos = { x = 2059.2, y = 217.4, z = -59.9 }, rot = { x = 358.2, y = 28.2, z = 0.0 }, level = 1, point_type = 3006, owner = 935 },
	{ config_id = 937, gadget_id = 70290010, pos = { x = 2318.2, y = 229.1, z = -102.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 938, gadget_id = 70500000, pos = { x = 2318.2, y = 229.1, z = -102.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3006, owner = 937 }
}

-- 区域
regions = {
	{ config_id = 84, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2760.4, y = 209.7, z = 297.4 } }
}

-- 触发器
triggers = {
	{ name = "CLIENT_EXECUTE_84", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElementFlora", condition = "", action = "action_EVENT_CLIENT_EXECUTE_84", trigger_count = 0 }
}

-- 变量
variables = {
}

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

-- 初始化时创建
init_config = {
	suite = 1,
	rand_suite = true,
	npcs = { }
}

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

suites = {
	{
		-- suite_id = 0,
		-- description = ,
		monsters = { },
		gadgets = { 481, 482, 489, 490, 491, 492, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 671, 672, 851, 852, 853, 854, 899, 900, 901, 902, 903, 904, 918, 919, 920, 921, 935, 936, 937, 938 },
		regions = { 84 },
		triggers = { "CLIENT_EXECUTE_84" },
		rand_weight = 100
	}
}

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

-- 触发条件

-- 触发操作
function action_EVENT_CLIENT_EXECUTE_84(context, evt)
	-- 针对groupid为 133007142 中该config对应的物件进行状态改变操作
	local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
		--ScriptLib.PrintLog("config_id="..this_gadget)
	
	 ScriptLib.SetGadgetEnableInteract(context, 133007142, this_gadget, true)
	
	return 0
end
