node-tf2 icon indicating copy to clipboard operation
node-tf2 copied to clipboard

Add ApplyStrangifier, TradeUp, RemoveItemAttribute, ApplyStrangePart functions

Open Preport opened this issue 4 years ago • 3 comments

applyStrangifier

  • Adds applyStrangifier function with two inputs item id and strangifier id.
  • Upon completion we will receive 2 itemRemoved and 1 itemAcquired events.

tradeUp

  • Adds tradeUp function with one input item id array.
  • Upon completion we will receive 10 itemRemoved and 1 itemAcquired events.

removeItemAttribute

  • Adds removeItemAttribute with enums from #20, its inputs are item id and value from TeamFortress2.Attributes Enum.
  • Didn't test assuming it worked in #20.

applyStrangePart

  • Add applyStrangePart function with two inputs item id and strange part id.
  • Upon completion we will receive 2 itemRemoved and 1 itemAcquired events.

Preport avatar May 06 '21 01:05 Preport

Tried implementing removeStrangePart but don't know what strange_part_score_type corresponds to. Checked item's attributes 380, 382, 384 and removed two so far outcome was.

Buffer Data => strange_part_score_type 0, 0, 56, 66 => 46 0, 0, 64, 66 => 48

Preport avatar May 06 '21 03:05 Preport

What about civilian grade stat clock ? I couldn't find nothing about it

Kettle5000 avatar Nov 04 '21 19:11 Kettle5000

What about civilian grade stat clock ? I couldn't find nothing about it

No idea never used them. If you need it to be made I'll need a decorated item and a stat clock. You can contact me on discord there's a username on my profile.

Preport avatar Nov 04 '21 20:11 Preport