236 lines
10 KiB
Go
236 lines
10 KiB
Go
-- 基础信息
|
||
local base_info = {
|
||
group_id = 220000069
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 怪物
|
||
monsters = {
|
||
}
|
||
|
||
-- NPC
|
||
npcs = {
|
||
}
|
||
|
||
-- 装置
|
||
gadgets = {
|
||
{ config_id = 484, gadget_id = 70900039, pos = { x = -49.796, y = 0.722, z = 640.335 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 485, gadget_id = 70690006, pos = { x = -49.796, y = 0.500, z = 640.335 }, rot = { x = 0.000, y = 202.087, z = 0.000 }, level = 1 },
|
||
{ config_id = 486, gadget_id = 70690001, pos = { x = -49.796, y = 5.000, z = 640.335 }, rot = { x = 90.000, y = 248.382, z = 0.000 }, level = 1 },
|
||
{ config_id = 487, gadget_id = 70690001, pos = { x = -49.796, y = 20.000, z = 640.335 }, rot = { x = 90.000, y = 270.335, z = 0.000 }, level = 1 },
|
||
{ config_id = 488, gadget_id = 70690001, pos = { x = -49.796, y = 35.000, z = 640.335 }, rot = { x = 90.000, y = 252.856, z = 0.000 }, level = 1 },
|
||
{ config_id = 489, gadget_id = 70690001, pos = { x = -49.796, y = 50.000, z = 640.335 }, rot = { x = 90.000, y = 103.025, z = 0.000 }, level = 1 },
|
||
{ config_id = 490, gadget_id = 70690001, pos = { x = -49.796, y = 65.000, z = 640.335 }, rot = { x = 90.000, y = 57.900, z = 0.000 }, level = 1 },
|
||
{ config_id = 491, gadget_id = 70500000, pos = { x = -49.796, y = 80.000, z = 675.335 }, rot = { x = 0.000, y = 156.421, z = 0.000 }, level = 1, point_type = 4001001 },
|
||
{ config_id = 492, gadget_id = 70500000, pos = { x = -49.796, y = 65.000, z = 675.335 }, rot = { x = 0.000, y = 229.552, z = 0.000 }, level = 1, point_type = 4001001 },
|
||
{ config_id = 493, gadget_id = 70500000, pos = { x = -85.796, y = 50.000, z = 640.335 }, rot = { x = 0.000, y = 195.191, z = 0.000 }, level = 1, point_type = 4001001 },
|
||
{ config_id = 494, gadget_id = 70500000, pos = { x = -49.796, y = 80.000, z = 605.335 }, rot = { x = 0.000, y = 263.742, z = 0.000 }, level = 1, point_type = 4001001 },
|
||
{ config_id = 495, gadget_id = 70500000, pos = { x = -49.796, y = 20.000, z = 605.335 }, rot = { x = 0.000, y = 206.330, z = 0.000 }, level = 1, point_type = 4001001 },
|
||
{ config_id = 496, gadget_id = 70500000, pos = { x = -15.796, y = 20.000, z = 640.335 }, rot = { x = 0.000, y = 289.499, z = 0.000 }, level = 1, point_type = 4001001 },
|
||
{ config_id = 497, gadget_id = 70500000, pos = { x = -15.796, y = 80.000, z = 640.335 }, rot = { x = 0.000, y = 144.752, z = 0.000 }, level = 1, point_type = 4001001 },
|
||
{ config_id = 498, gadget_id = 70690006, pos = { x = -49.796, y = 80.000, z = 645.335 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 499, gadget_id = 70690006, pos = { x = -44.796, y = 80.000, z = 640.335 }, rot = { x = 90.000, y = 90.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 500, gadget_id = 70690006, pos = { x = -49.796, y = 80.000, z = 635.335 }, rot = { x = 90.000, y = 180.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 501, gadget_id = 70690006, pos = { x = -54.796, y = 80.000, z = 640.335 }, rot = { x = 90.000, y = 270.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 502, gadget_id = 70690006, pos = { x = -49.796, y = 29.160, z = 605.335 }, rot = { x = 0.000, y = 202.087, z = 0.000 }, level = 1 },
|
||
{ config_id = 503, gadget_id = 70690006, pos = { x = -49.796, y = 50.000, z = 605.335 }, rot = { x = 0.000, y = 202.087, z = 0.000 }, level = 1 },
|
||
{ config_id = 504, gadget_id = 70690006, pos = { x = -49.796, y = 20.000, z = 605.335 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 505, gadget_id = 70690001, pos = { x = -49.796, y = 35.000, z = 605.335 }, rot = { x = 90.000, y = 252.856, z = 0.000 }, level = 1 },
|
||
{ config_id = 506, gadget_id = 70690001, pos = { x = -49.796, y = 50.000, z = 605.335 }, rot = { x = 90.000, y = 252.856, z = 0.000 }, level = 1 },
|
||
{ config_id = 507, gadget_id = 70690001, pos = { x = -49.796, y = 65.000, z = 605.335 }, rot = { x = 90.000, y = 252.856, z = 0.000 }, level = 1 },
|
||
{ config_id = 508, gadget_id = 70900201, pos = { x = -49.796, y = 80.000, z = 675.335 }, rot = { x = 0.000, y = 343.290, z = 0.000 }, level = 1 },
|
||
{ config_id = 509, gadget_id = 70900201, pos = { x = -49.796, y = 65.000, z = 675.335 }, rot = { x = 0.000, y = 75.791, z = 0.000 }, level = 1 },
|
||
{ config_id = 510, gadget_id = 70900201, pos = { x = -85.796, y = 50.000, z = 640.335 }, rot = { x = 0.000, y = 273.710, z = 0.000 }, level = 1 },
|
||
{ config_id = 511, gadget_id = 70900201, pos = { x = -49.796, y = 80.000, z = 605.335 }, rot = { x = 0.000, y = 8.766, z = 0.000 }, level = 1 },
|
||
{ config_id = 512, gadget_id = 70900201, pos = { x = -49.796, y = 20.000, z = 605.335 }, rot = { x = 0.000, y = 51.509, z = 0.000 }, level = 1 },
|
||
{ config_id = 513, gadget_id = 70900201, pos = { x = -15.796, y = 20.000, z = 640.335 }, rot = { x = 0.000, y = 34.475, z = 0.000 }, level = 1 },
|
||
{ config_id = 514, gadget_id = 70900201, pos = { x = -15.796, y = 80.000, z = 640.335 }, rot = { x = 0.000, y = 343.290, z = 0.000 }, level = 1 }
|
||
}
|
||
|
||
-- 区域
|
||
regions = {
|
||
}
|
||
|
||
-- 触发器
|
||
triggers = {
|
||
{ config_id = 1000139, name = "GADGET_STATE_CHANGE_139", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_139", action = "action_EVENT_GADGET_STATE_CHANGE_139" },
|
||
{ config_id = 1000140, name = "GATHER_140", event = EventType.EVENT_GATHER, source = "491", condition = "", action = "action_EVENT_GATHER_140", forbid_guest = false },
|
||
{ config_id = 1000141, name = "GATHER_141", event = EventType.EVENT_GATHER, source = "492", condition = "", action = "action_EVENT_GATHER_141", forbid_guest = false },
|
||
{ config_id = 1000142, name = "GATHER_142", event = EventType.EVENT_GATHER, source = "493", condition = "", action = "action_EVENT_GATHER_142", forbid_guest = false },
|
||
{ config_id = 1000143, name = "GATHER_143", event = EventType.EVENT_GATHER, source = "494", condition = "", action = "action_EVENT_GATHER_143", forbid_guest = false },
|
||
{ config_id = 1000144, name = "GATHER_144", event = EventType.EVENT_GATHER, source = "495", condition = "", action = "action_EVENT_GATHER_144", forbid_guest = false },
|
||
{ config_id = 1000145, name = "GATHER_145", event = EventType.EVENT_GATHER, source = "496", condition = "", action = "action_EVENT_GATHER_145", forbid_guest = false },
|
||
{ config_id = 1000146, name = "GATHER_146", event = EventType.EVENT_GATHER, source = "497", condition = "", action = "action_EVENT_GATHER_146", forbid_guest = false },
|
||
{ config_id = 1000149, name = "VARIABLE_CHANGE_149", event = EventType.EVENT_VARIABLE_CHANGE, source = "num", condition = "", action = "action_EVENT_VARIABLE_CHANGE_149", trigger_count = 7, tag = "69" }
|
||
}
|
||
|
||
-- 变量
|
||
variables = {
|
||
{ config_id = 1, name = "num", value = 0, no_refresh = true }
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 初始化配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 初始化时创建
|
||
init_config = {
|
||
suite = 1,
|
||
end_suite = 0,
|
||
rand_suite = true
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 小组配置
|
||
--
|
||
--================================================================
|
||
|
||
suites = {
|
||
{
|
||
-- suite_id = 1,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514 },
|
||
regions = { },
|
||
triggers = { "GADGET_STATE_CHANGE_139", "GATHER_140", "GATHER_141", "GATHER_142", "GATHER_143", "GATHER_144", "GATHER_145", "GATHER_146", "VARIABLE_CHANGE_149" },
|
||
rand_weight = 100
|
||
}
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 触发器
|
||
--
|
||
--================================================================
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_GADGET_STATE_CHANGE_139(context, evt)
|
||
if 484 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GADGET_STATE_CHANGE_139(context, evt)
|
||
-- 创建编号为0(该挑战的识别id),挑战内容为167的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||
if 0 ~= ScriptLib.ActiveChallenge(context, 0, 167, 60, 3, 69, 7) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GATHER_140(context, evt)
|
||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 508 }) then
|
||
return -1
|
||
end
|
||
|
||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GATHER_141(context, evt)
|
||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 509 }) then
|
||
return -1
|
||
end
|
||
|
||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GATHER_142(context, evt)
|
||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 510 }) then
|
||
return -1
|
||
end
|
||
|
||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GATHER_143(context, evt)
|
||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 511 }) then
|
||
return -1
|
||
end
|
||
|
||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GATHER_144(context, evt)
|
||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 512 }) then
|
||
return -1
|
||
end
|
||
|
||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GATHER_145(context, evt)
|
||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 513 }) then
|
||
return -1
|
||
end
|
||
|
||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GATHER_146(context, evt)
|
||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 514 }) then
|
||
return -1
|
||
end
|
||
|
||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_VARIABLE_CHANGE_149(context, evt)
|
||
if evt.param1 == evt.param2 then return -1 end
|
||
|
||
-- 将configid为 484 的物件更改为状态 GadgetState.Default
|
||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 484, GadgetState.Default) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end |