그거 템먹는거에 조건걸면되지 인벤꽉찼을때 뭐 zz.y7.full_extitem = true 같은거 하나 만들어서 주고 템먹는거에 not zz.y7.full_extitem then 하나 걸면끝이잖아
2024.02.24 15:26
뭐 대충
zz_y7.full_item = function ()
local cd = _UserService.LocalPlayer.WsCharacterData
local ExtSlotcount = 0
for j = 1, cd.ItemMaxSlot[4], 1 do
local item = cd:GetItem(4, j)
if (item ~= nil) then
ExtSlotcount = ExtSlotcount + 1
end
end
if (ExtSlotcount >= cd.ItemMaxSlot[4]) then
zz.y7.full_extitem = true
else
zz.y7.full_extitem = false
end
end
하고 템먹는거에 and not zz.y7.full_extitem then 추가하센
댓글5
인벤 꽉찻는지 확인하는거? 그거그냥 짜면되잖아
꽉차면 안먹는것까지 포함된거아녀유 ? 자고일어나면 인벤꽉찼는데 먹으려하다가 자꾸 죽어서
그거 템먹는거에 조건걸면되지 인벤꽉찼을때 뭐 zz.y7.full_extitem = true 같은거 하나 만들어서 주고 템먹는거에 not zz.y7.full_extitem then 하나 걸면끝이잖아
뭐 대충
zz_y7.full_item = function ()
local cd = _UserService.LocalPlayer.WsCharacterData
local ExtSlotcount = 0
for j = 1, cd.ItemMaxSlot[4], 1 do
local item = cd:GetItem(4, j)
if (item ~= nil) then
ExtSlotcount = ExtSlotcount + 1
end
end
if (ExtSlotcount >= cd.ItemMaxSlot[4]) then
zz.y7.full_extitem = true
else
zz.y7.full_extitem = false
end
end
하고 템먹는거에 and not zz.y7.full_extitem then 추가하센
댓글이라 좀이상하게나오는데 알아서 보고 하면댐