Advertisement
Slopeh

cy214

Dec 12th, 2023
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | Gaming | 0 0
  1. local count = 0; clothes = TweakDB:GetRecords('gamedataClothing_Record'); for _, item in ipairs(clothes) do WA = Game.GetWardrobeSystem(); itemID = item:GetID(); itemTDBID = TDBID.ToStringDEBUG(itemID); locName = Game.GetLocalizedTextByKey(TDB.GetLocKey(item:GetID() .. '.displayName')); PlaGend = Game.GetPlayer():GetResolvedGenderName().value; errMsg1 = " - Broken / Invalid ID"; errMsg2 = " found, skipping -> "..itemTDBID..' - '..locName; local check = function(txt) if string.find(itemTDBID, txt) then return true end end if check('Test') or check('_EP1') or check('sq030_diving_suit') or check ('Q203_folded_jacket') or check('q005_militech_') or check('gle_03_johnny') or check('q203_pants') or check('Items.sp0') or check('leggins0302') or check('sq032_dogtags') or check('Q203_Spacesuit_Helmet') or check('TightJumpsuit_01_test') or check('Proficiency_TightJumpsuit') then print(errMsg1..errMsg2) elseif locName == '' or locName == 'Retrothrusters (from Rogue)' then print(errMsg1..errMsg2) elseif check('Hat_05_old_04') and PlaGend == 'Male' then print(errMsg1.." for MALE character"..errMsg2) elseif check('Hat_06_basic_05') and PlaGend == 'Male' then print(errMsg1.." for MALE character"..errMsg2) elseif WA:IsItemBlacklisted(ItemID.new(itemID)) then print(" - Blacklisted ID"..errMsg2) else count = count + 1; WA:StoreUniqueItemIDAndMarkNew(ItemID.new(TweakDBID.new(itemTDBID))) print(count.." - ADDED -> "..locName.." - "..itemTDBID) end end print(' \n - [ '..count..' ] CLOTHES ADDED! \n ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement