[Quest] - Monede Dragon la fiecare oră online

#1

Cod: Selectaţi tot

quest monede_dragon_automat begin
	state start begin
		when login begin
		local timp = 3600
		local monede = mysql_query("SELECT coins from account.account WHERE id="..pc.get_account_id().." LIMIT 1;")[1][1]
			syschat("|cff56ff00|H|h[Metin2A]|h|r : In momentul de fata ai |cffffa700|H|h" .. monede .. "|h|r monede dragon.")
			loop_timer("incarcare_monede", timp)
		end
		when incarcare_monede.timer begin
	local suma_monede = 1
			local selectare_tabel = mysql_query("SELECT coins from account.account WHERE id="..pc.get_account_id().." LIMIT 1")
			local incarcare_monede = mysql_query("UPDATE account.account SET coins ='"..(selectare_tabel.coins[1]+suma_monede).."' WHERE id="..pc.get_account_id().." LIMIT 1")
	syschat("|cff56ff00|H|h[Metin2A]|h|r : A mai trecut o ora de cand esti online, contul tau a fost acreditat cu |cffffa700|H|h".. suma_monede .."|h|r monede dragon.")
			local monede = mysql_query("SELECT coins from account.account WHERE id="..pc.get_account_id().." LIMIT 1;")[1][1]
	syschat("|cff56ff00|H|h[Metin2A]|h|r : In momentul de fata ai |cffffa700|H|h" .. monede .. "|h|r monede dragon.")
		end
	end
end
1.Unde este :

Cod: Selectaţi tot

local timp = 3600
Inlocuim 3600 cu numarul de secunde la care sa fie oferite monedele
2.Unde este :

Cod: Selectaţi tot

local suma_monede = 1
Inlocuim 1 cu ce valoare de monede dorim sa primeasca jucatorul

Poza:
Imagine
Imagine
Imagine
Imagine
Imagine

Înapoi la “[Resurse] Quest-uri”

Cine este conectat

Utilizatori răsfoind acest forum: Niciun utilizator înregistrat și 2 vizitatori