Questul sa deschida o pagina, cu un text si doua actiuni "Yes" si "No", daca dai pe "Yes" sa te dea, pe o noua pagina, pe acea pagina sa fie doua actiuni, de cumparare a doua lingouri, lingou de 100kk si de 500kk. (Codurile itemelor, le am scrise in exemplul de mai jos, pe care am incercat sa-l fac)
Uitati questul, nefunctional. Va rog sa il faceti functional. Multumesc.
Ultima modificare cod 8.08.2016 ora 23:22 (Am mai modificat ceva, dar tot nu functioneaza)
Cod: Selectaţi tot
quest lingou begin
state start begin
when 9005.chat."Cumpara lingou / Buy Ingot" begin
say_title("Cumpara lingou / Buy Ingot")
say_albastru2("RO")
say("Salutare.")
say("Doresti sa cumperi un lingou?")
say("Avem o lista variata, doresti sa o afisez?")
say("")
say_albastru2("EN")
say("Hello.")
say("Do you want to buy an Ingot?")
say("We have a varied list. Do you want to see the list?")
say("")
say("")
say("")
say_verde2("F Metin2")
say("")
vezi_cl=select("Yes", "No")
if vezi_cl == 1 then
local cluri=select("Lingou / Ingot 100kk", "Lingou / Ingot 500kk")
if cluri== 1 then
say_title("Lingou / Ingot 100kk")
say_albastru2("RO")
say("Doresti sa cumperi un Lingou de 100kk Yang?")
say("")
say_galben("RETINE: Doar eu pot sa iti ofer suma intreaga de Yang,")
say_galben("in schimbul lingoului, fara nici un comision.")
say_galben("SFAT: Nu vinde lingoul in magazin.")
say("")
say_albastru2("EN")
say("Do you want to buy an Ingot 100kk Yang?")
say("")
say_galben("REMEMBER: I can only to give you the entire amount of Yang,")
say_galben("in exchange ingot, without any commission.")
say_galben("ADVICE: You don't sell the Ingot in the shop.")
say("")
say_reward("Cost: 100.000.000 Yang.")
say("")
say_verde2("F Metin2")
say("")
s = select("Yes","No")
if s == 2 then
return
elseif pc.get_gold()<99999999 then
say_title("Lingou / Ingot 100kk")
say_albastru2("RO")
say("Din pacate, nu iti pot da lingoul. Acesta nu este")
say("gratuit.")
say("Intoarce-te la mine cand ai 100.000.000 yang.")
say("")
say_albastru2("EN")
say("Unfortunately, I can't give you Ingot. It isn't")
say("free.")
say("")
say("")
say_galben("O zi minunata! / Have a nice day!")
say_verde2("Echipa / Team:")
say_verde2("F Metin2")
return
end
pc.give_item2(80004, 1)
pc.change_gold(-99999999)
syschat("F Metin2")
syschat("RO: Tocmai ai cumparat un Lingou cu 100.000.000 Yang .")
syschat("EN: You bought an Ingot with 100.000.000 Yang .")
end
if cluri== 2 then
say_title("Lingou / Ingot 500kk")
say_albastru2("RO")
say("Doresti sa cumperi un Lingou de 500kk Yang?")
say("")
say_galben("RETINE: Doar eu pot sa iti ofer suma intreaga de Yang,")
say_galben("in schimbul lingoului, fara nici un comision.")
say_galben("SFAT: Nu vinde lingoul in magazin.")
say("")
say_albastru2("EN")
say("Do you want to buy an Ingot 500kk Yang?")
say("")
say_galben("REMEMBER: I can only to give you the entire amount of Yang,")
say_galben("in exchange ingot, without any commission.")
say_galben("ADVICE: You don't sell the Ingot in the shop.")
say("")
say_reward("Cost: 500.000.000 Yang.")
say("")
say_verde2("F Metin2")
say("")
s = select("Yes","No")
if s == 2 then
return
elseif pc.get_gold()<500000000 then
say_title("Lingou / Ingot 500kk")
say_albastru2("RO")
say("Din pacate, nu iti pot da lingoul. Acesta nu este")
say("gratuit.")
say("Intoarce-te la mine cand ai 500.000.000 yang.")
say("")
say_albastru2("EN")
say("Unfortunately, I can't give you Ingot. It isn't")
say("free.")
say("")
say("")
say_galben("O zi minunata! / Have a nice day!")
say_verde2("Echipa / Team:")
say_verde2("F Metin2")
return
end
pc.give_item2(80006, 1)
pc.change_gold(-500000000)
syschat("F Metin2")
syschat("RO: Tocmai ai cumparat un Lingou cu 500.000.000 Yang .")
syschat("EN: You bought an Ingot with 500.000.000 Yang .")
end
end
end
end





