• 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!

OTClient Store doesnt work

Ciosny

Member
Joined
Aug 16, 2024
Messages
116
Solutions
1
Reaction score
15
Hi! I have a problem with my store.

I added the store to my folders but i have error in otclientv8.log:
Warning: 'categories' exists, but it has no children!
Error: Cannot focus on the first category. It does not exist.

in the game displays an empty store with no category

OTS>data>scripts>store>game_store.lua

I have TFS 1.4.2 OTCv8

for example, I am posting a code fragment:

local DONATION_URL = "https://website.com/donate.php"
local CODE_GAMESTORE = 102
local GAME_STORE = nil
local LoginEvent = CreatureEvent("GameStoreLogin")
function LoginEvent.onLogin(player)
player:registerEvent("GameStoreExtended")
return true
end
function gameStoreInitialize()
GAME_STORE = {
categories = {},
offers = {}
}
addCategory("Items", "Tools, Dolls & Boxes.", "item", 2640)
addItem("Items", "Premium Scroll", "Premium account for 30 days.", 5546, 1, 600)
addItem("Items", "Weekly Premium Scroll", "Premium account for 7 days.", 5545, 1, 200)
addCategory(
"Outfits",
"Contains all addons.",
"outfit",
{
mount = 0,
type = 131,
addons = 0,
head = 0,
body = 114,
legs = 85,
feet = 76
}
)
addOutfit(
"Outfits",
"Citizen",
"Citizen",
{
mount = 0,
type = 128,
addons = 3,
head = 114,
body = 114,
legs = 114,
feet = 114
},
{
mount = 0,
type = 136,
addons = 3,
head = 114,
body = 114,
legs = 114,
feet = 114
},
1500
)
 
Back
Top