-- 基础信息 local base_info = { group_id = 166001053 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 53001, monster_id = 22040201, pos = { x = 76.637, y = 311.919, z = 401.248 }, rot = { x = 0.000, y = 117.451, z = 0.000 }, level = 36, drop_id = 1000100, disableWander = true, pose_id = 101, area_id = 300 }, { config_id = 53002, monster_id = 22050101, pos = { x = 81.424, y = 311.907, z = 395.440 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 36, drop_id = 1000100, disableWander = true, pose_id = 101, area_id = 300 }, { config_id = 53003, monster_id = 22040201, pos = { x = 84.739, y = 312.087, z = 396.420 }, rot = { x = 0.000, y = 309.353, z = 0.000 }, level = 36, drop_id = 1000100, disableWander = true, pose_id = 101, area_id = 300 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { { config_id = 53005, shape = RegionShape.SPHERE, radius = 15, pos = { x = 80.362, y = 312.036, z = 394.336 }, area_id = 300 } } -- 触发器 triggers = { { config_id = 1053004, name = "MONSTER_BATTLE_53004", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "", action = "action_EVENT_MONSTER_BATTLE_53004" }, { config_id = 1053005, name = "ENTER_REGION_53005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_53005", trigger_count = 0 }, { config_id = 1053006, name = "ANY_MONSTER_DIE_53006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_53006", action = "action_EVENT_ANY_MONSTER_DIE_53006" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { 53001, 53002, 53003 }, gadgets = { }, regions = { 53005 }, triggers = { "MONSTER_BATTLE_53004", "ENTER_REGION_53005", "ANY_MONSTER_DIE_53006" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发操作 function action_EVENT_MONSTER_BATTLE_53004(context, evt) -- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1 if 0 ~= ScriptLib.AddQuestProgress(context, "16600105301") then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress") return -1 end return 0 end -- 触发操作 function action_EVENT_ENTER_REGION_53005(context, evt) -- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1 if 0 ~= ScriptLib.AddQuestProgress(context, "16600105301") then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress") return -1 end return 0 end -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_53006(context, evt) -- 判断剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCount(context) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_53006(context, evt) -- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1 if 0 ~= ScriptLib.AddQuestProgress(context, "wq7103810") then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress") return -1 end -- 调用提示id为 60010271 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格 if 0 ~= ScriptLib.ShowReminder(context, 60010271) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") return -1 end -- 杀死Group内所有实体 if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 166001527, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group") return -1 end return 0 end