Çözüldü Jackpot Skript yardım

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

clow242

Birisi mi Spawnlandı?
Katılım
11 Mart 2021
Mesajlar
5
Elmaslar
1
Puan
75
Yaş
28
Minecraft
rakshana

Discord:

Krylex#3233

Öncelikle merhabalar skript hakkında az çok bilgim var fakat nasıl yapabileceğimi bilemedim bir çözüme kavuşturamadım eğer biliyorsanız yardımcı olabilirseniz gerçekten çok mutlu olurum, vicdum jackpot skripti var sunucumda sınırsız para basabiliyorsun ve sonradan tekrar tekrar para basıp girebiliyorum örnek olarak, jackpot'a en fazla 10m para basma koymak istiyorum 10m üstü para basamasınlar ve birde bir kere oynayan oyuncu birdaha o el giremesin diğer el girebilsin acaba yardımcı olabilir misiniz



Skript :




options:
prefix: &4&lF&f&lC &8&l»&7
otomatik çekiliş: 1 # ( 1 - açık / 0 - kapalı)
minimum katılım: 2
maksimum katılım: 50
versiyon: 2.0 # Burası sadece karşılaştırmanız için!

every 15 minutes:
{@otomatik çekiliş} is 1:
jackpot()

function jackpot():
size of {jackpot::liste::katılan::*} is bigger than {@minimum katılım}
set {jackpot::dönüyor} to 1
set {_z} to 6
loop 5 times:
remove 1 from {_z}
broadcast "{@prefix} JackPot için son %{_z}% saniye."
wait 1 second
broadcast "{@prefix} JackPot dönüyor, katılan herkese bol şans!"
wait 1 second
loop {jackpot::liste::katılan::*}:
set {_sans} to (1/({jackpot::liste::yatırılan}/{jackpot::%loop-value%::yatırılan}))*100
set {_sans} to rounded {_sans}
loop {_sans} times:
add loop-value-1 to {_jackpotdönüyor::*}
wait 1 second
set {_kazanan} to random element out of {_jackpotdönüyor::*}
wait 1 second
broadcast "{@prefix} &3JackPot kazananı &a%{_kazanan}%!%nl% &3Yatırdığı Para &8&l► &f%{jackpot::%{_kazanan}%::yatırılan}%$%nl% &3Toplam Kazandığı Para &8&l► &f%{jackpot::liste::yatırılan}%$"
wait 3 tick
add {jackpot::liste::yatırılan} to {_kazanan}'s money
wait 3 tick
delete {jackpot::*}

