Çözüldü Bilet skripti

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

ihalitisbackk

Creeper Evimi Patlattı
Katılım
15 Haziran 2022
Mesajlar
393
Elmaslar
44
Puan
1.670
Konum
Antalya - Muratpaşa
Minecraft
halitisbackk

Discord:

ihalitisbackk#7699

Elimde böyle bir skript mevcut oyunculara para karşılığı bilet vermesini istiyorum bunu nasıl ayarlayabilirim?
 

Ekli dosyalar

Kod:
# End Skripti #
options:
   
    prefix:  &x&f&b&0&0&0&0【 G&x&f&b&0&e&0&4e&x&f&b&1&d&0&9c&x&f&c&2&b&0&di&x&f&c&3&a&1&2s &x&f&c&4&8&1&6B&x&f&c&5&6&1&ai&x&f&c&6&5&1&fl&x&f&d&7&3&2&3e&x&f&d&8&2&2&8t&x&f&d&9&0&2&ci 】   ➙
   
    fiyat: 5000 # istersen değiştirebilirsin.

command /bilet:
    trigger:
        GUI(player)
       
function GUI(p:player):
    set {_p}'s metadata "BILET" to chest inventory with 3 rows named "Bilet Satın Al"
    set {_} to {_p}'s metadata "BILET"
    set slot 13 of {_} to paper named "&aBilet Al" with lore "" and "&7Bileti satın alarak" and "&7diğer dünyalara gidebilirsin." and "" and "&7Fiyat: &e{@fiyat}" and "" and "&eSatın almak için tıkla!"
    open {_} to {_p}
   
inventory click:
    event-inventory = player's metadata "BILET":
        cancel event
        event-slot's index = 13:
            close player's inventory
            if player's balance >= {@fiyat}:
                send "&aBileti başarıyla satın aldın!"
                remove {@fiyat} from player's balance
                give 1 paper named "&aEnd Bileti &7(&e1 Hak&7)" to player
            else:
                send "&cBunun için &f({@fiyat} - player's balance) &cparaya ihtiyacın var."  

on portal:
    cancel event
    send "{@prefix} Hey! Nether yada End'e sadece bileti olanlar gidebilir."

command /endayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {end} to location of player
        send "{@prefix} &aEnd alanı &7%location of player% &aolarak belirlendi!"

command /netherayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {nether} to location of player
        send "{@prefix} &aNether alanı &7%location of player% &aolarak belirlendi!"

command /biletver [<player>] [<text>]:
    permission: *
    trigger:
        if arg 1 is set:
            if arg 2 is "end":
                give 1 paper named "&aEnd Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9END Bileti &7Alındı! &c❤" for 3 seconds
            if arg 2 is "nether":
                give 1 paper named "&cNether Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9NETHER Bileti &7Alındı! &c❤" for 3 seconds

on rightclick with paper:
    if display name of tool is "&aEnd Bileti &7(&e1 Hak&7)":
        teleport player to {end}
        execute console command "lagg killmobs"
        send "{@prefix} &9End Bileti &7Kullanıldı! &c❤"
        remove paper named "&aEnd Bileti &7(&e1 Hak&7)" from player

on rightclick with paper:
    if display name of tool is "&cNether Bileti &7(&e1 Hak&7)":
        teleport player to {nether}
        execute console command "lagg killmobs"
        send "{@prefix} &cNether Bileti &7Kullanıldı! &c❤"
        remove paper named "&cNether Bileti &7(&e1 Hak&7)" from player
 
Kod:
# End Skripti #
options:
   
    prefix:  &x&f&b&0&0&0&0【 G&x&f&b&0&e&0&4e&x&f&b&1&d&0&9c&x&f&c&2&b&0&di&x&f&c&3&a&1&2s &x&f&c&4&8&1&6B&x&f&c&5&6&1&ai&x&f&c&6&5&1&fl&x&f&d&7&3&2&3e&x&f&d&8&2&2&8t&x&f&d&9&0&2&ci 】   ➙
   
    fiyat: 5000 # istersen değiştirebilirsin.

command /bilet:
    trigger:
        GUI(player)
       
function GUI(p:player):
    set {_p}'s metadata "BILET" to chest inventory with 3 rows named "Bilet Satın Al"
    set {_} to {_p}'s metadata "BILET"
    set slot 13 of {_} to paper named "&aBilet Al" with lore "" and "&7Bileti satın alarak" and "&7diğer dünyalara gidebilirsin." and "" and "&7Fiyat: &e{@fiyat}" and "" and "&eSatın almak için tıkla!"
    open {_} to {_p}
   
