Jump to content

ShoppyStock Currency support

Closed 2.8.5

MaLai

Hello Nivex.

First thing I want to say we are using your RaidableBase plugin three years now and you always keep everything working. Thank you!

Second I want to ask you if you could add besides Economics and Server Rewards also ShoppyStock?
I would do it on my own but if we update the plugin we have everytime to update the plugin what takes always some time. Our Server have over 200 plugins so time is a bit the problem ^^.

Here is the link and the API. 
 

int GetCurrencyAmount(string shopName, BasePlayer player) - Returns player's balance. If not found returns 0.

int GetCurrencyAmount(string shopName, ulong userId) - Returns player's balance. If not found returns 0.

bool TakeCurrency(string shopName, BasePlayer player, int amount) - Takes player currency. Returns true if taken and false if not.

bool TakeCurrency(string shopName, ulong userId, int amount) - Takes player currency. Returns true if taken and false if not.

void GiveCurrency(string shopName, ulong sellerId, int amount) - Gives player currency.

string FormatCurrency(string shopName, BasePlayer player) - Returns player's formatted balance.

Would be awesome if you could add this.
MaLai 🙂

 

Link to comment

hi thanks! this is implemented already but its been hidden because the requested API didnt exist then. you can edit the cs file and see if it works now.

change

ShoppyStock = null;

to

ShoppyStock = new();

line 18481

Link to comment
1.3m

Downloads

Total number of downloads.

6.5k

Customers

Total customers served.

96.5k

Files Sold

Total number of files sold.

1.9m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.