mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
91 lines
1.9 KiB
Lua
91 lines
1.9 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, L18_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 = "Q10501Trigger"
|
|
L3_1 = L0_1
|
|
L1_1 = L1_1(L2_1, L3_1)
|
|
L1_1.defaultAlias = "Q10501Trigger"
|
|
L2_1 = require
|
|
L3_1 = "Quest/Client/Q10501ClientConfig"
|
|
L2_1 = L2_1(L3_1)
|
|
L3_1 = L2_1.SubIDs
|
|
L4_1 = L2_1.Npcs
|
|
L5_1 = L4_1.Npc10095Data2
|
|
L6_1 = L4_1.Npc10095Data
|
|
L7_1 = L4_1.Npc220601Data
|
|
L8_1 = L4_1.Npc10096Data
|
|
L9_1 = L4_1.Npc10097Data
|
|
L10_1 = L4_1.Npc10098Data
|
|
L11_1 = L4_1.Npc10113Data
|
|
L12_1 = L4_1.PaimonData
|
|
L13_1 = L2_1.Gadgets
|
|
L14_1 = L2_1.Points
|
|
L15_1 = L2_1.Datas
|
|
L16_1 = L15_1.NarratorWithId
|
|
L17_1 = L15_1.Q10501Trigger_
|
|
function L18_1(A0_2)
|
|
local L1_2, L2_2
|
|
L1_2 = print
|
|
L2_2 = "OnPostDataPrepare"
|
|
L1_2(L2_2)
|
|
end
|
|
L1_1.OnPostDataPrepare = L18_1
|
|
function L18_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 = 45
|
|
L4_2 = DistType
|
|
L4_2 = L4_2.EULER
|
|
L5_2 = {}
|
|
L5_2.x = 0
|
|
L5_2.y = 0
|
|
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 = L18_1
|
|
function L18_1(A0_2)
|
|
local L1_2, L2_2
|
|
L1_2 = print
|
|
L2_2 = "TriggerIn"
|
|
L1_2(L2_2)
|
|
end
|
|
L1_1.TriggerIn = L18_1
|
|
function L18_1(A0_2)
|
|
local L1_2, L2_2, L3_2, L4_2, L5_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.GetSubQuestState
|
|
L4_2 = 1050108
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
if L2_2 == 2 then
|
|
L3_2 = L1_2
|
|
L2_2 = L1_2.FinishQuestID
|
|
L4_2 = true
|
|
L5_2 = 1050108
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
end
|
|
L2_2 = print
|
|
L3_2 = "let 1050108 fail"
|
|
L2_2(L3_2)
|
|
L3_2 = A0_2
|
|
L2_2 = A0_2.DestroySelf
|
|
L2_2(L3_2)
|
|
end
|
|
L1_1.TriggerOut = L18_1
|
|
return L1_1
|