İstek Borsa Guili Yardım

AhmethakanMansur451

Sudan Çıkmış
Mesajlar
6
En iyi cevaplar
0
Beğeniler
2
Puanları
30
Arkadaşlar İstegim Şu Aşagıda:

Arkadaşlar 3 tane para olcak dolar euro bitcoin
Gui de 1 slot da Borsa Durumu olcak 3 ünün fiyatı
Sonra Satın Alma olcak 3 ünü Sonra Satma Olcak
Bide 30 dk da fiyatları değişme olcak Lütfen yardım edin arkadaşlar
 


ToprakM

KEK
Sponsor
Emektar Üye
Mesajlar
441
En iyi cevaplar
49
Beğeniler
667
Puanları
2,485
Ruh hali
Arkadaşlar İstegim Şu Aşagıda:

Arkadaşlar 3 tane para olcak dolar euro bitcoin
Gui de 1 slot da Borsa Durumu olcak 3 ünün fiyatı
Sonra Satın Alma olcak 3 ünü Sonra Satma Olcak
Bide 30 dk da fiyatları değişme olcak Lütfen yardım edin arkadaşlar
Fiyatları kendi mi değişecek elle mi değiştirilecek? Aklınızdaki nasıl bir şey?
 

AhmethakanMansur451

Sudan Çıkmış
Mesajlar
6
En iyi cevaplar
0
Beğeniler
2
Puanları
30
Fiyatları kendi mi değişecek elle mi değiştirilecek? Aklınızdaki nasıl bir şey?
kendi değişcek kardeş şöyle olcak

command /değiştir:
trigger:
if player is an op:
set {bitcoin.piyasa} to a random integer between 1 and 700
set {dolar.piyasa} to a random integer between 1 and 700
set {euro.piyasa} to a random integer between 1 and 700
play "GHAST_SCREAM" to player at volume 10
send player title "&c&lBORSA YENİLENDİ!" with subtitle "&7Para Birim fiyatları değişti!" for 3 seconds
wait 3 seconds
play "GHAST_SCREAM" to player at volume 10
send player title "&6&lYENİ FİYATLAR" with subtitle "&7/borsa" for 3 seconds

bunun gibi olcak
 

ToprakM

KEK
Sponsor
Emektar Üye
Mesajlar
441
En iyi cevaplar
49
Beğeniler
667
Puanları
2,485
Ruh hali
Buyur
JavaScript:
on load:
    if {borsabitcoin::deger} is not set:
        set {borsabitcoin::deger} to a random integer between 500 and 10000
    if {borsaeuro::deger} is not set:
        set {borsaeuro::deger} to a random integer between 1 and 700
    if {borsadolar::deger} is not set:
        set {borsadolar::deger} to a random integer between 1 and 700
        
