-- 基础信息 local base_info = { group_id = 133008599 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { { config_id = 599002, npc_id = 20216, pos = { x = 530.522, y = 200.221, z = -1197.788 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 10 } } -- 装置 gadgets = { { config_id = 599001, gadget_id = 70360130, pos = { x = 530.434, y = 200.142, z = -1197.864 }, rot = { x = -0.005, y = 0.174, z = 271.559 }, level = 30, isOneoff = true, persistent = true, area_id = 10 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1599004, name = "QUEST_FINISH_599004", event = EventType.EVENT_QUEST_FINISH, source = "7012801", condition = "", action = "action_EVENT_QUEST_FINISH_599004", trigger_count = 0 } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 2, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 599001 }, regions = { }, triggers = { "QUEST_FINISH_599004" }, npcs = { 599002 }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发操作 function action_EVENT_QUEST_FINISH_599004(context, evt) -- 重新生成指定group,指定suite if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133008599, suite = 2 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite") return -1 end return 0 end