command /çek [<number>]:
trigger:
if arg 1 is not set:
message "&7Kullanmak için &c/çek <sayi>"
stop
if arg 1 is set:
if player's balance is greater than arg-1:
message "&7%arg-1% tl miktarda paraya bir çek yazdirdiniz !"
remove arg-1 from the player's balance
set {%arg-2%.paraverisi} to "%arg-1%"
set slot 1 of player's inventory to paper named "%{%arg-2%.paraverisi}%" with lore "&7Kullanmak için tiklayiniz !"
set {esya} to slot 1 of player
on rightclick with a paper:
if "%lore of player's tool%" contains "&7Kullanmak için tiklayiniz !":
set {_miktar} to name of tool
set {_miktar} to {_miktar} parsed as number
message "&7%{_miktar}% miktarli para çekini kullandiniz."
add {_miktar} to the player's account
remove 1 of player's tool from player's inventory
eyvallahSmt287'den Alıntıdır.
Kod:command /çek [<number>]: trigger: if arg 1 is not set: message "&7Kullanmak için &c/çek <sayi>" stop if arg 1 is set: if player's balance is greater than arg-1: message "&7%arg-1% tl miktarda paraya bir çek yazdirdiniz !" remove arg-1 from the player's balance set {%arg-2%.paraverisi} to "%arg-1%" set slot 1 of player's inventory to paper named "%{%arg-2%.paraverisi}%" with lore "&7Kullanmak için tiklayiniz !" set {esya} to slot 1 of player on rightclick with a paper: if "%lore of player's tool%" contains "&7Kullanmak için tiklayiniz !": set {_miktar} to name of tool set {_miktar} to {_miktar} parsed as number message "&7%{_miktar}% miktarli para çekini kullandiniz." add {_miktar} to the player's account remove 1 of player's tool from player's inventory