Jump to content
McKay Development

Recommended Posts

Posted

hello, I have simple script to move all trading cards, backrounds, and whole Steam inv (753, 6) to other accounts, but since Mysterious Trading Card will expire in 21 June I can't send trade offer with 15 days trade hold, because of [26] error.

 

I store all items in inventory array, how can I exlude all Mysterious trading cards from sending them in trade offer?

Posted
I have no idea how to do it, I have my array called 'inventory'

and it contains all steam items:

 

 

 



[ CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087979192',
    classid: '667924416',
    instanceid: '667076610',
    amount: 60,
    pos: 1,
    id: '8087979192',
    background_color: '',
    icon_url: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv6gpycBw8gJ10Hsr_3e1Vkg_WcKW5A6YnkxdWIlPHxZL3XxmgJ7pUgiLuQocLlhlPWS9wAxg',
    icon_url_large: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv6gpycBVglIFRRtOPwewYz1qCdcGQb6IrhzdHZwPbwNeKAzj0D65Un0uqQpMLlhlPNIsEiPQ',
    descriptions: [ [Object] ],
    tradable: true,
    owner_actions: [ [Object], [Object] ],
    name: 'Gems',
    type: 'Steam Gems',
    market_name: 'Gems',
    market_hash_name: '753-Gems',
    market_fee_app: 753,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: false,
    tags: [ [Object], [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8061791646',
    classid: '1241675976',
    instanceid: '246376127',
    amount: 1,
    pos: 2,
    id: '8061791646',
    background_color: '',
    icon_url: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3OvjyQrcex4NM6b8ArptfCMFWC8ZzGPBSDaE1wjKfEHdX6Ao2LysODHEWnJFbwrEl0GeaIBoDVKb8GANkE01NQC_DO-lh1-GxB4JcNDI1-6hGQdNvsnxzMWINk9wHmhccHUjQsxaxI-WevhB-3FboanmCsiWx1iGPVOYIqdvCftq8alb_LUKK03Yu938cLBwQtDxVy-Mj0',
    icon_url_large: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3OvjyQrcex4NM6b8ArptfCMFWC8ZzGPBSDaE1wjKfEHdX6Ao2LysODHEWnJFbwrEl0GeaIBoDVKb8GANkE01NQC_DO-lh1-GxB4JcNDI1-6hGQdNvsnxzMWINk9wHmhccHUjQsxaxI-WevhB-3FboanmCsiWx1iGPVOYIqdvCftq8alb_LUKK03Yu938cLBwQtDxVy-Mj0',
    descriptions: [ [Object] ],
    tradable: true,
    owner_actions: [ [Object], [Object] ],
    name: 'Portrait of Jacob Trip',
    type: 'Layers of Fear Trading Card',
    market_name: 'Portrait of Jacob Trip',
    market_hash_name: '391720-Portrait of Jacob Trip',
    market_fee_app: 391720,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8062013687',
    classid: '1241675977',
    instanceid: '246376127',
    amount: 1,
    pos: 3,
    id: '8062013687',
    background_color: '',
    icon_url: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3OvjyQrcex4NM6b8hD5pOyeWSagIwTBIyeSLFF6CfEPbCzPp270sriZQTnOQrklEV0Ee6AH-mdJO8_fPEc-14YM_zPvkxV5TEN9dJISKAq6kzoDP7pjyi4AIc4Q9n2td8OMiFc2O0U-Dru0UO2TaICikicgWxxgGqdPMI-UsCHu-cSgPvKDf_1iZPcp78uAkUBPHtUGB-Us',
    icon_url_large: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3OvjyQrcex4NM6b8hD5pOyeWSagIwTBIyeSLFF6CfEPbCzPp270sriZQTnOQrklEV0Ee6AH-mdJO8_fPEc-14YM_zPvkxV5TEN9dJISKAq6kzoDP7pjyi4AIc4Q9n2td8OMiFc2O0U-Dru0UO2TaICikicgWxxgGqdPMI-UsCHu-cSgPvKDf_1iZPcp78uAkUBPHtUGB-Us',
    descriptions: [ [Object] ],
    tradable: true,
    owner_actions: [ [Object], [Object] ],
    name: 'Rubens\' Self Portrait',
    type: 'Layers of Fear Trading Card',
    market_name: 'Rubens\' Self Portrait',
    market_hash_name: '391720-Rubens\' Self Portrait',
    market_fee_app: 391720,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8062176631',
    classid: '1241723565',
    instanceid: '246376127',
    amount: 1,
    pos: 4,
    id: '8062176631',
    background_color: '',
    icon_url: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3OvjyQrcex4NM6b4Qv0r_uAE2HkIw_tF2raGVB8CPEXLiiGvHfntLTQVGGUEL95TgBXdPNXpGIaac2LPURp3dFe-jO6khcrTE95d5NHJ17jmCdLZu18m3JcNcUFj3avZMCMxzA7NRc9D7XvAu_BO9Wmwyl1DB1mGKISYI2TvyDrrcP1a_-CL_lkNaUyqsfS0gZEAdESWdsols5Y6B_d6Q',
    icon_url_large: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3OvjyQrcex4NM6b4Qv0r_uAE2HkIw_tF2raGVB8CPEXLiiGvHfntLTQVGGUEL95TgBXdPNXpGIaac2LPURp3dFe-jO6khcrTE95d5NHJ17jmCdLZu18m3JcNcUFj3avZMCMxzA7NRc9D7XvAu_BO9Wmwyl1DB1mGKISYI2TvyDrrcP1a_-CL_lkNaUyqsfS0gZEAdESWdsols5Y6B_d6Q',
    descriptions: [ [Object] ],
    tradable: true,
    owner_actions: [ [Object], [Object] ],
    name: 'Anonymous XIX century portrait',
    type: 'Layers of Fear Trading Card',
    market_name: 'Anonymous XIX century portrait',
    market_hash_name: '391720-Anonymous XIX century portrait',
    market_fee_app: 391720,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967173',
    classid: '2870013482',
    instanceid: '246376138',
    amount: 1,
    pos: 5,
    id: '8087967173',
    background_color: '',
    icon_url: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMOfXSviSQrcex4NM6b7RzoteefFXvie3yRaSjUHVltQLAPYGmPrzTxt7iQEGzJRewlQVxSffQA9TBNOM-KbhI1go4P-DC7kREzDhgvNMdJYgu-2EsaPLwizXxKds1WnnD1IJDfhlw2akdqW7y2X7yQbYSnwi0mXBsyHfEYMoOS6ie_5tevPeHAIPnN6FNywg',
    icon_url_large: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMOfXSviSQrcex4NM6b7RzoteefFXvie3yRaSjUHVltQLAPYGmPrzTxt7iQEGzJRewlQVxSffQA9TBNOM-KbhI1go4P-DC7kREzDhgvNMdJYgu-2EsaPLwizXxKds1WnnD1IJDfhlw2akdqW7y2X7yQbYSnwi0mXBsyHfEYMoOS6ie_5tevPeHAIPnN6FNywg',
    descriptions: [ [Object] ],
    tradable: true,
    owner_descriptions: [ [Object] ],
    owner_actions: [ [Object], [Object] ],
    name: 'Mysterious Card 5',
    type: 'Mysterious Trading Card',
    market_name: 'Mysterious Card 5',
    market_hash_name: '876740-Mysterious Card 5',
    market_fee_app: 876740,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object], [Object], [Object] ],
    item_expiration: '2018-06-21T17:00:00Z',
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967165',
    classid: '2870013154',
    instanceid: '246376138',
    amount: 1,
    pos: 6,
    id: '8087967165',
    background_color: '',
    icon_url: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMOfXSviSQrcex4NM6b7RzoteefFXvie3ySaSjUHVltQOZaMmDRqzOi5-qUQjHLEukpQl9QdKADp2caa52MPhBrgIAK_jK9k0EzDhgvNMdJYgu-2EsaPLwizXxKds1WnnD1IJDfhlw2akdqW7y2X7yQbYSnwi0mXBsyHfEYMoOS6ie_5tevPeHAIPn548OPPQ',
    icon_url_large: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMOfXSviSQrcex4NM6b7RzoteefFXvie3ySaSjUHVltQOZaMmDRqzOi5-qUQjHLEukpQl9QdKADp2caa52MPhBrgIAK_jK9k0EzDhgvNMdJYgu-2EsaPLwizXxKds1WnnD1IJDfhlw2akdqW7y2X7yQbYSnwi0mXBsyHfEYMoOS6ie_5tevPeHAIPn548OPPQ',
    descriptions: [ [Object] ],
    tradable: true,
    owner_descriptions: [ [Object] ],
    owner_actions: [ [Object], [Object] ],
    name: 'Mysterious Card 6',
    type: 'Mysterious Trading Card',
    market_name: 'Mysterious Card 6',
    market_hash_name: '876740-Mysterious Card 6',
    market_fee_app: 876740,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object], [Object], [Object] ],
    item_expiration: '2018-06-21T17:00:00Z',
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967156',
    classid: '2870013474',
    instanceid: '246376138',
    amount: 1,
    pos: 7,
    id: '8087967156',
    background_color: '',
    icon_url: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMOfXSviSQrcex4NM6b7RzoteefFXvie3yTaSjUHVltQLBaPDrb-zum4r6TRjrOSb4rEFoGfKUE8mEbaciBbBZs0oQPqmG-wRwzDhgvNMdJYgu-2EsaPLwizXxKds1WnnD1IJDfhlw2akdqW7y2X7yQbYSnwi0mXBsyHfEYMoOS6ie_5tevPeHAIPm_NHhwvQ',
    icon_url_large: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMOfXSviSQrcex4NM6b7RzoteefFXvie3yTaSjUHVltQLBaPDrb-zum4r6TRjrOSb4rEFoGfKUE8mEbaciBbBZs0oQPqmG-wRwzDhgvNMdJYgu-2EsaPLwizXxKds1WnnD1IJDfhlw2akdqW7y2X7yQbYSnwi0mXBsyHfEYMoOS6ie_5tevPeHAIPm_NHhwvQ',
    descriptions: [ [Object] ],
    tradable: true,
    owner_descriptions: [ [Object] ],
    owner_actions: [ [Object], [Object] ],
    name: 'Mysterious Card 7',
    type: 'Mysterious Trading Card',
    market_name: 'Mysterious Card 7',
    market_hash_name: '876740-Mysterious Card 7',
    market_fee_app: 876740,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object], [Object], [Object] ],
    item_expiration: '2018-06-21T17:00:00Z',
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967160',
    classid: '2870013474',
    instanceid: '246376138',
    amount: 1,
    pos: 8,
    id: '8087967160',
    background_color: '',
    icon_url: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMOfXSviSQrcex4NM6b7RzoteefFXvie3yTaSjUHVltQLBaPDrb-zum4r6TRjrOSb4rEFoGfKUE8mEbaciBbBZs0oQPqmG-wRwzDhgvNMdJYgu-2EsaPLwizXxKds1WnnD1IJDfhlw2akdqW7y2X7yQbYSnwi0mXBsyHfEYMoOS6ie_5tevPeHAIPm_NHhwvQ',
    icon_url_large: 'IzMF03bk9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMOfXSviSQrcex4NM6b7RzoteefFXvie3yTaSjUHVltQLBaPDrb-zum4r6TRjrOSb4rEFoGfKUE8mEbaciBbBZs0oQPqmG-wRwzDhgvNMdJYgu-2EsaPLwizXxKds1WnnD1IJDfhlw2akdqW7y2X7yQbYSnwi0mXBsyHfEYMoOS6ie_5tevPeHAIPm_NHhwvQ',
    descriptions: [ [Object] ],
    tradable: true,
    owner_descriptions: [ [Object] ],
    owner_actions: [ [Object], [Object] ],
    name: 'Mysterious Card 7',
    type: 'Mysterious Trading Card',
    market_name: 'Mysterious Card 7',
    market_hash_name: '876740-Mysterious Card 7',
    market_fee_app: 876740,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object], [Object], [Object] ],
    item_expiration: '2018-06-21T17:00:00Z',
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967171',
    classid: '978778722',
    instanceid: '246376138',
    amount: 1,
    pos: 9,
    id: '8087967171',
    background_color: '',
    icon_url: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv_gp2CBg07JFcFt-_9f14wi6ecI2QRtdmwxYWKwaGma-2BlzlU6pIli-rCrYqk0Bq-uxRrnb38Fw',
    icon_url_large: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv_gp2CBg07JFcFt-_9f14wi6ecI2QRtdmwxYWKwaGma-2BlzlU6pIli-rCrYqk0Bq-uxRrnb38Fw',
    descriptions: [ [Object] ],
    tradable: true,
    actions: [ [Object] ],
    owner_actions: [ [Object] ],
    name: 'Stompy Time',
    type: 'Grimm Uncommon Profile Background',
    market_name: 'Stompy Time',
    market_hash_name: '252150-Stompy Time',
    market_fee_app: 252150,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967158',
    classid: '1441051283',
    instanceid: '246376138',
    amount: 1,
    pos: 10,
    id: '8087967158',
    background_color: '',
    icon_url: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv8gpiDAxIicwdSsu39LVEw0qWZdGVE6I7mkobSxvX1ZevQxjpVsZInjr3Fp9rwxl6krPaHqYJu',
    icon_url_large: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv8gpiDAxIicwdSsu39LVEw0qWZdGVE6I7mkobSxvX1ZevQxjpVsZInjr3Fp9rwxl6krPaHqYJu',
    descriptions: [ [Object] ],
    tradable: true,
    actions: [ [Object] ],
    owner_actions: [ [Object] ],
    name: 'Boardroom Concept',
    type: 'Oddworld: Abe\'s Oddysee Rare Profile Background',
    market_name: 'Boardroom Concept',
    market_hash_name: '15700-Boardroom Concept',
    market_fee_app: 15700,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967154',
    classid: '1842738524',
    instanceid: '246376138',
    amount: 1,
    pos: 11,
    id: '8087967154',
    background_color: '',
    icon_url: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv-gp6KBw07dlBUt-2gewZm0qbKImhB6Y2zxYOIk6CiMLrXxTIHvcYi2bqUrI-kihq-uxQDdzWRgw',
    icon_url_large: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv-gp6KBw07dlBUt-2gewZm0qbKImhB6Y2zxYOIk6CiMLrXxTIHvcYi2bqUrI-kihq-uxQDdzWRgw',
    descriptions: [ [Object] ],
    tradable: true,
    actions: [ [Object] ],
    owner_actions: [ [Object] ],
    name: 'Ark corridors',
    type: 'The Descendant Profile Background',
    market_name: 'Ark corridors',
    market_hash_name: '351940-Ark corridors',
    market_fee_app: 351940,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967163',
    classid: '1842742575',
    instanceid: '246376138',
    amount: 1,
    pos: 12,
    id: '8087967163',
    background_color: '',
    icon_url: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv-gp6KBw07d1xV5-nwfVVkg6vLcjwQuY_mwYKOk6KjYuKJk2oD65Mg3rrFp9igjhq-uxR9330OkQ',
    icon_url_large: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv-gp6KBw07d1xV5-nwfVVkg6vLcjwQuY_mwYKOk6KjYuKJk2oD65Mg3rrFp9igjhq-uxR9330OkQ',
    descriptions: [ [Object] ],
    tradable: true,
    actions: [ [Object] ],
    owner_actions: [ [Object] ],
    name: 'The Descendant - Ark 01',
    type: 'The Descendant Rare Profile Background',
    market_name: 'The Descendant - Ark 01',
    market_hash_name: '351940-The Descendant - Ark 01',
    market_fee_app: 351940,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967159',
    classid: '1441051282',
    instanceid: '246376138',
    amount: 1,
    pos: 13,
    id: '8087967159',
    background_color: '',
    icon_url: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv8gpiDAxIicwUPte-hKVBih_GcKWsXvNrgxtjYkvTya-KIkm0AuZ0jiLrE8drxxkS6rDuwU89p',
    icon_url_large: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv8gpiDAxIicwUPte-hKVBih_GcKWsXvNrgxtjYkvTya-KIkm0AuZ0jiLrE8drxxkS6rDuwU89p',
    descriptions: [ [Object], [Object], [Object] ],
    tradable: true,
    owner_actions: [ [Object] ],
    name: ':feet:',
    type: 'Oddworld: Abe\'s Oddysee Emoticon',
    market_name: ':feet:',
    market_hash_name: '15700-:feet:',
    market_fee_app: 15700,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967164',
    classid: '1844025753',
    instanceid: '246376138',
    amount: 1,
    pos: 14,
    id: '8087967164',
    background_color: '',
    icon_url: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv-gp6KBw07dQAGsuKkLwRhh_CfKWlE6orvx4LZwPahN-mCxW9S7ZEj07jFp4mk2RqkpRQaPEWVag',
    icon_url_large: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv-gp6KBw07dQAGsuKkLwRhh_CfKWlE6orvx4LZwPahN-mCxW9S7ZEj07jFp4mk2RqkpRQaPEWVag',
    descriptions: [ [Object], [Object], [Object] ],
    tradable: true,
    owner_actions: [ [Object] ],
    name: ':janitor:',
    type: 'The Descendant Emoticon',
    market_name: ':janitor:',
    market_hash_name: '351940-:janitor:',
    market_fee_app: 351940,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] },
  CEconItem {
    appid: 753,
    contextid: '6',
    assetid: '8087967155',
    classid: '1842752950',
    instanceid: '246376138',
    amount: 1,
    pos: 15,
    id: '8087967155',
    background_color: '',
    icon_url: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv-gp6KBw07IABV7uzzcgQ0hKOZdWoTu97nwNfbw6GhZLmEwTtVsJck07qYoo6n2RqkpRTZzxlCJA',
    icon_url_large: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxH5rd9eDAjcFyv45SRYAFMIcKL_PArgVSL403ulRUWEndVKv-gp6KBw07IABV7uzzcgQ0hKOZdWoTu97nwNfbw6GhZLmEwTtVsJck07qYoo6n2RqkpRTZzxlCJA',
    descriptions: [ [Object], [Object], [Object] ],
    tradable: true,
    owner_actions: [ [Object] ],
    name: ':beaten:',
    type: 'The Descendant Emoticon',
    market_name: ':beaten:',
    market_hash_name: '351940-:beaten:',
    market_fee_app: 351940,
    commodity: true,
    market_tradable_restriction: 7,
    market_marketable_restriction: 7,
    marketable: true,
    tags: [ [Object], [Object], [Object] ],
    is_currency: false,
    fraudwarnings: [] } ]


 

 

 

 

since each item is starting with CEconItem

and I want exclude every item with: "type: 'Mysterious Trading Card'"

can you please help me?

Posted

This forum is for helping users with McKay's modules / Steam Bots, not teaching JavaScript.

There's plenty of courses online, that will do just that.

I suggest you have a look at

https://www.codecademy.com

https://www.freecodecamp.org

https://www.codewars.com

and come back when you have more understanding,

otherwise you will run into 100 more problems.

 

 

But since your cards are expiring:

 

inventory is just an array - not object.

So all you need to do is call `let filteredInventory = inventory.filter(item => {...})`

which will iterate the array and each time will give you an object, named `item`, with it's values.

So if item's type doesn't include your string, you wish to return it.

In the result you get new array named `filteredInventory` without objects that included your string.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...