Çözüldü SAT Skript'i Menü Sorunu !!!

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

ArdadnzTR

[ Money Packer ]
Katılım
13 Haziran 2018
Mesajlar
13
Elmaslar
5
Puan
3.750
Konum
Bursa
Minecraft
Ardadeniz82

Discord:

ArdadnzTR#2368

Beyler, yardım edene şimdiden çok teşekkür ediyorum.
Sunucumda Satış skripti mevcut. Eskiden böyle bir sorun yoktu!
/Sat yazıp menü açıldığında birşey seçtiğimde tepki vermiyor.

Skript'te hatada yok.

Skript Kod:

Kod:
options:
    p: §3§oBloodyTR §8»
    demirfiyat: 125
    altınfiyat: 250
    elmasfiyat: 500
    zümrütfiyat: 1000
    demirblokfiyat: 1125
    altınblokfiyat: 2250
    elmasblokfiyat: 4500
    zümrütblokfiyat: 9000
    kaktüsfiyat: 75
    endfiyat: 500
    
command /sat [<text>] [<number>] [<number>] [<number>]:
    trigger:
        arg-1 isn't set:
            open virtual chest with size 3 named "&c&nSat Menü" to player
            wait 1 tick
            set {_slot} to 0
            loop 27 times:
                make gui slot {_slot} of player with gray stained glass pane named "&f"
                add 1 to {_slot}
            make gui slot 0 of player with iron ingot named "&fDemir" to run function esyaSatmenu(player, iron ingot, 125)
            make gui slot 1 of player with gold ingot named "&6Altın" to run function esyaSatmenu(player, gold ingot, 250)
            make gui slot 2 of player with diamond named "&bElmas" to run function esyaSatmenu(player, diamond, 500)
            make gui slot 3 of player with emerald named "&aZümrüt" to run function esyaSatmenu(player, emerald, 1000)
            make gui slot 13 of player with cactus named "&aKaktüs" to run function esyaSatmenu(player, cactus, 75)
            make gui slot 18 of player with iron block named "&fDemir Blok" to run function esyaSatmenu(player, iron block, 1125)
            make gui slot 19 of player with gold block named "&6Altın Blok" to run function esyaSatmenu(player, gold block, 2250)
            make gui slot 20 of player with diamond block named "&bElmas Blok" to run function esyaSatmenu(player, diamond block, 4500)
            make gui slot 21 of player with emerald block named "&aZümrüt Blok" to run function esyaSatmenu(player, emerald block, 9000)
            make gui slot 14 of player with End Stone named "&aEnd Taşı" to run function esyaSatmenu(player, end stone, 500)
            make gui slot 26 of player with redstone named "&cKapat" to close
function esyaSat(p: player, i: item, n: number, m: number):
    if amount of {_i} in {_p}'s inventory is greater than or equal to {_n}:
        add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
        send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%{_n}% &7%{_i}% satıldı!" for 2 second
        set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
        remove {_n} of {_i} from {_p}'s inventory
    else:
        send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
        set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSathepsi(p: player, i: item, m: number):
    if amount of {_i} in {_p}'s inventory is greater than 0:
        add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
        send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%amount of {_i} in {_p}'s inventory% &7%{_i}% satıldı!" for 2 second
        set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
        remove all {_i} from {_p}'s inventory
    else:
        send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
        set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSatmenu(p: player, i: item, m: number):
    open virtual chest with size 3 named "%{_i}%" to {_p}
    wait 1 tick
    set {_slot} to 0
    loop 27 times:
        make gui slot {_slot} of {_p} with gray stained glass pane named "&f"
        add 1 to {_slot}   
    make gui slot 4 of {_p} with skull of {_p} named "%{_i}%" with lore "&7Envanterinde &c%amount of {_i} in {_p}'s inventory% &7tane bulunmakta.||&7%{_i}% tanesi &a%{_m}%Tl" to nothing
    make gui slot 13 of {_p} with {_i} named "&6&nHepsini sat" with lore "||&7Tıklayarak &chepsini &7sat||||&7Alacağın para: &a%(amount of {_i} in {_p}'s inventory * {_m})%" to run function esyaSathepsi({_p}, {_i}, {_m})
    make gui slot 26 of {_p} with redstone named "&cGeri dön" to run {_p} command "sat"
 
Beyler, yardım edene şimdiden çok teşekkür ediyorum.
Sunucumda Satış skripti mevcut. Eskiden böyle bir sorun yoktu!
/Sat yazıp menü açıldığında birşey seçtiğimde tepki vermiyor.

