diff --git a/enums.js b/enums.js index 4814dba..4458681 100644 --- a/enums.js +++ b/enums.js @@ -83,3 +83,12 @@ TeamFortress2.HeavyVsPyroWarSide = { Heavy: 0, Pyro: 1 }; + +TeamFortress2.Attributes = { + Paint: 1031, + CustomTexture: 1051, + MakersMark: 1053, + Killstreak: 1094, + GiftedBy: 2570, + Festivizer: 2572 +} \ No newline at end of file diff --git a/index.js b/index.js index c85171e..94ab68b 100644 --- a/index.js +++ b/index.js @@ -246,6 +246,30 @@ TeamFortress2.prototype.useItem = function(item) { this._send(Language.UseItemRequest, Schema.CMsgUseItem, {"item_id": item}); }; +TeamFortress2.prototype.tradeUP = function (items) { + this._send(Language.CraftCollectionUpgrade, Schema.CMsgCraftCollectionUpgrade, { + "item_id": items + }); +}; + +TeamFortress2.prototype.removeItemAttribute = function (item, attribute) { + this._send(attribute, Schema.CMsgGCRemoveCustomizationAttributeSimple, { "item_id": item }); +}; + +TeamFortress2.prototype.applyStrangePart = function (item, part) { + this._send(Language.ApplyStrangePart, Schema.CMsgApplyStrangePart, { + "strange_part_item_id": part, + "item_item_id": item + }); +}; + +TeamFortress2.prototype.applyStrangifier = function (item, strangifier) { + this._send(Language.ApplyXifier, Schema.CMsgGCCollectItem, { + "collection_item_id": strangifier, + "subject_item_id": item + }); +}; + TeamFortress2.prototype.sortBackpack = function(sortType) { this._send(Language.SortItems, Schema.CMsgSortItems, {"sort_type": sortType}); }; diff --git a/language.js b/language.js index 984c7a1..7770ea3 100644 --- a/language.js +++ b/language.js @@ -162,7 +162,10 @@ module.exports = { GCToGCGetUserServerMembersResponse: 2544, GCToGCGrantSelfMadeItemToAccount: 2555, GCToGCThankedByNewUser: 2556, - ShuffleCrateContents: 2557, + ShuffleCrateContents: 2557, + CraftCollectionUpgrade: 2567, + RemoveItemGiftedBy: 2570, + RemoveItemFestivizer: 2572, // EGCBaseClientMsg PingRequest: 3001,