antiblock
https://arwen2.global/
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
andrezinho00780

[Pedido Sistema de moedas]

Question

Bom dia a todos, gostaria de solicitar um sistema ou uma quest para dar md´s aos jogadores a cada 1 hora jogada com o personagem. Alguém sabe me dizer se o mesmo existe?

Se existir e puderem disponibilizar agradeço.

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0
quest free_mds begin
	state start begin
		when login begin
			loop_timer("MD", 60)
		end

		when MD.timer begin
			mds_quantity = 1

			current_mds = mysql_query("SELECT mds FROM player.account WHERE id = '"..pc.get_account_id.."'")

			new_mds = current_mds + mds_quantity

			mysql_query("UPDATE account SET mds='"..new_mds.."' WHERE id='"..pc.get_account_id"'")
		end
	end
end

 

Algo como isto... não sei muito sobre a linguagem mas penso que isso não seja problema para ti, o timer fui buscar a um tópico com a mesma dúvida, experimenta se funciona e depois diz alguma coisa.

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0

De realçar que  se usares a quest do corvo tens de ter a coluna mds na tabela player mas normalmente a coluna para as moedas é coins, além disso o timer penso que é em segundos por isso acho que é assim 1 hora

loop_timer("MD", 60*60)

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