-- 基础信息 local base_info = { group_id = 133002409 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 409001, monster_id = 20010801, pos = { x = 1370.867, y = 268.760, z = -647.134 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 35, drop_id = 1000100, climate_area_id = 1, area_id = 10 }, { config_id = 409002, monster_id = 20010801, pos = { x = 1368.896, y = 268.811, z = -647.378 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 35, drop_id = 1000100, disableWander = true, climate_area_id = 1, area_id = 10 }, { config_id = 409003, monster_id = 20011001, pos = { x = 1370.904, y = 268.296, z = -644.764 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 35, drop_id = 1000100, disableWander = true, climate_area_id = 1, area_id = 10 }, { config_id = 409004, monster_id = 20011001, pos = { x = 1369.008, y = 268.474, z = -645.032 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 35, drop_id = 1000100, disableWander = true, climate_area_id = 1, area_id = 10 }, { config_id = 409005, monster_id = 20010901, pos = { x = 1372.159, y = 268.605, z = -646.229 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 35, drop_id = 1000100, disableWander = true, climate_area_id = 1, area_id = 10 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1409006, name = "ANY_MONSTER_DIE_409006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_409006", action = "action_EVENT_ANY_MONSTER_DIE_409006" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { 409001, 409002, 409003, 409004, 409005 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_409006" }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_409006(context, evt) -- 判断剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCount(context) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_409006(context, evt) -- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1 if 0 ~= ScriptLib.AddQuestProgress(context, "4121005") then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress") return -1 end return 0 end