添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -3141.5, z = -3294.5 },
size = { x = 6874.2, z = 6909.4 },
born_pos = { x = 58.574, y = 42.027, z = 121.240 },
born_rot = { x = 0.000, y = 89.290, z = 0.000 },
die_y = -970,
city_id = 1,
vision_anchor = { x = -3141.5, z = -3294.5 }
}
-- 所有的区块
blocks = { 20024 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -3141.5, z = -3294.5 }, max = { x = 3732.7, z = 3614.9 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,79 @@
{
"sceneId": 20024,
"routes": [
{
"localId": 1,
"name": "Area1_Scout_1",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 114.284645,
"y": 39.3872566,
"z": 115.012573
},
"waitTime": 1.0,
"speedLevel": 1
},
{
"pos": {
"x": 101.157394,
"y": 39.49038,
"z": 118.014069
},
"waitTime": 1.0,
"speedLevel": 1
},
{
"pos": {
"x": 101.89016,
"y": 39.4479523,
"z": 127.324692
},
"waitTime": 1.0,
"speedLevel": 1
}
]
},
{
"localId": 2,
"name": "Area1_Scout_2",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 159.191971,
"y": 39.51648,
"z": 121.108292
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": 138.5238,
"y": 39.5166435,
"z": 126.418846
},
"waitTime": 1.0,
"speedLevel": 1
},
{
"pos": {
"x": 124.36927,
"y": 39.5163727,
"z": 126.870651
},
"waitTime": 2.0,
"speedLevel": 1
}
]
}
]
}

View File

@@ -0,0 +1,11 @@
-- 所有的group
groups = {
{ id = 220024001, refresh_id = 1002, pos = { x = 64.499, y = 39.877, z = 120.871 } },
{ id = 220024002, refresh_id = 1, pos = { x = 190.727, y = 42.000, z = 127.302 } },
{ id = 220024003, refresh_id = 1002, pos = { x = 190.513, y = 49.924, z = 189.124 } },
{ id = 220024005, refresh_id = 1002, pos = { x = 191.356, y = 57.000, z = 377.070 } },
{ id = 220024006, refresh_id = 1, pos = { x = 70.973, y = 39.517, z = 121.329 } },
{ id = 220024007, refresh_id = 1, pos = { x = 75.647, y = 39.516, z = 120.653 } },
{ id = 220024008, refresh_id = 1, pos = { x = 190.740, y = 57.016, z = 332.561 } },
{ id = 220024009, pos = { x = 192.731, y = 58.516, z = 343.695 } }
}

View File

