Kumar Skripti HATALI

Umut Savas

Ne demek yanlış? Ben mi?
Mesajlar
812
En iyi cevaplar
0
Beğeniler
247
Puanları
590
Ruh hali
Kod:
command /kumar [<text>] [<text>]:
    trigger:
        arg 1 is set:
            arg 1 is "masa":
                arg 2 is "1":
                    if {masa1.%player%} to true:
                        add -1 to {kalankişi.%loop-player%}
                        send "&cBaşarıyla Sıraya Girdin Başlamasına &6{kalankişi.%player%} &cKişi."
                        set {masa1.%player%} to false
                        set {masa1tag.%player%} to true
                        if chance of 5%:
                            give 1 paper named "&a1"
                            give 1 paper named "&c3"
                            give 1 paper named "&d4"
                            give 1 paper named "&49"
                        if chance of 5%:
                            give 1 paper named "&b2"
                            give 1 paper named "&d4"
                            give 1 paper named "&e5"
                            give 1 paper named "&f6"
                        if chance of 5%:
                            give 1 paper named "&c3"
                            give 1 paper named "&e5"
                            give 1 paper named "&49"
                            give 1 paper named "&17"
                        if chance of 5%:
                            give 1 paper named "&a1"
                            give 1 paper named "&e5"
                            give 1 paper named "&28"
                            give 1 paper named "&17"
                arg 2 is "2":
                    if {masa2.%player%} to true:
                        add -1 to {kalankişi.%loop-player%}
                        send "&cBaşarıyla Sıraya Girdin Başlamasına &6{kalankişi.%player%} &cKişi."
                        set {masa2.%player%} to false
                        set {masa2tag.%player%} to true
                        if chance of 5%:
                            give 1 paper named "&a1"
                            give 1 paper named "&c3"
                            give 1 paper named "&d4"
                            give 1 paper named "&49"
                        if chance of 5%:
                            give 1 paper named "&b2"
                            give 1 paper named "&d4"
                            give 1 paper named "&e5"
                            give 1 paper named "&f6"
                        if chance of 5%:
                            give 1 paper named "&c3"
                            give 1 paper named "&e5"
                            give 1 paper named "&49"
                            give 1 paper named "&17"
                        if chance of 5%:
                            give 1 paper named "&a1"
                            give 1 paper named "&e5"
                            give 1 paper named "&28"
                            give 1 paper named "&17"
                arg 2 is "3":
                    if {masa3.%player%} to true:
                        add -1 to {kalankişi.%loop-player%}
                        send "&cBaşarıyla Sıraya Girdin Başlamasına &6{kalankişi.%player%} &cKişi."
                        set {masa3.%player%} to false
                        set {masa3tag.%player%} to true
                        if chance of 5%:
                            give 1 paper named "&a1"
                            give 1 paper named "&c3"
                            give 1 paper named "&d4"
                            give 1 paper named "&49"
                        if chance of 5%:
                            give 1 paper named "&b2"
                            give 1 paper named "&d4"
                            give 1 paper named "&e5"
                            give 1 paper named "&f6"
                        if chance of 5%:
                            give 1 paper named "&c3"
                            give 1 paper named "&e5"
                            give 1 paper named "&49"
                            give 1 paper named "&17"
                        if chance of 5%:
                            give 1 paper named "&a1"
                            give 1 paper named "&e5"
                            give 1 paper named "&28"
                            give 1 paper named "&17"
                arg 2 is "4":
                    if {masa4.%player%} to true:
                        add -1 to {kalankişi.%loop-player%}
                        send "&cBaşarıyla Sıraya Girdin Başlamasına &6{kalankişi.%player%} &cKişi."
                        set {masa4.%player%} to false
                        set {masa4tag.%player%} to true
                        if chance of 5%:
                            give 1 paper named "&a1"
                            give 1 paper named "&c3"
                            give 1 paper named "&d4"
                            give 1 paper named "&49"
                        if chance of 5%:
                            give 1 paper named "&b2"
                            give 1 paper named "&d4"
                            give 1 paper named "&e5"
                            give 1 paper named "&f6"
                        if chance of 5%:
                            give 1 paper named "&c3"
                            give 1 paper named "&e5"
                            give 1 paper named "&49"
                            give 1 paper named "&17"
                        if chance of 5%:
                            give 1 paper named "&a1"
                            give 1 paper named "&e5"
                            give 1 paper named "&28"
                            give 1 paper named "&17"
            arg 1 is "baslat":
                if player is op:
                    broadcast "&6%player% &cNickli Admin Kumari Başlatti 4 Masa Var Katilmak icin &6/kumar masa masasayisi &c."
                    add 4 to {kalankişi.%loop-player%}
                    set {masa1.%player%} to true
                    set {masa2.%player%} to true
                    set {masa3.%player%} to true
                    set {masa4.%player%} to true
                else:
                    send "&8(&6Admin&8)'&cler Kullanabilir"
            arg 1 is "iptal":
                if player is op:
                    broadcast "&6%player% &cNickli Admin Kumarı İptal Etti"
                    set {masa1.%loop-player%} to false
                    set {masa2.%loop-player%} to false
                    set {masa3.%loop-player%} to false
                    set {masa4.%loop-player%} to false
                    set {kartkullanma.%loop-player%} to false
                    set 0 to {kartpuan.%loop-player%}
                else:
                    send "&8(&6Admin&8)'&cler Kullanabilir"
            arg 1 is "sonuç":
                if player is op:
                    send "Puan Listesi:"
                    send "%{kartpuan.%loop-player%}%"
                else:
                    send "&8(&6Admin&8)'&cler Kullanabilir"
            arg 1 is "bug":
                arg 2 is "gider":
                    if player is op:
                        send "&cBug Gideriliyor!!"
                        set {masa1.%loop-player%} to false
                        set {masa2.%loop-player%} to false
                        set {masa3.%loop-player%} to false
                        set {masa4.%loop-player%} to false
                        set {kartkullanma.%loop-player%} to false
                        set 0 to {kartpuan.%loop-player%}
                    else:
                        send "&8(&6Admin&8)'&cler Kullanabilir"
                else:
                    send "&cGeçersiz"
