mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
430 lines
8.0 KiB
Lua
430 lines
8.0 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
|
|
L0_1 = {}
|
|
L0_1.group_id = 250056018
|
|
L1_1 = 18007
|
|
L2_1 = 18002
|
|
L3_1 = 17010
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L5_1.config_id = 18005
|
|
L5_1.monster_id = 25090101
|
|
L6_1 = {}
|
|
L6_1.x = 215.815
|
|
L6_1.y = -0.149
|
|
L6_1.z = 0.432
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 270.0
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 15
|
|
L5_1.disableWander = true
|
|
L6_1 = {}
|
|
L7_1 = 1011
|
|
L8_1 = 1008
|
|
L6_1[1] = L7_1
|
|
L6_1[2] = L8_1
|
|
L5_1.affix = L6_1
|
|
L5_1.pose_id = 1
|
|
L4_1[1] = L5_1
|
|
monsters = L4_1
|
|
L4_1 = {}
|
|
npcs = L4_1
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L5_1.config_id = 18001
|
|
L5_1.gadget_id = 70900201
|
|
L6_1 = {}
|
|
L6_1.x = 221.442
|
|
L6_1.y = 0.523
|
|
L6_1.z = -0.167
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 0.0
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 1
|
|
L6_1 = {}
|
|
L6_1.config_id = 18002
|
|
L6_1.gadget_id = 70310108
|
|
L7_1 = {}
|
|
L7_1.x = 224.109
|
|
L7_1.y = -0.061
|
|
L7_1.z = -0.555
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 270.0
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 1
|
|
L7_1 = {}
|
|
L7_1.config_id = 18007
|
|
L7_1.gadget_id = 70360001
|
|
L8_1 = {}
|
|
L8_1.x = 210.062
|
|
L8_1.y = -0.107
|
|
L8_1.z = 0.11
|
|
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 = 18008
|
|
L8_1.gadget_id = 70290137
|
|
L9_1 = {}
|
|
L9_1.x = 209.992
|
|
L9_1.y = 0.0
|
|
L9_1.z = -14.809
|
|
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 = GadgetState
|
|
L9_1 = L9_1.GearStart
|
|
L8_1.state = L9_1
|
|
L9_1 = {}
|
|
L9_1.config_id = 18009
|
|
L9_1.gadget_id = 70290137
|
|
L10_1 = {}
|
|
L10_1.x = 210.005
|
|
L10_1.y = 0.114
|
|
L10_1.z = 15.063
|
|
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 = GadgetState
|
|
L10_1 = L10_1.GearStart
|
|
L9_1.state = L10_1
|
|
L10_1 = {}
|
|
L10_1.config_id = 18010
|
|
L10_1.gadget_id = 70290137
|
|
L11_1 = {}
|
|
L11_1.x = 195.139
|
|
L11_1.y = 0.206
|
|
L11_1.z = -0.069
|
|
L10_1.pos = L11_1
|
|
L11_1 = {}
|
|
L11_1.x = 0.0
|
|
L11_1.y = 90.0
|
|
L11_1.z = 0.0
|
|
L10_1.rot = L11_1
|
|
L10_1.level = 1
|
|
L11_1 = GadgetState
|
|
L11_1 = L11_1.GearStart
|
|
L10_1.state = L11_1
|
|
L11_1 = {}
|
|
L11_1.config_id = 18011
|
|
L11_1.gadget_id = 70290137
|
|
L12_1 = {}
|
|
L12_1.x = 225.09
|
|
L12_1.y = 0.114
|
|
L12_1.z = -0.061
|
|
L11_1.pos = L12_1
|
|
L12_1 = {}
|
|
L12_1.x = 0.0
|
|
L12_1.y = 90.0
|
|
L12_1.z = 0.0
|
|
L11_1.rot = L12_1
|
|
L11_1.level = 1
|
|
L12_1 = GadgetState
|
|
L12_1 = L12_1.GearStart
|
|
L11_1.state = L12_1
|
|
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
|
|
gadgets = L4_1
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L5_1.config_id = 18014
|
|
L6_1 = RegionShape
|
|
L6_1 = L6_1.CUBIC
|
|
L5_1.shape = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 20.0
|
|
L6_1.y = 10.0
|
|
L6_1.z = 20.0
|
|
L5_1.size = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 210.563
|
|
L6_1.y = -0.16
|
|
L6_1.z = 0.165
|
|
L5_1.pos = L6_1
|
|
L4_1[1] = L5_1
|
|
regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L5_1.config_id = 1018012
|
|
L5_1.name = "GADGET_CREATE_18012"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_GADGET_CREATE
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = "condition_EVENT_GADGET_CREATE_18012"
|
|
L5_1.action = "action_EVENT_GADGET_CREATE_18012"
|
|
L6_1 = {}
|
|
L6_1.config_id = 1018013
|
|
L6_1.name = "SELECT_OPTION_18013"
|
|
L7_1 = EventType
|
|
L7_1 = L7_1.EVENT_SELECT_OPTION
|
|
L6_1.event = L7_1
|
|
L6_1.source = ""
|
|
L6_1.condition = "condition_EVENT_SELECT_OPTION_18013"
|
|
L6_1.action = "action_EVENT_SELECT_OPTION_18013"
|
|
L7_1 = {}
|
|
L7_1.config_id = 1018014
|
|
L7_1.name = "ENTER_REGION_18014"
|
|
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_18014"
|
|
L7_1.action = "action_EVENT_ENTER_REGION_18014"
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L4_1[3] = L7_1
|
|
triggers = L4_1
|
|
L4_1 = {}
|
|
variables = L4_1
|
|
L4_1 = {}
|
|
L4_1.suite = 1
|
|
L4_1.end_suite = 0
|
|
L4_1.rand_suite = false
|
|
init_config = L4_1
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L6_1 = {}
|
|
L5_1.monsters = L6_1
|
|
L6_1 = {}
|
|
L7_1 = 18001
|
|
L8_1 = 18007
|
|
L9_1 = 18008
|
|
L10_1 = 18009
|
|
L11_1 = 18010
|
|
L12_1 = 18011
|
|
L6_1[1] = L7_1
|
|
L6_1[2] = L8_1
|
|
L6_1[3] = L9_1
|
|
L6_1[4] = L10_1
|
|
L6_1[5] = L11_1
|
|
L6_1[6] = L12_1
|
|
L5_1.gadgets = L6_1
|
|
L6_1 = {}
|
|
L7_1 = 18014
|
|
L6_1[1] = L7_1
|
|
L5_1.regions = L6_1
|
|
L6_1 = {}
|
|
L7_1 = "GADGET_CREATE_18012"
|
|
L8_1 = "SELECT_OPTION_18013"
|
|
L9_1 = "ENTER_REGION_18014"
|
|
L6_1[1] = L7_1
|
|
L6_1[2] = L8_1
|
|
L6_1[3] = L9_1
|
|
L5_1.triggers = L6_1
|
|
L5_1.rand_weight = 100
|
|
L6_1 = {}
|
|
L7_1 = {}
|
|
L8_1 = 18005
|
|
L7_1[1] = L8_1
|
|
L6_1.monsters = L7_1
|
|
L7_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
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
suites = L4_1
|
|
function L4_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 18007 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_CREATE_18012 = L4_1
|
|
function L4_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 = 250056018
|
|
L5_2 = 18007
|
|
L6_2 = {}
|
|
L7_2 = 12
|
|
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_18012 = L4_1
|
|
function L4_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 18007 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param2
|
|
if 12 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_SELECT_OPTION_18013 = L4_1
|
|
function L4_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 = 250056018
|
|
L5_2 = 18007
|
|
L6_2 = 12
|
|
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.AddExtraGroupSuite
|
|
L3_2 = A0_2
|
|
L4_2 = 250056018
|
|
L5_2 = 2
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_SELECT_OPTION_18013 = L4_1
|
|
function L4_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = A1_2.param1
|
|
if L2_2 ~= 18014 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_18014 = L4_1
|
|
function L4_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 = 18008
|
|
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.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 18009
|
|
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.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 18010
|
|
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.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 18011
|
|
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_18014 = L4_1
|