-- 基础信息 local base_info = { group_id = 166001143 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 143001, monster_id = 25030301, pos = { x = 1033.919, y = 737.952, z = 424.827 }, rot = { x = 0.000, y = 110.703, z = 0.000 }, level = 36, drop_tag = "盗宝团", pose_id = 9007, area_id = 300 } } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 143002, gadget_id = 70290204, pos = { x = 1071.342, y = 738.029, z = 436.906 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 32, area_id = 300 }, { config_id = 143003, gadget_id = 70290233, pos = { x = 1070.706, y = 739.284, z = 436.302 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 32, area_id = 300 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1143005, name = "ANY_GADGET_DIE_143005", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_143005", action = "action_EVENT_ANY_GADGET_DIE_143005" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { 143001 }, gadgets = { 143002, 143003 }, regions = { }, triggers = { "ANY_GADGET_DIE_143005" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_GADGET_DIE_143005(context, evt) if 143002 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_ANY_GADGET_DIE_143005(context, evt) -- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配 if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 143003 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId") return -1 end return 0 end