添加配置表

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

View File

@@ -0,0 +1,30 @@
-- 地图配置
scene_config = {
begin_pos = { x = -2567.7, z = -1677.0 },
size = { x = 4662.0, z = 3864.8 },
born_pos = { x = -135.593, y = 21.753, z = 43.557 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
born_point_list = {
{ pos = { x = -135.593, y = 21.753, z = 43.557 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
{ pos = { x = -133.235, y = 21.728, z = 41.702 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
{ pos = { x = -133.274, y = 21.710, z = 45.618 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
{ pos = { x = -131.124, y = 21.726, z = 43.557 }, rot = { x = 0.000, y = 270.000, z = 0.000 } }
},
die_y = 15,
city_id = 2,
vision_anchor = { x = -2567.7, z = -1677.0 }
}
-- 所有的区块
blocks = { 44003 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -2567.7, z = -1677.0 }, max = { x = 2094.3, z = 2187.8 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,11 @@
-- 所有的group
groups = {
{ id = 244003001, refresh_id = 1002, pos = { x = -165.674, y = 22.451, z = 43.178 } },
{ id = 244003002, refresh_id = 1001, pos = { x = -193.585, y = 21.669, z = 68.702 } },
{ id = 244003003, refresh_id = 1001, pos = { x = -190.071, y = 25.483, z = 125.931 } },
{ id = 244003004, refresh_id = 1002, pos = { x = -230.523, y = 27.821, z = 171.429 } },
{ id = 244003005, refresh_id = 1002, pos = { x = -300.097, y = 31.508, z = 170.604 } },
{ id = 244003006, refresh_id = 1001, pos = { x = -292.035, y = 31.750, z = 170.431 } },
{ id = 244003007, refresh_id = 1, pos = { x = -162.466, y = 21.538, z = 42.727 } },
{ id = 244003008, refresh_id = 1, pos = { x = -169.275, y = 21.552, z = 43.153 } }
}

View File

@@ -0,0 +1,138 @@
-- 基础信息
local base_info = {
group_id = 244003001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 21010901, pos = { x = -170.801, y = 21.585, z = 38.212 }, rot = { x = 0.000, y = 61.722, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 1002, monster_id = 21010901, pos = { x = -171.195, y = 21.591, z = 47.821 }, rot = { x = 0.000, y = 127.513, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 1003, monster_id = 21030501, pos = { x = -167.108, y = 21.552, z = 36.907 }, rot = { x = 0.000, y = 89.524, z = 0.000 }, level = 1, affix = { 4116 }, pose_id = 9012 },
{ config_id = 1004, monster_id = 21020601, pos = { x = -166.048, y = 21.552, z = 34.956 }, rot = { x = 0.000, y = 21.990, z = 0.000 }, level = 1, affix = { 4116 }, pose_id = 401 },
{ config_id = 1005, monster_id = 21011401, pos = { x = -165.916, y = 21.552, z = 39.131 }, rot = { x = 0.000, y = 174.471, z = 0.000 }, level = 1, affix = { 4116 }, pose_id = 9003 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1006, gadget_id = 70900007, pos = { x = -170.691, y = 21.552, z = 43.204 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, is_guest_can_operate = true },
{ config_id = 1007, gadget_id = 70350005, pos = { x = -184.134, y = 21.488, z = 43.005 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001008, name = "ANY_MONSTER_DIE_1008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1008", action = "action_EVENT_ANY_MONSTER_DIE_1008" },
{ config_id = 1001009, name = "GADGET_STATE_CHANGE_1009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1009", action = "action_EVENT_GADGET_STATE_CHANGE_1009" }
}
-- 变量
variables = {
{ config_id = 1, name = "isDead", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1001, 1002, 1003, 1004, 1005 },
gadgets = { 1006, 1007 },
regions = { },
triggers = { "ANY_MONSTER_DIE_1008", "GADGET_STATE_CHANGE_1009" },
rand_weight = 1
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1008(context, evt)
-- 将configid为 1006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-1702143持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-170, y=21, z=43}
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
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1009(context, evt)
if 1006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1009(context, evt)
-- 将configid为 1007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 244003008, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 244003008, 3)
return 0
end

View File

@@ -0,0 +1,86 @@
-- 基础信息
local base_info = {
group_id = 244003002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 20010801, pos = { x = -192.638, y = 21.612, z = 58.673 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 4116 } },
{ config_id = 2002, monster_id = 20010801, pos = { x = -189.111, y = 21.722, z = 61.896 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 4116 } },
{ config_id = 2003, monster_id = 20010801, pos = { x = -193.304, y = 21.686, z = 67.308 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 4116 } },
{ config_id = 2004, monster_id = 20010801, pos = { x = -198.968, y = 21.711, z = 80.137 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 4116 } },
{ config_id = 2005, monster_id = 20010801, pos = { x = -191.383, y = 21.717, z = 92.615 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 4116 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2006, gadget_id = 70350019, pos = { x = -194.594, y = 21.637, z = 45.360 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2007, gadget_id = 70350019, pos = { x = -190.613, y = 21.711, z = 57.702 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2008, gadget_id = 70350019, pos = { x = -195.970, y = 21.723, z = 71.598 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2009, gadget_id = 70350019, pos = { x = -197.767, y = 21.710, z = 81.982 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2010, gadget_id = 70350019, pos = { x = -191.355, y = 21.691, z = 90.069 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2011, gadget_id = 70350019, pos = { x = -195.608, y = 21.715, z = 100.647 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2012, gadget_id = 70350019, pos = { x = -197.014, y = 25.540, z = 129.738 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2013, gadget_id = 70350019, pos = { x = -190.346, y = 25.495, z = 121.950 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2014, gadget_id = 70350019, pos = { x = -183.195, y = 25.498, z = 128.166 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2015, gadget_id = 70350019, pos = { x = -197.120, y = 25.542, z = 117.294 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2001, 2002, 2003, 2004, 2005 },
gadgets = { 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 244003003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 20010901, pos = { x = -189.180, y = 25.527, z = 132.876 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 4116 } },
{ config_id = 3002, monster_id = 20010901, pos = { x = -191.793, y = 25.555, z = 132.914 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 4116 } },
{ config_id = 3003, monster_id = 20010801, pos = { x = -194.312, y = 25.569, z = 131.636 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 4116 } },
{ config_id = 3004, monster_id = 20010801, pos = { x = -187.089, y = 25.503, z = 131.630 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 4116 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3005, gadget_id = 70350005, pos = { x = -190.430, y = 25.232, z = 140.716 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003006, name = "ANY_MONSTER_DIE_3006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3006", action = "action_EVENT_ANY_MONSTER_DIE_3006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3005 },
regions = { },
triggers = { "ANY_MONSTER_DIE_3006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3001, 3002, 3003, 3004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3006(context, evt)
-- 将configid为 3005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 244003008, 5)
return 0
end

View File

@@ -0,0 +1,211 @@
-- 基础信息
local base_info = {
group_id = 244003004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 21020601, pos = { x = -210.521, y = 25.256, z = 165.775 }, rot = { x = 0.000, y = 68.515, z = 0.000 }, level = 1, affix = { 4116 } },
{ config_id = 4002, monster_id = 21020601, pos = { x = -211.401, y = 25.350, z = 176.538 }, rot = { x = 0.000, y = 105.581, z = 0.000 }, level = 1, affix = { 4116 } },
{ config_id = 4003, monster_id = 22010201, pos = { x = -215.425, y = 25.275, z = 171.131 }, rot = { x = 0.000, y = 89.775, z = 0.000 }, level = 1, affix = { 4116, 6107 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4004, gadget_id = 70350025, pos = { x = -256.950, y = 31.448, z = 171.555 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 4005, gadget_id = 70360002, pos = { x = -230.574, y = 27.821, z = 171.355 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_guest_can_operate = true }
}
-- 区域
regions = {
{ config_id = 4006, shape = RegionShape.CUBIC, size = { x = 5.000, y = 20.000, z = 40.000 }, pos = { x = -203.876, y = 33.621, z = 171.412 } }
}
-- 触发器
triggers = {
{ config_id = 1004006, name = "ENTER_REGION_4006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4006", action = "action_EVENT_ENTER_REGION_4006", forbid_guest = false },
{ config_id = 1004007, name = "GADGET_STATE_CHANGE_4007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4007", action = "action_EVENT_GADGET_STATE_CHANGE_4007" },
{ config_id = 1004008, name = "ANY_MONSTER_DIE_4008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4008", action = "action_EVENT_ANY_MONSTER_DIE_4008" },
{ config_id = 1004009, name = "SELECT_OPTION_4009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4009", action = "action_EVENT_SELECT_OPTION_4009", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4004, 4005 },
regions = { 4006 },
triggers = { "ENTER_REGION_4006", "GADGET_STATE_CHANGE_4007", "ANY_MONSTER_DIE_4008", "SELECT_OPTION_4009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4001, 4002, 4003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_4006(context, evt)
if evt.param1 ~= 4006 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_4006(context, evt)
-- 将configid为 4005 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4005, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4007(context, evt)
if 4005 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 244003004, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4008(context, evt)
-- 将configid为 4005 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 244003004, 4005, {214}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 触发镜头注目,注目位置为坐标(-23027171持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-230, y=27, z=171}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4009(context, evt)
-- 判断是gadgetid 4005 option_id 214
if 4005 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4009(context, evt)
-- 删除指定group 244003004 指定config4005物件身上指定option214
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 244003004, 4005, 214) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 4005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 244003008, 5)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 244003008, 6)
return 0
end

View File

@@ -0,0 +1,143 @@
-- 基础信息
local base_info = {
group_id = 244003005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 21020401, pos = { x = -290.767, y = 31.754, z = 170.786 }, rot = { x = 0.000, y = 51.360, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6110 }, pose_id = 401 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "ANY_MONSTER_DIE_5002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5002", action = "action_EVENT_ANY_MONSTER_DIE_5002" },
{ config_id = 1005014, name = "SPECIFIC_MONSTER_HP_CHANGE_5014", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "5001", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_5014", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_5014" }
}
-- 变量
variables = {
{ config_id = 1, name = "SummonWave", value = 2, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 5001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_5002", "SPECIFIC_MONSTER_HP_CHANGE_5014" },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5002(context, evt)
--判断死亡怪物的configid是否为 5001
if evt.param1 ~= 5001 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5002(context, evt)
-- 杀死Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244003006, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_5014(context, evt)
--[[判断指定configid的怪物的血量小于%80时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 80 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_5014(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 244003006, 2)
return 0
end

View File

@@ -0,0 +1,143 @@
-- 基础信息
local base_info = {
group_id = 244003006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 21011301, pos = { x = -292.040, y = 31.503, z = 165.428 }, rot = { x = 0.000, y = 58.100, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6002, monster_id = 21011401, pos = { x = -289.970, y = 31.523, z = 162.279 }, rot = { x = 0.000, y = 58.100, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6003, monster_id = 21011301, pos = { x = -292.080, y = 31.761, z = 174.494 }, rot = { x = 0.000, y = 120.498, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6004, monster_id = 21011401, pos = { x = -289.611, y = 31.538, z = 177.436 }, rot = { x = 0.000, y = 120.498, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6005, monster_id = 21010901, pos = { x = -292.048, y = 31.505, z = 165.458 }, rot = { x = 0.000, y = 58.100, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6006, monster_id = 21010701, pos = { x = -289.978, y = 31.522, z = 162.310 }, rot = { x = 0.000, y = 58.100, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6007, monster_id = 21010901, pos = { x = -292.089, y = 31.761, z = 174.525 }, rot = { x = 0.000, y = 120.498, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6008, monster_id = 21010701, pos = { x = -289.619, y = 31.538, z = 177.467 }, rot = { x = 0.000, y = 120.498, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6009, monster_id = 20010801, pos = { x = -292.131, y = 31.494, z = 165.303 }, rot = { x = 0.000, y = 58.100, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6010, monster_id = 20010801, pos = { x = -290.061, y = 31.534, z = 162.155 }, rot = { x = 0.000, y = 58.100, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6011, monster_id = 20010801, pos = { x = -292.171, y = 31.762, z = 174.370 }, rot = { x = 0.000, y = 120.498, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } },
{ config_id = 6012, monster_id = 20010801, pos = { x = -289.702, y = 31.541, z = 177.313 }, rot = { x = 0.000, y = 120.498, z = 0.000 }, level = 1, disableWander = true, affix = { 4116, 6111 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006013, name = "ANY_MONSTER_DIE_6013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6013", action = "", trigger_count = 0 },
{ config_id = 1006014, name = "ANY_MONSTER_DIE_6014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6014", action = "", trigger_count = 0 },
{ config_id = 1006015, name = "ANY_MONSTER_DIE_6015", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6015", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { 6001, 6002, 6003, 6004 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6013" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 6005, 6006, 6007, 6008 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6014" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 6009, 6010, 6011, 6012 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6013(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6014(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6015(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end

View File

@@ -0,0 +1,92 @@
-- 基础信息
local base_info = {
group_id = 244003007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70220011, pos = { x = -165.329, y = 21.551, z = 36.938 }, rot = { x = 0.000, y = 88.610, z = 0.000 }, level = 1 },
{ config_id = 7002, gadget_id = 70220013, pos = { x = -168.770, y = 21.580, z = 53.433 }, rot = { x = 0.000, y = 322.399, z = 0.000 }, level = 1 },
{ config_id = 7003, gadget_id = 70220013, pos = { x = -167.274, y = 21.576, z = 55.405 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7004, gadget_id = 70220013, pos = { x = -169.992, y = 21.592, z = 56.121 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7005, gadget_id = 70220013, pos = { x = -150.553, y = 21.552, z = 28.559 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7006, gadget_id = 70220013, pos = { x = -153.065, y = 21.552, z = 28.288 }, rot = { x = 0.000, y = 313.719, z = 0.000 }, level = 1 },
{ config_id = 7007, gadget_id = 70220014, pos = { x = -151.809, y = 21.602, z = 30.609 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7008, gadget_id = 70220055, pos = { x = -196.118, y = 21.563, z = 50.255 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7009, gadget_id = 70220055, pos = { x = -188.207, y = 21.598, z = 54.117 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7010, gadget_id = 70220055, pos = { x = -200.621, y = 21.640, z = 79.093 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7011, gadget_id = 70220055, pos = { x = -192.965, y = 25.516, z = 113.565 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7012, gadget_id = 70220055, pos = { x = -192.988, y = 25.433, z = 120.875 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7013, gadget_id = 70220055, pos = { x = -197.209, y = 25.457, z = 128.913 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7014, gadget_id = 70220043, pos = { x = -172.062, y = 21.651, z = 49.642 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7015, gadget_id = 70220043, pos = { x = -174.242, y = 21.603, z = 48.756 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7016, gadget_id = 70220055, pos = { x = -270.784, y = 31.453, z = 161.119 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7017, gadget_id = 70220055, pos = { x = -279.058, y = 31.542, z = 172.036 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7018, gadget_id = 70220055, pos = { x = -279.236, y = 31.556, z = 157.018 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7019, gadget_id = 70220055, pos = { x = -294.586, y = 31.690, z = 167.952 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7020, gadget_id = 70220055, pos = { x = -292.786, y = 31.545, z = 181.761 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7021, gadget_id = 70220055, pos = { x = -265.432, y = 31.468, z = 171.186 }, 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 = { 7001, 7002, 7003, 7004, 7005, 7006, 7007, 7008, 7009, 7010, 7011, 7012, 7013, 7014, 7015, 7016, 7017, 7018, 7019, 7020, 7021 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,177 @@
-- 基础信息
local base_info = {
group_id = 244003008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70900201, pos = { x = -170.618, y = 23.565, z = 43.204 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8002, gadget_id = 70900201, pos = { x = -193.575, y = 24.103, z = 42.863 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8003, gadget_id = 70900201, pos = { x = -190.282, y = 27.394, z = 129.425 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8004, gadget_id = 70900201, pos = { x = -230.609, y = 29.165, z = 171.378 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 8006, shape = RegionShape.CUBIC, size = { x = 5.000, y = 20.000, z = 40.000 }, pos = { x = -190.045, y = 26.662, z = 43.214 } },
{ config_id = 8007, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 5.000 }, pos = { x = -190.644, y = 29.260, z = 115.260 } }
}
-- 触发器
triggers = {
{ config_id = 1008006, name = "ENTER_REGION_8006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8006", action = "action_EVENT_ENTER_REGION_8006", forbid_guest = false },
{ config_id = 1008007, name = "ENTER_REGION_8007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8007", action = "action_EVENT_ENTER_REGION_8007", forbid_guest = false }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 8005, gadget_id = 70900201, pos = { x = -301.688, y = 33.985, z = 170.461 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 8006, 8007 },
triggers = { "ENTER_REGION_8006", "ENTER_REGION_8007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 8001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 8002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 8003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 8004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_8006(context, evt)
if evt.param1 ~= 8006 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_8006(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 244003008, 3)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 244003008, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8007(context, evt)
if evt.param1 ~= 8007 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_8007(context, evt)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 244003008, 4)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 244003003, 2)
return 0
end

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,23 @@
[
{
"area_id": 10002,
"points": [
{
"x": -339.96698,
"y": 63.6770325
},
{
"x": -143.397736,
"y": -0.97428894
},
{
"x": -143.365,
"y": 261.216766
},
{
"x": -353.775146,
"y": 286.931
}
]
}
]