zenyware
Somon Balığı Selam Vermeye Geldi
- Katılım
- 13 Ağustos 2024
- Mesajlar
- 14
- Elmaslar
- 0
- Puan
- 390
- Yaş
- 26
- Konum
- İzmir
- Minecraft
- VortalKerem
Discord:
baldizcosturan_266
arkadaşlar bu skripti bana biri düzeltebilirmi error veriyor 6 tane
JavaScript:
# Cobblestone Check Skript with Debt System (Using Console Commands)
variables:
{checks.%player%} = 0 # Track the number of checks issued by each player
{debt.%player%} = 0 # Track cobblestone debt for each player
command /çekyaz [<player>] [<number>]:
description: Belirtilen miktarda cobblestone verir
usage: /çekyaz <oyuncu> <miktar>
trigger:
if arg-1 is not set or arg-2 is not set:
send "&cKullanım: /çekyaz <oyuncu> <miktar>" to player
stop
if arg-2 is not a number:
send "&cLütfen geçerli bir miktar girin." to player
stop
set {_amount} to arg-2 parsed as number
if {_amount} <= 0:
send "&cLütfen pozitif bir miktar girin." to player
stop
if {_amount} < 64:
execute console command "/give %arg-1% cobblestone %{_amount}%"
add {_amount} to {debt.%player%}
send "&a%arg-1%'a %{_amount}% cobblestone verdiniz." to player
stop
if {_amount} mod 64 != 0:
send "&cLütfen 64'ün katı olan bir miktar girin." to player
stop
if {checks.%player%} >= 5:
send "&cMaksimum 5 çek yazabilirsiniz." to player
stop
if {_amount} is 64:
execute console command "/give %arg-1% cobblestone 64"
add 64 to {debt.%player%}
send "&a%{_recipient}% adlı oyuncuya 64 cobblestone verdiniz." to player
else:
execute console command "/give %arg-1% paper{display:{Name:\"64 stacks of cobblestone\"}}"
add {_amount} to {debt.%player%}
send "&a%{_recipient}% adlı oyuncuya %{_amount}% cobblestone karşılığı bir çek verdiniz." to player
add 1 to {checks.%player%}
send "&aÇek başarılı bir şekilde oluşturuldu!" to player
# Repeat issuer's name in chat every 60 seconds until borçöde is used
loop 60 times:
if {debt.%player%} > 0:
broadcast "&e%player%'in %{debt.%player%}% cobblestone borcu var! /borçöde ile ödemesini yapabilir."
wait 60 seconds
command /borçöğren [<player>]:
description: Belirtilen oyuncunun cobblestone borcunu öğrenin
trigger:
if arg-1 is not set:
send "&cKullanım: /borçöğren <oyuncu>" to player
stop
if {debt.%arg-1%} is not set or {debt.%arg-1%} <= 0:
send "&a%arg-1%'in borcu yok." to player
else:
send "&e%arg-1%'in %{debt.%arg-1%}% cobblestone borcu var." to player
command /borçöde:
description: Borcunuzu ödeyin ve isim tekrarını durdurun
trigger:
if {debt.%player%} is not set or {debt.%player%} <= 0:
send "&cÖdenmesi gereken bir borcunuz yok." to player
stop
if player's inventory does not contain {debt.%player%} of cobblestone:
send "&cYeterli cobblestone yok! Borcu ödemek için %{debt.%player%}% cobblestone gerekiyor." to player
stop
execute console command "/clear %player% cobblestone %{debt.%player%}%"
delete {debt.%player%}
set {checks.%player%} to 0
send "&aBorç ödendi, isminiz artık tekrarlanmayacak!" to player