채팅0

    인벤토리 풀 체크하는 코드

    조회수 1224
    [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

      게시글 리스트
      제목작성자작성일조회
      4661702-29532
      4661602-29417
      4661502-29900
      4661402-29736
      4661302-29441
      4661202-29912
      4661102-29472
      4661002-29535
      4660902-29546
      4660802-29478
      4660702-29474
      4660602-29408
      4660502-29417
      4660402-29432
      4660302-29528
      4660202-29517
      4660102-29477
      4660002-29416
      4659902-29525
      4659802-29388
      안내 배너 이미지