ARK: Survival Evolved

ARK: Survival Evolved

Capitalism Player Trader [OPEN SOURCE] (Discontinued)
 This topic has been pinned, so it's probably important
Impulse  [developer] 28 Feb, 2017 @ 3:31am
HowTo DinoTable
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=874083802
What does it do, how does it work?
With this table it is possible to create multiple contracts for selling already matured dinos to other players. Therefore this table has two separate inventories, one is called the owner inventory and the other one is the customer inventory. To create contracts the owner has to enter the owner inventory, there you'll get a create contract button shown if the table recognizes that either your player has at least 1 GloryCoin in its inventory or there is one inside the owner inventory available. As soon as you press the create contract button, the logic will prompt you an input widget that will show you all available dinos within either default or choosen range by the server administration.

Available dinos are such, that have no saddle or costume equipped, can be unclaimed by the user that wants to create the contract and are not already contracted by this or any other DinoTable.

To complete the contract creation widget you need to select a dino from the list and enter a price for it at the bottom of the input widget. If this input is valid and commited the logic will continue with substracting 1 GloryCoin for the contract creation.

In this process it will generate an unique contract id, create a custom contract note inside the owner inventory that goes into the "Active Contracts" folder, copies this custom contract note to the customer inventory and to the dinos inventory, sets it to non removable from inventory, adds the price and quantity information as well as all required information for the contracted dino to the item description and updates the internal contract list. As soon as the dino has a contract note in its inventory it will also get a contracted symbol displayed above it (a picture of two coins). [This symbols are only rendered client side, this means as soon as the client leaves rendering range, they will get destroyed and will be reapplyed if the player re-enters rendering range - this also means that the server does not have to perform additional tasks for displaying such]

After this you'll see a new contract note displayed in the customer inventory and if you select it, it will give you a buy button. From here on if you press the buy button it will delete the displayed item from the customer inventory, the owner inventory and from the dinos inventory, unclaim the dino and automatically reclaim it in the name of your player character. To complete this transaction it will also take the money out of the players inventory and puts it into the owner inventory of the table.

If you want to get rid of a contract, just enter the owner inventory and open the "Active Contracts" folder, then select the contract you want to cancel and press the now shown button "Cancel Contract". The table will also provide a cancel all contracts button, which needs to be approved via pop-up approval by the user.

This table also provides its own implementation of a feeding trough functionality, that can be changed via gus.ini for its coverage range and if dinos should be fed with coins or normal food.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=874133004
Last edited by Impulse; 28 Feb, 2017 @ 5:40am