Bulundu Casino Skripti Düzeltimi

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

AndreAres

Odunlara Vur Vur Vur!
Katılım
9 Şubat 2025
Mesajlar
48
Elmaslar
2
Puan
895
Yaş
26
Konum
İstanbul
Minecraft
AresAndre
Kod:
options:

  prefix: &6&lCASINO &8| &f

  gui-title: &8Casino Menüsü

  default-bet: 100

  vip-bonus-multiplier: 1.25



variables:

  {casino.balance::*} = 1000



command /casino:

  trigger:

    if {casino.balance::%uuid of player%} is not set:

      set {casino.balance::%uuid of player%} to 1000

    open chest with 3 rows named "{@gui-title}" to player

    format slot 10 of player with gold nugget named "&eYazı/Tura" with lore "&7Tahmin et, kazan!" to close then run [execute console command "/casino flip %player%"]

    format slot 11 of player with diamond named "&bSlot Makinesi" with lore "&73 sembolü eşleştir!" to close then run [execute console command "/casino slot %player%"]

    format slot 12 of player with emerald named "&aZar Oyunu" with lore "&71-6 zar at ve kazan!" to close then run [execute console command "/casino dice %player%"]

    format slot 13 of player with red dye named "&cRenk Tahmini" with lore "&7Kırmızı mı, Mavi mi?" to close then run [execute console command "/casino renk %player%"]

    format slot 15 of player with paper named "&fBakiyen" with lore "&7Şu anki coin miktarın" to close then run [execute console command "/balance %player%"]



command /balance:

  trigger:

    set {_bal} to {casino.balance::%uuid of player%}

    if {_bal} is not set:

      set {_bal} to 1000

      set {casino.balance::%uuid of player%} to {_bal}

    send "{@prefix}&fBakiyen: &a%{_bal}% &ecoin"



command /casino flip:

  trigger:

    set {_bet} to {@default-bet}

    if {casino.balance::%uuid of player%} < {_bet}:

      send "{@prefix}&cYetersiz bakiyen var."

      stop

    remove {_bet} from {casino.balance::%uuid of player%}

    set {_guess} to random element out of "Yazı" and "Tura"

    set {_result} to random element out of "Yazı" and "Tura"

    send "{@prefix}&7Tahminin: &e%{_guess}% &8| Sonuç: &f%{_result}%"

    if {_guess} is {_result}:

      set {_reward} to {_bet} * 2

      add {_reward} to {casino.balance::%uuid of player%}

      send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"

    else:

      send "{@prefix}&cKaybettin. Daha şanslı olabilirdin."



command /casino slot:

  trigger:

    set {_bet} to {@default-bet}

    if {casino.balance::%uuid of player%} < {_bet}:

      send "{@prefix}&cYetersiz bakiyen var."

      stop

    remove {_bet} from {casino.balance::%uuid of player%}

    set {_symbols::*} to "", "", "⭐", "", ""

    loop 3 times:

      set {_slot::%loop-number%} to random element out of {_symbols::*}

    send "&8[ %{_slot::1}% &8| %{_slot::2}% &8| %{_slot::3}% ]"

    if {_slot::1} is {_slot::2} and {_slot::2} is {_slot::3}:

      set {_reward} to {_bet} * 4

      add {_reward} to {casino.balance::%uuid of player%}

      send "{@prefix}&aTebrikler! 3 aynı sembol! Kazandın: &a%{_reward}% &ecoin"

    else:

      send "{@prefix}&cKazanamadın. Tekrar dene!"



command /casino dice:

  trigger:

    set {_bet} to {@default-bet}

    if {casino.balance::%uuid of player%} < {_bet}:

      send "{@prefix}&cYetersiz bakiyen var."

      stop

    remove {_bet} from {casino.balance::%uuid of player%}

    set {_roll} to random integer between 1 and 6

    send "{@prefix}&fZar sonucu: &e%{_roll}%"

    if {_roll} >= 5:

      set {_reward} to {_bet} * 3

      add {_reward} to {casino.balance::%uuid of player%}

      send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"

    else:

      send "{@prefix}&cKazanamadın."



command /casino renk:

  trigger:

    set {_bet} to {@default-bet}

    if {casino.balance::%uuid of player%} < {_bet}:

      send "{@prefix}&cYetersiz bakiyen var."

      stop

    remove {_bet} from {casino.balance::%uuid of player%}

    set {_colors::*} to "Kırmızı"

