antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
aneccy

Boas Pessoal Estou Com Um Erro Numa Quest

Question

Boas pessoal criei uma quest para deletar itens em um NPC mas tenho um erro imaginem que eu tenho 10 pedras da alma, e arrasto 1 para la para eliminar, o que a quest faz é dizer o nome do item e dizer se quero apagar respondo sim e ele apaga todas as pedras da alma que tiver, eu so quero mesmo que apague 1, Help Plz

if item . get_id ( ) then Codigo = item . get_vnum ( ) 
numero = pc . count_item ( Codigo ) 
say_title ( "Excluir Itens" ) 
say ( "Então você quer excluir este artigo?" ) 
say_item_vnum ( Codigo ) 
say ( "Excluir " .. item . get_name ( ) .. " ?" ) 
local s = select ( "Sim Quero" , "Não Obrigado" ) 
if s == 1 then 
pc . remove_item ( Codigo , numero ) 
elseif s == 2 then 
return 
end 
 return end 

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Resolvido por mim agora apaga 1 cena de cada vez aproveitem =)

if item . get_id ( ) then Codigo = item . get_vnum ( ) 
numero = pc . count_item ( Codigo ) 
say_title ( "Excluir Itens" ) 
say ( "Então você quer excluir este artigo?" ) 
say_item_vnum ( Codigo ) 
say ( "Excluir " .. item . get_name ( ) .. " ?" ) 
local s = select ( "Sim Quero" , "Não Obrigado" ) 
if s == 1 then 
pc . remove_item ( Codigo , 1 ) 
elseif s == 2 then 
end 
 return end 

Share this post


Link to post
Share on other sites
antiblock
Elveron

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
Sign in to follow this