-- 基础信息 local base_info = { group_id = 240302009 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 9, gadget_id = 70340014, pos = { x = 0.000, y = 0.000, z = -46.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 10, gadget_id = 70350008, pos = { x = -1.226, y = 2.688, z = -43.076 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 11, gadget_id = 70350008, pos = { x = -1.921, y = 2.688, z = -42.992 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 12, gadget_id = 70350008, pos = { x = 1.095, y = 2.688, z = -42.819 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 13, gadget_id = 70350008, pos = { x = 0.320, y = 2.688, z = -42.867 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 14, gadget_id = 70350008, pos = { x = -1.335, y = 2.532, z = -42.281 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }, { config_id = 15, gadget_id = 70350008, pos = { x = 1.867, y = 2.532, z = -41.938 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1000026, name = "DUNGEON_SETTLE_26", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_26", action = "action_EVENT_DUNGEON_SETTLE_26" }, { config_id = 1000027, name = "DUNGEON_REWARD_GET_27", event = EventType.EVENT_DUNGEON_REWARD_GET, source = "", condition = "", action = "action_EVENT_DUNGEON_REWARD_GET_27" } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 9, 10, 11, 12, 13, 14, 15 }, regions = { }, triggers = { "DUNGEON_SETTLE_26" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_DUNGEON_SETTLE_26(context, evt) -- 判断副本成功 if 1 ~= evt.param1 then return false end return true end -- 触发操作 function action_EVENT_DUNGEON_SETTLE_26(context, evt) -- 改变指定group组240302009中, configid为9的gadget的state if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240302009, 9, GadgetState.StatueActive) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId") return -1 end -- 改变指定group组240302008中, configid为8的gadget的state if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240302008, 8, GadgetState.Default) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId") return -1 end -- 重新生成指定group,指定suite if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240302007, suite = 1 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite") return -1 end return 0 end -- 触发操作 function action_EVENT_DUNGEON_REWARD_GET_27(context, evt) -- 将configid为 9 的物件更改为状态 GadgetState.GearStop if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9, GadgetState.GearStop) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") return -1 end return 0 end