antiblock
https://arwen2.global/
  • Chatbox

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

Descontar Item

Question

Boas pessoal, tenho itens tipo Poções Roxas a funcionar perfeitamente mas não desconta, como fazer para descontar?

É que a quantidade fica sempre no mesmo valor.


Obrigado

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Podes usar uma quest,

quest use_items begin
	state remove begin
		when #.use begin
			pc.remove_item(#, 1) -- (ID, QUANTIDADE)
		end
	end
end
Substitui o # pelo ID do item.

Share this post


Link to post
Share on other sites
antiblock
https://arwen2.global/
  • 0

Podes usar uma quest,

quest use_items begin
	state remove begin
		when #.use begin
			pc.remove_item(#, 1) -- (ID, QUANTIDADE)
		end
	end
end
Substitui o # pelo ID do item.

 

 

Já tentei por quest, já tentei alterar no item_proto.txt serverside e nada... :/

Nas capas isso funciona.

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