on load:
set {_y} to 10
variables:
{bakiye::%player%} = 0
{bonus::%player%} = 0
command /Banka [<text>]:
trigger:
if arg 1 isn't set:
open virtual chest inventory with size 3 named "&eBanka Menüsü" to player
wait 1 ticks
format gui slot 0 of player with gray glass block named "" with lore "" to close
format gui slot 1 of player with gray glass block named "" with lore "" to close
format gui slot 2 of player with gray glass block named "" with lore "" to close
format gui slot 3 of player with gray glass block named "" with lore "" to close
format gui slot 4 of player with gray glass block named "" with lore "" to close
format gui slot 5 of player with gray glass block named "" with lore "" to close
format gui slot 6 of player with gray glass block named "" with lore "" to close
format gui slot 7 of player with gray glass block named "" with lore "" to close
format gui slot 8 of player with gray glass block named "" with lore "" to close
format gui slot 9 of player with gray glass block named "" with lore "" to close
format gui slot 10 of player with gray glass block named "" with lore "" to close
format gui slot 11 of player with paper named "&aÇek Yaz" with lore "||&c» &7Sohbete Yazdığın Miktarda Çek Yazıp Envanterinize Verir || &7" to close then execute player command "banka çekyaz"
format gui slot 12 of player with gray glass block named "" with lore "" to close
format gui slot 13 of player with enchantment_table named "&cBanka İçi İşlemler" with lore "|| &c» &7Para Yatırma ve Para Çekme İşlemleri İçin Girin ||" to close then execute player command "banka biçiişlemler"
format gui slot 14 of player with gray glass block named "" with lore "" to close
format gui slot 15 of player with book named "&aBanka Sıralaması" with lore "||&c» &7En Çok Parası Olanlar||" to close then execute player command "sıralama"
format gui slot 16 of player with gray glass block named "" with lore "" to close
format gui slot 17 of player with gray glass block named "" with lore "" to close
format gui slot 18 of player with gray glass block named "" with lore "" to close
format gui slot 19 of player with gray glass block named "" with lore "" to close
format gui slot 20 of player with gray glass block named "" with lore "" to close
format gui slot 21 of player with gray glass block named "" with lore "" to close
format gui slot 22 of player with gray glass block named "" with lore "" to close
format gui slot 23 of player with gray glass block named "" with lore "" to close
format gui slot 24 of player with gray glass block named "" with lore "" to close
format gui slot 25 of player with gray glass block named "" with lore "" to close
format gui slot 26 of player with gray glass block named "" with lore "" to close
else:
if arg 1 is "çekyaz":
send player title "&cÇek Yazma" with subtitle "&eÇek Yazmak İstediğiniz Miktarı Girin" for 3 seconds
set {miktar::%player%} to true
wait 10 seconds
if {miktar::%player%} is true:
send player title "&cZaman Aşımı" with subtitle "&eMiktarı Daha Hızlı Girin" for 3 seconds
if arg 1 is "parayatır":
send player title "&cBanka" with subtitle "&ePara Yatırmak İstediğiniz Miktarı Girin" for 3 seconds
set {parayatır::%player%} to true
wait 10 seconds
if {parayatır::%player%} is true:
send player title "&cZaman Aşımı" with subtitle "&eMiktarı Daha Hızlı Girin" for 3 seconds
if arg 1 is "paraçek":
send player title "&cBanka" with subtitle "&ePara Çekmek İstediğiniz Miktarı Girin" for 3 seconds
set {paraçek::%player%} to true
wait 10 seconds
if {paraçek::%player%} is true:
send player title "&cZaman Aşımı" with subtitle "&eMiktarı Daha Hızlı Girin" for 3 seconds
if arg 1 is "biçiişlemler":
open virtual chest inventory with size 3 named "&eBanka Menüsü" to player
wait 1 ticks
format gui slot 0 of player with gray glass block named "" with lore "" to close
format gui slot 1 of player with gray glass block named "" with lore "" to close
format gui slot 2 of player with gray glass block named "" with lore "" to close
format gui slot 3 of player with gray glass block named "" with lore "" to close
format gui slot 4 of player with gray glass block named "" with lore "" to close
format gui slot 5 of player with gray glass block named "" with lore "" to close
format gui slot 6 of player with gray glass block named "" with lore "" to close
format gui slot 7 of player with gray glass block named "" with lore "" to close
format gui slot 8 of player with gray glass block named "" with lore "" to close
format gui slot 9 of player with gray glass block named "" with lore "" to close
format gui slot 10 of player with paper named "&aPara Yatır" with lore "||&c» &7Sohbete Yazdığın Miktarda Hesabınıza Bakiye Ekler || &7" to close then execute player command "banka parayatır"
format gui slot 11 of player with gray glass block named "" with lore "" to close
format gui slot 12 of player with bookshelf named "&cBakiyen" with lore "|| &aBakiyen &7» &e%{bakiye::%player%} otherwise 0%TL || &aBonus &7» &e%{bonus::%player%} otherwise 0%TL" to close
format gui slot 13 of player with gray glass block named "" with lore "" to close
format gui slot 14 of player with book named "&aPara Çek" with lore "||&c» &7Sohbete Yazdığın Miktarda Hesabınızdan Bakiye Çeker ||" to close then execute player command "banka paraçek"
format gui slot 15 of player with gray glass block named "" with lore "" to close
format gui slot 16 of player with diamond named "&aHavale" with lore "||&c» &7Para Havale Etme Istediğiniz Kişiyi Seçin Ardından Sohbete Miktar Girin ||" to close then execute player command "banka havale"
format gui slot 17 of player with gray glass block named "" with lore "" to close
format gui slot 18 of player with gray glass block named "" with lore "" to close
format gui slot 19 of player with gray glass block named "" with lore "" to close
format gui slot 20 of player with gray glass block named "" with lore "" to close
format gui slot 21 of player with gray glass block named "" with lore "" to close
format gui slot 22 of player with gray glass block named "" with lore "" to close
format gui slot 23 of player with gray glass block named "" with lore "" to close
format gui slot 24 of player with gray glass block named "" with lore "" to close
format gui slot 25 of player with gray glass block named "" with lore "" to close
format gui slot 26 of player with gray glass block named "" with lore "" to close
if arg 1 is "havale":
send player title "&cHavale" with subtitle "&eHavale Etmek İstediğiniz Kişinin Adını Girin" for 3 seconds
set {havale::%player%} to true
wait 10 seconds
if {havale::%player%} is true:
send player title "&cZaman Aşımı" with subtitle "&eİşlemi Daha Hızlı Yapın" for 3 seconds
command /sıralama:
trigger:
loop {bakiye::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
{_low.to.high.list::%loop-value-1%.%{_n}%} is not set
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
wait 1 tick
open virtual chest with size 4 named "En çok parası olanlar" to player
make gui slot 32 of player with fire charge named "&aYenile" with lore "&7Sayfayı yenilemek için tıklayın" to close then run player command "sıralama"
make gui slot 30 of player with book named "&aSenin Bakiyen" with lore "&7Bakiyen: &f%{bakiye::%player%}%" to nothing
loop {_high.to.low.list::*}:
add 1 to {_result}
make gui slot ({_result}-1) of player with skull of ("%loop-value%" parsed as offline player) named "&f%{_result}% &e%loop-value% &c%{bakiye::%loop-value%}% TL" to nothing
if {_result} is 26:
stop
on chat:
if {miktar::%player%} is true:
set {_n} to message parsed as number
if player's balance is bigger than or equal to {_n}:
remove {_n} from player's balance
give 1 paper named "&c%{_n}% &eTL" with lore "&cYazan &7» &e%player%" to player
send player title "&cÇek Yazma" with subtitle "&aÇek Başarıyla Yazıldı" for 1 seconds
send "<ttp:&eTekrar Çek Yazmak Için Tıkla :><cmd:/banka çekyaz>&c» Tekrar Çek Yaz<reset>" to player
delete {miktar::%player%}
cancel event
else:
send "&cHATA &7» Yeterli Miktarda Paran Yok"
delete {miktar::%player%}
cancel event
stop
#
if {parayatır::%player%} is true:
set {_p} to message parsed as number
if player's balance is bigger than or equal to {_p}:
remove {_p} from player's balance
send player title "&cBanka" with subtitle "&aPara Yatırma İşlemi Başarılı" for 1 seconds
add {_p} to {bakiye::%player%}
set {_p} to {_p} / {_y}
add {_p} to {bonus::%player%}
delete {parayatır::%player%}
cancel event
else:
send "&cHATA &7» &7Yeterli Miktarda Paran Yok"
cancel event
stop
#
if {paraçek::%player%} is true:
set {_c} to message parsed as number
if {bakiye::%player%} is bigger than or equal to {_c}:
add {_c} to player's balance
send player title "&cBanka" with subtitle "&aPara Çekme İşlemi Başarılı" for 1 seconds
remove {_c} from {bakiye::%player%}
delete {paraçek::%player%}
cancel event
else:
send "&cHATA &7» &7Hesabında Yeterli Miktarda Para Yok"
delete {paraçek::%player%}
cancel event
stop
#
{havale::%player%} is true:
set {hplayer} to message parsed as player
wait 3 seconds
send player title "&cHavale" with subtitle "&c%{hplayer}% &aAdlı Kişiye Havale Etmek İstediğiniz Miktarı Girin" for 2 seconds
delete {havale::%player%}
wait 2 seconds
set {havalem::%player%} to true
stop
{havalem::%player%} is true:
set {_hmoney} to message parsed as number
if {bakiye::%player%'s} is bigger than or equal to {_hmoney}:
add {_hmoney} to {bakiye::%{hplayer}%}
remove {_hmoney} from {bakiye::%player%}
delete {havalem::%player%}
cancel event
stop
#
on rightclick with paper:
if "%the name of the tool of the player%" contains "&eTL":
set {_cek} to name of player's held item
replace all " &eTL" with "" in {_cek}
replace all "&e" with "" in {_cek}
remove 1 of player's tool from player's inventory
add {_cek} to player's balance
send player title "&cÇek Bozdurma Başarılı" for 2 seconds