Adding new packs

Follow this guide for adding more packs to the resource. You can download pre-created packs from our repo or create your own custom packs.

Images

Create a new folder inside html/images and call it the same name as you will do in the config. Place all of your pack's images in this folder.

The 3 images you must have in each pack are:

  • back.png

  • foldercover.png

  • [packname]boosterpack.png

Please keep card images to 336px x 479px, especially if you are using the grading addon. Remember that your booster pack images should be slightly larger to cover the cards during the animation.

Config

If you have downloaded a pack from the repo and a config snippet is available, you can copy and paste this into your config. The structure for this is as follows:

Config.Packs = {
    ['pack1'] = {
        ['sellable'] = {enabled = true, amount = 100, item = 'money', label = ''},
        ['cardsPerPack'] = {main = 5, fill = 1}, --The amount of cards in this pack per section
        ['main'] = {
            {name = 'card1', chance = 800, shiny = false, slot = 1}, --Divide chance by 10, so 650 = 65% chance
            {name = 'card2', chance = 200, shiny = false, slot = 2},
            {name = 'card3', chance = 200, shiny = false, slot = 3},
            {name = 'card4', chance = 200, shiny = false, slot = 4},
            {name = 'card5', chance = 200, shiny = false, slot = 5},
            {name = 'card6', chance = 10, shiny = true, slot = 6},
            {name = 'card7', chance = 10, shiny = true, slot = 7},
        },
        ['fill'] = {
            {name = 'fillcard1', chance = 100, shiny = true, slot = 8},
        }
    },
    ['pack2'] = {
        ['sellable'] = {enabled = true, amount = 100, item = 'money', label = ''},
        ['cardsPerPack'] = {main = 5, fill = 1}, --The amount of cards in this pack per section
        ['main'] = {
            {name = 'card1', chance = 800, shiny = false, slot = 1}, --Divide chance by 10, so 650 = 65% chance
            {name = 'card2', chance = 200, shiny = false, slot = 2},
            {name = 'card3', chance = 200, shiny = false, slot = 3},
            {name = 'card4', chance = 200, shiny = false, slot = 4},
            {name = 'card5', chance = 200, shiny = false, slot = 5},
            {name = 'card6', chance = 10, shiny = true, slot = 6},
            {name = 'card7', chance = 10, shiny = true, slot = 7},
        },
        ['fill'] = {
            {name = 'fillcard1', chance = 100, shiny = true, slot = 8},
        }
    }
}

Shops

When adding new booster packs to a shop, copy the item you already have and change the pack metadata.

Example:

{ name = 'boosterpack', price = 10, metadata = { pack = 'pack1', image = 'pack1boosterpack' } },
{ name = 'album', price = 100, metadata = { pack = 'pack1', image = 'pack1album' } },
{ name = 'boosterpack', price = 10, metadata = { pack = 'pack2', image = 'pack2boosterpack' } },
{ name = 'album', price = 100, metadata = { pack = 'pack2', image = 'pack2album' } },

Last updated