Shop, Currency & Kits

Shop, Currency & Kits 2.8

No permission to download
Messages
51
Likes
2
Points
8
+
Currently no, because of different table names. But i will add a support for it.

I forgot to mention, that you need to update your config. Add 'MySQL' section from the new config. Probably that's the error.
Currently no, because of different table names. But i will add a support for it.

I forgot to mention, that you need to update your config. Add 'MySQL' section from the new config. Probably that's the error.

ya it worked now
 
Last edited:
Advertisement

Official Game Server Partner

gutierrezx7

New member
Donators
Messages
4
Likes
1
Points
3
I have a suggestion to add the possibility of adding variables to the commands. for example the SteamID of the player that triggers such a kit. thus setting up an example:

JSON:
    "SayHello":{  // Command With Variables
      "Type":"command",
      "Description":"Hello",
      "Price":1,
      "Items":[
        {
          "Command":"ServerChatTo '{steamid}' [Server]: Hello."
        }
 

Tiamo

Member
Donators
Messages
139
Likes
22
Points
18
Website
www.arkade.online
For those of you wanting to merge two Shop databases into one (now that we can use one shared mysql database across a cluster), here's some sql that might help. It combines the points from two shops into the new arkshopplayers table. I just dumped the kits and let them start over.

INSERT INTO arkshopplayers (steamid, points)
(SELECT SteamId, sum(Points) FROM
(SELECT S1.SteamId, S1.Points FROM shop1 AS S1
UNION
SELECT S2.SteamId, S2.Points FROM shop2 AS S2) derivedTable
GROUP BY SteamId)
 

Warhawker

New member
Messages
1
Likes
0
Points
1
Heyo!
The plugin works great, and gives us a lot of fun functionality. However, I had a player try using a shop item that awarded 1,500 wood, and 20,000 wood.

Both times, he only received 1,000 (The max stack size of that item from a stacking mod)
Is there a config somewhere that allows the plugin to overload the survivor weight-wise? Or is this an issue that it can't grant more than one stack at a time.

I've double checked the configs, and shop logs. Looks good.
1548511399399.png
Thanks in advance -War
 

WETBATMAN

Active member
Plugin Developer
Donators
Messages
222
Likes
59
Points
28
Website
dopeark.com
Heyo!
The plugin works great, and gives us a lot of fun functionality. However, I had a player try using a shop item that awarded 1,500 wood, and 20,000 wood.

Both times, he only received 1,000 (The max stack size of that item from a stacking mod)
Is there a config somewhere that allows the plugin to overload the survivor weight-wise? Or is this an issue that it can't grant more than one stack at a time.

I've double checked the configs, and shop logs. Looks good.
View attachment 1293
Thanks in advance -War
simply add the wood multiple times
 

akang9986

New member
Messages
2
Likes
0
Points
1
Is it possible to add steam64id variable into the chat command string?

"allengrams":{ // Cheat command
"Type":"command",
"Description":"All engrams",
"Price":1000,
"Items":[
{
"Command":"GiveEngrams" //need steam64id for command lootbox
}
]
}
},
Yes!!! I need it too. I just want to make players have 1500 Points one time.
 

akang9986

New member
Messages
2
Likes
0
Points
1
I want make a kit give player 1500 Points...
But I don't know how to make it..
Anybody could tell me how to make a kit/item give player Points.
Or how to make player get 1500 Points when he enter server first time..
Thanks for any answers.
 

Rumaan

New member
Messages
19
Likes
0
Points
1
Hey, I have a few questions and a bit of an odd one. I am currently rebuilding our servers' shop file (Bordering 6k lines of code for our Primal Fear/Gaia server) and am learning how this all of this goes together. We have a single server with a couple dino overhaul mods, a vanilla-like cluster across 4-5 maps/servers, and are in the process of adding another server with a different dino overhaul mod.

The first is what parts of the code are optional and which are mandatory. Some are obvious, like the blueprint path while others are less so, like ForceBlueprint. (Though I'm leaning towards that one being mandatory because it follows the 'cheat gfi <itemid> 1 0 0' format of having those '1 0 0' in.) I am also including a file which /should/ have been cut down to the most basic coding I can manage and still be functional, allowing for the fact that it has variables instead of actual values. It's got extra little questions if anyone wants to help with that and knows the coding intimately.

My second question will lead to my third. Is there any way I can, for the purposes of organizing a massive list of codes, add in subheadings under "ShopItems"? I want to be able to sort things out for my personal benefit to make sure I'm not missing stuff like "Resources" will have metal, wood, etc. "Artifacts" will have all of the artifacts. "Trophies" will have all of the trophies under it. To clarify I am NOT trying to make a kit or a bundled deal. I do NOT want someone to buy the "Artifacts" category and get all of them. I want them listed for separate purchase, but if I need to add one, remove one, etc I want an easy way to find that category and change stuff up. (Say I wanted to add a lower wood amount purchase or something.) Even knowing I can make headings using a comment code would be awesome and I would completely use that if I knew it wouldn't break anything.

My final question is the oddball. Does anyone know of a way to use any sort of IF statements in this json file so I can easily enable/disable batches of shop items? My goal would be to have all of the vanilla Ark resources loaded in normally, then slot mod items into those IF statements. I would then have the variables listed at the top of the file (Primal Fear = 1, Gaia = 0, etc) and could just turn sections on or off at a whim. This way we can have a single shop file that we copy out to be used by the servers I mentioned and just make that slight alteration based on the mods we have installed. This will help us keep things much more consistent and make updating the shops less of a pain.

My last question could be solved if, when the shop tries to actually execute the code to give a player the requested item and doesn't find it, the whole thing just says it can't happen and doesn't take the points. The 'WrongID' in the Messages section seems to point at this, but I want to be 100% sure before I leave it to that. We've had a case of someone trying to buy something and it taking points without giving the item in question, but I don't remember if that was because the item didn't exist on the server (mod was removed) or if the item was just disabled, so it was /technically/ still there.

If you've managed to read through all of this and can help me at all then thank you so very much! Once I get all of this sorted I'll probably be back asking how to sort out the whole MySQL thing for a single server, but that's for another day.
 

Attachments

Rumaan

New member
Messages
19
Likes
0
Points
1
Oh, forgot to add a feature request. Could we get an extra line in the Groups section allowing us to set a discount for that rank?
Eg:

"Groups":{
"Default":{
"Amount":50
},
"Admin":{
"Amount":100
},
"VIP":{
"Amount":150
"Discount": .90 // Lowers all prices to 90% (A 10% discount) for this rank.
}
}
 
Messages
84
Likes
3
Points
8
Not sure what I am doing wrong, Trying to use Mysql (version 8.0.14) but allways give an error code 1114. With Sqlite works normal.

ArkShop Config
Code:
{
  "Mysql":{
    "UseMysql":true, // Changing to false, uses sqlite and works ok.
    "MysqlHost":"localhost",
    "MysqlUser":"root",
    "MysqlPass":"xxxxxxxx",
    "MysqlDB":"apitest"
  },
Permissions Config
Code:
{
  "Database":"mysql", // Changing to sqlite, uses sqlite and works ok.
  "MysqlHost":"localhost",
  "MysqlUser":"root",
  "MysqlPass":"xxxxx",
  "MysqlDB":"apitest",
  "MysqlPort":3306,
  "DbPathOverride":""
}
In the images sent, You can see that I can connect to the database in mysql, and it's listening on port 3306. Port 3306 it's open in windows firewall and modem firewall.
I need to create the tables or the api create them?
Maybe some permission in the mysql database issue? I tried as root and another user with admin permission. (Tried also with case sensitive users)
If you can help me set up to run with mysql, I appreciate.

Thanks a lot.
 

Attachments

Last edited:

Michidu

Administrator
Staff member
Messages
615
Likes
448
Points
63
Not sure what I am doing wrong, Trying to use Mysql (version 8.0.14) but allways give an error code 1114. With Sqlite works normal.
It only means that plugin can't connect to the db. Do you use legacy authentication?

Hey, I have a few questions and a bit of an odd one. I am currently rebuilding our servers' shop file (Bordering 6k lines of code for our Primal Fear/Gaia server) and am learning how this all of this goes together. We have a single server with a couple dino overhaul mods, a vanilla-like cluster across 4-5 maps/servers, and are in the process of adding another server with a different dino overhaul mod.

....
Example config description mostly says about options which are optional. If you are unsure, better keep it.
Categories are not supported right now. However, they can be added later.
Unfortunately, json doesn't support 'IF' statements or comments too.
If shop entry doesn't exist, you will see that 'Wrong ID' error. But plugin doesn't check your blueprint paths, so make sure they are correct and up to date.
About your config, "DefaultKit":"" - it would be empty.
Kits can only have items or dinos. The name does matter.
 

Kristane

New member
Messages
4
Likes
0
Points
1
@Michidu any chance of adding ChangeKitAmount, ArkShop.Reload, ResetPoints, ResetKits to the rcon commands? I'm most interested in ChangeKitAmount... I want to automate my discord bot to add kits to people who are subscribers to a twitch stream.... i have all the discord and rcon side handled... just need to be able to changekitamount thru rcon.

This is the best plugin ever for ARK! Thanks for your time!

-B
Have you gotten this to work? I would like to implement that too.
 

Kristane

New member
Messages
4
Likes
0
Points
1
Good idea, will look at it.
Has this been implemented? I would like to use the /sell function as a resource converter instead of using mods. So like my server on the island the player could sell 100 Stone and receive 500 Sand or 100 Wood for 50 Fungal Wood. If this has been implemented sorry for the double post but I read all 78pgs and didn't find it.
 

Smokker

New member
Messages
1
Likes
0
Points
1
Hello,

Is there a way to reward all new players with a score of X points on their first joining?
Have tried it with a kit but did not manage it.

Many Thanks.
 

Rumaan

New member
Messages
19
Likes
0
Points
1
Thanks for the reply! Knowing that will help me work out what I need to do now.

Another feature I thought about, when buying a dino with the shop we have the option of setting a level for it. Would it be possible to set the level to be "max" and have it match the maximum level for the server the dinosaur is spawned on? It would save a lot of trouble when using the same shop across servers with different caps.
 
Top