mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
190 lines
3.7 KiB
Lua
190 lines
3.7 KiB
Lua
local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1
|
|
L0_1 = require
|
|
L1_1 = "Actor/ActorCommon"
|
|
L0_1(L1_1)
|
|
L0_1 = require
|
|
L1_1 = "Actor/Quest/QuestActorProxy"
|
|
L0_1 = L0_1(L1_1)
|
|
L1_1 = class
|
|
L2_1 = "Quest72243"
|
|
L3_1 = L0_1
|
|
L1_1 = L1_1(L2_1, L3_1)
|
|
L1_1.defaultAlias = "Quest72243"
|
|
L2_1 = nil
|
|
L3_1 = nil
|
|
L4_1 = nil
|
|
L5_1 = nil
|
|
function L6_1(A0_2)
|
|
local L1_2
|
|
L1_2 = A0_2.clientData
|
|
L2_1 = L1_2
|
|
L1_2 = L2_1.MainID
|
|
L3_1 = L1_2
|
|
L1_2 = L2_1.ActorAlias
|
|
L4_1 = L1_2
|
|
L1_2 = L2_1.SubIDs
|
|
L5_1 = L1_2
|
|
end
|
|
L1_1.OnDataLoaded = L6_1
|
|
function L6_1(A0_2)
|
|
local L1_2, L2_2
|
|
L1_2 = {}
|
|
L2_2 = A0_2.OnSubStart7224301
|
|
L1_2["7224301"] = L2_2
|
|
L2_2 = A0_2.OnSubStart7224302
|
|
L1_2["7224302"] = L2_2
|
|
A0_2.subStartHandlers = L1_2
|
|
end
|
|
L1_1.OnSubStartHandlerBuild = L6_1
|
|
function L6_1(A0_2)
|
|
local L1_2, L2_2
|
|
L1_2 = {}
|
|
L2_2 = A0_2.OnSubFinish7224301
|
|
L1_2["7224301"] = L2_2
|
|
L2_2 = A0_2.OnSubFinish7224302
|
|
L1_2["7224302"] = L2_2
|
|
A0_2.subFinishHandlers = L1_2
|
|
end
|
|
L1_1.OnSubFinishHandlerBuild = L6_1
|
|
function L6_1(A0_2)
|
|
local L1_2
|
|
L1_2 = {}
|
|
A0_2.subFailedHandlers = L1_2
|
|
end
|
|
L1_1.OnSubFailedHandlerBuild = L6_1
|
|
function L6_1(A0_2)
|
|
local L1_2, L2_2
|
|
L1_2 = print
|
|
L2_2 = "Start"
|
|
L1_2(L2_2)
|
|
end
|
|
L1_1.Start = L6_1
|
|
function L6_1(A0_2)
|
|
local L1_2, L2_2
|
|
L1_2 = print
|
|
L2_2 = "OnDestroy"
|
|
L1_2(L2_2)
|
|
end
|
|
L1_1.OnDestroy = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = print
|
|
L3_2 = "OnMainFinished"
|
|
L2_2(L3_2)
|
|
end
|
|
L1_1.OnMainFinished = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = print
|
|
L3_2 = "OnMainFailed"
|
|
L2_2(L3_2)
|
|
end
|
|
L1_1.OnMainFailed = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = print
|
|
L3_2 = "OnMainCanceled"
|
|
L2_2(L3_2)
|
|
end
|
|
L1_1.OnMainCanceled = L6_1
|
|
function L6_1(A0_2, A1_2, A2_2, A3_2)
|
|
local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2
|
|
L4_2 = actorUtils
|
|
L4_2 = L4_2.GetAvatarPos
|
|
L4_2 = L4_2()
|
|
L5_2 = actorUtils
|
|
L5_2 = L5_2.GetAvatarForward
|
|
L5_2 = L5_2()
|
|
L6_2 = L4_2.x
|
|
L7_2 = L5_2.x
|
|
L7_2 = L7_2 * A3_2
|
|
L6_2 = L6_2 + L7_2
|
|
L4_2.x = L6_2
|
|
L6_2 = L4_2.z
|
|
L7_2 = L5_2.z
|
|
L7_2 = L7_2 * A3_2
|
|
L6_2 = L6_2 + L7_2
|
|
L4_2.z = L6_2
|
|
L6_2 = L5_2.x
|
|
L6_2 = L6_2 * -1
|
|
L5_2.x = L6_2
|
|
L6_2 = L5_2.z
|
|
L6_2 = L6_2 * -1
|
|
L5_2.z = L6_2
|
|
L7_2 = A0_2
|
|
L6_2 = A0_2.CreateQuestNpcByIdWithPos
|
|
L8_2 = A1_2
|
|
L9_2 = A2_2
|
|
L10_2 = 0
|
|
L11_2 = L4_2
|
|
L12_2 = L5_2
|
|
L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2)
|
|
end
|
|
L1_1.CreateQuestNpcFaceToPlayer = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = print
|
|
L3_2 = "InvokeOnInteraction"
|
|
L2_2(L3_2)
|
|
L2_2 = print
|
|
L3_2 = "InvokeOnInteraction"
|
|
L2_2(L3_2)
|
|
if A1_2 == 1 then
|
|
L2_2 = actorMgr
|
|
L3_2 = L2_2
|
|
L2_2 = L2_2.GetActor
|
|
L4_2 = L2_1.ActorAlias
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
if L2_2 ~= nil then
|
|
L4_2 = A0_2
|
|
L3_2 = A0_2.ActionSafeCall
|
|
function L5_2()
|
|
local L0_3, L1_3, L2_3, L3_3
|
|
L0_3 = L2_2
|
|
L1_3 = L0_3
|
|
L0_3 = L0_3.FinishQuestID
|
|
L2_3 = false
|
|
L3_3 = 7224301
|
|
L0_3(L1_3, L2_3, L3_3)
|
|
end
|
|
L3_2(L4_2, L5_2)
|
|
end
|
|
elseif A1_2 == 2 then
|
|
L3_2 = A0_2
|
|
L2_2 = A0_2.SetQuestVarByMainId
|
|
L4_2 = 1
|
|
L5_2 = 1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
end
|
|
end
|
|
L1_1.InvokeOnInteraction = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = print
|
|
L3_2 = "OnSubStart7224301"
|
|
L2_2(L3_2)
|
|
end
|
|
L1_1.OnSubStart7224301 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = print
|
|
L3_2 = "OnSubFinish7224301"
|
|
L2_2(L3_2)
|
|
end
|
|
L1_1.OnSubFinish7224301 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = print
|
|
L3_2 = "OnSubStart7224302"
|
|
L2_2(L3_2)
|
|
end
|
|
L1_1.OnSubStart7224302 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = print
|
|
L3_2 = "OnSubFinish7224302"
|
|
L2_2(L3_2)
|
|
end
|
|
L1_1.OnSubFinish7224302 = L6_1
|
|
return L1_1
|