• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Canary gamestore.lua problems

adamski93

New Member
Joined
Dec 9, 2024
Messages
4
Reaction score
0
GitHub
adamski93
Hello, i have a problem. I downloaded the latest canary and when i edit /data/modules/gamestore/gamestore.lua to sell items like that:
LUA:
    {
        icons = { "Category_Items.png" },
        name = "Items",
        rookgaard = true,
        subclasses = { "Gold", "Helmets", "Armors", "Legs", "Boots", "Weapons: Swords", "Weapons: Axes", "Weapons: Clubs", "Weapons: Distance", "Weapons: Wands", "Weapons: Rods", "Shields", "Backpacks" },
    },
    -- Items: Gold
    {
        icons = { "Category_Gold.png" },
        name = "Gold",
        parent = "Items",
        rookgaard = true,
        state = GameStore.States.STATE_NONE,
        offers = {
            {
                icons = { "Crystal_Coin.png" },
                name = "Crystal Coin",
                price = 28,
                id = 3043,
                count = 10,
                description = "{character}\n{info}<i>You will be rich</i>\n{info}100 000 gold.",
                type = GameStore.OfferTypes.OFFER_TYPE_ITEM,
            },
            {
                icons = { "Crystal_Coin.png" },
                name = "Crystal Coin",
                price = 250,
                id = 3043,
                count = 100,
                description = "{character}\n{info}<i>You will be rich</i>\n{info}1 000 000 gold.",
                type = GameStore.OfferTypes.OFFER_TYPE_ITEM,
            },
        },
    },
It takes tibia coins and didnt add crystal coins to store inbox. A few releases ago i didnt have this problem and i added this with GameStore.OfferTypes.OFFER_TYPE_STACKABLE, but now when i added "STACKABLE" i got error with wrong item id. Can someone help me? I got the same issues with other items like soft boots etc.
 

Attachments

Back
Top