command /döviz [<text>] [<text>]:
    permission: doviz.kullan
    aliases: doviz, borsa
    trigger:
        if arg-1 is not set:
            wait 5 ticks
            open chest with 1 rows named "&6&lDöviz" to player
            if {borsaeuro::deger} > 12:
                set {_euroalis} to {borsaeuro::deger} - 12
            else:
                set {_euroalis} to 0
            format slot 3 of player with orange wool named "&6Euro €" with lore "&fAlış fiyatı: %{_euroalis}%||&fSatış fiyatı: %{borsaeuro::deger}%|| ||&eİşlem yapmak için tıklayınız." to close then run [execute player command "döviz euro"]
            if {borsadolar::deger} > 12:
                set {_dolaralis} to {borsadolar::deger} - 12
            else:
                set {_dolaralis} to 0
            format slot 3 of player with orange wool named "&6Dolar $" with lore "&fAlış fiyatı: %{_dolaralis}%||&fSatış fiyatı: %{borsadolar::deger}%|| ||&eİşlem yapmak için tıklayınız." to close then run [execute player command "döviz dolar"]
            if {borsabitcoin::deger} > 20:
                set {_bitcoinalis} to {borsabitcoin::deger} - 20
            else:
                set {_bitcoinalis} to 0
            format slot 3 of player with orange wool named "&&6Bitcoin ฿" with lore "&fAlış fiyatı: %{_bitcoinalis}%||&fSatış fiyatı: %{borsabitcoin::deger}%|| ||&eİşlem yapmak için tıklayınız." to close then run [execute player command "döviz bitcoin"]
        if arg-1 is "euro":
            if arg-2 is not set:
                wait 5 ticks
                open chest with 1 rows named "&6&lDöviz Euro" to player
                if {dovizeuro::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizeuro::sahip::%player%}
                format slot 3 of player with orange wool named "&6Sahip olduğun Euro: %{_sahip}%€" to close then run [execute player command "döviz euro"]
                if {borsaeuro::deger} > 12:
                    set {_euroalis} to {borsaeuro::deger} - 12
                else:
                    set {_euroalis} to 0
                format slot 4 of player with orange wool named "&6Euro al" with lore "&fAlış fiyatı %{_euroalis}%" to close then run [execute player command "döviz euro al"]
                format slot 5 of player with orange wool named "&6Euro sat" with lore "&fSatış fiyatı %{borsaeuro::deger}%" to close then run [execute player command "döviz euro sat"]
            if arg-2 is "al":
                send "&6&lLütfen ne kadar Euro almak istediğinizi sohbete yazın. Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizeuroalsayi::%player%} to true
            if arg-2 is "sat":
                if {dovizeuro::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizeuro::sahip::%player%}
                if {_sahip} is 0:
                    send "&cSatacak hiç avron yok!"
                    stop
                send "&6&lLütfen ne kadar Euro satmak istediğinizi sohbete yazın (sahip olduğunuz %{_sahip}%). Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizeurosatsayi::%player%} to true
        if arg-1 is "dolar":
            if arg-2 is not set:
                wait 5 ticks
                open chest with 1 rows named "&6&lDöviz Dolar" to player
                if {dovizdolar::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizdolar::sahip::%player%}
                format slot 3 of player with orange wool named "&6Sahip olduğun Dolar: %{_sahip}%$" to close then run [execute player command "döviz dolar"]
                if {borsadolar::deger} > 12:
                    set {_dolaralis} to {borsadolar::deger} - 12
                else:
                    set {_dolaralis} to 0
                format slot 4 of player with orange wool named "&6Dolar al" with lore "&fAlış fiyatı %{_dolaralis}%" to close then run [execute player command "döviz dolar al"]
                format slot 5 of player with orange wool named "&6Dolar sat" with lore "&fSatış fiyatı %{borsadolar::deger}%" to close then run [execute player command "döviz dolar sat"]
            if arg-2 is "al":
                send "&6&lLütfen ne kadar Dolar almak istediğinizi sohbete yazın. Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizdolaralsayi::%player%} to true
        if arg-1 is "bitcoin":
            if arg-2 is not set:
                wait 5 ticks
                open chest with 1 rows named "&6&lDöviz Bitcoin" to player
                if {dovizbitcoin::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizbitcoin::sahip::%player%}
                format slot 3 of player with orange wool named "&6Sahip olduğun Bitcoin: %{_sahip}%฿" to close then run [execute player command "döviz bitcoin"]
                if {borsabitcoin::deger} > 20:
                    set {_bitcoinalis} to {borsabitcoin::deger} - 20
                else:
                    set {_bitcoinalis} to 0
                format slot 4 of player with orange wool named "&6Bitcoin al" with lore "&fAlış fiyatı %{_bitcoinalis}%" to close then run [execute player command "döviz bitcoin al"]
                format slot 5 of player with orange wool named "&6Bitcoin sat" with lore "&fSatış fiyatı %{borsabitcoin::deger}%" to close then run [execute player command "döviz bitcoin sat"]
            if arg-2 is "al":
                send "&6&lLütfen ne kadar bitcoin almak istediğinizi sohbete yazın. Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizbitcoinalsayi::%player%} to true

