Jump to content

Pedido - Quest prêmio por tempo logado


Recommended Posts

Não testada... mas acho que funciona!


quest give_item_everyhour begin
	state start begin
		when login begin 
			loop_timer("timer_give_item", 60*60) -- 60 segundos x 60 minutos == 1 item a cada hora
		when timer_give_item.timer begin
			local list = { 19, 1},{29, 1},{39, 1} }	-- lista dos itens a dropar
			local give = number(1, table.getn(list))
			game.drop_item_with_ownership(list[give][1], list[give][2])  --- Entrega o item no chão
			-- pc.give_item2(list[give][1], list[give][2]) 	--- entrega directamente no inevntário
	end --state
end --quest



Link to comment
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

  • Create New...