Jump to content

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


Michido

Recommended Posts

3 hours ago, viper2016 said:

hey guys just wondering if anyone would have a fully working .jason file for ingame shop 

Ours is very very basic. I didn't want to add more to it because I don't have the time to deal with it if I break it. we mainly use ours to convert points to capitalism currency glory coins.

 

{
  "General":{
    "TimedPointsReward":{
      "Enabled":true,
      "Interval":30,
      "Amount":50
    },
	"ItemsPerPage":20,
	"ShopDisplayTime":15.0
  },
  "Kits":{
    "s+":{
      "DefaultAmount":1,
	  "Price": 0,
      "Items":[
        {
          "amount":1,
          "quality":0,
          "forceBlueprint":false,
          "blueprint":"Blueprint'/Game/Mods/StructuresPlusMod/Crafting/Station/PrimalItemStructure_SPlusCraftingStation.PrimalItemStructure_SPlusCraftingStation'"
        },
        {
          "amount":1,
          "quality":0,
          "forceBlueprint":false,
          "blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Consumables/BaseBPs/PrimalItemConsumableRespecSoup.PrimalItemConsumableRespecSoup'"
        }
      ],
      "Dinos":[

      ]
    },
    "vip":{
      "DefaultAmount":1,
      "Items":[

      ],
      "Dinos":[
        {
          "level":20,
          "className":"Equus_Character_BP_C"
        }
      ]
    }
  },
  "ShopItems":{
    "coins10":{
      "type":"item",
	  "description":"Glory Coin (10x)",
      "price":100,
      "items":[
        {
          "quality":0,
          "forceBlueprint":false,
          "amount":10,
          "blueprint":"Blueprint'/Game/Mods/CapitalismCurrency/GloryCoin/PrimalItemResource_GloryCoin.PrimalItemResource_GloryCoin'"
        }
      ]
    },
    "tools":{
      "type":"item",
	  "description":"Tools (Metal Hatchet, Metal Pick)",
      "price":50,
      "items":[
        {
          "quality":0,
          "forceBlueprint":false,
          "amount":1,
          "blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalHatchet.PrimalItem_WeaponMetalHatchet'"
        },
        {
          "quality":0,
          "forceBlueprint":false,
          "amount":1,
          "blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'"
        }
      ]
    },
    "monkey":{
      "type":"dino",
	  "description":"Mesopithecus",
      "level":135,
      "price":700,
      "className":"Monkey_Character_BP_C"
    },
    "dimo":{
      "type":"dino",
	  "description":"Dimorphodon",
      "level":135,
      "price":1000,
      "className":"Dimorph_Character_BP_C"
    },
    "crate1":{
      "type":"beacon",
	  "description":"SupplyCrate Lvl 3",
      "price":50,
      "className":"SupplyCrate_Level03_Double_C"
    },
    "crate7":{
      "type":"beacon",
	  "description":"LootCrate Lvl 80",
      "price":2000,
      "className":"SupplyCrate_OceanInstant_C"
    }
  }
}

 

Link to comment
Share on other sites

  • Replies 292
  • Created
  • Last Reply
On 11/3/2017 at 4:06 PM, Osid said:

Ours is very very basic. I didn't want to add more to it because I don't have the time to deal with it if I break it. we mainly use ours to convert points to capitalism currency glory coins.

 


