antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
Ryzen

Lotaria Ajuda

Question

Boas , queria perguntar , se me conseguem meter a quest da lotaria a pedir 1 chave de diamante em vez de retirar 50.000 de gold.

Dou +1 , Cumpz

 

 

 

quest lotaria begin
   state start begin
   when 20031.chat."Lotaria" begin
   if 1 > get_global_time() - pc . getqf ( "lottery_last_play" ) then
   say ("Deves esperar 1 Hora antes de repetir o jogo")
   return
    end
    say_title ( "Aposta" )
    say ("Deves esperar 1 Hora antes de jogar novamente.")
    say_reward ("Precisas de: 1 Chave Magica")
    say ("Queres continuar?")
    local scelta = select ( "Sim","Não" )
    if scelta == 1 then
   if pc . gold >= 50000 then
   pc . changegold ( - 50000 )
   local k
   repeat
   say_title ( "Aposta" )
   say ( "Introduz um numero de 1 a 100" )
   say ("Se corresponder ao numero")
   say ("eligido podes ganhar")
   say ("....")
   k = tonumber(input())
   if k == nil then
   say_title("Aposta")
   say("Insere o numero!")
   local s = select("Continuar", "Anular")
   if s == 2 then
   return
   end
   else
   if k <= 0 then
   say_title("Aposta")
   say("Deves introduzir um numero positivo!")
   local s = select("Continuar", "Anular")
   if s == 2 then
   return
   end
   else
   if k > 3 then
   say_title("Aposta")
   say("Deves introduzir um numero entre 1 e 2")
   local s = select("Continuar", "Anular")
   if s == 2 then
   return
   end
   else
   break
   end
   end
   end
   until false
   say("Numero elegido: " .. k )
   wait ()
   say ("Agora procedemos o numero")
   local random_number = tostring(number(1,2))
   say("Numero elaborado: " .. random_number)
   if random_number == tostring(k) then
   say ("Que sortudo, acabas-te de ganhar 1 Traje !")
   say_reward ("Recebes-te um premio.")
   pc . give_item2 (11499)
   else
   say ("Sinto muito mas nem sempre se ganha!")
   end
   end
   pc.setqf("lottery_last_play" , get_global_time())
   return
    end
    end
    end
    end

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega

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