添加配置表

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 = 500.0, z = 200.0 },
size = { x = 600.0, z = 600.0 },
born_pos = { x = 745.742, y = 59.086, z = 349.677 },
born_rot = { x = 0.000, y = 226.255, z = 0.000 },
die_y = -20,
city_id = 4,
vision_anchor = { x = 0.0, z = 0.0 }
}
-- 所有的区块
blocks = { 40052 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 500.0, z = 200.0 }, max = { x = 1100.0, z = 800.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,162 @@
{
"sceneId": 40052,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 759.41095,
"y": 99.54945,
"z": 378.41806
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 762.1284,
"y": 99.54945,
"z": 364.864929
},
"waitTime": 4.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 747.068054,
"y": 99.54945,
"z": 371.748871
},
"waitTime": 4.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 759.41095,
"y": 99.54945,
"z": 378.41806
},
"waitTime": 4.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 2,
"name": "Platform_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 756.8771,
"y": 60.39485,
"z": 375.035553
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 751.880066,
"y": 62.5696526,
"z": 365.84848
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 748.8516,
"y": 63.88062,
"z": 357.8926
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 3,
"name": "Platform_003",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 747.7577,
"y": 62.97776,
"z": 354.8592
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 746.618835,
"y": 62.0347672,
"z": 350.33844
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 738.15094,
"y": 64.6738052,
"z": 344.6134
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 4,
"name": "Platform_004",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 735.6471,
"y": 63.8715,
"z": 344.1789
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 720.649963,
"y": 60.39485,
"z": 344.3496
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 697.4113,
"y": 62.4842,
"z": 341.777618
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
}
]
}

View File

@@ -0,0 +1,13 @@
-- 所有的group
groups = {
{ id = 240052001, refresh_id = 1, pos = { x = 754.122, y = 56.950, z = 376.183 } },
{ id = 240052002, refresh_id = 1, pos = { x = 757.279, y = 57.021, z = 377.126 } },
{ id = 240052003, refresh_id = 1001, pos = { x = 733.483, y = 71.630, z = 336.872 } },
{ id = 240052004, refresh_id = 1, pos = { x = 697.633, y = 58.497, z = 344.985 } },
{ id = 240052005, pos = { x = 759.266, y = 90.120, z = 354.791 } },
{ id = 240052006, refresh_id = 1, pos = { x = 767.595, y = 73.053, z = 395.881 } },
{ id = 240052007, refresh_id = 99999, pos = { x = 766.936, y = 74.566, z = 369.668 } },
{ id = 240052008, refresh_id = 1001, pos = { x = 747.050, y = 78.692, z = 363.714 } },
{ id = 240052009, refresh_id = 1002, pos = { x = 856.561, y = 76.813, z = 436.001 } },
{ id = 240052010, pos = { x = 749.310, y = 57.948, z = 388.319 } }
}

View File

