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

-- 怪物
monsters = {
}

-- NPC
npcs = {
}

-- 装置
gadgets = {
	{ config_id = 431, gadget_id = 70290008, pos = { x = 2766.8, y = 240.7, z = 156.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 432, gadget_id = 70500000, pos = { x = 2766.8, y = 240.7, z = 156.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 431 },
	{ config_id = 559, gadget_id = 70290008, pos = { x = 2768.1, y = 240.8, z = 152.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 560, gadget_id = 70500000, pos = { x = 2768.1, y = 240.8, z = 152.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 559 },
	{ config_id = 561, gadget_id = 70290008, pos = { x = 2492.2, y = 206.5, z = 49.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 562, gadget_id = 70500000, pos = { x = 2492.2, y = 206.5, z = 49.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 561 },
	{ config_id = 563, gadget_id = 70290008, pos = { x = 2487.4, y = 206.7, z = 55.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 564, gadget_id = 70500000, pos = { x = 2487.4, y = 206.7, z = 55.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 563 },
	{ config_id = 565, gadget_id = 70290008, pos = { x = 2863.3, y = 209.9, z = 139.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 566, gadget_id = 70500000, pos = { x = 2863.3, y = 209.9, z = 139.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 565 },
	{ config_id = 567, gadget_id = 70290008, pos = { x = 2571.1, y = 179.8, z = 396.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 568, gadget_id = 70500000, pos = { x = 2571.1, y = 179.8, z = 396.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 567 },
	{ config_id = 569, gadget_id = 70290008, pos = { x = 2552.3, y = 180.5, z = 388.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 570, gadget_id = 70500000, pos = { x = 2552.3, y = 180.5, z = 388.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 569 },
	{ config_id = 571, gadget_id = 70290008, pos = { x = 2605.7, y = 217.8, z = 429.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 572, gadget_id = 70500000, pos = { x = 2605.7, y = 217.8, z = 429.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 571 },
	{ config_id = 573, gadget_id = 70290008, pos = { x = 2868.8, y = 208.5, z = 146.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 574, gadget_id = 70500000, pos = { x = 2868.8, y = 208.5, z = 146.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 573 },
	{ config_id = 593, gadget_id = 70290008, pos = { x = 2704.2, y = 215.6, z = 49.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 594, gadget_id = 70500000, pos = { x = 2704.2, y = 215.6, z = 49.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 593 },
	{ config_id = 664, gadget_id = 70290008, pos = { x = 2567.0, y = 216.0, z = 180.7 }, rot = { x = 0.0, y = 48.5, z = 0.0 }, level = 1 },
	{ config_id = 665, gadget_id = 70500000, pos = { x = 2567.0, y = 216.0, z = 180.7 }, rot = { x = 0.0, y = 48.5, z = 0.0 }, level = 1, point_type = 3008, owner = 664 },
	{ config_id = 666, gadget_id = 70290008, pos = { x = 2568.8, y = 216.5, z = 184.9 }, rot = { x = 0.0, y = 246.9, z = 0.0 }, level = 1 },
	{ config_id = 667, gadget_id = 70500000, pos = { x = 2568.8, y = 216.5, z = 184.9 }, rot = { x = 0.0, y = 246.9, z = 0.0 }, level = 1, point_type = 3008, owner = 666 },
	{ config_id = 863, gadget_id = 70290008, pos = { x = 2533.9, y = 216.1, z = 368.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 864, gadget_id = 70500000, pos = { x = 2533.9, y = 216.1, z = 368.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 863 },
	{ config_id = 865, gadget_id = 70290008, pos = { x = 2477.9, y = 226.5, z = 347.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 866, gadget_id = 70500000, pos = { x = 2477.9, y = 226.5, z = 347.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 865 },
	{ config_id = 947, gadget_id = 70290008, pos = { x = 2280.7, y = 230.3, z = -94.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 948, gadget_id = 70500000, pos = { x = 2280.7, y = 230.3, z = -94.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 947 },
	{ config_id = 949, gadget_id = 70290008, pos = { x = 2298.3, y = 244.7, z = -27.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
	{ config_id = 950, gadget_id = 70500000, pos = { x = 2298.3, y = 244.7, z = -27.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, point_type = 3008, owner = 949 }
}

-- 区域
regions = {
	{ config_id = 83, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2765.9, y = 240.6, z = 158.6 } }
}

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

-- 变量
variables = {
}

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

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

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

suites = {
	{
		-- suite_id = 0,
		-- description = ,
		monsters = { },
		gadgets = { 431, 432, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 593, 594, 664, 665, 666, 667, 863, 864, 865, 866, 947, 948, 949, 950 },
		regions = { 83 },
		triggers = { "CLIENT_EXECUTE_83" },
		rand_weight = 100
	}
}

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

-- 触发条件

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