return function (self,enteredMap,hp,fieldCounter)
local mapInfo = enteredMap.MapInfoComponent
local bgm = mapInfo.Bgm
local app = _AppService:Get()
app.ControlWindowMan:OnLoadedMap(enteredMap)
self:EnableExclusiveAction()
local ac = self.Entity.CharacterActionComponent
ac.AlertTime = 0
ac:UpdateAlert()
ac:ReturnToIdle()
local camera = self.Entity.CameraComponent
if (_FieldAttributeLogic:IsHiddenUI(nil)) then
camera.CameraOffset.y = -0.5
else
camera.CameraOffset.y = 0
end
local keyConfig = app.ControlWindowMan.KeyConfig.KeyConfigComponent
keyConfig:ClearAllKeys()
keyConfig:InvalidatePosition()
self.Hp = hp
self.AntiRepeat = {}
self:CheckPlayerDiedEffect()
app.ModalMan:EndChatAll()
local isLoginMap = enteredMap.Name == "Login"
if (fieldCounter == 1 and not isLoginMap) then
local cd = self.Entity.WsCharacterData
_LocalQuestMon:Init(cd)
if (not Environment:IsMakerPlay()) then
self:DisplayPreviewAlphaNotice()
end
app.ChatSystem.ChatLog:ClearChatLogs()
end
local keyConfig = app.ControlWindowMan.KeyConfig.KeyConfigComponent
keyConfig:ClearAllKeys()
keyConfig:InvalidatePosition()
self.Hp = hp
self.AntiRepeat = {}
self:CheckPlayerDiedEffect()
app.ModalMan:EndChatAll()
local isLoginMap = enteredMap.Name == "Login"
if (fieldCounter == 1 and not isLoginMap) then
local cd = self.Entity.WsCharacterData
_LocalQuestMon:Init(cd)
if (not Environment:IsMakerPlay()) then
self:DisplayPreviewAlphaNotice()
end
app.ChatSystem.ChatLog:ClearChatLogs()
_ChatMessageLogic:Add(_ChatMessageType.Yellow, "어서오세요 /? 입력하여 명령어를 확인해 주세요 ")
if (_DebugConstants:IsMobile()) then
_ChatMessageLogic:Add(_ChatMessageType.Blue, "모바일 환경에서 접속하셨습니다. 현재 모바일 환경에서 원활한 플레이는 다소 어려움을 유의하시기 바랍니다.")
end
_ExpDropRate:CheckPrintCurrentRateEvent()
end
_ChatSystemLogic.ProcessingWhisperOnClient = 0
local party = app.ControlWindowMan.UserList.UserListComponent.Party
party.Online:UpdateMembersMap()
party.HpBarEntity.PartyHPComponent:UpdatePartyMemberHPInCurrentMap()
end
댓글2
return function (self,enteredMap,hp,fieldCounter)
local mapInfo = enteredMap.MapInfoComponent
local bgm = mapInfo.Bgm
local app = _AppService:Get()
app.ControlWindowMan:OnLoadedMap(enteredMap)
self:EnableExclusiveAction()
local ac = self.Entity.CharacterActionComponent
ac.AlertTime = 0
ac:UpdateAlert()
ac:ReturnToIdle()
local camera = self.Entity.CameraComponent
if (_FieldAttributeLogic:IsHiddenUI(nil)) then
camera.CameraOffset.y = -0.5
else
camera.CameraOffset.y = 0
end
local keyConfig = app.ControlWindowMan.KeyConfig.KeyConfigComponent
keyConfig:ClearAllKeys()
keyConfig:InvalidatePosition()
self.Hp = hp
self.AntiRepeat = {}
self:CheckPlayerDiedEffect()
app.ModalMan:EndChatAll()
local isLoginMap = enteredMap.Name == "Login"
if (fieldCounter == 1 and not isLoginMap) then
local cd = self.Entity.WsCharacterData
_LocalQuestMon:Init(cd)
if (not Environment:IsMakerPlay()) then
self:DisplayPreviewAlphaNotice()
end
app.ChatSystem.ChatLog:ClearChatLogs()
end
local data = {}
data.Lt = _WzUtils:GetVector(levelData["lt"])
data.Rb = _WzUtils:GetVector(levelData["rb"])
data.Effect = levelData["effect"]
data.Interval = _WzUtils:GetInt32(levelData["interval"], 0)
data.MobEffect = levelData["mob"]
data.AffectedEffect = levelData["affected"]
data.MpCon = _WzUtils:GetInt32(levelData["mpCon"], 0)
data.Time = _WzUtils:GetInt32(levelData["time"], 0)
data.X = _WzUtils:GetInt32(levelData["x"], 0)
data.Y = _WzUtils:GetInt32(levelData["y"], 0)
data.Prop = _WzUtils:GetInt32(levelData["prop"], 0)
data.HPBelow = _WzUtils:GetInt32(levelData["hp"], 0)
data.Limit = _WzUtils:GetInt32(levelData["limit"], 0)
end
local keyConfig = app.ControlWindowMan.KeyConfig.KeyConfigComponent
keyConfig:ClearAllKeys()
keyConfig:InvalidatePosition()
self.Hp = hp
self.AntiRepeat = {}
self:CheckPlayerDiedEffect()
app.ModalMan:EndChatAll()
local isLoginMap = enteredMap.Name == "Login"
if (fieldCounter == 1 and not isLoginMap) then
local cd = self.Entity.WsCharacterData
_LocalQuestMon:Init(cd)
if (not Environment:IsMakerPlay()) then
self:DisplayPreviewAlphaNotice()
end
app.ChatSystem.ChatLog:ClearChatLogs()
_ChatMessageLogic:Add(_ChatMessageType.Yellow, "어서오세요 /? 입력하여 명령어를 확인해 주세요 ")
if (_DebugConstants:IsMobile()) then
_ChatMessageLogic:Add(_ChatMessageType.Blue, "모바일 환경에서 접속하셨습니다. 현재 모바일 환경에서 원활한 플레이는 다소 어려움을 유의하시기 바랍니다.")
end
_ExpDropRate:CheckPrintCurrentRateEvent()
end
app:SetLoginGroupEnabled(isLoginMap)
app:ChangeBGM(bgm)
self.ChangedFieldCounter = fieldCounter
local cam = self.Entity.CameraComponent
cam.ZoomRatio = 107
_PlayerActiveSkillLogic_Teleport:ResetCamera()
app:CloseAllTooltip()
_MapEffectLogic:CancelEffectScreen()
--collectgarbage()
_AppService:Get().FadeScreen:FadeIn(function()
mapInfo:OnAfterFadeIn()
end)
_ChatSystemLogic.ProcessingWhisperOnClient = 0
local party = app.ControlWindowMan.UserList.UserListComponent.Party
party.Online:UpdateMembersMap()
party.HpBarEntity.PartyHPComponent:UpdatePartyMemberHPInCurrentMap()
end
못하겠다 해줭