-- 基础信息 local base_info = { group_id = 201024023 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 23001, gadget_id = 70211031, pos = { x = 131.096, y = -92.292, z = -201.133 }, rot = { x = 0.000, y = 269.366, z = 0.000 }, level = 11, drop_tag = "战斗超级蒙德", isOneoff = true, persistent = true } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1023002, name = "DUNGEON_SETTLE_23002", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_23002", action = "action_EVENT_DUNGEON_SETTLE_23002" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { "DUNGEON_SETTLE_23002" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_DUNGEON_SETTLE_23002(context, evt) -- 判断副本成功 if 1 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_DUNGEON_SETTLE_23002(context, evt) -- 创建id为23001的gadget if 0 ~= ScriptLib.CreateGadget(context, { config_id = 23001 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget") return -1 end return 0 end