Çözüldü Skript düzgün çalışmıyor

  • Konuyu Başlatan Konuyu Başlatan FroxyYT
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 162
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

FroxyYT

Bir Kömür Göründü Kaptanım!
Katılım
3 Mart 2021
Mesajlar
124
Elmaslar
12
Puan
8.905
Yaş
102
Minecraft
LeaxyEdits

Discord:

bozkurtharun

arkadaşlar merhaba sunucumda kazı kazan skripti var ama düzgün çalışmıyor bazenleri boş fln veriyor boş vermesin ayarliyabilirmiyiz
on rightclick with paper:
if tool's name is "&bKazı Kazan":
remove a paper named "&bKazı Kazan" from player's inventory
wait 1 second
execute console command "tm message %player% &aᴋᴀᴢɪ ᴋᴀᴢᴀɴ ᴋᴀᴢɪʟɪʏᴏʀ &4&l■&f&l■■"
wait 1 second
execute console command "tm message %player% &aᴋᴀᴢɪ ᴋᴀᴢᴀɴ ᴋᴀᴢɪʟɪʏᴏʀ &6&l■■&f&l■"
wait 1 second
execute console command "tm message %player% &aᴋᴀᴢɪ ᴋᴀᴢᴀɴ ᴋᴀᴢɪʟɪʏᴏʀ &2&l■■■"
wait 3 second
chance of 40%:
execute console command "eco give %player% 100"
send "&e» &b%player% &a100$ &fPara Kazandın" to player
stop
chance of 30%:
execute console command "eco give %player% 500"
send "&e» &b%player% &a500$ &fPara Kazandın" to player
stop
chance of 25%:
execute console command "eco give %player% 2000"
send "&e» &b%player% &a2000$ &fPara Kazandın" to player
stop
chance of 10%:
execute console command "eco give %player% 2500"
send "&e» &b%player% &a2500$ &fPara Kazandın" to player
stop
chance of 5%:
execute console command "eco give %player% 5000"
send "&e» &b%player% &a5000$ &fPara Kazandın" to player
stop
command /kazıkazan:
trigger:
if player's balance is bigger than 1999:
give a paper named "&bKazı Kazan" to player
execute console command "eco take %player% 2000"
else:
send "&a2000$ &fYeterli paran yok" to player
 
arkadaşlar merhaba sunucumda kazı kazan skripti var ama düzgün çalışmıyor bazenleri boş fln veriyor boş vermesin ayarliyabilirmiyiz

Artık daha optimize ve eliniz boş dönmeyeceksiniz, İyi forumlar <3

Kod:
command kazıkazan:
    trigger:
        set {_p} to event-player
        {_p}'s balance is bigger than 1999:
            give a paper named "&bKazı Kazan" to {_p}
            remove 2000 from {_p}'s balance
            send "&e»&a Kazı kazan bileti başarıyla satın alındı!" to {_p}
        else:
            set {_currentMoney} to {_p}'s balance
            send "&e»&c Kazı kazan bileti satın alabilmek için, %2000 - {_currentMoney}% paraya daha ihtiyacınız var!" to {_p}

right click with paper:
    set {_p} to event-player
    {player::cooldown::%{_p}%} is not set:
        {_p} has paper named "&bKazı Kazan":
            remove a paper named "&bKazı Kazan" from {_p}'s inventory
            set {player::cooldown::%{_p}%} to true
            loop 5 times:
                add 1 to {_index}
                send title "&f&lᴋᴀᴢɪ ᴋᴀᴢᴀɴ ᴏʏɴᴀɴıʏᴏʀ..." with subtitle "&e%aneProgressBar({_index}, 5, "■", 5, "&eBitti")%" to {_p} for 1 seconds
                wait a seconds
            set {_random} to random integer between 1 and 100
            {_random} is between 41 and 100:
                ecoGive({_p}, 100)
            else if {_random} is between 31 and 40:
                ecoGive({_p}, 500)
            else if {_random} is between 21 and 30:
                ecoGive({_p}, 2000)
            else if {_random} is between 11 and 20:
                ecoGive({_p}, 2500)
            else if {_random} is between 1 and 10:
                ecoGive({_p}, 5000)
            delete {player::cooldown::%{_p}%}
        else:
            send "a %{_p}'s tool%" to players
    else:
        send "&e» &cZaten kazıkazan oynuyorsun, lütfen bekle!" to {_p}