{
  "General":{
    "TimedPointsReward":{
      "Enabled":true,
      "Interval":30,
      "Amount":50
    },
	"ItemsPerPage":20,
	"ShopDisplayTime":15.0
  },
  "Kits":{
    "s+":{
      "DefaultAmount":1,
	  "Price": 0,
      "Items":[
        {
          "amount":1,
          "quality":0,
          "forceBlueprint":false,
          "blueprint":"Blueprint'/Game/Mods/StructuresPlusMod/Crafting/Station/PrimalItemStructure_SPlusCraftingStation.PrimalItemStructure_SPlusCraftingStation'"
        },
        {
          "amount":1,
          "quality":0,
          "forceBlueprint":false,
          "blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Consumables/BaseBPs/PrimalItemConsumableRespecSoup.PrimalItemConsumableRespecSoup'"
        }
      ],
      "Dinos":[

      ]
    },
    "vip":{
      "DefaultAmount":1,
      "Items":[

      ],
      "Dinos":[
        {
          "level":20,
          "className":"Equus_Character_BP_C"
        }
      ]
    }
  },
  "ShopItems":{
    "coins10":{
      "type":"item",
	  "description":"Glory Coin (10x)",
      "price":100,
      "items":[
        {
          "quality":0,
          "forceBlueprint":false,
          "amount":10,
          "blueprint":"Blueprint'/Game/Mods/CapitalismCurrency/GloryCoin/PrimalItemResource_GloryCoin.PrimalItemResource_GloryCoin'"
        }
      ]
    },
    "tools":{
      "type":"item",
	  "description":"Tools (Metal Hatchet, Metal Pick)",
      "price":50,
      "items":[
        {
          "quality":0,
          "forceBlueprint":false,
          "amount":1,
          "blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalHatchet.PrimalItem_WeaponMetalHatchet'"
        },
        {
          "quality":0,
          "forceBlueprint":false,
          "amount":1,
          "blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'"
        }
      ]
    },
    "monkey":{
      "type":"dino",
	  "description":"Mesopithecus",
      "level":135,
      "price":700,
      "className":"Monkey_Character_BP_C"
    },
    "dimo":{
      "type":"dino",
	  "description":"Dimorphodon",
      "level":135,
      "price":1000,
      "className":"Dimorph_Character_BP_C"
    },
    "crate1":{
      "type":"beacon",
	  "description":"SupplyCrate Lvl 3",
      "price":50,
      "className":"SupplyCrate_Level03_Double_C"
    },
    "crate7":{
      "type":"beacon",
	  "description":"LootCrate Lvl 80",
      "price":2000,
      "className":"SupplyCrate_OceanInstant_C"
    }
  }
}

How do i add more then one kit any help is appreciated  the config.jason file is the one i am using 

 

shop for ark.json

config.json

config.json

Link to comment
Share on other sites

Has anyone tried to add Dinos from Classic Flyers mod?  Their BP path is diferent and they don't have a "classname".

I tried this, but it caused a fatal crash on the server:

    "ptera":{
      "type":"dino",
      "description":"Pteranodon Classic",
      "level":225,
      "price":250,
      "forceBlueprint":false,
      "blueprint":"Blueprint'/Game/Mods/ClassicFlyers/Dinos/Ptero/Ptero_Character_BP.Ptero_Character_BP'"
    },

The admin spawn command is this, if it helps:

cheat spawndino "Blueprint'/Game/Mods/ClassicFlyers/Dinos/Ptero/Ptero_Character_BP.Ptero_Character_BP'" 1 1 1 120

And Mod page: http://steamcommunity.com/sharedfiles/filedetails/?id=895711211

Link to comment
Share on other sites

I also tried this, and I get the "Dino Added" message, but no dino appears.   

Good news is there was no fatal crash, but probably the class can't be found. 

    "ptera":{
      "type":"dino",
      "description":"Pteranodon Classic",
      "level":225,
      "price":250,
      "className":"Ptero_Character_BP.Ptero_Character_BP"
    },
 

Link to comment
Share on other sites

Good mod, been playing around with it. Solves the issue of having to maintain a shop for most items.

One thing would be great though, although being able to buy in-game currency (coins in my case) with points works well, I was hoping we could do the reverse. Could we use a configurable in-game item class to buy points? Is this something that could be implemented? I use a custom mod for coins, so using either the item class name or blueprint filepath would work.

So a JSON entry in the shop such as:

    "points":{
      "type":"points",
      "description":"Shop Points (100x)",
      "price":100,
      "points":100,
      "items":[
        {
          "amount":100,
          "className":"PrimalItemResource_MetalIngot'"
        }
      ]
    }

I know the "items" is supposed to be the item being purchased, but if the "type"="points", then the "items" would be the item to use for the point purchase and the "points" is the number of points the purchase acquires.

Also, if we could customize the display name of the "points" to be whatever we want, like "Gold Coins" would be great as well. This would now also open the possibility of players banking the in-game Gold Coins into Gold Coin "points".

Thanks. Great job!

Link to comment
Share on other sites

On 3/22/2017 at 1:24 AM, Badlands said:

Hey mate, servers updated, and it seems we've run into that issue where the kits/buy are all giving me Wrong Kit name again. 

I am having this same issue.  When I try to buy any kits I am getting the wrong kit name but when I buy a starter kit there is no issue. 

config test.json

beyondapisetup.png

Link to comment
Share on other sites

There is a video from ark store that also covers installation of api.

 

Hey Michido it looks like major version 275 is not compatible with the plugin. All our servers are still earning points. However chat commands are not being accepted. It's basicly posting the commands into the chat. Do you think we will be getting a fix on this?

 

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...