채팅0

    인벤토리 풀 체크하는 코드

    조회수 948
    [zz_y7_const.INVEN] = function(self, user, argc, args)
    	local cd = user.WsCharacterData
    	-- no check argc but idc cuz its trash for rn
    	local empty_slot_count = _InventoryLogic:GetFreeSlots(cd, tonumber(args[2]))
    	local full_slot_count  = _InventoryLogic:GetHoldCount(cd, tonumber(args[2]))
    	_ChatMessageLogic:Add(_ChatMessageType.System, "[Command/Inven] slot: " .. full_slot_count .. " / " .. empty_slot_count)
    end,

    이거 맞음?

    댓글1

    회원프로필

    맞는거 같은데 인벤토리 타입이 안정해져있는데?

    2024.02.27 03:25

      게시글 리스트
      제목작성자작성일조회
      공지10-2020694
      6066815:569
      6066711:1983
      6066611:1466
      6066509:5369
      6066404:48163
      6066307-01207
      6066207-01386
      6066107-01258
      6066007-01221
      6065907-01194
      6065807-01194
      6065707-01255
      6065607-01209
      6065507-01318
      6065407-01197
      6065307-01280
      6065207-01229
      6065107-01423
      6065007-01397