Grasscutter_Resources/Resources/Scripts/Scene/1058/scene1058_group201058016.lua
2022-04-29 16:40:51 +02:00

736 lines
12 KiB
Lua

local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1
L0_1 = {}
L0_1.group_id = 201058016
L1_1 = {}
L2_1 = {}
L2_1.config_id = 16002
L2_1.monster_id = 20011201
L3_1 = {}
L3_1.x = -60.217
L3_1.y = 95.525
L3_1.z = 121.048
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 195.959
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L2_1.disableWander = true
L3_1 = {}
L4_1 = 1030
L3_1[1] = L4_1
L2_1.affix = L3_1
L3_1 = {}
L3_1.config_id = 16003
L3_1.monster_id = 20011201
L4_1 = {}
L4_1.x = -61.754
L4_1.y = 95.525
L4_1.z = 117.148
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 70.182
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.disableWander = true
L4_1 = {}
L5_1 = 1030
L4_1[1] = L5_1
L3_1.affix = L4_1
L4_1 = {}
L4_1.config_id = 16004
L4_1.monster_id = 20011201
L5_1 = {}
L5_1.x = -64.427
L5_1.y = 95.558
L5_1.z = 120.358
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 91.152
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L4_1.disableWander = true
L5_1 = {}
L6_1 = 1030
L5_1[1] = L6_1
L4_1.affix = L5_1
L5_1 = {}
L5_1.config_id = 16007
L5_1.monster_id = 20011001
L6_1 = {}
L6_1.x = -23.736
L6_1.y = 88.406
L6_1.z = 82.339
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 0.0
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L5_1.disableWander = true
L6_1 = {}
L7_1 = 1030
L6_1[1] = L7_1
L5_1.affix = L6_1
L6_1 = {}
L6_1.config_id = 16008
L6_1.monster_id = 20011001
L7_1 = {}
L7_1.x = -18.379
L7_1.y = 88.41
L7_1.z = 85.595
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 0.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L6_1.disableWander = true
L7_1 = {}
L8_1 = 1030
L7_1[1] = L8_1
L6_1.affix = L7_1
L7_1 = {}
L7_1.config_id = 16009
L7_1.monster_id = 20011001
L8_1 = {}
L8_1.x = -20.003
L8_1.y = 88.414
L8_1.z = 82.55
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 0.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L7_1.disableWander = true
L8_1 = {}
L9_1 = 1030
L8_1[1] = L9_1
L7_1.affix = L8_1
L8_1 = {}
L8_1.config_id = 16010
L8_1.monster_id = 20010301
L9_1 = {}
L9_1.x = -63.361
L9_1.y = 106.041
L9_1.z = 193.951
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 0.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L8_1.disableWander = true
L9_1 = {}
L10_1 = 1030
L9_1[1] = L10_1
L8_1.affix = L9_1
L9_1 = {}
L9_1.config_id = 16011
L9_1.monster_id = 20010301
L10_1 = {}
L10_1.x = -65.879
L10_1.y = 106.041
L10_1.z = 194.321
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 0.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L9_1.disableWander = true
L10_1 = {}
L11_1 = 1030
L10_1[1] = L11_1
L9_1.affix = L10_1
L10_1 = {}
L10_1.config_id = 16012
L10_1.monster_id = 20010301
L11_1 = {}
L11_1.x = -64.787
L11_1.y = 106.046
L11_1.z = 192.161
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 0.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L10_1.disableWander = true
L11_1 = {}
L12_1 = 1030
L11_1[1] = L12_1
L10_1.affix = L11_1
L11_1 = {}
L11_1.config_id = 16016
L11_1.monster_id = 20010501
L12_1 = {}
L12_1.x = -105.925
L12_1.y = 88.402
L12_1.z = 155.704
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 204.098
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L11_1.disableWander = true
L12_1 = {}
L13_1 = 1030
L12_1[1] = L13_1
L11_1.affix = L12_1
L12_1 = {}
L12_1.config_id = 16017
L12_1.monster_id = 20010501
L13_1 = {}
L13_1.x = -102.28
L13_1.y = 88.402
L13_1.z = 153.81
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 204.098
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L12_1.disableWander = true
L13_1 = {}
L14_1 = 1030
L13_1[1] = L14_1
L12_1.affix = L13_1
L13_1 = {}
L13_1.config_id = 16024
L13_1.monster_id = 20010501
L14_1 = {}
L14_1.x = -105.251
L14_1.y = 88.402
L14_1.z = 152.666
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 204.098
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 1
L13_1.disableWander = true
L14_1 = {}
L15_1 = 1030
L14_1[1] = L15_1
L13_1.affix = L14_1
L14_1 = {}
L14_1.config_id = 16025
L14_1.monster_id = 20010501
L15_1 = {}
L15_1.x = 18.169
L15_1.y = 102.07
L15_1.z = 134.953
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 204.098
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L14_1.disableWander = true
L15_1 = {}
L16_1 = 1030
L15_1[1] = L16_1
L14_1.affix = L15_1
L15_1 = {}
L15_1.config_id = 16026
L15_1.monster_id = 20011001
L16_1 = {}
L16_1.x = 21.418
L16_1.y = 102.07
L16_1.z = 130.762
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 267.69
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L15_1.disableWander = true
L16_1 = {}
L17_1 = 1030
L16_1[1] = L17_1
L15_1.affix = L16_1
L16_1 = {}
L16_1.config_id = 16027
L16_1.monster_id = 20011201
L17_1 = {}
L17_1.x = 16.218
L17_1.y = 102.07
L17_1.z = 129.383
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 267.69
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 1
L16_1.disableWander = true
L17_1 = {}
L18_1 = 1030
L17_1[1] = L18_1
L16_1.affix = L17_1
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
L1_1[9] = L10_1
L1_1[10] = L11_1
L1_1[11] = L12_1
L1_1[12] = L13_1
L1_1[13] = L14_1
L1_1[14] = L15_1
L1_1[15] = L16_1
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 16005
L2_1.gadget_id = 70710126
L3_1 = {}
L3_1.x = -61.814
L3_1.y = 105.775
L3_1.z = 45.044
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 0.0
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L3_1 = {}
L3_1.config_id = 16018
L3_1.gadget_id = 70360046
L4_1 = {}
L4_1.x = -76.887
L4_1.y = 93.504
L4_1.z = 119.045
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L4_1 = {}
L4_1.config_id = 16019
L4_1.gadget_id = 70360046
L5_1 = {}
L5_1.x = -128.429
L5_1.y = 97.033
L5_1.z = 117.775
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 0.0
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L5_1 = {}
L5_1.config_id = 16020
L5_1.gadget_id = 70360046
L6_1 = {}
L6_1.x = -85.489
L6_1.y = 86.326
L6_1.z = 180.735
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 0.0
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L6_1 = {}
L6_1.config_id = 16028
L6_1.gadget_id = 70360046
L7_1 = {}
L7_1.x = -22.652
L7_1.y = 83.627
L7_1.z = 157.125
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 0.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L7_1 = {}
L7_1.config_id = 16029
L7_1.gadget_id = 70360046
L8_1 = {}
L8_1.x = 21.545
L8_1.y = 84.919
L8_1.z = 130.695
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 0.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
gadgets = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 16013
L3_1 = RegionShape
L3_1 = L3_1.SPHERE
L2_1.shape = L3_1
L2_1.radius = 8
L3_1 = {}
L3_1.x = -61.814
L3_1.y = 105.775
L3_1.z = 45.044
L2_1.pos = L3_1
L1_1[1] = L2_1
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1016001
L2_1.name = "VARIABLE_CHANGE_16001"
L3_1 = EventType
L3_1 = L3_1.EVENT_VARIABLE_CHANGE
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_VARIABLE_CHANGE_16001"
L2_1.action = "action_EVENT_VARIABLE_CHANGE_16001"
L3_1 = {}
L3_1.config_id = 1016013
L3_1.name = "ENTER_REGION_16013"
L4_1 = EventType
L4_1 = L4_1.EVENT_ENTER_REGION
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_ENTER_REGION_16013"
L3_1.action = "action_EVENT_ENTER_REGION_16013"
L3_1.tag = "666"
L4_1 = {}
L4_1.config_id = 1016014
L4_1.name = "CHALLENGE_SUCCESS_16014"
L5_1 = EventType
L5_1 = L5_1.EVENT_CHALLENGE_SUCCESS
L4_1.event = L5_1
L4_1.source = "888"
L4_1.condition = ""
L4_1.action = ""
L5_1 = {}
L5_1.config_id = 1016015
L5_1.name = "CHALLENGE_FAIL_16015"
L6_1 = EventType
L6_1 = L6_1.EVENT_CHALLENGE_FAIL
L5_1.event = L6_1
L5_1.source = "888"
L5_1.condition = ""
L5_1.action = "action_EVENT_CHALLENGE_FAIL_16015"
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
triggers = L1_1
L1_1 = {}
L2_1 = {}
L2_1.configId = 1
L2_1.name = "startChallenge"
L2_1.value = 0
L2_1.no_refresh = false
L1_1[1] = L2_1
variables = L1_1
L1_1 = {}
L1_1.suite = 1
L1_1.end_suite = 0
L1_1.rand_suite = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 16005
L5_1 = 16018
L6_1 = 16019
L7_1 = 16020
L8_1 = 16028
L9_1 = 16029
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L2_1.gadgets = L3_1
L3_1 = {}
L4_1 = 16013
L3_1[1] = L4_1
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "VARIABLE_CHANGE_16001"
L5_1 = "ENTER_REGION_16013"
L6_1 = "CHALLENGE_SUCCESS_16014"
L7_1 = "CHALLENGE_FAIL_16015"
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L3_1 = {}
L4_1 = {}
L5_1 = 16002
L6_1 = 16003
L7_1 = 16004
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L3_1.monsters = L4_1
L4_1 = {}
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L6_1 = 16007
L7_1 = 16008
L8_1 = 16009
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L4_1.monsters = L5_1
L5_1 = {}
L4_1.gadgets = L5_1
L5_1 = {}
L4_1.regions = L5_1
L5_1 = {}
L4_1.triggers = L5_1
L4_1.rand_weight = 100
L5_1 = {}
L6_1 = {}
L7_1 = 16010
L8_1 = 16011
L9_1 = 16012
L6_1[1] = L7_1
L6_1[2] = L8_1
L6_1[3] = L9_1
L5_1.monsters = L6_1
L6_1 = {}
L5_1.gadgets = L6_1
L6_1 = {}
L5_1.regions = L6_1
L6_1 = {}
L5_1.triggers = L6_1
L5_1.rand_weight = 100
L6_1 = {}
L7_1 = {}
L6_1.monsters = L7_1
L7_1 = {}
L6_1.gadgets = L7_1
L7_1 = {}
L6_1.regions = L7_1
L7_1 = {}
L6_1.triggers = L7_1
L6_1.rand_weight = 100
L7_1 = {}
L8_1 = {}
L9_1 = 16016
L10_1 = 16017
L11_1 = 16024
L8_1[1] = L9_1
L8_1[2] = L10_1
L8_1[3] = L11_1
L7_1.monsters = L8_1
L8_1 = {}
L7_1.gadgets = L8_1
L8_1 = {}
L7_1.regions = L8_1
L8_1 = {}
L7_1.triggers = L8_1
L7_1.rand_weight = 100
L8_1 = {}
L9_1 = {}
L10_1 = 16025
L11_1 = 16026
L12_1 = 16027
L9_1[1] = L10_1
L9_1[2] = L11_1
L9_1[3] = L12_1
L8_1.monsters = L9_1
L9_1 = {}
L8_1.gadgets = L9_1
L9_1 = {}
L8_1.regions = L9_1
L9_1 = {}
L8_1.triggers = L9_1
L8_1.rand_weight = 100
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
suites = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2.param1
L3_2 = A1_2.param2
if L2_2 == L3_2 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "startChallenge"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_16001 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
L2_2 = ScriptLib
L2_2 = L2_2.ActiveChallenge
L3_2 = A0_2
L4_2 = 888
L5_2 = 205
L6_2 = 150
L7_2 = 4
L8_2 = 666
L9_2 = 15
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : active_challenge"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = 201058016
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = 201058016
L5_2 = 3
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = 201058016
L5_2 = 4
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = 201058016
L5_2 = 7
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_16001 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = A1_2.param1
if L2_2 ~= 16013 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetRegionEntityCount
L3_2 = A0_2
L4_2 = {}
L5_2 = A1_2.source_eid
L4_2.region_eid = L5_2
L5_2 = EntityType
L5_2 = L5_2.AVATAR
L4_2.entity_type = L5_2
L2_2 = L2_2(L3_2, L4_2)
if L2_2 < 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ENTER_REGION_16013 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.KillEntityByConfigId
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 16005
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : kill_entity_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_16013 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.CauseDungeonFail
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : cause_dungeonfail"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_CHALLENGE_FAIL_16015 = L1_1