UNK3N0W7 373 Posted April 22, 2014 Share Posted April 22, 2014 M2 Download Center This is the hidden content, please Sign In or Sign Up ( 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 3 2 1 5 Link to comment Share on other sites More sharing options...
mhmdhjere 15 Posted June 9, 2014 Share Posted June 9, 2014 Thank You ! Link to comment Share on other sites More sharing options...
Recommended Posts