antiblock
Elveron
  • 0
Sign in to follow this  
Apolo

Problema Na Quest , Um Erro Simples..

Question

quest cofre begin	state start begin		when 50034.use begin			local item_table =			{ 50821 , 50822 , 50823 , 50825 , 50826 , [etc] }			local Irandom = number(1,table.getn(item_table) )			if pc.get_empty_inventory_count() > 0 then				chat("Cofre: Recebeste "..item_table[Irandom] )				local reward = item_table[Irandom]				pc.give_item2(reward, 10 )				item.remove()			else				chat("Não podes usar o cofre porque não tens espaço no inventário!")				return			end		end	endend

pessoal alguem me diz o que está errado aqui e o que falta ? sff

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0
quest cofre begin	state start begin		when 50034.use begin			local item_table =			{ 50821 , 50822 , 50823 , 50825 , 50826 }			local Irandom = number(1,table.getn(item_table) )			if pc.get_empty_inventory_count() > 0 then				chat("Cofre: Recebeste "..item_table[Irandom] )				local reward = item_table[Irandom]				pc.give_item2(reward, 10 )				item.remove()			else				chat("Não podes usar o cofre porque não tens espaço no inventário!")				return			end		end	endend 

Resolvi sem querer oO xd

podem fechar

Share this post


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

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