152 lines
5.6 KiB
Go
152 lines
5.6 KiB
Go
-- 基础信息
|
||
local base_info = {
|
||
group_id = 240021015
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 怪物
|
||
monsters = {
|
||
{ config_id = 15001, monster_id = 20011001, pos = { x = 7.834, y = 0.002, z = -4.363 }, rot = { x = 0.000, y = 300.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15002, monster_id = 20011001, pos = { x = 5.009, y = 0.002, z = -6.178 }, rot = { x = 0.000, y = 320.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15003, monster_id = 20011001, pos = { x = 1.856, y = 0.002, z = -7.382 }, rot = { x = 0.000, y = 345.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15004, monster_id = 20011001, pos = { x = -2.611, y = 0.002, z = -7.690 }, rot = { x = 0.000, y = 25.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15005, monster_id = 20011001, pos = { x = -6.395, y = 0.002, z = -5.377 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15006, monster_id = 20011001, pos = { x = -8.990, y = 0.002, z = -1.801 }, rot = { x = 0.000, y = 75.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15007, monster_id = 20011101, pos = { x = -9.593, y = 0.002, z = 2.756 }, rot = { x = 0.000, y = 105.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15008, monster_id = 20011001, pos = { x = 8.844, y = 0.002, z = -1.415 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15009, monster_id = 20011001, pos = { x = 9.853, y = 0.002, z = 1.750 }, rot = { x = 0.000, y = 260.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15010, monster_id = 20011001, pos = { x = 8.252, y = 0.002, z = 6.088 }, rot = { x = 0.000, y = 240.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15011, monster_id = 20011001, pos = { x = 4.573, y = 0.002, z = 8.853 }, rot = { x = 0.000, y = 220.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15012, monster_id = 20011101, pos = { x = 0.497, y = 0.002, z = 10.075 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15013, monster_id = 20011001, pos = { x = -3.784, y = 0.002, z = 9.174 }, rot = { x = 0.000, y = 160.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 15014, monster_id = 20011001, pos = { x = -6.471, y = 0.002, z = 6.777 }, rot = { x = 0.000, y = 140.000, z = 0.000 }, level = 1 }
|
||
}
|
||
|
||
-- NPC
|
||
npcs = {
|
||
}
|
||
|
||
-- 装置
|
||
gadgets = {
|
||
{ config_id = 15015, gadget_id = 70900205, pos = { x = 6.004, y = -3.044, z = 2.916 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||
}
|
||
|
||
-- 区域
|
||
regions = {
|
||
}
|
||
|
||
-- 触发器
|
||
triggers = {
|
||
{ config_id = 1015016, name = "ANY_MONSTER_LIVE_15016", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_15016", action = "action_EVENT_ANY_MONSTER_LIVE_15016" },
|
||
{ config_id = 1015017, name = "CHALLENGE_SUCCESS_15017", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "11", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_15017" },
|
||
{ config_id = 1015018, name = "CHALLENGE_FAIL_15018", event = EventType.EVENT_CHALLENGE_FAIL, source = "11", condition = "", action = "action_EVENT_CHALLENGE_FAIL_15018" }
|
||
}
|
||
|
||
-- 变量
|
||
variables = {
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 初始化配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 初始化时创建
|
||
init_config = {
|
||
suite = 1,
|
||
end_suite = 0,
|
||
rand_suite = false
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 小组配置
|
||
--
|
||
--================================================================
|
||
|
||
suites = {
|
||
{
|
||
-- suite_id = 1,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 15015 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 2,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 15015 },
|
||
regions = { },
|
||
triggers = { "ANY_MONSTER_LIVE_15016", "CHALLENGE_SUCCESS_15017", "CHALLENGE_FAIL_15018" },
|
||
rand_weight = 100
|
||
}
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 触发器
|
||
--
|
||
--================================================================
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_ANY_MONSTER_LIVE_15016(context, evt)
|
||
if 15001 ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_ANY_MONSTER_LIVE_15016(context, evt)
|
||
-- 创建编号为11(该挑战的识别id),挑战内容为2的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||
if 0 ~= ScriptLib.ActiveChallenge(context, 11, 2, 180, 240021015, 30, 0) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_CHALLENGE_SUCCESS_15017(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240021015, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240021009, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_CHALLENGE_FAIL_15018(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240021015, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240021009, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end |