Grasscutter_Resources/Resources/Scripts/Scene/3/scene3_group133103540.lua
akatatsu27 6432fe32ca
fix some SceneGroup syntax errors (#23)
* IGEBKIHPOIF -> pointDelta

* IDHGEIMEKHB -> openStateType

* fix script closure errors (goto strikes again!)
2022-10-25 11:14:53 +05:30

743 lines
17 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
L0_1 = {}
L0_1.group_id = 133103540
L1_1 = {}
L1_1.gadget_seal_id = 540005
L1_1.gadget_light_1 = 540002
L1_1.gadget_light_2 = 540003
L1_1.gadget_light_3 = 540004
L1_1.group_id = 133103540
L1_1.gadget_seal_model = 540001
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 540001
L3_1.gadget_id = 70950008
L4_1 = {}
L4_1.x = 157.356
L4_1.y = 194.026
L4_1.z = 1399.595
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.86
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 24
L3_1.persistent = true
L3_1.area_id = 6
L4_1 = {}
L4_1.config_id = 540002
L4_1.gadget_id = 70950006
L5_1 = {}
L5_1.x = 102.786
L5_1.y = 208.392
L5_1.z = 1392.618
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 211.607
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 24
L4_1.area_id = 6
L5_1 = {}
L5_1.config_id = 540003
L5_1.gadget_id = 70950006
L6_1 = {}
L6_1.x = 157.054
L6_1.y = 229.671
L6_1.z = 1442.578
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 98.52
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 24
L5_1.area_id = 6
L6_1 = {}
L6_1.config_id = 540004
L6_1.gadget_id = 70950006
L7_1 = {}
L7_1.x = 198.817
L7_1.y = 215.242
L7_1.z = 1379.926
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 276.301
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 24
L6_1.area_id = 6
L7_1 = {}
L7_1.config_id = 540005
L7_1.gadget_id = 70950007
L8_1 = {}
L8_1.x = 157.31
L8_1.y = 194.075
L8_1.z = 1399.593
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 0.86
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 24
L8_1 = GadgetState
L8_1 = L8_1.GearStop
L7_1.state = L8_1
L7_1.area_id = 6
L8_1 = {}
L8_1.config_id = 540010
L8_1.gadget_id = 70350004
L9_1 = {}
L9_1.x = 156.91
L9_1.y = 217.552
L9_1.z = 1420.416
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 180.16
L9_1.z = 180.0
L8_1.rot = L9_1
L8_1.level = 24
L8_1.persistent = true
L8_1.area_id = 6
L9_1 = {}
L9_1.config_id = 540011
L9_1.gadget_id = 70350004
L10_1 = {}
L10_1.x = 115.362
L10_1.y = 196.133
L10_1.z = 1401.277
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 89.16
L10_1.z = 180.0
L9_1.rot = L10_1
L9_1.level = 24
L9_1.persistent = true
L9_1.area_id = 6
L10_1 = {}
L10_1.config_id = 540012
L10_1.gadget_id = 70350004
L11_1 = {}
L11_1.x = 190.626
L11_1.y = 202.936
L11_1.z = 1393.319
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 111.2
L11_1.z = 180.0
L10_1.rot = L11_1
L10_1.level = 24
L10_1.persistent = true
L10_1.area_id = 6
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
gadgets = L2_1
L2_1 = {}
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1540006
L3_1.name = "GADGET_STATE_CHANGE_540006"
L4_1 = EventType
L4_1 = L4_1.EVENT_GADGET_STATE_CHANGE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = ""
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_540006"
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1540007
L4_1.name = "GADGET_CREATE_540007"
L5_1 = EventType
L5_1 = L5_1.EVENT_GADGET_CREATE
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_GADGET_CREATE_540007"
L4_1.action = "action_EVENT_GADGET_CREATE_540007"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1540008
L5_1.name = "QUEST_FINISH_540008"
L6_1 = EventType
L6_1 = L6_1.EVENT_QUEST_FINISH
L5_1.event = L6_1
L5_1.source = "7101102"
L5_1.condition = "condition_EVENT_QUEST_FINISH_540008"
L5_1.action = "action_EVENT_QUEST_FINISH_540008"
L5_1.trigger_count = 0
L6_1 = {}
L6_1.config_id = 1540009
L6_1.name = "GROUP_LOAD_540009"
L7_1 = EventType
L7_1 = L7_1.EVENT_GROUP_LOAD
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = ""
L6_1.action = "action_EVENT_GROUP_LOAD_540009"
L6_1.trigger_count = 0
L7_1 = {}
L7_1.config_id = 1540013
L7_1.name = "QUEST_START_540013"
L8_1 = EventType
L8_1 = L8_1.EVENT_QUEST_START
L7_1.event = L8_1
L7_1.source = "7101103"
L7_1.condition = "condition_EVENT_QUEST_START_540013"
L7_1.action = "action_EVENT_QUEST_START_540013"
L7_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
triggers = L2_1
L2_1 = {}
L3_1 = {}
L3_1.configId = 1
L3_1.name = "Point_Value"
L3_1.value = 0
L3_1.no_refresh = true
L4_1 = {}
L4_1.configId = 2
L4_1.name = "Temp_Point_Value"
L4_1.value = 0
L4_1.no_refresh = true
L5_1 = {}
L5_1.configId = 3
L5_1.name = "Quest_Flag"
L5_1.value = 0
L5_1.no_refresh = true
L6_1 = {}
L6_1.configId = 4
L6_1.name = "Puzzle_Flag_1"
L6_1.value = 0
L6_1.no_refresh = true
L7_1 = {}
L7_1.configId = 5
L7_1.name = "Puzzle_Flag_2"
L7_1.value = 0
L7_1.no_refresh = true
L8_1 = {}
L8_1.configId = 6
L8_1.name = "Puzzle_Flag_3"
L8_1.value = 0
L8_1.no_refresh = true
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
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 = 540001
L6_1 = 540010
L7_1 = 540011
L8_1 = 540012
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "QUEST_FINISH_540008"
L6_1 = "GROUP_LOAD_540009"
L7_1 = "QUEST_START_540013"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 540005
L5_1[1] = L6_1
L4_1.gadgets = L5_1
L5_1 = {}
L4_1.regions = L5_1
L5_1 = {}
L6_1 = "GADGET_STATE_CHANGE_540006"
L7_1 = "GADGET_CREATE_540007"
L5_1[1] = L6_1
L5_1[2] = L7_1
L4_1.triggers = L5_1
L4_1.rand_weight = 100
L2_1[1] = L3_1
L2_1[2] = L4_1
suites = L2_1
function action_EVENT_GADGET_STATE_CHANGE_540006(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
L2_2 = 0
if A1_2.param2 == L1_1.gadget_light_1 or A1_2.param2 == L1_1.gadget_light_2 or A1_2.param2 == L1_1.gadget_light_3 then
if A1_2.param1 == GadgetState.GearStart then
L3_2 = ScriptLib.GetGadgetStateByConfigId(A0_2, L1_1.group_id, L1_1.gadget_seal_id)
ScriptLib.SetGroupGadgetStateByConfigId(A0_2, L1_1.group_id, L1_1.gadget_seal_id, GadgetState.ChestTrap)
ScriptLib.SetGroupGadgetStateByConfigId(A0_2, L1_1.group_id, L1_1.gadget_seal_id, L3_2)
if A1_2.param2 == L1_1.gadget_light_1 then
L2_2 = 1
elseif A1_2.param2 == L1_1.gadget_light_2 then
L2_2 = 2
elseif A1_2.param2 == L1_1.gadget_light_3 then
L2_2 = 4
end
ScriptLib.ChangeGroupVariableValue(A0_2, "Temp_Point_Value", L2_2)
return 0
end
elseif A1_2.param2 == L1_1.gadget_seal_id then
if A1_2.param1 == GadgetState.Action01 or A1_2.param1 == GadgetState.Action02 then
if A1_2.param1 ~= GadgetState.ChestTrap and A1_2.param3 ~= GadgetState.ChestTrap then
L2_2 = ScriptLib.GetGroupVariableValue(A0_2, "Temp_Point_Value")
ScriptLib.SetGroupVariableValue(A0_2, "Point_Value", L2_2)
ScriptLib.SetGroupGadgetStateByConfigId(A0_2, L1_1.group_id, L1_1.gadget_seal_model, A1_2.param1)
end
elseif A1_2.param1 == GadgetState.ChestLocked then
L3_2= ScriptLib.GetGroupVariableValue(A0_2, "Point_Value")
ScriptLib.SetGroupVariableValue(A0_2, "Temp_Point_Value", L3_2)
if L3_2%2 == 0 then
ScriptLib.CreateGadget(A0_2, {config_id = L1_1.gadget_light_1})
if ScriptLib.GetGroupVariableValue(A0_2, "Puzzle_Flag_1") == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(A0_2, L1_1.group_id, L1_1.gadget_light_1, GadgetState.GearStop)
end
end
if L3_2%4 < 2 then
ScriptLib.CreateGadget(A0_2, {config_id = L1_1.gadget_light_2})
if ScriptLib.GetGroupVariableValue(A0_2, "Puzzle_Flag_2") == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(A0_2, L1_1.group_id, L1_1.gadget_light_2, GadgetState.GearStop)
end
end
if L3_2< 4 then
ScriptLib.CreateGadget(A0_2, {config_id = L1_1.gadget_light_3})
if ScriptLib.GetGroupVariableValue(A0_2, "Puzzle_Flag_3") == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(A0_2, L1_1.group_id, L1_1.gadget_light_3, GadgetState.GearStop)
end
end
elseif A1_2.param1 == GadgetState.Action03 then
ScriptLib.SetGroupGadgetStateByConfigId(A0_2, L1_1.group_id, L1_1.gadget_seal_model, A1_2.param1)
L2_2 = ScriptLib.GetGroupVariableValue(A0_2, "Temp_Point_Value")
ScriptLib.SetGroupVariableValue(A0_2, "Point_Value", L2_2)
ScriptLib.AddQuestProgress(A0_2, "7101102_progress")
ScriptLib.SetGroupVariableValue(A0_2, "Quest_Flag", 1)
ScriptLib.KillEntityByConfigId(A0_2, { group_id = L1_1.group_id, config_id = L1_1.gadget_seal_id })
ScriptLib.RemoveExtraGroupSuite(A0_2, L1_1.group_id, 2)
if ScriptLib.GetGroupVariableValueByGroup(A0_2, "Unlocked", 133103496) == 0 then
ScriptLib.SetGroupVariableValueByGroup(A0_2, "Unlocked", 1, 133103496)
end
end
return 0
else
return -1
end
return 0
end
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param1
L3_2 = L1_1.gadget_seal_id
if L2_2 ~= L3_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_CREATE_540007 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_seal_model
L2_2 = L2_2(L3_2, L4_2, L5_2)
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = L1_1.gadget_seal_id
L7_2 = L2_2
L3_2(L4_2, L5_2, L6_2, L7_2)
L3_2 = GadgetState
L3_2 = L3_2.Default
if L2_2 == L3_2 then
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupVariableValue
L4_2 = A0_2
L5_2 = "Point_Value"
L6_2 = 0
L3_2(L4_2, L5_2, L6_2)
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupVariableValue
L4_2 = A0_2
L5_2 = "Temp_Point_Value"
L6_2 = 0
L3_2(L4_2, L5_2, L6_2)
else
L3_2 = GadgetState
L3_2 = L3_2.GearStart
if L2_2 == L3_2 then
L3_2 = ScriptLib
L3_2 = L3_2.SetWorktopOptionsByGroupId
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = L1_1.gadget_seal_id
L7_2 = {}
L8_2 = 24
L7_2[1] = L8_2
L3_2(L4_2, L5_2, L6_2, L7_2)
L3_2 = 0
return L3_2
end
end
L3_2 = ScriptLib
L3_2 = L3_2.GetGroupVariableValue
L4_2 = A0_2
L5_2 = "Point_Value"
L3_2 = L3_2(L4_2, L5_2)
if L3_2 ~= 7 then
L4_2 = ScriptLib
L4_2 = L4_2.SetGroupVariableValue
L5_2 = A0_2
L6_2 = "Temp_Point_Value"
L7_2 = L3_2
L4_2(L5_2, L6_2, L7_2)
L4_2 = L3_2 % 2
if L4_2 == 0 then
L4_2 = ScriptLib
L4_2 = L4_2.CreateGadget
L5_2 = A0_2
L6_2 = {}
L7_2 = L1_1.gadget_light_1
L6_2.config_id = L7_2
L4_2(L5_2, L6_2)
L4_2 = ScriptLib
L4_2 = L4_2.GetGroupVariableValue
L5_2 = A0_2
L6_2 = "Puzzle_Flag_1"
L4_2 = L4_2(L5_2, L6_2)
if L4_2 == 0 then
L4_2 = ScriptLib
L4_2 = L4_2.SetGroupGadgetStateByConfigId
L5_2 = A0_2
L6_2 = L1_1.group_id
L7_2 = L1_1.gadget_light_1
L8_2 = GadgetState
L8_2 = L8_2.GearStop
L4_2(L5_2, L6_2, L7_2, L8_2)
end
end
L4_2 = L3_2 % 4
if L4_2 < 2 then
L4_2 = ScriptLib
L4_2 = L4_2.CreateGadget
L5_2 = A0_2
L6_2 = {}
L7_2 = L1_1.gadget_light_2
L6_2.config_id = L7_2
L4_2(L5_2, L6_2)
L4_2 = ScriptLib
L4_2 = L4_2.GetGroupVariableValue
L5_2 = A0_2
L6_2 = "Puzzle_Flag_2"
L4_2 = L4_2(L5_2, L6_2)
if L4_2 == 0 then
L4_2 = ScriptLib
L4_2 = L4_2.SetGroupGadgetStateByConfigId
L5_2 = A0_2
L6_2 = L1_1.group_id
L7_2 = L1_1.gadget_light_2
L8_2 = GadgetState
L8_2 = L8_2.GearStop
L4_2(L5_2, L6_2, L7_2, L8_2)
end
end
if L3_2 < 4 then
L4_2 = ScriptLib
L4_2 = L4_2.CreateGadget
L5_2 = A0_2
L6_2 = {}
L7_2 = L1_1.gadget_light_3
L6_2.config_id = L7_2
L4_2(L5_2, L6_2)
L4_2 = ScriptLib
L4_2 = L4_2.GetGroupVariableValue
L5_2 = A0_2
L6_2 = "Puzzle_Flag_3"
L4_2 = L4_2(L5_2, L6_2)
if L4_2 == 0 then
L4_2 = ScriptLib
L4_2 = L4_2.SetGroupGadgetStateByConfigId
L5_2 = A0_2
L6_2 = L1_1.group_id
L7_2 = L1_1.gadget_light_3
L8_2 = GadgetState
L8_2 = L8_2.GearStop
L4_2(L5_2, L6_2, L7_2, L8_2)
end
end
end
L4_2 = 0
return L4_2
end
action_EVENT_GADGET_CREATE_540007 = 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.GetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "Quest_Flag"
L5_2 = 133103540
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 ~= 0 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_QUEST_FINISH_540008 = 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.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "Quest_Flag"
L5_2 = 1
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 540010
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 540011
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 540012
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_QUEST_FINISH_540008 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "Point_Value"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 == 7 then
L2_2 = ScriptLib
L2_2 = L2_2.GetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_seal_model
L2_2 = L2_2(L3_2, L4_2, L5_2)
L3_2 = GadgetState
L3_2 = L3_2.Action03
if L2_2 ~= L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "Point_Value"
L5_2 = 3
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "Temp_Point_Value"
L5_2 = 3
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_seal_model
L6_2 = GadgetState
L6_2 = L6_2.Action02
L2_2(L3_2, L4_2, L5_2, L6_2)
end
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "Quest_Flag"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 == 1 then
L3_2 = ScriptLib
L3_2 = L3_2.AddExtraGroupSuite
L4_2 = A0_2
L5_2 = L1_1.group_id
L6_2 = 2
L3_2(L4_2, L5_2, L6_2)
L3_2 = ScriptLib
L3_2 = L3_2.GetGroupVariableValueByGroup
L4_2 = A0_2
L5_2 = "Unlocked"
L6_2 = 133103496
L3_2 = L3_2(L4_2, L5_2, L6_2)
if L3_2 == 1 then
L3_2 = ScriptLib
L3_2 = L3_2.GetGroupVariableValueByGroup
L4_2 = A0_2
L5_2 = "TreasureBox"
L6_2 = 133103496
L3_2 = L3_2(L4_2, L5_2, L6_2)
if L3_2 == 0 then
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupVariableValueByGroup
L4_2 = A0_2
L5_2 = "Unlocked"
L6_2 = 0
L7_2 = 133103496
L3_2(L4_2, L5_2, L6_2, L7_2)
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupVariableValueByGroup
L4_2 = A0_2
L5_2 = "Unlocked"
L6_2 = 1
L7_2 = 133103496
L3_2(L4_2, L5_2, L6_2, L7_2)
end
else
L3_2 = ScriptLib
L3_2 = L3_2.GetGroupVariableValueByGroup
L4_2 = A0_2
L5_2 = "Unlocked"
L6_2 = 133103496
L3_2 = L3_2(L4_2, L5_2, L6_2)
if L3_2 == 2 then
L3_2 = 0
return L3_2
end
end
end
L3_2 = 0
return L3_2
end
action_EVENT_GROUP_LOAD_540009 = 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.GetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "Quest_Flag"
L5_2 = 133103540
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 ~= 0 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_QUEST_START_540013 = 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.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "Quest_Flag"
L5_2 = 1
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 540010
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 540011
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 540012
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_QUEST_START_540013 = L2_1