添加配置表

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

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -671.9, z = -415.6 },
size = { x = 1393.4, z = 1200.3 },
born_pos = { x = -98.629, y = 33.166, z = 21.425 },
born_rot = { x = 0.000, y = 318.813, z = 0.000 },
die_y = 0,
city_id = 2,
vision_anchor = { x = -671.9, z = -415.6 }
}
-- 所有的区块
blocks = { 40015 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -671.9, z = -415.6 }, max = { x = 721.5, z = 784.8 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,18 @@
-- 所有的group
groups = {
{ id = 240015001, refresh_id = 1, pos = { x = -101.104, y = 33.310, z = 16.393 } },
{ id = 240015002, refresh_id = 1, pos = { x = -136.855, y = 36.476, z = 91.807 } },
{ id = 240015003, refresh_id = 1001, pos = { x = -91.524, y = 60.155, z = 153.491 } },
{ id = 240015004, refresh_id = 1001, pos = { x = -136.560, y = 37.295, z = 82.459 } },
{ id = 240015005, refresh_id = 1001, pos = { x = -135.564, y = 37.277, z = 80.753 } },
{ id = 240015006, refresh_id = 1001, pos = { x = -115.676, y = 47.045, z = 147.443 } },
{ id = 240015007, refresh_id = 1001, pos = { x = -20.544, y = 65.552, z = 106.257 } },
{ id = 240015008, refresh_id = 1002, pos = { x = -1.823, y = 69.508, z = 77.433 } },
{ id = 240015009, refresh_id = 1002, pos = { x = -136.015, y = 37.284, z = 81.352 } },
{ id = 240015010, pos = { x = -136.096, y = 37.292, z = 82.218 } },
{ id = 240015011, refresh_id = 1, pos = { x = -135.218, y = 37.280, z = 81.176 } },
{ id = 240015012, refresh_id = 1, pos = { x = -47.160, y = 60.257, z = 164.672 } },
{ id = 240015013, refresh_id = 1, pos = { x = -71.851, y = 63.308, z = 141.478 } },
{ id = 240015014, refresh_id = 1, pos = { x = -136.620, y = 37.294, z = 82.553 } },
{ id = 240015015, refresh_id = 1001, pos = { x = -2.386, y = 69.508, z = 76.722 } }
}

View File

@@ -0,0 +1,241 @@
-- 基础信息
local base_info = {
group_id = 240015001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70310032, pos = { x = -111.117, y = 33.551, z = 34.218 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70310032, pos = { x = -115.210, y = 33.715, z = 37.230 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70310032, pos = { x = -116.620, y = 33.180, z = 39.140 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1005, shape = RegionShape.SPHERE, radius = 15, pos = { x = -104.301, y = 33.831, z = 24.115 } }
}
-- 触发器
triggers = {
{ config_id = 1001005, name = "ENTER_REGION_1005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1005", action = "action_EVENT_ENTER_REGION_1005" },
{ config_id = 1001006, name = "ANY_GADGET_DIE_1006", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_1006", action = "action_EVENT_ANY_GADGET_DIE_1006", trigger_count = 0 },
{ config_id = 1001007, name = "ANY_GADGET_DIE_1007", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_1007", action = "action_EVENT_ANY_GADGET_DIE_1007", trigger_count = 0 },
{ config_id = 1001008, name = "ANY_GADGET_DIE_1008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_1008", action = "action_EVENT_ANY_GADGET_DIE_1008", trigger_count = 0 },
{ config_id = 1001010, name = "TIMER_EVENT_1010", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_1010", trigger_count = 0 },
{ config_id = 1001011, name = "TIMER_EVENT_1011", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_1011", trigger_count = 0 },
{ config_id = 1001012, name = "TIMER_EVENT_1012", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_1012", trigger_count = 0 },
{ config_id = 1001015, name = "TIMER_EVENT_1015", event = EventType.EVENT_TIMER_EVENT, source = "time0", condition = "", action = "action_EVENT_TIMER_EVENT_1015" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1003 },
regions = { 1005 },
triggers = { "ENTER_REGION_1005", "ANY_GADGET_DIE_1006", "ANY_GADGET_DIE_1007", "ANY_GADGET_DIE_1008", "TIMER_EVENT_1010", "TIMER_EVENT_1011", "TIMER_EVENT_1012", "TIMER_EVENT_1015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1005(context, evt)
if evt.param1 ~= 1005 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_1005(context, evt)
-- 延迟0.5秒后,向groupId为240015001的对象,请求一次调用,并将string参数"time0" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015001, "time0", 0.5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_1006(context, evt)
if 1001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_1006(context, evt)
-- 延迟3秒后,向groupId为240015001的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015001, "time1", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_1007(context, evt)
if 1002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_1007(context, evt)
-- 延迟3秒后,向groupId为240015001的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015001, "time2", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_1008(context, evt)
if 1003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_1008(context, evt)
-- 延迟3秒后,向groupId为240015001的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015001, "time3", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1010(context, evt)
-- 创建id为1001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1011(context, evt)
-- 创建id为1002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1012(context, evt)
-- 创建id为1003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1015(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,241 @@
-- 基础信息
local base_info = {
group_id = 240015002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70310032, pos = { x = -130.665, y = 37.900, z = 105.408 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70310032, pos = { x = -126.886, y = 39.016, z = 106.061 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70310032, pos = { x = -117.941, y = 41.693, z = 115.405 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70310032, pos = { x = -119.190, y = 42.896, z = 120.129 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2005, gadget_id = 70310032, pos = { x = -120.249, y = 44.034, z = 125.182 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 70310032, pos = { x = -121.712, y = 45.524, z = 129.676 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2007, gadget_id = 70310032, pos = { x = -123.515, y = 40.093, z = 106.339 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002008, name = "GADGET_CREATE_2008", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2008", action = "action_EVENT_GADGET_CREATE_2008", trigger_count = 0 },
{ config_id = 1002009, name = "GADGET_CREATE_2009", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2009", action = "action_EVENT_GADGET_CREATE_2009", trigger_count = 0 },
{ config_id = 1002010, name = "TIMER_EVENT_2010", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_2010", trigger_count = 0 },
{ config_id = 1002011, name = "TIMER_EVENT_2011", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_2011", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GADGET_CREATE_2008", "GADGET_CREATE_2009", "TIMER_EVENT_2010", "TIMER_EVENT_2011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2001, 2003, 2005, 2007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2002, 2004, 2006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_2008(context, evt)
if 2001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2008(context, evt)
-- 延迟5秒后,向groupId为240015002的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015002, "time1", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_2009(context, evt)
if 2002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2009(context, evt)
-- 延迟5秒后,向groupId为240015002的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015002, "time2", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2010(context, evt)
-- 创建id为2002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2011(context, evt)
-- 创建id为2001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,576 @@
-- 基础信息
local base_info = {
group_id = 240015003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3025, monster_id = 25010201, pos = { x = -91.632, y = 63.419, z = 151.686 }, rot = { x = 0.000, y = 209.396, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3026, monster_id = 25010201, pos = { x = -92.300, y = 63.373, z = 148.552 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3027, monster_id = 25020201, pos = { x = -89.929, y = 63.373, z = 148.473 }, rot = { x = 0.000, y = 316.934, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3002, gadget_id = 70310032, pos = { x = -75.423, y = 62.302, z = 141.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70310032, pos = { x = -70.363, y = 62.865, z = 139.418 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70310032, pos = { x = -66.055, y = 63.663, z = 135.595 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3005, gadget_id = 70310032, pos = { x = -61.877, y = 64.760, z = 132.539 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3006, gadget_id = 70310032, pos = { x = -42.955, y = 66.088, z = 121.883 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3007, gadget_id = 70310032, pos = { x = -39.578, y = 65.525, z = 119.898 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3008, gadget_id = 70310032, pos = { x = -36.141, y = 65.203, z = 117.917 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3009, gadget_id = 70310032, pos = { x = -32.544, y = 64.554, z = 116.789 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3020, gadget_id = 70310032, pos = { x = -57.097, y = 65.726, z = 130.684 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3021, gadget_id = 70310032, pos = { x = -46.681, y = 67.031, z = 123.641 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3001, shape = RegionShape.SPHERE, radius = 8, pos = { x = -91.286, y = 62.266, z = 153.882 } }
}
-- 触发器
triggers = {
{ config_id = 1003001, name = "ENTER_REGION_3001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3001", action = "" },
{ config_id = 1003010, name = "GADGET_CREATE_3010", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3010", action = "action_EVENT_GADGET_CREATE_3010", trigger_count = 0 },
{ config_id = 1003011, name = "GADGET_CREATE_3011", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3011", action = "action_EVENT_GADGET_CREATE_3011", trigger_count = 0 },
{ config_id = 1003012, name = "GADGET_CREATE_3012", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3012", action = "action_EVENT_GADGET_CREATE_3012", trigger_count = 0 },
{ config_id = 1003013, name = "GADGET_CREATE_3013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3013", action = "action_EVENT_GADGET_CREATE_3013", trigger_count = 0 },
{ config_id = 1003014, name = "TIMER_EVENT_3014", event = EventType.EVENT_TIMER_EVENT, source = "time5", condition = "condition_EVENT_TIMER_EVENT_3014", action = "action_EVENT_TIMER_EVENT_3014", trigger_count = 0 },
{ config_id = 1003015, name = "TIMER_EVENT_3015", event = EventType.EVENT_TIMER_EVENT, source = "time4", condition = "condition_EVENT_TIMER_EVENT_3015", action = "action_EVENT_TIMER_EVENT_3015", trigger_count = 0 },
{ config_id = 1003016, name = "TIMER_EVENT_3016", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "condition_EVENT_TIMER_EVENT_3016", action = "action_EVENT_TIMER_EVENT_3016", trigger_count = 0 },
{ config_id = 1003017, name = "TIMER_EVENT_3017", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_3017", trigger_count = 0 },
{ config_id = 1003018, name = "TIMER_EVENT_3018", event = EventType.EVENT_TIMER_EVENT, source = "time4", condition = "condition_EVENT_TIMER_EVENT_3018", action = "action_EVENT_TIMER_EVENT_3018", trigger_count = 0 },
{ config_id = 1003019, name = "TIMER_EVENT_3019", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "condition_EVENT_TIMER_EVENT_3019", action = "action_EVENT_TIMER_EVENT_3019", trigger_count = 0 },
{ config_id = 1003022, name = "GADGET_CREATE_3022", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3022", action = "action_EVENT_GADGET_CREATE_3022", trigger_count = 0 },
{ config_id = 1003023, name = "TIMER_EVENT_3023", event = EventType.EVENT_TIMER_EVENT, source = "time6", condition = "", action = "action_EVENT_TIMER_EVENT_3023", trigger_count = 0 },
{ config_id = 1003024, name = "TIMER_EVENT_3024", event = EventType.EVENT_TIMER_EVENT, source = "time5", condition = "condition_EVENT_TIMER_EVENT_3024", action = "action_EVENT_TIMER_EVENT_3024", trigger_count = 0 },
{ config_id = 1003028, name = "ANY_MONSTER_DIE_3028", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3028", action = "action_EVENT_ANY_MONSTER_DIE_3028" }
}
-- 变量
variables = {
{ config_id = 1, name = "dir", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3025, 3026, 3027 },
gadgets = { },
regions = { 3001 },
triggers = { "ENTER_REGION_3001", "GADGET_CREATE_3010", "GADGET_CREATE_3011", "GADGET_CREATE_3012", "GADGET_CREATE_3013", "TIMER_EVENT_3014", "TIMER_EVENT_3015", "TIMER_EVENT_3016", "TIMER_EVENT_3017", "TIMER_EVENT_3018", "TIMER_EVENT_3019", "GADGET_CREATE_3022", "TIMER_EVENT_3023", "TIMER_EVENT_3024", "ANY_MONSTER_DIE_3028" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3020, 3021 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3001(context, evt)
if evt.param1 ~= 3001 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_3010(context, evt)
if 3005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3010(context, evt)
-- 延迟5秒后,向groupId为240015003的对象,请求一次调用,并将string参数"time5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015003, "time5", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_3011(context, evt)
if 3004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3011(context, evt)
-- 延迟5秒后,向groupId为240015003的对象,请求一次调用,并将string参数"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015003, "time4", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_3012(context, evt)
if 3003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3012(context, evt)
-- 延迟5秒后,向groupId为240015003的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015003, "time3", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_3013(context, evt)
if 3002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3013(context, evt)
-- 延迟5秒后,向groupId为240015003的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015003, "time2", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 将本组内变量名为 "dir" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "dir", 1, 240015003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_3014(context, evt)
-- 判断变量"dir"为0
if ScriptLib.GetGroupVariableValue(context, "dir") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3014(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为3004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为3007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_3015(context, evt)
-- 判断变量"dir"为0
if ScriptLib.GetGroupVariableValue(context, "dir") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3015(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为3003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为3008的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_3016(context, evt)
-- 判断变量"dir"为0
if ScriptLib.GetGroupVariableValue(context, "dir") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3016(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为3002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为3009的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3017(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为3003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为3008的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_3018(context, evt)
-- 判断变量"dir"为1
if ScriptLib.GetGroupVariableValue(context, "dir") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3018(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为3005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为3006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_3019(context, evt)
-- 判断变量"dir"为1
if ScriptLib.GetGroupVariableValue(context, "dir") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3019(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为3004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为3007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_3022(context, evt)
if 3020 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3022(context, evt)
-- 延迟5秒后,向groupId为240015003的对象,请求一次调用,并将string参数"time6" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015003, "time6", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 变量"dir"赋值为0
ScriptLib.SetGroupVariableValue(context, "dir", 0)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3023(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为3005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为3006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_3024(context, evt)
-- 判断变量"dir"为1
if ScriptLib.GetGroupVariableValue(context, "dir") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3024(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为3020的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为3021的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3028(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3028(context, evt)
-- 触发镜头注目,注目位置为坐标(-5765130持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-57, y=65, z=130}
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
-- 创建id为3020的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为3021的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end

View File

@@ -0,0 +1,226 @@
-- 基础信息
local base_info = {
group_id = 240015004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 25010401, pos = { x = -140.639, y = 37.226, z = 86.125 }, rot = { x = 0.000, y = 159.014, z = 0.000 }, level = 1 },
{ config_id = 4002, monster_id = 25010601, pos = { x = -131.547, y = 37.213, z = 86.156 }, rot = { x = 0.000, y = 200.832, z = 0.000 }, level = 1 },
{ config_id = 4003, monster_id = 25010201, pos = { x = -143.491, y = 37.234, z = 78.105 }, rot = { x = 0.000, y = 198.371, z = 0.000 }, level = 1 },
{ config_id = 4004, monster_id = 25010701, pos = { x = -131.261, y = 37.217, z = 79.654 }, rot = { x = 0.000, y = 192.568, z = 0.000 }, level = 1 },
{ config_id = 4005, monster_id = 25010401, pos = { x = -144.780, y = 37.220, z = 85.153 }, rot = { x = 0.000, y = 125.521, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4009, gadget_id = 70350070, pos = { x = -116.620, y = 33.180, z = 39.140 }, rot = { x = 294.700, y = 308.808, z = 178.700 }, level = 1 },
{ config_id = 4013, gadget_id = 70211012, pos = { x = -136.566, y = 37.225, z = 92.537 }, rot = { x = 0.000, y = 180.920, z = 0.000 }, level = 21, drop_tag = "战斗中级璃月", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 4014, gadget_id = 70360002, pos = { x = -136.568, y = 37.367, z = 102.430 }, rot = { x = 0.000, y = 178.765, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 4015, gadget_id = 70350072, pos = { x = -126.481, y = 39.680, z = 105.403 }, rot = { x = 281.340, y = 72.541, z = 182.299 }, level = 1 },
{ config_id = 4016, gadget_id = 70350070, pos = { x = -119.400, y = 44.010, z = 123.390 }, rot = { x = 282.700, y = 349.531, z = 179.640 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 4008, shape = RegionShape.SPHERE, radius = 5, pos = { x = -102.373, y = 33.260, z = 25.670 } }
}
-- 触发器
triggers = {
{ config_id = 1004008, name = "ENTER_REGION_4008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4008", action = "action_EVENT_ENTER_REGION_4008" },
{ config_id = 1004010, name = "ANY_MONSTER_DIE_4010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4010", action = "action_EVENT_ANY_MONSTER_DIE_4010" },
{ config_id = 1004011, name = "GADGET_STATE_CHANGE_4011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4011", action = "action_EVENT_GADGET_STATE_CHANGE_4011" },
{ config_id = 1004012, name = "SELECT_OPTION_4012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4012", action = "action_EVENT_SELECT_OPTION_4012" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4001, 4002, 4003, 4004, 4005 },
gadgets = { 4009, 4013, 4014, 4015, 4016 },
regions = { 4008 },
triggers = { "ENTER_REGION_4008", "ANY_MONSTER_DIE_4010", "GADGET_STATE_CHANGE_4011", "SELECT_OPTION_4012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_4008(context, evt)
if evt.param1 ~= 4008 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_4008(context, evt)
-- 将configid为 4009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4010(context, evt)
-- 将configid为 4014 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4014, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4013 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4013, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-13637102持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-136, y=37, z=102}
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_4011(context, evt)
if 4014 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4011(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240015004, 4014, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4012(context, evt)
-- 判断是gadgetid 4014 option_id 7
if 4014 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4012(context, evt)
-- 删除指定group 240015004 指定config4014物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240015004, 4014, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 4014 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4014, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240015011, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240015011, 2)
-- 触发镜头注目,注目位置为坐标(-11641107持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-116, y=41, z=107}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 将configid为 4015 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4015, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4016 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4016, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,105 @@
-- 基础信息
local base_info = {
group_id = 240015005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 25010501, pos = { x = -139.643, y = 37.255, z = 84.419 }, rot = { x = 0.000, y = 150.363, z = 0.000 }, level = 1 },
{ config_id = 5002, monster_id = 25010301, pos = { x = -130.551, y = 37.212, z = 84.451 }, rot = { x = 0.000, y = 219.055, z = 0.000 }, level = 1 },
{ config_id = 5003, monster_id = 25030201, pos = { x = -142.495, y = 37.221, z = 76.400 }, rot = { x = 0.000, y = 74.797, z = 0.000 }, level = 1 },
{ config_id = 5004, monster_id = 25030201, pos = { x = -130.265, y = 37.211, z = 77.948 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5005, monster_id = 25020201, pos = { x = -143.784, y = 37.233, z = 83.447 }, rot = { x = 0.000, y = 158.133, z = 0.000 }, level = 1 },
{ config_id = 5006, monster_id = 25030201, pos = { x = -135.421, y = 37.227, z = 76.721 }, rot = { x = 0.000, y = 32.003, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005007, name = "ANY_MONSTER_DIE_5007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5007", action = "action_EVENT_ANY_MONSTER_DIE_5007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_5007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 5001, 5002, 5003, 5004, 5005, 5006 },
gadgets = { },
regions = { },
triggers = { },
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)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240015009, 2)
return 0
end

View File

@@ -0,0 +1,184 @@
-- 基础信息
local base_info = {
group_id = 240015006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 25010301, pos = { x = -118.916, y = 47.058, z = 152.927 }, rot = { x = 0.000, y = 30.788, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 6002, monster_id = 25010501, pos = { x = -120.495, y = 47.043, z = 154.986 }, rot = { x = 0.000, y = 115.949, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 6009, monster_id = 25010501, pos = { x = -116.729, y = 47.041, z = 153.354 }, rot = { x = 0.000, y = 297.860, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6003, gadget_id = 70690008, pos = { x = -125.545, y = 44.391, z = 147.689 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6004, gadget_id = 70360002, pos = { x = -122.409, y = 47.044, z = 157.429 }, rot = { x = 0.000, y = 104.789, z = 0.000 }, level = 1, state = GadgetState.GearStop }
}
-- 区域
regions = {
{ config_id = 6008, shape = RegionShape.SPHERE, radius = 7, pos = { x = -125.387, y = 68.397, z = 148.130 } }
}
-- 触发器
triggers = {
{ config_id = 1006006, name = "ANY_MONSTER_DIE_6006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6006", action = "action_EVENT_ANY_MONSTER_DIE_6006" },
{ config_id = 1006007, name = "SELECT_OPTION_6007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6007", action = "action_EVENT_SELECT_OPTION_6007" },
{ 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" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6001, 6002, 6009 },
gadgets = { 6004 },
regions = { 6008 },
triggers = { "ANY_MONSTER_DIE_6006", "SELECT_OPTION_6007", "ENTER_REGION_6008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 将configid为 6004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240015006, 6004, {2}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6007(context, evt)
-- 判断是gadgetid 6004 option_id 2
if 6004 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6007(context, evt)
-- 删除指定group 240015006 指定config6004物件身上指定option2
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240015006, 6004, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将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
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240015006, 2)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240015011, 4)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240015011, 3)
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)
-- 触发镜头注目,注目位置为坐标(-9163148持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-91, y=63, z=148}
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

View File

@@ -0,0 +1,112 @@
-- 基础信息
local base_info = {
group_id = 240015007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7002, monster_id = 25060101, pos = { x = -17.671, y = 65.522, z = 108.925 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7003, monster_id = 25060101, pos = { x = -23.779, y = 65.506, z = 106.099 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7004, monster_id = 25010401, pos = { x = -14.526, y = 65.505, z = 105.066 }, rot = { x = 0.000, y = 320.169, z = 0.000 }, level = 1 },
{ config_id = 7005, monster_id = 25010601, pos = { x = -20.188, y = 65.501, z = 100.929 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70950011, pos = { x = -10.114, y = 69.449, z = 90.986 }, rot = { x = 0.000, y = 326.846, z = 0.000 }, level = 1 },
{ config_id = 7007, gadget_id = 70950011, pos = { x = 4.385, y = 70.160, z = 100.998 }, rot = { x = 0.000, y = 326.846, z = 0.000 }, level = 1 },
{ config_id = 7008, gadget_id = 70950011, pos = { x = -29.327, y = 71.067, z = 79.054 }, rot = { x = 0.000, y = 328.604, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007006, name = "ANY_MONSTER_DIE_7006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7006", action = "action_EVENT_ANY_MONSTER_DIE_7006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 7002, 7003, 7004, 7005 },
gadgets = { 7001, 7007, 7008 },
regions = { },
triggers = { "ANY_MONSTER_DIE_7006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7006(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240015007, EntityType.GADGET, 7001 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240015007, EntityType.GADGET, 7007 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240015007, EntityType.GADGET, 7008 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end

View File

@@ -0,0 +1,139 @@
-- 基础信息
local base_info = {
group_id = 240015008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 23020101, pos = { x = 1.583, y = 69.508, z = 72.298 }, rot = { x = 0.000, y = 329.717, z = 0.000 }, level = 1 },
{ config_id = 8017, monster_id = 25010301, pos = { x = 6.787, y = 69.434, z = 73.615 }, rot = { x = 0.000, y = 309.573, z = 0.000 }, level = 1 },
{ config_id = 8018, monster_id = 25070101, pos = { x = 3.481, y = 69.504, z = 81.696 }, rot = { x = 0.000, y = 279.425, z = 0.000 }, level = 1 },
{ config_id = 8019, monster_id = 25010201, pos = { x = -8.290, y = 69.504, z = 74.807 }, rot = { x = 0.000, y = 340.247, z = 0.000 }, level = 1 },
{ config_id = 8021, monster_id = 25010301, pos = { x = -0.803, y = 69.433, z = 68.060 }, rot = { x = 0.000, y = 340.247, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8007, gadget_id = 70211022, pos = { x = 3.522, y = 69.504, z = 69.536 }, rot = { x = 0.000, y = 328.774, z = 0.000 }, level = 21, drop_tag = "战斗高级璃月", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 8003, shape = RegionShape.SPHERE, radius = 25, pos = { x = 6.264, y = 69.504, z = 64.546 } }
}
-- 触发器
triggers = {
{ config_id = 1008002, name = "ANY_MONSTER_DIE_8002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8002", action = "action_EVENT_ANY_MONSTER_DIE_8002" },
{ config_id = 1008003, name = "ENTER_REGION_8003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8003", action = "action_EVENT_ENTER_REGION_8003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8007 },
regions = { 8003 },
triggers = { "ANY_MONSTER_DIE_8002", "ENTER_REGION_8003" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 8001, 8017, 8018, 8019, 8021 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8002(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8002(context, evt)
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240015011, 6)
-- 将configid为 8007 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8003(context, evt)
if evt.param1 ~= 8003 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_8003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240015015, 2)
-- 将configid为 8007 的物件更改为状态 GadgetState.ChestLocked
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8007, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,85 @@
-- 基础信息
local base_info = {
group_id = 240015009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9001, monster_id = 25010301, pos = { x = -140.093, y = 37.244, z = 85.018 }, rot = { x = 0.000, y = 158.305, z = 0.000 }, level = 1 },
{ config_id = 9002, monster_id = 25010301, pos = { x = -131.001, y = 37.215, z = 85.050 }, rot = { x = 0.000, y = 190.846, z = 0.000 }, level = 1 },
{ config_id = 9003, monster_id = 25010201, pos = { x = -142.945, y = 37.220, z = 76.998 }, rot = { x = 0.000, y = 112.769, z = 0.000 }, level = 1 },
{ config_id = 9004, monster_id = 25010201, pos = { x = -130.716, y = 37.211, z = 78.547 }, rot = { x = 0.000, y = 207.756, z = 0.000 }, level = 1 },
{ config_id = 9005, monster_id = 23030101, pos = { x = -136.675, y = 37.218, z = 88.372 }, rot = { x = 0.000, y = 181.413, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 9001, 9002, 9003, 9004, 9005 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 240015010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,201 @@
-- 基础信息
local base_info = {
group_id = 240015011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70900201, pos = { x = -129.924, y = 34.291, z = 49.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11002, gadget_id = 70900201, pos = { x = -136.522, y = 37.366, z = 102.478 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11003, gadget_id = 70900201, pos = { x = -122.429, y = 48.270, z = 157.451 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11004, gadget_id = 70900201, pos = { x = -91.140, y = 63.373, z = 148.751 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11005, gadget_id = 70900201, pos = { x = -19.015, y = 65.568, z = 105.659 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11006, gadget_id = 70900201, pos = { x = 3.551, y = 69.794, z = 69.924 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11007, shape = RegionShape.SPHERE, radius = 10, pos = { x = -129.475, y = 34.290, z = 48.679 } },
{ config_id = 11008, shape = RegionShape.SPHERE, radius = 15, pos = { x = -90.252, y = 65.027, z = 153.738 } },
{ config_id = 11009, shape = RegionShape.SPHERE, radius = 15, pos = { x = -16.662, y = 65.530, z = 104.424 } }
}
-- 触发器
triggers = {
{ config_id = 1011007, name = "ENTER_REGION_11007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11007", action = "action_EVENT_ENTER_REGION_11007" },
{ config_id = 1011008, name = "ENTER_REGION_11008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11008", action = "action_EVENT_ENTER_REGION_11008" },
{ config_id = 1011009, name = "ENTER_REGION_11009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11009", action = "action_EVENT_ENTER_REGION_11009" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001 },
regions = { 11007, 11008, 11009 },
triggers = { "ENTER_REGION_11007", "ENTER_REGION_11008", "ENTER_REGION_11009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 11002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 11003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 11004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 11005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 11006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_11007(context, evt)
if evt.param1 ~= 11007 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_11007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240015011, 2)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 11001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11008(context, evt)
if evt.param1 ~= 11008 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_11008(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 240015011, 5)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240015011, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11009(context, evt)
if evt.param1 ~= 11009 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_11009(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 240015011, 6)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240015011, 5)
return 0
end

View File

@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 240015012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70211011, pos = { x = -41.903, y = 60.234, z = 164.333 }, rot = { x = 0.000, y = 213.990, z = 0.000 }, level = 21, drop_tag = "战斗中级璃月", isOneoff = true, persistent = true },
{ config_id = 12003, gadget_id = 70360005, pos = { x = -40.953, y = 60.128, z = 162.558 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012002, name = "GADGET_STATE_CHANGE_12002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_12002", action = "action_EVENT_GADGET_STATE_CHANGE_12002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12001, 12003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_12002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_12002(context, evt)
if 12003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_12002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240015013, 2)
return 0
end

View File

@@ -0,0 +1,227 @@
-- 基础信息
local base_info = {
group_id = 240015013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70310032, pos = { x = -41.613, y = 59.807, z = 156.419 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13002, gadget_id = 70310032, pos = { x = -43.539, y = 61.222, z = 151.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13003, gadget_id = 70310032, pos = { x = -45.205, y = 62.404, z = 146.867 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13004, gadget_id = 70310032, pos = { x = -46.328, y = 63.340, z = 141.996 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13005, gadget_id = 70310032, pos = { x = -47.696, y = 64.342, z = 137.651 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13006, gadget_id = 70310032, pos = { x = -48.439, y = 65.553, z = 133.513 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1013007, name = "GADGET_CREATE_13007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_13007", action = "action_EVENT_GADGET_CREATE_13007", trigger_count = 0 },
{ config_id = 1013008, name = "GADGET_CREATE_13008", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_13008", action = "action_EVENT_GADGET_CREATE_13008", trigger_count = 0 },
{ config_id = 1013009, name = "TIMER_EVENT_13009", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_13009", trigger_count = 0 },
{ config_id = 1013010, name = "TIMER_EVENT_13010", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_13010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GADGET_CREATE_13007", "GADGET_CREATE_13008", "TIMER_EVENT_13009", "TIMER_EVENT_13010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 13001, 13003, 13005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 13002, 13004, 13006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_13007(context, evt)
if 13001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_13007(context, evt)
-- 延迟5秒后,向groupId为240015013的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015013, "time1", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_13008(context, evt)
if 13002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_13008(context, evt)
-- 延迟5秒后,向groupId为240015013的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240015013, "time2", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_13009(context, evt)
-- 创建id为13002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为13004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为13006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_13010(context, evt)
-- 创建id为13001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为13003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为13005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,94 @@
-- 基础信息
local base_info = {
group_id = 240015014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14001, gadget_id = 70211001, pos = { x = -135.788, y = 46.466, z = 150.482 }, rot = { x = 352.100, y = 15.263, z = 350.018 }, level = 21, drop_tag = "战斗低级璃月", isOneoff = true, persistent = true },
{ config_id = 14018, gadget_id = 70310001, pos = { x = -129.943, y = 34.290, z = 48.825 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 14021, gadget_id = 70310001, pos = { x = -19.241, y = 65.571, z = 105.848 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 14022, gadget_id = 70310001, pos = { x = 6.880, y = 69.435, z = 70.498 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 14023, gadget_id = 70310001, pos = { x = 0.945, y = 69.433, z = 66.990 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 14024, gadget_id = 70220013, pos = { x = -15.579, y = 69.431, z = 60.620 }, rot = { x = 0.000, y = 334.993, z = 0.000 }, level = 1 },
{ config_id = 14025, gadget_id = 70220013, pos = { x = -20.248, y = 69.508, z = 64.627 }, rot = { x = 0.000, y = 301.106, z = 0.000 }, level = 1 },
{ config_id = 14026, gadget_id = 70220013, pos = { x = -19.531, y = 69.508, z = 66.987 }, rot = { x = 0.000, y = 263.977, z = 0.000 }, level = 1 },
{ config_id = 14027, gadget_id = 70220013, pos = { x = 23.820, y = 69.442, z = 72.788 }, rot = { x = 0.000, y = 327.803, z = 0.000 }, level = 1 },
{ config_id = 14028, gadget_id = 70220013, pos = { x = 21.385, y = 69.434, z = 74.714 }, rot = { x = 0.000, y = 299.910, z = 0.000 }, level = 1 },
{ config_id = 14029, gadget_id = 70220013, pos = { x = -93.914, y = 63.377, z = 158.668 }, rot = { x = 0.000, y = 39.624, z = 0.000 }, level = 1 },
{ config_id = 14030, gadget_id = 70220013, pos = { x = -93.195, y = 63.415, z = 156.228 }, rot = { x = 0.000, y = 328.953, z = 0.000 }, level = 1 },
{ config_id = 14031, gadget_id = 70220013, pos = { x = -130.773, y = 47.042, z = 159.337 }, rot = { x = 0.000, y = 4.371, z = 0.000 }, level = 1 },
{ config_id = 14032, gadget_id = 70220013, pos = { x = -128.951, y = 47.032, z = 158.007 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14033, gadget_id = 70220013, pos = { x = -150.495, y = 37.240, z = 81.247 }, rot = { x = 0.000, y = 357.026, z = 0.000 }, level = 1 },
{ config_id = 14034, gadget_id = 70220014, pos = { x = -149.891, y = 37.506, z = 82.660 }, rot = { x = 32.308, y = 324.454, z = 288.829 }, level = 1 },
{ config_id = 14035, gadget_id = 70220014, pos = { x = -127.325, y = 47.032, z = 158.267 }, rot = { x = 0.000, y = 6.171, z = 0.000 }, level = 1 },
{ config_id = 14036, gadget_id = 70220014, pos = { x = -91.117, y = 63.373, z = 160.465 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14037, gadget_id = 70220014, pos = { x = -22.439, y = 65.473, z = 97.941 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14038, gadget_id = 70220014, pos = { x = -23.716, y = 65.473, z = 97.228 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14039, gadget_id = 70220014, pos = { x = -17.227, y = 69.508, z = 63.186 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14040, gadget_id = 70220014, pos = { x = 7.863, y = 69.433, z = 90.855 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14041, gadget_id = 70211001, pos = { x = -91.329, y = 63.406, z = 158.511 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 21, drop_tag = "战斗低级璃月", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 14001, 14018, 14021, 14022, 14023, 14024, 14025, 14026, 14027, 14028, 14029, 14030, 14031, 14032, 14033, 14034, 14035, 14036, 14037, 14038, 14039, 14040, 14041 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,113 @@
-- 基础信息
local base_info = {
group_id = 240015015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 15001, monster_id = 25010401, pos = { x = 2.680, y = 69.504, z = 70.697 }, rot = { x = 0.000, y = 329.326, z = 0.000 }, level = 1 },
{ config_id = 15002, monster_id = 25030201, pos = { x = 3.870, y = 69.504, z = 81.570 }, rot = { x = 0.000, y = 299.178, z = 0.000 }, level = 1 },
{ config_id = 15003, monster_id = 25010601, pos = { x = -9.131, y = 69.504, z = 76.115 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 15004, monster_id = 25010401, pos = { x = 6.127, y = 69.434, z = 75.359 }, rot = { x = 0.000, y = 303.055, z = 0.000 }, level = 1 },
{ config_id = 15005, monster_id = 25010601, pos = { x = -4.770, y = 69.433, z = 70.185 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1015011, name = "ANY_MONSTER_DIE_15011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15011", action = "action_EVENT_ANY_MONSTER_DIE_15011" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_15011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 15001, 15002, 15003, 15004, 15005 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15011(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15011(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240015008, 2)
return 0
end

View File

@@ -0,0 +1,333 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -64.39347,
"y": -40.5018,
"z": 81.66843
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 100.0,
"heightType": "Center",
"length": 800.0,
"useHeight": true,
"width": 800.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -5.922163,
"y": 69.43276,
"z": 69.59753
},
"rot": {
"x": 0.0,
"y": 331.2961,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"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": -128.1278,
"y": 34.2911,
"z": 45.91426
},
"rot": {
"x": 0.0,
"y": 337.4155,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 15.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.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": -122.5774,
"y": 47.03616,
"z": 137.5173
},
"rot": {
"x": 0.0,
"y": 11.3121,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 15.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.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": -136.7218,
"y": 37.38651,
"z": 98.57166
},
"rot": {
"x": 0.0,
"y": 356.8168,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.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": -97.5173,
"y": 63.50592,
"z": 150.5267
},
"rot": {
"x": 0.0,
"y": 90.4084,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 15.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"6": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -51.12219,
"y": 67.03737,
"z": 127.13
},
"rot": {
"x": 0.0,
"y": 103.1724,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 15.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"7": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -24.38014,
"y": 65.47546,
"z": 110.3562
},
"rot": {
"x": 0.0,
"y": 140.7217,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 15.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}