90 lines
2.0 KiB
Lua
90 lines
2.0 KiB
Lua
|
--================================================================
|
||
|
--
|
||
|
-- 配置
|
||
|
--
|
||
|
--================================================================
|
||
|
|
||
|
-- 怪物
|
||
|
monsters = {
|
||
|
}
|
||
|
|
||
|
-- NPC
|
||
|
npcs = {
|
||
|
}
|
||
|
|
||
|
-- 装置
|
||
|
gadgets = {
|
||
|
{ config_id = 915, gadget_id = 70210021, pos = { x = 2538.7, y = 200.9, z = 339.6 }, rot = { x = 0.0, y = 316.8, z = 0.0 }, level = 1, chest_drop_id = 403325, isOneoff = true, persistent = true, type = GadgetType.GADGET_WORLD_CHECT },
|
||
|
{ config_id = 916, gadget_id = 70220021, pos = { x = 2538.6, y = 199.9, z = 338.5 }, rot = { x = 0.0, y = 91.0, z = 0.0 }, level = 1 }
|
||
|
}
|
||
|
|
||
|
-- 区域
|
||
|
regions = {
|
||
|
{ config_id = 249, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2538.8, y = 198.6, z = 339.2 } }
|
||
|
}
|
||
|
|
||
|
-- 触发器
|
||
|
triggers = {
|
||
|
{ name = "ANY_GADGET_DIE_249", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_249", action = "action_EVENT_ANY_GADGET_DIE_249", tlog_tag = "风龙_208_碎石堆宝箱_成功" }
|
||
|
}
|
||
|
|
||
|
-- 变量
|
||
|
variables = {
|
||
|
}
|
||
|
|
||
|
--================================================================
|
||
|
--
|
||
|
-- 初始化配置
|
||
|
--
|
||
|
--================================================================
|
||
|
|
||
|
-- 初始化时创建
|
||
|
init_config = {
|
||
|
suite = 1,
|
||
|
rand_suite = false,
|
||
|
npcs = { }
|
||
|
}
|
||
|
|
||
|
--================================================================
|
||
|
--
|
||
|
-- 小组配置
|
||
|
--
|
||
|
--================================================================
|
||
|
|
||
|
suites = {
|
||
|
{
|
||
|
-- suite_id = 0,
|
||
|
-- description = ,
|
||
|
monsters = { },
|
||
|
gadgets = { 916 },
|
||
|
regions = { 249 },
|
||
|
triggers = { "ANY_GADGET_DIE_249" },
|
||
|
rand_weight = 100
|
||
|
}
|
||
|
}
|
||
|
|
||
|
--================================================================
|
||
|
--
|
||
|
-- 触发器
|
||
|
--
|
||
|
--================================================================
|
||
|
|
||
|
-- 触发条件
|
||
|
function condition_EVENT_ANY_GADGET_DIE_249(context, evt)
|
||
|
if 916 ~= evt.param1 then
|
||
|
return false
|
||
|
end
|
||
|
|
||
|
return true
|
||
|
end
|
||
|
|
||
|
-- 触发操作
|
||
|
function action_EVENT_ANY_GADGET_DIE_249(context, evt)
|
||
|
-- 创建id为915的gadget
|
||
|
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 915 }) then
|
||
|
return -1
|
||
|
end
|
||
|
|
||
|
return 0
|
||
|
end
|