-- 基础信息 local base_info = { group_id = 133104058 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 121, monster_id = 20010801, pos = { x = 625.703, y = 200.000, z = 575.430 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 19, drop_tag = "史莱姆", area_id = 6 }, { config_id = 122, monster_id = 20010801, pos = { x = 626.632, y = 200.000, z = 569.951 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 19, drop_tag = "史莱姆", area_id = 9 }, { config_id = 123, monster_id = 20010801, pos = { x = 632.626, y = 200.000, z = 574.856 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 19, drop_tag = "史莱姆", area_id = 6 }, { config_id = 124, monster_id = 20010901, pos = { x = 628.998, y = 200.000, z = 572.766 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 19, drop_tag = "大史莱姆", area_id = 6 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { { config_id = 96, shape = RegionShape.SPHERE, radius = 10, pos = { x = 629.781, y = 200.000, z = 573.870 }, area_id = 6 } } -- 触发器 triggers = { { config_id = 1000096, name = "ENTER_REGION_96", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_96" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { 96 }, triggers = { "ENTER_REGION_96" }, rand_weight = 100 }, { -- suite_id = 2, -- description = suite_2, monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100, ban_refresh = true } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发操作 function action_EVENT_ENTER_REGION_96(context, evt) -- 延迟0秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 124, delay_time = 0 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end -- 延迟0秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 121, delay_time = 0 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end -- 延迟0秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 122, delay_time = 0 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end -- 延迟0秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 123, delay_time = 0 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end return 0 end