Botcheck Kontrol Sistemi

Admin

Kurucu Admin
Katılım
22 Ara 2020
Mesajlar
492
Çözümler
1
Tepkime puanı
13,889
Puanları
160
Konum
Kütahya
Web
ko-yardim.com
Herhangi bir canavarı/metin taşını kısaca herhangi bir canavar öldürdükten 680 - 1080 saniye aralığında rastgele bir şekilde önümüze çıkıyor, doğru şifreyi girdikten sonra ekran kapanıyor, yanlış girildiğinde oyuncuyu oyundan kickliyor(!).
Not: benim filesimde dc fonksiyonu olmadığı için eklemedim,
PHP:
 if choice == correct_pw then
                say("You have chosen the correct password, you can continue to farm.")
            else
                say("I hope you're not a bot and you just chose the password wrong..")
else'den sonra dc fonksiyonunu yazarsanız oyuncuyu kicklemeyi yaparsınız.
PHP:
quest botcheck begin
    state start begin
        when kill begin
            local random_sec = math.random(680,1080)
            timer("open", random_sec)
        end
        when open.timer begin
            say("Prove that you are not a bot!")
            say("")
            say("")
            local options = {math.random(10000,99999), math.random(10000,99999), math.random(10000,99999), math.random(10000,99999)}
            local correct_pw = math.random(1,4)
            say(options[correct_pw])
            local correct_pw_value = options[correct_pw]
            local choice = select(tostring(options[1]), tostring(options[2]), tostring(options[3]), tostring(options[4]))
            if choice == correct_pw then
                say("You have chosen the correct password, you can continue to farm.")
            else
                say("I hope you're not a bot and you just chose the password wrong..")
            end
        end
    end
end
 
Reklam