Bu yukarıdaki skripti düzelticek biri var mıdır? Bu skripti SkriptX-Free diye bir yapay zekaya yazdırdım ama çalışmıyor yardım eder misiniz?
 
Tam olarak nerede hata var? Kodu yenileyince bir hata mesajı geliyor mu yoksa başarılı mı oluyor? Hangi özelliği çalışmıyor?

Detalı yazarsan güzel olur.
 
Tam olarak nerede hata var? Kodu yenileyince bir hata mesajı geliyor mu yoksa başarılı mı oluyor? Hangi özelliği çalışmıyor?

Detalı yazarsan güzel olur.
Menü açılıyor ancak bu komutlar çalışmıyor sebebini anlayamadım.
 
Menü açılıyor ancak bu komutlar çalışmıyor sebebini anlayamadım.
Python:
options:

  prefix: &6&lCASINO &8| &f

  gui-title: &8Casino Menüsü

  default-bet: 100

  vip-bonus-multiplier: 1.25



variables:

  {casino.balance::*} = 1000



command /casino [<string>]:

  trigger:
    if arg 1 is "flip":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_guess} to random element out of "Yazı" and "Tura"
 
      set {_result} to random element out of "Yazı" and "Tura"
 
      send "{@prefix}&7Tahminin: &e%{_guess}% &8| Sonuç: &f%{_result}%"
 
      if {_guess} is {_result}:
 
        set {_reward} to {_bet} * 2
 
        add {_reward} to {casino.balance::%uuid of player%}
 
        send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKaybettin. Daha şanslı olabilirdin."

    else if arg 1 is "slot":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_symbols::*} to "", "", "⭐", "", ""
 
      loop 3 times:
 
        set {_slot::%loop-number%} to random element out of {_symbols::*}
 
      send "&8[ %{_slot::1}% &8| %{_slot::2}% &8| %{_slot::3}% ]"
 
      if {_slot::1} is {_slot::2}:
        if {_slot::2} is {_slot::3}:
          set {_reward} to {_bet} * 4
    
          add {_reward} to {casino.balance::%uuid of player%}
    
          send "{@prefix}&aTebrikler! 3 aynı sembol! Kazandın: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKazanamadın. Tekrar dene!"

    else if arg 1 is "dice":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_roll} to random integer between 1 and 6
 
      send "{@prefix}&fZar sonucu: &e%{_roll}%"
 
      if {_roll} >= 5:
 
        set {_reward} to {_bet} * 3
 
        add {_reward} to {casino.balance::%uuid of player%}
 
        send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKazanamadın."

    else if arg 1 is "renk":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_colors::*} to "Kırmızı"

    else:
      if {casino.balance::%uuid of player%} is not set:

        set {casino.balance::%uuid of player%} to 1000

        open chest with 3 rows named "{@gui-title}" to player

        format slot 10 of player with gold nugget named "&eYazı/Tura" with lore "&7Tahmin et, kazan!" to close then run [execute console command "/casino flip %player%"]

        format slot 11 of player with diamond named "&bSlot Makinesi" with lore "&73 sembolü eşleştir!" to close then run [execute console command "/casino slot %player%"]

        format slot 12 of player with emerald named "&aZar Oyunu" with lore "&71-6 zar at ve kazan!" to close then run [execute console command "/casino dice %player%"]

        format slot 13 of player with red dye named "&cRenk Tahmini" with lore "&7Kırmızı mı, Mavi mi?" to close then run [execute console command "/casino renk %player%"]

        format slot 15 of player with paper named "&fBakiyen" with lore "&7Şu anki coin miktarın" to close then run [execute console command "/balance %player%"]



command /balance:

  trigger:

    set {_bal} to {casino.balance::%uuid of player%}

    if {_bal} is not set:

      set {_bal} to 1000

      set {casino.balance::%uuid of player%} to {_bal}

    send "{@prefix}&fBakiyen: &a%{_bal}% &ecoin"

Kodunda bir kaç koşul hatası vardı. Ayrıca komut problemini düzelttim.

Başka bir hata çıkarsa atabilirsin fakat hatalar çok büyükse yardımcı olamam.
 
Python:
options:

  prefix: &6&lCASINO &8| &f

  gui-title: &8Casino Menüsü

  default-bet: 100

  vip-bonus-multiplier: 1.25



variables:

  {casino.balance::*} = 1000