Skript'te hatada yok.

Skript Kod:

Kod:
options:
    p: §3§oBloodyTR §8»
    demirfiyat: 125
    altınfiyat: 250
    elmasfiyat: 500
    zümrütfiyat: 1000
    demirblokfiyat: 1125
    altınblokfiyat: 2250
    elmasblokfiyat: 4500
    zümrütblokfiyat: 9000
    kaktüsfiyat: 75
    endfiyat: 500
   
command /sat [<text>] [<number>] [<number>] [<number>]:
    trigger:
        arg-1 isn't set:
            open virtual chest with size 3 named "&c&nSat Menü" to player
            wait 1 tick
            set {_slot} to 0
            loop 27 times:
                make gui slot {_slot} of player with gray stained glass pane named "&f"
                add 1 to {_slot}
            make gui slot 0 of player with iron ingot named "&fDemir" to run function esyaSatmenu(player, iron ingot, 125)
            make gui slot 1 of player with gold ingot named "&6Altın" to run function esyaSatmenu(player, gold ingot, 250)
            make gui slot 2 of player with diamond named "&bElmas" to run function esyaSatmenu(player, diamond, 500)
            make gui slot 3 of player with emerald named "&aZümrüt" to run function esyaSatmenu(player, emerald, 1000)
            make gui slot 13 of player with cactus named "&aKaktüs" to run function esyaSatmenu(player, cactus, 75)
            make gui slot 18 of player with iron block named "&fDemir Blok" to run function esyaSatmenu(player, iron block, 1125)
            make gui slot 19 of player with gold block named "&6Altın Blok" to run function esyaSatmenu(player, gold block, 2250)
            make gui slot 20 of player with diamond block named "&bElmas Blok" to run function esyaSatmenu(player, diamond block, 4500)
            make gui slot 21 of player with emerald block named "&aZümrüt Blok" to run function esyaSatmenu(player, emerald block, 9000)
            make gui slot 14 of player with End Stone named "&aEnd Taşı" to run function esyaSatmenu(player, end stone, 500)
            make gui slot 26 of player with redstone named "&cKapat" to close
function esyaSat(p: player, i: item, n: number, m: number):
    if amount of {_i} in {_p}'s inventory is greater than or equal to {_n}:
        add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
        send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%{_n}% &7%{_i}% satıldı!" for 2 second
        set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
        remove {_n} of {_i} from {_p}'s inventory
    else:
        send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
        set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSathepsi(p: player, i: item, m: number):
    if amount of {_i} in {_p}'s inventory is greater than 0:
        add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
        send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%amount of {_i} in {_p}'s inventory% &7%{_i}% satıldı!" for 2 second
        set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
        remove all {_i} from {_p}'s inventory
    else:
        send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
        set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSatmenu(p: player, i: item, m: number):
    open virtual chest with size 3 named "%{_i}%" to {_p}
    wait 1 tick
    set {_slot} to 0
    loop 27 times:
        make gui slot {_slot} of {_p} with gray stained glass pane named "&f"
        add 1 to {_slot}  
    make gui slot 4 of {_p} with skull of {_p} named "%{_i}%" with lore "&7Envanterinde &c%amount of {_i} in {_p}'s inventory% &7tane bulunmakta.||&7%{_i}% tanesi &a%{_m}%Tl" to nothing
    make gui slot 13 of {_p} with {_i} named "&6&nHepsini sat" with lore "||&7Tıklayarak &chepsini &7sat||||&7Alacağın para: &a%(amount of {_i} in {_p}'s inventory * {_m})%" to run function esyaSathepsi({_p}, {_i}, {_m})
    make gui slot 26 of {_p} with redstone named "&cGeri dön" to run {_p} command "sat"
Discorda Gelirseniz Sorununuzu Çözebilirim. Discordum:EmirTR | Emirhan | 15#3189
 
Beyler, yardım edene şimdiden çok teşekkür ediyorum.
Sunucumda Satış skripti mevcut. Eskiden böyle bir sorun yoktu!
/Sat yazıp menü açıldığında birşey seçtiğimde tepki vermiyor.

Skript'te hatada yok.

Skript Kod:

Kod:
options:
    p: §3§oBloodyTR §8»
    demirfiyat: 125
    altınfiyat: 250
    elmasfiyat: 500
    zümrütfiyat: 1000
    demirblokfiyat: 1125
    altınblokfiyat: 2250
    elmasblokfiyat: 4500
    zümrütblokfiyat: 9000
    kaktüsfiyat: 75
    endfiyat: 500
   