on chat:
    if {masa1tag.%player%} to true:
        cancel event
        broadcast "&8[&c&lMASA1%8] &7%player%: &c%message%"
on chat:
    if {masa2tag.%player%} to true:
        cancel event
        broadcast "&8[&c&lMASA2%8] &7%player%: &c%message%"
on chat:
    if {masa3tag.%player%} to true:
        cancel event
        broadcast "&8[&c&lMASA3%8] &7%player%: &c%message%"
on chat:
    if {masa4tag.%player%} to true:
        cancel event
        broadcast "&8[&c&lMASA4%8] &7%player%: &c%message%"
every 60 ticks:
    loop all players:
        if 0 to {kalankişi.%loop-player%}:
            stop
        else:
            set {kartkullanma.%loop-player%} to true
            broadcast "&cKumar Başladı En Yüksek Sayı Gelen Kazanır. Kartlara sag Tıklayınız!!"
on rightclick with paper:
    cancel event
    if tool's display name is "&a1":
        if {kartkullanma.%player%} is true:
            remove 1 paper named "&a1" from player
            send "&c1 Puan Eklendi!"
            add 1 to {kartpuan.%player%}
on rightclick with paper:
    cancel event
    if tool's display name is "&b2":
        if {kartkullanma.%player%} is true:
            remove 1 paper named "&b2" from player
            send "&c2 Puan Eklendi!"
            add 2 to {kartpuan.%player%}
on rightclick with paper:
    cancel event
    if tool's display name is "&c3":
        if {kartkullanma.%player%} is true:
            remove 1 paper named "&c3" from player
            send "&c3 Puan Eklendi!"
            add 3 to {kartpuan.%player%}
on rightclick with paper:
    cancel event
    if tool's display name is "&d4":
        if {kartkullanma.%player%} is true:
            remove 1 paper named "&d4" from player
            send "&c4 Puan Eklendi!"
            add 4 to {kartpuan.%player%}
on rightclick with paper:
    cancel event
    if tool's display name is "&e5":
        if {kartkullanma.%player%} is true:
            remove 1 paper named "&e5" from player
            send "&c5 Puan Eklendi!"
            add 5 to {kartpuan.%player%}
on rightclick with paper:
    cancel event
    if tool's display name is "&f6":
        if {kartkullanma.%-player%} is true:
            remove 1 paper named "&f6" from player
            send "&c6 Puan Eklendi!"
            add 6 to {kartpuan.%player%}
on rightclick with paper:
    cancel event
    if tool's display name is "&17":
        if {kartkullanma.%player%} is true:
            remove 1 paper named "&17" from player
            send "&c7 Puan Eklendi!"
            add 7 to {kartpuan.%player%}
on rightclick with paper:
    cancel event
    if tool's display name is "&28":
        if {kartkullanma.%player%} is true:
            remove 1 paper named "&28" from player
            send "&c8 Puan Eklendi!"
            add 8 to {kartpuan.%player%}
on rightclick with paper:
    cancel event
    if tool's display name is "&49":
        if {kartkullanma.%player%} is true:
            remove 1 paper named "&49" from player
            send "&c9 Puan Eklendi!"
            add 9 to {kartpuan.%player%}
Hatalar Var Çözüverseniz :)
birde en yüksek puan alan kazancak :)

acemi işi, sumo dişi
 


Son düzenleme:

Thraenkost

Lapis Toplayıcısı
Mesajlar
936
En iyi cevaplar
1
Beğeniler
400
Puanları
1,080
Ruh hali
Bu skripti yapan kişi acemiymiş. Ben gidiyom
 

Thraenkost

Lapis Toplayıcısı
Mesajlar
936
En iyi cevaplar
1
Beğeniler
400
Puanları
1,080
Ruh hali
Acemiyim Saten :)

Bazı loopları eklememişim :)
1- add -1 to deil "remove 1 from variable"
2- chacelere stop eklememişsin.
3- loop omadığı halde loop kullanmışsın.
4- broadcast yerine send "bla bla" to players yap
 

ForcEmir

Elmas Madencisi
Mesajlar
755
En iyi cevaplar
0
Beğeniler
289
Puanları
680
Kod:
add -1 to {kalankişi.%loop-player%}

Yerine:
Kod:
remove 1 from {kalankişi.%loop-player%}

if chance'lerin eventinin bitiminin sonuna "stop" eklemelisin

Ve arkadaşımızın dediği gibi broadcast log kabartır, fakat , send "deneme" to players yazarsan logları kabartmamış olursun.

Ve oyuncuları loop lamayı unutmuşsun
 

Üst