mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
780 lines
14 KiB
Lua
780 lines
14 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
|
|
L0_1 = {}
|
|
L0_1.group_id = 220009002
|
|
L1_1 = {}
|
|
L1_1.gadget_id_1 = 205
|
|
L1_1.gadget_id_2 = 235
|
|
L1_1.gadget_id_3 = 236
|
|
L1_1.gadget_id_4 = 237
|
|
L1_1.gadget_id_5 = 239
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1
|
|
L3_1.monster_id = 21010301
|
|
L4_1 = {}
|
|
L4_1.x = -81.29
|
|
L4_1.y = -15.397
|
|
L4_1.z = 117.627
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 245.495
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 1
|
|
L3_1.disableWander = true
|
|
L2_1[1] = L3_1
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 56
|
|
L3_1.gadget_id = 70350003
|
|
L4_1 = {}
|
|
L4_1.x = -102.896
|
|
L4_1.y = -12.62
|
|
L4_1.z = 125.774
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 90.0
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 1
|
|
L4_1 = {}
|
|
L4_1.config_id = 195
|
|
L4_1.gadget_id = 70220013
|
|
L5_1 = {}
|
|
L5_1.x = -74.946
|
|
L5_1.y = -15.585
|
|
L5_1.z = 128.889
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 6.239
|
|
L5_1.y = 76.614
|
|
L5_1.z = 0.0
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 1
|
|
L5_1 = {}
|
|
L5_1.config_id = 196
|
|
L5_1.gadget_id = 70220013
|
|
L6_1 = {}
|
|
L6_1.x = -76.636
|
|
L6_1.y = -15.525
|
|
L6_1.z = 130.226
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 343.343
|
|
L6_1.z = 358.631
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 1
|
|
L6_1 = {}
|
|
L6_1.config_id = 201
|
|
L6_1.gadget_id = 70220014
|
|
L7_1 = {}
|
|
L7_1.x = -74.678
|
|
L7_1.y = -15.505
|
|
L7_1.z = 127.274
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 227.925
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 1
|
|
L7_1 = {}
|
|
L7_1.config_id = 202
|
|
L7_1.gadget_id = 70220014
|
|
L8_1 = {}
|
|
L8_1.x = -85.905
|
|
L8_1.y = -15.496
|
|
L8_1.z = 130.27
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 144.043
|
|
L8_1.z = 0.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 1
|
|
L8_1 = {}
|
|
L8_1.config_id = 203
|
|
L8_1.gadget_id = 70220014
|
|
L9_1 = {}
|
|
L9_1.x = -86.73
|
|
L9_1.y = -15.611
|
|
L9_1.z = 128.996
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 0.0
|
|
L9_1.y = 150.564
|
|
L9_1.z = 0.0
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 1
|
|
L9_1 = {}
|
|
L9_1.config_id = 205
|
|
L9_1.gadget_id = 70211002
|
|
L10_1 = {}
|
|
L10_1.x = -81.624
|
|
L10_1.y = -15.606
|
|
L10_1.z = 129.374
|
|
L9_1.pos = L10_1
|
|
L10_1 = {}
|
|
L10_1.x = 0.0
|
|
L10_1.y = 180.072
|
|
L10_1.z = 0.0
|
|
L9_1.rot = L10_1
|
|
L9_1.level = 1
|
|
L9_1.drop_tag = "\230\136\152\230\150\151\228\189\142\231\186\167\232\146\153\229\190\183"
|
|
L10_1 = GadgetState
|
|
L10_1 = L10_1.ChestLocked
|
|
L9_1.state = L10_1
|
|
L9_1.isOneoff = true
|
|
L10_1 = {}
|
|
L10_1.config_id = 235
|
|
L10_1.gadget_id = 70220007
|
|
L11_1 = {}
|
|
L11_1.x = -92.485
|
|
L11_1.y = -15.483
|
|
L11_1.z = 101.636
|
|
L10_1.pos = L11_1
|
|
L11_1 = {}
|
|
L11_1.x = 0.0
|
|
L11_1.y = 15.024
|
|
L11_1.z = 0.0
|
|
L10_1.rot = L11_1
|
|
L10_1.level = 1
|
|
L11_1 = {}
|
|
L11_1.config_id = 236
|
|
L11_1.gadget_id = 70220007
|
|
L12_1 = {}
|
|
L12_1.x = -90.272
|
|
L12_1.y = -15.484
|
|
L12_1.z = 99.337
|
|
L11_1.pos = L12_1
|
|
L12_1 = {}
|
|
L12_1.x = 0.0
|
|
L12_1.y = 274.345
|
|
L12_1.z = 0.0
|
|
L11_1.rot = L12_1
|
|
L11_1.level = 1
|
|
L12_1 = {}
|
|
L12_1.config_id = 237
|
|
L12_1.gadget_id = 70220007
|
|
L13_1 = {}
|
|
L13_1.x = -92.296
|
|
L13_1.y = -10.603
|
|
L13_1.z = 96.805
|
|
L12_1.pos = L13_1
|
|
L13_1 = {}
|
|
L13_1.x = 86.555
|
|
L13_1.y = 175.767
|
|
L13_1.z = 180.0
|
|
L12_1.rot = L13_1
|
|
L12_1.level = 1
|
|
L13_1 = {}
|
|
L13_1.config_id = 238
|
|
L13_1.gadget_id = 70211001
|
|
L14_1 = {}
|
|
L14_1.x = -94.28
|
|
L14_1.y = -15.052
|
|
L14_1.z = 98.45
|
|
L13_1.pos = L14_1
|
|
L14_1 = {}
|
|
L14_1.x = 0.0
|
|
L14_1.y = 46.422
|
|
L14_1.z = 0.0
|
|
L13_1.rot = L14_1
|
|
L13_1.level = 1
|
|
L13_1.drop_tag = "\230\136\152\230\150\151\228\189\142\231\186\167\232\146\153\229\190\183"
|
|
L13_1.isOneoff = true
|
|
L14_1 = {}
|
|
L14_1.config_id = 239
|
|
L14_1.gadget_id = 70220005
|
|
L15_1 = {}
|
|
L15_1.x = -90.206
|
|
L15_1.y = -15.478
|
|
L15_1.z = 103.334
|
|
L14_1.pos = L15_1
|
|
L15_1 = {}
|
|
L15_1.x = 0.0
|
|
L15_1.y = 33.307
|
|
L15_1.z = 0.0
|
|
L14_1.rot = L15_1
|
|
L14_1.level = 1
|
|
L15_1 = {}
|
|
L15_1.config_id = 242
|
|
L15_1.gadget_id = 70220013
|
|
L16_1 = {}
|
|
L16_1.x = -72.054
|
|
L16_1.y = -15.484
|
|
L16_1.z = 103.397
|
|
L15_1.pos = L16_1
|
|
L16_1 = {}
|
|
L16_1.x = 0.68
|
|
L16_1.y = 13.127
|
|
L16_1.z = 358.812
|
|
L15_1.rot = L16_1
|
|
L15_1.level = 1
|
|
L16_1 = {}
|
|
L16_1.config_id = 243
|
|
L16_1.gadget_id = 70220013
|
|
L17_1 = {}
|
|
L17_1.x = -71.111
|
|
L17_1.y = -15.484
|
|
L17_1.z = 105.301
|
|
L16_1.pos = L17_1
|
|
L17_1 = {}
|
|
L17_1.x = 1.069
|
|
L17_1.y = 34.689
|
|
L17_1.z = 359.145
|
|
L16_1.rot = L17_1
|
|
L16_1.level = 1
|
|
L17_1 = {}
|
|
L17_1.config_id = 244
|
|
L17_1.gadget_id = 70220014
|
|
L18_1 = {}
|
|
L18_1.x = -70.596
|
|
L18_1.y = -15.484
|
|
L18_1.z = 106.722
|
|
L17_1.pos = L18_1
|
|
L18_1 = {}
|
|
L18_1.x = 0.0
|
|
L18_1.y = 144.043
|
|
L18_1.z = 0.0
|
|
L17_1.rot = L18_1
|
|
L17_1.level = 1
|
|
L18_1 = {}
|
|
L18_1.config_id = 245
|
|
L18_1.gadget_id = 70220014
|
|
L19_1 = {}
|
|
L19_1.x = -73.577
|
|
L19_1.y = -15.405
|
|
L19_1.z = 102.923
|
|
L18_1.pos = L19_1
|
|
L19_1 = {}
|
|
L19_1.x = 0.0
|
|
L19_1.y = 144.043
|
|
L19_1.z = 0.0
|
|
L18_1.rot = L19_1
|
|
L18_1.level = 1
|
|
L19_1 = {}
|
|
L19_1.config_id = 269
|
|
L19_1.gadget_id = 70220005
|
|
L20_1 = {}
|
|
L20_1.x = -92.488
|
|
L20_1.y = -15.543
|
|
L20_1.z = 103.78
|
|
L19_1.pos = L20_1
|
|
L20_1 = {}
|
|
L20_1.x = 0.0
|
|
L20_1.y = 44.118
|
|
L20_1.z = 0.0
|
|
L19_1.rot = L20_1
|
|
L19_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
|
|
L2_1[15] = L17_1
|
|
L2_1[16] = L18_1
|
|
L2_1[17] = L19_1
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 15
|
|
L4_1 = RegionShape
|
|
L4_1 = L4_1.CUBIC
|
|
L3_1.shape = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 30.0
|
|
L4_1.y = 10.0
|
|
L4_1.z = 40.0
|
|
L3_1.size = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = -133.848
|
|
L4_1.y = -12.483
|
|
L4_1.z = 129.853
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.config_id = 21
|
|
L5_1 = RegionShape
|
|
L5_1 = L5_1.SPHERE
|
|
L4_1.shape = L5_1
|
|
L4_1.radius = 5
|
|
L5_1 = {}
|
|
L5_1.x = -127.516
|
|
L5_1.y = -12.221
|
|
L5_1.z = 105.636
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.config_id = 42
|
|
L6_1 = RegionShape
|
|
L6_1 = L6_1.CUBIC
|
|
L5_1.shape = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 31.01
|
|
L6_1.y = 20.96
|
|
L6_1.z = 3.86
|
|
L5_1.size = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = -83.849
|
|
L6_1.y = -15.483
|
|
L6_1.z = 106.733
|
|
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 = 1000015
|
|
L3_1.name = "ENTER_REGION_15"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_ENTER_REGION
|
|
L3_1.event = L4_1
|
|
L3_1.source = ""
|
|
L3_1.condition = "condition_EVENT_ENTER_REGION_15"
|
|
L3_1.action = "action_EVENT_ENTER_REGION_15"
|
|
L3_1.trigger_count = 0
|
|
L3_1.forbid_guest = false
|
|
L4_1 = {}
|
|
L4_1.config_id = 1000021
|
|
L4_1.name = "ENTER_REGION_21"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_ENTER_REGION
|
|
L4_1.event = L5_1
|
|
L4_1.source = ""
|
|
L4_1.condition = "condition_EVENT_ENTER_REGION_21"
|
|
L4_1.action = "action_EVENT_ENTER_REGION_21"
|
|
L4_1.forbid_guest = false
|
|
L5_1 = {}
|
|
L5_1.config_id = 1000038
|
|
L5_1.name = "ANY_MONSTER_DIE_38"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_ANY_MONSTER_DIE
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = "condition_EVENT_ANY_MONSTER_DIE_38"
|
|
L5_1.action = "action_EVENT_ANY_MONSTER_DIE_38"
|
|
L6_1 = {}
|
|
L6_1.config_id = 1000039
|
|
L6_1.name = "TIMER_EVENT_39"
|
|
L7_1 = EventType
|
|
L7_1 = L7_1.EVENT_TIMER_EVENT
|
|
L6_1.event = L7_1
|
|
L6_1.source = "start"
|
|
L6_1.condition = ""
|
|
L6_1.action = "action_EVENT_TIMER_EVENT_39"
|
|
L7_1 = {}
|
|
L7_1.config_id = 1000042
|
|
L7_1.name = "ENTER_REGION_42"
|
|
L8_1 = EventType
|
|
L8_1 = L8_1.EVENT_ENTER_REGION
|
|
L7_1.event = L8_1
|
|
L7_1.source = ""
|
|
L7_1.condition = "condition_EVENT_ENTER_REGION_42"
|
|
L7_1.action = "action_EVENT_ENTER_REGION_42"
|
|
L7_1.trigger_count = 0
|
|
L7_1.forbid_guest = false
|
|
L8_1 = {}
|
|
L8_1.config_id = 1000043
|
|
L8_1.name = "CLIENT_EXECUTE_43"
|
|
L9_1 = EventType
|
|
L9_1 = L9_1.EVENT_CLIENT_EXECUTE
|
|
L8_1.event = L9_1
|
|
L8_1.source = "ElementFlora"
|
|
L8_1.condition = ""
|
|
L8_1.action = "action_EVENT_CLIENT_EXECUTE_43"
|
|
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 = "isoff"
|
|
L3_1.value = 0
|
|
L3_1.no_refresh = false
|
|
L2_1[1] = L3_1
|
|
variables = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L4_1.config_id = 1000044
|
|
L4_1.name = "ANY_GADGET_DIE_44"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_ANY_GADGET_DIE
|
|
L4_1.event = L5_1
|
|
L4_1.source = ""
|
|
L4_1.condition = "condition_EVENT_ANY_GADGET_DIE_44"
|
|
L4_1.action = "action_EVENT_ANY_GADGET_DIE_44"
|
|
L3_1[1] = L4_1
|
|
L2_1.triggers = L3_1
|
|
garbages = 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 = 1
|
|
L4_1[1] = L5_1
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 56
|
|
L6_1 = 195
|
|
L7_1 = 196
|
|
L8_1 = 201
|
|
L9_1 = 202
|
|
L10_1 = 203
|
|
L11_1 = 205
|
|
L12_1 = 235
|
|
L13_1 = 236
|
|
L14_1 = 237
|
|
L15_1 = 238
|
|
L16_1 = 239
|
|
L17_1 = 242
|
|
L18_1 = 243
|
|
L19_1 = 244
|
|
L20_1 = 245
|
|
L21_1 = 269
|
|
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
|
|
L4_1[11] = L15_1
|
|
L4_1[12] = L16_1
|
|
L4_1[13] = L17_1
|
|
L4_1[14] = L18_1
|
|
L4_1[15] = L19_1
|
|
L4_1[16] = L20_1
|
|
L4_1[17] = L21_1
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 15
|
|
L6_1 = 21
|
|
L7_1 = 42
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L4_1[3] = L7_1
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = "ENTER_REGION_15"
|
|
L6_1 = "ENTER_REGION_21"
|
|
L7_1 = "ANY_MONSTER_DIE_38"
|
|
L8_1 = "TIMER_EVENT_39"
|
|
L9_1 = "ENTER_REGION_42"
|
|
L10_1 = "CLIENT_EXECUTE_43"
|
|
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, L4_2, L5_2
|
|
L2_2 = A1_2.param1
|
|
if L2_2 ~= 15 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_15 = 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 = 56
|
|
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.SetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "isoff"
|
|
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_ENTER_REGION_15 = 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 ~= 21 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_21 = 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 = 56
|
|
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_ENTER_REGION_21 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupMonsterCount
|
|
L3_2 = A0_2
|
|
L2_2 = L2_2(L3_2)
|
|
if L2_2 ~= 0 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_ANY_MONSTER_DIE_38 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
|
|
L2_2 = {}
|
|
L2_2.x = -101
|
|
L2_2.y = -6
|
|
L2_2.z = 124
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.ScenePlaySound
|
|
L4_2 = A0_2
|
|
L5_2 = {}
|
|
L5_2.play_pos = L2_2
|
|
L5_2.sound_name = "LevelHornSound001"
|
|
L5_2.play_type = 1
|
|
L5_2.is_broadcast = false
|
|
L3_2 = L3_2(L4_2, L5_2)
|
|
if 0 ~= L3_2 then
|
|
L3_2 = -1
|
|
return L3_2
|
|
end
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.ShowReminder
|
|
L4_2 = A0_2
|
|
L5_2 = 10010101
|
|
L3_2 = L3_2(L4_2, L5_2)
|
|
if 0 ~= L3_2 then
|
|
L3_2 = -1
|
|
return L3_2
|
|
end
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.CreateGroupTimerEvent
|
|
L4_2 = A0_2
|
|
L5_2 = 220009002
|
|
L6_2 = "start"
|
|
L7_2 = 4
|
|
L3_2 = L3_2(L4_2, L5_2, L6_2, L7_2)
|
|
if 0 ~= L3_2 then
|
|
L3_2 = -1
|
|
return L3_2
|
|
end
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.ChangeGroupGadget
|
|
L4_2 = A0_2
|
|
L5_2 = {}
|
|
L6_2 = L1_1.gadget_id_1
|
|
L5_2.config_id = L6_2
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.Default
|
|
L5_2.state = L6_2
|
|
L3_2 = L3_2(L4_2, L5_2)
|
|
if 0 ~= L3_2 then
|
|
L3_2 = -1
|
|
return L3_2
|
|
end
|
|
L3_2 = 0
|
|
return L3_2
|
|
end
|
|
action_EVENT_ANY_MONSTER_DIE_38 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.RefreshGroup
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.group_id = 220009007
|
|
L4_2.suite = 1
|
|
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 : refresh_group_to_suite"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_TIMER_EVENT_39 = 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 ~= 42 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 = ScriptLib
|
|
L2_2 = L2_2.GetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "isoff"
|
|
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_42 = 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 = 56
|
|
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_ENTER_REGION_42 = 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.GetGadgetConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L5_2 = A1_2.source_eid
|
|
L4_2.gadget_eid = L5_2
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetGadgetEnableInteract
|
|
L4_2 = A0_2
|
|
L5_2 = 220009002
|
|
L6_2 = L2_2
|
|
L7_2 = true
|
|
L3_2(L4_2, L5_2, L6_2, L7_2)
|
|
L3_2 = 0
|
|
return L3_2
|
|
end
|
|
action_EVENT_CLIENT_EXECUTE_43 = L2_1
|