# ########################################################################
# # ____ ____ ____ _ _ #
# # | __ ) _ _ / ___|_ __ __ _ _____ _| _ \ ___ __ _| |_| |__ #
# # | _ \| | | | | | | '__/ _` |_ / | | | | | |/ _ \/ _` | __| '_ \ #
# # | |_) | |_| | | |___| | | (_| |/ /| |_| | |_| | __/ (_| | |_| | | | #
# # |____/ \__, | \____|_| \__,_/___|\__, |____/ \___|\__,_|\__|_| |_| #
# # |___/ |___/ #
# ########################################################################
# Skript 0 sıfırdan yazdım ve yorucu oldu ama senin gibi iyi bir insana değer eğer başka yardım edebilceğim konu varsa : Mete#7772 buyrun :) iyi kullanışlar
variables:
{lapis.%player%} = 0
{kredi.%player%} = 0
on break of lapis lazuli ore:
add 1 to {lapis.%player%}
if {lapis.%player%} is greater than or equal to 2000:
remove 2000 from {lapis.%player%}
add 1 to {kredi.%player%}
send "&e&lKREDI &7► &a2000 &7lapis kırdığın için &a1 Kredi &7verildi."
command /kredim:
trigger:
send "&e&lKREDI &7► &7Kredin: &a%{kredi.%player%}%"
command /kredi [<player>]:
trigger:
if arg 1 is set:
send "&e&lKREDI &7► &a%arg-1% &7Kredisi: &a%{kredi.%arg-1%}%"
else:
send "&e&lKREDI &7► &7Dogru Kullanım: &a/kredi <oyuncu>"
command /kredigonder [<player>] [<number>]:
trigger:
if arg 1 is set:
if arg 2 is set:
if {kredi.%player%} is greater than or equal to arg-2:
remove arg-2 from {kredi.%player%}
add arg-2 to {kredi.%arg-1%}
send "&e&lKREDI &7► &a%player% &7oyuncu &a%arg-2% Kredi &7yolladı." to arg-1
send "&e&lKREDI &7► &7hesabından &c%arg-2% &7alındı" to player
else:
send "&e&lKREDI &7► &7yeterli kredi yok"
else:
send "&e&lKREDI &7► &7Dogru Kullanım: &a/kredigonder <oyuncu> <miktar>"
else:
send "&e&lKREDI &7► &7Dogru Kullanım: &a/kredigonder <oyuncu> <miktar>"
command /kredisıfırla [<player>]:
permission: kredi.sk
trigger:
if arg 1 is set:
set {kredi.%arg-1%} to 0
send "&e&lKREDI &7► &a%player% &7yetkili tarafından kredin sıfırlandı" to arg-1
send "&e&lKREDI &7► &a%arg-1% &7adlı oyuncunu kredisi sıfırlandı" to player
else:
send "&e&lKREDI &7► &7Dogru Kullanım: &a/kredi sıfırla <oyuncu>"
command /krediver [<player>] [<number>]:
permission: kredi.sk
trigger:
if arg 1 is set:
if arg 2 is set:
add arg-2 to {kredi.%arg-1%}
send "&e&lKREDI &7► &a%player% &7yetkili sana &a%arg-2% Kredi &7verdi." to arg-1
send "&e&lKREDI &7► &a%arg-1% &7adlı oyuncuya &a%arg-2% Kredi &7verildi." to player
else:
send "&e&lKREDI &7► &7Dogru Kullanım: &a/kredi ver <oyuncu> <miktar>"
else:
send "&e&lKREDI &7► &7Dogru Kullanım: &a/kredi ver <oyuncu> <miktar>"
command /kredidağıt [<number>]:
permission: kredi.sk
trigger:
if arg 1 is set:
loop all players:
add arg-1 to {kredi.%loop-player%}
send "&e&lKREDI &7► &a%player% &7yetkili &a%arg-1% Kredi &7dağıtı." to loop-player
else:
send "&e&lKREDI &7► &7Dogru Kullanım: &a/kredi dağıt <miktar>"
command /mağaza:
trigger:
open chest with 3 rows named "&8► &aKREDI MARKET &8◄" to player
format slot 4 of player with sunflower named "&8► &aKREDI &8◄" with lore "||&cBilgilendirme:||&8- &a/warp lapis &7diyerek||&8- &7Her &92000&7 Lapise &a1 Coin&7 verilir||&8- &7Kredin: %{kredi.%player%}%" to close then run [execute player command "/mağaza"]
format slot 10 of player with diamond chestplate named "&8► &aP8 ZIRH &8◄" with lore "||&cÖzellikleri:||&8- &7P8 Kask &8(&c1&8)||&8- &7P8 Göğüslük &8(&c1&8)||&8- &7P8 Pantolon &8(&c1&8)||&8- &7P8 Bot &8(&c1&8)|||| &8- &fSatın almak için tıkla &8(&a5 Kredi&8)" to close then run [execute player command "/psatınal p8"]
format slot 12 of player with diamond chestplate named "&8► &aP9 ZIRH &8◄" with lore "||&cÖzellikleri:||&8- &7P9 Kask &8(&c1&8)||&8- &7P9 Göğüslük &8(&c1&8)||&8- &7P9 Pantolon &8(&c1&8)||&8- &7P9 Bot &8(&c1&8)|||| &8- &fSatın almak için tıkla &8(&a10 Kredi&8)" to close then run [execute player command "/psatınal p9"]
format slot 14 of player with diamond chestplate named "&&8► &aP10 ZIRH &8◄" with lore "||&cÖzellikleri:||&8- &7P10 Kask &8(&c1&8)||&8- &7P10 Göğüslük &8(&c1&8)||&8- &7P10 Pantolon &8(&c1&8)||&8- &7P10 Bot &8(&c1&8)|||| &8- &fSatın almak için tıkla &8(&a15 Kredi&8)" to close then run [execute player command "/psatınal p10"]
format slot 16 of player with diamond chestplate named "&8► &aP12 ZIRH &8◄" with lore "||&cÖzellikleri:||&8- &7P12 Kask &8(&c1&8)||&8- &7P12 Göğüslük &8(&c1&8||&8- &7P12 Pantolon &8(&c1&8)||&8- &7P12 Bot &8(&c1&8)|||| &8- &fSatın almak için tıkla &8(&a30 Kredi&8)" to close then run [execute player command "/psatınal p12"]
command /psatınal [<text>]:
trigger:
if arg 1 is "p8":
if {kredi.%player%} is greater than or equal to 5:
remove 5 from {kredi.%player%}
send "&e&lKREDI &7► &a5 Kredi &7karşılığı &aP8 &7satın aldın."
give a diamond helmet of unbreaking 8 and protection 8 named "&8► &aP8 ZIRH &8◄" to player
give a diamond chestplate of unbreaking 8 and protection 8 named "&8► &aP8 ZIRH &8◄" to player
give a diamond leggings of unbreaking 8 and protection 8 named "&8► &aP8 ZIRH &8◄" to player
give a diamond boots of unbreaking 8 and protection 8 named "&8► &aP8 ZIRH &8◄" to player
else:
send "&e&lKREDI &7► &7Yeterince kredi Yok"
if arg 1 is "p9":
if {kredi.%player%} is greater than or equal to 10:
remove 10 from {kredi.%player%}
send "&e&lKREDI &7► &a10 Kredi &7karşılığı &aP9 &7satın aldın."
give a diamond helmet of unbreaking 9 and protection 9 named "&8► &aP9 ZIRH &8◄" to player
give a diamond chestplate of unbreaking 9 and protection 9 named "&8► &aP9 ZIRH &8◄" to player
give a diamond leggings of unbreaking 9 and protection 9 named "&8► &aP9 ZIRH &8◄" to player
give a diamond boots of unbreaking 9 and protection 9 named "&8► &aP9 ZIRH &8◄" to player
else:
send "&e&lKREDI &7► &7Yeterince kredi Yok"
if arg 1 is "p10":
if {kredi.%player%} is greater than or equal to 15:
remove 15 from {kredi.%player%}
send "&e&lKREDI &7► &a15 Kredi &7karşılığı &aP10 &7satın aldın."
give a diamond helmet of unbreaking 10 and protection 10 named "&8► &aP10 ZIRH &8◄" to player
give a diamond chestplate of unbreaking 10 and protection 10 named "&8► &aP10 ZIRH &8◄" to player
give a diamond leggings of unbreaking 10 and protection 10 named "&8► &aP10 ZIRH &8◄" to player
give a diamond boots of unbreaking 10 and protection 10 named "&8► &aP10 ZIRH &8◄" to player
else:
send "&e&lKREDI &7► &7Yeterince kredi Yok"
if arg 1 is "p12":
if {kredi.%player%} is greater than or equal to 30:
remove 30 from {kredi.%player%}
send "&e&lKREDI &7► &a30 Kredi &7karşılığı &aP12 &7satın aldın."
give a diamond helmet of unbreaking 12 and protection 12 named "&8► &aP12 ZIRH &8◄" to player
give a diamond chestplate of unbreaking 12 and protection 12 named "&8► &aP12 ZIRH &8◄" to player
give a diamond leggings of unbreaking 12 and protection 12 named "&8► &aP12 ZIRH &8◄" to player
give a diamond boots of unbreaking 12 and protection 12 named "&8► &aP12 ZIRH &8◄" to player
else:
send "&e&lKREDI &7► &7Yeterince kredi Yok"