command /sat [<text>] [<number>] [<number>] [<number>]:
    trigger:
        arg-1 isn't set:
            open virtual chest with size 3 named "&c&nSat Menü" to player
            wait 1 tick
            set {_slot} to 0
            loop 27 times:
                make gui slot {_slot} of player with gray stained glass pane named "&f"
                add 1 to {_slot}
            make gui slot 0 of player with iron ingot named "&fDemir" to run function esyaSatmenu(player, iron ingot, 125)
            make gui slot 1 of player with gold ingot named "&6Altın" to run function esyaSatmenu(player, gold ingot, 250)
            make gui slot 2 of player with diamond named "&bElmas" to run function esyaSatmenu(player, diamond, 500)
            make gui slot 3 of player with emerald named "&aZümrüt" to run function esyaSatmenu(player, emerald, 1000)
            make gui slot 13 of player with cactus named "&aKaktüs" to run function esyaSatmenu(player, cactus, 75)
            make gui slot 18 of player with iron block named "&fDemir Blok" to run function esyaSatmenu(player, iron block, 1125)
            make gui slot 19 of player with gold block named "&6Altın Blok" to run function esyaSatmenu(player, gold block, 2250)
            make gui slot 20 of player with diamond block named "&bElmas Blok" to run function esyaSatmenu(player, diamond block, 4500)
            make gui slot 21 of player with emerald block named "&aZümrüt Blok" to run function esyaSatmenu(player, emerald block, 9000)
            make gui slot 14 of player with End Stone named "&aEnd Taşı" to run function esyaSatmenu(player, end stone, 500)
            make gui slot 26 of player with redstone named "&cKapat" to close
function esyaSat(p: player, i: item, n: number, m: number):
    if amount of {_i} in {_p}'s inventory is greater than or equal to {_n}:
        add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
        send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%{_n}% &7%{_i}% satıldı!" for 2 second
        set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
        remove {_n} of {_i} from {_p}'s inventory
    else:
        send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
        set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSathepsi(p: player, i: item, m: number):
    if amount of {_i} in {_p}'s inventory is greater than 0:
        add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
        send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%amount of {_i} in {_p}'s inventory% &7%{_i}% satıldı!" for 2 second
        set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
        remove all {_i} from {_p}'s inventory
    else:
        send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
        set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSatmenu(p: player, i: item, m: number):
    open virtual chest with size 3 named "%{_i}%" to {_p}
    wait 1 tick
    set {_slot} to 0
    loop 27 times:
        make gui slot {_slot} of {_p} with gray stained glass pane named "&f"
        add 1 to {_slot}  
    make gui slot 4 of {_p} with skull of {_p} named "%{_i}%" with lore "&7Envanterinde &c%amount of {_i} in {_p}'s inventory% &7tane bulunmakta.||&7%{_i}% tanesi &a%{_m}%Tl" to nothing
    make gui slot 13 of {_p} with {_i} named "&6&nHepsini sat" with lore "||&7Tıklayarak &chepsini &7sat||||&7Alacağın para: &a%(amount of {_i} in {_p}'s inventory * {_m})%" to run function esyaSathepsi({_p}, {_i}, {_m})
    make gui slot 26 of {_p} with redstone named "&cGeri dön" to run {_p} command "sat"
JavaScript:
options:
    p: &5&lRIP&f&lCraft &e»
    demirfiyat: 250
    altınfiyat: 150
    elmasfiyat: 300
    zümrütfiyat: 200
    kaktüsfiyat: 50
    demirblokfiyat: 450
    altınblokfiyat: 350
    elmasblokfiyat: 400
    zümrütblokfiyat: 300
    kızıltaşblokfiyat: 150   
