CyberCOD
Fırında Isıttığım İlk Taş
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
Kod:
[06:54:25 ERROR]: a slot can't be set to 'paper named "%{%arg-2%.paraverisi}%" with lore "&7Kullanmak için tiklayiniz !"' because the latter is neither an item type nor an item stack (cek.sk, line 11: set slot 1 of player's inventory to paper named "%{%arg-2%.paraverisi}%" with lore "&7Kullanmak için tiklayiniz !"')
[06:54:25 WARN]: the lore of the tool of the player is already a text, so you should not put it in one (e.g. the lore of the tool of the player instead of "%the lore of the tool of the player%") (cek.sk, line 15: if "%lore of player's tool%" contains "&7Kullanmak için tiklayiniz !":')
[06:54:25 INFO]: [Skript] Encountered 1 error while reloading cek.sk!