command /jackpot [<int>]:
usage: /jackpot [<Yatırılacak Miktar>]
aliases: jp
trigger:
arg 1 is not set:
{jackpot::liste::yatırılan} is not set:
set {jackpot::liste::yatırılan} to 0
create a gui with virtual chest with 6 rows named "&4&lJack&f&lPot":
make gui integers from 1 to 52 with black stained glass pane
make gui 0 with paper named "&7&l» » » &a&lBilgiler &7&l« « «" with lore "&eKatılan Kişi Sayısı &8&l► &f%size of {jackpot::liste::katılan::*}% Kişi||&ePottaki Para &8&l► &f%{jackpot::liste::yatırılan}%$"
make gui 53 with sunflower named "&7&l&m » » » » »&r &aPara Yatır &7&l&m« « « « «":
execute player command "/jackpot 10000"
set {_x} to 0
loop {jackpot::liste::katılan::*}:
add 1 to {_x}
set {_sans} to (1/({jackpot::liste::yatırılan}/{jackpot::%loop-value%::yatırılan}))*100
make gui {_x} with loop-value's skull named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "||&eOyuncu &8&l► &f%loop-value%||&eYatırılan &8&l► &f%{jackpot::%loop-value%::yatırılan}%$||&eŞans &8&l► &f%%%{_sans}%||||&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «"
open last gui to player
arg 1 is set:
arg is bigger than 0:
{jackpot::dönüyor} isn't set:
size of {jackpot::liste::katılan::*} is bigger than {@maksimum katılım}:
send "{@prefix} Üzgünüm, JackPot'a maksimum sayıda kişi katılmış."
stop
player's money is less than arg:
send "{@prefix} JackPot'a yatırmak istediğin kadar paran yok."
stop
set {m::%player%} to arg
create a gui with virtual chest named "&4&lJack&f&lPot" and shape "xxxxxxxxxxqwexaxdxxxxxxxxxz":
make gui slot "x" with black stained glass pane
make gui slot "q" with iron ingot named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "&eSol Tıklayarak||&a10.000$ Ekle||&eSağ Tıklayarak||&c10.000$ Azalt":
gui-click-action is left mouse button:
add 10000 to {m::%player%}
make gui slot 14 with glowing sunflower named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "||&eYatıracağın miktar &8&l► &f%{m::%player%}% $"
gui-click-action is right mouse button:
{m::%player%} is bigger than 9999
remove 10000 from {m::%player%}
make gui slot 14 with glowing sunflower named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "||&eYatıracağın miktar &8&l► &f%{m::%player%}% $"
make gui slot "w" with gold ingot named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "&eSol Tıklayarak||&a100.000$ Ekle||&eSağ Tıklayarak||&c100.000$ Azalt":
gui-click-action is left mouse button:
add 100000 to {m::%player%}
make gui slot 14 with glowing sunflower named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "||&eYatıracağın miktar &8&l► &f%{m::%player%}% $"
gui-click-action is right mouse button:
{m::%player%} is bigger than 99999
remove 100000 from {m::%player%}
make gui slot 14 with glowing sunflower named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "||&eYatıracağın miktar &8&l► &f%{m::%player%}% $"
make gui slot "e" with diamond named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "&eSol Tıklayarak||&a1.000.000$ Ekle||&eSağ Tıklayarak||&c1.000.000$ Azalt":
gui-click-action is left mouse button:
add 1000000 to {m::%player%}
make gui slot 14 with glowing sunflower named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "||&eYatıracağın miktar &8&l► &f%{m::%player%}% $"
gui-click-action is right mouse button:
{m::%player%} is bigger than 999999
remove 1000000 from {m::%player%}
make gui slot 14 with glowing sunflower named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "||&eYatıracağın miktar &8&l► &f%{m::%player%}% $"
make gui slot "a" with glowing sunflower named "&7&l&m » » » » »&r &4Jack&fPot &7&l&m« « « « «" with lore "||&eYatıracağın miktar &8&l► &f%{m::%player%}% $"
make gui slot "d" with nether star named "&7&l&m » » » » »&r &aOnayla &7&l&m« « « « «":
{m::%player%} is bigger than 0:
remove {m::%player%} from player's money
{jackpot::liste::katılan::*} contains player:
add {m::%player%} to {jackpot::%player%::yatırılan}
add {m::%player%} to {jackpot::liste::yatırılan}
set {_sans} to (1/({jackpot::liste::yatırılan}/{jackpot::%player%::yatırılan}))*100
send "{@prefix} JackPot'a para yatırdın!%nl%&eToplam Yatırdığın Para &8&l► &f%{jackpot::%player%::yatırılan}%$%nl%&eŞans &8&l► &f%%%{_sans}%"
delete {m::%player%}
else:
add player to {jackpot::liste::katılan::*}
add {_x} to {jackpot::%player%::yatırılan}
add {_x} to {jackpot::liste::yatırılan}
set {_sans} to (1/({jackpot::liste::yatırılan}/{jackpot::%player%::yatırılan}))*100
send "{@prefix} JackPot'a para yatırdın!%nl%&eToplam Yatırdığın Para &8&l► &f%{jackpot::%player%::yatırılan}%$%nl%&eŞans &8&l► &f%%%{_sans}%"
delete {m::%player%}
else:
send "{@prefix} Geçersiz bir değer girdin!" to player
make gui slot "z" with barrier named "&7&l&m » » » » »&r &aListeye Dön &7&l&m« « « « «":
execute player command "/jackpot"
run when close gui:
delete {m::%player%}
open last gui to player
else:
send "{@prefix} JackPot şuanda dönüyor, lütfen bitmesini bekle."
else:
send "{@prefix} Geçersiz bir değer girdin!"
 
Bunu baştan yapmak yerine sana bir tane önerebilirim
Kod:
options:
    1biletpara: 1000 #Her Biletin Fiyatı
    restartdakika: 1 #Kaç Dakikada Bir Yeni raund başlasın?
    prefix: &8[&6Jackpot&8] &7 #Mesaj Prefixi
    otomesaj: on
    mesajdelay: 3 #Kaç Dakikada Bir Bilgi MEsajı Yollasın
    duyurumesaj: Bu Sunucu dSK Jackpot KUllanıyor Katılabilmek İçin: /jackpot
    adminyetki: dSK.jackpot.admin

