Yoki
-
Posts
5 -
Joined
-
Last visited
Posts posted by Yoki
-
-
Yep, any help?
-
Hi, I've been stuck with this issue for a while and can't figure any way around it, Right now I have a key bot and script is very simple -
it checks if all items offered are keys and all items I give is refined, but keys never are round number so my question is how do you make script recognize metals and they value - here's my current script:
manager.on("newOffer", function(offer) { var onlyKeys = (offer.itemsToReceive.every(function(item) { return item.name == "Mann Co. Supply Crate Key"; })); var onlyRef = (offer.itemsToGive.every(function(item) { return item.name == "Refined Metal"; })); if (onlyKeys, onlyRef) { keyAmount = offer.itemsToReceive.length refAmount = offer.itemsToGive.length console.log("Received trade offer containing " + keyAmount + " keys"); console.log("Payed" + refAmmount "Refined metal per key."); console.log("Accepting the trade."); if (keyAmount == refAmount * 27.66) offer.accept(function(err) { if (err) console.log(err); });
-
How do you receive market_hash_name when trade offer has been sent to you, and can you get information if the item is craftable?
-
There is and it's easy. use:
bot.chatMessage(steamID, "BAH BLAH BLAH, MY MESSAGES ARE AWESOME" + generate.code);
and if by the stock command you mean something like !commands which show commands after do the same as before just remove '+ generate.code'
How to buy ?
in node-steam-tradeoffer-manager
Posted
I can sell you a book called "Learn English for dummies" if that helps.