Çözüldü Rulet Skripti 5 Error

  • Konuyu Başlatan Konuyu Başlatan Fenix Network
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 856
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Fenix Network

FenixNW.Keyubu.Com
Katılım
22 Eylül 2019
Mesajlar
894
Elmaslar
581
Puan
6.020
Yaş
27
2020-03-07 (16).png

Gönderi otomatik olarak birleştirildi:

Yardımcı Olcak Varmı
 
Son düzenleme:
Skripti atmadığın sürece verimli bir yardım alamayabilirsin.
 
Skripti atmadığın sürece verimli bir yardım alamayabilirsin.
Kod:
options:
    remainingTime: &e&lSKYBLOCK &8▶ &7Rulet &a%{_i}% sn&7 sonra çekilecek, katılmak için &a<ttp:&dTıkla ve rulet macerasına atıl!><sgt:/rulet yatır (miktar)>&atıkla&7.<reset>
    rolling: &e&lSKYBLOCK &8▶ &7Rulet çekiliyor, izlemek için §a<ttp:&dTıkla ve rulet çekilirken izle!><cmd:/rulet>&atıkla&7.
    already: &e&lSKYBLOCK &8▶ &7Paranı zaten %{_x}%&7 tarafa yatırmışsın!
    
    notEnoughMoney: &e&lSKYBLOCK &8▶ &7Gerekli paraya sahip değilsin! Gereken miktar: &a%{_x}%
    
    winned: &e&lSKYBLOCK &8▶ &7Tebrikler! Ruletten, &a%{_i}%&a TL &7kazandın!
    losted: &e&lSKYBLOCK &8▶ &7Üzgünüm, ruletten &a%{_i}%&a TL &7kaybettin!
    
    header: &8&m-----------------------------------------------------
    line1: &7
    line2: &7                    Rulete para yatırmak için,
    line3: &a                      &a-/rulet yatır <miktar>
    line4: &7
    line5: &7                    Rulet menüsüne bakmak için,
    line6: &a                              &a-/rulet
    line7: &7
    line8: &8&m-----------------------------------------------------
    
    selected: &e&lSKYBLOCK &8▶ &7Dikkat, %{_x}%&7 &a%{_i}%&a TL &7yatırdın, bol şans!
    
    ruletGuiName: Rulet izleme menüsü
    ruletChooseGuiName: Tarafını seç!
    
    rollSound: note.pling
    
    selectedSound: note.pling

    slowPercent: 70 # Rulet, %70 döndüğünde slowSpinTick devreye girer.
    slowSpinTick: 15
    normalSpinTick: 10

on load:
    
    create a gui with id "rulet" with chest with 3 rows named "{@ruletGuiName}":
        loop 27 times:
            make gui slot (loop-value - 1) with gray stained glass pane named " "
        make gui slot 4, 22 with green stained glass pane named " "
        
    resetGui("rulet")
    
    create a gui with id "ruletChoose" with chest with 3 rows named "{@ruletChooseGuiName}":
        loop 27 times:
            make gui slot (loop-value - 1) with gray stained glass pane named " "
    
        make gui slot 12 with black wool named "&8Siyah" with lore "&7||&7Yatırdığınız paranın &a2 &7katını verir,||&a49.5&7 oranında kazanma şansı vardır.||&7" :
            set {rulet::black_wool::%player%} to {rulet::balances::%player%}
            
            
            set {_x} to "&8siyah"
            set {_i} to {rulet::balances::%player%}
            send "{@selected}" to player
            
            
            remove {_i} from player's balance
            
            close player's inventory
            
        make gui slot 13 with light green wool named "&aYeşil" with lore "&7||&7Yatırdığınız paranın &a4 &7katını verir,||&a01&7 oranında kazanma şansı vardır.||&7" :
            set {rulet::light green wool::%player%} to {rulet::balances::%player%}
            

            set {_x} to "&ayeşil"
            set {_i} to {rulet::balances::%player%}
            send "{@selected}" to player
            remove {_i} from player's balance
            
            close player's inventory
            
        make gui slot 14 with red wool named "&cKırmızı" with lore "&7||&7Yatırdığınız paranın &a2 &7katını verir,||&a49.5&7 oranında kazanma şansı vardır.||&7" :
            set {rulet::red_wool::%player%} to {rulet::balances::%player%}
        
            set {_x} to "&ckırmızı"
            set {_i} to {rulet::balances::%player%}
            send "{@selected}" to player
            
            
            remove {_i} from player's balance
            
            close player's inventory
        
    
        run when close gui:
            play sound "{@selectedSound}" with volume 0.5 and pitch 2 at player's location for player
            delete {rulet::balances::%player%}
    if {rulet::active} is false:
        set {rulet::active} to false       
        resetGui("rulet")
        start()       
    
on unload:
    set {rulet::active} to false
    
    delete {rulet::red_wool::*}
    delete {rulet::black_wool::*}
    delete {rulet::light green wool::*}
    
