Files
2022-11-30 00:00:20 +08:00

221 lines
10 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 基础信息
local base_info = {
group_id = 139999021
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 21001, monster_id = 28030307, pos = { x = -0.840, y = 0.073, z = 0.437 }, rot = { x = 0.000, y = 338.134, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21002, monster_id = 28030307, pos = { x = 0.566, y = -0.035, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21003, monster_id = 28030307, pos = { x = -0.998, y = 0.065, z = -0.835 }, rot = { x = 0.000, y = 293.203, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21004, monster_id = 28030307, pos = { x = 0.077, y = 0.034, z = -1.355 }, rot = { x = 0.000, y = 332.447, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21005, monster_id = 28030307, pos = { x = 1.314, y = -0.074, z = -0.877 }, rot = { x = 0.000, y = 308.035, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21006, monster_id = 28030309, pos = { x = -0.840, y = 0.073, z = 0.437 }, rot = { x = 0.000, y = 338.134, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21007, monster_id = 28030309, pos = { x = 0.566, y = -0.035, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21008, monster_id = 28030309, pos = { x = -0.998, y = 0.065, z = -0.835 }, rot = { x = 0.000, y = 293.203, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21009, monster_id = 28030309, pos = { x = 0.077, y = 0.034, z = -1.355 }, rot = { x = 0.000, y = 332.447, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21011, monster_id = 28030309, pos = { x = 1.314, y = -0.074, z = -0.877 }, rot = { x = 0.000, y = 308.035, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21012, monster_id = 28030310, pos = { x = -0.840, y = 0.073, z = 0.437 }, rot = { x = 0.000, y = 338.134, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21013, monster_id = 28030310, pos = { x = 0.566, y = -0.035, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21014, monster_id = 28030310, pos = { x = -0.998, y = 0.065, z = -0.835 }, rot = { x = 0.000, y = 293.203, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21015, monster_id = 28030310, pos = { x = 0.077, y = 0.034, z = -1.355 }, rot = { x = 0.000, y = 332.447, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21016, monster_id = 28030310, pos = { x = 1.314, y = -0.074, z = -0.877 }, rot = { x = 0.000, y = 308.035, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21019, monster_id = 28030308, pos = { x = -0.840, y = 0.073, z = 0.437 }, rot = { x = 0.000, y = 338.134, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21020, monster_id = 28030308, pos = { x = 0.566, y = -0.035, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21021, monster_id = 28030308, pos = { x = -0.998, y = 0.065, z = -0.835 }, rot = { x = 0.000, y = 293.203, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21022, monster_id = 28030308, pos = { x = 0.077, y = 0.034, z = -1.355 }, rot = { x = 0.000, y = 332.447, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21023, monster_id = 28030308, pos = { x = 1.314, y = -0.074, z = -0.877 }, rot = { x = 0.000, y = 308.035, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21024, monster_id = 28030311, pos = { x = -0.840, y = 0.073, z = 0.437 }, rot = { x = 0.000, y = 338.134, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21025, monster_id = 28030311, pos = { x = 0.566, y = -0.035, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21027, monster_id = 28030311, pos = { x = -0.998, y = 0.065, z = -0.835 }, rot = { x = 0.000, y = 293.203, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21028, monster_id = 28030311, pos = { x = 0.077, y = 0.034, z = -1.355 }, rot = { x = 0.000, y = 332.447, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21029, monster_id = 28030311, pos = { x = 1.314, y = -0.074, z = -0.877 }, rot = { x = 0.000, y = 308.035, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 21017, shape = RegionShape.SPHERE, radius = 15, pos = { x = -2.955, y = 0.397, z = 0.059 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1021010, name = "ANY_MONSTER_DIE_21010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_21010", action = "action_EVENT_ANY_MONSTER_DIE_21010" },
{ config_id = 1021017, name = "ENTER_REGION_21017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_21017", action = "action_EVENT_ENTER_REGION_21017" },
{ config_id = 1021018, name = "ANY_MONSTER_DIE_21018", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_21018", action = "action_EVENT_ANY_MONSTER_DIE_21018" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 21026, monster_id = 28030305, pos = { x = -0.966, y = 0.098, z = -1.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21030, monster_id = 28030305, pos = { x = -0.966, y = 0.098, z = -1.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 21001, 21002, 21003, 21004, 21005 },
gadgets = { },
regions = { 21017 },
triggers = { "ANY_MONSTER_DIE_21010", "ENTER_REGION_21017", "ANY_MONSTER_DIE_21018" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 21006, 21007, 21008, 21009, 21011 },
gadgets = { },
regions = { 21017 },
triggers = { "ANY_MONSTER_DIE_21010", "ENTER_REGION_21017", "ANY_MONSTER_DIE_21018" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 21012, 21013, 21014, 21015, 21016 },
gadgets = { },
regions = { 21017 },
triggers = { "ANY_MONSTER_DIE_21010", "ENTER_REGION_21017", "ANY_MONSTER_DIE_21018" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 21019, 21020, 21021, 21022, 21023 },
gadgets = { },
regions = { 21017 },
triggers = { "ANY_MONSTER_DIE_21010", "ENTER_REGION_21017", "ANY_MONSTER_DIE_21018" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 21024, 21025, 21027, 21028, 21029 },
gadgets = { },
regions = { 21017 },
triggers = { "ANY_MONSTER_DIE_21010", "ENTER_REGION_21017", "ANY_MONSTER_DIE_21018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_21010(context, evt)
--判断死亡怪物的死亡类型是否为0,0为普通死亡(比如被击杀),1为普通地被killself杀死,2为消失(比如小动物逃跑消失,北风狼脱战消失)
if evt.param2 ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_21010(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 21, true)
-- 调用提示id为 1110345 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110345) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_21017(context, evt)
if evt.param1 ~= 21017 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_21017(context, evt)
-- 调用提示id为 1110342 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110342) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_21018(context, evt)
--判断死亡怪物的死亡类型是否为2,0为普通死亡(比如被击杀),1为普通地被killself杀死,2为消失(比如小动物逃跑消失,北风狼脱战消失)
if evt.param2 ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_21018(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 21, true)
-- 调用提示id为 1110344 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110344) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end