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

TFS 1.X+ xpboost 1.3 tfs

tibiamaniak

New Member
Joined
Aug 15, 2020
Messages
18
Reaction score
3
hi i have problem with xp boost ingame store
i can buy only 1 xp boost per 12h not more if i reset server cost xp boost dont restart to 30 tc :(

code:
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_EXPBOOST then
if self:getStorageValue(51052) == 6 then
disabled = 1
disabledReason = "You can't buy XP Boost for today."
end
if (os.time() - self:getStorageValue(51053) < 86400) then
disabled = 1
disabledReason = "You already have an active XP boost."
end

help me?
 
Solution
paste only to

elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_EXPBOOST then
if self:getStorageValue(51052) == 6 then
disabled = 1
disabledReason = "You can't buy XP Boost for today."
end
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_EXPBOOST then
if self:getStorageValue(51052) == 6 then
disabled = 1
disabledReason = "You can't buy XP Boost for today."
end
 
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_EXPBOOST then
if self:getStorageValue(51052) == 6 then
disabled = 1
disabledReason = "You can't buy XP Boost for today."
end
only 1 code? without
if (os.time() - self:getStorageValue(51053) < 86400) then
disabled = 1
disabledReason = "You already have an active XP boost."
end
?
 
paste only to

elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_EXPBOOST then
if self:getStorageValue(51052) == 6 then
disabled = 1
disabledReason = "You can't buy XP Boost for today."
end
 
Solution
Back
Top