mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
112 lines
2.4 KiB
Lua
112 lines
2.4 KiB
Lua
local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1
|
|
L0_1 = require
|
|
L1_1 = "Actor/ActorCommon"
|
|
L0_1(L1_1)
|
|
L0_1 = require
|
|
L1_1 = "Actor/Gadget/GadgetActorProxy"
|
|
L0_1 = L0_1(L1_1)
|
|
L1_1 = class
|
|
L2_1 = "Q2011PlayUSMTrigger"
|
|
L3_1 = L0_1
|
|
L1_1 = L1_1(L2_1, L3_1)
|
|
L1_1.defaultAlias = "Q2011PlayUSMTrigger"
|
|
L2_1 = require
|
|
L3_1 = "Quest/Client/Q2011ClientConfig"
|
|
L2_1 = L2_1(L3_1)
|
|
L3_1 = L2_1.SubIDs
|
|
L4_1 = L2_1.Npcs
|
|
function L5_1(A0_2)
|
|
local L1_2, L2_2
|
|
L1_2 = print
|
|
L2_2 = "OnPostDataPrepare"
|
|
L1_2(L2_2)
|
|
end
|
|
L1_1.OnPostDataPrepare = L5_1
|
|
function L5_1(A0_2)
|
|
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
|
|
L1_2 = print
|
|
L2_2 = "OnPostComponentPrepare"
|
|
L1_2(L2_2)
|
|
L2_2 = A0_2
|
|
L1_2 = A0_2.AddComponentTrigger
|
|
L3_2 = 10
|
|
L4_2 = DistType
|
|
L4_2 = L4_2.EULER
|
|
L5_2 = {}
|
|
L5_2.x = 0
|
|
L5_2.y = 0.8
|
|
L5_2.z = 0
|
|
L6_2 = A0_2.TriggerIn
|
|
L7_2 = A0_2.TriggerOut
|
|
L1_2(L2_2, L3_2, L4_2, L5_2, L6_2, L7_2)
|
|
end
|
|
L1_1.OnPostComponentPrepare = L5_1
|
|
function L5_1(A0_2)
|
|
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
|
|
L1_2 = print
|
|
L2_2 = "TriggerIn"
|
|
L1_2(L2_2)
|
|
L1_2 = actorMgr
|
|
L2_2 = L1_2
|
|
L1_2 = L1_2.GetActor
|
|
L3_2 = L2_1.ActorAlias
|
|
L1_2 = L1_2(L2_2, L3_2)
|
|
L3_2 = L1_2
|
|
L2_2 = L1_2.ShowBlackScreen
|
|
L4_2 = 0
|
|
L5_2 = 1
|
|
L6_2 = 0
|
|
function L7_2()
|
|
local L0_3, L1_3, L2_3, L3_3, L4_3, L5_3, L6_3, L7_3
|
|
L0_3 = actorMgr
|
|
L1_3 = L0_3
|
|
L0_3 = L0_3.GetActor
|
|
L2_3 = L2_1.ActorAlias
|
|
L0_3 = L0_3(L1_3, L2_3)
|
|
L2_3 = L0_3
|
|
L1_3 = L0_3.PlayCutsceneIndex
|
|
L3_3 = 201106
|
|
function L4_3(A0_4)
|
|
local L1_4, L2_4, L3_4, L4_4, L5_4, L6_4
|
|
L1_4 = print
|
|
L2_4 = "On Finish USM"
|
|
L1_4(L2_4)
|
|
L1_4 = actorMgr
|
|
L2_4 = L1_4
|
|
L1_4 = L1_4.GetActor
|
|
L3_4 = L2_1.ActorAlias
|
|
L1_4 = L1_4(L2_4, L3_4)
|
|
if L1_4 ~= nil then
|
|
L3_4 = L1_4
|
|
L2_4 = L1_4.FinishQuestID
|
|
L4_4 = false
|
|
L5_4 = 201104
|
|
L2_4(L3_4, L4_4, L5_4)
|
|
L3_4 = L1_4
|
|
L2_4 = L1_4.ShowBlackScreen
|
|
L4_4 = 0
|
|
L5_4 = 1.5
|
|
L6_4 = 0
|
|
L2_4(L3_4, L4_4, L5_4, L6_4)
|
|
end
|
|
end
|
|
L5_3 = nil
|
|
L6_3 = nil
|
|
L7_3 = true
|
|
L1_3(L2_3, L3_3, L4_3, L5_3, L6_3, L7_3)
|
|
end
|
|
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
|
|
L3_2 = A0_2
|
|
L2_2 = A0_2.DestroySelf
|
|
L2_2(L3_2)
|
|
end
|
|
L1_1.TriggerIn = L5_1
|
|
function L5_1(A0_2)
|
|
local L1_2, L2_2
|
|
L1_2 = print
|
|
L2_2 = "TriggerOut"
|
|
L1_2(L2_2)
|
|
end
|
|
L1_1.TriggerOut = L5_1
|
|
return L1_1
|