Jump to content

Loto


UNK3N0W7

Recommended Posts

M2 Download Center

This is the hidden content, please
( Internal )

 

quest lotaria begin
    state start begin
   when 20041.chat."Lotaria" begin
   if 30 > get_global_time() - pc . getqf ( "lottery_last_play" ) then
   say ("You must wait 30 seconds before repeating the game")
   return
    end
    say_title ( "bet" )
    say ("You must wait 30 seconds before repeating the game.")
    say_reward ("You need: 50.000 Yang")
    say ("Do you want to continue?")
    local scelta = select ( "Yes","No" )
    if scelta == 1 then
   if pc . gold >= 50000 then
   pc . changegold ( - 50000 )
   local k
   repeat
   say_title ( "bet" )
   say ( "Introduces a number 1-20" )
   say ("If correspond to the number")
   say ("elected can win")
   say ("higher premium50.000.000 Yang!!")
   k = tonumber(input())
   if k == nil then
   say_title("bet")
   say("Insere o numero!")
   local s = select("continue", "cancel")
   if s == 2 then
   return
   end
   else
   if k <= 0 then
   say_title("bet")
   say("You must enter a positive number!")
   local s = select("Continue", "Cancel")
   if s == 2 then
   return
   end
   else
   if k > 20 then
   say_title("bet")
   say("Introduces a number 1-20")
   local s = select("Continue", "Cancel")
   if s == 2 then
   return
   end
   else
   break
   end
   end
   end
   until false
   say("number elected: " .. k )
   wait ()
   say ("Now we proceed the number")
   local random_number = tostring(number(1,20))
   say("elaborated number: " .. random_number)
   if random_number == tostring(k) then
   say ("That lucky, you just win 50kk!")
   say_reward ("You receive 50.000.000 Yang")
   pc.changegold ( 50000000 )
   else
   say ("I'm sorry but does not always win!")
   end
   end
   pc.setqf("lottery_last_play" , get_global_time())
   return
    end
    end
    end
    end
  • Metin2 Dev 3
  • Good 2
  • Love 1
  • Love 5
Link to comment
Share on other sites

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.