-- 基础信息 local base_info = { group_id = 133008549 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 549001, monster_id = 20010901, pos = { x = 1170.158, y = 411.656, z = -886.940 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, drop_tag = "大史莱姆", climate_area_id = 1, area_id = 10 }, { config_id = 549002, monster_id = 20010901, pos = { x = 1170.278, y = 411.777, z = -889.083 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, drop_tag = "大史莱姆", climate_area_id = 1, area_id = 10 }, { config_id = 549003, monster_id = 20010801, pos = { x = 1171.720, y = 412.338, z = -886.808 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, drop_tag = "史莱姆", climate_area_id = 1, area_id = 10 }, { config_id = 549005, monster_id = 20010801, pos = { x = 1168.759, y = 411.308, z = -889.234 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, drop_tag = "史莱姆", climate_area_id = 1, area_id = 10 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { { config_id = 549004, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1169.688, y = 411.656, z = -887.772 }, area_id = 10 } } -- 触发器 triggers = { { config_id = 1549004, name = "ENTER_REGION_549004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_549004", action = "action_EVENT_ENTER_REGION_549004" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { 549004 }, triggers = { "ENTER_REGION_549004" }, rand_weight = 100 }, { -- suite_id = 2, -- description = , monsters = { 549003, 549005 }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ENTER_REGION_549004(context, evt) if evt.param1 ~= 549004 then return false end -- 判断角色数量不少于1 if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then return false end return true end -- 触发操作 function action_EVENT_ENTER_REGION_549004(context, evt) -- 添加suite2的新内容 ScriptLib.AddExtraGroupSuite(context, 133008549, 2) -- 延迟3秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 549001, delay_time = 3 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end -- 延迟4秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 549002, delay_time = 4 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end return 0 end