添加配置表

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
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = 176.6, z = 161.8 },
size = { x = 570.5, z = 634.7 },
born_pos = { x = 422.647, y = 72.901, z = 475.234 },
born_rot = { x = 0.000, y = 51.463, z = 0.000 },
die_y = -20,
city_id = 4,
vision_anchor = { x = 0.0, z = 0.0 }
}
-- 所有的区块
blocks = { 20159 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 176.6, z = 161.8 }, max = { x = 747.2, z = 796.5 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,33 @@
{
"sceneId": 20159,
"routes": [
{
"localId": 5,
"name": "Platform_005",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 478.361267,
"y": 113.300812,
"z": 496.399933
},
"waitTime": 2.0,
"targetVelocity": 6.0
},
{
"pos": {
"x": 449.111633,
"y": 139.011734,
"z": 495.1067
},
"waitTime": 2.0,
"targetVelocity": 6.0
}
]
}
]
}
@@ -0,0 +1,9 @@
-- 所有的group
groups = {
{ id = 220159001, pos = { x = 454.771, y = 69.141, z = 497.134 } },
{ id = 220159002, refresh_id = 1001, pos = { x = 453.258, y = 69.265, z = 478.605 } },
{ id = 220159003, refresh_id = 1, pos = { x = 481.738, y = 97.063, z = 514.541 } },
{ id = 220159004, refresh_id = 1001, pos = { x = 488.897, y = 145.439, z = 424.997 } },
{ id = 220159005, refresh_id = 1001, pos = { x = 490.670, y = 145.110, z = 420.054 } },
{ id = 220159006, refresh_id = 1, pos = { x = 444.250, y = 84.983, z = 479.531 } }
}
@@ -0,0 +1,341 @@
-- 基础信息
local base_info = {
group_id = 220159001
}
-- Trigger变量
local defs = {
duration = 40,
group_id = 220159001,
collectable_sum = 14
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70211101, pos = { x = 478.737, y = 97.755, z = 521.239 }, rot = { x = 0.596, y = 305.587, z = 6.896 }, level = 1, drop_tag = "解谜低级须弥", isOneoff = true, persistent = true },
{ config_id = 1002, gadget_id = 70290526, pos = { x = 448.763, y = 84.750, z = 479.908 }, rot = { x = 359.639, y = 159.988, z = 0.240 }, level = 30, persistent = true },
{ config_id = 1003, gadget_id = 70360001, pos = { x = 448.985, y = 85.731, z = 480.032 }, rot = { x = 352.519, y = 189.091, z = 352.101 }, level = 30, persistent = true },
{ config_id = 1004, gadget_id = 70290501, pos = { x = 432.917, y = 88.802, z = 498.263 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 1005, gadget_id = 70290501, pos = { x = 442.967, y = 91.795, z = 496.760 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 1006, gadget_id = 70290501, pos = { x = 441.454, y = 91.248, z = 496.799 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 1007, gadget_id = 70290501, pos = { x = 444.382, y = 92.377, z = 496.879 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 1008, gadget_id = 70290501, pos = { x = 439.989, y = 90.512, z = 496.910 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 1009, gadget_id = 70290501, pos = { x = 431.529, y = 89.131, z = 500.026 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 1010, gadget_id = 70290501, pos = { x = 436.131, y = 98.801, z = 519.514 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 1011, gadget_id = 70290501, pos = { x = 437.173, y = 98.464, z = 521.073 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 1024, gadget_id = 70290501, pos = { x = 438.321, y = 98.355, z = 522.651 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1025, gadget_id = 70290501, pos = { x = 453.624, y = 98.697, z = 532.098 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1026, gadget_id = 70290501, pos = { x = 456.000, y = 97.404, z = 532.481 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1027, gadget_id = 70290501, pos = { x = 458.036, y = 97.271, z = 532.888 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1028, gadget_id = 70290501, pos = { x = 461.270, y = 97.217, z = 533.247 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1029, gadget_id = 70290501, pos = { x = 463.993, y = 97.146, z = 533.069 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1033, gadget_id = 70900201, pos = { x = 480.718, y = 100.000, z = 517.184 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1034, gadget_id = 70350456, pos = { x = 470.668, y = 94.685, z = 528.815 }, rot = { x = 15.489, y = 305.256, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1019, shape = RegionShape.SPHERE, radius = 5, pos = { x = 423.557, y = 73.092, z = 476.133 } }
}
-- 触发器
triggers = {
{ config_id = 1001012, name = "CHALLENGE_SUCCESS_1012", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_1012", trigger_count = 0 },
{ config_id = 1001013, name = "CHALLENGE_FAIL_1013", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_1013", trigger_count = 0 },
{ config_id = 1001014, name = "GADGET_STATE_CHANGE_1014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1014", action = "action_EVENT_GADGET_STATE_CHANGE_1014", trigger_count = 0 },
{ config_id = 1001015, name = "ANY_GADGET_DIE_1015", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "", trigger_count = 0, tag = "218" },
{ config_id = 1001016, name = "GADGET_CREATE_1016", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1016", action = "action_EVENT_GADGET_CREATE_1016", trigger_count = 0 },
{ config_id = 1001017, name = "SELECT_OPTION_1017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1017", action = "action_EVENT_SELECT_OPTION_1017", trigger_count = 0 },
-- 2.0rel加的保底,如果group在挑战中间被卸载了,需要在加载时加个保底置回初始状态
{ config_id = 1001018, name = "GROUP_LOAD_1018", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_1018", trigger_count = 0 },
{ config_id = 1001019, name = "ENTER_REGION_1019", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1019", action = "action_EVENT_ENTER_REGION_1019" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1002, 1003, 1034 },
regions = { 1019 },
triggers = { "CHALLENGE_SUCCESS_1012", "CHALLENGE_FAIL_1013", "GADGET_STATE_CHANGE_1014", "ANY_GADGET_DIE_1015", "GADGET_CREATE_1016", "SELECT_OPTION_1017", "GROUP_LOAD_1018", "ENTER_REGION_1019" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1024, 1025, 1026, 1027, 1028, 1029 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 1002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_1012(context, evt)
-- 改变指定group组220159003中, configid为3018的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220159003, 3018, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将configid为 1002 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 220159001, 2)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3002, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220159001, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 创建id为1001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为1033的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1033 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_1013(context, evt)
-- 将configid为 1002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为1003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220159001, 2)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3002, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1014(context, evt)
if 1002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1014(context, evt)
-- 247号挑战,duration内开启宝箱
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 271, defs.duration, 2, 218, defs.collectable_sum) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3002, 1, 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1016(context, evt)
if 1003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1016(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220159001, 1003, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1017(context, evt)
-- 判断是gadgetid 1003 option_id 177
if 1003 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1017(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 1002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(447,86,482.5),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=447, y=86, z=482.5}
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
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220159002, EntityType.GADGET, 2014 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_1018(context, evt)
-- 将configid为 1002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为1003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220159001, 2)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3002, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1019(context, evt)
if evt.param1 ~= 1019 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_1019(context, evt)
-- 将configid为 1034 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1034, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,148 @@
-- 基础信息
local base_info = {
group_id = 220159002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2008, monster_id = 26120301, pos = { x = 465.004, y = 68.556, z = 494.495 }, rot = { x = 0.000, y = 332.952, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 2009, monster_id = 26090501, pos = { x = 456.933, y = 68.552, z = 498.073 }, rot = { x = 0.000, y = 93.584, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 2010, monster_id = 26090501, pos = { x = 466.494, y = 68.552, z = 501.272 }, rot = { x = 0.000, y = 244.686, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 2011, monster_id = 26090201, pos = { x = 459.908, y = 68.555, z = 503.169 }, rot = { x = 0.000, y = 146.619, z = 0.000 }, level = 1, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70290519, pos = { x = 462.143, y = 68.552, z = 498.737 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2002, gadget_id = 70290577, pos = { x = 464.989, y = 68.495, z = 477.348 }, rot = { x = 6.047, y = 0.630, z = 359.277 }, level = 1 },
{ config_id = 2003, gadget_id = 70290520, pos = { x = 466.419, y = 77.749, z = 474.167 }, rot = { x = 0.000, y = 140.000, z = 20.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70290520, pos = { x = 461.980, y = 79.730, z = 472.154 }, rot = { x = 0.000, y = 20.000, z = 335.000 }, level = 1 },
{ config_id = 2005, gadget_id = 70290520, pos = { x = 457.182, y = 81.968, z = 473.307 }, rot = { x = 8.013, y = 344.112, z = 330.993 }, level = 1 },
{ config_id = 2012, gadget_id = 70290485, pos = { x = 462.475, y = 69.322, z = 498.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2013, gadget_id = 70900201, pos = { x = 461.970, y = 71.295, z = 498.331 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2014, gadget_id = 70900201, pos = { x = 448.964, y = 86.281, z = 479.914 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002006, name = "GADGET_STATE_CHANGE_2006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2006", action = "action_EVENT_GADGET_STATE_CHANGE_2006" },
{ config_id = 1002007, name = "ANY_MONSTER_DIE_2007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2007", action = "action_EVENT_ANY_MONSTER_DIE_2007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2008, 2009, 2010, 2011 },
gadgets = { 2001, 2002, 2012, 2013 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_2006", "ANY_MONSTER_DIE_2007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2003, 2004, 2005, 2014 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2006(context, evt)
if 2001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2006(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220159002, 2)
-- 触发镜头注目,注目位置为坐标(466.01978.74237475.2052),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=466.019, y=78.74237, z=475.2052}
local pos_follow = {x=0.5, y=1, z=2}
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 = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = true,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220159002, EntityType.GADGET, 2013 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2007(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220159002) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2007(context, evt)
-- 将configid为 2012 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,179 @@
-- 基础信息
local base_info = {
group_id = 220159003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3002, gadget_id = 70290519, pos = { x = 481.605, y = 97.504, z = 517.434 }, rot = { x = 0.144, y = 0.514, z = 13.369 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3003, gadget_id = 70290577, pos = { x = 481.282, y = 97.248, z = 511.607 }, rot = { x = 352.576, y = 358.122, z = 12.405 }, level = 1 },
{ config_id = 3004, gadget_id = 70290520, pos = { x = 475.465, y = 104.711, z = 509.953 }, rot = { x = 2.852, y = 52.133, z = 19.804 }, level = 1 },
{ config_id = 3005, gadget_id = 70290520, pos = { x = 477.054, y = 105.892, z = 505.903 }, rot = { x = 0.000, y = 25.000, z = 20.000 }, level = 1 },
{ config_id = 3006, gadget_id = 70290520, pos = { x = 479.322, y = 106.715, z = 502.548 }, rot = { x = 0.000, y = 300.000, z = 0.000 }, level = 1 },
{ config_id = 3007, gadget_id = 70290577, pos = { x = 479.769, y = 108.349, z = 502.363 }, rot = { x = 1.150, y = 0.054, z = 5.994 }, level = 1 },
{ config_id = 3009, gadget_id = 70290480, pos = { x = 478.361, y = 113.301, z = 496.400 }, rot = { x = 0.000, y = 261.997, z = 0.000 }, level = 1, route_id = 5, start_route = false },
{ config_id = 3010, gadget_id = 70900201, pos = { x = 463.161, y = 147.329, z = 481.395 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3012, gadget_id = 70950010, pos = { x = 491.173, y = 98.665, z = 515.846 }, rot = { x = 0.000, y = 75.313, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70220103, pos = { x = 463.098, y = 146.649, z = 481.499 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3014, gadget_id = 70950010, pos = { x = 458.284, y = 95.487, z = 540.498 }, rot = { x = 0.000, y = 346.350, z = 0.000 }, level = 1 },
{ config_id = 3015, gadget_id = 70950010, pos = { x = 490.430, y = 117.945, z = 499.254 }, rot = { x = 0.000, y = 109.855, z = 0.000 }, level = 1 },
{ config_id = 3016, gadget_id = 70950010, pos = { x = 432.646, y = 115.450, z = 528.169 }, rot = { x = 0.000, y = 300.117, z = 0.000 }, level = 1 },
{ config_id = 3017, gadget_id = 70950010, pos = { x = 443.756, y = 99.452, z = 467.720 }, rot = { x = 0.000, y = 213.470, z = 0.000 }, level = 1 },
{ config_id = 3018, gadget_id = 70290485, pos = { x = 482.463, y = 97.662, z = 517.710 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3001, shape = RegionShape.SPHERE, radius = 2.5, pos = { x = 478.270, y = 115.913, z = 497.081 } },
{ config_id = 3011, shape = RegionShape.CUBIC, size = { x = 10.000, y = 4.000, z = 5.000 }, pos = { x = 467.526, y = 144.080, z = 479.436 } }
}
-- 触发器
triggers = {
{ config_id = 1003001, name = "ENTER_REGION_3001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3001", action = "action_EVENT_ENTER_REGION_3001" },
{ config_id = 1003008, name = "GADGET_STATE_CHANGE_3008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3008", action = "action_EVENT_GADGET_STATE_CHANGE_3008" },
{ config_id = 1003011, name = "ENTER_REGION_3011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3011", action = "action_EVENT_ENTER_REGION_3011" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3002, 3003, 3009, 3012, 3013, 3014, 3015, 3016, 3017, 3018 },
regions = { 3001, 3011 },
triggers = { "ENTER_REGION_3001", "GADGET_STATE_CHANGE_3008", "ENTER_REGION_3011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3004, 3005, 3006, 3007, 3010 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3001(context, evt)
if evt.param1 ~= 3001 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_3001(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 3009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3008(context, evt)
if 3002 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3008(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220159003, 2)
-- 触发镜头注目,注目位置为坐标(475.541105.4302510.5094),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=475.541, y=105.4302, z=510.5094}
local pos_follow = {x=1, y=-1, z=3}
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 = true,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220159001, EntityType.GADGET, 1033 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3011(context, evt)
if evt.param1 ~= 3011 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_3011(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220159003, EntityType.GADGET, 3010 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 220159004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 26120101, pos = { x = 480.939, y = 148.591, z = 419.188 }, rot = { x = 0.000, y = 12.151, z = 0.000 }, level = 1, pose_id = 201 },
{ config_id = 4002, monster_id = 26090401, pos = { x = 484.484, y = 145.026, z = 423.628 }, rot = { x = 0.000, y = 335.975, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 4003, monster_id = 26090401, pos = { x = 489.777, y = 145.040, z = 424.230 }, rot = { x = 0.000, y = 316.540, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 4004, monster_id = 26090401, pos = { x = 479.180, y = 144.970, z = 422.624 }, rot = { x = 0.000, y = 0.344, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 4005, monster_id = 26120101, pos = { x = 490.689, y = 146.958, z = 419.741 }, rot = { x = 0.000, y = 341.599, z = 0.000 }, level = 1, pose_id = 201 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004009, name = "ANY_MONSTER_DIE_4009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4009", action = "action_EVENT_ANY_MONSTER_DIE_4009" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4001, 4002, 4003, 4004, 4005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4009(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4009(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220159005, 2)
return 0
end
@@ -0,0 +1,109 @@
-- 基础信息
local base_info = {
group_id = 220159005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 26090201, pos = { x = 488.203, y = 144.959, z = 422.567 }, rot = { x = 0.000, y = 324.741, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 5002, monster_id = 26090201, pos = { x = 481.261, y = 144.861, z = 420.799 }, rot = { x = 0.000, y = 7.168, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 5003, monster_id = 26120301, pos = { x = 485.365, y = 145.181, z = 419.172 }, rot = { x = 0.000, y = 343.486, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 5004, monster_id = 26090501, pos = { x = 484.563, y = 145.091, z = 423.444 }, rot = { x = 0.000, y = 353.598, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 5008, monster_id = 26120201, pos = { x = 485.883, y = 146.581, z = 417.750 }, rot = { x = 0.000, y = 329.959, z = 0.000 }, level = 1, disableWander = true, pose_id = 201 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5005, gadget_id = 70211021, pos = { x = 484.711, y = 145.170, z = 420.774 }, rot = { x = 0.644, y = 350.694, z = 357.735 }, level = 1, drop_tag = "战斗高级须弥", isOneoff = true, persistent = true },
{ config_id = 5006, gadget_id = 70900205, pos = { x = 480.846, y = 142.615, z = 417.910 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005007, name = "ANY_MONSTER_DIE_5007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5007", action = "action_EVENT_ANY_MONSTER_DIE_5007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 5001, 5002, 5003, 5004, 5008 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_5007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5007(context, evt)
-- 创建id为5005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,118 @@
-- 基础信息
local base_info = {
group_id = 220159006
}
-- Trigger变量
local defs = {
gadget_LookHookCid = 6003
}
-- DEFS_MISCS
local RequireSuite = {1}
local HookLookPlay = {
HookPoint = defs.gadget_LookHookCid,
Duration = 3,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[6001] = { config_id = 6001, gadget_id = 70330229, pos = { x = 451.977, y = 85.095, z = 481.868 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, persistent = true, mark_flag = 3 },
[6002] = { config_id = 6002, gadget_id = 70330251, pos = { x = 452.106, y = 92.021, z = 494.618 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, mark_flag = 3 },
[6003] = { config_id = 6003, gadget_id = 70220103, pos = { x = 444.477, y = 93.648, z = 496.977 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, persistent = true },
[6004] = { config_id = 6004, gadget_id = 70220103, pos = { x = 436.086, y = 100.897, z = 519.622 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, persistent = true },
[6006] = { config_id = 6006, gadget_id = 70220103, pos = { x = 453.050, y = 100.858, z = 532.275 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006005, name = "GADGET_STATE_CHANGE_6005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6005", action = "action_EVENT_GADGET_STATE_CHANGE_6005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_6005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6003, 6004, 6006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6005(context, evt)
if 6001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220159006, 2)
return 0
end
require "V3_0/HookLook"
@@ -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": 485.9366,
"y": 144.923,
"z": 411.1315
},
"rot": {
"x": 0.05759928,
"y": 353.7841,
"z": 1.227889
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 526.8046,
"y": 136.49559,
"z": 442.0239
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}