채팅0

    인벤토리 풀 체크하는 코드

    조회수 1104
    [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-2022129
      6167701:0380
      6167611-14155
      6167511-14179
      6167411-14171
      6167311-14179
      6167211-13273
      6167111-13330
      6167011-13310
      6166911-13290
      6166811-13304
      6166711-13324
      6166611-13447
      6166511-12456
      6166411-12477
      6166311-12538
      6166211-11680
      6166111-11629
      6166011-11802
      6165911-11676
      안내 배너 이미지