Hello, i have a problem. I downloaded the latest canary and when i edit /data/modules/gamestore/gamestore.lua to sell items like that:
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.
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,
},
},
},
Attachments
-
gamestore.lua293.9 KB · Views: 0 · VirusTotal
-
init.lua73.6 KB · Views: 3 · VirusTotal