@@ -0,0 +1,173 @@
-- 基础信息
local base_info = {
group_id = 220024001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 21010201, pos = { x = 114.375, y = 39.516, z = 114.993 }, rot = { x = 0.000, y = 266.944, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 1002, monster_id = 21010501, pos = { x = 101.643, y = 39.509, z = 128.942 }, rot = { x = 0.000, y = 275.226, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1003, monster_id = 21010901, pos = { x = 99.948, y = 39.937, z = 116.920 }, rot = { x = 0.000, y = 274.994, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1004, monster_id = 21011001, pos = { x = 138.055, y = 39.517, z = 128.678 }, rot = { x = 0.000, y = 268.194, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1005, monster_id = 21010901, pos = { x = 138.002, y = 39.516, z = 121.380 }, rot = { x = 0.000, y = 272.533, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1006, monster_id = 21010201, pos = { x = 158.545, y = 39.517, z = 121.037 }, rot = { x = 0.000, y = 275.676, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 1007, monster_id = 21010301, pos = { x = 117.076, y = 39.516, z = 117.304 }, rot = { x = 0.000, y = 169.378, z = 0.000 }, level = 1, disableWander = true, pose_id = 9003 },
{ config_id = 1008, monster_id = 21010301, pos = { x = 117.169, y = 39.516, z = 113.867 }, rot = { x = 0.000, y = 355.394, z = 0.000 }, level = 1, disableWander = true, pose_id = 9003 },
{ config_id = 1009, monster_id = 21010701, pos = { x = 118.641, y = 39.516, z = 115.599 }, rot = { x = 0.000, y = 262.960, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 1010, monster_id = 21020101, pos = { x = 168.832, y = 42.000, z = 121.073 }, rot = { x = 0.000, y = 269.894, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 1011, monster_id = 21010301, pos = { x = 159.274, y = 39.516, z = 124.301 }, rot = { x = 0.000, y = 268.673, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 1012, monster_id = 21010301, pos = { x = 159.155, y = 39.517, z = 117.458 }, rot = { x = 0.000, y = 273.763, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1013, gadget_id = 70350003, pos = { x = 55.002, y = 42.017, z = 120.960 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1014, gadget_id = 70350002, pos = { x = 173.992, y = 42.016, z = 120.944 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1015, gadget_id = 70360002, pos = { x = 158.805, y = 39.517, z = 114.599 }, rot = { x = 0.000, y = 303.674, z = 0.000 }, level = 1, state = GadgetState.GearStop }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000001, name = "ANY_MONSTER_DIE_1", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1", action = "action_EVENT_ANY_MONSTER_DIE_1" },
{ config_id = 1000002, name = "SELECT_OPTION_2", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2", action = "action_EVENT_SELECT_OPTION_2", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012 },
gadgets = { 1013, 1014, 1015 },
regions = { },
triggers = { "ANY_MONSTER_DIE_1", "SELECT_OPTION_2" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1(context, evt)
-- 改变指定group组220024001中 configid为1015的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024001, 1015, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220024001, 1015, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 触发镜头注目注目位置为坐标15940115持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=159, y=40, z=115}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2(context, evt)
-- 判断是gadgetid 1015 option_id 1
if 1015 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2(context, evt)
-- 改变指定group组220024001中 configid为1015的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024001, 1015, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 220024001 指定config1015物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220024001, 1015, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组220024001中 configid为1014的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024001, 1014, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 触发镜头注目注目位置为坐标17447121持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=174, y=47, z=121}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end

View File

@@ -0,0 +1,155 @@
-- 基础信息
local base_info = {
group_id = 220024002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70350002, pos = { x = 190.466, y = 42.101, z = 137.761 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70360002, pos = { x = 190.530, y = 42.100, z = 121.000 }, rot = { x = 0.000, y = 277.558, z = 0.000 }, level = 1, state = GadgetState.GearStop }
}
-- 区域
regions = {
-- 在2.4上修复逻辑
{ config_id = 3, shape = RegionShape.SPHERE, radius = 5, pos = { x = 190.378, y = 42.059, z = 121.148 } }
}
-- 触发器
triggers = {
-- 在2.4上修复逻辑
{ config_id = 1000003, name = "ENTER_REGION_3", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3", action = "action_EVENT_ENTER_REGION_3", forbid_guest = false },
{ config_id = 1000004, name = "SELECT_OPTION_4", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4", action = "action_EVENT_SELECT_OPTION_4", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002 },
regions = { 3 },
triggers = { "ENTER_REGION_3", "SELECT_OPTION_4" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3(context, evt)
if evt.param1 ~= 3 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_3(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220024002, 2002, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组220024002中 configid为2002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024002, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220024001中 configid为1014的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024001, 1014, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4(context, evt)
if 2002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4(context, evt)
-- 删除指定group 220024002 指定config2002物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220024002, 2002, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组220024002中 configid为2001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024002, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220024002中 configid为2002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024002, 2002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 触发镜头注目注目位置为坐标19046137持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=190, y=46, z=137}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end

View File

@@ -0,0 +1,223 @@
-- 基础信息
local base_info = {
group_id = 220024003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 21020201, pos = { x = 190.953, y = 49.905, z = 189.016 }, rot = { x = 0.000, y = 176.740, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3002, monster_id = 21010501, pos = { x = 178.946, y = 46.016, z = 172.384 }, rot = { x = 0.000, y = 125.258, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 3003, monster_id = 21010501, pos = { x = 204.336, y = 46.016, z = 173.212 }, rot = { x = 0.000, y = 234.329, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 3004, monster_id = 21011001, pos = { x = 183.084, y = 46.016, z = 180.644 }, rot = { x = 0.000, y = 154.339, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 3005, monster_id = 21010901, pos = { x = 198.265, y = 46.016, z = 180.264 }, rot = { x = 0.000, y = 200.882, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3006, gadget_id = 70360002, pos = { x = 187.283, y = 49.875, z = 191.690 }, rot = { x = 0.000, y = 167.085, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 3007, gadget_id = 70690001, pos = { x = 187.607, y = 63.314, z = 214.377 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3008, gadget_id = 70690001, pos = { x = 187.772, y = 65.051, z = 253.527 }, rot = { x = 41.920, y = 355.445, z = 353.464 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 25, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 4.000 }, pos = { x = 190.410, y = 46.288, z = 145.496 } }
}
-- 触发器
triggers = {
{ config_id = 1000005, name = "ANY_MONSTER_DIE_5", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5", action = "action_EVENT_ANY_MONSTER_DIE_5" },
{ config_id = 1000006, name = "SELECT_OPTION_6", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6", action = "action_EVENT_SELECT_OPTION_6", forbid_guest = false },
{ config_id = 1000025, name = "ENTER_REGION_25", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_25", action = "action_EVENT_ENTER_REGION_25", forbid_guest = false },
{ config_id = 1000030, name = "TIMER_EVENT_30", event = EventType.EVENT_TIMER_EVENT, source = "1", condition = "", action = "action_EVENT_TIMER_EVENT_30" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3001, 3002, 3003, 3004, 3005 },
gadgets = { 3006 },
regions = { 25 },
triggers = { "ANY_MONSTER_DIE_5", "SELECT_OPTION_6", "ENTER_REGION_25", "TIMER_EVENT_30" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220024003) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220024003, 3006, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组220024003中 configid为3006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024003, 3006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 触发镜头注目注目位置为坐标18750192持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=187, y=50, z=192}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6(context, evt)
if 3006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6(context, evt)
-- 删除指定group 220024003 指定config3006物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220024003, 3006, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组220024003中 configid为3006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024003, 3006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 解锁目标1
if 0 ~= ScriptLib.UnlockForce(context, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_force")
return -1
end
-- 解锁目标2
if 0 ~= ScriptLib.UnlockForce(context, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_force")
return -1
end
-- 创建id为3007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为3008的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_25(context, evt)
if evt.param1 ~= 25 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_25(context, evt)
-- 改变指定group组220024002中 configid为2001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024002, 2001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220024002, 2002, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组220024003中 configid为2002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024003, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_30(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220024002, 2002, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组220024002中 configid为2002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024002, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end

View File

@@ -0,0 +1,112 @@
-- 基础信息
local base_info = {
group_id = 220024005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 17, monster_id = 21010301, pos = { x = 187.797, y = 57.016, z = 384.635 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9012 },
{ config_id = 18, monster_id = 21010301, pos = { x = 195.152, y = 57.017, z = 384.863 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9012 },
{ config_id = 42, monster_id = 24010101, pos = { x = 191.442, y = 59.017, z = 399.929 }, rot = { x = 0.000, y = 169.719, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 }, isElite = true, pose_id = 100 },
{ config_id = 49, monster_id = 22010201, pos = { x = 191.614, y = 57.000, z = 388.655 }, rot = { x = 0.000, y = 0.902, z = 0.000 }, level = 1, pose_id = 9013 },
{ config_id = 50, monster_id = 21030101, pos = { x = 181.690, y = 57.099, z = 383.671 }, rot = { x = 0.000, y = 107.163, z = 0.000 }, level = 1, pose_id = 9012 },
{ config_id = 51, monster_id = 21030101, pos = { x = 201.431, y = 57.016, z = 383.069 }, rot = { x = 0.000, y = 273.788, z = 0.000 }, level = 1, pose_id = 9012 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 90, gadget_id = 70220005, pos = { x = 200.973, y = 56.964, z = 370.026 }, rot = { x = 0.000, y = 293.586, z = 0.000 }, level = 1 },
{ config_id = 91, gadget_id = 70220005, pos = { x = 200.759, y = 57.016, z = 379.107 }, rot = { x = 0.000, y = 276.611, z = 0.000 }, level = 1 },
{ config_id = 92, gadget_id = 70220005, pos = { x = 200.363, y = 57.017, z = 387.690 }, rot = { x = 0.000, y = 275.684, z = 0.000 }, level = 1 },
{ config_id = 93, gadget_id = 70220005, pos = { x = 183.203, y = 57.017, z = 388.567 }, rot = { x = 0.000, y = 113.734, z = 0.000 }, level = 1 },
{ config_id = 94, gadget_id = 70220005, pos = { x = 182.793, y = 57.016, z = 379.412 }, rot = { x = 0.000, y = 110.341, z = 0.000 }, level = 1 },
{ config_id = 95, gadget_id = 70220005, pos = { x = 182.969, y = 57.017, z = 369.948 }, rot = { x = 0.000, y = 101.062, z = 0.000 }, level = 1 },
{ config_id = 96, gadget_id = 70220023, pos = { x = 181.265, y = 57.018, z = 374.737 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97, gadget_id = 70220023, pos = { x = 201.938, y = 57.016, z = 374.740 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98, gadget_id = 70220023, pos = { x = 201.166, y = 57.016, z = 384.020 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 99, gadget_id = 70220023, pos = { x = 180.743, y = 57.016, z = 384.234 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 24, shape = RegionShape.CUBIC, size = { x = 50.000, y = 10.000, z = 2.000 }, pos = { x = 195.364, y = 60.905, z = 358.447 } }
}
-- 触发器
triggers = {
{ config_id = 1000024, name = "ENTER_REGION_24", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_24", action = "action_EVENT_ENTER_REGION_24", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 17, 42, 49, 50, 51 },
gadgets = { 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 },
regions = { 24 },
triggers = { "ENTER_REGION_24" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_24(context, evt)
if evt.param1 ~= 24 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_24(context, evt)
-- 改变指定group组220024008中 configid为83的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220024008, 83, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end

View File

@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 220024006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18, gadget_id = 70211001, pos = { x = 112.192, y = 39.517, z = 111.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 19, gadget_id = 70211001, pos = { x = 204.655, y = 41.929, z = 121.392 }, rot = { x = 0.000, y = 269.656, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 20, gadget_id = 70211001, pos = { x = 194.059, y = 49.934, z = 191.587 }, rot = { x = 0.000, y = 179.835, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 21, gadget_id = 70211001, pos = { x = 177.860, y = 50.516, z = 295.455 }, rot = { x = 0.000, y = 181.812, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 23, gadget_id = 70211001, pos = { x = 213.474, y = 57.017, z = 323.678 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 18, 19, 20, 21, 23 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,130 @@
-- 基础信息
local base_info = {
group_id = 220024007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10, gadget_id = 70310001, pos = { x = 59.911, y = 42.044, z = 129.791 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 11, gadget_id = 70310002, pos = { x = 73.019, y = 41.368, z = 128.940 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 12, gadget_id = 70310004, pos = { x = 117.275, y = 39.597, z = 115.413 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 24, gadget_id = 70310001, pos = { x = 59.911, y = 42.044, z = 112.778 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 25, gadget_id = 70310002, pos = { x = 115.012, y = 41.166, z = 129.454 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 26, gadget_id = 70310002, pos = { x = 115.012, y = 41.166, z = 112.563 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 27, gadget_id = 70310002, pos = { x = 135.019, y = 41.166, z = 129.454 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 28, gadget_id = 70310002, pos = { x = 135.042, y = 41.166, z = 112.563 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 29, gadget_id = 70310002, pos = { x = 155.007, y = 41.166, z = 112.563 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 30, gadget_id = 70310002, pos = { x = 154.983, y = 41.166, z = 129.454 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 31, gadget_id = 70310001, pos = { x = 163.483, y = 39.538, z = 128.519 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 32, gadget_id = 70310001, pos = { x = 163.483, y = 39.538, z = 113.390 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 36, gadget_id = 70310002, pos = { x = 185.655, y = 43.830, z = 107.808 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 37, gadget_id = 70310001, pos = { x = 204.283, y = 42.068, z = 115.507 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 38, gadget_id = 70310001, pos = { x = 204.283, y = 42.068, z = 127.538 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 39, gadget_id = 70310002, pos = { x = 194.513, y = 43.830, z = 142.974 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 40, gadget_id = 70310002, pos = { x = 186.467, y = 43.830, z = 142.974 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 41, gadget_id = 70310001, pos = { x = 201.590, y = 46.049, z = 181.702 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 42, gadget_id = 70310001, pos = { x = 181.518, y = 46.049, z = 182.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 43, gadget_id = 70310001, pos = { x = 176.664, y = 46.049, z = 169.634 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 44, gadget_id = 70310001, pos = { x = 212.896, y = 46.049, z = 174.442 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 45, gadget_id = 70310002, pos = { x = 184.982, y = 47.359, z = 161.532 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 46, gadget_id = 70310002, pos = { x = 195.945, y = 47.359, z = 161.532 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 47, gadget_id = 70310001, pos = { x = 195.333, y = 50.102, z = 188.609 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 48, gadget_id = 70310001, pos = { x = 186.440, y = 50.102, z = 188.609 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 49, gadget_id = 70310001, pos = { x = 182.778, y = 53.511, z = 304.115 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 50, gadget_id = 70310001, pos = { x = 200.375, y = 53.511, z = 304.115 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 51, gadget_id = 70310001, pos = { x = 198.066, y = 57.054, z = 312.780 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 52, gadget_id = 70310001, pos = { x = 185.105, y = 57.054, z = 312.780 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 53, gadget_id = 70310001, pos = { x = 186.789, y = 48.579, z = 274.854 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 54, gadget_id = 70310001, pos = { x = 194.676, y = 48.579, z = 274.854 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 55, gadget_id = 70310002, pos = { x = 198.890, y = 53.451, z = 285.556 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 56, gadget_id = 70310002, pos = { x = 182.722, y = 53.451, z = 285.556 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 57, gadget_id = 70310002, pos = { x = 205.874, y = 53.451, z = 289.430 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 58, gadget_id = 70310002, pos = { x = 177.274, y = 53.451, z = 289.470 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 59, gadget_id = 70310002, pos = { x = 178.569, y = 60.409, z = 324.011 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 60, gadget_id = 70310002, pos = { x = 178.569, y = 60.409, z = 332.766 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 61, gadget_id = 70310002, pos = { x = 204.930, y = 60.409, z = 332.979 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 62, gadget_id = 70310002, pos = { x = 205.425, y = 60.409, z = 323.980 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 63, gadget_id = 70310001, pos = { x = 210.000, y = 57.028, z = 324.125 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 64, gadget_id = 70310001, pos = { x = 217.209, y = 57.028, z = 323.838 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 65, gadget_id = 70310001, pos = { x = 172.998, y = 57.028, z = 346.004 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 66, gadget_id = 70310001, pos = { x = 164.339, y = 57.028, z = 346.004 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 67, gadget_id = 70310001, pos = { x = 185.556, y = 58.500, z = 344.112 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 68, gadget_id = 70310001, pos = { x = 197.233, y = 58.500, z = 344.112 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 69, gadget_id = 70310002, pos = { x = 201.773, y = 59.275, z = 369.993 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 70, gadget_id = 70310002, pos = { x = 201.773, y = 59.275, z = 379.502 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 71, gadget_id = 70310002, pos = { x = 201.773, y = 59.275, z = 387.981 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 72, gadget_id = 70310002, pos = { x = 181.748, y = 59.275, z = 388.986 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 73, gadget_id = 70310002, pos = { x = 181.748, y = 59.275, z = 379.514 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 74, gadget_id = 70310002, pos = { x = 181.748, y = 59.275, z = 369.994 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 75, gadget_id = 70310001, pos = { x = 200.641, y = 59.002, z = 395.600 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 76, gadget_id = 70310001, pos = { x = 182.353, y = 59.002, z = 395.600 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 77, gadget_id = 70310001, pos = { x = 187.492, y = 59.002, z = 402.950 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 78, gadget_id = 70310001, pos = { x = 195.708, y = 59.002, z = 402.950 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 79, gadget_id = 70310002, pos = { x = 184.666, y = 63.779, z = 315.045 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 80, gadget_id = 70310002, pos = { x = 198.158, y = 63.779, z = 315.045 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 81, gadget_id = 70310002, pos = { x = 173.160, y = 53.451, z = 294.960 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 82, gadget_id = 70310002, pos = { x = 209.916, y = 53.451, z = 294.960 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10, 11, 12, 24, 25, 26, 27, 28, 29, 30, 31, 32, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,123 @@
-- 基础信息
local base_info = {
group_id = 220024008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 83, gadget_id = 70350002, pos = { x = 191.379, y = 58.592, z = 347.632 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 84, gadget_id = 70350003, pos = { x = 176.364, y = 57.017, z = 328.499 }, rot = { x = 0.000, y = 270.713, z = 0.000 }, level = 1 },
{ config_id = 88, gadget_id = 70350003, pos = { x = 207.078, y = 56.983, z = 328.546 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 89, gadget_id = 70360002, pos = { x = 188.026, y = 58.482, z = 344.627 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000037, name = "GADGET_CREATE_37", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_37", action = "action_EVENT_GADGET_CREATE_37" },
{ config_id = 1000038, name = "SELECT_OPTION_38", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_38", action = "action_EVENT_SELECT_OPTION_38" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 83, 84, 88, 89 },
regions = { },
triggers = { "GADGET_CREATE_37", "SELECT_OPTION_38" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_37(context, evt)
if 89 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_37(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220024008, 89, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_38(context, evt)
-- 判断是gadgetid 89 option_id 1
if 89 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_38(context, evt)
-- 将configid为 83 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 83, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 220024009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,298 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 72.70216,
"y": 3.306831,
"z": 176.1642
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 500.0,
"useHeight": true,
"width": 500.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
}
},
"forces": {
"1": {
"$type": "ConfigAirflowField",
"alias": "",
"areaId": 0,
"autoFly": false,
"colliderBlackList": [],
"colliderWhiteList": [],
"enterEffect": "Eff_Windfield_Enter",
"forceHor": false,
"gadgetId": 70610102,
"groupLimit": false,
"isModelHidden": false,
"pointType": "Other",
"pos": {
"x": 188.4338,
"y": 23.79631,
"z": 201.4664
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"scale": 1.0,
"stayEffect": "Eff_Windfield_Stay",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false,
"velocity": 10.0
},
"2": {
"$type": "ConfigAirflowField",
"alias": "",
"areaId": 0,
"autoFly": false,
"colliderBlackList": [],
"colliderWhiteList": [],
"enterEffect": "Eff_Windfield_Enter",
"forceHor": false,
"gadgetId": 70610102,
"groupLimit": false,
"isModelHidden": false,
"pointType": "Other",
"pos": {
"x": 186.7867,
"y": 25.22279,
"z": 237.3767
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"scale": 1.0,
"stayEffect": "Eff_Windfield_Stay",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false,
"velocity": 10.0
}
},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 191.4639,
"y": 58.91759,
"z": 399.7567
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 203.2885,
"y": 58.47185,
"z": 351.1246
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 60.0,
"y": 15.0,
"z": 10.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 204.3994,
"y": 50.51635,
"z": 293.5313
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 60.0,
"y": 15.0,
"z": 10.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"5": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 64.48459,
"y": 39.51643,
"z": 113.3795
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 15.0,
"z": 20.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}