Postado Janeiro 7, 2016 9 anos Erro no distrito acho q não vai aparecer, mas note que vc tem q escrever "!shop" no jogo quando você estiver pronto para receber o item. Não acho q eh uma boa gesior 2012 pra tfs 1.2 GitHub: https://github.com/s3kk Conteúdo: [SERVER] Heromassa[GESIOR] Gesior 2012 modificado por Sekk[GESIOR] Shop Addons & Mounts - TFS 1.x[GESIOR] Outfitter para Characters e Rank[SISTEMA] Castle 24h[TALKACTION] Multi Element Wand[ACTION] Multi Elemental Arrow & Shield[PROGRAMAÇÃO] Compilar TFS 0.4 no Linux[PROGRAMAÇÃO] Compilando TFS 0.4 no MSVC(x64 e x32) [INFRAESTRUTURA] Configuração COMPLETA Google VM + Tibia 11.x
Postado Janeiro 7, 2016 9 anos Comando para poder comprar. Add database. CREATE TABLE IF NOT EXISTS `znote_shop_orders` ( `id` int(11) NOT NULL AUTO_INCREMENT, `account_id` int(11) NOT NULL, `type` int(11) NOT NULL, `itemid` int(11) NOT NULL, `count` int(11) NOT NULL, `time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; Agora em TalkActions <talkaction words="!shop" script="shop.lua"/> function onSay(cid, words, param) local storage = 54073 -- Make sure to select non-used storage. This is used to prevent SQL load attacks. local cooldown = 5 -- in seconds. local player = Player(cid) if player:getStorageValue(storage) <= os.time() then player:setStorageValue(storage, os.time() + cooldown) -- Create the query local orderQuery = db.storeQuery("SELECT `id`, `type`, `itemid`, `count` FROM `znote_shop_orders` WHERE `account_id` = " .. player:getAccountId() .. " LIMIT 1;") -- Detect if we got any results if orderQuery ~= false then -- Fetch order values local q_id = result.getDataInt(orderQuery, "id") local q_type = result.getDataInt(orderQuery, "type") local q_itemid = result.getDataInt(orderQuery, "itemid") local q_count = result.getDataInt(orderQuery, "count") result.free(orderQuery) -- ORDER TYPE 1 (Regular item shop products) if q_type == 1 then -- Get wheight if player:getFreeCapacity() >= ItemType(q_itemid):getWeight(q_count) then db.query("DELETE FROM `znote_shop_orders` WHERE `id` = " .. q_id .. ";") player:addItem(q_itemid, q_count) player:sendTextMessage(MESSAGE_INFO_DESCR, "Congratulations! You have received " .. q_count .. " x " .. ItemType(q_itemid):getName() .. "!") else player:sendTextMessage(MESSAGE_STATUS_WARNING, "Need more CAP!") end end -- Add custom order types here -- Type 2 is reserved for premium days and is handled on website, not needed here. -- Type 3 is reserved for character gender(sex) change and is handled on website as well. -- So use type 4+ for custom stuff, like etc packages. -- if q_type == 4 then -- end else player:sendTextMessage(MESSAGE_STATUS_WARNING, "You have no orders.") end else player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Can only be executed once every " .. cooldown .. " seconds. Remaining cooldown: " .. player:getStorageValue(storage) - os.time()) end return false end Editado Março 15, 2016 9 anos por sirarcken :D (veja o histórico de edições) Links uteis: Spoiler Forúm Spoiler Ferramentas para tibia 11.40(objectbuilder-itemeditor-rme) RME 3.3 Atualizado com animações. Pagina de addons 10.90 Youtube Spoiler Cliente Próprio 11.00--11.56 (NOTPAD++) Configurando MAQUINA VIRTUAL GOOGLE(GRATUITA PARA TESTE VALIDADE 1 ANO) Configurando Puttygen-Fillezila(MAQUINA GOOGLE Compilando OTX-TFS 1.3 LINUX (MAQUINA GOOGLE) Object Builder , criação de items Adicionar imagens na Store.
Postado Março 30, 2016 9 anos 15 minutos atrás, Gorpao disse: bugado!! Não esta, funciona perfeito no meu, poste o erro que aparece no seu. Links uteis: Spoiler Forúm Spoiler Ferramentas para tibia 11.40(objectbuilder-itemeditor-rme) RME 3.3 Atualizado com animações. Pagina de addons 10.90 Youtube Spoiler Cliente Próprio 11.00--11.56 (NOTPAD++) Configurando MAQUINA VIRTUAL GOOGLE(GRATUITA PARA TESTE VALIDADE 1 ANO) Configurando Puttygen-Fillezila(MAQUINA GOOGLE Compilando OTX-TFS 1.3 LINUX (MAQUINA GOOGLE) Object Builder , criação de items Adicionar imagens na Store.
Postado Abril 1, 2016 9 anos 14:21 You have no orders. Nao adiciona nada na Database, voce pode comprar no site so que o item nao chega TFS 1.2 - GESIOR 2012
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.