Search the Community
Showing results for tags 'node-tf2'.
-
Hello. I've recently tried to write a script that would let me craft tokens automatically by looking at my inventory, referencing the item schema ID for the item, then grabbing the item ID of 3 specific class weapons to craft it, but when attempting to run "craft([class item, class item, class item])", and the same thing with the recipe ID in it, it returns with -1, a fail. Using the same thing but inputting the schema ID for refined metal, it works perfectly fine, and crafts it into 3 reclaimed. My question is, is it possible that class and slot tokens are also in the list of items that valve deemed "high-value", and thus are un-craftable with scripts? EDIT: SOLVED! My script didn't filter out non-craftable items, and of course that's not gonna work with crafts.
-
Upon accepting a trade offer, my bot's inventory is sorted by class (presumably: tf2.sortBackpack(0)). However, as you can see in the picture, it is only partially sorted, possibly because I am not "acknowledging" the new items and they do not behave normally. I can find no other explanation - I have tried everything. Please, help me.
-
Hi,I'm having issues when I try to craft a class weapon other stuff works like crafting metals,tokens etc .But when I try to craft a class weapon craftingComplete event returns the recipe as -1 which is error.I'm getting my items from steamcommunity and I confirmed that arrays or ids are empty.Thanks in advance. tf2.craft([scrapid, pda2tokenid, spytokenid], 11)
-
Very simple question, is it possible to connect to a server using node-tf2/node-globaloffensive ?