318 lines
21 KiB
Go
318 lines
21 KiB
Go
-- 基础信息
|
||
local base_info = {
|
||
group_id = 133001581
|
||
}
|
||
|
||
-- DEFS_MISCS
|
||
local defs = {
|
||
RegionID = 581029
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 怪物
|
||
monsters = {
|
||
[581001] = { config_id = 581001, monster_id = 21010201, pos = { x = 1560.720, y = 252.089, z = -1651.260 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581002] = { config_id = 581002, monster_id = 21010201, pos = { x = 1558.227, y = 252.090, z = -1649.833 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581003] = { config_id = 581003, monster_id = 21011201, pos = { x = 1556.524, y = 252.089, z = -1647.421 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581004] = { config_id = 581004, monster_id = 21010201, pos = { x = 1554.992, y = 252.089, z = -1645.163 }, rot = { x = 0.000, y = 65.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581005] = { config_id = 581005, monster_id = 21010201, pos = { x = 1554.584, y = 252.089, z = -1642.164 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581006] = { config_id = 581006, monster_id = 21010201, pos = { x = 1566.104, y = 252.089, z = -1651.292 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581007] = { config_id = 581007, monster_id = 21011201, pos = { x = 1568.490, y = 252.089, z = -1650.311 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581008] = { config_id = 581008, monster_id = 21010201, pos = { x = 1570.762, y = 252.089, z = -1648.497 }, rot = { x = 0.000, y = 330.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581009] = { config_id = 581009, monster_id = 21010201, pos = { x = 1572.843, y = 252.089, z = -1646.441 }, rot = { x = 0.000, y = 300.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581010] = { config_id = 581010, monster_id = 21030401, pos = { x = 1556.411, y = 252.090, z = -1635.581 }, rot = { x = 0.000, y = 135.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581011] = { config_id = 581011, monster_id = 21010201, pos = { x = 1574.002, y = 252.089, z = -1641.506 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581012] = { config_id = 581012, monster_id = 21010201, pos = { x = 1573.962, y = 252.090, z = -1638.954 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581013] = { config_id = 581013, monster_id = 21010201, pos = { x = 1572.744, y = 252.089, z = -1636.703 }, rot = { x = 0.000, y = 240.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581014] = { config_id = 581014, monster_id = 21011201, pos = { x = 1571.317, y = 252.090, z = -1634.650 }, rot = { x = 0.000, y = 220.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581015] = { config_id = 581015, monster_id = 21010201, pos = { x = 1569.402, y = 252.090, z = -1633.067 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581016] = { config_id = 581016, monster_id = 21010201, pos = { x = 1566.423, y = 252.090, z = -1631.983 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581017] = { config_id = 581017, monster_id = 21010201, pos = { x = 1563.797, y = 252.090, z = -1631.428 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581018] = { config_id = 581018, monster_id = 21020201, pos = { x = 1561.062, y = 252.090, z = -1632.138 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581030] = { config_id = 581030, monster_id = 21010201, pos = { x = 1560.771, y = 252.079, z = -1651.091 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1006 }, area_id = 2 },
|
||
[581031] = { config_id = 581031, monster_id = 21010201, pos = { x = 1558.278, y = 252.079, z = -1649.664 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1006 }, area_id = 2 },
|
||
[581032] = { config_id = 581032, monster_id = 21011201, pos = { x = 1556.575, y = 252.079, z = -1647.252 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1006 }, area_id = 2 },
|
||
[581033] = { config_id = 581033, monster_id = 21010201, pos = { x = 1555.043, y = 252.079, z = -1644.994 }, rot = { x = 0.000, y = 65.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1006 }, area_id = 2 },
|
||
[581034] = { config_id = 581034, monster_id = 21010201, pos = { x = 1554.635, y = 252.079, z = -1641.995 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1006 }, area_id = 2 },
|
||
[581035] = { config_id = 581035, monster_id = 21010201, pos = { x = 1566.155, y = 252.079, z = -1651.123 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1007 }, area_id = 2 },
|
||
[581036] = { config_id = 581036, monster_id = 21011201, pos = { x = 1568.541, y = 252.079, z = -1650.142 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1007 }, area_id = 2 },
|
||
[581037] = { config_id = 581037, monster_id = 21010201, pos = { x = 1570.813, y = 252.078, z = -1648.328 }, rot = { x = 0.000, y = 330.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1007 }, area_id = 2 },
|
||
[581038] = { config_id = 581038, monster_id = 21010201, pos = { x = 1572.894, y = 252.079, z = -1646.272 }, rot = { x = 0.000, y = 300.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1007 }, area_id = 2 },
|
||
[581039] = { config_id = 581039, monster_id = 21010201, pos = { x = 1556.462, y = 252.079, z = -1635.412 }, rot = { x = 0.000, y = 135.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1007 }, area_id = 2 },
|
||
[581040] = { config_id = 581040, monster_id = 21030401, pos = { x = 1574.053, y = 252.079, z = -1641.337 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1007, 1006 }, area_id = 2 },
|
||
[581041] = { config_id = 581041, monster_id = 21010201, pos = { x = 1574.013, y = 252.079, z = -1638.785 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1007, 1006 }, area_id = 2 },
|
||
[581042] = { config_id = 581042, monster_id = 21010201, pos = { x = 1572.795, y = 252.079, z = -1636.534 }, rot = { x = 0.000, y = 240.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1007, 1006 }, area_id = 2 },
|
||
[581043] = { config_id = 581043, monster_id = 21010201, pos = { x = 1571.368, y = 252.079, z = -1634.481 }, rot = { x = 0.000, y = 220.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1008 }, area_id = 2 },
|
||
[581044] = { config_id = 581044, monster_id = 21011201, pos = { x = 1569.453, y = 252.080, z = -1632.898 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1008 }, area_id = 2 },
|
||
[581045] = { config_id = 581045, monster_id = 21010201, pos = { x = 1566.474, y = 252.079, z = -1631.814 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1008 }, area_id = 2 },
|
||
[581046] = { config_id = 581046, monster_id = 21010201, pos = { x = 1563.848, y = 252.080, z = -1631.259 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1008 }, area_id = 2 },
|
||
[581047] = { config_id = 581047, monster_id = 21010201, pos = { x = 1561.113, y = 252.080, z = -1631.969 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1008, 1009, 1006 }, area_id = 2 },
|
||
[581048] = { config_id = 581048, monster_id = 21011201, pos = { x = 1560.584, y = 252.079, z = -1651.138 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1008, 1009, 1006 }, area_id = 2 },
|
||
[581049] = { config_id = 581049, monster_id = 21010201, pos = { x = 1558.091, y = 252.079, z = -1649.711 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1008, 1009, 1006 }, area_id = 2 },
|
||
[581050] = { config_id = 581050, monster_id = 21010201, pos = { x = 1556.388, y = 252.078, z = -1647.299 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1008, 1009, 1006 }, area_id = 2 },
|
||
[581051] = { config_id = 581051, monster_id = 21010201, pos = { x = 1554.856, y = 252.079, z = -1645.041 }, rot = { x = 0.000, y = 65.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1008, 1009, 1007 }, area_id = 2 },
|
||
[581052] = { config_id = 581052, monster_id = 21011201, pos = { x = 1554.448, y = 252.079, z = -1642.042 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1008, 1009, 1007 }, area_id = 2 },
|
||
[581053] = { config_id = 581053, monster_id = 21010201, pos = { x = 1565.968, y = 252.079, z = -1651.170 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1008, 1009, 1007 }, area_id = 2 },
|
||
[581054] = { config_id = 581054, monster_id = 21010201, pos = { x = 1568.354, y = 252.078, z = -1650.189 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1008, 1009, 1007 }, area_id = 2 },
|
||
[581055] = { config_id = 581055, monster_id = 21010201, pos = { x = 1570.626, y = 252.078, z = -1648.375 }, rot = { x = 0.000, y = 330.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1033 }, area_id = 2 },
|
||
[581056] = { config_id = 581056, monster_id = 21020201, pos = { x = 1572.707, y = 252.079, z = -1646.319 }, rot = { x = 0.000, y = 300.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1033 }, area_id = 2 },
|
||
[581057] = { config_id = 581057, monster_id = 21010201, pos = { x = 1556.275, y = 252.079, z = -1635.459 }, rot = { x = 0.000, y = 135.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1033 }, area_id = 2 },
|
||
[581058] = { config_id = 581058, monster_id = 21010201, pos = { x = 1573.866, y = 252.079, z = -1641.384 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1033 }, area_id = 2 },
|
||
[581059] = { config_id = 581059, monster_id = 21010201, pos = { x = 1573.826, y = 252.079, z = -1638.832 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1009, 1033 }, area_id = 2 },
|
||
[581060] = { config_id = 581060, monster_id = 21011201, pos = { x = 1572.608, y = 252.079, z = -1636.581 }, rot = { x = 0.000, y = 240.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1007, 1008, 1009 }, area_id = 2 },
|
||
[581061] = { config_id = 581061, monster_id = 21010201, pos = { x = 1571.181, y = 252.079, z = -1634.528 }, rot = { x = 0.000, y = 220.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1007, 1008, 1009 }, area_id = 2 },
|
||
[581062] = { config_id = 581062, monster_id = 21010201, pos = { x = 1569.266, y = 252.079, z = -1632.945 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581063] = { config_id = 581063, monster_id = 21010201, pos = { x = 1566.287, y = 252.079, z = -1631.861 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581064] = { config_id = 581064, monster_id = 21010201, pos = { x = 1563.661, y = 252.080, z = -1631.306 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
|
||
[581065] = { config_id = 581065, monster_id = 21010201, pos = { x = 1560.926, y = 252.079, z = -1632.016 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1007, 1008, 1009 }, area_id = 2 }
|
||
}
|
||
|
||
-- NPC
|
||
npcs = {
|
||
}
|
||
|
||
-- 装置
|
||
gadgets = {
|
||
[581019] = { config_id = 581019, gadget_id = 70950060, pos = { x = 1563.954, y = 252.215, z = -1642.787 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 15, area_id = 2 },
|
||
[581066] = { config_id = 581066, gadget_id = 70710001, pos = { x = 1563.880, y = 252.080, z = -1639.954 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 2 }
|
||
}
|
||
|
||
-- 区域
|
||
regions = {
|
||
[581029] = { config_id = 581029, shape = RegionShape.SPHERE, radius = 27, pos = { x = 1564.328, y = 252.197, z = -1641.672 }, area_id = 2 }
|
||
}
|
||
|
||
-- 触发器
|
||
triggers = {
|
||
{ config_id = 1581020, name = "GADGET_CREATE_581020", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_581020", action = "action_EVENT_GADGET_CREATE_581020", tlog_tag = "2" },
|
||
{ config_id = 1581021, name = "CHALLENGE_SUCCESS_581021", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "503", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_581021" },
|
||
{ config_id = 1581022, name = "CHALLENGE_FAIL_581022", event = EventType.EVENT_CHALLENGE_FAIL, source = "503", condition = "", action = "action_EVENT_CHALLENGE_FAIL_581022" },
|
||
{ config_id = 1581023, name = "GADGET_CREATE_581023", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_581023", action = "action_EVENT_GADGET_CREATE_581023", tlog_tag = "3" },
|
||
{ config_id = 1581024, name = "CHALLENGE_SUCCESS_581024", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "505", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_581024" },
|
||
{ config_id = 1581025, name = "GADGET_CREATE_581025", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_581025", action = "action_EVENT_GADGET_CREATE_581025", tlog_tag = "1" },
|
||
{ config_id = 1581026, name = "CHALLENGE_FAIL_581026", event = EventType.EVENT_CHALLENGE_FAIL, source = "505", condition = "", action = "action_EVENT_CHALLENGE_FAIL_581026" },
|
||
{ config_id = 1581027, name = "CHALLENGE_SUCCESS_581027", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "501", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_581027" },
|
||
{ config_id = 1581028, name = "CHALLENGE_FAIL_581028", event = EventType.EVENT_CHALLENGE_FAIL, source = "501", condition = "", action = "action_EVENT_CHALLENGE_FAIL_581028" }
|
||
}
|
||
|
||
-- 变量
|
||
variables = {
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 初始化配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 初始化时创建
|
||
init_config = {
|
||
suite = 1,
|
||
end_suite = 0,
|
||
rand_suite = false
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 小组配置
|
||
--
|
||
--================================================================
|
||
|
||
suites = {
|
||
{
|
||
-- suite_id = 1,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { },
|
||
regions = { 581029 },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 2,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 581019, 581066 },
|
||
regions = { },
|
||
triggers = { "GADGET_CREATE_581025", "CHALLENGE_SUCCESS_581027", "CHALLENGE_FAIL_581028" },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 3,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 581019, 581066 },
|
||
regions = { },
|
||
triggers = { "GADGET_CREATE_581020", "CHALLENGE_SUCCESS_581021", "CHALLENGE_FAIL_581022" },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 4,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 581019, 581066 },
|
||
regions = { },
|
||
triggers = { "GADGET_CREATE_581023", "CHALLENGE_SUCCESS_581024", "CHALLENGE_FAIL_581026" },
|
||
rand_weight = 100
|
||
}
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 触发器
|
||
--
|
||
--================================================================
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_GADGET_CREATE_581020(context, evt)
|
||
if 581019 ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GADGET_CREATE_581020(context, evt)
|
||
ScriptLib.CreateFatherChallenge(context, 503, 110171, 240, {success = 1, fail = 1, fail_on_wipe=true})
|
||
|
||
ScriptLib.AttachChildChallenge(context, 503, 110272, 110172, {240,133001581,30,0},{},{success=1,fail=1})
|
||
|
||
ScriptLib.AttachChildChallenge(context, 503, 110274, 110174, {240,1,0,0},{},{success=0,fail=1})
|
||
|
||
ScriptLib.StartFatherChallenge(context, 503)
|
||
|
||
-- 创建编号为502(该怪物潮的识别id)的怪物潮,创建怪物总数为99,场上怪物最少5只,最多5只
|
||
if 0 ~= ScriptLib.AutoMonsterTide(context, 504, 133001581, {581001,581002,581003,581004,581005,581006,581007,581008,581009,581010,581011,581012,581013,581014,581015,581016,581017,581018,581064,581063,581062}, 30, 5, 5) then
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_CHALLENGE_SUCCESS_581021(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133001581, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_CHALLENGE_FAIL_581022(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133001581, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_GADGET_CREATE_581023(context, evt)
|
||
if 581019 ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GADGET_CREATE_581023(context, evt)
|
||
ScriptLib.CreateFatherChallenge(context, 505, 110171, 150, {success = 1, fail = 1, fail_on_wipe=true})
|
||
|
||
ScriptLib.AttachChildChallenge(context, 505, 110372, 110172, {150,133001581,30,0},{},{success=1,fail=1})
|
||
|
||
ScriptLib.AttachChildChallenge(context, 505, 110374, 110179, {150,0,0,0},{},{success=0,fail=1})
|
||
|
||
ScriptLib.StartFatherChallenge(context, 505)
|
||
|
||
-- 创建编号为506(该怪物潮的识别id)的怪物潮,创建怪物总数为99,场上怪物最少5只,最多5只
|
||
if 0 ~= ScriptLib.AutoMonsterTide(context, 506, 133001581, {581030,581031,581032,581033,581034,581035,581036,581037,581038,581039,581040,581041,581042,581043,581044,581045,581046,581047,581048,581049,581050,581051,581052,581053,581054,581055,581056,581057,581058,581059}, 30, 5, 5) then
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_CHALLENGE_SUCCESS_581024(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133001581, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_GADGET_CREATE_581025(context, evt)
|
||
if 581019 ~= evt.param1 then
|
||
return false
|
||
end
|
||
|
||
return true
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_GADGET_CREATE_581025(context, evt)
|
||
ScriptLib.CreateFatherChallenge(context, 501, 110171, 300, {success = 1, fail = 1, fail_on_wipe=true})
|
||
|
||
ScriptLib.AttachChildChallenge(context, 501, 110172, 110172, {300,133001581,25,0},{},{success=1,fail=1})
|
||
|
||
ScriptLib.AttachChildChallenge(context, 501, 110174, 110174, {300,2,0,0},{},{success=0,fail=1})
|
||
|
||
ScriptLib.StartFatherChallenge(context, 501)
|
||
|
||
-- 创建编号为502(该怪物潮的识别id)的怪物潮,创建怪物总数为99,场上怪物最少5只,最多5只
|
||
if 0 ~= ScriptLib.AutoMonsterTide(context, 502, 133001581, {581001,581002,581003,581004,581005,581006,581007,581008,581009,581010,581011,581012,581013,581014,581015,581016,581017,581018,581064,581063,581062}, 25, 5, 5) then
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_CHALLENGE_FAIL_581026(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133001581, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_CHALLENGE_SUCCESS_581027(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133001581, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_CHALLENGE_FAIL_581028(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133001581, suite = 1 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
require "Activity_ArenaChallengeSub" |