GSServer-CBT/soggy_resources/lua/Actor/Quest/Q413/Pastor.lua
Akbar Yahya e0d4d8040c melon
2022-11-21 16:30:31 +08:00

55 lines
1.1 KiB
Lua

require('Actor/ActorCommon')
local quest413 = require('Actor/Quest/SQ413')
local npcActorProxy = require('Actor/Npc/NpcActorProxy')
local Pastor = class("Pastor", npcActorProxy)
Pastor.defaultAlias = "Pastor"
-- local config begin
local q413Cfg = require('Actor/Quest/Q413/Q413Config')
local pastorData = q413Cfg.PastorData
function Pastor:PreGetAlias()
local Pastor = pastorData.Pastor
return Pastor
end
-- local config end
-- local param begin
-- local param end
-- local method
function Pastor:Show()
self:ClearFollowTask()
self:WalkToTask(pastorData.showPos,
function(self, task)
local quest = actorMgr:GetActor(q413Cfg.ActorAlias)
if quest ~= nil then
quest:FinishQuest(false, nil)
end
self:TurnTo(M.Euler2DirXZ(pastorData.showDir))
self:Standby()
end
)
end
function Pastor:Vanish()
self:ClearFollowTask()
self:WalkToTask(pastorData.bornPos,
function(self, task)
self:Destroy(false)
end
)
end
-- local method end
function Pastor:Start()
print("start!Pastor")
end
function Pastor:OnDestroy()
print("Pastor " .. pastorData.PastorID .. " destroied")
end
return Pastor