86 lines
2.0 KiB
Lua
86 lines
2.0 KiB
Lua
-- 基础信息
|
|
local base_info = {
|
|
group_id = 155006045
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 怪物
|
|
monsters = {
|
|
}
|
|
|
|
-- NPC
|
|
npcs = {
|
|
{ config_id = 45002, npc_id = 20502, pos = { x = -229.393, y = 245.911, z = 152.143 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 200 }
|
|
}
|
|
|
|
-- 装置
|
|
gadgets = {
|
|
{ config_id = 45001, gadget_id = 70710091, pos = { x = -229.545, y = 245.443, z = 151.854 }, rot = { x = 0.000, y = 24.927, z = 0.000 }, level = 36, area_id = 200 }
|
|
}
|
|
|
|
-- 区域
|
|
regions = {
|
|
}
|
|
|
|
-- 触发器
|
|
triggers = {
|
|
{ config_id = 1045003, name = "QUEST_FINISH_45003", event = EventType.EVENT_QUEST_FINISH, source = "7225701", condition = "", action = "action_EVENT_QUEST_FINISH_45003", trigger_count = 0 }
|
|
}
|
|
|
|
-- 变量
|
|
variables = {
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 初始化配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 初始化时创建
|
|
init_config = {
|
|
suite = 1,
|
|
end_suite = 0,
|
|
rand_suite = false
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 小组配置
|
|
--
|
|
--================================================================
|
|
|
|
suites = {
|
|
{
|
|
-- suite_id = 1,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { 45001 },
|
|
regions = { },
|
|
triggers = { "QUEST_FINISH_45003" },
|
|
npcs = { 45002 },
|
|
rand_weight = 100
|
|
}
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 触发器
|
|
--
|
|
--================================================================
|
|
|
|
-- 触发操作
|
|
function action_EVENT_QUEST_FINISH_45003(context, evt)
|
|
-- 针对当前group内变量名为 "activeCount" 的变量,进行修改,变化值为 1
|
|
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "activeCount", 1, 155006048) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end |