-- 基础信息 local base_info = { group_id = 302001060 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 60001, monster_id = 23010101, pos = { x = 529.944, y = 200.003, z = 137.592 }, rot = { x = 0.000, y = 322.246, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60002, monster_id = 23010101, pos = { x = 529.944, y = 200.003, z = 137.592 }, rot = { x = 0.000, y = 322.246, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60003, monster_id = 23010101, pos = { x = 527.381, y = 200.083, z = 133.938 }, rot = { x = 0.000, y = 322.246, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60004, monster_id = 23010101, pos = { x = 529.766, y = 200.272, z = 140.028 }, rot = { x = 0.000, y = 300.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60005, monster_id = 23010301, pos = { x = 525.375, y = 199.109, z = 152.872 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60006, monster_id = 23010301, pos = { x = 529.435, y = 199.764, z = 145.030 }, rot = { x = 0.000, y = 220.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60007, monster_id = 23010301, pos = { x = 527.141, y = 199.841, z = 147.927 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60008, monster_id = 23010101, pos = { x = 516.570, y = 200.763, z = 133.625 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60009, monster_id = 23010101, pos = { x = 513.869, y = 201.496, z = 140.065 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60010, monster_id = 23010301, pos = { x = 517.901, y = 198.856, z = 152.190 }, rot = { x = 0.000, y = 160.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60011, monster_id = 23010301, pos = { x = 515.326, y = 200.537, z = 147.305 }, rot = { x = 0.000, y = 120.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60012, monster_id = 23010101, pos = { x = 529.766, y = 200.272, z = 140.028 }, rot = { x = 0.000, y = 300.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60013, monster_id = 23010301, pos = { x = 527.141, y = 199.841, z = 147.927 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60014, monster_id = 23010301, pos = { x = 529.435, y = 199.764, z = 145.030 }, rot = { x = 0.000, y = 220.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60015, monster_id = 23010101, pos = { x = 516.570, y = 200.763, z = 133.625 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60016, monster_id = 23010101, pos = { x = 513.869, y = 201.496, z = 140.065 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60017, monster_id = 23010301, pos = { x = 517.901, y = 198.856, z = 152.190 }, rot = { x = 0.000, y = 160.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60018, monster_id = 23010301, pos = { x = 515.326, y = 200.537, z = 147.305 }, rot = { x = 0.000, y = 120.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60019, monster_id = 23010401, pos = { x = 521.646, y = 200.055, z = 132.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 }, { config_id = 60020, monster_id = 23010401, pos = { x = 523.643, y = 200.177, z = 134.360 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 4107, 4108, 4109 }, kill_score = 70, area_id = 9 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1060023, name = "ANY_MONSTER_DIE_60023", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_60023", action = "action_EVENT_ANY_MONSTER_DIE_60023" }, { config_id = 1060024, name = "MONSTER_TIDE_DIE_60024", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "1", condition = "condition_EVENT_MONSTER_TIDE_DIE_60024", action = "action_EVENT_MONSTER_TIDE_DIE_60024", trigger_count = 0 }, { config_id = 1060025, name = "MONSTER_TIDE_DIE_60025", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "2", condition = "condition_EVENT_MONSTER_TIDE_DIE_60025", action = "action_EVENT_MONSTER_TIDE_DIE_60025", trigger_count = 0 }, { config_id = 1060026, name = "ANY_MONSTER_DIE_60026", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_60026", action = "action_EVENT_ANY_MONSTER_DIE_60026" }, { config_id = 1060027, name = "MONSTER_TIDE_DIE_60027", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "4", condition = "condition_EVENT_MONSTER_TIDE_DIE_60027", action = "action_EVENT_MONSTER_TIDE_DIE_60027", trigger_count = 0 }, { config_id = 1060028, name = "MONSTER_TIDE_DIE_60028", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "5", condition = "condition_EVENT_MONSTER_TIDE_DIE_60028", action = "action_EVENT_MONSTER_TIDE_DIE_60028", trigger_count = 0 }, { config_id = 1060032, name = "ANY_MONSTER_LIVE_60032", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_60032", action = "action_EVENT_ANY_MONSTER_LIVE_60032" }, { config_id = 1060033, name = "MONSTER_TIDE_DIE_60033", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "1", condition = "condition_EVENT_MONSTER_TIDE_DIE_60033", action = "action_EVENT_MONSTER_TIDE_DIE_60033", trigger_count = 0 }, { config_id = 1060034, name = "MONSTER_TIDE_DIE_60034", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "2", condition = "condition_EVENT_MONSTER_TIDE_DIE_60034", action = "action_EVENT_MONSTER_TIDE_DIE_60034", trigger_count = 0 }, { config_id = 1060036, name = "MONSTER_TIDE_DIE_60036", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "4", condition = "condition_EVENT_MONSTER_TIDE_DIE_60036", action = "action_EVENT_MONSTER_TIDE_DIE_60036", trigger_count = 0 }, { config_id = 1060037, name = "MONSTER_TIDE_DIE_60037", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "5", condition = "condition_EVENT_MONSTER_TIDE_DIE_60037", action = "action_EVENT_MONSTER_TIDE_DIE_60037", 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 = { 60002, 60007 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_60023", "MONSTER_TIDE_DIE_60024", "MONSTER_TIDE_DIE_60025", "MONSTER_TIDE_DIE_60027", "MONSTER_TIDE_DIE_60028" }, rand_weight = 100 }, { -- suite_id = 3, -- description = , monsters = { 60003, 60004, 60005, 60006, 60008, 60009, 60010, 60011 }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 4, -- description = , monsters = { 60020 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_60026", "ANY_MONSTER_LIVE_60032", "MONSTER_TIDE_DIE_60033", "MONSTER_TIDE_DIE_60034", "MONSTER_TIDE_DIE_60036", "MONSTER_TIDE_DIE_60037" }, rand_weight = 100 }, { -- suite_id = 5, -- description = , monsters = { 60001, 60012, 60013, 60014, 60015, 60016, 60017, 60018, 60019 }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_60023(context, evt) -- 判断剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCount(context) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_60023(context, evt) -- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 302001060, {60003,60004}, 2, 1, 1) then return -1 end -- 创建编号为2(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 2, 302001060, {60005,60006}, 2, 1, 1) then return -1 end return 0 end -- 触发条件 function condition_EVENT_MONSTER_TIDE_DIE_60024(context, evt) if 2 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_MONSTER_TIDE_DIE_60024(context, evt) -- 创建编号为4(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 4, 302001060, {60008,60009}, 2, 1, 1) then return -1 end return 0 end -- 触发条件 function condition_EVENT_MONSTER_TIDE_DIE_60025(context, evt) if 2 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_MONSTER_TIDE_DIE_60025(context, evt) -- 创建编号为5(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 5, 302001060, {60010,60011}, 2, 1, 1) then return -1 end return 0 end -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_60026(context, evt) --判断死亡怪物的configid是否为 60020 if evt.param1 ~= 60020 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_60026(context, evt) -- 延迟1秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 60019, delay_time = 1 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end return 0 end -- 触发条件 function condition_EVENT_MONSTER_TIDE_DIE_60027(context, evt) if 2 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_MONSTER_TIDE_DIE_60027(context, evt) -- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 302001060, {60003,60004}, 2, 1, 1) then return -1 end return 0 end -- 触发条件 function condition_EVENT_MONSTER_TIDE_DIE_60028(context, evt) if 2 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_MONSTER_TIDE_DIE_60028(context, evt) -- 创建编号为2(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 2, 302001060, {60005,60006}, 2, 1, 1) then return -1 end return 0 end -- 触发条件 function condition_EVENT_ANY_MONSTER_LIVE_60032(context, evt) if 60020 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_LIVE_60032(context, evt) -- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 302001060, {60001,60012}, 2, 1, 1) then return -1 end -- 创建编号为2(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 2, 302001060, {60013,60014}, 2, 1, 1) then return -1 end return 0 end -- 触发条件 function condition_EVENT_MONSTER_TIDE_DIE_60033(context, evt) if 2 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_MONSTER_TIDE_DIE_60033(context, evt) -- 创建编号为4(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 4, 302001060, {60015,60016}, 2, 1, 1) then return -1 end return 0 end -- 触发条件 function condition_EVENT_MONSTER_TIDE_DIE_60034(context, evt) if 2 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_MONSTER_TIDE_DIE_60034(context, evt) -- 创建编号为5(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 5, 302001060, {60017,60018}, 2, 1, 1) then return -1 end return 0 end -- 触发条件 function condition_EVENT_MONSTER_TIDE_DIE_60036(context, evt) if 2 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_MONSTER_TIDE_DIE_60036(context, evt) -- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 302001060, {60001,60012}, 2, 1, 1) then return -1 end return 0 end -- 触发条件 function condition_EVENT_MONSTER_TIDE_DIE_60037(context, evt) if 2 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_MONSTER_TIDE_DIE_60037(context, evt) -- 创建编号为2(该怪物潮的识别id)的怪物潮,创建怪物总数为2,场上怪物最少1只,最多1只 if 0 ~= ScriptLib.AutoMonsterTide(context, 2, 302001060, {60013,60014}, 2, 1, 1) then return -1 end return 0 end