Jump to content

[Server Plugin] Shop, Currency & Kits v2.3


Michido

Recommended Posts

  • Replies 292
  • Created
  • Last Reply
8 hours ago, TrueSkillz said:

just a quick question for you. Love the plugin btw. when you are buying dinos what command is that utilizing? Looks like GMSummon but i dont think you can set playerId with that command. just curious. Keep up the good work.

You are right, it's GMSummon. I just call it from another player.

Link to comment
Share on other sites

hey michido, really feel like im being a pain in the rear, i do apologize. That file i linked before was the wrong 1 i was working on, however that was my last comment. So if you could see if the same mistakes are in this 1 or not. It passed through that json validator website but crashes my server only when i open shop? The all the other kits work flawlessly, Any help with this shop and i would really appreciate it, as i really love the plugin.

config.json

Link to comment
Share on other sites

Hi, I've been using the ArkShop and DinoColors plugins on my server and we've been recently experiencing extreme lag due to dinos being auto spawned/tamed in by a script running ..wondering if theres any info on this...heres the log....all of this happened within 1 second, a script seemed to execute a bunch of dinos instantly, and I can't find out how. The only plugins we have are ArkShop and DinoColors and I've already manually booted every player and disabled mods, etc. So I know It's not a player doing this, I've already confirmed from my provider It's not a DDOS attack, but when this script executes and all these dinos spawn, the server freezes @ 255 ping and sits there for 10 minutes until this script gets finished apparently.

 

Any idea? This has been fine for the past 3 weeks, all of a sudden this is happening. 

 

Note: Because of this, we've hit the default 4,000 dino cap limit and It's lagging the server .

[2017.04.14-06.55.54:318][422]2017.04.14_06.55.54: Tribe  Tamed a Baby Pteranodon - Lvl 87 (Pteranodon)!
[2017.04.14-06.55.54:460][426]2017.04.14_06.55.54: Tribe  Tamed a Baby Pelagornis - Lvl 114 (Pelagornis)!
[2017.04.14-06.55.54:461][426]2017.04.14_06.55.54: Tribe  Tamed a Baby Pelagornis - Lvl 101 (Pelagornis)!
[2017.04.14-06.55.54:462][426]2017.04.14_06.55.54: Tribe  Tamed a Baby Pelagornis - Lvl 131 (Pelagornis)!
[2017.04.14-06.55.54:463][426]2017.04.14_06.55.54: Tribe  Tamed a Baby Tapejara - Lvl 106 (Tapejara)!
[2017.04.14-06.55.54:463][426]2017.04.14_06.55.54: Tribe  Tamed a Baby Pteranodon - Lvl 107 (Pteranodon)!
[2017.04.14-06.55.54:464][426]2017.04.14_06.55.54: Tribe  Tamed a Baby Pelagornis - Lvl 94 (Pelagornis)!
[2017.04.14-06.55.54:499][427]2017.04.14_06.55.54: Tribe  Tamed a Baby Tapejara - Lvl 106 (Tapejara)!
[2017.04.14-06.55.54:837][437]2017.04.14_06.55.54: Tribe  Tamed a Baby Pelagornis - Lvl 103 (Pelagornis)!
[2017.04.14-06.55.54:839][437]2017.04.14_06.55.54: Tribe  Tamed a Baby Pelagornis - Lvl 94 (Pelagornis)!
[2017.04.14-06.55.54:840][437]2017.04.14_06.55.54: Tribe  Tamed a Baby Pteranodon - Lvl 75 (Pteranodon)!
[2017.04.14-06.55.54:841][437]2017.04.14_06.55.54: Tribe  Tamed a Baby Pelagornis - Lvl 132 (Pelagornis)!
[2017.04.14-06.55.54:841][437]2017.04.14_06.55.54: Tribe  Tamed a Baby Tapejara - Lvl 128 (Tapejara)!
[2017.04.14-06.55.54:842][437]2017.04.14_06.55.54: Tribe  Tamed a Baby Pelagornis - Lvl 108 (Pelagornis)!
[2017.04.14-06.55.54:879][438]2017.04.14_06.55.54: Tribe  Tamed a Baby Tapejara - Lvl 137 (Tapejara)!
[2017.04.14-06.56.02:347][661]2017.04.14_06.56.02: Tribe  Tamed a Baby Argentavis - Lvl 209 (Argentavis)!

Link to comment
Share on other sites

Michido,

Is it possible to bundle multiple item classes in a "shop item"? I want a user to get a 'free primitive saddle with the dino that they purchase from the shop. I haven't found any examples of including multiple types such as "type":"item" and "type":"dino". Below is an example of code I have tried but it didn't work. 

"ShopItems":{

      "frog":{
      "description":"lvl279 Frog",
      "price":1000,
      "Dinos":[
        {
          "level":186,
          "className":"Toad_Character_BP_C"
        }
      ],
      "Items":[
        {
          "amount":1,
          "quality":1,
          "forceBlueprint":false,
          "blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Saddles/PrimalItemArmor_ToadSaddle.PrimalItemArmor_ToadSaddle'"
        }
      ]
    }

}

Any help would be appreciated. 

Regards,

Kristane

 

Link to comment
Share on other sites

On 3/9/2017 at 5:55 PM, Michido said:

