-- 基础信息 local base_info = { group_id = 302001056 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 56001, monster_id = 23020101, pos = { x = 1885.976, y = 249.033, z = -827.904 }, rot = { x = 0.000, y = 109.560, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 4107, 4108, 4109 }, kill_score = 180, area_id = 3 }, { config_id = 56002, monster_id = 23020101, pos = { x = 1896.278, y = 250.913, z = -839.342 }, rot = { x = 0.000, y = 322.246, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 4107, 4108, 4109 }, kill_score = 180, area_id = 3 }, { config_id = 56003, monster_id = 23020101, pos = { x = 1885.976, y = 249.033, z = -827.904 }, rot = { x = 0.000, y = 109.560, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 4107, 4108, 4109 }, kill_score = 180, area_id = 3 }, { config_id = 56020, monster_id = 23020101, pos = { x = 1896.278, y = 250.913, z = -839.342 }, rot = { x = 0.000, y = 322.246, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 4107, 4108, 4109 }, kill_score = 180, area_id = 3 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1056023, name = "ANY_MONSTER_DIE_56023", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_56023", action = "action_EVENT_ANY_MONSTER_DIE_56023", trigger_count = 0 }, { config_id = 1056024, name = "ANY_MONSTER_DIE_56024", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_56024", action = "action_EVENT_ANY_MONSTER_DIE_56024", trigger_count = 0 }, { config_id = 1056032, name = "ANY_MONSTER_DIE_56032", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_56032", action = "action_EVENT_ANY_MONSTER_DIE_56032", trigger_count = 0 }, { config_id = 1056033, name = "ANY_MONSTER_DIE_56033", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_56033", action = "action_EVENT_ANY_MONSTER_DIE_56033", trigger_count = 0 } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { 56002 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_56023", "ANY_MONSTER_DIE_56024" }, rand_weight = 100 }, { -- suite_id = 3, -- description = , monsters = { 56003 }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 4, -- description = , monsters = { 56020 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_56032", "ANY_MONSTER_DIE_56033" }, rand_weight = 100 }, { -- suite_id = 5, -- description = , monsters = { 56001 }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_56023(context, evt) if 56002 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_56023(context, evt) -- 延迟1秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 56003, delay_time = 1 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end return 0 end -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_56024(context, evt) if 56003 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_56024(context, evt) -- 延迟1秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 56002, delay_time = 1 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end return 0 end -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_56032(context, evt) if 56020 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_56032(context, evt) -- 延迟1秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 56001, delay_time = 1 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end return 0 end -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_56033(context, evt) if 56001 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_56033(context, evt) -- 延迟1秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 56020, delay_time = 1 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end return 0 end