-- 基础信息 local base_info = { group_id = 240050014 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 14001, monster_id = 25080101, pos = { x = 19.908, y = 77.026, z = -77.128 }, rot = { x = 0.000, y = 173.102, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 }, { config_id = 14002, monster_id = 25080201, pos = { x = 15.811, y = 77.131, z = -94.330 }, rot = { x = 0.000, y = 339.264, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1004 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { { config_id = 14003, shape = RegionShape.SPHERE, radius = 3, pos = { x = 2.909, y = 70.681, z = -73.422 } } } -- 触发器 triggers = { { config_id = 1014003, name = "ENTER_REGION_14003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14003", action = "action_EVENT_ENTER_REGION_14003" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { 14003 }, triggers = { "ENTER_REGION_14003" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ENTER_REGION_14003(context, evt) if evt.param1 ~= 14003 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_14003(context, evt) -- 延迟0秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 14001, delay_time = 0 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end -- 延迟0秒刷怪 if 0 ~= ScriptLib.CreateMonster(context, { config_id = 14002, delay_time = 0 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") return -1 end return 0 end