91 lines
2.1 KiB
Lua
91 lines
2.1 KiB
Lua
--================================================================
|
|
--
|
|
-- 配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 怪物
|
|
monsters = {
|
|
{ config_id = 539, monster_id = 21020201, pos = { x = 2620.5, y = 254.1, z = -1679.8 }, rot = { x = 0.0, y = 332.9, z = 0.0 }, level = 12, drop_id = 303103 }
|
|
}
|
|
|
|
-- NPC
|
|
npcs = {
|
|
}
|
|
|
|
-- 装置
|
|
gadgets = {
|
|
{ config_id = 2858, gadget_id = 70210032, pos = { x = 2634.7, y = 254.3, z = -1689.3 }, rot = { x = 0.0, y = 333.9, z = 354.6 }, level = 1, chest_drop_id = 403123, state = GadgetState.ChestLocked, isOneoff = true }
|
|
}
|
|
|
|
-- 区域
|
|
regions = {
|
|
{ config_id = 531, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2629.2, y = 254.0, z = -1683.3 } }
|
|
}
|
|
|
|
-- 触发器
|
|
triggers = {
|
|
{ name = "ANY_MONSTER_DIE_531", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_531", action = "action_EVENT_ANY_MONSTER_DIE_531" }
|
|
}
|
|
|
|
-- 变量
|
|
variables = {
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 初始化配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 初始化时创建
|
|
init_config = {
|
|
suite = 1,
|
|
rand_suite = true,
|
|
npcs = { }
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 小组配置
|
|
--
|
|
--================================================================
|
|
|
|
suites = {
|
|
{
|
|
-- suite_id = 0,
|
|
-- description = ,
|
|
monsters = { 539 },
|
|
gadgets = { 2858 },
|
|
regions = { 531 },
|
|
triggers = { "ANY_MONSTER_DIE_531" },
|
|
rand_weight = 100
|
|
}
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 触发器
|
|
--
|
|
--================================================================
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ANY_MONSTER_DIE_531(context, evt)
|
|
-- 判断剩余怪物数量是否是0
|
|
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_ANY_MONSTER_DIE_531(context, evt)
|
|
-- 解锁目标2858
|
|
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 2858, state = GadgetState.Default }) then
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|