inventory click:
    event-inventory = player's metadata "DEMIRCI":
        cancel event
        event-slot's index = 13:
            close player's inventory
            if player's balance >= {@fiyat}:
                send "&aBileti başarıyla satın aldın!"
                remove {@fiyat} from player's balance
                give 1 paper named "&aEnd Bileti &7(&e1 Hak&7)" to player
            else:
                send "&cBunun için &f({@fiyat} - player's balance) &cparaya ihtiyacın var."  

on portal:
    cancel event
    send "{@prefix} Hey! Nether yada End'e sadece bileti olanlar gidebilir."

command /endayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {end} to location of player
        send "{@prefix} &aEnd alanı &7%location of player% &aolarak belirlendi!"

command /netherayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {nether} to location of player
        send "{@prefix} &aNether alanı &7%location of player% &aolarak belirlendi!"

command /biletver [<player>] [<text>]:
    permission: *
    trigger:
        if arg 1 is set:
            if arg 2 is "end":
                give 1 paper named "&aEnd Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9END Bileti &7Alındı! &c❤" for 3 seconds
            if arg 2 is "nether":
                give 1 paper named "&cNether Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9NETHER Bileti &7Alındı! &c❤" for 3 seconds

on rightclick with paper:
    if display name of tool is "&aEnd Bileti &7(&e1 Hak&7)":
        teleport player to {end}
        execute console command "lagg killmobs"
        send "{@prefix} &9End Bileti &7Kullanıldı! &c❤"
        remove paper named "&aEnd Bileti &7(&e1 Hak&7)" from player

on rightclick with paper:
    if display name of tool is "&cNether Bileti &7(&e1 Hak&7)":
        teleport player to {nether}
        execute console command "lagg killmobs"
        send "{@prefix} &cNether Bileti &7Kullanıldı! &c❤"
        remove paper named "&cNether Bileti &7(&e1 Hak&7)" from player
Sabah deneyeceğim hocam
 
Kod:
# End Skripti #
options:
  
    prefix:  &x&f&b&0&0&0&0【 G&x&f&b&0&e&0&4e&x&f&b&1&d&0&9c&x&f&c&2&b&0&di&x&f&c&3&a&1&2s &x&f&c&4&8&1&6B&x&f&c&5&6&1&ai&x&f&c&6&5&1&fl&x&f&d&7&3&2&3e&x&f&d&8&2&2&8t&x&f&d&9&0&2&ci 】   ➙
  
    fiyat: 5000 # istersen değiştirebilirsin.

command /bilet:
    trigger:
        GUI(player)
      
function GUI(p:player):
    set {_p}'s metadata "BILET" to chest inventory with 3 rows named "Bilet Satın Al"
    set {_} to {_p}'s metadata "BILET"
    set slot 13 of {_} to paper named "&aBilet Al" with lore "" and "&7Bileti satın alarak" and "&7diğer dünyalara gidebilirsin." and "" and "&7Fiyat: &e{@fiyat}" and "" and "&eSatın almak için tıkla!"
    open {_} to {_p}
  
inventory click:
    event-inventory = player's metadata "BILET":
        cancel event
        event-slot's index = 13:
            close player's inventory
            if player's balance >= {@fiyat}:
                send "&aBileti başarıyla satın aldın!"
                remove {@fiyat} from player's balance
                give 1 paper named "&aEnd Bileti &7(&e1 Hak&7)" to player
            else:
                send "&cBunun için &f({@fiyat} - player's balance) &cparaya ihtiyacın var." 

on portal:
    cancel event
    send "{@prefix} Hey! Nether yada End'e sadece bileti olanlar gidebilir."

command /endayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {end} to location of player
        send "{@prefix} &aEnd alanı &7%location of player% &aolarak belirlendi!"

command /netherayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {nether} to location of player
        send "{@prefix} &aNether alanı &7%location of player% &aolarak belirlendi!"

command /biletver [<player>] [<text>]:
    permission: *
    trigger:
        if arg 1 is set:
            if arg 2 is "end":
                give 1 paper named "&aEnd Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9END Bileti &7Alındı! &c❤" for 3 seconds
            if arg 2 is "nether":
                give 1 paper named "&cNether Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9NETHER Bileti &7Alındı! &c❤" for 3 seconds

on rightclick with paper:
    if display name of tool is "&aEnd Bileti &7(&e1 Hak&7)":
        teleport player to {end}
        execute console command "lagg killmobs"
        send "{@prefix} &9End Bileti &7Kullanıldı! &c❤"
        remove paper named "&aEnd Bileti &7(&e1 Hak&7)" from player

