채팅0

    인벤토리 풀 체크하는 코드

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

      게시글 리스트
      제목작성자작성일조회
      4667802-29824
      4667702-29444
      4667602-29475
      4667502-29434
      4667402-29420
      4667302-29425
      4667202-29442
      4667102-29475
      4667002-29413
      4666902-29443
      4666802-29465
      4666702-29466
      4666602-29441
      4666502-29455
      4666402-29421
      4666302-29415
      4666202-29439
      4666102-29415
      4666002-29472
      4665902-29427
      안내 배너 이미지