on chat:
    if {dovizeuroalsayi::%player%} is true:
        if message parsed as integer is set:
            set {_fiyat} to {borsaeuro::deger} * message
            cancel event
            if player's balance is bigger than or equal to {_fiyat}:
                remove {_fiyat} from player's balance
                if {dovizeuro::sahip::%player%} is not set:
                    set {dovizeuro::sahip::%player%} to 0
                add message to {dovizeuro::sahip::%player%::*}
                send "&2Başarıyla %{_fiyat}% değerindeki %message%€ satın aldın."
                delete {dovizeuroalsayi::%player%}
            else:
                set {_gereken} to {_fiyat} - player's balance
                send "&cKusura bakma lakin yeterlince paran yok. &f({_gereken}TL daha gerek.)"
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizeuroalsayi::%player%}
            send "&aBaşarıyla Euro alma işlemini iptal ettin."
            cancel event
    if {dovizdolaralsayi::%player%} is true:
        if message parsed as integer is set:
            set {_fiyat} to {borsadolar::deger} * message
            cancel event
            if player's balance is bigger than or equal to {_fiyat}:
                remove {_fiyat} from player's balance
                if {dovizdolar::sahip::%player%} is not set:
                    set {dovizdolar::sahip::%player%} to 0
                add message to {dovizdolar::sahip::%player%::*}
                send "&2Başarıyla %{_fiyat}% değerindeki %message%$ satın aldın."
                delete {dovizdolaralsayi::%player%}
            else:
                set {_gereken} to {_fiyat} - player's balance
                send "&cKusura bakma lakin yeterlince paran yok. &f({_gereken}TL daha gerek.)"
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizdolaralsayi::%player%}
            send "&aBaşarıyla Dolar alma işlemini iptal ettin."
            cancel event
    if {dovizbitcoinalsayi::%player%} is true:
        if message parsed as integer is set:
            set {_fiyat} to {borsabitcoin::deger} * message
            cancel event
            if player's balance is bigger than or equal to {_fiyat}:
                remove {_fiyat} from player's balance
                if {dovizbitcoin::sahip::%player%} is not set:
                    set {dovizbitcoin::sahip::%player%} to 0
                add message to {dovizbitcoin::sahip::%player%::*}
                send "&2Başarıyla %{_fiyat}% değerindeki %message%฿ satın aldın."
                delete {dovizbitcoinalsayi::%player%}
            else:
                set {_gereken} to {_fiyat} - player's balance
                send "&cKusura bakma lakin yeterlince paran yok. &f({_gereken}TL daha gerek.)"
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizbitcoinalsayi::%player%}
            send "&aBaşarıyla Bitcoin alma işlemini iptal ettin."
            cancel event
    if {dovizeurosatsayi::%player%} is true:
        if message parsed as integer is set:
            if {dovizeuro::sahip::%player%} is bigger than or equal to message:
                remove message from {dovizeuro::sahip::%player%::*}
                if {borsaeuro::deger} < 13:
                    set {_fiyat} to 0
                else:
                    set {_fiyat} to {borsaeuro::deger} - 12
                add {_fiyat} to player's balance
                send "&aBaşarıyla %{_fiyat}% değerindeki %message%€'yu sattın!"
            else:
                send "&cSatmak istediğin kadar avroya sahip bile değilsin!"
            cancel event
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizeurosatsayi::%player%}
            send "&aBaşarıyla Euro satma işlemini iptal ettin."
            cancel event
    if {dovizdolarsatsayi::%player%} is true:
        if message parsed as integer is set:
            if {dovizdolar::sahip::%player%} is bigger than or equal to message:
                remove message from {dovizdolar::sahip::%player%::*}
                if {borsadolar::deger} < 13:
                    set {_fiyat} to 0
                else:
                    set {_fiyat} to {borsadolar::deger} - 12
                add {_fiyat} to player's balance
                send "&aBaşarıyla %{_fiyat}% değerindeki %message%$'ı sattın!"
            else:
                send "&cSatmak istediğin kadar dolara sahip bile değilsin!"
            cancel event
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizdolarsatsayi::%player%}
            send "&aBaşarıyla Dolar satma işlemini iptal ettin."
            cancel event
    if {dovizbitcoinsatsayi::%player%} is true:
        if message parsed as integer is set:
            if {dovizbitcoin::sahip::%player%} is bigger than or equal to message:
                remove message from {dovizbitcoin::sahip::%player%::*}
                if {borsabitcoin::deger} < 21:
                    set {_fiyat} to 0
                else:
                    set {_fiyat} to {borsaeuro::deger} - 20
                add {_fiyat} to player's balance
                send "&aBaşarıyla %{_fiyat}% değerindeki %message%฿'i sattın!"
            else:
                send "&cSatmak istediğin kadar bitcoine sahip bile değilsin!"
            cancel event
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizbitcoinsatsayi::%player%}
            send "&aBaşarıyla bitcoin satma işlemini iptal ettin."
            cancel event
            
every 30 minutes:
    set {borsabitcoin::deger} to a random integer between 500 and 10000
    set {borsaeuro::deger} to a random integer between 1 and 700
    set {borsadolar::deger} to a random integer between 1 and 700
    play "GHAST_SCREAM" to player at volume 10
    send player title "&cBorsa Yenilendi!" with subtitle "&7Para Birim fiyatları değişti!" for 3 seconds
    wait 3 seconds
    play "GHAST_SCREAM" to player at volume 10
    send player title "&6&lYeni fiyatlar!" with subtitle "&7/döviz" for 3 seconds
Hata çıkarsa yardımcı olabilirim.
 

AhmethakanMansur451

Sudan Çıkmış
Mesajlar
6
En iyi cevaplar
0
Beğeniler
2
Puanları
30
Buyur
JavaScript:
on load:
    if {borsabitcoin::deger} is not set:
        set {borsabitcoin::deger} to a random integer between 500 and 10000
    if {borsaeuro::deger} is not set:
        set {borsaeuro::deger} to a random integer between 1 and 700
    if {borsadolar::deger} is not set:
        set {borsadolar::deger} to a random integer between 1 and 700
       
