Jump to content
McKay Development

Plumperkins

Member
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Plumperkins

  1. I cant seem to find a craft-able property in the econ item object can someone point to it in this object bellow, thanks! EconItem {appid: 440, contextid: '2', assetid: '7846925808', classid: '11040732', instanceid: '11040552', amount: 1, missing: false, est_usd: '92', icon_url: 'fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywGkijVjZULUrsm1j-9xgEYeQocWAndqzBCjM31Mv6NGucF1Yps5MQEjDM6xlF5Y7uwMjQxIlfHVaEOXqNso1rpCnJmuZ5hUIaw8blIOVK4ag0bm_o', icon_url_large: 'fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywGkijVjZULUrsm1j-9xgEYeQocWAndqzBCjM31Mv6NGucF1Yps5MQEjDM6xlF5Y7uwMjQxIlfHVaEOXqNso1rpCnJmuZ5hUIaw8blIOVK4ag0bm_o', icon_drag_url: '', name: 'Summer Shades', market_hash_name: 'Summer Shades', market_name: 'Summer Shades', name_color: '7D6D00', background_color: '3C352E', type: 'Limited Level 10 Glasses', tradable: true, marketable: true, commodity: false, market_tradable_restriction: 7, market_marketable_restriction: 0, fraudwarnings: [], descriptions: [ { type: 'text', value: 'These are famous.', app_data: '' } ], actions: [ { name: 'Item Wiki Page...', link: 'http://wiki.teamfortress.com/scripts/itemredirect.php?id=486&lang=en_US'}, { name: 'Inspect in Game...', link: 'steam://rungame/440/76561202255233023/+tf_econ_item_preview%20S%owner_steamid%A%assetid%D2327250644315844062' } ], market_actions: [ { name: 'Inspect in Game...', link: 'steam://rungame/440/76561202255233023/+tf_econ_item_preview%20M%listingid%A%assetid%D2327250644315844062' } ], tags: [ { internal_name: 'Unique', name: 'Unique', category: 'Quality', color: '7D6D00', category_name: 'Quality', localized_tag_name: 'Unique', localized_category_name: 'Quality' }, { internal_name: 'misc', name: 'Cosmetic', category: 'Type', category_name: 'Type', localized_tag_name: 'Cosmetic', color: '', localized_category_name: 'Type' }, { internal_name: 'Scout', name: 'Scout', category: 'Class', category_name: 'Class', localized_tag_name: 'Scout', color: '', localized_category_name: 'Class' }, { internal_name: 'Sniper', name: 'Sniper', category: 'Class', category_name: 'Class', localized_tag_name: 'Sniper', color: '', localized_category_name: 'Class' }, { internal_name: 'Soldier', name: 'Soldier', category: 'Class', category_name: 'Class', localized_tag_name: 'Soldier', color: '', localized_category_name: 'Class' }, { internal_name: 'Demoman', name: 'Demoman', category: 'Class', category_name: 'Class', localized_tag_name: 'Demoman', color: '', localized_category_name: 'Class' }, { internal_name: 'Medic', name: 'Medic', category: 'Class', category_name: 'Class', localized_tag_name: 'Medic', color: '', localized_category_name: 'Class' }, { internal_name: 'Heavy', name: 'Heavy', category: 'Class', category_name: 'Class', localized_tag_name: 'Heavy', color: '', localized_category_name: 'Class' }, { internal_name: 'Pyro', name: 'Pyro', category: 'Class', category_name: 'Class', localized_tag_name: 'Pyro', color: '', localized_category_name: 'Class' }, { internal_name: 'Spy', name: 'Spy', category: 'Class', category_name: 'Class', localized_tag_name: 'Spy', color: '', localized_category_name: 'Class' }, { internal_name: 'Engineer', name: 'Engineer', category: 'Class', category_name: 'Class', localized_tag_name: 'Engineer', color: '', localized_category_name: 'Class' } ], app_data: { def_index: '486', quality: '6', slot: 'Cosmetic', filter_data: { '931505789': [Object], '1662615936': [Object] }, player_class_ids: { '0': '1', '1': '2', '2': '3', '3': '4', '4': '5', '5': '6', '6': '7', '7': '8', '8': '9' }, highlight_color: '7a6e65' }, id: '7846925808', owner_descriptions: [], owner_actions: [] }
  2. I would like to create a function that returns the getOffers object.when ever I console.log my loadTrades function i get undefined. I am new to coding especially aysnc. how could i write this better? const loadTrades = function(callback){ manager.getOffers('ActiveOnly',(err,received)=>{ if(err){ console.log(err) } else { callback(received); } });} manager.on('newOffer',()=>{ // expecting to console log the getOffers object console.log(loadTrades((received)=>{return received})); });
×
×
  • Create New...