Para Kutusu Skript'i

aroSas

Zombi Katili
En iyi cevaplar
0
Skript Komutu
/parakutu
Bu komutu kulandıkdan sonra envanterinize Hazine adlı sandık geliyor.

Sağ tıkladığınız anda size şans a göre para veriyor.

Sıra kod da :)
Kod:
command /parakutu:
    permission: para.kutu
    trigger:
        set {para.%player%} to chest named "&c&lHazine"
        give {para.%player%} to player
on rightclick holding a chest:
    if tool's name is "&c&lHazine":
        cancel event
        remove 1 chest named "&c&lHazine" from player's inventory
        chance of 60%:
            add 50000 to the player's account
            message " &e| &7- &c Sunucu &7- &e| &7Tebrikler kutudan 5k cikardin."
            stop
        chance of 55%:
            add 90000 to the player's account
            message " &e| &7- &c Sunucu &7- &e| &7Tebrikler kutudan 9k cikardin."
            stop
        chance of 50%:
            add 110000 to the player's account
            message " &e| &7- &c Sunucu &7- &e| &7Tebrikler kutudan 11k cikardin."
            stop
        chance of 45%:
            add 150000 to the player's account
            message " &e| &7- &c Sunucu &7- &e| &7Tebrikler kutudan 15k cikardin."
            stop
        chance of 35%:
            add 1000000 to the player's account
            message " &e| &7- &c Sunucu &7- &e| &7Tebrikler kutudan 1M cikardin."
            stop

NOT: Bug yapılmaması için oyunculara renkli yazı yetkisi vermeyiniz.
 
Son düzenleme:

asitsoft

Marangoz
En iyi cevaplar
0
etiket ile objelere isim verilebiliyor.sunucuda chestte örs ile "Hazine" adı verilebilir.bugu olabilir.
 

Pledix

Kızıltaş Madencisi
En iyi cevaplar
0
Gereksiz normal variable kullanmışsın, boş yere RAM kullanımı yaratacağına tüm normal variablelerin isimlerinin başına _ koyarak local variableye çevir ve komutu kişiye özel yaptığın için içindeki %player% ları da sil, gereksiz çünkü. Gerçi variable bile kullanmaya gerek yok.

Üstelik toplu olarak tüm oyuncuya dağıtmak isteyen:
Python:
command /parakutudagit:
    permission: para.kutudagit
    trigger:
        loop all players:
            give (chest named "&c&lHazine") to loop-player
 

successed

PLAY.İZMİRMC.COM 1.13 #BİR BLOK DÜNYASI!
En iyi cevaplar
0
Skript Komutu
/parakutu
Bu komutu kulandıkdan sonra envanterinize Hazine adlı sandık geliyor.

Sağ tıkladığınız anda size şans a göre para veriyor.

Sıra kod da :)
Kod:
command /parakutu:
Kod:
permission: para.kutu​
trigger:​
set {para.%player%} to chest named "&c&lHazine"​
give {para.%player%} to player​
on rightclick holding a chest:​
if tool's name is "&c&lHazine":​
cancel event​
remove 1 chest named "&c&lHazine" from player's inventory​
chance of 60%:​
add 50000 to the player's account​
message " &e| &7- &c Sunucu &7- &e| &7Tebrikler kutudan 5k cikardin."​
stop​
chance of 55%:​
add 90000 to the player's account​
message " &e| &7- &c Sunucu &7- &e| &7Tebrikler kutudan 9k cikardin."​
stop​
chance of 50%:​
add 110000 to the player's account​
message " &e| &7- &c Sunucu &7- &e| &7Tebrikler kutudan 11k cikardin."​
stop​
chance of 45%:​
add 150000 to the player's account​
message " &e| &7- &c Sunucu &7- &e| &7Tebrikler kutudan 15k cikardin."​
stop​
chance of 35%:​
add 1000000 to the player's account​
message " &e| &7- &c Sunucu &7- &e| &7Tebrikler kutudan 1M cikardin."​
stop​
NOT: Bug yapılmaması için oyunculara renkli yazı yetkisi vermeyiniz.
Birkaç adet lore eklerseniz, Bug ihtimali düşecektir diye düşünüyorum.
 
Üst