mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
434 lines
7.8 KiB
Lua
434 lines
7.8 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 = 250004003
|
|
L1_1 = {}
|
|
L1_1.gadget_id_1 = 186
|
|
L1_1.gadget_id_2 = 26
|
|
L2_1 = {}
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 24
|
|
L3_1.gadget_id = 70900208
|
|
L4_1 = {}
|
|
L4_1.x = 494.436
|
|
L4_1.y = -8.642
|
|
L4_1.z = -121.889
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 0.0
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 1
|
|
L4_1 = {}
|
|
L4_1.config_id = 25
|
|
L4_1.gadget_id = 70900208
|
|
L5_1 = {}
|
|
L5_1.x = 497.298
|
|
L5_1.y = -8.604
|
|
L5_1.z = -121.882
|
|
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
|
|
L5_1 = {}
|
|
L5_1.config_id = 26
|
|
L5_1.gadget_id = 70900224
|
|
L6_1 = {}
|
|
L6_1.x = 516.385
|
|
L6_1.y = -7.664
|
|
L6_1.z = -126.984
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 359.072
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 1
|
|
L6_1 = {}
|
|
L6_1.config_id = 27
|
|
L6_1.gadget_id = 70350004
|
|
L7_1 = {}
|
|
L7_1.x = 518.503
|
|
L7_1.y = -11.167
|
|
L7_1.z = -131.043
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 90.0
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 1
|
|
L7_1 = {}
|
|
L7_1.config_id = 186
|
|
L7_1.gadget_id = 70900224
|
|
L8_1 = {}
|
|
L8_1.x = 499.299
|
|
L8_1.y = -8.831
|
|
L8_1.z = -122.692
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 0.0
|
|
L8_1.z = 0.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 1
|
|
L8_1 = {}
|
|
L8_1.config_id = 187
|
|
L8_1.gadget_id = 70900206
|
|
L9_1 = {}
|
|
L9_1.x = 499.275
|
|
L9_1.y = -11.181
|
|
L9_1.z = -122.713
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 0.0
|
|
L9_1.y = 268.484
|
|
L9_1.z = 0.0
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 1
|
|
L9_1 = {}
|
|
L9_1.config_id = 188
|
|
L9_1.gadget_id = 70900208
|
|
L10_1 = {}
|
|
L10_1.x = 501.462
|
|
L10_1.y = -8.616
|
|
L10_1.z = -121.849
|
|
L9_1.pos = L10_1
|
|
L10_1 = {}
|
|
L10_1.x = 0.0
|
|
L10_1.y = 0.0
|
|
L10_1.z = 0.0
|
|
L9_1.rot = L10_1
|
|
L9_1.level = 1
|
|
L10_1 = {}
|
|
L10_1.config_id = 190
|
|
L10_1.gadget_id = 70900208
|
|
L11_1 = {}
|
|
L11_1.x = 505.621
|
|
L11_1.y = -8.632
|
|
L11_1.z = -121.807
|
|
L10_1.pos = L11_1
|
|
L11_1 = {}
|
|
L11_1.x = 0.0
|
|
L11_1.y = 0.0
|
|
L11_1.z = 0.0
|
|
L10_1.rot = L11_1
|
|
L10_1.level = 1
|
|
L11_1 = {}
|
|
L11_1.config_id = 191
|
|
L11_1.gadget_id = 70900208
|
|
L12_1 = {}
|
|
L12_1.x = 510.17
|
|
L12_1.y = -8.594
|
|
L12_1.z = -121.8
|
|
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 = 192
|
|
L12_1.gadget_id = 70900208
|
|
L13_1 = {}
|
|
L13_1.x = 514.469
|
|
L13_1.y = -8.612
|
|
L13_1.z = -121.882
|
|
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 = 193
|
|
L13_1.gadget_id = 70900208
|
|
L14_1 = {}
|
|
L14_1.x = 516.679
|
|
L14_1.y = -8.656
|
|
L14_1.z = -124.512
|
|
L13_1.pos = L14_1
|
|
L14_1 = {}
|
|
L14_1.x = 0.0
|
|
L14_1.y = 0.0
|
|
L14_1.z = 0.0
|
|
L13_1.rot = L14_1
|
|
L13_1.level = 1
|
|
L14_1 = {}
|
|
L14_1.config_id = 194
|
|
L14_1.gadget_id = 70900208
|
|
L15_1 = {}
|
|
L15_1.x = 491.617
|
|
L15_1.y = -8.629
|
|
L15_1.z = -122.769
|
|
L14_1.pos = L15_1
|
|
L15_1 = {}
|
|
L15_1.x = 90.0
|
|
L15_1.y = 0.0
|
|
L15_1.z = 0.0
|
|
L14_1.rot = L15_1
|
|
L14_1.level = 1
|
|
L15_1 = {}
|
|
L15_1.config_id = 195
|
|
L15_1.gadget_id = 70220005
|
|
L16_1 = {}
|
|
L16_1.x = 496.144
|
|
L16_1.y = -8.598
|
|
L16_1.z = -122.137
|
|
L15_1.pos = L16_1
|
|
L16_1 = {}
|
|
L16_1.x = 0.0
|
|
L16_1.y = 345.204
|
|
L16_1.z = 0.0
|
|
L15_1.rot = L16_1
|
|
L15_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
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 53
|
|
L4_1 = RegionShape
|
|
L4_1 = L4_1.SPHERE
|
|
L3_1.shape = L4_1
|
|
L3_1.radius = 5
|
|
L4_1 = {}
|
|
L4_1.x = 521.279
|
|
L4_1.y = -11.0
|
|
L4_1.z = -130.221
|
|
L3_1.pos = L4_1
|
|
L2_1[1] = L3_1
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1000002
|
|
L3_1.name = "CLIENT_EXECUTE_2"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_CLIENT_EXECUTE
|
|
L3_1.event = L4_1
|
|
L3_1.source = "ElectricSwitch_Hit"
|
|
L3_1.condition = "condition_EVENT_CLIENT_EXECUTE_2"
|
|
L3_1.action = "action_EVENT_CLIENT_EXECUTE_2"
|
|
L3_1.trigger_count = 0
|
|
L4_1 = {}
|
|
L4_1.config_id = 1000039
|
|
L4_1.name = "CLIENT_EXECUTE_39"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_CLIENT_EXECUTE
|
|
L4_1.event = L5_1
|
|
L4_1.source = "ElectricSwitch_Hit"
|
|
L4_1.condition = "condition_EVENT_CLIENT_EXECUTE_39"
|
|
L4_1.action = "action_EVENT_CLIENT_EXECUTE_39"
|
|
L4_1.trigger_count = 0
|
|
L5_1 = {}
|
|
L5_1.config_id = 1000053
|
|
L5_1.name = "ENTER_REGION_53"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_ENTER_REGION
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = "condition_EVENT_ENTER_REGION_53"
|
|
L5_1.action = "action_EVENT_ENTER_REGION_53"
|
|
L5_1.forbid_guest = false
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
triggers = L2_1
|
|
L2_1 = {}
|
|
variables = L2_1
|
|
L2_1 = {}
|
|
L2_1.suite = 1
|
|
L2_1.end_suite = 0
|
|
L2_1.rand_suite = true
|
|
init_config = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 24
|
|
L6_1 = 25
|
|
L7_1 = 26
|
|
L8_1 = 27
|
|
L9_1 = 186
|
|
L10_1 = 187
|
|
L11_1 = 188
|
|
L12_1 = 190
|
|
L13_1 = 191
|
|
L14_1 = 192
|
|
L15_1 = 193
|
|
L16_1 = 194
|
|
L17_1 = 195
|
|
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
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 53
|
|
L4_1[1] = L5_1
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = "CLIENT_EXECUTE_2"
|
|
L6_1 = "CLIENT_EXECUTE_39"
|
|
L7_1 = "ENTER_REGION_53"
|
|
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
|
|
L2_1[1] = L3_1
|
|
suites = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2
|
|
L2_2 = L1_1.gadget_id_1
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.GetGadgetConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = {}
|
|
L6_2 = A1_2.source_eid
|
|
L5_2.gadget_eid = L6_2
|
|
L3_2 = L3_2(L4_2, L5_2)
|
|
if L2_2 == L3_2 then
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
end
|
|
condition_EVENT_CLIENT_EXECUTE_2 = 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 = 187
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.GearAction1
|
|
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_CLIENT_EXECUTE_2 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2
|
|
L2_2 = L1_1.gadget_id_2
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.GetGadgetConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = {}
|
|
L6_2 = A1_2.source_eid
|
|
L5_2.gadget_eid = L6_2
|
|
L3_2 = L3_2(L4_2, L5_2)
|
|
if L2_2 == L3_2 then
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
end
|
|
condition_EVENT_CLIENT_EXECUTE_39 = 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 = 27
|
|
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_CLIENT_EXECUTE_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 ~= 53 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_53 = 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 = 187
|
|
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 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ENTER_REGION_53 = L2_1
|