command /casino [<string>]:

  trigger:
    if arg 1 is "flip":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_guess} to random element out of "Yazı" and "Tura"
 
      set {_result} to random element out of "Yazı" and "Tura"
 
      send "{@prefix}&7Tahminin: &e%{_guess}% &8| Sonuç: &f%{_result}%"
 
      if {_guess} is {_result}:
 
        set {_reward} to {_bet} * 2
 
        add {_reward} to {casino.balance::%uuid of player%}
 
        send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKaybettin. Daha şanslı olabilirdin."

    else if arg 1 is "slot":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_symbols::*} to "", "", "⭐", "", ""
 
      loop 3 times:
 
        set {_slot::%loop-number%} to random element out of {_symbols::*}
 
      send "&8[ %{_slot::1}% &8| %{_slot::2}% &8| %{_slot::3}% ]"
 
      if {_slot::1} is {_slot::2}:
        if {_slot::2} is {_slot::3}:
          set {_reward} to {_bet} * 4
   
          add {_reward} to {casino.balance::%uuid of player%}
   
          send "{@prefix}&aTebrikler! 3 aynı sembol! Kazandın: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKazanamadın. Tekrar dene!"

    else if arg 1 is "dice":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_roll} to random integer between 1 and 6
 
      send "{@prefix}&fZar sonucu: &e%{_roll}%"
 
      if {_roll} >= 5:
 
        set {_reward} to {_bet} * 3
 
        add {_reward} to {casino.balance::%uuid of player%}
 
        send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKazanamadın."

    else if arg 1 is "renk":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_colors::*} to "Kırmızı"

    else:
      if {casino.balance::%uuid of player%} is not set:

        set {casino.balance::%uuid of player%} to 1000

        open chest with 3 rows named "{@gui-title}" to player

        format slot 10 of player with gold nugget named "&eYazı/Tura" with lore "&7Tahmin et, kazan!" to close then run [execute console command "/casino flip %player%"]

        format slot 11 of player with diamond named "&bSlot Makinesi" with lore "&73 sembolü eşleştir!" to close then run [execute console command "/casino slot %player%"]

        format slot 12 of player with emerald named "&aZar Oyunu" with lore "&71-6 zar at ve kazan!" to close then run [execute console command "/casino dice %player%"]

        format slot 13 of player with red dye named "&cRenk Tahmini" with lore "&7Kırmızı mı, Mavi mi?" to close then run [execute console command "/casino renk %player%"]

        format slot 15 of player with paper named "&fBakiyen" with lore "&7Şu anki coin miktarın" to close then run [execute console command "/balance %player%"]



command /balance:

  trigger:

    set {_bal} to {casino.balance::%uuid of player%}

    if {_bal} is not set:

      set {_bal} to 1000

      set {casino.balance::%uuid of player%} to {_bal}

    send "{@prefix}&fBakiyen: &a%{_bal}% &ecoin"

Kodunda bir kaç koşul hatası vardı. Ayrıca komut problemini düzelttim.

Başka bir hata çıkarsa atabilirsin fakat hatalar çok büyükse yardımcı olamam.
Menü nedense açılmıyor ama hata vermiyor.
 
Python:
options:

  prefix: &6&lCASINO &8| &f

  gui-title: &8Casino Menüsü

  default-bet: 100

  vip-bonus-multiplier: 1.25



variables:

  {casino.balance::*} = 1000



command /casino [<string>]:

  trigger:
    if arg 1 is "flip":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_guess} to random element out of "Yazı" and "Tura"
 
      set {_result} to random element out of "Yazı" and "Tura"
 
      send "{@prefix}&7Tahminin: &e%{_guess}% &8| Sonuç: &f%{_result}%"
 
      if {_guess} is {_result}:
 
        set {_reward} to {_bet} * 2
 
        add {_reward} to {casino.balance::%uuid of player%}
 
        send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKaybettin. Daha şanslı olabilirdin."

    else if arg 1 is "slot":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_symbols::*} to "", "", "⭐", "", ""
 
      loop 3 times:
 
        set {_slot::%loop-number%} to random element out of {_symbols::*}
 
      send "&8[ %{_slot::1}% &8| %{_slot::2}% &8| %{_slot::3}% ]"
 
      if {_slot::1} is {_slot::2}:
        if {_slot::2} is {_slot::3}:
          set {_reward} to {_bet} * 4
   
          add {_reward} to {casino.balance::%uuid of player%}
   
          send "{@prefix}&aTebrikler! 3 aynı sembol! Kazandın: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKazanamadın. Tekrar dene!"

    else if arg 1 is "dice":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_roll} to random integer between 1 and 6
 
      send "{@prefix}&fZar sonucu: &e%{_roll}%"
 
      if {_roll} >= 5:
 
        set {_reward} to {_bet} * 3
 
        add {_reward} to {casino.balance::%uuid of player%}
 
        send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKazanamadın."

    else if arg 1 is "renk":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_colors::*} to "Kırmızı"

    else:
      if {casino.balance::%uuid of player%} is not set:

        set {casino.balance::%uuid of player%} to 1000

        open chest with 3 rows named "{@gui-title}" to player

        format slot 10 of player with gold nugget named "&eYazı/Tura" with lore "&7Tahmin et, kazan!" to close then run [execute console command "/casino flip %player%"]

        format slot 11 of player with diamond named "&bSlot Makinesi" with lore "&73 sembolü eşleştir!" to close then run [execute console command "/casino slot %player%"]

        format slot 12 of player with emerald named "&aZar Oyunu" with lore "&71-6 zar at ve kazan!" to close then run [execute console command "/casino dice %player%"]

        format slot 13 of player with red dye named "&cRenk Tahmini" with lore "&7Kırmızı mı, Mavi mi?" to close then run [execute console command "/casino renk %player%"]

        format slot 15 of player with paper named "&fBakiyen" with lore "&7Şu anki coin miktarın" to close then run [execute console command "/balance %player%"]



