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

876 lines
16 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, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1
L0_1 = {}
L0_1.group_id = 144003007
L1_1 = {}
L1_1.duration = 60
L1_1.group_id = 144003007
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 7001
L3_1.gadget_id = 70211111
L4_1 = {}
L4_1.x = -775.349
L4_1.y = 123.676
L4_1.z = 50.695
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 339.279
L4_1.y = 77.929
L4_1.z = 0.899
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 = 7002
L4_1.gadget_id = 70350083
L5_1 = {}
L5_1.x = -739.734
L5_1.y = 134.206
L5_1.z = -241.264
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 0.221
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L4_1.persistent = true
L4_1.area_id = 103
L5_1 = {}
L5_1.config_id = 7003
L5_1.gadget_id = 70360001
L6_1 = {}
L6_1.x = -739.846
L6_1.y = 135.292
L6_1.z = -241.228
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 0.221
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L5_1.persistent = true
L5_1.area_id = 103
L6_1 = {}
L6_1.config_id = 7011
L6_1.gadget_id = 70690001
L7_1 = {}
L7_1.x = -762.336
L7_1.y = 153.421
L7_1.z = -20.044
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 7.734
L7_1.y = 285.395
L7_1.z = 341.854
L6_1.rot = L7_1
L6_1.level = 1
L6_1.area_id = 103
L7_1 = {}
L7_1.config_id = 7012
L7_1.gadget_id = 70690001
L8_1 = {}
L8_1.x = -713.259
L8_1.y = 151.847
L8_1.z = -220.652
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 316.659
L8_1.y = 51.629
L8_1.z = 351.41
L7_1.rot = L8_1
L7_1.level = 1
L7_1.area_id = 103
L8_1 = {}
L8_1.config_id = 7013
L8_1.gadget_id = 70690001
L9_1 = {}
L9_1.x = -783.677
L9_1.y = 142.854
L9_1.z = -4.506
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 16.821
L9_1.y = 345.853
L9_1.z = 348.929
L8_1.rot = L9_1
L8_1.level = 1
L8_1.area_id = 103
L9_1 = {}
L9_1.config_id = 7015
L9_1.gadget_id = 70690001
L10_1 = {}
L10_1.x = -785.58
L10_1.y = 137.033
L10_1.z = 9.29
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 18.783
L10_1.y = 353.67
L10_1.z = 354.027
L9_1.rot = L10_1
L9_1.level = 1
L9_1.area_id = 103
L10_1 = {}
L10_1.config_id = 7016
L10_1.gadget_id = 70690001
L11_1 = {}
L11_1.x = -782.552
L11_1.y = 130.867
L11_1.z = 30.021
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 20.007
L11_1.y = 23.817
L11_1.z = 1.336
L10_1.rot = L11_1
L10_1.level = 1
L10_1.area_id = 103
L11_1 = {}
L11_1.config_id = 7054
L11_1.gadget_id = 70690001
L12_1 = {}
L12_1.x = -731.608
L12_1.y = 134.052
L12_1.z = -236.141
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 315.879
L12_1.y = 49.993
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L11_1.area_id = 103
L12_1 = {}
L12_1.config_id = 7056
L12_1.gadget_id = 70690001
L13_1 = {}
L13_1.x = -725.784
L13_1.y = 139.461
L13_1.z = -231.252
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 315.685
L13_1.y = 49.993
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L12_1.area_id = 103
L13_1 = {}
L13_1.config_id = 7058
L13_1.gadget_id = 70690001
L14_1 = {}
L14_1.x = -718.847
L14_1.y = 145.605
L14_1.z = -225.15
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 316.659
L14_1.y = 51.629
L14_1.z = 351.41
L13_1.rot = L14_1
L13_1.level = 1
L13_1.area_id = 103
L14_1 = {}
L14_1.config_id = 7060
L14_1.gadget_id = 70690001
L15_1 = {}
L15_1.x = -707.815
L15_1.y = 156.674
L15_1.z = -216.172
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 320.777
L15_1.y = 49.993
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 = 7062
L15_1.gadget_id = 70690001
L16_1 = {}
L16_1.x = -694.889
L16_1.y = 166.338
L16_1.z = -205.019
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 321.831
L16_1.y = 24.415
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L15_1.area_id = 103
L16_1 = {}
L16_1.config_id = 7063
L16_1.gadget_id = 70690001
L17_1 = {}
L17_1.x = -692.525
L17_1.y = 170.732
L17_1.z = -199.052
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 324.153
L17_1.y = 3.839
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 = 7065
L17_1.gadget_id = 70690001
L18_1 = {}
L18_1.x = -691.493
L18_1.y = 177.877
L18_1.z = -186.162
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 327.664
L18_1.y = 3.839
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 = 7067
L18_1.gadget_id = 70690001
L19_1 = {}
L19_1.x = -690.529
L19_1.y = 184.847
L19_1.z = -171.79
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 335.135
L19_1.y = 3.839
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 1
L18_1.area_id = 103
L19_1 = {}
L19_1.config_id = 7069
L19_1.gadget_id = 70690001
L20_1 = {}
L20_1.x = -689.528
L20_1.y = 190.64
L20_1.z = -156.873
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 335.135
L20_1.y = 3.839
L20_1.z = 0.0
L19_1.rot = L20_1
L19_1.level = 1
L19_1.area_id = 103
L20_1 = {}
L20_1.config_id = 7075
L20_1.gadget_id = 70690001
L21_1 = {}
L21_1.x = -684.619
L21_1.y = 190.676
L21_1.z = -111.065
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 20.974
L21_1.y = 2.218
L21_1.z = 357.996
L20_1.rot = L21_1
L20_1.level = 1
L20_1.area_id = 103
L21_1 = {}
L21_1.config_id = 7080
L21_1.gadget_id = 70690001
L22_1 = {}
L22_1.x = -679.585
L22_1.y = 175.515
L22_1.z = -74.33
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 23.942
L22_1.y = 7.802
L22_1.z = 0.0
L21_1.rot = L22_1
L21_1.level = 1
L21_1.area_id = 103
L22_1 = {}
L22_1.config_id = 7086
L22_1.gadget_id = 70690001
L23_1 = {}
L23_1.x = -673.43
L23_1.y = 159.776
L23_1.z = -29.403
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 11.915
L23_1.y = 342.045
L23_1.z = 0.0
L22_1.rot = L23_1
L22_1.level = 1
L22_1.area_id = 103
L23_1 = {}
L23_1.config_id = 7087
L23_1.gadget_id = 70690001
L24_1 = {}
L24_1.x = -675.545
L24_1.y = 158.329
L24_1.z = -22.877
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 359.937
L24_1.y = 309.358
L24_1.z = 0.0
L23_1.rot = L24_1
L23_1.level = 1
L23_1.area_id = 103
L24_1 = {}
L24_1.config_id = 7089
L24_1.gadget_id = 70690001
L25_1 = {}
L25_1.x = -688.189
L25_1.y = 158.374
L25_1.z = -13.087
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 359.515
L25_1.y = 302.592
L25_1.z = 0.0
L24_1.rot = L25_1
L24_1.level = 1
L24_1.area_id = 103
L25_1 = {}
L25_1.config_id = 7091
L25_1.gadget_id = 70690001
L26_1 = {}
L26_1.x = -701.976
L26_1.y = 158.547
L26_1.z = -5.002
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 358.902
L26_1.y = 292.512
L26_1.z = 0.0
L25_1.rot = L26_1
L25_1.level = 1
L25_1.area_id = 103
L26_1 = {}
L26_1.config_id = 7092
L26_1.gadget_id = 70690001
L27_1 = {}
L27_1.x = -713.401
L27_1.y = 158.806
L27_1.z = -2.062
L26_1.pos = L27_1
L27_1 = {}
L27_1.x = 358.506
L27_1.y = 268.29
L27_1.z = 0.437
L26_1.rot = L27_1
L26_1.level = 1
L26_1.area_id = 103
L27_1 = {}
L27_1.config_id = 7095
L27_1.gadget_id = 70690001
L28_1 = {}
L28_1.x = -731.413
L28_1.y = 159.655
L28_1.z = -7.257
L27_1.pos = L28_1
L28_1 = {}
L28_1.x = 356.609
L28_1.y = 244.918
L28_1.z = 359.549
L27_1.rot = L28_1
L27_1.level = 1
L27_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
L2_1[20] = L22_1
L2_1[21] = L23_1
L2_1[22] = L24_1
L2_1[23] = L25_1
L2_1[24] = L26_1
L2_1[25] = L27_1
gadgets = L2_1
L2_1 = {}
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1007005
L3_1.name = "CHALLENGE_SUCCESS_7005"
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_7005"
L4_1 = {}
L4_1.config_id = 1007006
L4_1.name = "CHALLENGE_FAIL_7006"
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_7006"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1007007
L5_1.name = "GADGET_STATE_CHANGE_7007"
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_7007"
L5_1.action = "action_EVENT_GADGET_STATE_CHANGE_7007"
L5_1.trigger_count = 0
L6_1 = {}
L6_1.config_id = 1007008
L6_1.name = "GADGET_STATE_CHANGE_7008"
L7_1 = EventType
L7_1 = L7_1.EVENT_GADGET_STATE_CHANGE
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_7008"
L6_1.action = ""
L6_1.tag = "202"
L7_1 = {}
L7_1.config_id = 1007009
L7_1.name = "GADGET_CREATE_7009"
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_7009"
L7_1.action = "action_EVENT_GADGET_CREATE_7009"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1007010
L8_1.name = "SELECT_OPTION_7010"
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_7010"
L8_1.action = "action_EVENT_SELECT_OPTION_7010"
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 = {}
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 = 7002
L6_1 = 7003
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_7005"
L6_1 = "CHALLENGE_FAIL_7006"
L7_1 = "GADGET_STATE_CHANGE_7007"
L8_1 = "GADGET_STATE_CHANGE_7008"
L9_1 = "GADGET_CREATE_7009"
L10_1 = "SELECT_OPTION_7010"
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
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 7001
L7_1 = 7011
L8_1 = 7012
L9_1 = 7013
L10_1 = 7015
L11_1 = 7016
L12_1 = 7054
L13_1 = 7056
L14_1 = 7058
L15_1 = 7060
L16_1 = 7062
L17_1 = 7063
L18_1 = 7065
L19_1 = 7067
L20_1 = 7069
L21_1 = 7075
L22_1 = 7080
L23_1 = 7086
L24_1 = 7087
L25_1 = 7089
L26_1 = 7091
L27_1 = 7092
L28_1 = 7095
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
L5_1[10] = L15_1
L5_1[11] = L16_1
L5_1[12] = L17_1
L5_1[13] = L18_1
L5_1[14] = L19_1
L5_1[15] = L20_1
L5_1[16] = L21_1
L5_1[17] = L22_1
L5_1[18] = L23_1
L5_1[19] = L24_1
L5_1[20] = L25_1
L5_1[21] = L26_1
L5_1[22] = L27_1
L5_1[23] = L28_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 = 7002
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
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_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 = 7002
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.KillExtraGroupSuite
L3_2 = A0_2
L4_2 = 144003007
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 = 144003007
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 = 0
return L2_2
end
action_EVENT_CHALLENGE_SUCCESS_7005 = 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.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 144003007
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 7002
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 = 7003
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.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 = 0
return L2_2
end
action_EVENT_CHALLENGE_FAIL_7006 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 7002 == 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_7007 = 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 = 202
L6_2 = L1_1.duration
L7_2 = 7
L8_2 = 202
L9_2 = 1
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_7007 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 7001 == 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_7008 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 7003 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_CREATE_7009 = 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 = 144003007
L5_2 = 7003
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_7009 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 7003 ~= 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_7010 = 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 = 7003
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 = 7002
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_7010 = L2_1