-- 基础信息 local base_info = { group_id = 133003632 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 632001, gadget_id = 70710210, pos = { x = 2246.396, y = 203.942, z = -1109.188 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 2, interact_id = 13, area_id = 1 }, { config_id = 632003, gadget_id = 70290017, pos = { x = 2246.415, y = 204.049, z = -1109.494 }, rot = { x = 281.111, y = 22.552, z = 337.081 }, level = 2, area_id = 1 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1632002, name = "GADGET_STATE_CHANGE_632002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_632002", action = "action_EVENT_GADGET_STATE_CHANGE_632002" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 2, end_suite = 3, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { }, gadgets = { 632001 }, regions = { }, triggers = { "GADGET_STATE_CHANGE_632002" }, rand_weight = 100 }, { -- suite_id = 3, -- description = , monsters = { }, gadgets = { 632003 }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_GADGET_STATE_CHANGE_632002(context, evt) if 632001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_GADGET_STATE_CHANGE_632002(context, evt) -- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1 if 0 ~= ScriptLib.AddQuestProgress(context, "133003632") then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress") return -1 end -- 重新生成指定group,指定suite if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133003632, suite = 3 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite") return -1 end return 0 end