on rightclick with paper:
    if display name of tool is "&cNether Bileti &7(&e1 Hak&7)":
        teleport player to {nether}
        execute console command "lagg killmobs"
        send "{@prefix} &cNether Bileti &7Kullanıldı! &c❤"
        remove paper named "&cNether Bileti &7(&e1 Hak&7)" from player
burada düzenleme yapabilir misiniz sizden rica etsem, bilet yazınca menüde 3 seçenek çıkacak bu seçenekler orman end ve nether siz sadece endi eklemişsiniz bu 3ünü ekleyebilirseniz sevinirim.
 
Kod:
# End Skripti #
options:
  
    prefix:  &x&f&b&0&0&0&0【 G&x&f&b&0&e&0&4e&x&f&b&1&d&0&9c&x&f&c&2&b&0&di&x&f&c&3&a&1&2s &x&f&c&4&8&1&6B&x&f&c&5&6&1&ai&x&f&c&6&5&1&fl&x&f&d&7&3&2&3e&x&f&d&8&2&2&8t&x&f&d&9&0&2&ci 】   ➙
  
    fiyat: 5000 # istersen değiştirebilirsin.

command /bilet:
    trigger:
        GUI(player)
      
function GUI(p:player):
    set {_p}'s metadata "BILET" to chest inventory with 3 rows named "Bilet Satın Al"
    set {_} to {_p}'s metadata "BILET"
    set slot 13 of {_} to paper named "&aBilet Al" with lore "" and "&7Bileti satın alarak" and "&7diğer dünyalara gidebilirsin." and "" and "&7Fiyat: &e{@fiyat}" and "" and "&eSatın almak için tıkla!"
    open {_} to {_p}
  
inventory click:
    event-inventory = player's metadata "BILET":
        cancel event
        event-slot's index = 13:
            close player's inventory
            if player's balance >= {@fiyat}:
                send "&aBileti başarıyla satın aldın!"
                remove {@fiyat} from player's balance
                give 1 paper named "&aEnd Bileti &7(&e1 Hak&7)" to player
            else:
                send "&cBunun için &f({@fiyat} - player's balance) &cparaya ihtiyacın var." 

on portal:
    cancel event
    send "{@prefix} Hey! Nether yada End'e sadece bileti olanlar gidebilir."

command /endayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {end} to location of player
        send "{@prefix} &aEnd alanı &7%location of player% &aolarak belirlendi!"

command /netherayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {nether} to location of player
        send "{@prefix} &aNether alanı &7%location of player% &aolarak belirlendi!"

command /biletver [<player>] [<text>]:
    permission: *
    trigger:
        if arg 1 is set:
            if arg 2 is "end":
                give 1 paper named "&aEnd Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9END Bileti &7Alındı! &c❤" for 3 seconds
            if arg 2 is "nether":
                give 1 paper named "&cNether Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9NETHER Bileti &7Alındı! &c❤" for 3 seconds

on rightclick with paper:
    if display name of tool is "&aEnd Bileti &7(&e1 Hak&7)":
        teleport player to {end}
        execute console command "lagg killmobs"
        send "{@prefix} &9End Bileti &7Kullanıldı! &c❤"
        remove paper named "&aEnd Bileti &7(&e1 Hak&7)" from player

on rightclick with paper:
    if display name of tool is "&cNether Bileti &7(&e1 Hak&7)":
        teleport player to {nether}
        execute console command "lagg killmobs"
        send "{@prefix} &cNether Bileti &7Kullanıldı! &c❤"
        remove paper named "&cNether Bileti &7(&e1 Hak&7)" from player
ve itemi çoğaltamamaları için hepsine de lore ekleyebilirseniz çok mutlu olurum. teşekkürler şimdiden.
 
Kod:
# End Skripti #
options:
  
    prefix:  &x&f&b&0&0&0&0【 G&x&f&b&0&e&0&4e&x&f&b&1&d&0&9c&x&f&c&2&b&0&di&x&f&c&3&a&1&2s &x&f&c&4&8&1&6B&x&f&c&5&6&1&ai&x&f&c&6&5&1&fl&x&f&d&7&3&2&3e&x&f&d&8&2&2&8t&x&f&d&9&0&2&ci 】   ➙
  
    # Bunları istersen değiştirirsin.
    fiyatOrman: 5000
    fiyatEnd: 5000
    fiyatNether: 5000

