mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
1143 lines
22 KiB
Lua
1143 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
|
|
L0_1 = {}
|
|
L0_1.group_id = 220102004
|
|
L1_1 = {}
|
|
L1_1.max_gear = 4
|
|
L1_1.timer = 10
|
|
L1_1.group_id = 220102004
|
|
L1_1.gadget_1 = 4001
|
|
L1_1.gadget_2 = 4002
|
|
L1_1.gadget_3 = 4003
|
|
L1_1.gadget_4 = 4005
|
|
L1_1.gadget_chest = 4004
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 4016
|
|
L3_1.monster_id = 21010201
|
|
L4_1 = {}
|
|
L4_1.x = -37.181
|
|
L4_1.y = 1.946
|
|
L4_1.z = 86.62
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 300.0
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 1
|
|
L3_1.disableWander = true
|
|
L3_1.pose_id = 9016
|
|
L4_1 = {}
|
|
L4_1.config_id = 4017
|
|
L4_1.monster_id = 21010201
|
|
L5_1 = {}
|
|
L5_1.x = -54.896
|
|
L5_1.y = 14.702
|
|
L5_1.z = 20.298
|
|
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.disableWander = true
|
|
L4_1.pose_id = 9003
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 4001
|
|
L3_1.gadget_id = 70900009
|
|
L4_1 = {}
|
|
L4_1.x = -80.723
|
|
L4_1.y = 4.39
|
|
L4_1.z = 13.977
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 346.847
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 1
|
|
L4_1 = GadgetState
|
|
L4_1 = L4_1.Action01
|
|
L3_1.state = L4_1
|
|
L3_1.persistent = true
|
|
L4_1 = {}
|
|
L4_1.config_id = 4002
|
|
L4_1.gadget_id = 70900009
|
|
L5_1 = {}
|
|
L5_1.x = -72.3
|
|
L5_1.y = 4.352
|
|
L5_1.z = 26.902
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 0.0
|
|
L5_1.y = 345.047
|
|
L5_1.z = 0.0
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 1
|
|
L5_1 = GadgetState
|
|
L5_1 = L5_1.Action01
|
|
L4_1.state = L5_1
|
|
L4_1.persistent = true
|
|
L5_1 = {}
|
|
L5_1.config_id = 4003
|
|
L5_1.gadget_id = 70900009
|
|
L6_1 = {}
|
|
L6_1.x = -69.635
|
|
L6_1.y = 4.348
|
|
L6_1.z = 29.586
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 75.147
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 1
|
|
L6_1 = GadgetState
|
|
L6_1 = L6_1.Action01
|
|
L5_1.state = L6_1
|
|
L5_1.persistent = true
|
|
L6_1 = {}
|
|
L6_1.config_id = 4005
|
|
L6_1.gadget_id = 70900009
|
|
L7_1 = {}
|
|
L7_1.x = -77.894
|
|
L7_1.y = 4.421
|
|
L7_1.z = 11.302
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 16.047
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 1
|
|
L7_1 = GadgetState
|
|
L7_1 = L7_1.Action01
|
|
L6_1.state = L7_1
|
|
L6_1.persistent = true
|
|
L7_1 = {}
|
|
L7_1.config_id = 4010
|
|
L7_1.gadget_id = 70350025
|
|
L8_1 = {}
|
|
L8_1.x = -88.695
|
|
L8_1.y = 12.591
|
|
L8_1.z = 21.593
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 90.0
|
|
L8_1.z = 180.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 1
|
|
L8_1 = {}
|
|
L8_1.config_id = 4011
|
|
L8_1.gadget_id = 70900201
|
|
L9_1 = {}
|
|
L9_1.x = -95.72
|
|
L9_1.y = 8.322
|
|
L9_1.z = 42.373
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 0.0
|
|
L9_1.y = 0.0
|
|
L9_1.z = 0.0
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 1
|
|
L9_1 = {}
|
|
L9_1.config_id = 4012
|
|
L9_1.gadget_id = 70211101
|
|
L10_1 = {}
|
|
L10_1.x = -120.837
|
|
L10_1.y = 8.507
|
|
L10_1.z = 50.613
|
|
L9_1.pos = L10_1
|
|
L10_1 = {}
|
|
L10_1.x = 0.0
|
|
L10_1.y = 180.0
|
|
L10_1.z = 0.0
|
|
L9_1.rot = L10_1
|
|
L9_1.level = 11
|
|
L9_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\231\146\131\230\156\136"
|
|
L9_1.isOneoff = true
|
|
L9_1.persistent = true
|
|
L10_1 = {}
|
|
L10_1.config_id = 4014
|
|
L10_1.gadget_id = 70211101
|
|
L11_1 = {}
|
|
L11_1.x = -9.997
|
|
L11_1.y = 1.931
|
|
L11_1.z = 80.733
|
|
L10_1.pos = L11_1
|
|
L11_1 = {}
|
|
L11_1.x = 0.0
|
|
L11_1.y = 340.0
|
|
L11_1.z = 0.0
|
|
L10_1.rot = L11_1
|
|
L10_1.level = 11
|
|
L10_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\231\146\131\230\156\136"
|
|
L10_1.isOneoff = true
|
|
L10_1.persistent = true
|
|
L11_1 = {}
|
|
L11_1.config_id = 4015
|
|
L11_1.gadget_id = 70900201
|
|
L12_1 = {}
|
|
L12_1.x = -77.768
|
|
L12_1.y = 15.269
|
|
L12_1.z = 83.528
|
|
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
|
|
L12_1 = {}
|
|
L12_1.config_id = 4018
|
|
L12_1.gadget_id = 70220014
|
|
L13_1 = {}
|
|
L13_1.x = -55.901
|
|
L13_1.y = 14.697
|
|
L13_1.z = 20.336
|
|
L12_1.pos = L13_1
|
|
L13_1 = {}
|
|
L13_1.x = 0.0
|
|
L13_1.y = 0.0
|
|
L13_1.z = 0.0
|
|
L12_1.rot = L13_1
|
|
L12_1.level = 1
|
|
L13_1 = {}
|
|
L13_1.config_id = 4019
|
|
L13_1.gadget_id = 70360002
|
|
L14_1 = {}
|
|
L14_1.x = -74.461
|
|
L14_1.y = 4.334
|
|
L14_1.z = 21.46
|
|
L13_1.pos = L14_1
|
|
L14_1 = {}
|
|
L14_1.x = 0.0
|
|
L14_1.y = 90.0
|
|
L14_1.z = 0.0
|
|
L13_1.rot = L14_1
|
|
L13_1.level = 1
|
|
L14_1 = GadgetState
|
|
L14_1 = L14_1.GearStop
|
|
L13_1.state = L14_1
|
|
L14_1 = {}
|
|
L14_1.config_id = 4020
|
|
L14_1.gadget_id = 70220026
|
|
L15_1 = {}
|
|
L15_1.x = -57.13
|
|
L15_1.y = 14.698
|
|
L15_1.z = 20.639
|
|
L14_1.pos = L15_1
|
|
L15_1 = {}
|
|
L15_1.x = 0.0
|
|
L15_1.y = 60.0
|
|
L15_1.z = 0.0
|
|
L14_1.rot = L15_1
|
|
L14_1.level = 1
|
|
L15_1 = {}
|
|
L15_1.config_id = 4022
|
|
L15_1.gadget_id = 70900201
|
|
L16_1 = {}
|
|
L16_1.x = -76.054
|
|
L16_1.y = 8.086
|
|
L16_1.z = 51.694
|
|
L15_1.pos = L16_1
|
|
L16_1 = {}
|
|
L16_1.x = 0.0
|
|
L16_1.y = 0.0
|
|
L16_1.z = 0.0
|
|
L15_1.rot = L16_1
|
|
L15_1.level = 1
|
|
L16_1 = {}
|
|
L16_1.config_id = 4024
|
|
L16_1.gadget_id = 70900201
|
|
L17_1 = {}
|
|
L17_1.x = -102.66
|
|
L17_1.y = 8.513
|
|
L17_1.z = 66.554
|
|
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 = 1
|
|
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
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 4013
|
|
L4_1 = RegionShape
|
|
L4_1 = L4_1.CUBIC
|
|
L3_1.shape = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 5.0
|
|
L4_1.y = 5.0
|
|
L4_1.z = 10.0
|
|
L3_1.size = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = -95.865
|
|
L4_1.y = 9.119
|
|
L4_1.z = 46.478
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.config_id = 4023
|
|
L5_1 = RegionShape
|
|
L5_1 = L5_1.CUBIC
|
|
L4_1.shape = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 5.0
|
|
L5_1.y = 5.0
|
|
L5_1.z = 5.0
|
|
L4_1.size = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = -76.531
|
|
L5_1.y = 7.164
|
|
L5_1.z = 51.744
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.config_id = 4025
|
|
L6_1 = RegionShape
|
|
L6_1 = L6_1.CUBIC
|
|
L5_1.shape = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 5.0
|
|
L6_1.y = 5.0
|
|
L6_1.z = 5.0
|
|
L5_1.size = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = -102.573
|
|
L6_1.y = 8.332
|
|
L6_1.z = 67.886
|
|
L5_1.pos = L6_1
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1004004
|
|
L3_1.name = "GADGET_STATE_CHANGE_4004"
|
|
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_4004"
|
|
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_4004"
|
|
L4_1 = {}
|
|
L4_1.config_id = 1004006
|
|
L4_1.name = "GADGET_STATE_CHANGE_4006"
|
|
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_4006"
|
|
L4_1.action = "action_EVENT_GADGET_STATE_CHANGE_4006"
|
|
L4_1.trigger_count = 0
|
|
L5_1 = {}
|
|
L5_1.config_id = 1004007
|
|
L5_1.name = "TIMER_EVENT_4007"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_TIMER_EVENT
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = "condition_EVENT_TIMER_EVENT_4007"
|
|
L5_1.action = "action_EVENT_TIMER_EVENT_4007"
|
|
L5_1.trigger_count = 0
|
|
L6_1 = {}
|
|
L6_1.config_id = 1004008
|
|
L6_1.name = "VARIABLE_CHANGE_4008"
|
|
L7_1 = EventType
|
|
L7_1 = L7_1.EVENT_VARIABLE_CHANGE
|
|
L6_1.event = L7_1
|
|
L6_1.source = ""
|
|
L6_1.condition = "condition_EVENT_VARIABLE_CHANGE_4008"
|
|
L6_1.action = "action_EVENT_VARIABLE_CHANGE_4008"
|
|
L6_1.trigger_count = 0
|
|
L7_1 = {}
|
|
L7_1.config_id = 1004009
|
|
L7_1.name = "GADGET_STATE_CHANGE_4009"
|
|
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_4009"
|
|
L7_1.action = "action_EVENT_GADGET_STATE_CHANGE_4009"
|
|
L8_1 = {}
|
|
L8_1.config_id = 1004013
|
|
L8_1.name = "ENTER_REGION_4013"
|
|
L9_1 = EventType
|
|
L9_1 = L9_1.EVENT_ENTER_REGION
|
|
L8_1.event = L9_1
|
|
L8_1.source = ""
|
|
L8_1.condition = "condition_EVENT_ENTER_REGION_4013"
|
|
L8_1.action = "action_EVENT_ENTER_REGION_4013"
|
|
L9_1 = {}
|
|
L9_1.config_id = 1004021
|
|
L9_1.name = "SELECT_OPTION_4021"
|
|
L10_1 = EventType
|
|
L10_1 = L10_1.EVENT_SELECT_OPTION
|
|
L9_1.event = L10_1
|
|
L9_1.source = ""
|
|
L9_1.condition = "condition_EVENT_SELECT_OPTION_4021"
|
|
L9_1.action = "action_EVENT_SELECT_OPTION_4021"
|
|
L10_1 = {}
|
|
L10_1.config_id = 1004023
|
|
L10_1.name = "ENTER_REGION_4023"
|
|
L11_1 = EventType
|
|
L11_1 = L11_1.EVENT_ENTER_REGION
|
|
L10_1.event = L11_1
|
|
L10_1.source = ""
|
|
L10_1.condition = "condition_EVENT_ENTER_REGION_4023"
|
|
L10_1.action = "action_EVENT_ENTER_REGION_4023"
|
|
L11_1 = {}
|
|
L11_1.config_id = 1004025
|
|
L11_1.name = "ENTER_REGION_4025"
|
|
L12_1 = EventType
|
|
L12_1 = L12_1.EVENT_ENTER_REGION
|
|
L11_1.event = L12_1
|
|
L11_1.source = ""
|
|
L11_1.condition = "condition_EVENT_ENTER_REGION_4025"
|
|
L11_1.action = "action_EVENT_ENTER_REGION_4025"
|
|
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 = {}
|
|
L3_1 = {}
|
|
L3_1.configId = 1
|
|
L3_1.name = "active_count"
|
|
L3_1.value = 0
|
|
L3_1.no_refresh = false
|
|
L2_1[1] = L3_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 = {}
|
|
L5_1 = 4016
|
|
L6_1 = 4017
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 4001
|
|
L6_1 = 4002
|
|
L7_1 = 4003
|
|
L8_1 = 4005
|
|
L9_1 = 4010
|
|
L10_1 = 4012
|
|
L11_1 = 4014
|
|
L12_1 = 4018
|
|
L13_1 = 4019
|
|
L14_1 = 4020
|
|
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 = 4013
|
|
L6_1 = 4023
|
|
L7_1 = 4025
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L4_1[3] = L7_1
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = "GADGET_STATE_CHANGE_4004"
|
|
L6_1 = "GADGET_STATE_CHANGE_4006"
|
|
L7_1 = "TIMER_EVENT_4007"
|
|
L8_1 = "VARIABLE_CHANGE_4008"
|
|
L9_1 = "ENTER_REGION_4013"
|
|
L10_1 = "SELECT_OPTION_4021"
|
|
L11_1 = "ENTER_REGION_4023"
|
|
L12_1 = "ENTER_REGION_4025"
|
|
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
|
|
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
|
|
if 4019 == 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_4004 = 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.SetWorktopOptions
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L5_2 = 7
|
|
L4_2[1] = L5_2
|
|
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 : set_work_options"
|
|
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_4004 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = L1_1.gadget_1
|
|
L3_2 = A1_2.param2
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = L1_1.gadget_2
|
|
L3_2 = A1_2.param2
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = L1_1.gadget_3
|
|
L3_2 = A1_2.param2
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = L1_1.gadget_4
|
|
L3_2 = A1_2.param2
|
|
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_4006 = 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.GetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "active_count"
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
if 0 == L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 1001
|
|
L5_2 = 1
|
|
L6_2 = 1
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
end
|
|
L2_2 = A1_2.param1
|
|
L3_2 = GadgetState
|
|
L3_2 = L3_2.Action01
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.ChangeGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "active_count"
|
|
L5_2 = -1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
else
|
|
L2_2 = A1_2.param1
|
|
L3_2 = GadgetState
|
|
L3_2 = L3_2.Action02
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.ChangeGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "active_count"
|
|
L5_2 = 1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CreateGroupTimerEvent
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = tostring
|
|
L6_2 = A1_2.param2
|
|
L5_2 = L5_2(L6_2)
|
|
L6_2 = L1_1.timer
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
else
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_4006 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = A1_2.source_name
|
|
L3_2 = tostring
|
|
L4_2 = L1_1.gadget_1
|
|
L3_2 = L3_2(L4_2)
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = A1_2.source_name
|
|
L3_2 = tostring
|
|
L4_2 = L1_1.gadget_2
|
|
L3_2 = L3_2(L4_2)
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = A1_2.source_name
|
|
L3_2 = tostring
|
|
L4_2 = L1_1.gadget_3
|
|
L3_2 = L3_2(L4_2)
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = A1_2.source_name
|
|
L3_2 = tostring
|
|
L4_2 = L1_1.gadget_4
|
|
L3_2 = L3_2(L4_2)
|
|
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_TIMER_EVENT_4007 = 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.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = tonumber
|
|
L5_2 = A1_2.source_name
|
|
L4_2 = L4_2(L5_2)
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.Action01
|
|
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_TIMER_EVENT_4007 = 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 = A1_2.param2
|
|
if L2_2 == L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param1
|
|
if L2_2 == -1 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 1001
|
|
L5_2 = 4
|
|
L6_2 = 1
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
end
|
|
L2_2 = A1_2.param1
|
|
L3_2 = L1_1.max_gear
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_VARIABLE_CHANGE_4008 = 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.CancelGroupTimerEvent
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = tostring
|
|
L6_2 = L1_1.gadget_1
|
|
L5_2, L6_2 = L5_2(L6_2)
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CancelGroupTimerEvent
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = tostring
|
|
L6_2 = L1_1.gadget_2
|
|
L5_2, L6_2 = L5_2(L6_2)
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CancelGroupTimerEvent
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = tostring
|
|
L6_2 = L1_1.gadget_3
|
|
L5_2, L6_2 = L5_2(L6_2)
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CancelGroupTimerEvent
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = tostring
|
|
L6_2 = L1_1.gadget_4
|
|
L5_2, L6_2 = L5_2(L6_2)
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = L1_1.gadget_1
|
|
if L2_2 ~= 0 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.gadget_1
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.GearStart
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
end
|
|
L2_2 = L1_1.gadget_2
|
|
if L2_2 ~= 0 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.gadget_2
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.GearStart
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
end
|
|
L2_2 = L1_1.gadget_3
|
|
if L2_2 ~= 0 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.gadget_3
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.GearStart
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
end
|
|
L2_2 = L1_1.gadget_4
|
|
if L2_2 ~= 0 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.gadget_4
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.GearStart
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 220102004
|
|
L5_2 = 4019
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.ChestOpened
|
|
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 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 1001
|
|
L5_2 = 3
|
|
L6_2 = 1
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_VARIABLE_CHANGE_4008 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = A1_2.param2
|
|
if 4004 == 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_4009 = 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.SetGroupGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 220102004
|
|
L5_2 = 4010
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.GearStart
|
|
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 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_4009 = 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 ~= 4013 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_4013 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.KillEntityByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.config_id = 4011
|
|
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.CreateGadget
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.config_id = 4022
|
|
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 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ENTER_REGION_4013 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 4019 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param2
|
|
if 7 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_SELECT_OPTION_4021 = 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.DelWorktopOptionByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = 220102004
|
|
L5_2 = 4019
|
|
L6_2 = 7
|
|
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 : del_work_options_by_group_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 220102004
|
|
L5_2 = 4010
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.GearStart
|
|
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.KillGroupEntity
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.group_id = 220102003
|
|
L5_2 = {}
|
|
L4_2.monsters = L5_2
|
|
L5_2 = {}
|
|
L6_2 = 3024
|
|
L5_2[1] = L6_2
|
|
L4_2.gadgets = L5_2
|
|
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_monsters_and_gadgets_by_group"
|
|
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 = 4011
|
|
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.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 4019
|
|
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_4021 = 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 ~= 4023 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_4023 = 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.KillGroupEntity
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.group_id = 220102004
|
|
L5_2 = {}
|
|
L4_2.monsters = L5_2
|
|
L5_2 = {}
|
|
L6_2 = 4022
|
|
L5_2[1] = L6_2
|
|
L4_2.gadgets = L5_2
|
|
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_monsters_and_gadgets_by_group"
|
|
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 = 4024
|
|
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 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ENTER_REGION_4023 = 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 ~= 4025 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_4025 = 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.KillGroupEntity
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.group_id = 220102004
|
|
L5_2 = {}
|
|
L4_2.monsters = L5_2
|
|
L5_2 = {}
|
|
L6_2 = 4024
|
|
L5_2[1] = L6_2
|
|
L4_2.gadgets = L5_2
|
|
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_monsters_and_gadgets_by_group"
|
|
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 = 4015
|
|
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 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ENTER_REGION_4025 = L2_1
|