-- 基础信息 local base_info = { group_id = 250006009 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 29, gadget_id = 70211031, pos = { x = 343.213, y = -12.758, z = 254.137 }, rot = { x = 0.000, y = 0.495, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", showcutscene = true, isOneoff = true, persistent = true } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1000024, name = "DUNGEON_SETTLE_24", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_24", action = "action_EVENT_DUNGEON_SETTLE_24" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 1, rand_suite = true } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { "DUNGEON_SETTLE_24" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_DUNGEON_SETTLE_24(context, evt) -- 判断副本成功 if 1 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_DUNGEON_SETTLE_24(context, evt) -- 创生gadget 29 if 0 ~= ScriptLib.CreateGadget(context, { config_id = 29 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle") return -1 end return 0 end