Elmas Market Skripti


Elmas Market Skripti
    Merhaba MCTR kullanıcıları, bu skript ile yatirip çekebilir çek kesebilir ve daha fazlasını yapabilirisiz. Mantık olarak banka işlemi gibi.

Komutlar;
    /yatir yazarak envanterinizdeki elmasları elmaspara'ya çevirebilirsin!/cek yazarak kazandığın veya yatırdığın    elmaspara'ları elmasa çevirebilirsin!
    /elmasparagonder yazarak elmasparalarını başkalarına gönderebilirsin!
    /elmaspara , /ep veya /elmasparam yazarak ne kadar elmaspara'nın olduğuna bakabilirsin!
    /cekyaz yazarak elmasparanı çeke dönüştürebilirsin!
    /elmasmarket , /em veya /emarket yazarak elmasparanı markette harcayabilirsin!

Skript Kodu;
command /yatir [<int>]:
    trigger:
        if arg-1 <= 0:
            send "&c0 veya daha dusuk sayida elmas yatiramazsin!"
            stop
        if arg-1 is set:
            if player has diamond:
                add arg-1 to {para::%player%}
                remove arg-1 of diamond from player
                send "&fBasariyla elmasini &cparaya &fcevirdin!" to player
            else:
                send "&cYatirmak icin envanterinde &bElmas &colmali!" to player
        else:
            send "&cNe kadar para yatiracagini yazmalisin!" to player

command /cek [<int>]:
    trigger:
        if arg-1 <= 0:
            send "&c0 veya daha dusuk sayida elmas cekemezsin!" to player
            stop
        if arg-1 is set:
            if arg-1 is a number:
                if {para::%player%} >= arg-1:
                    execute console command "give %player% diamond %arg-1%"
                    remove arg-1 from {para::%player%}
                    send "&bElmaslarini basariyla cektin!" to player
                else if {para::%player%} < arg-1:
                    send "&cCekecek o kadar &belmas &cyok! Elmasparana bakmak icin: &f/ep &c komudunu kullanabilirsin!" to player
        else:
            send "/cek <sayi> yazarak kazandigin/yatirdigin elmasparalarini elmas olarak alabilirsin!" to player

command /elmaspara:
    aliases: ep , elmasparam
    trigger:
        send "&f%{para::%player%}% &celmasparan var!" to player

command /elmasparagonder [<player>] [<integer>]:
    trigger:
        if arg-2 <= 0:
            send "&c0 veya daha dusuk sayida elmaspara gonderemezsin!" to player
            stop
        if arg-1 is set:
            if arg-1 is online:
                if arg-2 is a number:
                    if {para::%player%} >= arg-2:
                        add arg-2 to {para::%arg-1%}
                        remove arg-2 from {para::%player%}
                        send "&fBasariyla %arg-1% adli oyuncuya &2%arg-2% &felmaspara gonderdin!" to player
                        execute console command "msg %arg-1% %player% adli oyuncu sana %arg-2% elmaspara gonderdi!"
                    else if {para::%player%} < arg-2:
                        send "&cBunu yapabilmek icin yeterli miktarda elmasparaya sahip degilsin!" to player
                else:
                    send "&cBir miktar girmelisin!" to player
            else:
                send "&cCevrimdisi bir oyuncuya para gonderemezsin!" to player
        if arg-1 or arg-2 is not set:
            send "/elmasparagonder <oyuncu> <miktar> yazarak elmaspara gonderebilirsin!" to player

command /cekyaz [<int>]:
    trigger:
        if arg-1 is set:
            if arg-1 > 0:
                if {para::%player%} >= arg-1:
                    remove arg-1 from {para::%player%}
                    give 1 paper named "&c%arg-1%" with lore "&cElmasparani kazanmak icin sag tikla!" to player
                    set {_miktar} to name of player's tool
                else:
                    send "&cBunu yapmak icin yeterli &belmasparan &cyok!" to player
            else:
                send "&c0 veya daha dusuk sayida cek yazamazsin!" to player
        else:
            send "&cBir miktar girmelisin!" to player

on rightclick with paper:
    if lore of player's tool contains "&cElmasparani":
        set {_para} to uncolored name of player's tool parsed as number
        remove 1 of player's tool from player's inventory
        add {_para} to {para::%player%}
        send player title "&cBasariyla cevirdin!" with subtitle "&bElmaspara &fmiktarina &2%{_para}% &bElmaspara &fdaha eklendi!"

command /elmasmarket:
    aliases: /em , /emarket
    trigger:
        open virtual chest with size 3 named "            &bElmaspara &cMarket" to player
        make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 17, 18, 19, 20, 21, 22 ,23, 24, 25, 26 of player with Black_Stained_Glass_Pane named ""
        make gui slot 11 of player with 278 named "&bElmaspara &cKazma" with lore "&eSatin almak icin &cSOL &etiklayin. ||&cUcret &2= &c10 &bElmaspara" to run:
            close player's inventory
            execute player command "satinalkazma"
        make gui slot 13 of player with Diamond_Sword named "&bElmaspara &cKilic" with lore "&eSatin almak icin &cSOL &etiklayin. ||&cUcret &2= &c15 &bElmaspara" to run:
            close player's inventory
            execute player command "satinalkilic"
        make gui slot 15 of player with 64 322:1 named "&bElmaspara &cElma" with lore "&eSatin almak icin &cSOL &etiklayin. ||&cUcret &2= &c10 &bElmaspara" to run:
            close player's inventory
            execute player command "satinalelma"

command /satinalkazma:
    trigger:
        if {para::%player%} >= 10:
            execute console command "give %player% 278 1"
            remove 10 from {para::%player%}
            send "&8&m-------------------------------------" to player
            send "" to player
            send "&b&l                   Elmaspara &c&lMarket" to player
            send "" to player
            send "&bElmaspara &cMarketini &8kullanarak bir adet &bElmaspara &cKazmasi &8 aldin!" to player
            send "" to player
            send "&8&m-------------------------------------" to player
        else:
            send "&cBu kazmayi satin almak icin yeterli &belmasparaya &csahip degilsin!" to player

command /satinalkilic:
    trigger:
        if {para::%player%} >= 15:
            execute console command "give %player% 276 1"
            remove 15 from {para::%player%}
            send "&8&m-------------------------------------" to player
            send "" to player
            send "&b&l                   Elmaspara &c&lMarket" to player
            send "" to player
            send "&bElmaspara &cMarketini &8kullanarak bir adet &bElmaspara &cKilici &8 aldin!" to player
            send "" to player
            send "&8&m-------------------------------------" to player
        else:
            send "&cBu kilici satin almak icin yeterli &belmasparaya &csahip degilsin!" to player

command /satinalelma:
    trigger:
        if {para::%player%} >= 10:
            remove 10 from {para::%player%}
            execute console command "eco take %player% 100000"
            send "&8&m-------------------------------------" to player
            send "" to player
            send "&b&l                   Elmaspara &c&lMarket" to player
            send "" to player
            send "&bElmaspara &cMarketini &8kullanarak bir adet &bElmaspara &cElmasi &8 aldin!" to player
            send "" to player
            send "&8&m-------------------------------------" to player
        else:
            send "&cBu elmayi satin almak icin yeterli &belmasparaya &csahip degilsin!" to player

Yorum Gönder

Daha yeni Daha eski