command /balance:

  trigger:

    set {_bal} to {casino.balance::%uuid of player%}

    if {_bal} is not set:

      set {_bal} to 1000

      set {casino.balance::%uuid of player%} to {_bal}

    send "{@prefix}&fBakiyen: &a%{_bal}% &ecoin"

Kodunda bir kaç koşul hatası vardı. Ayrıca komut problemini düzelttim.

Başka bir hata çıkarsa atabilirsin fakat hatalar çok büyükse yardımcı olamam.
Böyle bir şey diyor.
 

Ekli dosyalar

  • Ekran görüntüsü 2025-04-22 113020.webp
    Ekran görüntüsü 2025-04-22 113020.webp
    34,4 KB · Görüntüleme: 77
Python:
options:

  prefix: &6&lCASINO &8| &f

  gui-title: &8Casino Menüsü

  default-bet: 100

  vip-bonus-multiplier: 1.25



variables:

  {casino.balance::*} = 1000



command /casino [<string>]:

  trigger:
    if arg 1 is "flip":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_guess} to random element out of "Yazı" and "Tura"
 
      set {_result} to random element out of "Yazı" and "Tura"
 
      send "{@prefix}&7Tahminin: &e%{_guess}% &8| Sonuç: &f%{_result}%"
 
      if {_guess} is {_result}:
 
        set {_reward} to {_bet} * 2
 
        add {_reward} to {casino.balance::%uuid of player%}
 
        send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKaybettin. Daha şanslı olabilirdin."

    else if arg 1 is "slot":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_symbols::*} to "" and "" and "⭐" and "" and ""
 
      loop 3 times:
 
        set {_slot::%loop-number%} to random element out of {_symbols::*}
 
      send "&8[ %{_slot::1}% &8| %{_slot::2}% &8| %{_slot::3}% ]"
 
      if {_slot::1} is {_slot::2}:
        if {_slot::2} is {_slot::3}:
          set {_reward} to {_bet} * 4
    
          add {_reward} to {casino.balance::%uuid of player%}
    
          send "{@prefix}&aTebrikler! 3 aynı sembol! Kazandın: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKazanamadın. Tekrar dene!"

    else if arg 1 is "dice":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_roll} to random integer between 1 and 6
 
      send "{@prefix}&fZar sonucu: &e%{_roll}%"
 
      if {_roll} >= 5:
 
        set {_reward} to {_bet} * 3
 
        add {_reward} to {casino.balance::%uuid of player%}
 
        send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKazanamadın."

    else if arg 1 is "renk":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_colors::*} to "Kırmızı"

    else:
      if {casino.balance::%uuid of player%} is not set:

        set {casino.balance::%uuid of player%} to 1000

      open chest with 3 rows named "{@gui-title}" to player

      format slot 10 of player with gold nugget named "&eYazı/Tura" with lore "&7Tahmin et, kazan!" to close then run [execute player command "/casino flip"]

      format slot 11 of player with diamond named "&bSlot Makinesi" with lore "&73 sembolü eşleştir!" to close then run [execute player command "/casino slot"]

      format slot 12 of player with emerald named "&aZar Oyunu" with lore "&71-6 zar at ve kazan!" to close then run [execute player command "/casino dice"]

      format slot 13 of player with red dye named "&cRenk Tahmini" with lore "&7Kırmızı mı, Mavi mi?" to close then run [execute player command "/casino renk"]

      format slot 15 of player with paper named "&fBakiyen" with lore "&7Şu anki coin miktarın" to close then run [execute player command "/balance"]