command /döviz [<text>] [<text>]:
    permission: doviz.kullan
    aliases: doviz, borsa
    trigger:
        if arg-1 is not set:
            wait 5 ticks
            open chest with 1 rows named "&6&lDöviz" to player
            if {borsaeuro::deger} > 12:
                set {_euroalis} to {borsaeuro::deger} - 12
            else:
                set {_euroalis} to 0
            format slot 3 of player with orange wool named "&6Euro €" with lore "&fAlış fiyatı: %{_euroalis}%||&fSatış fiyatı: %{borsaeuro::deger}%|| ||&eİşlem yapmak için tıklayınız." to close then run [execute player command "döviz euro"]
            if {borsadolar::deger} > 12:
                set {_dolaralis} to {borsadolar::deger} - 12
            else:
                set {_dolaralis} to 0
            format slot 3 of player with orange wool named "&6Dolar $" with lore "&fAlış fiyatı: %{_dolaralis}%||&fSatış fiyatı: %{borsadolar::deger}%|| ||&eİşlem yapmak için tıklayınız." to close then run [execute player command "döviz dolar"]
            if {borsabitcoin::deger} > 20:
                set {_bitcoinalis} to {borsabitcoin::deger} - 20
            else:
                set {_bitcoinalis} to 0
            format slot 3 of player with orange wool named "&&6Bitcoin ฿" with lore "&fAlış fiyatı: %{_bitcoinalis}%||&fSatış fiyatı: %{borsabitcoin::deger}%|| ||&eİşlem yapmak için tıklayınız." to close then run [execute player command "döviz bitcoin"]
        if arg-1 is "euro":
            if arg-2 is not set:
                wait 5 ticks
                open chest with 1 rows named "&6&lDöviz Euro" to player
                if {dovizeuro::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizeuro::sahip::%player%}
                format slot 3 of player with orange wool named "&6Sahip olduğun Euro: %{_sahip}%€" to close then run [execute player command "döviz euro"]
                if {borsaeuro::deger} > 12:
                    set {_euroalis} to {borsaeuro::deger} - 12
                else:
                    set {_euroalis} to 0
                format slot 4 of player with orange wool named "&6Euro al" with lore "&fAlış fiyatı %{_euroalis}%" to close then run [execute player command "döviz euro al"]
                format slot 5 of player with orange wool named "&6Euro sat" with lore "&fSatış fiyatı %{borsaeuro::deger}%" to close then run [execute player command "döviz euro sat"]
            if arg-2 is "al":
                send "&6&lLütfen ne kadar Euro almak istediğinizi sohbete yazın. Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizeuroalsayi::%player%} to true
            if arg-2 is "sat":
                if {dovizeuro::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizeuro::sahip::%player%}
                if {_sahip} is 0:
                    send "&cSatacak hiç avron yok!"
                    stop
                send "&6&lLütfen ne kadar Euro satmak istediğinizi sohbete yazın (sahip olduğunuz %{_sahip}%). Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizeurosatsayi::%player%} to true
        if arg-1 is "dolar":
            if arg-2 is not set:
                wait 5 ticks
                open chest with 1 rows named "&6&lDöviz Dolar" to player
                if {dovizdolar::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizdolar::sahip::%player%}
                format slot 3 of player with orange wool named "&6Sahip olduğun Dolar: %{_sahip}%$" to close then run [execute player command "döviz dolar"]
                if {borsadolar::deger} > 12:
                    set {_dolaralis} to {borsadolar::deger} - 12
                else:
                    set {_dolaralis} to 0
                format slot 4 of player with orange wool named "&6Dolar al" with lore "&fAlış fiyatı %{_dolaralis}%" to close then run [execute player command "döviz dolar al"]
                format slot 5 of player with orange wool named "&6Dolar sat" with lore "&fSatış fiyatı %{borsadolar::deger}%" to close then run [execute player command "döviz dolar sat"]
            if arg-2 is "al":
                send "&6&lLütfen ne kadar Dolar almak istediğinizi sohbete yazın. Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizdolaralsayi::%player%} to true
        if arg-1 is "bitcoin":
            if arg-2 is not set:
                wait 5 ticks
                open chest with 1 rows named "&6&lDöviz Bitcoin" to player
                if {dovizbitcoin::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizbitcoin::sahip::%player%}
                format slot 3 of player with orange wool named "&6Sahip olduğun Bitcoin: %{_sahip}%฿" to close then run [execute player command "döviz bitcoin"]
                if {borsabitcoin::deger} > 20:
                    set {_bitcoinalis} to {borsabitcoin::deger} - 20
                else:
                    set {_bitcoinalis} to 0
                format slot 4 of player with orange wool named "&6Bitcoin al" with lore "&fAlış fiyatı %{_bitcoinalis}%" to close then run [execute player command "döviz bitcoin al"]
                format slot 5 of player with orange wool named "&6Bitcoin sat" with lore "&fSatış fiyatı %{borsabitcoin::deger}%" to close then run [execute player command "döviz bitcoin sat"]
            if arg-2 is "al":
                send "&6&lLütfen ne kadar bitcoin almak istediğinizi sohbete yazın. Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizbitcoinalsayi::%player%} to true

