[Skript] LuckyBlock #Ayarlanabilir.

MeeRach

Vi3e
En iyi cevaplar
0
Kod:
on rightclick with chest:
    if player has 1 chest in his inventory:
        send "&a[&8LuckyBlock&a] &3&lBir LuckyBlock Açıyorsun."
        wait 1 seconds
        send "&a[&8LuckyBlock&a] &3&lLuckyBlock Açılıyor. #3 saniye"
        wait 3 seconds
        chance of 2%:
            execute console command "/eco give %player% 150000"
            send "&a[&8LuckyBlock&a] &c150.000 kazandin."
            broadast "&a[&8LuckyBlock&a] &9&l%player% &c&l150.500 Kazandi!"
        chance of 70%:
            execute console command "/give %player% 3 1"
            send "&a[&8LuckyBlock&a] &cŞansına küs taş çıktı."
        chance of 15%:
            execute console command "/give %player% diamond 1"
            send "&a[&8LuckyBlock&a] &cHadi yine şanslısın elmas kazandin"
        remove 1 chest from player
Skript yazmaya yeni başladım basit olabilir.
 
Son düzenleme:

NeonSpade

Neon, the best
En iyi cevaplar
0
PHP:
on place of chest:
    name of player's tool is "&a[&8LuckyBlock&a]":
        set {lucky.%block%} to true

on break of chest:
    {lucky.%block%} is true:
        set {lucky.%block%} to false
command /luckyblock:
    trigger:
        player's money is greater than 500:
            execute console command "eco take %player% 500"
            give a chest named "&a[&8LuckyBlock&a]" to player

on rightclick on a chest:
    if {lucky.%clicked block%} is true:
        cancel event
        send "&a[&8LuckyBlock&a] &3&lBir LuckyBlock Açıyorsun."
        wait 1 seconds
        send "&a[&8LuckyBlock&a] &3&lLuckyBlock Açılıyor. #3 saniye"
        wait 3 seconds
        set clicked block to air
        chance of 2%:
            execute console command "eco give %player% 150000"
            send "&a[&8LuckyBlock&a] &c150.000 kazandın."
            broadcast "&a[&8LuckyBlock&a] &9&l%player% &c&l150.500 Kazandı!"
        chance of 70%:
            give 1 stone to player
            send "&a[&8LuckyBlock&a] &cŞansına küs taş çıktı."
        chance of 15%:
            give 1 diamond to player
            send "&a[&8LuckyBlock&a] &cHadi yine şanslısın elmas kazandın"
Denemedim variable hata verebilir.
UTF-8
 
Son düzenleme:

MhaWTHoR

Obsidyen Madencisi
En iyi cevaplar
1
PHP:
on place of chest:
    name of player's tool is "&a[&8LuckyBlock&a]":
        set {lucky.%block%} to true

on break of chest:
    {lucky.%block%} is true:
        set {lucky.%block%} to false
command /luckyblock:
    trigger:
        player's money is greater than 500:
            remove 500 from player's money
            give a chest named "&a[&8LuckyBlock&a]" to player

on rightclick on a chest:
    if {lucky.%clicked block%} is true:
        cancel event
        send "&a[&8LuckyBlock&a] &3&lBir LuckyBlock Açıyorsun."
        wait 1 seconds
        send "&a[&8LuckyBlock&a] &3&lLuckyBlock Açılıyor. #3 saniye"
        wait 3 seconds
        set clicked block to air
        chance of 2%:
            add 150000 to player's money
            send "&a[&8LuckyBlock&a] &c150.000 kazandın."
            broadcast "&a[&8LuckyBlock&a] &9&l%player% &c&l150.500 Kazandı!"
        chance of 70%:
            give 1 stone to player
            send "&a[&8LuckyBlock&a] &cŞansına küs taş çıktı."
        chance of 15%:
            give 1 diamond to player
            send "&a[&8LuckyBlock&a] &cHadi yine şanslısın elmas kazandın"
Denemedim variable hata verebilir.
UTF-8
add 150000 to player's money çalışmaz :(
Aynı zamanda remove 500 from player's money buda çalışmaz.
 
Son düzenleme:

MeeRach

Vi3e
En iyi cevaplar
0
PHP:
on place of chest:
    name of player's tool is "&a[&8LuckyBlock&a]":
        set {lucky.%block%} to true

on break of chest:
    {lucky.%block%} is true:
        set {lucky.%block%} to false
command /luckyblock:
    trigger:
        player's money is greater than 500:
            remove 500 from player's money
            give a chest named "&a[&8LuckyBlock&a]" to player

on rightclick on a chest:
    if {lucky.%clicked block%} is true:
        cancel event
        send "&a[&8LuckyBlock&a] &3&lBir LuckyBlock Açıyorsun."
        wait 1 seconds
        send "&a[&8LuckyBlock&a] &3&lLuckyBlock Açılıyor. #3 saniye"
        wait 3 seconds
        set clicked block to air
        chance of 2%:
            add 150000 to player's money
            send "&a[&8LuckyBlock&a] &c150.000 kazandın."
            broadcast "&a[&8LuckyBlock&a] &9&l%player% &c&l150.500 Kazandı!"
        chance of 70%:
            give 1 stone to player
            send "&a[&8LuckyBlock&a] &cŞansına küs taş çıktı."
        chance of 15%:
            give 1 diamond to player
            send "&a[&8LuckyBlock&a] &cHadi yine şanslısın elmas kazandın"
Denemedim variable hata verebilir.
UTF-8
Skript yazmaya yeni başladım bu kadar iyi bir şey bekleme :)
 
Üst