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

1181 lines
22 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, L19_1
L0_1 = {}
L0_1.group_id = 220121002
L1_1 = {}
L2_1 = {}
L2_1.config_id = 2023
L2_1.monster_id = 20011201
L3_1 = {}
L3_1.x = -79.811
L3_1.y = -249.566
L3_1.z = -27.534
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
L2_1.drop_id = 1000100
L3_1 = {}
L3_1.config_id = 2024
L3_1.monster_id = 20011201
L4_1 = {}
L4_1.x = -84.961
L4_1.y = -249.576
L4_1.z = -26.294
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
L3_1.drop_id = 1000100
L4_1 = {}
L4_1.config_id = 2025
L4_1.monster_id = 20011201
L5_1 = {}
L5_1.x = -81.558
L5_1.y = -250.257
L5_1.z = -21.983
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
L4_1.drop_id = 1000100
L5_1 = {}
L5_1.config_id = 2027
L5_1.monster_id = 21011201
L6_1 = {}
L6_1.x = 5.148
L6_1.y = -256.882
L6_1.z = -18.71
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 175.657
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L5_1.pose_id = 9013
L6_1 = {}
L6_1.config_id = 2028
L6_1.monster_id = 21010501
L7_1 = {}
L7_1.x = 17.031
L7_1.y = -254.876
L7_1.z = -17.025
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 271.509
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L6_1.pose_id = 32
L7_1 = {}
L7_1.config_id = 2029
L7_1.monster_id = 21011201
L8_1 = {}
L8_1.x = 11.315
L8_1.y = -256.878
L8_1.z = -19.285
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 293.991
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L7_1.pose_id = 9003
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
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 2001
L2_1.gadget_id = 70330019
L3_1 = {}
L3_1.x = 5.266
L3_1.y = -256.883
L3_1.z = -20.486
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 26.075
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L2_1.persistent = true
L3_1 = {}
L3_1.config_id = 2002
L3_1.gadget_id = 70330019
L4_1 = {}
L4_1.x = -6.52
L4_1.y = -243.035
L4_1.z = -57.53
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 76.54
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.persistent = true
L4_1 = {}
L4_1.config_id = 2003
L4_1.gadget_id = 70330019
L5_1 = {}
L5_1.x = -89.477
L5_1.y = -258.909
L5_1.z = -22.329
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 359.169
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L4_1.persistent = true
L5_1 = {}
L5_1.config_id = 2004
L5_1.gadget_id = 70330021
L6_1 = {}
L6_1.x = 18.282
L6_1.y = -253.795
L6_1.z = -20.739
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 27.541
L6_1.y = 185.172
L6_1.z = 320.234
L5_1.rot = L6_1
L5_1.level = 1
L5_1.persistent = true
L6_1 = {}
L6_1.config_id = 2005
L6_1.gadget_id = 70330021
L7_1 = {}
L7_1.x = -3.348
L7_1.y = -242.812
L7_1.z = -53.623
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 146.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L6_1.persistent = true
L7_1 = {}
L7_1.config_id = 2006
L7_1.gadget_id = 70330021
L8_1 = {}
L8_1.x = -80.398
L8_1.y = -256.224
L8_1.z = -36.072
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.persistent = true
L8_1 = {}
L8_1.config_id = 2011
L8_1.gadget_id = 70900201
L9_1 = {}
L9_1.x = 5.288
L9_1.y = -254.784
L9_1.z = -20.505
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 3.532
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L8_1.persistent = true
L9_1 = {}
L9_1.config_id = 2012
L9_1.gadget_id = 70900201
L10_1 = {}
L10_1.x = -6.513
L10_1.y = -240.862
L10_1.z = -57.536
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.persistent = true
L10_1 = {}
L10_1.config_id = 2013
L10_1.gadget_id = 70900201
L11_1 = {}
L11_1.x = -89.349
L11_1.y = -256.746
L11_1.z = -22.304
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.persistent = true
L11_1 = {}
L11_1.config_id = 2014
L11_1.gadget_id = 70690011
L12_1 = {}
L12_1.x = 3.514
L12_1.y = -259.57
L12_1.z = -29.949
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 0.0
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L11_1.persistent = true
L12_1 = {}
L12_1.config_id = 2015
L12_1.gadget_id = 70310013
L13_1 = {}
L13_1.x = -17.161
L13_1.y = -243.867
L13_1.z = -55.828
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 351.963
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L13_1 = {}
L13_1.config_id = 2017
L13_1.gadget_id = 70310013
L14_1 = {}
L14_1.x = -23.052
L14_1.y = -243.867
L14_1.z = -57.219
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 346.715
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 1
L13_1.persistent = true
L14_1 = {}
L14_1.config_id = 2018
L14_1.gadget_id = 70690011
L15_1 = {}
L15_1.x = -56.294
L15_1.y = -259.57
L15_1.z = -65.725
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 332.326
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L14_1.persistent = true
L15_1 = {}
L15_1.config_id = 2019
L15_1.gadget_id = 70310013
L16_1 = {}
L16_1.x = -29.101
L16_1.y = -243.867
L16_1.z = -58.648
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 346.715
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L15_1.persistent = true
L16_1 = {}
L16_1.config_id = 2020
L16_1.gadget_id = 70211101
L17_1 = {}
L17_1.x = -65.637
L17_1.y = -235.743
L17_1.z = -68.98
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 0.0
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 11
L16_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\231\146\131\230\156\136"
L16_1.isOneoff = true
L16_1.persistent = true
L16_1.autopick = true
L17_1 = {}
L17_1.config_id = 2021
L17_1.gadget_id = 70690011
L18_1 = {}
L18_1.x = -35.947
L18_1.y = -259.57
L18_1.z = -61.005
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 347.043
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
L17_1.persistent = true
L18_1 = {}
L18_1.config_id = 2026
L18_1.gadget_id = 70900201
L19_1 = {}
L19_1.x = -35.531
L19_1.y = -256.831
L19_1.z = -30.997
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 0.0
L19_1.y = 0.0
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 1
L18_1.persistent = true
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
L1_1[16] = L17_1
L1_1[17] = L18_1
gadgets = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 2016
L3_1 = RegionShape
L3_1 = L3_1.SPHERE
L2_1.shape = L3_1
L2_1.radius = 2.4
L3_1 = {}
L3_1.x = -17.002
L3_1.y = -243.244
L3_1.z = -55.967
L2_1.pos = L3_1
L3_1 = {}
L3_1.config_id = 2022
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 10
L4_1 = {}
L4_1.x = -81.926
L4_1.y = -259.59
L4_1.z = -22.366
L3_1.pos = L4_1
L4_1 = {}
L4_1.config_id = 2034
L5_1 = RegionShape
L5_1 = L5_1.SPHERE
L4_1.shape = L5_1
L4_1.radius = 2.4
L5_1 = {}
L5_1.x = -22.972
L5_1.y = -243.244
L5_1.z = -57.416
L4_1.pos = L5_1
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1002007
L2_1.name = "GADGET_STATE_CHANGE_2007"
L3_1 = EventType
L3_1 = L3_1.EVENT_GADGET_STATE_CHANGE
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_2007"
L2_1.action = "action_EVENT_GADGET_STATE_CHANGE_2007"
L2_1.trigger_count = 0
L3_1 = {}
L3_1.config_id = 1002008
L3_1.name = "GADGET_STATE_CHANGE_2008"
L4_1 = EventType
L4_1 = L4_1.EVENT_GADGET_STATE_CHANGE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_2008"
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_2008"
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1002009
L4_1.name = "GADGET_STATE_CHANGE_2009"
L5_1 = EventType
L5_1 = L5_1.EVENT_GADGET_STATE_CHANGE
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_2009"
L4_1.action = "action_EVENT_GADGET_STATE_CHANGE_2009"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1002010
L5_1.name = "VARIABLE_CHANGE_2010"
L6_1 = EventType
L6_1 = L6_1.EVENT_VARIABLE_CHANGE
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_VARIABLE_CHANGE_2010"
L5_1.action = "action_EVENT_VARIABLE_CHANGE_2010"
L6_1 = {}
L6_1.config_id = 1002016
L6_1.name = "ENTER_REGION_2016"
L7_1 = EventType
L7_1 = L7_1.EVENT_ENTER_REGION
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_ENTER_REGION_2016"
L6_1.action = "action_EVENT_ENTER_REGION_2016"
L7_1 = {}
L7_1.config_id = 1002022
L7_1.name = "ENTER_REGION_2022"
L8_1 = EventType
L8_1 = L8_1.EVENT_ENTER_REGION
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_ENTER_REGION_2022"
L7_1.action = "action_EVENT_ENTER_REGION_2022"
L8_1 = {}
L8_1.config_id = 1002030
L8_1.name = "GADGET_STATE_CHANGE_2030"
L9_1 = EventType
L9_1 = L9_1.EVENT_GADGET_STATE_CHANGE
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_2030"
L8_1.action = "action_EVENT_GADGET_STATE_CHANGE_2030"
L9_1 = {}
L9_1.config_id = 1002034
L9_1.name = "ENTER_REGION_2034"
L10_1 = EventType
L10_1 = L10_1.EVENT_ENTER_REGION
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = "condition_EVENT_ENTER_REGION_2034"
L9_1.action = "action_EVENT_ENTER_REGION_2034"
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
triggers = L1_1
L1_1 = {}
L2_1 = {}
L2_1.configId = 1
L2_1.name = "box1"
L2_1.value = 0
L2_1.no_refresh = false
L3_1 = {}
L3_1.configId = 2
L3_1.name = "box2"
L3_1.value = 0
L3_1.no_refresh = false
L4_1 = {}
L4_1.configId = 3
L4_1.name = "box3"
L4_1.value = 0
L4_1.no_refresh = false
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_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 = {}
L4_1 = 2027
L5_1 = 2028
L6_1 = 2029
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 2001
L5_1 = 2002
L6_1 = 2003
L7_1 = 2004
L8_1 = 2005
L9_1 = 2006
L10_1 = 2011
L11_1 = 2012
L12_1 = 2013
L13_1 = 2020
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
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L3_1[10] = L13_1
L2_1.gadgets = L3_1
L3_1 = {}
L4_1 = 2022
L3_1[1] = L4_1
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "GADGET_STATE_CHANGE_2007"
L5_1 = "GADGET_STATE_CHANGE_2008"
L6_1 = "GADGET_STATE_CHANGE_2009"
L7_1 = "VARIABLE_CHANGE_2010"
L8_1 = "ENTER_REGION_2022"
L9_1 = "GADGET_STATE_CHANGE_2030"
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.triggers = L3_1
L2_1.rand_weight = 100
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 2015
L4_1[1] = L5_1
L3_1.gadgets = L4_1
L4_1 = {}
L5_1 = 2016
L4_1[1] = L5_1
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "ENTER_REGION_2016"
L4_1[1] = L5_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 2017
L5_1[1] = L6_1
L4_1.gadgets = L5_1
L5_1 = {}
L6_1 = 2034
L5_1[1] = L6_1
L4_1.regions = L5_1
L5_1 = {}
L6_1 = "ENTER_REGION_2034"
L5_1[1] = L6_1
L4_1.triggers = L5_1
L4_1.rand_weight = 100
L5_1 = {}
L6_1 = {}
L5_1.monsters = L6_1
L6_1 = {}
L7_1 = 2018
L8_1 = 2019
L9_1 = 2021
L6_1[1] = L7_1
L6_1[2] = L8_1
L6_1[3] = L9_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 = {}
L8_1 = 2023
L9_1 = 2024
L10_1 = 2025
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_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 = {}
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
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
suites = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 2001 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = A1_2.param1
if L2_2 == L3_2 then
goto lbl_11
end
end
L2_2 = false
do return L2_2 end
::lbl_11::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_2007 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
L2_2 = {}
L2_2.x = -5.6
L2_2.y = -243
L2_2.z = -49.2
L3_2 = {}
L3_2.x = 0
L3_2.y = 0
L3_2.z = 0
L4_2 = ScriptLib
L4_2 = L4_2.BeginCameraSceneLook
L5_2 = A0_2
L6_2 = {}
L6_2.look_pos = L2_2
L6_2.is_allow_input = false
L6_2.duration = 1.5
L6_2.is_force = true
L6_2.is_broadcast = false
L6_2.is_recover_keep_current = true
L6_2.delay = 0
L6_2.is_set_follow_pos = false
L6_2.follow_pos = L3_2
L6_2.is_force_walk = false
L6_2.is_change_play_mode = false
L6_2.is_set_screen_XY = false
L6_2.screen_x = 0
L6_2.screen_y = 0
L4_2 = L4_2(L5_2, L6_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : active_cameraLook_Begin"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = ScriptLib
L4_2 = L4_2.SetGroupVariableValue
L5_2 = A0_2
L6_2 = "box1"
L7_2 = 1
L4_2 = L4_2(L5_2, L6_2, L7_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : set_groupVariable"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = ScriptLib
L4_2 = L4_2.CreateGadget
L5_2 = A0_2
L6_2 = {}
L6_2.config_id = 2014
L4_2 = L4_2(L5_2, L6_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : create_gadget"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = ScriptLib
L4_2 = L4_2.RemoveEntityByConfigId
L5_2 = A0_2
L6_2 = 220121002
L7_2 = EntityType
L7_2 = L7_2.GADGET
L8_2 = 2011
L4_2 = L4_2(L5_2, L6_2, L7_2, L8_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : remove_gadget_by_configid"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = 0
return L4_2
end
action_EVENT_GADGET_STATE_CHANGE_2007 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 2002 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = A1_2.param1
if L2_2 == L3_2 then
goto lbl_11
end
end
L2_2 = false
do return L2_2 end
::lbl_11::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_2008 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "box2"
L5_2 = 1
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_groupVariable"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.RemoveEntityByConfigId
L3_2 = A0_2
L4_2 = 220121002
L5_2 = EntityType
L5_2 = L5_2.GADGET
L6_2 = 2012
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : remove_gadget_by_configid"
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 = 220121002
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_2008 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 2003 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = A1_2.param1
if L2_2 == L3_2 then
goto lbl_11
end
end
L2_2 = false
do return L2_2 end
::lbl_11::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_2009 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "box3"
L5_2 = 1
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_groupVariable"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.RemoveEntityByConfigId
L3_2 = A0_2
L4_2 = 220121002
L5_2 = EntityType
L5_2 = L5_2.GADGET
L6_2 = 2013
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : remove_gadget_by_configid"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_2009 = 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 = "box1"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "box2"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "box3"
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_2010 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 220121006
L5_2 = 6010
L6_2 = GadgetState
L6_2 = L6_2.ChestLocked
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.AddQuestProgress
L3_2 = A0_2
L4_2 = "2201210021"
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 : add_quest_progress"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.CreateGadget
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 2026
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 : create_gadget"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = {}
L2_2.x = -35.53051
L2_2.y = -256.1645
L2_2.z = -30.99733
L3_2 = {}
L3_2.x = 0
L3_2.y = 0
L3_2.z = 0
L4_2 = ScriptLib
L4_2 = L4_2.BeginCameraSceneLook
L5_2 = A0_2
L6_2 = {}
L6_2.look_pos = L2_2
L6_2.is_allow_input = false
L6_2.duration = 3
L6_2.is_force = true
L6_2.is_broadcast = false
L6_2.is_recover_keep_current = true
L6_2.delay = 0
L6_2.is_set_follow_pos = false
L6_2.follow_pos = L3_2
L6_2.is_force_walk = false
L6_2.is_change_play_mode = false
L6_2.is_set_screen_XY = false
L6_2.screen_x = 0
L6_2.screen_y = 0
L4_2 = L4_2(L5_2, L6_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : active_cameraLook_Begin"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = 0
return L4_2
end
action_EVENT_VARIABLE_CHANGE_2010 = 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 ~= 2016 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_2016 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = 220121002
L5_2 = 3
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_2016 = 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 ~= 2022 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_2022 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = 220121002
L5_2 = 5
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_2022 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 2020 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.ChestOpened
L3_2 = A1_2.param1
if L2_2 == L3_2 then
goto lbl_11
end
end
L2_2 = false
do return L2_2 end
::lbl_11::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_2030 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.RemoveEntityByConfigId
L3_2 = A0_2
L4_2 = 220121002
L5_2 = EntityType
L5_2 = L5_2.GADGET
L6_2 = 2018
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : remove_gadget_by_configid"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.RemoveEntityByConfigId
L3_2 = A0_2
L4_2 = 220121002
L5_2 = EntityType
L5_2 = L5_2.GADGET
L6_2 = 2021
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : remove_gadget_by_configid"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_2030 = 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 ~= 2034 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_2034 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = 220121002
L5_2 = 4
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_2034 = L1_1