Jump to content
McKay Development

Recommended Posts

Posted

Hi there,

 

Is there a way to save sent offers to a file (save some needed information in it + the tradeoffer), that when this offer is accepted (or declined) that you run a block of code attached to this file ?

 

As I see it now with the "receivedOfferChanged" you can only check if the offer is changed and do something with the steamid from the recipient.

I want to run code which also use mySQL databases, so I need a way to save offers.

 

If this is too much to ask it's alright.

 

Thanks anyway !

 

 

 

 

Seeringfate

Posted

Yes, you can do this by creating an object and then with 'writeFileSync' you write it on a file.

And on starting the script call a function 'readFileSync' and for each offer to add it to an object.

Then you can do whatever you want. xD

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...