-- 基础信息 local base_info = { group_id = 133101255 } -- DEFS_MISCS local regionsearch_region_id = 3101001 --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 255002, monster_id = 20050201, pos = { x = 1367.369, y = 227.753, z = 1365.569 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "魔法生物", affix = { 5010, 5011 }, pose_id = 4, area_id = 5 }, { config_id = 255003, monster_id = 20050601, pos = { x = 1332.260, y = 227.200, z = 1317.908 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "魔法生物", affix = { 5010, 5011 }, pose_id = 3, area_id = 5 }, { config_id = 255004, monster_id = 20050601, pos = { x = 1328.077, y = 227.200, z = 1328.122 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "魔法生物", affix = { 5010, 5011 }, pose_id = 3, area_id = 5 } } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 255001, gadget_id = 70620008, pos = { x = 1367.689, y = 224.174, z = 1366.349 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 5 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1255005, name = "ANY_MONSTER_DIE_255005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_255005", action = "action_EVENT_ANY_MONSTER_DIE_255005" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { 255002, 255003, 255004 }, gadgets = { 255001 }, regions = { }, triggers = { "ANY_MONSTER_DIE_255005" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_255005(context, evt) if 255002 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_255005(context, evt) -- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配 if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 255001 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId") return -1 end return 0 end require "Activity_Endora"