function rulet():
    if {rulet::active} is true:
        stop
    set {rulet::active} to true
    
    
    set {_x} to random integer between 25 and 35
    loop {_x} times:
        loop 9 times:
            set {_i} to (loop-value-2) + 8
            set {_item} to slot {_i} of gui "rulet"
            set {_%{_i}%} to {_item}
        edit gui "rulet":
            make gui slot 17 to {_9}
            loop 8 times:
                make gui slot (loop-value-2) + 8 to {_%(loop-value-2) + 9%}
        set {_x::*} to (gui "rulet")'s viewers
        loop {_x::*}:
            play sound "{@rollSound}" with volume 0.5  at loop-value-2's location for loop-value-2
        
        if loop-value >= ({_x} * {@slowPercent}) / 100:
            wait {@slowSpinTick} tick
        else:
            wait {@normalSpinTick} tick

    set {_item} to (slot 13 of gui "rulet")
    if {_item} is light green wool:
        loop {rulet::light green wool::*}:
            set {_i} to loop-value * 4
            add {_i} to (loop-index parsed as offlineplayer)'s balance
            send "{@winned}" to loop-index parsed as player
        loop {rulet::black_wool::*}:
            set {_i} to loop-value
            send "{@losted}" to loop-index parsed as player
        loop {rulet::red_wool::*}:
            set {_i} to loop-value
            send "{@losted}" to loop-index parsed as player
            
    else if {_item} is black wool:
        loop {rulet::black_wool::*}:
            set {_i} to loop-value * 2
            add {_i} to (loop-index parsed as offlineplayer)'s balance
            send "{@winned}" to loop-index parsed as player
        loop {rulet::red_wool::*}:
            set {_i} to loop-value
            send "{@losted}" to loop-index parsed as player         
        loop {rulet::light green wool::*}:
            set {_i} to loop-value
            send "{@losted}" to loop-index parsed as player               
            
    else if {_item} is red wool:
        loop {rulet::red_wool::*}:
            set {_i} to loop-value * 2
            add {_i} to (loop-index parsed as offlineplayer)'s balance
            send "{@winned}" to loop-index parsed as player
        loop {rulet::black_wool::*}:
            set {_i} to loop-value
            send "{@losted}" to loop-index parsed as player               
        loop {rulet::light green wool::*}:
            set {_i} to loop-value
            send "{@losted}" to loop-index parsed as player           
    
    
    
    delete {rulet::red_wool::*}
    delete {rulet::black_wool::*}
    delete {rulet::light green wool::*}
    
    set {rulet::active} to false
    start()


            
            
function start():
    if {rulet::active} is true:
        stop
    

    wait 60 seconds   
    set {_i} to 120
    send "{@remainingTime}" to players

    wait 60 seconds   
    set {_i} to 60
    send "{@remainingTime}" to players
    
    
    wait 40 seconds
    set {_i} to 20
    send "{@remainingTime}" to players
    
    wait 5 seconds
    set {_i} to 15
    send "{@remainingTime}" to players
    
    wait 5 seconds
    set {_i} to 10
    send "{@remainingTime}" to players
    
    wait 5 seconds
    set {_i} to 5
    send "{@remainingTime}" to players
    
    wait 5 seconds
    send "{@rolling}" to players
    rulet()
    
    
function resetGui(name : string):
    edit gui {_name}:
        make gui slot 9 to light green wool named "&aYeşil"
        make gui slot 10 to black wool named "&7Siyah"
        make gui slot 11 to red wool named "&cKırmızı"
        make gui slot 12 to black wool named "&7Siyah"
        make gui slot 13 to red wool named "&cKırmızı"
        make gui slot 14 to black wool named "&7Siyah"
        make gui slot 15 to red wool named "&cKırmızı"
        make gui slot 16 to black wool named "&7Siyah"
        make gui slot 17 to red wool named "&cKırmızı"   

command /rulet [<text>] [<integer>]:
    trigger:
        if arg-1 isn't set:
            open gui "rulet" to player   
            stop   
        else if arg-1 is "gui" or "menu" or "menü":
            open gui "rulet" to player   
            stop
        else if arg-1 is "yatır":
            if {rulet::black_wool::%player%} is set:
                set {_x} to "&8siyah"
                send "{@already}" to player
                stop
            if {rulet::red_wool::%player%} is set:
                set {_x} to "&ckırmızı"
                send "{@already}" to player
                stop
            if {rulet::light green wool::%player%} is set:
                set {_x} to "&ayeşil"
                send "{@already}" to player
                stop
                    
            if arg-2 isn't set:
                send "&e&lSKYBLOCK &8▶ &7Yatıracak bir &amiktar&7 girmelisin!"
                stop
            if arg-2 <= 0:
                send "&e&lSKYBLOCK &8▶ &7Bu miktar çok düşük!"
                stop
            if player's balance >= arg-2:
                open gui "ruletChoose" to player
                set {rulet::balances::%player%} to arg-2
                stop
            set {_x} to ((arg-2) - player's money)   
            send "{@notEnoughMoney}" to player
        else:
            send "{@header}"
            send "{@line1}"
            send "{@line2}"
            send "{@line3}"
            send "{@line4}"
            send "{@line5}"
            send "{@line6}"   
            send "{@line7}"
            send "{@line8}"
 
gerekli addonların tam olduğundan eminmisin ?
 
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