형님 이거맞죠
return function (self)
local user = self.Entity
if (user.WsUser.ExclusiveAction) then
return
end
if (not user.WsUser:IsAvailableInventoryOperation()) then
return
end
--- FIXME Exclusive 디레이 대신 임시
--local cool = self._T.PickUpCool or 0
--local now = _UtilLogic.ElapsedSeconds
--if (now - cool < 0.1) then
-- return
--end
--self._T.PickUpCool = now
-------------------------------------
if (user.PlayerTemporaryStat:GetValue(_CTS.DarkSight) ~= 0) then
return
end
local simulator = _CollisionService:GetSimulator(user)
local x = 0.22
local y = 0.35
if zz_y7.use_auto_pick_up then
x = 15
y = 15
end
local shape = BoxShape(user.TransformComponent.WorldPosition:ToVector2(), Vector2(x,y), 0)
local tb = {}
local count = simulator:OverlapAllFast(CollisionGroups.MapleDrop, shape, tb)
if (count == 0) then
return
end
_TableUtils:Shuffle(tb)
for _,drop in pairs(tb) do
self:TryPick(drop)
break
end
end
저도 위치저장하는법좀..
2024.01.28 04:44
이건 맵밖숨이랑 아무 상관없는건데
2024.01.28 04:50
아뭐야이상한거 올라갓네
zz_y7.RestoreSavedPositionIfOthersExist = function()
local player = _UserService.LocalPlayer
if zz_y7.is_someone_in_world() then
if zz_y7.SavePositionCommand() then
player.TransformComponent.WorldPosition = zz_y7.savedPosition
_ScreenMessageLogic:PrivateMsg("누군가가 맵에 있어서 저장된 위치로 이동되었습니다.")
else
_ScreenMessageLogic:PrivateMsg("저장된 위치가 없습니다.")
end
else
_ScreenMessageLogic:PrivateMsg("맵에 다른 유저가 없습니다.")
end
end
댓글5
댓
돈없다 1대1걸어주셈
형님 이거맞죠
return function (self)
local user = self.Entity
if (user.WsUser.ExclusiveAction) then
return
end
if (not user.WsUser:IsAvailableInventoryOperation()) then
return
end
--- FIXME Exclusive 디레이 대신 임시
--local cool = self._T.PickUpCool or 0
--local now = _UtilLogic.ElapsedSeconds
--if (now - cool < 0.1) then
-- return
--end
--self._T.PickUpCool = now
-------------------------------------
if (user.PlayerTemporaryStat:GetValue(_CTS.DarkSight) ~= 0) then
return
end
local simulator = _CollisionService:GetSimulator(user)
local x = 0.22
local y = 0.35
if zz_y7.use_auto_pick_up then
x = 15
y = 15
end
local shape = BoxShape(user.TransformComponent.WorldPosition:ToVector2(), Vector2(x,y), 0)
local tb = {}
local count = simulator:OverlapAllFast(CollisionGroups.MapleDrop, shape, tb)
if (count == 0) then
return
end
_TableUtils:Shuffle(tb)
for _,drop in pairs(tb) do
self:TryPick(drop)
break
end
end
저도 위치저장하는법좀..
이건 맵밖숨이랑 아무 상관없는건데
아뭐야이상한거 올라갓네
zz_y7.RestoreSavedPositionIfOthersExist = function()
local player = _UserService.LocalPlayer
if zz_y7.is_someone_in_world() then
if zz_y7.SavePositionCommand() then
player.TransformComponent.WorldPosition = zz_y7.savedPosition
_ScreenMessageLogic:PrivateMsg("누군가가 맵에 있어서 저장된 위치로 이동되었습니다.")
else
_ScreenMessageLogic:PrivateMsg("저장된 위치가 없습니다.")
end
else
_ScreenMessageLogic:PrivateMsg("맵에 다른 유저가 없습니다.")
end
end