mam takie coś... 0 błędów podczas reloadu ale podczas wykonania komendy wywala blad w konsolce i error, zapewne źle zapisałem coś w funkcjach bo wildskrypt tak wywala jak coś jest źle ;ppppp
Method "ilosc" {ilosc and gracz}: set {_p} to arg{2}; set {sklep::ilosc::%{_p}%} to arg{1}; open chest with 3 rows named "&3&lSklep &b| &3&lTryb: &6%{sklep::ilosc}%&3 sztuk | &cWybierz typ itemow..." to {_p} wait 2 ticks format slot 1 of {_p} with {sklep::ilosc} of bricks named "Bloki budowlane" with lore "&8Bloki typu: piasek, szklo,|| kamien, iii takie tam ;p" to close then run [function "budowlanka" {player}] format slot 17 of {_p} with 1 of dirt named "Powrot" to close then run "/sklep"Method "budowlanka" {gracz}: set {_p} to arg{1}; open chest with 6 rows named "&3&lSklep &b| &3&lTryb: &6%{sklep::ilosc}%&3 sztuk | &9&lBudowlanka" to {_p} wait 2 ticks format slot 17 of {_p} with 1 of dirt named "Powrot" to close then run "/sklep"command /sklep: trigger: open chest with 1 rows named "&3&lSklep- &2wybierz ilosc jaka chcesz aby byla dostepna w sklepie" to player wait 2 ticks format slot 0 of player with 1 of name tag named "&2Sprzedaz i kupno w ilosci &61" to close then run [function "ilosc" {1 and player}] format slot 2 of player with 5 name tag named "&2Sprzedaz i kupno w ilosci &65" to close then run [function "ilosc" {5 and player}] format slot 3 of player with 10 of name tag named "&2Sprzedaz i kupno w ilosci &610" to close then run [function "ilosc" {10 and player}] format slot 4 of player with 15 of name tag named "&2Sprzedaz i kupno w ilosci &615" to close then run [function "ilosc" {15 and player}] format slot 5 of player with 20 of name tag named "&2Sprzedaz i kupno w ilosci &620" to close then run [function "ilosc" {20 and player}] format slot 6 of player with 32 of name tag named "&2Sprzedaz i kupno w ilosci &632" to close then run [function "ilosc" {32 and player}] format slot 7 of player with 40 of name tag named "&2Sprzedaz i kupno w ilosci &640" to close then run [function "ilosc" {40 and player}] format slot 8 of player with 64 of name tag named "&2Sprzedaz i kupno w ilosci &664" to close then run [function "ilosc" {64 and player}]
Pytanie
piesio98 13
mam takie coś... 0 błędów podczas reloadu ale podczas wykonania komendy wywala blad w konsolce i error, zapewne źle zapisałem coś w funkcjach bo wildskrypt tak wywala jak coś jest źle ;ppppp
Method "ilosc" {ilosc and gracz}: set {_p} to arg{2}; set {sklep::ilosc::%{_p}%} to arg{1}; open chest with 3 rows named "&3&lSklep &b| &3&lTryb: &6%{sklep::ilosc}%&3 sztuk | &cWybierz typ itemow..." to {_p} wait 2 ticks format slot 1 of {_p} with {sklep::ilosc} of bricks named "Bloki budowlane" with lore "&8Bloki typu: piasek, szklo,|| kamien, iii takie tam ;p" to close then run [function "budowlanka" {player}] format slot 17 of {_p} with 1 of dirt named "Powrot" to close then run "/sklep"Method "budowlanka" {gracz}: set {_p} to arg{1}; open chest with 6 rows named "&3&lSklep &b| &3&lTryb: &6%{sklep::ilosc}%&3 sztuk | &9&lBudowlanka" to {_p} wait 2 ticks format slot 17 of {_p} with 1 of dirt named "Powrot" to close then run "/sklep"command /sklep: trigger: open chest with 1 rows named "&3&lSklep- &2wybierz ilosc jaka chcesz aby byla dostepna w sklepie" to player wait 2 ticks format slot 0 of player with 1 of name tag named "&2Sprzedaz i kupno w ilosci &61" to close then run [function "ilosc" {1 and player}] format slot 2 of player with 5 name tag named "&2Sprzedaz i kupno w ilosci &65" to close then run [function "ilosc" {5 and player}] format slot 3 of player with 10 of name tag named "&2Sprzedaz i kupno w ilosci &610" to close then run [function "ilosc" {10 and player}] format slot 4 of player with 15 of name tag named "&2Sprzedaz i kupno w ilosci &615" to close then run [function "ilosc" {15 and player}] format slot 5 of player with 20 of name tag named "&2Sprzedaz i kupno w ilosci &620" to close then run [function "ilosc" {20 and player}] format slot 6 of player with 32 of name tag named "&2Sprzedaz i kupno w ilosci &632" to close then run [function "ilosc" {32 and player}] format slot 7 of player with 40 of name tag named "&2Sprzedaz i kupno w ilosci &640" to close then run [function "ilosc" {40 and player}] format slot 8 of player with 64 of name tag named "&2Sprzedaz i kupno w ilosci &664" to close then run [function "ilosc" {64 and player}]Odnośnik do komentarza
https://skript.pl/temat/7532-function-i-lambda/Udostępnij na innych stronach
6 odpowiedzi na to pytanie
Rekomendowane odpowiedzi