-- 基础信息 local base_info = { group_id = 247005022 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 22001, gadget_id = 70310154, pos = { x = -8.650, y = 0.571, z = 38.104 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22002, gadget_id = 70360291, pos = { x = 9.799, y = 0.571, z = 38.104 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22004, gadget_id = 70310154, pos = { x = -4.248, y = 1.188, z = 119.988 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22005, gadget_id = 70360291, pos = { x = 5.483, y = 1.587, z = 119.988 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22007, gadget_id = 70310154, pos = { x = -13.683, y = -0.284, z = 195.362 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22008, gadget_id = 70360291, pos = { x = 4.766, y = -0.284, z = 195.362 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22010, gadget_id = 70310154, pos = { x = -14.166, y = -0.284, z = 189.612 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22011, gadget_id = 70360291, pos = { x = 5.082, y = -0.284, z = 189.800 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22013, gadget_id = 70310154, pos = { x = 149.232, y = 0.402, z = 203.335 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22014, gadget_id = 70360291, pos = { x = 168.834, y = 0.953, z = 203.335 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22016, gadget_id = 70310154, pos = { x = 71.330, y = 0.082, z = 278.564 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22017, gadget_id = 70360291, pos = { x = 89.505, y = 0.082, z = 278.564 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22020, gadget_id = 70310154, pos = { x = -10.753, y = 0.468, z = 283.496 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22021, gadget_id = 70360291, pos = { x = 9.321, y = 0.468, z = 283.143 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22022, gadget_id = 70310154, pos = { x = -84.790, y = 0.362, z = 263.135 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22023, gadget_id = 70360291, pos = { x = -74.906, y = 0.362, z = 262.782 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22025, gadget_id = 70360291, pos = { x = -74.906, y = 0.362, z = 269.591 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22026, gadget_id = 70310154, pos = { x = -84.790, y = 0.362, z = 269.944 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22028, gadget_id = 70360291, pos = { x = -74.906, y = 0.362, z = 277.315 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22029, gadget_id = 70310154, pos = { x = -84.790, y = 0.362, z = 277.669 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22031, gadget_id = 70360291, pos = { x = 85.086, y = 0.271, z = 424.677 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22032, gadget_id = 70310154, pos = { x = 75.387, y = 0.271, z = 425.030 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22034, gadget_id = 70360291, pos = { x = 85.086, y = 0.271, z = 428.197 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22035, gadget_id = 70310154, pos = { x = 75.387, y = 0.271, z = 428.551 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22037, gadget_id = 70360291, pos = { x = 85.086, y = 0.271, z = 441.727 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22038, gadget_id = 70310154, pos = { x = 75.387, y = 0.271, z = 442.080 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22040, gadget_id = 70360291, pos = { x = 85.086, y = 0.271, z = 449.494 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22041, gadget_id = 70310154, pos = { x = 75.387, y = 0.271, z = 449.847 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22043, gadget_id = 70360291, pos = { x = 85.357, y = 0.271, z = 457.297 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22044, gadget_id = 70310154, pos = { x = 75.478, y = 0.271, z = 457.304 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }, { config_id = 22046, gadget_id = 70360283, pos = { x = 79.834, y = 7.919, z = 353.284 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 22049, gadget_id = 70360283, pos = { x = 79.834, y = 7.919, z = 373.267 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 22050, gadget_id = 70360283, pos = { x = -79.918, y = 7.919, z = 347.408 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 22051, gadget_id = 70360283, pos = { x = -79.918, y = 7.919, z = 373.267 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, -- boss房1 { config_id = 22054, gadget_id = 70310154, pos = { x = 104.865, y = -2.437, z = 587.721 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }, -- boss1 { config_id = 22055, gadget_id = 70360291, pos = { x = 55.112, y = -2.048, z = 587.721 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }, -- boss1 { config_id = 22058, gadget_id = 70360291, pos = { x = 55.112, y = -2.048, z = 567.561 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }, -- boss房1 { config_id = 22059, gadget_id = 70310154, pos = { x = 104.865, y = -2.437, z = 567.561 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 } } -- 区域 regions = { { config_id = 22003, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = -0.698, y = -0.876, z = 38.198 } }, { config_id = 22006, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = 0.027, y = 0.140, z = 120.083 } }, { config_id = 22009, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = -5.731, y = -1.731, z = 195.457 } }, { config_id = 22012, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = -5.416, y = -1.731, z = 189.050 } }, { config_id = 22015, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = 157.183, y = -0.494, z = 203.430 } }, { config_id = 22018, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = 79.374, y = -1.365, z = 278.659 } }, { config_id = 22019, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = -0.319, y = -0.979, z = 283.237 } }, { config_id = 22024, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = -80.076, y = -1.085, z = 262.876 } }, { config_id = 22027, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = -80.076, y = -1.085, z = 269.686 } }, { config_id = 22030, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = -80.076, y = -1.085, z = 277.410 } }, { config_id = 22033, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = 80.102, y = -1.176, z = 424.771 } }, { config_id = 22036, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = 80.102, y = -1.176, z = 428.292 } }, { config_id = 22039, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = 80.102, y = -1.176, z = 441.821 } }, { config_id = 22042, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = 80.102, y = -1.176, z = 449.588 } }, { config_id = 22045, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 4.000 }, pos = { x = 80.102, y = -1.176, z = 457.193 } }, { config_id = 22047, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = 79.834, y = 1.985, z = 353.284 } }, { config_id = 22048, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = 79.834, y = 1.985, z = 373.267 } }, { config_id = 22052, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = -79.918, y = 1.985, z = 373.267 } }, { config_id = 22053, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = -79.918, y = 1.985, z = 347.408 } }, -- boss1 { config_id = 22056, shape = RegionShape.CUBIC, size = { x = 50.000, y = 10.000, z = 4.000 }, pos = { x = 80.392, y = -3.700, z = 587.431 } }, -- boss1 { config_id = 22057, shape = RegionShape.CUBIC, size = { x = 50.000, y = 10.000, z = 4.000 }, pos = { x = 80.392, y = -3.700, z = 567.271 } } } -- 触发器 triggers = { { config_id = 1022003, name = "ENTER_REGION_22003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22003", action = "action_EVENT_ENTER_REGION_22003", trigger_count = 0 }, { config_id = 1022006, name = "ENTER_REGION_22006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22006", action = "action_EVENT_ENTER_REGION_22006", trigger_count = 0 }, { config_id = 1022009, name = "ENTER_REGION_22009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22009", action = "action_EVENT_ENTER_REGION_22009", trigger_count = 0 }, { config_id = 1022012, name = "ENTER_REGION_22012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22012", action = "action_EVENT_ENTER_REGION_22012", trigger_count = 0 }, { config_id = 1022015, name = "ENTER_REGION_22015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22015", action = "action_EVENT_ENTER_REGION_22015", trigger_count = 0 }, { config_id = 1022018, name = "ENTER_REGION_22018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22018", action = "action_EVENT_ENTER_REGION_22018", trigger_count = 0 }, { config_id = 1022019, name = "ENTER_REGION_22019", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22019", action = "action_EVENT_ENTER_REGION_22019", trigger_count = 0 }, { config_id = 1022024, name = "ENTER_REGION_22024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22024", action = "action_EVENT_ENTER_REGION_22024", trigger_count = 0 }, { config_id = 1022027, name = "ENTER_REGION_22027", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22027", action = "action_EVENT_ENTER_REGION_22027", trigger_count = 0 }, { config_id = 1022030, name = "ENTER_REGION_22030", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22030", action = "action_EVENT_ENTER_REGION_22030", trigger_count = 0 }, { config_id = 1022033, name = "ENTER_REGION_22033", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22033", action = "action_EVENT_ENTER_REGION_22033", trigger_count = 0 }, { config_id = 1022036, name = "ENTER_REGION_22036", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22036", action = "action_EVENT_ENTER_REGION_22036", trigger_count = 0 }, { config_id = 1022039, name = "ENTER_REGION_22039", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22039", action = "action_EVENT_ENTER_REGION_22039", trigger_count = 0 }, { config_id = 1022042, name = "ENTER_REGION_22042", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22042", action = "action_EVENT_ENTER_REGION_22042", trigger_count = 0 }, { config_id = 1022045, name = "ENTER_REGION_22045", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22045", action = "action_EVENT_ENTER_REGION_22045", trigger_count = 0 }, { config_id = 1022047, name = "ENTER_REGION_22047", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22047", action = "action_EVENT_ENTER_REGION_22047" }, { config_id = 1022048, name = "ENTER_REGION_22048", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22048", action = "action_EVENT_ENTER_REGION_22048" }, { config_id = 1022052, name = "ENTER_REGION_22052", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22052", action = "action_EVENT_ENTER_REGION_22052" }, { config_id = 1022053, name = "ENTER_REGION_22053", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22053", action = "action_EVENT_ENTER_REGION_22053" }, -- boss1 { config_id = 1022056, name = "ENTER_REGION_22056", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22056", action = "action_EVENT_ENTER_REGION_22056", trigger_count = 0 }, -- boss1 { config_id = 1022057, name = "ENTER_REGION_22057", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22057", action = "action_EVENT_ENTER_REGION_22057", trigger_count = 0 } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 22001, 22002, 22004, 22005, 22007, 22008, 22010, 22011, 22013, 22014, 22016, 22017, 22020, 22021, 22022, 22023, 22025, 22026, 22028, 22029, 22031, 22032, 22034, 22035, 22037, 22038, 22040, 22041, 22043, 22044, 22046, 22049, 22050, 22051, 22054, 22055, 22058, 22059 }, regions = { 22003, 22006, 22009, 22012, 22015, 22018, 22019, 22024, 22027, 22030, 22033, 22036, 22039, 22042, 22045, 22047, 22048, 22052, 22053, 22056, 22057 }, triggers = { "ENTER_REGION_22003", "ENTER_REGION_22006", "ENTER_REGION_22009", "ENTER_REGION_22012", "ENTER_REGION_22015", "ENTER_REGION_22018", "ENTER_REGION_22019", "ENTER_REGION_22024", "ENTER_REGION_22027", "ENTER_REGION_22030", "ENTER_REGION_22033", "ENTER_REGION_22036", "ENTER_REGION_22039", "ENTER_REGION_22042", "ENTER_REGION_22045", "ENTER_REGION_22047", "ENTER_REGION_22048", "ENTER_REGION_22052", "ENTER_REGION_22053", "ENTER_REGION_22056", "ENTER_REGION_22057" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ENTER_REGION_22003(context, evt) if evt.param1 ~= 22003 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22003(context, evt) -- 将configid为 22001 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22001, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22006(context, evt) if evt.param1 ~= 22006 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22006(context, evt) -- 将configid为 22004 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22004, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22009(context, evt) if evt.param1 ~= 22009 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22009(context, evt) -- 将configid为 22007 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22007, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22012(context, evt) if evt.param1 ~= 22012 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22012(context, evt) -- 将configid为 22010 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22010, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22015(context, evt) if evt.param1 ~= 22015 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22015(context, evt) -- 将configid为 22013 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22013, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22018(context, evt) if evt.param1 ~= 22018 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22018(context, evt) -- 将configid为 22016 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22016, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22019(context, evt) if evt.param1 ~= 22019 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22019(context, evt) -- 将configid为 22020 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22020, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22024(context, evt) if evt.param1 ~= 22024 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22024(context, evt) -- 将configid为 22022 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22022, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22027(context, evt) if evt.param1 ~= 22027 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22027(context, evt) -- 将configid为 22026 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22026, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22030(context, evt) if evt.param1 ~= 22030 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22030(context, evt) -- 将configid为 22029 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22029, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22033(context, evt) if evt.param1 ~= 22033 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22033(context, evt) -- 将configid为 22032 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22032, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22036(context, evt) if evt.param1 ~= 22036 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22036(context, evt) -- 将configid为 22035 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22035, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22039(context, evt) if evt.param1 ~= 22039 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22039(context, evt) -- 将configid为 22038 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22038, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22042(context, evt) if evt.param1 ~= 22042 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22042(context, evt) -- 将configid为 22041 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22041, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22045(context, evt) if evt.param1 ~= 22045 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22045(context, evt) -- 将configid为 22044 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22044, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22047(context, evt) if evt.param1 ~= 22047 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22047(context, evt) -- 将configid为 22046 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22046, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22048(context, evt) if evt.param1 ~= 22048 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22048(context, evt) -- 将configid为 22049 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22049, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22052(context, evt) if evt.param1 ~= 22052 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22052(context, evt) -- 将configid为 22051 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22051, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22053(context, evt) if evt.param1 ~= 22053 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22053(context, evt) -- 将configid为 22050 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22050, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22056(context, evt) if evt.param1 ~= 22056 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22056(context, evt) -- 将configid为 22054 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22054, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end -- 触发条件 function condition_EVENT_ENTER_REGION_22057(context, evt) if evt.param1 ~= 22057 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_22057(context, evt) -- 将configid为 22059 的物件更改为状态 GadgetState.GearStart if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22059, GadgetState.GearStart) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end