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

941 lines
18 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, L20_1, L21_1, L22_1
L0_1 = {}
L0_1.group_id = 144004016
L1_1 = {}
L1_1.duration = 90
L1_1.group_id = 144004016
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 16001
L3_1.gadget_id = 70211111
L4_1 = {}
L4_1.x = -762.232
L4_1.y = 119.825
L4_1.z = 74.785
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 285.229
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 16
L3_1.drop_tag = "\232\167\163\232\176\156\228\184\173\231\186\167\231\190\164\229\178\155"
L3_1.isOneoff = true
L3_1.persistent = true
L4_1 = {}
L4_1.name = "chest"
L4_1.exp = 1
L3_1.explore = L4_1
L3_1.area_id = 103
L4_1 = {}
L4_1.config_id = 16002
L4_1.gadget_id = 70350093
L5_1 = {}
L5_1.x = -708.78
L5_1.y = 137.856
L5_1.z = -61.05
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 21.229
L5_1.y = 3.006
L5_1.z = 15.939
L4_1.rot = L5_1
L4_1.level = 20
L4_1.persistent = true
L4_1.area_id = 103
L5_1 = {}
L5_1.config_id = 16003
L5_1.gadget_id = 70360001
L6_1 = {}
L6_1.x = -708.78
L6_1.y = 137.856
L6_1.z = -61.05
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 21.229
L6_1.y = 3.006
L6_1.z = 15.939
L5_1.rot = L6_1
L5_1.level = 20
L5_1.persistent = true
L5_1.area_id = 103
L6_1 = {}
L6_1.config_id = 16004
L6_1.gadget_id = 70360094
L7_1 = {}
L7_1.x = -707.334
L7_1.y = 135.983
L7_1.z = -55.521
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 21.229
L7_1.y = 3.006
L7_1.z = 15.939
L6_1.rot = L7_1
L6_1.level = 20
L6_1.area_id = 103
L7_1 = {}
L7_1.config_id = 16005
L7_1.gadget_id = 70360094
L8_1 = {}
L8_1.x = -701.702
L8_1.y = 133.213
L8_1.z = -36.196
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 21.229
L8_1.y = 3.006
L8_1.z = 15.939
L7_1.rot = L8_1
L7_1.level = 20
L7_1.area_id = 103
L8_1 = {}
L8_1.config_id = 16006
L8_1.gadget_id = 70360094
L9_1 = {}
L9_1.x = -685.049
L9_1.y = 138.716
L9_1.z = 1.953
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 21.229
L9_1.y = 3.006
L9_1.z = 15.939
L8_1.rot = L9_1
L8_1.level = 20
L8_1.area_id = 103
L9_1 = {}
L9_1.config_id = 16007
L9_1.gadget_id = 70360094
L10_1 = {}
L10_1.x = -703.738
L10_1.y = 148.995
L10_1.z = 20.081
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 21.229
L10_1.y = 3.006
L10_1.z = 15.939
L9_1.rot = L10_1
L9_1.level = 20
L9_1.area_id = 103
L10_1 = {}
L10_1.config_id = 16008
L10_1.gadget_id = 70360094
L11_1 = {}
L11_1.x = -696.121
L11_1.y = 142.313
L11_1.z = 10.497
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 21.229
L11_1.y = 3.006
L11_1.z = 15.939
L10_1.rot = L11_1
L10_1.level = 20
L10_1.area_id = 103
L11_1 = {}
L11_1.config_id = 16009
L11_1.gadget_id = 70360094
L12_1 = {}
L12_1.x = -732.665
L12_1.y = 154.069
L12_1.z = 38.382
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 21.229
L12_1.y = 3.006
L12_1.z = 15.939
L11_1.rot = L12_1
L11_1.level = 20
L11_1.area_id = 103
L12_1 = {}
L12_1.config_id = 16010
L12_1.gadget_id = 70360094
L13_1 = {}
L13_1.x = -736.274
L13_1.y = 151.603
L13_1.z = 53.099
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 21.229
L13_1.y = 3.006
L13_1.z = 15.939
L12_1.rot = L13_1
L12_1.level = 20
L12_1.area_id = 103
L13_1 = {}
L13_1.config_id = 16011
L13_1.gadget_id = 70360094
L14_1 = {}
L14_1.x = -754.201
L14_1.y = 120.962
L14_1.z = 72.661
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 21.229
L14_1.y = 3.006
L14_1.z = 15.939
L13_1.rot = L14_1
L13_1.level = 20
L13_1.area_id = 103
L14_1 = {}
L14_1.config_id = 16018
L14_1.gadget_id = 70690001
L15_1 = {}
L15_1.x = -706.485
L15_1.y = 135.219
L15_1.z = -52.767
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 14.69
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L14_1.area_id = 103
L15_1 = {}
L15_1.config_id = 16020
L15_1.gadget_id = 70690001
L16_1 = {}
L16_1.x = -699.089
L16_1.y = 131.469
L16_1.z = -31.471
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 334.376
L16_1.y = 21.451
L16_1.z = 4.243
L15_1.rot = L16_1
L15_1.level = 1
L15_1.area_id = 103
L16_1 = {}
L16_1.config_id = 16021
L16_1.gadget_id = 70690001
L17_1 = {}
L17_1.x = -696.043
L17_1.y = 133.977
L17_1.z = -26.437
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 343.097
L17_1.y = 24.88
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 1
L16_1.area_id = 103
L17_1 = {}
L17_1.config_id = 16022
L17_1.gadget_id = 70690001
L18_1 = {}
L18_1.x = -691.853
L18_1.y = 137.003
L18_1.z = -17.404
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 343.097
L18_1.y = 24.88
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
L17_1.area_id = 103
L18_1 = {}
L18_1.config_id = 16024
L18_1.gadget_id = 70690001
L19_1 = {}
L19_1.x = -708.969
L19_1.y = 148.667
L19_1.z = 25.082
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 346.535
L19_1.y = 303.453
L19_1.z = 0.688
L18_1.rot = L19_1
L18_1.level = 1
L18_1.area_id = 103
L19_1 = {}
L19_1.config_id = 16025
L19_1.gadget_id = 70690001
L20_1 = {}
L20_1.x = -713.853
L20_1.y = 150.069
L20_1.z = 28.309
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 346.535
L20_1.y = 303.453
L20_1.z = 0.688
L19_1.rot = L20_1
L19_1.level = 1
L19_1.area_id = 103
L20_1 = {}
L20_1.config_id = 16026
L20_1.gadget_id = 70690001
L21_1 = {}
L21_1.x = -721.96
L21_1.y = 152.395
L21_1.z = 33.665
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 346.535
L21_1.y = 303.453
L21_1.z = 0.688
L20_1.rot = L21_1
L20_1.level = 1
L20_1.area_id = 103
L21_1 = {}
L21_1.config_id = 16028
L21_1.gadget_id = 70690001
L22_1 = {}
L22_1.x = -741.459
L22_1.y = 146.296
L22_1.z = 57.887
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 57.603
L22_1.y = 309.656
L22_1.z = 7.48
L21_1.rot = L22_1
L21_1.level = 1
L21_1.area_id = 103
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
L2_1[11] = L13_1
L2_1[12] = L14_1
L2_1[13] = L15_1
L2_1[14] = L16_1
L2_1[15] = L17_1
L2_1[16] = L18_1
L2_1[17] = L19_1
L2_1[18] = L20_1
L2_1[19] = L21_1
gadgets = L2_1
L2_1 = {}
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1016012
L3_1.name = "CHALLENGE_SUCCESS_16012"
L4_1 = EventType
L4_1 = L4_1.EVENT_CHALLENGE_SUCCESS
L3_1.event = L4_1
L3_1.source = "666"
L3_1.condition = ""
L3_1.action = "action_EVENT_CHALLENGE_SUCCESS_16012"
L4_1 = {}
L4_1.config_id = 1016013
L4_1.name = "CHALLENGE_FAIL_16013"
L5_1 = EventType
L5_1 = L5_1.EVENT_CHALLENGE_FAIL
L4_1.event = L5_1
L4_1.source = "666"
L4_1.condition = ""
L4_1.action = "action_EVENT_CHALLENGE_FAIL_16013"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1016014
L5_1.name = "GADGET_STATE_CHANGE_16014"
L6_1 = EventType
L6_1 = L6_1.EVENT_GADGET_STATE_CHANGE
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_16014"
L5_1.action = "action_EVENT_GADGET_STATE_CHANGE_16014"
L5_1.trigger_count = 0
L6_1 = {}
L6_1.config_id = 1016015
L6_1.name = "ANY_GADGET_DIE_16015"
L7_1 = EventType
L7_1 = L7_1.EVENT_ANY_GADGET_DIE
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = ""
L6_1.action = ""
L6_1.trigger_count = 0
L6_1.tag = "218"
L7_1 = {}
L7_1.config_id = 1016016
L7_1.name = "GADGET_CREATE_16016"
L8_1 = EventType
L8_1 = L8_1.EVENT_GADGET_CREATE
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_GADGET_CREATE_16016"
L7_1.action = "action_EVENT_GADGET_CREATE_16016"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1016017
L8_1.name = "SELECT_OPTION_16017"
L9_1 = EventType
L9_1 = L9_1.EVENT_SELECT_OPTION
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_SELECT_OPTION_16017"
L8_1.action = "action_EVENT_SELECT_OPTION_16017"
L8_1.trigger_count = 0
L9_1 = {}
L9_1.config_id = 1016023
L9_1.name = "ANY_GADGET_DIE_16023"
L10_1 = EventType
L10_1 = L10_1.EVENT_ANY_GADGET_DIE
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = "condition_EVENT_ANY_GADGET_DIE_16023"
L9_1.action = "action_EVENT_ANY_GADGET_DIE_16023"
L9_1.trigger_count = 0
L10_1 = {}
L10_1.config_id = 1016027
L10_1.name = "ANY_GADGET_DIE_16027"
L11_1 = EventType
L11_1 = L11_1.EVENT_ANY_GADGET_DIE
L10_1.event = L11_1
L10_1.source = ""
L10_1.condition = "condition_EVENT_ANY_GADGET_DIE_16027"
L10_1.action = "action_EVENT_ANY_GADGET_DIE_16027"
L10_1.trigger_count = 0
L11_1 = {}
L11_1.config_id = 1016029
L11_1.name = "ANY_GADGET_DIE_16029"
L12_1 = EventType
L12_1 = L12_1.EVENT_ANY_GADGET_DIE
L11_1.event = L12_1
L11_1.source = ""
L11_1.condition = "condition_EVENT_ANY_GADGET_DIE_16029"
L11_1.action = "action_EVENT_ANY_GADGET_DIE_16029"
L11_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
L2_1[7] = L9_1
L2_1[8] = L10_1
L2_1[9] = L11_1
triggers = L2_1
L2_1 = {}
variables = L2_1
L2_1 = {}
L2_1.suite = 1
L2_1.end_suite = 3
L2_1.rand_suite = false
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 16002
L6_1 = 16003
L4_1[1] = L5_1
L4_1[2] = L6_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "CHALLENGE_SUCCESS_16012"
L6_1 = "CHALLENGE_FAIL_16013"
L7_1 = "GADGET_STATE_CHANGE_16014"
L8_1 = "ANY_GADGET_DIE_16015"
L9_1 = "GADGET_CREATE_16016"
L10_1 = "SELECT_OPTION_16017"
L11_1 = "ANY_GADGET_DIE_16023"
L12_1 = "ANY_GADGET_DIE_16027"
L13_1 = "ANY_GADGET_DIE_16029"
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
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 16004
L7_1 = 16005
L8_1 = 16006
L9_1 = 16007
L10_1 = 16008
L11_1 = 16009
L12_1 = 16010
L13_1 = 16011
L14_1 = 16018
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
L5_1[6] = L11_1
L5_1[7] = L12_1
L5_1[8] = L13_1
L5_1[9] = L14_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 = {}
L5_1.monsters = L6_1
L6_1 = {}
L7_1 = 16002
L6_1[1] = L7_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 = {}
L8_1 = 16020
L9_1 = 16021
L10_1 = 16022
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_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 = {}
L9_1 = 16024
L10_1 = 16025
L11_1 = 16026
L8_1[1] = L9_1
L8_1[2] = L10_1
L8_1[3] = L11_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 = {}
L8_1.monsters = L9_1
L9_1 = {}
L10_1 = 16028
L9_1[1] = L10_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
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
suites = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 16002
L5_2 = GadgetState
L5_2 = L5_2.GearStop
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_gadget_state_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 144004016
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 3002
L5_2 = 3
L6_2 = 1
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 : mark_playerAction"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GoToGroupSuite
L3_2 = A0_2
L4_2 = 144004016
L5_2 = 3
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 : goto_groupSuite"
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 = 16001
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 = ScriptLib
L2_2 = L2_2.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 144004016
L5_2 = 4
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 144004016
L5_2 = 5
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 144004016
L5_2 = 6
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_CHALLENGE_SUCCESS_16012 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 16002
L5_2 = GadgetState
L5_2 = L5_2.Default
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_gadget_state_by_configId"
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 = 16003
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 = ScriptLib
L2_2 = L2_2.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 144004016
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 3002
L5_2 = 4
L6_2 = 1
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 : mark_playerAction"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 144004016
L5_2 = 4
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 144004016
L5_2 = 5
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 144004016
L5_2 = 6
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_CHALLENGE_FAIL_16013 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 16002 == 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_16014 = L2_1
function L2_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 = 666
L5_2 = 218
L6_2 = L1_1.duration
L7_2 = 2
L8_2 = 218
L9_2 = 8
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 = -1
return L2_2
end
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.MarkPlayerAction
L3_2 = A0_2
L4_2 = 3002
L5_2 = 1
L6_2 = 1
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_16014 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 16003 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_CREATE_16016 = 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.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 144004016
L5_2 = 16003
L6_2 = {}
L7_2 = 177
L6_2[1] = L7_2
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_wok_options_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_CREATE_16016 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 16003 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = A1_2.param2
if 177 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_SELECT_OPTION_16017 = 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.KillEntityByConfigId
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 16003
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 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 16002
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 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_SELECT_OPTION_16017 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 16005 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ANY_GADGET_DIE_16023 = 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 = 144004016
L5_2 = 4
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_ANY_GADGET_DIE_16023 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 16007 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ANY_GADGET_DIE_16027 = 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 = 144004016
L5_2 = 5
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_ANY_GADGET_DIE_16027 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 16010 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ANY_GADGET_DIE_16029 = 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 = 144004016
L5_2 = 6
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_ANY_GADGET_DIE_16029 = L2_1