command /sbuy [<text>]: trigger: if arg 1 is "helm4": if {Monety.%player%} is less than 5: send "&cNie posiadasz &75 coinsow&c!" to player stop if {Monety.%player%} is equal to 5: remove 5 from {Monety.%player%}
give 1 diamond helmet of protection 4 to player send "&aZakupiles Helm Protection 4" to player stop if {Monety.%player%} is more than 5: remove 5 from {Monety.%player%} give 1 diamond helmet of protection 4 to player send "&aZakupiles Helm Protection 4" to player stop
Pytanie
RageHard 0
Da się to jakiś zoptymalizować (skrócić kod)
command /sbuy [<text>]:
trigger:
if arg 1 is "helm4":
if {Monety.%player%} is less than 5:
send "&cNie posiadasz &75 coinsow&c!" to player
stop
if {Monety.%player%} is equal to 5:
remove 5 from {Monety.%player%}
give 1 diamond helmet of protection 4 to player
send "&aZakupiles Helm Protection 4" to player
stop
if {Monety.%player%} is more than 5:
remove 5 from {Monety.%player%}
give 1 diamond helmet of protection 4 to player
send "&aZakupiles Helm Protection 4" to player
stop
Odnośnik do komentarza
https://skript.pl/temat/25195-optymalizacja/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi