503 lines
19 KiB
Go
503 lines
19 KiB
Go
-- 基础信息
|
||
local base_info = {
|
||
group_id = 250041004
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 怪物
|
||
monsters = {
|
||
}
|
||
|
||
-- NPC
|
||
npcs = {
|
||
}
|
||
|
||
-- 装置
|
||
gadgets = {
|
||
{ config_id = 4001, gadget_id = 70360002, pos = { x = -5.360, y = 45.500, z = -74.307 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 4002, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
|
||
{ config_id = 4003, gadget_id = 70950010, pos = { x = 15.556, y = 45.848, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4004, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
|
||
{ config_id = 4005, gadget_id = 70950010, pos = { x = 27.355, y = 50.143, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4006, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -79.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6 },
|
||
{ config_id = 4007, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
|
||
{ config_id = 4008, gadget_id = 70950010, pos = { x = 37.114, y = 53.695, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4009, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -79.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6 },
|
||
{ config_id = 4010, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
|
||
{ config_id = 4011, gadget_id = 70950010, pos = { x = 59.739, y = 59.203, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4012, gadget_id = 70950010, pos = { x = 73.290, y = 60.945, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4013, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
|
||
{ config_id = 4016, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
|
||
{ config_id = 4017, gadget_id = 70950010, pos = { x = 72.781, y = 59.750, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4018, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
|
||
{ config_id = 4019, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
|
||
{ config_id = 4020, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
|
||
{ config_id = 4021, gadget_id = 70950010, pos = { x = 14.677, y = 45.528, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4022, gadget_id = 70950010, pos = { x = 36.135, y = 53.338, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4023, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
|
||
{ config_id = 4024, gadget_id = 70950010, pos = { x = 53.576, y = 57.252, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4025, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
|
||
{ config_id = 4026, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
|
||
{ config_id = 4027, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -79.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6 },
|
||
{ config_id = 4028, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
|
||
{ config_id = 4029, gadget_id = 70950010, pos = { x = 76.516, y = 65.310, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4030, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -79.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6 },
|
||
{ config_id = 4031, gadget_id = 70950010, pos = { x = 87.582, y = 66.147, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4032, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
|
||
{ config_id = 4033, gadget_id = 70950010, pos = { x = 88.940, y = 65.632, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
|
||
{ config_id = 4034, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -79.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6 },
|
||
{ config_id = 4035, gadget_id = 70120004, pos = { x = 108.817, y = 71.100, z = -80.977 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 4048, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -76.492 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 4049, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -79.944 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 },
|
||
{ config_id = 4050, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -83.184 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 }
|
||
}
|
||
|
||
-- 区域
|
||
regions = {
|
||
}
|
||
|
||
-- 触发器
|
||
triggers = {
|
||
{ config_id = 1004014, name = "SELECT_OPTION_4014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4014", action = "action_EVENT_SELECT_OPTION_4014" },
|
||
{ config_id = 1004015, name = "CHALLENGE_FAIL_4015", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_4015" },
|
||
{ config_id = 1004036, name = "GADGET_CREATE_4036", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4036", action = "action_EVENT_GADGET_CREATE_4036" },
|
||
{ config_id = 1004037, name = "SELECT_OPTION_4037", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4037", action = "action_EVENT_SELECT_OPTION_4037" },
|
||
{ config_id = 1004038, name = "TIMER_EVENT_4038", event = EventType.EVENT_TIMER_EVENT, source = "AA10", condition = "", action = "action_EVENT_TIMER_EVENT_4038", trigger_count = 10 },
|
||
{ config_id = 1004039, name = "TIMER_EVENT_4039", event = EventType.EVENT_TIMER_EVENT, source = "AA9", condition = "", action = "action_EVENT_TIMER_EVENT_4039", trigger_count = 10 },
|
||
{ config_id = 1004040, name = "TIMER_EVENT_4040", event = EventType.EVENT_TIMER_EVENT, source = "AA8", condition = "", action = "action_EVENT_TIMER_EVENT_4040", trigger_count = 10 },
|
||
{ config_id = 1004041, name = "TIMER_EVENT_4041", event = EventType.EVENT_TIMER_EVENT, source = "AA7", condition = "", action = "action_EVENT_TIMER_EVENT_4041", trigger_count = 10 },
|
||
{ config_id = 1004042, name = "TIMER_EVENT_4042", event = EventType.EVENT_TIMER_EVENT, source = "AA6", condition = "", action = "action_EVENT_TIMER_EVENT_4042", trigger_count = 10 },
|
||
{ config_id = 1004043, name = "TIMER_EVENT_4043", event = EventType.EVENT_TIMER_EVENT, source = "AA5", condition = "", action = "action_EVENT_TIMER_EVENT_4043", trigger_count = 10 },
|
||
{ config_id = 1004044, name = "TIMER_EVENT_4044", event = EventType.EVENT_TIMER_EVENT, source = "AA4", condition = "", action = "action_EVENT_TIMER_EVENT_4044", trigger_count = 10 },
|
||
{ config_id = 1004045, name = "TIMER_EVENT_4045", event = EventType.EVENT_TIMER_EVENT, source = "AA3", condition = "", action = "action_EVENT_TIMER_EVENT_4045", trigger_count = 10 },
|
||
{ config_id = 1004046, name = "TIMER_EVENT_4046", event = EventType.EVENT_TIMER_EVENT, source = "AA2", condition = "", action = "action_EVENT_TIMER_EVENT_4046", trigger_count = 10 },
|
||
{ config_id = 1004047, name = "TIMER_EVENT_4047", event = EventType.EVENT_TIMER_EVENT, source = "AA1", condition = "", action = "action_EVENT_TIMER_EVENT_4047", trigger_count = 10 }
|
||
}
|
||
|
||
-- 变量
|
||
variables = {
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 初始化配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 初始化时创建
|
||
init_config = {
|
||
suite = 1,
|
||
end_suite = 0,
|
||
rand_suite = false
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 小组配置
|
||
--
|
||
--================================================================
|
||
|
||
suites = {
|
||
{
|
||
-- suite_id = 1,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4001 },
|
||
regions = { },
|
||
triggers = { "SELECT_OPTION_4014", "CHALLENGE_FAIL_4015", "GADGET_CREATE_4036", "SELECT_OPTION_4037", "TIMER_EVENT_4038", "TIMER_EVENT_4039", "TIMER_EVENT_4040", "TIMER_EVENT_4041", "TIMER_EVENT_4042", "TIMER_EVENT_4043", "TIMER_EVENT_4044", "TIMER_EVENT_4045", "TIMER_EVENT_4046", "TIMER_EVENT_4047" },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 2,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4002, 4004 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 3,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4009, 4010 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 4,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4013 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 5,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4016, 4018, 4034 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 6,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4019 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 7,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4020 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 8,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4023, 4025 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 9,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4026, 4027, 4028 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 10,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4030 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 11,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4032 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 12,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4006, 4007 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 13,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 4003, 4005, 4008, 4011, 4012, 4017, 4021, 4022, 4024, 4029, 4031, 4033, 4035, 4048, 4049, 4050 },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
}
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 触发器
|
||
--
|
||
--================================================================
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_SELECT_OPTION_4014(context, evt)
|
||
-- 判断是gadgetid 4001 option_id 2
|
||
if 4001 ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
if 2 ~= evt.param2 then
|
||
return false
|
||
end
|
||
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_SELECT_OPTION_4014(context, evt)
|
||
-- 创建编号为666(该挑战的识别id),挑战内容为127的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 127, 90, 4, 666, 1) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_CHALLENGE_FAIL_4015(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041004, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
-- 取消group中对应名称的TimerEvent
|
||
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041004, "AA1") then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
-- 取消group中对应名称的TimerEvent
|
||
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041004, "AA3") then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
-- 取消group中对应名称的TimerEvent
|
||
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041004, "AA5") then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
-- 取消group中对应名称的TimerEvent
|
||
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041004, "AA7") then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
-- 取消group中对应名称的TimerEvent
|
||
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041004, "AA9") then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_GADGET_CREATE_4036(context, evt)
|
||
if 4001 ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GADGET_CREATE_4036(context, evt)
|
||
-- 设置操作台选项
|
||
if 0 ~= ScriptLib.SetWorktopOptions(context, {2}) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_SELECT_OPTION_4037(context, evt)
|
||
-- 判断是gadgetid 4001 option_id 2
|
||
if 4001 ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
if 2 ~= evt.param2 then
|
||
return false
|
||
end
|
||
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_SELECT_OPTION_4037(context, evt)
|
||
-- 延迟1秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA1" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA1", 1) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
-- 添加suite13的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 13)
|
||
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041002, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041003, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041005, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIMER_EVENT_4038(context, evt)
|
||
-- 添加suite12的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 12)
|
||
|
||
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA1" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA1", 3) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIMER_EVENT_4039(context, evt)
|
||
-- 添加suite11的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 11)
|
||
|
||
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA10" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA10", 3) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIMER_EVENT_4040(context, evt)
|
||
-- 添加suite10的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 10)
|
||
|
||
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA9" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA9", 3) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIMER_EVENT_4041(context, evt)
|
||
-- 添加suite9的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 9)
|
||
|
||
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA8" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA8", 3) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIMER_EVENT_4042(context, evt)
|
||
-- 添加suite8的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 8)
|
||
|
||
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA7" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA7", 3) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIMER_EVENT_4043(context, evt)
|
||
-- 添加suite7的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 7)
|
||
|
||
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA6" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA6", 3) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIMER_EVENT_4044(context, evt)
|
||
-- 添加suite6的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 6)
|
||
|
||
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA5" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA5", 3) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIMER_EVENT_4045(context, evt)
|
||
-- 添加suite5的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 5)
|
||
|
||
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA4" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA4", 3) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIMER_EVENT_4046(context, evt)
|
||
-- 添加suite4的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 4)
|
||
|
||
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA3" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA3", 3) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIMER_EVENT_4047(context, evt)
|
||
-- 添加suite3的新内容
|
||
ScriptLib.AddExtraGroupSuite(context, 250041004, 3)
|
||
|
||
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA2" 传递过去
|
||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA2", 3) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end |