177 lines
4.4 KiB
Go
177 lines
4.4 KiB
Go
-- 基础信息
|
|
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 |