Acrenactive
★Designer★
How i fix this problem tfs 1.2 client 10.96
-- Parser
dofile('data/modules/scripts/gamestore/init.lua')
-- Config
GameStore.Categories = {
{ name = "Other Items",
state = GameStore.States.STATE_NEW,
icons = {"Category_Items.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Crystal Coins", thingId = 2160, count = 5, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 10, icons = {"Product_CC.png"}, description = "Become rich!"},
{name = "Crystal Coins", thingId = 2160, count = 10, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 20, icons = {"Product_CC.png"}, description = "Become rich!"},
{name = "Crystal Coins", thingId = 2160, count = 15, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 30, icons = {"Product_CC.png"}, description = "Become rich!"},
{name = "Donation Box", thingId = 2331, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 100, icons = {"Product_CC.png"}, description = "Use this box to receive Upgraded Soft Boots, Stamina Refiller, Magical Orb, Addon Doll, Mount Doll, Green Light and 25cc!"},
{name = "Soft Boots", thingId = 6132, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 10, icons = {"Product_CC.png"}, description = "Buy the Soft Boots for regeneration!"},
{name = "Boots of Haste", thingId = 2195, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 5, icons = {"Product_CC.png"}, description = "Buy these boots for some speed!"},
{name = "Upgrade Crystal", thingId = 8300, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 5, icons = {"Product_CC.png"}, description = "Buy 1x upgrade crystal on any item with Attack, Armor, or Defense to get more % of it!"},
{name = "Upgrade Crystals", thingId = 8300, count = 8, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 35, icons = {"Product_CC.png"}, description = "Buy 8x upgrade crystals on any item with Attack, Armor, or Defense to get more % of it!"},
}
},
{ name = "Premium Items",
state = GameStore.States.STATE_NEW,
icons = {"Category_Prem.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Stamina Refiller", thingId = 12328, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 12, icons = {"Product_CC.png"}, description = "Buy this item to refill your stamina!"},
{name = "Stamina Refillers", thingId = 12328, count = 3, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 36, icons = {"Product_CC.png"}, description = "Buy this item to refill your stamina!"}
}
},
{ name = "Special Dolls",
state = GameStore.States.STATE_NEW,
icons = {"Category_Dolls.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Addon Doll", thingId = 13559, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 10, icons = {"Product_CC.png"}, description = "Buy this doll to obtain a addon!"},
{name = "Mount Dolls", thingId = 13030, count = 2, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 20, icons = {"Product_CC.png"}, description = "Buy this doll to obtain a mount!"}
}
},
{ name = "Knight Items",
state = GameStore.States.STATE_NEW,
icons = {"Category_Knight.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Crystalline Axe (Lvl 70+)", thingId = 18451, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 8, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Shiny Blade (Lvl 70+)", thingId = 18456, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 8, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Depth Calcei (Lvl 70+)", thingId = 15410, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 12, icons = {"Product_CC.png"}, description = "This item is fit for a Knight!"},
{name = "Treader of Torment", thingId = 25412, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 15, icons = {"Product_CC.png"}, description = "Buy these boots, perfect for a Knight!"},
{name = "Collar of Red Plasma (Lvl 80+)", thingId = 26487, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 25, icons = {"Product_CC.png"}, description = "Buy this amulet, gives skill and protection of physical!"},
{name = "Ring of Red Plasma (Lvl 80+)", thingId = 26493, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 25, icons = {"Product_CC.png"}, description = "Buy this ring, gives skill and protection of physical!"}
}
},
{ name = "Paladin Items",
state = GameStore.States.STATE_NEW,
icons = {"Category_Pally.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Crystal Crossbow (Lvl 80+)", thingId = 18453, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 6, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Crude Umbral Bow (Lvl 50+)", thingId = 22416, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 8, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Umbral Bow (Lvl 75+)", thingId = 22417, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 12, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Crude Umbral Crossbow (Lvl 50+)", thingId = 22419, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 8, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Umbral Crossbow (Lvl 75+)", thingId = 22420, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 12, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Ring of Blue Plasma (Lvl 80+)", thingId = 26489, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 25, icons = {"Product_CC.png"}, description = "This this ring, gives distance skill and magic level!"}
}
},
{ name = "Sorcerer Items",
state = GameStore.States.STATE_NEW,
icons = {"Category_Sorc.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Wand of Defiance (Lvl 65+)", thingId = 18390, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 4, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Wand of Mayhem (Lvl 130+)", thingId = 26291, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 15, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Collar of Green Plasma (Lvl 80+)", thingId = 26486, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 25, icons = {"Product_CC.png"}, description = "Buy this amulet, gives magic level and faster regeneration!"},
{name = "Ring of Green Plasma (Lvl 80+)", thingId = 26491, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 25, icons = {"Product_CC.png"}, description = "Buy this ring, gives magic level and faster regeneration!"}
}
},
{ name = "Druid Items",
state = GameStore.States.STATE_NEW,
icons = {"Category_Druid.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Glacial Rod (Lvl 65+)", thingId = 18412, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 4, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Oriental Shoes", thingId = 24637, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 15, icons = {"Product_CC.png"}, description = "This item is fit for a Sorcerer!"},
{name = "Collar of Green Plasma (Lvl 80+)", thingId = 26486, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 25, icons = {"Product_CC.png"}, description = "Buy this amulet, gives magic level and faster regeneration!"},
{name = "Ring of Green Plasma (Lvl 80+)", thingId = 26491, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 25, icons = {"Product_CC.png"}, description = "Buy this ring, gives magic level and faster regeneration!"}
}
},
{ name = "Tools",
state = GameStore.States.STATE_NEW,
icons = {"Category_Tools.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Whacking Driller of Fate", thingId = 10515, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 5, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Squeezing Gear of Girlpower", thingId = 10513, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 5, icons = {"Product_CC.png"}, description = "Buy this weapon to defeat your enemies!"},
{name = "Sneaky Stabber of Eliteness", thingId = 10511, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 5, icons = {"Product_CC.png"}, description = "This item is fit for a Sorcerer!"},
{name = "Blessed Wooden Stake", thingId = 5942, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 5, icons = {"Product_CC.png"}, description = "This item is fit for a Sorcerer!"},
{name = "Obsidian Knife", thingId = 5908, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 5, icons = {"Product_CC.png"}, description = "This item is fit for a Sorcerer!"},
}
},
{ name = "Containers",
state = GameStore.States.STATE_NEW,
icons = {"Category_Containers.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Heart Backpack (Vol:20)", thingId = 11119, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 5, icons = {"Product_CC.png"}, description = "Buy this backpack to hold items!"},
{name = "Santa Backpack (Vol:20)", thingId = 11263, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 5, icons = {"Product_CC.png"}, description = "Buy this backpack to hold items!"},
{name = "Cake Backpack (Vol:20)", thingId = 22696, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 5, icons = {"Product_CC.png"}, description = "Buy this backpack to hold items!"},
{name = "Anniversary Backpack (Vol:15)", thingId = 16007, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 10, icons = {"Product_CC.png"}, description = "Buy this backpack to hold items!"},
{name = "Backpack of Holding (Vol:24)", thingId = 2365, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 15, icons = {"Product_CC.png"}, description = "Buy this backpack to hold items!"},
{name = "Zaoan Chess Box (Vol:32)", thingId = 20620, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 7, icons = {"Product_CC.png"}, description = "Buy this backpack to hold items!"},
{name = "Wolf Backpack (Vol:30)", thingId = 5942, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 12, icons = {"Product_CC.png"}, description = "Buy this backpack to hold items!"},
{name = "Energetic Backpack (Vol:42)", thingId = 26484, count = 1, type = GameStore.OfferTypes.OFFER_TYPE_ITEM, price = 16, icons = {"Product_CC.png"}, description = "Buy this backpack to hold items!"}
}
},
{ name = "FREE Mounts",
state = GameStore.States.STATE_NEW,
icons = {"Category_FreeMounts.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Donkey", thingId = 13, type = GameStore.OfferTypes.OFFER_TYPE_MOUNT, price = 0, icons = {"Product_Mount_Titanica.png"}, description = "Free mount!"},
{name = "War Horse", thingId = 17, type = GameStore.OfferTypes.OFFER_TYPE_MOUNT, price = 0, icons = {"Product_Mount_Titanica.png"}, description = "Free mount!"},
{name = "Lady Bug", thingId = 27, type = GameStore.OfferTypes.OFFER_TYPE_MOUNT, price = 0, icons = {"Product_Mount_Titanica.png"}, description = "Free mount!"},
{name = "War Bear", thingId = 3, type = GameStore.OfferTypes.OFFER_TYPE_MOUNT, price = 0, icons = {"Product_Mount_Titanica.png"}, description = "Free mount!"}
}
},
{ name = "10.94 Mounts",
state = GameStore.States.STATE_NEW,
icons = {"Category_1094Mounts.png"},
offers = {
-- Item Example : thingId = itemId
{name = "Sparkion", thingId = 94, type = GameStore.OfferTypes.OFFER_TYPE_MOUNT, price = 20, icons = {"Product_Mount_Titanica.png"}, description = "New 10.94 mount!"},
{name = "Neon Sparkid", thingId = 95, type = GameStore.OfferTypes.OFFER_TYPE_MOUNT, price = 20, icons = {"Product_Mount_Titanica.png"}, description = "New 10.94 mount!"},
{name = "Vortexion", thingId = 96, type = GameStore.OfferTypes.OFFER_TYPE_MOUNT, price = 20, icons = {"Product_Mount_Titanica.png"}, description = "New 10.94 mount!"}
}
},
}
-- For Explanation and information
-- view the readme.md file in github or via markdown viewer.
-- Non-Editable
local runningId = 1
for k, category in ipairs(GameStore.Categories) do
if category.offers then
for m, offer in ipairs(category.offers) do
offer.id = runningId
runningId = runningId + 1
if not offer.type then
offer.type = GameStore.OfferTypes.OFFER_TYPE_NONE
end
end
end
end