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

724 lines
15 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
L0_1 = {}
L0_1.group_id = 133107162
L1_1 = {}
L1_1.group_id = 133107162
L1_1.gadget_riddle_hint = 162001
L1_1.gadget_riddle_1 = 162002
L1_1.gadget_riddle_2 = 162003
L1_1.gadget_riddle_3 = 162004
L1_1.gadget_riddle_4 = 162005
L1_1.gadget_chest = 162006
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 162001
L3_1.gadget_id = 70310012
L4_1 = {}
L4_1.x = -191.32
L4_1.y = 282.732
L4_1.z = 61.623
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 24.676
L4_1.y = 197.984
L4_1.z = 0.821
L3_1.rot = L4_1
L3_1.level = 19
L3_1.persistent = true
L3_1.area_id = 7
L4_1 = {}
L4_1.config_id = 162002
L4_1.gadget_id = 70310011
L5_1 = {}
L5_1.x = -190.056
L5_1.y = 284.936
L5_1.z = 68.687
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 276.1
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 19
L4_1.persistent = true
L4_1.area_id = 7
L5_1 = {}
L5_1.config_id = 162003
L5_1.gadget_id = 70310011
L6_1 = {}
L6_1.x = -206.331
L6_1.y = 278.808
L6_1.z = 72.351
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 = 19
L5_1.persistent = true
L5_1.area_id = 7
L6_1 = {}
L6_1.config_id = 162004
L6_1.gadget_id = 70310011
L7_1 = {}
L7_1.x = -197.217
L7_1.y = 274.436
L7_1.z = 47.777
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 15.178
L7_1.y = 237.257
L7_1.z = 22.462
L6_1.rot = L7_1
L6_1.level = 19
L6_1.persistent = true
L6_1.area_id = 7
L7_1 = {}
L7_1.config_id = 162005
L7_1.gadget_id = 70310011
L8_1 = {}
L8_1.x = -184.855
L8_1.y = 283.714
L8_1.z = 58.62
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 290.101
L8_1.y = 12.743
L8_1.z = 70.694
L7_1.rot = L8_1
L7_1.level = 19
L7_1.persistent = true
L7_1.area_id = 7
L8_1 = {}
L8_1.config_id = 162006
L8_1.gadget_id = 70211122
L9_1 = {}
L9_1.x = -191.495
L9_1.y = 283.094
L9_1.z = 61.277
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 25.519
L9_1.y = 194.987
L9_1.z = 1.228
L8_1.rot = L9_1
L8_1.level = 16
L8_1.drop_tag = "\232\167\163\232\176\156\233\171\152\231\186\167\231\146\131\230\156\136"
L9_1 = GadgetState
L9_1 = L9_1.ChestLocked
L8_1.state = L9_1
L8_1.isOneoff = true
L8_1.persistent = true
L9_1 = {}
L9_1.name = "chest"
L9_1.exp = 1
L8_1.explore = L9_1
L8_1.area_id = 7
L9_1 = {}
L9_1.config_id = 162012
L9_1.gadget_id = 70310012
L10_1 = {}
L10_1.x = -191.313
L10_1.y = 282.368
L10_1.z = 61.687
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 337.61
L10_1.y = 351.174
L10_1.z = 9.386
L9_1.rot = L10_1
L9_1.level = 18
L9_1.persistent = true
L9_1.area_id = 7
L10_1 = {}
L10_1.config_id = 162013
L10_1.gadget_id = 70220021
L11_1 = {}
L11_1.x = -190.011
L11_1.y = 283.038
L11_1.z = 66.692
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 5.111
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 18
L10_1.area_id = 7
L11_1 = {}
L11_1.config_id = 162014
L11_1.gadget_id = 70500000
L12_1 = {}
L12_1.x = -207.166
L12_1.y = 278.811
L12_1.z = 71.382
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 = 18
L11_1.point_type = 2002
L11_1.area_id = 7
L12_1 = {}
L12_1.config_id = 162016
L12_1.gadget_id = 70500000
L13_1 = {}
L13_1.x = -205.834
L13_1.y = 278.983
L13_1.z = 72.003
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 242.953
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 18
L12_1.point_type = 2002
L12_1.area_id = 7
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
L2_1[8] = L10_1
L2_1[9] = L11_1
L2_1[10] = L12_1
gadgets = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 162010
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 20
L4_1 = {}
L4_1.x = -182.983
L4_1.y = 293.732
L4_1.z = 61.124
L3_1.pos = L4_1
L3_1.area_id = 7
L2_1[1] = L3_1
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1162007
L3_1.name = "GADGET_STATE_CHANGE_162007"
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_162007"
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_162007"
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1162008
L4_1.name = "VARIABLE_CHANGE_162008"
L5_1 = EventType
L5_1 = L5_1.EVENT_VARIABLE_CHANGE
L4_1.event = L5_1
L4_1.source = "State_Flag"
L4_1.condition = "condition_EVENT_VARIABLE_CHANGE_162008"
L4_1.action = "action_EVENT_VARIABLE_CHANGE_162008"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1162009
L5_1.name = "GROUP_LOAD_162009"
L6_1 = EventType
L6_1 = L6_1.EVENT_GROUP_LOAD
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = ""
L5_1.action = "action_EVENT_GROUP_LOAD_162009"
L5_1.trigger_count = 0
L6_1 = {}
L6_1.config_id = 1162010
L6_1.name = "ENTER_REGION_162010"
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_162010"
L6_1.action = "action_EVENT_ENTER_REGION_162010"
L6_1.trigger_count = 0
L7_1 = {}
L7_1.config_id = 1162011
L7_1.name = "GADGET_STATE_CHANGE_162011"
L8_1 = EventType
L8_1 = L8_1.EVENT_GADGET_STATE_CHANGE
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_162011"
L7_1.action = "action_EVENT_GADGET_STATE_CHANGE_162011"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1162017
L8_1.name = "GROUP_LOAD_162017"
L9_1 = EventType
L9_1 = L9_1.EVENT_GROUP_LOAD
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_GROUP_LOAD_162017"
L8_1.action = "action_EVENT_GROUP_LOAD_162017"
L8_1.trigger_count = 0
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
triggers = L2_1
L2_1 = {}
L3_1 = {}
L3_1.configId = 1
L3_1.name = "State_Flag"
L3_1.value = 0
L3_1.no_refresh = true
L4_1 = {}
L4_1.configId = 2
L4_1.name = "fin"
L4_1.value = 0
L4_1.no_refresh = true
L2_1[1] = L3_1
L2_1[2] = L4_1
variables = L2_1
L2_1 = {}
L2_1.suite = 1
L2_1.end_suite = 0
L2_1.rand_suite = false
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 162001
L6_1 = 162002
L7_1 = 162003
L8_1 = 162004
L9_1 = 162005
L10_1 = 162006
L11_1 = 162012
L12_1 = 162013
L13_1 = 162014
L14_1 = 162016
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L4_1[7] = L11_1
L4_1[8] = L12_1
L4_1[9] = L13_1
L4_1[10] = L14_1
L3_1.gadgets = L4_1
L4_1 = {}
L5_1 = 162010
L4_1[1] = L5_1
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "GADGET_STATE_CHANGE_162007"
L6_1 = "VARIABLE_CHANGE_162008"
L7_1 = "GROUP_LOAD_162009"
L8_1 = "ENTER_REGION_162010"
L9_1 = "GADGET_STATE_CHANGE_162011"
L10_1 = "GROUP_LOAD_162017"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L2_1[1] = L3_1
suites = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
L3_2 = L1_1.gadget_riddle_1
if L2_2 ~= L3_2 then
L2_2 = A1_2.param2
L3_2 = L1_1.gadget_riddle_2
if L2_2 ~= L3_2 then
L2_2 = A1_2.param2
L3_2 = L1_1.gadget_riddle_3
if L2_2 ~= L3_2 then
L2_2 = A1_2.param2
L3_2 = L1_1.gadget_riddle_4
if L2_2 ~= L3_2 then
L2_2 = false
return L2_2
end
end
end
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_162007 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = A1_2.param1
L3_2 = GadgetState
L3_2 = L3_2.GearStart
if L2_2 == L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.ChangeGroupVariableValue
L3_2 = A0_2
L4_2 = "State_Flag"
L5_2 = 1
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.GetCurTriggerCount
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if 0 == L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 1
L6_2 = 1
L2_2(L3_2, L4_2, L5_2, L6_2)
end
else
L2_2 = A1_2.param1
L3_2 = GadgetState
L3_2 = L3_2.Default
if L2_2 == L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.ChangeGroupVariableValue
L3_2 = A0_2
L4_2 = "State_Flag"
L5_2 = -1
L2_2(L3_2, L4_2, L5_2)
end
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_162007 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_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 = A1_2.param1
if not (L2_2 < 0) then
L2_2 = A1_2.param1
if not (4 < L2_2) then
goto lbl_15
end
end
L2_2 = false
do return L2_2 end
::lbl_15::
L2_2 = true
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_162008 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = A1_2.param1
if L2_2 == 0 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Default
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 1 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Action01
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 2
L6_2 = 2
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 2 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Action02
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 2
L6_2 = 3
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 3 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Action03
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 2
L6_2 = 4
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 4 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.GearStart
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 3
L6_2 = 5
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_chest
L6_2 = GadgetState
L6_2 = L6_2.Default
L2_2(L3_2, L4_2, L5_2, L6_2)
end
end
end
end
end
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_162008 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = 0
L3_2 = ScriptLib
L3_2 = L3_2.GetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = L1_1.gadget_riddle_1
L3_2 = L3_2(L4_2, L5_2, L6_2)
L4_2 = GadgetState
L4_2 = L4_2.GearStart
if L3_2 == L4_2 then
L2_2 = L2_2 + 1
end
L3_2 = ScriptLib
L3_2 = L3_2.GetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = L1_1.gadget_riddle_2
L3_2 = L3_2(L4_2, L5_2, L6_2)
L4_2 = GadgetState
L4_2 = L4_2.GearStart
if L3_2 == L4_2 then
L2_2 = L2_2 + 1
end
L3_2 = ScriptLib
L3_2 = L3_2.GetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = L1_1.gadget_riddle_3
L3_2 = L3_2(L4_2, L5_2, L6_2)
L4_2 = GadgetState
L4_2 = L4_2.GearStart
if L3_2 == L4_2 then
L2_2 = L2_2 + 1
end
L3_2 = ScriptLib
L3_2 = L3_2.GetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = L1_1.gadget_riddle_4
L3_2 = L3_2(L4_2, L5_2, L6_2)
L4_2 = GadgetState
L4_2 = L4_2.GearStart
if L3_2 == L4_2 then
L2_2 = L2_2 + 1
end
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupVariableValue
L4_2 = A0_2
L5_2 = "State_Flag"
L6_2 = L2_2
L3_2(L4_2, L5_2, L6_2)
L3_2 = 0
return L3_2
end
action_EVENT_GROUP_LOAD_162009 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = A1_2.param1
if L2_2 ~= 162010 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_162010 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.AddQuestProgress
L3_2 = A0_2
L4_2 = "finish_133107144_zhiyin"
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 = 0
return L2_2
end
action_EVENT_ENTER_REGION_162010 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 162006 == 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_162011 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.AddQuestProgress
L3_2 = A0_2
L4_2 = "finish_133107144"
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.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "fin"
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 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_162011 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "fin"
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_GROUP_LOAD_162017 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.AddQuestProgress
L3_2 = A0_2
L4_2 = "finish_133107144"
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 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_162017 = L2_1