Ir para conteúdo

viniciusBIG

Campones
  • Total de itens

    43
  • Registro em

  • Última visita

Posts postados por viniciusBIG

  1. Vá no localhost/phpmyadmin/suadb e execulte a db shop.sql que fica dentro da pasta gifts/config no seu htdocs :D

     

    como assim execulte? é a mesma coisa que importar? to na duvida, desculpe minha nubisse ;-;

    duvida sanada, podem fechar o topico, eu vo dar rep+ pro junior silva quando eu puder, ja atingi meu limite! obg pela ajuda!

  2. Troque seu script do shop que fica no globalevents por este

    function onThink(interval, lastExecution, thinkInterval)
    
    	local result = db.getResult("SELECT * FROM shop_history WHERE `processed` = 0;")
    	
    		if(result:getID() ~= -1) then
    			while(true) do
    				cid = getCreatureByName(tostring(result:getDataString("player")))
    				product = tonumber(result:getDataInt("product"))
    				itemr = db.getResult("SELECT * FROM shop_offer WHERE `id` = "..product..";")
    					if isPlayer(cid) then
    						local id = tonumber(itemr:getDataInt("item"))
    						local tid = tonumber(result:getDataInt("id"))
    						local count = tonumber(itemr:getDataInt("count"))
    						local tipe = tonumber(itemr:getDataInt("type"))
    						local productn = tostring(itemr:getDataString("name"))
    							if isInArray({5,8},tipe) then
    								if getPlayerFreeCap(cid) >= getItemWeightById(id, count) then
    									if isContainer(getPlayerSlotItem(cid, 3).uid) then
    										received = doAddContainerItem(getPlayerSlotItem(cid, 3).uid, id,count)
    										if received then
    											doPlayerSendTextMessage(cid,19, "Você Recebeu Uma >> "..productn.." << do Shop System")
    											db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";")
    										else
    											doPlayerSendTextMessage(cid,19, "Desculpa, Você não tem espaço para receber o item >> "..productn.." <<")
    										end
    									else
    										doPlayerSendTextMessage(cid,19, "Desculpa, Você não tem espaço para receber >> "..productn.." <<")
    									end
    								else
    									doPlayerSendTextMessage(cid,19, "Desculpa, você não tem cap para receber >> "..productn.." << (You need: "..getItemWeightById(id, count).." Capacity)")
    								end
    							elseif isInArray({6,7},tipe) then
    									if tipe == 6 then
    										bcap = 8
    										bid = 1987
    									elseif tipe == 7 then
    										bcap = 20
    										bid = 1988
    									end
    									if isItemRune(id) then
    										count = 1
    									end
    									if getPlayerFreeCap(cid) >= (getItemWeightById(1987, 1) + getItemWeightById(id,count * bcap)) then
    										local bag = doCreateItemEx(bid, 1)
    											for i = 1,bcap do
    												doAddContainerItem(bag, id, count)
    											end
    										received = doPlayerAddItemEx(getPlayerSlotItem(cid, 3).uid, bag)
    										if received == RETURNVALUE_NOERROR then
    											doPlayerSendTextMessage(cid,19, "You have received >> "..productn.." << from our shop system")
    											db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";")
    										else
    											doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough space to receive >> "..productn.." <<")
    										end
    									else
    										doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough capacity to receive >> "..productn.." << (You need: "..getItemWeightById(id, count).." Capacity)")
    									end
    							end
    					end
    				itemr:free()
    				if not(result:next()) then
    					break
    				end
    			end
    			result:free()
    		end
    	return true
    end
    
    

    e vai na tag la no globalevents.xml e troque o interval para 1

     

    eu coloquei assim, não esta aparecendo o erro, mais em compensação o item n ta vindo '-' oq será? no shop aparece isso:

    A PHP Error was encountered

    Severity: 8192

    Message: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

    Filename: config/functions.php

    Line Number: 12

    e normal? '-'

    aé, tbm apareceu isso no log do server: [16/03/2014 17:51:48] [Error - TalkAction Interface]

    [16/03/2014 17:51:48] data/talkactions/scripts/createitem.lua:onSay
    [16/03/2014 17:51:48] Description:
    [16/03/2014 17:51:48] (luaDoPlayerAddItemEx) Item not found quando eu comprei outro item
  3. desculpe não entendi a pergunta, eu uso 1 site parecido ao dbo brasil, só da esse erro quando eu compro itens, quando eu compro premmy, não da erro algum oq será isso?

  4. ​Olá eu estou tendo 1 erro no shop n sei se e essa a área correta se n for essa movam pra certa, enfim estou com 1 erro no shop que quando eu compro o item o item n chega e da esse seguinte erro:
    [16/03/2014 14:37:50] [Error - GlobalEvent Interface] 
    [16/03/2014 14:37:50] data/globalevents/scripts/shopModernAcc.lua:onThink
    [16/03/2014 14:37:50] Description: 
    [16/03/2014 14:37:50] data/globalevents/scripts/shopModernAcc.lua:20: attempt to call global 'doPlayerGiveItemSHOP' (a nil value)
    [16/03/2014 14:37:50] stack traceback:
    [16/03/2014 14:37:50] 	data/globalevents/scripts/shopModernAcc.lua:20: in function <data/globalevents/scripts/shopModernAcc.lua:1>
    [16/03/2014 14:37:50] [Error - GlobalEvents::think] Couldn't execute event: shopModernAAC
    

    alguem sabe oq é? esse e o shop que eu uso '-'

     

     

    function onThink(interval, lastExecution, thinkInterval)

    local result = db.getResult("SELECT * FROM shop_history WHERE `processed` = 0;")
    if(result:getID() ~= -1) then
    while(true) do
    cid = getCreatureByName(tostring(result:getDataString("player")))
    product = tonumber(result:getDataInt("product"))
    idTransaction = tonumber(result:getDataInt("id"))
    itemr = db.getResult("SELECT * FROM shop_offer WHERE `id` = "..product..";")
    if isPlayer(cid) then
    local id = tonumber(itemr:getDataInt("item"))
    local tid = tonumber(result:getDataInt("id"))
    local count = tonumber(itemr:getDataInt("count"))
    local tipe = tonumber(itemr:getDataInt("type"))
    local productn = tostring(itemr:getDataString("name"))
    if isInArray({5,8},tipe) then
    if getPlayerFreeCap(cid) >= getItemWeightById(id, count) then
    --if isContainer(getPlayerSlotItem(cid, 3).uid) then
    received = doPlayerGiveItemSHOP(cid, id, count, 0, idTransaction)
    --received = doAddContainerItem(getPlayerSlotItem(cid, 3).uid, id,count)
    if received == true then
    doPlayerSendTextMessage(cid,19, "You have received >> "..productn.." << from our shop system")
    db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";")
    else
    doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough space on container to receive >> "..productn.." <<")
    end
    --else
    --doPlayerSendTextMessage(cid,19, "Sorry, you don't have a container to receive >> "..productn.." <<")
    --end
    else
    doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough capacity to receive >> "..productn.." << (You need: "..getItemWeightById(id, count).." Capacity)")
    end
    elseif isInArray({6,7},tipe) then
    if tipe == 6 then
    bcap = 8
    bid = 1987
    elseif tipe == 7 then
    bcap = 20
    bid = 1988
    end
    if isItemRune(id) then
    count = 1
    end
    if getPlayerFreeCap(cid) >= (getItemWeightById(1987, 1) + getItemWeightById(id,count * bcap)) then
    --local bag = doCreateItemEx(bid, 1)
    --for i = 1,bcap do
    --doAddContainerItem(bag, id, count)
    --end
    received = doPlayerGiveItemContainer(cid, 1988, id, count, 0)
    --received = doPlayerAddItemEx(getPlayerSlotItem(cid, 3).uid, bag)
    if received == true then
    doPlayerSendTextMessage(cid,19, "You have received >> "..productn.." << from our shop system")
    db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";")
    else
    doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough space to receive >> "..productn.." <<")
    end
    else
    doPlayerSendTextMessage(cid,19, "Sorry, you don't have enough capacity to receive >> "..productn.." << (You need: "..getItemWeightById(id, count).." Capacity)")
    end
    end
    end
    itemr:free()
    if not(result:next()) then
    break
    end
    end
    result:free()
    end
    return true
    end
  5. Olhe jusefino e o seguinte, vai no config.lua e mude o sha1 e tente usar esses plain, md5, sha256, sha512, se n der certo mesmo assim, vai no config.lua e procura por sqlKeepAlive =

    mysqlReadTimeout =

    mysqlWriteTimeout =

    e vai ter uns numeros la e tira os numeros e coloque 0 em todos assim: sqlKeepAlive = 0

    mysqlReadTimeout = 0

    mysqlWriteTimeout = 0

     

    Ajudei? Rep+ '-', n ajudei? Rep+

  6. Olá galera do xvideos xtibia, eu fiz uma magia de area, so que ela n ta dando dano nos bixos, vo passar aki embaixo:

     

     

    local combat = createCombatObject()

    setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
    setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ANI_EXPLOSION)
    setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE)
    setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 25080, 26100, 45000, 45010)
    local arr= {
    {0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,1,0,0,0,0,0},
    {0,0,0,0,1,1,1,0,0,0,0},
    {0,0,0,1,1,1,1,1,0,0,0},
    {0,0,1,1,1,1,1,1,1,0,0},
    {0,1,1,1,1,2,1,1,1,1,0},
    {0,0,1,1,1,1,1,1,1,0,0},
    {0,0,0,1,1,1,1,1,0,0,0},
    {0,0,0,0,1,1,1,0,0,0,0},
    {0,0,0,0,0,1,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0},
    }
    local area = createCombatArea(arr)
    setCombatArea(combat, area)
    function onCastSpell(cid, var)
    return doCombat(cid,
    combat, var)
    end
    Taí, quem me ajudar a arruma essa spell dou rep+
  7.  

    Alguem Ajuda Ai krl ._.

     

    Cara, eu não sei como é aí na sua casa, mas aqui no fórum a gente pede um mínimo de educação. Aqui ninguém tem obrigação de ajudar, as pessoas ajudam porque querem, quando querem. Então acho que agora você pode ver como esse seu comentário não faz sentido, né? Se quiser, procura direito que aposto que já postaram isso aqui e tem em algum lugar ensinando, então deixa de ser preguiçoso e ficar exigindo ajuda dos outros e se vira.

     

     

    Cara, n sei se vc me entendeu bem, mais eu falei isso so pra volta o tópico pro inicio pq eu n tinha nada mais pra falar, eu sei que n foi tão educado da minha parte mais nem por isso vc precisa me da 1 sermão de boas maneiras, vc n deve me conhecer então acho por isso que vc falo assim cmg e talz, mais nem por isso vamos ficar discutindo certo? n falei isso pra incomodar ninguém se e oque está pensando, mais como vc e da equipe do xtibia acho que esse e o seu dever e etc(ok, falei d+ tbm...)

     

    Junior001 -- Obrigado Pela Ajuda, Consegui fazer as magias...

  8. bem não sei se essa e a areá correta, se não for movam pra area correta!

    Nunca imaginei que isso iria ocorrer, no teste que eu estava fazendo a database era nova, não tinha accounts... então obviamente não deu erro!!!

     

    Mas quando fui fazer o update, foi diferente.. ela tentou ler as Accounts que já existiam e não conseguiu, ai dava Account Incorret!

     

    o Server e versão 8.54 meu amigo ta querendo por pro 8.60 e possivel?????

     

    Esse erro e de um amigo se alguem ajudar eu prometo que do rep+ DIARIO!

  9. naruto.png

     

    ~Exp:999

    ~rateExperienceFromPlayers = 70

    ~rateSkill = 2

    ~rateMagic = 1

    ~rateLoot = 7.0

    ~rateSpawn = 7

     

    Ip: 25.159.201.45

    Verção:8.54

     

    Vocações Novas:Madara, Obito, Sasori, Hashirama, Anbu, Orochimaru, Jiraya, Pain.

     

    Baixe o Client Abaixo para evitar Bugs nas Transforms e para evitar debugs no jogo

     

    Download Client:http://www.4shared.c...o_Extreme.html?

    Download Ip Changer: http://baixe.net/dow...bia-ip-changer/

     

    Download Hamachi:http://hamachi.en.softonic.com/

     

    Salas Hamachi:

    Id da Rede: Nto Extreme - 001 Senha:123

    Id da Rede: Nto Extreme - 002 Senha:123

    Id da Rede: Nto Extreme - 003 Senha:123

    Id da Rede: Nto Extreme - 004 Senha:123

    Id da Rede: Nto Extreme - 005 Senha:123

    Id da Rede: Nto Extreme - 006 Senha:123

    Id da Rede: Nto Extreme - 007 Senha:123

    Id da Rede: Nto Extreme - 008 Senha:123

    Id da Rede: Nto Extreme - 009 Senha:123

    Id da Rede: Nto Extreme - 010 Senha:123

    Id da Rede: Nto Extreme - 011 Senha:123

     

    Presisa De Hamashi Infelismente, quem puder me ajudar a fazer Sem Hamachi Manda PM.PQ Quando eu coloco Ip Fixo Os cara num entra no meu sv, e quando eu coloco hamachi ai eles conseguem entrar.

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...