on chat:
    if {dovizeuroalsayi::%player%} is true:
        if message parsed as integer is set:
            set {_fiyat} to {borsaeuro::deger} * message
            cancel event
            if player's balance is bigger than or equal to {_fiyat}:
                remove {_fiyat} from player's balance
                if {dovizeuro::sahip::%player%} is not set:
                    set {dovizeuro::sahip::%player%} to 0
                add message to {dovizeuro::sahip::%player%::*}
                send "&2Başarıyla %{_fiyat}% değerindeki %message%€ satın aldın."
                delete {dovizeuroalsayi::%player%}
            else:
                set {_gereken} to {_fiyat} - player's balance
                send "&cKusura bakma lakin yeterlince paran yok. &f({_gereken}TL daha gerek.)"
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizeuroalsayi::%player%}
            send "&aBaşarıyla Euro alma işlemini iptal ettin."
            cancel event
    if {dovizdolaralsayi::%player%} is true:
        if message parsed as integer is set:
            set {_fiyat} to {borsadolar::deger} * message
            cancel event
            if player's balance is bigger than or equal to {_fiyat}:
                remove {_fiyat} from player's balance
                if {dovizdolar::sahip::%player%} is not set:
                    set {dovizdolar::sahip::%player%} to 0
                add message to {dovizdolar::sahip::%player%::*}
                send "&2Başarıyla %{_fiyat}% değerindeki %message%$ satın aldın."
                delete {dovizdolaralsayi::%player%}
            else:
                set {_gereken} to {_fiyat} - player's balance
                send "&cKusura bakma lakin yeterlince paran yok. &f({_gereken}TL daha gerek.)"
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizdolaralsayi::%player%}
            send "&aBaşarıyla Dolar alma işlemini iptal ettin."
            cancel event
    if {dovizbitcoinalsayi::%player%} is true:
        if message parsed as integer is set:
            set {_fiyat} to {borsabitcoin::deger} * message
            cancel event
            if player's balance is bigger than or equal to {_fiyat}:
                remove {_fiyat} from player's balance
                if {dovizbitcoin::sahip::%player%} is not set:
                    set {dovizbitcoin::sahip::%player%} to 0
                add message to {dovizbitcoin::sahip::%player%::*}
                send "&2Başarıyla %{_fiyat}% değerindeki %message%฿ satın aldın."
                delete {dovizbitcoinalsayi::%player%}
            else:
                set {_gereken} to {_fiyat} - player's balance
                send "&cKusura bakma lakin yeterlince paran yok. &f({_gereken}TL daha gerek.)"
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizbitcoinalsayi::%player%}
            send "&aBaşarıyla Bitcoin alma işlemini iptal ettin."
            cancel event
    if {dovizeurosatsayi::%player%} is true:
        if message parsed as integer is set:
            if {dovizeuro::sahip::%player%} is bigger than or equal to message:
                remove message from {dovizeuro::sahip::%player%::*}
                if {borsaeuro::deger} < 13:
                    set {_fiyat} to 0
                else:
                    set {_fiyat} to {borsaeuro::deger} - 12
                add {_fiyat} to player's balance
                send "&aBaşarıyla %{_fiyat}% değerindeki %message%€'yu sattın!"
            else:
                send "&cSatmak istediğin kadar avroya sahip bile değilsin!"
            cancel event
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizeurosatsayi::%player%}
            send "&aBaşarıyla Euro satma işlemini iptal ettin."
            cancel event
    if {dovizdolarsatsayi::%player%} is true:
        if message parsed as integer is set:
            if {dovizdolar::sahip::%player%} is bigger than or equal to message:
                remove message from {dovizdolar::sahip::%player%::*}
                if {borsadolar::deger} < 13:
                    set {_fiyat} to 0
                else:
                    set {_fiyat} to {borsadolar::deger} - 12
                add {_fiyat} to player's balance
                send "&aBaşarıyla %{_fiyat}% değerindeki %message%$'ı sattın!"
            else:
                send "&cSatmak istediğin kadar dolara sahip bile değilsin!"
            cancel event
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizdolarsatsayi::%player%}
            send "&aBaşarıyla Dolar satma işlemini iptal ettin."
            cancel event
    if {dovizbitcoinsatsayi::%player%} is true:
        if message parsed as integer is set:
            if {dovizbitcoin::sahip::%player%} is bigger than or equal to message:
                remove message from {dovizbitcoin::sahip::%player%::*}
                if {borsabitcoin::deger} < 21:
                    set {_fiyat} to 0
                else:
                    set {_fiyat} to {borsaeuro::deger} - 20
                add {_fiyat} to player's balance
                send "&aBaşarıyla %{_fiyat}% değerindeki %message%฿'i sattın!"
            else:
                send "&cSatmak istediğin kadar bitcoine sahip bile değilsin!"
            cancel event
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizbitcoinsatsayi::%player%}
            send "&aBaşarıyla bitcoin satma işlemini iptal ettin."
            cancel event
           
