Siema, wytłumaczy mi ktoś czemu nie dodaje mi kasy kiedy klikam PPM na czek? Oto kod:
variables:
{kasa::%player%} = 0
command /kasa:
trigger:
send "Kasa: %{kasa::%player%}%$"
command /wyplac [<integer>]:
trigger:
set {_number} to arg 1
if {kasa::%player%} is more than or equal to {_number}:
if {_number} is more than or equal to 1:
remove {_number} from {kasa::%player%}
add {_number} to {kasa::%arg-1%}
give 1 paper named "Czek na kase" with lore "Wartosc: %{_number}%$" to player
on rightclick:
if player's tool is paper:
if name of player's tool is "Czek na kase":
set {_lore1} to 1st line of the tool's lore
replace all "Wartosc:" and "$" and " " with "" in {_lore1}
set {_lore1} to {_lore1} parsed as integer
add {_lore1} to {kasa::%player%}
remove 1 of tool from tool
stop
Pytanie
LubieRPG 0
Paper Spigot 1.8.8
Skript 2.2 Fixes v8b
Siema, wytłumaczy mi ktoś czemu nie dodaje mi kasy kiedy klikam PPM na czek? Oto kod:
Z góry dzięki za pomoc!
Odnośnik do komentarza
Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.