채팅0

    기타템정리로직

    조회수 721

    예전에쓰던건데 지금은 테스트안해봤어.. 쓰고 정지먹어도 내탓하지망..

     

        -- 기타 아이템 처리 로직
    clear_etc = function()

        local MiscItemSlotCount = 0

        for slotIndex = 1, cd.ItemMaxSlot[4], 1 do

            local item = cd:GetItem(4, slotIndex)

            if item ~= nil then

                MiscItemSlotCount = MiscItemSlotCount + 1

            end

        end


     

        if MiscItemSlotCount >= cd.ItemMaxSlot[4] then

            for slotIndex = 1, cd.ItemMaxSlot[4], 1 do

                local item = cd:GetItem(4, slotIndex)

                if item ~= nil then
             --이곳에 지정할장소로 순간이동하게 추가

                    _InventoryLogic:TryDropItem(cd, 4, slotIndex, item.Number)
                    wait(0.05)
             --순간이동전 좌표로복귀하게추가

                end

            end

            wait(1.0)

        end
    end

     

    attackmo_func = function()

        if (usercherck) then

            return

        end

        local LeftControlD = KeyDownEvent()

        LeftControlD.key = KeyboardKey.LeftControl

        local LeftControlU = KeyUpEvent()

        LeftControlU.key = KeyboardKey.LeftControl

        clear_etc()

        ---------------------------------------------

        if attackk then -- 평타

            _InputService:SendEvent(LeftControlD)

            wait(attackspd2)

            _InputService:SendEvent(LeftControlU)  -- 함수 호출이 해제되면 컨트롤 키를 뗍니다.

        end

    end


    이런식으로수정하면될듯..??

    말했지만 정지당해도 내탓아니다..


     

    댓글1

    회원프로필

    오우 땡큐요

    2024.03.11 12:47

      게시글 리스트
      제목작성자작성일조회
      공지10-2016670
      5815115:03104
      5815013:5585
      5814909:01171
      5814810-24289
      5814710-24450
      5814610-24391
      5814510-24450
      5814410-24542
      5814310-24526
      5814210-24549
      5814110-23674
      5814010-23667
      5813910-23861
      5813810-23661
      5813710-221003
      5813610-22863
      5813510-22889
      5813410-22912
      5813310-221085
      안내 배너 이미지