command /bilet:
    trigger:
        GUI(player)
      
function GUI(p:player):
    set {_p}'s metadata "BILET" to chest inventory with 3 rows named "Bilet Satın Al"
    set {_} to {_p}'s metadata "BILET"
    set slot 11 of {_} to paper named "&aBilet Al &7(End)" with lore "" and "&7Bileti satın alarak" and "&dEnd &7dünyasına gidebilirsin." and "" and "&7Fiyat: &e{@fiyatEnd}" and "" and "&eSatın almak için tıkla!"
    set slot 13 of {_} to paper named "&aBilet Al &7(Nether)" with lore "" and "&7Bileti satın alarak" and "&cMether &7dünyasına gidebilirsin." and "" and "&7Fiyat: &e{@fiyatNether}" and "" and "&eSatın almak için tıkla!"
    set slot 15 of {_} to paper named "&aBilet Al &7(Orman)" with lore "" and "&7Bileti satın alarak" and "&2Orman &7dünyasına gidebilirsin." and "" and "&7Fiyat: &e{@fiyatOrman}" and "" and "&eSatın almak için tıkla!"
    open {_} to {_p}

function biletVer(p:player, f:number, bilet:text):
    if {_p}'s balance >= {_f}:
        remove {_f} from {_p}'s balance
        send "&aBaşarıyla &f%{_f}% &afiyatına bilet satın aldın!" to {_p}
        give 1 paper named "&dEnd Bileti &7(&e1 Hak&7)" with lore "&7Kullanmak için sağ tıklayın." to {_p} if {_bilet} = "end"
        give 1 paper named "&cNether Bileti &7(&e1 Hak&7)" with lore "&7Kullanmak için sağ tıklayın." to {_p} if {_bilet} = "nether"
        give 1 paper named "&2Orman Bileti &7(&e1 Hak&7)" with lore "&7Kullanmak için sağ tıklayın." to {_p} if {_bilet} = "orman"
    else:   
        send "&cBunun için &f%({_f} - {_p}'s balance)% &cparaya ihtiyacın var." to {_p}

inventory click:
    event-inventory = player's metadata "BILET":
        cancel event
        biletVer(player, {@fiyatEnd}, "end") if event-slot's index = 11
        biletVer(player, {@fiyatNether}, "nether") if event-slot's index = 13
        biletVer(player, {@fiyatOrman}, "orman") if event-slot's index = 15

on portal:
    cancel event
    send "{@prefix} Hey! Nether yada End'e sadece bileti olanlar gidebilir."

command /endayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {end} to location of player
        send "{@prefix} &aEnd alanı &7%location of player% &aolarak belirlendi!"

command /netherayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {nether} to location of player
        send "{@prefix} &aNether alanı &7%location of player% &aolarak belirlendi!"

command /biletver [<player>] [<text>]:
    permission: *
    trigger:
        if arg 1 is set:
            if arg 2 is "end":
                give 1 paper named "&aEnd Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9END Bileti &7Alındı! &c❤" for 3 seconds
            if arg 2 is "nether":
                give 1 paper named "&cNether Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9NETHER Bileti &7Alındı! &c❤" for 3 seconds

on rightclick with paper:
    if display name of tool is "&aEnd Bileti &7(&e1 Hak&7)":
        teleport player to {end}
        execute console command "lagg killmobs"
        send "{@prefix} &9End Bileti &7Kullanıldı! &c❤"
        remove paper named "&aEnd Bileti &7(&e1 Hak&7)" from player

on rightclick with paper:
    if display name of tool is "&cNether Bileti &7(&e1 Hak&7)":
        teleport player to {nether}
        execute console command "lagg killmobs"
        send "{@prefix} &cNether Bileti &7Kullanıldı! &c❤"
        remove paper named "&cNether Bileti &7(&e1 Hak&7)" from player
 
Kod:
# End Skripti #
options:
 
    prefix:  &x&f&b&0&0&0&0【 G&x&f&b&0&e&0&4e&x&f&b&1&d&0&9c&x&f&c&2&b&0&di&x&f&c&3&a&1&2s &x&f&c&4&8&1&6B&x&f&c&5&6&1&ai&x&f&c&6&5&1&fl&x&f&d&7&3&2&3e&x&f&d&8&2&2&8t&x&f&d&9&0&2&ci 】   ➙
 
    # Bunları istersen değiştirirsin.
    fiyatOrman: 5000
    fiyatEnd: 5000
    fiyatNether: 5000

command /bilet:
    trigger:
        GUI(player)
    