every 30 minutes:
    set {borsabitcoin::deger} to a random integer between 500 and 10000
    set {borsaeuro::deger} to a random integer between 1 and 700
    set {borsadolar::deger} to a random integer between 1 and 700
    play "GHAST_SCREAM" to player at volume 10
    send player title "&cBorsa Yenilendi!" with subtitle "&7Para Birim fiyatları değişti!" for 3 seconds
    wait 3 seconds
    play "GHAST_SCREAM" to player at volume 10
    send player title "&6&lYeni fiyatlar!" with subtitle "&7/döviz" for 3 seconds
Hata çıkarsa yardımcı olabilirim.
kardeş burda hata var
doviz.png
doviz.png
doviz.png
doviz.png
doviz.png
doviz.png
doviz.png
doviz.png
 

Ekli dosyalar

  • indir.png
    indir.png
    967.1 KB · Görüntüleme: 258

AhmethakanMansur451

Sudan Çıkmış
Mesajlar
6
En iyi cevaplar
0
Beğeniler
2
Puanları
30
kardeş ne hatası var düzeltebilirmiyim yada sen düzeltebilirmisin bi cevap versen
 

ToprakM

KEK
Sponsor
Emektar Üye
Mesajlar
441
En iyi cevaplar
49
Beğeniler
667
Puanları
2,485
Ruh hali
JavaScript:
on load:
    if {borsabitcoin::deger} is not set:
        set {borsabitcoin::deger} to a random integer between 500 and 10000
    if {borsaeuro::deger} is not set:
        set {borsaeuro::deger} to a random integer between 1 and 700
    if {borsadolar::deger} is not set:
        set {borsadolar::deger} to a random integer between 1 and 700
       
