Ultima modifica da un moderatore:
Salve, ecco per voi la mia quarta quest niente male! Appena arrivati al livello 75 riceverete una lettera che vi dice di recarvi dal Pescatore per poter giocare a un semplice gioco creato da me. Dal Pescatore potrete consultare la lista premi e giocare. Il gioco è semplice, basterà cliccare un personaggio e vedere se avete vinto un premio ovviamente potrete giocare una volta ogni 24 ore.
La quest l'ho compilata e non ha nessun errore però non l'ho provata in gioco.
PHP:
-------------------------------------
------ TryNow Vol.1 (Easy 2 Learn)
---- Scripted by /TfF\ReckLess
-- The Favorites Few - Clan Game
-------------------------------------
quest trynow begin
state start begin
function a()
say_title("~ReckLess~")
end
function b()
say_title("Pescatore:")
end
when letter with pc.level() >= 75 begin
send_letter("Giocare su Metin2?")
end
when info or button begin
trynow.a()
say(pc.get_name() .. ", sapeva che e' possibile giocare su Metin2?")
say("Ora che lei è livello 75 puo' avere accesso")
say("a questo meraviglioso gioco tramite il pescatore.")
say("Le ricordo pero' che e' possibile giocare ogni 24 ore.")
say("")
say_reward("Si rechi dal pescatore per maggiori informazioni.")
set_state("run")
end
end
state run begin
when 9009.chat."Tenta la fortuna!" begin
if pc.getqf("first_play") == 0 then
pc.setqf("first_play", 1)
trynow.b()
say("La stavo aspettando " .. pc.get_name())
say("Le avrà appunto detto ReckLess che si puo'")
say("giocare su Metin2 vero?")
say("Il gioco è facile, le bastera' premere")
say("su un qualsiasi personaggio e vedere se poi")
say("vince qualcosa, ma le ricordo che puo'")
say("giocare solo una volta al giorno.")
return
else
trynow.b()
say(pc.get_name() .. ", cosa vuole fare?")
chose = select ("Gioca","Premi","Esci")
if chose == 3 then
return
elseif chose == 2 then
trynow.b()
say("Ecco a lei la lista dei premi:")
say("")
say_reward("[1st] 200.000.000 EXP")
say_reward("[2nd] 100.000.000 EXP")
say_reward("[3rd] 50.000.000 EXP")
say("")
say("Attualmente sono disponibili solo questi premi.")
return
else
if get_time() < pc.getqf("next_time") then
trynow.b()
say("Non puo' ancora giocare, deve aspettare 24 ore.")
return
else
pc.setqf("next_time", get_time()+ 24*60*60)
trynow.b()
say(pc.get_name() .. ", scegli un personaggio:")
chose2 = select ("Fabbro","Bottegaia","Stalliere")
if chose2 == 1 then
fabbro = math.random(15)
if fabbro == 5 then
trynow.b()
say("Complimenti " .. pc.get_name() .. " hai vinto il terzo premio!")
say("")
say_reward("Hai ricevuto 50.000.000 EXP")
pc.give_exp2(50000000)
return
elseif fabbro == 10 then
trynow.b()
say("Complimenti " .. pc.get_name() .. " hai vinto il secondo premio!")
say("")
say_reward("Hai ricevuto 100.000.000 EXP")
pc.give_exp2(100000000)
return
elseif fabbro == 15 then
trynow.b()
say("Complimenti " .. pc.get_name() .. " hai vinto il primo premio!")
say("")
say_reward("Hai ricevuto 200.000.000 EXP")
pc.give_exp2(200000000)
return
else
trynow.b()
say("Mi dispiace ma oggi non ha vinto niente.")
return
end
elseif chose2 == 2 then
bottegaia = math.random(15)
if bottegaia == 5 then
trynow.b()
say("Complimenti " .. pc.get_name() .. " hai vinto il terzo premio!")
say("")
say_reward("Hai ricevuto 50.000.000 EXP")
pc.give_exp2(50000000)
return
elseif bottegaia == 10 then
trynow.b()
say("Complimenti " .. pc.get_name() .. " hai vinto il secondo premio!")
say("")
say_reward("Hai ricevuto 100.000.000 EXP")
pc.give_exp2(100000000)
return
elseif bottegaia == 15 then
trynow.b()
say("Complimenti " .. pc.get_name() .. " hai vinto il primo premio!")
say("")
say_reward("Hai ricevuto 200.000.000 EXP")
pc.give_exp2(200000000)
return
else
trynow.b()
say("Mi dispiace ma oggi non ha vinto niente.")
return
end
else
stalliere = math.random(15)
if stalliere == 5 then
trynow.b()
say("Complimenti " .. pc.get_name() .. " hai vinto il terzo premio!")
say("")
say_reward("Hai ricevuto 50.000.000 EXP")
pc.give_exp2(50000000)
return
elseif stalliere == 10 then
trynow.b()
say("Complimenti " .. pc.get_name() .. " hai vinto il secondo premio!")
say("")
say_reward("Hai ricevuto 100.000.000 EXP")
pc.give_exp2(100000000)
return
elseif stalliere == 15 then
trynow.b()
say("Complimenti " .. pc.get_name() .. " hai vinto il primo premio!")
say("")
say_reward("Hai ricevuto 200.000.000 EXP")
pc.give_exp2(200000000)
else
trynow.b()
say("Mi dispiace ma oggi non ha vinto niente.")
return
end
end
end
end
end
end
end
end
La quest l'ho compilata e non ha nessun errore però non l'ho provata in gioco.