mirror of
https://gitlab.com/YuukiPS/GSServer-CBT.git
synced 2025-08-03 18:30:11 +03:00
melon
This commit is contained in:
26
soggy_resources/lua/Actor/Npc/NpcMode/NpcModeType.lua
Normal file
26
soggy_resources/lua/Actor/Npc/NpcMode/NpcModeType.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
local NpcModeType =
|
||||
{
|
||||
--@region ModeType List
|
||||
--隐藏自身
|
||||
MODE_HIDE = 1,
|
||||
MODE_BANDAILY = 2,
|
||||
|
||||
--@endregion
|
||||
}
|
||||
|
||||
NpcModeType.ModeScript =
|
||||
{
|
||||
'Actor/Npc/NpcMode/NpcMode_MengdeHide',
|
||||
'Actor/Npc/NpcMode/NpcMode_BanDaily',
|
||||
}
|
||||
|
||||
function NpcModeType:GetMode(modeType)
|
||||
local modeScript = self.ModeScript[modeType]
|
||||
if modeScript ~= nil then
|
||||
local mode = require(modeScript)
|
||||
return mode
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
return NpcModeType
|
27
soggy_resources/lua/Actor/Npc/NpcMode/NpcMode_BanDaily.lua
Normal file
27
soggy_resources/lua/Actor/Npc/NpcMode/NpcMode_BanDaily.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
local BaseMode = require('Actor/BaseActorMode')
|
||||
local NpcEventType = require('Actor/Npc/NPCEventType')
|
||||
local NpcMode_Hide = class("NpcMode_MengdeHide", BaseMode)
|
||||
|
||||
--@region Default
|
||||
NpcMode_Hide.DefaultAction = function(self)
|
||||
self:RegisterActorEvent(self.OnEvent)
|
||||
self:StartDay()
|
||||
end
|
||||
--@endregion
|
||||
|
||||
|
||||
NpcMode_Hide.OnEvent=function(actor,evt)
|
||||
if evt.evtType == NpcEventType.STARTDAILY then
|
||||
print("NpcMode_Hide STARTDAILY")
|
||||
actor:StartDaily()
|
||||
end
|
||||
end
|
||||
|
||||
--@region PatrolInsomnia
|
||||
NpcMode_Hide["MengdeDayPatrol_1"] = function(self)
|
||||
self:RegisterActorEvent(self.OnEvent)
|
||||
end
|
||||
|
||||
|
||||
|
||||
return NpcMode_Hide
|
78
soggy_resources/lua/Actor/Npc/NpcMode/NpcMode_MengdeHide.lua
Normal file
78
soggy_resources/lua/Actor/Npc/NpcMode/NpcMode_MengdeHide.lua
Normal file
@@ -0,0 +1,78 @@
|
||||
local BaseMode = require('Actor/BaseActorMode')
|
||||
local NpcEventType = require('Actor/Npc/NPCEventType')
|
||||
local NpcMode_Hide = class("NpcMode_MengdeHide", BaseMode)
|
||||
|
||||
--@region Default
|
||||
NpcMode_Hide.DefaultAction = function(self)
|
||||
self:PerformDither(false, 2, self.HideSelf)
|
||||
self:RegisterActorEvent(self.OnEvent)
|
||||
end
|
||||
--@endregion
|
||||
|
||||
--@region StoreKeeper01
|
||||
NpcMode_Hide["StoreKeeper01"] = function(self)
|
||||
local scaredPos = sceneData:GetDummyPoint(3, "NPCScaredPoint05").pos
|
||||
self:DoAppear()
|
||||
self:SetPos(scaredPos)
|
||||
self:DoFreeStyle(362)
|
||||
end
|
||||
--@endregion
|
||||
|
||||
NpcMode_Hide.OnEvent=function(actor,evt)
|
||||
if evt.evtType == NpcEventType.STARTDAILY then
|
||||
print("NpcMode_Hide STARTDAILY")
|
||||
actor:StartDaily()
|
||||
end
|
||||
end
|
||||
|
||||
--@region PatrolInsomnia
|
||||
-- NpcMode_Hide["MengdeDayPatrol_1"] = function(self)
|
||||
-- self:PerformDither(false, 2, self.HideSelf)
|
||||
-- self:RegisterActorEvent(self.OnEvent)
|
||||
-- end
|
||||
-- NpcMode_Hide["MengdeDayPatrol_2"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayPatrol_3"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayPatrol_4"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayPatrol_5"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayStand_1"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayStand_2"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayStand_3"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayStand_4"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayStand_5"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayStand_6"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayStand_7"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayStand_8"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayStand_9"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDayStand_10"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaPatrol_1"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaPatrol_2"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaPatrol_3"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaPatrol_4"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_1"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_2"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_3"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_4"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_5"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_6"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_7"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_8"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_9"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_10"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_11"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_12"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_13"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_14"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_15"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_16"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeInsomniaStand_17"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeNightSit_1"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeNightSit_2"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeNightSit_3"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeNightStand_1"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeNightStand_2"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeNightStand_3"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDaySit_1"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
-- NpcMode_Hide["MengdeDaySit_2"] = NpcMode_Hide["MengdeDayPatrol_1"]
|
||||
--@endregion
|
||||
|
||||
return NpcMode_Hide
|
Reference in New Issue
Block a user