-- 基础信息 local base_info = { group_id = 166001070 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 70002, monster_id = 26040101, pos = { x = 920.220, y = 839.132, z = 586.848 }, rot = { x = 0.000, y = 115.369, z = 0.000 }, level = 36, drop_id = 1000100, area_id = 300 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1070001, name = "ANY_MONSTER_DIE_70001", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_70001", action = "action_EVENT_ANY_MONSTER_DIE_70001" }, { config_id = 1070003, name = "GROUP_LOAD_70003", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_70003", action = "action_EVENT_GROUP_LOAD_70003", trigger_count = 0 } } -- 变量 variables = { { config_id = 1, name = "done", value = 0, no_refresh = true } } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { 70002 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_70001", "GROUP_LOAD_70003" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_70001(context, evt) -- 判断剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCount(context) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_70001(context, evt) -- 将本组内变量名为 "done" 的变量设置为 1 if 0 ~= ScriptLib.SetGroupVariableValue(context, "done", 1) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable") return -1 end -- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1 if 0 ~= ScriptLib.AddQuestProgress(context, "166001070") then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress") return -1 end return 0 end -- 触发条件 function condition_EVENT_GROUP_LOAD_70003(context, evt) -- 判断变量"done"为1 if ScriptLib.GetGroupVariableValue(context, "done") ~= 1 then return false end return true end -- 触发操作 function action_EVENT_GROUP_LOAD_70003(context, evt) -- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1 if 0 ~= ScriptLib.AddQuestProgress(context, "166001070") then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress") return -1 end return 0 end