The Witcher 3
0 of 0

File information

Last updated

Original upload

Created by

ichkruchka

Uploaded by

ichkruchka

Virus scan

Safe to use

40 comments

  1. sylwestreczek
    sylwestreczek
    • supporter
    • 0 kudos
    What change should I make at the end to delete all items with a level 10 higher than me?

                    && GetItemLevel(allItems[i]) <= thePlayer.GetLevel() - 0
  2. TX800
    TX800
    • member
    • 0 kudos
    Please tell me, if you install the mod, clear the inventory of merchants and then delete it, the inventory of merchants will return to the default state, i.e. will low-level loot be sold there again.
    1. SCPZX
      SCPZX
      • member
      • 0 kudos
      No, it won't be back
  3. daleg
    daleg
    • premium
    • 0 kudos
    does this work with next gen?
  4. Wx0923
    Wx0923
    • member
    • 0 kudos
    ????????????????????????
    1. deinvater95
      deinvater95
      • member
      • 0 kudos
      Hit your head one too many times?
  5. Wx0923
    Wx0923
    • member
    • 0 kudos
    Thank you .This module solves the problem that I open the merchant interface card very well
  6. flandrean
    flandrean
    • member
    • 0 kudos
    I hope there is this mod which affect armours and junks too Q_Q
    it's a bit painful to see relic gloves etc but level 12.
    like, whats the point. burdening the game loading
    1. vpagliarini
      vpagliarini
      • supporter
      • 4 kudos
      You can edit the scripts yourself, just change the tag 'Weapon' for 'Armor' you can also choose the quality ans the level difference, all you need is a text editor, search for modClearCrap:

          // modClearCrapWeaponsFromMerchants Start
          // removes primary and secondary weapons (no crossbows) of magic
          // or lower quality which are around 10 levels lower than the player's
          // level (to be used inside shop inventory)
          public final function ClearCrapWeapons()
          {
              var i : int;
              var allItems : array<SItemUniqueId>;
              var itemQuality : SAbilityAttributeValue;

              
              //get items
              allItems = GetItemsByTag('Weapon');
              
              //filter
              for(i=allItems.Size()-1; i>=0; i-=1)
              {
                  itemQuality = GetItemAttributeValue(allItems[i], 'quality' );
                  if ( RoundMath(CalculateAttributeValue( itemQuality )) < 4
                      && GetItemLevel(allItems[i]) <= thePlayer.GetLevel() - 10
                      && !ItemHasTag(allItems[i], 'crossbow') )
                      RemoveItem(allItems[i]);
              }
          }
          // modClearCrapWeaponsFromMerchants End
    2. RedAnnual
      RedAnnual
      • member
      • 0 kudos
      I found the part you specify. How do you get this to work with weapons AND armor? Do I need to duplicate the whole section and use "Armor" instead? Or is there an appropriate syntax for indicating "all items" can be either weapon or armor?

      EDIT: Never mind, figured it out myself. Copy & pasting that entire section and putting it directly below the original mod text with the terms changed to "Armor" accomplishes having this mod work for both armor and weapons.
  7. coolspear
    coolspear
    • member
    • 0 kudos
    Thanks for this. Need to clear out those traders' swollen inventories big time with all the junk swords and armour our Geralt collects from the fallen. But before I install, try or endorse this mod, I need to know if ALL the conditions you mention have to be met to clear out the unwanted gear, or any single condition is enough? "Anything magic or less and 10 levels lower."

    Using the mod from this site that levels all weapons and armour to Geralt's current level, (That being Lvl 100 now in my NG+) means finding gear 10 levels lower is as rare as teeth on birds. They're all now 100, so will this mod not delete them and simply leave them in the trader's inventory for failing a condition?

    Thanks.

    Update - 26th Jan 2018 - I went ahead and installed this mod anyway. It needed a Script Merge for my set up. During said merge I got happy as the line of code read something like "magic or less *OR* 10 levels less." OR, not AND. YAY! This seemed to answer my original question, so I continued the install. However, in game no such luck. As all weapons and armour in my game are at same level as Geralt, (Via another mod) this mod does not remove them from traders' inventories and they just pile up, and pile up, and pile up, and laggy trader UI before too long. Too bad. Now uninstalled as it serves no purpose in my current set up. (Back to dismantling most of the crap to prevent late game trader/blacksmith lag.)

    Thanks all the same to the creator for the idea.
    1. emberfly102
      emberfly102
      • member
      • 1 kudos
      Hi, I love your detailed reply. I wish the mod creator had responded. I was hoping he/she would solve your problem for you. Since he/she didn't, I did :)

      Download the mod, go into modClearCrapWeaponsFromMerchant > content > scripts > game > components > inventoryComponent.ws

      inside that file, use ctrl+ F to find this line:

      && GetItemLevel(allItems[i]) <= thePlayer.GetLevel() - 10

      change -10 to -0. Problem solved :)
    2. Frendh
      Frendh
      • member
      • 0 kudos
      Thanks, I will try this later. I am a looter and I am sure I will need this a bit further into the game.
    3. ArqBR
      ArqBR
      • member
      • 0 kudos
      Thx dude.
  8. Charlie03833
    Charlie03833
    • member
    • 0 kudos
    Nice mod, works on 1.32 GOTY
    No more lag when talking with merchants.
    1. LiloLila
      LiloLila
      • member
      • 19 kudos
      what have you done? My game does not start if i use this mod.
      I used stript merger and the programm had no problem with the merging.
  9. SoullessMadness
    SoullessMadness
    • member
    • 10 kudos
    is this mod up to date? ...a few merchants haven't cleared any crap weapons i sold to them.
  10. ThePlagueDog
    ThePlagueDog
    • supporter
    • 1 kudos
    Awesome mod! Thank you!

    I have a question tho (and it might be a completely stupid one). Does using this mod improve the game's performance by removing assets the game normally uses to load "crap"?
    1. emberfly102
      emberfly102
      • member
      • 1 kudos
      It will improve performance greatly if you have a lot of items in your NPCs that you need to get rid of. If you don't have a lot of items in your NPCs, then it will make almost no difference in performance.