JLeelan2 Posted June 23, 2022 Report Posted June 23, 2022 Hello, I am trying to send a message to the TF2 game coordinator to rename an item. I tried adding the following code TeamFortress2.prototype.nameItem = function(tagID, itemID, name) { let buffer = new ByteBuffer(16 + Buffer.byteLength(name) + 1, ByteBuffer.LITTLE_ENDIAN); buffer.writeUint64(tagID); buffer.writeUint64(itemID); buffer.writeUTF8String(name); this._send(Language.NameItem, null, buffer); } Nothing happens after I provide the item IDs and a custom name, however. I do not know how I should be constructing the bytebuffer, and it's hard to tell what I'm doing wrong since there doesn't seem to be any response from the GC at all. I would appreciate any help. Quote
Dr. McKay Posted June 24, 2022 Report Posted June 24, 2022 https://github.com/DoctorMcKay/node-globaloffensive/blob/master/index.js#L277-L290 This code will probably work. 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.