command /sat [<text>] [<number>] [<number>] [<number>]:
    trigger:
        arg-1 isn't set:
            open virtual chest with size 3 named "&c&nSat Menü" to player
            wait 1 tick
            set {_slot} to 0
            loop 27 times:
                make gui slot {_slot} of player with gray stained glass pane named "&f"
                add 1 to {_slot}
            make gui slot 0 of player with iron ingot named "&fDemir" to run function esyaSatmenu(player, iron ingot, 250)
            make gui slot 1 of player with gold ingot named "&6Altın" to run function esyaSatmenu(player, gold ingot, 150)
            make gui slot 2 of player with diamond named "&bElmas" to run function esyaSatmenu(player, diamond, 300)
            make gui slot 3 of player with emerald named "&aZümrüt" to run function esyaSatmenu(player, emerald, 200)
            make gui slot 4 of player with cactus named "&2Kaktüs" to run function esyaSatmenu(player, cactus, 50)
            make gui slot 18 of player with iron block named "&fDemir Blok" to run function esyaSatmenu(player, iron block, 450)
            make gui slot 19 of player with gold block named "&6Altın Blok" to run function esyaSatmenu(player, gold block, 350)
            make gui slot 20 of player with diamond block named "&bElmas Blok" to run function esyaSatmenu(player, diamond block, 400)
            make gui slot 21 of player with emerald block named "&aZümrüt Blok" to run function esyaSatmenu(player, emerald block, 300)
            make gui slot 22 of player with redstone block named "&4Kızıltaş Blok" to run function esyaSatmenu(player, redstone block, 150)
            make gui slot 26 of player with redstone named "&cKapat" to close
function esyaSat(p: player, i: item, n: number, m: number):
    if amount of {_i} in {_p}'s inventory is greater than or equal to {_n}:           
        add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
        set {_item} to "%{_i}%"
        replace "iron_ingot" with "&fDemir" in {_item}
        replace "golden_ingot" with "&6Altın" in {_item}
        replace "diamond" with "&bElmas" in {_item}   
        replace "emerald" with "&aZümrüt" in {_item}
        replace "cactus" with "&2Kaktüs" in {_item}
        replace "iron_block" with "&fDemir Blok" in {_item}
        replace "gold_block" with "&6Altın Blok" in {_item}
        replace "Elmas_block" with "&bElmas Blok" in {_item}
        replace "Zümrüt_block" with "&aZümrüt Blok" in {_item}
        replace "redstone_block" with "&4Kızıltaş Blok" in {_item}
        send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%{_n}% &r%{_item}% &7satıldı!" for 2 second
        set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
        remove {_n} of {_i} from {_p}'s inventory
    else:
        send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
        set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSathepsi(p: player, i: item, m: number):
    if amount of {_i} in {_p}'s inventory is greater than 0:
        add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
        set {_item} to "%{_i}%"
        replace "iron_ingot" with "&fDemir" in {_item}
        replace "golden_ingot" with "&6Altın" in {_item}
        replace "diamond" with "&bElmas" in {_item}   
        replace "emerald" with "&aZümrüt" in {_item}
        replace "cactus" with "&2Kaktüs" in {_item}
        replace "iron_block" with "&fDemir Blok" in {_item}
        replace "gold_block" with "&6Altın Blok" in {_item}
        replace "Elmas_block" with "&bElmas Blok" in {_item}
        replace "Zümrüt_block" with "&aZümrüt Blok" in {_item}
        replace "redstone_block" with "&4Kızıltaş Blok" in {_item}
        send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%amount of {_i} in {_p}'s inventory% &7%{_item}% &7satıldı!" for 2 second
        set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
        remove all {_i} from {_p}'s inventory
    else:
        send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
        set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSatmenu(p: player, i: item, m: number):
    open virtual chest with size 3 named "&c&nSat Menü" to {_p}
    set {_item} to "%{_i}%"
    replace "iron_ingot" with "&fDemir" in {_item}
    replace "golden_ingot" with "&6Altın" in {_item}
    replace "diamond" with "&bElmas" in {_item}   
    replace "emerald" with "&aZümrüt" in {_item}
    replace "cactus" with "&2Kaktüs" in {_item}
    replace "iron_block" with "&fDemir Blok" in {_item}
    replace "gold_block" with "&6Altın Blok" in {_item}
    replace "Elmas_block" with "&bElmas Blok" in {_item}
    replace "Zümrüt_block" with "&aZümrüt Blok" in {_item}
    replace "redstone_block" with "&4Kızıltaş Blok" in {_item}
    wait 1 tick
    set {_slot} to 0
    loop 27 times:
        make gui slot {_slot} of {_p} with gray stained glass pane named "&f"
        add 1 to {_slot}   
    make gui slot 4 of {_p} with skull of {_p} named "%{_item}%" with lore "&7Envanterinde &c%amount of {_i} in {_p}'s inventory% &7tane bulunmakta.||&7%{_item}% &7tanesi &a%{_m}%Tl" to nothing
    make gui slot 9 of {_p} with {_i} named "&e&n8 Tane sat" with lore "||&7Tıklayarak &c8 &7Tane sat||||&7Alacağın para: &a%(8 * {_m})%" to run function esyaSat({_p}, {_i}, 8, {_m})
    make gui slot 11 of {_p} with {_i} named "&e&n16 Tane sat" with lore "||&7Tıklayarak &c16 &7Tane sat||||&7Alacağın para: &a%(16 * {_m})%" to run function esyaSat({_p}, {_i}, 16, {_m})
    make gui slot 13 of {_p} with {_i} named "&e&n32 Tane sat" with lore "||&7Tıklayarak &c32 &7Tane sat||||&7Alacağın para: &a%(32 * {_m})%" to run function esyaSat({_p}, {_i}, 32, {_m})
    make gui slot 15 of {_p} with {_i} named "&e&n64 Tane sat" with lore "||&7Tıklayarak &c64 &7Tane sat||||&7Alacağın para: &a%(64 * {_m})%" to run function esyaSat({_p}, {_i}, 64, {_m})
    make gui slot 17 of {_p} with {_i} named "&6&nHepsini sat" with lore "||&7Tıklayarak &chepsini &7sat||||&7Alacağın para: &a%(amount of {_i} in {_p}'s inventory * {_m})%" to run function esyaSathepsi({_p}, {_i}, {_m})
    make gui slot 26 of {_p} with redstone named "&cGeri dön" to run {_p} command "sat"

