Jump to content
McKay Development

Recommended Posts

Posted

Hello,
What is `version` in `json_tradeoffer` from form of tradeoffer? `node-steam-tradeoffer-manager` have set on 4 (https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/blob/master/lib/classes/TradeOffer.js#L297). I checked it while sending offers on steam. If I sent item for friend, `version` is equeal 2, but If I sent offer "item for item" and "nothing for their item", `version` is equeal 3.

 

Any ideas?

  • 2 weeks later...
Posted (edited)

This is the script from the number of added \ deleted items (initial value 1).

 

Check original script: https://steamcommunity-a.akamaihd.net/public/javascript/economy_tradeoffer.js?l=english

UpdateTradeStatus: function()
	{
		g_rgCurrentTradeStatus.version++;
		RefreshTradeStatus( g_rgCurrentTradeStatus );
	},

Called within these two functions:: "RemoveItemFromTrade" and "SetAssetOrCurrencyInTrade".

Edited by makcc666

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...