function ecoGive(p: player, n: number):
    add {_n} to {_p}'s balance
    send "&e» &b%{_p}%, &a%{_n}%$ &fpara kazandın, TEBRİKLER!" to {_p}
            
function aneProgressBar(current: Integer, total: Integer, symbol: String, size: Integer, fullBar: String) :: String:
    loop {_size} times:
        set {_progress} to "%{_progress} ? ""%%{_symbol}%"
    set {_full} to "&4%subtext of {_progress} from indices 1 to (({_current} / {_total}) * {_size} * (length of {_symbol})) ? ""%"
    set {_void} to "&c%subtext of {_progress} from indices (({_current} / {_total}) * {_size} * (length of {_symbol}))+1 to (length of {_progress}) ? " "%"
    {_current} >= {_total}:
        set {_full} to {_fullBar}
    return "%{_full} ? " " %%{_void}%"
 
Artık daha optimize ve eliniz boş dönmeyeceksiniz, İyi forumlar <3

Kod:
command kazıkazan:
    trigger:
        set {_p} to event-player
        {_p}'s balance is bigger than 1999:
            give a paper named "&bKazı Kazan" to {_p}
            remove 2000 from {_p}'s balance
            send "&e»&a Kazı kazan bileti başarıyla satın alındı!" to {_p}
        else:
            set {_currentMoney} to {_p}'s balance
            send "&e»&c Kazı kazan bileti satın alabilmek için, %2000 - {_currentMoney}% paraya daha ihtiyacınız var!" to {_p}

right click with paper:
    set {_p} to event-player
    {player::cooldown::%{_p}%} is not set:
        {_p} has paper named "&bKazı Kazan":
            remove a paper named "&bKazı Kazan" from {_p}'s inventory
            set {player::cooldown::%{_p}%} to true
            loop 5 times:
                add 1 to {_index}
                send title "&f&lᴋᴀᴢɪ ᴋᴀᴢᴀɴ ᴏʏɴᴀɴıʏᴏʀ..." with subtitle "&e%aneProgressBar({_index}, 5, "■", 5, "&eBitti")%" to {_p} for 1 seconds
                wait a seconds
            set {_random} to random integer between 1 and 100
            {_random} is between 41 and 100:
                ecoGive({_p}, 100)
            else if {_random} is between 31 and 40:
                ecoGive({_p}, 500)
            else if {_random} is between 21 and 30:
                ecoGive({_p}, 2000)
            else if {_random} is between 11 and 20:
                ecoGive({_p}, 2500)
            else if {_random} is between 1 and 10:
                ecoGive({_p}, 5000)
            delete {player::cooldown::%{_p}%}
        else:
            send "a %{_p}'s tool%" to players
    else:
        send "&e» &cZaten kazıkazan oynuyorsun, lütfen bekle!" to {_p}

function ecoGive(p: player, n: number):
    add {_n} to {_p}'s balance
    send "&e» &b%{_p}%, &a%{_n}%$ &fpara kazandın, TEBRİKLER!" to {_p}
           
function aneProgressBar(current: Integer, total: Integer, symbol: String, size: Integer, fullBar: String) :: String:
    loop {_size} times:
        set {_progress} to "%{_progress} ? ""%%{_symbol}%"
    set {_full} to "&4%subtext of {_progress} from indices 1 to (({_current} / {_total}) * {_size} * (length of {_symbol})) ? ""%"
    set {_void} to "&c%subtext of {_progress} from indices (({_current} / {_total}) * {_size} * (length of {_symbol}))+1 to (length of {_progress}) ? " "%"
    {_current} >= {_total}:
        set {_full} to {_fullBar}
    return "%{_full} ? " " %%{_void}%"
Screenshot_2.webp

aga senin scripten sonra böyle birşey oldu düzeltebilirmiyiz
 
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