Skript hata veriyorsa şu pluginleri indir;
Tuske skript SkQuery ve skRayFall

Skriptin biraz düzenlenmiş halidir.
 
JavaScript:
options:
    p: &5&lRIP&f&lCraft &e»
    demirfiyat: 250
    altınfiyat: 150
    elmasfiyat: 300
    zümrütfiyat: 200
    kaktüsfiyat: 50
    demirblokfiyat: 450
    altınblokfiyat: 350
    elmasblokfiyat: 400
    zümrütblokfiyat: 300
    kızıltaşblokfiyat: 150
command /sat [<text>] [<number>] [<number>] [<number>]:
    trigger:
        arg-1 isn't set:
            open virtual chest with size 3 named "&c&nSat Menü" to player
            wait 1 tick
            set {_slot} to 0
            loop 27 times:
                make gui slot {_slot} of player with gray stained glass pane named "&f"
                add 1 to {_slot}
            make gui slot 0 of player with iron ingot named "&fDemir" to run function esyaSatmenu(player, iron ingot, 250)
            make gui slot 1 of player with gold ingot named "&6Altın" to run function esyaSatmenu(player, gold ingot, 150)
            make gui slot 2 of player with diamond named "&bElmas" to run function esyaSatmenu(player, diamond, 300)
            make gui slot 3 of player with emerald named "&aZümrüt" to run function esyaSatmenu(player, emerald, 200)
            make gui slot 4 of player with cactus named "&2Kaktüs" to run function esyaSatmenu(player, cactus, 50)
            make gui slot 18 of player with iron block named "&fDemir Blok" to run function esyaSatmenu(player, iron block, 450)
            make gui slot 19 of player with gold block named "&6Altın Blok" to run function esyaSatmenu(player, gold block, 350)
            make gui slot 20 of player with diamond block named "&bElmas Blok" to run function esyaSatmenu(player, diamond block, 400)
            make gui slot 21 of player with emerald block named "&aZümrüt Blok" to run function esyaSatmenu(player, emerald block, 300)
            make gui slot 22 of player with redstone block named "&4Kızıltaş Blok" to run function esyaSatmenu(player, redstone block, 150)
            make gui slot 26 of player with redstone named "&cKapat" to close
