Skocz do zawartości
  • 0

Problem z sklepem


johny16w45b
 Udostępnij

Pytanie

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

command /sklep [<text>] [<text>]:

trigger:

if arg 1 is not set:

open chest with 6 rows named "&6Sklep" to player

format slot 0 of player with 64 of diamond with lore "&6Cena: &c$1000" to close then run [execute player command "sklep 1000 64 diamond"]

format slot 1 of player with 32 of iron ingot with lore "&6Cena: &c$350" to close then run [execute player command "sklep 350 32 iron ingot"]

else:

if arg 1 parsed as number is set:

if {hasjhash.%player%} is more than or equal to arg 1 parsed as number:

if arg 2 parsed as item is set:

remove arg 1 parsed as number from {hasjhash.%player%}

add arg 2 parsed as item to player

send "&7Kupiles &6%arg 2% &7za &c$%arg 1%&7."

else:

send "&cNie masz tyle pieniedzy!"

Edytowane przez Shooterowy
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...