antiblock
Rodnia | Alpha & Omega
  • 0
ButchGraig

Itens não aparecem no MALL

Question

Configurei itemshop no site.

Quando compro o item, se for de 1 slot ele vai para o armazem de artigos, mas se ele é item de 2 slots (armas ou armaduras por exemplo), ele não aparece no armazem de artigos.

Share this post


Link to post
Share on other sites

19 answers to this question

  • 0

Me da este erro mano:

http://prntscr.com/f593mt

 

a quest que coloquei foi assim:

 

quest cofre_item begin
state start begin
when 53501.use begin
local premio = select("Traje Guerreiro M", "Traje Guerreiro F", "Sair")
if premio == 1 then
pc.give_item2(41029, 1)
else if premio == 2 then 
pc.give_item2(41030, 1)
else if premio == 3 then 
return
end
end
end
end
 

Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega
  • 0

Agora deu certo mano.

Só tem uma coisa, gostaria de que após escolher 1 dos itens, a caixa sumir.

Ou seja, conseguir usar apenas uma vez. 

Entendeu?

Share this post


Link to post
Share on other sites
  • 0
1 hora atrás, .รtгเкє disse:

Tenta assim separei os elseif

 

quest cofre_item begin
state start begin
when 53501.use begin
local premio = select("Traje Guerreiro M", "Traje Guerreiro F", "Sair")
if premio == 1 then
pc.give_item2(41029, 1)
elseif premio == 2 then 
pc.give_item2(41030, 1)
elseif premio == 3 then 
return
end
end
end
end

Agora deu certo mano.

Só tem uma coisa, gostaria de que após escolher 1 dos itens, a caixa sumir.

Ou seja, conseguir usar apenas uma vez. 

Entendeu?

Share this post


Link to post
Share on other sites
  • 0
8 minutos atrás, .รtгเкє disse:

quest cofre_item begin
state start begin
when 53501.use begin
local premio = select("Traje Guerreiro M", "Traje Guerreiro F", "Sair")


if premio == 1 then
pc.give_item2(41029, 1)

pc.remove_item(53501, 1)


elseif premio == 2 then 
pc.give_item2(41030, 1)

pc.remove_item(53501, 1)


elseif premio == 3 then 
return
end
end

end

end

Perfeito mano!

Muito obrigado pela ajuda e paciência que teve comigo.

Deu certo!

Abração.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now