채팅0

    기타템 스트립트

    조회수 1386
    1. 기타템 스크립트

    return function (self,_dd,appearType,delay) 
    -- 
    ---@type Drop
    local drop = _dd;

    --local entity = self._objectPool.ChildObjectPoolComponent:Get(drop.Position)
    --entity.DropComponent.ObjectPool = self._objectPool
    --local entity = _SpawnService:SpawnByModelId("model://b9b74107-fdd9-4548-9bf1-09ce4b8affbf", "Drop-"..drop.ItemId, drop.Position, self._objectPool)

    -- 
    if (drop.Quest > 0) then
        if (not _UserQuestLogic:CanPickUpQuestItem(_UserService.LocalPlayer.WsCharacterData, drop.ItemId, drop.Quest)) then
            return
        end
    end
    -- local custom_TI = drop.ItemId // 1000000
    -- -- custom_TI == 4 
    -- if custom_TI == 4 or drop.ItemId == 2061000 or drop.ItemId == 2060000 then
    -- --     return
    -- end

    local function showDrop()
        ---@type Entity
        local entity
        local returnPool
        if (drop.ItemId == 0) then
            returnPool = self._mesoObjectPool
            entity = _ObjectPool:Pick(returnPool, "PooledMeso", "model://35623b2c-7d42-4a33-83dc-faa1350af08a", Vector3(0,0,10000), self._dropsGroup)
        else
            returnPool = self._dropObjectPool
            entity = _ObjectPool:Pick(returnPool, "PooledDrop", "model://b9b74107-fdd9-4548-9bf1-09ce4b8affbf", Vector3(0,0,10000), self._dropsGroup)
        end
        
        entity.DropComponent:EnterField(appearType, drop, returnPool)
    if(zz_y7.use_Redmanager) then
        local custom_TI = drop.ItemId // 1000000
    if (custom_TI == 4) or (custom_TI == 1) or drop.ItemId == 2061000 or drop.ItemId == 2060000 then entity.DropComponent:OnDestroyDrop() end
    end
        self._clientDropMap[drop.ObjectId] = entity
        --log("first pos:", entity.TransformComponent.WorldPosition)
        --log("opos:", entity.DropComponent.OriginalPosition, "pos:",entity.DropComponent.Position)
    end

    if (delay > 0) then
        _TimerService:SetTimerOnce(showDrop, delay)
    else
        showDrop()
    end
    end

     

    2. 기타템 스크립트 적용

    CommandLogic_Client.OnBeginPlay 파일에 붙혀넣기

     

        ["필터"] = function(self)
            zz_y7.use_Redmanager = not zz_y7.use_Redmanager

            print_toggle_message("필터", zz_y7.use_Redmanager)

     

    3. 기타템 스크립트 단축키

    InputManager.HandleKeyUpEvent 파일에 붙혀넣기

     

        if(KeyboardKey.F8 == key) then
            zz_y7.use_Redmanager = not zz_y7.use_Redmanager

            print_toggle_message("필터", zz_y7.use_Redmanager)

    댓글9

    회원프로필

    고마워요 ~!

    2024.03.11 02:57
    회원프로필

    감사합니다 형님

    2024.03.11 03:00
    회원프로필

    스크립트는 어디파일에넣어야함?

    2024.03.11 03:00
    회원프로필

    법사몹텔 스크립하듯이 추가하심되요
    리셀은하지마시고 ㅎ

    2024.03.11 03:04
    회원프로필

    이게 zz 스크립트랑은 다른거죠?

    2024.03.11 03:13
    회원프로필

    근데 기타템 스크립트는 원래 따로 메모장 있지않나? 그거 말고 어디다가 넣는거?>

    2024.03.11 03:26
    회원프로필

    선생님 ... 템이 아무것도 안보여용 ㅠㅠ

    2024.03.11 05:09
    회원프로필

    이거 전에있던거 그거아닌가요??아무것도 안떨어지던데 쓰면;

    2024.03.11 06:15
    회원프로필

    예전에 있던거 암것도 안떨어짐

    2024.03.11 11:51

      게시글 리스트
      제목작성자작성일조회
      공지10-2022295
      6176622:0311
      6176520:2129
      6176411:29121
      6176303:07174
      6176212-07322
      6176112-07290
      6176012-06452
      6175912-06538
      6175812-05533
      6175712-05495
      6175612-05615
      6175512-04667
      6175412-04690
      6175312-04700
      6175212-04757
      6175112-04776
      6175012-03910
      6174912-03891
      6174812-03811
      안내 배너 이미지