function esyaSat(p: player, i: item, n: number, m: number):
    if amount of {_i} in {_p}'s inventory is greater than or equal to {_n}:        
        add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
        set {_item} to "%{_i}%"
        replace "iron_ingot" with "&fDemir" in {_item}
        replace "golden_ingot" with "&6Altın" in {_item}
        replace "diamond" with "&bElmas" in {_item}
        replace "emerald" with "&aZümrüt" in {_item}
        replace "cactus" with "&2Kaktüs" in {_item}
        replace "iron_block" with "&fDemir Blok" in {_item}
        replace "gold_block" with "&6Altın Blok" in {_item}
        replace "Elmas_block" with "&bElmas Blok" in {_item}
        replace "Zümrüt_block" with "&aZümrüt Blok" in {_item}
        replace "redstone_block" with "&4Kızıltaş Blok" in {_item}
        send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%{_n}% &r%{_item}% &7satıldı!" for 2 second
        set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
        remove {_n} of {_i} from {_p}'s inventory
    else:
        send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
        set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSathepsi(p: player, i: item, m: number):
    if amount of {_i} in {_p}'s inventory is greater than 0:
        add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
        set {_item} to "%{_i}%"
        replace "iron_ingot" with "&fDemir" in {_item}
        replace "golden_ingot" with "&6Altın" in {_item}
        replace "diamond" with "&bElmas" in {_item}
        replace "emerald" with "&aZümrüt" in {_item}
        replace "cactus" with "&2Kaktüs" in {_item}
        replace "iron_block" with "&fDemir Blok" in {_item}
        replace "gold_block" with "&6Altın Blok" in {_item}
        replace "Elmas_block" with "&bElmas Blok" in {_item}
        replace "Zümrüt_block" with "&aZümrüt Blok" in {_item}
        replace "redstone_block" with "&4Kızıltaş Blok" in {_item}
        send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%amount of {_i} in {_p}'s inventory% &7%{_item}% &7satıldı!" for 2 second
        set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
        remove all {_i} from {_p}'s inventory
    else:
        send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
        set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSatmenu(p: player, i: item, m: number):
    open virtual chest with size 3 named "&c&nSat Menü" to {_p}
    set {_item} to "%{_i}%"
    replace "iron_ingot" with "&fDemir" in {_item}
    replace "golden_ingot" with "&6Altın" in {_item}
    replace "diamond" with "&bElmas" in {_item}
    replace "emerald" with "&aZümrüt" in {_item}
    replace "cactus" with "&2Kaktüs" in {_item}
    replace "iron_block" with "&fDemir Blok" in {_item}
    replace "gold_block" with "&6Altın Blok" in {_item}
    replace "Elmas_block" with "&bElmas Blok" in {_item}
    replace "Zümrüt_block" with "&aZümrüt Blok" in {_item}
    replace "redstone_block" with "&4Kızıltaş Blok" in {_item}
    wait 1 tick
    set {_slot} to 0
    loop 27 times:
        make gui slot {_slot} of {_p} with gray stained glass pane named "&f"
        add 1 to {_slot}
    make gui slot 4 of {_p} with skull of {_p} named "%{_item}%" with lore "&7Envanterinde &c%amount of {_i} in {_p}'s inventory% &7tane bulunmakta.||&7%{_item}% &7tanesi &a%{_m}%Tl" to nothing
    make gui slot 9 of {_p} with {_i} named "&e&n8 Tane sat" with lore "||&7Tıklayarak &c8 &7Tane sat||||&7Alacağın para: &a%(8 * {_m})%" to run function esyaSat({_p}, {_i}, 8, {_m})
    make gui slot 11 of {_p} with {_i} named "&e&n16 Tane sat" with lore "||&7Tıklayarak &c16 &7Tane sat||||&7Alacağın para: &a%(16 * {_m})%" to run function esyaSat({_p}, {_i}, 16, {_m})
    make gui slot 13 of {_p} with {_i} named "&e&n32 Tane sat" with lore "||&7Tıklayarak &c32 &7Tane sat||||&7Alacağın para: &a%(32 * {_m})%" to run function esyaSat({_p}, {_i}, 32, {_m})
    make gui slot 15 of {_p} with {_i} named "&e&n64 Tane sat" with lore "||&7Tıklayarak &c64 &7Tane sat||||&7Alacağın para: &a%(64 * {_m})%" to run function esyaSat({_p}, {_i}, 64, {_m})
    make gui slot 17 of {_p} with {_i} named "&6&nHepsini sat" with lore "||&7Tıklayarak &chepsini &7sat||||&7Alacağın para: &a%(amount of {_i} in {_p}'s inventory * {_m})%" to run function esyaSathepsi({_p}, {_i}, {_m})
    make gui slot 26 of {_p} with redstone named "&cGeri dön" to run {_p} command "sat"

Skript hata veriyorsa şu pluginleri indir;
Tuske skript SkQuery ve skRayFall

Skriptin biraz düzenlenmiş halidir.
Tuske ve diğerleri mevcut sunucumda.
Tuske ve diğerleri mevcut sunucumda.
Deniyorum hemen
Hocam olmadı sunucuya gelip bakma şansınız varmı?
 
Tuske 1.8.3 kullanmalısnız.
 
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