1. Intrati in /usr/.../game/share/locale/.../quest deschideti fisierul questlib.lua si adaugati la sfarsitul acestuia :
Cod: Selectaţi tot
function give_md(z)
os.execute("mysql -u root --password='PAROLA' account --execute='UPDATE account SET coins = coins + ".. z .." WHERE id = ".. pc.get_account_id() ..";'")
os.execute("mysql -u root --password='PAROLA' log --execute='INSERT INTO voucher_log (account_id, monede, data) VALUES (".. pc.get_account_id() ..", ".. z ..", NOW());'")
endgive_md
!!!Atentie!!!Verificati ca la pasul 1 si 2 sa nu existe deja codurile!!!
3.Descarcati fisierul:

Cod: Selectaţi tot
parola este: pro-area.com4.Creati un fisier voucher(sau ce nume doriti).quest.Acolo inserati questul de mai jos.Questul il bagati in
/usr/.../game/share/locale/.../quest.
Acesta este questul pentru cei care au si 50MD implementat.
Cod: Selectaţi tot
quest vouchers begin
state start begin
when 80017.use begin
say_title("Voucher Monede Dragon")
say("Ai primit 50 Monede Dragon")
give_md(50)
pc.remove_item(80017)
end
when 80014.use begin
say_title("Voucher Monede Dragon")
say("Ai primit 100 Monede Dragon")
give_md(100)
pc.remove_item(80014)
end
when 80015.use begin
say_title("Voucher Monede Dragon")
say("Ai primit 500 Monede Dragon")
give_md(500)
pc.remove_item(80015)
end
when 80016.use begin
say_title("Voucher Monede Dragon")
say("Ai primit 1000 Monede Dragon")
give_md(1000)
pc.remove_item(80016)
end
end
endCod: Selectaţi tot
"when 80017.use begin
say_title("Voucher Monede Dragon")
say("Ai primit 50 Monede Dragon")
give_md(50)
pc.remove_item(80017)
end"Cod: Selectaţi tot
Intrati in item_proto (server si client) si modificati "limittype0=val." si "limitvalue0=val." [val.=va apare un numar acolo] in:"limittype0=0" si "limitvalue0=0"Cod: Selectaţi tot
/i 80014In caz contrar urmariti tutorialul de mai jos pentru implementarea lor.
Cod: Selectaţi tot
http://just4metin.ro/other/vouchere-monede-dragon-functional-100-t771.htmlCod: Selectaţi tot
http://just4metin.ro/resurse-metin2/uri-inventar-t16696.htmlSucces la implementat!!!
-- Dum Ian 24, 2016 5:04 pm --
UP pareri?







