GSServer-CBT/soggy_resources/lua/Scene/3/scene3_group133004103.lua

85 lines
2.0 KiB
Lua
Raw Normal View History

2022-11-21 11:30:31 +03:00
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 339, monster_id = 20020101, pos = { x = 2328.6, y = 299.7, z = -123.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 15, drop_id = 303103 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 396, gadget_id = 70210031, pos = { x = 2336.2, y = 295.6, z = -120.7 }, rot = { x = 0.0, y = 189.8, z = 0.0 }, level = 1, chest_drop_id = 403123, isOneoff = true },
{ config_id = 397, gadget_id = 70620001, pos = { x = 2336.1, y = 295.6, z = -120.6 }, rot = { x = 0.0, y = 120.6, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 131, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2336.8, y = 295.5, z = -122.3 } }
}
-- 触发器
triggers = {
{ name = "ANY_MONSTER_DIE_131", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_131" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 339 },
gadgets = { 396, 397 },
regions = { 131 },
triggers = { "ANY_MONSTER_DIE_131" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_131(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 397 }) then
return -1
end
return 0
end