command /balance:

  trigger:

    set {_bal} to {casino.balance::%uuid of player%}

    if {_bal} is not set:

      set {_bal} to 1000

      set {casino.balance::%uuid of player%} to {_bal}

    send "{@prefix}&fBakiyen: &a%{_bal}% &ecoin"

Kodun belirttiğin "Menü açılmıyor" hatası giderilmiş son hali. (virgül de düzeltildi.)
 
Python:
options:

  prefix: &6&lCASINO &8| &f

  gui-title: &8Casino Menüsü

  default-bet: 100

  vip-bonus-multiplier: 1.25



variables:

  {casino.balance::*} = 1000



command /casino [<string>]:

  trigger:
    if arg 1 is "flip":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_guess} to random element out of "Yazı" and "Tura"
 
      set {_result} to random element out of "Yazı" and "Tura"
 
      send "{@prefix}&7Tahminin: &e%{_guess}% &8| Sonuç: &f%{_result}%"
 
      if {_guess} is {_result}:
 
        set {_reward} to {_bet} * 2
 
        add {_reward} to {casino.balance::%uuid of player%}
 
        send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKaybettin. Daha şanslı olabilirdin."

    else if arg 1 is "slot":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_symbols::*} to "" and "" and "⭐" and "" and ""
 
      loop 3 times:
 
        set {_slot::%loop-number%} to random element out of {_symbols::*}
 
      send "&8[ %{_slot::1}% &8| %{_slot::2}% &8| %{_slot::3}% ]"
 
      if {_slot::1} is {_slot::2}:
        if {_slot::2} is {_slot::3}:
          set {_reward} to {_bet} * 4
   
          add {_reward} to {casino.balance::%uuid of player%}
   
          send "{@prefix}&aTebrikler! 3 aynı sembol! Kazandın: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKazanamadın. Tekrar dene!"

    else if arg 1 is "dice":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_roll} to random integer between 1 and 6
 
      send "{@prefix}&fZar sonucu: &e%{_roll}%"
 
      if {_roll} >= 5:
 
        set {_reward} to {_bet} * 3
 
        add {_reward} to {casino.balance::%uuid of player%}
 
        send "{@prefix}&aKazandın! &7Ödül: &a%{_reward}% &ecoin"
 
      else:
 
        send "{@prefix}&cKazanamadın."

    else if arg 1 is "renk":
      set {_bet} to {@default-bet}
 
      if {casino.balance::%uuid of player%} < {_bet}:
 
        send "{@prefix}&cYetersiz bakiyen var."
 
        stop
 
      remove {_bet} from {casino.balance::%uuid of player%}
 
      set {_colors::*} to "Kırmızı"

    else:
      if {casino.balance::%uuid of player%} is not set:

        set {casino.balance::%uuid of player%} to 1000

      open chest with 3 rows named "{@gui-title}" to player

      format slot 10 of player with gold nugget named "&eYazı/Tura" with lore "&7Tahmin et, kazan!" to close then run [execute player command "/casino flip"]

      format slot 11 of player with diamond named "&bSlot Makinesi" with lore "&73 sembolü eşleştir!" to close then run [execute player command "/casino slot"]

      format slot 12 of player with emerald named "&aZar Oyunu" with lore "&71-6 zar at ve kazan!" to close then run [execute player command "/casino dice"]

      format slot 13 of player with red dye named "&cRenk Tahmini" with lore "&7Kırmızı mı, Mavi mi?" to close then run [execute player command "/casino renk"]

      format slot 15 of player with paper named "&fBakiyen" with lore "&7Şu anki coin miktarın" to close then run [execute player command "/balance"]



command /balance:

  trigger:

    set {_bal} to {casino.balance::%uuid of player%}

    if {_bal} is not set:

      set {_bal} to 1000

      set {casino.balance::%uuid of player%} to {_bal}

    send "{@prefix}&fBakiyen: &a%{_bal}% &ecoin"

Kodun belirttiğin "Menü açılmıyor" hatası giderilmiş son hali. (virgül de düzeltildi.)
Teşekkürler ancak kırmızı ve mavi seçme oyunu çalışmıyor ve coin yerine oyuncunun parası olabilir mi?
 
Bunları yaparsanız sevinirim!
 
Son düzenleme:
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