@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 240052001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70210101, pos = { x = 701.740, y = 74.809, z = 354.965 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true },
{ config_id = 1002, gadget_id = 70290578, pos = { x = 711.128, y = 57.869, z = 343.653 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70210101, pos = { x = 691.930, y = 75.745, z = 341.439 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true },
{ config_id = 1004, gadget_id = 70290578, pos = { x = 733.986, y = 71.564, z = 343.955 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 70290542, pos = { x = 735.887, y = 83.290, z = 347.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1003, 1004, 1005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,127 @@
-- 基础信息
local base_info = {
group_id = 240052002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70290508, pos = { x = 758.170, y = 56.843, z = 377.486 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70360001, pos = { x = 758.170, y = 56.843, z = 377.486 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } },
{ config_id = 2004, gadget_id = 70290528, pos = { x = 748.320, y = 64.850, z = 356.630 }, rot = { x = 0.000, y = 20.555, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "SELECT_OPTION_2003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2003", action = "action_EVENT_SELECT_OPTION_2003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2004 },
regions = { },
triggers = { "SELECT_OPTION_2003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_2003(context, evt)
-- 判断是gadgetid 2002 option_id 220
if 2002 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2003(context, evt)
-- 删除指定group 240052002 指定config2002物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240052002, 2002, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240052010, 3)
-- 触发镜头注目,注目位置为坐标{x=748.0575, y=64.85, z=356.871}持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=748.0575, y=64.85, z=356.871}
local pos_follow = {x=758.21, y=58.966, z=388.89}
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 = true, is_abs_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
disable_protect = 1, blend_type = 1, blend_duration = 1,
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,144 @@
-- 基础信息
local base_info = {
group_id = 240052003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3005, monster_id = 25210201, pos = { x = 735.201, y = 71.353, z = 333.224 }, rot = { x = 0.000, y = 189.503, z = 0.000 }, level = 1, disableWander = true, pose_id = 9006 },
{ config_id = 3006, monster_id = 25210401, pos = { x = 732.120, y = 71.497, z = 332.693 }, rot = { x = 0.000, y = 275.604, z = 0.000 }, level = 1, disableWander = true, pose_id = 9001 },
{ config_id = 3007, monster_id = 25210401, pos = { x = 738.230, y = 71.787, z = 337.008 }, rot = { x = 0.000, y = 268.227, z = 0.000 }, level = 1, disableWander = true, pose_id = 9503 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70290508, pos = { x = 735.044, y = 71.477, z = 329.499 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70360001, pos = { x = 735.044, y = 71.525, z = 329.499 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } },
{ config_id = 3003, gadget_id = 70290484, pos = { x = 735.044, y = 71.477, z = 329.499 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003004, name = "SELECT_OPTION_3004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3004", action = "action_EVENT_SELECT_OPTION_3004" },
{ config_id = 1003008, name = "ANY_MONSTER_DIE_3008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3008", action = "action_EVENT_ANY_MONSTER_DIE_3008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3005, 3006, 3007 },
gadgets = { 3001, 3003 },
regions = { },
triggers = { "SELECT_OPTION_3004", "ANY_MONSTER_DIE_3008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_3004(context, evt)
-- 判断是gadgetid 3002 option_id 220
if 3002 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3004(context, evt)
-- 删除指定group 240052003 指定config3002物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240052003, 3002, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 3001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3008(context, evt)
-- 将configid为 3003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240052003, 2)
return 0
end

View File

@@ -0,0 +1,122 @@
-- 基础信息
local base_info = {
group_id = 240052004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70290508, pos = { x = 697.433, y = 58.019, z = 341.815 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70360001, pos = { x = 697.433, y = 58.019, z = 341.815 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } },
{ config_id = 4003, gadget_id = 70290484, pos = { x = 697.433, y = 58.131, z = 341.815 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004004, name = "SELECT_OPTION_4004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4004", action = "action_EVENT_SELECT_OPTION_4004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4003 },
regions = { },
triggers = { "SELECT_OPTION_4004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_4004(context, evt)
-- 判断是gadgetid 4002 option_id 220
if 4002 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4004(context, evt)
-- 删除指定group 240052004 指定config4002物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240052004, 4002, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 4001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,148 @@
-- 基础信息
local base_info = {
group_id = 240052005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70310198, pos = { x = 757.994, y = 91.504, z = 355.541 }, rot = { x = 0.000, y = 260.261, z = 0.000 }, level = 30 },
{ config_id = 5002, gadget_id = 70310200, pos = { x = 755.438, y = 93.489, z = 365.877 }, rot = { x = 0.000, y = 6.709, z = 0.000 }, level = 30 },
{ config_id = 5003, gadget_id = 70290531, pos = { x = 759.411, y = 99.549, z = 378.418 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, route_id = 1 },
{ config_id = 5004, gadget_id = 70290485, pos = { x = 757.503, y = 91.259, z = 373.687 }, rot = { x = 0.000, y = 76.291, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 玩法完成
{ config_id = 1005005, name = "GADGET_STATE_CHANGE_5005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5005", action = "action_EVENT_GADGET_STATE_CHANGE_5005", trigger_count = 0 },
-- 玩法开始
{ config_id = 1005006, name = "GADGET_STATE_CHANGE_5006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5006", action = "action_EVENT_GADGET_STATE_CHANGE_5006", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001, 5002, 5004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_5006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_5005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5005(context, evt)
if 5003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5005(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 5003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=757.5031, y=92.25862, z=373.6869}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=757.5031, y=92.25862, z=373.6869}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, 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
-- 将configid为 5004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5006(context, evt)
if 5002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5006(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240052005, 2)
return 0
end

View File

@@ -0,0 +1,136 @@
-- 基础信息
local base_info = {
group_id = 240052006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70290506, pos = { x = 771.004, y = 73.991, z = 399.344 }, rot = { x = 0.000, y = 227.939, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70360001, pos = { x = 770.171, y = 75.184, z = 398.631 }, rot = { x = 0.000, y = 234.109, z = 0.000 }, level = 1, worktop_config = { init_options = { 769 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006003, name = "SELECT_OPTION_6003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6003", action = "action_EVENT_SELECT_OPTION_6003" },
{ config_id = 1006004, name = "GADGET_STATE_CHANGE_6004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6004", action = "action_EVENT_GADGET_STATE_CHANGE_6004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001 },
regions = { },
triggers = { "SELECT_OPTION_6003", "GADGET_STATE_CHANGE_6004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_6003(context, evt)
-- 判断是gadgetid 6002 option_id 769
if 6002 ~= evt.param1 then
return false
end
if 769 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6003(context, evt)
-- 删除指定group 240052006 指定config6002物件身上指定option769
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240052006, 6002, 769) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 6001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240052009, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6004(context, evt)
if 6001 ~= evt.param2 or GadgetState.Action03 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240052006, 2)
return 0
end

View File

@@ -0,0 +1,116 @@
-- 基础信息
local base_info = {
group_id = 240052007
}
-- Trigger变量
local defs = {
gadget_LookHookCid = 7002
}
-- DEFS_MISCS
local RequireSuite = {1}
local HookLookPlay = {
HookPoint = defs.gadget_LookHookCid,
Duration = 3,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[7001] = { config_id = 7001, gadget_id = 70330229, pos = { x = 745.295, y = 57.678, z = 369.885 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, mark_flag = 3 },
[7002] = { config_id = 7002, gadget_id = 70330251, pos = { x = 760.720, y = 79.210, z = 380.861 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, mark_flag = 3 },
[7003] = { config_id = 7003, gadget_id = 70220103, pos = { x = 760.720, y = 79.210, z = 380.861 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007005, name = "GADGET_STATE_CHANGE_7005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7005", action = "action_EVENT_GADGET_STATE_CHANGE_7005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_7005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7005(context, evt)
if 7001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240052007, 2)
return 0
end
require "V3_0/HookLook"

View File

@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 240052008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8002, monster_id = 25210101, pos = { x = 770.175, y = 73.890, z = 396.903 }, rot = { x = 0.000, y = 19.950, z = 0.000 }, level = 1, disableWander = true, pose_id = 9003 },
{ config_id = 8003, monster_id = 25210501, pos = { x = 768.714, y = 73.878, z = 397.964 }, rot = { x = 0.000, y = 114.451, z = 0.000 }, level = 1, disableWander = true, pose_id = 9002 },
{ config_id = 8004, monster_id = 25210201, pos = { x = 770.570, y = 73.701, z = 392.684 }, rot = { x = 0.000, y = 64.353, z = 0.000 }, level = 1, disableWander = true, pose_id = 9006 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70211002, pos = { x = 747.925, y = 77.102, z = 366.612 }, rot = { x = 0.000, y = 34.613, z = 0.000 }, level = 1, drop_tag = "战斗低级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008005, name = "ANY_MONSTER_DIE_8005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8005", action = "action_EVENT_ANY_MONSTER_DIE_8005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 8002, 8003, 8004 },
gadgets = { 8001 },
regions = { },
triggers = { "ANY_MONSTER_DIE_8005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8005(context, evt)
-- 将configid为 8001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,113 @@
-- 基础信息
local base_info = {
group_id = 240052009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9001, monster_id = 25310101, pos = { x = 855.737, y = 76.861, z = 436.864 }, rot = { x = 0.000, y = 342.259, z = 0.000 }, level = 1, disableWander = true, affix = { 6111 }, isElite = true, pose_id = 9003 },
{ config_id = 9002, monster_id = 25310201, pos = { x = 854.600, y = 76.866, z = 439.495 }, rot = { x = 0.000, y = 158.891, z = 0.000 }, level = 1, disableWander = true, affix = { 6111 }, isElite = true, pose_id = 9003 },
{ config_id = 9003, monster_id = 25310301, pos = { x = 852.513, y = 76.599, z = 437.190 }, rot = { x = 0.000, y = 72.660, z = 0.000 }, level = 1, disableWander = true, affix = { 6111 }, isElite = true, pose_id = 9001 },
{ config_id = 9006, monster_id = 23050101, pos = { x = 859.086, y = 76.406, z = 439.210 }, rot = { x = 0.000, y = 252.854, z = 0.000 }, level = 1, disableWander = true, affix = { 6110 }, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9004, gadget_id = 70211021, pos = { x = 855.406, y = 76.868, z = 438.204 }, rot = { x = 0.000, y = 248.140, z = 0.000 }, level = 1, drop_tag = "战斗高级须弥", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009005, name = "ANY_MONSTER_DIE_9005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9005", action = "action_EVENT_ANY_MONSTER_DIE_9005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_9005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 9001, 9002, 9003, 9006 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 9004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9005(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240052009, 3)
return 0
end

View File

@@ -0,0 +1,213 @@
-- 基础信息
local base_info = {
group_id = 240052010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70310198, pos = { x = 748.514, y = 56.864, z = 386.766 }, rot = { x = 0.000, y = 140.016, z = 0.000 }, level = 30 },
{ config_id = 10002, gadget_id = 70310200, pos = { x = 757.900, y = 60.395, z = 377.759 }, rot = { x = 0.000, y = 312.385, z = 0.000 }, level = 30 },
-- 1号移动
{ config_id = 10003, gadget_id = 70290531, pos = { x = 756.877, y = 60.395, z = 375.036 }, rot = { x = 0.000, y = 17.414, z = 0.000 }, level = 30, route_id = 2 },
{ config_id = 10004, gadget_id = 70310198, pos = { x = 739.550, y = 58.985, z = 343.151 }, rot = { x = 0.000, y = 54.287, z = 0.000 }, level = 30 },
-- 2号移动
{ config_id = 10005, gadget_id = 70290531, pos = { x = 747.758, y = 62.978, z = 354.859 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, route_id = 3 },
-- 3号移动
{ config_id = 10006, gadget_id = 70290531, pos = { x = 735.647, y = 63.872, z = 344.179 }, rot = { x = 0.000, y = 80.239, z = 0.000 }, level = 30, route_id = 4 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1010007, name = "GADGET_STATE_CHANGE_10007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10007", action = "action_EVENT_GADGET_STATE_CHANGE_10007", trigger_count = 0 },
-- 玩法开始
{ config_id = 1010008, name = "GADGET_STATE_CHANGE_10008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10008", action = "action_EVENT_GADGET_STATE_CHANGE_10008", trigger_count = 0 },
{ config_id = 1010009, name = "GADGET_STATE_CHANGE_10009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10009", action = "action_EVENT_GADGET_STATE_CHANGE_10009", trigger_count = 0 },
{ config_id = 1010010, name = "GADGET_STATE_CHANGE_10010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10010", action = "action_EVENT_GADGET_STATE_CHANGE_10010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 10003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_10007" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 10002, 10004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_10008" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 10005 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_10009" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 10006 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_10010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10007(context, evt)
if 10003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10007(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240052010, 4)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 10003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10008(context, evt)
if 10002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10008(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240052010, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10009(context, evt)
if 10005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10009(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 240052010, 5)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 10005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10010(context, evt)
if 10006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10010(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 10006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 改变指定group组240052004中 configid为4003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240052004, 4003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240052004, 2)
return 0
end

View File

@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 866.4069,
"y": 76.34399,
"z": 442.1481
},
"rot": {
"x": 0.0,
"y": 249.1585,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 873.859741,
"y": 76.24081,
"z": 436.8101
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}