-- 基础信息 local base_info = { group_id = 133004280 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 280001, gadget_id = 70300100, pos = { x = 2266.816, y = 236.252, z = -729.802 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, area_id = 1 }, { config_id = 280002, gadget_id = 70300113, pos = { x = 2267.047, y = 236.351, z = -729.488 }, rot = { x = 0.000, y = 359.198, z = 0.000 }, level = 20, area_id = 1 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1280003, name = "ANY_GADGET_DIE_280003", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_280003", action = "action_EVENT_ANY_GADGET_DIE_280003" }, { config_id = 1280004, name = "ANY_GADGET_DIE_280004", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_280004", action = "action_EVENT_ANY_GADGET_DIE_280004" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { "ANY_GADGET_DIE_280003", "ANY_GADGET_DIE_280004" }, rand_weight = 100, ban_refresh = true }, { -- suite_id = 2, -- description = suite_2, monsters = { }, gadgets = { 280001 }, regions = { }, triggers = { "ANY_GADGET_DIE_280003", "ANY_GADGET_DIE_280004" }, rand_weight = 100, ban_refresh = true }, { -- suite_id = 3, -- description = suite_3, monsters = { }, gadgets = { 280002 }, regions = { }, triggers = { "ANY_GADGET_DIE_280003", "ANY_GADGET_DIE_280004" }, rand_weight = 100, ban_refresh = true } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_GADGET_DIE_280003(context, evt) if 280001 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_ANY_GADGET_DIE_280003(context, evt) -- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1 if 0 ~= ScriptLib.AddQuestProgress(context, "1330042801") then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress") return -1 end return 0 end -- 触发条件 function condition_EVENT_ANY_GADGET_DIE_280004(context, evt) if 280002 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_ANY_GADGET_DIE_280004(context, evt) -- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1 if 0 ~= ScriptLib.AddQuestProgress(context, "1330042801") then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress") return -1 end return 0 end