Ingame shop, custom currency and kits for ARK. Config already contains some examples of what is possible, but you can change/add anything. Use JSON Validator to make sure that the config is still correct.

Features:

  • Add any item, dino or beacon to the shop
  • Points trading system
  • Create custom kits with items and dinos inside
  • Players can receive points for the time spent on server
  • SQLite Database
  • Customizable config

Chat Commands:

  • /points - show current amount of points
  • /buy <ItemID> <Amount> - buy the item from shop
  • /trade <'SteamName'> <Amount> - Send points to other player (' ' - are necessary)
  • /kit - Show all kits
  • /kit <KitName> - redeem the kit
  • /buykit <KitName> <Amount> - buy a kit (if kit has price)
  • /shop <Page> - show a list of available items in the shop

Console Commands (For Admins):

  • AddPoints <SteamID> <Amount> - add points to the player
  • SetPoints <SteamID> <Amount> - set player's points
  • GetPlayerPoints <SteamID> - print how many points player has
  • AddKits <SteamID> <KitName> <Amount> - add kits to the player
  • ReloadShopConfig - Reload a config file. Example: "cheat ReloadShopConfig"
  • ResetPoints - reset points for all players
  • ResetKits - reset kits for all players

RCON Commands (For Admins):

  • AddPoints <SteamID> <Amount> - add points to the player
  • GetPlayerPoints <SteamID> - print how many points player has
  • SetPoints <SteamID> <Amount> - set player's points

Config:

Some config explanations:

General:


"TimedPointsReward":{
	"Enabled":true, // Can be true or false
	"Interval":5, // Interval in minutes
	"Amount":5 // Amount of points to give. Currently it means: 'give 5 points for every 5 minutes spent online'
},
"ItemsPerPage":20, // Amount of entries per page (for /shop command)
"ShopDisplayTime":15.0 // Shop display time in seconds

Kits:


"starter":{ // Name of kit
  "DefaultAmount":2, // Default amount of kit. Can be 0 if you want to give this kit to players manually
  "Price": 90, // If you remove price, players won't be able to buy it
  "Items":[ // List of items in kit, you can add as many as you want
    {
      "amount":2,
      "quality":0,
      "forceBlueprint":false,
      "blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponPike.PrimalItem_WeaponPike'"
    }, // ',' is necessary only if this item is not last, otherwise you don't need it
    {
      "amount":1,
      "quality":0,
      "forceBlueprint":true,
      "blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponStoneClub.PrimalItem_WeaponStoneClub'"
    }
  ],
  "Dinos":[ // can be empty if you don't want to add dinos
    {
      "level":20,
      "className":"Ptero_Character_BP_C"
    }
  ]
}

Shop:


"ingots100":{ // Item ID, should not contain white spaces
  "type":"item", // Type of item, can be "item", "dino" or "beacon"
  "description":"Metal Ingot (100x)", // Description for the /shop command
  "price":15,
  "items":[ // List of items, works the same way as in kits
    {
      "quality":0,
      "forceBlueprint":false,
      "amount":100,
      "blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Resources/PrimalItemResource_MetalIngot.PrimalItemResource_MetalIngot'"
    }
  ]
},
"para":{ // Dino
  "type":"dino",
  "description":"Parasaurolophus",
  "level":10,
  "price":20,
  "className":"Para_Character_BP_C"
},
"crate25":{ // Beacon
  "type":"beacon",
  "description":"SupplyCrate Lvl 25",
  "price":100,
  "className":"SupplyCrate_Level25_Double_C"
}

After server will be started with this plugin, "ArkDb.db" file will be created in Win64 folder. It will contain all information about how many kits/points players have, so backup it sometimes.

Installation:

1) Install ARK Beyond API

2) Copy plugin's folder to "BeyondApi/Plugins".

 

Download: http://beyondmods.rocks/ark/files/file/41-shop-currency-kits/

Source code: https://github.com/Michidu/Ark-Server-Plugins

Other plugins:

Random Dino Colors

Extended Rcon

Custom Chat Commands (http://beyondmods.rocks/ark/files/file/42-custom-chat-commands/)

 

Hey mate does this work for ASM (Ark Server Manager)

Link to comment
Share on other sites

IS there a way to automatically start new players off with a certain amount of points? For example: If a new player joins my server and they aren't logged into the Arkdb just yet, is there a way I can make it to where that person starts off with a certain amount of points using the json config file already there, or would i have to create a new plugin? Either way probably would be editing the source files for the actual api dll?

Link to comment
Share on other sites

17 hours ago, Gruffbug said:

IS there a way to automatically start new players off with a certain amount of points? For example: If a new player joins my server and they aren't logged into the Arkdb just yet, is there a way I can make it to where that person starts off with a certain amount of points using the json config file already there, or would i have to create a new plugin? Either way probably would be editing the source files for the actual api dll?

You can either edit this plugin or change default value for points in DB.

Link to comment
Share on other sites

So when editing the DB file, that stores the points, well for some reason it will not allow me to edit the default value in the table. Will i need to download the source code for it and re-compile it or is there a way i can edit it through SQlite DB browser? I can add points with the DB browser but not edit the default value.

Link to comment
Share on other sites

  • Michido changed the title to [Server Plugin] Shop, Currency & Kits v1.5

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...