command /döviz [<text>] [<text>]:
    permission: doviz.kullan
    aliases: doviz, borsa
    trigger:
        if arg-1 is not set:
            wait 5 ticks
            open chest with 1 rows named "&6&lDöviz" to player
            if {borsaeuro::deger} > 12:
                set {_euroalis} to {borsaeuro::deger} - 12
            else:
                set {_euroalis} to 0
            format slot 3 of player with orange wool named "&6Euro €" with lore "&fAlış fiyatı: %{_euroalis}%||&fSatış fiyatı: %{borsaeuro::deger}%|| ||&eİşlem yapmak için tıklayınız." to close then run [execute player command "döviz euro"]
            if {borsadolar::deger} > 12:
                set {_dolaralis} to {borsadolar::deger} - 12
            else:
                set {_dolaralis} to 0
            format slot 3 of player with orange wool named "&6Dolar $" with lore "&fAlış fiyatı: %{_dolaralis}%||&fSatış fiyatı: %{borsadolar::deger}%|| ||&eİşlem yapmak için tıklayınız." to close then run [execute player command "döviz dolar"]
            if {borsabitcoin::deger} > 20:
                set {_bitcoinalis} to {borsabitcoin::deger} - 20
            else:
                set {_bitcoinalis} to 0
            format slot 3 of player with orange wool named "&&6Bitcoin ฿" with lore "&fAlış fiyatı: %{_bitcoinalis}%||&fSatış fiyatı: %{borsabitcoin::deger}%|| ||&eİşlem yapmak için tıklayınız." to close then run [execute player command "döviz bitcoin"]
        if arg-1 is "euro":
            if arg-2 is not set:
                wait 5 ticks
                open chest with 1 rows named "&6&lDöviz Euro" to player
                if {dovizeuro::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizeuro::sahip::%player%}
                format slot 3 of player with orange wool named "&6Sahip olduğun Euro: %{_sahip}%€" to close then run [execute player command "döviz euro"]
                if {borsaeuro::deger} > 12:
                    set {_euroalis} to {borsaeuro::deger} - 12
                else:
                    set {_euroalis} to 0
                format slot 4 of player with orange wool named "&6Euro al" with lore "&fAlış fiyatı %{_euroalis}%" to close then run [execute player command "döviz euro al"]
                format slot 5 of player with orange wool named "&6Euro sat" with lore "&fSatış fiyatı %{borsaeuro::deger}%" to close then run [execute player command "döviz euro sat"]
            if arg-2 is "al":
                send "&6&lLütfen ne kadar Euro almak istediğinizi sohbete yazın. Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizeuroalsayi::%player%} to true
            if arg-2 is "sat":
                if {dovizeuro::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizeuro::sahip::%player%}
                if {_sahip} is 0:
                    send "&cSatacak hiç avron yok!"
                    stop
                send "&6&lLütfen ne kadar Euro satmak istediğinizi sohbete yazın (sahip olduğunuz %{_sahip}%). Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizeurosatsayi::%player%} to true
        if arg-1 is "dolar":
            if arg-2 is not set:
                wait 5 ticks
                open chest with 1 rows named "&6&lDöviz Dolar" to player
                if {dovizdolar::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizdolar::sahip::%player%}
                format slot 3 of player with orange wool named "&6Sahip olduğun Dolar: %{_sahip}%$" to close then run [execute player command "döviz dolar"]
                if {borsadolar::deger} > 12:
                    set {_dolaralis} to {borsadolar::deger} - 12
                else:
                    set {_dolaralis} to 0
                format slot 4 of player with orange wool named "&6Dolar al" with lore "&fAlış fiyatı %{_dolaralis}%" to close then run [execute player command "döviz dolar al"]
                format slot 5 of player with orange wool named "&6Dolar sat" with lore "&fSatış fiyatı %{borsadolar::deger}%" to close then run [execute player command "döviz dolar sat"]
            if arg-2 is "al":
                send "&6&lLütfen ne kadar Dolar almak istediğinizi sohbete yazın. Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizdolaralsayi::%player%} to true
        if arg-1 is "bitcoin":
            if arg-2 is not set:
                wait 5 ticks
                open chest with 1 rows named "&6&lDöviz Bitcoin" to player
                if {dovizbitcoin::sahip::%player%} is not set:
                    set {_sahip} to 0
                else:
                    set {_sahip} to {dovizbitcoin::sahip::%player%}
                format slot 3 of player with orange wool named "&6Sahip olduğun Bitcoin: %{_sahip}%฿" to close then run [execute player command "döviz bitcoin"]
                if {borsabitcoin::deger} > 20:
                    set {_bitcoinalis} to {borsabitcoin::deger} - 20
                else:
                    set {_bitcoinalis} to 0
                format slot 4 of player with orange wool named "&6Bitcoin al" with lore "&fAlış fiyatı %{_bitcoinalis}%" to close then run [execute player command "döviz bitcoin al"]
                format slot 5 of player with orange wool named "&6Bitcoin sat" with lore "&fSatış fiyatı %{borsabitcoin::deger}%" to close then run [execute player command "döviz bitcoin sat"]
            if arg-2 is "al":
                send "&6&lLütfen ne kadar bitcoin almak istediğinizi sohbete yazın. Merak etmeyin yazacağınız sayı mesaj olarak gönderilmeyecek. Çıkmak için &c&liptal &6&lyazabilirsiniz."
                set {dovizbitcoinalsayi::%player%} to true

