添加配置表

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 = 400.0, z = 300.0 },
size = { x = 500.0, z = 500.0 },
born_pos = { x = 765.160, y = 73.257, z = 394.257 },
born_rot = { x = 0.000, y = 209.158, z = 0.000 },
die_y = -20,
city_id = 4,
vision_anchor = { x = 0.0, z = 0.0 }
}
-- 所有的区块
blocks = { 20147 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 400.0, z = 300.0 }, max = { x = 900.0, z = 800.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,16 @@
-- 所有的group
groups = {
{ id = 220147001, refresh_id = 1001, pos = { x = 759.121, y = 57.905, z = 377.611 } },
{ id = 220147002, refresh_id = 1, pos = { x = 849.547, y = 76.358, z = 435.945 } },
{ id = 220147003, refresh_id = 1001, pos = { x = 757.364, y = 56.992, z = 376.078 } },
{ id = 220147004, refresh_id = 1, pos = { x = 712.479, y = 59.384, z = 339.213 } },
{ id = 220147005, refresh_id = 99999, pos = { x = 723.567, y = 74.685, z = 349.209 } },
{ id = 220147006, refresh_id = 1, pos = { x = 758.270, y = 72.273, z = 382.550 } },
{ id = 220147007, refresh_id = 1, pos = { x = 707.683, y = 72.253, z = 353.660 } },
{ id = 220147008, refresh_id = 1001, pos = { x = 743.277, y = 71.636, z = 343.023 } },
{ id = 220147009, pos = { x = 777.160, y = 92.836, z = 353.495 } },
{ id = 220147010, refresh_id = 1, pos = { x = 759.283, y = 90.535, z = 360.880 }, vision_type = 0 },
{ id = 220147011, refresh_id = 1001, pos = { x = 851.715, y = 76.653, z = 437.418 } },
{ id = 220147012, refresh_id = 1001, pos = { x = 852.989, y = 76.358, z = 432.784 } },
{ id = 220147015, refresh_id = 1, pos = { x = 761.785, y = 57.427, z = 386.538 } }
}

View File

@@ -0,0 +1,3 @@
dummy_points = {
["Q7307412"] = { pos = { x = 765.160, y = 73.257, z = 394.257 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}

View File

@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 220147001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1002, monster_id = 26090801, pos = { x = 707.381, y = 57.868, z = 335.705 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 1003, monster_id = 26090801, pos = { x = 712.573, y = 58.179, z = 348.757 }, rot = { x = 0.000, y = 181.186, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 1004, monster_id = 26090901, pos = { x = 699.653, y = 57.974, z = 343.689 }, rot = { x = 0.000, y = 91.647, z = 0.000 }, level = 1, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1002, 1003, 1004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,205 @@
-- 基础信息
local base_info = {
group_id = 220147002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70290506, pos = { x = 770.951, y = 73.943, z = 399.299 }, rot = { x = 0.000, y = 227.939, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70360001, pos = { x = 770.488, y = 74.680, z = 398.942 }, rot = { x = 0.000, y = 218.278, z = 0.000 }, level = 1, worktop_config = { init_options = { 769 } } },
{ config_id = 2003, gadget_id = 70900201, pos = { x = 771.498, y = 77.715, z = 398.647 }, rot = { x = 0.000, y = 218.278, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002004, name = "SELECT_OPTION_2004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2004", action = "action_EVENT_SELECT_OPTION_2004" },
{ config_id = 1002005, name = "GADGET_STATE_CHANGE_2005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2005", action = "action_EVENT_GADGET_STATE_CHANGE_2005" },
{ config_id = 1002006, name = "VARIABLE_CHANGE_2006", event = EventType.EVENT_VARIABLE_CHANGE, source = "KeyNum", condition = "condition_EVENT_VARIABLE_CHANGE_2006", action = "action_EVENT_VARIABLE_CHANGE_2006" },
{ config_id = 1002007, name = "VARIABLE_CHANGE_2007", event = EventType.EVENT_VARIABLE_CHANGE, source = "KeyNum", condition = "condition_EVENT_VARIABLE_CHANGE_2007", action = "action_EVENT_VARIABLE_CHANGE_2007" }
}
-- 变量
variables = {
{ config_id = 1, name = "KeyNum", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001 },
regions = { },
triggers = { "SELECT_OPTION_2004", "GADGET_STATE_CHANGE_2005", "VARIABLE_CHANGE_2006", "VARIABLE_CHANGE_2007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_2004(context, evt)
-- 判断是gadgetid 2002 option_id 769
if 2002 ~= evt.param1 then
return false
end
if 769 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2004(context, evt)
-- 删除指定group 220147002 指定config2002物件身上指定option769
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220147002, 2002, 769) 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
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220147012, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2005(context, evt)
if 2001 ~= evt.param2 or GadgetState.Action03 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2005(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220147002, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"KeyNum"为3
if ScriptLib.GetGroupVariableValue(context, "KeyNum") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2006(context, evt)
-- 调用提示id为 33010166 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010166) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220147002, 2)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"KeyNum"为2
if ScriptLib.GetGroupVariableValue(context, "KeyNum") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2007(context, evt)
-- 调用提示id为 33010162 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010162) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,202 @@
-- 基础信息
local base_info = {
group_id = 220147003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3004, monster_id = 26090901, pos = { x = 760.544, y = 56.953, z = 370.671 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 3005, monster_id = 26090901, pos = { x = 750.666, y = 56.953, z = 374.785 }, rot = { x = 0.000, y = 55.625, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 3006, monster_id = 26090801, pos = { x = 760.515, y = 56.846, z = 384.575 }, rot = { x = 0.000, y = 201.247, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 3007, monster_id = 26090401, pos = { x = 765.556, y = 56.953, z = 378.013 }, rot = { x = 0.000, y = 273.447, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 3008, monster_id = 26090401, pos = { x = 753.138, y = 56.809, z = 383.461 }, rot = { x = 0.000, y = 162.839, z = 0.000 }, level = 1, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70290508, pos = { x = 757.793, y = 56.945, z = 377.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_NORMAL },
{ config_id = 3002, gadget_id = 70290527, pos = { x = 748.320, y = 64.850, z = 356.630 }, rot = { x = 0.000, y = 20.555, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70290484, pos = { x = 757.793, y = 56.945, z = 377.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3009, gadget_id = 70900201, pos = { x = 757.793, y = 59.529, z = 377.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3010, gadget_id = 70360001, pos = { x = 757.793, y = 56.945, z = 377.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003011, name = "ANY_MONSTER_DIE_3011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3011", action = "action_EVENT_ANY_MONSTER_DIE_3011" },
{ config_id = 1003012, name = "SELECT_OPTION_3012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3012", action = "action_EVENT_SELECT_OPTION_3012" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3009 },
regions = { },
triggers = { "ANY_MONSTER_DIE_3011", "SELECT_OPTION_3012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 3004, 3005, 3006, 3007, 3008 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3011(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3011(context, evt)
-- 触发镜头注目,注目位置为坐标{x=757.7932, y=56.94489, z=377.7069}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=757.7932, y=56.94489, z=377.7069}
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为 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, 220147003, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3012(context, evt)
-- 判断是gadgetid 3010 option_id 220
if 3010 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3012(context, evt)
-- 删除指定group 220147003 指定config3010物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220147003, 3010, 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
-- 针对当前group内变量名为 "KeyNum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "KeyNum", 1, 220147002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=748.97, y=64.63577, z=360.614}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=748.97, y=64.63577, z=360.614}
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
-- 将configid为 3002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 调用提示id为 33010150 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010150) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,149 @@
-- 基础信息
local base_info = {
group_id = 220147004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70330238, pos = { x = 693.302, y = 60.890, z = 347.411 }, rot = { x = 0.000, y = 107.807, z = 0.000 }, level = 1, mark_flag = 5 },
{ config_id = 4002, gadget_id = 70290554, pos = { x = 710.250, y = 63.120, z = 343.400 }, rot = { x = 5.091, y = 81.849, z = 10.176 }, level = 33, mark_flag = 5 },
{ config_id = 4003, gadget_id = 70290578, pos = { x = 708.723, y = 57.845, z = 342.916 }, rot = { x = 0.000, y = 27.981, z = 0.000 }, level = 1 },
{ config_id = 4004, gadget_id = 70230111, pos = { x = 692.439, y = 62.548, z = 348.044 }, rot = { x = 310.018, y = 262.117, z = 132.601 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4006, gadget_id = 70230111, pos = { x = 707.065, y = 62.235, z = 343.763 }, rot = { x = 292.590, y = 64.322, z = 133.964 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4007, gadget_id = 70230111, pos = { x = 710.940, y = 61.907, z = 342.733 }, rot = { x = 286.663, y = 193.339, z = 188.551 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004005, name = "GADGET_STATE_CHANGE_4005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4005", action = "action_EVENT_GADGET_STATE_CHANGE_4005" },
{ config_id = 1004008, name = "GADGET_STATE_CHANGE_4008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4008", action = "action_EVENT_GADGET_STATE_CHANGE_4008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4003, 4004, 4006, 4007 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_4005", "GADGET_STATE_CHANGE_4008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4005(context, evt)
if 4001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4005(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 4004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=756.23, y=84.19, z=377.53}持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=702.84, y=62.12, z=343.67}
local pos_follow = {x=702.677, y=61.278, z=330.835}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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 = 0,
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_GADGET_STATE_CHANGE_4008(context, evt)
if 4002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4008(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220147008, 2)
return 0
end

View File

@@ -0,0 +1,116 @@
-- 基础信息
local base_info = {
group_id = 220147005
}
-- Trigger变量
local defs = {
gadget_LookHookCid = 5002
}
-- DEFS_MISCS
local RequireSuite = {1}
local HookLookPlay = {
HookPoint = defs.gadget_LookHookCid,
Duration = 3,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[5001] = { config_id = 5001, gadget_id = 70330229, pos = { x = 721.990, y = 75.882, z = 350.790 }, rot = { x = 0.000, y = 324.627, z = 0.000 }, level = 1, mark_flag = 3 },
[5002] = { config_id = 5002, gadget_id = 70330251, pos = { x = 738.891, y = 91.412, z = 348.088 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, mark_flag = 3 },
[5003] = { config_id = 5003, gadget_id = 70220103, pos = { x = 740.755, y = 91.918, z = 348.359 }, rot = { x = 0.000, y = 0.000, 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" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001, 5002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_5005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5005(context, evt)
if 5001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220147005, 2)
return 0
end
require "V3_0/HookLook"

View File

@@ -0,0 +1,145 @@
-- 基础信息
local base_info = {
group_id = 220147006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70330238, pos = { x = 772.225, y = 74.356, z = 382.994 }, rot = { x = 0.000, y = 267.415, z = 0.000 }, level = 1, mark_flag = 5 },
{ config_id = 6002, gadget_id = 70290553, pos = { x = 755.030, y = 73.830, z = 377.080 }, rot = { x = 0.768, y = 312.037, z = 345.753 }, level = 33, mark_flag = 5 },
{ config_id = 6005, gadget_id = 70230112, pos = { x = 757.457, y = 80.403, z = 377.690 }, rot = { x = 297.689, y = 100.167, z = 228.898 }, level = 1, state = GadgetState.GearStart },
{ config_id = 6006, gadget_id = 70230112, pos = { x = 773.672, y = 77.186, z = 381.275 }, rot = { x = 277.380, y = 280.094, z = 242.629 }, level = 1, state = GadgetState.GearStart },
{ config_id = 6007, 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 = {
{ config_id = 1006003, name = "GADGET_STATE_CHANGE_6003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6003", action = "action_EVENT_GADGET_STATE_CHANGE_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, 6002, 6005, 6006 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_6003", "GADGET_STATE_CHANGE_6004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6003(context, evt)
if 6001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6003(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 6005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 6006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=756.23, y=84.19, z=377.53}持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=765.17, y=77.41, z=380.81}
local pos_follow = {x=757.304, y=77.013, z=395.14}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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 = 0,
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_GADGET_STATE_CHANGE_6004(context, evt)
if 6002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6004(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220147003, 3)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220147006, 2)
return 0
end

View File

@@ -0,0 +1,120 @@
-- 基础信息
local base_info = {
group_id = 220147007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70290508, pos = { x = 701.668, y = 74.687, z = 354.771 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_NORMAL },
{ config_id = 7002, gadget_id = 70900201, pos = { x = 701.668, y = 76.925, z = 354.771 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7003, gadget_id = 70360001, pos = { x = 701.668, y = 74.687, z = 354.771 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007004, name = "SELECT_OPTION_7004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7004", action = "action_EVENT_SELECT_OPTION_7004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002, 7003 },
regions = { },
triggers = { "SELECT_OPTION_7004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_7004(context, evt)
-- 判断是gadgetid 7003 option_id 220
if 7003 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7004(context, evt)
-- 删除指定group 220147007 指定config7003物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220147007, 7003, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 7001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "KeyNum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "KeyNum", 1, 220147002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 7002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,128 @@
-- 基础信息
local base_info = {
group_id = 220147008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8002, monster_id = 26090201, pos = { x = 736.800, y = 71.661, z = 334.863 }, rot = { x = 0.000, y = 9.436, z = 0.000 }, level = 1, pose_id = 104 },
{ config_id = 8003, monster_id = 26090201, pos = { x = 732.834, y = 71.401, z = 337.824 }, rot = { x = 0.000, y = 68.370, z = 0.000 }, level = 1, pose_id = 104 },
{ config_id = 8004, monster_id = 26090401, pos = { x = 732.838, y = 71.390, z = 333.341 }, rot = { x = 0.000, y = 57.662, z = 0.000 }, level = 1, pose_id = 104 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70211022, pos = { x = 736.865, y = 71.666, z = 340.174 }, rot = { x = 0.000, y = 221.182, z = 0.000 }, level = 1, drop_tag = "战斗高级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 8006, gadget_id = 70210101, pos = { x = 736.524, y = 58.990, z = 346.503 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", 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" },
{ config_id = 1008007, name = "GADGET_STATE_CHANGE_8007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8007", action = "action_EVENT_GADGET_STATE_CHANGE_8007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8006 },
regions = { },
triggers = { "ANY_MONSTER_DIE_8005", "GADGET_STATE_CHANGE_8007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 8002, 8003, 8004 },
gadgets = { },
regions = { },
triggers = { },
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
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8007(context, evt)
if 8001 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8007(context, evt)
-- 调用提示id为 33010114 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010114) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,286 @@
-- 基础信息
local base_info = {
group_id = 220147009
}
-- Trigger变量
local defs = {
active_step = 201,
inactive_step = 0,
gadget_array = {9002,9003,9004},
reset_gear_list = {}
}
-- DEFS_MISCS
local v = 0
local v_error = 0
local max_bit = #defs.gadget_array
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70310200, pos = { x = 747.855, y = 96.756, z = 367.526 }, rot = { x = 0.000, y = 317.526, z = 0.000 }, level = 1, persistent = true },
{ config_id = 9002, gadget_id = 70310200, pos = { x = 749.562, y = 97.451, z = 379.991 }, rot = { x = 0.000, y = 174.477, z = 0.000 }, level = 1, persistent = true },
{ config_id = 9003, gadget_id = 70310200, pos = { x = 756.327, y = 105.649, z = 384.489 }, rot = { x = 0.000, y = 215.083, z = 0.000 }, level = 1, persistent = true },
{ config_id = 9004, gadget_id = 70310200, pos = { x = 768.075, y = 110.713, z = 381.614 }, rot = { x = 0.000, y = 228.781, z = 0.000 }, level = 1, persistent = true },
{ config_id = 9006, gadget_id = 70310198, pos = { x = 760.532, y = 91.876, z = 355.596 }, rot = { x = 0.000, y = 253.260, z = 0.000 }, level = 30, persistent = true },
{ config_id = 9007, gadget_id = 70330255, pos = { x = 748.801, y = 93.208, z = 368.772 }, rot = { x = 329.807, y = 4.394, z = 6.383 }, level = 1, persistent = true },
{ config_id = 9008, gadget_id = 70330255, pos = { x = 750.106, y = 99.423, z = 379.924 }, rot = { x = 313.717, y = 57.389, z = 355.296 }, level = 1, persistent = true },
{ config_id = 9009, gadget_id = 70330255, pos = { x = 757.570, y = 107.359, z = 383.875 }, rot = { x = 337.010, y = 99.162, z = 354.881 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009010, name = "GADGET_STATE_CHANGE_9010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_9010", action = "action_EVENT_GADGET_STATE_CHANGE_9010", trigger_count = 0 },
{ config_id = 1009011, name = "GADGET_STATE_CHANGE_9011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_9011", action = "action_EVENT_GADGET_STATE_CHANGE_9011", trigger_count = 0 },
{ config_id = 1009012, name = "VARIABLE_CHANGE_9012", event = EventType.EVENT_VARIABLE_CHANGE, source = "gear_reset", condition = "", action = "action_EVENT_VARIABLE_CHANGE_9012", trigger_count = 0 },
{ config_id = 1009013, name = "VARIABLE_CHANGE_9013", event = EventType.EVENT_VARIABLE_CHANGE, source = "trigger_output", condition = "condition_EVENT_VARIABLE_CHANGE_9013", action = "action_EVENT_VARIABLE_CHANGE_9013", trigger_count = 0 },
{ config_id = 1009014, name = "VARIABLE_CHANGE_9014", event = EventType.EVENT_VARIABLE_CHANGE, source = "trigger_output", condition = "condition_EVENT_VARIABLE_CHANGE_9014", action = "action_EVENT_VARIABLE_CHANGE_9014", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "sort", value = 0, no_refresh = false },
{ config_id = 2, name = "gear_reset", value = 0, no_refresh = false },
{ config_id = 3, name = "v_error", value = 0, no_refresh = false },
{ config_id = 4, name = "trigger_output", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9006 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_9010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 9002, 9003, 9004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_9011", "VARIABLE_CHANGE_9012", "VARIABLE_CHANGE_9013", "VARIABLE_CHANGE_9014" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 9007, 9008, 9009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_9010(context, evt)
if 9001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_9010(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 9001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220147009, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220147009, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_9011(context, evt)
for i=1,#defs.gadget_array do
if defs.gadget_array[i] == evt.param2 then
return true
end
end
return false
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_9011(context, evt)
if max_bit > 9 or max_bit <= 1 then
return -1
end
if evt.param1 == defs.active_step then
--操作顺序入栈
for i = 1,max_bit do
if defs.gadget_array[i] == evt.param2 then
v = ScriptLib.GetGroupVariableValue(context, "sort")
v = 10*v + i
ScriptLib.SetGroupVariableValue(context, "sort", v)
break
end
if i == max_bit and defs.gadget_array[i] ~= evt.param2 then
ScriptLib.SetGroupVariableValue(context, "v_error", 1)
v = 10*v
end
end
end
--v的位数足够时进行出栈检测
if v > 10^(max_bit-1) then
v_error = ScriptLib.GetGroupVariableValue(context, "v_error")
--v_error有问题时直接清空栈并重置
if 0 == v_error then
for i=max_bit,1,-1 do
if v%10 ~= i then
v_error = 1
break
end
v = math.floor(v/10)
end
end
v = 0
if v_error ~= 1 then
v_error = -1
end
ScriptLib.SetGroupVariableValue(context, "sort", v)
ScriptLib.SetGroupVariableValue(context, "gear_reset", v_error)
ScriptLib.SetGroupVariableValue(context, "v_error", 0)
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9012(context, evt)
if evt.param1 == evt.param2 then return -1 end
if evt.param1 == 1 then
if #defs.reset_gear_list == 0 then
defs.reset_gear_list = defs.gadget_array
end
for i=1,#defs.reset_gear_list do
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, defs.reset_gear_list[i], defs.inactive_step)
end
ScriptLib.SetGroupVariableValue(context, "trigger_output", -1)
elseif -1 == evt.param1 then
--外接标记
ScriptLib.SetGroupVariableValue(context, "trigger_output", 1)
end
--还原标记
ScriptLib.SetGroupVariableValue(context, "gear_reset", 0)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9013(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == -1 then
return true
end
return false
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9013(context, evt)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 220147009, 2)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220147009, 3)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 220147009, 1)
-- 将本组内变量名为 "trigger_output" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "trigger_output", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9014(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 > 0 then
return true
end
return false
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9014(context, evt)
-- 触发镜头注目,注目位置为坐标{x=748.3039, y=90.70079, z=366.4749}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=748.3039, y=90.70079, z=366.4749}
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
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220147010, 2)
-- 改变指定group组220147010中 configid为10002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220147010, 10002, 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,130 @@
-- 基础信息
local base_info = {
group_id = 220147010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70290508, pos = { x = 748.304, y = 90.701, z = 366.475 }, rot = { x = 0.000, y = 28.887, z = 0.000 }, level = 30, vision_level = VisionLevelType.VISION_LEVEL_NORMAL },
{ config_id = 10002, gadget_id = 70290484, pos = { x = 748.304, y = 90.584, z = 366.475 }, rot = { x = 0.000, y = 28.887, z = 0.000 }, level = 30, isOneoff = true, persistent = true },
{ config_id = 10003, gadget_id = 70900201, pos = { x = 748.304, y = 93.260, z = 366.475 }, rot = { x = 0.000, y = 246.934, z = 0.000 }, level = 30 },
{ config_id = 10004, gadget_id = 70360001, pos = { x = 748.304, y = 90.701, z = 366.475 }, rot = { x = 0.000, y = 28.887, z = 0.000 }, level = 30, isOneoff = true, persistent = true, worktop_config = { init_options = { 220 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1010005, name = "SELECT_OPTION_10005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_10005", action = "action_EVENT_SELECT_OPTION_10005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001, 10002, 10003 },
regions = { },
triggers = { "SELECT_OPTION_10005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 10004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_10005(context, evt)
-- 判断是gadgetid 10004 option_id 220
if 10004 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_10005(context, evt)
-- 删除指定group 220147010 指定config10004物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220147010, 10004, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 10001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "KeyNum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "KeyNum", 1, 220147002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 10003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,123 @@
-- 基础信息
local base_info = {
group_id = 220147011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11001, monster_id = 26120201, pos = { x = 857.728, y = 76.997, z = 444.524 }, rot = { x = 0.000, y = 192.066, z = 0.000 }, level = 1, disableWander = true, pose_id = 201, title_id = 10125, special_name_id = 10177 },
{ config_id = 11002, monster_id = 26120201, pos = { x = 862.443, y = 76.735, z = 432.015 }, rot = { x = 0.000, y = 309.919, z = 0.000 }, level = 1, disableWander = true, pose_id = 201, title_id = 10125, special_name_id = 10177 },
{ config_id = 11027, monster_id = 26090101, pos = { x = 855.093, y = 76.591, z = 447.479 }, rot = { x = 0.000, y = 193.233, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 11028, monster_id = 26090101, pos = { x = 861.235, y = 76.669, z = 445.648 }, rot = { x = 0.000, y = 210.507, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 11029, monster_id = 26090501, pos = { x = 858.715, y = 76.951, z = 430.227 }, rot = { x = 0.000, y = 328.701, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 11030, monster_id = 26090501, pos = { x = 862.839, y = 76.775, z = 435.890 }, rot = { x = 0.000, y = 288.879, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011026, name = "ANY_MONSTER_DIE_11026", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11026", action = "action_EVENT_ANY_MONSTER_DIE_11026" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_11026" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 11001, 11002, 11027, 11028, 11029, 11030 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11026(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11026(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7307412") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 调用提示id为 33010173 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010173) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,176 @@
-- 基础信息
local base_info = {
group_id = 220147012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12001, monster_id = 26090401, pos = { x = 851.389, y = 76.679, z = 437.065 }, rot = { x = 0.000, y = 72.952, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 12002, monster_id = 26090201, pos = { x = 855.970, y = 76.653, z = 434.151 }, rot = { x = 0.000, y = 356.732, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 12003, monster_id = 26090201, pos = { x = 854.153, y = 76.867, z = 442.553 }, rot = { x = 0.000, y = 160.362, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 12004, monster_id = 26090801, pos = { x = 859.740, y = 76.399, z = 438.950 }, rot = { x = 0.000, y = 261.794, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 12005, monster_id = 26090501, pos = { x = 854.992, y = 76.794, z = 430.999 }, rot = { x = 0.000, y = 284.774, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 12006, monster_id = 26090501, pos = { x = 849.099, y = 76.280, z = 444.932 }, rot = { x = 0.000, y = 127.442, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012007, name = "MONSTER_BATTLE_12007", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_12007", action = "action_EVENT_MONSTER_BATTLE_12007" },
{ config_id = 1012008, name = "ANY_MONSTER_DIE_12008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12008", action = "action_EVENT_ANY_MONSTER_DIE_12008" },
{ config_id = 1012009, name = "ANY_MONSTER_DIE_12009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12009", action = "action_EVENT_ANY_MONSTER_DIE_12009" }
}
-- 变量
variables = {
{ config_id = 1, name = "MonsterWave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "MONSTER_BATTLE_12007", "ANY_MONSTER_DIE_12009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 12001, 12002, 12003, 12004 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_12008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 12005, 12006 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_12007(context, evt)
-- 判断变量"MonsterWave"为0
if ScriptLib.GetGroupVariableValue(context, "MonsterWave") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_12007(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220147012, 3)
-- 将本组内变量名为 "MonsterWave" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"MonsterWave"为1
if ScriptLib.GetGroupVariableValue(context, "MonsterWave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12008(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220147011, 2)
-- 针对当前group内变量名为 "MonsterWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12009(context, evt)
-- 判断变量"MonsterWave"为0
if ScriptLib.GetGroupVariableValue(context, "MonsterWave") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12009(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220147012, 3)
-- 将本组内变量名为 "MonsterWave" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,182 @@
-- 基础信息
local base_info = {
group_id = 220147015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15006, gadget_id = 70290574, pos = { x = 715.330, y = 111.690, z = 465.880 }, rot = { x = 0.000, y = 293.447, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 15001, shape = RegionShape.POLYGON, pos = { x = 756.875, y = 76.500, z = 378.577 }, height = 7.000, point_array = { { x = 772.202, y = 354.940 }, { x = 780.113, y = 382.405 }, { x = 737.918, y = 402.213 }, { x = 733.637, y = 371.508 } } },
{ config_id = 15002, shape = RegionShape.CYLINDER, radius = 20, pos = { x = 757.116, y = 57.013, z = 377.053 }, height = 12.000 },
{ config_id = 15003, shape = RegionShape.SPHERE, radius = 10, pos = { x = 718.460, y = 57.905, z = 342.812 } },
{ config_id = 15005, shape = RegionShape.SPHERE, radius = 20, pos = { x = 849.396, y = 76.365, z = 432.340 } }
}
-- 触发器
triggers = {
{ config_id = 1015001, name = "ENTER_REGION_15001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15001", action = "action_EVENT_ENTER_REGION_15001" },
{ config_id = 1015002, name = "ENTER_REGION_15002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15002", action = "action_EVENT_ENTER_REGION_15002" },
{ config_id = 1015003, name = "ENTER_REGION_15003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15003", action = "action_EVENT_ENTER_REGION_15003" },
{ config_id = 1015005, name = "ENTER_REGION_15005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15005", action = "action_EVENT_ENTER_REGION_15005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 15006 },
regions = { 15001, 15002, 15003, 15005 },
triggers = { "ENTER_REGION_15001", "ENTER_REGION_15002", "ENTER_REGION_15003", "ENTER_REGION_15005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_15001(context, evt)
if evt.param1 ~= 15001 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_15001(context, evt)
-- 调用提示id为 33010137 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010137) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15002(context, evt)
if evt.param1 ~= 15002 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_15002(context, evt)
-- 调用提示id为 33010145 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010145) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15003(context, evt)
if evt.param1 ~= 15003 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_15003(context, evt)
-- 触发镜头注目,注目位置为坐标{x=710.9402, y=61.90724, z=342.7333}持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=710.9402, y=61.90724, z=342.7333}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 3, 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
-- 调用提示id为 33010157 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010157) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15005(context, evt)
if evt.param1 ~= 15005 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_15005(context, evt)
-- 调用提示id为 33010169 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010169) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
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": 868.4398,
"y": 76.2745,
"z": 443.0351
},
"rot": {
"x": 0.0,
"y": 61.9857,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 858.840759,
"y": 76.68615,
"z": 442.769318
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}

View File

@@ -0,0 +1,46 @@
[
{
"area_id": 10133,
"bottom": -300.0,
"isUseHeightBorder": true,
"points": [
{
"x": 708.1571,
"y": 532.8958
},
{
"x": 811.892639,
"y": 595.0743
},
{
"x": 948.664368,
"y": 587.3312
},
{
"x": 1070.44214,
"y": 404.4654
},
{
"x": 920.6631,
"y": 246.625244
},
{
"x": 731.1647,
"y": 216.514435
},
{
"x": 665.521362,
"y": 258.679047
},
{
"x": 606.6298,
"y": 348.400818
},
{
"x": 587.325745,
"y": 435.813568
}
],
"top": 300.0
}
]