orcnaydn Posted December 20, 2018 Report Posted December 20, 2018 I want take random 5 trading cards how can i do ?i use this; community.getUserInventory(partner, 753, 6, true, (error, items) => {if(error) {users.removeReservation(partner, true, removeFunc);return callback(error);} let count = 0; for(let i = 0; i < items.length; i++) {let item = items; if(item.type.toLowerCase() != "Steam Trading Cards")continue; count += item.amount; if(count > price) {item.amount -= (count - price);count -= (count - price);} offer.addTheirItem(item); if(count == price)break;}But dont working help me please Quote
Recommended Posts
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.