question

Daniel Buckley avatar image
Daniel Buckley asked

Global Trading Between Players

I've got a game where players can create trade offers. Other players can view all of the available trade offers in the game and accept the ones that they want.

I'm just wondering how this could be done using the Trading system. Currently I'm thinking of having players create an open trade (for no specific players) and then be added to a group for players who have trade offers. When a player wants to view trade offers, the API will get all the players in that group and access their trade ID's (stored somewhere - player data, group data?).

Would this be the best way? Or is there a better alternative that isn't as "hacky". Also what would be the best way to store a player's trade ID's which could then be accessed with that player's ID.

Thanks.

Player DataTrading
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

You can use Client API GetPlayerTrades to get all trades the player has either opened or accepted, optionally filtered by trade status. Is this your need? Or do you want to implement a custom data system that can be read by all players and updated very frequently? If you want this, it’s difficult to implement. You can refer to the answer to this thread for more suggestions about this kind of data system.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.