添加配置表

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,27 @@
-- 地图配置
scene_config = {
begin_pos = { x = -283.3, z = -323.1 },
size = { x = 597.9, z = 620.3 },
born_pos = { x = 39.710, y = -5.939, z = 39.813 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
born_point_list = {
{ pos = { x = 39.710, y = -5.169, z = 39.813 }, rot = { x = 0.000, y = 270.000, z = 0.000 } }
},
die_y = -20,
city_id = 3,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20119 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -283.3, z = -323.1 }, max = { x = 314.6, z = 297.2 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,16 @@
-- 所有的group
groups = {
{ id = 220119001, refresh_id = 1001, pos = { x = 25.459, y = -15.979, z = 41.812 } },
{ id = 220119002, refresh_id = 1, pos = { x = 33.071, y = -10.890, z = 16.015 } },
{ id = 220119003, refresh_id = 1, pos = { x = 11.678, y = -9.760, z = 8.462 } },
{ id = 220119004, refresh_id = 1, pos = { x = 52.228, y = -0.206, z = -12.930 } },
{ id = 220119005, refresh_id = 1001, pos = { x = -14.548, y = -11.905, z = -14.814 } },
{ id = 220119006, refresh_id = 1, pos = { x = 20.385, y = 0.440, z = -45.865 } },
{ id = 220119007, refresh_id = 1001, pos = { x = -14.317, y = 1.580, z = -14.832 } },
{ id = 220119008, refresh_id = 1, pos = { x = -9.199, y = -1.187, z = 16.727 } },
{ id = 220119009, refresh_id = 1001, pos = { x = 33.588, y = 12.350, z = -62.474 } },
{ id = 220119010, refresh_id = 1, pos = { x = -1.974, y = 1.380, z = -14.471 } },
{ id = 220119011, pos = { x = 26.923, y = -6.541, z = 26.942 } },
{ id = 220119012, refresh_id = 1001, pos = { x = 31.193, y = -11.290, z = 24.435 } },
{ id = 220119013, refresh_id = 1, pos = { x = 29.291, y = -15.893, z = 41.591 } }
}
@@ -0,0 +1,25 @@
dummy_points = {
["Q1202613_door"] = { pos = { x = -19.413, y = 1.580, z = -21.478 }, rot = { x = 0.000, y = 350.120, z = 0.000 } },
["Q1202613_father"] = { pos = { x = -22.581, y = 1.595, z = -21.364 }, rot = { x = 0.000, y = 91.387, z = 0.000 } },
["Q1202613_mother"] = { pos = { x = -23.241, y = 1.600, z = -20.704 }, rot = { x = 0.000, y = 107.063, z = 0.000 } },
["Q1202613_NPC1"] = { pos = { x = -23.228, y = 1.599, z = -6.359 }, rot = { x = 0.000, y = 126.627, z = 0.000 } },
["Q1202613_NPC2"] = { pos = { x = -23.011, y = 1.580, z = -8.391 }, rot = { x = 0.000, y = 77.188, z = 0.000 } },
["Q1202613_NPC3"] = { pos = { x = -13.791, y = 1.548, z = -33.425 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q1202613_NPC4"] = { pos = { x = -17.038, y = 1.460, z = -33.225 }, rot = { x = 0.000, y = 17.959, z = 0.000 } },
["Q1202615_Boss"] = { pos = { x = 31.419, y = 15.700, z = -87.490 }, rot = { x = 0.000, y = 40.312, z = 0.000 } },
["q1202615_Gadget"] = { pos = { x = 32.037, y = 17.174, z = -89.938 }, rot = { x = 0.000, y = 54.914, z = 0.000 } },
["Q1202615_Itto"] = { pos = { x = 34.960, y = 15.700, z = -89.163 }, rot = { x = 0.000, y = 345.381, z = 0.000 } },
["Q1202615_qinggui"] = { pos = { x = 32.060, y = 15.700, z = -89.749 }, rot = { x = 0.000, y = 11.911, z = 0.000 } },
["Talk1202606_itto"] = { pos = { x = -9.247, y = 1.380, z = -15.157 }, rot = { x = 0.000, y = 271.148, z = 0.000 } },
["Talk1202606_misuzu"] = { pos = { x = -11.606, y = 1.606, z = -15.966 }, rot = { x = 0.000, y = 80.979, z = 0.000 } },
["Talk1202606_paimon"] = { pos = { x = -9.339, y = 1.572, z = -18.587 }, rot = { x = 0.000, y = 308.135, z = 0.000 } },
["Talk1202606_player"] = { pos = { x = -9.168, y = 1.380, z = -17.303 }, rot = { x = 0.000, y = 290.752, z = 0.000 } },
["Talk1202606_sugimoto"] = { pos = { x = -11.952, y = 1.606, z = -18.156 }, rot = { x = 0.000, y = 79.459, z = 0.000 } },
["Talk1202607_ishizaki"] = { pos = { x = 32.868, y = 15.660, z = -62.793 }, rot = { x = 0.000, y = 178.544, z = 0.000 } },
["Talk1202607_paimon"] = { pos = { x = 34.764, y = 15.700, z = -85.945 }, rot = { x = 0.000, y = 207.482, z = 0.000 } },
["Talk1202607_player"] = { pos = { x = 33.409, y = 15.700, z = -85.319 }, rot = { x = 0.000, y = 196.031, z = 0.000 } },
["Talk1202607_staff01"] = { pos = { x = 35.525, y = 15.660, z = -61.161 }, rot = { x = 0.000, y = 182.323, z = 0.000 } },
["Talk1202607_staff02"] = { pos = { x = 34.380, y = 15.660, z = -61.041 }, rot = { x = 0.000, y = 182.323, z = 0.000 } },
["Talk1202607_staff03"] = { pos = { x = 31.710, y = 15.660, z = -61.002 }, rot = { x = 0.000, y = 182.323, z = 0.000 } },
["Talk1202607_staff04"] = { pos = { x = 30.082, y = 15.660, z = -60.920 }, rot = { x = 0.000, y = 182.323, z = 0.000 } }
}
@@ -0,0 +1,194 @@
-- 基础信息
local base_info = {
group_id = 220119001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 25080101, pos = { x = 21.508, y = -15.870, z = 40.065 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1004 },
{ config_id = 1002, monster_id = 25080101, pos = { x = 21.338, y = -15.870, z = 43.074 }, rot = { x = 0.000, y = 181.831, z = 0.000 }, level = 1, disableWander = true, pose_id = 1004 },
{ config_id = 1003, monster_id = 25080201, pos = { x = 31.498, y = -15.870, z = 48.444 }, rot = { x = 0.000, y = 238.767, z = 0.000 }, level = 1, disableWander = true, pose_id = 1005 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1004, gadget_id = 70290137, pos = { x = 42.154, y = -11.013, z = 29.722 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1006, shape = RegionShape.CUBIC, size = { x = 17.280, y = 2.250, z = 16.730 }, pos = { x = 23.296, y = -11.172, z = 41.096 } },
{ config_id = 1007, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 43.999, y = -7.150, z = 15.429 } },
{ config_id = 1008, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 43.571, y = -6.909, z = 24.431 } }
}
-- 触发器
triggers = {
{ config_id = 1001005, name = "ANY_MONSTER_DIE_1005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1005", action = "action_EVENT_ANY_MONSTER_DIE_1005" },
{ config_id = 1001006, name = "ENTER_REGION_1006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1006", action = "action_EVENT_ENTER_REGION_1006" },
{ config_id = 1001007, name = "ENTER_REGION_1007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1007", action = "action_EVENT_ENTER_REGION_1007" },
{ config_id = 1001008, name = "ENTER_REGION_1008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1008", action = "action_EVENT_ENTER_REGION_1008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1001, 1002, 1003 },
gadgets = { 1004 },
regions = { 1006, 1007, 1008 },
triggers = { "ANY_MONSTER_DIE_1005", "ENTER_REGION_1006", "ENTER_REGION_1007", "ENTER_REGION_1008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1005(context, evt)
-- 将configid为 1004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1006(context, evt)
if evt.param1 ~= 1006 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_1006(context, evt)
-- 调用提示id为 201190101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201190101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1007(context, evt)
if evt.param1 ~= 1007 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_1007(context, evt)
-- 调用提示id为 201190501 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201190501) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 触发镜头注目,注目位置为坐标(33,12,-45),持续时间为3秒,并且为强制注目形式,不广播其他玩家
local pos = {x=33, y=12, z=-45}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 1,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1008(context, evt)
if evt.param1 ~= 1008 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_1008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,305 @@
-- 基础信息
local base_info = {
group_id = 220119002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70360170, pos = { x = 32.763, y = -10.361, z = 5.928 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70360001, pos = { x = 32.769, y = -9.991, z = 5.920 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70290183, pos = { x = 32.810, y = -5.280, z = -13.540 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true }
}
-- 区域
regions = {
{ config_id = 2005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 33.417, y = -11.332, z = 8.333 } },
{ config_id = 2012, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 52.439, y = 3.429, z = -17.142 } }
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "GADGET_CREATE_2003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2003", action = "action_EVENT_GADGET_CREATE_2003" },
{ config_id = 1002005, name = "ENTER_REGION_2005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" },
{ config_id = 1002006, name = "SELECT_OPTION_2006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2006", action = "action_EVENT_SELECT_OPTION_2006", trigger_count = 0 },
{ config_id = 1002007, name = "VARIABLE_CHANGE_2007", event = EventType.EVENT_VARIABLE_CHANGE, source = "stairs1", condition = "", action = "action_EVENT_VARIABLE_CHANGE_2007", trigger_count = 0 },
{ config_id = 1002008, name = "TIMER_EVENT_2008", event = EventType.EVENT_TIMER_EVENT, source = "rotationtime", condition = "", action = "action_EVENT_TIMER_EVENT_2008", trigger_count = 0 },
{ config_id = 1002009, name = "PLATFORM_REACH_POINT_2009", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_2009", action = "" },
{ config_id = 1002011, name = "SELECT_OPTION_2011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2011", action = "action_EVENT_SELECT_OPTION_2011" },
{ config_id = 1002012, name = "ENTER_REGION_2012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2012", action = "action_EVENT_ENTER_REGION_2012" }
}
-- 变量
variables = {
{ config_id = 1, name = "stairs1", value = 1, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 2013, gadget_id = 70290156, pos = { x = 25.837, y = 2.471, z = -21.808 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 }
},
regions = {
{ config_id = 2010, shape = RegionShape.CUBIC, size = { x = 15.000, y = 40.000, z = 40.000 }, pos = { x = 32.288, y = 4.072, z = -18.881 } },
{ config_id = 2014, shape = RegionShape.CUBIC, size = { x = 15.000, y = 40.000, z = 40.000 }, pos = { x = 32.288, y = 4.072, z = -18.881 } }
},
triggers = {
{ config_id = 1002010, name = "LEAVE_REGION_2010", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_2010", action = "action_EVENT_LEAVE_REGION_2010", trigger_count = 0 },
{ config_id = 1002014, name = "ENTER_REGION_2014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2014", action = "action_EVENT_ENTER_REGION_2014", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2004 },
regions = { 2005, 2012 },
triggers = { "GADGET_CREATE_2003", "ENTER_REGION_2005", "SELECT_OPTION_2006", "VARIABLE_CHANGE_2007", "TIMER_EVENT_2008", "PLATFORM_REACH_POINT_2009", "SELECT_OPTION_2011", "ENTER_REGION_2012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_2003(context, evt)
if 2002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220119002, 2002, {324}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2006(context, evt)
-- 判断是gadgetid 2002 option_id 324
if 2002 ~= evt.param1 then
return false
end
if 324 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2006(context, evt)
if ScriptLib.GetGroupVariableValue(context, "stairs1") == 1 then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : 变量判断成功")
ScriptLib.SetGroupVariableValue(context, "stairs1", 2)
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : 变量设置成功")
elseif ScriptLib.GetGroupVariableValue(context, "stairs1") == 2 then
ScriptLib.SetGroupVariableValue(context, "stairs1", 1)
elseif ScriptLib.GetGroupVariableValue(context, "stairs1") == 3 then
ScriptLib.SetGroupVariableValue(context, "stairs1", 4)
elseif ScriptLib.GetGroupVariableValue(context, "stairs1") == 4 then
ScriptLib.SetGroupVariableValue(context, "stairs1", 3)
end
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, 220119002, 2002, 324)
ScriptLib.CreateGroupTimerEvent(context, 220119002, "rotationtime", 3.5)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220119002, 2001, GadgetState.GearStart)
--注目镜头
-- 触发镜头注目,注目位置为坐标(1,1,1),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=32, y=-5, z=-14}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2007(context, evt)
if evt.param1 == evt.param2 then return -1 end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if ScriptLib.GetGroupVariableValue(context, "stairs1") == 1 then
if 0 ~= ScriptLib.SetPlatformPointArray(context, 2004, 1, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
end
if ScriptLib.GetGroupVariableValue(context, "stairs1") == 2 then
if 0 ~= ScriptLib.SetPlatformPointArray(context, 2004, 1, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
end
if ScriptLib.GetGroupVariableValue(context, "stairs1") == 3 then
if 0 ~= ScriptLib.SetPlatformPointArray(context, 2004, 1, {3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
end
if ScriptLib.GetGroupVariableValue(context, "stairs1") == 4 then
if 0 ~= ScriptLib.SetPlatformPointArray(context, 2004, 1, {4}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2008(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220119002, 2002, {324}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 2001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_2009(context, evt)
-- 判断是gadgetid 为 2004的移动平台,是否到达了1 的点集中的 2 点
if 2004 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2011(context, evt)
-- 判断是gadgetid 2002 option_id 324
if 2002 ~= evt.param1 then
return false
end
if 324 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2011(context, evt)
-- 调用提示id为 201190601 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201190601) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 11 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2012(context, evt)
if evt.param1 ~= 2012 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_2012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,258 @@
-- 基础信息
local base_info = {
group_id = 220119003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360170, pos = { x = 12.323, y = -8.925, z = -1.353 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70360001, pos = { x = 12.323, y = -8.555, z = -1.353 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70290184, pos = { x = 32.810, y = -5.280, z = -25.710 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 3011, gadget_id = 70290137, pos = { x = 32.803, y = 0.691, z = -41.857 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 11.736, y = -9.310, z = 1.170 } }
}
-- 触发器
triggers = {
{ config_id = 1003004, name = "GADGET_CREATE_3004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3004", action = "action_EVENT_GADGET_CREATE_3004" },
{ config_id = 1003005, name = "ENTER_REGION_3005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" },
{ config_id = 1003006, name = "SELECT_OPTION_3006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3006", action = "action_EVENT_SELECT_OPTION_3006", trigger_count = 0 },
{ config_id = 1003007, name = "VARIABLE_CHANGE_3007", event = EventType.EVENT_VARIABLE_CHANGE, source = "stairs2", condition = "", action = "action_EVENT_VARIABLE_CHANGE_3007", trigger_count = 0 },
{ config_id = 1003008, name = "TIMER_EVENT_3008", event = EventType.EVENT_TIMER_EVENT, source = "rotationtime", condition = "", action = "action_EVENT_TIMER_EVENT_3008", trigger_count = 0 },
{ config_id = 1003010, name = "SELECT_OPTION_3010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3010", action = "action_EVENT_SELECT_OPTION_3010" }
}
-- 变量
variables = {
{ config_id = 1, name = "stairs2", value = 1, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 3009, gadget_id = 70290156, pos = { x = 39.124, y = 5.786, z = -22.092 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 }
},
regions = {
{ config_id = 3012, shape = RegionShape.CUBIC, size = { x = 15.000, y = 40.000, z = 40.000 }, pos = { x = 32.288, y = 4.072, z = -18.881 } },
{ config_id = 3013, shape = RegionShape.CUBIC, size = { x = 15.000, y = 40.000, z = 40.000 }, pos = { x = 32.288, y = 4.072, z = -18.881 } }
},
triggers = {
{ config_id = 1003012, name = "LEAVE_REGION_3012", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_3012", action = "action_EVENT_LEAVE_REGION_3012", trigger_count = 0 },
{ config_id = 1003013, name = "ENTER_REGION_3013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3013", action = "action_EVENT_ENTER_REGION_3013", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3011 },
regions = { 3005 },
triggers = { "GADGET_CREATE_3004", "ENTER_REGION_3005", "SELECT_OPTION_3006", "VARIABLE_CHANGE_3007", "TIMER_EVENT_3008", "SELECT_OPTION_3010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_3004(context, evt)
if 3002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3004(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220119003, 3002, {324}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3006(context, evt)
-- 判断是gadgetid 3002 option_id 324
if 3002 ~= evt.param1 then
return false
end
if 324 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3006(context, evt)
if ScriptLib.GetGroupVariableValue(context, "stairs2") == 1 then
ScriptLib.SetGroupVariableValue(context, "stairs2", 2)
elseif ScriptLib.GetGroupVariableValue(context, "stairs2") == 2 then
ScriptLib.SetGroupVariableValue(context, "stairs2", 1)
elseif ScriptLib.GetGroupVariableValue(context, "stairs2") == 3 then
ScriptLib.SetGroupVariableValue(context, "stairs2", 4)
elseif ScriptLib.GetGroupVariableValue(context, "stairs2") == 4 then
ScriptLib.SetGroupVariableValue(context, "stairs2", 3)
end
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, 220119003, 3002, 324)
ScriptLib.CreateGroupTimerEvent(context, 220119003, "rotationtime", 3.5)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220119003, 3001, GadgetState.GearStart)
--注目镜头
-- 触发镜头注目,注目位置为坐标(1,1,1),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=32, y=-5, z=-26}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3007(context, evt)
if evt.param1 == evt.param2 then return -1 end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if ScriptLib.GetGroupVariableValue(context, "stairs2") == 1 then
if 0 ~= ScriptLib.SetPlatformPointArray(context, 3003, 2, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
end
if ScriptLib.GetGroupVariableValue(context, "stairs2") == 2 then
if 0 ~= ScriptLib.SetPlatformPointArray(context, 3003, 2, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
end
if ScriptLib.GetGroupVariableValue(context, "stairs2") == 3 then
if 0 ~= ScriptLib.SetPlatformPointArray(context, 3003, 2, {3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
end
if ScriptLib.GetGroupVariableValue(context, "stairs2") == 4 then
if 0 ~= ScriptLib.SetPlatformPointArray(context, 3003, 2, {4}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3008(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220119003, 3002, {324}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 3001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3010(context, evt)
-- 判断是gadgetid 3002 option_id 324
if 3002 ~= evt.param1 then
return false
end
if 324 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 14 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 3011 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3011, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,159 @@
-- 基础信息
local base_info = {
group_id = 220119004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70360170, pos = { x = 54.811, y = -0.546, z = 1.343 }, rot = { x = 0.000, y = 269.729, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70360001, pos = { x = 54.811, y = -0.021, z = 1.343 }, rot = { x = 0.000, y = 269.729, z = 0.000 }, level = 1 },
{ config_id = 4005, gadget_id = 70360288, pos = { x = 58.582, y = -0.504, z = 5.828 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004003, name = "GADGET_CREATE_4003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4003", action = "action_EVENT_GADGET_CREATE_4003" },
{ config_id = 1004004, name = "SELECT_OPTION_4004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4004", action = "action_EVENT_SELECT_OPTION_4004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4005 },
regions = { },
triggers = { "GADGET_CREATE_4003", "SELECT_OPTION_4004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_4003(context, evt)
if 4002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220119004, 4002, {324}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4004(context, evt)
-- 判断是gadgetid 4002 option_id 324
if 4002 ~= evt.param1 then
return false
end
if 324 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4004(context, evt)
-- 将configid为 4005 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4005, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 220119004 ;指定config4002;物件身上指定option324
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220119004, 4002, 324) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 11 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 触发镜头注目,注目位置为坐标(58,-1,6),持续时间为1.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=58, y=-1, z=6}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 1.5, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
@@ -0,0 +1,264 @@
-- 基础信息
local base_info = {
group_id = 220119005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 25080301, pos = { x = -21.766, y = -10.806, z = -14.837 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 1003 },
{ config_id = 5002, monster_id = 25080101, pos = { x = -16.507, y = -10.801, z = -8.279 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 1003 },
{ config_id = 5003, monster_id = 25080101, pos = { x = -11.924, y = -10.810, z = -20.387 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1003 },
{ config_id = 5004, monster_id = 25080201, pos = { x = -16.870, y = -10.810, z = -21.580 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1 },
{ config_id = 5005, monster_id = 25080201, pos = { x = -12.593, y = -10.810, z = -8.698 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5006, gadget_id = 70290137, pos = { x = -4.599, y = -10.600, z = -0.123 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5008, gadget_id = 70360287, pos = { x = 20.208, y = -10.951, z = 15.531 }, rot = { x = 0.000, y = 269.643, z = 0.000 }, level = 1 },
{ config_id = 5013, gadget_id = 70290136, pos = { x = -30.528, y = -10.310, z = -13.809 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5014, gadget_id = 70211012, pos = { x = -17.327, y = -10.810, z = -14.814 }, rot = { x = 0.000, y = 89.535, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 5015, gadget_id = 70360001, pos = { x = -30.626, y = -8.964, z = -13.628 }, rot = { x = 0.000, y = 91.855, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5009, shape = RegionShape.SPHERE, radius = 5, pos = { x = -2.361, y = -9.555, z = -15.139 } }
}
-- 触发器
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" },
{ config_id = 1005009, name = "ENTER_REGION_5009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5009", action = "action_EVENT_ENTER_REGION_5009" },
{ config_id = 1005010, name = "GADGET_CREATE_5010", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5010", action = "action_EVENT_GADGET_CREATE_5010" },
{ config_id = 1005011, name = "SELECT_OPTION_5011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5011", action = "action_EVENT_SELECT_OPTION_5011" },
{ config_id = 1005012, name = "GADGET_CREATE_5012", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5012", action = "action_EVENT_GADGET_CREATE_5012" },
{ config_id = 1005016, name = "SELECT_OPTION_5016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5016", action = "action_EVENT_SELECT_OPTION_5016" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 5001, 5002, 5003, 5004, 5005 },
gadgets = { 5006, 5008, 5013, 5014, 5015 },
regions = { 5009 },
triggers = { "ANY_MONSTER_DIE_5007", "ENTER_REGION_5009", "GADGET_CREATE_5010", "SELECT_OPTION_5011", "GADGET_CREATE_5012", "SELECT_OPTION_5016" },
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)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 12 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 触发镜头注目,注目位置为坐标(-4,-10,0),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-4, y=-10, z=0}
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 = 1,
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为 5006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 5014 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5014, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5009(context, evt)
if evt.param1 ~= 5009 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_5009(context, evt)
-- 通知groupid为220119005中,configid为:5001的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 5001, 220119005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_5010(context, evt)
if 5008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5010(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5011(context, evt)
-- 判断是gadgetid 5008 option_id 1
if 5008 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5011(context, evt)
-- 将configid为 5008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 220119005 ;指定config5008;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220119005, 5008, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_5012(context, evt)
if 5015 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5012(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {72}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5016(context, evt)
-- 判断是gadgetid 5015 option_id 72
if 5015 ~= evt.param1 then
return false
end
if 72 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5016(context, evt)
-- 将configid为 5013 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5013, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 220119005 ;指定config5015;物件身上指定option72
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220119005, 5015, 72) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
@@ -0,0 +1,179 @@
-- 基础信息
local base_info = {
group_id = 220119006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70360280, pos = { x = 23.617, y = 1.336, z = -49.142 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70360280, pos = { x = 18.077, y = 1.336, z = -49.166 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6003, gadget_id = 70360280, pos = { x = 15.248, y = 1.716, z = -40.981 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 6004, gadget_id = 70360280, pos = { x = 10.739, y = 1.804, z = -29.045 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 6009, gadget_id = 70360291, pos = { x = 23.617, y = 1.038, z = -40.733 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6010, gadget_id = 70360291, pos = { x = 18.077, y = 1.870, z = -40.776 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6011, gadget_id = 70360291, pos = { x = 5.463, y = 1.544, z = -40.981 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 6012, gadget_id = 70360291, pos = { x = 10.739, y = 1.655, z = -49.506 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6005, shape = RegionShape.CUBIC, size = { x = 2.000, y = 10.000, z = 10.000 }, pos = { x = 23.573, y = 0.440, z = -45.828 } },
{ config_id = 6006, shape = RegionShape.CUBIC, size = { x = 2.000, y = 10.000, z = 10.000 }, pos = { x = 18.003, y = 2.950, z = -45.386 } },
{ config_id = 6007, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 2.000 }, pos = { x = 10.328, y = 3.670, z = -40.925 } },
{ config_id = 6008, shape = RegionShape.CUBIC, size = { x = 2.000, y = 10.000, z = 30.000 }, pos = { x = 10.739, y = 1.805, z = -39.709 } }
}
-- 触发器
triggers = {
{ config_id = 1006005, name = "ENTER_REGION_6005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6005", action = "action_EVENT_ENTER_REGION_6005", trigger_count = 0 },
{ config_id = 1006006, name = "ENTER_REGION_6006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6006", action = "action_EVENT_ENTER_REGION_6006", trigger_count = 0 },
{ config_id = 1006007, name = "ENTER_REGION_6007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6007", action = "action_EVENT_ENTER_REGION_6007", trigger_count = 0 },
{ config_id = 1006008, name = "ENTER_REGION_6008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6008", action = "action_EVENT_ENTER_REGION_6008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6003, 6004, 6009, 6010, 6011, 6012 },
regions = { 6005, 6006, 6007, 6008 },
triggers = { "ENTER_REGION_6005", "ENTER_REGION_6006", "ENTER_REGION_6007", "ENTER_REGION_6008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_6005(context, evt)
if evt.param1 ~= 6005 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_6005(context, evt)
-- 将configid为 6001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6006(context, evt)
if evt.param1 ~= 6006 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_6006(context, evt)
-- 将configid为 6002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6007(context, evt)
if evt.param1 ~= 6007 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_6007(context, evt)
-- 将configid为 6003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6008(context, evt)
if evt.param1 ~= 6008 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_6008(context, evt)
-- 将configid为 6004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,239 @@
-- 基础信息
local base_info = {
group_id = 220119007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7001, monster_id = 25080101, pos = { x = -15.472, y = 1.580, z = -15.866 }, rot = { x = 0.000, y = 100.282, z = 0.000 }, level = 1, pose_id = 1 },
{ config_id = 7002, monster_id = 25080101, pos = { x = -14.602, y = 1.580, z = -26.109 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1 },
{ config_id = 7003, monster_id = 25080201, pos = { x = -16.700, y = 1.580, z = -4.834 }, rot = { x = 0.000, y = 151.145, z = 0.000 }, level = 1, pose_id = 1003 },
{ config_id = 7004, monster_id = 25080201, pos = { x = -3.759, y = 1.384, z = -6.187 }, rot = { x = 0.000, y = 210.391, z = 0.000 }, level = 1, pose_id = 1003 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7005, gadget_id = 70290137, pos = { x = 0.133, y = 1.656, z = -13.453 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 7006, gadget_id = 70290138, pos = { x = -15.276, y = 1.481, z = 0.586 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 7009, gadget_id = 70290242, pos = { x = -12.549, y = 1.460, z = -29.790 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7010, gadget_id = 70290242, pos = { x = -17.084, y = 1.460, z = -29.790 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7011, gadget_id = 70290242, pos = { x = -20.091, y = 1.680, z = -24.080 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 7012, gadget_id = 70290242, pos = { x = -20.091, y = 1.680, z = -19.693 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 7013, gadget_id = 70290242, pos = { x = -20.040, y = 1.580, z = -10.166 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 7014, gadget_id = 70290242, pos = { x = -20.040, y = 1.580, z = -5.780 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 7015, gadget_id = 70290242, pos = { x = -12.549, y = 4.324, z = -29.790 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7016, gadget_id = 70290242, pos = { x = -17.084, y = 4.324, z = -29.790 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7017, gadget_id = 70290242, pos = { x = -20.091, y = 4.544, z = -24.080 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 7018, gadget_id = 70290242, pos = { x = -20.091, y = 4.544, z = -19.693 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 7019, gadget_id = 70290242, pos = { x = -20.040, y = 4.444, z = -10.166 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 7020, gadget_id = 70290242, pos = { x = -20.040, y = 4.444, z = -5.780 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 7021, gadget_id = 70211022, pos = { x = -18.498, y = 1.580, z = -14.857 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_tag = "战斗高级稻妻", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 7008, shape = RegionShape.SPHERE, radius = 5, pos = { x = -6.625, y = 4.727, z = -27.678 } }
}
-- 触发器
triggers = {
{ config_id = 1007007, name = "ANY_MONSTER_DIE_7007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7007", action = "action_EVENT_ANY_MONSTER_DIE_7007" },
{ config_id = 1007008, name = "ENTER_REGION_7008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7008", action = "action_EVENT_ENTER_REGION_7008" },
{ config_id = 1007022, name = "QUEST_FINISH_7022", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_7022", action = "action_EVENT_QUEST_FINISH_7022" },
{ config_id = 1007023, name = "TIMER_EVENT_7023", event = EventType.EVENT_TIMER_EVENT, source = "delay", condition = "", action = "action_EVENT_TIMER_EVENT_7023" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7005, 7006, 7009, 7010, 7011, 7012, 7013, 7014, 7021 },
regions = { 7008 },
triggers = { "ANY_MONSTER_DIE_7007", "ENTER_REGION_7008", "QUEST_FINISH_7022", "TIMER_EVENT_7023" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7009, 7010, 7011, 7012, 7013, 7014 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 7015, 7016, 7017, 7018, 7019, 7020 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 7001, 7002, 7003, 7004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220119010, 2)
-- 将configid为 7005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 7006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 8 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 延迟1秒后,向groupId为:220119007的对象,请求一次调用,并将string参数:"delay" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220119007, "delay", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2201190071") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将configid为 7021 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7021, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7008(context, evt)
if evt.param1 ~= 7008 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_7008(context, evt)
-- 调用提示id为 201190201 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201190201) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_7022(context, evt)
--检查ID为1202613的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 1202613 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_7022(context, evt)
-- 改变指定group组220119009中, configid为9017的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220119009, 9017, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_7023(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220119007, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220119007, 3)
return 0
end
@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 220119008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8003, gadget_id = 70360288, pos = { x = -4.980, y = -1.160, z = 19.769 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 8001, gadget_id = 70360170, pos = { x = -8.521, y = -1.183, z = 16.738 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8002, gadget_id = 70360001, pos = { x = -8.521, y = -0.659, z = 16.738 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
},
triggers = {
{ config_id = 1008004, name = "GADGET_CREATE_8004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8004", action = "action_EVENT_GADGET_CREATE_8004" },
{ config_id = 1008005, name = "SELECT_OPTION_8005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8005", action = "action_EVENT_SELECT_OPTION_8005" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,250 @@
-- 基础信息
local base_info = {
group_id = 220119009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
-- BOSS战斗
{ config_id = 9001, monster_id = 25080301, pos = { x = 33.068, y = 15.700, z = -95.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1008, 1009, 1019 }, pose_id = 1004, title_id = 10053, special_name_id = 10078 },
{ config_id = 9004, monster_id = 25080101, pos = { x = 40.063, y = 15.700, z = -89.529 }, rot = { x = 0.000, y = 337.754, z = 0.000 }, level = 1, pose_id = 1006 },
{ config_id = 9005, monster_id = 25080101, pos = { x = 27.029, y = 15.700, z = -91.641 }, rot = { x = 0.000, y = 48.829, z = 0.000 }, level = 1, pose_id = 1001 },
{ config_id = 9006, monster_id = 25080201, pos = { x = 26.515, y = 15.700, z = -84.702 }, rot = { x = 0.000, y = 209.463, z = 0.000 }, level = 1, pose_id = 1006 },
{ config_id = 9007, monster_id = 25080201, pos = { x = 41.810, y = 15.700, z = -86.716 }, rot = { x = 0.000, y = 287.591, z = 0.000 }, level = 1, pose_id = 1005 },
{ config_id = 9008, monster_id = 25080101, pos = { x = 24.398, y = 15.700, z = -86.627 }, rot = { x = 0.000, y = 50.796, z = 0.000 }, level = 1, pose_id = 1003 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9009, gadget_id = 70290136, pos = { x = 17.579, y = 15.700, z = -87.185 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 9010, gadget_id = 70290136, pos = { x = 49.568, y = 15.700, z = -86.934 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 9012, gadget_id = 70360001, pos = { x = 49.769, y = 16.931, z = -86.972 }, rot = { x = 0.000, y = 268.968, z = 0.000 }, level = 1 },
{ config_id = 9016, gadget_id = 70360001, pos = { x = 17.675, y = 17.462, z = -87.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9017, gadget_id = 70290140, pos = { x = 33.308, y = 15.660, z = -58.952 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 9002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 32.650, y = 15.639, z = -63.544 } }
}
-- 触发器
triggers = {
{ config_id = 1009002, name = "ENTER_REGION_9002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9002", action = "action_EVENT_ENTER_REGION_9002" },
{ config_id = 1009003, name = "ANY_MONSTER_DIE_9003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9003", action = "action_EVENT_ANY_MONSTER_DIE_9003" },
{ config_id = 1009011, name = "GADGET_CREATE_9011", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9011", action = "action_EVENT_GADGET_CREATE_9011" },
{ config_id = 1009013, name = "SELECT_OPTION_9013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9013", action = "action_EVENT_SELECT_OPTION_9013" },
{ config_id = 1009014, name = "SELECT_OPTION_9014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9014", action = "action_EVENT_SELECT_OPTION_9014" },
{ config_id = 1009015, name = "GADGET_CREATE_9015", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9015", action = "action_EVENT_GADGET_CREATE_9015" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 9001, 9004, 9005, 9006, 9007, 9008 },
gadgets = { 9009, 9010, 9012, 9016, 9017 },
regions = { 9002 },
triggers = { "ENTER_REGION_9002", "ANY_MONSTER_DIE_9003", "GADGET_CREATE_9011", "SELECT_OPTION_9013", "SELECT_OPTION_9014", "GADGET_CREATE_9015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_9002(context, evt)
if evt.param1 ~= 9002 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_9002(context, evt)
-- 调用提示id为 201190301 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201190301) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9003(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2201190091") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将configid为 9009 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 9010 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_9011(context, evt)
if 9012 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_9011(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220119009, 9012, {72}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9013(context, evt)
-- 判断是gadgetid 9012 option_id 72
if 9012 ~= evt.param1 then
return false
end
if 72 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9013(context, evt)
-- 删除指定group 220119009 ;指定config9012;物件身上指定option72
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220119009, 9012, 72) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 9010 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9014(context, evt)
-- 判断是gadgetid 9016 option_id 72
if 9016 ~= evt.param1 then
return false
end
if 72 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9014(context, evt)
-- 删除指定group 220119009 ;指定config9016;物件身上指定option72
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220119009, 9016, 72) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 9009 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_9015(context, evt)
if 9016 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_9015(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220119009, 9016, {72}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,220 @@
-- 基础信息
local base_info = {
group_id = 220119010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70360170, pos = { x = 13.687, y = -0.130, z = -13.490 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 10002, gadget_id = 70360001, pos = { x = 13.687, y = 0.240, z = -13.490 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 10005, shape = RegionShape.SPHERE, radius = 5, pos = { x = -1.628, y = 0.938, z = -22.153 } }
}
-- 触发器
triggers = {
{ config_id = 1010004, name = "GADGET_CREATE_10004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_10004", action = "action_EVENT_GADGET_CREATE_10004" },
{ config_id = 1010005, name = "ENTER_REGION_10005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" },
{ config_id = 1010006, name = "SELECT_OPTION_10006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_10006", action = "action_EVENT_SELECT_OPTION_10006", trigger_count = 0 },
{ config_id = 1010007, name = "SELECT_OPTION_10007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_10007", action = "action_EVENT_SELECT_OPTION_10007" },
{ config_id = 1010008, name = "TIMER_EVENT_10008", event = EventType.EVENT_TIMER_EVENT, source = "rotationtime", condition = "", action = "action_EVENT_TIMER_EVENT_10008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001 },
regions = { 10005 },
triggers = { "GADGET_CREATE_10004", "ENTER_REGION_10005", "SELECT_OPTION_10006", "SELECT_OPTION_10007", "TIMER_EVENT_10008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 10002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_10004(context, evt)
if 10002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_10004(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220119010, 10002, {324}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_10006(context, evt)
-- 判断是gadgetid 10002 option_id 324
if 10002 ~= evt.param1 then
return false
end
if 324 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_10006(context, evt)
--操作楼梯1升降
if ScriptLib.GetGroupVariableValueByGroup(context, "stairs1", 220119002) == 1 then
ScriptLib.SetGroupVariableValueByGroup(context, "stairs1", 3, 220119002)
elseif ScriptLib.GetGroupVariableValueByGroup(context, "stairs1", 220119002) == 3 then
ScriptLib.SetGroupVariableValueByGroup(context, "stairs1", 1, 220119002)
elseif ScriptLib.GetGroupVariableValueByGroup(context, "stairs1", 220119002) == 2 then
ScriptLib.SetGroupVariableValueByGroup(context, "stairs1", 4, 220119002)
elseif ScriptLib.GetGroupVariableValueByGroup(context, "stairs1", 220119002) == 4 then
ScriptLib.SetGroupVariableValueByGroup(context, "stairs1", 2, 220119002)
end
--操作楼梯2升降
if ScriptLib.GetGroupVariableValueByGroup(context, "stairs2", 220119003) == 1 then
ScriptLib.SetGroupVariableValueByGroup(context, "stairs2", 3, 220119003)
elseif ScriptLib.GetGroupVariableValueByGroup(context, "stairs2", 220119003) == 3 then
ScriptLib.SetGroupVariableValueByGroup(context, "stairs2", 1, 220119003)
elseif ScriptLib.GetGroupVariableValueByGroup(context, "stairs2", 220119003) == 2 then
ScriptLib.SetGroupVariableValueByGroup(context, "stairs2", 4, 220119003)
elseif ScriptLib.GetGroupVariableValueByGroup(context, "stairs2", 220119003) == 4 then
ScriptLib.SetGroupVariableValueByGroup(context, "stairs2", 2, 220119003)
end
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, 220119010, 10002, 324)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220119010, 10001, GadgetState.GearStart)
--加计时器回滚操作选项
ScriptLib.CreateGroupTimerEvent(context, 220119010, "rotationtime", 3)
--注目镜头
-- 触发镜头注目,注目位置为坐标(1,1,1),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=32, y=-4, z=-19}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_10007(context, evt)
-- 判断是gadgetid 10002 option_id 324
if 10002 ~= evt.param1 then
return false
end
if 324 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_10007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 9 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10008(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220119010, 10002, {324}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 10001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,224 @@
-- 基础信息
local base_info = {
group_id = 220119011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 11001, shape = RegionShape.SPHERE, radius = 5, pos = { x = 21.818, y = -4.235, z = 40.028 } },
{ config_id = 11002, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = -4.968, y = -6.818, z = 4.989 } },
{ config_id = 11003, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 32.353, y = 1.833, z = -46.916 } },
{ config_id = 11004, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = -8.390, y = 5.447, z = -28.329 } },
{ config_id = 11005, shape = RegionShape.CUBIC, size = { x = 20.000, y = 10.000, z = 10.000 }, pos = { x = 32.848, y = 14.623, z = -47.750 } },
{ config_id = 11006, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 33.653, y = 20.610, z = -63.255 } }
}
-- 触发器
triggers = {
{ config_id = 1011001, name = "ENTER_REGION_11001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11001", action = "action_EVENT_ENTER_REGION_11001" },
{ config_id = 1011002, name = "ENTER_REGION_11002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11002", action = "action_EVENT_ENTER_REGION_11002" },
{ config_id = 1011003, name = "ENTER_REGION_11003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11003", action = "action_EVENT_ENTER_REGION_11003" },
{ config_id = 1011004, name = "ENTER_REGION_11004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11004", action = "action_EVENT_ENTER_REGION_11004" },
{ config_id = 1011005, name = "ENTER_REGION_11005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11005", action = "action_EVENT_ENTER_REGION_11005" },
{ config_id = 1011006, name = "ENTER_REGION_11006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11006", action = "action_EVENT_ENTER_REGION_11006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 11001, 11002, 11003, 11004, 11005, 11006 },
triggers = { "ENTER_REGION_11001", "ENTER_REGION_11002", "ENTER_REGION_11003", "ENTER_REGION_11004", "ENTER_REGION_11005", "ENTER_REGION_11006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_11001(context, evt)
if evt.param1 ~= 11001 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_11001(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 11 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11002(context, evt)
if evt.param1 ~= 11002 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_11002(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 13 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11003(context, evt)
if evt.param1 ~= 11003 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_11003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 7 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220119007, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11004(context, evt)
if evt.param1 ~= 11004 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_11004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 11 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11005(context, evt)
if evt.param1 ~= 11005 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_11005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11006(context, evt)
if evt.param1 ~= 11006 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_11006(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220119013, suite = 11 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,107 @@
-- 基础信息
local base_info = {
group_id = 220119012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12014, monster_id = 25080201, pos = { x = 33.891, y = -10.841, z = 19.103 }, rot = { x = 0.000, y = 179.386, z = 0.000 }, level = 1, pose_id = 1004 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70220070, pos = { x = 24.050, y = -15.870, z = 48.077 }, rot = { x = 0.000, y = 198.690, z = 0.000 }, level = 1 },
{ config_id = 12002, gadget_id = 70220070, pos = { x = 26.267, y = -15.870, z = 48.041 }, rot = { x = 0.000, y = 165.429, z = 0.000 }, level = 1 },
{ config_id = 12003, gadget_id = 70220070, pos = { x = 24.873, y = -15.870, z = 35.261 }, rot = { x = 0.000, y = 344.034, z = 0.000 }, level = 1 },
{ config_id = 12004, gadget_id = 70220070, pos = { x = 27.090, y = -15.870, z = 35.279 }, rot = { x = 0.000, y = 17.294, z = 0.000 }, level = 1 },
{ config_id = 12007, gadget_id = 70900393, pos = { x = 49.644, y = -10.708, z = 28.533 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 12008, gadget_id = 70900393, pos = { x = 49.797, y = -10.695, z = 22.022 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 12009, gadget_id = 70220071, pos = { x = 51.547, y = -11.190, z = 9.236 }, rot = { x = 0.000, y = 275.266, z = 0.000 }, level = 1 },
{ config_id = 12010, gadget_id = 70220071, pos = { x = 51.349, y = -11.190, z = 7.016 }, rot = { x = 0.000, y = 275.926, z = 0.000 }, level = 1 },
{ config_id = 12011, gadget_id = 70220071, pos = { x = 51.395, y = -11.190, z = 4.774 }, rot = { x = 0.000, y = 260.846, z = 0.000 }, level = 1 },
{ config_id = 12012, gadget_id = 70220071, pos = { x = 26.197, y = -10.962, z = 14.167 }, rot = { x = 0.000, y = 98.647, z = 0.000 }, level = 1 },
{ config_id = 12013, gadget_id = 70220071, pos = { x = 26.257, y = -10.962, z = 16.409 }, rot = { x = 0.000, y = 83.567, z = 0.000 }, level = 1 },
{ config_id = 12015, gadget_id = 70220070, pos = { x = -6.001, y = -10.580, z = 10.170 }, rot = { x = 0.000, y = 197.680, z = 0.000 }, level = 1 },
{ config_id = 12016, gadget_id = 70220070, pos = { x = -3.804, y = -10.573, z = 10.145 }, rot = { x = 0.000, y = 162.580, z = 0.000 }, level = 1 },
{ config_id = 12017, gadget_id = 70900393, pos = { x = -30.699, y = -10.293, z = -17.211 }, rot = { x = 0.000, y = 93.156, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 12018, gadget_id = 70900393, pos = { x = -30.678, y = -10.317, z = -10.645 }, rot = { x = 0.000, y = 93.156, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 12019, gadget_id = 70220070, pos = { x = -25.136, y = -10.761, z = -15.893 }, rot = { x = 0.000, y = 101.685, z = 0.000 }, level = 1 },
{ config_id = 12020, gadget_id = 70220070, pos = { x = -24.913, y = -10.744, z = -13.696 }, rot = { x = 0.000, y = 90.489, z = 0.000 }, level = 1 },
{ config_id = 12021, gadget_id = 70220070, pos = { x = -24.903, y = -10.761, z = -11.454 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
{ config_id = 12022, gadget_id = 70220070, pos = { x = 34.728, y = 0.461, z = -44.011 }, rot = { x = 0.000, y = 282.159, z = 0.000 }, level = 1 },
{ config_id = 12023, gadget_id = 70220070, pos = { x = 34.669, y = 0.440, z = -46.240 }, rot = { x = 0.000, y = 262.311, z = 0.000 }, level = 1 },
{ config_id = 12024, gadget_id = 70211101, pos = { x = 57.809, y = 0.166, z = 12.660 }, rot = { x = 0.000, y = 177.807, z = 0.000 }, level = 1, drop_tag = "解谜低级稻妻", isOneoff = true, persistent = true },
{ config_id = 12025, gadget_id = 70211101, pos = { x = -2.294, y = -0.057, z = 10.627 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级稻妻", isOneoff = true, persistent = true },
{ config_id = 12026, gadget_id = 70211101, pos = { x = 42.868, y = 0.440, z = -46.219 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "解谜低级稻妻", isOneoff = true, persistent = true },
{ config_id = 12027, gadget_id = 70211011, pos = { x = 57.719, y = 9.359, z = -24.321 }, rot = { x = 0.000, y = 270.069, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", isOneoff = true, persistent = true },
{ config_id = 12028, gadget_id = 70900393, pos = { x = 11.544, y = -0.971, z = -9.515 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 12029, gadget_id = 70900393, pos = { x = 11.731, y = -0.984, z = -17.287 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 12030, gadget_id = 70211001, pos = { x = -23.414, y = 1.580, z = -0.429 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 12005, gadget_id = 70900393, pos = { x = 32.644, y = -15.875, z = 42.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 12006, gadget_id = 70900393, pos = { x = 32.524, y = -15.870, z = 33.993 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 12014 },
gadgets = { 12001, 12002, 12003, 12004, 12007, 12008, 12009, 12010, 12011, 12012, 12013, 12015, 12016, 12017, 12018, 12019, 12020, 12021, 12022, 12023, 12024, 12025, 12026, 12027, 12028, 12029, 12030 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,211 @@
-- 基础信息
local base_info = {
group_id = 220119013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70900201, pos = { x = 22.061, y = -4.528, z = 39.735 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13002, gadget_id = 70900201, pos = { x = 42.195, y = -10.075, z = 25.319 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13003, gadget_id = 70900201, pos = { x = 46.135, y = -9.213, z = 15.966 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13004, gadget_id = 70900201, pos = { x = 32.756, y = -10.065, z = 5.954 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13005, gadget_id = 70900201, pos = { x = 54.796, y = -0.199, z = 1.345 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13006, gadget_id = 70900201, pos = { x = 32.615, y = 2.738, z = -45.086 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13007, gadget_id = 70900201, pos = { x = -6.867, y = 4.087, z = -28.999 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13008, gadget_id = 70900201, pos = { x = 13.735, y = 0.229, z = -13.424 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13009, gadget_id = 70900201, pos = { x = 33.064, y = 12.975, z = -45.490 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13010, gadget_id = 70900201, pos = { x = 32.043, y = 18.098, z = -87.538 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13011, gadget_id = 70900201, pos = { x = 19.632, y = -9.392, z = 15.600 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13012, gadget_id = 70010006, pos = { x = 33.453, y = -10.866, z = 4.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13013, gadget_id = 70900201, pos = { x = -4.548, y = -9.187, z = 5.778 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13014, gadget_id = 70900201, pos = { x = 12.281, y = -8.560, z = -1.315 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 13002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 13003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 13004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 13005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 13006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 13007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 13008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 13009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { 13010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 11,
-- description = ,
monsters = { },
gadgets = { 13012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 12,
-- description = ,
monsters = { },
gadgets = { 13013 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 13,
-- description = ,
monsters = { },
gadgets = { 13014 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 14,
-- description = ,
monsters = { },
gadgets = { 13011 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 15,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,241 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 33.87625,
"y": 16.72,
"z": -132.8655
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 33.8762474,
"y": 16.7200012,
"z": -132.865479
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 32.16946,
"y": -9.218163,
"z": 8.511528
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 32.78686,
"y": -11.1899986,
"z": 9.550006
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 31.7666,
"y": 1.635841,
"z": -45.60491
},
"rot": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 10.0
},
"tranPos": {
"x": 31.7666,
"y": 0.434991926,
"z": -45.60491
},
"tranRot": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 8.705688,
"y": -0.9709993,
"z": -13.39371
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 8.705688,
"y": 0.490000069,
"z": -13.3938589
},
"tranRot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"5": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 33.10743,
"y": 15.30787,
"z": -46.87671
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 33.10743,
"y": 18.71869,
"z": -45.56352
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"6": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 33.10743,
"y": 14.84883,
"z": -46.87671
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 33.10743,
"y": 15.59888,
"z": -46.87671
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}
@@ -0,0 +1,196 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 32.81,
"y": -5.28,
"z": -13.54
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 32.81,
"y": -5.28,
"z": -13.54
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 32.81,
"y": 4.68,
"z": -13.54
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 32.81,
"y": 4.68,
"z": -13.54
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 2,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 32.81,
"y": -5.28,
"z": -25.71
},
"rotation": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 32.81,
"y": -5.28,
"z": -25.71
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 32.81,
"y": 4.68,
"z": -25.71
},
"rotation": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 32.81,
"y": 4.68,
"z": -25.71
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]