options:
d: &6Dikkat &7>>
command çek [<int>]:
trigger:
if arg-1 is bigger than 0:
if player's balance is bigger than arg-1:
remove arg-1 from player's balance
set {_arg1} to "%arg-1%" parsed as number
give 1 of paper named "&ePara Çeki" with lore "&8&l&m--------------------||&dMiktar: &e⛃&a%{_arg1}%||&dImza: &7%player%||&8&l&m--------------------" to player
send "{@d} &aÇek oluşturuldu!" to player
else:
send "{@d} &cBakiyen yetersiz!" to player
else:
send "{@d} &cMiktar 0'dan büyük olmalıdır!" to player
on right click with paper:
if tool's name is "&ePara Çeki":
set {_miktar} to line 2 of lore of player's tool
replace all "&dMiktar: &e⛃&a" with "" in {_miktar}
set {_miktar} to {_miktar} parsed as number
set {_imza} to line 3 of lore of player's tool
replace all "&dImza: &7" with "" in {_imza}
set {_adet} to amount of player's tool in the player's inventory
set {_gercekmiktar} to "%{_miktar} * {_adet}%" parsed as number
remove player's tool from player
add {_gercekmiktar} to player's balance
send "{@d} &b%{_gercekmiktar}%'lık &ePara Çeki &aBozduruldu!" to player