on chat:
    set {_msg} to message
    if {dovizeuroalsayi::%player%} is true:
        if {_msg} parsed as integer is integer:
            set {_msg} to message parsed as integer
            set {_fiyat} to {borsaeuro::deger} * {_msg}
            cancel event
            if player's balance is bigger than or equal to {_fiyat}:
                remove {_fiyat} from player's balance
                if {dovizeuro::sahip::%player%} is not set:
                    set {dovizeuro::sahip::%player%} to 0
                add {_msg} to {dovizeuro::sahip::%player%::*}
                send "&2Başarıyla %{_fiyat}% değerindeki %{_msg}%€ satın aldın."
                delete {dovizeuroalsayi::%player%}
            else:
                set {_gereken} to {_fiyat} - player's balance
                send "&cKusura bakma lakin yeterlince paran yok. &f({_gereken}TL daha gerek.)"
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizeuroalsayi::%player%}
            send "&aBaşarıyla Euro alma işlemini iptal ettin."
            cancel event
    if {dovizdolaralsayi::%player%} is true:
        if {_msg} parsed as integer is integer:
            set {_msg} to message parsed as integer
            set {_fiyat} to {borsadolar::deger} * message
            cancel event
            if player's balance is bigger than or equal to {_fiyat}:
                remove {_fiyat} from player's balance
                if {dovizdolar::sahip::%player%} is not set:
                    set {dovizdolar::sahip::%player%} to 0
                add {_msg} to {dovizdolar::sahip::%player%::*}
                send "&2Başarıyla %{_fiyat}% değerindeki %message%$ satın aldın."
                delete {dovizdolaralsayi::%player%}
            else:
                set {_gereken} to {_fiyat} - player's balance
                send "&cKusura bakma lakin yeterlince paran yok. &f({_gereken}TL daha gerek.)"
        else if {_msg} is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizdolaralsayi::%player%}
            send "&aBaşarıyla Dolar alma işlemini iptal ettin."
            cancel event
    if {dovizbitcoinalsayi::%player%} is true:
        if {_msg} parsed as integer is integer:
            set {_msg} to message parsed as integer
            set {_fiyat} to {borsabitcoin::deger} * message
            cancel event
            if player's balance is bigger than or equal to {_fiyat}:
                remove {_fiyat} from player's balance
                if {dovizbitcoin::sahip::%player%} is not set:
                    set {dovizbitcoin::sahip::%player%} to 0
                add message to {dovizbitcoin::sahip::%player%::*}
                send "&2Başarıyla %{_fiyat}% değerindeki %message%฿ satın aldın."
                delete {dovizbitcoinalsayi::%player%}
            else:
                set {_gereken} to {_fiyat} - player's balance
                send "&cKusura bakma lakin yeterlince paran yok. &f({_gereken}TL daha gerek.)"
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizbitcoinalsayi::%player%}
            send "&aBaşarıyla Bitcoin alma işlemini iptal ettin."
            cancel event
    if {dovizeurosatsayi::%player%} is true:
        if {_msg} parsed as integer is integer:
            if {dovizeuro::sahip::%player%} is bigger than or equal to message:
                set {_msg} to message parsed as integer
                remove message from {dovizeuro::sahip::%player%::*}
                if {borsaeuro::deger} < 13:
                    set {_fiyat} to 0
                else:
                    set {_fiyat} to {borsaeuro::deger} - 12
                add {_fiyat} to player's balance
                send "&aBaşarıyla %{_fiyat}% değerindeki %message%€'yu sattın!"
            else:
                send "&cSatmak istediğin kadar avroya sahip bile değilsin!"
            cancel event
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizeurosatsayi::%player%}
            send "&aBaşarıyla Euro satma işlemini iptal ettin."
            cancel event
    if {dovizdolarsatsayi::%player%} is true:
       if {_msg} parsed as integer is integer:
            if {dovizdolar::sahip::%player%} is bigger than or equal to message:
                remove message from {dovizdolar::sahip::%player%::*}
                if {borsadolar::deger} < 13:
                    set {_fiyat} to 0
                else:
                    set {_fiyat} to {borsadolar::deger} - 12
                add {_fiyat} to player's balance
                send "&aBaşarıyla %{_fiyat}% değerindeki %message%$'ı sattın!"
            else:
                send "&cSatmak istediğin kadar dolara sahip bile değilsin!"
            cancel event
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizdolarsatsayi::%player%}
            send "&aBaşarıyla Dolar satma işlemini iptal ettin."
            cancel event
    if {dovizbitcoinsatsayi::%player%} is true:
        if {_msg} parsed as integer is integer:
            if {dovizbitcoin::sahip::%player%} is bigger than or equal to message:
                remove message from {dovizbitcoin::sahip::%player%::*}
                if {borsabitcoin::deger} < 21:
                    set {_fiyat} to 0
                else:
                    set {_fiyat} to {borsaeuro::deger} - 20
                add {_fiyat} to player's balance
                send "&aBaşarıyla %{_fiyat}% değerindeki %message%฿'i sattın!"
            else:
                send "&cSatmak istediğin kadar bitcoine sahip bile değilsin!"
            cancel event
        else if message is "iptal" or "İptal" or "ıptal" or "Iptal":
            delete {dovizbitcoinsatsayi::%player%}
            send "&aBaşarıyla bitcoin satma işlemini iptal ettin."
            cancel event
           
every 30 minutes:
    set {borsabitcoin::deger} to a random integer between 500 and 10000
    set {borsaeuro::deger} to a random integer between 1 and 700
    set {borsadolar::deger} to a random integer between 1 and 700
    loop all players:
        play "GHAST_SCREAM" to loop-player at volume 10
        send loop-player title "&cBorsa Yenilendi!" with subtitle "&7Para Birim fiyatları değişti!" for 3 seconds
    wait 3 seconds
    loop all players:
        play "GHAST_SCREAM" to loop-player at volume 10
        send loop-player title "&6&lYeni fiyatlar!" with subtitle "&7/döviz" for 3 seconds
Hata yok
 
Son düzenleme:

Üst