Ir para conteúdo

Featured Replies

Postado

Olá amigo!!

Fiz tudo certinho, mas poderia me ajuda a adicionar itens na minha store???

Gostaria de adicionar a categoria Itens e adicionar uns itens, pode me ajudar com o script? 

tibia 11.49

image.thumb.png.8b9ef4f73f2ee3f7e4df0cdaf8cd7d40.png

 

  • 4 months later...
  • Respostas 62
  • Visualizações 14k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Galera fiz um tuto de como conseguir as imagens.   Confiram:   

  • Se não for 1.2 vai ter que compilar outro.   Tenta adicionar essas linhas no seu config.lua -- Store System coinPacketSize = 25 coinImagesURL = "http://localhost/store/"   Como

  • Pode usar a config dele mesmo, só adiciona essas linhas nela.

Posted Images

Postado
Em 25/08/2016 em 23:25, Enzo Caue disse:

Bom, eu já percebi que muitos estão tendo problemas para adicionar as imagens no store in-game do tibia e decidi pesquisar e tentar faze-lo funcionar corretamente.

Depois de muito tempo pesquisando, tentando e errando, achei uma explicação na Otland, vou mostrar passo-a-passo como se faz para que funcione:

 

Primeiro, vá até o seu config.lua e procure por


 

Substitua ´some.url´ pelo site do seu servidor e retiro o /images , no meu caso ficará assim


 

Agora, vá até a pasta www ou htdocs e crie uma pasta chamada store com uma outra pasta chamada 64 dentro dela, veja abaixo:

47dca36153.png

Dentro da pasta store:

4e492d3aef.png

 

 

Agora, dentro da pasta 64, você tem que colocar as imagens dos produtos em formato PNG ( APENAS PNG ) e com as dimensões 64x64:

2cf2848024.png

 

Depois disso, é só criar os items no gamestore.lua normalmente e colocar os nomes das respectivas imagens como deseja.

SHAZAM !!!

 

f30aefe6b7.jpg

 

 

 

PS: AS IMAGENS TEM QUE SER COM FUNDO TRANSPARENTE, SE NÃO FICARAM ASSIM:

 

21530b1df2.png

 

Créditos:

Narko (membro do otland)

Eu.

 

Não Funcional ! Config.lua

Spoiler

-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
hotkeyAimbotEnabled = true
protectionLevel = 7
pzLocked = 60 * 1000
removeChargesFromRunes = true
removeChargesFromPotions = true
removeWeaponAmmunition = true
removeWeaponCharges = true
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2 * 1000
experienceByKillingPlayers = false
expFromPlayersLevelRange = 75
dayKillsToRedSkull = 3
weekKillsToRedSkull = 5
monthKillsToRedSkull = 10
redSkullDuration = 30
blackSkullDuration = 45
orangeSkullDuration = 7

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "127.0.0.1"
bindOnlyGlobalAddress = false
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to The OTXServer Global!"
onePlayerOnlinePerAccount = true
allowClones = false
serverName = "OTXServer-Global"
statusTimeout = 5 * 1000
replaceKickOnLogin = true
maxPacketsPerSecond = 25

-- Version Manual
clientVersionMin = 1100
clientVersionMax = 1157
clientVersionStr = "11.57"

-- Depot Limit
freeDepotLimit = 2000
premiumDepotLimit = 10000
depotBoxes = 17

-- GameStore
gamestoreByModules = true

-- Casting System 
enableLiveCasting = true
liveCastPort = 7173

-- Expert Pvp Config
expertPvp = false

-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = -1

-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 1000
houseRentPeriod = "daily"

-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000

-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "realmap"
mapAuthor = "Cipsoft"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = true
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "localhost"
mysqlUser = "root"
mysqlPass = ""
mysqlDatabase = "servercogumelos"
mysqlPort = 3306
mysqlSock = ""
passwordType = "sha1"

-- Misc.
allowChangeOutfit = true
freePremium = true
kickIdlePlayerAfterMinutes = 15
idleWarningTime = 10 * 60 * 1000
idleKickTime = 15 * 60 * 1000
maxMessageBuffer = 4
emoteSpells = false
classicEquipmentSlots = false
allowWalkthrough = true
-- Store System
coinPacketSize = 25
coinImagesURL = "http://localhost/store/"
classicAttackSpeed = false

-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 500
rateSkill = 9000
rateLoot = 10
rateMagic = 250
rateSpawn = 2

-- Monster rates
rateMonsterHealth = 1.0
rateMonsterAttack = 1.0
rateMonsterDefense = 1.0

-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

-- Stamina
staminaSystem = true

-- Scripts
warnUnsafeScripts = true
convertUnsafeScripts = true

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process
-- priority, valid values are: "normal", "above-normal", "high"
defaultPriority = "high"
startupDatabaseOptimization = true

-- Status server information
ownerName = "Malucooo"
ownerEmail = "[email protected]"
url = "http://www.facebook.com/erick.nunes.75"
location = "Brazil"
 

Gamestore.lua

Spoiler


dofile('data/modules/scripts/gamestore/init.lua')

GameStore.Categories = {
{    name = "Premium Time",
        state = GameStore.States.STATE_NEW,
        rookgaard = true,
        icons = {"Category_PremiumTime.png"},
        offers = {
            {name = "15 Days of Premium Account", day = 15, type = GameStore.OfferTypes.PREMIUM_10, price = 6, icons = {"Product_PremiumTime30.png"}},
            {name = "30 Days of Premium Account", day = 30, type = GameStore.OfferTypes.PREMIUM_10, price = 10, icons = {"Product_PremiumTime90.png"}},
            {name = "60 Days of Premium + 05 Days Bonus", state = GameStore.States.STATE_NEW, day = 65, type = GameStore.OfferTypes.PREMIUM_10, price = 20, icons = {"Product_PremiumTime180.png"}},
            {name = "90 Days of Premium + 15 Days Bonus", state = GameStore.States.STATE_NEW, day = 105, type = GameStore.OfferTypes.PREMIUM_10, price = 30, icons = {"Product_PremiumTime360.png"}},
            
        }
    },
    
}


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

Store

Spoiler

image.thumb.png.6562e537998b0a52dee688861c479d52.png

Spoiler

image.thumb.png.5cb7de7dd2640a3c70efef63fb1935a8.png

Spoiler

image.thumb.png.2270408f3bf2d2196b765cfffd53e8ae.pngimage.thumb.png.b85e7fa6b462a0c8add330f0590c4cd5.png

 

 

Editado por Aminius Averum (veja o histórico de edições)

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo