Şans kutusu ve Para kutusu skript

emre08gs

Sudan Çıkmış
En iyi cevaplar
0
Merhaba Arkadaşlar,
Ben bir skript istiyorumda.
Hani şu eskiden olan mineturk.org sunucusunda bir şans kutusu para kutusu ve item kutusu skripti vardı.
böyle /menu yazınca orda oluyor elinde edit itemler olunca alailiyorsun.
onu nasıl yapıyorlar yada skripti varsa atabilirmisiniz.
Kısacası elinde bir mesela /warp edit'den kazınca şans topu düşüyor onla /menu'deki şans kutusunu almamız gerekiyor.
Ben baya bir uraştım ama olmadı.
Elinde böyle bir skripti olan varsa verebilirmi ?
Şimdiden eğer yazacak varsa başarılar diliyorum.
 

xGoktug

Sudan Çıkmış
En iyi cevaplar
0
Buyur Kardeşim İstediğine Nekadar Benzedi Bilemem Ama Senin İçin Hazırladım Hata Olursa Haber Verirsen Sevinirim.
Kod:
options:
    p: &5&lŞans Kutusu &7>&a
    sanstopu: 16
    sunger_kirinca_tectube_gelmesi: 1 #Gelmesini İstemiyorsan 0 Yaz

on break of sponge:
    cancel event
    drop {@sunger_kirinca_tectube_gelmesi} experience point
    set block to air
    drop 1 firework charge named "&eŞans Topu"
   
       
command /menu:
    trigger:
        open chest with 1 rows named "&6&lMenü" to player
        format slot 0 of player with redstone named "&7{@sanstopu} Tane Şans Topuna 1 Tane Şans Kutusu" to be unstealable
        format slot 6 of player with book to run [execute player command "/sanskutusu"]
        format slot 8 of player with book to run [execute player command "/sanskutusu"]
        stop
       
command /sanskutusu:
    trigger:
        if player has {@sanstopu} firework charge:
            remove {@sanstopu} firework charge named "&eŞans Topu" from player
            give 1 book named "&6&lŞans &7&lKutusu" to player
            stop
        else:
            message "{@p} &cYeterince Şans Topun Bulunmamaktadır."
            stop
           
on rightclick with book:
    if name of player's tool is "&6&lŞans &7&lKutusu":
        chance of 25%:
            add 50000 to player's account
            message "{@p} 50K Para Kazandın."
            stop
        else:
            chance of 25%:
                give 64 diamond block to player
                message "{@p} 64 Tane Elmas Block Kazandın."
                stop
            else:
                chance of 50%:
                    give 1 diamond helmet of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    give 1 diamond chestplate of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    give 1 diamond leggings of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    give 1 diamond boots of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    message "{@p} Koruma 4 Set Kazandın."
                    stop
                else:
                    chance of 40%:
                        give 1 diamond sword of sharpness 10 named "&9Keskinlik 10 &7> &4Kanlı Zebaninin Dostu" to player
                        message "{@p} Keskinlik 10 Kılıç Kazandın."
                        stop
                    else:
                        give 1 skull named "&7&lTekrar Dene"
                        message "{@p} &4Tekrar Dene."
                        stop
 

emre08gs

Sudan Çıkmış
En iyi cevaplar
0
Buyur Kardeşim İstediğine Nekadar Benzedi Bilemem Ama Senin İçin Hazırladım Hata Olursa Haber Verirsen Sevinirim.
Kod:
options:
    p: &5&lŞans Kutusu &7>&a
    sanstopu: 16
    sunger_kirinca_tectube_gelmesi: 1 #Gelmesini İstemiyorsan 0 Yaz

on break of sponge:
    cancel event
    drop {@sunger_kirinca_tectube_gelmesi} experience point
    set block to air
    drop 1 firework charge named "&eŞans Topu"
  
      
command /menu:
    trigger:
        open chest with 1 rows named "&6&lMenü" to player
        format slot 0 of player with redstone named "&7{@sanstopu} Tane Şans Topuna 1 Tane Şans Kutusu" to be unstealable
        format slot 6 of player with book to run [execute player command "/sanskutusu"]
        format slot 8 of player with book to run [execute player command "/sanskutusu"]
        stop
      
command /sanskutusu:
    trigger:
        if player has {@sanstopu} firework charge:
            remove {@sanstopu} firework charge named "&eŞans Topu" from player
            give 1 book named "&6&lŞans &7&lKutusu" to player
            stop
        else:
            message "{@p} &cYeterince Şans Topun Bulunmamaktadır."
            stop
          
on rightclick with book:
    if name of player's tool is "&6&lŞans &7&lKutusu":
        chance of 25%:
            add 50000 to player's account
            message "{@p} 50K Para Kazandın."
            stop
        else:
            chance of 25%:
                give 64 diamond block to player
                message "{@p} 64 Tane Elmas Block Kazandın."
                stop
            else:
                chance of 50%:
                    give 1 diamond helmet of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    give 1 diamond chestplate of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    give 1 diamond leggings of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    give 1 diamond boots of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    message "{@p} Koruma 4 Set Kazandın."
                    stop
                else:
                    chance of 40%:
                        give 1 diamond sword of sharpness 10 named "&9Keskinlik 10 &7> &4Kanlı Zebaninin Dostu" to player
                        message "{@p} Keskinlik 10 Kılıç Kazandın."
                        stop
                    else:
                        give 1 skull named "&7&lTekrar Dene"
                        message "{@p} &4Tekrar Dene."
                        stop

Skript güzel ancak bazı hatalar aldım düzeltirsen sevinirim.

Kod:
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: drop 1 firework charge named "&eŞans Topu" (sans.sk, line 10: drop 1 firework charge named "&eŞans Topu"')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: open chest with 1 rows named "&6&lMenü" to player (sans.sk, line 15: open chest with 1 rows named "&6&lMenü" to player')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: format slot 0 of player with redstone named "&716 Tane Şans Topuna 1 Tane Şans Kutusu" to be unstealable (sans.sk, line 16: format slot 0 of player with redstone named "&7{@sanstopu} Tane Şans Topuna 1 Tane Şans Kutusu" to be unstealable')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: format slot 6 of player with book to run [execute player command "/sanskutusu"] (sans.sk, line 17: format slot 6 of player with book to run [execute player command "/sanskutusu"]')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: format slot 8 of player with book to run [execute player command "/sanskutusu"] (sans.sk, line 18: format slot 8 of player with book to run [execute player command "/sanskutusu"]')
[13:25:40] [Server thread/ERROR]: [Skript] can't understand this condition: 'player has 16 firework charge' (sans.sk, line 23: if player has {@sanstopu} firework charge:')
[13:25:40] [Server thread/ERROR]: [Skript] 'else' has to be placed just after an 'if' or 'else if' section (sans.sk, line 27: else:')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: add 50000 to player's account (sans.sk, line 34: add 50000 to player's account')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: give 1 skull named "&7&lTekrar Dene" (sans.sk, line 56: give 1 skull named "&7&lTekrar Dene"')
[13:25:40] [Server thread/INFO]: [Skript] Loaded 1 script with a total of 2 triggers and 2 commands in 0.23 seconds
 

xGoktug

Sudan Çıkmış
En iyi cevaplar
0
Skript güzel ancak bazı hatalar aldım düzeltirsen sevinirim.

Kod:
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: drop 1 firework charge named "&eŞans Topu" (sans.sk, line 10: drop 1 firework charge named "&eŞans Topu"')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: open chest with 1 rows named "&6&lMenü" to player (sans.sk, line 15: open chest with 1 rows named "&6&lMenü" to player')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: format slot 0 of player with redstone named "&716 Tane Şans Topuna 1 Tane Şans Kutusu" to be unstealable (sans.sk, line 16: format slot 0 of player with redstone named "&7{@sanstopu} Tane Şans Topuna 1 Tane Şans Kutusu" to be unstealable')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: format slot 6 of player with book to run [execute player command "/sanskutusu"] (sans.sk, line 17: format slot 6 of player with book to run [execute player command "/sanskutusu"]')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: format slot 8 of player with book to run [execute player command "/sanskutusu"] (sans.sk, line 18: format slot 8 of player with book to run [execute player command "/sanskutusu"]')
[13:25:40] [Server thread/ERROR]: [Skript] can't understand this condition: 'player has 16 firework charge' (sans.sk, line 23: if player has {@sanstopu} firework charge:')
[13:25:40] [Server thread/ERROR]: [Skript] 'else' has to be placed just after an 'if' or 'else if' section (sans.sk, line 27: else:')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: add 50000 to player's account (sans.sk, line 34: add 50000 to player's account')
[13:25:40] [Server thread/ERROR]: [Skript] Can't understand this condition/effect: give 1 skull named "&7&lTekrar Dene" (sans.sk, line 56: give 1 skull named "&7&lTekrar Dene"')
[13:25:40] [Server thread/INFO]: [Skript] Loaded 1 script with a total of 2 triggers and 2 commands in 0.23 seconds

Yeni Gördüm Kardeşim Bakıyorum Sorun Nedir Diye.

Buyur Koddaki Hataları Düzelttim Umarım Beğenirsin Denediğim Version Spigot 1.8 Haberin Olsun.

Kod:
options:
    p: &5&lŞans Kutusu &7>&a
    sunger_kirinca_tectube_gelmesi: 1 #Gelmesini İstemiyorsan 0 Yaz

on break of sponge:
    cancel event
    drop {@sunger_kirinca_tectube_gelmesi} experience point
    set block to air
    drop 1 firework star of protection 1 named "&eŞans Topu"
  
      
command /menu:
    trigger:
        open chest with 1 rows named "&6&lMenü" to player
        format slot 0 of player with redstone named "&716 Tane Şans Topuna 1 Tane Şans Kutusu" to be unstealable
        format slot 6 of player with book named "&a&lSatın Al" to run [execute player command "/sanskutusu"]
        format slot 8 of player with book named "&a&lSatın Al" to run [execute player command "/sanskutusu"]
        stop
      
command /sanskutusu:
    trigger:
        if player has 16 firework star named "&eŞans Topu" in inventory:
            remove 16 firework star of protection 1 named "&eŞans Topu" from player
            give 1 book named "&6&lŞans &7&lKutusu" to player
        else:
            send "&4HATA! &cYeterince Eşya Bulunmamakta."
          
          
on rightclick with book:
    if name of player's tool is "&6&lŞans &7&lKutusu":
        remove 1 book named "&6&lŞans &7&lKutusu" from player
        chance of 25%:
            add 50000 to player's account
            message "{@p} 50K Para Kazandın."
            stop
        else:
            chance of 25%:
                give 64 diamond block to player
                message "{@p} 64 Tane Elmas Block Kazandın."
                stop
            else:
                chance of 50%:
                    give 1 diamond helmet of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    give 1 diamond chestplate of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    give 1 diamond leggings of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    give 1 diamond boots of protection 4 named "&9Korum 4 &7> &5Elçinin Zırhı" to player
                    message "{@p} Koruma 4 Set Kazandın."
                    stop
                else:
                    chance of 40%:
                        give 1 diamond sword of sharpness 10 named "&9Keskinlik 10 &7> &4Kanlı Zebaninin Dostu" to player
                        message "{@p} Keskinlik 10 Kılıç Kazandın."
                        stop
                    else:
                        give 1 mob head item named "&7&lTekrar Dene" to player
                        message "{@p} &4Tekrar Dene."
                        stop
 
Üst