채팅0

    기타템 스트립트

    조회수 890
    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

      게시글 리스트
      제목작성자작성일조회
      5229203-11223
      5229103-11258
      5229003-11350
      5228903-11254
      5228803-11407
      5228703-11270
      5228603-11517
      5228503-11659
      5228403-11648
      5228303-11329
      5228203-11641
      5228103-11277
      5228003-11273
      5227903-11716
      5227803-11691
      5227703-11563
      5227603-11891
      5227503-11263
      5227403-11328
      5227303-11398
      안내 배너 이미지