mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-28 09:05:26 +00:00
530 lines
24 KiB
Lua
530 lines
24 KiB
Lua
-- 基础信息
|
|
local base_info = {
|
|
group_id = 247006029
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 怪物
|
|
monsters = {
|
|
}
|
|
|
|
-- NPC
|
|
npcs = {
|
|
}
|
|
|
|
-- 装置
|
|
gadgets = {
|
|
{ config_id = 29001, gadget_id = 70310154, pos = { x = -94.519, y = 1.651, z = 154.992 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29002, gadget_id = 70360291, pos = { x = -64.788, y = 1.651, z = 154.992 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29004, gadget_id = 70310154, pos = { x = -65.495, y = 1.651, z = 165.000 }, rot = { x = 0.000, y = 269.241, z = 0.000 }, level = 1 },
|
|
{ config_id = 29005, gadget_id = 70360291, pos = { x = -95.224, y = 1.651, z = 164.606 }, rot = { x = 0.000, y = 179.241, z = 0.000 }, level = 1 },
|
|
{ config_id = 29008, gadget_id = 70360291, pos = { x = -32.485, y = -0.432, z = 186.071 }, rot = { x = 0.000, y = 269.593, z = 0.000 }, level = 1 },
|
|
{ config_id = 29009, gadget_id = 70310154, pos = { x = -32.273, y = -0.432, z = 145.797 }, rot = { x = 0.000, y = 359.593, z = 0.000 }, level = 1 },
|
|
{ config_id = 29010, gadget_id = 70310154, pos = { x = -19.622, y = 1.691, z = 233.718 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29011, gadget_id = 70360291, pos = { x = 20.260, y = 1.691, z = 233.718 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29014, gadget_id = 70360291, pos = { x = 20.260, y = 1.691, z = 246.235 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29015, gadget_id = 70310154, pos = { x = -19.622, y = 1.691, z = 246.235 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29016, gadget_id = 70310154, pos = { x = -14.511, y = 1.651, z = 315.014 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29017, gadget_id = 70360291, pos = { x = 15.219, y = 1.651, z = 315.014 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29019, gadget_id = 70310154, pos = { x = -14.511, y = 1.651, z = 325.056 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29020, gadget_id = 70360291, pos = { x = 15.219, y = 1.651, z = 325.056 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29022, gadget_id = 70360291, pos = { x = -5.061, y = 1.651, z = 304.730 }, rot = { x = 0.000, y = 90.163, z = 0.000 }, level = 1 },
|
|
{ config_id = 29023, gadget_id = 70310154, pos = { x = -4.976, y = 1.651, z = 334.460 }, rot = { x = 0.000, y = 180.163, z = 0.000 }, level = 1 },
|
|
{ config_id = 29026, gadget_id = 70360291, pos = { x = 4.927, y = 1.651, z = 304.730 }, rot = { x = 0.000, y = 90.163, z = 0.000 }, level = 1 },
|
|
{ config_id = 29027, gadget_id = 70310154, pos = { x = 5.011, y = 1.651, z = 334.460 }, rot = { x = 0.000, y = 180.163, z = 0.000 }, level = 1 },
|
|
{ config_id = 29028, gadget_id = 70360291, pos = { x = -32.772, y = -0.382, z = 346.375 }, rot = { x = 0.000, y = 270.546, z = 0.000 }, level = 1 },
|
|
{ config_id = 29029, gadget_id = 70310154, pos = { x = -33.055, y = -0.382, z = 305.818 }, rot = { x = 0.000, y = 0.546, z = 0.000 }, level = 1 },
|
|
{ config_id = 29032, gadget_id = 70310154, pos = { x = -57.313, y = 2.006, z = 305.994 }, rot = { x = 0.000, y = 0.546, z = 0.000 }, level = 1 },
|
|
{ config_id = 29033, gadget_id = 70360291, pos = { x = -57.030, y = 2.006, z = 341.418 }, rot = { x = 0.000, y = 270.546, z = 0.000 }, level = 1 },
|
|
{ config_id = 29036, gadget_id = 70310154, pos = { x = -179.613, y = 1.691, z = 246.317 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29037, gadget_id = 70360291, pos = { x = -139.732, y = 1.691, z = 246.317 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29038, gadget_id = 70360291, pos = { x = -139.732, y = 1.691, z = 233.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29039, gadget_id = 70310154, pos = { x = -179.613, y = 1.691, z = 233.800 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29040, gadget_id = 70310154, pos = { x = 55.537, y = -1.159, z = 506.110 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29041, gadget_id = 70310154, pos = { x = 104.588, y = -1.159, z = 514.031 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29042, gadget_id = 70310154, pos = { x = 76.028, y = -1.159, z = 539.913 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29043, gadget_id = 70310154, pos = { x = 83.899, y = -1.159, z = 480.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29044, gadget_id = 70360291, pos = { x = 106.257, y = -1.210, z = 506.178 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29045, gadget_id = 70360291, pos = { x = 53.232, y = -1.194, z = 514.030 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29046, gadget_id = 70360291, pos = { x = 76.040, y = -1.199, z = 478.947 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
|
{ config_id = 29047, gadget_id = 70360291, pos = { x = 83.904, y = -1.171, z = 541.384 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
|
}
|
|
|
|
-- 区域
|
|
regions = {
|
|
{ config_id = 29003, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 4.500 }, pos = { x = -79.874, y = 0.090, z = 154.886 } },
|
|
{ config_id = 29006, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 4.500 }, pos = { x = -80.140, y = 0.090, z = 164.912 } },
|
|
{ config_id = 29007, shape = RegionShape.CUBIC, size = { x = 4.500, y = 10.000, z = 40.000 }, pos = { x = -32.272, y = -1.994, z = 164.713 } },
|
|
{ config_id = 29012, shape = RegionShape.CUBIC, size = { x = 40.000, y = 10.000, z = 4.500 }, pos = { x = 0.282, y = 1.691, z = 233.718 } },
|
|
{ config_id = 29013, shape = RegionShape.CUBIC, size = { x = 40.000, y = 10.000, z = 4.500 }, pos = { x = 0.282, y = 1.691, z = 246.235 } },
|
|
{ config_id = 29018, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 4.500 }, pos = { x = 0.133, y = 0.090, z = 314.908 } },
|
|
{ config_id = 29021, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 4.500 }, pos = { x = 0.133, y = 0.090, z = 324.950 } },
|
|
{ config_id = 29024, shape = RegionShape.CUBIC, size = { x = 4.500, y = 10.000, z = 30.000 }, pos = { x = -4.976, y = 1.651, z = 320.002 } },
|
|
{ config_id = 29025, shape = RegionShape.CUBIC, size = { x = 4.500, y = 10.000, z = 30.000 }, pos = { x = 5.011, y = 1.651, z = 320.002 } },
|
|
{ config_id = 29030, shape = RegionShape.CUBIC, size = { x = 4.500, y = 10.000, z = 40.000 }, pos = { x = -32.959, y = -0.382, z = 326.540 } },
|
|
{ config_id = 29031, shape = RegionShape.CUBIC, size = { x = 4.500, y = 10.000, z = 40.000 }, pos = { x = -57.216, y = 2.006, z = 326.716 } },
|
|
{ config_id = 29034, shape = RegionShape.CUBIC, size = { x = 40.000, y = 10.000, z = 4.500 }, pos = { x = -159.709, y = 1.691, z = 246.317 } },
|
|
{ config_id = 29035, shape = RegionShape.CUBIC, size = { x = 40.000, y = 10.000, z = 4.500 }, pos = { x = -159.709, y = 1.691, z = 233.800 } },
|
|
{ config_id = 29048, shape = RegionShape.CUBIC, size = { x = 50.000, y = 10.000, z = 4.500 }, pos = { x = 79.694, y = -1.159, z = 506.110 } },
|
|
{ config_id = 29049, shape = RegionShape.CUBIC, size = { x = 50.000, y = 10.000, z = 4.500 }, pos = { x = 79.694, y = -1.159, z = 513.857 } },
|
|
{ config_id = 29050, shape = RegionShape.CUBIC, size = { x = 4.500, y = 10.000, z = 60.000 }, pos = { x = 76.028, y = -1.159, z = 510.661 } },
|
|
{ config_id = 29051, shape = RegionShape.CUBIC, size = { x = 4.500, y = 10.000, z = 60.000 }, pos = { x = 84.069, y = -1.159, z = 510.661 } }
|
|
}
|
|
|
|
-- 触发器
|
|
triggers = {
|
|
{ config_id = 1029003, name = "ENTER_REGION_29003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29003", action = "action_EVENT_ENTER_REGION_29003", trigger_count = 0 },
|
|
{ config_id = 1029006, name = "ENTER_REGION_29006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29006", action = "action_EVENT_ENTER_REGION_29006", trigger_count = 0 },
|
|
{ config_id = 1029007, name = "ENTER_REGION_29007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29007", action = "action_EVENT_ENTER_REGION_29007", trigger_count = 0 },
|
|
{ config_id = 1029012, name = "ENTER_REGION_29012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29012", action = "action_EVENT_ENTER_REGION_29012", trigger_count = 0 },
|
|
{ config_id = 1029013, name = "ENTER_REGION_29013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29013", action = "action_EVENT_ENTER_REGION_29013", trigger_count = 0 },
|
|
{ config_id = 1029018, name = "ENTER_REGION_29018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29018", action = "action_EVENT_ENTER_REGION_29018", trigger_count = 0 },
|
|
{ config_id = 1029021, name = "ENTER_REGION_29021", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29021", action = "action_EVENT_ENTER_REGION_29021", trigger_count = 0 },
|
|
{ config_id = 1029024, name = "ENTER_REGION_29024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29024", action = "action_EVENT_ENTER_REGION_29024", trigger_count = 0 },
|
|
{ config_id = 1029025, name = "ENTER_REGION_29025", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29025", action = "action_EVENT_ENTER_REGION_29025", trigger_count = 0 },
|
|
{ config_id = 1029030, name = "ENTER_REGION_29030", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29030", action = "action_EVENT_ENTER_REGION_29030", trigger_count = 0 },
|
|
{ config_id = 1029031, name = "ENTER_REGION_29031", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29031", action = "action_EVENT_ENTER_REGION_29031", trigger_count = 0 },
|
|
{ config_id = 1029034, name = "ENTER_REGION_29034", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29034", action = "action_EVENT_ENTER_REGION_29034", trigger_count = 0 },
|
|
{ config_id = 1029035, name = "ENTER_REGION_29035", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29035", action = "action_EVENT_ENTER_REGION_29035", trigger_count = 0 },
|
|
{ config_id = 1029048, name = "ENTER_REGION_29048", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29048", action = "action_EVENT_ENTER_REGION_29048", trigger_count = 0 },
|
|
{ config_id = 1029049, name = "ENTER_REGION_29049", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29049", action = "action_EVENT_ENTER_REGION_29049", trigger_count = 0 },
|
|
{ config_id = 1029050, name = "ENTER_REGION_29050", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29050", action = "action_EVENT_ENTER_REGION_29050", trigger_count = 0 },
|
|
{ config_id = 1029051, name = "ENTER_REGION_29051", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29051", action = "action_EVENT_ENTER_REGION_29051", trigger_count = 0 }
|
|
}
|
|
|
|
-- 变量
|
|
variables = {
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 初始化配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 初始化时创建
|
|
init_config = {
|
|
suite = 1,
|
|
end_suite = 0,
|
|
rand_suite = false
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 小组配置
|
|
--
|
|
--================================================================
|
|
|
|
suites = {
|
|
{
|
|
-- suite_id = 1,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { 29001, 29002, 29004, 29005, 29008, 29009, 29010, 29011, 29014, 29015, 29016, 29017, 29019, 29020, 29022, 29023, 29026, 29027, 29028, 29029, 29032, 29033, 29036, 29037, 29038, 29039, 29040, 29041, 29042, 29043, 29044, 29045, 29046, 29047 },
|
|
regions = { 29003, 29006, 29007, 29012, 29013, 29018, 29021, 29024, 29025, 29030, 29031, 29034, 29035, 29048, 29049, 29050, 29051 },
|
|
triggers = { "ENTER_REGION_29003", "ENTER_REGION_29006", "ENTER_REGION_29007", "ENTER_REGION_29012", "ENTER_REGION_29013", "ENTER_REGION_29018", "ENTER_REGION_29021", "ENTER_REGION_29024", "ENTER_REGION_29025", "ENTER_REGION_29030", "ENTER_REGION_29031", "ENTER_REGION_29034", "ENTER_REGION_29035", "ENTER_REGION_29048", "ENTER_REGION_29049", "ENTER_REGION_29050", "ENTER_REGION_29051" },
|
|
rand_weight = 100
|
|
}
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 触发器
|
|
--
|
|
--================================================================
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29003(context, evt)
|
|
if evt.param1 ~= 29003 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_29003(context, evt)
|
|
-- 将configid为 29001 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29001, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29006(context, evt)
|
|
if evt.param1 ~= 29006 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_29006(context, evt)
|
|
-- 将configid为 29004 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29004, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29007(context, evt)
|
|
if evt.param1 ~= 29007 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_29007(context, evt)
|
|
-- 将configid为 29009 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29009, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29012(context, evt)
|
|
if evt.param1 ~= 29012 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_29012(context, evt)
|
|
-- 将configid为 29010 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29010, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29013(context, evt)
|
|
if evt.param1 ~= 29013 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_29013(context, evt)
|
|
-- 将configid为 29015 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29015, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29018(context, evt)
|
|
if evt.param1 ~= 29018 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_29018(context, evt)
|
|
-- 将configid为 29016 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29016, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29021(context, evt)
|
|
if evt.param1 ~= 29021 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_29021(context, evt)
|
|
-- 将configid为 29019 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29019, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29024(context, evt)
|
|
if evt.param1 ~= 29024 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_29024(context, evt)
|
|
-- 将configid为 29023 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29023, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29025(context, evt)
|
|
if evt.param1 ~= 29025 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_29025(context, evt)
|
|
-- 将configid为 29027 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29027, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29030(context, evt)
|
|
if evt.param1 ~= 29030 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_29030(context, evt)
|
|
-- 将configid为 29029 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29029, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29031(context, evt)
|
|
if evt.param1 ~= 29031 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_29031(context, evt)
|
|
-- 将configid为 29032 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29032, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29034(context, evt)
|
|
if evt.param1 ~= 29034 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_29034(context, evt)
|
|
-- 将configid为 29036 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29036, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29035(context, evt)
|
|
if evt.param1 ~= 29035 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_29035(context, evt)
|
|
-- 将configid为 29039 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29039, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29048(context, evt)
|
|
if evt.param1 ~= 29048 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_29048(context, evt)
|
|
-- 将configid为 29040 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29040, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29049(context, evt)
|
|
if evt.param1 ~= 29049 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_29049(context, evt)
|
|
-- 将configid为 29041 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29041, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29050(context, evt)
|
|
if evt.param1 ~= 29050 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_29050(context, evt)
|
|
-- 将configid为 29042 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29042, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ENTER_REGION_29051(context, evt)
|
|
if evt.param1 ~= 29051 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_29051(context, evt)
|
|
-- 将configid为 29043 的物件更改为状态 GadgetState.GearStart
|
|
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29043, GadgetState.GearStart) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end |