mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
517 lines
10 KiB
Lua
517 lines
10 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 = 177005149
|
|
L1_1 = {}
|
|
L1_1.pointarray_1 = 700500026
|
|
L1_1.gadget_1 = 149002
|
|
L1_1.gadget_controller_1 = 149006
|
|
L1_1.gadget_pointarray_1 = 1
|
|
L1_1.group_id = 177005149
|
|
L2_1 = {}
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 149001
|
|
L3_1.gadget_id = 70330134
|
|
L4_1 = {}
|
|
L4_1.x = 534.709
|
|
L4_1.y = 191.621
|
|
L4_1.z = 532.668
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 359.854
|
|
L4_1.y = 345.163
|
|
L4_1.z = 3.375
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 36
|
|
L3_1.area_id = 210
|
|
L4_1 = {}
|
|
L4_1.config_id = 149002
|
|
L4_1.gadget_id = 70330135
|
|
L5_1 = {}
|
|
L5_1.x = 533.06
|
|
L5_1.y = 191.173
|
|
L5_1.z = 538.767
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 359.854
|
|
L5_1.y = 345.163
|
|
L5_1.z = 0.0
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 36
|
|
L5_1 = GadgetState
|
|
L5_1 = L5_1.GearStart
|
|
L4_1.state = L5_1
|
|
L4_1.is_use_point_array = true
|
|
L4_1.area_id = 210
|
|
L5_1 = {}
|
|
L5_1.config_id = 149003
|
|
L5_1.gadget_id = 70330135
|
|
L6_1 = {}
|
|
L6_1.x = 535.79
|
|
L6_1.y = 191.239
|
|
L6_1.z = 543.228
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 359.854
|
|
L6_1.y = 75.163
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 36
|
|
L6_1 = GadgetState
|
|
L6_1 = L6_1.GearStart
|
|
L5_1.state = L6_1
|
|
L5_1.is_use_point_array = true
|
|
L5_1.area_id = 210
|
|
L6_1 = {}
|
|
L6_1.config_id = 149004
|
|
L6_1.gadget_id = 70330141
|
|
L7_1 = {}
|
|
L7_1.x = 528.395
|
|
L7_1.y = 191.529
|
|
L7_1.z = 547.524
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 0.0
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 36
|
|
L6_1.persistent = true
|
|
L6_1.area_id = 210
|
|
L7_1 = {}
|
|
L7_1.config_id = 149005
|
|
L7_1.gadget_id = 70330157
|
|
L8_1 = {}
|
|
L8_1.x = 534.711
|
|
L8_1.y = 189.823
|
|
L8_1.z = 532.669
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 359.854
|
|
L8_1.y = 345.163
|
|
L8_1.z = 3.375
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 36
|
|
L7_1.area_id = 210
|
|
L8_1 = {}
|
|
L8_1.config_id = 149006
|
|
L8_1.gadget_id = 70330158
|
|
L9_1 = {}
|
|
L9_1.x = 533.06
|
|
L9_1.y = 190.101
|
|
L9_1.z = 538.767
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 359.854
|
|
L9_1.y = 345.163
|
|
L9_1.z = 0.0
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 36
|
|
L9_1 = GadgetState
|
|
L9_1 = L9_1.GearStart
|
|
L8_1.state = L9_1
|
|
L8_1.area_id = 210
|
|
L9_1 = {}
|
|
L9_1.config_id = 149007
|
|
L9_1.gadget_id = 70211161
|
|
L10_1 = {}
|
|
L10_1.x = 531.959
|
|
L10_1.y = 191.105
|
|
L10_1.z = 548.352
|
|
L9_1.pos = L10_1
|
|
L10_1 = {}
|
|
L10_1.x = 4.152
|
|
L10_1.y = 359.125
|
|
L10_1.z = 3.376
|
|
L9_1.rot = L10_1
|
|
L9_1.level = 16
|
|
L9_1.drop_tag = "\230\184\138\228\184\139\229\174\171\230\180\187\229\138\168\228\184\173\231\186\167\231\168\187\229\166\187"
|
|
L9_1.isOneoff = true
|
|
L9_1.persistent = true
|
|
L9_1.area_id = 210
|
|
L10_1 = {}
|
|
L10_1.config_id = 149008
|
|
L10_1.gadget_id = 70330158
|
|
L11_1 = {}
|
|
L11_1.x = 535.79
|
|
L11_1.y = 190.183
|
|
L11_1.z = 543.228
|
|
L10_1.pos = L11_1
|
|
L11_1 = {}
|
|
L11_1.x = 359.854
|
|
L11_1.y = 75.163
|
|
L11_1.z = 0.0
|
|
L10_1.rot = L11_1
|
|
L10_1.level = 36
|
|
L10_1.area_id = 210
|
|
L11_1 = {}
|
|
L11_1.config_id = 149014
|
|
L11_1.gadget_id = 70330157
|
|
L12_1 = {}
|
|
L12_1.x = 528.395
|
|
L12_1.y = 190.435
|
|
L12_1.z = 547.524
|
|
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 = 36
|
|
L11_1.area_id = 210
|
|
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
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 149009
|
|
L4_1 = RegionShape
|
|
L4_1 = L4_1.SPHERE
|
|
L3_1.shape = L4_1
|
|
L3_1.radius = 10
|
|
L4_1 = {}
|
|
L4_1.x = 534.785
|
|
L4_1.y = 190.164
|
|
L4_1.z = 540.545
|
|
L3_1.pos = L4_1
|
|
L3_1.area_id = 210
|
|
L2_1[1] = L3_1
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1149009
|
|
L3_1.name = "ENTER_REGION_149009"
|
|
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_149009"
|
|
L3_1.action = "action_EVENT_ENTER_REGION_149009"
|
|
L4_1 = {}
|
|
L4_1.config_id = 1149016
|
|
L4_1.name = "GADGET_CREATE_149016"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_GADGET_CREATE
|
|
L4_1.event = L5_1
|
|
L4_1.source = ""
|
|
L4_1.condition = "condition_EVENT_GADGET_CREATE_149016"
|
|
L4_1.action = "action_EVENT_GADGET_CREATE_149016"
|
|
L4_1.trigger_count = 0
|
|
L5_1 = {}
|
|
L5_1.config_id = 1149021
|
|
L5_1.name = "SELECT_OPTION_149021"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_SELECT_OPTION
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = "condition_EVENT_SELECT_OPTION_149021"
|
|
L5_1.action = "action_EVENT_SELECT_OPTION_149021"
|
|
L5_1.trigger_count = 0
|
|
L6_1 = {}
|
|
L6_1.config_id = 1149022
|
|
L6_1.name = "TIMER_EVENT_149022"
|
|
L7_1 = EventType
|
|
L7_1 = L7_1.EVENT_TIMER_EVENT
|
|
L6_1.event = L7_1
|
|
L6_1.source = "route1"
|
|
L6_1.condition = ""
|
|
L6_1.action = "action_EVENT_TIMER_EVENT_149022"
|
|
L6_1.trigger_count = 0
|
|
L7_1 = {}
|
|
L7_1.config_id = 1149031
|
|
L7_1.name = "GADGET_STATE_CHANGE_149031"
|
|
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_149031"
|
|
L7_1.action = "action_EVENT_GADGET_STATE_CHANGE_149031"
|
|
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
|
|
triggers = L2_1
|
|
L2_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 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 149001
|
|
L6_1 = 149002
|
|
L7_1 = 149003
|
|
L8_1 = 149004
|
|
L9_1 = 149005
|
|
L10_1 = 149006
|
|
L11_1 = 149008
|
|
L12_1 = 149014
|
|
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.gadgets = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 149009
|
|
L4_1[1] = L5_1
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = "ENTER_REGION_149009"
|
|
L6_1 = "GADGET_CREATE_149016"
|
|
L7_1 = "SELECT_OPTION_149021"
|
|
L8_1 = "TIMER_EVENT_149022"
|
|
L9_1 = "GADGET_STATE_CHANGE_149031"
|
|
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
|
|
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 ~= 149009 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_149009 = 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.AssignPlayerShowTemplateReminder
|
|
L3_2 = A0_2
|
|
L4_2 = 161
|
|
L5_2 = {}
|
|
L6_2 = {}
|
|
L5_2.param_uid_vec = L6_2
|
|
L6_2 = {}
|
|
L5_2.param_vec = L6_2
|
|
L6_2 = {}
|
|
L7_2 = A0_2.uid
|
|
L6_2[1] = L7_2
|
|
L5_2.uid_vec = L6_2
|
|
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_ENTER_REGION_149009 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 149006 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_CREATE_149016 = 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 = 31
|
|
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_CREATE_149016 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 149006 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param2
|
|
if 31 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_SELECT_OPTION_149021 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.DelWorktopOptionByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = 177005149
|
|
L5_2 = 149006
|
|
L6_2 = 31
|
|
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 = {}
|
|
L2_2.route_type = 0
|
|
L2_2.turn_mode = false
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetPlatformPointArray
|
|
L4_2 = A0_2
|
|
L5_2 = 149002
|
|
L6_2 = 700500026
|
|
L7_2 = {}
|
|
L8_2 = 1
|
|
L7_2[1] = L8_2
|
|
L8_2 = L2_2
|
|
L3_2 = L3_2(L4_2, L5_2, L6_2, L7_2, L8_2)
|
|
if 0 ~= L3_2 then
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.PrintContextLog
|
|
L4_2 = A0_2
|
|
L5_2 = "@@ LUA_WARNING : set_platform_pointArray"
|
|
L3_2(L4_2, L5_2)
|
|
L3_2 = -1
|
|
return L3_2
|
|
end
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.CreateGroupTimerEvent
|
|
L4_2 = A0_2
|
|
L5_2 = 177005149
|
|
L6_2 = "route1"
|
|
L7_2 = 1
|
|
L3_2 = L3_2(L4_2, L5_2, L6_2, L7_2)
|
|
if 0 ~= L3_2 then
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.PrintContextLog
|
|
L4_2 = A0_2
|
|
L5_2 = "@@ LUA_WARNING : create_timerevent_by_group"
|
|
L3_2(L4_2, L5_2)
|
|
L3_2 = -1
|
|
return L3_2
|
|
end
|
|
L3_2 = 0
|
|
return L3_2
|
|
end
|
|
action_EVENT_SELECT_OPTION_149021 = 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 = 177005149
|
|
L5_2 = 149006
|
|
L6_2 = {}
|
|
L7_2 = 31
|
|
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_TIMER_EVENT_149022 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = A1_2.param2
|
|
if 149004 == 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_149031 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CreateGadget
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.config_id = 149007
|
|
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_GADGET_STATE_CHANGE_149031 = L2_1
|
|
L2_1 = require
|
|
L3_1 = "V2_5/Watcher_Puzzle"
|
|
L2_1(L3_1)
|