command /jackpot [<text>] [<int>]:
    aliases: /pot
    trigger:
        arg 1 is set:
            arg 1 is "ne":
                send "{@prefix} Sistemi Ortaya Herkesin Bir Para Yatırdığı"
                send "&7Tamamen Şansa Bir Şekilde Bir Kişinin Kazandığı Bir İhale Sistemidir"
            arg 1 is "durum":
                if {başladı.jackpot} is set:
                    send "{@prefix} Katılanlar: &6%{jackpottakiler::*}%"
                    send "{@prefix} Devredilecek Para %{potpara::*}%"
                    send "{@prefix} Çekilmesine Kalan Süre: %{bitecek.sure}%Dakika %{bitecek.s}%Saniye"
                    send "{@prefix} Senin Yatırdığın Para:$%{yatırdı.%player%}%"
                else:
                    send "&6{@prefix} Aktif Değil"
            arg 1 is "kazanç":
                if {başladı.jackpot} is set:
                    send "{@prefix} Pottan Toplam Kazancınız: $-%{yatırdı.%player%}%"
                else:
                    send "&6{@prefix} Aktif Değil"
            arg 1 is "başlat":
                if {başladı.jackpot} is not set:
                    set {başladı.jackpot} to true
                    set {bitecek.sure} to "&41"
                    set {bitecek.s} to "&40"
                    broadcast "{@prefix} Pot Başladı Yatırmak İçin /jackpot yatır [<miktar>]"
                    wait 30 second
                    broadcast "{@prefix} 30 Saniye Kaldı"
                    wait 27 second
                    broadcast "{@prefix} 3"
                    wait 1 second
                    broadcast "{@prefix} 2"
                    wait 1 second
                    broadcast "{@prefix} 1"
                    wait 1 second
                    loop all players:
                        set {jkazanan} to random element of {jackpottakiler::*}
                        send "{@prefix} Jackpot Bitti"
                        broadcast "{@prefix} Kazanan %{jkazanan}%"
                        set {_miktar} to {potpara}
                        set {_miktar} to {_miktar} parsed as number
                        execute console command "eco give %{jkazanan}% %{yatırdı.%loop-player%}%000"
                        delete {başladı.jackpot}
                        delete {potpara::*}
                        delete {yatırdı.%loop-player%}
                        delete {başladı.sure}
                        delete {başladı.s}
                        delete {jackpottakiler::*}
                        delete {_miktar}
                        delete {jkazanan}
                else:
                    send "{@prefix} Zaten Aktif"
            arg 1 is "yatır":
                arg 2 is set:
                    set {_grk1} to arg-2 * 1000
                    if player's balance is greater than {_grk1}:
                        if {başladı.jackpot} is set:
                            loop all players:
                                add arg-2 to {potpara::*}
                                add arg-2 to {yatırdı.%player%}
                                add player to {jackpottakiler::*}
                                execute console command "eco take %player% %arg 2%000"
                                broadcast "{@prefix} &6%player% &7pota &6+%arg 2% bilet &7ekledi! (Dönen Para %{yatırdı.%loop-player%}%)"
                        else:
                            send "{@prefix} Aktif değil"
                    else:
                        send "{@prefix} Yeterli Paraya Sahip Değilsin"
                else:
                    send "{@prefix} Miktar Girmeliydin"
            arg 1 is "ekstra":
                arg 2 is set:
                    set {_grk} to arg-2 * 1000
                    if player's balance is greater than {_grk}:
                        if {başladı.jackpot} is set:
                            loop all players:
                                add arg-2 to {potpara::*}
                                add arg-2 to {yatırdı.%player%}
                                add player to {jackpottakiler::*}
                                execute console command "eco take %player% %{_grk}%"
                                add {_grk} to {%player%.aktif}
                                broadcast "{@prefix} &6%player% &7pota &6+%arg 2% bilet &7ekledi! (Dönen Para %{yatırdı.%loop-player%}%)"
                        else:
                            send "{@prefix} Aktif Değil"
                    else:
                        send "{@prefix} Yeterli Paraya Sahip Değilsin"
                else:
                    send "{@prefix} Miktar Girmeliydin"
            arg 1 is "sonlandır":
                if player has permission "{@adminyetki}":
                    delete {başladı.jackpot}
                    delete {potpara}
                    delete {yatırdı.%player%}
                    delete {başladı.sure}
                    delete {başladı.s}
                    delete {jackpottakiler}
                    send "{@prefix} Başarılı"
                else:
                    send "{@prefix} Yetkin Yok"
            arg 1 is "reload":
                if player has permission "{@adminyetki}":
                    execute player command "sk reload b"                 
        else:
            send "{@prefix}"
            send "{@prefix} &6/jackpot ne &c-> &4Açıklama"
            send "{@prefix} &6/jackpot yatır [Miktar] &c-> &4Bilet Yatırma"
            send "{@prefix} &6/jackpot durum &c-> &4Şuanki Pot Hakkında bilgi Verir"
            send "{@prefix} &6/jackpot kazanç &c-> &4Şuanki Karın"
            send "{@prefix} &6/jackpot başlat &c-> &4Aktif Pot Yoksa Başlatır"
            send "{@prefix} &6/jackpot ekstra [Miktar] &c-> &4Pota Ekstra Para Ekler"
 
Hocam elimde JackPot Skripti var GUI'li ama paylaşmam uygun olurmu bilmiyorum
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst