ButchGraig 4 Posted May 4, 2017 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
0 ButchGraig 4 Posted May 7, 2017 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
0 ButchGraig 4 Posted May 7, 2017 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 ButchGraig 4 Posted May 7, 2017 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 ButchGraig 4 Posted May 8, 2017 8 minutos atrás, .รtгเкє disse: quest cofre_item beginstate start beginwhen 53501.use beginlocal premio = select("Traje Guerreiro M", "Traje Guerreiro F", "Sair") if premio == 1 thenpc.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 returnendend 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
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