-- 基础信息 local base_info = { group_id = 133008239 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 239001, gadget_id = 70360102, pos = { x = 1092.285, y = 345.763, z = -1081.974 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, area_id = 10 }, { config_id = 239002, gadget_id = 70211101, pos = { x = 1092.614, y = 345.547, z = -1082.228 }, rot = { x = 0.000, y = 45.272, z = 17.976 }, level = 26, drop_tag = "雪山解谜低级蒙德", isOneoff = true, persistent = true, explore = { name = "chest", exp = 1 }, area_id = 10 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1239003, name = "ANY_GADGET_DIE_239003", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_239003", action = "action_EVENT_ANY_GADGET_DIE_239003" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 239001 }, regions = { }, triggers = { "ANY_GADGET_DIE_239003" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_GADGET_DIE_239003(context, evt) if 239001 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_ANY_GADGET_DIE_239003(context, evt) -- 创建id为239002的gadget if 0 ~= ScriptLib.CreateGadget(context, { config_id = 239002 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget") return -1 end return 0 end