-- 基础信息 local base_info = { group_id = 133001103 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 507, monster_id = 21010301, pos = { x = 1209.707, y = 257.705, z = -1527.641 }, rot = { x = 0.000, y = 9.515, z = 0.000 }, level = 19, drop_tag = "丘丘人", pose_id = 9002, area_id = 2 }, { config_id = 508, monster_id = 21010201, pos = { x = 1224.519, y = 257.719, z = -1540.007 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 19, drop_tag = "丘丘人", area_id = 2 } } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 1769, gadget_id = 70211001, pos = { x = 1196.668, y = 259.115, z = -1546.702 }, rot = { x = 0.000, y = 38.166, z = 0.000 }, level = 11, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true, explore = { name = "chest", exp = 1 }, area_id = 2 }, { config_id = 1770, gadget_id = 70220005, pos = { x = 1211.412, y = 257.372, z = -1529.172 }, rot = { x = 0.000, y = 42.361, z = 0.000 }, level = 15, area_id = 2 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1000172, name = "MONSTER_BATTLE_172", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_172", action = "action_EVENT_MONSTER_BATTLE_172" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 2, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { 507, 508 }, gadgets = { 1769, 1770 }, regions = { }, triggers = { }, rand_weight = 100 }, { -- suite_id = 2, -- description = suite_2, monsters = { }, gadgets = { }, regions = { }, triggers = { }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_MONSTER_BATTLE_172(context, evt) if 508 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_MONSTER_BATTLE_172(context, evt) -- 通知groupid为133001103中,configid为:507的怪物入战或者脱战,set为1是入战,为0是脱战 if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 507, 133001103) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group") return -1 end return 0 end