function GUI(p:player):
    set {_p}'s metadata "BILET" to chest inventory with 3 rows named "Bilet Satın Al"
    set {_} to {_p}'s metadata "BILET"
    set slot 11 of {_} to paper named "&aBilet Al &7(End)" with lore "" and "&7Bileti satın alarak" and "&dEnd &7dünyasına gidebilirsin." and "" and "&7Fiyat: &e{@fiyatEnd}" and "" and "&eSatın almak için tıkla!"
    set slot 13 of {_} to paper named "&aBilet Al &7(Nether)" with lore "" and "&7Bileti satın alarak" and "&cMether &7dünyasına gidebilirsin." and "" and "&7Fiyat: &e{@fiyatNether}" and "" and "&eSatın almak için tıkla!"
    set slot 15 of {_} to paper named "&aBilet Al &7(Orman)" with lore "" and "&7Bileti satın alarak" and "&2Orman &7dünyasına gidebilirsin." and "" and "&7Fiyat: &e{@fiyatOrman}" and "" and "&eSatın almak için tıkla!"
    open {_} to {_p}

function biletVer(p:player, f:number, bilet:text):
    if {_p}'s balance >= {_f}:
        remove {_f} from {_p}'s balance
        send "&aBaşarıyla &f%{_f}% &afiyatına bilet satın aldın!" to {_p}
        give 1 paper named "&dEnd Bileti &7(&e1 Hak&7)" with lore "&7Kullanmak için sağ tıklayın." to {_p} if {_bilet} = "end"
        give 1 paper named "&cNether Bileti &7(&e1 Hak&7)" with lore "&7Kullanmak için sağ tıklayın." to {_p} if {_bilet} = "nether"
        give 1 paper named "&2Orman Bileti &7(&e1 Hak&7)" with lore "&7Kullanmak için sağ tıklayın." to {_p} if {_bilet} = "orman"
    else: 
        send "&cBunun için &f%({_f} - {_p}'s balance)% &cparaya ihtiyacın var." to {_p}

inventory click:
    event-inventory = player's metadata "BILET":
        cancel event
        biletVer(player, {@fiyatEnd}, "end") if event-slot's index = 11
        biletVer(player, {@fiyatNether}, "nether") if event-slot's index = 13
        biletVer(player, {@fiyatOrman}, "orman") if event-slot's index = 15

on portal:
    cancel event
    send "{@prefix} Hey! Nether yada End'e sadece bileti olanlar gidebilir."

command /endayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {end} to location of player
        send "{@prefix} &aEnd alanı &7%location of player% &aolarak belirlendi!"

command /netherayarla:
    permission: *
    permission message: &e&lAyaz &8► &fBu komutu girmek için yetkiniz yok.
    trigger:
        set {nether} to location of player
        send "{@prefix} &aNether alanı &7%location of player% &aolarak belirlendi!"

command /biletver [<player>] [<text>]:
    permission: *
    trigger:
        if arg 1 is set:
            if arg 2 is "end":
                give 1 paper named "&aEnd Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9END Bileti &7Alındı! &c❤" for 3 seconds
            if arg 2 is "nether":
                give 1 paper named "&cNether Bileti &7(&e1 Hak&7)" to player
                send player title "&b%arg-1%" with subtitle "&9NETHER Bileti &7Alındı! &c❤" for 3 seconds

on rightclick with paper:
    if display name of tool is "&aEnd Bileti &7(&e1 Hak&7)":
        teleport player to {end}
        execute console command "lagg killmobs"
        send "{@prefix} &9End Bileti &7Kullanıldı! &c❤"
        remove paper named "&aEnd Bileti &7(&e1 Hak&7)" from player

on rightclick with paper:
    if display name of tool is "&cNether Bileti &7(&e1 Hak&7)":
        teleport player to {nether}
        execute console command "lagg killmobs"
        send "{@prefix} &cNether Bileti &7Kullanıldı! &c❤"
        remove paper named "&cNether Bileti &7(&e1 Hak&7)" from player
hocam endayarla komutu ile bölgeyi ayarladım fakat kağıta sağ tıklayınca çalışmıyor nether düzgün çalışıyor ve orman bölgesini ayarlayabileceğim bir komut ekleyebilir misiniz.
 
hocam endayarla komutu ile bölgeyi ayarladım fakat kağıta sağ tıklayınca çalışmıyor nether düzgün çalışıyor ve orman bölgesini ayarlayabileceğim bir komut ekleyebilir misiniz.
yardımcı olacak var mı ?
 
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