-- 基础信息 local base_info = { group_id = 166001047 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { { config_id = 47003, npc_id = 20525, pos = { x = 477.306, y = 378.886, z = 526.744 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 300 } } -- 装置 gadgets = { { config_id = 47001, gadget_id = 70360001, pos = { x = 481.734, y = 379.538, z = 526.605 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 300 }, { config_id = 47002, gadget_id = 70360089, pos = { x = 477.205, y = 379.063, z = 526.712 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 36, area_id = 300 }, { config_id = 47004, gadget_id = 70710548, pos = { x = 477.230, y = 378.506, z = 526.745 }, rot = { x = 0.000, y = 0.000, z = 334.203 }, level = 36, area_id = 300 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1047005, name = "QUEST_FINISH_47005", event = EventType.EVENT_QUEST_FINISH, source = "7104305", condition = "", action = "action_EVENT_QUEST_FINISH_47005" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 3, end_suite = 2, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 47001 }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { }, gadgets = { 47002, 47004 }, regions = { }, triggers = { "QUEST_FINISH_47005" }, npcs = { 47003 }, rand_weight = 100 }, { -- suite_id = 3, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发操作 function action_EVENT_QUEST_FINISH_47005(context, evt) -- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配 if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 47002 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId") return -1 end -- 调用提示id为 60010154 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格 if 0 ~= ScriptLib.ShowReminder(context, 60010154) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") return -1 end return 0 end