JuneX
Nerelerdesin Be Zümrüt?
- Katılım
- 12 Ekim 2019
- Mesajlar
- 529
- Elmaslar
- 126
- Puan
- 4.775
- Minecraft
- JuneZX
bitane jackpot skripti buldum çok sevdim ama pot kapalı diyor nasıl ayarlarım?
Kod:
variables:
{jackpottoplam} = 0
{jyatirdigimiktar.%player%} = 0
{jackpotkalansure} = 5
{jackpotgirdi.%player%} = false
{jackpotdurum} = false
{jackpotgirdi1taneadam} = false
{jackpotbilettiklandi.%player%} = false
command /jackpot [<number>]:
trigger:
if arg-1 is set:
if {jackpotdurum} is true:
if arg-1 is set:
if {jackpotbilettiklandi.%player%} is false:
if player's balance is higher than or equal to arg-1:
if {jackpotkisi} is less than 150:
if arg-1 is between 1 and 300000000:
if {jackpotgirdi.%player%} is false:
send "&e&lSKYBLOCK &8&l► &eJackpota başarıyla katıldın!"
add arg-1 to {jackpottoplam}
add arg-1 to {jyatirdigimiktar.%player%}
set {jackpotbilettiklandi.%player%} to false
add player to {jackpottakiler::*}
set {jackpottür.%player%} to "Para"
add 1 to {jackpotkisi}
set {jackpotgirdi.%player%} to true
remove arg-1 from player's balance
set {jackpotgirdi.%player%} to true
set {jackpotyatirmabasladi} to true
set {jackpotgirdi1taneadam} to true
loop {jackpottakiler::*}:
set {sans.%loop-value%} to (1/({jackpottoplam}/{jyatirdigimiktar.%loop-value%}))*100
execute console command "/tm abc &e&lSKYBLOCK &8&l► &a%player% &eisimli oyuncu Para ile Jackpota &b%arg-1% TL &eyatırdı, Şans &8» &6%%%{sans.%player%}%"
else:
send "&e&lSKYBLOCK &8&l► &cZaten Jackpota Katılmışsın!"
else:
send "&e&lSKYBLOCK &8&l► &7En az &61TL &7en fazla &6200.000.000TL &7yatırabilirsiniz."
else:
send "&e&lSKYBLOCK &8&l► &720 Kişiden Fazlası Jackpota Katılamaz!"
else:
send "&e&lSKYBLOCK &8&l► &cYeterli Miktarda Paran Yok!"
else:
if {jackpotkisi} is less than 150:
if {jackpotgirdi.%player%} is false:
send "&e&lSKYBLOCK &8&l► &eJackpota başarıyla katıldın!"
add arg-1 to {jackpottoplam}
add arg-1 to {jyatirdigimiktar.%player%}
set {jackpotbilettiklandi.%player%} to false
add player to {jackpottakiler::*}
add 1 to {jackpotkisi}
set {jackpotgirdi.%player%} to true
remove arg-1 from player's balance
set {jackpottür.%player%} to "Bilet"
set {jackpotgirdi.%player%} to true
set {jackpotyatirmabasladi} to true
set {jackpotgirdi1taneadam} to true
loop {jackpottakiler::*}:
set {sans.%loop-value%} to (1/({jackpottoplam}/{jyatirdigimiktar.%loop-value%}))*100
broadcast "&e&lSKYBLOCK &8&l► &a%player% &eisimli oyuncu Bilet ile Jackpota &b%arg-1% TL &eyatırdı, Şans &8» &6%%%{sans.%player%}%"
else:
send "&e&lSKYBLOCK &8&l► &cMiktar Yazmadın!"
else:
send "&e&lSKYBLOCK &8&l► &cJackpot Şuanda Kapalı" to player
else:
close player's inventory
open chest with 6 rows named "&8Jackpot" to player
wait a tick
set {_x} to 0
loop {jackpottakiler::*}:
format slot {_x} of player with loop-value's skull named "&e&l%loop-value%" with lore "||&aYatırdığı Mitar: &f%{jyatirdigimiktar.%loop-value%}% TL||||&aŞans: &f%%%{sans.%loop-value%}%" to be unstealable
add 1 to {_x}
if inventory name of current inventory of player is "&8Jackpot":
format slot 45 of player with stained glass named "" to close
format slot 46 of player with stained glass named "" to close
format slot 52 of player with stained glass named "" to close
format slot 53 of player with stained glass named "" to close
format slot 47 of player with book named "&e&nAmacı Nedir?" with lore "||&eHerkesin para kazanması için oluşturulmuştur.||&eKatılmak için &b/jackpot <miktar> &eyazın." to close
format slot 50 of player with redstone named "&e&nÖnceki Oyun" with lore "||&aKazanan: &f%{jsonkazanan}%||&aŞansı: &f%%%{joncekisans.%{jsonkazanan}%}%||&aYatırdığı para: &f%{joncekimiktar.%{jsonkazanan}%}% TL||&aKazandığı para: &f%{joncekitoplam}% TL||&aTür: &f%{jackpottürübelli.%{jsonkazanan}%}%" to close
format slot 51 of player with lapis block named "&e&nJackPot" with lore "&aJackpottaki para: &f%{jackpottoplam}% TL" to close
if {jackpotkalansure} is not "Kapalı":
format slot 48 of player with clock named "&e&nSüre" with lore "||&aBaşlamasına kalan: &f%{jackpotkalansure}% dakika||||&aTıklayarak Hemen başlatabilirsin!" to close then run [execute player command "/jackpotbaslat"]
else:
format slot 48 of player with clock named "&e&nSüre" with lore "||&aBaşlamasına kalan: &c%{jackpotkalansure}%" to close
on inventory click:
if inventory name of current inventory of player is "&8Jackpot":
cancel event
every 1 minutes:
if {jackpotdurum} is true:
if {jackpotbasladi} is false:
if {jackpotkalansure} is equal to 1:
if {jackpotkisi} is between 2 and 150:
broadcast "&e&lSKYBLOCK &8&l► &eJackpot &65 Saniye &eiçinde başlıyor!"
wait 1 seconds
broadcast "&e&lSKYBLOCK &8&l► &eJackpot &64 Saniye &eiçinde başlıyor!"
wait 1 seconds
broadcast "&e&lSKYBLOCK &8&l► &eJackpot &63 Saniye &eiçinde başlıyor!"
wait 1 seconds
broadcast "&e&lSKYBLOCK &8&l► &eJackpot &62 Saniye &eiçinde başlıyor!"
wait 1 seconds
broadcast "&e&lSKYBLOCK &8&l► &eJackpot &61 Saniye &eiçinde başlıyor!"
wait 1 seconds
loop {jackpottakiler::*}:
set {kazanicaksans.%loop-value%} to (1/({jackpottoplam}/{jyatirdigimiktar.%loop-value%}))*100
loop {kazanicaksans.%loop-value%} times:
add loop-value-1 to {_jackpotbelli::*}
set {jackpotbasladi} to true
close {jackpottakiler::*}'s inventory
loop 12 times:
open chest with 3 rows named "Jackpot" to {jackpottakiler::*}
set {jkazanan} to random element out of {_jackpotbelli::*}
play raw sound "random.orb" at {jackpottakiler::*} with pitch 1 volume 1
format slot 13 of {jackpottakiler::*} with skull of {jkazanan} named "&a%{jkazanan}% &8» &f%%%{kazanicaksans.%{jkazanan}%}%" to close
wait 1 seconds
close {jackpottakiler::*}'s inventory
play raw sound "mob.ghast.death" at all players with pitch 1 volume 1
loop 200 times:
broadcast " "
add 1 to {jackpotkazanma.%{jkazanan}%}
set {jkazanilanpara} to ({jackpottoplam} / 100) * 75
add {jackpottoplam} to {jkazanilanpara}
broadcast "&b&m+---------&8[&r &6Jackpot &r&8]&b&m---------+"
broadcast ""
broadcast " &6» &a%{jkazanan}% &eJackpotdan &b%{jkazanilanpara}% TL &eKazandı, Komisyon &b%%25"
broadcast " &6» &aŞansı &8» &f%%%{kazanicaksans.%{jkazanan}%}%"
broadcast ""
broadcast "&b&m+---------&8[&r &6Jackpot &r&8]&b&m---------+"
execute console command "eco give %{jkazanan}% %{jackpottoplam}%"
set {jackpotkisi} to 0
set {jkazanilanpara} to 0
set {jsonkazanan} to {jkazanan}
set {joncekisans.%{jsonkazanan}%} to {kazanicaksans.%{jkazanan}%}
set {joncekimiktar.%{jkazanan}%} to {jyatirdigimiktar.%{jkazanan}%}
set {jackpottürübelli.%{jkazanan}%} to {jackpottür.%{jkazanan}%}
delete {jkazanan}
loop {jackpottakiler::*}:
set {jyatirdigimiktar.%loop-value%} to 0
set {jackpotgirdi.%loop-value%} to false
set {jackpotyatirmabasladi} to false
set {jackpotbasladi} to false
set {joncekitoplam} to {jackpottoplam}
set {jackpottoplam} to 0
set {jackpotkalansure} to 5
delete {jackpottakiler::*}
else:
broadcast "&e&lSKYBLOCK &8&l► &7Jackpotta Yeterli Oyuncu olmadığı için Başlamadı."
set {jackpotkalansure} to 5
else:
if {jackpotkalansure} is not "Kapalı":
remove 1 from {jackpotkalansure}
broadcast "&e&lSKYBLOCK &8&l► &7Jackpotun Başlamasına Son &6%{jackpotkalansure}% Dakika &7Kaldı, Bilgi için &a/jackpot"
command /jackpotbaslat:
permission: jackpotbaslat
trigger:
broadcast "&e&lSKYBLOCK &8&l► &eJackpot &65 Saniye &eiçinde başlıyor!"
wait 1 seconds
broadcast "&e&lSKYBLOCK &8&l► &eJackpot &64 Saniye &eiçinde başlıyor!"
wait 1 seconds
broadcast "&e&lSKYBLOCK &8&l► &eJackpot &63 Saniye &eiçinde başlıyor!"
wait 1 seconds
broadcast "&e&lSKYBLOCK &8&l► &eJackpot &62 Saniye &eiçinde başlıyor!"
wait 1 seconds
broadcast "&e&lSKYBLOCK &8&l► &eJackpot &61 Saniye &eiçinde başlıyor!"
wait 1 seconds
loop {jackpottakiler::*}:
set {kazanicaksans.%loop-value%} to (1/({jackpottoplam}/{jyatirdigimiktar.%loop-value%}))*100
loop {kazanicaksans.%loop-value%} times:
add loop-value-1 to {_jackpotbelli::*}
set {jackpotbasladi} to true
close {jackpottakiler::*}'s inventory
loop 12 times:
open chest with 3 rows named "Jackpot" to {jackpottakiler::*}
set {jkazanan} to random element out of {_jackpotbelli::*}
play raw sound "random.orb" at {jackpottakiler::*} with pitch 1 volume 1
format slot 13 of {jackpottakiler::*} with {jkazanan}'s skull named "&a%{jkazanan}% &8» &f%%%{kazanicaksans.%{jkazanan}%}%" to close
wait 0.4 seconds
close {jackpottakiler::*}'s inventory
play raw sound "mob.ghast.death" at all players with pitch 1 volume 1
loop 200 times:
broadcast " "
add 1 to {jackpotkazanma.%{jkazanan}%}
set {jkazanilanpara} to ({jackpottoplam} / 100) * 75
add {jackpottoplam} to {jkazanilanpara}
broadcast "&b&m+---------&8[&r &6Jackpot &r&8]&b&m---------+"
broadcast ""
broadcast " &6» &a%{jkazanan}% &eJackpotdan &b%{jkazanilanpara}% TL &eKazandı, Komisyon &b%%25"
broadcast " &6» &aŞansı &8» &f%%%{kazanicaksans.%{jkazanan}%}%"
broadcast ""
broadcast "&b&m+---------&8[&r &6Jackpot &r&8]&b&m---------+"
execute console command "eco give %{jkazanan}% %{jkazanilanpara}%"
set {jackpotkisi} to 0
set {jsonkazanan} to {jkazanan}
set {joncekisans.%{jsonkazanan}%} to {kazanicaksans.%{jkazanan}%}
set {joncekimiktar.%{jkazanan}%} to {jyatirdigimiktar.%{jkazanan}%}
set {jackpottürübelli.%{jkazanan}%} to {jackpottür.%{jkazanan}%}
delete {jkazanan}
set {jkazanilanpara} to 0
loop {jackpottakiler::*}:
set {jyatirdigimiktar.%loop-value%} to 0
set {jackpotgirdi.%loop-value%} to false
set {jackpotyatirmabasladi} to false
set {jackpotbasladi} to false
set {joncekitoplam} to {jackpottoplam}
set {jackpottoplam} to 0
set {jackpotkalansure} to 5
delete {jackpottakiler::*}
command /jackpotdurum [<text>]:
permission: jackpotdurum
trigger:
if arg-1 is "ac":
if {jackpotdurum} is false:
set {jackpotdurum} to true
send "&e&lSKYBLOCK &8&l► &7Jackpot Başarıyla &aAçtın"
broadcast "&e&lSKYBLOCK &8&l► &7Jackpot Yetkili Tarafından &aAçıldı"
set {jackpotkalansure} to 5
else:
send "&e&lSKYBLOCK &8&l► &7Zaten Jackpot &aAçık"
if arg-1 is "kapat":
if {jackpotdurum} is true:
set {jackpotdurum} to false
send "&e&lSKYBLOCK &8&l► &7Jackpot Başarıyla &cKapattın"
broadcast "&e&lSKYBLOCK &8&l► &7Jackpot Yetkili Tarafından &cKapatıldı"
set {jackpotkalansure} to "Kapalı"
else:
send "&e&lSKYBLOCK &8&l► &7Zaten Jackpot &cKapalı"
command /jackpotyardım:
trigger:
if player has permission "op":
loop 300 times:
send " "
send " &7Jackpota Katılmak için &6/jackpot <miktar>"
send " &7Jackpot durumunu değiştirmek için &6/jackpotdurum &6<&aaç&6,&ckapat&6>"
send " &7Jackpotu Hızlı bir şekilde Kısa yoldan başlatmak için &6/jackpotbaslat"
send " "
send " &7Yapımcı: &6&lCraftRosi"
else:
loop 300 times:
send " "
send " &7Jackpota Katılmak için &6/jackpot <miktar>"
send " "
send " &7Yapımcı: &6&lOnurBeyTR"
send " &7Lütfen Başka Sunucularda &c&nPaylaşılmamasına &7Özen gösteriniz."
on inventory click:
if inventory name of player's current inventory is "Jackpot":
cancel event
command /herkesebiletver [<integer>]:
permission: herkesebiletver
permission message: &c&lHATA &8» &7Bu komutu kullanabilmek için yetkin yok!
executable by: players and console
trigger:
if arg-1 is set:
if command sender is not console:
loop all players:
give a paper named "&6&lBILET &8» &a%arg-1% TL" to loop-player
broadcast "&c&lBILET &8» &6%player% &7isimli yetkili herkese &b%arg-1% TL &7Jackpot Bileti verdi!"
else:
loop all players:
give a paper named "&6&lBILET &8» &a%arg-1% TL" to loop-player
broadcast "&c&lBILET &8» &6Console &7herkese &b%arg-1% TL &7Jackpot Bileti verdi!"
else:
send "&c&lHATA &8» &7Bilet miktarı girmedin!"
command /jackpotbiletver [<player>] [<integer>]:
permission: jackpotbiletver
permission message: &c&lHATA &8» &7Bu komutu kullanabilmek için yetkin yok!
executable by: players and console
trigger:
if arg-1 is set:
if arg-2 is set:
if command sender is not console:
send "&c&lJACKPOTBILET &8» &6%arg-1% &7isimli oyuncuya &b%arg-2% TL &7Jackpot Bilet verildi!" to player
send "&c&lJACKPOTBILET &8» &6%player% &7isimli yetkili sana &b%arg-2% TL &7Jackpot Bileti verdi!" to arg-1
give a paper named "&6&lJACKPOTBILET &8» &a%arg-2% TL" to arg-1
else:
send "&c&lJACKPOTBILET &8» &6Console &7sana &b%arg-2% TL &7Jackpot Bileti verdi!" to arg-1
give a paper named "&6&lJACKPOTBILET &8» &a%arg-2% TL" to arg-1
else:
send "&c&lHATA &8» &7Bilet miktarı girmedin!"
else:
send "&c&lHATA &8» &7Oyuncu ismi girmedin!"
on rightclick with paper:
if "%name of player's tool%" contains "&6&lJACKPOTBILET":
if {jackpotdurum} is true:
if {jackpotgirdi.%player%} is false:
if {jackpotbilettiklandi.%player%} is false:
set {_jackpotbiletmiktar} to "%numbers of uncoloured name of player's tool%"
set {jackpotbilettiklandi.%player%} to true
remove 1 of player's tool from player's inventory
send player title "&7JackpotBilet Miktarı Algılanıyor!" with subtitle "&6&l3" for 1 seconds
wait 1 seconds
send player title "&7JackpotBilet Miktarı Algılanıyor!" with subtitle "&6&l2" for 1 seconds
wait 1 seconds
send player title "&7JackpotBilet Miktarı Algılanıyor!" with subtitle "&6&l1" for 1 seconds
wait 1 seconds
send player title "&6&lBILET" with subtitle "&7Miktar &8» &b%{_jackpotbiletmiktar}% TL" for 2 seconds
wait 1 seconds
execute player command "jackpot %{_jackpotbiletmiktar}%"
else:
send "&6&lJACKPOTBILET &8» &7Zaten Bilet kullandın Kullandığın bilet &8» &6%numbers of uncoloured name of player's tool% TL"
else:
send "&e&lSKYBLOCK &8&l► &cZaten Jackpota Katılmışsın!"
else:
send "&e&lSKYBLOCK &8&l► &cJackpot Şuanda Kapalı" to player